lilact 0.28.4 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/lilact.development.js +227 -179
  2. package/dist/lilact.development.js.map +3 -3
  3. package/dist/lilact.development.min.js +29 -29
  4. package/dist/lilact.development.min.js.map +3 -3
  5. package/dist/lilact.production.min.js +29 -29
  6. package/docs/assets/navigation.js +1 -1
  7. package/docs/assets/search.js +1 -1
  8. package/docs/classes/accessories.ErrorBoundary.html +8 -8
  9. package/docs/classes/accessories.Suspense.html +7 -7
  10. package/docs/classes/components.Component.html +11 -11
  11. package/docs/classes/components.HTMLComponent.html +11 -11
  12. package/docs/classes/components.RootComponent.html +11 -11
  13. package/docs/functions/components.cloneComponent.html +1 -1
  14. package/docs/functions/components.createComponent.html +1 -1
  15. package/docs/functions/components.createPortal.html +1 -1
  16. package/docs/functions/components.createRoot.html +1 -1
  17. package/docs/functions/components.memo.html +1 -1
  18. package/docs/functions/components.render.html +1 -1
  19. package/docs/functions/errors.asError.html +1 -0
  20. package/docs/functions/run.lazy.html +1 -1
  21. package/docs/functions/run.require.html +1 -1
  22. package/docs/functions/run.run.html +1 -1
  23. package/docs/functions/run.runScripts.html +1 -1
  24. package/docs/modules/errors.html +1 -1
  25. package/docs/static/index.html +3 -6
  26. package/docs/static/lilact.development.js +227 -179
  27. package/docs/static/lilact.development.js.map +3 -3
  28. package/docs/static/lilact.development.min.js +29 -29
  29. package/docs/static/lilact.development.min.js.map +3 -3
  30. package/docs/static/lilact.production.min.js +29 -29
  31. package/docs/variables/components.cloneElement.html +1 -1
  32. package/docs/variables/errors.blocksInfo.html +1 -0
  33. package/examples/index.html +3 -4
  34. package/examples/lilact.development.js +227 -179
  35. package/examples/lilact.development.js.map +3 -3
  36. package/examples/lilact.development.min.js +29 -29
  37. package/examples/lilact.development.min.js.map +3 -3
  38. package/examples/lilact.production.min.js +29 -29
  39. package/package.json +1 -1
  40. package/src/components.jsx +118 -122
  41. package/src/errors.jsx +4 -4
  42. package/src/expscan.js +40 -15
  43. package/src/jsx.js +67 -38
  44. package/src/run.jsx +51 -39
  45. package/docs/variables/errors.blocks_info.html +0 -1
@@ -54,8 +54,8 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
54
54
  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55
55
  */
56
56
 
