/* esm.sh - esbuild bundle(preact@10.20.2) es2022 production */ var T,d,Q,re,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,o,r,l={};for(r in e)r=="key"?i=e[r]:r=="ref"?o=e[r]:l[r]=e[r];if(arguments.length>2&&(l.children=arguments.length>3?T.call(arguments,2):t),typeof _=="function"&&_.defaultProps!=null)for(r in _.defaultProps)l[r]===void 0&&(l[r]=_.defaultProps[r]);return w(_,l,i,o,null)}function w(_,e,t,i,o){var r={type:_,props:e,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Q,__i:-1,__u:0};return o==null&&d.vnode!=null&&d.vnode(r),r}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=!0)&&x.push(_)&&!W.__r++||q!==d.debounceRendering)&&((q=d.debounceRendering)||X)(W)}function W(){var _,e,t,i,o,r,l,s;for(x.sort(I);_=x.shift();)_.__d&&(e=x.length,i=void 0,r=(o=(t=_).__v).__e,l=[],s=[],t.__P&&((i=b({},o)).__v=o.__v+1,d.vnode&&d.vnode(i),V(t.__P,i,o,t.__n,t.__P.ownerSVGElement!==void 0,32&o.__u?[r]:null,l,r??P(o),!!(32&o.__u),s),i.__v=o.__v,i.__.__k[i.__i]=i,oe(l,i,s),i.__e!=r&&_e(i)),x.length>e&&x.sort(I));W.__r=0}function te(_,e,t,i,o,r,l,s,f,u,p){var n,m,c,h,k,v=i&&i.__k||Z,a=e.length;for(t.__d=f,se(t,e,v),f=t.__d,n=0;n0?w(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=_,o.__b=_.__b+1,s=ce(o,t,l,p),o.__i=s,r=null,s!==-1&&(p--,(r=t[s])&&(r.__u|=131072)),r==null||r.__v===null?(s==-1&&n--,typeof o.type!="function"&&(o.__u|=65536)):s!==l&&(s===l+1?n++:s>l?p>f-l?n+=s-l:n--:s(f!=null&&!(131072&f.__u)?1:0))for(;l>=0||s=0){if((f=e[l])&&!(131072&f.__u)&&o==f.key&&r===f.type)return l;l--}if(s2&&(s.children=arguments.length>3?T.call(arguments,2):t),w(_.type,s,i||_.key,o||_.ref,null)}function ye(_,e){var t={__c:e="__cC"+Y++,__:_,Consumer:function(i,o){return i.children(o)},Provider:function(i){var o,r;return this.getChildContext||(o=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&o.some(function(s){s.__e=!0,R(s)})},this.sub=function(l){o.push(l);var s=l.componentWillUnmount;l.componentWillUnmount=function(){o.splice(o.indexOf(l),1),s&&s.call(l)}}),i.children}};return t.Provider.__=t.Consumer.contextType=t}T=Z.slice,d={__e:function(_,e,t,i){for(var o,r,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&r.getDerivedStateFromError!=null&&(o.setState(r.getDerivedStateFromError(_)),l=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(_,i||{}),l=o.__d),l)return o.__E=o}catch(s){_=s}throw _}},Q=0,re=function(_){return _!=null&&_.constructor==null},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=!0,_&&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(!1),O=K(!0),Y=0;export{M as Component,H as Fragment,ve as cloneElement,ye as createContext,le as createElement,he as createRef,le as h,de as hydrate,re as isValidElement,d as options,ae as render,ue as toChildArray}; //# sourceMappingURL=preact.mjs.map