able-baker/bundled/preact/compat.js

4 lines
24 KiB
JavaScript

///<reference types="https://esm.sh/v128/preact@10.20.2/compat/src/index.d.ts"/>
/* esm.sh - esbuild bundle(preact@10.20.2/compat) es2022 production */
var V,f,Se,st,R,Ce,xe,ee,oe,te,_e,Ne,L={},Pe=[],ct=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,q=Array.isArray;function P(e,t){for(var _ in t)e[_]=t[_];return e}function we(e){var t=e.parentNode;t&&t.removeChild(e)}function S(e,t,_){var n,r,o,i={};for(o in t)o=="key"?n=t[o]:o=="ref"?r=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?V.call(arguments,2):_),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return A(e,i,n,r,null)}function A(e,t,_,n,r){var o={type:e,props:t,key:_,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r??++Se,__i:-1,__u:0};return r==null&&f.vnode!=null&&f.vnode(o),o}function ue(){return{current:null}}function x(e){return e.children}function k(e,t){this.props=e,this.context=t}function U(e,t){if(t==null)return e.__?U(e.__,e.__i+1):null;for(var _;t<e.__k.length;t++)if((_=e.__k[t])!=null&&_.__e!=null)return _.__e;return typeof e.type=="function"?U(e):null}function He(e){var t,_;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((_=e.__k[t])!=null&&_.__e!=null){e.__e=e.__c.base=_.__e;break}return He(e)}}function ne(e){(!e.__d&&(e.__d=!0)&&R.push(e)&&!j.__r++||Ce!==f.debounceRendering)&&((Ce=f.debounceRendering)||xe)(j)}function j(){var e,t,_,n,r,o,i,a;for(R.sort(ee);e=R.shift();)e.__d&&(t=R.length,n=void 0,o=(r=(_=e).__v).__e,i=[],a=[],_.__P&&((n=P({},r)).__v=r.__v+1,f.vnode&&f.vnode(n),ie(_.__P,n,r,_.__n,_.__P.ownerSVGElement!==void 0,32&r.__u?[o]:null,i,o??U(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,De(i,n,a),n.__e!=o&&He(n)),R.length>t&&R.sort(ee));j.__r=0}function Re(e,t,_,n,r,o,i,a,s,l,p){var u,d,c,y,E,g=n&&n.__k||Pe,v=t.length;for(_.__d=s,ft(_,t,g),s=_.__d,u=0;u<v;u++)(c=_.__k[u])!=null&&typeof c!="boolean"&&typeof c!="function"&&(d=c.__i===-1?L:g[c.__i]||L,c.__i=u,ie(e,c,d,r,o,i,a,s,l,p),y=c.__e,c.ref&&d.ref!=c.ref&&(d.ref&&ae(d.ref,null,c),p.push(c.ref,c.__c||y,c)),E==null&&y!=null&&(E=y),65536&c.__u||d.__k===c.__k?(s&&!s.isConnected&&(s=U(d)),s=Ue(c,s,e)):typeof c.type=="function"&&c.__d!==void 0?s=c.__d:y&&(s=y.nextSibling),c.__d=void 0,c.__u&=-196609);_.__d=s,_.__e=E}function ft(e,t,_){var n,r,o,i,a,s=t.length,l=_.length,p=l,u=0;for(e.__k=[],n=0;n<s;n++)i=n+u,(r=e.__k[n]=(r=t[n])==null||typeof r=="boolean"||typeof r=="function"?null:typeof r=="string"||typeof r=="number"||typeof r=="bigint"||r.constructor==String?A(null,r,null,null,null):q(r)?A(x,{children:r},null,null,null):r.constructor===void 0&&r.__b>0?A(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)!=null?(r.__=e,r.__b=e.__b+1,a=pt(r,_,i,p),r.__i=a,o=null,a!==-1&&(p--,(o=_[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&u--,typeof r.type!="function"&&(r.__u|=65536)):a!==i&&(a===i+1?u++:a>i?p>s-i?u+=a-i:u--:a<i?a==i-1&&(u=a-i):u=0,a!==n+u&&(r.__u|=65536))):(o=_[i])&&o.key==null&&o.__e&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=U(o)),re(o,o,!1),_[i]=null,p--);if(p)for(n=0;n<l;n++)(o=_[n])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=U(o)),re(o,o))}function Ue(e,t,_){var n,r;if(typeof e.type=="function"){for(n=e.__k,r=0;n&&r<n.length;r++)n[r]&&(n[r].__=e,t=Ue(n[r],t,_));return t}e.__e!=t&&(_.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function N(e,t){return t=t||[],e==null||typeof e=="boolean"||(q(e)?e.some(function(_){N(_,t)}):t.push(e)),t}function pt(e,t,_,n){var r=e.key,o=e.type,i=_-1,a=_+1,s=t[_];if(s===null||s&&r==s.key&&o===s.type&&!(131072&s.__u))return _;if(n>(s!=null&&!(131072&s.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((s=t[i])&&!(131072&s.__u)&&r==s.key&&o===s.type)return i;i--}if(a<t.length){if((s=t[a])&&!(131072&s.__u)&&r==s.key&&o===s.type)return a;a++}}return-1}function ke(e,t,_){t[0]==="-"?e.setProperty(t,_??""):e[t]=_==null?"":typeof _!="number"||ct.test(t)?_:_+"px"}function z(e,t,_,n,r){var o;e:if(t==="style")if(typeof _=="string")e.style.cssText=_;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)_&&t in _||ke(e.style,t,"");if(_)for(t in _)n&&_[t]===n[t]||ke(e.style,t,_[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=_,_?n?_.u=n.u:(_.u=oe,e.addEventListener(t,o?_e:te,o)):e.removeEventListener(t,o?_e:te,o);else{if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=_??"";break e}catch{}typeof _=="function"||(_==null||_===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,_))}}function Ee(e){return function(t){if(this.l){var _=this.l[t.type+e];if(t.t==null)t.t=oe++;else if(t.t<_.u)return;return _(f.event?f.event(t):t)}}}function ie(e,t,_,n,r,o,i,a,s,l){var p,u,d,c,y,E,g,v,b,H,W,F,be,$,X,C=t.type;if(t.constructor!==void 0)return null;128&_.__u&&(s=!!(32&_.__u),o=[a=t.__e=_.__e]),(p=f.__b)&&p(t);e:if(typeof C=="function")try{if(v=t.props,b=(p=C.contextType)&&n[p.__c],H=p?b?b.props.value:p.__:n,_.__c?g=(u=t.__c=_.__c).__=u.__E:("prototype"in C&&C.prototype.render?t.__c=u=new C(v,H):(t.__c=u=new k(v,H),u.constructor=C,u.render=ht),b&&b.sub(u),u.props=v,u.state||(u.state={}),u.context=H,u.__n=n,d=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),C.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=P({},u.__s)),P(u.__s,C.getDerivedStateFromProps(v,u.__s))),c=u.props,y=u.state,u.__v=t,d)C.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(C.getDerivedStateFromProps==null&&v!==c&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,H),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,H)===!1||t.__v===_.__v)){for(t.__v!==_.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=_.__e,t.__k=_.__k,t.__k.forEach(function(B){B&&(B.__=t)}),W=0;W<u._sb.length;W++)u.__h.push(u._sb[W]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,H),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(c,y,E)})}if(u.context=H,u.props=v,u.__P=e,u.__e=!1,F=f.__r,be=0,"prototype"in C&&C.prototype.render){for(u.state=u.__s,u.__d=!1,F&&F(t),p=u.render(u.props,u.state,u.context),$=0;$<u._sb.length;$++)u.__h.push(u._sb[$]);u._sb=[]}else do u.__d=!1,F&&F(t),p=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++be<25);u.state=u.__s,u.getChildContext!=null&&(n=P(P({},n),u.getChildContext())),d||u.getSnapshotBeforeUpdate==null||(E=u.getSnapshotBeforeUpdate(c,y)),Re(e,q(X=p!=null&&p.type===x&&p.key==null?p.props.children:p)?X:[X],t,_,n,r,o,i,a,s,l),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),g&&(u.__E=u.__=null)}catch(B){t.__v=null,s||o!=null?(t.__e=a,t.__u|=s?160:32,o[o.indexOf(a)]=null):(t.__e=_.__e,t.__k=_.__k),f.__e(B,t,_)}else o==null&&t.__v===_.__v?(t.__k=_.__k,t.__e=_.__e):t.__e=dt(_.__e,t,_,n,r,o,i,s,l);(p=f.diffed)&&p(t)}function De(e,t,_){t.__d=void 0;for(var n=0;n<_.length;n++)ae(_[n],_[++n],_[++n]);f.__c&&f.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(o){o.call(r)})}catch(o){f.__e(o,r.__v)}})}function dt(e,t,_,n,r,o,i,a,s){var l,p,u,d,c,y,E,g=_.props,v=t.props,b=t.type;if(b==="svg"&&(r=!0),o!=null){for(l=0;l<o.length;l++)if((c=o[l])&&"setAttribute"in c==!!b&&(b?c.localName===b:c.nodeType===3)){e=c,o[l]=null;break}}if(e==null){if(b===null)return document.createTextNode(v);e=r?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,v.is&&v),o=null,a=!1}if(b===null)g===v||a&&e.data===v||(e.data=v);else{if(o=o&&V.call(e.childNodes),g=_.props||L,!a&&o!=null)for(g={},l=0;l<e.attributes.length;l++)g[(c=e.attributes[l]).name]=c.value;for(l in g)c=g[l],l=="children"||(l=="dangerouslySetInnerHTML"?u=c:l==="key"||l in v||z(e,l,null,c,r));for(l in v)c=v[l],l=="children"?d=c:l=="dangerouslySetInnerHTML"?p=c:l=="value"?y=c:l=="checked"?E=c:l==="key"||a&&typeof c!="function"||g[l]===c||z(e,l,c,g[l],r);if(p)a||u&&(p.__html===u.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(u&&(e.innerHTML=""),Re(e,q(d)?d:[d],t,_,n,r&&b!=="foreignObject",o,i,o?o[0]:_.__k&&U(_,0),a,s),o!=null)for(l=o.length;l--;)o[l]!=null&&we(o[l]);a||(l="value",y!==void 0&&(y!==e[l]||b==="progress"&&!y||b==="option"&&y!==g[l])&&z(e,l,y,g[l],!1),l="checked",E!==void 0&&E!==e[l]&&z(e,l,E,g[l],!1))}return e}function ae(e,t,_){try{typeof e=="function"?e(t):e.current=t}catch(n){f.__e(n,_)}}function re(e,t,_){var n,r;if(f.unmount&&f.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||ae(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){f.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(r=0;r<n.length;r++)n[r]&&re(n[r],t,_||typeof e.type!="function");_||e.__e==null||we(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function ht(e,t,_){return this.constructor(e,_)}function T(e,t,_){var n,r,o,i;f.__&&f.__(e,t),r=(n=typeof _=="function")?null:_&&_.__k||t.__k,o=[],i=[],ie(t,e=(!n&&_||t).__k=S(x,null,[e]),r||L,L,t.ownerSVGElement!==void 0,!n&&_?[_]:r?null:t.firstChild?V.call(t.childNodes):null,o,!n&&_?_:r?r.__e:t.firstChild,n,i),De(o,e,i)}function le(e,t){T(e,t,le)}function Te(e,t,_){var n,r,o,i,a=P({},e.props);for(o in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)o=="key"?n=t[o]:o=="ref"?r=t[o]:a[o]=t[o]===void 0&&i!==void 0?i[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?V.call(arguments,2):_),A(e.type,a,n||e.key,r||e.ref,null)}function se(e,t){var _={__c:t="__cC"+Ne++,__:e,Consumer:function(n,r){return n.children(r)},Provider:function(n){var r,o;return this.getChildContext||(r=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&r.some(function(a){a.__e=!0,ne(a)})},this.sub=function(i){r.push(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){r.splice(r.indexOf(i),1),a&&a.call(i)}}),n.children}};return _.Provider.__=_.Consumer.contextType=_}V=Pe.slice,f={__e:function(e,t,_,n){for(var r,o,i;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&o.getDerivedStateFromError!=null&&(r.setState(o.getDerivedStateFromError(e)),i=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,n||{}),i=r.__d),i)return r.__E=r}catch(a){e=a}throw e}},Se=0,st=function(e){return e!=null&&e.constructor==null},k.prototype.setState=function(e,t){var _;_=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=P({},this.state),typeof e=="function"&&(e=e(P({},_),this.props)),e&&P(_,e),e!=null&&this.__v&&(t&&this._sb.push(t),ne(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ne(this))},k.prototype.render=x,R=[],xe=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ee=function(e,t){return e.__v.__b-t.__v.__b},j.__r=0,oe=0,te=Ee(!1),_e=Ee(!0),Ne=0;var w,h,ce,Oe,O=0,$e=[],G=[],m=f,Fe=m.__b,Ae=m.__r,Le=m.diffed,Ve=m.__c,Me=m.unmount,Ie=m.__;function D(e,t){m.__h&&m.__h(h,e,O||t),O=0;var _=h.__H||(h.__H={__:[],__h:[]});return e>=_.__.length&&_.__.push({__V:G}),_.__[e]}function Z(e){return O=1,pe(Ze,e)}function pe(e,t,_){var n=D(w++,2);if(n.t=e,!n.__c&&(n.__=[_?_(t):Ze(void 0,t),function(a){var s=n.__N?n.__N[0]:n.__[0],l=n.t(s,a);s!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=h,!h.u)){var r=function(a,s,l){if(!n.__c.__H)return!0;var p=n.__c.__H.__.filter(function(d){return!!d.__c});if(p.every(function(d){return!d.__N}))return!o||o.call(this,a,s,l);var u=!1;return p.forEach(function(d){if(d.__N){var c=d.__[0];d.__=d.__N,d.__N=void 0,c!==d.__[0]&&(u=!0)}}),!(!u&&n.__c.props===a)&&(!o||o.call(this,a,s,l))};h.u=!0;var o=h.shouldComponentUpdate,i=h.componentWillUpdate;h.componentWillUpdate=function(a,s,l){if(this.__e){var p=o;o=void 0,r(a,s,l),o=p}i&&i.call(this,a,s,l)},h.shouldComponentUpdate=r}return n.__N||n.__}function de(e,t){var _=D(w++,3);!m.__s&&he(_.__H,t)&&(_.__=e,_.i=t,h.__H.__h.push(_))}function M(e,t){var _=D(w++,4);!m.__s&&he(_.__H,t)&&(_.__=e,_.i=t,h.__h.push(_))}function Be(e){return O=5,J(function(){return{current:e}},[])}function ze(e,t,_){O=6,M(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},_==null?_:_.concat(e))}function J(e,t){var _=D(w++,7);return he(_.__H,t)?(_.__V=e(),_.i=t,_.__h=e,_.__V):_.__}function je(e,t){return O=8,J(function(){return e},t)}function qe(e){var t=h.context[e.__c],_=D(w++,9);return _.c=e,t?(_.__==null&&(_.__=!0,t.sub(h)),t.props.value):e.__}function Ge(e,t){m.useDebugValue&&m.useDebugValue(t?t(e):e)}function t_(e){var t=D(w++,10),_=Z();return t.__=e,h.componentDidCatch||(h.componentDidCatch=function(n,r){t.__&&t.__(n,r),_[1](n)}),[_[0],function(){_[1](void 0)}]}function Ye(){var e=D(w++,11);if(!e.__){for(var t=h.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var _=t.__m||(t.__m=[0,0]);e.__="P"+_[0]+"-"+_[1]++}return e.__}function vt(){for(var e;e=$e.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Y),e.__H.__h.forEach(fe),e.__H.__h=[]}catch(t){e.__H.__h=[],m.__e(t,e.__v)}}m.__b=function(e){h=null,Fe&&Fe(e)},m.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ie&&Ie(e,t)},m.__r=function(e){Ae&&Ae(e),w=0;var t=(h=e.__c).__H;t&&(ce===h?(t.__h=[],h.__h=[],t.__.forEach(function(_){_.__N&&(_.__=_.__N),_.__V=G,_.__N=_.i=void 0})):(t.__h.forEach(Y),t.__h.forEach(fe),t.__h=[],w=0)),ce=h},m.diffed=function(e){Le&&Le(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&($e.push(t)!==1&&Oe===m.requestAnimationFrame||((Oe=m.requestAnimationFrame)||mt)(vt)),t.__H.__.forEach(function(_){_.i&&(_.__H=_.i),_.__V!==G&&(_.__=_.__V),_.i=void 0,_.__V=G})),ce=h=null},m.__c=function(e,t){t.some(function(_){try{_.__h.forEach(Y),_.__h=_.__h.filter(function(n){return!n.__||fe(n)})}catch(n){t.some(function(r){r.__h&&(r.__h=[])}),t=[],m.__e(n,_.__v)}}),Ve&&Ve(e,t)},m.unmount=function(e){Me&&Me(e);var t,_=e.__c;_&&_.__H&&(_.__H.__.forEach(function(n){try{Y(n)}catch(r){t=r}}),_.__H=void 0,t&&m.__e(t,_.__v))};var We=typeof requestAnimationFrame=="function";function mt(e){var t,_=function(){clearTimeout(n),We&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(_,100);We&&(t=requestAnimationFrame(_))}function Y(e){var t=h,_=e.__c;typeof _=="function"&&(e.__c=void 0,_()),h=t}function fe(e){var t=h;e.__c=e.__(),h=t}function he(e,t){return!e||e.length!==t.length||t.some(function(_,n){return _!==e[n]})}function Ze(e,t){return typeof t=="function"?t(e):t}function rt(e,t){for(var _ in t)e[_]=t[_];return e}function me(e,t){for(var _ in e)if(_!=="__source"&&!(_ in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function ye(e,t){this.props=e,this.context=t}function yt(e,t){function _(r){var o=this.props.ref,i=o==r.ref;return!i&&o&&(o.call?o(null):o.current=null),t?!t(this.props,r)||!i:me(this.props,r)}function n(r){return this.shouldComponentUpdate=_,S(e,r)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(ye.prototype=new k).isPureReactComponent=!0,ye.prototype.shouldComponentUpdate=function(e,t){return me(this.props,e)||me(this.state,t)};var Je=f.__b;f.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Je&&Je(e)};var gt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function bt(e){function t(_){var n=rt({},_);return delete n.ref,e(n,_.ref||null)}return t.$$typeof=gt,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ke=function(e,t){return e==null?null:N(N(e).map(t))},Ct={map:Ke,forEach:Ke,count:function(e){return e?N(e).length:0},only:function(e){var t=N(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:N},kt=f.__e;f.__e=function(e,t,_,n){if(e.then){for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return t.__e==null&&(t.__e=_.__e,t.__k=_.__k),r.__c(e,t)}kt(e,t,_,n)};var Qe=f.unmount;function ot(e,t,_){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=rt({},e)).__c!=null&&(e.__c.__P===_&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return ot(n,t,_)})),e}function ut(e,t,_){return e&&_&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return ut(n,t,_)}),e.__c&&e.__c.__P===t&&(e.__e&&_.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=_)),e}function K(){this.__u=0,this.t=null,this.__b=null}function it(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Et(e){var t,_,n;function r(o){if(t||(t=e()).then(function(i){_=i.default||i},function(i){n=i}),n)throw n;if(!_)throw t;return S(_,o)}return r.displayName="Lazy",r.__f=!0,r}function I(){this.u=null,this.o=null}f.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Qe&&Qe(e)},(K.prototype=new k).__c=function(e,t){var _=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(_);var r=it(n.__v),o=!1,i=function(){o||(o=!0,_.__R=null,r?r(a):a())};_.__R=i;var a=function(){if(!--n.__u){if(n.state.__a){var s=n.state.__a;n.__v.__k[0]=ut(s,s.__c.__P,s.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.t.pop();)l.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},K.prototype.componentWillUnmount=function(){this.t=[]},K.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var _=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=ot(this.__b,_,n.__O=n.__P)}this.__b=null}var r=t.__a&&S(x,null,e.fallback);return r&&(r.__u&=-33),[S(x,null,t.__a?null:e.children),r]};var Xe=function(e,t,_){if(++_[1]===_[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(_=e.u;_;){for(;_.length>3;)_.pop()();if(_[1]<_[0])break;e.u=_=_[2]}};function St(e){return this.getChildContext=function(){return e.context},e.children}function xt(e){var t=this,_=e.i;t.componentWillUnmount=function(){T(null,t.l),t.l=null,t.i=null},t.i&&t.i!==_&&t.componentWillUnmount(),t.l||(t.i=_,t.l={nodeType:1,parentNode:_,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n)},insertBefore:function(n,r){this.childNodes.push(n),t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n)}}),T(S(St,{context:t.context},e.__v),t.l)}function Nt(e,t){var _=S(xt,{__v:e,i:t});return _.containerInfo=t,_}(I.prototype=new k).__a=function(e){var t=this,_=it(t.__v),n=t.o.get(e);return n[0]++,function(r){var o=function(){t.props.revealOrder?(n.push(r),Xe(t,e,n)):r()};_?_(o):o()}},I.prototype.render=function(e){this.u=null,this.o=new Map;var t=N(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var _=t.length;_--;)this.o.set(t[_],this.u=[1,0,this.u]);return e.children},I.prototype.componentDidUpdate=I.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,_){Xe(e,_,t)})};var at=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Pt=/^(?: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]/,wt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ht=/[A-Z0-9]/g,Rt=typeof document<"u",Ut=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Dt(e,t,_){return t.__k==null&&(t.textContent=""),T(e,t),typeof _=="function"&&_(),e?e.__c:null}function Tt(e,t,_){return le(e,t),typeof _=="function"&&_(),e?e.__c:null}k.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(k.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var et=f.event;function Ot(){}function Ft(){return this.cancelBubble}function At(){return this.defaultPrevented}f.event=function(e){return et&&(e=et(e)),e.persist=Ot,e.isPropagationStopped=Ft,e.isDefaultPrevented=At,e.nativeEvent=e};var ge,Lt={enumerable:!1,configurable:!0,get:function(){return this.class}},tt=f.vnode;f.vnode=function(e){typeof e.type=="string"&&function(t){var _=t.props,n=t.type,r={};for(var o in _){var i=_[o];if(!(o==="value"&&"defaultValue"in _&&i==null||Rt&&o==="children"&&n==="noscript"||o==="class"||o==="className")){var a=o.toLowerCase();o==="defaultValue"&&"value"in _&&_.value==null?o="value":o==="download"&&i===!0?i="":a==="translate"&&i==="no"?i=!1:a==="ondoubleclick"?o="ondblclick":a!=="onchange"||n!=="input"&&n!=="textarea"||Ut(_.type)?a==="onfocus"?o="onfocusin":a==="onblur"?o="onfocusout":wt.test(o)?o=a:n.indexOf("-")===-1&&Pt.test(o)?o=o.replace(Ht,"-$&").toLowerCase():i===null&&(i=void 0):a=o="oninput",a==="oninput"&&r[o=a]&&(o="oninputCapture"),r[o]=i}}n=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=N(_.children).forEach(function(s){s.props.selected=r.value.indexOf(s.props.value)!=-1})),n=="select"&&r.defaultValue!=null&&(r.value=N(_.children).forEach(function(s){s.props.selected=r.multiple?r.defaultValue.indexOf(s.props.value)!=-1:r.defaultValue==s.props.value})),_.class&&!_.className?(r.class=_.class,Object.defineProperty(r,"className",Lt)):(_.className&&!_.class||_.class&&_.className)&&(r.class=r.className=_.className),t.props=r}(e),e.$$typeof=at,tt&&tt(e)};var _t=f.__r;f.__r=function(e){_t&&_t(e),ge=e.__c};var nt=f.diffed;f.diffed=function(e){nt&&nt(e);var t=e.props,_=e.__e;_!=null&&e.type==="textarea"&&"value"in t&&t.value!==_.value&&(_.value=t.value==null?"":t.value),ge=null};var Vt={ReactCurrentDispatcher:{current:{readContext:function(e){return ge.__n[e.__c].props.value}}}},o_="17.0.2";function Mt(e){return S.bind(null,e)}function Q(e){return!!e&&e.$$typeof===at}function It(e){return Q(e)&&e.type===x}function Wt(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function $t(e){return Q(e)?Te.apply(null,arguments):e}function Bt(e){return!!e.__k&&(T(null,e),!0)}function zt(e){return e&&(e.base||e.nodeType===1&&e)||null}var jt=function(e,t){return e(t)},qt=function(e,t){return e(t)},Gt=x;function lt(e){e()}function Yt(e){return e}function Zt(){return[!1,lt]}var Jt=M,Kt=Q;function Qt(e,t){var _=t(),n=Z({h:{__:_,v:t}}),r=n[0].h,o=n[1];return M(function(){r.__=_,r.v=t,ve(r)&&o({h:r})},[e,_,t]),de(function(){return ve(r)&&o({h:r}),e(function(){ve(r)&&o({h:r})})},[e]),_}function ve(e){var t,_,n=e.v,r=e.__;try{var o=n();return!((t=r)===(_=o)&&(t!==0||1/t==1/_)||t!=t&&_!=_)}catch{return!0}}var u_={useState:Z,useId:Ye,useReducer:pe,useEffect:de,useLayoutEffect:M,useInsertionEffect:Jt,useTransition:Zt,useDeferredValue:Yt,useSyncExternalStore:Qt,startTransition:lt,useRef:Be,useImperativeHandle:ze,useMemo:J,useCallback:je,useContext:qe,useDebugValue:Ge,version:"17.0.2",Children:Ct,render:Dt,hydrate:Tt,unmountComponentAtNode:Bt,createPortal:Nt,createElement:S,createContext:se,createFactory:Mt,cloneElement:$t,createRef:ue,Fragment:x,isValidElement:Q,isElement:Kt,isFragment:It,isMemo:Wt,findDOMNode:zt,Component:k,PureComponent:ye,memo:yt,forwardRef:bt,flushSync:qt,unstable_batchedUpdates:jt,StrictMode:Gt,Suspense:K,SuspenseList:I,lazy:Et,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Vt};export{Ct as Children,k as Component,x as Fragment,ye as PureComponent,Gt as StrictMode,K as Suspense,I as SuspenseList,Vt as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$t as cloneElement,se as createContext,S as createElement,Mt as createFactory,Nt as createPortal,ue as createRef,u_ as default,zt as findDOMNode,qt as flushSync,bt as forwardRef,Tt as hydrate,Kt as isElement,It as isFragment,Wt as isMemo,Q as isValidElement,Et as lazy,yt as memo,Dt as render,lt as startTransition,Bt as unmountComponentAtNode,jt as unstable_batchedUpdates,je as useCallback,qe as useContext,Ge as useDebugValue,Yt as useDeferredValue,de as useEffect,t_ as useErrorBoundary,Ye as useId,ze as useImperativeHandle,Jt as useInsertionEffect,M as useLayoutEffect,J as useMemo,pe as useReducer,Be as useRef,Z as useState,Qt as useSyncExternalStore,Zt as useTransition,o_ as version};
//# sourceMappingURL=compat.bundle.js.map