57
- var zn=Object.defineProperty;var wo=(e,t,n)=>t in e?zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Z=(e,t)=>{for(var n in t)zn(e,n,{get:t[n],enumerable:!0})};var z=(e,t,n)=>wo(e,typeof t!="symbol"?t+"":t,n);var Qt={};Z(Qt,{__DO_NOT_USE__ActionTypes:()=>st,applyMiddleware:()=>So,bindActionCreators:()=>To,combineReducers:()=>ko,compose:()=>tr,createStore:()=>zt,isAction:()=>Co,isPlainObject:()=>Zt,legacy_createStore:()=>Eo});function U(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var xo=typeof Symbol=="function"&&Symbol.observable||"@@observable",Qn=xo,Jt=()=>Math.random().toString(36).substring(7).split("").join("."),_o={INIT:`@@redux/INIT${Jt()}`,REPLACE:`@@redux/REPLACE${Jt()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Jt()}`},st=_o;function Zt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function zt(e,t,n){if(typeof e!="function")throw new Error(U(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(U(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(U(1));return n(zt)(e,t)}let r=e,o=t,s=new Map,c=s,a=0,l=!1;function f(){c===s&&(c=new Map,s.forEach((_,g)=>{c.set(g,_)}))}function u(){if(l)throw new Error(U(3));return o}function p(_){if(typeof _!="function")throw new Error(U(4));if(l)throw new Error(U(5));let g=!0;f();let w=a++;return c.set(w,_),function(){if(g){if(l)throw new Error(U(6));g=!1,f(),c.delete(w),s=null}}}function d(_){if(!Zt(_))throw new Error(U(7));if(typeof _.type>"u")throw new Error(U(8));if(typeof _.type!="string")throw new Error(U(17));if(l)throw new Error(U(9));try{l=!0,o=r(o,_)}finally{l=!1}return(s=c).forEach(w=>{w()}),_}function y(_){if(typeof _!="function")throw new Error(U(10));r=_,d({type:st.REPLACE})}function m(){let _=p;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(U(11));function w(){let T=g;T.next&&T.next(u())}return w(),{unsubscribe:_(w)}},[Qn](){return this}}}return d({type:st.INIT}),{dispatch:d,subscribe:p,getState:u,replaceReducer:y,[Qn]:m}}function Eo(e,t,n){return zt(e,t,n)}function vo(e){Object.keys(e).forEach(t=>{let n=e[t];if(typeof n(void 0,{type:st.INIT})>"u")throw new Error(U(12));if(typeof n(void 0,{type:st.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(U(13))})}function ko(e){let t=Object.keys(e),n={};for(let c=0;c<t.length;c++){let a=t[c];typeof e[a]=="function"&&(n[a]=e[a])}let r=Object.keys(n),o,s;try{vo(n)}catch(c){s=c}return function(a={},l){if(s)throw s;let f=!1,u={};for(let p=0;p<r.length;p++){let d=r[p],y=n[d],m=a[d],h=y(m,l);if(typeof h>"u"){let _=l&&l.type;throw new Error(U(14))}u[d]=h,f=f||h!==m}return f=f||r.length!==Object.keys(a).length,f?u:a}}function er(e,t){return function(...n){return t(e.apply(this,n))}}function To(e,t){if(typeof e=="function")return er(e,t);if(typeof e!="object"||e===null)throw new Error(U(16));let n={};for(let r in e){let o=e[r];typeof o=="function"&&(n[r]=er(o,t))}return n}function tr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function So(...e){return t=>(n,r)=>{let o=t(n,r),s=()=>{throw new Error(U(15))},c={getState:o.getState,dispatch:(l,...f)=>s(l,...f)},a=e.map(l=>l(c));return s=tr(...a)(o.dispatch),{...o,dispatch:s}}}function Co(e){return Zt(e)&&"type"in e&&typeof e.type=="string"}var cn={};Z(cn,{cache:()=>ei,css:()=>sn,cx:()=>Ho,flush:()=>Yo,getRegisteredStyles:()=>Zo,hydrate:()=>Go,injectGlobal:()=>pt,keyframes:()=>zo,merge:()=>Jo,sheet:()=>Qo});var Oo=!1;function $o(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ao(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var nr=(function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!Oo:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ao(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=$o(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})();var q="-ms-",ct="-moz-",$="-webkit-",Tt="comm",We="rule",Be="decl";var rr="@import";var St="@keyframes";var or="@layer";var ir=Math.abs,je=String.fromCharCode,sr=Object.assign;function cr(e,t){return N(e,0)^45?(((t<<2^N(e,0))<<2^N(e,1))<<2^N(e,2))<<2^N(e,3):0}function Ct(e){return e.trim()}function en(e,t){return(e=t.exec(e))?e[0]:e}function O(e,t,n){return e.replace(t,n)}function at(e,t){return e.indexOf(t)}function N(e,t){return e.charCodeAt(t)|0}function Ie(e,t,n){return e.slice(t,n)}function X(e){return e.length}function Ve(e){return e.length}function Xe(e,t){return t.push(e),e}function tn(e,t){return e.map(t).join("")}var Ot=1,Ye=1,ar=0,Y=0,j=0,He="";function ut(e,t,n,r,o,s,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Ot,column:Ye,length:c,return:""}}function Je(e,t){return sr(ut("",null,null,"",null,null,0),e,{length:-e.length},t)}function ur(){return j}function lr(){return j=Y>0?N(He,--Y):0,Ye--,j===10&&(Ye=1,Ot--),j}function G(){return j=Y<ar?N(He,Y++):0,Ye++,j===10&&(Ye=1,Ot++),j}function ce(){return N(He,Y)}function lt(){return Y}function Ze(e,t){return Ie(He,e,t)}function Ge(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $t(e){return Ot=Ye=1,ar=X(He=e),Y=0,[]}function At(e){return He="",e}function ze(e){return Ct(Ze(Y-1,nn(e===91?e+2:e===40?e+1:e)))}function fr(e){for(;(j=ce())&&j<33;)G();return Ge(e)>2||Ge(j)>3?"":" "}function pr(e,t){for(;--t&&G()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return Ze(e,lt()+(t<6&&ce()==32&&G()==32))}function nn(e){for(;G();)switch(j){case e:return Y;case 34:case 39:e!==34&&e!==39&&nn(j);break;case 40:e===41&&nn(e);break;case 92:G();break}return Y}function hr(e,t){for(;G()&&e+j!==57;)if(e+j===84&&ce()===47)break;return"/*"+Ze(t,Y-1)+"*"+je(e===47?e:G())}function dr(e){for(;!Ge(ce());)G();return Ze(e,Y)}function gr(e){return At(It("",null,null,null,[""],e=$t(e),0,[0],e))}function It(e,t,n,r,o,s,c,a,l){for(var f=0,u=0,p=c,d=0,y=0,m=0,h=1,_=1,g=1,w=0,S="",T=o,k=s,v=r,C=S;_;)switch(m=w,w=G()){case 40:if(m!=108&&N(C,p-1)==58){at(C+=O(ze(w),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:C+=ze(w);break;case 9:case 10:case 13:case 32:C+=fr(m);break;case 92:C+=pr(lt()-1,7);continue;case 47:switch(ce()){case 42:case 47:Xe(Io(hr(G(),lt()),t,n),l);break;default:C+="/"}break;case 123*h:a[f++]=X(C)*g;case 125*h:case 59:case 0:switch(w){case 0:case 125:_=0;case 59+u:g==-1&&(C=O(C,/\f/g,"")),y>0&&X(C)-p&&Xe(y>32?yr(C+";",r,n,p-1):yr(O(C," ","")+";",r,n,p-2),l);break;case 59:C+=";";default:if(Xe(v=mr(C,t,n,f,u,o,a,S,T=[],k=[],p),s),w===123)if(u===0)It(C,t,v,v,T,s,p,a,k);else switch(d===99&&N(C,3)===110?100:d){case 100:case 108:case 109:case 115:It(e,v,v,r&&Xe(mr(e,v,v,0,0,o,a,S,o,T=[],p),k),o,k,p,a,r?T:k);break;default:It(C,v,v,v,[""],k,0,a,k)}}f=u=y=0,h=g=1,S=C="",p=c;break;case 58:p=1+X(C),y=m;default:if(h<1){if(w==123)--h;else if(w==125&&h++==0&&lr()==125)continue}switch(C+=je(w),w*h){case 38:g=u>0?1:(C+="\f",-1);break;case 44:a[f++]=(X(C)-1)*g,g=1;break;case 64:ce()===45&&(C+=ze(G())),d=ce(),u=p=X(S=C+=dr(lt())),w++;break;case 45:m===45&&X(C)==2&&(h=0)}}return s}function mr(e,t,n,r,o,s,c,a,l,f,u){for(var p=o-1,d=o===0?s:[""],y=Ve(d),m=0,h=0,_=0;m<r;++m)for(var g=0,w=Ie(e,p+1,p=ir(h=c[m])),S=e;g<y;++g)(S=Ct(h>0?d[g]+" "+w:O(w,/&\f/g,d[g])))&&(l[_++]=S);return ut(e,t,n,o===0?We:a,l,f,u)}function Io(e,t,n){return ut(e,t,n,Tt,je(ur()),Ie(e,2,-2),0)}function yr(e,t,n,r){return ut(e,t,n,Be,Ie(e,0,r),Ie(e,r+1,-1),r)}function De(e,t){for(var n="",r=Ve(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function br(e,t,n,r){switch(e.type){case or:if(e.children.length)break;case rr:case Be:return e.return=e.return||e.value;case Tt:return"";case St:return e.return=e.value+"{"+De(e.children,r)+"}";case We:e.value=e.props.join(",")}return X(n=De(e.children,r))?e.return=e.value+"{"+n+"}":""}function wr(e){var t=Ve(e);return function(n,r,o,s){for(var c="",a=0;a<t;a++)c+=e[a](n,r,o,s)||"";return c}}function xr(e){return function(t){t.root||(t=t.return)&&e(t)}}function _r(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Lo=function(t,n,r){for(var o=0,s=0;o=s,s=ce(),o===38&&s===12&&(n[r]=1),!Ge(s);)G();return Ze(t,Y)},Po=function(t,n){var r=-1,o=44;do switch(Ge(o)){case 0:o===38&&ce()===12&&(n[r]=1),t[r]+=Lo(Y-1,n,r);break;case 2:t[r]+=ze(o);break;case 4:if(o===44){t[++r]=ce()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=je(o)}while(o=G());return t},Ro=function(t,n){return At(Po($t(t),n))},Er=new WeakMap,No=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Er.get(r))&&!o){Er.set(t,!0);for(var s=[],c=Ro(n,s),a=r.props,l=0,f=0;l<c.length;l++)for(var u=0;u<a.length;u++,f++)t.props[f]=s[l]?c[l].replace(/&\f/g,a[u]):a[u]+" "+c[l]}}},jo=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function vr(e,t){switch(cr(e,t)){case 5103:return $+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $+e+ct+e+q+e+e;case 6828:case 4268:return $+e+q+e+e;case 6165:return $+e+q+"flex-"+e+e;case 5187:return $+e+O(e,/(\w+).+(:[^]+)/,$+"box-$1$2"+q+"flex-$1$2")+e;case 5443:return $+e+q+"flex-item-"+O(e,/flex-|-self/,"")+e;case 4675:return $+e+q+"flex-line-pack"+O(e,/align-content|flex-|-self/,"")+e;case 5548:return $+e+q+O(e,"shrink","negative")+e;case 5292:return $+e+q+O(e,"basis","preferred-size")+e;case 6060:return $+"box-"+O(e,"-grow","")+$+e+q+O(e,"grow","positive")+e;case 4554:return $+O(e,/([^-])(transform)/g,"$1"+$+"$2")+e;case 6187:return O(O(O(e,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),e,"")+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return O(O(e,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+e+e;case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(X(e)-1-t>6)switch(N(e,t+1)){case 109:if(N(e,t+4)!==45)break;case 102:return O(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+ct+(N(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~at(e,"stretch")?vr(O(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(N(e,t+1)!==115)break;case 6444:switch(N(e,X(e)-3-(~at(e,"!important")&&10))){case 107:return O(e,":",":"+$)+e;case 101:return O(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(N(e,14)===45?"inline-":"")+"box$3$1"+$+"$2$3$1"+q+"$2box$3")+e}break;case 5936:switch(N(e,t+11)){case 114:return $+e+q+O(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $+e+q+O(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $+e+q+O(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $+e+q+e+e}return e}var Do=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Be:t.return=vr(t.value,t.length);break;case St:return De([Je(t,{value:O(t.value,"@","@"+$)})],o);case We:if(t.length)return tn(t.props,function(s){switch(en(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return De([Je(t,{props:[O(s,/:(read-\w+)/,":"+ct+"$1")]})],o);case"::placeholder":return De([Je(t,{props:[O(s,/:(plac\w+)/,":"+$+"input-$1")]}),Je(t,{props:[O(s,/:(plac\w+)/,":"+ct+"$1")]}),Je(t,{props:[O(s,/:(plac\w+)/,q+"input-$1")]})],o)}return""})}},Mo=[Do],kr=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var _=h.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||Mo,s={},c,a=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var _=h.getAttribute("data-emotion").split(" "),g=1;g<_.length;g++)s[_[g]]=!0;a.push(h)});var l,f=[No,jo];{var u,p=[br,xr(function(h){u.insert(h)})],d=wr(f.concat(o,p)),y=function(_){return De(gr(_),d)};l=function(_,g,w,S){u=w,y(_?_+"{"+g.styles+"}":g.styles),S&&(m.inserted[g.name]=!0)}}var m={key:n,sheet:new nr({key:n,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:l};return m.sheet.hydrate(a),m};function Tr(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Sr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Uo=!1,qo=/[A-Z]|^ms/g,Fo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ar=function(t){return t.charCodeAt(1)===45},Cr=function(t){return t!=null&&typeof t!="boolean"},rn=_r(function(e){return Ar(e)?e:e.replace(qo,"-$&").toLowerCase()}),Or=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Fo,function(r,o,s){return we={name:o,styles:s,next:we},o})}return Sr[t]!==1&&!Ar(t)&&typeof n=="number"&&n!==0?n+"px":n},Ko="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ft(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return we={name:o.name,styles:o.styles,next:we},o.name;var s=n;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)we={name:c.name,styles:c.styles,next:we},c=c.next;var a=s.styles+";";return a}return Wo(e,t,n)}case"function":{if(e!==void 0){var l=we,f=n(e);return we=l,ft(e,t,f)}break}}var u=n;if(t==null)return u;var p=t[u];return p!==void 0?p:u}function Wo(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ft(e,t,n[o])+";";else for(var s in n){var c=n[s];if(typeof c!="object"){var a=c;t!=null&&t[a]!==void 0?r+=s+"{"+t[a]+"}":Cr(a)&&(r+=rn(s)+":"+Or(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&Uo)throw new Error(Ko);if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var l=0;l<c.length;l++)Cr(c[l])&&(r+=rn(s)+":"+Or(s,c[l])+";");else{var f=ft(e,t,c);switch(s){case"animation":case"animationName":{r+=rn(s)+":"+f+";";break}default:r+=s+"{"+f+"}"}}}}return r}var $r=/label:\s*([^\s;{]+)\s*(;|$)/g,we;function Lt(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";we=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=ft(n,t,s);else{var c=s;o+=c[0]}for(var a=1;a<e.length;a++)if(o+=ft(n,t,e[a]),r){var l=s;o+=l[a]}$r.lastIndex=0;for(var f="",u;(u=$r.exec(o))!==null;)f+="-"+u[1];var p=Tr(o)+f;return{name:p,styles:o,next:we}}var Bo=!0;function on(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Vo=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Bo===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Ir=function(t,n,r){Vo(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Lr(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Pr(e,t,n){var r=[],o=on(e,r,n);return r.length<2?n:o+t(r)}var Rr=function(t){var n=kr(t);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var l=arguments.length,f=new Array(l),u=0;u<l;u++)f[u]=arguments[u];var p=Lt(f,n.registered,void 0);return Ir(n,p,!1),n.key+"-"+p.name},o=function(){for(var l=arguments.length,f=new Array(l),u=0;u<l;u++)f[u]=arguments[u];var p=Lt(f,n.registered),d="animation-"+p.name;return Lr(n,{name:p.name,styles:"@keyframes "+d+"{"+p.styles+"}"}),d},s=function(){for(var l=arguments.length,f=new Array(l),u=0;u<l;u++)f[u]=arguments[u];var p=Lt(f,n.registered);Lr(n,p)},c=function(){for(var l=arguments.length,f=new Array(l),u=0;u<l;u++)f[u]=arguments[u];return Pr(n.registered,r,Xo(f))};return{css:r,cx:c,injectGlobal:s,keyframes:o,hydrate:function(l){l.forEach(function(f){n.inserted[f]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:on.bind(null,n.registered),merge:Pr.bind(null,n.registered,r)}},Xo=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=e(o);else{s="";for(var c in o)o[c]&&c&&(s&&(s+=" "),s+=c)}break}default:s=o}s&&(n&&(n+=" "),n+=s)}}return n};var xe=Rr({key:"css"}),Yo=xe.flush,Go=xe.hydrate,Ho=xe.cx,Jo=xe.merge,Zo=xe.getRegisteredStyles,pt=xe.injectGlobal,zo=xe.keyframes,sn=xe.css,Qo=xe.sheet,ei=xe.cache;var hn={};Z(hn,{Children:()=>Me,Fragment:()=>Nr,Portal:()=>jr,deepEqual:()=>ln,eval_num:()=>ci,findDOMNode:()=>ni,forwardRef:()=>fn,getComponentByPointer:()=>ri,id_num:()=>si,isAsync:()=>oi,isClass:()=>pn,isEmpty:()=>W,isError:()=>ii,isThenable:()=>Pt,isValidComponent:()=>et,isValidElement:()=>ti,shallowEqual:()=>ie,toBool:()=>Rt});var un={};Z(un,{ARGS:()=>gt,CALLBACK:()=>yt,CHILD_CLASS_ADDENDUM:()=>le,CLEARED:()=>Se,COMPONENT:()=>Qe,CORE:()=>x,DUE:()=>fe,IDX:()=>F,INTERVAL:()=>mt,IS_ZOMBIE:()=>an,LAZY:()=>ht,MEMOIZED:()=>Te,REPEAT:()=>dt,TEXT:()=>K});var[x,Qe,K,an,F,le,Te,ht,fe,dt,Se,mt,yt,gt]=[Symbol.for("LILACT:CORE"),Symbol.for("LILACT:COMPONENT"),Symbol.for("LILACT:TEXT"),Symbol.for("LILACT:IS_ZOMBIE"),Symbol.for("LILACT:IDX"),Symbol.for("LILACT:CHILD_CLASS_ADDENDUM"),Symbol.for("LILACT:MEMOIZED"),Symbol.for("LILACT:LAZY"),Symbol.for("LILACT:TIMERS:DUE"),Symbol.for("LILACT:TIMERS:REPEAT"),Symbol.for("LILACT:TIMERS:CLEARED"),Symbol.for("LILACT:TIMERS:INTERVAL"),Symbol.for("LILACT:TIMERS:CALLBACK"),Symbol.for("LILACT:TIMERS:ARGS")];var _e=e=>{let t=Object.prototype.toString.call(e).toLowerCase();return/\[object (.*)]/g.exec(t)[1]},et=e=>!!(e&&(e[x]!==void 0||e[TEXT]!==void 0)),ti=et,ni=e=>{if(!e[x]?.element?.parentNode)throw new Error("findDOMNode only works on mounted components.");return e[x].element};function Nr({children:e}){return e}Nr.displayName="Fragment";function jr({children:e,view:t}){return this[x].portal=t,e}jr.displayName="Portal";var Me={_isNil(e){return e==null},_flattenInto(e,t){if(!this._isNil(t)){if(Array.isArray(t)){for(let n of t)this._flattenInto(e,n);return}e.push(t)}},toArray(e){let t=[];if(!e)return t;for(let n of e)this._flattenInto(t,n);return t},count(e){return this.toArray(e).length},only(e){let t=this.toArray(e);if(t.length!==1)throw new Error(t.length===0?"Expected exactly one child, but received none.":"Expected exactly one child, but received more than one.");return t[0]},map(e,t){let n=this.toArray(e),r=[];for(let o=0;o<n.length;o++)r.push(t(n[o],o));return r},forEach(e,t){let n=this.toArray(e);for(let r=0;r<n.length;r++)t(n[r],r)},find(e,t){let n=this.toArray(e);for(let r=0;r<n.length;r++)if(t(n[r],r))return n[r]},pickOne(e,t){let n=this.toArray(e),r,o=0;for(let s=0;s<n.length&&!(t(n[s],s)&&(o++,r=n[s],o>1));s++);if(o!==1)throw new Error(o===0?"pickOne expected exactly one matching child, but matched none.":"pickOne expected exactly one matching child, but matched multiple.");return r},first(e){return this.toArray(e)[0]},last(e){let t=this.toArray(e);return t.length?t[t.length-1]:void 0}},fn=e=>{let t=function(n,r){return e({...n,ref:void 0},r)};return t.displayName="Forwarded "+e.displayName,t};function ri(){let e,t=new Promise((r,o)=>{e=r});function n(r){r.stopImmediatePropagation(),window.removeEventListener("click",n,!0);let o=r.target;for(;!o[Qe]&&o.parentNode;)o=o.parentNode;return e(o[Qe]),!1}return window.addEventListener("click",n,!0),t}function W(e){for(let t in e)return!1;return!0}var ie=(e,t,n)=>{if(Object.is(e,t))return!0;if(_e(e)!==_e(t))return!1;if(_e(e)==="array")return e.length!==t.length?!1:e.every((r,o)=>o===n||Object.is(r,t[o]));if(_e(e)==="object"){let r=Object.keys(e).filter(s=>s!==n),o=Object.keys(t).filter(s=>s!==n);return r.length!==o.length?!1:r.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&Object.is(e[s],t[s]))}return _e(e)==="date"?e.getTime()===t.getTime():Object.is(e,t)};function ln(e,t){return _e(e)!==_e(t)?!1:_e(e)==="array"?e.length!==t.length?!1:e.every((n,r)=>ln(n,t[r])):_e(e)==="object"?Object.keys(e).length!==Object.keys(t).length?!1:Object.keys(e).every(n=>ln(e[n],t[n])):_e(e)==="date"?e.getTime()===t.getTime():e===t}function pn(e){return!(e&&e.constructor===Function)||e.prototype===void 0?!1:Function.prototype!==Object.getPrototypeOf(e)?!0:Object.getOwnPropertyNames(e.prototype).length>1}function oi(e){return typeof e=="function"&&e.constructor&&e.constructor.name==="AsyncFunction"}function Pt(e){return e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function ii(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function Rt(e){if(typeof e=="boolean")return e;if(typeof e=="number")return e!==0;if(typeof e=="string"){if(e=e.trim().toLowerCase(),e==="true")return!0;if(e==="false")return!1}return!!e}var si=Math.floor(Math.random()*1e4),ci=0;function H(e){return e==null}function B(e){return e||"<<anonymous>>"}function ai(e){return e&&(e.displayName||e.name)||"Unknown"}function Dr(e){return e==null||e===!1||e===!0||typeof e=="string"||typeof e=="number"||et(e)?!0:Array.isArray(e)?e.every(Dr):!1}function ui(e){return typeof e=="function"||typeof e=="string"}function pe(e){let t=function(r,o,s,c,a,l){let f=r[o];if(H(f)||e(f))return null;let u=e.expectedType||"the correct type",p=f===null?"null":typeof f;return new Error(`Invalid ${c} \`${a}\` of type \`${p}\` supplied to \`${B(s)}\`, expected \`${u}\`.`)};return t.isRequired=function(r,o,s,c,a){let l=r[o];return H(l)?new Error(`The ${c} \`${a}\` is marked as required in \`${B(s)}\`, but its value is \`${l}\`.`):t(r,o,s,c,a)},t}function li(){let e={};e.any=(function(){let r=function(s,c,a,l,f){return null};return r.isRequired=function(){return null},r})(),e.array=pe(r=>Array.isArray(r)),e.array.expectedType="array",e.bool=pe(r=>typeof r=="boolean"),e.bool.expectedType="boolean",e.func=pe(r=>typeof r=="function"),e.func.expectedType="function",e.number=pe(r=>typeof r=="number"&&!Number.isNaN(r)),e.number.expectedType="number",e.object=pe(r=>typeof r=="object"&&r!==null&&!Array.isArray(r)),e.object.expectedType="object",e.string=pe(r=>typeof r=="string"),e.string.expectedType="string",e.symbol=pe(r=>typeof r=="symbol"),e.symbol.expectedType="symbol",e.component=pe(r=>et(r)),e.component.expectedType="component",e.element=pe(r=>et(r)),e.element.expectedType="element",e.node=pe(r=>Dr(r)),e.node.expectedType="node",e.elementType=pe(r=>ui(r)),e.elementType.expectedType="elementType",e.oneOf=function(o){let s=Array.isArray(o)?o:[],c=function(l,f,u,p,d){let y=l[f];if(H(y))return null;for(let h=0;h<s.length;h++)if(y===s[h])return null;let m=y===null?"null":typeof y;return new Error(`Invalid ${p} \`${d}\` of value \`${String(y)}\` supplied to \`${B(u)}\`, expected one of [${s.map(String).join(", ")}] (received type \`${m}\`).`)};return c.isRequired=function(l,f,u,p,d){return H(l[f])?new Error(`The ${p} \`${d}\` is marked as required in \`${B(u)}\`, but its value is \`${l[f]}\`.`):c(l,f,u,p,d)},c},e.oneOfType=function(o){let s=o||[],c=function(l,f,u,p,d){let y=l[f];if(H(y))return null;for(let m=0;m<s.length;m++)if(s[m](l,f,u,p,d)===null)return null;return new Error(`Invalid ${p} \`${d}\` supplied to \`${B(u)}\` (none of the allowed types matched).`)};return c.isRequired=function(l,f,u,p,d){return H(l[f])?new Error(`The ${p} \`${d}\` is marked as required in \`${B(u)}\`, but its value is \`${l[f]}\`.`):c(l,f,u,p,d)},c},e.arrayOf=function(o){let s=o,c=function(l,f,u,p,d){let y=l[f];if(H(y))return null;if(!Array.isArray(y))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof y}\` supplied to \`${B(u)}\`, expected an array.`);for(let m=0;m<y.length;m++){let h=`${d}[${m}]`,_=s({[f]:y[m]},f,u,p,h);if(_!==null)return _}return null};return c.isRequired=function(l,f,u,p,d){return H(l[f])?new Error(`The ${p} \`${d}\` is marked as required in \`${B(u)}\`, but its value is \`${l[f]}\`.`):c(l,f,u,p,d)},c},e.objectOf=function(o){let s=o,c=function(l,f,u,p,d){let y=l[f];if(H(y))return null;if(typeof y!="object"||y===null||Array.isArray(y))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof y}\` supplied to \`${B(u)}\`, expected an object.`);let m=Object.keys(y);for(let h=0;h<m.length;h++){let _=m[h],g=`${d}.${_}`,w=s({[f]:y[_]},f,u,p,g);if(w!==null)return w}return null};return c.isRequired=function(l,f,u,p,d){return H(l[f])?new Error(`The ${p} \`${d}\` is marked as required in \`${B(u)}\`, but its value is \`${l[f]}\`.`):c(l,f,u,p,d)},c};function t(r,{exact:o}){let s=r?Object.keys(r):[],c=function(l,f,u,p,d){let y=l[f];if(H(y))return null;if(typeof y!="object"||y===null||Array.isArray(y))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof y}\` supplied to \`${B(u)}\`, expected an object.`);if(o){let h=Object.keys(y);for(let _=0;_<h.length;_++){let g=h[_];if(!Object.prototype.hasOwnProperty.call(r,g)){let w=`${d}.${g}`;return new Error(`Invalid ${p} \`${w}\` supplied to \`${B(u)}\`: extra key \`${g}\` is not allowed by exact().`)}}}for(let h=0;h<s.length;h++){let _=s[h],g=r[_],w=y[_],S=`${d}.${_}`;if(H(w)){let k=g({[f]:w},f,u,p,S);if(k!==null)return k;continue}let T=g({[f]:w},f,u,p,S);if(T!==null)return T}return null};return c.isRequired=function(l,f,u,p,d){return H(l[f])?new Error(`The ${p} \`${d}\` is marked as required in \`${B(u)}\`, but its value is \`${l[f]}\`.`):c(l,f,u,p,d)},c}e.shape=function(o){return t(o,{exact:!1})},e.exact=function(o){return t(o,{exact:!0})},e.instanceOf=function(o){let s=function(a,l,f,u,p){let d=a[l];return H(d)||d instanceof o?null:new Error(`Invalid ${u} \`${p}\` supplied to \`${B(f)}\`: expected instance of \`${ai(o)}\`.`)};return s.isRequired=function(a,l,f,u,p){return H(a[l])?new Error(`The ${u} \`${p}\` is marked as required in \`${B(f)}\`, but its value is \`${a[l]}\`.`):s(a,l,f,u,p)},s};let n=new Set;return e.checkPropTypes=function(o,s,c,a){},e}var Mr=li();var yn={};Z(yn,{Component:()=>Le,HTMLComponent:()=>wt,RootComponent:()=>Nt,boolean_html_attributes_set:()=>Vr,capture_events_set:()=>Dt,cloneComponent:()=>Kr,cloneElement:()=>gi,createComponent:()=>mn,createElement:()=>xi,createPortal:()=>yi,createRoot:()=>Fr,current_component:()=>_i,effect_timeout:()=>$i,events_set:()=>jt,insertion_effects:()=>Si,layout_effects:()=>Ti,length_css_attributes_set:()=>Br,memo:()=>wi,passive_effects:()=>Ci,processEffects:()=>qr,render:()=>bi,roots:()=>ki,special_attributes:()=>Wr,update_cbs:()=>vi,update_interval_margin:()=>Ai,update_set:()=>Ei,update_timeout:()=>Oi});var fi="http://www.w3.org/2000/svg",dn=class{constructor(t){z(this,"owner");z(this,"current_map",new Map);z(this,"new_map",new Map);z(this,"pick_index",0);this.owner=t}pick(t,n){var s;let r,o=this.current_map.get(t);return o&&o.length>o[F]?(r=o[o[F]],o[F]++,o=this.new_map.get(t),o!==void 0?o.push(r):(o=[r],this.new_map.set(t,o),o[F]=0)):(r=n(),o=this.new_map.get(t),o!==void 0?o.push(r):(o=[r],this.new_map.set(t,o),o[F]=0),r[x]&&((s=r[x]).parent??(s.parent=this.owner))),r}commit(){this.current_map.forEach(t=>{t.slice(t[F]).forEach(n=>{n.cleanup?n.cleanup():n.element&&!n.portal&&n.element.parentElement.removeChild(n.element)})}),this.current_map=this.new_map,this.new_map=new Map}},bt=class{constructor(t,n){z(this,"component");z(this,"props");this.component=t,this.props=n||{}}apply(t=this.props,n=this.next_state||this.state){let r=!0;if(this.outlet&&this?.[Te]&&ie(this.props,t,"children")&&ie(this.props?.children,t?.children)&&(r=!1),r){if(typeof n=="function"&&(n=n(this.state)),this.component.constructor.defaultProps&&(t={...this.component.constructor.defaultProps,...t}),(this?.parent?.component?.context||this?.parent?.component?.getChildContext)&&(this.context={...this.parent.component.context,...this.parent.component.getChildContext?.()}),this.component.shouldComponentUpdate&&!this.component.shouldComponentUpdate(n,t,this.context))return;typeof this.entity=="string"&&(this.element instanceof Element||(this.is_svg||this.container.is_svg?(this.is_svg=!0,this.element=document.createElementNS(fi,this.entity)):this.element=document.createElement(this.entity),t?.defaultValue&&(this.element.value=String(t.defaultValue).slice(0,t?.maxLength)),t?.defaultChecked&&(this.element.checked=t.defaultChecked)),this.element[Qe]=this.component),t.ref&&(typeof t.ref=="function"?t.ref(this.element||this.component):t.ref.current=this.element||this.component),t!==void 0&&this.component.componentWillReceiveProps&&this.component.componentWillReceiveProps(t),this.component.componentWillUpdate&&this.component.componentWillUpdate(t,n);let o=this.state,s=this.props;if(this.element&&this.updateElementProps(t),this.props=t,typeof this.next_state=="object")this.state?Object.assign(this.state,n):this.state={...n};else if(this.next_state!==void 0)throw new Error("Component.setState only accepts objects or functions is new state.");if(this.next_state&&delete this.next_state,this.hooks!==void 0){this.hook_index=0,E.current_component=[this,E.current_component];try{this.outlet=this.component.render(t,{current:this.element||this.component})}catch(c){Ur(this,c)}E.current_component=E.current_component[1]}else try{this.outlet=this.component.render({current:this.element||this.component})}catch(c){Ur(this,c)}this?.portal&&(this.element=this.portal),this.outlet?.constructor?.name!=="Array"&&(this.outlet=[this.outlet]),this.outlet=[...this.outlet];for(let c=0;c<this.outlet.length;c++){let a=this.outlet[c];if(a==null||typeof a=="boolean")this.outlet.splice(c,1),c--;else if(typeof a=="function"){let l=this.childFunctionHandler(a);this.outlet.splice(c,1,l),c--}else if(a.constructor.name==="Array")this.outlet.splice(c,1,...a),c--;else{let l=hi(this,a);this.outlet[c]=l,l[K]===void 0?(l.container=this.element?this:this.container,l.apply(a.props)):l.element?l[K]!==a[K]&&(l.element.textContent=a[K],l[K]=a[K]):(l.element=document.createTextNode(a[K]),l[K]=a[K])}}this.cache&&this.cache.commit(),this.element&&this.arrangeOutlet(),this.component.componentDidUpdate&&this.component.componentDidUpdate(s,o,this.last_snapshot),this.last_snapshot&&delete this.last_snapshot}}async cleanup(){try{let t=[];if(this.props?.ref&&(typeof this.props.ref=="function"?this.props.ref(null):this.props.current=null),this.component.componentWillUnmount&&this.component.componentWillUnmount(),this?.element?.parentElement&&!this.portal&&this.element.parentElement.removeChild(this.element),this.outlet!==void 0)for(let n of this.outlet)n.cleanup&&t.push(n.cleanup());if(this.props?.children!==void 0)for(let n of this.props.children)n.cleanup&&t.push(n.cleanup());if(this.hooks!==void 0)for(let n of this.hooks)n.cleanup&&t.push(n.cleanup());await Promise.all(t)}catch(t){throw t}}updateElementProps(t,n=!1){this.entity==="input"?(t?.type||(t.type="text"),t.type!==this.element.type&&(this.element.type=t.type),t?.value!==void 0&&t?.value!==this.element.value&&(t.value===void 0&&(t.value=""),this.element.value=String(t.value).slice(0,t?.maxLength))):this.entity==="textarea"?t?.value!==this.element.value&&(this.element.value=String(t.value).slice(0,t?.maxLength)):this.entity==="select"?typeof t.value=="string"&&t.value!==this.element.value&&(this.element.value=t.value):this.entity==="option"&&(this.container?.props?.value?.constructor?.name==="Array"?t.selected=this.container.props.value.indexOf(t.value)!==-1:typeof this.container?.props?.value=="string"&&(t.selected=this.container.props.value===t.value));for(let r in this.props){let o=r.toLowerCase();t.hasOwnProperty(r)||(jt.has(o)?this.event_detachers[o]():this.element.removeAttribute(r))}for(let r in t){let o=r.toLowerCase();if(!Wr.has(o)&&(t===this.props||!E.defaultIsEqual(t[r],this.props[r])||n))if(jt.has(o))this.event_detachers??(this.event_detachers={}),this.event_detachers[o]?.(),this.event_detachers[o]=E.addWrappedEventListener(this.element,o.substring(2),t[r]);else if(Dt.hasOwnProperty(o)){let s=Dt[o];this.event_detachers??(this.event_detachers={}),this.event_detachers[o]?.(),this.event_detachers[o]=E.addWrappedEventListener(this.element,s.substring(2),t[r],{capture:!0})}else if(r==="style")if(typeof t.style=="string")this.element.style=t.style;else{if(this.props?.style)if(typeof this.props.style=="string")this.element.style="";else for(let s in this.props.style)t.style.hasOwnProperty(s)||(this.element.style[s]="");for(let s in t.style)Br.has(s)&&isFinite(t.style[s])&&(t.style[s]+="px");Object.assign(this.element.style,t.style)}else if(Vr.has(r)){let s=Rt(t[r]);s!==this.element[r]&&(this.element[r]=s)}else r==="autoFocus"?this.element.autofocus=Rt(t[r]):r==="htmlFor"?this.element.setAttribute("for",t[r]):(o!=="value"||["input","textarea","select"].indexOf(this.entity)===-1)&&this.element.setAttribute(o,t[r])}t?.action?this.element.onsubmit=t.action:this.element.onsubmit=void 0,this.updateElementClass(t)}updateElementClass(t=this.props){let n=t?.className;if(n??(n=t?.class?t.class:""),this?.parent?.[le]&&(n+=" "+this?.parent?.[le]),n.length>0){n=n.split(/\s+/g);for(let r of Array.from(this.element.classList))n.indexOf(r)===-1&&this.element.classList.remove(r);for(let r of n)r.length>0&&this.element.classList.add(r)}else delete this.element.className}scanZombies(t,n){let r=t.element.childNodes;for(;r[t.insert_index]&&r[t.insert_index][an]&&r[t.insert_index]!==n;)t.insert_index++}appendElement(t){t.portal||(this.scanZombies(t.container,t.element),t?.element.parentNode===null?(t.container.element.insertBefore(t.element,t.container.element.childNodes[t.container.insert_index]||null),t?.component?.componentDidMount&&t.component.componentDidMount()):t.container.element.childNodes[t.container.insert_index]!==t.element&&t.container.element.insertBefore(t.element,t.container.element.childNodes[t.container.insert_index]||null),t.container.insert_index++)}arrangeOutlet(){this.insert_index=0;for(let t of this.outlet)t&&(t.element?(t.container=this.element?this:this.container,t.container.appendElement(t)):(t.arrangeOutlet&&t.arrangeOutlet(),t?.mounted||(t.mounted=!0,t?.component?.componentDidMount&&t.component.componentDidMount())))}childFunctionHandler(t){return t(this.state)}},Ur=(e,t)=>{let n=[e];for(;e&&!e.component?.componentDidCatch;)e=e.parent,e&&n.push(e);e?.component?.componentDidCatch&&e.entity?.getDerivedStateFromError&&e.component.setState(e.entity.getDerivedStateFromError.call(e,t));let r=Array.prototype.map.call(n,o=>`in ${typeof o.component.displayName=="function"?o.component.displayName():o.component.displayName}`).join(`
58
- `);if(t.componentStack=n,t.componentStackLog=r,e?.component?.componentDidCatch)e.component.componentDidCatch(t,{componentStack:n,componentStackLog:r});else throw t};function pi(e,t){let n=e;if(e[K]===void 0){let r=e.entity,o=!1;if(typeof r=="object")if(r[Te])o=r[Te],r=r.component;else throw new Error("Invalid component.");if(typeof r=="string")n=new wt(r,e.props);else{if(pn(r)){r?.defaultProps&&(e.props={...r.defaultProps,...e.props}),n=new r(e.props);let s=Object.getOwnPropertyDescriptor(n,"state");s&&typeof s.get!="function"&&typeof s.set!="function"&&(n[x].state=n.state,Object.defineProperty(n,"state",{get(){return this[x].state},set(c){if(this[x].state===void 0)this[x].state=c;else throw new Error("Assigning component state this way is not allowed.")}}))}else if(typeof r=="function")r?.defaultProps&&(e.props={...r.defaultProps,...e.props}),n=new Le(e.props),n.render=r.bind(n),n[x].hooks=[],n[x].hook_index=0;else throw new Error("Error in constructing component.");n[x].entity=r,e.container&&(n[x].container=e.container)}o&&(n[x][Te]=!0)}return t instanceof bt&&(n[x].parent=t),n}function hi(e,t){try{return e.cache??(e.cache=new dn(e)),t=e.cache.pick(t[K]===void 0?t?.props?.key:":text:",()=>t[K]!==void 0||t instanceof bt?t:pi(t,e)[x]),t}catch(n){if(t?.component?.componentDidCatch)t.component.componentDidCatch(n);else throw n}}function di(){clearTimeout(E.effect_timeout);let e=E.update_set,t=E.update_cbs;E.update_set=new Set,E.update_cbs=new Set;for(let n of e)n.apply();for(let n of t)n();qr()}function qr(){let e=E.insertion_effects,t=E.layout_effects,n=E.passive_effects;E.insertion_effects=new Set,E.layout_effects=new Set,E.passive_effects=new Set;for(let r of e)r();for(let r of t)r();requestAnimationFrame(()=>{for(let r of n)r()})}var mi=(e,t)=>{let n;return t.key!==void 0?n=t.key:t.id!==void 0?n=":i:"+t.id:t.path!==void 0?n=":p:"+t.path:t[K]!==void 0?n=":text:":(typeof e=="string"?n=":t:"+e:e?.name?n=e.name:n="::",t.name!==void 0?n=n+":"+t.name:t.path!==void 0&&(n=n+":"+t.path)),n},Le=class{get state(){return this[x].state}set state(t){if(this[x].state===void 0)this[x].state=t;else throw new Error("Assigning component state this way is not allowed.")}get context(){return this[x].context}set context(t){throw new Error("Assigning component context this way is not allowed.")}get type(){return this[x].entity}set type(t){throw new Error("Component type is immutable.")}get props(){return this[x].props}set props(t){throw new Error("Assigning component props this way is not allowed.")}get ref(){return this[x].ref}set ref(t){throw new Error("Component ref is immutable.")}get key(){return this[x].props.key}set key(t){throw new Error("Component key is immutable.")}displayName(){let t=this[x].entity;return t?.displayName?typeof t.displayName=="function"?t.displayName():t.displayName:typeof t=="string"?t:typeof t=="function"&&t.name||"Component"}constructor(t){this[x]=new bt(this,t)}forceUpdate(t){E._clearTimeout(E.update_timeout),E.update_set.add(this[x].container||this[x]),t&&E.update_cbs.add(t.bind(this)),E.update_timeout=E._setTimeout(di,E.update_interval_margin)}setState(t,n){this.getSnapshotBeforeUpdate!==void 0&&(this[x].last_snapshot=this.getSnapshotBeforeUpdate(this[x].props,this.state)),this[x].next_state=t,this.forceUpdate(n?n.bind(this):void 0)}},wt=class extends Le{constructor(t,n){super(n),this[x].entity=t,t==="svg"&&(this[x].is_svg=!0)}render(){return this[x].props.children}},Nt=class extends wt{constructor(n,r){super(":root:",r);z(this,"displayName","Root");typeof this.element=="string"&&(n=document.querySelector(n)),this[x].element=n;for(let o of r.children)o[x]?o[x].container=this[x]:o.container=this[x]}};function mn(e,t={},...n){if(typeof e!="string"&&typeof e!="function"&&(typeof e!="object"||!e[Te]))throw new Error("Invalid entity for createComponent.");for(let r=0;r<n.length;r++){let o=n[r];if(o==null||typeof o=="boolean"){n.splice(r,1),r--;continue}["number","bigint"].indexOf(typeof o)!==-1&&(o=o.toString()),typeof o=="string"?n[r]={[K]:o}:n[r]=o}return t.key=mi(e,t),t.children=n,{entity:e,props:t,[x]:null}}function Fr(e){let t;return{render(n){if(t)throw new Error("root already rendered!");return t=new Nt(e,{children:[n]}),E.roots.add(t[x]),t.forceUpdate(),t},unmount(){t&&(t.cleanup(),e.innerHTML="")}}}function yi(e,t){return mn(E.Portal,{view:t},e)}function Kr(e,t,...n){let r={entity:e.entity,props:{...e.props,...t},[x]:null};return n?.length&&(r.props.children=n),r}var gi=Kr;function bi(e,t){if(e[x]&&(e[x].container||e[x].parent))throw new Error("Component is already in use");return Fr(t).render(e)}function wi(e){return typeof e=="object"?e[Te]=!0:e={component:e,[Te]:!0,[x]:null},e}var xi=mn,_i=[],Ei=new Set,vi=new Set,ki=new Set,Ti=new Set,Si=new Set,Ci=new Set,Oi,$i,Ai=0,Wr=new Set(["classname","ref","action","lilact_jsx_loc","children","key","defaultvalue","defaultchecked"]),jt=new Set(["onafterprint","onbeforeprint","onbeforeunload","onerror","onhashchange","onload","onmessage","onoffline","ononline","onpagehide","onpageshow","onpopstate","onresize","onstorage","onunload","onblur","onchange","oncontextmenu","onfocus","oninput","oninvalid","onreset","onsearch","onselect","onsubmit","onkeydown","onkeypress","onkeyup","onclick","ondblclick","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onwheel","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","onscroll","oncopy","oncut","onpaste","onabort","oncanplay","oncanplaythrough","oncuechange","ondurationchange","onemptied","onended","onerror","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","ontoggle","onpointerdown","onpointerup","onpointermove","onpointercancel","onpointerover","onpointerout","onpointerenter","onpointerleave"]),Dt={};for(let e of jt)Dt[e+"capture"]=e;var Br=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","top","right","bottom","left","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","outlineWidth","fontSize","lineHeight","letterSpacing","wordSpacing","textIndent","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","columnGap","rowGap","gap"]),Vr=new Set(["disabled","readOnly","required","checked","multiple","selected","hidden","open","loop","muted","controls","playsInline","allowFullScreen"]);var bn={};Z(bn,{createContext:()=>tt,startTransition:()=>Mi,useActionState:()=>Ri,useCallback:()=>he,useContext:()=>nt,useDebugValue:()=>Di,useDeferredValue:()=>ji,useEffect:()=>ee,useHook:()=>se,useId:()=>Ii,useImperativeHandle:()=>gn,useInsertionEffect:()=>Pi,useLayoutEffect:()=>Pe,useLocalStorage:()=>Li,useMemo:()=>xt,useReducer:()=>Ni,useRef:()=>R,useState:()=>Q,useTransition:()=>Xr});function se(){let e=E.current_component[0];return e.hooks[e.hook_index]===void 0&&e.hooks.push({}),e.hooks[e.hook_index++]}function Q(e){let t=se();return W(t)&&(typeof e=="function"?t.value=e():t.value=e,t.set_func=function(n,r,o){typeof o=="function"?r.value=o(r.value):r.value=o,n.component.forceUpdate()}.bind(void 0,E.current_component[0],t)),[t.value,t.set_func]}function he(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Callback dependencies must be an array, object or omitted.");let n=se();return!W(n)&&t!==void 0&&n?.deps!==void 0&&ie(t,n.deps)||(n?.cleanup&&n.cleanup(),n.deps=t,n.callback=e),n.callback}function tt(e){return{default:e,Provider:function({value:n,children:r}){return r}}}function nt(e){let t=E.current_component[0]?.parent;for(;t&&t.entity!==e.Provider;)t=t.parent;return t?t.props?.value??e.default:e.default}function Ii(e="N"){let t=se();return W(t)&&(t.id=e+E.id_num++),t.id}function Xr(){let e=se();return W(e)&&(e.count=0,e.func=(async function(t,n,r){n.count===0&&t.component.forceUpdate(),n.count++;try{return await r()}finally{n.count--,n.count===0&&t.component.forceUpdate()}}).bind(void 0,E.current_component[0],e)),[e.count!=0,e.func]}function Li(e,t){let n=se(),r;try{r=JSON.parse(localStorage[e])}catch{}return r===void 0&&(typeof t=="function"&&(t=t()),r=t,localStorage[e]=JSON.stringify(r)),W(n)&&(n.value=r,n.set_func=function(o,s,c){typeof c=="function"&&(c=c(s.value)),c!==s.value&&(localStorage[e]=JSON.stringify(c),s.value=c,o.component.forceUpdate())}.bind(void 0,E.current_component[0],n)),[n.value,n.set_func]}function R(e=null){let t=se();return W(t)&&(t.current=e),t}async function Pe(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Layout effect dependencies must be an array, object or omitted.");let n=se();!W(n)&&t!==void 0&&n?.deps!==void 0&&ie(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.layout_effects.add(async()=>{n.cleanup=await e()}),E._clearTimeout(E.effect_timeout),E._setTimeout(E.processEffects,0))}async function ee(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Effect dependencies must be an array, object or omitted.");let n=se();!W(n)&&t!==void 0&&n?.deps!==void 0&&ie(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.passive_effects.add(async()=>{n.cleanup=await e()}),E._clearTimeout(E.effect_timeout),E._setTimeout(E.processEffects,0))}async function Pi(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Insertion effect dependencies must be an array, object, or omitted.");let n=se();!W(n)&&t!==void 0&&n?.deps!==void 0&&ie(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.insertion_effects.add(async()=>{n.cleanup=await e()}),E._clearTimeout(E.effect_timeout),E._setTimeout(E.processEffects,0))}function xt(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Memo dependencies must be an array or omitted.");let n=se();return!W(n)&&t!==void 0&&n?.deps!==void 0&&ie(t,n.deps)||(n.deps=t,n.value=e()),n.value}function Ri(e,t){let n=se(),[r,o]=Xr();return W(n)&&(n.state=t,n.form_action=s=>(s.preventDefault(),o(async()=>{let c=new FormData(s.target,s.submitter);n.state=await e(n.state,c)},[]),!1)),[n.state,n.form_action,r]}function Ni(e,t,n){let r=se();return W(r)&&(r.state=n?n(t):t,r.dispatch=function(o,s,c){let a=s.reducer(s.state,c);E.defaultIsEqual(a,s.state)||(s.state=a,o.component.forceUpdate())}.bind(void 0,E.current_component[0],r)),r.reducer=e,[r.state,r.dispatch]}function ji(e,t){let{useEffect:n,useRef:r,useState:o}=E,[s,c]=o(typeof t<"u"?t:e),a=r(e),l=r(null);return n(()=>{if(a.current===e)return;a.current=e,l.current!=null&&(l.current.cancelled=!0,l.current=null);let f={cancelled:!1};return l.current=f,Promise.resolve().then(()=>{f.cancelled||(c(e),l.current=null)}),()=>{l.current&&(l.current.cancelled=!0,l.current=null)}},[e]),s}function gn(e,t,n=void 0){n!==void 0&&e?.deps!==void 0&&ie(n,e.deps)||(e.deps=n,typeof e?.current!="object"&&(e.current={}),Object.assign(e.current,t()))}function Di(e,t=n=>n){}function Mi(e){e()}var wn={};Z(wn,{lazy:()=>Wi,require:()=>Hr,required_scripts:()=>qe,run:()=>rt,runScripts:()=>Vi});function Ui(e,t){let n=t.startsWith("/"),r=(n?"":e).split("/").filter(Boolean);!n&&!e.endsWith("/")&&r.pop();for(let o of t.split("/"))!o||o==="."||(o===".."?r.pop():r.push(o));return`${n?"/":""}${r.join("/")}`}function Yr(e,t="Unknown error"){if(e instanceof Error)return e;if(e?.error instanceof Error)return e.error;let n=new Error(e?.message==null?t:String(e.message));if(e&&typeof e=="object"){e.name&&(n.name=e.name),e.stack&&(n.stack=e.stack);for(let r of Object.keys(e))r in n||(n[r]=e[r])}return n}function qi(e,t){let n=Yr(e);return n.lilact_source||(n.lilact_source={path:t}),n}function Ue(e,t){let n=qi(e,t);return n.isTraced?n:typeof E.traceError=="function"?E.traceError(n,t):(E.error=n,n)}var qe={};function Gr(e,{code:t="",isInline:n=!1,isModule:r=!0}={}){let o={path:e,code:String(t),mappings:[],exports:{},isInline:n,isModule:r,loaded:!1,request:void 0,error:void 0};return qe[e]=o,o}function rt(jsx,path=`InlineJSX-${++E.eval_num}`,{isInline=!0,isModule=!0}={}){let module=qe[path];module?(module.path=path,module.code=String(jsx),module.mappings=[],module.exports={},module.isInline=isInline,module.isModule=isModule,module.loaded=!1,module.error=void 0):module=Gr(path,{code:jsx,isInline,isModule});let processed;try{processed=E.transpileJSX(String(jsx),{path,mappings:module.mappings,factory:"createComponent",appendSourcemap:!0,injectTraceLabels:!0,produceCJS:!0,blocks_info:E.blocks_info})}catch(e){let t=Yr(e);throw t.fileName??(t.fileName=path),t.lilact_source??(t.lilact_source={path}),t.sourcePhase="transpile",module.error=t,E.error=t,t}typeof E.scanBlockLabels=="function"&&E.scanBlockLabels(processed,path);try{new Function(processed),globalThis.Lilact=E,globalThis.createComponent=E.createComponent,globalThis.Fragment=E.Fragment;let result=eval(processed);return module.loaded=!0,W(module.exports)?result:module.exports}catch(e){let t=Ue(e,path);throw t.sourcePhase??(t.sourcePhase="runtime"),module.error=t,t}}function Fi(e,t={}){return qe[e]||Gr(e,t)}function Ki(e,t){let n;try{let o=E.resolver?.(e);o==null?t.code&&!t.loaded?n=Promise.resolve(t.code):n=fetch(e).then(s=>{if(!s.ok)throw Ue(new Error(`Unable to load ${e}: HTTP ${s.status}`),e);return s.text()}):n=Promise.resolve(o)}catch(o){n=Promise.reject(Ue(o,e))}let r;return r=Promise.resolve(n).then(o=>{if(t.code=String(o),e.endsWith(".css")){pt(t.code),t.loaded=!0;return}return rt(t.code,e,{isInline:!1,isModule:!0})}).then(o=>o?.default??o).catch(o=>{throw t.error=Ue(o,e),t.error}).finally(()=>{t.request===r&&(t.request=void 0)}),t.request=r,r}function Hr(e){let t={};if(arguments.length===2&&arguments[1]&&typeof arguments[1]=="object"&&(t=arguments[1]),E.importObjectPaths?.[e])return E.importObjectPaths[e];t.requirer?.path&&(e=Ui(t.requirer.path,e));let n=!!E[ht]||!!t.isLazy,r=Fi(e,{isInline:!1,isModule:!0});if(r.loaded&&!t.forceUpdate)return r.exports;if(e.startsWith("#")){let c=document.getElementById(e.slice(1));if(!c)throw Ue(new Error(`Required element not found (${e})`),e);return rt(c.textContent||"",e)}if(n)return E[ht]=!1,r.request?r.request:Ki(e,r);let o=E.resolver?.(e);if(o!=null){if(e.endsWith(".css")){pt(String(o)),r.code=String(o),r.loaded=!0;return}return rt(String(o),e,{isInline:!1,isModule:!0})}let s=new XMLHttpRequest;try{s.open("GET",e,!1),s.send(null)}catch(c){throw Ue(c,e)}if(s.status>=200&&s.status<300){if(e.endsWith(".css")){r.code=s.responseText,pt(r.code),r.loaded=!0;return}return rt(s.responseText,e,{isInline:!1,isModule:!0})}throw Ue(new Error(`Unable to load ${e}: HTTP ${s.status||0}`),e)}function Wi(e){let t="pending",n;E[ht]=!0;try{n=e()}catch(o){t="error",n=o}E.isThenable(n)?n.then(o=>{t="success",n=o},o=>{t="error",n=o}):t!=="error"&&(t="success");function r(o){if(t==="pending"||t==="error")throw n;let s=n;return createComponent(s,{...o})}return r}function Bi(){return Array.from(document.querySelectorAll('script[type="text/jsx"]')).map(e=>({src:e.getAttribute("src"),content:e.textContent||""}))}async function Vi(){for(let e of Bi())e.src?await Hr(e.src):e.content&&rt(e.content)}var En={};Z(En,{CSSTransition:()=>Zr,SwitchTransition:()=>Xi,Transition:()=>Jr,TransitionGroup:()=>Yi});var xn="unmounted",Mt="exited",_t="entering",Et="entered",_n="exiting";function Jr({in:e,timeout:t=E.defaultTransitionTimeout,mountOnEnter:n=!1,unmountOnExit:r=!1,appear:o=!1,onEnter:s,onEntering:c,onEntered:a,onExit:l,onExiting:f,onExited:u,children:p,_classNames:d}){var y,m,h;return(y=this[x]).is_mounted??(y.is_mounted=!n||e||o),(m=this[x]).is_appeared??(m.is_appeared=e),(h=this[x]).timer??(h.timer=null),this[x].childFunctionHandler=_=>_(this[x].mount_state),this[x].mount_state||(this[x].is_mounted||(this[x].mount_state=xn),e?this[x].mount_state=o&&!this[x].is_appeared?_t:Et:this[x].mount_state=Mt),ee(()=>()=>clearTimeout(this[x].timer),[]),ee(()=>{!this[x].is_appeared&&o&&this[x].mount_state===_t&&e&&(s?.(),requestAnimationFrame(()=>{c?.(!this[x].is_appeared),clearTimeout(this[x].timer),this[x].timer=setTimeout(()=>{this[x].mount_state=Et,this.forceUpdate(),this[x].is_appeared=!0,a?.(!this[x].is_appeared)},t)}))},[]),ee(()=>{if(e){if(this[x].is_mounted=!0,this[x].mount_state===_t||this[x].mount_state===Et)return;s?.(!this[x].is_appeared),this[x].mount_state=_t,this.forceUpdate(()=>{c?.(!this[x].is_appeared),clearTimeout(this[x].timer),this[x].timer=setTimeout(()=>{this[x].mount_state=Et,this.forceUpdate(),this[x].is_appeared=!0,a?.()},t)})}else{if(this[x].mount_state===xn||this[x].mount_state===_n||this[x].mount_state===Mt)return;l?.(),this[x].mount_state=_n,this.forceUpdate(()=>{f?.(),clearTimeout(this[x].timer),this[x].timer=setTimeout(()=>{this[x].mount_state=Mt,this.forceUpdate(),u?.(),r&&(this[x].is_mounted=!1,this[x].mount_state=xn,this.forceUpdate())},t)})}},[e,t]),this[x].is_mounted?(d&&(this[x].mount_state===_t?this[x].is_appeared?this[x][le]=d.appearActive:this[x][le]=d.enterActive:this[x].mount_state===Et?this[x].is_appeared?this[x][le]=d.appearDone:this[x][le]=d.enterDone:this[x].mount_state===_n?this[x][le]=d.exitActive:this[x].mount_state===Mt&&(this[x][le]=d.exitDone)),p):null}function Zr({in:e,timeout:t=E.defaultTransitionTimeout,classNames:n="fade",mountOnEnter:r=!1,unmountOnExit:o=!1,appear:s=!1,children:c,onEnter:a,onEntering:l,onEntered:f,onExit:u,onExiting:p,onExited:d}){return typeof n=="string"&&(n={appear:`${n}-enter ${n}-appear`,appearActive:`${n}-enter-active ${n}-appear-active`,appearDone:`${n}-enter-done ${n}-appear-done`,enter:`${n}-enter`,enterActive:`${n}-enter-active`,enterDone:`${n}-enter-done`,exit:`${n}-exit`,exitActive:`${n}-exit-active`,exitDone:`${n}-exit-done`}),createComponent(Jr,{in:e,timeout:t,mountOnEnter:r,unmountOnExit:o,appear:s,onEnter:a,onEntering:l,onEntered:f,onExit:u,onExiting:p,onExited:d,_classNames:n},c)}function Xi({children:e,activeKey:t,mode:n="out-in",timeout:r=E.defaultTransitionTimeout,classNames:o="switch",mountOnEnter:s=!1,unmountOnExit:c=!1,appear:a=!1,onExited:l,onEnter:f,onExiting:u,onEntered:p,...d}){let y=xt(()=>Me.toArray(e),[e]),[m,h]=Q(null),[_,g]=Q(!1),[w,S]=Q(!0),T=R(t),k=R(t),v=R(m);Pe(()=>{k.current=t},[t]),Pe(()=>{v.current=m},[m]),Pe(()=>{let P=T.current;P!==t&&(T.current=t,h(P),n==="out-in"?(S(!1),g(!0)):(S(!0),g(!1)))},[t,n]);let C=P=>(Ce,ne)=>{typeof l=="function"&&l(Ce,ne),P===v.current&&(h(null),n==="out-in"&&(g(!1),S(!0)),n==="in-out"&&g(!1))},L=P=>(Ce,ne)=>{typeof p=="function"&&p(Ce,ne),n==="in-out"&&P===k.current&&v.current!=null&&g(!0)};return createComponent("div",{style:{position:"relative"}},y.map((P,Ce)=>{let ne=P?.props?.key||Ce,vt=ne===t?w:ne===m?!_:!1;return createComponent(Zr,{...d,key:ne,in:vt,timeout:r,classNames:o,mountOnEnter:s,unmountOnExit:c,appear:a,onEnter:f,onExiting:u,onEntered:L(ne),onExited:C(ne)},createComponent("div",{style:{position:"absolute",inset:0}},P))}))}function Yi({children:e}){return e}var vn={};Z(vn,{addWrappedEventListener:()=>Ji,createSyntheticEvent:()=>zr,releaseSyntheticEvent:()=>Qr,wrapListener:()=>eo});typeof Element<"u"&&!Element.prototype.matches&&(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});typeof Event<"u"&&!Event.prototype.composedPath&&(Event.prototype.composedPath=function(){for(var e=[],t=this.target;t;)e.push(t),t=t.parentElement;return e.push(window),e});var Ut=[],Gi=10,Hi=["mouse","pen","touch"];function zr(e,t){let n=Ut.length?Ut.pop():{};n.nativeEvent=e,n.type=e.type,n.target=e.target||e.srcElement||null,n.currentTarget=t||e.currentTarget||null,n.timeStamp=e.timeStamp||Date.now(),n.defaultPrevented=!!e.defaultPrevented,n.isPropagationStopped=!1,n.isPersistent=!1,n.bubbles=!!e.bubbles,n.cancelable=!!e.cancelable,n.composed=!!e.composed,n.detail=e.detail,n.relatedTarget=e.relatedTarget||(e.fromElement?e.fromElement:null)||(e.toElement?e.toElement:null)||null,n.altKey=!!e.altKey,n.ctrlKey=!!e.ctrlKey,n.metaKey=!!e.metaKey,n.shiftKey=!!e.shiftKey,n.isDefaultPrevented=()=>n.defaultPrevented,n.preventDefault=()=>{e.preventDefault&&e.preventDefault(),n.defaultPrevented=!0},n.stopPropagation=()=>{e.stopPropagation&&e.stopPropagation(),n.isPropagationStopped=!0},n.persist=()=>{n.isPersistent=!0},n.key=e.key||null,n.code=e.code||null,n.which=e.which??e.keyCode??null,n.button=e.button??null,n.buttons=e.buttons??null,n.pointerId=e.pointerId??null,n.pointerType=e.pointerType??null,n.isPrimary=e.isPrimary??null,n.clientX=e.clientX??0,n.clientY=e.clientY??0,n.screenX=e.screenX??0,n.screenY=e.screenY??0,n.pageX=e.pageX??null,n.pageY=e.pageY??null,n.movementX=e.movementX??0,n.movementY=e.movementY??0,n.pressure=e.pressure??null,n.tiltX=e.tiltX??null,n.tiltY=e.tiltY??null,n.width=e.width??null,n.height=e.height??null,n.pointerEventsSupported=Hi.includes(n.pointerType);try{let r=n.target;n.value=r&&"value"in r?r.value:void 0,n.checked=r&&"checked"in r?r.checked:void 0,n.selectionStart=r&&"selectionStart"in r?r.selectionStart:void 0,n.selectionEnd=r&&"selectionEnd"in r?r.selectionEnd:void 0}catch{n.value=void 0,n.checked=void 0,n.selectionStart=void 0,n.selectionEnd=void 0}return n.touches=e.touches||null,n.targetTouches=e.targetTouches||null,n.changedTouches=e.changedTouches||null,n.path=typeof e.composedPath=="function"?e.composedPath():[n.target],n.repeat=e.repeat??!1,n.location=e.location??0,n}function Qr(e){e&&!e.isPersistent&&(e.nativeEvent=null,e.type=null,e.target=null,e.currentTarget=null,e.timeStamp=0,e.defaultPrevented=!1,e.isPropagationStopped=!1,e.isPersistent=!1,e.isDefaultPrevented=null,e.preventDefault=null,e.stopPropagation=null,e.persist=null,e.bubbles=!1,e.cancelable=!1,e.composed=!1,e.detail=void 0,e.relatedTarget=null,e.altKey=!1,e.ctrlKey=!1,e.metaKey=!1,e.shiftKey=!1,e.key=null,e.code=null,e.which=null,e.button=null,e.buttons=null,e.pointerId=null,e.pointerType=null,e.isPrimary=null,e.clientX=0,e.clientY=0,e.screenX=0,e.screenY=0,e.pageX=null,e.pageY=null,e.movementX=0,e.movementY=0,e.pressure=null,e.tiltX=null,e.tiltY=null,e.width=null,e.height=null,e.value=void 0,e.checked=void 0,e.selectionStart=void 0,e.selectionEnd=void 0,e.touches=null,e.targetTouches=null,e.changedTouches=null,e.path=null,e.repeat=!1,e.location=0,Ut.length<Gi&&Ut.push(e))}function eo(e,t={}){let{stopPropagationOnTrueReturn:n=!1}=t;return function(o){let s=this||o.currentTarget||null,c=zr(o,s);try{let a=e(c);n&&a===!0&&c.stopPropagation()}finally{Qr(c)}}}function Ji(e,t,n,r={}){let o=eo(n,r);return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)}var Tn={};Z(Tn,{Provider:()=>Zi,combineReducers:()=>es,connect:()=>Qi,useDispatch:()=>zi,useSelector:()=>to,useStore:()=>qt});var kn;function Zi({store:e,children:t}){return kn??(kn=tt(null)),createComponent(kn.Provider,{value:e},t)}function qt(){let e=nt(kn);if(!e)throw new Error("Could not find Redux store in context. <Provider> is missing.");return e}function zi(){return qt().dispatch}function to(e,t=(n,r)=>n===r){let n=qt(),r=R(),o=R(e);o.current=e;let[s,c]=Q(()=>e(n.getState()));return r.current=s,ee(()=>{function a(){let f=o.current(n.getState());t(r.current,f)||(r.current=f,c(f))}let l=n.subscribe(a);return a(),l},[n,t]),s}function Qi(e,t){let n=!!e;return function(o){function s(c){let a=qt(),l={dispatch:a.dispatch};if(typeof t=="function")l=t(a.dispatch,c);else if(typeof t=="object"&&t!==null){l={};let p=a.dispatch;for(let d in t){let y=t[d];l[d]=(...m)=>p(y(...m))}}let f={};e&&(f=to(d=>e(d,c),ie)||{});let u={...c,...f,...l};return createComponent(o,{...u})}return s}}function es(e){let t=Object.keys(e);for(let n of t)if(typeof e[n]!="function")throw new Error(`combineReducers: reducer for key "${n}" is not a function`);return function(r={},o){let s=!1,c={};for(let a of t){let l=e[a],f=r[a],u=l(f,o);c[a]=u,s=s||u!==f}return s?c:r}}var $n={};Z($n,{animationFramePromise:()=>hs,clearInterval:()=>us,clearTimeout:()=>as,grabTimers:()=>ls,pauseTimers:()=>os,releaseTimers:()=>fs,resetTimers:()=>rs,resumeTimers:()=>is,setInterval:()=>cs,setTimeout:()=>ss,timeoutPromise:()=>ps});var Re,Sn=0,de=[],Fe=0,Ee=new Map;function ts(e){let t=0,n=de.length-1;for(;t<=n;){let o=Math.floor((t+n)/2),s=de[o][fe];if(s===e)return[o,de[o]];s<e?t=o+1:n=o-1}let r=[];return r[fe]=e,de.splice(t,0,r),[t,r]}function Cn(){if(Re!==void 0||de.length===0)return;Lilact._clearTimeout(Fe);let e=Math.max(0,de[0][fe]-Date.now());Fe=Lilact._setTimeout(ns,e)}function On(e,t=!1){let[n,r]=ts(e[fe]);return t||(Sn+=1,e[F]=Sn,Ee.set(e[F],e)),r.push(e),n===0&&Re===void 0&&Cn(),e[F]}function ns(){Fe=-1;let e=Date.now(),t=[];for(;de.length>0&&de[0][fe]-e<=0;)t.push(de.shift());let n=[];for(let o of t)for(let s of o)n.push(s);let r;for(let o of n){if(o[Se]||Ee.get(o[F])!==o){Ee.delete(o[F]);continue}try{o[yt](...o[gt])}catch(s){r??(r=s)}if(o[Se]){Ee.delete(o[F]);continue}Ee.get(o[F])===o&&(o[dt]?(o[fe]=Date.now()+o[mt],On(o,!0)):Ee.delete(o[F]))}Cn(),r!==void 0&&Lilact._setTimeout(()=>{throw r},0)}function rs(){Lilact._clearTimeout(Fe);for(let e of Ee.values())e[Se]=!0;Re=void 0,Sn=-1,de=[],Fe=-1,Ee=new Map}function os(){Re===void 0&&(Lilact._clearTimeout(Fe),Fe=-1,Re=Date.now())}function is(){if(Re===void 0)return;let e=Date.now()-Re;for(let t of de)t[fe]+=e;Re=void 0,Cn()}function ss(e,t=0,...n){let r=Math.max(0,Number(t)||0);return On({[yt]:e,[mt]:r,[fe]:Date.now()+r,[dt]:!1,[Se]:!1,[gt]:n})}function cs(e,t=0,...n){let r=Math.max(0,Number(t)||0);return On({[yt]:e,[mt]:r,[fe]:Date.now()+r,[dt]:!0,[Se]:!1,[gt]:n})}function as(e){let t=Ee.get(e);t!==void 0?t[Se]=!0:Lilact._clearTimeout(e)}function us(e){let t=Ee.get(e);t!==void 0?t[Se]=!0:Lilact._clearInterval(e)}function ls(){globalThis.setTimeout=Lilact.setTimeout,globalThis.setInterval=Lilact.setInterval,globalThis.clearTimeout=Lilact.clearTimeout,globalThis.clearInterval=Lilact.clearInterval}function fs(){globalThis.setTimeout=Lilact._setTimeout,globalThis.setInterval=Lilact._setInterval,globalThis.clearTimeout=Lilact._clearTimeout,globalThis.clearInterval=Lilact._clearInterval}function ps(e=0,t=Lilact){let n,r,o,s=new Promise((c,a)=>{r=c,o=a,n=t.setTimeout(()=>{c()},e)});return s.proceed=()=>{t.clearTimeout(n),r()},s.cancel=()=>{t.clearTimeout(n),o()},s}function hs(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}var An={};Z(An,{blocks_info:()=>ks,error:()=>Ts,globalErrorHandler:()=>Es,scanBlockLabels:()=>vs,traceError:()=>ro});function ds(){let e=navigator.userAgent;return/Safari/.test(e)&&!/Chrome|Chromium|CriOS|FxiOS|EdgiOS|OPiOS/.test(e)}function Kt(e){let t=Number(e);return Number.isFinite(t)?t:null}function ms(e){if(e instanceof Error)return e;if(e?.error instanceof Error)return e.error;let t=new Error(e?.message==null?String(e):String(e.message));if(e&&typeof e=="object"){e.name&&(t.name=e.name),e.stack&&(t.stack=e.stack);for(let n of Object.keys(e))n in t||(t[n]=e[n])}return t}function no(e){return e?.name==="JSXParserError"}function ys(e){if(typeof e!="string")return null;for(let t of e.split(/\r?\n/)){let n=t.match(/(eval:\/.*):(\d+):(\d+)/);if(n)return{path:n[1].replace(/^eval:\/+/,""),line:Number(n[2])-1,column:Number(n[3])-1}}return null}function gs(e){let t=Kt(e?.lineNumber??e?.lineno??e?.line),n=Kt(e?.columnNumber??e?.colno??e?.column),r=ds()?0:1;return{line:t==null?null:Math.max(0,t-r),column:n==null?null:Math.max(0,n-1)}}function bs(e){let t=e?.lilact_trace;return Array.isArray(t)?t[0]:t}function ws(e){let t=bs(e);return t==null?null:E.blocks_info?.labels?.[t]}function xs(e,t,n){if(!Array.isArray(e)||!e.length||!Number.isFinite(t)||!Number.isFinite(n))return{line:t,column:n};let r=e.filter(f=>Array.isArray(f)&&f.length>=4&&f.slice(0,4).every(u=>Number.isFinite(Number(u)))).sort((f,u)=>Number(f[0])-Number(u[0])||Number(f[1])-Number(u[1]));if(!r.length)return{line:t,column:n};let o=r[0];for(let f of r){let u=Number(f[0]),p=Number(f[1]);if(u<t||u===t&&p<=n)o=f;else break}let s=Number(o[0]),c=Number(o[1]),a=Number(o[2]),l=Number(o[3]);return{line:a+(t===s?0:t-s),column:t===s?Math.max(0,l+n-c):l}}function ro(e,t){if(e?.isTraced)return e;let n=ms(e),r=n.lilact_source,o=no(n)?null:ys(n.stack),s=no(n)?{line:Kt(n.lineNumber),column:Kt(n.columnNumber)}:gs(n),c=r?.path||o?.path||n.fileName||t||null,a=!r?.path||!o?.path||r.path===o.path,l=a?o?.line??s.line??null:s.line??null,f=a?o?.column??s.column??null:s.column??null,u={fileName:c,lineNumber:l,columnNumber:f,message:n.message==null?String(n):String(n.message),name:n.name||"Error",stack:n.stack||null,lilact_source:r||null,_error:n,isTraced:!0},p=c&&qe[c];if(p){let y=xs(p.mappings,u.lineNumber,u.columnNumber);u.lineNumber=y.line,u.columnNumber=y.column}let d=ws(n);return d&&(u.lineNumber==null||u.columnNumber==null||!u.fileName)&&(u.fileName||(u.fileName=d.path||t||null),u.lineNumber??(u.lineNumber=d.line),u.columnNumber??(u.columnNumber=d.column),u.label=d.desc),E.error=u,u}function Ft(e){return String(e??"").replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}function _s(e,t){if(!e||!Number.isFinite(t))return null;let n=String(e.code??"").split(/\r?\n/);return{before:n[t-1]??"",current:n[t]??"",after:n[t+1]??""}}function Es(e){let t=e?.error instanceof Error?e.error:e?.reason!==void 0?e.reason:e,n=ro(t,e?.fileName||null),r=_s(qe[n.fileName],n.lineNumber),o=sn(`
57
+ var zn=Object.defineProperty;var wo=(e,t,n)=>t in e?zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ee=(e,t)=>{for(var n in t)zn(e,n,{get:t[n],enumerable:!0})};var te=(e,t,n)=>wo(e,typeof t!="symbol"?t+"":t,n);var Qt={};ee(Qt,{__DO_NOT_USE__ActionTypes:()=>ct,applyMiddleware:()=>So,bindActionCreators:()=>To,combineReducers:()=>ko,compose:()=>tr,createStore:()=>zt,isAction:()=>Co,isPlainObject:()=>Zt,legacy_createStore:()=>Eo});function F(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var xo=typeof Symbol=="function"&&Symbol.observable||"@@observable",Qn=xo,Jt=()=>Math.random().toString(36).substring(7).split("").join("."),_o={INIT:`@@redux/INIT${Jt()}`,REPLACE:`@@redux/REPLACE${Jt()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Jt()}`},ct=_o;function Zt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function zt(e,t,n){if(typeof e!="function")throw new Error(F(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(F(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(F(1));return n(zt)(e,t)}let r=e,o=t,s=new Map,c=s,a=0,l=!1;function u(){c===s&&(c=new Map,s.forEach((v,h)=>{c.set(h,v)}))}function f(){if(l)throw new Error(F(3));return o}function p(v){if(typeof v!="function")throw new Error(F(4));if(l)throw new Error(F(5));let h=!0;u();let k=a++;return c.set(k,v),function(){if(h){if(l)throw new Error(F(6));h=!1,u(),c.delete(k),s=null}}}function d(v){if(!Zt(v))throw new Error(F(7));if(typeof v.type>"u")throw new Error(F(8));if(typeof v.type!="string")throw new Error(F(17));if(l)throw new Error(F(9));try{l=!0,o=r(o,v)}finally{l=!1}return(s=c).forEach(k=>{k()}),v}function m(v){if(typeof v!="function")throw new Error(F(10));r=v,d({type:ct.REPLACE})}function x(){let v=p;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(F(11));function k(){let O=h;O.next&&O.next(f())}return k(),{unsubscribe:v(k)}},[Qn](){return this}}}return d({type:ct.INIT}),{dispatch:d,subscribe:p,getState:f,replaceReducer:m,[Qn]:x}}function Eo(e,t,n){return zt(e,t,n)}function vo(e){Object.keys(e).forEach(t=>{let n=e[t];if(typeof n(void 0,{type:ct.INIT})>"u")throw new Error(F(12));if(typeof n(void 0,{type:ct.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(F(13))})}function ko(e){let t=Object.keys(e),n={};for(let c=0;c<t.length;c++){let a=t[c];typeof e[a]=="function"&&(n[a]=e[a])}let r=Object.keys(n),o,s;try{vo(n)}catch(c){s=c}return function(a={},l){if(s)throw s;let u=!1,f={};for(let p=0;p<r.length;p++){let d=r[p],m=n[d],x=a[d],w=m(x,l);if(typeof w>"u"){let v=l&&l.type;throw new Error(F(14))}f[d]=w,u=u||w!==x}return u=u||r.length!==Object.keys(a).length,u?f:a}}function er(e,t){return function(...n){return t(e.apply(this,n))}}function To(e,t){if(typeof e=="function")return er(e,t);if(typeof e!="object"||e===null)throw new Error(F(16));let n={};for(let r in e){let o=e[r];typeof o=="function"&&(n[r]=er(o,t))}return n}function tr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function So(...e){return t=>(n,r)=>{let o=t(n,r),s=()=>{throw new Error(F(15))},c={getState:o.getState,dispatch:(l,...u)=>s(l,...u)},a=e.map(l=>l(c));return s=tr(...a)(o.dispatch),{...o,dispatch:s}}}function Co(e){return Zt(e)&&"type"in e&&typeof e.type=="string"}var cn={};ee(cn,{cache:()=>ei,css:()=>sn,cx:()=>Ho,flush:()=>Yo,getRegisteredStyles:()=>Zo,hydrate:()=>Go,injectGlobal:()=>dt,keyframes:()=>zo,merge:()=>Jo,sheet:()=>Qo});var Oo=!1;function $o(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ao(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var nr=(function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!Oo:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ao(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=$o(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})();var K="-ms-",at="-moz-",A="-webkit-",Tt="comm",Be="rule",Ve="decl";var rr="@import";var St="@keyframes";var or="@layer";var ir=Math.abs,Me=String.fromCharCode,sr=Object.assign;function cr(e,t){return D(e,0)^45?(((t<<2^D(e,0))<<2^D(e,1))<<2^D(e,2))<<2^D(e,3):0}function Ct(e){return e.trim()}function en(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,n){return e.replace(t,n)}function ut(e,t){return e.indexOf(t)}function D(e,t){return e.charCodeAt(t)|0}function Re(e,t,n){return e.slice(t,n)}function H(e){return e.length}function Xe(e){return e.length}function Ye(e,t){return t.push(e),e}function tn(e,t){return e.map(t).join("")}var Ot=1,Ge=1,ar=0,J=0,M=0,Je="";function lt(e,t,n,r,o,s,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Ot,column:Ge,length:c,return:""}}function Ze(e,t){return sr(lt("",null,null,"",null,null,0),e,{length:-e.length},t)}function ur(){return M}function lr(){return M=J>0?D(Je,--J):0,Ge--,M===10&&(Ge=1,Ot--),M}function Z(){return M=J<ar?D(Je,J++):0,Ge++,M===10&&(Ge=1,Ot++),M}function ue(){return D(Je,J)}function ft(){return J}function ze(e,t){return Re(Je,e,t)}function He(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $t(e){return Ot=Ge=1,ar=H(Je=e),J=0,[]}function At(e){return Je="",e}function Qe(e){return Ct(ze(J-1,nn(e===91?e+2:e===40?e+1:e)))}function fr(e){for(;(M=ue())&&M<33;)Z();return He(e)>2||He(M)>3?"":" "}function pr(e,t){for(;--t&&Z()&&!(M<48||M>102||M>57&&M<65||M>70&&M<97););return ze(e,ft()+(t<6&&ue()==32&&Z()==32))}function nn(e){for(;Z();)switch(M){case e:return J;case 34:case 39:e!==34&&e!==39&&nn(M);break;case 40:e===41&&nn(e);break;case 92:Z();break}return J}function dr(e,t){for(;Z()&&e+M!==57;)if(e+M===84&&ue()===47)break;return"/*"+ze(t,J-1)+"*"+Me(e===47?e:Z())}function hr(e){for(;!He(ue());)Z();return ze(e,J)}function gr(e){return At(Lt("",null,null,null,[""],e=$t(e),0,[0],e))}function Lt(e,t,n,r,o,s,c,a,l){for(var u=0,f=0,p=c,d=0,m=0,x=0,w=1,v=1,h=1,k=0,T="",O=o,P=s,_=r,y=T;v;)switch(x=k,k=Z()){case 40:if(x!=108&&D(y,p-1)==58){ut(y+=$(Qe(k),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:y+=Qe(k);break;case 9:case 10:case 13:case 32:y+=fr(x);break;case 92:y+=pr(ft()-1,7);continue;case 47:switch(ue()){case 42:case 47:Ye(Lo(dr(Z(),ft()),t,n),l);break;default:y+="/"}break;case 123*w:a[u++]=H(y)*h;case 125*w:case 59:case 0:switch(k){case 0:case 125:v=0;case 59+f:h==-1&&(y=$(y,/\f/g,"")),m>0&&H(y)-p&&Ye(m>32?yr(y+";",r,n,p-1):yr($(y," ","")+";",r,n,p-2),l);break;case 59:y+=";";default:if(Ye(_=mr(y,t,n,u,f,o,a,T,O=[],P=[],p),s),k===123)if(f===0)Lt(y,t,_,_,O,s,p,a,P);else switch(d===99&&D(y,3)===110?100:d){case 100:case 108:case 109:case 115:Lt(e,_,_,r&&Ye(mr(e,_,_,0,0,o,a,T,o,O=[],p),P),o,P,p,a,r?O:P);break;default:Lt(y,_,_,_,[""],P,0,a,P)}}u=f=m=0,w=h=1,T=y="",p=c;break;case 58:p=1+H(y),m=x;default:if(w<1){if(k==123)--w;else if(k==125&&w++==0&&lr()==125)continue}switch(y+=Me(k),k*w){case 38:h=f>0?1:(y+="\f",-1);break;case 44:a[u++]=(H(y)-1)*h,h=1;break;case 64:ue()===45&&(y+=Qe(Z())),d=ue(),f=p=H(T=y+=hr(ft())),k++;break;case 45:x===45&&H(y)==2&&(w=0)}}return s}function mr(e,t,n,r,o,s,c,a,l,u,f){for(var p=o-1,d=o===0?s:[""],m=Xe(d),x=0,w=0,v=0;x<r;++x)for(var h=0,k=Re(e,p+1,p=ir(w=c[x])),T=e;h<m;++h)(T=Ct(w>0?d[h]+" "+k:$(k,/&\f/g,d[h])))&&(l[v++]=T);return lt(e,t,n,o===0?Be:a,l,u,f)}function Lo(e,t,n){return lt(e,t,n,Tt,Me(ur()),Re(e,2,-2),0)}function yr(e,t,n,r){return lt(e,t,n,Ve,Re(e,0,r),Re(e,r+1,-1),r)}function Ue(e,t){for(var n="",r=Xe(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function br(e,t,n,r){switch(e.type){case or:if(e.children.length)break;case rr:case Ve:return e.return=e.return||e.value;case Tt:return"";case St:return e.return=e.value+"{"+Ue(e.children,r)+"}";case Be:e.value=e.props.join(",")}return H(n=Ue(e.children,r))?e.return=e.value+"{"+n+"}":""}function wr(e){var t=Xe(e);return function(n,r,o,s){for(var c="",a=0;a<t;a++)c+=e[a](n,r,o,s)||"";return c}}function xr(e){return function(t){t.root||(t=t.return)&&e(t)}}function _r(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ro=function(t,n,r){for(var o=0,s=0;o=s,s=ue(),o===38&&s===12&&(n[r]=1),!He(s);)Z();return ze(t,J)},Io=function(t,n){var r=-1,o=44;do switch(He(o)){case 0:o===38&&ue()===12&&(n[r]=1),t[r]+=Ro(J-1,n,r);break;case 2:t[r]+=Qe(o);break;case 4:if(o===44){t[++r]=ue()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Me(o)}while(o=Z());return t},Po=function(t,n){return At(Io($t(t),n))},Er=new WeakMap,No=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Er.get(r))&&!o){Er.set(t,!0);for(var s=[],c=Po(n,s),a=r.props,l=0,u=0;l<c.length;l++)for(var f=0;f<a.length;f++,u++)t.props[u]=s[l]?c[l].replace(/&\f/g,a[f]):a[f]+" "+c[l]}}},jo=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function vr(e,t){switch(cr(e,t)){case 5103:return A+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return A+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return A+e+at+e+K+e+e;case 6828:case 4268:return A+e+K+e+e;case 6165:return A+e+K+"flex-"+e+e;case 5187:return A+e+$(e,/(\w+).+(:[^]+)/,A+"box-$1$2"+K+"flex-$1$2")+e;case 5443:return A+e+K+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return A+e+K+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return A+e+K+$(e,"shrink","negative")+e;case 5292:return A+e+K+$(e,"basis","preferred-size")+e;case 6060:return A+"box-"+$(e,"-grow","")+A+e+K+$(e,"grow","positive")+e;case 4554:return A+$(e,/([^-])(transform)/g,"$1"+A+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,A+"$1"),/(image-set)/,A+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,A+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,A+"box-pack:$3"+K+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+A+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,A+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(H(e)-1-t>6)switch(D(e,t+1)){case 109:if(D(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+A+"$2-$3$1"+at+(D(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ut(e,"stretch")?vr($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(D(e,t+1)!==115)break;case 6444:switch(D(e,H(e)-3-(~ut(e,"!important")&&10))){case 107:return $(e,":",":"+A)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+A+(D(e,14)===45?"inline-":"")+"box$3$1"+A+"$2$3$1"+K+"$2box$3")+e}break;case 5936:switch(D(e,t+11)){case 114:return A+e+K+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return A+e+K+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return A+e+K+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return A+e+K+e+e}return e}var Do=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ve:t.return=vr(t.value,t.length);break;case St:return Ue([Ze(t,{value:$(t.value,"@","@"+A)})],o);case Be:if(t.length)return tn(t.props,function(s){switch(en(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ue([Ze(t,{props:[$(s,/:(read-\w+)/,":"+at+"$1")]})],o);case"::placeholder":return Ue([Ze(t,{props:[$(s,/:(plac\w+)/,":"+A+"input-$1")]}),Ze(t,{props:[$(s,/:(plac\w+)/,":"+at+"$1")]}),Ze(t,{props:[$(s,/:(plac\w+)/,K+"input-$1")]})],o)}return""})}},Mo=[Do],kr=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(w){var v=w.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||Mo,s={},c,a=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(w){for(var v=w.getAttribute("data-emotion").split(" "),h=1;h<v.length;h++)s[v[h]]=!0;a.push(w)});var l,u=[No,jo];{var f,p=[br,xr(function(w){f.insert(w)})],d=wr(u.concat(o,p)),m=function(v){return Ue(gr(v),d)};l=function(v,h,k,T){f=k,m(v?v+"{"+h.styles+"}":h.styles),T&&(x.inserted[h.name]=!0)}}var x={key:n,sheet:new nr({key:n,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:l};return x.sheet.hydrate(a),x};function Tr(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Sr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Uo=!1,qo=/[A-Z]|^ms/g,Fo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ar=function(t){return t.charCodeAt(1)===45},Cr=function(t){return t!=null&&typeof t!="boolean"},rn=_r(function(e){return Ar(e)?e:e.replace(qo,"-$&").toLowerCase()}),Or=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Fo,function(r,o,s){return _e={name:o,styles:s,next:_e},o})}return Sr[t]!==1&&!Ar(t)&&typeof n=="number"&&n!==0?n+"px":n},Ko="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function pt(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return _e={name:o.name,styles:o.styles,next:_e},o.name;var s=n;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)_e={name:c.name,styles:c.styles,next:_e},c=c.next;var a=s.styles+";";return a}return Wo(e,t,n)}case"function":{if(e!==void 0){var l=_e,u=n(e);return _e=l,pt(e,t,u)}break}}var f=n;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function Wo(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=pt(e,t,n[o])+";";else for(var s in n){var c=n[s];if(typeof c!="object"){var a=c;t!=null&&t[a]!==void 0?r+=s+"{"+t[a]+"}":Cr(a)&&(r+=rn(s)+":"+Or(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&Uo)throw new Error(Ko);if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var l=0;l<c.length;l++)Cr(c[l])&&(r+=rn(s)+":"+Or(s,c[l])+";");else{var u=pt(e,t,c);switch(s){case"animation":case"animationName":{r+=rn(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}}return r}var $r=/label:\s*([^\s;{]+)\s*(;|$)/g,_e;function Rt(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";_e=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=pt(n,t,s);else{var c=s;o+=c[0]}for(var a=1;a<e.length;a++)if(o+=pt(n,t,e[a]),r){var l=s;o+=l[a]}$r.lastIndex=0;for(var u="",f;(f=$r.exec(o))!==null;)u+="-"+f[1];var p=Tr(o)+u;return{name:p,styles:o,next:_e}}var Bo=!0;function on(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Vo=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Bo===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Lr=function(t,n,r){Vo(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Rr(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Ir(e,t,n){var r=[],o=on(e,r,n);return r.length<2?n:o+t(r)}var Pr=function(t){var n=kr(t);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Rt(u,n.registered,void 0);return Lr(n,p,!1),n.key+"-"+p.name},o=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Rt(u,n.registered),d="animation-"+p.name;return Rr(n,{name:p.name,styles:"@keyframes "+d+"{"+p.styles+"}"}),d},s=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Rt(u,n.registered);Rr(n,p)},c=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];return Ir(n.registered,r,Xo(u))};return{css:r,cx:c,injectGlobal:s,keyframes:o,hydrate:function(l){l.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:on.bind(null,n.registered),merge:Ir.bind(null,n.registered,r)}},Xo=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=e(o);else{s="";for(var c in o)o[c]&&c&&(s&&(s+=" "),s+=c)}break}default:s=o}s&&(n&&(n+=" "),n+=s)}}return n};var Ee=Pr({key:"css"}),Yo=Ee.flush,Go=Ee.hydrate,Ho=Ee.cx,Jo=Ee.merge,Zo=Ee.getRegisteredStyles,dt=Ee.injectGlobal,zo=Ee.keyframes,sn=Ee.css,Qo=Ee.sheet,ei=Ee.cache;var dn={};ee(dn,{Children:()=>qe,Fragment:()=>Nr,Portal:()=>jr,deepEqual:()=>ln,eval_num:()=>ci,findDOMNode:()=>ni,forwardRef:()=>fn,getComponentByPointer:()=>ri,id_num:()=>si,isAsync:()=>oi,isClass:()=>pn,isEmpty:()=>V,isError:()=>ii,isThenable:()=>It,isValidComponent:()=>tt,isValidElement:()=>ti,shallowEqual:()=>ce,toBool:()=>Pt});var un={};ee(un,{ARGS:()=>bt,CALLBACK:()=>gt,CHILD_CLASS_ADDENDUM:()=>de,CLEARED:()=>$e,COMPONENT:()=>et,CORE:()=>g,DUE:()=>he,IDX:()=>W,INTERVAL:()=>yt,IS_ZOMBIE:()=>an,LAZY:()=>ht,MEMOIZED:()=>Oe,REPEAT:()=>mt,TEXT:()=>B});var[g,et,B,an,W,de,Oe,ht,he,mt,$e,yt,gt,bt]=[Symbol.for("LILACT:CORE"),Symbol.for("LILACT:COMPONENT"),Symbol.for("LILACT:TEXT"),Symbol.for("LILACT:IS_ZOMBIE"),Symbol.for("LILACT:IDX"),Symbol.for("LILACT:CHILD_CLASS_ADDENDUM"),Symbol.for("LILACT:MEMOIZED"),Symbol.for("LILACT:LAZY"),Symbol.for("LILACT:TIMERS:DUE"),Symbol.for("LILACT:TIMERS:REPEAT"),Symbol.for("LILACT:TIMERS:CLEARED"),Symbol.for("LILACT:TIMERS:INTERVAL"),Symbol.for("LILACT:TIMERS:CALLBACK"),Symbol.for("LILACT:TIMERS:ARGS")];var ve=e=>{let t=Object.prototype.toString.call(e).toLowerCase();return/\[object (.*)]/g.exec(t)[1]},tt=e=>!!(e&&(e[g]!==void 0||e[TEXT]!==void 0)),ti=tt,ni=e=>{if(!e[g]?.element?.parentNode)throw new Error("findDOMNode only works on mounted components.");return e[g].element};function Nr({children:e}){return e}Nr.displayName="Fragment";function jr({children:e,view:t}){return this[g].portal=t,e}jr.displayName="Portal";var qe={_isNil(e){return e==null},_flattenInto(e,t){if(!this._isNil(t)){if(Array.isArray(t)){for(let n of t)this._flattenInto(e,n);return}e.push(t)}},toArray(e){let t=[];if(!e)return t;for(let n of e)this._flattenInto(t,n);return t},count(e){return this.toArray(e).length},only(e){let t=this.toArray(e);if(t.length!==1)throw new Error(t.length===0?"Expected exactly one child, but received none.":"Expected exactly one child, but received more than one.");return t[0]},map(e,t){let n=this.toArray(e),r=[];for(let o=0;o<n.length;o++)r.push(t(n[o],o));return r},forEach(e,t){let n=this.toArray(e);for(let r=0;r<n.length;r++)t(n[r],r)},find(e,t){let n=this.toArray(e);for(let r=0;r<n.length;r++)if(t(n[r],r))return n[r]},pickOne(e,t){let n=this.toArray(e),r,o=0;for(let s=0;s<n.length&&!(t(n[s],s)&&(o++,r=n[s],o>1));s++);if(o!==1)throw new Error(o===0?"pickOne expected exactly one matching child, but matched none.":"pickOne expected exactly one matching child, but matched multiple.");return r},first(e){return this.toArray(e)[0]},last(e){let t=this.toArray(e);return t.length?t[t.length-1]:void 0}},fn=e=>{let t=function(n,r){return e({...n,ref:void 0},r)};return t.displayName="Forwarded "+e.displayName,t};function ri(){let e,t=new Promise((r,o)=>{e=r});function n(r){r.stopImmediatePropagation(),window.removeEventListener("click",n,!0);let o=r.target;for(;!o[et]&&o.parentNode;)o=o.parentNode;return e(o[et]),!1}return window.addEventListener("click",n,!0),t}function V(e){for(let t in e)return!1;return!0}var ce=(e,t,n)=>{if(Object.is(e,t))return!0;if(ve(e)!==ve(t))return!1;if(ve(e)==="array")return e.length!==t.length?!1:e.every((r,o)=>o===n||Object.is(r,t[o]));if(ve(e)==="object"){let r=Object.keys(e).filter(s=>s!==n),o=Object.keys(t).filter(s=>s!==n);return r.length!==o.length?!1:r.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&Object.is(e[s],t[s]))}return ve(e)==="date"?e.getTime()===t.getTime():Object.is(e,t)};function ln(e,t){return ve(e)!==ve(t)?!1:ve(e)==="array"?e.length!==t.length?!1:e.every((n,r)=>ln(n,t[r])):ve(e)==="object"?Object.keys(e).length!==Object.keys(t).length?!1:Object.keys(e).every(n=>ln(e[n],t[n])):ve(e)==="date"?e.getTime()===t.getTime():e===t}function pn(e){return!(e&&e.constructor===Function)||e.prototype===void 0?!1:Function.prototype!==Object.getPrototypeOf(e)?!0:Object.getOwnPropertyNames(e.prototype).length>1}function oi(e){return typeof e=="function"&&e.constructor&&e.constructor.name==="AsyncFunction"}function It(e){return e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function ii(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function Pt(e){if(typeof e=="boolean")return e;if(typeof e=="number")return e!==0;if(typeof e=="string"){if(e=e.trim().toLowerCase(),e==="true")return!0;if(e==="false")return!1}return!!e}var si=Math.floor(Math.random()*1e4),ci=0;function z(e){return e==null}function X(e){return e||"<<anonymous>>"}function ai(e){return e&&(e.displayName||e.name)||"Unknown"}function Dr(e){return e==null||e===!1||e===!0||typeof e=="string"||typeof e=="number"||tt(e)?!0:Array.isArray(e)?e.every(Dr):!1}function ui(e){return typeof e=="function"||typeof e=="string"}function me(e){let t=function(r,o,s,c,a,l){let u=r[o];if(z(u)||e(u))return null;let f=e.expectedType||"the correct type",p=u===null?"null":typeof u;return new Error(`Invalid ${c} \`${a}\` of type \`${p}\` supplied to \`${X(s)}\`, expected \`${f}\`.`)};return t.isRequired=function(r,o,s,c,a){let l=r[o];return z(l)?new Error(`The ${c} \`${a}\` is marked as required in \`${X(s)}\`, but its value is \`${l}\`.`):t(r,o,s,c,a)},t}function li(){let e={};e.any=(function(){let r=function(s,c,a,l,u){return null};return r.isRequired=function(){return null},r})(),e.array=me(r=>Array.isArray(r)),e.array.expectedType="array",e.bool=me(r=>typeof r=="boolean"),e.bool.expectedType="boolean",e.func=me(r=>typeof r=="function"),e.func.expectedType="function",e.number=me(r=>typeof r=="number"&&!Number.isNaN(r)),e.number.expectedType="number",e.object=me(r=>typeof r=="object"&&r!==null&&!Array.isArray(r)),e.object.expectedType="object",e.string=me(r=>typeof r=="string"),e.string.expectedType="string",e.symbol=me(r=>typeof r=="symbol"),e.symbol.expectedType="symbol",e.component=me(r=>tt(r)),e.component.expectedType="component",e.element=me(r=>tt(r)),e.element.expectedType="element",e.node=me(r=>Dr(r)),e.node.expectedType="node",e.elementType=me(r=>ui(r)),e.elementType.expectedType="elementType",e.oneOf=function(o){let s=Array.isArray(o)?o:[],c=function(l,u,f,p,d){let m=l[u];if(z(m))return null;for(let w=0;w<s.length;w++)if(m===s[w])return null;let x=m===null?"null":typeof m;return new Error(`Invalid ${p} \`${d}\` of value \`${String(m)}\` supplied to \`${X(f)}\`, expected one of [${s.map(String).join(", ")}] (received type \`${x}\`).`)};return c.isRequired=function(l,u,f,p,d){return z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${X(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c},e.oneOfType=function(o){let s=o||[],c=function(l,u,f,p,d){let m=l[u];if(z(m))return null;for(let x=0;x<s.length;x++)if(s[x](l,u,f,p,d)===null)return null;return new Error(`Invalid ${p} \`${d}\` supplied to \`${X(f)}\` (none of the allowed types matched).`)};return c.isRequired=function(l,u,f,p,d){return z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${X(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c},e.arrayOf=function(o){let s=o,c=function(l,u,f,p,d){let m=l[u];if(z(m))return null;if(!Array.isArray(m))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof m}\` supplied to \`${X(f)}\`, expected an array.`);for(let x=0;x<m.length;x++){let w=`${d}[${x}]`,v=s({[u]:m[x]},u,f,p,w);if(v!==null)return v}return null};return c.isRequired=function(l,u,f,p,d){return z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${X(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c},e.objectOf=function(o){let s=o,c=function(l,u,f,p,d){let m=l[u];if(z(m))return null;if(typeof m!="object"||m===null||Array.isArray(m))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof m}\` supplied to \`${X(f)}\`, expected an object.`);let x=Object.keys(m);for(let w=0;w<x.length;w++){let v=x[w],h=`${d}.${v}`,k=s({[u]:m[v]},u,f,p,h);if(k!==null)return k}return null};return c.isRequired=function(l,u,f,p,d){return z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${X(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c};function t(r,{exact:o}){let s=r?Object.keys(r):[],c=function(l,u,f,p,d){let m=l[u];if(z(m))return null;if(typeof m!="object"||m===null||Array.isArray(m))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof m}\` supplied to \`${X(f)}\`, expected an object.`);if(o){let w=Object.keys(m);for(let v=0;v<w.length;v++){let h=w[v];if(!Object.prototype.hasOwnProperty.call(r,h)){let k=`${d}.${h}`;return new Error(`Invalid ${p} \`${k}\` supplied to \`${X(f)}\`: extra key \`${h}\` is not allowed by exact().`)}}}for(let w=0;w<s.length;w++){let v=s[w],h=r[v],k=m[v],T=`${d}.${v}`;if(z(k)){let P=h({[u]:k},u,f,p,T);if(P!==null)return P;continue}let O=h({[u]:k},u,f,p,T);if(O!==null)return O}return null};return c.isRequired=function(l,u,f,p,d){return z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${X(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c}e.shape=function(o){return t(o,{exact:!1})},e.exact=function(o){return t(o,{exact:!0})},e.instanceOf=function(o){let s=function(a,l,u,f,p){let d=a[l];return z(d)||d instanceof o?null:new Error(`Invalid ${f} \`${p}\` supplied to \`${X(u)}\`: expected instance of \`${ai(o)}\`.`)};return s.isRequired=function(a,l,u,f,p){return z(a[l])?new Error(`The ${f} \`${p}\` is marked as required in \`${X(u)}\`, but its value is \`${a[l]}\`.`):s(a,l,u,f,p)},s};let n=new Set;return e.checkPropTypes=function(o,s,c,a){},e}var Mr=li();var yn={};ee(yn,{Component:()=>Ie,HTMLComponent:()=>xt,RootComponent:()=>Nt,boolean_html_attributes_set:()=>Br,capture_events_set:()=>Dt,cloneComponent:()=>Fr,cloneElement:()=>bi,createComponent:()=>mn,createElement:()=>_i,createPortal:()=>gi,createRoot:()=>qr,current_component:()=>Ei,effect_timeout:()=>Ai,events_set:()=>jt,insertion_effects:()=>Ci,layout_effects:()=>Si,length_css_attributes_set:()=>Wr,memo:()=>xi,passive_effects:()=>Oi,processEffects:()=>Ur,render:()=>wi,roots:()=>Ti,special_attributes:()=>Kr,update_cbs:()=>ki,update_interval_margin:()=>Li,update_set:()=>vi,update_timeout:()=>$i});var fi="http://www.w3.org/2000/svg",hn=class{constructor(t){te(this,"owner");te(this,"current_map",new Map);te(this,"new_map",new Map);te(this,"pick_index",0);this.owner=t}pick(t,n){var s;let r,o=this.current_map.get(t);return o&&o.length>o[W]?(r=o[o[W]],o[W]++,o=this.new_map.get(t),o!==void 0?o.push(r):(o=[r],this.new_map.set(t,o),o[W]=0)):(r=n(),o=this.new_map.get(t),o!==void 0?o.push(r):(o=[r],this.new_map.set(t,o),o[W]=0),r[g]&&((s=r[g]).parent??(s.parent=this.owner))),r}commit(){this.current_map.forEach(t=>{t.slice(t[W]).forEach(n=>{n.cleanup?n.cleanup():n.element&&!n.portal&&n.element.parentElement.removeChild(n.element)})}),this.current_map=this.new_map,this.new_map=new Map}},wt=class{constructor(t,n){te(this,"component");te(this,"props");this.component=t,this.props=n||{}}apply(t=this.props,n=this.next_state||this.state){try{let r=!0;if(this.outlet&&this?.[Oe]&&ce(this.props,t,"children")&&ce(this.props?.children,t?.children)&&(r=!1),r){if(typeof n=="function"&&(n=n(this.state)),this.component.constructor.defaultProps&&(t={...this.component.constructor.defaultProps,...t}),(this?.parent?.component?.context||this?.parent?.component?.getChildContext)&&(this.context={...this.parent.component.context,...this.parent.component.getChildContext?.()}),this.component.shouldComponentUpdate&&!this.component.shouldComponentUpdate(n,t,this.context))return;typeof this.entity=="string"&&(this.element instanceof Element||(this.is_svg||this.container.is_svg?(this.is_svg=!0,this.element=document.createElementNS(fi,this.entity)):this.element=document.createElement(this.entity),t?.defaultValue&&(this.element.value=String(t.defaultValue).slice(0,t?.maxLength)),t?.defaultChecked&&(this.element.checked=t.defaultChecked)),this.element[et]=this.component),t.ref&&(typeof t.ref=="function"?t.ref(this.element||this.component):t.ref.current=this.element||this.component),t!==void 0&&this.component.componentWillReceiveProps&&this.component.componentWillReceiveProps(t),this.component.componentWillUpdate&&this.component.componentWillUpdate(t,n);let o=this.state,s=this.props;if(this.element&&this.updateElementProps(t),this.props=t,typeof this.next_state=="object")this.state?Object.assign(this.state,n):this.state={...n};else if(this.next_state!==void 0)throw new Error("Component.setState only accepts objects or functions is new state.");this.next_state&&delete this.next_state,this.hooks!==void 0?(this.hook_index=0,E.current_component=[this,E.current_component],this.outlet=this.component.render(t,{current:this.element||this.component}),E.current_component=E.current_component[1]):this.outlet=this.component.render({current:this.element||this.component}),this?.portal&&(this.element=this.portal),this.outlet?.constructor?.name!=="Array"?this.outlet=[this.outlet]:this.outlet=[...this.outlet];for(let c=0;c<this.outlet.length;c++){let a=this.outlet[c];if(a==null||typeof a=="boolean")this.outlet.splice(c,1),c--;else if(typeof a=="function"){let l=this.childFunctionHandler(a);this.outlet.splice(c,1,l),c--}else if(a.constructor.name==="Array")this.outlet.splice(c,1,...a),c--;else{let l=hi(this,a);this.outlet[c]=l,l[B]===void 0?(l.container=this.element?this:this.container,l.apply(a.props)):l.element?l[B]!==a[B]&&(l.element.textContent=a[B],l[B]=a[B]):(l.element=document.createTextNode(a[B]),l[B]=a[B])}}this.cache&&this.cache.commit(),this.element&&this.arrangeOutlet(),this.component.componentDidUpdate&&this.component.componentDidUpdate(s,o,this.last_snapshot),this.last_snapshot&&delete this.last_snapshot}}catch(r){pi(this,r)}}async cleanup(){try{let t=[];if(this.props?.ref&&(typeof this.props.ref=="function"?this.props.ref(null):this.props.current=null),this.component.componentWillUnmount&&this.component.componentWillUnmount(),this?.element?.parentElement&&!this.portal&&this.element.parentElement.removeChild(this.element),this.outlet!==void 0)for(let n of this.outlet)n.cleanup&&t.push(n.cleanup());if(this.props?.children!==void 0)for(let n of this.props.children)n.cleanup&&t.push(n.cleanup());if(this.hooks!==void 0)for(let n of this.hooks)n.cleanup&&t.push(n.cleanup());await Promise.all(t)}catch(t){throw t}}updateElementProps(t,n=!1){this.entity==="input"?(t?.type||(t.type="text"),t.type!==this.element.type&&(this.element.type=t.type),t?.value!==void 0&&t?.value!==this.element.value&&(t.value===void 0&&(t.value=""),this.element.value=String(t.value).slice(0,t?.maxLength))):this.entity==="textarea"?t?.value!==this.element.value&&(this.element.value=String(t.value).slice(0,t?.maxLength)):this.entity==="select"?typeof t.value=="string"&&t.value!==this.element.value&&(this.element.value=t.value):this.entity==="option"&&(this.container?.props?.value?.constructor?.name==="Array"?t.selected=this.container.props.value.indexOf(t.value)!==-1:typeof this.container?.props?.value=="string"&&(t.selected=this.container.props.value===t.value));for(let r in this.props){let o=r.toLowerCase();t.hasOwnProperty(r)||(jt.has(o)?this.event_detachers[o]():this.element.removeAttribute(r))}for(let r in t){let o=r.toLowerCase();if(!Kr.has(o)&&(t===this.props||!E.defaultIsEqual(t[r],this.props[r])||n))if(jt.has(o))this.event_detachers??(this.event_detachers={}),this.event_detachers[o]?.(),this.event_detachers[o]=E.addWrappedEventListener(this.element,o.substring(2),t[r]);else if(Dt.hasOwnProperty(o)){let s=Dt[o];this.event_detachers??(this.event_detachers={}),this.event_detachers[o]?.(),this.event_detachers[o]=E.addWrappedEventListener(this.element,s.substring(2),t[r],{capture:!0})}else if(r==="style")if(typeof t.style=="string")this.element.style=t.style;else{if(this.props?.style)if(typeof this.props.style=="string")this.element.style="";else for(let s in this.props.style)t.style.hasOwnProperty(s)||(this.element.style[s]="");for(let s in t.style)Wr.has(s)&&isFinite(t.style[s])&&(t.style[s]+="px");Object.assign(this.element.style,t.style)}else if(Br.has(r)){let s=Pt(t[r]);s!==this.element[r]&&(this.element[r]=s)}else r==="autoFocus"?this.element.autofocus=Pt(t[r]):r==="htmlFor"?this.element.setAttribute("for",t[r]):(o!=="value"||["input","textarea","select"].indexOf(this.entity)===-1)&&this.element.setAttribute(o,t[r])}t?.action?this.element.onsubmit=t.action:this.element.onsubmit=void 0,this.updateElementClass(t)}updateElementClass(t=this.props){let n=t?.className;if(n??(n=t?.class?t.class:""),this?.parent?.[de]&&(n+=" "+this?.parent?.[de]),n.length>0){n=n.split(/\s+/g);for(let r of Array.from(this.element.classList))n.indexOf(r)===-1&&this.element.classList.remove(r);for(let r of n)r.length>0&&this.element.classList.add(r)}else delete this.element.className}scanZombies(t,n){let r=t.element.childNodes;for(;r[t.insert_index]&&r[t.insert_index][an]&&r[t.insert_index]!==n;)t.insert_index++}appendElement(t){t.portal||(this.scanZombies(t.container,t.element),t?.element.parentNode===null?(t.container.element.insertBefore(t.element,t.container.element.childNodes[t.container.insert_index]||null),t?.component?.componentDidMount&&t.component.componentDidMount()):t.container.element.childNodes[t.container.insert_index]!==t.element&&t.container.element.insertBefore(t.element,t.container.element.childNodes[t.container.insert_index]||null),t.container.insert_index++)}arrangeOutlet(){this.insert_index=0;for(let t of this.outlet)t&&(t.element?(t.container=this.element?this:this.container,t.container.appendElement(t)):(t.arrangeOutlet&&t.outlet&&t.arrangeOutlet(),t?.mounted||(t.mounted=!0,t?.component?.componentDidMount&&t.component.componentDidMount())))}childFunctionHandler(t){return t(this.state)}},pi=(e,t)=>{let n=[e];for(;e&&!e.component?.componentDidCatch;)e=e.parent,e&&n.push(e);e?.component?.componentDidCatch&&e.entity?.getDerivedStateFromError&&e.component.setState(e.entity.getDerivedStateFromError.call(e,t));let r=Array.prototype.map.call(n,o=>`in ${typeof o.component.displayName=="function"?o.component.displayName():o.component.displayName}`).join(`
58
+ `);if(t.componentStack=n,t.componentStackLog=r,e?.component?.componentDidCatch)e.component.componentDidCatch(t,{componentStack:n,componentStackLog:r});else throw t};function di(e,t){let n=e;if(e[B]===void 0){let r=e.entity,o=!1;if(typeof r=="object")if(r[Oe])o=r[Oe],r=r.component;else throw new Error("Invalid component.");if(typeof r=="string")n=new xt(r,e.props);else{if(pn(r)){r?.defaultProps&&(e.props={...r.defaultProps,...e.props}),n=new r(e.props);let s=Object.getOwnPropertyDescriptor(n,"state");s&&typeof s.get!="function"&&typeof s.set!="function"&&(n[g].state=n.state,Object.defineProperty(n,"state",{get(){return this[g].state},set(c){if(this[g].state===void 0)this[g].state=c;else throw new Error("Assigning component state this way is not allowed.")}}))}else if(typeof r=="function")r?.defaultProps&&(e.props={...r.defaultProps,...e.props}),n=new Ie(e.props),n.render=r.bind(n),n[g].hooks=[],n[g].hook_index=0;else throw new Error("Error in constructing component.");n[g].entity=r,e.container&&(n[g].container=e.container)}o&&(n[g][Oe]=!0)}return t instanceof wt&&(n[g].parent=t),n}function hi(e,t){try{return e.cache??(e.cache=new hn(e)),t=e.cache.pick(t[B]===void 0?t?.props?.key:":text:",()=>t[B]!==void 0||t instanceof wt?t:di(t,e)[g]),t}catch(n){if(t?.component?.componentDidCatch)t.component.componentDidCatch(n);else throw n}}function mi(){clearTimeout(E.effect_timeout);let e=E.update_set,t=E.update_cbs;E.update_set=new Set,E.update_cbs=new Set;for(let n of e)n.apply();for(let n of t)n();Ur()}function Ur(){let e=E.insertion_effects,t=E.layout_effects,n=E.passive_effects;E.insertion_effects=new Set,E.layout_effects=new Set,E.passive_effects=new Set;for(let r of e)r();for(let r of t)r();requestAnimationFrame(()=>{for(let r of n)r()})}var yi=(e,t)=>{let n;return t.key!==void 0?n=t.key:t.id!==void 0?n=":i:"+t.id:t.path!==void 0?n=":p:"+t.path:t[B]!==void 0?n=":text:":(typeof e=="string"?n=":t:"+e:e?.name?n=e.name:n="::",t.name!==void 0?n=n+":"+t.name:t.path!==void 0&&(n=n+":"+t.path)),n},Ie=class{get state(){return this[g].state}set state(t){if(this[g].state===void 0)this[g].state=t;else throw new Error("Assigning component state this way is not allowed.")}get context(){return this[g].context}set context(t){throw new Error("Assigning component context this way is not allowed.")}get type(){return this[g].entity}set type(t){throw new Error("Component type is immutable.")}get props(){return this[g].props}set props(t){throw new Error("Assigning component props this way is not allowed.")}get ref(){return this[g].ref}set ref(t){throw new Error("Component ref is immutable.")}get key(){return this[g].props.key}set key(t){throw new Error("Component key is immutable.")}displayName(){let t=this[g].entity;return t?.displayName?typeof t.displayName=="function"?t.displayName():t.displayName:typeof t=="string"?t:typeof t=="function"&&t.name||"Component"}constructor(t){this[g]=new wt(this,t)}forceUpdate(t){E._clearTimeout(E.update_timeout),E.update_set.add(this[g].container||this[g]),t&&E.update_cbs.add(t.bind(this)),E.update_timeout=E._setTimeout(mi,E.update_interval_margin)}setState(t,n){this.getSnapshotBeforeUpdate!==void 0&&(this[g].last_snapshot=this.getSnapshotBeforeUpdate(this[g].props,this.state)),this[g].next_state=t,this.forceUpdate(n?n.bind(this):void 0)}},xt=class extends Ie{constructor(t,n){super(n),this[g].entity=t,t==="svg"&&(this[g].is_svg=!0)}render(){return this[g].props.children}},Nt=class extends xt{constructor(n,r){super(":root:",r);te(this,"displayName","Root");typeof this.element=="string"&&(n=document.querySelector(n)),this[g].element=n;for(let o of r.children)o[g]?o[g].container=this[g]:o.container=this[g]}};function mn(e,t={},...n){if(typeof e!="string"&&typeof e!="function"&&(typeof e!="object"||!e[Oe]))throw new Error("Invalid entity for createComponent.");for(let r=0;r<n.length;r++){let o=n[r];if(o==null||typeof o=="boolean"){n.splice(r,1),r--;continue}["number","bigint"].indexOf(typeof o)!==-1&&(o=o.toString()),typeof o=="string"?n[r]={[B]:o}:n[r]=o}return t.key=yi(e,t),t.children=n,{entity:e,props:t,[g]:null}}function qr(e){let t;return{render(n){if(t)throw new Error("root already rendered!");return t=new Nt(e,{children:[n]}),E.roots.add(t[g]),t.forceUpdate(),t},unmount(){t&&(t.cleanup(),e.innerHTML="")}}}function gi(e,t){return mn(E.Portal,{view:t},e)}function Fr(e,t,...n){let r={entity:e.entity,props:{...e.props,...t},[g]:null};return n?.length&&(r.props.children=n),r}var bi=Fr;function wi(e,t){if(e[g]&&(e[g].container||e[g].parent))throw new Error("Component is already in use");return qr(t).render(e)}function xi(e){return typeof e=="object"?e[Oe]=!0:e={component:e,[Oe]:!0,[g]:null},e}var _i=mn,Ei=[],vi=new Set,ki=new Set,Ti=new Set,Si=new Set,Ci=new Set,Oi=new Set,$i,Ai,Li=0,Kr=new Set(["classname","ref","action","lilact_jsx_loc","children","key","defaultvalue","defaultchecked"]),jt=new Set(["onafterprint","onbeforeprint","onbeforeunload","onerror","onhashchange","onload","onmessage","onoffline","ononline","onpagehide","onpageshow","onpopstate","onresize","onstorage","onunload","onblur","onchange","oncontextmenu","onfocus","oninput","oninvalid","onreset","onsearch","onselect","onsubmit","onkeydown","onkeypress","onkeyup","onclick","ondblclick","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onwheel","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","onscroll","oncopy","oncut","onpaste","onabort","oncanplay","oncanplaythrough","oncuechange","ondurationchange","onemptied","onended","onerror","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","ontoggle","onpointerdown","onpointerup","onpointermove","onpointercancel","onpointerover","onpointerout","onpointerenter","onpointerleave"]),Dt={};for(let e of jt)Dt[e+"capture"]=e;var Wr=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","top","right","bottom","left","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","outlineWidth","fontSize","lineHeight","letterSpacing","wordSpacing","textIndent","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","columnGap","rowGap","gap"]),Br=new Set(["disabled","readOnly","required","checked","multiple","selected","hidden","open","loop","muted","controls","playsInline","allowFullScreen"]);var bn={};ee(bn,{createContext:()=>nt,startTransition:()=>Ui,useActionState:()=>Ni,useCallback:()=>ye,useContext:()=>rt,useDebugValue:()=>Mi,useDeferredValue:()=>Di,useEffect:()=>re,useHook:()=>ae,useId:()=>Ri,useImperativeHandle:()=>gn,useInsertionEffect:()=>Pi,useLayoutEffect:()=>Pe,useLocalStorage:()=>Ii,useMemo:()=>_t,useReducer:()=>ji,useRef:()=>j,useState:()=>ne,useTransition:()=>Vr});function ae(){let e=E.current_component[0];return e.hooks[e.hook_index]===void 0&&e.hooks.push({}),e.hooks[e.hook_index++]}function ne(e){let t=ae();return V(t)&&(typeof e=="function"?t.value=e():t.value=e,t.set_func=function(n,r,o){typeof o=="function"?r.value=o(r.value):r.value=o,n.component.forceUpdate()}.bind(void 0,E.current_component[0],t)),[t.value,t.set_func]}function ye(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Callback dependencies must be an array, object or omitted.");let n=ae();return!V(n)&&t!==void 0&&n?.deps!==void 0&&ce(t,n.deps)||(n?.cleanup&&n.cleanup(),n.deps=t,n.callback=e),n.callback}function nt(e){return{default:e,Provider:function({value:n,children:r}){return r}}}function rt(e){let t=E.current_component[0]?.parent;for(;t&&t.entity!==e.Provider;)t=t.parent;return t?t.props?.value??e.default:e.default}function Ri(e="N"){let t=ae();return V(t)&&(t.id=e+E.id_num++),t.id}function Vr(){let e=ae();return V(e)&&(e.count=0,e.func=(async function(t,n,r){n.count===0&&t.component.forceUpdate(),n.count++;try{return await r()}finally{n.count--,n.count===0&&t.component.forceUpdate()}}).bind(void 0,E.current_component[0],e)),[e.count!=0,e.func]}function Ii(e,t){let n=ae(),r;try{r=JSON.parse(localStorage[e])}catch{}return r===void 0&&(typeof t=="function"&&(t=t()),r=t,localStorage[e]=JSON.stringify(r)),V(n)&&(n.value=r,n.set_func=function(o,s,c){typeof c=="function"&&(c=c(s.value)),c!==s.value&&(localStorage[e]=JSON.stringify(c),s.value=c,o.component.forceUpdate())}.bind(void 0,E.current_component[0],n)),[n.value,n.set_func]}function j(e=null){let t=ae();return V(t)&&(t.current=e),t}async function Pe(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Layout effect dependencies must be an array, object or omitted.");let n=ae();!V(n)&&t!==void 0&&n?.deps!==void 0&&ce(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.layout_effects.add(async()=>{n.cleanup=await e()}),E._clearTimeout(E.effect_timeout),E._setTimeout(E.processEffects,0))}async function re(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Effect dependencies must be an array, object or omitted.");let n=ae();!V(n)&&t!==void 0&&n?.deps!==void 0&&ce(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.passive_effects.add(async()=>{n.cleanup=await e()}),E._clearTimeout(E.effect_timeout),E._setTimeout(E.processEffects,0))}async function Pi(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Insertion effect dependencies must be an array, object, or omitted.");let n=ae();!V(n)&&t!==void 0&&n?.deps!==void 0&&ce(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.insertion_effects.add(async()=>{n.cleanup=await e()}),E._clearTimeout(E.effect_timeout),E._setTimeout(E.processEffects,0))}function _t(e,t=void 0){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Memo dependencies must be an array or omitted.");let n=ae();return!V(n)&&t!==void 0&&n?.deps!==void 0&&ce(t,n.deps)||(n.deps=t,n.value=e()),n.value}function Ni(e,t){let n=ae(),[r,o]=Vr();return V(n)&&(n.state=t,n.form_action=s=>(s.preventDefault(),o(async()=>{let c=new FormData(s.target,s.submitter);n.state=await e(n.state,c)},[]),!1)),[n.state,n.form_action,r]}function ji(e,t,n){let r=ae();return V(r)&&(r.state=n?n(t):t,r.dispatch=function(o,s,c){let a=s.reducer(s.state,c);E.defaultIsEqual(a,s.state)||(s.state=a,o.component.forceUpdate())}.bind(void 0,E.current_component[0],r)),r.reducer=e,[r.state,r.dispatch]}function Di(e,t){let{useEffect:n,useRef:r,useState:o}=E,[s,c]=o(typeof t<"u"?t:e),a=r(e),l=r(null);return n(()=>{if(a.current===e)return;a.current=e,l.current!=null&&(l.current.cancelled=!0,l.current=null);let u={cancelled:!1};return l.current=u,Promise.resolve().then(()=>{u.cancelled||(c(e),l.current=null)}),()=>{l.current&&(l.current.cancelled=!0,l.current=null)}},[e]),s}function gn(e,t,n=void 0){n!==void 0&&e?.deps!==void 0&&ce(n,e.deps)||(e.deps=n,typeof e?.current!="object"&&(e.current={}),Object.assign(e.current,t()))}function Mi(e,t=n=>n){}function Ui(e){e()}var wn={};ee(wn,{lazy:()=>Vi,require:()=>Gr,required_scripts:()=>Ne,run:()=>ot,runScripts:()=>Yi});function qi(e,t){let n=t.startsWith("/"),r=(n?"":e).split("/").filter(Boolean);!n&&!e.endsWith("/")&&r.pop();for(let o of t.split("/"))!o||o==="."||(o===".."?r.pop():r.push(o));return`${n?"/":""}${r.join("/")}`}function Xr(e,t="Unknown error"){if(e instanceof Error)return e;if(e?.error instanceof Error)return e.error;let n=new Error(e?.message==null?t:String(e.message));if(e&&typeof e=="object"){e.name&&(n.name=e.name),e.stack&&(n.stack=e.stack);for(let r of Object.keys(e))r in n||(n[r]=e[r])}return n}function Fi(e,t){let n=Xr(e);return n.lilact_source||(n.lilact_source={path:t}),n}function Fe(e,t){let n=Fi(e,t);return n.isTraced?n:typeof E.traceError=="function"?E.traceError(n,t):(E.error=n,n)}var Ne={};function Yr(e,{code:t=""}={}){let n={path:e,code:String(t),mappings:[],meta:{},exports:{},loaded:!1,request:void 0,error:void 0};return Ne[e]=n,n}function Ki(e){e.importsObject??(e.importsObject={});for(let t in e.meta.imports){let n=Ne[t],r=e.meta.imports[t];n||(n=E.require(t,{requirer:e}));for(let o in r.named_imports){if(o==="")continue;let s=r.named_imports[o];if(!n.hasOwnProperty(s))throw new Error(`Imported module does not export any "${o}".`);e.importsObject[o]=n[s]}for(let o of r.import_defaults){if(!n.hasOwnProperty("default"))throw new Error("Imported module does not export a default.");e.importsObject[o]=n.default}for(let o of r.import_stars)e.importsObject[o]={...n}}}function ot(jsx,path=`InlineJSX-${++E.eval_num}`,{}={}){let module=Ne[path];module?(module.path=path,module.code=String(jsx),module.mappings=[],module.exports={},module.loaded=!1,module.error=void 0,module.importsObject=void 0,module.meta={}):module=Yr(path,{code:jsx});let processed;try{processed=E.transpileJSX(String(jsx),{path,mappings:module.mappings,meta:module.meta,factory:"createComponent",appendSourcemap:!0,injectTraceLabels:!0,produceCJS:!1,referentiateImports:!0,blocksInfo:E.blocksInfo})}catch(e){let t=Xr(e);throw t.fileName??(t.fileName=path),t.lilact_source??(t.lilact_source={path}),t.sourcePhase="transpile",module.error=t,E.error=t,t}typeof E.scanBlockLabels=="function"&&E.scanBlockLabels(processed,path);try{globalThis.Lilact=E,globalThis.createComponent=E.createComponent,globalThis.Fragment=E.Fragment,module.importsObject||Ki(module),E.scriptImportsObject=module.importsObject;let result=eval(processed);return module.loaded=!0,V(module.exports)?result:module.exports}catch(e){let t=Fe(e,path);throw t.sourcePhase??(t.sourcePhase="runtime"),module.error=t,t}}function Wi(e,t={}){return Ne[e]||Yr(e,t)}function Bi(e,t){let n;try{let o=E.resolver?.(e);o==null?t.code&&!t.loaded?n=Promise.resolve(t.code):n=fetch(e).then(s=>{if(!s.ok)throw Fe(new Error(`Unable to load ${e}: HTTP ${s.status}`),e);return s.text()}):n=Promise.resolve(o)}catch(o){n=Promise.reject(Fe(o,e))}let r;return r=Promise.resolve(n).then(o=>{if(t.code=String(o),e.endsWith(".css")){dt(t.code),t.loaded=!0;return}return ot(t.code,e,{})}).then(o=>o?.default??o).catch(o=>{throw t.error=Fe(o,e),t.error}).finally(()=>{t.request===r&&(t.request=void 0)}),t.request=r,r}function Gr(e){let t={};if(arguments.length===2&&arguments[1]&&typeof arguments[1]=="object"&&(t=arguments[1]),E.importObjectPaths?.[e])return E.importObjectPaths[e];t?.requirer?.path&&(e=qi(t.requirer.path,e));let n=!!E[ht]||!!t.isLazy,r=Wi(e,{});if(r.loaded&&!t.forceReload)return r.exports;if(e.startsWith("#")){let c=document.getElementById(e.slice(1));if(!c)throw Fe(new Error(`Required element not found (${e})`),e);return ot(c.textContent||"",e,{forceReload:t.forceReload})}if(n)return E[ht]=!1,r.request?r.request:Bi(e,r);let o=E.resolver?.(e);if(o!=null){if(e.endsWith(".css")){dt(String(o)),r.code=String(o),r.loaded=!0;return}return ot(String(o),e,{forceReload:t.forceReload})}let s=new XMLHttpRequest;try{s.open("GET",e,!1),s.send(null)}catch(c){throw Fe(c,e)}if(s.status>=200&&s.status<300){if(e.endsWith(".css")){r.code=s.responseText,dt(r.code),r.loaded=!0;return}return ot(s.responseText,e,{forceReload:t.forceReload})}throw Fe(new Error(`Unable to load ${e}: HTTP ${s.status||0}`),e)}function Vi(e){let t="pending",n;E[ht]=!0;try{n=e()}catch(o){t="error",n=o}E.isThenable(n)?n.then(o=>{t="success",n=o},o=>{t="error",n=o}):t!=="error"&&(t="success");function r(o){if(t==="pending"||t==="error")throw n;let s=n;return createComponent(s,{...o})}return r}function Xi(){return Array.from(document.querySelectorAll('script[type="text/jsx"]')).map(e=>({src:e.getAttribute("src"),content:e.textContent||""}))}async function Yi(){for(let e of Xi())e.src?await Gr(e.src):e.content&&ot(e.content)}var En={};ee(En,{CSSTransition:()=>Jr,SwitchTransition:()=>Gi,Transition:()=>Hr,TransitionGroup:()=>Hi});var xn="unmounted",Mt="exited",Et="entering",vt="entered",_n="exiting";function Hr({in:e,timeout:t=E.defaultTransitionTimeout,mountOnEnter:n=!1,unmountOnExit:r=!1,appear:o=!1,onEnter:s,onEntering:c,onEntered:a,onExit:l,onExiting:u,onExited:f,children:p,_classNames:d}){var m,x,w;return(m=this[g]).is_mounted??(m.is_mounted=!n||e||o),(x=this[g]).is_appeared??(x.is_appeared=e),(w=this[g]).timer??(w.timer=null),this[g].childFunctionHandler=v=>v(this[g].mount_state),this[g].mount_state||(this[g].is_mounted||(this[g].mount_state=xn),e?this[g].mount_state=o&&!this[g].is_appeared?Et:vt:this[g].mount_state=Mt),re(()=>()=>clearTimeout(this[g].timer),[]),re(()=>{!this[g].is_appeared&&o&&this[g].mount_state===Et&&e&&(s?.(),requestAnimationFrame(()=>{c?.(!this[g].is_appeared),clearTimeout(this[g].timer),this[g].timer=setTimeout(()=>{this[g].mount_state=vt,this.forceUpdate(),this[g].is_appeared=!0,a?.(!this[g].is_appeared)},t)}))},[]),re(()=>{if(e){if(this[g].is_mounted=!0,this[g].mount_state===Et||this[g].mount_state===vt)return;s?.(!this[g].is_appeared),this[g].mount_state=Et,this.forceUpdate(()=>{c?.(!this[g].is_appeared),clearTimeout(this[g].timer),this[g].timer=setTimeout(()=>{this[g].mount_state=vt,this.forceUpdate(),this[g].is_appeared=!0,a?.()},t)})}else{if(this[g].mount_state===xn||this[g].mount_state===_n||this[g].mount_state===Mt)return;l?.(),this[g].mount_state=_n,this.forceUpdate(()=>{u?.(),clearTimeout(this[g].timer),this[g].timer=setTimeout(()=>{this[g].mount_state=Mt,this.forceUpdate(),f?.(),r&&(this[g].is_mounted=!1,this[g].mount_state=xn,this.forceUpdate())},t)})}},[e,t]),this[g].is_mounted?(d&&(this[g].mount_state===Et?this[g].is_appeared?this[g][de]=d.appearActive:this[g][de]=d.enterActive:this[g].mount_state===vt?this[g].is_appeared?this[g][de]=d.appearDone:this[g][de]=d.enterDone:this[g].mount_state===_n?this[g][de]=d.exitActive:this[g].mount_state===Mt&&(this[g][de]=d.exitDone)),p):null}function Jr({in:e,timeout:t=E.defaultTransitionTimeout,classNames:n="fade",mountOnEnter:r=!1,unmountOnExit:o=!1,appear:s=!1,children:c,onEnter:a,onEntering:l,onEntered:u,onExit:f,onExiting:p,onExited:d}){return typeof n=="string"&&(n={appear:`${n}-enter ${n}-appear`,appearActive:`${n}-enter-active ${n}-appear-active`,appearDone:`${n}-enter-done ${n}-appear-done`,enter:`${n}-enter`,enterActive:`${n}-enter-active`,enterDone:`${n}-enter-done`,exit:`${n}-exit`,exitActive:`${n}-exit-active`,exitDone:`${n}-exit-done`}),createComponent(Hr,{in:e,timeout:t,mountOnEnter:r,unmountOnExit:o,appear:s,onEnter:a,onEntering:l,onEntered:u,onExit:f,onExiting:p,onExited:d,_classNames:n},c)}function Gi({children:e,activeKey:t,mode:n="out-in",timeout:r=E.defaultTransitionTimeout,classNames:o="switch",mountOnEnter:s=!1,unmountOnExit:c=!1,appear:a=!1,onExited:l,onEnter:u,onExiting:f,onEntered:p,...d}){let m=_t(()=>qe.toArray(e),[e]),[x,w]=ne(null),[v,h]=ne(!1),[k,T]=ne(!0),O=j(t),P=j(t),_=j(x);Pe(()=>{P.current=t},[t]),Pe(()=>{_.current=x},[x]),Pe(()=>{let C=O.current;C!==t&&(O.current=t,w(C),n==="out-in"?(T(!1),h(!0)):(T(!0),h(!1)))},[t,n]);let y=C=>(S,L)=>{typeof l=="function"&&l(S,L),C===_.current&&(w(null),n==="out-in"&&(h(!1),T(!0)),n==="in-out"&&h(!1))},N=C=>(S,L)=>{typeof p=="function"&&p(S,L),n==="in-out"&&C===P.current&&_.current!=null&&h(!0)};return createComponent("div",{style:{position:"relative"}},m.map((C,S)=>{let L=C?.props?.key||S,Te=L===t?k:L===x?!v:!1;return createComponent(Jr,{...d,key:L,in:Te,timeout:r,classNames:o,mountOnEnter:s,unmountOnExit:c,appear:a,onEnter:u,onExiting:f,onEntered:N(L),onExited:y(L)},createComponent("div",{style:{position:"absolute",inset:0}},C))}))}function Hi({children:e}){return e}var vn={};ee(vn,{addWrappedEventListener:()=>zi,createSyntheticEvent:()=>Zr,releaseSyntheticEvent:()=>zr,wrapListener:()=>Qr});typeof Element<"u"&&!Element.prototype.matches&&(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});typeof Event<"u"&&!Event.prototype.composedPath&&(Event.prototype.composedPath=function(){for(var e=[],t=this.target;t;)e.push(t),t=t.parentElement;return e.push(window),e});var Ut=[],Ji=10,Zi=["mouse","pen","touch"];function Zr(e,t){let n=Ut.length?Ut.pop():{};n.nativeEvent=e,n.type=e.type,n.target=e.target||e.srcElement||null,n.currentTarget=t||e.currentTarget||null,n.timeStamp=e.timeStamp||Date.now(),n.defaultPrevented=!!e.defaultPrevented,n.isPropagationStopped=!1,n.isPersistent=!1,n.bubbles=!!e.bubbles,n.cancelable=!!e.cancelable,n.composed=!!e.composed,n.detail=e.detail,n.relatedTarget=e.relatedTarget||(e.fromElement?e.fromElement:null)||(e.toElement?e.toElement:null)||null,n.altKey=!!e.altKey,n.ctrlKey=!!e.ctrlKey,n.metaKey=!!e.metaKey,n.shiftKey=!!e.shiftKey,n.isDefaultPrevented=()=>n.defaultPrevented,n.preventDefault=()=>{e.preventDefault&&e.preventDefault(),n.defaultPrevented=!0},n.stopPropagation=()=>{e.stopPropagation&&e.stopPropagation(),n.isPropagationStopped=!0},n.persist=()=>{n.isPersistent=!0},n.key=e.key||null,n.code=e.code||null,n.which=e.which??e.keyCode??null,n.button=e.button??null,n.buttons=e.buttons??null,n.pointerId=e.pointerId??null,n.pointerType=e.pointerType??null,n.isPrimary=e.isPrimary??null,n.clientX=e.clientX??0,n.clientY=e.clientY??0,n.screenX=e.screenX??0,n.screenY=e.screenY??0,n.pageX=e.pageX??null,n.pageY=e.pageY??null,n.movementX=e.movementX??0,n.movementY=e.movementY??0,n.pressure=e.pressure??null,n.tiltX=e.tiltX??null,n.tiltY=e.tiltY??null,n.width=e.width??null,n.height=e.height??null,n.pointerEventsSupported=Zi.includes(n.pointerType);try{let r=n.target;n.value=r&&"value"in r?r.value:void 0,n.checked=r&&"checked"in r?r.checked:void 0,n.selectionStart=r&&"selectionStart"in r?r.selectionStart:void 0,n.selectionEnd=r&&"selectionEnd"in r?r.selectionEnd:void 0}catch{n.value=void 0,n.checked=void 0,n.selectionStart=void 0,n.selectionEnd=void 0}return n.touches=e.touches||null,n.targetTouches=e.targetTouches||null,n.changedTouches=e.changedTouches||null,n.path=typeof e.composedPath=="function"?e.composedPath():[n.target],n.repeat=e.repeat??!1,n.location=e.location??0,n}function zr(e){e&&!e.isPersistent&&(e.nativeEvent=null,e.type=null,e.target=null,e.currentTarget=null,e.timeStamp=0,e.defaultPrevented=!1,e.isPropagationStopped=!1,e.isPersistent=!1,e.isDefaultPrevented=null,e.preventDefault=null,e.stopPropagation=null,e.persist=null,e.bubbles=!1,e.cancelable=!1,e.composed=!1,e.detail=void 0,e.relatedTarget=null,e.altKey=!1,e.ctrlKey=!1,e.metaKey=!1,e.shiftKey=!1,e.key=null,e.code=null,e.which=null,e.button=null,e.buttons=null,e.pointerId=null,e.pointerType=null,e.isPrimary=null,e.clientX=0,e.clientY=0,e.screenX=0,e.screenY=0,e.pageX=null,e.pageY=null,e.movementX=0,e.movementY=0,e.pressure=null,e.tiltX=null,e.tiltY=null,e.width=null,e.height=null,e.value=void 0,e.checked=void 0,e.selectionStart=void 0,e.selectionEnd=void 0,e.touches=null,e.targetTouches=null,e.changedTouches=null,e.path=null,e.repeat=!1,e.location=0,Ut.length<Ji&&Ut.push(e))}function Qr(e,t={}){let{stopPropagationOnTrueReturn:n=!1}=t;return function(o){let s=this||o.currentTarget||null,c=Zr(o,s);try{let a=e(c);n&&a===!0&&c.stopPropagation()}finally{zr(c)}}}function zi(e,t,n,r={}){let o=Qr(n,r);return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)}var Tn={};ee(Tn,{Provider:()=>Qi,combineReducers:()=>ns,connect:()=>ts,useDispatch:()=>es,useSelector:()=>eo,useStore:()=>qt});var kn;function Qi({store:e,children:t}){return kn??(kn=nt(null)),createComponent(kn.Provider,{value:e},t)}function qt(){let e=rt(kn);if(!e)throw new Error("Could not find Redux store in context. <Provider> is missing.");return e}function es(){return qt().dispatch}function eo(e,t=(n,r)=>n===r){let n=qt(),r=j(),o=j(e);o.current=e;let[s,c]=ne(()=>e(n.getState()));return r.current=s,re(()=>{function a(){let u=o.current(n.getState());t(r.current,u)||(r.current=u,c(u))}let l=n.subscribe(a);return a(),l},[n,t]),s}function ts(e,t){let n=!!e;return function(o){function s(c){let a=qt(),l={dispatch:a.dispatch};if(typeof t=="function")l=t(a.dispatch,c);else if(typeof t=="object"&&t!==null){l={};let p=a.dispatch;for(let d in t){let m=t[d];l[d]=(...x)=>p(m(...x))}}let u={};e&&(u=eo(d=>e(d,c),ce)||{});let f={...c,...u,...l};return createComponent(o,{...f})}return s}}function ns(e){let t=Object.keys(e);for(let n of t)if(typeof e[n]!="function")throw new Error(`combineReducers: reducer for key "${n}" is not a function`);return function(r={},o){let s=!1,c={};for(let a of t){let l=e[a],u=r[a],f=l(u,o);c[a]=f,s=s||f!==u}return s?c:r}}var $n={};ee($n,{animationFramePromise:()=>ms,clearInterval:()=>fs,clearTimeout:()=>ls,grabTimers:()=>ps,pauseTimers:()=>ss,releaseTimers:()=>ds,resetTimers:()=>is,resumeTimers:()=>cs,setInterval:()=>us,setTimeout:()=>as,timeoutPromise:()=>hs});var je,Sn=0,ge=[],Ke=0,ke=new Map;function rs(e){let t=0,n=ge.length-1;for(;t<=n;){let o=Math.floor((t+n)/2),s=ge[o][he];if(s===e)return[o,ge[o]];s<e?t=o+1:n=o-1}let r=[];return r[he]=e,ge.splice(t,0,r),[t,r]}function Cn(){if(je!==void 0||ge.length===0)return;Lilact._clearTimeout(Ke);let e=Math.max(0,ge[0][he]-Date.now());Ke=Lilact._setTimeout(os,e)}function On(e,t=!1){let[n,r]=rs(e[he]);return t||(Sn+=1,e[W]=Sn,ke.set(e[W],e)),r.push(e),n===0&&je===void 0&&Cn(),e[W]}function os(){Ke=-1;let e=Date.now(),t=[];for(;ge.length>0&&ge[0][he]-e<=0;)t.push(ge.shift());let n=[];for(let o of t)for(let s of o)n.push(s);let r;for(let o of n){if(o[$e]||ke.get(o[W])!==o){ke.delete(o[W]);continue}try{o[gt](...o[bt])}catch(s){r??(r=s)}if(o[$e]){ke.delete(o[W]);continue}ke.get(o[W])===o&&(o[mt]?(o[he]=Date.now()+o[yt],On(o,!0)):ke.delete(o[W]))}Cn(),r!==void 0&&Lilact._setTimeout(()=>{throw r},0)}function is(){Lilact._clearTimeout(Ke);for(let e of ke.values())e[$e]=!0;je=void 0,Sn=-1,ge=[],Ke=-1,ke=new Map}function ss(){je===void 0&&(Lilact._clearTimeout(Ke),Ke=-1,je=Date.now())}function cs(){if(je===void 0)return;let e=Date.now()-je;for(let t of ge)t[he]+=e;je=void 0,Cn()}function as(e,t=0,...n){let r=Math.max(0,Number(t)||0);return On({[gt]:e,[yt]:r,[he]:Date.now()+r,[mt]:!1,[$e]:!1,[bt]:n})}function us(e,t=0,...n){let r=Math.max(0,Number(t)||0);return On({[gt]:e,[yt]:r,[he]:Date.now()+r,[mt]:!0,[$e]:!1,[bt]:n})}function ls(e){let t=ke.get(e);t!==void 0?t[$e]=!0:Lilact._clearTimeout(e)}function fs(e){let t=ke.get(e);t!==void 0?t[$e]=!0:Lilact._clearInterval(e)}function ps(){globalThis.setTimeout=Lilact.setTimeout,globalThis.setInterval=Lilact.setInterval,globalThis.clearTimeout=Lilact.clearTimeout,globalThis.clearInterval=Lilact.clearInterval}function ds(){globalThis.setTimeout=Lilact._setTimeout,globalThis.setInterval=Lilact._setInterval,globalThis.clearTimeout=Lilact._clearTimeout,globalThis.clearInterval=Lilact._clearInterval}function hs(e=0,t=Lilact){let n,r,o,s=new Promise((c,a)=>{r=c,o=a,n=t.setTimeout(()=>{c()},e)});return s.proceed=()=>{t.clearTimeout(n),r()},s.cancel=()=>{t.clearTimeout(n),o()},s}function ms(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}var An={};ee(An,{asError:()=>no,blocksInfo:()=>Ts,error:()=>Ss,globalErrorHandler:()=>vs,scanBlockLabels:()=>ks,traceError:()=>ro});function ys(){let e=navigator.userAgent;return/Safari/.test(e)&&!/Chrome|Chromium|CriOS|FxiOS|EdgiOS|OPiOS/.test(e)}function Kt(e){let t=Number(e);return Number.isFinite(t)?t:null}function no(e){if(e instanceof Error)return e;if(e?.error instanceof Error)return e.error;let t=new Error(e?.message==null?String(e):String(e.message));if(e&&typeof e=="object"){e.name&&(t.name=e.name),e.stack&&(t.stack=e.stack);for(let n of Object.keys(e))n in t||(t[n]=e[n])}return t}function to(e){return e?.name==="JSXParserError"}function gs(e){if(typeof e!="string")return null;for(let t of e.split(/\r?\n/)){let n=t.match(/(eval:\/.*):(\d+):(\d+)/);if(n)return{path:n[1].replace(/^eval:\/+/,""),line:Number(n[2])-1,column:Number(n[3])-1}}return null}function bs(e){let t=Kt(e?.lineNumber??e?.lineno??e?.line),n=Kt(e?.columnNumber??e?.colno??e?.column),r=ys()?0:1;return{line:t==null?null:Math.max(0,t-r),column:n==null?null:Math.max(0,n-1)}}function ws(e){let t=e?.lilact_trace;return Array.isArray(t)?t[0]:t}function xs(e){let t=ws(e);return t==null?null:E.blocksInfo?.labels?.[t]}function _s(e,t,n){if(!Array.isArray(e)||!e.length||!Number.isFinite(t)||!Number.isFinite(n))return{line:t,column:n};let r=e.filter(u=>Array.isArray(u)&&u.length>=4&&u.slice(0,4).every(f=>Number.isFinite(Number(f)))).sort((u,f)=>Number(u[0])-Number(f[0])||Number(u[1])-Number(f[1]));if(!r.length)return{line:t,column:n};let o=r[0];for(let u of r){let f=Number(u[0]),p=Number(u[1]);if(f<t||f===t&&p<=n)o=u;else break}let s=Number(o[0]),c=Number(o[1]),a=Number(o[2]),l=Number(o[3]);return{line:a+(t===s?0:t-s),column:t===s?Math.max(0,l+n-c):l}}function ro(e,t){if(e?.isTraced)return e;let n=no(e),r=n.lilact_source,o=to(n)?null:gs(n.stack),s=to(n)?{line:Kt(n.lineNumber),column:Kt(n.columnNumber)}:bs(n),c=r?.path||o?.path||n.fileName||t||null,a=!r?.path||!o?.path||r.path===o.path,l=a?o?.line??s.line??null:s.line??null,u=a?o?.column??s.column??null:s.column??null,f={fileName:c,lineNumber:l,columnNumber:u,message:n.message==null?String(n):String(n.message),name:n.name||"Error",stack:n.stack||null,lilact_source:r||null,_error:n,isTraced:!0},p=c&&Ne[c];if(p){let m=_s(p.mappings,f.lineNumber,f.columnNumber);f.lineNumber=m.line,f.columnNumber=m.column}let d=xs(n);return d&&(f.lineNumber==null||f.columnNumber==null||!f.fileName)&&(f.fileName||(f.fileName=d.path||t||null),f.lineNumber??(f.lineNumber=d.line),f.columnNumber??(f.columnNumber=d.column),f.label=d.desc),E.error=f,f}function Ft(e){return String(e??"").replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}function Es(e,t){if(!e||!Number.isFinite(t))return null;let n=String(e.code??"").split(/\r?\n/);return{before:n[t-1]??"",current:n[t]??"",after:n[t+1]??""}}function vs(e){let t=e?.error instanceof Error?e.error:e?.reason!==void 0?e.reason:e,n=ro(t,e?.fileName||null),r=Es(Ne[n.fileName],n.lineNumber),o=sn(`
59
59
  background: #fff;
60
60
  text-shadow: 0 0 3px #fff;
61
61
  -backdrop-filter: blur(20px);
@@ -92,37 +92,37 @@ var zn=Object.defineProperty;var wo=(e,t,n)=>t in e?zn(e,t,{enumerable:!0,config
92
92
  <br>
93
93
  <code><pre>${Ft(l)}</pre></code>
94
94
  `:""}
95
- `,r){let f=s.querySelectorAll("pre");f[0].innerText=r.before,f[1].innerText=r.current,f[2].innerText=r.after}return document.body.appendChild(s),typeof s.showModal=="function"?s.showModal():s.setAttribute("open",""),n}function vs(e,t){for(let n of String(e).matchAll(/LILACTBLOCK(\d+):(\d+),(\d+):([^*]+)\*\//gm))E.blocks_info.labels[n[1]]={path:t,line:Number(n[2]),column:Number(n[3]),desc:n[4]}}var ks={counter:0,labels:{}},Ts=null;var jn={};Z(jn,{HashRouter:()=>Cs,Link:()=>Os,NavLink:()=>$s,Route:()=>Ls,Routes:()=>oo,useLocation:()=>Rn,useNavigate:()=>Nn});var Ln=tt(null),In=tt({params:{}}),Pn=e=>typeof e=="string"?e:(e.pathname||"")+(e.search||"")+(e.hash||""),Ss=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function Cs({children:e,basename:t=""}){let n=()=>{let a=(window.location.hash||"#/").slice(1),l=new RegExp("^"+Ss(t)),f=a.replace(l,"")||"/",[u,p]=f.split("#"),[d,y=""]=u.split("?");return{pathname:d||"/",search:y?"?"+y:"",hash:p?"#"+p:"",state:history.state?.__state}},[r,o]=Q(n);ee(()=>{let c=()=>o(n());return window.addEventListener("hashchange",c),window.addEventListener("popstate",c),c(),()=>{window.removeEventListener("hashchange",c),window.removeEventListener("popstate",c)}},[t]);let s=he((c,{replace:a=!1,state:l}={})=>{if(typeof c=="number")return new Promise(p=>{let d=!1,y=_=>{d||(d=!0,window.removeEventListener("popstate",m),window.removeEventListener("hashchange",h),_?.(),p())},m=()=>y(()=>o(n())),h=()=>y(()=>o(n()));window.addEventListener("popstate",m,{once:!0}),window.addEventListener("hashchange",h,{once:!0}),setTimeout(()=>y(()=>o(n())),0),history.go(c)});let f=Pn(c),u="#"+(t+f);a?history.replaceState({__state:l},"",u):history.pushState({__state:l},"",u),o(n())},[t]);return createComponent(Ln.Provider,{value:{location:r,navigate:s,basename:t}},e)}function Rn(){let e=nt(Ln);if(!e)throw new Error("useLocation must be used inside a Router");return e.location}function Nn(){let e=nt(Ln);if(!e)throw new Error("useNavigate must be used inside a Router");return e.navigate}function Os({to:e,replace:t=!1,state:n,onClick:r,target:o,download:s,className:c,style:a,children:l,...f}){let u=Nn(),p="#"+Pn(e);function d(y){r&&r(y),!(y.defaultPrevented||y.button!==0||o&&o!=="_self"||y.metaKey||y.altKey||y.ctrlKey||y.shiftKey)&&(y.preventDefault(),u(e,{replace:t,state:n}))}return createComponent("a",{...f,href:p,onClick:d,target:o,download:s,className:c,style:a},l)}function Wt(e){return e&&e.replace(/\/+$/,"")||"/"}function $s({to:e,end:t=!1,activeClassName:n="active",className:r,activeStyle:o,style:s,target:c,download:a,replace:l=!1,state:f,children:u,onClick:p,...d}){let y=Nn(),m=Rn(),h=typeof e=="string"?e.split("?")[0].split("#")[0]:e.pathname||"/",_=m.pathname||"/",g=t?Wt(_)===Wt(h):Wt(_).startsWith(Wt(h)),S=[typeof r=="function"?r({isActive:g}):r,g?n:null].filter(Boolean).join(" ")||void 0,T=typeof s=="function"?s({isActive:g}):s,k=g?{...T||{},...o||{}}:T,v="#"+Pn(e);function C(L){p&&p(L),!(L.defaultPrevented||L.button!==0||L.metaKey||L.altKey||L.ctrlKey||L.shiftKey)&&(L.preventDefault(),y(e,{replace:l,state:f}))}return createComponent("a",{...d,href:v,onClick:C,target:c,download:a,className:S,style:k,"aria-current":g?"page":void 0},typeof u=="function"?u({isActive:g}):u)}function As(e){let t=[],n="^"+e.replace(/\/+$/,"").replace(/([.+?^=!:${}()|[\]/\\])/g,"\\$1").replace(/\\\:([A-Za-z0-9_]+)/g,(o,s)=>(t.push(s),"([^/]+)")).replace(/\\\*$/g,"(.+?)?");return n+="/?$",{regex:new RegExp(n),paramNames:t}}function Is(e,t){if(e==null)return{matched:!0,params:{}};let{regex:n,paramNames:r}=As(e),o=n.exec(t);if(!o)return{matched:!1};let s={};return r.forEach((c,a)=>s[c]=decodeURIComponent(o[a+1]||"")),o.length>r.length+1&&(s["*"]=o[r.length+1]?decodeURIComponent(o[r.length+1]):void 0),{matched:!0,params:s}}function Ls({path:e,element:t=null,children:n}){return null}function oo({children:e}){let n=Rn().pathname||"/",r=Me.toArray(e);for(let o=0;o<r.length;o++){let s=r[o],c=s.props.path===void 0?null:s.props.path,a=s.props.element??null,l=s.props.children,{matched:f,params:u}=Is(c,n);if(f)return a?createComponent(In.Provider,{value:{params:u}},a):l?createComponent(In.Provider,{value:{params:u}},createComponent(oo,{},l)):createComponent(In.Provider,{value:{params:u}},createComponent("div",{}))}return null}var Mn={};Z(Mn,{DragHandle:()=>io,ErrorBoundary:()=>Dn,Spinner:()=>Ps,SplitPane:()=>Rs,Suspense:()=>Vt});function Ps({size:e=48,className:t,style:n,color:r="currentColor",strokeWidth:o=3,"aria-label":s="Loading"}){let c=Math.max(1,e)+"px";return createComponent("div",{className:t,style:{width:"100%",height:"100%",display:"grid",placeItems:"center",...n},"aria-label":s,role:"status"},createComponent("div",{style:{width:c,height:c,borderRadius:"50%",border:`${o}px solid rgba(0,0,0,0.15)`,borderTopColor:r,animation:"ddSpinnerSpin 0.9s linear infinite",boxSizing:"border-box"}}),createComponent("style",{},`
95
+ `,r){let u=s.querySelectorAll("pre");u[0].innerText=r.before,u[1].innerText=r.current,u[2].innerText=r.after}return document.body.appendChild(s),typeof s.showModal=="function"?s.showModal():s.setAttribute("open",""),n}function ks(e,t){for(let n of String(e).matchAll(/LILACTBLOCK(\d+):(\d+),(\d+):([^*]+)\*\//gm))E.blocksInfo.labels[n[1]]={path:t,line:Number(n[2]),column:Number(n[3]),desc:n[4]}}var Ts={counter:0,labels:{}},Ss=null;var jn={};ee(jn,{HashRouter:()=>Os,Link:()=>$s,NavLink:()=>As,Route:()=>Is,Routes:()=>oo,useLocation:()=>Pn,useNavigate:()=>Nn});var Rn=nt(null),Ln=nt({params:{}}),In=e=>typeof e=="string"?e:(e.pathname||"")+(e.search||"")+(e.hash||""),Cs=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function Os({children:e,basename:t=""}){let n=()=>{let a=(window.location.hash||"#/").slice(1),l=new RegExp("^"+Cs(t)),u=a.replace(l,"")||"/",[f,p]=u.split("#"),[d,m=""]=f.split("?");return{pathname:d||"/",search:m?"?"+m:"",hash:p?"#"+p:"",state:history.state?.__state}},[r,o]=ne(n);re(()=>{let c=()=>o(n());return window.addEventListener("hashchange",c),window.addEventListener("popstate",c),c(),()=>{window.removeEventListener("hashchange",c),window.removeEventListener("popstate",c)}},[t]);let s=ye((c,{replace:a=!1,state:l}={})=>{if(typeof c=="number")return new Promise(p=>{let d=!1,m=v=>{d||(d=!0,window.removeEventListener("popstate",x),window.removeEventListener("hashchange",w),v?.(),p())},x=()=>m(()=>o(n())),w=()=>m(()=>o(n()));window.addEventListener("popstate",x,{once:!0}),window.addEventListener("hashchange",w,{once:!0}),setTimeout(()=>m(()=>o(n())),0),history.go(c)});let u=In(c),f="#"+(t+u);a?history.replaceState({__state:l},"",f):history.pushState({__state:l},"",f),o(n())},[t]);return createComponent(Rn.Provider,{value:{location:r,navigate:s,basename:t}},e)}function Pn(){let e=rt(Rn);if(!e)throw new Error("useLocation must be used inside a Router");return e.location}function Nn(){let e=rt(Rn);if(!e)throw new Error("useNavigate must be used inside a Router");return e.navigate}function $s({to:e,replace:t=!1,state:n,onClick:r,target:o,download:s,className:c,style:a,children:l,...u}){let f=Nn(),p="#"+In(e);function d(m){r&&r(m),!(m.defaultPrevented||m.button!==0||o&&o!=="_self"||m.metaKey||m.altKey||m.ctrlKey||m.shiftKey)&&(m.preventDefault(),f(e,{replace:t,state:n}))}return createComponent("a",{...u,href:p,onClick:d,target:o,download:s,className:c,style:a},l)}function Wt(e){return e&&e.replace(/\/+$/,"")||"/"}function As({to:e,end:t=!1,activeClassName:n="active",className:r,activeStyle:o,style:s,target:c,download:a,replace:l=!1,state:u,children:f,onClick:p,...d}){let m=Nn(),x=Pn(),w=typeof e=="string"?e.split("?")[0].split("#")[0]:e.pathname||"/",v=x.pathname||"/",h=t?Wt(v)===Wt(w):Wt(v).startsWith(Wt(w)),T=[typeof r=="function"?r({isActive:h}):r,h?n:null].filter(Boolean).join(" ")||void 0,O=typeof s=="function"?s({isActive:h}):s,P=h?{...O||{},...o||{}}:O,_="#"+In(e);function y(N){p&&p(N),!(N.defaultPrevented||N.button!==0||N.metaKey||N.altKey||N.ctrlKey||N.shiftKey)&&(N.preventDefault(),m(e,{replace:l,state:u}))}return createComponent("a",{...d,href:_,onClick:y,target:c,download:a,className:T,style:P,"aria-current":h?"page":void 0},typeof f=="function"?f({isActive:h}):f)}function Ls(e){let t=[],n="^"+e.replace(/\/+$/,"").replace(/([.+?^=!:${}()|[\]/\\])/g,"\\$1").replace(/\\\:([A-Za-z0-9_]+)/g,(o,s)=>(t.push(s),"([^/]+)")).replace(/\\\*$/g,"(.+?)?");return n+="/?$",{regex:new RegExp(n),paramNames:t}}function Rs(e,t){if(e==null)return{matched:!0,params:{}};let{regex:n,paramNames:r}=Ls(e),o=n.exec(t);if(!o)return{matched:!1};let s={};return r.forEach((c,a)=>s[c]=decodeURIComponent(o[a+1]||"")),o.length>r.length+1&&(s["*"]=o[r.length+1]?decodeURIComponent(o[r.length+1]):void 0),{matched:!0,params:s}}function Is({path:e,element:t=null,children:n}){return null}function oo({children:e}){let n=Pn().pathname||"/",r=qe.toArray(e);for(let o=0;o<r.length;o++){let s=r[o],c=s.props.path===void 0?null:s.props.path,a=s.props.element??null,l=s.props.children,{matched:u,params:f}=Rs(c,n);if(u)return a?createComponent(Ln.Provider,{value:{params:f}},a):l?createComponent(Ln.Provider,{value:{params:f}},createComponent(oo,{},l)):createComponent(Ln.Provider,{value:{params:f}},createComponent("div",{}))}return null}var Mn={};ee(Mn,{DragHandle:()=>io,ErrorBoundary:()=>Dn,Spinner:()=>Ps,SplitPane:()=>Ns,Suspense:()=>Vt});function Ps({size:e=48,className:t,style:n,color:r="currentColor",strokeWidth:o=3,"aria-label":s="Loading"}){let c=Math.max(1,e)+"px";return createComponent("div",{className:t,style:{width:"100%",height:"100%",display:"grid",placeItems:"center",...n},"aria-label":s,role:"status"},createComponent("div",{style:{width:c,height:c,borderRadius:"50%",border:`${o}px solid rgba(0,0,0,0.15)`,borderTopColor:r,animation:"ddSpinnerSpin 0.9s linear infinite",boxSizing:"border-box"}}),createComponent("style",{},`
96
96
  @keyframes ddSpinnerSpin { to { transform: rotate(360deg); } }
97
- `))}var Dn=class extends Le{constructor(){super(...arguments);z(this,"displayName","ErrorBoundary");z(this,"state",{hasError:!1,error:null});z(this,"reset",()=>this.setState({hasError:!1,error:null}))}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,r){let{onError:o}=this.props;try{o&&o(n,r)}catch(s){console.error("onError threw",s)}}render(){let{Fallback:n,children:r}=this.props;return this.state.hasError?createComponent(n,{error:this.state.error,reset:this.reset}):r}},Vt=class extends Le{constructor(n){super(n);z(this,"displayName","Suspense");this.state={showingFallback:!1},this._pending=new Set,this._delayTimer=null,this._minShowTimer=null,this._fallbackShownAt=0}static getDerivedStateFromError(n){if(Pt(n))return null;throw n}componentDidCatch(n,r){Pt(n)&&this._attachPromise(n)}componentWillUnmount(){this._clearTimers(),this._pending.clear()}_clearTimers(){this._delayTimer&&(clearTimeout(this._delayTimer),this._delayTimer=null),this._minShowTimer&&(clearTimeout(this._minShowTimer),this._minShowTimer=null)}_attachPromise(n){if(this._pending.has(n))return;if(this._pending.add(n),this._pending.size===1){let o=Math.max(0,this.props.minDelay);this._delayTimer&&(clearTimeout(this._delayTimer),this._delayTimer=null),this._delayTimer=setTimeout(()=>{this._delayTimer=null,this._fallbackShownAt=Date.now(),this.setState({showingFallback:!0})},o)}let r=()=>{if(this._pending.has(n)&&this._pending.delete(n),this._pending.size===0){if(this._delayTimer){clearTimeout(this._delayTimer),this._delayTimer=null,this.setState({showingFallback:!1});return}let o=Date.now()-(this._fallbackShownAt||0),s=Math.max(0,this.props.minShowTime-o);s===0?this.setState({showingFallback:!1}):(this._minShowTimer&&(clearTimeout(this._minShowTimer),this._minShowTimer=null),this._minShowTimer=setTimeout(()=>{this._minShowTimer=null,this.setState({showingFallback:!1})},s))}};n.then(r,r)}render(){return this.state.showingFallback?createComponent(Fragment,{},this.props.fallback):createComponent(Fragment,{},this.props.children)}};z(Vt,"defaultProps",{minDelay:200,minShowTime:300});function io({onDelta:e,onStart:t,onEnd:n,style:r,className:o,children:s,data:c}){let a=R(null),l=R(0),f=R(0),u=R(0),p=R(0),d=R(!1),[y,m]=Q(!1),h=he(()=>{a.current=null,d.current=!1,l.current=0,f.current=0,u.current=0,p.current=0,m(!1)},[]),_=he((v,C)=>{let L=v-l.current,P=C-f.current;return{dx:L,dy:P}},[]),g=he((v="up")=>{d.current&&(n?.(v),h())},[n,h]),w=he(v=>{if(!(v.button!=null&&v.button!==0)){d.current=!0,a.current=v.pointerId,l.current=v.clientX,f.current=v.clientY,u.current=v.clientX,p.current=v.clientY,m(!0),t?.(c);try{v.currentTarget.setPointerCapture(v.pointerId)}catch{}}},[t]),S=he(v=>{if(!d.current||a.current!==v.pointerId)return;let{dx:C,dy:L}=_(v.clientX,v.clientY);e?.(C,L,c),u.current=v.clientX,p.current=v.clientY},[_,e]),T=he(v=>{a.current===v.pointerId&&g("up",c)},[g]),k=he(v=>{a.current===v.pointerId&&g("cancel",c)},[g]);return createComponent("div",{role:"button",tabIndex:0,style:{...r,touchAction:"none"},className:`${o} ${y?"dragging":""}`,onPointerDown:w,onPointerMove:S,onPointerUp:T,onPointerCancel:k},s)}var Rs=fn(function({mode:t="horizontal",position:n,defaultPosition:r=.5,min:o=.1,max:s=.9,splitterSize:c=8,onSizeChange:a,resizePolicy:l="proportional",style:f,className:u,firstPaneStyle:p,secondPaneStyle:d,splitterStyle:y,splitterChild:m,children:h},_){let g=R(null),w=R({w:0,h:0}),[S,T]=Q(t==="vertical"?"vertical":"horizontal"),k=R(S),[v,C]=Q(r),L=R(v),P=R(void 0),Ce=R(l);ee(()=>{Ce.current=l},[l]),k.current=S,ee(()=>{L.current=v},[v]),Pe(()=>{T(t==="vertical"?"vertical":"horizontal")},[t]);let ne=(A,I,be,ae)=>Ns(A,o,s,I==="vertical"?ae:be,c),ye=xt(()=>{let A=n??v,{w:I,h:be}=w.current;return(t==="vertical"?be>0:I>0)?ne(A,k.current,I,be):A},[n,v,o,s,c,t]);ee(()=>{P.current=ye},[ye]);let Oe=A=>{let I=k.current,{w:be,h:ae}=w.current;if(I==="vertical"?ae<=0:be<=0){n==null&&C(A),a?.(A);return}let J=ne(A,I,be,ae);n==null&&C(J),P.current=J,a?.(J)};gn(_,()=>({setPosition:Oe,setMode:A=>T(A==="vertical"?"vertical":"horizontal"),getPosition:()=>P.current??ye,getMode:()=>k.current}));let vt=R(!1);Pe(()=>{let A=g.current;if(!A)return;let I=new ResizeObserver(be=>{let ae=A.getBoundingClientRect(),J=w.current,re={w:ae.width,h:ae.height};w.current=re;let it=k.current,bo=it==="vertical"?J.h>0:J.w>0,Jn=it==="vertical"?re.h>0:re.w>0;if(!vt.current&&Jn){vt.current=!0;let oe=n??L.current,V=ne(oe,it,re.w,re.h);n==null&&C(V),P.current=V,a?.(V);return}if(!bo||!Jn)return;let $e=P.current??ye,Zn=Ce.current,Ae=c;if(Zn==="fixFirst")if(it==="vertical"){let oe=J.h-Ae,V=re.h-Ae;if(oe>0&&V>0){let ue=$e*oe/V;Math.abs(ue-$e)>Bt&&Oe(ue)}}else{let oe=J.w-Ae,V=re.w-Ae;if(oe>0&&V>0){let ue=$e*oe/V;Math.abs(ue-$e)>Bt&&Oe(ue)}}else if(Zn==="fixSecond")if(it==="vertical"){let oe=J.h-Ae,V=re.h-Ae;if(oe>0&&V>0){let ue=1-(1-$e)*oe/V;Math.abs(ue-$e)>Bt&&Oe(ue)}}else{let oe=J.w-Ae,V=re.w-Ae;if(oe>0&&V>0){let ue=1-(1-$e)*oe/V;Math.abs(ue-$e)>Bt&&Oe(ue)}}});return I.observe(A),()=>I.disconnect()},[o,s,c,a,n]);let kt=R(ye),[Vn,Xn]=Q(!1);ee(()=>{Vn||(kt.current=ye)},[ye,Vn]);let po=()=>{Xn(!0),kt.current=P.current??ye},ho=(A,I)=>{let be=k.current,{w:ae,h:J}=w.current;if(be==="horizontal"){let re=ae>0?ae:1;Oe(kt.current+A/re)}else{let re=J>0?J:1;Oe(kt.current+I/re)}},mo=()=>Xn(!1),Yn=Me.toArray(h),yo=Yn[0],go=Yn[1],ve=ye,{w:Gn,h:Hn}=w.current,ge={position:"absolute",top:0,left:0,overflow:"auto",...p||{}},ke={position:"absolute",bottom:0,right:0,overflow:"auto",...d||{}},Ne={background:"rgba(0,0,0,0.08)",boxShadow:"inset 0 0 2px rgba(0,0,0,0.25)",zIndex:1e6,position:"absolute",cursor:S==="horizontal"?"col-resize":"row-resize",touchAction:"none",pointerEvents:"auto",...y||{}};if(S==="horizontal")if(ge.bottom=0,ke.top=0,l==="fixFirst"){let A=Gn-c,I=A>0?ve*A:0;ge.width=I,ke.left=I+c,Object.assign(Ne,{top:0,bottom:0,left:I,width:c})}else if(l==="fixSecond"){let A=Gn-c,I=A>0?(1-ve)*A:0;ke.width=I,ge.right=I+c,Object.assign(Ne,{top:0,bottom:0,right:I,width:c})}else ge.width=`calc(${ve} * (100% - ${c}px))`,ke.left=`calc(${ve} * (100% - ${c}px) + ${c}px)`,Object.assign(Ne,{top:0,bottom:0,left:`calc(${ve} * (100% - ${c}px))`,width:c});else if(ge.right=0,ke.left=0,l==="fixFirst"){let A=Hn-c,I=A>0?ve*A:0;ge.height=I,ke.top=I+c,Object.assign(Ne,{left:0,right:0,top:I,height:c})}else if(l==="fixSecond"){let A=Hn-c,I=A>0?(1-ve)*A:0;ke.height=I,ge.bottom=I+c,Object.assign(Ne,{left:0,right:0,bottom:I,height:c})}else ge.height=`calc(${ve} * (100% - ${c}px))`,ke.top=`calc(${ve} * (100% - ${c}px) + ${c}px)`,Object.assign(Ne,{left:0,right:0,top:ge.height,height:c});return createComponent("div",{ref:g,className:u,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",...f||{}}},createComponent("div",{style:ge},yo),createComponent("div",{style:ke},go),createComponent(io,{key:S,onStart:po,onDelta:ho,onEnd:mo,style:Ne,className:"splitter"},m))}),Bt=1e-6,Ns=function(e,t,n,r,o){let s=t,c=n;return typeof s=="function"&&(r>0?s=s(r,o):s=0),typeof c=="function"&&(r>0?c=c(r,o):c=1),s=Math.max(0,Math.min(s,1)),c=Math.max(0,Math.min(c,1)),Math.max(s,Math.min(c,e))};var js={},co={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){js[e]=t,co[t]=e});function ao(...e){if(typeof e=="number")return so(e);let t="";for(let n=0;n<e.length;n+=1)t+=so(e[n]);return t}function so(e){let t="";e<0?e=-e<<1|1:e<<=1;do{let n=e&31;e>>>=5,e>0&&(n|=32),t+=co[n]}while(e>0);return t}var Yt=new Set(["break","case","catch","class","const","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","in","instanceof","super","switch","this","throw","try","var","while","with","yield","return","true","false","null","undefined","enum","implements","interface","let","package","private","protected","public","static","yield","as","from","of","async","get","set","static","super","delete","void","typeof","new","await"]),Ms=new Set(["(",")","{","}","[","]","...",".","=>",",",";",":","?","++","--","+","-","*","/","%","**",">>","<<",">>>","<<<","&","|","^","~","==","!=","===","!==",">","<",">=","<=","&&","||","??","?.","=","+=","-=","*=","/=","%=","**=","<<=",">>=",">>>=","&=","|=","^=","??=","&&=","||=","!"]);function Us(e){return/^(?:[+-]?(?:(?:\d(?:\d|_)*)(?:\.(?:\d(?:\d|_)*))?|\.(?:\d(?:\d|_)*))(?:[eE][+-]?(?:\d(?:\d|_)*))?|[+-]?Infinity|[+-]?NaN|[+-]?(?:(?:0[xX](?:[0-9a-fA-F](?:[0-9a-fA-F]|_)*))|(?:0[oO](?:[0-7](?:[0-7]|_)*))|(?:0[bB](?:[01](?:[01]|_)*))|(?:\d(?:\d|_)*))n)$/u.test(e)?!Yt.has(e):!1}function qs(e){return/(?:\\u\{[0-9a-fA-F]+\}|\\u[0-9a-fA-F]{4})/g.test(e)?!Yt.has(e):!1}function Fs(e){return/^(?:[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}]*)$/u.test(e)?!Yt.has(e):!1}function Un(e,t){if(typeof t=="string"){if(e&&e.hasOwnProperty(t))return e[t];if(t.trim()==="")return t.indexOf(`
97
+ `))}var Dn=class extends Ie{constructor(){super(...arguments);te(this,"displayName","ErrorBoundary");te(this,"state",{hasError:!1,error:null});te(this,"reset",()=>this.setState({hasError:!1,error:null}))}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,r){let{onError:o}=this.props;try{o&&o(n,r)}catch(s){console.error("onError threw",s)}}render(){let{Fallback:n,children:r}=this.props;return this.state.hasError?createComponent(n,{error:this.state.error,reset:this.reset}):r}},Vt=class extends Ie{constructor(n){super(n);te(this,"displayName","Suspense");this.state={showingFallback:!1},this._pending=new Set,this._delayTimer=null,this._minShowTimer=null,this._fallbackShownAt=0}static getDerivedStateFromError(n){if(It(n))return null;throw n}componentDidCatch(n,r){It(n)&&this._attachPromise(n)}componentWillUnmount(){this._clearTimers(),this._pending.clear()}_clearTimers(){this._delayTimer&&(clearTimeout(this._delayTimer),this._delayTimer=null),this._minShowTimer&&(clearTimeout(this._minShowTimer),this._minShowTimer=null)}_attachPromise(n){if(this._pending.has(n))return;if(this._pending.add(n),this._pending.size===1){let o=Math.max(0,this.props.minDelay);this._delayTimer&&(clearTimeout(this._delayTimer),this._delayTimer=null),this._delayTimer=setTimeout(()=>{this._delayTimer=null,this._fallbackShownAt=Date.now(),this.setState({showingFallback:!0})},o)}let r=()=>{if(this._pending.has(n)&&this._pending.delete(n),this._pending.size===0){if(this._delayTimer){clearTimeout(this._delayTimer),this._delayTimer=null,this.setState({showingFallback:!1});return}let o=Date.now()-(this._fallbackShownAt||0),s=Math.max(0,this.props.minShowTime-o);s===0?this.setState({showingFallback:!1}):(this._minShowTimer&&(clearTimeout(this._minShowTimer),this._minShowTimer=null),this._minShowTimer=setTimeout(()=>{this._minShowTimer=null,this.setState({showingFallback:!1})},s))}};n.then(r,r)}render(){return this.state.showingFallback?createComponent(Fragment,{},this.props.fallback):createComponent(Fragment,{},this.props.children)}};te(Vt,"defaultProps",{minDelay:200,minShowTime:300});function io({onDelta:e,onStart:t,onEnd:n,style:r,className:o,children:s,data:c}){let a=j(null),l=j(0),u=j(0),f=j(0),p=j(0),d=j(!1),[m,x]=ne(!1),w=ye(()=>{a.current=null,d.current=!1,l.current=0,u.current=0,f.current=0,p.current=0,x(!1)},[]),v=ye((_,y)=>{let N=_-l.current,C=y-u.current;return{dx:N,dy:C}},[]),h=ye((_="up")=>{d.current&&(n?.(_),w())},[n,w]),k=ye(_=>{if(!(_.button!=null&&_.button!==0)){d.current=!0,a.current=_.pointerId,l.current=_.clientX,u.current=_.clientY,f.current=_.clientX,p.current=_.clientY,x(!0),t?.(c);try{_.currentTarget.setPointerCapture(_.pointerId)}catch{}}},[t]),T=ye(_=>{if(!d.current||a.current!==_.pointerId)return;let{dx:y,dy:N}=v(_.clientX,_.clientY);e?.(y,N,c),f.current=_.clientX,p.current=_.clientY},[v,e]),O=ye(_=>{a.current===_.pointerId&&h("up",c)},[h]),P=ye(_=>{a.current===_.pointerId&&h("cancel",c)},[h]);return createComponent("div",{role:"button",tabIndex:0,style:{...r,touchAction:"none"},className:`${o} ${m?"dragging":""}`,onPointerDown:k,onPointerMove:T,onPointerUp:O,onPointerCancel:P},s)}var Ns=fn(function({mode:t="horizontal",position:n,defaultPosition:r=.5,min:o=.1,max:s=.9,splitterSize:c=8,onSizeChange:a,resizePolicy:l="proportional",style:u,className:f,firstPaneStyle:p,secondPaneStyle:d,splitterStyle:m,splitterChild:x,children:w},v){let h=j(null),k=j({w:0,h:0}),[T,O]=ne(t==="vertical"?"vertical":"horizontal"),P=j(T),[_,y]=ne(r),N=j(_),C=j(void 0),S=j(l);re(()=>{S.current=l},[l]),P.current=T,re(()=>{N.current=_},[_]),Pe(()=>{O(t==="vertical"?"vertical":"horizontal")},[t]);let L=(R,I,xe,fe)=>js(R,o,s,I==="vertical"?fe:xe,c),le=_t(()=>{let R=n??_,{w:I,h:xe}=k.current;return(t==="vertical"?xe>0:I>0)?L(R,P.current,I,xe):R},[n,_,o,s,c,t]);re(()=>{C.current=le},[le]);let Y=R=>{let I=P.current,{w:xe,h:fe}=k.current;if(I==="vertical"?fe<=0:xe<=0){n==null&&y(R),a?.(R);return}let Q=L(R,I,xe,fe);n==null&&y(Q),C.current=Q,a?.(Q)};gn(v,()=>({setPosition:Y,setMode:R=>O(R==="vertical"?"vertical":"horizontal"),getPosition:()=>C.current??le,getMode:()=>P.current}));let Te=j(!1);Pe(()=>{let R=h.current;if(!R)return;let I=new ResizeObserver(xe=>{let fe=R.getBoundingClientRect(),Q=k.current,ie={w:fe.width,h:fe.height};k.current=ie;let st=P.current,bo=st==="vertical"?Q.h>0:Q.w>0,Jn=st==="vertical"?ie.h>0:ie.w>0;if(!Te.current&&Jn){Te.current=!0;let se=n??N.current,G=L(se,st,ie.w,ie.h);n==null&&y(G),C.current=G,a?.(G);return}if(!bo||!Jn)return;let Ae=C.current??le,Zn=S.current,Le=c;if(Zn==="fixFirst")if(st==="vertical"){let se=Q.h-Le,G=ie.h-Le;if(se>0&&G>0){let pe=Ae*se/G;Math.abs(pe-Ae)>Bt&&Y(pe)}}else{let se=Q.w-Le,G=ie.w-Le;if(se>0&&G>0){let pe=Ae*se/G;Math.abs(pe-Ae)>Bt&&Y(pe)}}else if(Zn==="fixSecond")if(st==="vertical"){let se=Q.h-Le,G=ie.h-Le;if(se>0&&G>0){let pe=1-(1-Ae)*se/G;Math.abs(pe-Ae)>Bt&&Y(pe)}}else{let se=Q.w-Le,G=ie.w-Le;if(se>0&&G>0){let pe=1-(1-Ae)*se/G;Math.abs(pe-Ae)>Bt&&Y(pe)}}});return I.observe(R),()=>I.disconnect()},[o,s,c,a,n]);let kt=j(le),[Vn,Xn]=ne(!1);re(()=>{Vn||(kt.current=le)},[le,Vn]);let po=()=>{Xn(!0),kt.current=C.current??le},ho=(R,I)=>{let xe=P.current,{w:fe,h:Q}=k.current;if(xe==="horizontal"){let ie=fe>0?fe:1;Y(kt.current+R/ie)}else{let ie=Q>0?Q:1;Y(kt.current+I/ie)}},mo=()=>Xn(!1),Yn=qe.toArray(w),yo=Yn[0],go=Yn[1],Se=le,{w:Gn,h:Hn}=k.current,we={position:"absolute",top:0,left:0,overflow:"auto",...p||{}},Ce={position:"absolute",bottom:0,right:0,overflow:"auto",...d||{}},De={background:"rgba(0,0,0,0.08)",boxShadow:"inset 0 0 2px rgba(0,0,0,0.25)",zIndex:1e6,position:"absolute",cursor:T==="horizontal"?"col-resize":"row-resize",touchAction:"none",pointerEvents:"auto",...m||{}};if(T==="horizontal")if(we.bottom=0,Ce.top=0,l==="fixFirst"){let R=Gn-c,I=R>0?Se*R:0;we.width=I,Ce.left=I+c,Object.assign(De,{top:0,bottom:0,left:I,width:c})}else if(l==="fixSecond"){let R=Gn-c,I=R>0?(1-Se)*R:0;Ce.width=I,we.right=I+c,Object.assign(De,{top:0,bottom:0,right:I,width:c})}else we.width=`calc(${Se} * (100% - ${c}px))`,Ce.left=`calc(${Se} * (100% - ${c}px) + ${c}px)`,Object.assign(De,{top:0,bottom:0,left:`calc(${Se} * (100% - ${c}px))`,width:c});else if(we.right=0,Ce.left=0,l==="fixFirst"){let R=Hn-c,I=R>0?Se*R:0;we.height=I,Ce.top=I+c,Object.assign(De,{left:0,right:0,top:I,height:c})}else if(l==="fixSecond"){let R=Hn-c,I=R>0?(1-Se)*R:0;Ce.height=I,we.bottom=I+c,Object.assign(De,{left:0,right:0,bottom:I,height:c})}else we.height=`calc(${Se} * (100% - ${c}px))`,Ce.top=`calc(${Se} * (100% - ${c}px) + ${c}px)`,Object.assign(De,{left:0,right:0,top:we.height,height:c});return createComponent("div",{ref:h,className:f,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",...u||{}}},createComponent("div",{style:we},yo),createComponent("div",{style:Ce},go),createComponent(io,{key:T,onStart:po,onDelta:ho,onEnd:mo,style:De,className:"splitter"},x))}),Bt=1e-6,js=function(e,t,n,r,o){let s=t,c=n;return typeof s=="function"&&(r>0?s=s(r,o):s=0),typeof c=="function"&&(r>0?c=c(r,o):c=1),s=Math.max(0,Math.min(s,1)),c=Math.max(0,Math.min(c,1)),Math.max(s,Math.min(c,e))};var Ds={},co={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){Ds[e]=t,co[t]=e});function ao(...e){if(typeof e=="number")return so(e);let t="";for(let n=0;n<e.length;n+=1)t+=so(e[n]);return t}function so(e){let t="";e<0?e=-e<<1|1:e<<=1;do{let n=e&31;e>>>=5,e>0&&(n|=32),t+=co[n]}while(e>0);return t}var Yt=new Set(["break","case","catch","class","const","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","in","instanceof","super","switch","this","throw","try","var","while","with","yield","return","true","false","null","undefined","enum","implements","interface","let","package","private","protected","public","static","yield","as","from","of","async","get","set","static","super","delete","void","typeof","new","await"]),Us=new Set(["(",")","{","}","[","]","...",".","=>",",",";",":","?","++","--","+","-","*","/","%","**",">>","<<",">>>","<<<","&","|","^","~","==","!=","===","!==",">","<",">=","<=","&&","||","??","?.","=","+=","-=","*=","/=","%=","**=","<<=",">>=",">>>=","&=","|=","^=","??=","&&=","||=","!"]);function qs(e){return/^(?:[+-]?(?:(?:\d(?:\d|_)*)(?:\.(?:\d(?:\d|_)*))?|\.(?:\d(?:\d|_)*))(?:[eE][+-]?(?:\d(?:\d|_)*))?|[+-]?Infinity|[+-]?NaN|[+-]?(?:(?:0[xX](?:[0-9a-fA-F](?:[0-9a-fA-F]|_)*))|(?:0[oO](?:[0-7](?:[0-7]|_)*))|(?:0[bB](?:[01](?:[01]|_)*))|(?:\d(?:\d|_)*))n)$/u.test(e)?!Yt.has(e):!1}function Fs(e){return/(?:\\u\{[0-9a-fA-F]+\}|\\u[0-9a-fA-F]{4})/g.test(e)?!Yt.has(e):!1}function Ks(e){return/^(?:[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}]*)$/u.test(e)?!Yt.has(e):!1}function Un(e,t){if(typeof t=="string"){if(e&&e.hasOwnProperty(t))return e[t];if(t.trim()==="")return t.indexOf(`
98
98
  `)!==-1?`
99
- `:" ";if(Yt.has(t))return"K";if(Ms.has(t))return"O";if(Fs(t))return"I";if(qs(t))return"U";if(Us(t))return"N"}else if(typeof t=="object"){if(t.type==="comment")return"C";if(t.type==="regexp")return"R";if(t.type==="js")return"J";if(t.type==="parenthesis")return"P";if(t.type==="string")return"S";if(t.type==="xml")return"X"}return"?"}function qn(e,t=t.bind(null,null)){return e.map(t).join("")}var Ks=/(?:i[C \n]*(?:(?:I|J|(?:\*[C \n]*a[C \n]*I))[C \n]*,[C \n]*)*(?:(?:(?:I(?:[C \n]*a[C \n]*I)?)|J|(?:\*[C \n]*a[C \n]*I))[C \n]*f[C \n]*)?S)|(?:e[C \n]*(?:(?:[*J][C \n]*f[C \n]*S)|(?:d[C \n]*[IFJ])|J|(?:[VF][c \n]*I)|I))|(?:r[c \n]*P)/mg,Xt=/O[C \n]*(?:[Id](?:[C \n]*a[C \n]*I)?[C \n]*,[C \n]*)*(?:I(?:[C \n]*a[C \n]*I)?)[C \n]*O/mg;function Fn(e,t){let n=qn(e.out,Un.bind(null,{import:"i",export:"e",as:"a",from:"f",",":",",".":".","*":"*",";":";",var:"V",let:"V",const:"V",function:"F",class:"F","=":"=",default:"d",require:"r"})),r,o=(a=1)=>{for(;n[r]===" "||n[r]===`
100
- `||n[r]==="C";)a===1&&(e.out[r]=null),r+=a},s=e.begin,c=[];for(r=0;r<e.out.length;r++)r==0?c.push(e.begin):typeof e.out[r-1]=="string"?c.push(c[r-1]+e.out[r-1].length):c.push(e.out[r-1].end);c.push(e.end);for(let a of n.matchAll(Ks))if(a[0].startsWith("r")){let l=a[0],f=e.out[a.index+l.length-1].out;f.length===1&&f.push(", {requirer:module}")}else if(a[0].startsWith("i")){let l=a[0];if(r=a.index-1,o(-1),n[r]===".")continue;let f=t.substring(e.out[a.index+l.length-1].begin,e.out[a.index+l.length-1].end),u={},p=[],d=[];for(r=a.index+1;r<a.index+l.length-1;r++)switch(e.out.splice(a.index,1,{type:"import",begin:c[a.index],end:c[a.index+l.length],cjs:""}),o(),n[r]){case",":break;case"I":{d.push(e.out[r]);continue}case"J":{let m=qn(e.out[r].out,Un.bind(null,{as:"a",",":","}));if(Xt.lastIndex=-1,!Xt.test(m))throw"incorrect import properties definition.";let h=e.out[r].out;for(let _=1;_<m.length-1;_++){for(;m[_]===" "||m[_]===`
101
- `||m[_]==="C"||m[_]===",";)_++;let g=h[_];for(_++;m[_]===" "||m[_]===`
102
- `||m[_]==="C";)_++;if(m[_]==="a"){for(_++;m[_]===" "||m[_]===`
103
- `||m[_]==="C";)_++;u[h[_]]=g,_++}else u[g]=g}continue}case"*":{r++,o(),r++,o(),p.push(e.out[r]);continue}case"S":for(r=a.index+1;r<a.index+l.length;r++)e.out[r]=null;let y="";for(let m of p)y+=`const ${m} = require(${f},{requirer:module});
104
- `;for(let m of d)y+=`const ${m} = require(${f},{requirer:module, checkExport: ['default']}).default;
105
- `;if(Object.keys(u).length){let m="{",h="[";for(let _ in u)m.length>1&&(m+=",",h+=","),_===u[_]?(m+=_,h+=`'${_}'`):(m+=_+":"+u[_],h+=`'${u[_]}'`);m+="}",h+="]",y+=`const ${m} = require(${f}, {checkExport: ${h},requirer:module})`}else y.length===0&&(y+=`require(${f},{requirer:module})`);e.out[a.index].cjs=y;continue}}else{let l=a[0];if(e.out.splice(a.index,1,{type:"export",begin:c[a.index],end:c[a.index+1]}),r=a.index-1,o(-1),n[r]===".")continue;switch(r=a.index+1,o(),n[r]){case"d":e.out[r]=null,e.out[a.index].cjs="module.exports.default =";continue;case"V":{let u=e.out[r];e.out[r]=null,r++,o();let p=e.out[r];e.out[r]=null,r++,o(),e.out[a.index].cjs=`${u} ${p} = module.exports.${p} `;continue}case"F":{let u=e.out[r];e.out[r]=null,r++,o();let p=e.out[r];e.out[a.index].cjs=`module.exports.${p} = ${u} `;continue}case"*":e.out[r]=null,r++,o(),e.out[r]=null,r++,o();let f=t.substring(e.out[r].begin,e.out[r].end);e.out[r]=null,e.out[a.index].cjs=`Object.assign(module.exports, require(${f},{requirer:module}))`;continue;case"I":e.out[a.index].cjs=`module.exports.${e.out[r]} = `;continue;case"J":{let u={},p=qn(e.out[r].out,Un.bind(null,{as:"a",",":",",default:"I"}));if(Xt.lastIndex=-1,!Xt.test(p))throw"incorrect export properties definition.";let d=e.out[r].out;for(let h=1;h<p.length-1;h++){for(;p[h]===" "||p[h]===`
106
- `||p[h]==="C"||p[h]===",";)h++;let _=d[h];for(h++;p[h]===" "||p[h]===`
107
- `||p[h]==="C";)h++;if(p[h]==="a"){for(h++;p[h]===" "||p[h]===`
108
- `||p[h]==="C";)h++;u[d[h]]=_,h++}else u[_]=_}let y="{",m="{";for(let h in u)y.length>1&&(y+=",",m+=","),h===u[h]?(y+=h,m+=h):(y+=h+":"+u[h],m+=u[h]);if(y+="}",m+="}",e.out[r]=null,r++,o(),e.out[r]==="from"){e.out[r]=null,r++,o();let h=t.substring(e.out[r].begin,e.out[r].end);e.out[r]=null,e.out[a.index].cjs=`{ const ${y} = require(${h},{requirer:module}); Object.assign(module.exports, ${m}); }`}else e.out[a.index].cjs=`Object.assign(module.exports, ${y})`;continue}}}}var D={setBlockLabels:!0,enableLabelStack:!1,injectLabels:!0,preprocessorDelimiter:"\u0294"},me,va=0,uo=/(\{|\}|\[|\]|\(|\)|\.\.\.|=>|\?\?=|\?\?|\?\.|===|!==|>>>|<<=|>>=|>>>=|\*\*=|\*\*|&&=|\|\|=|<=|>=|==|!=|<<|>>|\+\+|--|\+=|-=|\*=|\/=|%=|&=|\^=|\|=|=|\+|-|\*|\/|%|&|\^|\||!|~|\?|:|<|>|=|\.|,|;|\n+|[\s^\n]+)/g;function M(e,t,n,...r){let o=e(t,n,...r);return o?[o.end,o]:[n]}function Ws(code,index,container){let i=index,dels=`;=,([{}!^~&|:?*%-+/<>${D.preprocessorDelimiter}`;for(;--i>=0;)if(" \r".indexOf(code[i])===-1){if(code[i]===`
99
+ `:" ";if(Yt.has(t))return"K";if(Us.has(t))return"O";if(Ks(t))return"I";if(Fs(t))return"U";if(qs(t))return"N"}else if(typeof t=="object"){if(t.type==="comment")return"C";if(t.type==="regexp")return"R";if(t.type==="js")return"J";if(t.type==="parenthesis")return"P";if(t.type==="string")return"S";if(t.type==="xml")return"X"}return"?"}function qn(e,t=t.bind(null,null)){return e.map(t).join("")}var Ws=/(?:i[C \n]*(?:(?:I|J|(?:\*[C \n]*a[C \n]*I))[C \n]*,[C \n]*)*(?:(?:(?:I(?:[C \n]*a[C \n]*I)?)|J|(?:\*[C \n]*a[C \n]*I))[C \n]*f[C \n]*)?S)|(?:e[C \n]*(?:(?:[*J][C \n]*f[C \n]*S)|(?:d[C \n]*[IFJ])|J|(?:[VF][c \n]*I)|I))|(?:r[c \n]*P)/mg,Xt=/O[C \n]*(?:[Id](?:[C \n]*a[C \n]*I)?[C \n]*,[C \n]*)*(?:I(?:[C \n]*a[C \n]*I)?)[C \n]*O/mg;function Fn(e,t,n){let r=qn(e.out,Un.bind(null,{import:"i",export:"e",as:"a",from:"f",",":",",".":".","*":"*",";":";",var:"V",let:"V",const:"V",function:"F",class:"F","=":"=",default:"d",require:"r"})),o,s=(u=1)=>{for(;r[o]===" "||r[o]===`
100
+ `||r[o]==="C";)u===1&&(e.out[o]=null),o+=u},c=e.begin,a=[];for(o=0;o<e.out.length;o++)o==0?a.push(e.begin):typeof e.out[o-1]=="string"?a.push(a[o-1]+e.out[o-1].length):a.push(e.out[o-1].end);a.push(e.end),n.imports??(n.imports={});let l=new Set;for(let u of r.matchAll(Ws))if(u[0].startsWith("r")){let f=u[0],p=e.out[u.index+f.length-1].out;p.length===1&&p.push(", {requirer:module}")}else if(u[0].startsWith("i")){let f=u[0];if(o=u.index-1,s(-1),r[o]===".")continue;let p=t.substring(e.out[u.index+f.length-1].begin,e.out[u.index+f.length-1].end),d={},m=[],x=[];for(o=u.index+1;o<u.index+f.length-1;o++)switch(e.out.splice(u.index,1,{type:"import",begin:a[u.index],end:a[u.index+f.length],cjs:""}),s(),r[o]){case",":break;case"I":{x.push(e.out[o]);continue}case"J":{let h=qn(e.out[o].out,Un.bind(null,{as:"a",",":","}));if(Xt.lastIndex=-1,!Xt.test(h))throw"incorrect import properties definition.";let k=e.out[o].out;for(let T=1;T<h.length-1;T++){for(;h[T]===" "||h[T]===`
101
+ `||h[T]==="C"||h[T]===",";)T++;let O=k[T];for(T++;h[T]===" "||h[T]===`
102
+ `||h[T]==="C";)T++;if(h[T]==="a"){for(T++;h[T]===" "||h[T]===`
103
+ `||h[T]==="C";)T++;d[k[T]]=O,T++}else d[O]=O}continue}case"*":{o++,s(),o++,s(),m.push(e.out[o]);continue}case"S":for(o=u.index+1;o<u.index+f.length;o++)e.out[o]=null;let v="";for(let h of m)v+=`const ${h} = require(${p},{requirer:module});
104
+ `,l.add(h);for(let h of x)v+=`const ${h} = require(${p},{requirer:module, checkExport: ['default']}).default;
105
+ `,l.add(h);if(Object.keys(d).length){let h="{",k="[";for(let T in d)l.add(T),h.length>1&&(h+=",",k+=","),T===d[T]?(h+=T,k+=`'${T}'`):(h+=T+":"+d[T],k+=`'${d[T]}'`);h+="}",k+="]",v+=`const ${h} = require(${p}, {checkExport: ${k},requirer:module})`}else v.length===0&&(v+=`require(${p},{requirer:module})`,d[""]=p);e.out[u.index].cjs=v;continue}let w=p.slice(1,p.length-1);n.imports[w]?n.imports[w]={import_stars:[...n.imports[w].import_stars,...m],import_defaults:[...n.imports[w].import_defaults,...x],named_imports:{...n.imports[w].named_imports,...d}}:n.imports[w]={import_stars:m,import_defaults:x,named_imports:d}}else{let f=u[0];if(e.out.splice(u.index,1,{type:"export",begin:a[u.index],end:a[u.index+1]}),o=u.index-1,s(-1),r[o]===".")continue;switch(o=u.index+1,s(),r[o]){case"d":e.out[o]=null,e.out[u.index].cjs="module.exports.default =";continue;case"V":{let d=e.out[o];e.out[o]=null,o++,s();let m=e.out[o];e.out[o]=null,o++,s(),e.out[u.index].cjs=`${d} ${m} = module.exports.${m} `;continue}case"F":{let d=e.out[o];e.out[o]=null,o++,s();let m=e.out[o];e.out[u.index].cjs=`module.exports.${m} = ${d} `;continue}case"*":e.out[o]=null,o++,s(),e.out[o]=null,o++,s();let p=t.substring(e.out[o].begin,e.out[o].end);e.out[o]=null,e.out[u.index].cjs=`Object.assign(module.exports, require(${p},{requirer:module}))`;continue;case"I":e.out[u.index].cjs=`module.exports.${e.out[o]} = `;continue;case"J":{let d={},m=qn(e.out[o].out,Un.bind(null,{as:"a",",":",",default:"I"}));if(Xt.lastIndex=-1,!Xt.test(m))throw"incorrect export properties definition.";let x=e.out[o].out;for(let h=1;h<m.length-1;h++){for(;m[h]===" "||m[h]===`
106
+ `||m[h]==="C"||m[h]===",";)h++;let k=x[h];for(h++;m[h]===" "||m[h]===`
107
+ `||m[h]==="C";)h++;if(m[h]==="a"){for(h++;m[h]===" "||m[h]===`
108
+ `||m[h]==="C";)h++;d[x[h]]=k,h++}else d[k]=k}let w="{",v="{";for(let h in d)w.length>1&&(w+=",",v+=","),h===d[h]?(w+=h,v+=h):(w+=h+":"+d[h],v+=d[h]);if(w+="}",v+="}",e.out[o]=null,o++,s(),e.out[o]==="from"){e.out[o]=null,o++,s();let h=t.substring(e.out[o].begin,e.out[o].end);e.out[o]=null,e.out[u.index].cjs=`{ const ${w} = require(${h},{requirer:module}); Object.assign(module.exports, ${v}); }`}else e.out[u.index].cjs=`Object.assign(module.exports, ${w})`;continue}}}n.imported_names?n.imported_names=new Set([...n.imported_names,...l]):n.imported_names=l}var U={setBlockLabels:!0,enableLabelStack:!1,preprocessorDelimiter:"\u0294"},be,ka=0,uo=/(\{|\}|\[|\]|\(|\)|\.\.\.|=>|\?\?=|\?\?|\?\.|===|!==|>>>|<<=|>>=|>>>=|\*\*=|\*\*|&&=|\|\|=|<=|>=|==|!=|<<|>>|\+\+|--|\+=|-=|\*=|\/=|%=|&=|\^=|\|=|=|\+|-|\*|\/|%|&|\^|\||!|~|\?|:|<|>|=|\.|,|;|\n+|[\s^\n]+)/g;function q(e,t,n,...r){let o=e(t,n,...r);return o?[o.end,o]:[n]}function Bs(code,index,container){let i=index,dels=`;=,([{}!^~&|:?*%-+/<>${U.preprocessorDelimiter}`;for(;--i>=0;)if(" \r".indexOf(code[i])===-1){if(code[i]===`
109
109
  `){dels+=")]";continue}if(dels.indexOf(code[i])!==-1)break;return}let b={type:"regex",begin:index++};for(;index<code.length;){let ch=code[index];switch(ch){case`
110
- `:return;case"/":try{return eval("const x="+code.slice(b.begin,index+1)),b.end=index+1,container&&container.children.push(b),b}catch(e){}default:index++}}}function Gt(e,t,n){let r={type:"comment",begin:t++};if(e[t]!=="*"&&e[t]!=="/")return Ws(e,t-1,n);let o=e[t]==="*";for(t++;t<e.length;){switch(e[t]){case"*":if(o&&e[t+1]==="/")return r.end=t+2,n&&n.children.push(r),r;break;case`
111
- `:if(!o)return r.end=t+1,n&&n.children.push(r),r;break}t++}me("Unterminated comment",r.begin)}function Bs(e,t,n){let r=t+1;for(;e[r]&&e[r]!==`
112
- `&&e[r]!==D.preprocessorDelimiter||e[r-1]==="\\";)r++;if(e[r]===D.preprocessorDelimiter){let s={type:"directive",begin:t,cbegin:t,end:r+1,expression:e.slice(t+1,r).replace(/\\(.)/gs,"$1"),value:""};return n&&n.children.push(s),s}else{let s=t;for(;s-->=0&&(e[s]===" "||e[s]===" "););if(s===-1||e[s]===`
113
- `){let a={type:"directive",begin:t,cbegin:t,end:r+1,pragma:e.slice(t+1,r+1).replace(/\\(.)/gs,"$1"),value:""};return n&&n.children.push(a),a}}me("Error in preprocessor statement",t)}function Vs(node,context){let all_nodes=[];var segments=[],scope_stack=[],last_block=null;let clone_block=(e,t)=>{var n;return last_block=typeof all_nodes[e]=="object"?structuredClone({...all_nodes[e],children:void 0,attributes:{}}):all_nodes[e],last_block.type==="directive"&&(last_block.value=t),(n=scope_stack[0]).out??(n.out=[]),scope_stack[0].out.push(last_block),last_block},clone_attr=(e,t)=>(last_block=typeof all_nodes[e]=="object"?structuredClone({...all_nodes[e],children:void 0,attributes:{}}):all_nodes[e],scope_stack[0].attributes[t]=last_block,last_block),push_scope=()=>{scope_stack=[last_block,scope_stack]},pop_scope=()=>{scope_stack=scope_stack[1]},vine_traverse=e=>{if(typeof e!="object")return segments;if(segments.push("push_scope();"),e.attributes)for(let t in e.attributes){let n=e.attributes[t];all_nodes.push(n),segments.push(`clone_attr(${all_nodes.length-1}, "${t}");`),vine_traverse(n)}if(e.children)for(let t of e.children)all_nodes.push(t),t.type==="directive"&&t.expression===void 0?segments.push(t.pragma):(t.expression?segments.push(`clone_block(${all_nodes.length-1}, ${t.expression});`):segments.push(`clone_block(${all_nodes.length-1});`),vine_traverse(t));return segments.push("pop_scope();"),segments};node.out=[],last_block=node,push_scope(),vine_traverse(node);let cmd=segments.join(`
110
+ `:return;case"/":try{return eval("const x="+code.slice(b.begin,index+1)),b.end=index+1,container&&container.children.push(b),b}catch(e){}default:index++}}}function Gt(e,t,n){let r={type:"comment",begin:t++};if(e[t]!=="*"&&e[t]!=="/")return Bs(e,t-1,n);let o=e[t]==="*";for(t++;t<e.length;){switch(e[t]){case"*":if(o&&e[t+1]==="/")return r.end=t+2,n&&n.children.push(r),r;break;case`
111
+ `:if(!o)return r.end=t+1,n&&n.children.push(r),r;break}t++}be("Unterminated comment",r.begin)}function Vs(e,t,n){let r=t+1;for(;e[r]&&e[r]!==`
112
+ `&&e[r]!==U.preprocessorDelimiter||e[r-1]==="\\";)r++;if(e[r]===U.preprocessorDelimiter){let s={type:"directive",begin:t,cbegin:t,end:r+1,expression:e.slice(t+1,r).replace(/\\(.)/gs,"$1"),value:""};return n&&n.children.push(s),s}else{let s=t;for(;s-->=0&&(e[s]===" "||e[s]===" "););if(s===-1||e[s]===`
113
+ `){let a={type:"directive",begin:t,cbegin:t,end:r+1,pragma:e.slice(t+1,r+1).replace(/\\(.)/gs,"$1"),value:""};return n&&n.children.push(a),a}}be("Error in preprocessor statement",t)}function Xs(node,context){let all_nodes=[];var segments=[],scope_stack=[],last_block=null;let clone_block=(e,t)=>{var n;return last_block=typeof all_nodes[e]=="object"?structuredClone({...all_nodes[e],children:void 0,attributes:{}}):all_nodes[e],last_block.type==="directive"&&(last_block.value=t),(n=scope_stack[0]).out??(n.out=[]),scope_stack[0].out.push(last_block),last_block},clone_attr=(e,t)=>(last_block=typeof all_nodes[e]=="object"?structuredClone({...all_nodes[e],children:void 0,attributes:{}}):all_nodes[e],scope_stack[0].attributes[t]=last_block,last_block),push_scope=()=>{scope_stack=[last_block,scope_stack]},pop_scope=()=>{scope_stack=scope_stack[1]},vine_traverse=e=>{if(typeof e!="object")return segments;if(segments.push("push_scope();"),e.attributes)for(let t in e.attributes){let n=e.attributes[t];all_nodes.push(n),segments.push(`clone_attr(${all_nodes.length-1}, "${t}");`),vine_traverse(n)}if(e.children)for(let t of e.children)all_nodes.push(t),t.type==="directive"&&t.expression===void 0?segments.push(t.pragma):(t.expression?segments.push(`clone_block(${all_nodes.length-1}, ${t.expression});`):segments.push(`clone_block(${all_nodes.length-1});`),vine_traverse(t));return segments.push("pop_scope();"),segments};node.out=[],last_block=node,push_scope(),vine_traverse(node);let cmd=segments.join(`
114
114
  `);return eval(cmd),segments}function Kn(e,t,n,r){let o={type:"string",begin:t++,cbegin:t};for(;t<e.length;){switch(e[t]){case n:return o.cend=t,o.end=t+1,r&&r.children.push(o),o;case`
115
- `:n!=="`"&&me("Unterminated string",o.begin);break;case"$":n==="`"&&e[t+1]==="{"&&([t]=M(Ke,e,t+1,!0),t--);break;case"\\":t++;break}t++}me("Unterminated string",o.begin)}function Xs(e,t,n,r){let o=t,s=t;for(;o<e.length;){switch(e[o]){case"<":if(e[o+1]==="/"){o+=2;let a=o;for(;a<e.length&&e[a]!==">";)a++;if(a===e.length)return null;let l=e.substring(o,a).trim();return n.tag!==l&&me("Ill-formed xml (not closed properly)",t),n.end=a+1,n.cbegin=t+1,n.cend=o-2,a}else[o]=M(Wn,e,o,n),o>s?(s=o,o--):s++;break;case"{":let c=o;[o]=M(Ke,e,o,!0,n),o--;break}o++}return s}function Wn(e,t,n,r=!1){if(r){let f=["=",",","(","&","|","?",":","{","["],u=t;for(;--u>0;)if(` \r
116
- `.indexOf(e[u])===-1){if(f.indexOf(e[u])!==-1||u>1&&e[u-1]==="="&&e[u]===">")break;if(u>=5&&e.slice(u-5,u+1)==="return"){if(u>5&&` \r
117
- {};)`.indexOf(e[u-6])===-1)return;break}if(u>=4&&(e.slice(u-4,u+1)==="yield"||e.slice(u-4,u+1)==="throw")){if(u>4&&` \r
118
- {};)`.indexOf(e[u-5])===-1)return;break}return}}let o=[" "," ",`
115
+ `:n!=="`"&&be("Unterminated string",o.begin);break;case"$":n==="`"&&e[t+1]==="{"&&([t]=q(We,e,t+1,!0),t--);break;case"\\":t++;break}t++}be("Unterminated string",o.begin)}function Ys(e,t,n,r){let o=t,s=t;for(;o<e.length;){switch(e[o]){case"<":if(e[o+1]==="/"){o+=2;let a=o;for(;a<e.length&&e[a]!==">";)a++;if(a===e.length)return null;let l=e.substring(o,a).trim();return n.tag!==l&&be("Ill-formed xml (not closed properly)",t),n.end=a+1,n.cbegin=t+1,n.cend=o-2,a}else[o]=q(Wn,e,o,n),o>s?(s=o,o--):s++;break;case"{":let c=o;[o]=q(We,e,o,!0,n),o--;break}o++}return s}function Wn(e,t,n,r=!1){if(r){let u=["=",",","(","&","|","?",":","{","["],f=t;for(;--f>0;)if(` \r
116
+ `.indexOf(e[f])===-1){if(u.indexOf(e[f])!==-1||f>1&&e[f-1]==="="&&e[f]===">")break;if(f>=5&&e.slice(f-5,f+1)==="return"){if(f>5&&` \r
117
+ {};)`.indexOf(e[f-6])===-1)return;break}if(f>=4&&(e.slice(f-4,f+1)==="yield"||e.slice(f-4,f+1)==="throw")){if(f>4&&` \r
118
+ {};)`.indexOf(e[f-5])===-1)return;break}return}}let o=[" "," ",`
119
119
  `,"/","&","^","%","|","!","~","+","*","?","<",">",";",",","=","{","}","(",")","[","]","'",'"',"`","\\","",void 0],s=()=>{for(;e[t]===" "||e[t]===" "||e[t]===`
120
- `;)t++},c={type:"xml",begin:t++,children:[],attributes:{},self_closing:!1,js_attributes:[]};s();let a=t;for(;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;c.tag=e.substring(t,a),t=a;let l;for(;t<e.length;){for(a=t;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;let f=e.substring(t,a);switch(f.length&&(l=f,c.attributes[f]=!0),t=a,e[t]){case"=":if(l){for(t++,s();e[t]==="/";){let m=M(Gt,e,t);m[0]>t?t=m[0]:t++,s()}let y;switch(e[t]){case"'":case'"':[t,y]=M(Kn,e,t,e[t]),c.attributes[l]=y,l=void 0;break;case"{":[t,y]=M(Ke,e,t,!0),c.attributes[l]=y,l=void 0;break;default:for(a=t;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;let m=e.substring(t,a);t=a,c.attributes[l]=m,l=void 0}}else return;break;case"{":let u;[t,u]=M(Ke,e,t,!0),u.is_xml_js=!0,c.js_attributes.push(u);break;case"/":if(e[t+1]===">")return c.end=t+2,c.cbegin=c.begin,c.cend=c.end,c.self_closing=!0,n&&n.children.push(c),c;let p=M(Gt,e,t);p[0]>t?t=p[0]:t++;break;case">":let d=Xs(e,t,c);if(d===null)return;if(d>t?t=d:t++,c.end)return n&&n.children.push(c),c;t++;break;case" ":case" ":case`
121
- `:s();break;default:return}}}function fo(e,t,n){let r={type:"parenthesis",begin:t,cbegin:++t,children:[],self_closing:!1};for(;t<e.length;){let o=e[t];switch(o){case"<":{let[c]=M(Wn,e,t,r,!0);c>t?t=c:t++;break}case'"':case"'":case"`":[t]=M(Kn,e,t,o,r);break;case"{":[t]=M(Ke,e,t,!0,r);break;case"(":[t]=M(fo,e,t,r);break;case"}":me("Unmatched curly bracket",r.begin);break;case")":return r.end=t+1,r.cend=t,n&&n.children.push(r),r;case"/":let[s]=M(Gt,e,t,r);s>t?t=s:t++;break;case"\\":t++;default:t++;break}}me("Unterminated parenthesis block",r.begin)}function Ke(e,t=0,n=!1,r){let o={type:"js",begin:t,cbegin:t+=n?1:0,children:[]};for(;t<e.length;){let s=e[t];switch(s){case"<":{let[c]=M(Wn,e,t,o,!0);c>t?t=c:t++;break}case'"':case"'":case"`":[t]=M(Kn,e,t,s,o);break;case"{":{let c=t;[t]=M(Ke,e,t,!0,o);break}case"(":[t]=M(fo,e,t,o);break;case")":me("Unmatched parenthesis",o.begin);break;case"}":if(n)return o.end=t+1,o.cend=t,r&&r.children.push(o),o;me("Unmatched curly bracket",o.begin);break;case"/":{let[c]=M(Gt,e,t,o);c>t?t=c:t++;break}case D.preprocessorDelimiter:{let[c]=M(Bs,e,t,o);c>t?t=c:t++;break}case"\\":t++;default:t++}}return n&&me("Unterminated JS block",o.begin),o.end=t,o.cend=t,r&&r.children.push(o),o}function Ys(e,t,n){e.already_labeled=!0;function r(a,l=1){for(;(a+=l)<e.children.length&&a>=0;){let f=e.children[a];if(typeof f=="string"){let u=f.trim();if(u.length)return[a,u]}if(typeof f=="object"&&f.type!=="comment")return[a,f]}return[null,null]}let o,s,c;for(let a=0;a<e.children.length;a++)if(typeof e.children[a]=="object"&&e.children[a].type==="parenthesis"){if([o,c]=r(a,-1),c===null||typeof c!="string"||["switch","catch","try","class"].find(f=>c.trim().endsWith(f))!==void 0)continue;let l=c;if([o,c]=r(o,-1),c===null||typeof c=="string"&&["extern","class"].indexOf(c)!==-1||([o,s]=r(a),s===null))continue;if(D.injectTraceLabels&&typeof s=="object"&&s.type==="js"){let f=ot(t,a);s.children.splice(1,0,`/*LILACTBLOCK${++n.counter}:${f}:${l}*/try{`),D.enableLabelStack?s.children.splice(s.children.length-1,0,`} catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${n.counter},e.lilact_trace];throw e}`):s.children.splice(s.children.length-1,0,`} catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${n.counter};throw e}`),a+=2}}else if(e.children[a]==="=>"&&([o,c]=r(a,-1),typeof c=="object"&&c.type==="parenthesis")){let l=ot(t,c.begin);[o,s]=r(a),typeof s=="object"&&s.type==="js"&&(D.injectTraceLabels&&(s.children.splice(1,0,`/*LILACTBLOCK${++n.counter}:${l}:<ARROW>*/try {`),D.enableLabelStack?s.children.splice(s.children.length-1,0,`} catch(e){if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${n.counter},e.lilact_trace];throw e}`):s.children.splice(s.children.length-1,0,`} catch(e){if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${n.counter};throw e}`)),a+=2)}}function lo(e){let t=[0];for(let n in e)e[n]===`
122
- `&&t.push(parseInt(n));return t.push(e.length),t}function ot(e,t){for(e.last||(e.last=1);t>e[e.last];)if(e.last++,e.last===e.length){e.last=e.length-1;break}for(;t<e[e.last-1]&&e.last>1;)e.last--;return[e.last-1,t-e[e.last-1]]}function Gs(e,t,n,r,o=[]){let s=[],c={version:3,file:t,sourceRoot:"",sources:[t],names:[],mappings:""},a=m=>{if(m?.out?.length>0)for(let h of m.out)a(h);m?.begin!==void 0&&m?.out_index!==void 0&&s.push([...ot(r,m.out_index),...ot(n,m.begin),m])};a(e),s=s.sort((m,h)=>m[0]==h[0]?m[1]-h[1]:m[0]-h[0]),o.push(...s);let l="",f=0,u=0,p=0,d=0;for(let m=0;m<s.length;m++){let h=s[m];for(;f<h[0];)u=0,l+=";",f++;l+=",",l+=ao(h[1]-u,0,h[2]-p,h[3]-d),u=h[1],p=h[2],d=h[3]}c.mappings=l.substring(1).replace(/;,/g,";");let y=`
120
+ `;)t++},c={type:"xml",begin:t++,children:[],attributes:{},self_closing:!1,js_attributes:[]};s();let a=t;for(;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;c.tag=e.substring(t,a),t=a;let l;for(;t<e.length;){for(a=t;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;let u=e.substring(t,a);switch(u.length&&(l=u,c.attributes[u]=!0),t=a,e[t]){case"=":if(l){for(t++,s();e[t]==="/";){let x=q(Gt,e,t);x[0]>t?t=x[0]:t++,s()}let m;switch(e[t]){case"'":case'"':[t,m]=q(Kn,e,t,e[t]),c.attributes[l]=m,l=void 0;break;case"{":[t,m]=q(We,e,t,!0),c.attributes[l]=m,l=void 0;break;default:for(a=t;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;let x=e.substring(t,a);t=a,c.attributes[l]=x,l=void 0}}else return;break;case"{":let f;[t,f]=q(We,e,t,!0),f.is_xml_js=!0,c.js_attributes.push(f);break;case"/":if(e[t+1]===">")return c.end=t+2,c.cbegin=c.begin,c.cend=c.end,c.self_closing=!0,n&&n.children.push(c),c;let p=q(Gt,e,t);p[0]>t?t=p[0]:t++;break;case">":let d=Ys(e,t,c);if(d===null)return;if(d>t?t=d:t++,c.end)return n&&n.children.push(c),c;t++;break;case" ":case" ":case`
121
+ `:s();break;default:return}}}function fo(e,t,n){let r={type:"parenthesis",begin:t,cbegin:++t,children:[],self_closing:!1};for(;t<e.length;){let o=e[t];switch(o){case"<":{let[c]=q(Wn,e,t,r,!0);c>t?t=c:t++;break}case'"':case"'":case"`":[t]=q(Kn,e,t,o,r);break;case"{":[t]=q(We,e,t,!0,r);break;case"(":[t]=q(fo,e,t,r);break;case"}":be("Unmatched curly bracket",r.begin);break;case")":return r.end=t+1,r.cend=t,n&&n.children.push(r),r;case"/":let[s]=q(Gt,e,t,r);s>t?t=s:t++;break;case"\\":t++;default:t++;break}}be("Unterminated parenthesis block",r.begin)}function We(e,t=0,n=!1,r){let o={type:"js",begin:t,cbegin:t+=n?1:0,children:[]};for(;t<e.length;){let s=e[t];switch(s){case"<":{let[c]=q(Wn,e,t,o,!0);c>t?t=c:t++;break}case'"':case"'":case"`":[t]=q(Kn,e,t,s,o);break;case"{":{let c=t;[t]=q(We,e,t,!0,o);break}case"(":[t]=q(fo,e,t,o);break;case")":be("Unmatched parenthesis",o.begin);break;case"}":if(n)return o.end=t+1,o.cend=t,r&&r.children.push(o),o;be("Unmatched curly bracket",o.begin);break;case"/":{let[c]=q(Gt,e,t,o);c>t?t=c:t++;break}case U.preprocessorDelimiter:{let[c]=q(Vs,e,t,o);c>t?t=c:t++;break}case"\\":t++;default:t++}}return n&&be("Unterminated JS block",o.begin),o.end=t,o.cend=t,r&&r.children.push(o),o}function Gs(e,t,n){e.already_labeled=!0;function r(a,l=1){for(;(a+=l)<e.children.length&&a>=0;){let u=e.children[a];if(typeof u=="string"){let f=u.trim();if(f.length)return[a,f]}if(typeof u=="object"&&u.type!=="comment")return[a,u]}return[null,null]}let o,s,c;for(let a=0;a<e.children.length;a++)if(typeof e.children[a]=="object"&&e.children[a].type==="parenthesis"){if([o,c]=r(a,-1),c===null||typeof c!="string"||["switch","catch","try","class"].find(u=>c.trim().endsWith(u))!==void 0)continue;let l=c;if([o,c]=r(o,-1),c===null||typeof c=="string"&&["extern","class"].indexOf(c)!==-1||([o,s]=r(a),s===null))continue;if(U.injectTraceLabels&&typeof s=="object"&&s.type==="js"){let u=it(t,a);s.children.splice(1,0,`/*LILACTBLOCK${++n.counter}:${u}:${l}*/try{`),U.enableLabelStack?s.children.splice(s.children.length-1,0,`} catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${n.counter},e.lilact_trace];throw e}`):s.children.splice(s.children.length-1,0,`} catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${n.counter};throw e}`),a+=2}}else if(e.children[a]==="=>"&&([o,c]=r(a,-1),typeof c=="object"&&c.type==="parenthesis")){let l=it(t,c.begin);[o,s]=r(a),typeof s=="object"&&s.type==="js"&&(U.injectTraceLabels&&(s.children.splice(1,0,`/*LILACTBLOCK${++n.counter}:${l}:<ARROW>*/try {`),U.enableLabelStack?s.children.splice(s.children.length-1,0,`} catch(e){if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${n.counter},e.lilact_trace];throw e}`):s.children.splice(s.children.length-1,0,`} catch(e){if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${n.counter};throw e}`)),a+=2)}}function lo(e){let t=[0];for(let n in e)e[n]===`
122
+ `&&t.push(parseInt(n));return t.push(e.length),t}function it(e,t){for(e.last||(e.last=1);t>e[e.last];)if(e.last++,e.last===e.length){e.last=e.length-1;break}for(;t<e[e.last-1]&&e.last>1;)e.last--;return[e.last-1,t-e[e.last-1]]}function Hs(e,t,n,r,o=[]){let s=[],c={version:3,file:t,sourceRoot:"",sources:[t],names:[],mappings:""},a=x=>{if(x?.out?.length>0)for(let w of x.out)a(w);x?.begin!==void 0&&x?.out_index!==void 0&&s.push([...it(r,x.out_index),...it(n,x.begin),x])};a(e),s=s.sort((x,w)=>x[0]==w[0]?x[1]-w[1]:x[0]-w[0]),o.push(...s);let l="",u=0,f=0,p=0,d=0;for(let x=0;x<s.length;x++){let w=s[x];for(;u<w[0];)f=0,l+=";",u++;l+=",",l+=ao(w[1]-f,0,w[2]-p,w[3]-d),f=w[1],p=w[2],d=w[3]}c.mappings=l.substring(1).replace(/;,/g,";");let m=`
123
123
 
