able-baker/bundled/preact/compat.js

3 lines
24 KiB
JavaScript

///<reference types="https://esm.sh/v128/preact@10.20.2/compat/src/index.d.ts"/>
var T,d,Q,x,q,X,I,G,$,O,Y,E={},Z=[],ie=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,A=Array.isArray;function b(_,e){for(var t in e)_[t]=e[t];return _}function ee(_){var e=_.parentNode;e&&e.removeChild(_)}function le(_,e,t){var i,o2,r2,l2={};for(r2 in e)r2=="key"?i=e[r2]:r2=="ref"?o2=e[r2]:l2[r2]=e[r2];if(arguments.length>2&&(l2.children=arguments.length>3?T.call(arguments,2):t),typeof _=="function"&&_.defaultProps!=null)for(r2 in _.defaultProps)l2[r2]===void 0&&(l2[r2]=_.defaultProps[r2]);return w(_,l2,i,o2,null)}function w(_,e,t,i,o2){var r2={type:_,props:e,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o2??++Q,__i:-1,__u:0};return o2==null&&d.vnode!=null&&d.vnode(r2),r2}function he(){return{current:null}}function H(_){return _.children}function M(_,e){this.props=_,this.context=e}function P(_,e){if(e==null)return _.__?P(_.__,_.__i+1):null;for(var t;e<_.__k.length;e++)if((t=_.__k[e])!=null&&t.__e!=null)return t.__e;return typeof _.type=="function"?P(_):null}function _e(_){var e,t;if((_=_.__)!=null&&_.__c!=null){for(_.__e=_.__c.base=null,e=0;e<_.__k.length;e++)if((t=_.__k[e])!=null&&t.__e!=null){_.__e=_.__c.base=t.__e;break}return _e(_)}}function R(_){(!_.__d&&(_.__d=true)&&x.push(_)&&!W.__r++||q!==d.debounceRendering)&&((q=d.debounceRendering)||X)(W)}function W(){var _,e,t,i,o2,r2,l2,s;for(x.sort(I);_=x.shift();)_.__d&&(e=x.length,i=void 0,r2=(o2=(t=_).__v).__e,l2=[],s=[],t.__P&&((i=b({},o2)).__v=o2.__v+1,d.vnode&&d.vnode(i),V(t.__P,i,o2,t.__n,t.__P.ownerSVGElement!==void 0,32&o2.__u?[r2]:null,l2,r2??P(o2),!!(32&o2.__u),s),i.__v=o2.__v,i.__.__k[i.__i]=i,oe(l2,i,s),i.__e!=r2&&_e(i)),x.length>e&&x.sort(I));W.__r=0}function te(_,e,t,i,o2,r2,l2,s,f,u,p2){var n,m,c2,h2,k2,v2=i&&i.__k||Z,a=e.length;for(t.__d=f,se(t,e,v2),f=t.__d,n=0;n<a;n++)(c2=t.__k[n])!=null&&typeof c2!="boolean"&&typeof c2!="function"&&(m=c2.__i===-1?E:v2[c2.__i]||E,c2.__i=n,V(_,c2,m,o2,r2,l2,s,f,u,p2),h2=c2.__e,c2.ref&&m.ref!=c2.ref&&(m.ref&&j(m.ref,null,c2),p2.push(c2.ref,c2.__c||h2,c2)),k2==null&&h2!=null&&(k2=h2),65536&c2.__u||m.__k===c2.__k?(f&&!f.isConnected&&(f=P(m)),f=ne(c2,f,_)):typeof c2.type=="function"&&c2.__d!==void 0?f=c2.__d:h2&&(f=h2.nextSibling),c2.__d=void 0,c2.__u&=-196609);t.__d=f,t.__e=k2}function se(_,e,t){var i,o2,r2,l2,s,f=e.length,u=t.length,p2=u,n=0;for(_.__k=[],i=0;i<f;i++)l2=i+n,(o2=_.__k[i]=(o2=e[i])==null||typeof o2=="boolean"||typeof o2=="function"?null:typeof o2=="string"||typeof o2=="number"||typeof o2=="bigint"||o2.constructor==String?w(null,o2,null,null,null):A(o2)?w(H,{children:o2},null,null,null):o2.constructor===void 0&&o2.__b>0?w(o2.type,o2.props,o2.key,o2.ref?o2.ref:null,o2.__v):o2)!=null?(o2.__=_,o2.__b=_.__b+1,s=ce(o2,t,l2,p2),o2.__i=s,r2=null,s!==-1&&(p2--,(r2=t[s])&&(r2.__u|=131072)),r2==null||r2.__v===null?(s==-1&&n--,typeof o2.type!="function"&&(o2.__u|=65536)):s!==l2&&(s===l2+1?n++:s>l2?p2>f-l2?n+=s-l2:n--:s<l2?s==l2-1&&(n=s-l2):n=0,s!==i+n&&(o2.__u|=65536))):(r2=t[l2])&&r2.key==null&&r2.__e&&!(131072&r2.__u)&&(r2.__e==_.__d&&(_.__d=P(r2)),B(r2,r2,false),t[l2]=null,p2--);if(p2)for(i=0;i<u;i++)(r2=t[i])!=null&&!(131072&r2.__u)&&(r2.__e==_.__d&&(_.__d=P(r2)),B(r2,r2))}function ne(_,e,t){var i,o2;if(typeof _.type=="function"){for(i=_.__k,o2=0;i&&o2<i.length;o2++)i[o2]&&(i[o2].__=_,e=ne(i[o2],e,t));return e}_.__e!=e&&(t.insertBefore(_.__e,e||null),e=_.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function ue(_,e){return e=e||[],_==null||typeof _=="boolean"||(A(_)?_.some(function(t){ue(t,e)}):e.push(_)),e}function ce(_,e,t,i){var o2=_.key,r2=_.type,l2=t-1,s=t+1,f=e[t];if(f===null||f&&o2==f.key&&r2===f.type&&!(131072&f.__u))return t;if(i>(f!=null&&!(131072&f.__u)?1:0))for(;l2>=0||s<e.length;){if(l2>=0){if((f=e[l2])&&!(131072&f.__u)&&o2==f.key&&r2===f.type)return l2;l2--}if(s<e.length){if((f=e[s])&&!(131072&f.__u)&&o2==f.key&&r2===f.type)return s;s++}}return-1}function J(_,e,t){e[0]==="-"?_.setProperty(e,t??""):_[e]=t==null?"":typeof t!="number"||ie.test(e)?t:t+"px"}function L(_,e,t,i,o2){var r2;e:if(e==="style")if(typeof t=="string")_.style.cssText=t;else{if(typeof i=="string"&&(_.style.cssText=i=""),i)for(e in i)t&&e in t||J(_.style,e,"");if(t)for(e in t)i&&t[e]===i[e]||J(_.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")r2=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in _||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),_.l||(_.l={}),_.l[e+r2]=t,t?i?t.u=i.u:(t.u=G,_.addEventListener(e,r2?O:$,r2)):_.removeEventListener(e,r2?O:$,r2);else{if(o2)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 in _)try{_[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===false&&e[4]!=="-"?_.removeAttribute(e):_.setAttribute(e,t))}}function K(_){return function(e){if(this.l){var t=this.l[e.type+_];if(e.t==null)e.t=G++;else if(e.t<t.u)return;return t(d.event?d.event(e):e)}}}function V(_,e,t,i,o2,r2,l2,s,f,u){var p2,n,m,c2,h2,k2,v2,a,y2,C2,U2,S2,z2,D2,N2,g2=e.type;if(e.constructor!==void 0)return null;128&t.__u&&(f=!!(32&t.__u),r2=[s=e.__e=t.__e]),(p2=d.__b)&&p2(e);e:if(typeof g2=="function")try{if(a=e.props,y2=(p2=g2.contextType)&&i[p2.__c],C2=p2?y2?y2.props.value:p2.__:i,t.__c?v2=(n=e.__c=t.__c).__=n.__E:("prototype"in g2&&g2.prototype.render?e.__c=n=new g2(a,C2):(e.__c=n=new M(a,C2),n.constructor=g2,n.render=pe),y2&&y2.sub(n),n.props=a,n.state||(n.state={}),n.context=C2,n.__n=i,m=n.__d=true,n.__h=[],n._sb=[]),n.__s==null&&(n.__s=n.state),g2.getDerivedStateFromProps!=null&&(n.__s==n.state&&(n.__s=b({},n.__s)),b(n.__s,g2.getDerivedStateFromProps(a,n.__s))),c2=n.props,h2=n.state,n.__v=e,m)g2.getDerivedStateFromProps==null&&n.componentWillMount!=null&&n.componentWillMount(),n.componentDidMount!=null&&n.__h.push(n.componentDidMount);else{if(g2.getDerivedStateFromProps==null&&a!==c2&&n.componentWillReceiveProps!=null&&n.componentWillReceiveProps(a,C2),!n.__e&&(n.shouldComponentUpdate!=null&&n.shouldComponentUpdate(a,n.__s,C2)===false||e.__v===t.__v)){for(e.__v!==t.__v&&(n.props=a,n.state=n.__s,n.__d=false),e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(F2){F2&&(F2.__=e)}),U2=0;U2<n._sb.length;U2++)n.__h.push(n._sb[U2]);n._sb=[],n.__h.length&&l2.push(n);break e}n.componentWillUpdate!=null&&n.componentWillUpdate(a,n.__s,C2),n.componentDidUpdate!=null&&n.__h.push(function(){n.componentDidUpdate(c2,h2,k2)})}if(n.context=C2,n.props=a,n.__P=_,n.__e=false,S2=d.__r,z2=0,"prototype"in g2&&g2.prototype.render){for(n.state=n.__s,n.__d=false,S2&&S2(e),p2=n.render(n.props,n.state,n.context),D2=0;D2<n._sb.length;D2++)n.__h.push(n._sb[D2]);n._sb=[]}else do n.__d=false,S2&&S2(e),p2=n.render(n.props,n.state,n.context),n.state=n.__s;while(n.__d&&++z2<25);n.state=n.__s,n.getChildContext!=null&&(i=b(b({},i),n.getChildContext())),m||n.getSnapshotBeforeUpdate==null||(k2=n.getSnapshotBeforeUpdate(c2,h2)),te(_,A(N2=p2!=null&&p2.type===H&&p2.key==null?p2.props.children:p2)?N2:[N2],e,t,i,o2,r2,l2,s,f,u),n.base=e.__e,e.__u&=-161,n.__h.length&&l2.push(n),v2&&(n.__E=n.__=null)}catch(F2){e.__v=null,f||r2!=null?(e.__e=s,e.__u|=f?160:32,r2[r2.indexOf(s)]=null):(e.__e=t.__e,e.__k=t.__k),d.__e(F2,e,t)}else r2==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=fe(t.__e,e,t,i,o2,r2,l2,f,u);(p2=d.diffed)&&p2(e)}function oe(_,e,t){e.__d=void 0;for(var i=0;i<t.length;i++)j(t[i],t[++i],t[++i]);d.__c&&d.__c(e,_),_.some(function(o2){try{_=o2.__h,o2.__h=[],_.some(function(r2){r2.call(o2)})}catch(r2){d.__e(r2,o2.__v)}})}function fe(_,e,t,i,o2,r2,l2,s,f){var u,p2,n,m,c2,h2,k2,v2=t.props,a=e.props,y2=e.type;if(y2==="svg"&&(o2=true),r2!=null){for(u=0;u<r2.length;u++)if((c2=r2[u])&&"setAttribute"in c2==!!y2&&(y2?c2.localName===y2:c2.nodeType===3)){_=c2,r2[u]=null;break}}if(_==null){if(y2===null)return document.createTextNode(a);_=o2?document.createElementNS("http://www.w3.org/2000/svg",y2):document.createElement(y2,a.is&&a),r2=null,s=false}if(y2===null)v2===a||s&&_.data===a||(_.data=a);else{if(r2=r2&&T.call(_.childNodes),v2=t.props||E,!s&&r2!=null)for(v2={},u=0;u<_.attributes.length;u++)v2[(c2=_.attributes[u]).name]=c2.value;for(u in v2)c2=v2[u],u=="children"||(u=="dangerouslySetInnerHTML"?n=c2:u==="key"||u in a||L(_,u,null,c2,o2));for(u in a)c2=a[u],u=="children"?m=c2:u=="dangerouslySetInnerHTML"?p2=c2:u=="value"?h2=c2:u=="checked"?k2=c2:u==="key"||s&&typeof c2!="function"||v2[u]===c2||L(_,u,c2,v2[u],o2);if(p2)s||n&&(p2.__html===n.__html||p2.__html===_.innerHTML)||(_.innerHTML=p2.__html),e.__k=[];else if(n&&(_.innerHTML=""),te(_,A(m)?m:[m],e,t,i,o2&&y2!=="foreignObject",r2,l2,r2?r2[0]:t.__k&&P(t,0),s,f),r2!=null)for(u=r2.length;u--;)r2[u]!=null&&ee(r2[u]);s||(u="value",h2!==void 0&&(h2!==_[u]||y2==="progress"&&!h2||y2==="option"&&h2!==v2[u])&&L(_,u,h2,v2[u],false),u="checked",k2!==void 0&&k2!==_[u]&&L(_,u,k2,v2[u],false))}return _}function j(_,e,t){try{typeof _=="function"?_(e):_.current=e}catch(i){d.__e(i,t)}}function B(_,e,t){var i,o2;if(d.unmount&&d.unmount(_),(i=_.ref)&&(i.current&&i.current!==_.__e||j(i,null,e)),(i=_.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(r2){d.__e(r2,e)}i.base=i.__P=null}if(i=_.__k)for(o2=0;o2<i.length;o2++)i[o2]&&B(i[o2],e,t||typeof _.type!="function");t||_.__e==null||ee(_.__e),_.__c=_.__=_.__e=_.__d=void 0}function pe(_,e,t){return this.constructor(_,t)}function ae(_,e,t){var i,o2,r2,l2;d.__&&d.__(_,e),o2=(i=typeof t=="function")?null:t&&t.__k||e.__k,r2=[],l2=[],V(e,_=(!i&&t||e).__k=le(H,null,[_]),o2||E,E,e.ownerSVGElement!==void 0,!i&&t?[t]:o2?null:e.firstChild?T.call(e.childNodes):null,r2,!i&&t?t:o2?o2.__e:e.firstChild,i,l2),oe(r2,_,l2)}function de(_,e){ae(_,e,de)}function ve(_,e,t){var i,o2,r2,l2,s=b({},_.props);for(r2 in _.type&&_.type.defaultProps&&(l2=_.type.defaultProps),e)r2=="key"?i=e[r2]:r2=="ref"?o2=e[r2]:s[r2]=e[r2]===void 0&&l2!==void 0?l2[r2]:e[r2];return arguments.length>2&&(s.children=arguments.length>3?T.call(arguments,2):t),w(_.type,s,i||_.key,o2||_.ref,null)}function ye(_,e){var t={__c:e="__cC"+Y++,__:_,Consumer:function(i,o2){return i.children(o2)},Provider:function(i){var o2,r2;return this.getChildContext||(o2=[],(r2={})[e]=this,this.getChildContext=function(){return r2},this.shouldComponentUpdate=function(l2){this.props.value!==l2.value&&o2.some(function(s){s.__e=true,R(s)})},this.sub=function(l2){o2.push(l2);var s=l2.componentWillUnmount;l2.componentWillUnmount=function(){o2.splice(o2.indexOf(l2),1),s&&s.call(l2)}}),i.children}};return t.Provider.__=t.Consumer.contextType=t}T=Z.slice,d={__e:function(_,e,t,i){for(var o2,r2,l2;e=e.__;)if((o2=e.__c)&&!o2.__)try{if((r2=o2.constructor)&&r2.getDerivedStateFromError!=null&&(o2.setState(r2.getDerivedStateFromError(_)),l2=o2.__d),o2.componentDidCatch!=null&&(o2.componentDidCatch(_,i||{}),l2=o2.__d),l2)return o2.__E=o2}catch(s){_=s}throw _}},Q=0,M.prototype.setState=function(_,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=b({},this.state),typeof _=="function"&&(_=_(b({},t),this.props)),_&&b(t,_),_!=null&&this.__v&&(e&&this._sb.push(e),R(this))},M.prototype.forceUpdate=function(_){this.__v&&(this.__e=true,_&&this.__h.push(_),R(this))},M.prototype.render=H,x=[],X=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,I=function(_,e){return _.__v.__b-e.__v.__b},W.__r=0,G=0,$=K(false),O=K(true),Y=0;var c,r,H1,b1,v=0,x1=[],p=[],o=d,g=o.__b,C=o.__r,A1=o.diffed,D=o.__c,F=o.unmount,k=o.__;function l(t,_){o.__h&&o.__h(r,t,v||_),v=0;var u=r.__H||(r.__H={__:[],__h:[]});return t>=u.__.length&&u.__.push({__V:p}),u.__[t]}function I1(t){return v=1,R1(U,t)}function R1(t,_,u){var n=l(c++,2);if(n.t=t,!n.__c&&(n.__=[u?u(_):U(void 0,_),function(a){var f=n.__N?n.__N[0]:n.__[0],s=n.t(f,a);f!==s&&(n.__N=[s,n.__[1]],n.__c.setState({}))}],n.__c=r,!r.u)){var i=function(a,f,s){if(!n.__c.__H)return true;var m=n.__c.__H.__.filter(function(e){return!!e.__c});if(m.every(function(e){return!e.__N}))return!h2||h2.call(this,a,f,s);var V2=false;return m.forEach(function(e){if(e.__N){var P2=e.__[0];e.__=e.__N,e.__N=void 0,P2!==e.__[0]&&(V2=true)}}),!(!V2&&n.__c.props===a)&&(!h2||h2.call(this,a,f,s))};r.u=true;var h2=r.shouldComponentUpdate,N2=r.componentWillUpdate;r.componentWillUpdate=function(a,f,s){if(this.__e){var m=h2;h2=void 0,i(a,f,s),h2=m}N2&&N2.call(this,a,f,s)},r.shouldComponentUpdate=i}return n.__N||n.__}function z(t,_){var u=l(c++,3);!o.__s&&y(u.__H,_)&&(u.__=t,u.i=_,r.__H.__h.push(u))}function S(t,_){var u=l(c++,4);!o.__s&&y(u.__H,_)&&(u.__=t,u.i=_,r.__h.push(u))}function L1(t){return v=5,T1(function(){return{current:t}},[])}function M1(t,_,u){v=6,S(function(){return typeof t=="function"?(t(_()),function(){return t(null)}):t?(t.current=_(),function(){return t.current=null}):void 0},u==null?u:u.concat(t))}function T1(t,_){var u=l(c++,7);return y(u.__H,_)?(u.__V=t(),u.i=_,u.__h=t,u.__V):u.__}function G1(t,_){return v=8,T1(function(){return t},_)}function J1(t){var _=r.context[t.__c],u=l(c++,9);return u.c=t,_?(u.__==null&&(u.__=true,_.sub(r)),_.props.value):t.__}function K1(t,_){o.useDebugValue&&o.useDebugValue(_?_(t):t)}function O1(t){var _=l(c++,10),u=I1();return _.__=t,r.componentDidCatch||(r.componentDidCatch=function(n,i){_.__&&_.__(n,i),u[1](n)}),[u[0],function(){u[1](void 0)}]}function Q1(){var t=l(c++,11);if(!t.__){for(var _=r.__v;_!==null&&!_.__m&&_.__!==null;)_=_.__;var u=_.__m||(_.__m=[0,0]);t.__="P"+u[0]+"-"+u[1]++}return t.__}function W1(){for(var t;t=x1.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(d1),t.__H.__h.forEach(E1),t.__H.__h=[]}catch(_){t.__H.__h=[],o.__e(_,t.__v)}}o.__b=function(t){r=null,g&&g(t)},o.__=function(t,_){t&&_.__k&&_.__k.__m&&(t.__m=_.__k.__m),k&&k(t,_)},o.__r=function(t){C&&C(t),c=0;var _=(r=t.__c).__H;_&&(H1===r?(_.__h=[],r.__h=[],_.__.forEach(function(u){u.__N&&(u.__=u.__N),u.__V=p,u.__N=u.i=void 0})):(_.__h.forEach(d1),_.__h.forEach(E1),_.__h=[],c=0)),H1=r},o.diffed=function(t){A1&&A1(t);var _=t.__c;_&&_.__H&&(_.__H.__h.length&&(x1.push(_)!==1&&b1===o.requestAnimationFrame||((b1=o.requestAnimationFrame)||j1)(W1)),_.__H.__.forEach(function(u){u.i&&(u.__H=u.i),u.__V!==p&&(u.__=u.__V),u.i=void 0,u.__V=p})),H1=r=null},o.__c=function(t,_){_.some(function(u){try{u.__h.forEach(d1),u.__h=u.__h.filter(function(n){return!n.__||E1(n)})}catch(n){_.some(function(i){i.__h&&(i.__h=[])}),_=[],o.__e(n,u.__v)}}),D&&D(t,_)},o.unmount=function(t){F&&F(t);var _,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{d1(n)}catch(i){_=i}}),u.__H=void 0,_&&o.__e(_,u.__v))};var q1=typeof requestAnimationFrame=="function";function j1(t){var _,u=function(){clearTimeout(n),q1&&cancelAnimationFrame(_),setTimeout(t)},n=setTimeout(u,100);q1&&(_=requestAnimationFrame(u))}function d1(t){var _=r,u=t.__c;typeof u=="function"&&(t.__c=void 0,u()),r=_}function E1(t){var _=r;t.__c=t.__(),r=_}function y(t,_){return!t||t.length!==_.length||_.some(function(u,n){return u!==t[n]})}function U(t,_){return typeof _=="function"?_(t):_}export{G1 as useCallback,J1 as useContext,K1 as useDebugValue,z as useEffect,O1 as useErrorBoundary,Q1 as useId,M1 as useImperativeHandle,S as useLayoutEffect,T1 as useMemo,R1 as useReducer,L1 as useRef,I1 as useState};export{le as jsx,le as jsxs,le as h,d as options};function L2(e,t){for(var n in t)e[n]=t[n];return e}function b2(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return true;for(var r2 in t)if(r2!=="__source"&&e[r2]!==t[r2])return true;return false}function C1(e,t){this.props=e,this.context=t}function Q2(e,t){function n(o2){var a=this.props.ref,u=a==o2.ref;return!u&&a&&(a.call?a(null):a.current=null),t?!t(this.props,o2)||!u:b2(this.props,o2)}function r2(o2){return this.shouldComponentUpdate=n,le(e,o2)}return r2.displayName="Memo("+(e.displayName||e.name)+")",r2.prototype.isReactComponent=true,r2.__f=true,r2}(C1.prototype=new M).isPureReactComponent=true,C1.prototype.shouldComponentUpdate=function(e,t){return b2(this.props,e)||b2(this.state,t)};var N=d.__b;d.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),N&&N(e)};var X1=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ee1(e){function t(n){var r2=L2({},n);return delete r2.ref,e(r2,n.ref||null)}return t.$$typeof=X1,t.render=t,t.prototype.isReactComponent=t.__f=true,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var R2=function(e,t){return e==null?null:ue(ue(e).map(t))},te1={map:R2,forEach:R2,count:function(e){return e?ue(e).length:0},only:function(e){var t=ue(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ue},ne1=d.__e;d.__e=function(e,t,n,r2){if(e.then){for(var o2,a=t;a=a.__;)if((o2=a.__c)&&o2.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o2.__c(e,t)}ne1(e,t,n,r2)};var x2=d.unmount;function T2(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r2){typeof r2.__c=="function"&&r2.__c()}),e.__c.__H=null),(e=L2({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r2){return T2(r2,t,n)})),e}function M2(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r2){return M2(r2,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=true,e.__c.__P=n)),e}function h(){this.__u=0,this.t=null,this.__b=null}function A2(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function re(e){var t,n,r2;function o2(a){if(t||(t=e()).then(function(u){n=u.default||u},function(u){r2=u}),r2)throw r2;if(!n)throw t;return le(n,a)}return o2.displayName="Lazy",o2.__f=true,o2}function p1(){this.u=null,this.o=null}d.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),x2&&x2(e)},(h.prototype=new M).__c=function(e,t){var n=t.__c,r2=this;r2.t==null&&(r2.t=[]),r2.t.push(n);var o2=A2(r2.__v),a=false,u=function(){a||(a=true,n.__R=null,o2?o2(l2):l2())};n.__R=u;var l2=function(){if(!--r2.__u){if(r2.state.__a){var s=r2.state.__a;r2.__v.__k[0]=M2(s,s.__c.__P,s.__c.__O)}var g2;for(r2.setState({__a:r2.__b=null});g2=r2.t.pop();)g2.forceUpdate()}};r2.__u++||32&t.__u||r2.setState({__a:r2.__b=r2.__v.__k[0]}),e.then(u,u)},h.prototype.componentWillUnmount=function(){this.t=[]},h.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r2=this.__v.__k[0].__c;this.__v.__k[0]=T2(this.__b,n,r2.__O=r2.__P)}this.__b=null}var o2=t.__a&&le(H,null,e.fallback);return o2&&(o2.__u&=-33),[le(H,null,t.__a?null:e.children),o2]};var k1=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function oe1(e){return this.getChildContext=function(){return e.context},e.children}function ae1(e){var t=this,n=e.i;t.componentWillUnmount=function(){ae(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r2){this.childNodes.push(r2),t.i.appendChild(r2)},insertBefore:function(r2,o2){this.childNodes.push(r2),t.i.appendChild(r2)},removeChild:function(r2){this.childNodes.splice(this.childNodes.indexOf(r2)>>>1,1),t.i.removeChild(r2)}}),ae(le(oe1,{context:t.context},e.__v),t.l)}function ue1(e,t){var n=le(ae1,{__v:e,i:t});return n.containerInfo=t,n}(p1.prototype=new M).__a=function(e){var t=this,n=A2(t.__v),r2=t.o.get(e);return r2[0]++,function(o2){var a=function(){t.props.revealOrder?(r2.push(o2),k1(t,e,r2)):o2()};n?n(a):a()}},p1.prototype.render=function(e){this.u=null,this.o=new Map;var t=ue(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},p1.prototype.componentDidUpdate=p1.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){k1(e,n,t)})};var F1=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,ie1=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,le1=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,se1=/[A-Z0-9]/g,_e1=typeof document<"u",ce1=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function fe1(e,t,n){return t.__k==null&&(t.textContent=""),ae(e,t),typeof n=="function"&&n(),e?e.__c:null}function pe1(e,t,n){return de(e,t),typeof n=="function"&&n(),e?e.__c:null}M.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(M.prototype,e,{configurable:true,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:true,writable:true,value:t})}})});var O2=d.event;function de1(){}function he1(){return this.cancelBubble}function me(){return this.defaultPrevented}d.event=function(e){return O2&&(e=O2(e)),e.persist=de1,e.isPropagationStopped=he1,e.isDefaultPrevented=me,e.nativeEvent=e};var S1,ve1={enumerable:false,configurable:true,get:function(){return this.class}},P1=d.vnode;d.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r2=t.type,o2={};for(var a in n){var u=n[a];if(!(a==="value"&&"defaultValue"in n&&u==null||_e1&&a==="children"&&r2==="noscript"||a==="class"||a==="className")){var l2=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&u===true?u="":l2==="translate"&&u==="no"?u=false:l2==="ondoubleclick"?a="ondblclick":l2!=="onchange"||r2!=="input"&&r2!=="textarea"||ce1(n.type)?l2==="onfocus"?a="onfocusin":l2==="onblur"?a="onfocusout":le1.test(a)?a=l2:r2.indexOf("-")===-1&&ie1.test(a)?a=a.replace(se1,"-$&").toLowerCase():u===null&&(u=void 0):l2=a="oninput",l2==="oninput"&&o2[a=l2]&&(a="oninputCapture"),o2[a]=u}}r2=="select"&&o2.multiple&&Array.isArray(o2.value)&&(o2.value=ue(n.children).forEach(function(s){s.props.selected=o2.value.indexOf(s.props.value)!=-1})),r2=="select"&&o2.defaultValue!=null&&(o2.value=ue(n.children).forEach(function(s){s.props.selected=o2.multiple?o2.defaultValue.indexOf(s.props.value)!=-1:o2.defaultValue==s.props.value})),n.class&&!n.className?(o2.class=n.class,Object.defineProperty(o2,"className",ve1)):(n.className&&!n.class||n.class&&n.className)&&(o2.class=o2.className=n.className),t.props=o2}(e),e.$$typeof=F1,P1&&P1(e)};var w1=d.__r;d.__r=function(e){w1&&w1(e),S1=e.__c};var U1=d.diffed;d.diffed=function(e){U1&&U1(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),S1=null};var ye1={ReactCurrentDispatcher:{current:{readContext:function(e){return S1.__n[e.__c].props.value}}}},Te="17.0.2";function be(e){return le.bind(null,e)}function v1(e){return!!e&&e.$$typeof===F1}function Ce(e){return v1(e)&&e.type===H}function Ee(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Se(e){return v1(e)?ve.apply(null,arguments):e}function ge(e){return!!e.__k&&(ae(null,e),true)}function Ne(e){return e&&(e.base||e.nodeType===1&&e)||null}var Re=function(e,t){return e(t)},xe=function(e,t){return e(t)},ke=H;function V1(e){e()}function Oe(e){return e}function Pe(){return[false,V1]}var we=S,Ue=v1;function De(e,t){var n=t(),r2=I1({h:{__:n,v:t}}),o2=r2[0].h,a=r2[1];return S(function(){o2.__=n,o2.v=t,y1(o2)&&a({h:o2})},[e,n,t]),z(function(){return y1(o2)&&a({h:o2}),e(function(){y1(o2)&&a({h:o2})})},[e]),n}function y1(e){var t,n,r2=e.v,o2=e.__;try{var a=r2();return!((t=o2)===(n=a)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return true}}var Me={useState:I1,useId:Q1,useReducer:R1,useEffect:z,useLayoutEffect:S,useInsertionEffect:we,useTransition:Pe,useDeferredValue:Oe,useSyncExternalStore:De,startTransition:V1,useRef:L1,useImperativeHandle:M1,useMemo:T1,useCallback:G1,useContext:J1,useDebugValue:K1,version:"17.0.2",Children:te1,render:fe1,hydrate:pe1,unmountComponentAtNode:ge,createPortal:ue1,createElement:le,createContext:ye,createFactory:be,cloneElement:Se,createRef:he,Fragment:H,isValidElement:v1,isElement:Ue,isFragment:Ce,isMemo:Ee,findDOMNode:Ne,Component:M,PureComponent:C1,memo:Q2,forwardRef:ee1,flushSync:xe,unstable_batchedUpdates:Re,StrictMode:ke,Suspense:h,SuspenseList:p1,lazy:re,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ye1};export{te1 as Children,M as Component,H as Fragment,C1 as PureComponent,ke as StrictMode,h as Suspense,p1 as SuspenseList,ye1 as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Se as cloneElement,ye as createContext,le as createElement,be as createFactory,ue1 as createPortal,he as createRef,Me as default,Ne as findDOMNode,xe as flushSync,ee1 as forwardRef,pe1 as hydrate,Ue as isElement,Ce as isFragment,Ee as isMemo,v1 as isValidElement,re as lazy,Q2 as memo,fe1 as render,V1 as startTransition,ge as unmountComponentAtNode,Re as unstable_batchedUpdates,Oe as useDeferredValue,we as useInsertionEffect,De as useSyncExternalStore,Pe as useTransition,Te as version};