essor 0.0.16-beta.9 → 0.0.17-beta.1
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.
- package/dist/essor.cjs +8 -4
- package/dist/essor.d.cts +1 -1
- package/dist/essor.d.ts +1 -1
- package/dist/essor.dev.cjs +5314 -17
- package/dist/essor.dev.cjs.map +1 -1
- package/dist/essor.dev.js +5232 -7
- package/dist/essor.dev.js.map +1 -1
- package/dist/essor.js +8 -4
- package/dist/server.cjs +5 -4
- package/dist/server.dev.cjs +694 -10
- package/dist/server.dev.cjs.map +1 -1
- package/dist/server.dev.js +669 -5
- package/dist/server.dev.js.map +1 -1
- package/dist/server.js +5 -4
- package/package.json +4 -4
- package/dist/chunk-7NQHA37U.dev.js +0 -13
- package/dist/chunk-7NQHA37U.dev.js.map +0 -1
- package/dist/chunk-NPQQ5MSQ.js +0 -7
package/dist/essor.cjs
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
* essor v0.0.
|
|
3
|
-
* build time 2026-
|
|
1
|
+
'use strict';/**
|
|
2
|
+
* essor v0.0.17-beta.1
|
|
3
|
+
* build time 2026-06-01T08:53:21.778Z
|
|
4
4
|
* (c) 2023-Present jiangxd <jiangxd2016@gmail.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
**/
|
|
7
|
-
var o="0.0.16-beta.9";globalThis&&(globalThis.__essor_version__=o);exports.__version=o;Object.keys(signals).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return signals[k]}})});Object.keys(template).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return template[k]}})});
|
|
7
|
+
var Mt="0.0.17-beta.1";var P=e=>e!==null&&typeof e=="object";function me(e){return !!e&&typeof e.then=="function"}var q=Array.isArray;function z(e){return typeof e=="string"}function jt(e){return typeof e=="symbol"}function De(e){return Ee.call(e)==="[object Set]"}function tt(e){return Ee.call(e)==="[object WeakMap]"}function rt(e){return Ee.call(e)==="[object WeakSet]"}function Re(e){return Ee.call(e)==="[object Map]"}var O=e=>typeof e=="function";var nt=e=>Ee.call(e)==="[object Object]";function lt(e){return !z(e)||e===""?false:!Number.isNaN(Number(e))}function it(e){return typeof e=="undefined"}var Ee=Object.prototype.toString,on=Object.prototype.hasOwnProperty;var we=(e,t)=>on.call(e,t);function Ft(e){return q(e)?e:[e]}var ee=(e,t)=>!Object.is(e,t);function ot(){return typeof window!="undefined"&&typeof document!="undefined"}var at=e=>{let t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},It=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90;var an=/\B([A-Z])/g,Ht=at(e=>e.replaceAll(an,"-$1").toLowerCase()),sn=/[_-](\w)/g,Bt=at(e=>(e=e.replaceAll(/^[_-]+|[_-]+$/g,""),e=e.replaceAll(/[_-]+/g,"-"),e.replaceAll(sn,(t,r)=>r.toUpperCase()))),zt=at(e=>e.charAt(0).toUpperCase()+e.slice(1));function le(e,t){return z(e)?e.indexOf(t)===0:false}function Ut(e,...t){console.warn(`[Essor warn]: ${e}`,...t);}function ie(e){let t=Object.create(null);for(let r of e.split(","))t[r]=1;return r=>r in t}var Wt="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",qt=ie(Wt),Vt=ie(`${Wt},async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);function Gt(e){return !!e||e===""}ie("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap");ie("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");var un="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",fn="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",cn="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",dn="beforeinput,click,dblclick,contextmenu,focusin,focusout,input,keydown,keyup,mousedown,mousemove,mouseout,mouseover,mouseup,pointerdown,pointermove,pointerout,pointerover,pointerup,touchend,touchmove,touchstart",pn="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";ie(un);ie(fn);ie(cn);ie(pn);ie(dn);var $t="data-hk-idx",Pe="_$spread$";function st(e){if(e==null)return "";if(z(e))return e.trim();if(q(e))return e.map(st).filter(Boolean).join(" ");if(P(e)){let t="";for(let r in e)e[r]&&(t=t?`${t} ${r}`:r);return t}return String(e).trim()}var hn=Object.defineProperty,Xt=Object.getOwnPropertySymbols,mn=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,Yt=(e,t,r)=>t in e?hn(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r,gn=(e,t)=>{for(var r in t||(t={}))mn.call(t,r)&&Yt(e,r,t[r]);if(Xt)for(var r of Xt(t))vn.call(t,r)&&Yt(e,r,t[r]);return e},K={SET:"SET",ADD:"ADD",DELETE:"DELETE",CLEAR:"CLEAR"},Fe=Symbol(""),X=Symbol(""),Ae=Symbol(""),yn=Symbol(""),ce=Symbol(""),Me=0,ae,_e=false,bn=class{constructor(e,t){this.map=e,this.key=t,this.isDep=true,this.flag=0;}get subLink(){return this._subLink}set subLink(e){this._subLink=e,e===void 0&&this.map.delete(this.key);}};function ft(e){e.notify();}function ze(e,t){if(_e)return;let r=t.depLinkTail;if(r&&r.depNode===e)return r;let n=r?r.nextDepLink:t.depLink;if(n&&n.depNode===e)return n.version=Me,t.depLinkTail=n,n;let l=e.subLinkTail;if(l&&l.version===Me&&l.subNode===t)return t.depLinkTail=l,l;let i={version:Me,depNode:e,subNode:t,prevSubLink:l,nextSubLink:void 0,prevDepLink:r,nextDepLink:n};return n&&(n.prevDepLink=i),r?r.nextDepLink=i:t.depLink=i,l?l.nextSubLink=i:e.subLink=i,e.subLinkTail=i,t.depLinkTail=i,i}function ve(e,t=e.subNode){let r=e.depNode,n=e.prevSubLink,l=e.nextSubLink,i=e.prevDepLink,o=e.nextDepLink;if(o?o.prevDepLink=i:t.depLinkTail=i,i?i.nextDepLink=o:t.depLink=o,l?l.prevSubLink=n:r.subLinkTail=n,n)n.nextSubLink=l;else if(r.subLink=l,l===void 0){let a=r.depLink;for(;a;)a=ve(a,r);r.depLinkTail=void 0,r.isDep||(r.flag|=16);}return o}function ur(e,t){let r,n=0,l=false;e:do{let i=false;if(t.flag&16)i=true;else {let o=e.depNode,a=o.flag;if((a&17)===17){let s=o.subLink;s&&s.nextSubLink&&mt(s),i=true;}else if((a&33)===33)if(o.depLink){r={link:e,prev:r},e=o.depLink,t=o,++n;continue e}else o.flag&=-33;else a&32&&(o.flag&=-33);}if(!i&&e.nextDepLink!==void 0){e=e.nextDepLink;continue e}for(l=i;n--;){e=r.link,r=r.prev,t=e.subNode;let o=e.depNode;if(l?o.flag=o.flag&-33|16:o.flag&=-33,o.flag&16&&(l=true),!l&&e.nextDepLink!==void 0){e=e.nextDepLink;continue e}}return l?t.flag=t.flag&-33|16:t.flag&=-33,l}while(true)}function mt(e){for(;e;){let t=e.subNode,r=t.flag;(r&48)===32&&(t.flag=r|16,(r&6)===2&&ft(t)),e=e.nextSubLink;}}function vt(e){let t=e.nextSubLink,r;e:do{let n=e.subNode,l=n.flag&2,i=n.flag;if(i&60?i&12?i&4?!(i&48)&&Sn(e,n)?(n.flag=i|40,l&&ft(n),i&=1):i=0:n.flag=i&-9|32:i=0:(n.flag=i|32,l&&ft(n)),i&1){let o=n.subLink;if(o!==void 0){let a=o.nextSubLink;a!==void 0&&(r={value:t,prev:r},t=a),e=o;continue}}if((e=t)!==void 0){t=e.nextSubLink;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){t=e.nextSubLink;continue e}break}while(true)}function ct(e){let t=ae;return ae=e,t}function fr(e){return Me++,e.depLinkTail=void 0,e.flag=e.flag&-57|4,ct(e)}function cr(e,t){ae=t;let r=e.depLinkTail,n=r?r.nextDepLink:e.depLink;for(;n;)n=ve(n,e);e.flag&=-5;}function Jl(e){let t=ct(void 0),r=_e;_e=true;try{return e()}finally{_e=r,ct(t);}}function Sn(e,t){let r=t.depLinkTail;for(;r;){if(r===e)return true;r=r.prevDepLink;}return false}var dt=new WeakMap,kn=0;function ut(e,t,r){if(e)for(let n=e.subLink;n;n=n.nextSubLink){let l=n.subNode;l._triggerVersion!==r&&(l._triggerVersion=r,t.push(l));}}function F(e,t){if(!ae||_e)return;let r=dt.get(e);r||(r=new Map,dt.set(e,r));let n=r.get(t);n||(n=new bn(r,t),r.set(t,n)),ze(n,ae);}function J(e,t,r,n){var l;let i=dt.get(e);if(!i)return;let o=[],a=++kn;if(r!==void 0)if(Array.isArray(r))for(let s of r)ut(i.get(s),o,a);else ut(i.get(r),o,a);if(t==="ADD"||t==="DELETE"||t==="CLEAR"){let s=Array.isArray(e)?ce:yn;ut(i.get(s),o,a);}for(let s of o)s.flag&2?(l=s.notify)==null||l.call(s):s.flag&1&&(s.flag|=16,s.subLink&&vt(s.subLink));}var En=new WeakMap,wn=new WeakMap;function A(e){if(!e||!P(e))return e;let t=e._RAW;return t?A(t):H(e)?A(e.peek()):e}var Kt=An();function An(){let e={};return ["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){let n=A(this);F(n,ce);let l=n[t](...r);if((l===-1||l===false)&&r.length>0){let i=r.map(o=>A(o));l=n[t](...i);}return l};}),["find","findIndex","findLast","findLastIndex"].forEach(t=>{e[t]=function(...r){let n=A(this),l=te(this);F(n,ce);let i=n[t](...r);return (t==="find"||t==="findLast")&&P(i)&&!l?U(i):i};}),["push","pop","shift","unshift","splice","sort","reverse","fill","copyWithin"].forEach(t=>{e[t]=function(...r){let n=A(this),l=Array.prototype[t].apply(n,r);return J(n,K.SET,[Fe,ce]),l};}),["toReversed","toSorted","toSpliced"].forEach(t=>{e[t]=function(...r){let n=A(this),l=te(this);if(F(n,ce),t==="toSpliced")for(let o=0,a=n.length;o<a;o++)F(n,`${o}`);let i=Array.prototype[t].apply(n,r);return Array.isArray(i)?i.map(o=>P(o)?U(o,l):o):i};}),["concat","slice","filter","map","flatMap","flat"].forEach(t=>{e[t]=function(...r){let n=A(this);return F(n,ce),Array.prototype[t].apply(this,r)};}),["join","toString","toLocaleString"].forEach(t=>{e[t]=function(...r){let n=A(this);return F(n,ce),Array.prototype[t].apply(n,r)};}),["values","keys","entries",Symbol.iterator].forEach(t=>{e[t]=function(){let r=A(this),n=te(this);F(r,Fe);let l=t===Symbol.iterator?r[Symbol.iterator]():r[t]();return {next(){let{value:i,done:o}=l.next();return o?{value:i,done:o}:Array.isArray(i)?{value:i.map(a=>P(a)?U(a,n):a),done:o}:{value:P(i)?U(i,n):i,done:o}},[Symbol.iterator](){return this}}};}),e}function dr(e,t){let r=H(t)?t:A(t);return ee(e,r)}var pr=e=>({get:(t,r,n)=>{if(r==="_RAW")return t;if(r==="_IS_REACTIVE")return true;if(r==="_IS_SHALLOW")return e;if(we(Kt,r))return Kt[r];let l=Reflect.get(t,r,n);return lt(r)&&F(t,r),F(t,Fe),P(l)&&!e?U(l):l},set:(t,r,n,l)=>{let i=Reflect.get(t,r,l),o=A(n),a=Reflect.set(t,r,o,l);return dr(o,i)&&(lt(r)?J(t,K.SET,[r,ce,Fe]):J(t,K.SET,r)),a}}),_n=pr(true),Ln=pr(false),hr=e=>({get(t,r){return r==="_IS_REACTIVE"?true:r==="_RAW"?t:r==="_IS_SHALLOW"?e:Reflect.get(we(Jt,r)?Jt:t,r,t)}}),mr=e=>({get(t,r){return r==="_IS_REACTIVE"?true:r==="_RAW"?t:r==="_IS_SHALLOW"?e:Reflect.get(we(Zt,r)&&r in t?Zt:t,r,t)}}),Tn=hr(true),xn=hr(false),Nn=mr(true),Cn=mr(false),Jt={get(e){let t=A(this);F(t,X);let r=t.get(e);return it(r)&&!t.has(e)&&Z(e)&&(r=t.get(A(e))),P(r)&&!te(this)?U(r):r},set(e,t){let r=A(this),n=A(e),l=r.has(n),i=r.get(n),o=A(t);return r.set(n,o),(!l||ee(i,o))&&J(r,K.SET,X),this},add(e){let t=A(this),r=A(e),n=t.has(r);return t.add(r),n||J(t,K.ADD,X),this},has(e){let t=A(this);F(t,X);let r=t.has(e);return !r&&P(e)?t.has(A(e)):r},delete(e){let t=A(this),r=t.has(e),n=t.delete(e);return !n&&P(e)&&(n=t.delete(A(e))),(r||n)&&J(t,K.DELETE,X),n},clear(){let e=A(this),t=e.size>0,r=e.clear();return t&&J(e,K.CLEAR,X),r},forEach(e,t){let r=A(this),n=te(this);F(r,X),r.forEach((l,i)=>{let o=n||!P(l)?l:U(l),a=n||!P(i)?i:U(i);e.call(t,o,a,this);});},[Symbol.iterator](){let e=A(this),t=te(this);F(e,X);let r=e[Symbol.iterator]();return {next(){let{value:n,done:l}=r.next();return l?{value:n,done:l}:t?{value:n,done:l}:Array.isArray(n)?{value:n.map(i=>P(i)?U(i):i),done:l}:{value:P(n)?U(n):n,done:l}},[Symbol.iterator](){return this}}},get size(){let e=A(this);return F(e,X),e.size},keys(){let e=A(this),t=te(this);F(e,X);let r=e.keys();return {next(){let{value:n,done:l}=r.next();return l?{value:n,done:l}:{value:t||!P(n)?n:U(n),done:l}},[Symbol.iterator](){return this}}},values(){let e=A(this),t=te(this);F(e,X);let r=e.values();return {next(){let{value:n,done:l}=r.next();return l?{value:n,done:l}:{value:t||!P(n)?n:U(n),done:l}},[Symbol.iterator](){return this}}},entries(){let e=A(this),t=te(this);F(e,X);let r=e.entries();return {next(){let{value:n,done:l}=r.next();return l?{value:n,done:l}:t?{value:n,done:l}:{value:n.map(i=>P(i)?U(i):i),done:l}},[Symbol.iterator](){return this}}}},Zt={get(e){let t=A(this);F(t,Ae);let r=t.get(e);return it(r)&&!t.has(e)&&Z(e)&&(r=t.get(A(e))),P(r)&&!te(this)?U(r):r},set(e,t){let r=A(this),n=A(e),l=r.has(n),i=r.get(n),o=A(t);return r.set(n,o),(!l||ee(i,o))&&J(r,K.SET,Ae),this},add(e){let t=A(this),r=A(e),n=t.has(r);return t.add(r),n||J(t,K.ADD,Ae),this},has(e){let t=A(this);F(t,Ae);let r=t.has(e);return !r&&Z(e)&&(r=t.has(A(e))),r},delete(e){let t=A(this),r=A(e),n=t.has(r),l=t.delete(r);return (n||l)&&J(t,K.DELETE,Ae),l}},vr=e=>({get(t,r,n){if(r==="_RAW")return t;if(r==="_IS_REACTIVE")return true;if(r==="_IS_SHALLOW")return e;let l=Reflect.get(t,r,n),i=H(l)?l.value:l;return F(t,r),P(i)&&!e?U(i):i},set:(t,r,n,l)=>{let i=Reflect.get(t,r,l),o=A(n),a=Reflect.set(t,r,o,l);return dr(o,i)&&J(t,K.SET,r),a},deleteProperty:(t,r)=>{let n=we(t,r),l=Reflect.deleteProperty(t,r);return n&&l&&J(t,K.DELETE,r),l}}),On=vr(true),Dn=vr(false);function U(e,t=false){if(!P(e)||Z(e))return e;let r=t?wn:En,n=r.get(e);if(n)return n;let l;q(e)?l=t?_n:Ln:De(e)||Re(e)?l=t?Tn:xn:tt(e)||rt(e)?l=t?Nn:Cn:l=t?On:Dn;let i=new Proxy(e,l);return r.set(e,i),i}function Z(e){return !!(e&&e._IS_REACTIVE)}function Ie(e){return Z(e)||H(e)?e:U(e)}function He(e){return Z(e)||H(e)?e:U(e,true)}function te(e){return !!(e&&e._IS_SHALLOW)}var Zl=e=>P(e)?Ie(e):e,gr;gr="_IS_SIGNAL";var gt=class{constructor(e,t=false){this.flag=1,this[gr]=true;let r=A(e);this._rawValue=r,this._IS_SHALLOW=t,Qt(r)?Z(e)?this._value=e:this._value=t?He(r):Ie(r):this._value=r;}get dep(){return this}get value(){let e=ae;if(e&&ze(this,e),this.flag&16&&this.shouldUpdate()){let t=this.subLink;t&&mt(t);}return this._value}set value(e){H(e)&&(e=e.peek());let t=e,r=A(e);if(!ee(this._rawValue,r))return;if(this._oldValue=this._rawValue,this._rawValue=r,this.flag|=16,!Qt(r))this._value=r;else if(Z(t))this._value=t;else {let l=this._IS_SHALLOW;this._value=l?He(r):Ie(r);}let n=this.subLink;n&&vt(n);}shouldUpdate(){if(this.flag&=-17,!("_oldValue"in this))return true;let e=ee(this._oldValue,this._rawValue);return this._oldValue=this._rawValue,e}peek(){return this._value}set(e){this.value=e;}update(e){let t=e(this.peek());H(t)?this.value=t.peek():this.value=t;}};function Qt(e){return P(e)?q(e)||Re(e)||De(e)||tt(e)||rt(e)||nt(e):false}function Te(e){return H(e)?e:new gt(e)}function Ql(e){return H(e)&&(e=e.peek()),new gt(e,true)}function H(e){return !!e&&!!e._IS_SIGNAL}var je=new Set,pt=new Set,er=Promise.resolve(),ht=false;function Rn(e){return e?er.then(e):er}function Be(e){je.add(e),yr();}function yr(){ht||(ht=true,Rn(br));}function Pn(e){pt.add(e),yr();}function br(){for(ht=false,Mn();je.size>0;){for(let e of je)try{e();}catch(t){}je.clear();}}function Mn(){let e=Array.from(pt);pt.clear();for(let t of e)try{t();}catch(r){}}function jn(e,t){switch(t){case "sync":return ()=>e();case "pre":return ()=>Pn(e);case "post":return ()=>Be(e);default:return ()=>Be(e)}}var Le=0;function tr(e){Fn();try{return e()}finally{In();}}function Fn(){Le++;}function In(){Le--,Le===0&&br();}function Hn(){return Le>0}function ei(){return Le}var Y,Bn=class{constructor(e=false,t=void 0){this.detached=e,this.parent=t,this._active=true,this.effects=[],this.scopes=[],this.cleanups=[],!e&&Y&&(this.parent=Y,Y.scopes.push(this));}get active(){return this._active}pause(){var e,t;if(this._active){for(let r=0;r<this.scopes.length;r++)this.scopes[r].pause();for(let r=0;r<this.effects.length;r++)(t=(e=this.effects[r]).pause)==null||t.call(e);}}resume(){var e,t;if(this._active){for(let r=0;r<this.scopes.length;r++)this.scopes[r].resume();for(let r=0;r<this.effects.length;r++)(t=(e=this.effects[r]).resume)==null||t.call(e);}}run(e){if(!this._active)return;let t=Y;Y=this;try{return e()}finally{Y=t;}}stop(e=false){if(!this._active)return;this._active=false;for(let r=0;r<this.scopes.length;r++)this.scopes[r].stop(true);this.scopes.length=0;let t=this.effects.slice();this.effects.length=0;for(let r of t)r.stop();for(let r=0;r<this.cleanups.length;r++)this.cleanups[r]();if(this.cleanups.length=0,!e&&this.parent){let r=this.parent.scopes.indexOf(this);r>=0&&this.parent.scopes.splice(r,1);}this.parent=void 0;}_record(e){this.effects.push(e),e.scope=this;}_remove(e){let t=this.effects.indexOf(e);t>=0&&this.effects.splice(t,1);}_pushCleanup(e){this.cleanups.push(e);}};function yt(e=false){return new Bn(e)}function ti(){return Y}function Sr(e){let t=Y;return Y=e,t}function ri(e,t=false){Y&&Y._pushCleanup(e);}function kr(e,t=Y){t&&t.active&&t._record(e);}function Er(e){let t=e.scope;t&&(e.scope=void 0,t._remove(e));}var wr;wr="_IS_EFFECT";var zn=class{constructor(e,t){if(this.flag=18,this[wr]=true,this._active=true,this.fn=e,t){this.options=t;let r=t.flush||t.scheduler;r&&!O(r)&&(this._flushScheduler=jn(()=>this.run(),r));}kr(this);}get active(){return this._active}get dirty(){let e=this.flag;if(e&16)return true;if(e&32){if(this.depLink&&ur(this.depLink,this))return this.flag=e&-33|16,true;this.flag=e&-33;}return false}pause(){this.flag|=256;}resume(){let e=this.flag&-257;this.flag=e;let t=(e&16)!==0,r=(e&32)!==0;(t||r)&&this.notify();}run(){if(!this._active)return this.fn();let e=this.flag;this.flag=e&-49|512;let t=fr(this);try{return this.fn()}catch(r){throw this.flag|=16,r}finally{this.flag&=-513,cr(this,t);}}getJob(){return this._job||(this._job=()=>this.run()),this._job}notify(){var e,t,r;let n=this.flag;if(!this._active||n&784)return;this.flag=n|16;let l=((e=this.options)==null?void 0:e.flush)||((t=this.options)==null?void 0:t.scheduler);l?O(l)?l(this):(r=this._flushScheduler)==null||r.call(this):Hn()?Be(this.getJob()):this.run();}stop(){var e;if(!this._active)return;this._active=false,Er(this);let t=this.depLink;for(;t;)t=ve(t,this);let r=this.subLink;for(;r;)r=ve(r);this._job=void 0,this._flushScheduler=void 0,this.depLinkTail=void 0,this.subLinkTail=void 0,(e=this.options)!=null&&e.onStop&&this.options.onStop();}};function se(e,t){let r=new zn(e,t);try{r.run();}catch(l){throw r.stop(),l}let n=()=>r.run();return n.effect=r,n.stop=()=>r.stop(),n}function ni(e){e.effect.stop();}function li(e){return !!(e&&e._IS_EFFECT)}function ii(e,t,r){let n=t;return se(()=>{n=e(n);},r)}var oe=Symbol("computed-no-value"),Ar;Ar="_IS_COMPUTED";var rr=class{constructor(e,t,r,n){this.flag=17,this[Ar]=true,this._value=oe,this._active=true,this.getter=e,this.setter=t,this.onTrack=r,this.onTrigger=n,this.flag|=16,kr(this);}get value(){if(!this.active)return this._value===oe?this.getter():this._value;ae&&ze(this,ae);let e=this.flag,t=this._value!==oe;return t&&!(e&48)?this._value:!t||e&16?(this.recompute(),this._value):(e&32&&(this.depLink&&ur(this.depLink,this)?this.recompute():this.flag=e&-33),this._value)}set value(e){this.setter&&this.setter(e);}peek(){return this.active?(this._value===oe&&this.recompute(),this._value):this._value===oe?this.getter():this._value}get active(){return this._active}recompute(){if(!this._active){this._value===oe&&(this._value=this.getter());return}let e=this._value,t=e!==oe,r=fr(this);try{let n=this.getter(),l=this.flag,i=this.subLink,o=-49;!t||ee(e,n)?(this._value=n,this.flag=l&o,i&&mt(i)):this.flag=l&o;}catch(n){let l=-49;throw this.flag&=l,this._value=oe,n}finally{cr(this,r);}}shouldUpdate(){let e=this._value!==oe,t=this._value;return this.recompute(),e?ee(this._value,t):true}stop(){if(!this._active)return;this._active=false,Er(this);let e=this.depLink;for(;e;)e=ve(e,this);let t=this.subLink;for(;t;)t=ve(t);this.depLinkTail=void 0,this.subLinkTail=void 0,this.flag&=-49;}};function Un(e){if(ge(e))return e;if(!e)throw new Error("[Computed] Invalid argument: computed() requires a getter function or options object.");if(O(e))return new rr(e);if(nt(e)){let{get:t,set:r,onTrack:n,onTrigger:l}=e;if(!t)throw new Error(`[Computed] Invalid options: getter function is required.
|
|
8
|
+
Usage: computed({ get: () => value, set: (v) => { ... } })`);if(!O(t))throw new TypeError(`[Computed] Invalid options: getter must be a function.
|
|
9
|
+
Received: ${typeof t}`);return new rr(t,r,n,l)}throw new Error(`[Computed] Invalid argument: expected a function or options object.
|
|
10
|
+
Received: ${typeof e}`)}function ge(e){return !!e&&!!e._IS_COMPUTED}function Wn(e){let{state:t,getters:r,actions:n}=e,l=gn({},t),i=Ie(t),o=new Set,a=new Set,s=p=>{o.forEach(h=>h(p)),a.forEach(h=>h(p));},d={patch$(p){tr(()=>{Object.assign(i,p);}),s(i);},subscribe$(p){o.add(p);},unsubscribe$(p){o.delete(p);},onAction$(p){a.add(p);},offAction$(p){a.delete(p);},reset$(){tr(()=>{Object.assign(i,l);}),s(i);}},u={};for(let p of Object.keys(l))Object.defineProperty(u,p,{get:()=>i[p],set:h=>{i[p]=h;},enumerable:true,configurable:true});if(Object.defineProperty(u,"state",{value:i,enumerable:true,configurable:true,writable:true}),Object.assign(u,d),r)for(let p in r){let h=r[p];if(!h)continue;let k=Un(()=>h.call(u,i));Object.defineProperty(u,p,{get:()=>k.value,enumerable:true,configurable:true});}if(n)for(let p in n){let h=n[p];h&&(u[p]=(...k)=>{let N=h.apply(u,k);return a.forEach(S=>S(i)),N});}return u}function qn(e){let t=new e,r=Object.create(null),n={},l={};return Object.getOwnPropertyNames(t).forEach(i=>{r[i]=t[i];}),Object.getOwnPropertyNames(e.prototype).forEach(i=>{let o=Object.getOwnPropertyDescriptor(e.prototype,i);o&&(O(o.get)?n[i]=function(){return o.get.call(this)}:O(o.value)&&i!=="constructor"&&(l[i]=function(...a){return o.value.apply(this,a)}));}),{state:r,getters:n,actions:l}}function oi(e){return ()=>{let t;return O(e)?t=qn(e):t=e,Wn(t)}}var nr,lr,ir=class extends(lr=gt,nr="_IS_REF",lr){constructor(e){super(e,true),this[nr]=true;}get value(){let e=ae;return e&&ze(this,e),this._value}set value(e){H(e)&&(e=e.peek()),_r(e)&&(e=e.value),ee(this._value,e)&&(this._rawValue=e,this._value=e,this.flag|=16,this.subLink&&vt(this.subLink));}};function ai(e=void 0){return _r(e)?e:H(e)?new ir(e.peek()):new ir(e)}function _r(e){return !!e&&!!e._IS_REF}var or={},ar=new Set;function pe(e,t){if(t||(ar.clear(),t=ar),!P(e)||t.has(e))return e;if(t.add(e),H(e)||ge(e))return pe(e.value,t);if(Array.isArray(e))for(let r of e)pe(r,t);else Re(e)?(e.forEach(r=>{pe(r,t);}),e.keys(),e.values()):De(e)?(e.forEach(r=>{pe(r,t);}),e.values()):Object.keys(e).forEach(r=>{pe(e[r],t);});return e}function sr(e){return O(e)?e:H(e)||ge(e)?()=>e.value:Z(e)?()=>pe(e):()=>e}function Vn(e){if(Array.isArray(e)){let t=e.map(r=>sr(r));return ()=>t.map(r=>r())}return sr(e)}function si(e,t,r={}){let{immediate:n=false,deep:l=false}=r,i=or,o=Vn(e),a=()=>{let d=s.effect;if(!d.run)return;let u=d.run();(l||P(u)||ee(u,i))&&(t(u,i===or?void 0:i),i=u);},s=se(()=>{let d=o();return l&&pe(d),d},{scheduler:()=>Be(a)});return n?a():i=s.effect.run(),()=>{s.stop();}}var Lr=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,$n=Object.prototype.propertyIsEnumerable,Tr=(e,t)=>{var r={};for(var n in e)Gn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Lr)for(var n of Lr(e))t.indexOf(n)<0&&$n.call(e,n)&&(r[n]=e[n]);return r},bt=(e,t,r)=>new Promise((n,l)=>{var i=s=>{try{a(r.next(s));}catch(d){l(d);}},o=s=>{try{a(r.throw(s));}catch(d){l(d);}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(i,o);a((r=r.apply(e,t)).next());}),ye=null,Xn=0;function V(){return ye}function Ue(e){ye=e,Sr(e==null?void 0:e.effectScope);}function he(e=ye){let t=e?e.effectScope.run(()=>yt()):yt(true),r={id:++Xn,effectScope:t,parent:e,children:null,provides:null,cleanup:null,onMount:null,onUpdate:null,onDestroy:null,isMounted:false,isDestroyed:false};return e&&(e.children||(e.children=new Set),e.children.add(r)),r}function re(e,t){let r=ye;Ue(e);try{return e.effectScope.run(t)}finally{Ue(r);}}function G(e){var t;if(!e||e.isDestroyed)return;if(e.isDestroyed=true,e.children&&e.children.size>0){for(let n of e.children)n&&(n.parent=null,G(n));e.children.clear();}let r=ye;if(Ue(e),e.onDestroy){for(let n=0;n<e.onDestroy.length;n++)try{e.onDestroy[n]();}catch(l){}e.onDestroy=null;}if(e.cleanup){for(let n=0;n<e.cleanup.length;n++)try{e.cleanup[n]();}catch(l){}e.cleanup=null;}Ue(r),e.effectScope.stop(),(t=e.parent)!=null&&t.children&&e.parent.children.delete(e),e.provides&&(e.provides.clear(),e.provides=null),e.onMount=null,e.onUpdate=null,e.children=null,e.parent=null;}function ue(e){let t=ye;t&&(t.cleanup||(t.cleanup=[]),t.cleanup.push(e));}var Yn="ref",Kn="key",Jn="http://www.w3.org/2000/svg",xr="http://www.w3.org/2000/xlink",Nr="http://www.w3.org/2000/xmlns/",Ur=Symbol(""),Ze=Symbol(""),Wr=Symbol(""),Zn=Symbol(""),qr=Symbol(""),Vr=Symbol("");function At(e,t,r,n){if(t===Kn){n==null?e.removeAttribute(t):e.setAttribute(t,String(n));return}if(t===Pe){let u=P(r)?r:null,p=P(n)?n:null;if(u)for(let h in u)h!==Pe&&(!p||!(h in p))&&At(e,h,u[h],null);if(p)for(let h in p)h!==Pe&&At(e,h,u==null?void 0:u[h],p[h]);return}let l=(e==null?void 0:e.namespaceURI)===Jn,i=l&&le(t,"xlink:"),o=l&&le(t,"xmlns:"),a=qt(t)||Vt(t);if(r===n||t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110)return;let s=t.toLowerCase();if(s==="innerhtml"||s==="srcdoc")return;if(n==null){if(i)e.removeAttributeNS(xr,t.slice(6));else if(o){let u=t.slice(6);e.removeAttributeNS(Nr,u);}else e.removeAttribute(t);return}if(a){Gt(n)?e.setAttribute(t,""):e.removeAttribute(t);return}let d=jt(n)?String(n):n;if((s==="href"||s==="src"||s==="xlink:href"||s==="action"||s==="formaction"||s==="poster")&&z(d)){let u=d.trim().toLowerCase();if(le(u,"javascript:")||le(u,"data:"))return}if(i){e.setAttributeNS(xr,t,String(d));return}if(o){e.setAttributeNS(Nr,t,String(d));return}if(l)e.setAttribute(t,String(d));else if(t in e)try{e[t]=d;}catch(u){e.setAttribute(t,String(d));}else e.setAttribute(t,String(d));}function Qn(e,t,r,n=false){if(t===r)return;let l=Cr(r);if(!l){e.removeAttribute("class");return}(z(t)?t:Cr(t))!==l&&(n?e.setAttribute("class",l):e.className=l);}var Cr=st,Or=/\s*!important$/,el=["Webkit","Moz","ms"],St={};function tl(e,t,r){let n=e.style;if(r&&z(r)){t!==r&&(n.cssText=r);return}if(!r){t&&e.removeAttribute("style");return}if(t&&!z(t)){let l=t;for(let i in l)(!r||r[i]==null)&&Ge(n,i,"");}else if(t&&z(t)){let l=/(?:^|;)\s*([a-z][a-z\d-]*)\s*:/gi,i;for(;(i=l.exec(t))!==null;){let o=i[1].trim();o&&r&&P(r)&&r[o]==null&&Ge(n,o,"");}}if(r&&!z(r)){let l=r;for(let i in l){let o=l[i];(!t||z(t)||t[i]!==o)&&o!=null&&Ge(n,i,o);}}}function Ge(e,t,r){if(q(r)){for(let i of r)Ge(e,t,i);return}(r==null||r==="")&&(r="");let n=z(r)&&Or.test(r)?"important":"";if(n&&(r=r.replace(Or,"")),le(t,"--")){n?e.setProperty(t,r,n):e.setProperty(t,r);return}let l=nl(e,t);n?e.setProperty(rl(l),r,n):e[l]=r;}function rl(e){let t=Ht(e);return le(e,"Webkit")||le(e,"Moz")||le(e,"ms")?`-${t}`:t}function nl(e,t){let r=St[t];if(r)return r;let n=Bt(t);if(n!=="filter"&&n in e)return St[t]=n;n=zt(n);for(let l of el){let i=l+n;if(i in e)return St[t]=i}return t}var Ct=0;function ll(){return String(Ct++)}function wi(){Ct=0;}var ne=false;function _t(){return ne}var be=new Map;function il(e){let t=e.querySelectorAll("[data-hk]");for(let r of t){let n=r.dataset.hk;n!=null&&!be.has(n)&&be.set(n,r);}}var Qe=[],Oe=new Map;function ol(){if(typeof document=="undefined")return;let e=document.createNodeIterator(document.body,NodeFilter.SHOW_COMMENT),t;for(;t=e.nextNode();){let r=t.data;if(r==="teleport-anchor")Qe.push(t);else if(r==="teleport-start"){let n=t.parentElement;if(!n)continue;let l=Oe.get(n);l||(l=[],Oe.set(n,l)),l.push(t);}}}function al(){var e;return (e=Qe.shift())!=null?e:null}function sl(e){let t=Oe.get(e),r=t==null?void 0:t.shift();if(!r)return null;let n=[],l=r.nextSibling;for(;l;){if(l.nodeType===Node.COMMENT_NODE&&l.data==="teleport-end")return {start:r,end:l,nodes:n};n.push(l),l=l.nextSibling;}return null}function ul(e){ne=true,Ct=0,be.clear(),Qe.length=0,Oe.clear(),il(e),ol();}function fl(){ne=false,be.clear(),Qe.length=0,Oe.clear();}function cl(e,t,r){var n,l;if(!ne||r&&r.parentNode!==e)return null;if(t.length===0)return [];let i=new Array(t.length),o=r?r.previousSibling:e.lastChild;for(let a=t.length-1;a>=0;a--){if(!o)return null;let s=t[a],d=s.nodeType;if(d===Node.TEXT_NODE){let u=(n=s.textContent)!=null?n:"";if(!u||o.nodeType!==Node.TEXT_NODE)return null;let p=(l=o.textContent)!=null?l:"";if(p===u){i[a]=o,o=o.previousSibling;continue}if(!p.endsWith(u))return null;let h=p.slice(0,p.length-u.length);if(!h)return null;let k=document.createTextNode(h);e.insertBefore(k,o),o.textContent=u,i[a]=o,o=k;continue}if(o.nodeType!==d)return null;if(d===Node.ELEMENT_NODE){if(o.tagName!==s.tagName)return null}else if(d===Node.COMMENT_NODE&&o.data!==s.data)return null;i[a]=o,o=o.previousSibling;}return i}function Gr(e){var t,r,n;return (n=(r=e.dataset.hk)!=null?r:(t=e.closest("[data-hk]"))==null?void 0:t.dataset.hk)!=null?n:null}function Ai(e,t){if(!ne||!e||t<0)return null;let r=e instanceof Element?Gr(e):null,n=r?`${r}-${t}`:String(t),l=e.firstChild;for(;l;){if(l.nodeType===Node.COMMENT_NODE&&l.data===n)return l;l=l.nextSibling;}return null}function _i(e,t){if(!ne||!(e instanceof Element)||t<0)return null;let r=Gr(e),n=r?`${r}-${t}`:String(t),l=e.firstChild;for(;l;){if(l instanceof Element&&l.getAttribute($t)===n)return l;l=l.nextSibling;}return null}function Li(e){if(!ot())return ()=>{throw new Error("[essor] getRenderedElement called in non-browser environment")};let t=null;return ()=>{if(!ne)return t||(t=Pr(e)),t();let r=ll(),n=be.get(r);return n?(be.delete(r),n):(Ut(`[essor] hydration mismatch: no SSR element for key "${r}"`),t||(t=Pr(e)),t())}}function Ti(e,t,r,n){ne||Qn(e,t,r,n);}function xi(e,t,r,n){ne||At(e,t,r,n);}function Ni(e,t,r){ne||tl(e,t,r);}function Lt(e,t){return t&&t.parentNode===e?t:null}function dl(e,t,r,n){let l=Lt(e,n),i=t.length,o=r.length;if(i===0&&o===0)return r;if(i===0){for(let u=0;u<o;u++)fe(e,r[u],l);return r}if(o===0){for(let u=0;u<i;u++)Se(t[u]);return []}let a=0,s=i-1,d=o-1;for(;a<=s&&a<=d&&t[a]===r[a];)a++;for(;s>=a&&d>=a&&t[s]===r[d];)s--,d--;if(a>s){if(a<=d){let u=d+1,p=Lt(e,u<o?r[u]:l);for(let h=a;h<=d;h++)fe(e,r[h],p);}}else if(a>d)for(let u=a;u<=s;u++)Se(t[u]);else pl(e,t,r,a,s,d,l);return r}function pl(e,t,r,n,l,i,o){let a=i-n+1,s=a<=4?S=>{for(let y=n;y<=i;y++)if(r[y]===S)return y}:(()=>{let S=new Map;for(let y=n;y<=i;y++)S.set(r[y],y);return y=>S.get(y)})(),d=new Int32Array(a),u=0,p=false,h=0;for(let S=n;S<=l;S++){let y=t[S];if(u>=a){Se(y);continue}let v=s(y);v===void 0?Se(y):(d[v-n]=S+1,v>=h?h=v:p=true,u++);}let k=p?$r(d):[],N=k.length-1;for(let S=a-1;S>=0;S--){let y=n+S,v=r[y],E=Lt(e,y+1<r.length?r[y+1]:o);d[S]===0?fe(e,v,E):p&&(N<0||S!==k[N]?fe(e,v,E):N--);}}function $r(e){let t=new Int32Array(e.length),r=[0],n=e.length,l,i,o,a,s;for(l=0;l<n;l++){let d=e[l];if(d!==0){if(i=r[r.length-1],e[i]<d){t[l]=i,r.push(l);continue}for(o=0,a=r.length-1;o<a;)s=o+a>>1,e[r[s]]<d?o=s+1:a=s;d<e[r[o]]&&(o>0&&(t[l]=r[o-1]),r[o]=l);}}for(o=r.length,a=r[o-1];o-- >0;)r[o]=a,a=t[a];return r}function Se(e){if(e)if(Q(e))e.destroy();else {let t=e;t.parentNode&&t.remove();}}function fe(e,t,r){if(!e||!t)return;let n=Q(r)?r.firstChild:r;if(Q(t)){t.mount(e,n);return}n?e.insertBefore(t,n):e.appendChild(t);}function Ye(e){if(e instanceof Node||Q(e))return e;let t=typeof e;return e==null||t==="string"||t==="number"||t==="boolean"||t==="symbol"?document.createTextNode(e===false||e==null?"":String(e)):document.createTextNode(String(e))}function Ot(e,t,r){if(!e)return;let n=V(),l=[],i=true,o=s=>{if(s instanceof Node)return [s];if(Q(s))return [s];let d=typeof s;return s==null||d==="string"||d==="number"||d==="boolean"?[Ye(s)]:Ft(s).map(u=>O(u)?u():u).flatMap(u=>u).map(Ye)},a=se(()=>{let s=()=>{let d=O(t)?t():t,u=o(d);if(i&&_t()&&u.every(p=>p instanceof Node&&p.parentNode===e)){l=u,i=false;return}if(i&&_t()){let p=cl(e,u,r);if(p){l=p,i=false;return}}l=dl(e,l,u,r),i=false;};n&&!n.isDestroyed?re(n,s):s();});return ue(()=>{a.stop();for(let s of l)Se(s);l=[];}),l}function Ci(e){return (e==null?void 0:e.firstChild)||null}function Oi(e,t=1){for(;e&&t>0;)e=e.nextSibling,t--;return e||null}function Di(e,t){if(!e||t<0)return null;let r=e.firstChild;for(;r&&t>0;)r=r.nextSibling,t--;return r||null}function Xr(e,t,r,n){if(!(n!=null&&n.delegate))return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n);let l=n.delegate,i=d=>{let u=d.target;(u.matches(l)||u.closest(l))&&r.call(e,d);},o=n,{delegate:a}=o,s=Tr(o,["delegate"]);return e.addEventListener(t,i,s),()=>{e.removeEventListener(t,i,s);}}function Dt(e,t,r){let n=e[t];n||(n=[],e[t]=n),n.push(r);}function Yr(e,t,r){let n=e.length;if(n===0)return;let l;for(let i=0;i<n;i++)try{let o=e[i]();if(me(o)){let a=o.catch(s=>{});(l||(l=[])).push(a);}}catch(o){}if(l)return Promise.all(l).then(()=>{})}function Rt(e){let t=V();if(t){if(t.isMounted){try{let r=e();me(r)&&r.catch(n=>{});}catch(r){}return}Dt(t,"onMount",e);}}function Ri(e){let t=V();t&&Dt(t,"onUpdate",e);}function Tt(e){let t=V();t&&Dt(t,"onDestroy",e);}function hl(e){if(e.isDestroyed)return;if(!e.onMount||e.onMount.length===0){e.isMounted=true;return}let t=e.onMount,r=re(e,()=>Yr(t,e.id));return t.length=0,e.isMounted=true,r}function ml(e){if(!(e.isDestroyed||!e.onUpdate||e.onUpdate.length===0))return re(e,()=>Yr(e.onUpdate,e.id))}function Dr(e,t,r=false){for(let n of Object.getOwnPropertyNames(t))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));if(r){let n=Object.getOwnPropertyNames(t);for(let l of Object.getOwnPropertyNames(e))n.includes(l)||delete e[l];}}function Rr(e,t){let r=Object.getOwnPropertyDescriptor(e,t);return r.get?r.get.call(e):r.value}var Kr;Kr="normal";var Jr=class{constructor(e,t={}){this.component=e,this.props=t,this[Kr]=true,this.scope=null,this.state=0,this.beforeNode=void 0,this.renderedNodes=[],this.firstChild=void 0,this.parentNode=void 0,this.rootEventCleanups=[],this.parentScope=V();let r={};Dr(r,t),this.reactiveProps=He(r);}mount(e,t){var r;if(this.parentNode=e,this.beforeNode=t,this.state=1,this.renderedNodes.length>0){for(let i of this.renderedNodes)fe(e,i,t);return this.state=2,this.renderedNodes}let n=he((r=this.parentScope)!=null?r:V());this.scope=n;let l=re(n,()=>{var i;let o=this.component(this.reactiveProps);return O(o)&&(o=o(this.reactiveProps)),(H(o)||ge(o))&&(o=o.value),(i=Ot(e,o,t))!=null?i:[]});return this.renderedNodes=l,this.firstChild=l[0],this.syncSpecialProps(this.props),this.state=2,hl(n),this.renderedNodes}update(e){this.props=e;let t=this.scope;!t||t.isDestroyed||(Dr(this.reactiveProps,e!=null?e:{},true),this.syncSpecialProps(e),ml(t));}forceUpdate(){if(!this.parentNode)return;let e=this.parentNode,t=this.beforeNode;this.destroy(),this.mount(e,t);}destroy(){let e=this.scope;if(!(!e||e.isDestroyed)){this.scope=null,this.releaseSpecialProps(),G(e);for(let t of this.renderedNodes)Se(t);this.renderedNodes=[],this.firstChild=void 0,this.parentNode=void 0;for(let t of Object.getOwnPropertyNames(this.reactiveProps))delete this.reactiveProps[t];}}syncSpecialProps(e){if(!e)return;let t=this.firstChild;if(!(!t||!(t instanceof Element))){this.releaseSpecialProps();for(let r of Object.getOwnPropertyNames(e)){if(r===Yn){let n=Rr(e,r);this.rootRefCleanup=this.bindRootRef(n,t);continue}if(It(r)){let n=Rr(e,r);if(!O(n))continue;let l=r.slice(2).toLowerCase(),i=t,o=`_$${l}`,a=i[o];if(O(a)){i[o]=n,this.rootEventCleanups.push(()=>{i[o]===n&&(i[o]=a);});continue}let s=n,d=u=>{i.disabled||s.call(i,u);};this.rootEventCleanups.push(Xr(i,l,d));}}}}releaseSpecialProps(){for(let e of this.rootEventCleanups)e();this.rootEventCleanups.length=0,this.rootRefCleanup&&(this.rootRefCleanup(),this.rootRefCleanup=void 0);}bindRootRef(e,t){if(O(e))return e(t),()=>e(null);if(H(e)){let r=e,n=r.value;return r.value=t,()=>{r.value===t&&(r.value=n);}}}};function Q(e){return !!e&&!!e.normal}function Zr(e,t){return Q(e)?e:new Jr(e,t)}function Pr(e){let t,r=()=>{let n=document.createElement("template");n.innerHTML=e;let l=n.content.firstChild;if(!l)throw new Error("Invalid template: empty content");return l};return ()=>(t||(t=r())).cloneNode(true)}function Pi(e,t){let r=z(t)?document.querySelector(t):t;if(!r)return;r.innerHTML&&(r.innerHTML="");let n=he(),l;try{re(n,()=>{let i=Zr(e);Q(i)&&(l=i,fe(r,i));});}catch(i){throw G(n),i}return {root:l,unmount:()=>{G(n),l==null||l.destroy();}}}function Mi(e,t){let r=z(t)?document.querySelector(t):t;if(!r)return;ul(r);let n=he(),l;try{re(n,()=>{let i=Zr(e);Q(i)&&(l=i,Ot(r,i));});}catch(i){throw G(n),i}finally{fl();}return {root:l,unmount:()=>{G(n),l==null||l.destroy();}}}function vl(e,t){let r=V();r&&(r.provides||(r.provides=new Map),r.provides.set(e,t));}function Qr(e,t){let r=V();if(!r)return t;let n=r;for(;n;){if(n.provides&&n.provides.has(e))return n.provides.get(e);n=n.parent;}return t}function kt(e,t){Object.defineProperty(e,"target",{configurable:true,value:t});}function en(e){let t=e.target,r=e.type,n=e.target,l=e.currentTarget,i=()=>{let a=t[`_$${r}`];if(a&&O(a)&&!t.disabled){let s=t[`${r}Data`];if(s?a.call(t,s,e):a.call(t,e),e.cancelBubble)return false}return t.host&&!z(t.host)&&!t.host._$host&&O(t.contains)&&t.contains(e.target)&&kt(e,t.host),true},o=()=>{for(;i()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:true,get(){return t||document}}),e.composedPath){let a=e.composedPath();kt(e,a[0]);for(let s=0;s<a.length-2&&(t=a[s],!!i());s++){if(t._$host){t=t._$host,o();break}if(t.parentNode===l)break}}else o();kt(e,n);}var Ke=Symbol("_$EVENTS");function ji(e,t=globalThis.document){let r=t,n=r[Ke]||(r[Ke]=new Set);for(let l of e)n.has(l)||(n.add(l),t.addEventListener(l,en));}function Fi(e=globalThis.document){let t=e,r=t[Ke];if(r){for(let n of r.keys())e.removeEventListener(n,en);delete t[Ke];}}function We(e,t,r,n){let l=Xr(e,t,r,n);V()&&ue(l);}var gl=e=>e,yl=typeof DataTransfer!="undefined"?new DataTransfer().files:[];function tn(e,t){let r=e,n=t==null?"":String(t);r.value!==n&&(r.value=n);}var bl={event:"change",forceChange:true,checkboxArray:true,read:e=>e.checked,write(e,t){let r=e,n=q(t)?t.map(String).includes(r.value):!!t;r.checked!==n&&(r.checked=n);}},Sl={event:"change",forceChange:true,read(e){let t=e;return t.checked?t.value:""},write(e,t){let r=e,n=String(t)===r.value;r.checked!==n&&(r.checked=n);}},kl={event:"change",forceChange:true,read:e=>e.files,write(e,t){if(t==null)try{e.files=yl;}catch(r){}}},Mr={event:"input",ime:true,read:e=>e.value,write:tn},El={event:"change",forceChange:true,read(e){let t=e;return t.multiple?Array.from(t.selectedOptions,r=>r.value):t.value},write(e,t){let r=e;if(!r.multiple)return tn(e,t);let n=new Set((q(t)?t:[]).map(String));for(let l of Array.from(r.options))l.selected=n.has(l.value);}};function jr(e){return {event:"input",read:t=>t[e],write(t,r){t[e]=r;}}}function wl(e,t){switch(e.nodeName){case "INPUT":return t==="checked"?e.type==="radio"?Sl:bl:t==="files"?kl:t==="value"?Mr:jr(t);case "SELECT":return El;case "TEXTAREA":return Mr;default:return jr(t)}}function Al(e,t,r){if(!z(e))return e;let n=t?e.trim():e;if(r){let l=t?n:n.trim();if(l!==""){let i=Number(l);if(!Number.isNaN(i))return i}}return n}function _l(e){let t=e.getRootNode();return (t instanceof Document||t instanceof ShadowRoot)&&t.activeElement===e}function Ll(e,t){if(t!=="value"||e.nodeName!=="INPUT")return false;let r=e.type;return r==="number"||r==="range"}function Ii(e,t,r,n,l={}){if(!e)return;let{event:i,read:o,write:a,forceChange:s,ime:d,checkboxArray:u}=wl(e,t),p=l.trim===true,h=l.number===true||Ll(e,t),k=l.lazy===true,N=(p||h)&&t!=="files",S=O(r)?r:()=>r,y=N?_=>Al(_,p,h):gl,v=u?_=>{let M=S();if(!q(M))return y(_);let R=e.value,B=M.filter(f=>String(f)!==R);return _&&B.push(R),B}:y,E=false,c=k||s?"change":i,T=()=>{if(E)return;let _=o(e);if(_===void 0)return;let M=v(_);Object.is(S(),M)||n(M);};We(e,c,T),!k&&N&&c!=="change"&&We(e,"change",()=>a(e,y(o(e)))),d&&(We(e,"compositionstart",()=>{E=true;}),We(e,"compositionend",()=>{E=false,k||T();}));let D=se(()=>{let _=S();d&&E||d&&!k&&_l(e)&&Object.is(y(o(e)),_)||a(e,_);});V()&&ue(()=>D.stop());}function Fr(e){let t=e;return Array.isArray(t)&&t.length===1&&(t=t[0]),typeof t=="function"?t():t}function Tl(e){let t=Object.getOwnPropertyDescriptor(e,"children");return t!=null&&t.get?()=>Fr(t.get.call(e)):()=>Fr(e.children)}function Hi(e,t){let r=new Set(t);return new Proxy(e,{get(n,l){if(!r.has(l))return Reflect.get(n,l)},ownKeys(n){return Reflect.ownKeys(n).filter(l=>!r.has(l))},getOwnPropertyDescriptor(n,l){if(!r.has(l))return Reflect.getOwnPropertyDescriptor(n,l)},has(n,l){return r.has(l)?false:Reflect.has(n,l)}})}function xl(e){var t;if(e&&((t=Object.getOwnPropertyDescriptor(e,"children"))!=null&&t.get||Z(e)))return [()=>e.children];let r=e==null?void 0:e.children;return r==null?null:r}xl[Ur]=true;function Bi(e){return !!e&&!!e[Ur]}function $e(e){let t=O(e.target)?e.target():e.target;return t==null?null:z(t)?document.querySelector(t):t}function Xe(e){return O(e.disabled)?!!e.disabled():!!e.disabled}function Nl(e){if(_t()){let u=Cl(e);if(u)return u}let t=document.createComment("portal");t[Ze]=true;let{children:r}=e;if(r==null)return t;let n=V(),l=null,i=(u,p)=>{l=he(n),re(l,()=>{Ot(u,()=>r,p);});},o=()=>{l&&(G(l),l=null);},a=(u,p)=>{if(o(),u){let h=t.parentNode;if(!h)return;i(h,t);return}p&&i(p);},s=false,d=se(()=>{let u=Xe(e),p=u?null:$e(e);s&&a(u,p);});return Rt(()=>{s=!0;let u=Xe(e),p=u?null:$e(e);if(u||p){a(u,p);return}queueMicrotask(()=>{t.parentNode&&a(Xe(e),$e(e));});}),ue(()=>{d.stop(),o();}),t}Nl[Ze]=true;function Cl(e){if(Xe(e))return null;let t=al();if(!t)return null;let r=$e(e);return !r||!sl(r)?null:(t[Ze]=true,t)}function zi(e){return !!e&&!!e[Ze]}function qe(e){for(;e.firstChild;)e.removeChild(e.firstChild);}function rn(e){let t=e;for(;O(t);)t=t();return H(t)||ge(t)?rn(t.value):t}var Pt=Symbol("SuspenseContext");function Ol(e){var t;if(!ot())return (t=e.fallback)!=null?t:"";let r=document.createElement("div");r.style.display="contents";let n=true,l=0,i=false,o=null,a=S=>{let y=rn(S);if(q(y)){let v=[];for(let E of y){let c=a(E);q(c)?v.push(...c):v.push(c);}return v}return Ye(y)},s=S=>{let y=a(S),v=q(y)?y:[y];for(let E of v)E!=null&&fe(r,E);},d=()=>{qe(r),e.fallback!=null&&s(e.fallback);},u=()=>{i||(i=true,d());},p=()=>{!i||!(o||e.children!=null&&!me(e.children))||(i=false,qe(r),o?h(o):e.children!=null&&!me(e.children)&&h(e.children));},h=S=>{if(i||(qe(r),S==null))return;let y=q(S)?S:[S];for(let v of y)v!=null&&s(v);i&&d();},k={register:S=>{l++,u(),S.then(()=>{n&&(l--,l===0&&p());}).catch(y=>{n&&(l--,l===0&&p());});},increment:()=>{l++,u();},decrement:()=>{l=Math.max(0,l-1),l===0&&p();}};vl(Pt,k);let N=e.children;return me(N)?(N.then(S=>{o=S;}).catch(()=>{}),k.register(N)):N!=null?h(N):u(),Tt(()=>{n=false,l=0,o=null,qe(r),r.remove();}),r}Ol[Wr]=true;function Ui(e){return !!e&&!!e[Wr]}function Wi(e,t){let r=Te(t==null?void 0:t.initialValue),n=Te(true),l=Te(null),i=Te("pending"),o=0,a=null,s=false,d=Qr(Pt,null),u=()=>bt(null,null,function*(){let h=++o;n.value=true,i.value="pending",l.value=null,s=false,d&&d.increment();try{let k=e();a=k,k.catch(()=>{});let N=yield k;h===o&&(r.value=N,i.value="ready",n.value=!1);}catch(k){h===o&&(l.value=k instanceof Error?k:new Error(String(k)),i.value="errored",n.value=false);}finally{d&&d.decrement();}});u();let p=(()=>(!s&&n.value&&a&&d&&(s=true,d.register(a)),r.value));return p.loading=n,p.error=l,p.state=i,[p,{mutate:h=>{r.value=h,i.value="ready",n.value=false,l.value=null;},refetch:()=>bt(null,null,function*(){yield u();})}]}function Ir(e){return O(e)?e:e.default}function Et(e,t,r){let n=new Jr(t,r);return n.mount(e),n}function qi(e,t={}){let{delay:r=200,timeout:n,ssr:l="blocking",onError:i}=t;if(typeof window=="undefined"){if(l==="client-only"){let y=()=>"";return y.__asyncLoader=e,y.__asyncResolved=()=>null,y}let h=null,k=null,N=()=>k||(k=e().then(y=>{h=Ir(y);}).catch(()=>{}),k);N();let S=y=>h?h(y):"";return S.__asyncLoader=N,S.__asyncResolved=()=>h,S}let o=null,a=null,s="pending",d=null;function u(){return d||(d=e().then(h=>{o=Ir(h),s="resolved";}).catch(h=>{a=h instanceof Error?h:new Error(String(h)),s="errored",d=null;}),d)}u();function p(h){var k;if(s==="resolved"&&o){let f=document.createElement("div");f.style.display="contents";let w=Et(f,o,h);return ue(()=>w.destroy()),f}if(s==="errored"&&a){let f=document.createElement("div");if(f.style.display="contents",t.error){let w=true,b=null,C=(x,g)=>{w&&(b==null||b.destroy(),b=Et(f,x,g));},m=()=>{d=null,s="pending",a=null,t.loading&&C(t.loading),u().then(()=>{w&&(s==="resolved"&&o?C(o,h):s==="errored"&&a&&t.error&&C(t.error,{error:a,retry:m}));});};C(t.error,{error:a,retry:m}),Tt(()=>{w=false,b==null||b.destroy(),b=null;});}return f}let N=document.createElement("div");N.style.display="contents";let S=true,y=null,v=null,E=null,c=(f,w)=>{S&&(y==null||y.destroy(),y=Et(N,f,w));},T=f=>()=>{d=null,s="pending",a=null,t.loading&&c(t.loading),u().then(()=>{s==="resolved"&&o?c(o,f):s==="errored"&&a&&t.error&&c(t.error,{error:a,retry:T(f)});});};Tt(()=>{S=false,y==null||y.destroy(),y=null,v!=null&&clearTimeout(v),E!=null&&clearTimeout(E);});let D=(k=Qr(Pt))!=null?k:null,_=f=>c(f,h),M=f=>{t.error&&c(t.error,{error:f,retry:T(h)});},R=()=>{t.loading&&c(t.loading);},B=u().then(()=>{S&&(s==="resolved"&&o?_(o):s==="errored"&&a&&(M(a),i&&i(a,T(h))),v!=null&&clearTimeout(v),E!=null&&clearTimeout(E));});return D&&D.register(B),r>0?v=setTimeout(()=>{S&&s==="pending"&&R();},r):t.loading&&R(),n!=null&&(E=setTimeout(()=>{if(S&&s==="pending"){let f=new Error(`[defineAsyncComponent] Timeout after ${n}ms`);a=f,s="errored",M(f),i&&i(f,T(h));}},n)),N}return p.__asyncLoader=u,p.__asyncResolved=()=>o,p}function Dl(e){let t=document.createDocumentFragment(),r=document.createComment("");t.appendChild(r);let n=[],l=[],i=e.key,o=e.children,a=Array.isArray(o)&&o.length===1&&O(o[0])?o[0]:e.children;if(!O(a))throw new TypeError("<For> requires `children` to be a function (item, index) => Node");let s=()=>{var v,E;let c=e.each;return H(c)?(v=c.value)!=null?v:[]:O(c)?(E=c())!=null?E:[]:c!=null?c:[]},d=(v,E)=>i?i(v,E):v,u=(v,E,c)=>{if(v==null||v===false)return [];if(Array.isArray(v)){let D=[];for(let _ of v)D.push(...u(_,E,c));return D}if(Q(v))return fe(E,v,c!=null?c:void 0),v.renderedNodes;let T=Ye(v);return fe(E,T,c!=null?c:void 0),[T]},p=(v,E)=>{e.fallback&&(l=u(e.fallback(),v,E));},h=()=>{for(let v of l)v.parentNode&&v.parentNode.removeChild(v);l=[];},k=(v,E,c,T,D=d(v,E))=>{let _=V(),M=he(_),R=[];return re(M,()=>{R=u(a(v,E),c,T);}),{key:D,item:v,nodes:R,scope:M}},N=v=>{G(v.scope);for(let E of v.nodes)E.parentNode&&E.parentNode.removeChild(E);},S=se(()=>{let v=s(),E=r.parentNode;if(!E){if(v.length===0)p(t,r);else {n=new Array(v.length);let c=0;for(let T of v)n[c]=k(T,c,t,r),c++;}return}y(E,v);});function y(v,E){let c=n.length,T=E.length;if(T===0){for(let g=0;g<c;g++)N(n[g]);n=[],e.fallback&&l.length===0&&p(v,r);return}if(c===0||l.length>0){l.length>0&&h(),n=new Array(T);let g=document.createDocumentFragment();for(let L=0;L<T;L++)n[L]=k(E[L],L,g,null);v.insertBefore(g,r);return}let D=new Map;for(let g=0;g<c;g++){let L=n[g],j=D.get(L.key),I=[L,g];j?j.push(I):D.set(L.key,[I]);}let _=new Array(T),M=[],R=null,B=new Int32Array(T),f=false,w=0,b=new Array(T);for(let g=0;g<T;g++)b[g]=d(E[g],g);for(let g=0;g<T;g++){let L=E[g],j=b[g],I=D.get(j);if(I&&I.length>0){let[de,et]=I.shift();Object.is(de.item,L)?(de.item=L,_[g]=de,B[g]=et+1,et<w?f=true:w=et):(R||(R=document.createDocumentFragment()),N(de),_[g]=k(L,g,R,null,j));}else R||(R=document.createDocumentFragment()),_[g]=k(L,g,R,null,j);}for(let g of D.values())for(let[L]of g)M.push(L);for(let g of M)N(g);let C=f?$r(B):[],m=C.length-1,x=r;for(let g=T-1;g>=0;g--){let L=_[g].nodes;if(B[g]!==0&&f&&m>=0&&g===C[m]){m--;for(let j=L.length-1;j>=0;j--)x=L[j];continue}for(let j=L.length-1;j>=0;j--){let I=L[j];I.nextSibling!==x&&v.insertBefore(I,x),x=I;}}n=_;}return ue(()=>{S.stop();for(let v of n)N(v);n=[],h(),r.parentNode&&r.parentNode.removeChild(r);}),t}Dl[Zn]=true;function nn(e){var t,r,n,l,i,o,a,s,d,u;let p=(t=e.name)!=null?t:"v",h=(r=e.enterFromClass)!=null?r:`${p}-enter-from`,k=(n=e.enterActiveClass)!=null?n:`${p}-enter-active`,N=(l=e.enterToClass)!=null?l:`${p}-enter-to`;return {enterFrom:h,enterActive:k,enterTo:N,leaveFrom:(i=e.leaveFromClass)!=null?i:`${p}-leave-from`,leaveActive:(o=e.leaveActiveClass)!=null?o:`${p}-leave-active`,leaveTo:(a=e.leaveToClass)!=null?a:`${p}-leave-to`,appearFrom:(s=e.appearFromClass)!=null?s:h,appearActive:(d=e.appearActiveClass)!=null?d:k,appearTo:(u=e.appearToClass)!=null?u:N}}var Hr=e=>e?e.endsWith("ms")?Number(e.slice(0,-2).replace(",",".")):Number(e.slice(0,-1).replace(",","."))*1e3:0;function Br(e,t){let r=e.split(", "),n=t.split(", "),l=0;for(let[i,o]of n.entries()){let a=Hr(o)+Hr(r[i%r.length]||"0s");a>l&&(l=a);}return l}function ln(e,t){let r=getComputedStyle(e),n=t!=="animation"?Br(r.transitionDelay,r.transitionDuration):0,l=t!=="transition"?Br(r.animationDelay,r.animationDuration):0;return n===0&&l===0?null:n>=l?{event:"transitionend",timeout:n}:{event:"animationend",timeout:l}}function $(e,t){for(let r of t.split(/\s+/))r&&e.classList.add(r);}function W(e,t){for(let r of t.split(/\s+/))r&&e.classList.remove(r);}function Je(e){requestAnimationFrame(()=>requestAnimationFrame(e));}function xt(e){e.offsetHeight;}function Ne(e,t,r,n){if(r!=null){setTimeout(n,r);return}let l=ln(e,t);if(!l){n();return}let i=false,o=()=>{i||(i=true,e.removeEventListener(l.event,a),n());},a=()=>o();e.addEventListener(l.event,a),setTimeout(o,l.timeout+1);}function Ce(e,t){return e==null?null:typeof e=="number"?e:e[t]}function zr(e){if(e==null||e===false)return null;if(Array.isArray(e))return e[0]instanceof Element?e[0]:null;if(e instanceof Element)return e;if(Q(e)){let t=e;if(t.scope==null){let n=document.createDocumentFragment();t.mount(n);}let r=t.firstChild;return r instanceof Element?r:null}return null}var Ve=Symbol("enter_cb"),xe=Symbol("leave_cb");function Rl(e){let t=document.createComment(""),r=nn(e),n=e.css!==false,l=Tl(e),i="idle",o=null,a=null,s=false,d,u=false,p=false,h=false,k=(c,T)=>{var D;let _=c[xe];_&&_(true),i="entering";let M=T==="appear"?r.appearFrom:r.enterFrom,R=T==="appear"?r.appearActive:r.enterActive,B=T==="appear"?r.appearTo:r.enterTo;(D=e.onBeforeEnter)==null||D.call(e,c),n&&($(c,M),$(c,R));let f=false,w=b=>{var C,m;f||(f=true,c[Ve]=void 0,n&&(W(c,M),W(c,R),W(c,B)),b?(C=e.onEnterCancelled)==null||C.call(e,c):(i="entered",(m=e.onAfterEnter)==null||m.call(e,c)));};c[Ve]=w,Je(()=>{if(!f)if(n&&(W(c,M),$(c,B)),e.onEnter)e.onEnter(c,()=>w(false));else if(n){let b=Ce(e.duration,"enter");Ne(c,e.type,b,()=>w(false));}else w(false);});},N=(c,T)=>{var D;let _=c[Ve];_&&(_(true),xt(c)),i="leaving",(D=e.onBeforeLeave)==null||D.call(e,c),n&&($(c,r.leaveFrom),$(c,r.leaveActive));let M=false,R=w=>{var b,C;M||(M=true,c[xe]=void 0,n&&(W(c,r.leaveFrom),W(c,r.leaveActive),W(c,r.leaveTo)),w?(b=e.onLeaveCancelled)==null||b.call(e,c):(i="idle",T(),(C=e.onAfterLeave)==null||C.call(e,c)));};c[xe]=R;let B=Ce(e.duration,"leave"),f=n&&!e.onLeave&&B==null?!!ln(c,e.type):false;if(!e.onLeave&&B==null&&!f){R(false);return}Je(()=>{M||(n&&(W(c,r.leaveFrom),$(c,r.leaveTo)),e.onLeave?e.onLeave(c,()=>R(false)):n?Ne(c,e.type,B,()=>R(false)):R(false));});},S=(c,T)=>{if(c&&i==="leaving"&&a){let _=a,M=_[xe];M&&M(true),a=null,o=_,k(_,"enter");return}if(c===o)return;let D=o;if(o=c,D){a=D;let _=D;N(_,()=>{_.parentNode&&_.parentNode.removeChild(_),a===_&&(a=null);});}c&&t.parentNode?(t.parentNode.insertBefore(c,t),T&&!e.appear?i="entered":k(c,T&&e.appear?"appear":"enter")):!D&&!c&&(i="idle");},y=()=>{if(p=false,h||!u)return;let c=d;u=false,d=void 0;try{S(zr(c),!1);}catch(T){}},v=c=>{d=c,u=true,!p&&(p=true,queueMicrotask(y));},E=se(()=>{let c=l();s?v(c):(d=c,u=true);});return Rt(()=>{s=!0;let c=u?zr(d):null;u=!1,d=void 0,S(c,!0);}),ue(()=>{h=true,E.stop();for(let c of [o,a]){if(!c)continue;let T=c[Ve],D=c[xe];T==null||T(true),D==null||D(true),c.parentNode&&c.parentNode.removeChild(c);}o=null,a=null,i="idle";}),t}Rl[qr]=true;function Vi(e){return !!e&&!!e[qr]}function Nt(e,t){if(e==null||e===false)return {el:null,comp:null};if(Array.isArray(e)&&e.length===1)return Nt(e[0],t);if(O(e))return Nt(e(),t);if(e instanceof HTMLElement)return {el:e,comp:null};if(Q(e)){let r=e;r.scope==null&&r.mount(t);let n=r.firstChild;return n instanceof HTMLElement?{el:n,comp:r}:{el:null,comp:r}}return {el:null,comp:null}}function Pl(e){return {position:e.style.position,top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height}}function wt(e,t){e.style.position=t.position,e.style.top=t.top,e.style.left=t.left,e.style.width=t.width,e.style.height=t.height;}function Ml(e){var t,r,n;let l=(t=e.tag)!=null?t:"div",i=document.createElement(l),o=nn(e),a=e.css!==false,s=(n=e.moveClass)!=null?n:`${(r=e.name)!=null?r:"v"}-move`,d=e.key,u=e.children,p=Array.isArray(u)&&u.length===1&&O(u[0])?u[0]:e.children;if(!O(p)||!O(d))throw new TypeError("<TransitionGroup> requires `children: (item, index) => Node` and `key: (item, index) => unknown`");let h=()=>{var f,w;let b=e.each;return H(b)?(f=b.value)!=null?f:[]:O(b)?(w=b())!=null?w:[]:b!=null?b:[]},k=[],N=false,S=(f,w)=>{let b=V(),C=he(b),m;re(C,()=>{m=p(f,w);});let{el:x,comp:g}=Nt(m,i);return x?{key:d(f,w),item:f,el:x,comp:g,scope:C,state:"entering"}:(G(C),null)},y=f=>{if(f.comp){for(let w of f.comp.renderedNodes)w.parentNode===i&&i.removeChild(w);return}f.el.parentNode===i&&i.removeChild(f.el);},v=f=>{var w,b;(w=f.cancelEnter)==null||w.call(f,true),(b=f.cancelLeave)==null||b.call(f,true),f.comp&&f.comp.destroy(),y(f),G(f.scope);},E=f=>{var w,b,C;let m=f.el;if((w=f.cancelLeave)==null||w.call(f,true),!a){f.state="present",(b=e.onAfterEnter)==null||b.call(e,m);return}(C=e.onBeforeEnter)==null||C.call(e,m),$(m,o.enterFrom),$(m,o.enterActive);let x=false,g=L=>{var j,I;x||(x=true,f.cancelEnter=void 0,W(m,o.enterFrom),W(m,o.enterActive),W(m,o.enterTo),L?(j=e.onEnterCancelled)==null||j.call(e,m):(f.state="present",(I=e.onAfterEnter)==null||I.call(e,m)));};f.cancelEnter=g,f.state="entering",Je(()=>{if(!x)if(W(m,o.enterFrom),$(m,o.enterTo),e.onEnter)e.onEnter(m,()=>g(false));else {let L=Ce(e.duration,"enter");Ne(m,e.type,L,()=>g(false));}});},c=(f,w)=>{var b,C;let m=f.el;f.cancelEnter&&(f.cancelEnter(true),xt(m)),f.state="leaving",f.savedStyles=Pl(m);let x=i.getBoundingClientRect();if(m.style.position="absolute",m.style.top=`${w.top-x.top}px`,m.style.left=`${w.left-x.left}px`,m.style.width=`${w.width}px`,m.style.height=`${w.height}px`,!a){f.savedStyles&&wt(m,f.savedStyles),y(f),G(f.scope),f.comp&&f.comp.destroy(),(b=e.onAfterLeave)==null||b.call(e,m);return}(C=e.onBeforeLeave)==null||C.call(e,m),$(m,o.leaveFrom),$(m,o.leaveActive);let g=false,L=j=>{var I,de;if(!g){if(g=true,f.cancelLeave=void 0,W(m,o.leaveFrom),W(m,o.leaveActive),W(m,o.leaveTo),j){f.savedStyles&&wt(m,f.savedStyles),f.savedStyles=void 0,(I=e.onLeaveCancelled)==null||I.call(e,m);return}f.savedStyles&&wt(m,f.savedStyles),f.savedStyles=void 0,y(f),G(f.scope),f.comp&&f.comp.destroy(),(de=e.onAfterLeave)==null||de.call(e,m);}};f.cancelLeave=L,Je(()=>{if(!g)if(W(m,o.leaveFrom),$(m,o.leaveTo),e.onLeave)e.onLeave(m,()=>L(false));else {let j=Ce(e.duration,"leave");Ne(m,e.type,j,()=>L(false));}});},T=(f,w)=>{if(!a||f.state!=="present")return;let b=f.el,C=b.getBoundingClientRect(),m=w.left-C.left,x=w.top-C.top;if(!m&&!x)return;let g=b.style.transform,L=b.style.transitionDuration;b.style.transform=`translate(${m}px, ${x}px)`,b.style.transitionDuration="0s",$(b,s),xt(b),b.style.transform=g,b.style.transitionDuration=L;let j=Ce(e.duration,"enter");Ne(b,e.type,j,()=>{W(b,s);});},D=()=>{for(let f of k)f.state!=="leaving"&&(f.prevRect=f.el.getBoundingClientRect());},_=f=>{let w=new Map;for(let x of k)w.set(x.key,x);let b=[];for(let[x,g]of f.entries()){let L=d(g,x),j=w.get(L);if(j)w.delete(L),j.item=g,b.push(j);else {let I=S(g,x);I&&b.push(I);}}let C=[];for(let x of w.values())x.state!=="leaving"&&C.push(x);let m=null;for(let x=b.length-1;x>=0;x--){let g=b[x].el;(g.parentNode!==i||g.nextSibling!==m)&&i.insertBefore(g,m),m=g;}return {next:b,leaving:C}},M=(f,w)=>{if(w){let m=[];for(let[x,g]of f.entries()){let L=S(g,x);L&&(L.el.parentNode!==i&&i.appendChild(L.el),L.state="present",m.push(L));}k=m;return}D();let{next:b,leaving:C}=_(f);for(let m of b)m.state!=="present"&&E(m);for(let m of C){let x=m.prevRect;x&&c(m,x);}for(let m of b)m.state!=="present"||!m.prevRect||(T(m,m.prevRect),m.prevRect=void 0);k=b.concat(C);},R=null,B=se(()=>{let f=h();if(!N){R=f;return}M(f,false);});return Rt(()=>{N=!0,R&&(M(R,!0),R=null);}),ue(()=>{B.stop();for(let f of k)v(f);k=[],i.parentNode&&i.parentNode.removeChild(i);}),i}Ml[Vr]=true;function Gi(e){return !!e&&!!e[Vr]}globalThis&&(globalThis.__essor_version__=Mt);
|
|
11
|
+
exports.Component=Jr;exports.EffectScope=Bn;exports.For=Dl;exports.Fragment=xl;exports.Portal=Nl;exports.Suspense=Ol;exports.Transition=Rl;exports.TransitionGroup=Ml;exports.TriggerOpTypes=K;exports.__version=Mt;exports.addEvent=Xr;exports.addEventListener=We;exports.batch=tr;exports.beginHydration=ul;exports.bindElement=Ii;exports.child=Ci;exports.clearDelegatedEvents=Fi;exports.computed=Un;exports.consumeTeleportAnchor=al;exports.consumeTeleportBlock=sl;exports.createApp=Pi;exports.createComponent=Zr;exports.createResource=Wi;exports.createStore=oi;exports.defineAsyncComponent=qi;exports.delegateEvents=ji;exports.effect=se;exports.effectScope=yt;exports.endBatch=In;exports.endHydration=fl;exports.getBatchDepth=ei;exports.getCurrentScope=ti;exports.getHydrationKey=ll;exports.getRenderedElement=Li;exports.hydrate=Mi;exports.hydrationAnchor=_i;exports.hydrationMarker=Ai;exports.inject=Qr;exports.insert=Ot;exports.isBatching=Hn;exports.isComponent=Q;exports.isComputed=ge;exports.isEffect=li;exports.isFragment=Bi;exports.isHydrating=_t;exports.isPortal=zi;exports.isReactive=Z;exports.isRef=_r;exports.isShallow=te;exports.isSignal=H;exports.isSuspense=Ui;exports.isTransition=Vi;exports.isTransitionGroup=Gi;exports.memoEffect=ii;exports.next=Oi;exports.nextTick=Rn;exports.normalizeClass=Cr;exports.nthChild=Di;exports.omitProps=Hi;exports.onDestroy=Tt;exports.onMount=Rt;exports.onScopeDispose=ri;exports.onUpdate=Ri;exports.patchAttr=At;exports.patchAttrHydrate=xi;exports.patchClass=Qn;exports.patchClassHydrate=Ti;exports.patchStyle=tl;exports.patchStyleHydrate=Ni;exports.provide=vl;exports.queueJob=Be;exports.queuePreFlushCb=Pn;exports.reactive=Ie;exports.ref=ai;exports.resetHydrationKey=wi;exports.setCurrentScope=Sr;exports.setStyle=Ge;exports.shallowReactive=He;exports.shallowSignal=Ql;exports.signal=Te;exports.startBatch=Fn;exports.stop=ni;exports.template=Pr;exports.toRaw=A;exports.toReactive=Zl;exports.trigger=J;exports.untrack=Jl;exports.watch=si;
|
package/dist/essor.d.cts
CHANGED