124
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,`+btoa(JSON.stringify(c));return y+=`
125
- //# sourceURL=eval:/${t}`,y}function Bn(e,{factory:t="createComponent",fragment:n="Fragment",path:r="anonymous",appendSourcemap:o=!0,injectTraceLabels:s=!1,discardComments:c=!1,produceCJS:a=!1,logErrors:l=!1,blocks_info:f={labels:{},counter:0},mappings:u=[]}={}){D.preprocessorDelimiter??(D.preprocessorDelimiter="\u0294"),D.injectTraceLabels??(D.injectTraceLabels=s);let p=lo(e);me=((g,w,S)=>{let T=ot(g,S),k=new Error(w);throw l&&console.error(`JSXParserError: ${w} [file ${r} at line ${T[0]}]`),[k.lineNumber,k.columnNumber]=T,k.name="JSXParserError",k.fileName=r,k.lilact_trace="parse",k}).bind(null,p);let d=Ke(e);d.data=e;let y=g=>{if(g.attributes!==void 0)for(let w in g.attributes)typeof g.attributes[w]=="object"&&y(g.attributes[w]);if(g.children!==void 0&&!g.self_closing){let w=g.type==="js"?g.begin:g.cbegin||g.begin;for(let T=0;T<g.children.length;T++){let k=g.children[T];if(k.begin>w){let v=e.substring(w,k.begin);g.type==="xml"&&(v=v.trim()),v.length&&(g.type==="xml"?g.children.splice(T,0,'"'+v.replaceAll(`
124
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,`+btoa(JSON.stringify(c));return m+=`
125
+ //# sourceURL=eval:/${t}`,m}function Bn(e,{factory:t="createComponent",fragment:n="Fragment",path:r="anonymous",appendSourcemap:o=!0,injectTraceLabels:s=!1,discardComments:c=!1,produceCJS:a=!1,referentiateImports:l=!1,importsObject:u="Lilact.scriptImportsObject",importsObjectVar:f="LilactImports",logErrors:p=!1,mappings:d=[],meta:m,blocksInfo:x={labels:{},counter:0}}={}){U.preprocessorDelimiter??(U.preprocessorDelimiter="\u0294"),U.injectTraceLabels??(U.injectTraceLabels=s);let w=lo(e);be=((_,y,N)=>{let C=it(_,N),S=new Error(y);throw p&&console.error(`JSXParserError: ${y} [file ${r} at line ${C[0]}]`),[S.lineNumber,S.columnNumber]=C,S.name="JSXParserError",S.fileName=r,S.lilact_trace="parse",S}).bind(null,w);let v=We(e);v.data=e;let h=_=>{if(_.attributes!==void 0)for(let y in _.attributes)typeof _.attributes[y]=="object"&&h(_.attributes[y]);if(_.children!==void 0&&!_.self_closing){let y=_.type==="js"?_.begin:_.cbegin||_.begin;for(let C=0;C<_.children.length;C++){let S=_.children[C];if(S.begin>y){let L=e.substring(y,S.begin);_.type==="xml"&&(L=L.trim()),L.length&&(_.type==="xml"?_.children.splice(C,0,'"'+L.replaceAll(`
126
126
  `,`\\
