sprae 13.3.8 → 13.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core.js +47 -22
- package/directive/each.js +38 -26
- package/directive/if.js +23 -0
- package/dist/sprae-csp.js +10 -10
- package/dist/sprae-csp.js.map +4 -4
- package/dist/sprae-csp.umd.js +10 -10
- package/dist/sprae-csp.umd.js.map +4 -4
- package/dist/sprae-preact.js +3 -3
- package/dist/sprae-preact.js.map +4 -4
- package/dist/sprae-preact.umd.js +4 -4
- package/dist/sprae-preact.umd.js.map +4 -4
- package/dist/sprae.js +3 -3
- package/dist/sprae.js.map +4 -4
- package/dist/sprae.umd.js +3 -3
- package/dist/sprae.umd.js.map +4 -4
- package/package.json +1 -1
- package/readme.md +7 -7
- package/signal.js +33 -26
- package/sprae.js +26 -19
- package/store.js +16 -6
- package/types/core.d.ts +4 -20
- package/types/core.d.ts.map +1 -1
- package/types/directive/each.d.ts.map +1 -1
- package/types/directive/if.d.ts +1 -0
- package/types/directive/if.d.ts.map +1 -1
- package/types/signal.d.ts +3 -3
- package/types/signal.d.ts.map +1 -1
- package/types/sprae.d.ts.map +1 -1
- package/directive/else.js +0 -24
- package/types/directive/else.d.ts +0 -3
- package/types/directive/else.d.ts.map +0 -1
package/dist/sprae-preact.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (g, f) {if ("object" == typeof exports && "object" == typeof module) {module.exports = f();} else if ("function" == typeof define && define.amd) {define("sprae", [], f);} else if ("object" == typeof exports) {exports["sprae"] = f();} else {g["sprae"] = f();}}(typeof self !== 'undefined' ? self : typeof globalThis !== 'undefined' ? globalThis : this, () => {var exports = {};var module = { exports };
|
|
2
|
-
var
|
|
3
|
-
in ${
|
|
4
|
-
${
|
|
5
|
-
="${i}"`}console.error(o)},De=(e=document.body,t)=>{if(e[m])return Object.assign(e[m],t);t=le(t||{});let r=e,o=[],i=[];r[fe]=()=>{if(i)return i;i=Array(o.length);for(let s=0;s<o.length;s++)i[s]=o[s]();return i},r[W]=()=>{if(!i)return;let s=i;i=null;for(let a=0;a<s.length;a++)s[a]?.()},r[g]||(r[g]=()=>{r[W]?.(),I?._root===r&&(I.disconnect(),I=null),r[W]=r[fe]=r[g]=r[ye]=r[m]=null});let n=r[ye]=s=>{let a=s.attributes,c;if(a)for(let l=0;l<a.length;){let{name:f,value:u}=a[l];if(f.startsWith(ge)){s.removeAttribute(f);let O=s[m];if(be=f,Le=s,o.push(c=Me(s,f.slice(ge.length),u,t)),i.push(c()),s[m]!==O)return}else l++}if(!(s!==e&&K(s)))if(s.firstChild!==void 0){let l=s.firstChild,f;for(;l;)f=l.nextSibling,l.nodeType==1&&n(l),l=f}else for(let l of s.childNodes)l.nodeType==1&&n(l)};return n(r),be=Le=null,r[m]===void 0&&!K(e)&&(r[m]=t),t};De.version="13.3.8";x=e=>{let t=Be[e=e.trim()];if(t)return t;try{t=Pe(e||"undefined")}catch(r){je(r,e)}return Be[e]=function(r,o,i){try{let n=t?.call(this,r);return o?n?.then?(n.then(s=>i=o(s)).catch(s=>je(s,e,this)),()=>typeof i=="function"&&i()):o(n):n}catch(n){je(n,e,this)}}},Be={},ue=e=>(e.compile&&(Pe=e.compile),e.prefix&&(ge=e.prefix),e.signal&&(j=e.signal),e.effect&&(Z=e.effect),e.computed&&(J=e.computed),e.batch&&(te=e.batch),e.untracked&&(H=e.untracked),e.dir&&(Me=e.dir)),L=(e,t)=>{for(;t.length;){let[r,...o]=t.pop().split("-"),i=F[r],n;if(i&&(n=i(e,...o))!==e){for(let s in e)n[s]??(n[s]=e[s]);e=n}}return e},I=null,oe=e=>{I?.disconnect(),e(),I?.observe(I._root,{childList:!0,subtree:!0})},ve=(e=document.body,t)=>{let r=le(t);return De(e,r),I=new MutationObserver(o=>{for(let i of o){for(let n of i.addedNodes)n.nodeType===1&&n[m]===void 0&&e.contains(n)&&e[ye](n);for(let n of i.removedNodes)n.nodeType===1&&!e.contains(n)&&n[g]?.()}}),I._root=e,I.observe(e,{childList:!0,subtree:!0}),r},M=e=>{if(!e.nodeType)return e;let t=e.ownerDocument,r=e.content.cloneNode(!0),o=[...e.attributes],i=t.createTextNode(""),n=(r.append(i),[...r.childNodes]);return{ownerDocument:t,childNodes:n,content:r,remove:()=>r.append(...n),replaceWith(s){s!==i&&(i.before(s),r.append(...n))},attributes:o,removeAttribute(s){o.splice(o.findIndex(a=>a.name===s),1)}}},We=e=>e.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(t,r)=>(r?"-":"")+t.toLowerCase()),cr=e=>e.replace(/-([a-z])/g,(t,r)=>r.toUpperCase()),k=(e,t,r)=>r==null||r===!1?e.removeAttribute(t):K(e)?e[cr(t)]=r:e.setAttribute(t,r===!0?"":r),_e=e=>e?typeof e=="string"?e:(Array.isArray(e)?e.map(_e):Object.entries(e).reduce((t,[r,o])=>(o&&t.push(r),t),[])).join(" "):"",B=(e,t)=>{let r=0,o=0,i,n=typeof t=="function"?t:t?a=>setTimeout(a,t):queueMicrotask,s=a=>{i=a,r++||(e(i),n(()=>{let c=r>1;if(r=0,c){if(++o>50){o=0,console.error("\u2234 Reactive loop detected");return}s(i)}else o=0}))};return s},xe=(e,t,r)=>{let o=typeof t=="function"?t:t?i=>setTimeout(i,t):queueMicrotask;return r?(i=>n=>!i&&(e(n),i=1,o(()=>i=0)))():((i=0)=>(n,s=++i)=>o(()=>s==i&&e(n)))()},v=De});var P,$,we,ae,qe,$e,ie,Ge,Oe,Se,Qe,le,de=y(()=>{_();P=Symbol("signals"),$=Symbol("change"),we=Symbol("touch"),ae=Symbol("set"),qe=Symbol("parent"),$e=!0,ie=(e,t)=>{if(!e||e[Symbol.toStringTag]||e[P])return e;if(e.constructor!==Object)return Array.isArray(e)?Ge(e):e;let r=Object.keys(e).length,o={},i=new Proxy(Object.assign(o,{[$]:j(r),[P]:o}),{get:(s,a)=>a in o?o.hasOwnProperty(a)&&typeof o[a]=="function"&&!o[a].prototype?o[a].bind(i):o[a]?o[a].valueOf():o[a]:t?t[a]:typeof globalThis[a]=="function"&&!globalThis[a].prototype?globalThis[a].bind(globalThis):globalThis[a],set:(s,a,c)=>a in o?(Qe(o,a,c),1):($e=!1,t&&a in t?t[a]=c:(Oe(o,a,c),o[$].value=++r),$e=!0,1),deleteProperty:(s,a)=>(a in o&&(a[0]!="_"&&o[a]?.[Symbol.dispose]?.(),delete o[a],o[$].value=--r),1),ownKeys:()=>(o[$].value,Reflect.ownKeys(o).filter(s=>s!==qe)),has:(s,a)=>a in o?!0:t?a in t:$e});Object.defineProperty(o,qe,{value:t,configurable:!0});let n=Object.getOwnPropertyDescriptors(e);for(let s in e)n[s]?.get?(o[s]=J(n[s].get.bind(i)))[ae]=n[s].set?.bind(i):Oe(o,s,e[s]);return i},Ge=(e,t=globalThis)=>{let r=e.map(f=>j(Se(f))),o=!1,i=f=>function(){return o=!0,f.apply(this,arguments)},n=j(e.length),s=j(0),a=()=>{s.value++},c=r.splice,l=new Proxy(Object.assign(r,{[$]:n,[we]:s,[P]:r,push:i(r.push),pop:i(r.pop),shift:i(r.shift),unshift:i(r.unshift),splice:i(function(){let f=c.apply(this,arguments);return a(),f})}),{get(f,u){return u==="length"?o?(o=!1,r.length):n.value:typeof u=="symbol"||isNaN(u)?r[u]?.valueOf()??t[u]:(r[u]??(r[u]=j(void 0))).valueOf()},set(f,u,O){if(u==="length"){for(let C=O;C<r.length;C++)delete l[C];n.value=r.length=O}else if(u>=r.length)Oe(r,u,O,Se),l.length=+u+1;else if(r[u]){let C=r[u],T=C.peek?.()??C.valueOf();Qe(r,u,O,Se),(C.peek?.()??C.valueOf())!==T&&a()}else Oe(r,u,O,Se);return 1},deleteProperty:(f,u)=>(r[u]?.[Symbol.dispose]?.(),delete r[u],1)});return Object.defineProperty(r,qe,{value:t,configurable:!0}),l},Oe=(e,t,r,o=ie)=>e[t]=t[0]=="_"||r?.peek||typeof r=="function"?r:j(o(r)),Se=e=>{if(!e||typeof e!="object"||e.constructor!==Object||e[$])return e;let t=j(0);return new Proxy(e,{get:(r,o)=>o===P?r:o===$?t:(t.value,r[o]),set:(r,o,i)=>{let n=r[o];return r[o]=i,n!==i&&t.value++,1},has:()=>!0})},Qe=(e,t,r,o=ie)=>{if(t[0]==="_"||typeof e[t]=="function")return e[t]=r;let i=e[t],n=i.peek?.()??i;if(r!==n){if(i[ae])return i[ae](r);Array.isArray(r)&&Array.isArray(n)?$ in n?H(()=>te(()=>{for(let s=0;s<r.length;s++)n[s]=r[s];n.length=r.length})):i.value=$ in r?r:Ge(r):i.value=o(r)}},le=ie});var He={};me(He,{batch:()=>ur,computed:()=>fr,effect:()=>et,signal:()=>Ye,untracked:()=>dr});var V,Re,ce,Ye,et,fr,ur,dr,tt=y(()=>{Re=0,Ye=(e,t,r=new Set,o=()=>t.value)=>t={get value(){return V?.deps.add(r.add(V)),e},set value(i){if(i!==e){e=i;for(let n of r)ce?ce.add(n):n()}},peek(){return e},toJSON:o,toString:o,valueOf:o},et=(e,t,r,o)=>(r=i=>{if(!e)return;let n=t;if(t=null,n?.call?.(),i=V,V=r,Re++>50){Re--,V=i,t=e=r.fn=null;for(let s of o)s.delete(r);o.clear(),console.error("\u2234 Reactive loop detected");return}try{t=e()}finally{V=i,Re--}},r.fn=e,o=r.deps=new Set,r(),i=>{t?.call?.(),t=e=r.fn=null;for(i of o)i.delete(r);o.clear()}),fr=(e,t=Ye(),r,o,i=()=>r.value)=>r={get value(){return o||(o=et(()=>t.value=e())),t.value},peek:t.peek,toJSON:i,toString:i,valueOf:i},ur=(e,t=!ce,r)=>{ce??(ce=new Set);try{e()}finally{if(t){[ce,r]=[null,ce];for(let o of r)o()}}},dr=(e,t,r)=>(t=V,V=null,r=e(),V=t,r)});var rt,ot=y(()=>{_();rt=(e,t)=>{var n,s;let r,o;e._holder?v(o=e,t):(e[n=m]??(e[n]=null),o=e.content?M(e):e,o[s=m]??(o[s]=null),oe(()=>e.replaceWith(r=e.ownerDocument.createTextNode(""))),o._holder=r._holder=r,r._clauses=[o._clause=[o,!1]],r._match=null,r.update=B(()=>{let a=r._clauses.find(([,c])=>c);a!=r._match&&oe(()=>{r._match?.[0].remove(),r._match?.[0][W]?.(),(r._match=a)&&(r.before(r._match[0].content||r._match[0]),r._match[0][m]?r._match[0][fe]?.():(delete r._match[0][m],v(r._match[0],t)))})}));let i=a=>{o._clause[1]=a,o._holder.update()};return i[W]=()=>{o._holder._match?.[0][W]?.(),o._holder._match=null},i}});var it,nt=y(()=>{_();it=e=>{var o;let t,r=e;for(t=e.content?M(e):e,t[o=m]??(t[o]=null);r&&!(t._holder=r._holder);)r=r.previousSibling;return e.remove(),e[m]=null,t._holder._clauses.push(t._clause=[t,!0]),t._holder.update}});var st,at=y(()=>{_();st=e=>(e.content&&e.replaceWith(e=M(e).childNodes[0]),t=>{t=typeof t=="function"?t(e.textContent):t,t=t==null?"":""+t;let r=e.textContent;if(r===t)return;let o=e.firstChild;if(o&&t.startsWith(r)){o.appendData(t.slice(r.length));return}let i=e.ownerDocument,n=i.activeElement,s=n&&(n===e||e.contains(n))?i.getSelection?.():null,a=s?.rangeCount&&e.contains(s.anchorNode)?s.getRangeAt(0).startOffset:-1;if(e.textContent=t,a>=0&&e.firstChild){let c=Math.min(a,e.firstChild.textContent.length),l=new Range;l.setStart(e.firstChild,c),l.collapse(!0),s.removeAllRanges(),s.addRange(l)}})});var lt,ct=y(()=>{_();lt=(e,t,r,o)=>{let i=null,n,s=null,a=()=>!e.classList.length&&e.removeAttribute("class");return c=>{if(c=typeof c=="function"?c(e.className):c,c?.constructor===Object){if(s=null,i)for(let l of i)c[l]||(e.classList.remove(l),i.delete(l));i?.size||(i=null);for(let l in c)c[l]&&!i?.has(l)&&(e.classList.add(l),(i||(i=new Set)).add(l));i||a();return}if(c=_e(c),c!==s){if(s=c,n=null,c)for(let l of c.split(" "))l&&(n||(n=new Set)).add(l);if(i)for(let l of i)n?.has(l)||e.classList.remove(l);if(n)for(let l of n)i?.has(l)||e.classList.add(l);n||a(),i=n}}}});var ft,ut=y(()=>{_();ft=(e,t,r,o)=>{let i;return n=>{if(i===void 0&&(i=e.getAttribute("style")??""),n=typeof n=="function"?n(e.style):n,typeof n=="string")k(e,"style",i?i+"; "+n:n);else{i&&k(e,"style",i);for(let s in n)s[0]=="-"?e.style.setProperty(s,n[s]):s[0]>="A"&&(e.style[s]=n[s])}}}});var dt,pt=y(()=>{dt=()=>e=>typeof e=="function"&&e()});var ht,mt=y(()=>{_();ht=(e,t)=>(e.type?.startsWith("select")&&v(e,t),e.type==="text"||e.type===""||e.tagName==="TEXTAREA"?(r,o,i)=>(o=e.selectionStart,i=e.selectionEnd,e.setAttribute("value",e.value=r??""),o&&e.setSelectionRange(o,i)):e.type==="checkbox"?r=>(e.checked=r,k(e,"checked",r)):e.type==="radio"?r=>(e.checked=e.value===r,k(e,"checked",e.checked||null)):e.type==="select-one"?r=>{for(let o of e.options)o.value==r?o.setAttribute("selected",""):o.removeAttribute("selected");e.value=r}:e.type==="select-multiple"?r=>{for(let o of e.options)r.some(i=>i==o.value)?o.setAttribute("selected",""):o.removeAttribute("selected")}:r=>e.value=r)});var pr,yt,gt=y(()=>{_();pr=(e,t=x(`${e}=__`))=>(r,o)=>{r.__=o,t(r),delete r.__},yt=(e,t,r)=>{let o=x(r).call(e,t);typeof o=="function"?o(e):pr(r)(t,e)}});var bt,vt=y(()=>{_();de();bt=(e,t)=>{let r=e[m]=ie({},t),o=!1,i,n=e.content&&M(e);return n&&e.replaceWith(i=e.ownerDocument.createTextNode("")),s=>{if(s=typeof s=="function"?s(r):s,s!==r)for(let a in s){let c=Object.getOwnPropertyDescriptor(s,a);if(c?.get){(r[P][a]=J(c.get.bind(r)))[ae]=c.set?.bind(r);continue}let l=typeof s[a]=="function"?s[a].bind(r):s[a];a in r[P]?r[a]=l:r[P][a]=a[0]=="_"||l?.peek?l:j(ie(l))}return!o&&(o=!0,!i&&delete e[m],H(()=>(i?.before(n.content||e),v(n||e,r))))}}});var hr,_t,Ne,xt,wt=y(()=>{_();hr={get:(e,t)=>t===e.v?e.c?.[e.i]:t===e.k?e.o?e.o[e.i]:e.i:t===P?e:e.l?.[t]!==void 0?e.l[t]:e.p?.[t],set:(e,t,r)=>(t===e.v?e.c&&(e.c[e.i]=r):t===e.k||(e.l?.[t]!==void 0?e.l[t]=r:t in(e.p?.[P]||{})?e.p[t]=r:(e.l||(e.l={}))[t]=r),1),has:()=>!0},_t={get:(e,t)=>t===e.v?e.r:t===e.k?e.i:t===P?e:e.l?.[t]!==void 0?e.l[t]:e.p?.[t],set:(e,t,r)=>(t===e.v?e.r=r:t===e.k||(e.l?.[t]!==void 0?e.l[t]=r:t in(e.p?.[P]||{})?e.p[t]=r:(e.l||(e.l={}))[t]=r),1),has:()=>!0},Ne=e=>{e.el.remove(),e.el[Symbol.dispose]?.()},xt=(e,t,r)=>{let[o,i]=r.split(/\bin|of\b/),[n,s="$"]=o.trim().replace(/\(|\)/g,"").split(/\s*,\s*/),a=e.ownerDocument,c=e._eachHolder||(e._eachHolder=a.createTextNode("")),l=new Map,f=[],u,O,C,T=!1,U=(p,N)=>{let A=new Proxy(p,N),Y=e.content?M(e):e.cloneNode(!0);return{el:Y,scope:p,proxy:A,node:Y.content||Y,_di:p.i}},R=p=>{if(!p.length)return;let N=p.length>1?a.createDocumentFragment():null;for(let A of p)N?N.appendChild(A.node):c.before(A.node);N&&c.before(N);for(let A of p)v(A.el,A.proxy)},D=B(()=>oe(()=>{let p=u,N=p.length,A=f.length,Y=N!==A;T=!1;for(let h=0;h<N;h++)if(p[h]!=null){T=typeof p[h]=="object";break}if(T&&A){let h=[],z=[],ee=new Set,Fe=!1;for(let w=0;w<N;w++){let b=p[w];if(b!=null&&typeof b=="object"){if(ee.has(b))return;ee.add(b)}let S=l.get(b);S?(!Y&&S.scope.i!==w&&(Fe=!0),S.scope.i=w,S.scope.r=b):(S=U({p:t,v:n,k:s,r:b,i:w,l:null},_t),l.set(b,S),z.push(S)),h.push(S)}for(let[w,b]of l)ee.has(w)||(Ne(b),l.delete(w));if(R(z),Fe){let w=[];for(let b=0;b<h.length;b++){let S=h[b];S._di!==b&&w.push(S),S._di=b}if(w.length===2){let b=w[0].node,S=w[1].node,se=a.createTextNode("");b.replaceWith(se),S.replaceWith(b),se.replaceWith(S)}else{let b=c;for(let S=h.length-1;S>=0;S--){let se=h[S].node;se.nextSibling!==b&&b.before(se),b=se}}}else for(let w=0;w<h.length;w++)h[w]._di=w;f=h}else{if(A&&C!==p){for(let h of f)Ne(h);f.length=0,A=0,l.clear()}if(C=p,N<A){for(let h=N;h<A;h++)Ne(f[h]);f.length=N}for(let h=0;h<Math.min(A,N);h++)f[h].scope.c=p,O&&(f[h].scope.o=O);if(N>A){let h=[];for(let z=A;z<N;z++){let ee=T?U({p:t,v:n,k:s,r:p[z],i:z,l:null},_t):U({p:t,v:n,k:s,c:p,i:z,o:O,l:null},hr);f.push(ee),T&&l.set(p[z],ee),h.push(ee)}R(h)}}}));e.parentNode&&oe(()=>e.replaceWith(c)),e[m]=null;let Q=p=>{O=null,typeof p=="number"?u=Array.from({length:p},(A,Y)=>Y+1):p?.constructor===Object?(O=Object.keys(p),u=Object.values(p)):u=p||[];let N=Z(()=>{u[$]?.value,u[we],D()});return()=>N()};return Q.eval=x(i),Q[W]=()=>{for(let p of f)Ne(p);f.length=0,l.clear()},Q}});var St,Ot=y(()=>{_();St=(e,t,r,o)=>i=>k(e,o,typeof i=="function"&&!K(e)?i(e.getAttribute(o)):i)});var Nt,At=y(()=>{_();Nt=e=>t=>{let r=K(e);for(let o in t)k(e,r?o:We(o),t[o])}});var Ct,Et=y(()=>{_();Ct=(e,t,r,o)=>{let[i,...n]=o.slice(2).split("."),s=x(r).bind(e),a=L(Object.assign(c=>s(t,l=>typeof l=="function"?l(c):l),{target:e}),n);return a.target.addEventListener(i,a,a),{[Symbol.dispose](){a.target.removeEventListener(i,a),a[Symbol.dispose]?.()}}}});var Tt,jt=y(()=>{_();Tt=(e,t,r,o)=>{let i,n,s=x(r).bind(e),a=o.split("..").map((c,l,{length:f})=>c.split(":").reduce((u,O)=>{let[C,...T]=O.slice(2).split("."),U=(D,Q)=>i=typeof D=="function"?D(Q):D,R=L(Object.assign(D=>(l?U(i,D):s(t,Q=>U(Q,D)),n(),n=a[(l+1)%f]()),{target:e}),T);return D=>(D=u?.(),R.target.addEventListener(C,R,R),()=>(D?.(),R.target.removeEventListener(C,R)))},null));return n=a[0](),{[Symbol.dispose](){n?.()}}}});var Lt,Dt,Mt=y(()=>{_();Lt=e=>!!e?.content,Dt=(e,t)=>{if(e.content){let r,o=e.innerHTML,i=e.ownerDocument,n=e._holder;return n||e.replaceWith(n=i.createTextNode("")),s=>{if(typeof s=="function"&&(s=s(o)),e._holder&&(e.remove(),e.content.replaceChildren()),r?.[g]?.(),r?.remove(),s!=null&&s!=="")return r=Lt(s)?(o=s.innerHTML,M(s)):M((r=i.createElement("template"),r.innerHTML=o=s,r)),H(()=>v(r,t)),n.before(r.content),e._holder&&e.childNodes.splice(0,1/0,...r.childNodes),r[g];e._holder&&(e.childNodes.length=0,o="")}}return r=>{var o;return r=typeof r=="function"?r(e.innerHTML):r,Lt(r)?e.replaceChildren(r.content.cloneNode(!0)):e.innerHTML=r??"",e[o=m]&&(e[o]=null),H(()=>v(e,t)),e[g]}}});var Pt,Wt=y(()=>{Pt=(e,t,r)=>{let o=e.ownerDocument,i=o.createComment(":portal"),n=null;return e.before(i),s=>{let a=e.getRootNode(),c=typeof s=="string"?a.querySelector?.(s)||o.querySelector(s):s?.nodeType===1?s:s?o.body:null;if(c!==n)return c?c.appendChild(e):i.after(e),n=c,()=>{n&&(i.after(e),n=null)}}}});var $t,qt=y(()=>{$t=e=>t=>e.hidden=!!t});var ke,Rt=y(()=>{_();ke=(e,t,r,o)=>{let[,...i]=o.split("."),n=x(r).bind(e),s;return L(Object.assign(()=>{let c=n(t,l=>typeof l=="function"?l(e):l);typeof c=="function"&&(s=c)},{target:e}),i)(),{[g](){s?.(),s=null}}}});var Ie,Ht=y(()=>{_();Ie=(e,t,r,o)=>{let[,...i]=o.split("."),n=x(r).bind(e),s=e.type==="checkbox"?()=>e.checked:e.type==="select-multiple"?()=>[...e.selectedOptions].map(c=>c.value):/^(date|time|month|week)/.test(e.type)?()=>e.value:()=>e.selectedIndex<0?null:isNaN(e.valueAsNumber)?e.value:e.valueAsNumber,a=L(Object.assign(()=>{n(t,c=>typeof c=="function"?c(s()):c)},{target:e}),i);return e.addEventListener("input",a),e.addEventListener("change",a),{[g](){e.removeEventListener("input",a),e.removeEventListener("change",a)}}}});var kt,It,Kt=y(()=>{_();kt=(e,t,r,o)=>{let[,...i]=o.split("."),n=x(r).bind(e),s=i.includes("once"),a=L(Object.assign(l=>{n(t,f=>typeof f=="function"?f(l):f)},{target:e}),i),c=new IntersectionObserver(l=>{for(let f of l)f.isIntersecting&&(a(f),s&&c.disconnect())});return c.observe(e),{[g](){c.disconnect()}}};kt.observer=!0;It=kt});var Ut,zt,Vt=y(()=>{_();Ut=(e,t,r,o)=>{let[,...i]=o.split("."),n=x(r).bind(e),s=L(Object.assign(c=>{n(t,l=>typeof l=="function"?l(c):l)},{target:e}),i),a=new ResizeObserver(c=>{for(let l of c){let f=l.contentRect;s({width:f.width,height:f.height,entry:l})}});return a.observe(e),{[g](){a.disconnect()}}};Ut.observer=!0;zt=Ut});var Jt={};me(Jt,{batch:()=>te,computed:()=>J,debounce:()=>xe,default:()=>vr,dispose:()=>br,effect:()=>Z,signal:()=>j,sprae:()=>v,start:()=>ve,store:()=>le,throttle:()=>B,untracked:()=>H,use:()=>ue});var mr,yr,Ke,Ue,Zt,gr,br,vr,Ft=y(()=>{de();_();tt();_();ot();nt();at();ct();ut();pt();mt();gt();vt();wt();Ot();At();Et();jt();Mt();Wt();qt();Rt();Ht();Kt();Vt();ke.observer=Ie.observer=!0;Object.assign(re,{_:St,"":Nt,class:lt,text:st,html:Dt,style:ft,fx:dt,value:ht,ref:yt,scope:bt,if:rt,else:it,each:xt,portal:Pt,hidden:$t,mount:ke,change:Ie,intersect:It,resize:zt});mr=(e,t,r,o)=>{let[i,...n]=t.split("."),s=re[i]||re._,a=n.length>0;return()=>{let c=e,l,f,u,O=0;if(a&&(f=j(0),u=L(Object.assign(()=>f.value++,{target:e}),n),c=u.target??e),l=s(c,o,r,i),!l?.call)return l?.[g];let C=l.eval??x(r).bind(c),T,U=()=>(typeof T=="function"&&T(),T=null);K(c)||(o=c[m]??o);let R=a?Z(()=>(f.value==O?u():(O=f.value,T=C(o,l)),U)):Z(()=>(T=C(o,l),U));if(!(m in c))return R;let D=0;return()=>{D||(D=1,R(),l[W]?l[W]():c[g]?.())}}},yr=e=>e?typeof e=="number"?e:(([,t,r]=e.match(/^(\d+)(ms|s|m)?$/)||[])=>(t=+t,r==="s"?t*1e3:r==="m"?t*6e4:t))():0,Ke=e=>e==="idle"?requestIdleCallback:e==="raf"?requestAnimationFrame:!e||e==="tick"?queueMicrotask:t=>setTimeout(t,yr(e));Object.assign(F,{debounce:(e,t,r)=>xe(e,Ke(t==="immediate"?r:t),t==="immediate"||r==="immediate"),throttle:(e,t)=>B(e,Ke(t)),delay:(e,t)=>((r=Ke(t))=>o=>r(()=>e(o)))(),tick:e=>t=>queueMicrotask(()=>e(t)),raf:e=>t=>requestAnimationFrame(()=>e(t)),once:(e,t,r)=>(r=o=>!t&&(t=1,e(o)),r.once=!0,r),window:e=>(e.target=e.target.ownerDocument.defaultView,e),document:e=>(e.target=e.target.ownerDocument,e),root:e=>(e.target=e.target.ownerDocument.documentElement,e),body:e=>(e.target=e.target.ownerDocument.body,e),parent:e=>(e.target=e.target.parentNode,e),self:e=>t=>t.target===e.target&&e(t),away:(e,t)=>{let r=e.target.ownerDocument,o=n=>t=n.target,i=r.currentEvent||r.defaultView?.event;return r.addEventListener("pointerdown",o,!0),Object.assign(n=>n!==i&&!e.target.contains(n.type==="click"?t??n.target:n.target)&&n.target.isConnected&&e(n),{target:r,[g]:()=>r.removeEventListener("pointerdown",o,!0)})},prevent:e=>t=>(t?.preventDefault(),e(t)),stop:(e,t)=>r=>(t?.[0]==="i"?r?.stopImmediatePropagation():r?.stopPropagation(),e(r)),passive:e=>(e.passive=!0,e),capture:e=>(e.capture=!0,e)});F.outside=F.away;Ue={ctrl:e=>e.ctrlKey||e.key==="Control"||e.key==="Ctrl",shift:e=>e.shiftKey||e.key==="Shift",alt:e=>e.altKey||e.key==="Alt",meta:e=>e.metaKey||e.key==="Meta",cmd:e=>e.metaKey||e.key==="Command",arrow:e=>e.key?.startsWith("Arrow"),enter:e=>e.key==="Enter",esc:e=>e.key?.startsWith("Esc"),tab:e=>e.key==="Tab",space:e=>e.key==="\xA0"||e.key==="Space"||e.key===" ",delete:e=>e.key==="Delete"||e.key==="Backspace",digit:e=>/^\d$/.test(e.key),letter:e=>/^\p{L}$/gu.test(e.key),char:e=>/^\S$/.test(e.key)},Zt=(e,t)=>Ue[e]?.(t)||t.key?.toLowerCase()===e||t.keyCode==e;for(let e in Ue)F[e]=(t,r,o)=>i=>Ue[e](i)&&(!r||Zt(r,i))&&(!o||Zt(o,i))&&t(i);gr=e=>{let t=0,r="",o=0;for(let i of e){if(r){o?o=0:i==="\\"?o=1:i===r&&(r="");continue}if(i===";"&&!t)return!0;i==="{"?t++:i==="}"?t--:(i==='"'||i==="'"||i==="`")&&(r=i)}return!1};ue({compile:e=>(/^(if|let|const)\b/.test(e)||gr(e)||(e=`return ${e}`),/\bawait\s/.test(e)&&(e=`return (async()=>{${e}})()`),v.constructor(`with(arguments[0]){${e}}`)),dir:(e,t,r,o)=>t.includes("..")?()=>Tt(e,o,r,t)[g]:t.split(":").reduce((i,n)=>{let s=n.split(".")[0],a=re[s],c=n.startsWith("on")?()=>Ct(e,o,r,n)[g]:a?.observer?()=>a(e,o,r,n)[g]:mr(e,n,r,o);return i?(l,f)=>(l=i(),f=c(),()=>{l(),f()}):c},null),...He});v.use=ue;v.store=le;v.directive=re;v.modifier=F;br=v.dispose=e=>e[g]?.();v.start=ve;vr=v});var tr={};me(tr,{Computed:()=>G,Effect:()=>ne,Signal:()=>E,batch:()=>xr,computed:()=>Sr,effect:()=>er,signal:()=>wr,untracked:()=>Ve});function Ce(){if(X>1)X--;else{for(var e,t=!1;pe!==void 0;){var r=pe;for(pe=void 0,ze++;r!==void 0;){var o=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Xt(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=o}}if(ze=0,X--,t)throw e}}function xr(e){if(X>0)return e();X++;try{return e()}finally{Ce()}}function Ve(e){var t=d;d=void 0;try{return e()}finally{d=t}}function Bt(e){if(d!==void 0){var t=e.n;if(t===void 0||t.t!==d)return t={i:0,S:e,p:d.s,n:void 0,t:d,e:void 0,x:void 0,r:t},d.s!==void 0&&(d.s.n=t),d.s=t,e.n=t,32&d.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=d.s,t.n=void 0,d.s.n=t,d.s=t),t}}function E(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function wr(e,t){return new E(e,t)}function Xt(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Gt(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Qt(e){for(var t=e.s,r=void 0;t!==void 0;){var o=t.p;t.i===-1?(t.S.U(t),o!==void 0&&(o.n=t.n),t.n!==void 0&&(t.n.p=o)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=o}e.s=r}function G(e,t){E.call(this,void 0),this.x=e,this.s=void 0,this.g=Ae-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function Sr(e,t){return new G(e,t)}function Yt(e){var t=e.u;if(e.u=void 0,typeof t=="function"){X++;var r=d;d=void 0;try{t()}catch(o){throw e.f&=-2,e.f|=8,Ze(e),o}finally{d=r,Ce()}}}function Ze(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Yt(e)}function Or(e){if(d!==this)throw new Error("Out-of-order effect");Qt(this),d=e,this.f&=-2,8&this.f&&Ze(this),Ce()}function ne(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t?.name}function er(e,t){var r=new ne(e,t);try{r.c()}catch(i){throw r.d(),i}var o=r.d.bind(r);return o[Symbol.dispose]=o,o}var _r,d,pe,X,ze,Ae,rr=y(()=>{_r=Symbol.for("preact-signals");d=void 0;pe=void 0,X=0,ze=0,Ae=0;E.prototype.brand=_r;E.prototype.h=function(){return!0};E.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:Ve(function(){var o;(o=t.W)==null||o.call(t)}))};E.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,o=e.x;r!==void 0&&(r.x=o,e.e=void 0),o!==void 0&&(o.e=r,e.x=void 0),e===this.t&&(this.t=o,o===void 0&&Ve(function(){var i;(i=t.Z)==null||i.call(t)}))}};E.prototype.subscribe=function(e){var t=this;return er(function(){var r=t.value,o=d;d=void 0;try{e(r)}finally{d=o}},{name:"sub"})};E.prototype.valueOf=function(){return this.value};E.prototype.toString=function(){return this.value+""};E.prototype.toJSON=function(){return this.value};E.prototype.peek=function(){var e=d;d=void 0;try{return this.value}finally{d=e}};Object.defineProperty(E.prototype,"value",{get:function(){var e=Bt(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(ze>100)throw new Error("Cycle detected");this.v=e,this.i++,Ae++,X++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ce()}}}});G.prototype=new E;G.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ae))return!0;if(this.g=Ae,this.f|=1,this.i>0&&!Xt(this))return this.f&=-2,!0;var e=d;try{Gt(this),d=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return d=e,Qt(this),this.f&=-2,!0};G.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}E.prototype.S.call(this,e)};G.prototype.U=function(e){if(this.t!==void 0&&(E.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};G.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(G.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Bt(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});ne.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};ne.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Yt(this),Gt(this),X++;var e=d;return d=this,Or.bind(this,e)};ne.prototype.N=function(){2&this.f||(this.f|=2,this.o=pe,pe=this)};ne.prototype.d=function(){this.f|=8,1&this.f||Ze(this)};ne.prototype.dispose=function(){this.d()}});var Je=(Ft(),Te(Jt)).default,Nr=(rr(),Te(tr)),Ar=(_(),Te(Xe)).use;Ar(Nr);module.exports=Je;var q=document.currentScript,or=q.getAttribute("prefix")??q.dataset.prefix??q.dataset.spraePrefix,he=q.getAttribute("start")??q.dataset.start??q.dataset.spraeStart;q.removeAttribute("prefix");q.removeAttribute("start");delete q.dataset.prefix;delete q.dataset.start;delete q.dataset.spraePrefix;delete q.dataset.spraeStart;or&&Je.use({prefix:or});he!=null&&he!=="false"&&(he&&he!=="true"?document.querySelectorAll(he):[document.body||document.documentElement]).forEach(e=>Je.start(e));
|
|
2
|
+
var Tt=Object.defineProperty;var lr=Object.getOwnPropertyDescriptor;var cr=Object.getOwnPropertyNames;var ar=Object.prototype.hasOwnProperty;var _=(t,e)=>()=>(t&&(e=t(t=0)),e);var mt=(t,e)=>{for(var r in e)Tt(t,r,{get:e[r],enumerable:!0})},fr=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of cr(e))!ar.call(t,i)&&i!==r&&Tt(t,i,{get:()=>e[i],enumerable:!(o=lr(e,i))||o.enumerable});return t};var jt=t=>fr(Tt({},"__esModule",{value:!0}),t);var re={};mt(re,{_add:()=>yt,_change:()=>I,_dispose:()=>v,_off:()=>$,_on:()=>ft,_set:()=>st,_signals:()=>H,_state:()=>b,_touch:()=>wt,attr:()=>U,batch:()=>F,clsx:()=>_t,compile:()=>$t,computed:()=>B,dashcase:()=>Mt,debounce:()=>xt,decorate:()=>W,default:()=>w,dir:()=>Wt,directive:()=>tt,effect:()=>J,frag:()=>R,isCE:()=>Z,mo:()=>V,modifier:()=>q,mutate:()=>et,parse:()=>A,prefix:()=>gt,signal:()=>j,start:()=>vt,store:()=>rt,throttle:()=>X,untracked:()=>M,use:()=>ut});var v,b,ft,$,yt,gt,Z,j,J,B,F,M,tt,q,bt,Dt,ur,Lt,Yt,Pt,Wt,$t,A,te,ut,W,V,et,vt,R,Mt,dr,U,_t,ee,X,xt,w,O=_(()=>{dt();dt();v=Symbol.dispose||(Symbol.dispose=Symbol("dispose")),b=Symbol("state"),ft=Symbol("on"),$=Symbol("off"),yt=Symbol("init"),gt=":",Z=t=>t.localName?.includes("-"),F=t=>t(),M=F,tt={},q={},bt=null,Dt=null,ur=t=>{if(!t?.tagName)return"";let e=t.tagName.toLowerCase();return t.id?e+="#"+t.id:t.className&&(e+="."+t.className.split(" ")[0]),`<${e}>`},Lt=(t,e,r=Dt)=>{let o=`\u2234 ${t}`;if(r&&(o+=`
|
|
3
|
+
in ${ur(r)}`),e){let i=e.length>100?e.slice(0,80)+`\u2026 (${e.length} chars)`:e;o+=bt?`
|
|
4
|
+
${bt}="${i}"`:`
|
|
5
|
+
="${i}"`}console.error(o)},Yt=Symbol("dirs"),Pt=(t=document.body,e,r)=>{if(t[b])return Object.assign(t[b],e);e=lt(e||{});let o=t,i=[],n=[];o[ft]=()=>{if(n)return n;n=Array(i.length);for(let c=0;c<i.length;c++)n[c]=i[c]();return n},o[$]=()=>{if(!n)return;let c=n;n=null;for(let f=0;f<c.length;f++)c[f]?.()},o[v]||(o[v]=()=>{o[$]?.(),V?._root===o&&(V.disconnect(),V=null),o[$]=o[ft]=o[v]=o[yt]=o[b]=null});let s=(c,f,u,d,h=c[b])=>(bt=f,Dt=c,i.push(l=Wt(c,u,d,e)),n.push(l()),c[b]!==h),l,a=o[yt]=(c,f)=>{let u=f?.[Yt];if(u!==void 0){for(let[d,h,N]of u)if(c.removeAttribute(d),s(c,d,h,N))return}else{let d=c.attributes,h=f&&(f[Yt]=[]);if(d)for(let N=0;N<d.length;){let{name:T,value:D}=d[N];if(T.startsWith(gt)){c.removeAttribute(T),f?.removeAttribute(T);let P=T.slice(gt.length);if(h?.push([T,P,D]),s(c,T,P,D))return}else N++}}if(!(c!==t&&Z(c)))if(c.firstChild!==void 0){let d=c.firstChild,h=f?.firstChild,N;for(;d;)N=d.nextSibling,d.nodeType==1&&a(d,h),h&&(h=h.nextSibling),d=N}else for(let d of c.childNodes)d.nodeType==1&&a(d)};return a(o,r),bt=Dt=null,o[b]===void 0&&!Z(t)&&(o[b]=e),e};Pt.version="13.4.0";A=t=>{let e=te[t=t.trim()];if(e)return e;try{e=$t(t||"undefined")}catch(r){Lt(r,t)}return te[t]=function(r,o,i){try{let n=e?.call(this,r);return o?n?.then?(n.then(s=>i=o(s)).catch(s=>Lt(s,t,this)),()=>typeof i=="function"&&i()):o(n):n}catch(n){Lt(n,t,this)}}},te={},ut=t=>(t.compile&&($t=t.compile),t.prefix&&(gt=t.prefix),t.signal&&(j=t.signal),t.effect&&(J=t.effect),t.computed&&(B=t.computed),t.batch&&(F=t.batch),t.untracked&&(M=t.untracked),t.dir&&(Wt=t.dir)),W=(t,e)=>{for(;e.length;){let[r,...o]=e.pop().split("-"),i=q[r],n;if(i&&(n=i(t,...o))!==t){for(let s in t)n[s]??(n[s]=t[s]);t=n}}return t},V=null,et=t=>{V?.disconnect(),t(),V?.observe(V._root,{childList:!0,subtree:!0})},vt=(t=document.body,e)=>{let r=lt(e);return Pt(t,r),V=new MutationObserver(o=>{for(let i of o){for(let n of i.addedNodes)n.nodeType===1&&n[b]===void 0&&t.contains(n)&&t[yt](n);for(let n of i.removedNodes)n.nodeType===1&&!t.contains(n)&&n[v]?.()}}),V._root=t,V.observe(t,{childList:!0,subtree:!0}),r},R=t=>{if(!t.nodeType)return t;let e=t.ownerDocument,r=t.content.cloneNode(!0),o=[...t.attributes],i=e.createTextNode(""),n=(r.append(i),[...r.childNodes]);return{ownerDocument:e,childNodes:n,content:r,remove:()=>r.append(...n),replaceWith(s){s!==i&&(i.before(s),r.append(...n))},attributes:o,removeAttribute(s){o.splice(o.findIndex(l=>l.name===s),1)}}},Mt=t=>t.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(e,r)=>(r?"-":"")+e.toLowerCase()),dr=t=>t.replace(/-([a-z])/g,(e,r)=>r.toUpperCase()),U=(t,e,r)=>r==null||r===!1?t.removeAttribute(e):Z(t)?t[dr(e)]=r:t.setAttribute(e,r===!0?"":r),_t=t=>t?typeof t=="string"?t:(Array.isArray(t)?t.map(_t):Object.entries(t).reduce((e,[r,o])=>(o&&e.push(r),e),[])).join(" "):"",ee=t=>typeof t=="function"?t:t?e=>setTimeout(e,t):queueMicrotask,X=(t,e)=>{let r=0,o=0,i,n=ee(e),s=l=>{i=l,r++||(t(i),n(()=>{let a=r>1;if(r=0,a){if(++o>50){o=0,console.error("\u2234 Reactive loop detected");return}s(i)}else o=0}))};return s},xt=(t,e,r)=>{let o=ee(e);return r?(i=>n=>!i&&(t(n),i=1,o(()=>i=0)))():((i=0)=>(n,s=++i)=>o(()=>s==i&&t(n)))()},w=Pt});var H,I,wt,st,qt,Rt,rt,oe,Ot,St,ie,lt,dt=_(()=>{O();H=Symbol("signals"),I=Symbol("change"),wt=Symbol("touch"),st=Symbol("set"),qt=Symbol("parent"),Rt=!0,rt=(t,e)=>{if(!t||t[Symbol.toStringTag]||t[H])return t;if(t.constructor!==Object)return Array.isArray(t)?oe(t):t;let r=Object.keys(t).length,o={},i=new Proxy(Object.assign(o,{[I]:j(r),[H]:o}),{get:(s,l)=>l in o?o.hasOwnProperty(l)&&typeof o[l]=="function"&&!o[l].prototype?o[l].bind(i):o[l]?o[l].valueOf():o[l]:e?e[l]:typeof globalThis[l]=="function"&&!globalThis[l].prototype?globalThis[l].bind(globalThis):globalThis[l],set:(s,l,a)=>l in o?(ie(o,l,a),1):(Rt=!1,e&&l in e?e[l]=a:(Ot(o,l,a),o[I].value=++r),Rt=!0,1),deleteProperty:(s,l)=>(l in o&&(l[0]!="_"&&o[l]?.[Symbol.dispose]?.(),delete o[l],o[I].value=--r),1),ownKeys:()=>(o[I].value,Reflect.ownKeys(o).filter(s=>s!==qt)),has:(s,l)=>l in o?!0:e?l in e:Rt});Object.defineProperty(o,qt,{value:e,configurable:!0});let n=Object.getOwnPropertyDescriptors(t);for(let s in t)n[s]?.get?(o[s]=B(n[s].get.bind(i)))[st]=n[s].set?.bind(i):Ot(o,s,t[s]);return i},oe=(t,e=globalThis)=>{let r=t.map(f=>j(St(f))),o=!1,i=f=>function(){o=!0;let u;return F(()=>u=f.apply(this,arguments)),u},n=j(t.length),s=j(0),l=()=>{s.value++},a=r.splice,c=new Proxy(Object.assign(r,{[I]:n,[wt]:s,[H]:r,push:i(r.push),pop:i(r.pop),shift:i(r.shift),unshift:i(r.unshift),splice:i(function(){let f=a.apply(this,arguments);return l(),f})}),{get(f,u){return u==="length"?o?(o=!1,r.length):n.value:typeof u=="symbol"||isNaN(u)?r[u]?.valueOf()??e[u]:(r[u]??(r[u]=j(void 0))).valueOf()},set(f,u,d){if(u==="length"){for(let h=d;h<r.length;h++)r[h]?.[Symbol.dispose]?.();n.value=r.length=d}else if(u>=r.length)Ot(r,u,d,St),c.length=+u+1;else if(r[u]){let h=r[u],N=h.peek?.()??h.valueOf();ie(r,u,d,St),(h.peek?.()??h.valueOf())!==N&&l()}else Ot(r,u,d,St);return 1},deleteProperty:(f,u)=>(r[u]?.[Symbol.dispose]?.(),delete r[u],1)});return Object.defineProperty(r,qt,{value:e,configurable:!0}),c},Ot=(t,e,r,o=rt)=>t[e]=e[0]=="_"||r?.peek||typeof r=="function"?r:j(o(r)),St=t=>{if(!t||typeof t!="object"||t.constructor!==Object||t[I])return t;let e={},r;return new Proxy(t,{get:(o,i)=>i===H?o:i===I?r??(r=j(0)):(typeof i=="symbol"||(e[i]??(e[i]=j(0))).value,o[i]),set:(o,i,n)=>{if(o[i]!==n){let s=!(i in o);o[i]=n,e[i]&&e[i].value++,s&&r&&r.value++}return 1},has:()=>!0})},ie=(t,e,r,o=rt)=>{if(e[0]==="_"||typeof t[e]=="function")return t[e]=r;let i=t[e],n=i.peek?.()??i;if(r!==n){if(i[st])return i[st](r);Array.isArray(r)&&Array.isArray(n)?I in n?M(()=>F(()=>{for(let s=0;s<r.length;s++)n[s]=r[s];n.length=r.length})):i.value=I in r?r:oe(r):i.value=o(r)}},lt=rt});var Kt={};mt(Kt,{batch:()=>mr,computed:()=>hr,effect:()=>ne,signal:()=>pr,untracked:()=>yr});var k,Ht,ct,Nt,pr,ne,It,hr,mr,yr,se=_(()=>{Ht=0,Nt=class{constructor(e){this.v=e,this.o=null}get value(){return k&&k.deps.add((this.o??(this.o=new Set)).add(k)),this.v}set value(e){if(e!==this.v&&(this.v=e,this.o))for(let r of this.o)ct?ct.add(r):r()}peek(){return this.v}valueOf(){return this.value}toString(){return this.value}toJSON(){return this.value}},pr=t=>new Nt(t),ne=(t,e,r,o)=>(r=i=>{if(!t)return;let n=e;if(e=null,n?.call?.(),i=k,k=r,Ht++>50){Ht--,k=i,e=t=r.fn=null;for(let s of o)s.delete(r);o.clear(),console.error("\u2234 Reactive loop detected");return}try{e=t()}finally{k=i,Ht--}},r.fn=t,o=r.deps=new Set,r(),i=>{e?.call?.(),e=t=r.fn=null;for(i of o)i.delete(r);o.clear()}),It=class extends Nt{constructor(e){super(),this.fn=e,this.e=null}get value(){return this.e||(this.e=ne(()=>super.value=this.fn())),super.value}},hr=t=>new It(t),mr=(t,e=!ct,r)=>{ct??(ct=new Set);try{t()}finally{if(e){[ct,r]=[null,ct];for(let o of r)o()}}},yr=(t,e)=>{e=k,k=null;try{return t()}finally{k=e}}});var le,ce,ae=_(()=>{O();le=(t,e)=>{var n,s;let r,o;t._holder?w(o=t,e):(t[n=b]??(t[n]=null),o=t.content?R(t):t,o[s=b]??(o[s]=null),et(()=>t.replaceWith(r=t.ownerDocument.createTextNode(""))),o._holder=r._holder=r,r._clauses=[o._clause=[o,!1]],r._match=null,r.update=X(()=>{let l=r._clauses.find(([,a])=>a);l!=r._match&&et(()=>{r._match?.[0].remove(),r._match?.[0][$]?.(),(r._match=l)&&(r.before(r._match[0].content||r._match[0]),r._match[0][b]?r._match[0][ft]?.():(delete r._match[0][b],w(r._match[0],e)))})}));let i=l=>{o._clause[1]=l,o._holder.update()};return i[$]=()=>{o._holder._match?.[0][$]?.(),o._holder._match=null},i},ce=t=>{var o;let e,r=t;for(e=t.content?R(t):t,e[o=b]??(e[o]=null);r&&!(e._holder=r._holder);)r=r.previousSibling;return t.remove(),t[b]=null,e._holder._clauses.push(e._clause=[e,!0]),e._holder.update}});var fe,ue=_(()=>{O();fe=t=>(t.content&&t.replaceWith(t=R(t).childNodes[0]),e=>{e=typeof e=="function"?e(t.textContent):e,e=e==null?"":""+e;let r=t.textContent;if(r===e)return;let o=t.firstChild;if(o&&e.startsWith(r)){o.appendData(e.slice(r.length));return}let i=t.ownerDocument,n=i.activeElement,s=n&&(n===t||t.contains(n))?i.getSelection?.():null,l=s?.rangeCount&&t.contains(s.anchorNode)?s.getRangeAt(0).startOffset:-1;if(t.textContent=e,l>=0&&t.firstChild){let a=Math.min(l,t.firstChild.textContent.length),c=new Range;c.setStart(t.firstChild,a),c.collapse(!0),s.removeAllRanges(),s.addRange(c)}})});var de,pe=_(()=>{O();de=(t,e,r,o)=>{let i=null,n,s=null,l=()=>!t.classList.length&&t.removeAttribute("class");return a=>{if(a=typeof a=="function"?a(t.className):a,a?.constructor===Object){if(s=null,i)for(let c of i)a[c]||(t.classList.remove(c),i.delete(c));i?.size||(i=null);for(let c in a)a[c]&&!i?.has(c)&&(t.classList.add(c),(i||(i=new Set)).add(c));i||l();return}if(a=_t(a),a!==s){if(s=a,n=null,a)for(let c of a.split(" "))c&&(n||(n=new Set)).add(c);if(i)for(let c of i)n?.has(c)||t.classList.remove(c);if(n)for(let c of n)i?.has(c)||t.classList.add(c);n||l(),i=n}}}});var he,me=_(()=>{O();he=(t,e,r,o)=>{let i;return n=>{if(i===void 0&&(i=t.getAttribute("style")??""),n=typeof n=="function"?n(t.style):n,typeof n=="string")U(t,"style",i?i+"; "+n:n);else{i&&U(t,"style",i);for(let s in n)s[0]=="-"?t.style.setProperty(s,n[s]):s[0]>="A"&&(t.style[s]=n[s])}}}});var ye,ge=_(()=>{ye=()=>t=>typeof t=="function"&&t()});var be,ve=_(()=>{O();be=(t,e)=>(t.type?.startsWith("select")&&w(t,e),t.type==="text"||t.type===""||t.tagName==="TEXTAREA"?(r,o,i)=>(o=t.selectionStart,i=t.selectionEnd,t.setAttribute("value",t.value=r??""),o&&t.setSelectionRange(o,i)):t.type==="checkbox"?r=>(t.checked=r,U(t,"checked",r)):t.type==="radio"?r=>(t.checked=t.value===r,U(t,"checked",t.checked||null)):t.type==="select-one"?r=>{for(let o of t.options)o.value==r?o.setAttribute("selected",""):o.removeAttribute("selected");t.value=r}:t.type==="select-multiple"?r=>{for(let o of t.options)r.some(i=>i==o.value)?o.setAttribute("selected",""):o.removeAttribute("selected")}:r=>t.value=r)});var gr,_e,xe=_(()=>{O();gr=(t,e=A(`${t}=__`))=>(r,o)=>{r.__=o,e(r),delete r.__},_e=(t,e,r)=>{let o=A(r).call(t,e);typeof o=="function"?o(t):gr(r)(e,t)}});var we,Se=_(()=>{O();dt();we=(t,e)=>{let r=t[b]=rt({},e),o=!1,i,n=t.content&&R(t);return n&&t.replaceWith(i=t.ownerDocument.createTextNode("")),s=>{if(s=typeof s=="function"?s(r):s,s!==r)for(let l in s){let a=Object.getOwnPropertyDescriptor(s,l);if(a?.get){(r[H][l]=B(a.get.bind(r)))[st]=a.set?.bind(r);continue}let c=typeof s[l]=="function"?s[l].bind(r):s[l];l in r[H]?r[l]=c:r[H][l]=l[0]=="_"||c?.peek?c:j(rt(c))}return!o&&(o=!0,!i&&delete t[b],M(()=>(i?.before(n.content||t),w(n||t,r))))}}});var br,Oe,Ne=_(()=>{O();br={get:(t,e)=>e===t.v?t.c?t.c[t.i]:t.r:e===t.k?t.o?t.o[t.i]:t.i:e===H?t:t.l?.[e]!==void 0?t.l[e]:t.p?.[e],set:(t,e,r)=>(e===t.v?t.c?t.c[t.i]=r:t.r=r:e===t.k||(t.l?.[e]!==void 0?t.l[e]=r:e in(t.p?.[H]||{})?t.p[e]=r:(t.l||(t.l={}))[e]=r),1),has:()=>!0},Oe=(t,e,r)=>{let[,o,i]=r.match(/^(.*?)\b(?:in|of)\b(.*)$/s)||[],[n,s="$"]=o.trim().replace(/\(|\)/g,"").split(/\s*,\s*/),l=t.ownerDocument,a=t._eachHolder||(t._eachHolder=l.createTextNode("")),c=new Map,f=[],u,d,h,N=!1,T=m=>{c.delete(m.scope.r),m.el.remove(),m.el[Symbol.dispose]?.()},D=(m,E,C)=>{let it={p:e,v:n,k:s,r:m,c:E,i:C,o:d,l:null},p=t.content?R(t):t.cloneNode(!0);return{el:p,scope:it,proxy:new Proxy(it,br),node:p.content||p,_di:C}},P=m=>{if(!m.length)return;let E=m.length>1?l.createDocumentFragment():null;for(let C of m)E?E.appendChild(C.node):a.before(C.node);E&&a.before(E);for(let C of m)w(C.el,C.proxy,t.content?void 0:t)},at=X(()=>M(()=>et(()=>{let m=u,E=m.length,C=f.length,it=E!==C;N=!1;for(let p=0;p<E;p++)if(m[p]!=null){N=typeof m[p]=="object";break}if(N&&C){let p=[],z=[],Y=new Set,Gt=!1,Qt=!1;for(let S=0;S<E;S++){let g=m[S];if(g!=null&&typeof g=="object"){if(Y.has(g))return;Y.add(g)}let x=c.get(g);x?(!it&&x.scope.i!==S&&(Gt=!0),z.length&&(Qt=!0),x.scope.i=S,x.scope.r=g,x.scope.o=d):(x=D(g,null,S),c.set(g,x),z.push(x)),p.push(x)}for(let[S,g]of c)Y.has(S)||T(g);if(P(z),Qt){let S=a;for(let g=p.length-1;g>=0;g--){let x=p[g].node;x.nextSibling!==S&&S.before(x),S=x,p[g]._di=g}}else if(Gt){let S=[];for(let g=0;g<p.length;g++){let x=p[g];x._di!==g&&S.push(x),x._di=g}if(S.length===2){let g=S[0].node,x=S[1].node,nt=l.createTextNode("");g.replaceWith(nt),x.replaceWith(g),nt.replaceWith(x)}else{let g=a;for(let x=p.length-1;x>=0;x--){let nt=p[x].node;nt.nextSibling!==g&&g.before(nt),g=nt}}}else for(let S=0;S<p.length;S++)p[S]._di=S;f=p}else{if(C&&h!==m){for(let p of f)T(p);f.length=0,C=0,c.clear()}if(h=m,E<C){for(let p=E;p<C;p++)T(f[p]);f.length=E}for(let p=0;p<Math.min(C,E);p++)f[p].scope.c=m,d&&(f[p].scope.o=d);if(E>C){let p=[];for(let z=C;z<E;z++){let Y=N?D(m[z],null,z):D(null,m,z);f.push(Y),N&&c.set(m[z],Y),p.push(Y)}P(p)}}})));t.parentNode&&et(()=>t.replaceWith(a)),t[b]=null;let Et=m=>{d=null,typeof m=="number"?u=Array.from({length:m},(C,it)=>it+1):m?.constructor===Object?(d=Object.keys(m),u=Object.values(m)):u=m||[];let E=J(()=>{u[I]?.value,u[wt],at()});return()=>E()};return Et.eval=A(i),Et[$]=()=>{for(let m of f)T(m);f.length=0,c.clear()},Et}});var Ae,Ce=_(()=>{O();Ae=(t,e,r,o)=>i=>U(t,o,typeof i=="function"&&!Z(t)?i(t.getAttribute(o)):i)});var Ee,Te=_(()=>{O();Ee=t=>e=>{let r=Z(t);for(let o in e)U(t,r?o:Mt(o),e[o])}});var je,Le=_(()=>{O();je=(t,e,r,o)=>{let[i,...n]=o.slice(2).split("."),s=A(r).bind(t),l=W(Object.assign(a=>s(e,c=>typeof c=="function"?c(a):c),{target:t}),n);return l.target.addEventListener(i,l,l),{[Symbol.dispose](){l.target.removeEventListener(i,l),l[Symbol.dispose]?.()}}}});var De,Pe=_(()=>{O();De=(t,e,r,o)=>{let i,n,s=A(r).bind(t),l=o.split("..").map((a,c,{length:f})=>a.split(":").reduce((u,d)=>{let[h,...N]=d.slice(2).split("."),T=(P,at)=>i=typeof P=="function"?P(at):P,D=W(Object.assign(P=>(c?T(i,P):s(e,at=>T(at,P)),n(),n=l[(c+1)%f]()),{target:t}),N);return P=>(P=u?.(),D.target.addEventListener(h,D,D),()=>(P?.(),D.target.removeEventListener(h,D)))},null));return n=l[0](),{[Symbol.dispose](){n?.()}}}});var We,$e,Me=_(()=>{O();We=t=>!!t?.content,$e=(t,e)=>{if(t.content){let r,o=t.innerHTML,i=t.ownerDocument,n=t._holder;return n||t.replaceWith(n=i.createTextNode("")),s=>{if(typeof s=="function"&&(s=s(o)),t._holder&&(t.remove(),t.content.replaceChildren()),r?.[v]?.(),r?.remove(),s!=null&&s!=="")return r=We(s)?(o=s.innerHTML,R(s)):R((r=i.createElement("template"),r.innerHTML=o=s,r)),M(()=>w(r,e)),n.before(r.content),t._holder&&t.childNodes.splice(0,1/0,...r.childNodes),r[v];t._holder&&(t.childNodes.length=0,o="")}}return r=>{var o;return r=typeof r=="function"?r(t.innerHTML):r,We(r)?t.replaceChildren(r.content.cloneNode(!0)):t.innerHTML=r??"",t[o=b]&&(t[o]=null),M(()=>w(t,e)),t[v]}}});var Re,qe=_(()=>{Re=(t,e,r)=>{let o=t.ownerDocument,i=o.createComment(":portal"),n=null;return t.before(i),s=>{let l=t.getRootNode(),a=typeof s=="string"?l.querySelector?.(s)||o.querySelector(s):s?.nodeType===1?s:s?o.body:null;if(a!==n)return a?a.appendChild(t):i.after(t),n=a,()=>{n&&(i.after(t),n=null)}}}});var He,Ie=_(()=>{He=t=>e=>t.hidden=!!e});var Ut,Ke=_(()=>{O();Ut=(t,e,r,o)=>{let[,...i]=o.split("."),n=A(r).bind(t),s;return W(Object.assign(()=>{let a=n(e,c=>typeof c=="function"?c(t):c);typeof a=="function"&&(s=a)},{target:t}),i)(),{[v](){s?.(),s=null}}}});var zt,Ue=_(()=>{O();zt=(t,e,r,o)=>{let[,...i]=o.split("."),n=A(r).bind(t),s=t.type==="checkbox"?()=>t.checked:t.type==="select-multiple"?()=>[...t.selectedOptions].map(a=>a.value):/^(date|time|month|week)/.test(t.type)?()=>t.value:()=>t.selectedIndex<0?null:isNaN(t.valueAsNumber)?t.value:t.valueAsNumber,l=W(Object.assign(()=>{n(e,a=>typeof a=="function"?a(s()):a)},{target:t}),i);return t.addEventListener("input",l),t.addEventListener("change",l),{[v](){t.removeEventListener("input",l),t.removeEventListener("change",l)}}}});var ze,Ve,Ze=_(()=>{O();ze=(t,e,r,o)=>{let[,...i]=o.split("."),n=A(r).bind(t),s=i.includes("once"),l=W(Object.assign(c=>{n(e,f=>typeof f=="function"?f(c):f)},{target:t}),i),a=new IntersectionObserver(c=>{for(let f of c)f.isIntersecting&&(l(f),s&&a.disconnect())});return a.observe(t),{[v](){a.disconnect()}}};ze.observer=!0;Ve=ze});var ke,Je,Be=_(()=>{O();ke=(t,e,r,o)=>{let[,...i]=o.split("."),n=A(r).bind(t),s=W(Object.assign(a=>{n(e,c=>typeof c=="function"?c(a):c)},{target:t}),i),l=new ResizeObserver(a=>{for(let c of a){let f=c.contentRect;s({width:f.width,height:f.height,entry:c})}});return l.observe(t),{[v](){l.disconnect()}}};ke.observer=!0;Je=ke});var Xe={};mt(Xe,{batch:()=>F,computed:()=>B,debounce:()=>xt,default:()=>Or,dispose:()=>Sr,effect:()=>J,signal:()=>j,sprae:()=>w,start:()=>vt,store:()=>lt,throttle:()=>X,untracked:()=>M,use:()=>ut});var vr,Vt,_r,xr,Zt,kt,Fe,wr,Sr,Or,Ge=_(()=>{dt();O();se();O();ae();ue();pe();me();ge();ve();xe();Se();Ne();Ce();Te();Le();Pe();Me();qe();Ie();Ke();Ue();Ze();Be();Ut.observer=zt.observer=!0;Object.assign(tt,{_:Ae,"":Ee,class:de,text:fe,html:$e,style:he,fx:ye,value:be,ref:_e,scope:we,if:le,else:ce,each:Oe,portal:Re,hidden:He,mount:Ut,change:zt,intersect:Ve,resize:Je});vr=(t,e,r,o,i)=>{let n=tt[e]||tt._,s=r.length>0;return()=>{let l=t,a,c,f,u=0;if(s&&(c=j(0),f=W(Object.assign(()=>c.value++,{target:t}),r.slice()),l=f.target??t),a=n(l,i,o,e),!a?.call)return a?.[v];let d=a.eval??A(o),h,N=()=>(typeof h=="function"&&h(),h=null);Z(l)||(i=l[b]??i);let T=s?J(()=>(c.value==u?f():(u=c.value,h=d.call(l,i,a)),N)):J(()=>(h=d.call(l,i,a),N));if(!(b in l))return T;let D=0;return()=>{D||(D=1,T(),a[$]?a[$]():l[v]?.())}}},Vt={},_r=t=>Vt[t]??(Vt[t]=t.includes("..")?0:t.split(":").map(e=>{let[r,...o]=e.split(".");return{str:e,dirName:r,mods:o,on:e.startsWith("on")}})),xr=t=>t?typeof t=="number"?t:(([,e,r]=t.match(/^(\d+)(ms|s|m)?$/)||[])=>(e=+e,r==="s"?e*1e3:r==="m"?e*6e4:e))():0,Zt=t=>t==="idle"?requestIdleCallback:t==="raf"?requestAnimationFrame:!t||t==="tick"?queueMicrotask:e=>setTimeout(e,xr(t));Object.assign(q,{debounce:(t,e,r)=>xt(t,Zt(e==="immediate"?r:e),e==="immediate"||r==="immediate"),throttle:(t,e)=>X(t,Zt(e)),delay:(t,e)=>((r=Zt(e))=>o=>r(()=>t(o)))(),once:(t,e,r)=>(r=o=>!e&&(e=1,t(o)),r.once=!0,r),window:t=>(t.target=t.target.ownerDocument.defaultView,t),document:t=>(t.target=t.target.ownerDocument,t),root:t=>(t.target=t.target.ownerDocument.documentElement,t),body:t=>(t.target=t.target.ownerDocument.body,t),parent:t=>(t.target=t.target.parentNode,t),self:t=>e=>e.target===t.target&&t(e),away:(t,e)=>{let r=t.target.ownerDocument,o=n=>e=n.target,i=r.currentEvent||r.defaultView?.event;return r.addEventListener("pointerdown",o,!0),Object.assign(n=>n!==i&&!t.target.contains(n.type==="click"?e??n.target:n.target)&&n.target.isConnected&&t(n),{target:r,[v]:()=>r.removeEventListener("pointerdown",o,!0)})},prevent:t=>e=>(e?.preventDefault(),t(e)),stop:(t,e)=>r=>(e?.[0]==="i"?r?.stopImmediatePropagation():r?.stopPropagation(),t(r)),passive:t=>(t.passive=!0,t),capture:t=>(t.capture=!0,t)});q.outside=q.away;q.tick=t=>q.delay(t);q.raf=t=>q.delay(t,"raf");kt={ctrl:t=>t.ctrlKey||t.key==="Control"||t.key==="Ctrl",shift:t=>t.shiftKey||t.key==="Shift",alt:t=>t.altKey||t.key==="Alt",meta:t=>t.metaKey||t.key==="Meta",cmd:t=>t.metaKey||t.key==="Command",arrow:t=>t.key?.startsWith("Arrow"),enter:t=>t.key==="Enter",esc:t=>t.key?.startsWith("Esc"),tab:t=>t.key==="Tab",space:t=>t.key==="\xA0"||t.key==="Space"||t.key===" ",delete:t=>t.key==="Delete"||t.key==="Backspace",digit:t=>/^\d$/.test(t.key),letter:t=>/^\p{L}$/gu.test(t.key),char:t=>/^\S$/.test(t.key)},Fe=(t,e)=>kt[t]?.(e)||e.key?.toLowerCase()===t||e.keyCode==t;for(let t in kt)q[t]=(e,r,o)=>i=>kt[t](i)&&(!r||Fe(r,i))&&(!o||Fe(o,i))&&e(i);wr=t=>{let e=0,r="",o=0;for(let i of t){if(r){o?o=0:i==="\\"?o=1:i===r&&(r="");continue}if(i===";"&&!e)return!0;i==="{"?e++:i==="}"?e--:(i==='"'||i==="'"||i==="`")&&(r=i)}return!1};ut({compile:t=>(/^(if|let|const)\b/.test(t)||wr(t)||(t=`return ${t}`),/\bawait\s/.test(t)&&(t=`return (async()=>{${t}})()`),w.constructor(`with(arguments[0]){${t}}`)),dir:(t,e,r,o)=>{let i=_r(e);return i?i.reduce((n,s)=>{let l=tt[s.dirName],a=s.on?()=>je(t,o,r,s.str)[v]:l?.observer?()=>l(t,o,r,s.str)[v]:vr(t,s.dirName,s.mods,r,o);return n?(c,f)=>(c=n(),f=a(),()=>{c(),f()}):a},null):()=>De(t,o,r,e)[v]},...Kt});w.use=ut;w.store=lt;w.directive=tt;w.modifier=q;Sr=w.dispose=t=>t[v]?.();w.start=vt;Or=w});var ir={};mt(ir,{Computed:()=>Q,Effect:()=>ot,Signal:()=>L,batch:()=>Ar,computed:()=>Er,effect:()=>or,signal:()=>Cr,untracked:()=>Bt});function Ct(){if(G>1)G--;else{for(var t,e=!1;pt!==void 0;){var r=pt;for(pt=void 0,Jt++;r!==void 0;){var o=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Ye(r))try{r.c()}catch(i){e||(t=i,e=!0)}r=o}}if(Jt=0,G--,e)throw t}}function Ar(t){if(G>0)return t();G++;try{return t()}finally{Ct()}}function Bt(t){var e=y;y=void 0;try{return t()}finally{y=e}}function Qe(t){if(y!==void 0){var e=t.n;if(e===void 0||e.t!==y)return e={i:0,S:t,p:y.s,n:void 0,t:y,e:void 0,x:void 0,r:e},y.s!==void 0&&(y.s.n=e),y.s=e,t.n=e,32&y.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=y.s,e.n=void 0,y.s.n=e,y.s=e),e}}function L(t,e){this.v=t,this.i=0,this.n=void 0,this.t=void 0,this.W=e?.watched,this.Z=e?.unwatched,this.name=e?.name}function Cr(t,e){return new L(t,e)}function Ye(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function tr(t){for(var e=t.s;e!==void 0;e=e.n){var r=e.S.n;if(r!==void 0&&(e.r=r),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function er(t){for(var e=t.s,r=void 0;e!==void 0;){var o=e.p;e.i===-1?(e.S.U(e),o!==void 0&&(o.n=e.n),e.n!==void 0&&(e.n.p=o)):r=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=o}t.s=r}function Q(t,e){L.call(this,void 0),this.x=t,this.s=void 0,this.g=At-1,this.f=4,this.W=e?.watched,this.Z=e?.unwatched,this.name=e?.name}function Er(t,e){return new Q(t,e)}function rr(t){var e=t.u;if(t.u=void 0,typeof e=="function"){G++;var r=y;y=void 0;try{e()}catch(o){throw t.f&=-2,t.f|=8,Ft(t),o}finally{y=r,Ct()}}}function Ft(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,rr(t)}function Tr(t){if(y!==this)throw new Error("Out-of-order effect");er(this),y=t,this.f&=-2,8&this.f&&Ft(this),Ct()}function ot(t,e){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=e?.name}function or(t,e){var r=new ot(t,e);try{r.c()}catch(i){throw r.d(),i}var o=r.d.bind(r);return o[Symbol.dispose]=o,o}var Nr,y,pt,G,Jt,At,nr=_(()=>{Nr=Symbol.for("preact-signals");y=void 0;pt=void 0,G=0,Jt=0,At=0;L.prototype.brand=Nr;L.prototype.h=function(){return!0};L.prototype.S=function(t){var e=this,r=this.t;r!==t&&t.e===void 0&&(t.x=r,this.t=t,r!==void 0?r.e=t:Bt(function(){var o;(o=e.W)==null||o.call(e)}))};L.prototype.U=function(t){var e=this;if(this.t!==void 0){var r=t.e,o=t.x;r!==void 0&&(r.x=o,t.e=void 0),o!==void 0&&(o.e=r,t.x=void 0),t===this.t&&(this.t=o,o===void 0&&Bt(function(){var i;(i=e.Z)==null||i.call(e)}))}};L.prototype.subscribe=function(t){var e=this;return or(function(){var r=e.value,o=y;y=void 0;try{t(r)}finally{y=o}},{name:"sub"})};L.prototype.valueOf=function(){return this.value};L.prototype.toString=function(){return this.value+""};L.prototype.toJSON=function(){return this.value};L.prototype.peek=function(){var t=y;y=void 0;try{return this.value}finally{y=t}};Object.defineProperty(L.prototype,"value",{get:function(){var t=Qe(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(Jt>100)throw new Error("Cycle detected");this.v=t,this.i++,At++,G++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Ct()}}}});Q.prototype=new L;Q.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===At))return!0;if(this.g=At,this.f|=1,this.i>0&&!Ye(this))return this.f&=-2,!0;var t=y;try{tr(this),y=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return y=t,er(this),this.f&=-2,!0};Q.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}L.prototype.S.call(this,t)};Q.prototype.U=function(t){if(this.t!==void 0&&(L.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};Q.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(Q.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=Qe(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});ot.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{t()}};ot.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,rr(this),tr(this),G++;var t=y;return y=this,Tr.bind(this,t)};ot.prototype.N=function(){2&this.f||(this.f|=2,this.o=pt,pt=this)};ot.prototype.d=function(){this.f|=8,1&this.f||Ft(this)};ot.prototype.dispose=function(){this.d()}});var Xt=(Ge(),jt(Xe)).default,jr=(nr(),jt(ir)),Lr=(O(),jt(re)).use;Lr(jr);module.exports=Xt;var K=document.currentScript,sr=K.getAttribute("prefix")??K.dataset.prefix??K.dataset.spraePrefix,ht=K.getAttribute("start")??K.dataset.start??K.dataset.spraeStart;K.removeAttribute("prefix");K.removeAttribute("start");delete K.dataset.prefix;delete K.dataset.start;delete K.dataset.spraePrefix;delete K.dataset.spraeStart;sr&&Xt.use({prefix:sr});ht!=null&&ht!=="false"&&(ht&&ht!=="true"?document.querySelectorAll(ht):[document.body||document.documentElement]).forEach(t=>Xt.start(t));
|
|
6
6
|
;if (typeof module.exports == "object" && typeof exports == "object") {
|
|
7
7
|
var __cp = (to, from, except, desc) => {
|
|
8
8
|
if ((from && typeof from === "object") || typeof from === "function") {
|