/* esm.sh - preact@10.28.4 */ var E,d,X,se,C,J,Y,Z,ee,j,R,$,_e,A={},F=[],ce=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,M=Array.isArray;function b(_,e){for(var t in e)_[t]=e[t];return _}function V(_){_&&_.parentNode&&_.parentNode.removeChild(_)}function ue(_,e,t){var o,l,n,i={};for(n in e)n=="key"?o=e[n]:n=="ref"?l=e[n]:i[n]=e[n];if(arguments.length>2&&(i.children=arguments.length>3?E.call(arguments,2):t),typeof _=="function"&&_.defaultProps!=null)for(n in _.defaultProps)i[n]===void 0&&(i[n]=_.defaultProps[n]);return T(_,i,o,l,null)}function T(_,e,t,o,l){var n={type:_,props:e,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:l??++X,__i:-1,__u:0};return l==null&&d.vnode!=null&&d.vnode(n),n}function ge(){return{current:null}}function H(_){return _.children}function W(_,e){this.props=_,this.context=e}function S(_,e){if(e==null)return _.__?S(_.__,_.__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"?S(_):null}function pe(_){if(_.__P&&_.__d){var e=_.__v,t=e.__e,o=[],l=[],n=b({},e);n.__v=e.__v+1,d.vnode&&d.vnode(n),z(_.__P,n,e,_.__n,_.__P.namespaceURI,32&e.__u?[t]:null,o,t??S(e),!!(32&e.__u),l),n.__v=e.__v,n.__.__k[n.__i]=n,oe(o,n,l),e.__e=e.__=null,n.__e!=t&&te(n)}}function te(_){if((_=_.__)!=null&&_.__c!=null)return _.__e=_.__c.base=null,_.__k.some(function(e){if(e!=null&&e.__e!=null)return _.__e=_.__c.base=e.__e}),te(_)}function B(_){(!_.__d&&(_.__d=!0)&&C.push(_)&&!N.__r++||J!=d.debounceRendering)&&((J=d.debounceRendering)||Y)(N)}function N(){for(var _,e=1;C.length;)C.length>e&&C.sort(Z),_=C.shift(),e=C.length,pe(_);N.__r=0}function ne(_,e,t,o,l,n,i,c,f,s,p){var r,v,u,m,g,y,h,a=o&&o.__k||F,w=e.length;for(f=fe(t,e,a,f,w),r=0;r0?i=_.__k[n]=T(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):_.__k[n]=i,f=n+v,i.__=_,i.__b=_.__b+1,c=null,(s=i.__i=he(i,t,f,r))!=-1&&(r--,(c=t[s])&&(c.__u|=2)),c==null||c.__v==null?(s==-1&&(l>p?v--:lf?v--:v++,i.__u|=4))):_.__k[n]=null;if(r)for(n=0;n(p?1:0)){for(l=t-1,n=t+1;l>=0||n=0?l--:n++])!=null&&(2&s.__u)==0&&c==s.key&&f==s.type)return i}return-1}function K(_,e,t){e[0]=="-"?_.setProperty(e,t??""):_[e]=t==null?"":typeof t!="number"||ce.test(e)?t:t+"px"}function L(_,e,t,o,l){var n,i;e:if(e=="style")if(typeof t=="string")_.style.cssText=t;else{if(typeof o=="string"&&(_.style.cssText=o=""),o)for(e in o)t&&e in t||K(_.style,e,"");if(t)for(e in t)o&&t[e]==o[e]||K(_.style,e,t[e])}else if(e[0]=="o"&&e[1]=="n")n=e!=(e=e.replace(ee,"$1")),i=e.toLowerCase(),e=i in _||e=="onFocusOut"||e=="onFocusIn"?i.slice(2):e.slice(2),_.l||(_.l={}),_.l[e+n]=t,t?o?t.u=o.u:(t.u=j,_.addEventListener(e,n?$:R,n)):_.removeEventListener(e,n?$:R,n);else{if(l=="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 _)try{_[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!="-"?_.removeAttribute(e):_.setAttribute(e,e=="popover"&&t==1?"":t))}}function Q(_){return function(e){if(this.l){var t=this.l[e.type+_];if(e.t==null)e.t=j++;else if(e.t0?_:M(_)?_.map(le):b({},_)}function de(_,e,t,o,l,n,i,c,f){var s,p,r,v,u,m,g,y=t.props||A,h=e.props,a=e.type;if(a=="svg"?l="http://www.w3.org/2000/svg":a=="math"?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),n!=null){for(s=0;s2&&(c.children=arguments.length>3?E.call(arguments,2):t),T(_.type,c,o||_.key,l||_.ref,null)}function be(_){function e(t){var o,l;return this.getChildContext||(o=new Set,(l={})[e.__c]=this,this.getChildContext=function(){return l},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&o.forEach(function(i){i.__e=!0,B(i)})},this.sub=function(n){o.add(n);var i=n.componentWillUnmount;n.componentWillUnmount=function(){o&&o.delete(n),i&&i.call(n)}}),t.children}return e.__c="__cC"+_e++,e.__=_,e.Provider=e.__l=(e.Consumer=function(t,o){return t.children(o)}).contextType=e,e}E=F.slice,d={__e:function(_,e,t,o){for(var l,n,i;e=e.__;)if((l=e.__c)&&!l.__)try{if((n=l.constructor)&&n.getDerivedStateFromError!=null&&(l.setState(n.getDerivedStateFromError(_)),i=l.__d),l.componentDidCatch!=null&&(l.componentDidCatch(_,o||{}),i=l.__d),i)return l.__E=l}catch(c){_=c}throw _}},X=0,se=function(_){return _!=null&&_.constructor===void 0},W.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),B(this))},W.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),B(this))},W.prototype.render=H,C=[],Y=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Z=function(_,e){return _.__v.__b-e.__v.__b},N.__r=0,ee=/(PointerCapture)$|Capture$/i,j=0,R=Q(!1),$=Q(!0),_e=0;export{W as Component,H as Fragment,ke as cloneElement,be as createContext,ue as createElement,ge as createRef,ue as h,ye as hydrate,se as isValidElement,d as options,me as render,ae as toChildArray}; //preact.mjs.map