127
- `).replaceAll('"','\\"')+'"'):g.children.splice(T,0,...v.split(uo)),T++)}w=k.end,y(k)}let S=g.type==="js"?g.end:g.cend||g.end;if(w<S&&!g.self_closing){let T=e.substring(w,S);g.type==="xml"&&(T=T.trim()),T.length&&(g.type==="xml"?g.children.push('"'+T.replace(/[\\\"\n]/g,k=>({"\\":"\\\\",'"':'\\"',"\n":`\\
128
- `})[k])+'"'):g.children.push(...T.split(uo)))}g.children=g.children.filter(T=>T!==""),D.setBlockLabels&&!g.already_labeled&&Ys(g,p,f)}};y(d),Vs(d);let m=(g,w,S=!1,T=!1)=>{if(typeof w!="object")return w;if(w===null)return"";if(w.out_index=g,w.type==="string")return e.substring(w.begin,w.end);if(w.type==="import"||w.type==="export")return w.cjs;if(w.type==="regex")return e.substring(w.begin,w.end);if(w.type==="comment")return c||S?"":e.substring(w.begin,w.end);if(w.type==="directive")return w.value;if(w.type==="parenthesis"){let k="(";if(w.out){a&&Fn(w,e);for(let v of w.out)k+=m(g+k.length-1,v)}return k+")"}if(w.type==="js"){let k="";if(w.out){a&&Fn(w,e);for(let v of w.out)T&&v.type==="comment"||(k+=m(g+k.length-(S?1:0),v))}return S?k.substring(1,k.length-1):w?.is_xml_js?e.substring(w.begin+1,w.end-1):k}if(w.type==="xml"){w.tag.length===0?w.tag=n:w.tag[0]!==w.tag[0].toUpperCase()&&(w.tag=`"${w.tag}"`);let k="",v=!0;for(let L of w.js_attributes){let P=m(g+k.length,L,!1);k+=`${v?"":", "}${P}`,v=!1}if(w.attributes)for(let L in w.attributes)k+=`${v?"":", "}"${L}": ${m(g+k.length,w.attributes[L],!0)}`,v=!1;if(k+=" }",w.out)for(let L of w.out){let P=m(g+k.length,L,!0,!0);P.length>0&&(k+=`, ${P}`,v=!1)}let C=ot(p,w.begin);return k=` ${t}( ${w.tag}, { ${k} )`,k}},h="";s&&(h=`/*LILACTBLOCK${++f.counter}:0,0:<EXEC>*/try{`),h+=m(h.length,d),s&&(D.enableLabelStack?h+=`}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${f.counter},e.lilact_trace];throw e}`:h+=`}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${f.counter};throw e}`);let _=Gs(d,r,p,lo(h),u);return o&&(h+=_),h}var te={VERSION:"RC.4",defaultTransitionTimeout:300,defaultIsEqual:Object.is,...hn,...wn,...yn,...bn,...En,...Tn,...$n,...vn,...An,...un,...jn,...Mn,transpileJSX:Bn,transpilerConfig:D,PropTypes:Mr,redux:Qt,emotion:cn,_setTimeout:globalThis.setTimeout.bind(globalThis),_setInterval:globalThis.setInterval.bind(globalThis),_clearTimeout:globalThis.clearTimeout.bind(globalThis),_clearInterval:globalThis.clearInterval.bind(globalThis)};te.default=te;var E=te;te.importObjectPaths={lilact:te,"@emotion/css":te.emotion,redux:te.redux};globalThis.Lilact=te;globalThis.createComponent=te.createComponent;globalThis.Fragment=te.Fragment;globalThis.require=te.require;document.addEventListener("DOMContentLoaded",()=>{te.grabTimers(),te.runScripts().catch(e=>{te.globalErrorHandler?.(e)})});export{gt as ARGS,yt as CALLBACK,le as CHILD_CLASS_ADDENDUM,Se as CLEARED,Qe as COMPONENT,x as CORE,Zr as CSSTransition,Me as Children,Le as Component,fe as DUE,io as DragHandle,Dn as ErrorBoundary,Nr as Fragment,wt as HTMLComponent,Cs as HashRouter,F as IDX,mt as INTERVAL,an as IS_ZOMBIE,ht as LAZY,te as Lilact,Os as Link,Te as MEMOIZED,$s as NavLink,jr as Portal,Mr as PropTypes,Zi as Provider,dt as REPEAT,Nt as RootComponent,Ls as Route,oo as Routes,Ps as Spinner,Rs as SplitPane,Vt as Suspense,Xi as SwitchTransition,K as TEXT,Jr as Transition,Yi as TransitionGroup,Ji as addWrappedEventListener,hs as animationFramePromise,ks as blocks_info,Vr as boolean_html_attributes_set,Dt as capture_events_set,us as clearInterval,as as clearTimeout,Kr as cloneComponent,gi as cloneElement,es as combineReducers,Qi as connect,mn as createComponent,tt as createContext,xi as createElement,yi as createPortal,Fr as createRoot,zr as createSyntheticEvent,_i as current_component,ln as deepEqual,E as default,$i as effect_timeout,cn as emotion,Ts as error,ci as eval_num,jt as events_set,ni as findDOMNode,fn as forwardRef,ri as getComponentByPointer,Es as globalErrorHandler,ls as grabTimers,si as id_num,Si as insertion_effects,oi as isAsync,pn as isClass,W as isEmpty,ii as isError,Pt as isThenable,et as isValidComponent,ti as isValidElement,Ti as layout_effects,Wi as lazy,Br as length_css_attributes_set,wi as memo,Ci as passive_effects,os as pauseTimers,qr as processEffects,Qt as redux,Qr as releaseSyntheticEvent,fs as releaseTimers,bi as render,Hr as require,qe as required_scripts,rs as resetTimers,is as resumeTimers,ki as roots,rt as run,Vi as runScripts,vs as scanBlockLabels,cs as setInterval,ss as setTimeout,ie as shallowEqual,Wr as special_attributes,Mi as startTransition,ps as timeoutPromise,Rt as toBool,ro as traceError,Bn as transpileJSX,D as transpilerConfig,vi as update_cbs,Ai as update_interval_margin,Ei as update_set,Oi as update_timeout,Ri as useActionState,he as useCallback,nt as useContext,Di as useDebugValue,ji as useDeferredValue,zi as useDispatch,ee as useEffect,se as useHook,Ii as useId,gn as useImperativeHandle,Pi as useInsertionEffect,Pe as useLayoutEffect,Li as useLocalStorage,Rn as useLocation,xt as useMemo,Nn as useNavigate,Ni as useReducer,R as useRef,to as useSelector,Q as useState,qt as useStore,Xr as useTransition,eo as wrapListener};
127
+ `).replaceAll('"','\\"')+'"'):_.children.splice(C,0,...L.split(uo)),C++)}y=S.end,h(S)}let N=_.type==="js"?_.end:_.cend||_.end;if(y<N&&!_.self_closing){let C=e.substring(y,N);_.type==="xml"&&(C=C.trim()),C.length&&(_.type==="xml"?_.children.push('"'+C.replace(/[\\\"\n]/g,S=>({"\\":"\\\\",'"':'\\"',"\n":`\\
128
+ `})[S])+'"'):_.children.push(...C.split(uo)))}_.children=_.children.filter(C=>C!==""),U.setBlockLabels&&!_.already_labeled&&Gs(_,w,x)}};h(v),Xs(v);let k=[],T=(_,y,N=!1,C=!1)=>{if(k.push(y),typeof y!="object"){if(l&&typeof y=="string"&&m?.imported_names.has(y)){let S=k.length-2;for(;typeof k[S]=="string"&&k[S].trim()===""||typeof k[S]=="object"&&k[S].type==="comment";)S--;if(typeof k[S]!="string"||k[S]!==".")return f+"."+y}return y}if(y===null)return"";if(y.out_index=_,y.type==="string")return e.substring(y.begin,y.end);if(y.type==="import")return l?"":y.cjs;if(y.type==="export")return y.cjs;if(y.type==="regex")return e.substring(y.begin,y.end);if(y.type==="comment")return c||N?"":e.substring(y.begin,y.end);if(y.type==="directive")return y.value;if(y.type==="parenthesis"){let S="(";if(y.out){(a||l)&&Fn(y,e,m);for(let L of y.out)S+=T(_+S.length-1,L)}return S+")"}if(y.type==="js"){let S="";if(y.out){(a||l)&&Fn(y,e,m);for(let L of y.out)C&&L.type==="comment"||(S+=T(_+S.length-(N?1:0),L))}return N?S.substring(1,S.length-1):y?.is_xml_js?e.substring(y.begin+1,y.end-1):S}if(y.type==="xml"){l&&m?.imported_names?.has(y.tag)&&y.tag[0]===y.tag[0].toUpperCase()&&(y.tag=f+"."+y.tag),y.tag.length===0?y.tag=n:y.tag[0]!==y.tag[0].toUpperCase()&&(y.tag=`"${y.tag}"`);let S="",L=!0;for(let Y of y.js_attributes){let Te=T(_+S.length,Y,!1);S+=`${L?"":", "}${Te}`,L=!1}if(y.attributes)for(let Y in y.attributes)S+=`${L?"":", "}"${Y}": ${T(_+S.length,y.attributes[Y],!0)}`,L=!1;if(S+=" }",y.out)for(let Y of y.out){let Te=T(_+S.length,Y,!0,!0);Te.length>0&&(S+=`, ${Te}`,L=!1)}let le=it(w,y.begin);return S=` ${t}( ${y.tag}, { ${S} )`,S}},O="";s&&(O=`/*LILACTBLOCK${++x.counter}:0,0:<EXEC>*/try{`),l&&(O+=`const ${f} = ${u};`),O+=T(O.length,v),s&&(U.enableLabelStack?O+=`}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${x.counter},e.lilact_trace];throw e}`:O+=`}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${x.counter};throw e}`);let P=Hs(v,r,w,lo(O),d);return o&&(O+=P),O}var oe={VERSION:"RC.4",defaultTransitionTimeout:300,defaultIsEqual:Object.is,...dn,...wn,...yn,...bn,...En,...Tn,...$n,...vn,...An,...un,...jn,...Mn,transpileJSX:Bn,transpilerConfig:U,PropTypes:Mr,redux:Qt,emotion:cn,_setTimeout:globalThis.setTimeout.bind(globalThis),_setInterval:globalThis.setInterval.bind(globalThis),_clearTimeout:globalThis.clearTimeout.bind(globalThis),_clearInterval:globalThis.clearInterval.bind(globalThis)};oe.default=oe;var E=oe;oe.importObjectPaths={lilact:oe,"@emotion/css":oe.emotion,redux:oe.redux};globalThis.Lilact=oe;globalThis.createComponent=oe.createComponent;globalThis.Fragment=oe.Fragment;globalThis.require=oe.require;document.addEventListener("DOMContentLoaded",()=>{oe.grabTimers(),oe.runScripts().catch(e=>{oe.globalErrorHandler?.(e)})});export{bt as ARGS,gt as CALLBACK,de as CHILD_CLASS_ADDENDUM,$e as CLEARED,et as COMPONENT,g as CORE,Jr as CSSTransition,qe as Children,Ie as Component,he as DUE,io as DragHandle,Dn as ErrorBoundary,Nr as Fragment,xt as HTMLComponent,Os as HashRouter,W as IDX,yt as INTERVAL,an as IS_ZOMBIE,ht as LAZY,oe as Lilact,$s as Link,Oe as MEMOIZED,As as NavLink,jr as Portal,Mr as PropTypes,Qi as Provider,mt as REPEAT,Nt as RootComponent,Is as Route,oo as Routes,Ps as Spinner,Ns as SplitPane,Vt as Suspense,Gi as SwitchTransition,B as TEXT,Hr as Transition,Hi as TransitionGroup,zi as addWrappedEventListener,ms as animationFramePromise,no as asError,Ts as blocksInfo,Br as boolean_html_attributes_set,Dt as capture_events_set,fs as clearInterval,ls as clearTimeout,Fr as cloneComponent,bi as cloneElement,ns as combineReducers,ts as connect,mn as createComponent,nt as createContext,_i as createElement,gi as createPortal,qr as createRoot,Zr as createSyntheticEvent,Ei as current_component,ln as deepEqual,E as default,Ai as effect_timeout,cn as emotion,Ss as error,ci as eval_num,jt as events_set,ni as findDOMNode,fn as forwardRef,ri as getComponentByPointer,vs as globalErrorHandler,ps as grabTimers,si as id_num,Ci as insertion_effects,oi as isAsync,pn as isClass,V as isEmpty,ii as isError,It as isThenable,tt as isValidComponent,ti as isValidElement,Si as layout_effects,Vi as lazy,Wr as length_css_attributes_set,xi as memo,Oi as passive_effects,ss as pauseTimers,Ur as processEffects,Qt as redux,zr as releaseSyntheticEvent,ds as releaseTimers,wi as render,Gr as require,Ne as required_scripts,is as resetTimers,cs as resumeTimers,Ti as roots,ot as run,Yi as runScripts,ks as scanBlockLabels,us as setInterval,as as setTimeout,ce as shallowEqual,Kr as special_attributes,Ui as startTransition,hs as timeoutPromise,Pt as toBool,ro as traceError,Bn as transpileJSX,U as transpilerConfig,ki as update_cbs,Li as update_interval_margin,vi as update_set,$i as update_timeout,Ni as useActionState,ye as useCallback,rt as useContext,Mi as useDebugValue,Di as useDeferredValue,es as useDispatch,re as useEffect,ae as useHook,Ri as useId,gn as useImperativeHandle,Pi as useInsertionEffect,Pe as useLayoutEffect,Ii as useLocalStorage,Pn as useLocation,_t as useMemo,Nn as useNavigate,ji as useReducer,j as useRef,eo as useSelector,ne as useState,qt as useStore,Vr as useTransition,Qr as wrapListener};