var M,d,Y,se,x,K,Z,$,ee,j,B,O,te,E={},_e=[],ue=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,H=Array.isArray;function k(t,e){for(var _ in e)t[_]=e[_];return t}function z(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function ce(t,e,_){var l,o,n,i={};for(n in e)n=="key"?l=e[n]:n=="ref"?o=e[n]:i[n]=e[n];if(arguments.length>2&&(i.children=arguments.length>3?M.call(arguments,2):_),typeof t=="function"&&t.defaultProps!=null)for(n in t.defaultProps)i[n]===void 0&&(i[n]=t.defaultProps[n]);return T(t,i,l,o,null)}function T(t,e,_,l,o){var n={type:t,props:e,key:_,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Y,__i:-1,__u:0};return o==null&&d.vnode!=null&&d.vnode(n),n}function ye(){return{current:null}}function D(t){return t.children}function A(t,e){this.props=t,this.context=e}function C(t,e){if(e==null)return t.__?C(t.__,t.__i+1):null;for(var _;e<t.__k.length;e++)if((_=t.__k[e])!=null&&_.__e!=null)return _.__e;return typeof t.type=="function"?C(t):null}function ne(t){var e,_;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((_=t.__k[e])!=null&&_.__e!=null){t.__e=t.__c.base=_.__e;break}return ne(t)}}function V(t){(!t.__d&&(t.__d=!0)&&x.push(t)&&!N.__r++||K!==d.debounceRendering)&&((K=d.debounceRendering)||Z)(N)}function N(){var t,e,_,l,o,n,i,s;for(x.sort($);t=x.shift();)t.__d&&(e=x.length,l=void 0,n=(o=(_=t).__v).__e,i=[],s=[],_.__P&&((l=k({},o)).__v=o.__v+1,d.vnode&&d.vnode(l),q(_.__P,l,o,_.__n,_.__P.namespaceURI,32&o.__u?[n]:null,i,n??C(o),!!(32&o.__u),s),l.__v=o.__v,l.__.__k[l.__i]=l,le(i,l,s),l.__e!=n&&ne(l)),x.length>e&&x.sort($));N.__r=0}function re(t,e,_,l,o,n,i,s,f,u,p){var r,v,c,m,g,y,a=l&&l.__k||_e,h=e.length;for(f=fe(_,e,a,f),r=0;r<h;r++)(c=_.__k[r])!=null&&(v=c.__i===-1?E:a[c.__i]||E,c.__i=r,y=q(t,c,v,o,n,i,s,f,u,p),m=c.__e,c.ref&&v.ref!=c.ref&&(v.ref&&G(v.ref,null,c),p.push(c.ref,c.__c||m,c)),g==null&&m!=null&&(g=m),4&c.__u||v.__k===c.__k?f=oe(c,f,t):typeof c.type=="function"&&y!==void 0?f=y:m&&(f=m.nextSibling),c.__u&=-7);return _.__e=g,f}function fe(t,e,_,l){var o,n,i,s,f,u=e.length,p=_.length,r=p,v=0;for(t.__k=[],o=0;o<u;o++)(n=e[o])!=null&&typeof n!="boolean"&&typeof n!="function"?(s=o+v,(n=t.__k[o]=typeof n=="string"||typeof n=="number"||typeof n=="bigint"||n.constructor==String?T(null,n,null,null,null):H(n)?T(D,{children:n},null,null,null):n.constructor===void 0&&n.__b>0?T(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n).__=t,n.__b=t.__b+1,i=null,(f=n.__i=ae(n,_,s,r))!==-1&&(r--,(i=_[f])&&(i.__u|=2)),i==null||i.__v===null?(f==-1&&v--,typeof n.type!="function"&&(n.__u|=4)):f!==s&&(f==s-1?v--:f==s+1?v++:(f>s?v--:v++,n.__u|=4))):n=t.__k[o]=null;if(r)for(o=0;o<p;o++)(i=_[o])!=null&&!(2&i.__u)&&(i.__e==l&&(l=C(i)),ie(i,i));return l}function oe(t,e,_){var l,o;if(typeof t.type=="function"){for(l=t.__k,o=0;l&&o<l.length;o++)l[o]&&(l[o].__=t,e=oe(l[o],e,_));return e}t.__e!=e&&(e&&t.type&&!_.contains(e)&&(e=C(t)),_.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function pe(t,e){return e=e||[],t==null||typeof t=="boolean"||(H(t)?t.some(function(_){pe(_,e)}):e.push(t)),e}function ae(t,e,_,l){var o=t.key,n=t.type,i=_-1,s=_+1,f=e[_];if(f===null||f&&o==f.key&&n===f.type&&!(2&f.__u))return _;if((typeof n!="function"||n===D||o)&&l>(f!=null&&!(2&f.__u)?1:0))for(;i>=0||s<e.length;){if(i>=0){if((f=e[i])&&!(2&f.__u)&&o==f.key&&n===f.type)return i;i--}if(s<e.length){if((f=e[s])&&!(2&f.__u)&&o==f.key&&n===f.type)return s;s++}}return-1}function Q(t,e,_){e[0]==="-"?t.setProperty(e,_??""):t[e]=_==null?"":typeof _!="number"||ue.test(e)?_:_+"px"}function W(t,e,_,l,o){var n;e:if(e==="style")if(typeof _=="string")t.style.cssText=_;else{if(typeof l=="string"&&(t.style.cssText=l=""),l)for(e in l)_&&e in _||Q(t.style,e,"");if(_)for(e in _)l&&_[e]===l[e]||Q(t.style,e,_[e])}else if(e[0]==="o"&&e[1]==="n")n=e!==(e=e.replace(ee,"$1")),e=e.toLowerCase()in t||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+n]=_,_?l?_.u=l.u:(_.u=j,t.addEventListener(e,n?O:B,n)):t.removeEventListener(e,n?O:B,n);else{if(o=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=_??"";break e}catch{}typeof _=="function"||(_==null||_===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&_==1?"":_))}}function X(t){return function(e){if(this.l){var _=this.l[e.type+t];if(e.t==null)e.t=j++;else if(e.t<_.u)return;return _(d.event?d.event(e):e)}}}function q(t,e,_,l,o,n,i,s,f,u){var p,r,v,c,m,g,y,a,h,P,w,L,S,J,F,I,R,b=e.type;if(e.constructor!==void 0)return null;128&_.__u&&(f=!!(32&_.__u),n=[s=e.__e=_.__e]),(p=d.__b)&&p(e);e:if(typeof b=="function")try{if(a=e.props,h="prototype"in b&&b.prototype.render,P=(p=b.contextType)&&l[p.__c],w=p?P?P.props.value:p.__:l,_.__c?y=(r=e.__c=_.__c).__=r.__E:(h?e.__c=r=new b(a,w):(e.__c=r=new A(a,w),r.constructor=b,r.render=de),P&&P.sub(r),r.props=a,r.state||(r.state={}),r.context=w,r.__n=l,v=r.__d=!0,r.__h=[],r._sb=[]),h&&r.__s==null&&(r.__s=r.state),h&&b.getDerivedStateFromProps!=null&&(r.__s==r.state&&(r.__s=k({},r.__s)),k(r.__s,b.getDerivedStateFromProps(a,r.__s))),c=r.props,m=r.state,r.__v=e,v)h&&b.getDerivedStateFromProps==null&&r.componentWillMount!=null&&r.componentWillMount(),h&&r.componentDidMount!=null&&r.__h.push(r.componentDidMount);else{if(h&&b.getDerivedStateFromProps==null&&a!==c&&r.componentWillReceiveProps!=null&&r.componentWillReceiveProps(a,w),!r.__e&&(r.shouldComponentUpdate!=null&&r.shouldComponentUpdate(a,r.__s,w)===!1||e.__v===_.__v)){for(e.__v!==_.__v&&(r.props=a,r.state=r.__s,r.__d=!1),e.__e=_.__e,e.__k=_.__k,e.__k.some(function(U){U&&(U.__=e)}),L=0;L<r._sb.length;L++)r.__h.push(r._sb[L]);r._sb=[],r.__h.length&&i.push(r);break e}r.componentWillUpdate!=null&&r.componentWillUpdate(a,r.__s,w),h&&r.componentDidUpdate!=null&&r.__h.push(function(){r.componentDidUpdate(c,m,g)})}if(r.context=w,r.props=a,r.__P=t,r.__e=!1,S=d.__r,J=0,h){for(r.state=r.__s,r.__d=!1,S&&S(e),p=r.render(r.props,r.state,r.context),F=0;F<r._sb.length;F++)r.__h.push(r._sb[F]);r._sb=[]}else do r.__d=!1,S&&S(e),p=r.render(r.props,r.state,r.context),r.state=r.__s;while(r.__d&&++J<25);r.state=r.__s,r.getChildContext!=null&&(l=k(k({},l),r.getChildContext())),h&&!v&&r.getSnapshotBeforeUpdate!=null&&(g=r.getSnapshotBeforeUpdate(c,m)),s=re(t,H(I=p!=null&&p.type===D&&p.key==null?p.props.children:p)?I:[I],e,_,l,o,n,i,s,f,u),r.base=e.__e,e.__u&=-161,r.__h.length&&i.push(r),y&&(r.__E=r.__=null)}catch(U){if(e.__v=null,f||n!=null)if(U.then){for(e.__u|=f?160:128;s&&s.nodeType===8&&s.nextSibling;)s=s.nextSibling;n[n.indexOf(s)]=null,e.__e=s}else for(R=n.length;R--;)z(n[R]);else e.__e=_.__e,e.__k=_.__k;d.__e(U,e,_)}else n==null&&e.__v===_.__v?(e.__k=_.__k,e.__e=_.__e):s=e.__e=he(_.__e,e,_,l,o,n,i,f,u);return(p=d.diffed)&&p(e),128&e.__u?void 0:s}function le(t,e,_){for(var l=0;l<_.length;l++)G(_[l],_[++l],_[++l]);d.__c&&d.__c(e,t),t.some(function(o){try{t=o.__h,o.__h=[],t.some(function(n){n.call(o)})}catch(n){d.__e(n,o.__v)}})}function he(t,e,_,l,o,n,i,s,f){var u,p,r,v,c,m,g,y=_.props,a=e.props,h=e.type;if(h==="svg"?o="http://www.w3.org/2000/svg":h==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),n!=null){for(u=0;u<n.length;u++)if((c=n[u])&&"setAttribute"in c==!!h&&(h?c.localName===h:c.nodeType===3)){t=c,n[u]=null;break}}if(t==null){if(h===null)return document.createTextNode(a);t=document.createElementNS(o,h,a.is&&a),s&&(d.__m&&d.__m(e,n),s=!1),n=null}if(h===null)y===a||s&&t.data===a||(t.data=a);else{if(n=n&&M.call(t.childNodes),y=_.props||E,!s&&n!=null)for(y={},u=0;u<t.attributes.length;u++)y[(c=t.attributes[u]).name]=c.value;for(u in y)if(c=y[u],u!="children"){if(u=="dangerouslySetInnerHTML")r=c;else if(!(u in a)){if(u=="value"&&"defaultValue"in a||u=="checked"&&"defaultChecked"in a)continue;W(t,u,null,c,o)}}for(u in a)c=a[u],u=="children"?v=c:u=="dangerouslySetInnerHTML"?p=c:u=="value"?m=c:u=="checked"?g=c:s&&typeof c!="function"||y[u]===c||W(t,u,c,y[u],o);if(p)s||r&&(p.__html===r.__html||p.__html===t.innerHTML)||(t.innerHTML=p.__html),e.__k=[];else if(r&&(t.innerHTML=""),re(t,H(v)?v:[v],e,_,l,h==="foreignObject"?"http://www.w3.org/1999/xhtml":o,n,i,n?n[0]:_.__k&&C(_,0),s,f),n!=null)for(u=n.length;u--;)z(n[u]);s||(u="value",h==="progress"&&m==null?t.removeAttribute("value"):m!==void 0&&(m!==t[u]||h==="progress"&&!m||h==="option"&&m!==y[u])&&W(t,u,m,y[u],o),u="checked",g!==void 0&&g!==t[u]&&W(t,u,g,y[u],o))}return t}function G(t,e,_){try{if(typeof t=="function"){var l=typeof t.__u=="function";l&&t.__u(),l&&e==null||(t.__u=t(e))}else t.current=e}catch(o){d.__e(o,_)}}function ie(t,e,_){var l,o;if(d.unmount&&d.unmount(t),(l=t.ref)&&(l.current&&l.current!==t.__e||G(l,null,e)),(l=t.__c)!=null){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(n){d.__e(n,e)}l.base=l.__P=null}if(l=t.__k)for(o=0;o<l.length;o++)l[o]&&ie(l[o],e,_||typeof t.type!="function");_||z(t.__e),t.__c=t.__=t.__e=void 0}function de(t,e,_){return this.constructor(t,_)}function ve(t,e,_){var l,o,n,i;e===document&&(e=document.documentElement),d.__&&d.__(t,e),o=(l=typeof _=="function")?null:_&&_.__k||e.__k,n=[],i=[],q(e,t=(!l&&_||e).__k=ce(D,null,[t]),o||E,E,e.namespaceURI,!l&&_?[_]:o?null:e.firstChild?M.call(e.childNodes):null,n,!l&&_?_:o?o.__e:e.firstChild,l,i),le(n,t,i)}function me(t,e){ve(t,e,me)}function ge(t,e,_){var l,o,n,i,s=k({},t.props);for(n in t.type&&t.type.defaultProps&&(i=t.type.defaultProps),e)n=="key"?l=e[n]:n=="ref"?o=e[n]:s[n]=e[n]===void 0&&i!==void 0?i[n]:e[n];return arguments.length>2&&(s.children=arguments.length>3?M.call(arguments,2):_),T(t.type,s,l||t.key,o||t.ref,null)}function be(t,e){var _={__c:e="__cC"+te++,__:t,Consumer:function(l,o){return l.children(o)},Provider:function(l){var o,n;return this.getChildContext||(o=new Set,(n={})[e]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.forEach(function(s){s.__e=!0,V(s)})},this.sub=function(i){o.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){o&&o.delete(i),s&&s.call(i)}}),l.children}};return _.Provider.__=_.Consumer.contextType=_}M=_e.slice,d={__e:function(t,e,_,l){for(var o,n,i;e=e.__;)if((o=e.__c)&&!o.__)try{if((n=o.constructor)&&n.getDerivedStateFromError!=null&&(o.setState(n.getDerivedStateFromError(t)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(t,l||{}),i=o.__d),i)return o.__E=o}catch(s){t=s}throw t}},Y=0,se=function(t){return t!=null&&t.constructor==null},A.prototype.setState=function(t,e){var _;_=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=k({},this.state),typeof t=="function"&&(t=t(k({},_),this.props)),t&&k(_,t),t!=null&&this.__v&&(e&&this._sb.push(e),V(this))},A.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),V(this))},A.prototype.render=D,x=[],Z=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$=function(t,e){return t.__v.__b-e.__v.__b},N.__r=0,ee=/(PointerCapture)$|Capture$/i,j=0,B=X(!1),O=X(!0),te=0;export{A as Component,D as Fragment,ge as cloneElement,be as createContext,ce as createElement,ye as createRef,ce as h,me as hydrate,se as isValidElement,d as options,ve as render,pe as toChildArray};