lilact 0.28.0 → 0.28.4

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 (61) hide show
  1. package/bin/bundle.cjs +2 -2
  2. package/dist/lilact.development.js +315 -280
  3. package/dist/lilact.development.js.map +3 -3
  4. package/dist/lilact.development.min.js +38 -36
  5. package/dist/lilact.development.min.js.map +3 -3
  6. package/dist/lilact.production.min.js +38 -36
  7. package/docs/classes/accessories.ErrorBoundary.html +6 -6
  8. package/docs/classes/accessories.Suspense.html +3 -3
  9. package/docs/functions/accessories.DragHandle.html +1 -1
  10. package/docs/functions/accessories.Spinner.html +1 -1
  11. package/docs/functions/errors.globalErrorHandler.html +1 -1
  12. package/docs/functions/errors.scanBlockLabels.html +1 -1
  13. package/docs/functions/errors.traceError.html +1 -1
  14. package/docs/functions/run.lazy.html +1 -1
  15. package/docs/functions/run.require.html +1 -1
  16. package/docs/functions/run.runScripts.html +1 -1
  17. package/docs/functions/timers.animationFramePromise.html +3 -3
  18. package/docs/functions/timers.clearInterval.html +5 -3
  19. package/docs/functions/timers.clearTimeout.html +5 -3
  20. package/docs/functions/timers.grabTimers.html +4 -3
  21. package/docs/functions/timers.pauseTimers.html +5 -2
  22. package/docs/functions/timers.releaseTimers.html +4 -2
  23. package/docs/functions/timers.resetTimers.html +4 -2
  24. package/docs/functions/timers.resumeTimers.html +4 -2
  25. package/docs/functions/timers.setInterval.html +8 -6
  26. package/docs/functions/timers.setTimeout.html +8 -6
  27. package/docs/functions/timers.timeoutPromise.html +8 -149
  28. package/docs/static/demos/error-nested-1.jsx +11 -0
  29. package/docs/static/demos/error-nested-2.jsx +12 -0
  30. package/docs/static/demos/error-nested-3.jsx +12 -0
  31. package/docs/static/demos/error-nested-4.jsx +12 -0
  32. package/docs/static/demos/error-nested-5.jsx +11 -0
  33. package/docs/static/index.html +45 -38
  34. package/docs/static/lilact.development.js +315 -280
  35. package/docs/static/lilact.development.js.map +3 -3
  36. package/docs/static/lilact.development.min.js +38 -36
  37. package/docs/static/lilact.development.min.js.map +3 -3
  38. package/docs/static/lilact.production.min.js +38 -36
  39. package/docs/variables/accessories.SplitPane.html +1 -1
  40. package/docs/variables/errors.blocks_info.html +1 -1
  41. package/docs/variables/errors.error.html +1 -1
  42. package/examples/demos/error-nested-1.jsx +11 -0
  43. package/examples/demos/error-nested-2.jsx +12 -0
  44. package/examples/demos/error-nested-3.jsx +12 -0
  45. package/examples/demos/error-nested-4.jsx +12 -0
  46. package/examples/demos/error-nested-5.jsx +11 -0
  47. package/examples/index.html +45 -40
  48. package/examples/lilact.development.js +315 -280
  49. package/examples/lilact.development.js.map +3 -3
  50. package/examples/lilact.development.min.js +38 -36
  51. package/examples/lilact.development.min.js.map +3 -3
  52. package/examples/lilact.production.min.js +38 -36
  53. package/package.json +1 -1
  54. package/scripts/build.mjs +1 -1
  55. package/src/accessories.jsx +1 -4
  56. package/src/components.jsx +4 -4
  57. package/src/errors.jsx +50 -27
  58. package/src/jsx.js +3 -1
  59. package/src/lilact.jsx +4 -4
  60. package/src/run.jsx +9 -17
  61. package/src/timers.jsx +377 -207
@@ -54,11 +54,11 @@ 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 nr=Object.defineProperty;var To=(e,t,n)=>t in e?nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t)=>{for(var n in t)nr(e,n,{get:t[n],enumerable:!0})};var ee=(e,t,n)=>To(e,typeof t!="symbol"?t+"":t,n);var sn={};Q(sn,{__DO_NOT_USE__ActionTypes:()=>ut,applyMiddleware:()=>Ao,bindActionCreators:()=>Oo,combineReducers:()=>$o,compose:()=>ir,createStore:()=>on,isAction:()=>Io,isPlainObject:()=>rn,legacy_createStore:()=>So});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 vo=typeof Symbol=="function"&&Symbol.observable||"@@observable",rr=vo,nn=()=>Math.random().toString(36).substring(7).split("").join("."),ko={INIT:`@@redux/INIT${nn()}`,REPLACE:`@@redux/REPLACE${nn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${nn()}`},ut=ko;function rn(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 on(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=="undefined"&&(n=t,t=void 0),typeof n!="undefined"){if(typeof n!="function")throw new Error(F(1));return n(on)(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((h,w)=>{c.set(w,h)}))}function f(){if(l)throw new Error(F(3));return o}function p(h){if(typeof h!="function")throw new Error(F(4));if(l)throw new Error(F(5));let w=!0;u();let E=a++;return c.set(E,h),function(){if(w){if(l)throw new Error(F(6));w=!1,u(),c.delete(E),s=null}}}function g(h){if(!rn(h))throw new Error(F(7));if(typeof h.type=="undefined")throw new Error(F(8));if(typeof h.type!="string")throw new Error(F(17));if(l)throw new Error(F(9));try{l=!0,o=r(o,h)}finally{l=!1}return(s=c).forEach(E=>{E()}),h}function d(h){if(typeof h!="function")throw new Error(F(10));r=h,g({type:ut.REPLACE})}function y(){let h=p;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(F(11));function E(){let T=w;T.next&&T.next(f())}return E(),{unsubscribe:h(E)}},[rr](){return this}}}return g({type:ut.INIT}),{dispatch:g,subscribe:p,getState:f,replaceReducer:d,[rr]:y}}function So(e,t,n){return on(e,t,n)}function Co(e){Object.keys(e).forEach(t=>{let n=e[t];if(typeof n(void 0,{type:ut.INIT})=="undefined")throw new Error(F(12));if(typeof n(void 0,{type:ut.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(F(13))})}function $o(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{Co(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 g=r[p],d=n[g],y=a[g],m=d(y,l);if(typeof m=="undefined"){let h=l&&l.type;throw new Error(F(14))}f[g]=m,u=u||m!==y}return u=u||r.length!==Object.keys(a).length,u?f:a}}function or(e,t){return function(...n){return t(e.apply(this,n))}}function Oo(e,t){if(typeof e=="function")return or(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]=or(o,t))}return n}function ir(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Ao(...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=ir(...a)(o.dispatch),{...o,dispatch:s}}}function Io(e){return rn(e)&&"type"in e&&typeof e.type=="string"}var yt={};Q(yt,{cache:()=>oi,css:()=>pn,cx:()=>Qo,flush:()=>Zo,getRegisteredStyles:()=>ti,hydrate:()=>zo,injectGlobal:()=>mt,keyframes:()=>ni,merge:()=>ei,sheet:()=>ri});var Ro=!1;function No(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 Po(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 sr=(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?!Ro: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(Po(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=No(o);try{s.insertRule(r,s.cssRules.length)}catch(c){}}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-",lt="-moz-",R="-webkit-",At="comm",Ke="rule",We="decl";var cr="@import";var It="@keyframes";var ar="@layer";var ur=Math.abs,je=String.fromCharCode,lr=Object.assign;function fr(e,t){return L(e,0)^45?(((t<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}function Rt(e){return e.trim()}function cn(e,t){return(e=t.exec(e))?e[0]:e}function I(e,t,n){return e.replace(t,n)}function ft(e,t){return e.indexOf(t)}function L(e,t){return e.charCodeAt(t)|0}function Oe(e,t,n){return e.slice(t,n)}function G(e){return e.length}function Be(e){return e.length}function Ve(e,t){return t.push(e),e}function an(e,t){return e.map(t).join("")}var Nt=1,Xe=1,pr=0,H=0,j=0,Ge="";function pt(e,t,n,r,o,s,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Nt,column:Xe,length:c,return:""}}function He(e,t){return lr(pt("",null,null,"",null,null,0),e,{length:-e.length},t)}function dr(){return j}function hr(){return j=H>0?L(Ge,--H):0,Xe--,j===10&&(Xe=1,Nt--),j}function J(){return j=H<pr?L(Ge,H++):0,Xe++,j===10&&(Xe=1,Nt++),j}function ae(){return L(Ge,H)}function dt(){return H}function Je(e,t){return Oe(Ge,e,t)}function Ye(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 Pt(e){return Nt=Xe=1,pr=G(Ge=e),H=0,[]}function Lt(e){return Ge="",e}function Ze(e){return Rt(Je(H-1,un(e===91?e+2:e===40?e+1:e)))}function mr(e){for(;(j=ae())&&j<33;)J();return Ye(e)>2||Ye(j)>3?"":" "}function yr(e,t){for(;--t&&J()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return Je(e,dt()+(t<6&&ae()==32&&J()==32))}function un(e){for(;J();)switch(j){case e:return H;case 34:case 39:e!==34&&e!==39&&un(j);break;case 40:e===41&&un(e);break;case 92:J();break}return H}function gr(e,t){for(;J()&&e+j!==57;)if(e+j===84&&ae()===47)break;return"/*"+Je(t,H-1)+"*"+je(e===47?e:J())}function br(e){for(;!Ye(ae());)J();return Je(e,H)}function _r(e){return Lt(jt("",null,null,null,[""],e=Pt(e),0,[0],e))}function jt(e,t,n,r,o,s,c,a,l){for(var u=0,f=0,p=c,g=0,d=0,y=0,m=1,h=1,w=1,E=0,_="",T=o,$=s,S=r,k=_;h;)switch(y=E,E=J()){case 40:if(y!=108&&L(k,p-1)==58){ft(k+=I(Ze(E),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:k+=Ze(E);break;case 9:case 10:case 13:case 32:k+=mr(y);break;case 92:k+=yr(dt()-1,7);continue;case 47:switch(ae()){case 42:case 47:Ve(Lo(gr(J(),dt()),t,n),l);break;default:k+="/"}break;case 123*m:a[u++]=G(k)*w;case 125*m:case 59:case 0:switch(E){case 0:case 125:h=0;case 59+f:w==-1&&(k=I(k,/\f/g,"")),d>0&&G(k)-p&&Ve(d>32?xr(k+";",r,n,p-1):xr(I(k," ","")+";",r,n,p-2),l);break;case 59:k+=";";default:if(Ve(S=wr(k,t,n,u,f,o,a,_,T=[],$=[],p),s),E===123)if(f===0)jt(k,t,S,S,T,s,p,a,$);else switch(g===99&&L(k,3)===110?100:g){case 100:case 108:case 109:case 115:jt(e,S,S,r&&Ve(wr(e,S,S,0,0,o,a,_,o,T=[],p),$),o,$,p,a,r?T:$);break;default:jt(k,S,S,S,[""],$,0,a,$)}}u=f=d=0,m=w=1,_=k="",p=c;break;case 58:p=1+G(k),d=y;default:if(m<1){if(E==123)--m;else if(E==125&&m++==0&&hr()==125)continue}switch(k+=je(E),E*m){case 38:w=f>0?1:(k+="\f",-1);break;case 44:a[u++]=(G(k)-1)*w,w=1;break;case 64:ae()===45&&(k+=Ze(J())),g=ae(),f=p=G(_=k+=br(dt())),E++;break;case 45:y===45&&G(k)==2&&(m=0)}}return s}function wr(e,t,n,r,o,s,c,a,l,u,f){for(var p=o-1,g=o===0?s:[""],d=Be(g),y=0,m=0,h=0;y<r;++y)for(var w=0,E=Oe(e,p+1,p=ur(m=c[y])),_=e;w<d;++w)(_=Rt(m>0?g[w]+" "+E:I(E,/&\f/g,g[w])))&&(l[h++]=_);return pt(e,t,n,o===0?Ke:a,l,u,f)}function Lo(e,t,n){return pt(e,t,n,At,je(dr()),Oe(e,2,-2),0)}function xr(e,t,n,r){return pt(e,t,n,We,Oe(e,0,r),Oe(e,r+1,-1),r)}function De(e,t){for(var n="",r=Be(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Er(e,t,n,r){switch(e.type){case ar:if(e.children.length)break;case cr:case We:return e.return=e.return||e.value;case At:return"";case It:return e.return=e.value+"{"+De(e.children,r)+"}";case Ke:e.value=e.props.join(",")}return G(n=De(e.children,r))?e.return=e.value+"{"+n+"}":""}function Tr(e){var t=Be(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 vr(e){return function(t){t.root||(t=t.return)&&e(t)}}function kr(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var jo=function(t,n,r){for(var o=0,s=0;o=s,s=ae(),o===38&&s===12&&(n[r]=1),!Ye(s);)J();return Je(t,H)},Do=function(t,n){var r=-1,o=44;do switch(Ye(o)){case 0:o===38&&ae()===12&&(n[r]=1),t[r]+=jo(H-1,n,r);break;case 2:t[r]+=Ze(o);break;case 4:if(o===44){t[++r]=ae()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=je(o)}while(o=J());return t},Mo=function(t,n){return Lt(Do(Pt(t),n))},Sr=new WeakMap,Uo=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&&!Sr.get(r))&&!o){Sr.set(t,!0);for(var s=[],c=Mo(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]}}},qo=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Cr(e,t){switch(fr(e,t)){case 5103:return R+"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 R+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return R+e+lt+e+K+e+e;case 6828:case 4268:return R+e+K+e+e;case 6165:return R+e+K+"flex-"+e+e;case 5187:return R+e+I(e,/(\w+).+(:[^]+)/,R+"box-$1$2"+K+"flex-$1$2")+e;case 5443:return R+e+K+"flex-item-"+I(e,/flex-|-self/,"")+e;case 4675:return R+e+K+"flex-line-pack"+I(e,/align-content|flex-|-self/,"")+e;case 5548:return R+e+K+I(e,"shrink","negative")+e;case 5292:return R+e+K+I(e,"basis","preferred-size")+e;case 6060:return R+"box-"+I(e,"-grow","")+R+e+K+I(e,"grow","positive")+e;case 4554:return R+I(e,/([^-])(transform)/g,"$1"+R+"$2")+e;case 6187:return I(I(I(e,/(zoom-|grab)/,R+"$1"),/(image-set)/,R+"$1"),e,"")+e;case 5495:case 3959:return I(e,/(image-set\([^]*)/,R+"$1$`$1");case 4968:return I(I(e,/(.+:)(flex-)?(.*)/,R+"box-pack:$3"+K+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+R+e+e;case 4095:case 3583:case 4068:case 2532:return I(e,/(.+)-inline(.+)/,R+"$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(G(e)-1-t>6)switch(L(e,t+1)){case 109:if(L(e,t+4)!==45)break;case 102:return I(e,/(.+:)(.+)-([^]+)/,"$1"+R+"$2-$3$1"+lt+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ft(e,"stretch")?Cr(I(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(L(e,t+1)!==115)break;case 6444:switch(L(e,G(e)-3-(~ft(e,"!important")&&10))){case 107:return I(e,":",":"+R)+e;case 101:return I(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+R+(L(e,14)===45?"inline-":"")+"box$3$1"+R+"$2$3$1"+K+"$2box$3")+e}break;case 5936:switch(L(e,t+11)){case 114:return R+e+K+I(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return R+e+K+I(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return R+e+K+I(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return R+e+K+e+e}return e}var Fo=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case We:t.return=Cr(t.value,t.length);break;case It:return De([He(t,{value:I(t.value,"@","@"+R)})],o);case Ke:if(t.length)return an(t.props,function(s){switch(cn(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return De([He(t,{props:[I(s,/:(read-\w+)/,":"+lt+"$1")]})],o);case"::placeholder":return De([He(t,{props:[I(s,/:(plac\w+)/,":"+R+"input-$1")]}),He(t,{props:[I(s,/:(plac\w+)/,":"+lt+"$1")]}),He(t,{props:[I(s,/:(plac\w+)/,K+"input-$1")]})],o)}return""})}},Ko=[Fo],$r=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(m){var h=m.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||Ko,s={},c,a=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var h=m.getAttribute("data-emotion").split(" "),w=1;w<h.length;w++)s[h[w]]=!0;a.push(m)});var l,u=[Uo,qo];{var f,p=[Er,vr(function(m){f.insert(m)})],g=Tr(u.concat(o,p)),d=function(h){return De(_r(h),g)};l=function(h,w,E,_){f=E,d(h?h+"{"+w.styles+"}":w.styles),_&&(y.inserted[w.name]=!0)}}var y={key:n,sheet:new sr({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 y.sheet.hydrate(a),y};function Or(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 Ar={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 Wo=!1,Bo=/[A-Z]|^ms/g,Vo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pr=function(t){return t.charCodeAt(1)===45},Ir=function(t){return t!=null&&typeof t!="boolean"},ln=kr(function(e){return Pr(e)?e:e.replace(Bo,"-$&").toLowerCase()}),Rr=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Vo,function(r,o,s){return xe={name:o,styles:s,next:xe},o})}return Ar[t]!==1&&!Pr(t)&&typeof n=="number"&&n!==0?n+"px":n},Xo="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ht(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 xe={name:o.name,styles:o.styles,next:xe},o.name;var s=n;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)xe={name:c.name,styles:c.styles,next:xe},c=c.next;var a=s.styles+";";return a}return Yo(e,t,n)}case"function":{if(e!==void 0){var l=xe,u=n(e);return xe=l,ht(e,t,u)}break}}var f=n;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function Yo(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ht(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]+"}":Ir(a)&&(r+=ln(s)+":"+Rr(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&Wo)throw new Error(Xo);if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var l=0;l<c.length;l++)Ir(c[l])&&(r+=ln(s)+":"+Rr(s,c[l])+";");else{var u=ht(e,t,c);switch(s){case"animation":case"animationName":{r+=ln(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}}return r}var Nr=/label:\s*([^\s;{]+)\s*(;|$)/g,xe;function Dt(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="";xe=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=ht(n,t,s);else{var c=s;o+=c[0]}for(var a=1;a<e.length;a++)if(o+=ht(n,t,e[a]),r){var l=s;o+=l[a]}Nr.lastIndex=0;for(var u="",f;(f=Nr.exec(o))!==null;)u+="-"+f[1];var p=Or(o)+u;return{name:p,styles:o,next:xe}}var Go=!0;function fn(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Ho=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Go===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Lr=function(t,n,r){Ho(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 jr(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Dr(e,t,n){var r=[],o=fn(e,r,n);return r.length<2?n:o+t(r)}var Mr=function(t){var n=$r(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=Dt(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=Dt(u,n.registered),g="animation-"+p.name;return jr(n,{name:p.name,styles:"@keyframes "+g+"{"+p.styles+"}"}),g},s=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Dt(u,n.registered);jr(n,p)},c=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];return Dr(n.registered,r,Jo(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:fn.bind(null,n.registered),merge:Dr.bind(null,n.registered,r)}},Jo=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 _e=Mr({key:"css"}),Zo=_e.flush,zo=_e.hydrate,Qo=_e.cx,ei=_e.merge,ti=_e.getRegisteredStyles,mt=_e.injectGlobal,ni=_e.keyframes,pn=_e.css,ri=_e.sheet,oi=_e.cache;var bn={};Q(bn,{Children:()=>Me,Fragment:()=>Ur,Portal:()=>qr,deepEqual:()=>mn,eval_num:()=>fi,findDOMNode:()=>si,forwardRef:()=>yn,getComponentByPointer:()=>ci,id_num:()=>li,isAsync:()=>ai,isClass:()=>gn,isEmpty:()=>B,isError:()=>ui,isThenable:()=>Mt,isValidComponent:()=>et,isValidElement:()=>ii,shallowEqual:()=>se,toBool:()=>Ut});var hn={};Q(hn,{ARGS:()=>_t,CALLBACK:()=>xt,CHILD_CLASS_ADDENDUM:()=>de,CLEARED:()=>wt,COMPONENT:()=>ze,CORE:()=>x,DUE:()=>le,IDX:()=>ue,INTERVAL:()=>Qe,IS_ZOMBIE:()=>dn,LAZY:()=>gt,MEMOIZED:()=>ke,REPEAT:()=>bt,TEXT:()=>W});var[x,ze,W,dn,ue,de,ke,gt,le,bt,wt,Qe,xt,_t]=[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 Ee=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)),ii=et,si=e=>{var t,n;if(!((n=(t=e[x])==null?void 0:t.element)!=null&&n.parentNode))throw new Error("findDOMNode only works on mounted components.");return e[x].element};function Ur({children:e}){return e}Ur.displayName="Fragment";function qr({children:e,view:t}){return this[x].portal=t,e}qr.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}},yn=e=>{let t=function(n,r){return e({...n,ref:void 0},r)};return t.displayName="Forwarded "+e.displayName,t};function ci(){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[ze]&&o.parentNode;)o=o.parentNode;return e(o[ze]),!1}return window.addEventListener("click",n,!0),t}function B(e){for(let t in e)return!1;return!0}var se=(e,t,n)=>{if(Object.is(e,t))return!0;if(Ee(e)!==Ee(t))return!1;if(Ee(e)==="array")return e.length!==t.length?!1:e.every((r,o)=>o===n||Object.is(r,t[o]));if(Ee(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 Ee(e)==="date"?e.getTime()===t.getTime():Object.is(e,t)};function mn(e,t){return Ee(e)!==Ee(t)?!1:Ee(e)==="array"?e.length!==t.length?!1:e.every((n,r)=>mn(n,t[r])):Ee(e)==="object"?Object.keys(e).length!==Object.keys(t).length?!1:Object.keys(e).every(n=>mn(e[n],t[n])):Ee(e)==="date"?e.getTime()===t.getTime():e===t}function gn(e){return!(e&&e.constructor===Function)||e.prototype===void 0?!1:Function.prototype!==Object.getPrototypeOf(e)?!0:Object.getOwnPropertyNames(e.prototype).length>1}function ai(e){return typeof e=="function"&&e.constructor&&e.constructor.name==="AsyncFunction"}function Mt(e){return e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function ui(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function Ut(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 li=Math.floor(Math.random()*1e4),fi=0;function Z(e){return e==null}function V(e){return e||"<<anonymous>>"}function pi(e){return e&&(e.displayName||e.name)||"Unknown"}function Fr(e){return e==null||e===!1||e===!0||typeof e=="string"||typeof e=="number"||et(e)?!0:Array.isArray(e)?e.every(Fr):!1}function di(e){return typeof e=="function"||typeof e=="string"}function he(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 \`${V(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 \`${V(s)}\`, but its value is \`${l}\`.`):t(r,o,s,c,a)},t}function hi(){let e={};e.any=(function(){let r=function(s,c,a,l,u){return null};return r.isRequired=function(){return null},r})(),e.array=he(r=>Array.isArray(r)),e.array.expectedType="array",e.bool=he(r=>typeof r=="boolean"),e.bool.expectedType="boolean",e.func=he(r=>typeof r=="function"),e.func.expectedType="function",e.number=he(r=>typeof r=="number"&&!Number.isNaN(r)),e.number.expectedType="number",e.object=he(r=>typeof r=="object"&&r!==null&&!Array.isArray(r)),e.object.expectedType="object",e.string=he(r=>typeof r=="string"),e.string.expectedType="string",e.symbol=he(r=>typeof r=="symbol"),e.symbol.expectedType="symbol",e.component=he(r=>et(r)),e.component.expectedType="component",e.element=he(r=>et(r)),e.element.expectedType="element",e.node=he(r=>Fr(r)),e.node.expectedType="node",e.elementType=he(r=>di(r)),e.elementType.expectedType="elementType",e.oneOf=function(o){let s=Array.isArray(o)?o:[],c=function(l,u,f,p,g){let d=l[u];if(Z(d))return null;for(let m=0;m<s.length;m++)if(d===s[m])return null;let y=d===null?"null":typeof d;return new Error(`Invalid ${p} \`${g}\` of value \`${String(d)}\` supplied to \`${V(f)}\`, expected one of [${s.map(String).join(", ")}] (received type \`${y}\`).`)};return c.isRequired=function(l,u,f,p,g){return Z(l[u])?new Error(`The ${p} \`${g}\` is marked as required in \`${V(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,g)},c},e.oneOfType=function(o){let s=o||[],c=function(l,u,f,p,g){let d=l[u];if(Z(d))return null;for(let y=0;y<s.length;y++)if(s[y](l,u,f,p,g)===null)return null;return new Error(`Invalid ${p} \`${g}\` supplied to \`${V(f)}\` (none of the allowed types matched).`)};return c.isRequired=function(l,u,f,p,g){return Z(l[u])?new Error(`The ${p} \`${g}\` is marked as required in \`${V(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,g)},c},e.arrayOf=function(o){let s=o,c=function(l,u,f,p,g){let d=l[u];if(Z(d))return null;if(!Array.isArray(d))return new Error(`Invalid ${p} \`${g}\` of type \`${typeof d}\` supplied to \`${V(f)}\`, expected an array.`);for(let y=0;y<d.length;y++){let m=`${g}[${y}]`,h=s({[u]:d[y]},u,f,p,m);if(h!==null)return h}return null};return c.isRequired=function(l,u,f,p,g){return Z(l[u])?new Error(`The ${p} \`${g}\` is marked as required in \`${V(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,g)},c},e.objectOf=function(o){let s=o,c=function(l,u,f,p,g){let d=l[u];if(Z(d))return null;if(typeof d!="object"||d===null||Array.isArray(d))return new Error(`Invalid ${p} \`${g}\` of type \`${typeof d}\` supplied to \`${V(f)}\`, expected an object.`);let y=Object.keys(d);for(let m=0;m<y.length;m++){let h=y[m],w=`${g}.${h}`,E=s({[u]:d[h]},u,f,p,w);if(E!==null)return E}return null};return c.isRequired=function(l,u,f,p,g){return Z(l[u])?new Error(`The ${p} \`${g}\` is marked as required in \`${V(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,g)},c};function t(r,{exact:o}){let s=r?Object.keys(r):[],c=function(l,u,f,p,g){let d=l[u];if(Z(d))return null;if(typeof d!="object"||d===null||Array.isArray(d))return new Error(`Invalid ${p} \`${g}\` of type \`${typeof d}\` supplied to \`${V(f)}\`, expected an object.`);if(o){let m=Object.keys(d);for(let h=0;h<m.length;h++){let w=m[h];if(!Object.prototype.hasOwnProperty.call(r,w)){let E=`${g}.${w}`;return new Error(`Invalid ${p} \`${E}\` supplied to \`${V(f)}\`: extra key \`${w}\` is not allowed by exact().`)}}}for(let m=0;m<s.length;m++){let h=s[m],w=r[h],E=d[h],_=`${g}.${h}`;if(Z(E)){let $=w({[u]:E},u,f,p,_);if($!==null)return $;continue}let T=w({[u]:E},u,f,p,_);if(T!==null)return T}return null};return c.isRequired=function(l,u,f,p,g){return Z(l[u])?new Error(`The ${p} \`${g}\` is marked as required in \`${V(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,g)},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 g=a[l];return Z(g)||g instanceof o?null:new Error(`Invalid ${f} \`${p}\` supplied to \`${V(u)}\`: expected instance of \`${pi(o)}\`.`)};return s.isRequired=function(a,l,u,f,p){return Z(a[l])?new Error(`The ${f} \`${p}\` is marked as required in \`${V(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){if(!o)return;let l=o,u=V(a),f=Object.keys(l);for(let p=0;p<f.length;p++){let g=f[p],d=l[g];if(typeof d!="function")continue;let m=d(s||{},g,u,c,g);if(m instanceof Error){let h=`${u}|${c}|${g}|${m.message}`;if(n.has(h))continue;n.add(h),typeof console!="undefined"&&console.error&&console.error(`Warning: Failed prop type: ${m.message}`)}}},e}var tt=hi();var _n={};Q(_n,{Component:()=>Ae,HTMLComponent:()=>Tt,RootComponent:()=>qt,boolean_html_attributes_set:()=>Gr,capture_events_set:()=>Kt,cloneComponent:()=>Vr,cloneElement:()=>_i,createComponent:()=>xn,createElement:()=>vi,createPortal:()=>xi,createRoot:()=>Br,current_component:()=>ki,effect_timeout:()=>Ni,events_set:()=>Ft,insertion_effects:()=>Ai,layout_effects:()=>Oi,length_css_attributes_set:()=>Yr,memo:()=>Ti,passive_effects:()=>Ii,processEffects:()=>Wr,render:()=>Ei,roots:()=>$i,special_attributes:()=>Xr,update_cbs:()=>Ci,update_interval_margin:()=>Pi,update_set:()=>Si,update_timeout:()=>Ri});var mi="http://www.w3.org/2000/svg",wn=class{constructor(t){ee(this,"owner");ee(this,"current_map",new Map);ee(this,"new_map",new Map);ee(this,"pick_index",0);this.owner=t}pick(t,n){var s,c;let r,o=this.current_map.get(t);return o&&o.length>o[ue]?(r=o[o[ue]],o[ue]++,o=this.new_map.get(t),o!==void 0?o.push(r):(o=[r],this.new_map.set(t,o),o[ue]=0)):(r=n(),o=this.new_map.get(t),o!==void 0?o.push(r):(o=[r],this.new_map.set(t,o),o[ue]=0),r[x]&&((c=(s=r[x]).parent)!=null||(s.parent=this.owner))),r}commit(){this.current_map.forEach(t=>{t.slice(t[ue]).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}},Et=class{constructor(t,n){ee(this,"component");ee(this,"props");this.component=t,this.props=n||{}}apply(t=this.props,n=this.next_state||this.state){var o,s,c,a,l,u,f,p,g,d,y;let r=!0;if(this.outlet&&(this!=null&&this[ke])&&se(this.props,t,"children")&&se((o=this.props)==null?void 0:o.children,t==null?void 0:t.children)&&(r=!1),r){if((s=this.entity)!=null&&s.propTypes?tt.checkPropTypes(this.entity.propTypes,this.props,"prop",this.entity.name):(c=this.component)!=null&&c.propTypes&&tt.checkPropTypes(this.component.propTypes,this.props,"prop",this.component.name),typeof n=="function"&&(n=n(this.state)),this.component.constructor.defaultProps&&(t={...this.component.constructor.defaultProps,...t}),((l=(a=this==null?void 0:this.parent)==null?void 0:a.component)!=null&&l.context||(f=(u=this==null?void 0:this.parent)==null?void 0:u.component)!=null&&f.getChildContext)&&(this.context={...this.parent.component.context,...(g=(p=this.parent.component).getChildContext)==null?void 0:g.call(p)},this.component.constructor.contextTypes&&tt.checkPropTypes(this.component.constructor.contextTypes,this.context,"context",this.entity.name)),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(mi,this.entity)):this.element=document.createElement(this.entity),t!=null&&t.defaultValue&&(this.element.value=String(t.defaultValue).slice(0,t==null?void 0:t.maxLength)),t!=null&&t.defaultChecked&&(this.element.checked=t.defaultChecked)),this.element[ze]=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 m=this.state,h=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,v.current_component=[this,v.current_component];try{this.outlet=this.component.render(t,{current:this.element||this.component})}catch(w){Kr(this,w)}v.current_component=v.current_component[1]}else try{this.outlet=this.component.render({current:this.element||this.component})}catch(w){Kr(this,w)}this!=null&&this.portal&&(this.element=this.portal),((y=(d=this.outlet)==null?void 0:d.constructor)==null?void 0:y.name)!=="Array"&&(this.outlet=[this.outlet]),this.outlet=[...this.outlet];for(let w=0;w<this.outlet.length;w++){let E=this.outlet[w];if(E==null||typeof E=="boolean")this.outlet.splice(w,1),w--;else if(typeof E=="function"){let _=this.childFunctionHandler(E);this.outlet.splice(w,1,_),w--}else if(E.constructor.name==="Array")this.outlet.splice(w,1,...E),w--;else{let _=gi(this,E);this.outlet[w]=_,_[W]===void 0?(_.container=this.element?this:this.container,_.apply(E.props)):_.element?_[W]!==E[W]&&(_.element.textContent=E[W],_[W]=E[W]):(_.element=document.createTextNode(E[W]),_[W]=E[W])}}this.cache&&this.cache.commit(),this.element&&this.arrangeOutlet(),this.component.componentDidUpdate&&this.component.componentDidUpdate(h,m,this.last_snapshot),this.last_snapshot&&delete this.last_snapshot}}async cleanup(){var t,n,r;try{let o=[];if((t=this.props)!=null&&t.ref&&(typeof this.props.ref=="function"?this.props.ref(null):this.props.current=null),this.component.componentWillUnmount&&this.component.componentWillUnmount(),(n=this==null?void 0:this.element)!=null&&n.parentElement&&!this.portal&&this.element.parentElement.removeChild(this.element),this.outlet!==void 0)for(let s of this.outlet)s.cleanup&&o.push(s.cleanup());if(((r=this.props)==null?void 0:r.children)!==void 0)for(let s of this.props.children)s.cleanup&&o.push(s.cleanup());if(this.hooks!==void 0)for(let s of this.hooks)s.cleanup&&o.push(s.cleanup());await Promise.all(o)}catch(o){throw o}}updateElementProps(t,n=!1){var r,o,s,c,a,l,u,f,p,g,d,y,m;if(this.entity==="input")t!=null&&t.type||(t.type="text"),t.type!==this.element.type&&(this.element.type=t.type),(t==null?void 0:t.value)!==void 0&&(t==null?void 0:t.value)!==this.element.value&&(t.value===void 0&&(t.value=""),this.element.value=String(t.value).slice(0,t==null?void 0:t.maxLength));else if(this.entity==="textarea")(t==null?void 0:t.value)!==this.element.value&&(this.element.value=String(t.value).slice(0,t==null?void 0:t.maxLength));else if(this.entity==="select"){let h=String(t.value);h!==this.element.value&&(this.element.value=h)}else this.entity==="option"&&(((c=(s=(o=(r=this.container)==null?void 0:r.props)==null?void 0:o.value)==null?void 0:s.constructor)==null?void 0:c.name)==="Array"?t.selected=this.container.props.value.indexOf(t.value)!==-1:typeof((l=(a=this.container)==null?void 0:a.props)==null?void 0:l.value)=="string"&&(t.selected=this.container.props.value===t.value));for(let h in this.props){let w=h.toLowerCase();t.hasOwnProperty(h)||(Ft.has(w)?this.event_detachers[w]():this.element.removeAttribute(h))}for(let h in t){let w=h.toLowerCase();if(!Xr.has(w)&&(t===this.props||!v.defaultIsEqual(t[h],this.props[h])||n))if(Ft.has(w))(u=this.event_detachers)!=null||(this.event_detachers={}),(p=(f=this.event_detachers)[w])==null||p.call(f),this.event_detachers[w]=v.addWrappedEventListener(this.element,w.substring(2),t[h]);else if(Kt.hasOwnProperty(w)){let E=Kt[w];(g=this.event_detachers)!=null||(this.event_detachers={}),(y=(d=this.event_detachers)[w])==null||y.call(d),this.event_detachers[w]=v.addWrappedEventListener(this.element,E.substring(2),t[h],{capture:!0})}else if(h==="style")if(typeof t.style=="string")this.element.style=t.style;else{if((m=this.props)!=null&&m.style)if(typeof this.props.style=="string")this.element.style="";else for(let E in this.props.style)t.style.hasOwnProperty(E)||(this.element.style[E]="");for(let E in t.style)Yr.has(E)&&isFinite(t.style[E])&&(t.style[E]+="px");Object.assign(this.element.style,t.style)}else if(Gr.has(h)){let E=Ut(t[h]);E!==this.element[h]&&(this.element[h]=E)}else h==="autoFocus"?this.element.autofocus=Ut(t[h]):h==="htmlFor"?this.element.setAttribute("for",t[h]):(w!=="value"||["input","textarea","select"].indexOf(this.entity)===-1)&&this.element.setAttribute(w,t[h])}t!=null&&t.action?this.element.onsubmit=t.action:this.element.onsubmit=void 0,this.updateElementClass(t)}updateElementClass(t=this.props){var r,o;let n=t==null?void 0:t.className;if(n!=null||(n=t!=null&&t.class?t.class:""),(r=this==null?void 0:this.parent)!=null&&r[de]&&(n+=" "+((o=this==null?void 0:this.parent)==null?void 0:o[de])),n.length>0){n=n.split(/\s+/g);for(let s of Array.from(this.element.classList))n.indexOf(s)===-1&&this.element.classList.remove(s);for(let s of n)s.length>0&&this.element.classList.add(s)}else delete this.element.className}scanZombies(t,n){let r=t.element.childNodes;for(;r[t.insert_index]&&r[t.insert_index][dn]&&r[t.insert_index]!==n;)t.insert_index++}appendElement(t){var n;t.portal||(this.scanZombies(t.container,t.element),(t==null?void 0:t.element.parentNode)===null?(t.container.element.insertBefore(t.element,t.container.element.childNodes[t.container.insert_index]||null),(n=t==null?void 0:t.component)!=null&&n.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(){var t;this.insert_index=0;for(let n of this.outlet)n&&(n.element?(n.container=this.element?this:this.container,n.container.appendElement(n)):(n.arrangeOutlet&&n.arrangeOutlet(),n!=null&&n.mounted||(n.mounted=!0,(t=n==null?void 0:n.component)!=null&&t.componentDidMount&&n.component.componentDidMount())))}childFunctionHandler(t){return t(this.state)}},Kr=(e,t)=>{var o,s,c,a;let n=[e];for(;e&&!((o=e.component)!=null&&o.componentDidCatch);)e=e.parent,e&&n.push(e);(s=e==null?void 0:e.component)!=null&&s.componentDidCatch&&(c=e.entity)!=null&&c.getDerivedStateFromError&&e.component.setState(e.entity.getDerivedStateFromError.call(e,t));let r=Array.prototype.map.call(n,l=>`in ${typeof l.component.displayName=="function"?l.component.displayName():l.component.displayName}`).join(`
58
- `);if(t.componentStack=n,t.componentStackLog=r,(a=e==null?void 0:e.component)!=null&&a.componentDidCatch)e.component.componentDidCatch(t,{componentStack:n,componentStackLog:r});else throw t};function yi(e,t){let n=e;if(e[W]===void 0){let r=e.entity,o=!1;if(typeof r=="object")if(r[ke])o=r[ke],r=r.component;else throw new Error("Invalid component.");if(typeof r=="string")n=new Tt(r,e.props);else{if(gn(r)){r!=null&&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!=null&&r.defaultProps&&(e.props={...r.defaultProps,...e.props}),n=new Ae(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][ke]=!0)}return t instanceof Et&&(n[x].parent=t),n}function gi(e,t){var n,r,o;try{return(n=e.cache)!=null||(e.cache=new wn(e)),t=e.cache.pick(t[W]===void 0?(r=t==null?void 0:t.props)==null?void 0:r.key:":text:",()=>t[W]!==void 0||t instanceof Et?t:yi(t,e)[x]),t}catch(s){if((o=t==null?void 0:t.component)!=null&&o.componentDidCatch)t.component.componentDidCatch(s);else throw s}}function bi(){clearTimeout(v.effect_timeout);let e=v.update_set,t=v.update_cbs;v.update_set=new Set,v.update_cbs=new Set;for(let n of e)n.apply();for(let n of t)n();Wr()}function Wr(){let e=v.insertion_effects,t=v.layout_effects,n=v.passive_effects;v.insertion_effects=new Set,v.layout_effects=new Set,v.passive_effects=new Set;for(let r of e)r();for(let r of t)r();requestAnimationFrame(()=>{for(let r of n)r()})}var wi=(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[W]!==void 0?n=":text:":(typeof e=="string"?n=":t:"+e:e!=null&&e.name?n=e.name:n="::",t.name!==void 0?n=n+":"+t.name:t.path!==void 0&&(n=n+":"+t.path)),n},Ae=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!=null&&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 Et(this,t)}forceUpdate(t){v._clearTimeout(v.update_timeout),v.update_set.add(this[x].container||this[x]),t&&v.update_cbs.add(t.bind(this)),v.update_timeout=v._setTimeout(bi,v.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)}},Tt=class extends Ae{constructor(t,n){super(n),this[x].entity=t,t==="svg"&&(this[x].is_svg=!0)}render(){return this[x].props.children}},qt=class extends Tt{constructor(n,r){super(":root:",r);ee(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 xn(e,t={},...n){if(typeof e!="string"&&typeof e!="function"&&(typeof e!="object"||!e[ke]))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]={[W]:o}:n[r]=o}return t.key=wi(e,t),t.children=n,{entity:e,props:t,[x]:null}}function Br(e){let t;return{render(n){if(t)throw new Error("root already rendered!");return t=new qt(e,{children:[n]}),v.roots.add(t[x]),t.forceUpdate(),t},unmount(){t&&(t.cleanup(),e.innerHTML="")}}}function xi(e,t){return xn(v.Portal,{view:t},e)}function Vr(e,t,...n){let r={entity:e.entity,props:{...e.props,...t},[x]:null};return n!=null&&n.length&&(r.props.children=n),r}var _i=Vr;function Ei(e,t){if(e[x]&&(e[x].container||e[x].parent))throw new Error("Component is already in use");return Br(t).render(e)}function Ti(e){return typeof e=="object"?e[ke]=!0:e={component:e,[ke]:!0,[x]:null},e}var vi=xn,ki=[],Si=new Set,Ci=new Set,$i=new Set,Oi=new Set,Ai=new Set,Ii=new Set,Ri,Ni,Pi=0,Xr=new Set(["classname","ref","action","lilact_jsx_loc","children","key","defaultvalue","defaultchecked"]),Ft=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"]),Kt={};for(let e of Ft)Kt[e+"capture"]=e;var Yr=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"]),Gr=new Set(["disabled","readOnly","required","checked","multiple","selected","hidden","open","loop","muted","controls","playsInline","allowFullScreen"]);var Tn={};Q(Tn,{createContext:()=>nt,startTransition:()=>Ki,useActionState:()=>Mi,useCallback:()=>me,useContext:()=>rt,useDebugValue:()=>Fi,useDeferredValue:()=>qi,useEffect:()=>ne,useHook:()=>ce,useId:()=>Li,useImperativeHandle:()=>En,useInsertionEffect:()=>Di,useLayoutEffect:()=>Ie,useLocalStorage:()=>ji,useMemo:()=>vt,useReducer:()=>Ui,useRef:()=>P,useState:()=>te,useTransition:()=>Hr});function ce(){let e=v.current_component[0];return e.hooks[e.hook_index]===void 0&&e.hooks.push({}),e.hooks[e.hook_index++]}function te(e){let t=ce();return B(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,v.current_component[0],t)),[t.value,t.set_func]}function me(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=ce();return!B(n)&&t!==void 0&&(n==null?void 0:n.deps)!==void 0&&se(t,n.deps)||(n!=null&&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){var n,r,o;let t=(n=v.current_component[0])==null?void 0:n.parent;for(;t&&t.entity!==e.Provider;)t=t.parent;return t&&(o=(r=t.props)==null?void 0:r.value)!=null?o:e.default}function Li(e="N"){let t=ce();return B(t)&&(t.id=e+v.id_num++),t.id}function Hr(){let e=ce();return B(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,v.current_component[0],e)),[e.count!=0,e.func]}function ji(e,t){let n=ce(),r;try{r=JSON.parse(localStorage[e])}catch(o){}return r===void 0&&(typeof t=="function"&&(t=t()),r=t,localStorage[e]=JSON.stringify(r)),B(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,v.current_component[0],n)),[n.value,n.set_func]}function P(e=null){let t=ce();return B(t)&&(t.current=e),t}async function Ie(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=ce();!B(n)&&t!==void 0&&(n==null?void 0:n.deps)!==void 0&&se(t,n.deps)||(n!=null&&n.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,v.layout_effects.add(async()=>{n.cleanup=await e()}),v._clearTimeout(v.effect_timeout),v._setTimeout(v.processEffects,0))}async function ne(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=ce();!B(n)&&t!==void 0&&(n==null?void 0:n.deps)!==void 0&&se(t,n.deps)||(n!=null&&n.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,v.passive_effects.add(async()=>{n.cleanup=await e()}),v._clearTimeout(v.effect_timeout),v._setTimeout(v.processEffects,0))}async function Di(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=ce();!B(n)&&t!==void 0&&(n==null?void 0:n.deps)!==void 0&&se(t,n.deps)||(n!=null&&n.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,v.insertion_effects.add(async()=>{n.cleanup=await e()}),v._clearTimeout(v.effect_timeout),v._setTimeout(v.processEffects,0))}function vt(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=ce();return!B(n)&&t!==void 0&&(n==null?void 0:n.deps)!==void 0&&se(t,n.deps)||(n.deps=t,n.value=e()),n.value}function Mi(e,t){let n=ce(),[r,o]=Hr();return B(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 Ui(e,t,n){let r=ce();return B(r)&&(r.state=n?n(t):t,r.dispatch=function(o,s,c){let a=s.reducer(s.state,c);v.defaultIsEqual(a,s.state)||(s.state=a,o.component.forceUpdate())}.bind(void 0,v.current_component[0],r)),r.reducer=e,[r.state,r.dispatch]}function qi(e,t){let{useEffect:n,useRef:r,useState:o}=v,[s,c]=o(typeof t!="undefined"?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 En(e,t,n=void 0){n!==void 0&&(e==null?void 0:e.deps)!==void 0&&se(n,e.deps)||(e.deps=n,typeof(e==null?void 0:e.current)!="object"&&(e.current={}),Object.assign(e.current,t()))}function Fi(e,t=n=>n){console.log(t(e))}function Ki(e){e()}var vn={};Q(vn,{lazy:()=>Yi,require:()=>zr,required_scripts:()=>qe,run:()=>ot,runScripts:()=>Hi});function Wi(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 Jr(e,t="Unknown error"){if(e instanceof Error)return e;if((e==null?void 0:e.error)instanceof Error)return e.error;let n=new Error((e==null?void 0: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 Bi(e,t){let n=Jr(e);return n.lilact_source||(n.lilact_source={path:t}),n}function Ue(e,t){let n=Bi(e,t);return n.isTraced?n:typeof v.traceError=="function"?v.traceError(n,t):(v.error=n,n)}var qe={};function Zr(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 ot(jsx,path=`InlineJSX-${++v.eval_num}`,{isInline=!0,isModule=!0}={}){var e,t;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=Zr(path,{code:jsx,isInline,isModule});let processed;try{processed=v.transpileJSX(String(jsx),{path,mappings:module.mappings,factory:"createComponent",appendSourcemap:!1,injectTraceLabels:!0,produceCJS:!0,blocks_info:v.blocks_info})}catch(n){let r=Jr(n);throw(e=r.fileName)!=null||(r.fileName=path),r.sourcePhase="transpile",module.error=r,v.error=r,r}typeof v.scanBlockLabels=="function"&&v.scanBlockLabels(processed,path),processed+=`
59
- //# sourceURL=eval:/${path}`;try{globalThis.Lilact=v,globalThis.createComponent=v.createComponent,globalThis.Fragment=v.Fragment;let result=eval(processed);return module.loaded=!0,B(module.exports)?result:module.exports}catch(n){let r=Ue(n,path);throw(t=r.sourcePhase)!=null||(r.sourcePhase="runtime"),module.error=r,r}}function Vi(e,t={}){return qe[e]||Zr(e,t)}function Xi(e,t){var o,s;let n;try{let c=(s=(o=v).resolver)==null?void 0:s.call(o,e);c==null?t.code&&!t.loaded?n=Promise.resolve(t.code):n=fetch(e).then(a=>{if(!a.ok)throw Ue(new Error(`Unable to load ${e}: HTTP ${a.status}`),e);return a.text()}):n=Promise.resolve(c)}catch(c){n=Promise.reject(Ue(c,e))}let r;return r=Promise.resolve(n).then(c=>{if(t.code=String(c),e.endsWith(".css")){mt(t.code),t.loaded=!0;return}return ot(t.code,e,{isInline:!1,isModule:!0})}).then(c=>{var a;return(a=c==null?void 0:c.default)!=null?a:c}).catch(c=>{throw t.error=Ue(c,e),t.error}).finally(()=>{t.request===r&&(t.request=void 0)}),t.request=r,r}function zr(e){var c,a,l,u;let t={};if(arguments.length===2&&arguments[1]&&typeof arguments[1]=="object"&&(t=arguments[1]),(c=v.importObjectPaths)!=null&&c[e])return v.importObjectPaths[e];(a=t.requirer)!=null&&a.path&&(e=Wi(t.requirer.path,e));let n=!!v[gt]||!!t.isLazy,r=Vi(e,{isInline:!1,isModule:!0});if(r.loaded&&!t.forceUpdate)return r.exports;if(e.startsWith("#")){let f=document.getElementById(e.slice(1));if(!f)throw Ue(new Error(`Required element not found (${e})`),e);return ot(f.textContent||"",e)}if(n)return v[gt]=!1,r.request?r.request:Xi(e,r);let o=(u=(l=v).resolver)==null?void 0:u.call(l,e);if(o!=null){if(e.endsWith(".css")){mt(String(o)),r.code=String(o),r.loaded=!0;return}return ot(String(o),e,{isInline:!1,isModule:!0})}let s=new XMLHttpRequest;try{s.open("GET",e,!1),s.send(null)}catch(f){throw Ue(f,e)}if(s.status>=200&&s.status<300){if(e.endsWith(".css")){r.code=s.responseText,mt(r.code),r.loaded=!0;return}return ot(s.responseText,e,{isInline:!1,isModule:!0})}throw Ue(new Error(`Unable to load ${e}: HTTP ${s.status||0}`),e)}function Yi(e){let t="pending",n;v[gt]=!0;try{n=e()}catch(o){t="error",n=o}v.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 Gi(){return Array.from(document.querySelectorAll('script[type="text/jsx"]')).map(e=>({src:e.getAttribute("src"),content:e.textContent||""}))}async function Hi(){for(let e of Gi())e.src?await zr(e.src):e.content&&ot(e.content)}var Cn={};Q(Cn,{CSSTransition:()=>eo,SwitchTransition:()=>Ji,Transition:()=>Qr,TransitionGroup:()=>Zi});var kn="unmounted",Wt="exited",kt="entering",St="entered",Sn="exiting";function Qr({in:e,timeout:t=v.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:g}){var d,y,m,h,w,E;return(y=(d=this[x]).is_mounted)!=null||(d.is_mounted=!n||e||o),(h=(m=this[x]).is_appeared)!=null||(m.is_appeared=e),(E=(w=this[x]).timer)!=null||(w.timer=null),this[x].childFunctionHandler=_=>_(this[x].mount_state),this[x].mount_state||(this[x].is_mounted||(this[x].mount_state=kn),e?this[x].mount_state=o&&!this[x].is_appeared?kt:St:this[x].mount_state=Wt),ne(()=>()=>clearTimeout(this[x].timer),[]),ne(()=>{!this[x].is_appeared&&o&&this[x].mount_state===kt&&e&&(s==null||s(),requestAnimationFrame(()=>{c==null||c(!this[x].is_appeared),clearTimeout(this[x].timer),this[x].timer=setTimeout(()=>{this[x].mount_state=St,this.forceUpdate(),this[x].is_appeared=!0,a==null||a(!this[x].is_appeared)},t)}))},[]),ne(()=>{if(e){if(this[x].is_mounted=!0,this[x].mount_state===kt||this[x].mount_state===St)return;s==null||s(!this[x].is_appeared),this[x].mount_state=kt,this.forceUpdate(()=>{c==null||c(!this[x].is_appeared),clearTimeout(this[x].timer),this[x].timer=setTimeout(()=>{this[x].mount_state=St,this.forceUpdate(),this[x].is_appeared=!0,a==null||a()},t)})}else{if(this[x].mount_state===kn||this[x].mount_state===Sn||this[x].mount_state===Wt)return;l==null||l(),this[x].mount_state=Sn,this.forceUpdate(()=>{u==null||u(),clearTimeout(this[x].timer),this[x].timer=setTimeout(()=>{this[x].mount_state=Wt,this.forceUpdate(),f==null||f(),r&&(this[x].is_mounted=!1,this[x].mount_state=kn,this.forceUpdate())},t)})}},[e,t]),this[x].is_mounted?(g&&(this[x].mount_state===kt?this[x].is_appeared?this[x][de]=g.appearActive:this[x][de]=g.enterActive:this[x].mount_state===St?this[x].is_appeared?this[x][de]=g.appearDone:this[x][de]=g.enterDone:this[x].mount_state===Sn?this[x][de]=g.exitActive:this[x].mount_state===Wt&&(this[x][de]=g.exitDone)),p):null}function eo({in:e,timeout:t=v.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:g}){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(Qr,{in:e,timeout:t,mountOnEnter:r,unmountOnExit:o,appear:s,onEnter:a,onEntering:l,onEntered:u,onExit:f,onExiting:p,onExited:g,_classNames:n},c)}function Ji({children:e,activeKey:t,mode:n="out-in",timeout:r=v.defaultTransitionTimeout,classNames:o="switch",mountOnEnter:s=!1,unmountOnExit:c=!1,appear:a=!1,onExited:l,onEnter:u,onExiting:f,onEntered:p,...g}){let d=vt(()=>Me.toArray(e),[e]),[y,m]=te(null),[h,w]=te(!1),[E,_]=te(!0),T=P(t),$=P(t),S=P(y);Ie(()=>{$.current=t},[t]),Ie(()=>{S.current=y},[y]),Ie(()=>{let O=T.current;O!==t&&(T.current=t,m(O),n==="out-in"?(_(!1),w(!0)):(_(!0),w(!1)))},[t,n]);let k=O=>(X,q)=>{typeof l=="function"&&l(X,q),O===S.current&&(m(null),n==="out-in"&&(w(!1),_(!0)),n==="in-out"&&w(!1))},C=O=>(X,q)=>{typeof p=="function"&&p(X,q),n==="in-out"&&O===$.current&&S.current!=null&&w(!0)};return createComponent("div",{style:{position:"relative"}},d.map((O,X)=>{var Pe;let q=((Pe=O==null?void 0:O.props)==null?void 0:Pe.key)||X,Ot=q===t?E:q===y?!h:!1;return createComponent(eo,{...g,key:q,in:Ot,timeout:r,classNames:o,mountOnEnter:s,unmountOnExit:c,appear:a,onEnter:u,onExiting:f,onEntered:C(q),onExited:k(q)},createComponent("div",{style:{position:"absolute",inset:0}},O))}))}function Zi({children:e}){return e}var $n={};Q($n,{addWrappedEventListener:()=>es,createSyntheticEvent:()=>to,releaseSyntheticEvent:()=>no,wrapListener:()=>ro});typeof Element!="undefined"&&!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!="undefined"&&!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 Bt=[],zi=10,Qi=["mouse","pen","touch"];function to(e,t){var r,o,s,c,a,l,u,f,p,g,d,y,m,h,w,E,_,T,$,S,k,C;let n=Bt.length?Bt.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=(o=(r=e.which)!=null?r:e.keyCode)!=null?o:null,n.button=(s=e.button)!=null?s:null,n.buttons=(c=e.buttons)!=null?c:null,n.pointerId=(a=e.pointerId)!=null?a:null,n.pointerType=(l=e.pointerType)!=null?l:null,n.isPrimary=(u=e.isPrimary)!=null?u:null,n.clientX=(f=e.clientX)!=null?f:0,n.clientY=(p=e.clientY)!=null?p:0,n.screenX=(g=e.screenX)!=null?g:0,n.screenY=(d=e.screenY)!=null?d:0,n.pageX=(y=e.pageX)!=null?y:null,n.pageY=(m=e.pageY)!=null?m:null,n.movementX=(h=e.movementX)!=null?h:0,n.movementY=(w=e.movementY)!=null?w:0,n.pressure=(E=e.pressure)!=null?E:null,n.tiltX=(_=e.tiltX)!=null?_:null,n.tiltY=(T=e.tiltY)!=null?T:null,n.width=($=e.width)!=null?$:null,n.height=(S=e.height)!=null?S:null,n.pointerEventsSupported=Qi.includes(n.pointerType);try{let O=n.target;n.value=O&&"value"in O?O.value:void 0,n.checked=O&&"checked"in O?O.checked:void 0,n.selectionStart=O&&"selectionStart"in O?O.selectionStart:void 0,n.selectionEnd=O&&"selectionEnd"in O?O.selectionEnd:void 0}catch(O){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=(k=e.repeat)!=null?k:!1,n.location=(C=e.location)!=null?C:0,n}function no(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,Bt.length<zi&&Bt.push(e))}function ro(e,t={}){let{stopPropagationOnTrueReturn:n=!1}=t;return function(o){let s=this||o.currentTarget||null,c=to(o,s);try{let a=e(c);n&&a===!0&&c.stopPropagation()}finally{no(c)}}}function es(e,t,n,r={}){let o=ro(n,r);return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)}var On={};Q(On,{Provider:()=>ts,combineReducers:()=>os,connect:()=>rs,useDispatch:()=>ns,useSelector:()=>oo,useStore:()=>Vt});var Ct;function ts({store:e,children:t}){return Ct!=null||(Ct=nt(null)),createComponent(Ct.Provider,{value:e},t)}function Vt(){let e=rt(Ct);if(!e)throw new Error("Could not find Redux store in context. <Provider> is missing.");return e}function ns(){return Vt().dispatch}function oo(e,t=(n,r)=>n===r){let n=Vt(),r=P(),o=P(e);o.current=e;let[s,c]=te(()=>e(n.getState()));return r.current=s,ne(()=>{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 rs(e,t){let n=!!e;return function(o){function s(c){let a=Vt(),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 g in t){let d=t[g];l[g]=(...y)=>p(d(...y))}}let u={};e&&(u=oo(g=>e(g,c),se)||{});let f={...c,...u,...l};return createComponent(o,{...f})}return s}}function os(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 Rn={};Q(Rn,{animationFramePromise:()=>gs,clearInterval:()=>ds,clearTimeout:()=>ps,grabTimers:()=>hs,pauseTimers:()=>as,releaseTimers:()=>ms,resetTimers:()=>cs,resumeTimers:()=>us,setInterval:()=>fs,setTimeout:()=>ls,timeoutPromise:()=>ys});var it,$t=-1,re=[],Re=-1,Ne={},Xt=window.setTimeout,is=window.setInterval,st=window.clearTimeout,io=window.clearInterval;function ss(e){let t=0,n=re.length-1;for(;t<=n;){let o=Math.floor((t+n)/2),s=re[o][le];if(s===e)return[o,re[o]];s<e?t=o+1:n=o-1}let r=[];return r[le]=e,re.splice(t,0,r),[t,r]}function An(e,t=!1){let[n,r]=ss(e[le]);return t||($t++,Ne[$t]=e,e[ue]=$t),r.push(e),re[0][0]===e&&(st(Re),Re=Xt(In,e[Qe])),$t}function In(){let e=Date.now(),t=0,n=re[t];for(;n&&n[le]-e<=0;){for(let r of n)r[wt]?delete Ne[r[ue]]:(r[xt](...r[_t]),r[bt]?(r[le]=Date.now()+r[Qe],An(r,!0)):delete Ne[r[ue]]);t++,n=re[t]}re.splice(0,t),re.length>0&&(st(Re),Re=Xt(In,re[0][le]-e))}function cs(){st(Re),it=void 0,$t=-1,re=[],Re=-1,Ne={}}function as(){st(Re),it=Date.now()}function us(){if(it){if(re.length>0){let e=Date.now();it-=e;for(let t of re)t[le]-=it;Re=Xt(In,re[0][le]-e)}it=void 0}}function ls(e,t,...n){return An({[xt]:e,[Qe]:t,[le]:Date.now()+t,[bt]:!1,[_t]:n})}function fs(e,t,...n){return An({[xt]:e,[Qe]:t,[le]:Date.now()+t,[bt]:!0,[_t]:n})}function ps(e){Ne[e]?Ne[e][wt]=!0:st(e)}function ds(e){Ne[e]?Ne[e][wt]=!0:io(e)}function hs(){globalThis.setTimeout=Lilact.setTimeout,globalThis.setInterval=Lilact.setInterval,globalThis.clearTimeout=Lilact.clearTimeout,globalThis.clearInterval=Lilact.clearInterval}function ms(){globalThis.setTimeout=Xt,globalThis.setInterval=is,globalThis.clearTimeout=st,globalThis.clearInterval=io}function ys(e=0,t=Lilact){let n,r,o,s=new Promise((c,a)=>{r=c,o=a,n=t.setTimeout(()=>{r()},e)});return s.proceed=()=>{t.clearTimeout(n),r()},s.cancel=()=>{t.clearTimeout(n),o()},s}function gs(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}var Nn={};Q(Nn,{blocks_info:()=>Cs,error:()=>$s,globalErrorHandler:()=>ks,scanBlockLabels:()=>Ss,traceError:()=>co});function Gt(e){let t=Number(e);return Number.isFinite(t)?t:null}function bs(e){if(e instanceof Error)return e;if((e==null?void 0:e.error)instanceof Error)return e.error;let t=new Error((e==null?void 0: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 so(e){return(e==null?void 0:e.name)==="JSXParserError"}function ws(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 xs(e){var r,o,s,c;let t=Gt((o=(r=e==null?void 0:e.lineNumber)!=null?r:e==null?void 0:e.lineno)!=null?o:e==null?void 0:e.line),n=Gt((c=(s=e==null?void 0:e.columnNumber)!=null?s:e==null?void 0:e.colno)!=null?c:e==null?void 0:e.column);return{line:t==null?null:Math.max(0,t-1),column:n==null?null:Math.max(0,n-1)}}function _s(e){let t=e==null?void 0:e.lilact_trace;return Array.isArray(t)?t[0]:t}function Es(e){var n,r;let t=_s(e);return t==null?null:(r=(n=v.blocks_info)==null?void 0:n.labels)==null?void 0:r[t]}function Ts(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 co(e,t){var g,d,y,m,h,w;if(e!=null&&e.isTraced)return e;let n=bs(e),r=n.lilact_source,o=so(n)?null:ws(n.stack),s=so(n)?{line:Gt(n.lineNumber),column:Gt(n.columnNumber)}:xs(n),c=(r==null?void 0:r.path)||(o==null?void 0:o.path)||n.fileName||t||null,a=(d=(g=o==null?void 0:o.line)!=null?g:s.line)!=null?d:null,l=(m=(y=o==null?void 0:o.column)!=null?y:s.column)!=null?m:null,u={fileName:c,lineNumber:a,columnNumber:l,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},f=c&&qe[c];if(f){let E=Ts(f.mappings,u.lineNumber,u.columnNumber);u.lineNumber=E.line,u.columnNumber=E.column}let p=Es(n);return p&&(u.lineNumber==null||u.columnNumber==null||!u.fileName)&&(u.fileName||(u.fileName=p.path||t||null),(h=u.lineNumber)!=null||(u.lineNumber=p.line),(w=u.columnNumber)!=null||(u.columnNumber=p.col),u.label=p.desc),v.error=u,u}function Yt(e){return String(e!=null?e:"").replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}function vs(e,t){var r,o,s,c;if(!e||!Number.isFinite(t))return null;let n=String((r=e.code)!=null?r:"").split(/\r?\n/);return{before:(o=n[t-1])!=null?o:"",current:(s=n[t])!=null?s:"",after:(c=n[t+1])!=null?c:""}}function ks(e){var u,f;let t=(e==null?void 0:e.error)instanceof Error?e.error:(e==null?void 0:e.reason)!==void 0?e.reason:e,n=co(t,(e==null?void 0:e.fileName)||null),r=vs(qe[n.fileName],n.lineNumber),o=pn(`
60
- background: linear-gradient(135deg, #fff2f2d4, #ffffffd4);
61
- backdrop-filter: blur(10px);
57
+ var Qn=Object.defineProperty;var wo=(e,t,n)=>t in e?Qn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var z=(e,t)=>{for(var n in t)Qn(e,n,{get:t[n],enumerable:!0})};var Q=(e,t,n)=>wo(e,typeof t!="symbol"?t+"":t,n);var en={};z(en,{__DO_NOT_USE__ActionTypes:()=>ct,applyMiddleware:()=>So,bindActionCreators:()=>To,combineReducers:()=>ko,compose:()=>nr,createStore:()=>Qt,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",er=xo,Zt=()=>Math.random().toString(36).substring(7).split("").join("."),_o={INIT:`@@redux/INIT${Zt()}`,REPLACE:`@@redux/REPLACE${Zt()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Zt()}`},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 Qt(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(Qt)(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:ct.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)}},[er](){return this}}}return d({type:ct.INIT}),{dispatch:d,subscribe:p,getState:u,replaceReducer:y,[er]:m}}function Eo(e,t,n){return Qt(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(U(12));if(typeof n(void 0,{type:ct.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 tr(e,t){return function(...n){return t(e.apply(this,n))}}function To(e,t){if(typeof e=="function")return tr(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]=tr(o,t))}return n}function nr(...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=nr(...a)(o.dispatch),{...o,dispatch:s}}}function Co(e){return zt(e)&&"type"in e&&typeof e.type=="string"}var an={};z(an,{cache:()=>ei,css:()=>cn,cx:()=>Ho,flush:()=>Yo,getRegisteredStyles:()=>Zo,hydrate:()=>Go,injectGlobal:()=>ht,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 rr=(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-",at="-moz-",$="-webkit-",St="comm",We="rule",Be="decl";var or="@import";var Ct="@keyframes";var ir="@layer";var sr=Math.abs,je=String.fromCharCode,cr=Object.assign;function ar(e,t){return P(e,0)^45?(((t<<2^P(e,0))<<2^P(e,1))<<2^P(e,2))<<2^P(e,3):0}function Ot(e){return e.trim()}function tn(e,t){return(e=t.exec(e))?e[0]:e}function O(e,t,n){return e.replace(t,n)}function ut(e,t){return e.indexOf(t)}function P(e,t){return e.charCodeAt(t)|0}function Ie(e,t,n){return e.slice(t,n)}function Y(e){return e.length}function Ve(e){return e.length}function Xe(e,t){return t.push(e),e}function nn(e,t){return e.map(t).join("")}var $t=1,Ye=1,ur=0,G=0,j=0,He="";function lt(e,t,n,r,o,s,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:$t,column:Ye,length:c,return:""}}function Je(e,t){return cr(lt("",null,null,"",null,null,0),e,{length:-e.length},t)}function lr(){return j}function fr(){return j=G>0?P(He,--G):0,Ye--,j===10&&(Ye=1,$t--),j}function H(){return j=G<ur?P(He,G++):0,Ye++,j===10&&(Ye=1,$t++),j}function ce(){return P(He,G)}function ft(){return G}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 At(e){return $t=Ye=1,ur=Y(He=e),G=0,[]}function It(e){return He="",e}function ze(e){return Ot(Ze(G-1,rn(e===91?e+2:e===40?e+1:e)))}function pr(e){for(;(j=ce())&&j<33;)H();return Ge(e)>2||Ge(j)>3?"":" "}function hr(e,t){for(;--t&&H()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return Ze(e,ft()+(t<6&&ce()==32&&H()==32))}function rn(e){for(;H();)switch(j){case e:return G;case 34:case 39:e!==34&&e!==39&&rn(j);break;case 40:e===41&&rn(e);break;case 92:H();break}return G}function dr(e,t){for(;H()&&e+j!==57;)if(e+j===84&&ce()===47)break;return"/*"+Ze(t,G-1)+"*"+je(e===47?e:H())}function mr(e){for(;!Ge(ce());)H();return Ze(e,G)}function br(e){return It(Lt("",null,null,null,[""],e=At(e),0,[0],e))}function Lt(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=H()){case 40:if(m!=108&&P(C,p-1)==58){ut(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+=pr(m);break;case 92:C+=hr(ft()-1,7);continue;case 47:switch(ce()){case 42:case 47:Xe(Io(dr(H(),ft()),t,n),l);break;default:C+="/"}break;case 123*h:a[f++]=Y(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&&Y(C)-p&&Xe(y>32?gr(C+";",r,n,p-1):gr(O(C," ","")+";",r,n,p-2),l);break;case 59:C+=";";default:if(Xe(v=yr(C,t,n,f,u,o,a,S,T=[],k=[],p),s),w===123)if(u===0)Lt(C,t,v,v,T,s,p,a,k);else switch(d===99&&P(C,3)===110?100:d){case 100:case 108:case 109:case 115:Lt(e,v,v,r&&Xe(yr(e,v,v,0,0,o,a,S,o,T=[],p),k),o,k,p,a,r?T:k);break;default:Lt(C,v,v,v,[""],k,0,a,k)}}f=u=y=0,h=g=1,S=C="",p=c;break;case 58:p=1+Y(C),y=m;default:if(h<1){if(w==123)--h;else if(w==125&&h++==0&&fr()==125)continue}switch(C+=je(w),w*h){case 38:g=u>0?1:(C+="\f",-1);break;case 44:a[f++]=(Y(C)-1)*g,g=1;break;case 64:ce()===45&&(C+=ze(H())),d=ce(),u=p=Y(S=C+=mr(ft())),w++;break;case 45:m===45&&Y(C)==2&&(h=0)}}return s}function yr(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=sr(h=c[m])),S=e;g<y;++g)(S=Ot(h>0?d[g]+" "+w:O(w,/&\f/g,d[g])))&&(l[_++]=S);return lt(e,t,n,o===0?We:a,l,f,u)}function Io(e,t,n){return lt(e,t,n,St,je(lr()),Ie(e,2,-2),0)}function gr(e,t,n,r){return lt(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 wr(e,t,n,r){switch(e.type){case ir:if(e.children.length)break;case or:case Be:return e.return=e.return||e.value;case St:return"";case Ct:return e.return=e.value+"{"+De(e.children,r)+"}";case We:e.value=e.props.join(",")}return Y(n=De(e.children,r))?e.return=e.value+"{"+n+"}":""}function xr(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 _r(e){return function(t){t.root||(t=t.return)&&e(t)}}function Er(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);)H();return Ze(t,G)},Ro=function(t,n){var r=-1,o=44;do switch(Ge(o)){case 0:o===38&&ce()===12&&(n[r]=1),t[r]+=Lo(G-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=H());return t},No=function(t,n){return It(Ro(At(t),n))},vr=new WeakMap,Po=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&&!vr.get(r))&&!o){vr.set(t,!0);for(var s=[],c=No(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 kr(e,t){switch(ar(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+at+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(Y(e)-1-t>6)switch(P(e,t+1)){case 109:if(P(e,t+4)!==45)break;case 102:return O(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+at+(P(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ut(e,"stretch")?kr(O(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(P(e,t+1)!==115)break;case 6444:switch(P(e,Y(e)-3-(~ut(e,"!important")&&10))){case 107:return O(e,":",":"+$)+e;case 101:return O(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(P(e,14)===45?"inline-":"")+"box$3$1"+$+"$2$3$1"+q+"$2box$3")+e}break;case 5936:switch(P(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=kr(t.value,t.length);break;case Ct:return De([Je(t,{value:O(t.value,"@","@"+$)})],o);case We:if(t.length)return nn(t.props,function(s){switch(tn(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return De([Je(t,{props:[O(s,/:(read-\w+)/,":"+at+"$1")]})],o);case"::placeholder":return De([Je(t,{props:[O(s,/:(plac\w+)/,":"+$+"input-$1")]}),Je(t,{props:[O(s,/:(plac\w+)/,":"+at+"$1")]}),Je(t,{props:[O(s,/:(plac\w+)/,q+"input-$1")]})],o)}return""})}},Mo=[Do],Tr=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=[Po,jo];{var u,p=[wr,_r(function(h){u.insert(h)})],d=xr(f.concat(o,p)),y=function(_){return De(br(_),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 rr({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 Sr(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 Cr={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,Ir=function(t){return t.charCodeAt(1)===45},Or=function(t){return t!=null&&typeof t!="boolean"},on=Er(function(e){return Ir(e)?e:e.replace(qo,"-$&").toLowerCase()}),$r=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 Cr[t]!==1&&!Ir(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 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,pt(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+=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]+"}":Or(a)&&(r+=on(s)+":"+$r(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++)Or(c[l])&&(r+=on(s)+":"+$r(s,c[l])+";");else{var f=pt(e,t,c);switch(s){case"animation":case"animationName":{r+=on(s)+":"+f+";";break}default:r+=s+"{"+f+"}"}}}}return r}var Ar=/label:\s*([^\s;{]+)\s*(;|$)/g,we;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="";we=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]}Ar.lastIndex=0;for(var f="",u;(u=Ar.exec(o))!==null;)f+="-"+u[1];var p=Sr(o)+f;return{name:p,styles:o,next:we}}var Bo=!0;function sn(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 Nr(e,t,n){var r=[],o=sn(e,r,n);return r.length<2?n:o+t(r)}var Pr=function(t){var n=Tr(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=Rt(f,n.registered,void 0);return Lr(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=Rt(f,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,f=new Array(l),u=0;u<l;u++)f[u]=arguments[u];var p=Rt(f,n.registered);Rr(n,p)},c=function(){for(var l=arguments.length,f=new Array(l),u=0;u<l;u++)f[u]=arguments[u];return Nr(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:sn.bind(null,n.registered),merge:Nr.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=Pr({key:"css"}),Yo=xe.flush,Go=xe.hydrate,Ho=xe.cx,Jo=xe.merge,Zo=xe.getRegisteredStyles,ht=xe.injectGlobal,zo=xe.keyframes,cn=xe.css,Qo=xe.sheet,ei=xe.cache;var dn={};z(dn,{Children:()=>Me,Fragment:()=>jr,Portal:()=>Dr,deepEqual:()=>fn,eval_num:()=>ci,findDOMNode:()=>ni,forwardRef:()=>pn,getComponentByPointer:()=>ri,id_num:()=>si,isAsync:()=>oi,isClass:()=>hn,isEmpty:()=>B,isError:()=>ii,isThenable:()=>Nt,isValidComponent:()=>et,isValidElement:()=>ti,shallowEqual:()=>ie,toBool:()=>Pt});var ln={};z(ln,{ARGS:()=>bt,CALLBACK:()=>gt,CHILD_CLASS_ADDENDUM:()=>le,CLEARED:()=>Se,COMPONENT:()=>Qe,CORE:()=>x,DUE:()=>fe,IDX:()=>F,INTERVAL:()=>yt,IS_ZOMBIE:()=>un,LAZY:()=>dt,MEMOIZED:()=>Te,REPEAT:()=>mt,TEXT:()=>W});var[x,Qe,W,un,F,le,Te,dt,fe,mt,Se,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 _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 jr({children:e}){return e}jr.displayName="Fragment";function Dr({children:e,view:t}){return this[x].portal=t,e}Dr.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}},pn=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 B(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 fn(e,t){return _e(e)!==_e(t)?!1:_e(e)==="array"?e.length!==t.length?!1:e.every((n,r)=>fn(n,t[r])):_e(e)==="object"?Object.keys(e).length!==Object.keys(t).length?!1:Object.keys(e).every(n=>fn(e[n],t[n])):_e(e)==="date"?e.getTime()===t.getTime():e===t}function hn(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 Nt(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 J(e){return e==null}function V(e){return e||"<<anonymous>>"}function ai(e){return e&&(e.displayName||e.name)||"Unknown"}function Mr(e){return e==null||e===!1||e===!0||typeof e=="string"||typeof e=="number"||et(e)?!0:Array.isArray(e)?e.every(Mr):!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(J(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 \`${V(s)}\`, expected \`${u}\`.`)};return t.isRequired=function(r,o,s,c,a){let l=r[o];return J(l)?new Error(`The ${c} \`${a}\` is marked as required in \`${V(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=>Mr(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(J(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 \`${V(u)}\`, expected one of [${s.map(String).join(", ")}] (received type \`${m}\`).`)};return c.isRequired=function(l,f,u,p,d){return J(l[f])?new Error(`The ${p} \`${d}\` is marked as required in \`${V(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(J(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 \`${V(u)}\` (none of the allowed types matched).`)};return c.isRequired=function(l,f,u,p,d){return J(l[f])?new Error(`The ${p} \`${d}\` is marked as required in \`${V(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(J(y))return null;if(!Array.isArray(y))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof y}\` supplied to \`${V(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 J(l[f])?new Error(`The ${p} \`${d}\` is marked as required in \`${V(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(J(y))return null;if(typeof y!="object"||y===null||Array.isArray(y))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof y}\` supplied to \`${V(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 J(l[f])?new Error(`The ${p} \`${d}\` is marked as required in \`${V(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(J(y))return null;if(typeof y!="object"||y===null||Array.isArray(y))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof y}\` supplied to \`${V(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 \`${V(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(J(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 J(l[f])?new Error(`The ${p} \`${d}\` is marked as required in \`${V(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 J(d)||d instanceof o?null:new Error(`Invalid ${u} \`${p}\` supplied to \`${V(f)}\`: expected instance of \`${ai(o)}\`.`)};return s.isRequired=function(a,l,f,u,p){return J(a[l])?new Error(`The ${u} \`${p}\` is marked as required in \`${V(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){if(!o)return;let l=o,f=V(a),u=Object.keys(l);for(let p=0;p<u.length;p++){let d=u[p],y=l[d];if(typeof y!="function")continue;let h=y(s||{},d,f,c,d);if(h instanceof Error){let _=`${f}|${c}|${d}|${h.message}`;if(n.has(_))continue;n.add(_),typeof console<"u"&&console.error&&console.error(`Warning: Failed prop type: ${h.message}`)}}},e}var tt=li();var gn={};z(gn,{Component:()=>Le,HTMLComponent:()=>xt,RootComponent:()=>jt,boolean_html_attributes_set:()=>Vr,capture_events_set:()=>Mt,cloneComponent:()=>Kr,cloneElement:()=>gi,createComponent:()=>yn,createElement:()=>xi,createPortal:()=>yi,createRoot:()=>Fr,current_component:()=>_i,effect_timeout:()=>$i,events_set:()=>Dt,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",mn=class{constructor(t){Q(this,"owner");Q(this,"current_map",new Map);Q(this,"new_map",new Map);Q(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}},wt=class{constructor(t,n){Q(this,"component");Q(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(this.entity?.propTypes?tt.checkPropTypes(this.entity.propTypes,this.props,"prop",this.entity.name):this.component?.propTypes&&tt.checkPropTypes(this.component.propTypes,this.props,"prop",this.component.name),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.constructor.contextTypes&&tt.checkPropTypes(this.component.constructor.contextTypes,this.context,"context",this.entity.name)),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[W]===void 0?(l.container=this.element?this:this.container,l.apply(a.props)):l.element?l[W]!==a[W]&&(l.element.textContent=a[W],l[W]=a[W]):(l.element=document.createTextNode(a[W]),l[W]=a[W])}}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)||(Dt.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(Dt.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(Mt.hasOwnProperty(o)){let s=Mt[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=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?.[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][un]&&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[W]===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 xt(r,e.props);else{if(hn(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 wt&&(n[x].parent=t),n}function hi(e,t){try{return e.cache??(e.cache=new mn(e)),t=e.cache.pick(t[W]===void 0?t?.props?.key:":text:",()=>t[W]!==void 0||t instanceof wt?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[W]!==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 wt(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)}},xt=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}},jt=class extends xt{constructor(n,r){super(":root:",r);Q(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 yn(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]={[W]: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 jt(e,{children:[n]}),E.roots.add(t[x]),t.forceUpdate(),t},unmount(){t&&(t.cleanup(),e.innerHTML="")}}}function yi(e,t){return yn(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=yn,_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"]),Dt=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"]),Mt={};for(let e of Dt)Mt[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 wn={};z(wn,{createContext:()=>nt,startTransition:()=>Mi,useActionState:()=>Ni,useCallback:()=>he,useContext:()=>rt,useDebugValue:()=>Di,useDeferredValue:()=>ji,useEffect:()=>te,useHook:()=>se,useId:()=>Ii,useImperativeHandle:()=>bn,useInsertionEffect:()=>Ri,useLayoutEffect:()=>Re,useLocalStorage:()=>Li,useMemo:()=>_t,useReducer:()=>Pi,useRef:()=>N,useState:()=>ee,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 ee(e){let t=se();return B(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!B(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 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 Ii(e="N"){let t=se();return B(t)&&(t.id=e+E.id_num++),t.id}function Xr(){let e=se();return B(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)),B(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 N(e=null){let t=se();return B(t)&&(t.current=e),t}async function Re(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();!B(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 te(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();!B(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 Ri(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();!B(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 _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=se();return!B(n)&&t!==void 0&&n?.deps!==void 0&&ie(t,n.deps)||(n.deps=t,n.value=e()),n.value}function Ni(e,t){let n=se(),[r,o]=Xr();return B(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 Pi(e,t,n){let r=se();return B(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 bn(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){console.log(t(e))}function Mi(e){e()}var xn={};z(xn,{lazy:()=>Wi,require:()=>Hr,required_scripts:()=>qe,run:()=>ot,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 ot(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,B(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")){ht(t.code),t.loaded=!0;return}return ot(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[dt]||!!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 ot(c.textContent||"",e)}if(n)return E[dt]=!1,r.request?r.request:Ki(e,r);let o=E.resolver?.(e);if(o!=null){if(e.endsWith(".css")){ht(String(o)),r.code=String(o),r.loaded=!0;return}return ot(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,ht(r.code),r.loaded=!0;return}return ot(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[dt]=!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&&ot(e.content)}var vn={};z(vn,{CSSTransition:()=>Zr,SwitchTransition:()=>Xi,Transition:()=>Jr,TransitionGroup:()=>Yi});var _n="unmounted",Ut="exited",Et="entering",vt="entered",En="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=_n),e?this[x].mount_state=o&&!this[x].is_appeared?Et:vt:this[x].mount_state=Ut),te(()=>()=>clearTimeout(this[x].timer),[]),te(()=>{!this[x].is_appeared&&o&&this[x].mount_state===Et&&e&&(s?.(),requestAnimationFrame(()=>{c?.(!this[x].is_appeared),clearTimeout(this[x].timer),this[x].timer=setTimeout(()=>{this[x].mount_state=vt,this.forceUpdate(),this[x].is_appeared=!0,a?.(!this[x].is_appeared)},t)}))},[]),te(()=>{if(e){if(this[x].is_mounted=!0,this[x].mount_state===Et||this[x].mount_state===vt)return;s?.(!this[x].is_appeared),this[x].mount_state=Et,this.forceUpdate(()=>{c?.(!this[x].is_appeared),clearTimeout(this[x].timer),this[x].timer=setTimeout(()=>{this[x].mount_state=vt,this.forceUpdate(),this[x].is_appeared=!0,a?.()},t)})}else{if(this[x].mount_state===_n||this[x].mount_state===En||this[x].mount_state===Ut)return;l?.(),this[x].mount_state=En,this.forceUpdate(()=>{f?.(),clearTimeout(this[x].timer),this[x].timer=setTimeout(()=>{this[x].mount_state=Ut,this.forceUpdate(),u?.(),r&&(this[x].is_mounted=!1,this[x].mount_state=_n,this.forceUpdate())},t)})}},[e,t]),this[x].is_mounted?(d&&(this[x].mount_state===Et?this[x].is_appeared?this[x][le]=d.appearActive:this[x][le]=d.enterActive:this[x].mount_state===vt?this[x].is_appeared?this[x][le]=d.appearDone:this[x][le]=d.enterDone:this[x].mount_state===En?this[x][le]=d.exitActive:this[x].mount_state===Ut&&(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=_t(()=>Me.toArray(e),[e]),[m,h]=ee(null),[_,g]=ee(!1),[w,S]=ee(!0),T=N(t),k=N(t),v=N(m);Re(()=>{k.current=t},[t]),Re(()=>{v.current=m},[m]),Re(()=>{let R=T.current;R!==t&&(T.current=t,h(R),n==="out-in"?(S(!1),g(!0)):(S(!0),g(!1)))},[t,n]);let C=R=>(Ce,ne)=>{typeof l=="function"&&l(Ce,ne),R===v.current&&(h(null),n==="out-in"&&(g(!1),S(!0)),n==="in-out"&&g(!1))},L=R=>(Ce,ne)=>{typeof p=="function"&&p(Ce,ne),n==="in-out"&&R===k.current&&v.current!=null&&g(!0)};return createComponent("div",{style:{position:"relative"}},y.map((R,Ce)=>{let ne=R?.props?.key||Ce,kt=ne===t?w:ne===m?!_:!1;return createComponent(Zr,{...d,key:ne,in:kt,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}},R))}))}function Yi({children:e}){return e}var kn={};z(kn,{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 qt=[],Gi=10,Hi=["mouse","pen","touch"];function zr(e,t){let n=qt.length?qt.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,qt.length<Gi&&qt.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 Sn={};z(Sn,{Provider:()=>Zi,combineReducers:()=>es,connect:()=>Qi,useDispatch:()=>zi,useSelector:()=>to,useStore:()=>Ft});var Tn;function Zi({store:e,children:t}){return Tn??(Tn=nt(null)),createComponent(Tn.Provider,{value:e},t)}function Ft(){let e=rt(Tn);if(!e)throw new Error("Could not find Redux store in context. <Provider> is missing.");return e}function zi(){return Ft().dispatch}function to(e,t=(n,r)=>n===r){let n=Ft(),r=N(),o=N(e);o.current=e;let[s,c]=ee(()=>e(n.getState()));return r.current=s,te(()=>{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=Ft(),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 An={};z(An,{animationFramePromise:()=>hs,clearInterval:()=>us,clearTimeout:()=>as,grabTimers:()=>ls,pauseTimers:()=>os,releaseTimers:()=>fs,resetTimers:()=>rs,resumeTimers:()=>is,setInterval:()=>cs,setTimeout:()=>ss,timeoutPromise:()=>ps});var Ne,Cn=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 On(){if(Ne!==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 $n(e,t=!1){let[n,r]=ts(e[fe]);return t||(Cn+=1,e[F]=Cn,Ee.set(e[F],e)),r.push(e),n===0&&Ne===void 0&&On(),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[gt](...o[bt])}catch(s){r??(r=s)}if(o[Se]){Ee.delete(o[F]);continue}Ee.get(o[F])===o&&(o[mt]?(o[fe]=Date.now()+o[yt],$n(o,!0)):Ee.delete(o[F]))}On(),r!==void 0&&Lilact._setTimeout(()=>{throw r},0)}function rs(){Lilact._clearTimeout(Fe);for(let e of Ee.values())e[Se]=!0;Ne=void 0,Cn=-1,de=[],Fe=-1,Ee=new Map}function os(){Ne===void 0&&(Lilact._clearTimeout(Fe),Fe=-1,Ne=Date.now())}function is(){if(Ne===void 0)return;let e=Date.now()-Ne;for(let t of de)t[fe]+=e;Ne=void 0,On()}function ss(e,t=0,...n){let r=Math.max(0,Number(t)||0);return $n({[gt]:e,[yt]:r,[fe]:Date.now()+r,[mt]:!1,[Se]:!1,[bt]:n})}function cs(e,t=0,...n){let r=Math.max(0,Number(t)||0);return $n({[gt]:e,[yt]:r,[fe]:Date.now()+r,[mt]:!0,[Se]:!1,[bt]: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 In={};z(In,{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 Wt(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=Wt(e?.lineNumber??e?.lineno??e?.line),n=Wt(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:Wt(n.lineNumber),column:Wt(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 Kt(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=cn(`
59
+ background: #fff;
60
+ text-shadow: 0 0 3px #fff;
61
+ -backdrop-filter: blur(20px);
62
62
  border: 1px solid rgba(255,255,255,.25);
63
63
  border-radius: 5px;
64
64
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
@@ -71,16 +71,17 @@ var nr=Object.defineProperty;var To=(e,t,n)=>t in e?nr(e,t,{enumerable:!0,config
71
71
  }
72
72
 
73
73
  code {
74
- border: 1px solid #0003;
74
+ background: #0001;
75
75
  overflow: auto;
76
76
  padding: 10px;
77
77
  display: block;
78
+ border-radius: 3px;
78
79
  }
79
- `),s=document.createElement("dialog");s.className=o;let c=n.fileName?`At ${Yt(n.fileName)}`:"",a=Number.isFinite(n.lineNumber)?`: Line ${n.lineNumber+1}`:"",l=((u=n._error)==null?void 0:u.componentStackLog)||((f=n._error)==null?void 0:f.componentStack)||"";if(s.innerHTML=`
80
+ `),s=document.createElement("dialog");s.className=o;let c=n.fileName?`At ${Kt(n.fileName)}`:"",a=Number.isFinite(n.lineNumber)?`: Line ${n.lineNumber+1}`:"",l=n._error?.componentStackLog||n._error?.componentStack||"";if(s.innerHTML=`
80
81
  <h3><red>Error!</red></h3>
81
82
  <b>${c}${a}</b><br><br>
82
- <b>${Yt(n.name)}</b>:
83
- <span>${Yt(n.message)}</span>
83
+ <b>${Kt(n.name)}</b>:
84
+ <span>${Kt(n.message)}</span>
84
85
  <br><br>
85
86
 
86
87
  ${r?"<code><pre></pre><red><pre></pre></red><pre></pre></code>":""}
@@ -89,39 +90,40 @@ var nr=Object.defineProperty;var To=(e,t,n)=>t in e?nr(e,t,{enumerable:!0,config
89
90
  <br>
90
91
  Component Stack:
91
92
  <br>
92
- <code><pre>${Yt(l)}</pre></code>
93
+ <code><pre>${Kt(l)}</pre></code>
93
94
  `:""}
94
- `,r){let p=s.querySelectorAll("pre");p[0].innerText=r.before,p[1].innerText=r.current,p[2].innerText=r.after}return document.body.appendChild(s),typeof s.showModal=="function"?s.showModal():s.setAttribute("open",""),n}function Ss(e,t){for(let n of String(e).matchAll(/LILACTBLOCK(\d+):(\d+),(\d+):([^*]+)\*\//gm))v.blocks_info.labels[n[1]]={path:t,line:Number(n[2]),col:Number(n[3]),desc:n[4]}}var Cs={counter:0,labels:{}},$s=null;var Un={};Q(Un,{HashRouter:()=>As,Link:()=>Is,NavLink:()=>Rs,Route:()=>Ls,Routes:()=>ao,useLocation:()=>Dn,useNavigate:()=>Mn});var Ln=nt(null),Pn=nt({params:{}}),jn=e=>typeof e=="string"?e:(e.pathname||"")+(e.search||"")+(e.hash||""),Os=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function As({children:e,basename:t=""}){let n=()=>{var y;let a=(window.location.hash||"#/").slice(1),l=new RegExp("^"+Os(t)),u=a.replace(l,"")||"/",[f,p]=u.split("#"),[g,d=""]=f.split("?");return{pathname:g||"/",search:d?"?"+d:"",hash:p?"#"+p:"",state:(y=history.state)==null?void 0:y.__state}},[r,o]=te(n);ne(()=>{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=me((c,{replace:a=!1,state:l}={})=>{if(typeof c=="number")return new Promise(p=>{let g=!1,d=h=>{g||(g=!0,window.removeEventListener("popstate",y),window.removeEventListener("hashchange",m),h==null||h(),p())},y=()=>d(()=>o(n())),m=()=>d(()=>o(n()));window.addEventListener("popstate",y,{once:!0}),window.addEventListener("hashchange",m,{once:!0}),setTimeout(()=>d(()=>o(n())),0),history.go(c)});let u=jn(c),f="#"+(t+u);a?history.replaceState({__state:l},"",f):history.pushState({__state:l},"",f),o(n())},[t]);return createComponent(Ln.Provider,{value:{location:r,navigate:s,basename:t}},e)}function Dn(){let e=rt(Ln);if(!e)throw new Error("useLocation must be used inside a Router");return e.location}function Mn(){let e=rt(Ln);if(!e)throw new Error("useNavigate must be used inside a Router");return e.navigate}function Is({to:e,replace:t=!1,state:n,onClick:r,target:o,download:s,className:c,style:a,children:l,...u}){let f=Mn(),p="#"+jn(e);function g(d){r&&r(d),!(d.defaultPrevented||d.button!==0||o&&o!=="_self"||d.metaKey||d.altKey||d.ctrlKey||d.shiftKey)&&(d.preventDefault(),f(e,{replace:t,state:n}))}return createComponent("a",{...u,href:p,onClick:g,target:o,download:s,className:c,style:a},l)}function Ht(e){return e&&e.replace(/\/+$/,"")||"/"}function Rs({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,...g}){let d=Mn(),y=Dn(),m=typeof e=="string"?e.split("?")[0].split("#")[0]:e.pathname||"/",h=y.pathname||"/",w=t?Ht(h)===Ht(m):Ht(h).startsWith(Ht(m)),_=[typeof r=="function"?r({isActive:w}):r,w?n:null].filter(Boolean).join(" ")||void 0,T=typeof s=="function"?s({isActive:w}):s,$=w?{...T||{},...o||{}}:T,S="#"+jn(e);function k(C){p&&p(C),!(C.defaultPrevented||C.button!==0||C.metaKey||C.altKey||C.ctrlKey||C.shiftKey)&&(C.preventDefault(),d(e,{replace:l,state:u}))}return createComponent("a",{...g,href:S,onClick:k,target:c,download:a,className:_,style:$,"aria-current":w?"page":void 0},typeof f=="function"?f({isActive:w}):f)}function Ns(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 Ps(e,t){if(e==null)return{matched:!0,params:{}};let{regex:n,paramNames:r}=Ns(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 ao({children:e}){var o;let n=Dn().pathname||"/",r=Me.toArray(e);for(let s=0;s<r.length;s++){let c=r[s],a=c.props.path===void 0?null:c.props.path,l=(o=c.props.element)!=null?o:null,u=c.props.children,{matched:f,params:p}=Ps(a,n);if(f)return l?createComponent(Pn.Provider,{value:{params:p}},l):u?createComponent(Pn.Provider,{value:{params:p}},createComponent(ao,{},u)):createComponent(Pn.Provider,{value:{params:p}},createComponent("div",{}))}return null}var Fn={};Q(Fn,{DragHandle:()=>uo,ErrorBoundary:()=>qn,Spinner:()=>Ds,SplitPane:()=>Ms,Suspense:()=>Zt});var{css:va,cx:js}=yt;function Ds({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 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 Dn={};z(Dn,{HashRouter:()=>Cs,Link:()=>Os,NavLink:()=>$s,Route:()=>Ls,Routes:()=>oo,useLocation:()=>Pn,useNavigate:()=>jn});var Rn=nt(null),Ln=nt({params:{}}),Nn=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]=ee(n);te(()=>{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=Nn(c),u="#"+(t+f);a?history.replaceState({__state:l},"",u):history.pushState({__state:l},"",u),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 jn(){let e=rt(Rn);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=jn(),p="#"+Nn(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 Bt(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=jn(),m=Pn(),h=typeof e=="string"?e.split("?")[0].split("#")[0]:e.pathname||"/",_=m.pathname||"/",g=t?Bt(_)===Bt(h):Bt(_).startsWith(Bt(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="#"+Nn(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=Pn().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(Ln.Provider,{value:{params:u}},a):l?createComponent(Ln.Provider,{value:{params:u}},createComponent(oo,{},l)):createComponent(Ln.Provider,{value:{params:u}},createComponent("div",{}))}return null}var Un={};z(Un,{DragHandle:()=>io,ErrorBoundary:()=>Mn,Spinner:()=>Rs,SplitPane:()=>Ns,Suspense:()=>Xt});function Rs({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
96
  @keyframes ddSpinnerSpin { to { transform: rotate(360deg); } }
96
- `))}var qn=class extends Ae{constructor(){super(...arguments);ee(this,"displayName","ErrorBoundary");ee(this,"state",{hasError:!1,error:null});ee(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}},Zt=class extends Ae{constructor(n){super(n);ee(this,"displayName","Suspense");this.state={showingFallback:!1},this._pending=new Set,this._delayTimer=null,this._minShowTimer=null,this._fallbackShownAt=0}static getDerivedStateFromError(n){if(Mt(n))return null;throw n}componentDidCatch(n,r){Mt(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)}};ee(Zt,"defaultProps",{minDelay:200,minShowTime:300});function uo({onDelta:e,onStart:t,onEnd:n,style:r,className:o,children:s,data:c}){let a=P(null),l=P(0),u=P(0),f=P(0),p=P(0),g=P(!1),[d,y]=te(!1),m=me(()=>{a.current=null,g.current=!1,l.current=0,u.current=0,f.current=0,p.current=0,y(!1)},[]),h=me((S,k)=>{let C=S-l.current,O=k-u.current;return{dx:C,dy:O}},[]),w=me((S="up")=>{g.current&&(n==null||n(S),m())},[n,m]),E=me(S=>{if(!(S.button!=null&&S.button!==0)){g.current=!0,a.current=S.pointerId,l.current=S.clientX,u.current=S.clientY,f.current=S.clientX,p.current=S.clientY,y(!0),t==null||t(c);try{S.currentTarget.setPointerCapture(S.pointerId)}catch(k){}}},[t]),_=me(S=>{if(!g.current||a.current!==S.pointerId)return;let{dx:k,dy:C}=h(S.clientX,S.clientY);e==null||e(k,C,c),f.current=S.clientX,p.current=S.clientY},[h,e]),T=me(S=>{a.current===S.pointerId&&w("up",c)},[w]),$=me(S=>{a.current===S.pointerId&&w("cancel",c)},[w]);return createComponent("div",{role:"button",tabIndex:0,style:{...r,touchAction:"none"},className:js(o,d?"dragging":""),onPointerDown:E,onPointerMove:_,onPointerUp:T,onPointerCancel:$},s)}var Ms=yn(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:g,splitterStyle:d,splitterChild:y,children:m},h){let w=P(null),E=P({w:0,h:0}),[_,T]=te(t==="vertical"?"vertical":"horizontal"),$=P(_),[S,k]=te(r),C=P(S),O=P(void 0),X=P(l);ne(()=>{X.current=l},[l]),$.current=_,ne(()=>{C.current=S},[S]),Ie(()=>{T(t==="vertical"?"vertical":"horizontal")},[t]);let q=(A,N,we,fe)=>Us(A,o,s,N==="vertical"?fe:we,c),ge=vt(()=>{let A=n==null?S:n,{w:N,h:we}=E.current;return(t==="vertical"?we>0:N>0)?q(A,$.current,N,we):A},[n,S,o,s,c,t]);ne(()=>{O.current=ge},[ge]);let Se=A=>{let N=$.current,{w:we,h:fe}=E.current;if(N==="vertical"?fe<=0:we<=0){n==null&&k(A),a==null||a(A);return}let z=q(A,N,we,fe);n==null&&k(z),O.current=z,a==null||a(z)};En(h,()=>({setPosition:Se,setMode:A=>T(A==="vertical"?"vertical":"horizontal"),getPosition:()=>{var A;return(A=O.current)!=null?A:ge},getMode:()=>$.current}));let Ot=P(!1);Ie(()=>{let A=w.current;if(!A)return;let N=new ResizeObserver(we=>{var tr;let fe=A.getBoundingClientRect(),z=E.current,oe={w:fe.width,h:fe.height};E.current=oe;let at=$.current,Eo=at==="vertical"?z.h>0:z.w>0,Qn=at==="vertical"?oe.h>0:oe.w>0;if(!Ot.current&&Qn){Ot.current=!0;let ie=n==null?C.current:n,Y=q(ie,at,oe.w,oe.h);n==null&&k(Y),O.current=Y,a==null||a(Y);return}if(!Eo||!Qn)return;let Ce=(tr=O.current)!=null?tr:ge,er=X.current,$e=c;if(er==="fixFirst")if(at==="vertical"){let ie=z.h-$e,Y=oe.h-$e;if(ie>0&&Y>0){let pe=Ce*ie/Y;Math.abs(pe-Ce)>Jt&&Se(pe)}}else{let ie=z.w-$e,Y=oe.w-$e;if(ie>0&&Y>0){let pe=Ce*ie/Y;Math.abs(pe-Ce)>Jt&&Se(pe)}}else if(er==="fixSecond")if(at==="vertical"){let ie=z.h-$e,Y=oe.h-$e;if(ie>0&&Y>0){let pe=1-(1-Ce)*ie/Y;Math.abs(pe-Ce)>Jt&&Se(pe)}}else{let ie=z.w-$e,Y=oe.w-$e;if(ie>0&&Y>0){let pe=1-(1-Ce)*ie/Y;Math.abs(pe-Ce)>Jt&&Se(pe)}}});return N.observe(A),()=>N.disconnect()},[o,s,c,a,n]);let Pe=P(ge),[Gn,Hn]=te(!1);ne(()=>{Gn||(Pe.current=ge)},[ge,Gn]);let go=()=>{var A;Hn(!0),Pe.current=(A=O.current)!=null?A:ge},bo=(A,N)=>{let we=$.current,{w:fe,h:z}=E.current;if(we==="horizontal"){let oe=fe>0?fe:1;Se(Pe.current+A/oe)}else{let oe=z>0?z:1;Se(Pe.current+N/oe)}},wo=()=>Hn(!1),Jn=Me.toArray(m),xo=Jn[0],_o=Jn[1],Te=ge,{w:Zn,h:zn}=E.current,be={position:"absolute",top:0,left:0,overflow:"auto",...p||{}},ve={position:"absolute",bottom:0,right:0,overflow:"auto",...g||{}},Le={background:"rgba(0,0,0,0.08)",boxShadow:"inset 0 0 2px rgba(0,0,0,0.25)",zIndex:1e6,position:"absolute",cursor:_==="horizontal"?"col-resize":"row-resize",touchAction:"none",pointerEvents:"auto",...d||{}};if(_==="horizontal")if(be.bottom=0,ve.top=0,l==="fixFirst"){let A=Zn-c,N=A>0?Te*A:0;be.width=N,ve.left=N+c,Object.assign(Le,{top:0,bottom:0,left:N,width:c})}else if(l==="fixSecond"){let A=Zn-c,N=A>0?(1-Te)*A:0;ve.width=N,be.right=N+c,Object.assign(Le,{top:0,bottom:0,right:N,width:c})}else be.width=`calc(${Te} * (100% - ${c}px))`,ve.left=`calc(${Te} * (100% - ${c}px) + ${c}px)`,Object.assign(Le,{top:0,bottom:0,left:`calc(${Te} * (100% - ${c}px))`,width:c});else if(be.right=0,ve.left=0,l==="fixFirst"){let A=zn-c,N=A>0?Te*A:0;be.height=N,ve.top=N+c,Object.assign(Le,{left:0,right:0,top:N,height:c})}else if(l==="fixSecond"){let A=zn-c,N=A>0?(1-Te)*A:0;ve.height=N,be.bottom=N+c,Object.assign(Le,{left:0,right:0,bottom:N,height:c})}else be.height=`calc(${Te} * (100% - ${c}px))`,ve.top=`calc(${Te} * (100% - ${c}px) + ${c}px)`,Object.assign(Le,{left:0,right:0,top:be.height,height:c});return createComponent("div",{ref:w,className:f,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",...u||{}}},createComponent("div",{style:be},xo),createComponent("div",{style:ve},_o),createComponent(uo,{key:_,onStart:go,onDelta:bo,onEnd:wo,style:Le,className:"splitter"},y))}),Jt=1e-6,Us=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 qs={},fo={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){qs[e]=t,fo[t]=e});function po(...e){if(typeof e=="number")return lo(e);let t="";for(let n=0;n<e.length;n+=1)t+=lo(e[n]);return t}function lo(e){let t="";e<0?e=-e<<1|1:e<<=1;do{let n=e&31;e>>>=5,e>0&&(n|=32),t+=fo[n]}while(e>0);return t}var Qt=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"]),Ks=new Set(["(",")","{","}","[","]","...",".","=>",",",";",":","?","++","--","+","-","*","/","%","**",">>","<<",">>>","<<<","&","|","^","~","==","!=","===","!==",">","<",">=","<=","&&","||","??","?.","=","+=","-=","*=","/=","%=","**=","<<=",">>=",">>>=","&=","|=","^=","??=","&&=","||=","!"]);function Ws(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)?!Qt.has(e):!1}function Bs(e){return/(?:\\u\{[0-9a-fA-F]+\}|\\u[0-9a-fA-F]{4})/g.test(e)?!Qt.has(e):!1}function Vs(e){return/^(?:[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}]*)$/u.test(e)?!Qt.has(e):!1}function Kn(e,t){if(typeof t=="string"){if(e&&e.hasOwnProperty(t))return e[t];if(t.trim()==="")return t.indexOf(`
97
+ `))}var Mn=class extends Le{constructor(){super(...arguments);Q(this,"displayName","ErrorBoundary");Q(this,"state",{hasError:!1,error:null});Q(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}},Xt=class extends Le{constructor(n){super(n);Q(this,"displayName","Suspense");this.state={showingFallback:!1},this._pending=new Set,this._delayTimer=null,this._minShowTimer=null,this._fallbackShownAt=0}static getDerivedStateFromError(n){if(Nt(n))return null;throw n}componentDidCatch(n,r){Nt(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)}};Q(Xt,"defaultProps",{minDelay:200,minShowTime:300});function io({onDelta:e,onStart:t,onEnd:n,style:r,className:o,children:s,data:c}){let a=N(null),l=N(0),f=N(0),u=N(0),p=N(0),d=N(!1),[y,m]=ee(!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,R=C-f.current;return{dx:L,dy:R}},[]),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 Ns=pn(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=N(null),w=N({w:0,h:0}),[S,T]=ee(t==="vertical"?"vertical":"horizontal"),k=N(S),[v,C]=ee(r),L=N(v),R=N(void 0),Ce=N(l);te(()=>{Ce.current=l},[l]),k.current=S,te(()=>{L.current=v},[v]),Re(()=>{T(t==="vertical"?"vertical":"horizontal")},[t]);let ne=(A,I,be,ae)=>Ps(A,o,s,I==="vertical"?ae:be,c),ye=_t(()=>{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]);te(()=>{R.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 Z=ne(A,I,be,ae);n==null&&C(Z),R.current=Z,a?.(Z)};bn(_,()=>({setPosition:Oe,setMode:A=>T(A==="vertical"?"vertical":"horizontal"),getPosition:()=>R.current??ye,getMode:()=>k.current}));let kt=N(!1);Re(()=>{let A=g.current;if(!A)return;let I=new ResizeObserver(be=>{let ae=A.getBoundingClientRect(),Z=w.current,re={w:ae.width,h:ae.height};w.current=re;let st=k.current,bo=st==="vertical"?Z.h>0:Z.w>0,Zn=st==="vertical"?re.h>0:re.w>0;if(!kt.current&&Zn){kt.current=!0;let oe=n??L.current,X=ne(oe,st,re.w,re.h);n==null&&C(X),R.current=X,a?.(X);return}if(!bo||!Zn)return;let $e=R.current??ye,zn=Ce.current,Ae=c;if(zn==="fixFirst")if(st==="vertical"){let oe=Z.h-Ae,X=re.h-Ae;if(oe>0&&X>0){let ue=$e*oe/X;Math.abs(ue-$e)>Vt&&Oe(ue)}}else{let oe=Z.w-Ae,X=re.w-Ae;if(oe>0&&X>0){let ue=$e*oe/X;Math.abs(ue-$e)>Vt&&Oe(ue)}}else if(zn==="fixSecond")if(st==="vertical"){let oe=Z.h-Ae,X=re.h-Ae;if(oe>0&&X>0){let ue=1-(1-$e)*oe/X;Math.abs(ue-$e)>Vt&&Oe(ue)}}else{let oe=Z.w-Ae,X=re.w-Ae;if(oe>0&&X>0){let ue=1-(1-$e)*oe/X;Math.abs(ue-$e)>Vt&&Oe(ue)}}});return I.observe(A),()=>I.disconnect()},[o,s,c,a,n]);let Tt=N(ye),[Xn,Yn]=ee(!1);te(()=>{Xn||(Tt.current=ye)},[ye,Xn]);let po=()=>{Yn(!0),Tt.current=R.current??ye},ho=(A,I)=>{let be=k.current,{w:ae,h:Z}=w.current;if(be==="horizontal"){let re=ae>0?ae:1;Oe(Tt.current+A/re)}else{let re=Z>0?Z:1;Oe(Tt.current+I/re)}},mo=()=>Yn(!1),Gn=Me.toArray(h),yo=Gn[0],go=Gn[1],ve=ye,{w:Hn,h:Jn}=w.current,ge={position:"absolute",top:0,left:0,overflow:"auto",...p||{}},ke={position:"absolute",bottom:0,right:0,overflow:"auto",...d||{}},Pe={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=Hn-c,I=A>0?ve*A:0;ge.width=I,ke.left=I+c,Object.assign(Pe,{top:0,bottom:0,left:I,width:c})}else if(l==="fixSecond"){let A=Hn-c,I=A>0?(1-ve)*A:0;ke.width=I,ge.right=I+c,Object.assign(Pe,{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(Pe,{top:0,bottom:0,left:`calc(${ve} * (100% - ${c}px))`,width:c});else if(ge.right=0,ke.left=0,l==="fixFirst"){let A=Jn-c,I=A>0?ve*A:0;ge.height=I,ke.top=I+c,Object.assign(Pe,{left:0,right:0,top:I,height:c})}else if(l==="fixSecond"){let A=Jn-c,I=A>0?(1-ve)*A:0;ke.height=I,ge.bottom=I+c,Object.assign(Pe,{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(Pe,{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:Pe,className:"splitter"},m))}),Vt=1e-6,Ps=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 Gt=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)?!Gt.has(e):!1}function qs(e){return/(?:\\u\{[0-9a-fA-F]+\}|\\u[0-9a-fA-F]{4})/g.test(e)?!Gt.has(e):!1}function Fs(e){return/^(?:[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}]*)$/u.test(e)?!Gt.has(e):!1}function qn(e,t){if(typeof t=="string"){if(e&&e.hasOwnProperty(t))return e[t];if(t.trim()==="")return t.indexOf(`
97
98
  `)!==-1?`
98
- `:" ";if(Qt.has(t))return"K";if(Ks.has(t))return"O";if(Vs(t))return"I";if(Bs(t))return"U";if(Ws(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 Wn(e,t=t.bind(null,null)){return e.map(t).join("")}var Xs=/(?: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,zt=/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 Bn(e,t){let n=Wn(e.out,Kn.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]===`
99
- `||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(Xs))if(a[0].startsWith("r")){let l=a[0],u=e.out[a.index+l.length-1].out;u.length===1&&u.push(", {requirer:module}")}else if(a[0].startsWith("i")){let l=a[0];if(r=a.index-1,o(-1),n[r]===".")continue;let u=t.substring(e.out[a.index+l.length-1].begin,e.out[a.index+l.length-1].end),f={},p=[],g=[];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":{g.push(e.out[r]);continue}case"J":{let y=Wn(e.out[r].out,Kn.bind(null,{as:"a",",":","}));if(zt.lastIndex=-1,!zt.test(y))throw"incorrect import properties definition.";let m=e.out[r].out;for(let h=1;h<y.length-1;h++){for(;y[h]===" "||y[h]===`
100
- `||y[h]==="C"||y[h]===",";)h++;let w=m[h];for(h++;y[h]===" "||y[h]===`
101
- `||y[h]==="C";)h++;if(y[h]==="a"){for(h++;y[h]===" "||y[h]===`
102
- `||y[h]==="C";)h++;f[m[h]]=w,h++}else f[w]=w}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 d="";for(let y of p)d+=`const ${y} = require(${u},{requirer:module});
103
- `;for(let y of g)d+=`const ${y} = require(${u},{requirer:module, checkExport: ['default']}).default;
104
- `;if(Object.keys(f).length){let y="{",m="[";for(let h in f)y.length>1&&(y+=",",m+=","),h===f[h]?(y+=h,m+=`'${h}'`):(y+=h+":"+f[h],m+=`'${f[h]}'`);y+="}",m+="]",d+=`const ${y} = require(${u}, {checkExport: ${m},requirer:module})`}else d.length===0&&(d+=`require(${u},{requirer:module})`);e.out[a.index].cjs=d;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 f=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=`${f} ${p} = module.exports.${p} `;continue}case"F":{let f=e.out[r];e.out[r]=null,r++,o();let p=e.out[r];e.out[a.index].cjs=`module.exports.${p} = ${f} `;continue}case"*":e.out[r]=null,r++,o(),e.out[r]=null,r++,o();let u=t.substring(e.out[r].begin,e.out[r].end);e.out[r]=null,e.out[a.index].cjs=`Object.assign(module.exports, require(${u},{requirer:module}))`;continue;case"I":e.out[a.index].cjs=`module.exports.${e.out[r]} = `;continue;case"J":{let f={},p=Wn(e.out[r].out,Kn.bind(null,{as:"a",",":",",default:"I"}));if(zt.lastIndex=-1,!zt.test(p))throw"incorrect export properties definition.";let g=e.out[r].out;for(let m=1;m<p.length-1;m++){for(;p[m]===" "||p[m]===`
105
- `||p[m]==="C"||p[m]===",";)m++;let h=g[m];for(m++;p[m]===" "||p[m]===`
106
- `||p[m]==="C";)m++;if(p[m]==="a"){for(m++;p[m]===" "||p[m]===`
107
- `||p[m]==="C";)m++;f[g[m]]=h,m++}else f[h]=h}let d="{",y="{";for(let m in f)d.length>1&&(d+=",",y+=","),m===f[m]?(d+=m,y+=m):(d+=m+":"+f[m],y+=f[m]);if(d+="}",y+="}",e.out[r]=null,r++,o(),e.out[r]==="from"){e.out[r]=null,r++,o();let m=t.substring(e.out[r].begin,e.out[r].end);e.out[r]=null,e.out[a.index].cjs=`{ const ${d} = require(${m},{requirer:module}); Object.assign(module.exports, ${y}); }`}else e.out[a.index].cjs=`Object.assign(module.exports, ${d})`;continue}}}}var D={setBlockLabels:!0,enableLabelStack:!1,injectLabels:!0,preprocessorDelimiter:"\u0294"},ye,$a=0,ho=/(\{|\}|\[|\]|\(|\)|\.\.\.|=>|\?\?=|\?\?|\?\.|===|!==|>>>|<<=|>>=|>>>=|\*\*=|\*\*|&&=|\|\|=|<=|>=|==|!=|<<|>>|\+\+|--|\+=|-=|\*=|\/=|%=|&=|\^=|\|=|=|\+|-|\*|\/|%|&|\^|\||!|~|\?|:|<|>|=|\.|,|;|\n+|[\s^\n]+)/g;function M(e,t,n,...r){let o=e(t,n,...r);return o?[o.end,o]:[n]}function Ys(code,index,container){let i=index,dels=`;=,([{}!^~&|:?*%-+/<>${D.preprocessorDelimiter}`;for(;--i>=0;)if(" \r".indexOf(code[i])===-1){if(code[i]===`
99
+ `:" ";if(Gt.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 Fn(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,Yt=/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 Kn(e,t){let n=Fn(e.out,qn.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=Fn(e.out[r].out,qn.bind(null,{as:"a",",":","}));if(Yt.lastIndex=-1,!Yt.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=Fn(e.out[r].out,qn.bind(null,{as:"a",",":",",default:"I"}));if(Yt.lastIndex=-1,!Yt.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,Ea=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]===`
108
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`
109
- `: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 en(e,t,n){let r={type:"comment",begin:t++};if(e[t]!=="*"&&e[t]!=="/")return Ys(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`
110
- `:if(!o)return r.end=t+1,n&&n.children.push(r),r;break}t++}ye("Unterminated comment",r.begin)}function Gs(e,t,n){let r=t+1;for(;e[r]&&e[r]!==`
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 Ht(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]!==`
111
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]===`
112
- `){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}}ye("Error in preprocessor statement",t)}function Hs(node,context){let all_nodes=[];var segments=[],scope_stack=[],last_block=null;let clone_block=(e,t)=>{var n,r;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),(r=(n=scope_stack[0]).out)!=null||(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(`
113
- `);return eval(cmd),segments}function Vn(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`
114
- `:n!=="`"&&ye("Unterminated string",o.begin);break;case"$":n==="`"&&e[t+1]==="{"&&([t]=M(Fe,e,t+1,!0),t--);break;case"\\":t++;break}t++}ye("Unterminated string",o.begin)}function Js(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&&ye("Ill-formed xml (not closed properly)",t),n.end=a+1,n.cbegin=t+1,n.cend=o-2,a}else[o]=M(Xn,e,o,n),o>s?(s=o,o--):s++;break;case"{":let c=o;[o]=M(Fe,e,o,!0,n),o--;break}o++}return s}function Xn(e,t,n,r=!1){if(r){let u=["=",",","(","&","|","?",":","{","["],f=t;for(;--f>0;)if(` \r
115
- `.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
116
- {};)`.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
117
- {};)`.indexOf(e[f-5])===-1)return;break}return}}let o=[" "," ",`
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(`
114
+ `);return eval(cmd),segments}function Wn(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(Bn,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 Bn(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=[" "," ",`
118
119
  `,"/","&","^","%","|","!","~","+","*","?","<",">",";",",","=","{","}","(",")","[","]","'",'"',"`","\\","",void 0],s=()=>{for(;e[t]===" "||e[t]===" "||e[t]===`
119
- `;)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 y=M(en,e,t);y[0]>t?t=y[0]:t++,s()}let d;switch(e[t]){case"'":case'"':[t,d]=M(Vn,e,t,e[t]),c.attributes[l]=d,l=void 0;break;case"{":[t,d]=M(Fe,e,t,!0),c.attributes[l]=d,l=void 0;break;default:for(a=t;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;let y=e.substring(t,a);t=a,c.attributes[l]=y,l=void 0}}else return;break;case"{":let f;[t,f]=M(Fe,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=M(en,e,t);p[0]>t?t=p[0]:t++;break;case">":let g=Js(e,t,c);if(g===null)return;if(g>t?t=g:t++,c.end)return n&&n.children.push(c),c;t++;break;case" ":case" ":case`
120
- `:s();break;default:return}}}function yo(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(Xn,e,t,r,!0);c>t?t=c:t++;break}case'"':case"'":case"`":[t]=M(Vn,e,t,o,r);break;case"{":[t]=M(Fe,e,t,!0,r);break;case"(":[t]=M(yo,e,t,r);break;case"}":ye("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(en,e,t,r);s>t?t=s:t++;break;case"\\":t++;default:t++;break}}ye("Unterminated parenthesis block",r.begin)}function Fe(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(Xn,e,t,o,!0);c>t?t=c:t++;break}case'"':case"'":case"`":[t]=M(Vn,e,t,s,o);break;case"{":{let c=t;[t]=M(Fe,e,t,!0,o);break}case"(":[t]=M(yo,e,t,o);break;case")":ye("Unmatched parenthesis",o.begin);break;case"}":if(n)return o.end=t+1,o.cend=t,r&&r.children.push(o),o;ye("Unmatched curly bracket",o.begin);break;case"/":{let[c]=M(en,e,t,o);c>t?t=c:t++;break}case D.preprocessorDelimiter:{let[c]=M(Gs,e,t,o);c>t?t=c:t++;break}case"\\":t++;default:t++}}return n&&ye("Unterminated JS block",o.begin),o.end=t,o.cend=t,r&&r.children.push(o),o}function Zs(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(D.injectTraceLabels&&typeof s=="object"&&s.type==="js"){let u=ct(t,a);s.children.splice(1,0,`/*LILACTBLOCK${++n.counter}:${u}:${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=ct(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 mo(e){let t=[0];for(let n in e)e[n]===`
121
- `&&t.push(parseInt(n));return t.push(e.length),t}function ct(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 zs(e,t,n,r,o=[]){let s=[],c={version:3,file:t,sourceRoot:"",sources:[t],names:[],mappings:""},a=d=>{var y;if(((y=d==null?void 0:d.out)==null?void 0:y.length)>0)for(let m of d.out)a(m);(d==null?void 0:d.begin)!==void 0&&(d==null?void 0:d.out_index)!==void 0&&s.push([...ct(r,d.out_index),...ct(n,d.begin),d])};a(e),s=s.sort((d,y)=>d[0]==y[0]?d[1]-y[1]:d[0]-y[0]),o.push(...s);let l="",u=0,f=0,p=0,g=0;for(let d=0;d<s.length;d++){let y=s[d];for(;u<y[0];)f=0,l+=";",u++;l+=",",l+=po(y[1]-f,0,y[2]-p,y[3]-g),f=y[1],p=y[2],g=y[3]}return c.mappings=l.substring(1).replace(/;,/g,";"),`
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(Ht,e,t);m[0]>t?t=m[0]:t++,s()}let y;switch(e[t]){case"'":case'"':[t,y]=M(Wn,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(Ht,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(Bn,e,t,r,!0);c>t?t=c:t++;break}case'"':case"'":case"`":[t]=M(Wn,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(Ht,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(Bn,e,t,o,!0);c>t?t=c:t++;break}case'"':case"'":case"`":[t]=M(Wn,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(Ht,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=it(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=it(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 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 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([...it(r,m.out_index),...it(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=`
122
123
 
123
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,`+btoa(JSON.stringify(c))}function Yn(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:u={labels:{},counter:0},mappings:f=[]}={}){var w,E;(w=D.preprocessorDelimiter)!=null||(D.preprocessorDelimiter="\u0294"),(E=D.injectTraceLabels)!=null||(D.injectTraceLabels=s);let p=mo(e);ye=((_,T,$)=>{let S=ct(_,$),k=new Error(T);throw l&&console.error(`JSXParserError: ${T} [file ${r} at line ${S[0]}]`),[k.lineNumber,k.columnNumber]=S,k.name="JSXParserError",k.fileName=r,k.lilact_trace="parse",k}).bind(null,p);let g=Fe(e);g.data=e;let d=_=>{if(_.attributes!==void 0)for(let T in _.attributes)typeof _.attributes[T]=="object"&&d(_.attributes[T]);if(_.children!==void 0&&!_.self_closing){let T=_.type==="js"?_.begin:_.cbegin||_.begin;for(let S=0;S<_.children.length;S++){let k=_.children[S];if(k.begin>T){let C=e.substring(T,k.begin);_.type==="xml"&&(C=C.trim()),C.length&&(_.type==="xml"?_.children.splice(S,0,'"'+C.replaceAll(`
124
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,`+btoa(JSON.stringify(c));return y+=`
125
+ //# sourceURL=eval:/${t}`,y}function Vn(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=it(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
126
  `,`\\
125
- `).replaceAll('"','\\"')+'"'):_.children.splice(S,0,...C.split(ho)),S++)}T=k.end,d(k)}let $=_.type==="js"?_.end:_.cend||_.end;if(T<$&&!_.self_closing){let S=e.substring(T,$);_.type==="xml"&&(S=S.trim()),S.length&&(_.type==="xml"?_.children.push('"'+S.replace(/[\\\"\n]/g,k=>({"\\":"\\\\",'"':'\\"',"\n":`\\
126
- `})[k])+'"'):_.children.push(...S.split(ho)))}_.children=_.children.filter(S=>S!==""),D.setBlockLabels&&!_.already_labeled&&Zs(_,p,u)}};d(g),Hs(g);let y=(_,T,$=!1,S=!1)=>{if(typeof T!="object")return T;if(T===null)return"";if(T.out_index=_,T.type==="string")return e.substring(T.begin,T.end);if(T.type==="import"||T.type==="export")return T.cjs;if(T.type==="regex")return e.substring(T.begin,T.end);if(T.type==="comment")return c||$?"":e.substring(T.begin,T.end);if(T.type==="directive")return T.value;if(T.type==="parenthesis"){let k="(";if(T.out){a&&Bn(T,e);for(let C of T.out)k+=y(_+k.length-1,C)}return k+")"}if(T.type==="js"){let k="";if(T.out){a&&Bn(T,e);for(let C of T.out)S&&C.type==="comment"||(k+=y(_+k.length-($?1:0),C))}return $?k.substring(1,k.length-1):T!=null&&T.is_xml_js?e.substring(T.begin+1,T.end-1):k}if(T.type==="xml"){T.tag.length===0?T.tag=n:T.tag[0]!==T.tag[0].toUpperCase()&&(T.tag=`"${T.tag}"`);let k="",C=!0;for(let X of T.js_attributes){let q=y(_+k.length,X,!1);k+=`${C?"":", "}${q}`,C=!1}if(T.attributes)for(let X in T.attributes)k+=`${C?"":", "}"${X}": ${y(_+k.length,T.attributes[X],!0)}`,C=!1;if(k+=" }",T.out)for(let X of T.out){let q=y(_+k.length,X,!0,!0);q.length>0&&(k+=`, ${q}`,C=!1)}let O=ct(p,T.begin);return k=` ${t}( ${T.tag}, { ${k} )`,k}},m="";s&&(m=`/*LILACTBLOCK${++u.counter}:0,0:<EXEC>*/try{`),m+=y(m.length,g),s&&(D.enableLabelStack?m+=`}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${u.counter},e.lilact_trace];throw e}`:m+=`}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${u.counter};throw e}`);let h=zs(g,r,p,mo(m),f);return o&&(m+=h),m}var U={VERSION:"RC.4",defaultTransitionTimeout:300,defaultIsEqual:Object.is,...bn,...vn,..._n,...Tn,...Cn,...On,...Rn,...$n,...Nn,...hn,...Un,...Fn,transpileJSX:Yn,transpilerConfig:D,PropTypes:tt,redux:sn,emotion:yt,_setTimeout:window.setTimeout.bind(window),_setInterval:window.setInterval.bind(window),_clearTimeout:window.clearTimeout.bind(window),_clearInterval:window.clearInterval.bind(window)};U.default=U;var v=U;U.importObjectPaths={lilact:U,"@emotion/css":U.emotion,redux:U.redux};globalThis.Lilact=U;globalThis.createComponent=U.createComponent;globalThis.Fragment=U.Fragment;globalThis.require=U.require;document.addEventListener("DOMContentLoaded",()=>{U.grabTimers(),U.runScripts().catch(e=>{var t;(t=U.globalErrorHandler)==null||t.call(U,e)})});window.addEventListener("unhandledrejection",e=>{U.globalErrorHandler(e)}),window.addEventListener("error",e=>{U.globalErrorHandler(e)});console.log(`Lilact (Version: ${U.VERSION}) - Debug Mode`),console.log("Copyright(C) 2024-2026 Arash Kazemi <contact.arash.kazemi@gmail.com>");export{_t as ARGS,xt as CALLBACK,de as CHILD_CLASS_ADDENDUM,wt as CLEARED,ze as COMPONENT,x as CORE,eo as CSSTransition,Me as Children,Ae as Component,le as DUE,uo as DragHandle,qn as ErrorBoundary,Ur as Fragment,Tt as HTMLComponent,As as HashRouter,ue as IDX,Qe as INTERVAL,dn as IS_ZOMBIE,gt as LAZY,U as Lilact,Is as Link,ke as MEMOIZED,Rs as NavLink,qr as Portal,tt as PropTypes,ts as Provider,bt as REPEAT,qt as RootComponent,Ls as Route,ao as Routes,Ds as Spinner,Ms as SplitPane,Zt as Suspense,Ji as SwitchTransition,W as TEXT,Qr as Transition,Zi as TransitionGroup,es as addWrappedEventListener,gs as animationFramePromise,Cs as blocks_info,Gr as boolean_html_attributes_set,Kt as capture_events_set,ds as clearInterval,ps as clearTimeout,Vr as cloneComponent,_i as cloneElement,os as combineReducers,rs as connect,xn as createComponent,nt as createContext,vi as createElement,xi as createPortal,Br as createRoot,to as createSyntheticEvent,ki as current_component,mn as deepEqual,v as default,Ni as effect_timeout,yt as emotion,$s as error,fi as eval_num,Ft as events_set,si as findDOMNode,yn as forwardRef,ci as getComponentByPointer,ks as globalErrorHandler,hs as grabTimers,li as id_num,Ai as insertion_effects,ai as isAsync,gn as isClass,B as isEmpty,ui as isError,Mt as isThenable,et as isValidComponent,ii as isValidElement,Oi as layout_effects,Yi as lazy,Yr as length_css_attributes_set,Ti as memo,Ii as passive_effects,as as pauseTimers,Wr as processEffects,sn as redux,no as releaseSyntheticEvent,ms as releaseTimers,Ei as render,zr as require,qe as required_scripts,cs as resetTimers,us as resumeTimers,$i as roots,ot as run,Hi as runScripts,Ss as scanBlockLabels,fs as setInterval,ls as setTimeout,se as shallowEqual,Xr as special_attributes,Ki as startTransition,ys as timeoutPromise,Ut as toBool,co as traceError,Yn as transpileJSX,D as transpilerConfig,Ci as update_cbs,Pi as update_interval_margin,Si as update_set,Ri as update_timeout,Mi as useActionState,me as useCallback,rt as useContext,Fi as useDebugValue,qi as useDeferredValue,ns as useDispatch,ne as useEffect,ce as useHook,Li as useId,En as useImperativeHandle,Di as useInsertionEffect,Ie as useLayoutEffect,ji as useLocalStorage,Dn as useLocation,vt as useMemo,Mn as useNavigate,Ui as useReducer,P as useRef,oo as useSelector,te as useState,Vt as useStore,Hr as useTransition,ro as wrapListener};
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&&Kn(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&&Kn(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 R=m(g+k.length,L,!1);k+=`${v?"":", "}${R}`,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 R=m(g+k.length,L,!0,!0);R.length>0&&(k+=`, ${R}`,v=!1)}let C=it(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 K={VERSION:"RC.4",defaultTransitionTimeout:300,defaultIsEqual:Object.is,...dn,...xn,...gn,...wn,...vn,...Sn,...An,...kn,...In,...ln,...Dn,...Un,transpileJSX:Vn,transpilerConfig:D,PropTypes:tt,redux:en,emotion:an,_setTimeout:globalThis.setTimeout.bind(globalThis),_setInterval:globalThis.setInterval.bind(globalThis),_clearTimeout:globalThis.clearTimeout.bind(globalThis),_clearInterval:globalThis.clearInterval.bind(globalThis)};K.default=K;var E=K;K.importObjectPaths={lilact:K,"@emotion/css":K.emotion,redux:K.redux};globalThis.Lilact=K;globalThis.createComponent=K.createComponent;globalThis.Fragment=K.Fragment;globalThis.require=K.require;document.addEventListener("DOMContentLoaded",()=>{K.grabTimers(),K.runScripts().catch(e=>{K.globalErrorHandler?.(e)})});window.addEventListener("unhandledrejection",e=>{K.globalErrorHandler(e)}),window.addEventListener("error",e=>{K.globalErrorHandler(e)});console.log(`Lilact (Version: ${K.VERSION}) - Debug Mode`),console.log("Copyright(C) 2024-2026 Arash Kazemi <contact.arash.kazemi@gmail.com>");export{bt as ARGS,gt 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,Mn as ErrorBoundary,jr as Fragment,xt as HTMLComponent,Cs as HashRouter,F as IDX,yt as INTERVAL,un as IS_ZOMBIE,dt as LAZY,K as Lilact,Os as Link,Te as MEMOIZED,$s as NavLink,Dr as Portal,tt as PropTypes,Zi as Provider,mt as REPEAT,jt as RootComponent,Ls as Route,oo as Routes,Rs as Spinner,Ns as SplitPane,Xt as Suspense,Xi as SwitchTransition,W as TEXT,Jr as Transition,Yi as TransitionGroup,Ji as addWrappedEventListener,hs as animationFramePromise,ks as blocks_info,Vr as boolean_html_attributes_set,Mt as capture_events_set,us as clearInterval,as as clearTimeout,Kr as cloneComponent,gi as cloneElement,es as combineReducers,Qi as connect,yn as createComponent,nt as createContext,xi as createElement,yi as createPortal,Fr as createRoot,zr as createSyntheticEvent,_i as current_component,fn as deepEqual,E as default,$i as effect_timeout,an as emotion,Ts as error,ci as eval_num,Dt as events_set,ni as findDOMNode,pn as forwardRef,ri as getComponentByPointer,Es as globalErrorHandler,ls as grabTimers,si as id_num,Si as insertion_effects,oi as isAsync,hn as isClass,B as isEmpty,ii as isError,Nt 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,en 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,ot 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,Pt as toBool,ro as traceError,Vn as transpileJSX,D as transpilerConfig,vi as update_cbs,Ai as update_interval_margin,Ei as update_set,Oi as update_timeout,Ni as useActionState,he as useCallback,rt as useContext,Di as useDebugValue,ji as useDeferredValue,zi as useDispatch,te as useEffect,se as useHook,Ii as useId,bn as useImperativeHandle,Ri as useInsertionEffect,Re as useLayoutEffect,Li as useLocalStorage,Pn as useLocation,_t as useMemo,jn as useNavigate,Pi as useReducer,N as useRef,to as useSelector,ee as useState,Ft as useStore,Xr as useTransition,eo as wrapListener};
127
129
  //# sourceMappingURL=lilact.development.min.js.map