sprae 13.3.1 → 13.3.2
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/directive/class.js +3 -2
- package/dist/sprae-csp.js +6 -6
- package/dist/sprae-csp.js.map +3 -3
- package/dist/sprae-csp.umd.js +6 -6
- package/dist/sprae-csp.umd.js.map +3 -3
- package/dist/sprae-preact.js +1 -1
- package/dist/sprae-preact.js.map +3 -3
- package/dist/sprae-preact.umd.js +1 -1
- package/dist/sprae-preact.umd.js.map +3 -3
- package/dist/sprae.js +1 -1
- package/dist/sprae.js.map +3 -3
- package/dist/sprae.umd.js +1 -1
- package/dist/sprae.umd.js.map +3 -3
- package/package.json +1 -1
- package/types/directive/class.d.ts.map +1 -1
package/dist/sprae-preact.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var Ce=Object.defineProperty;var rr=Object.getOwnPropertyDescriptor;var or=Object.getOwnPropertyNames;var ir=Object.prototype.hasOwnProperty;var g=(e,t)=>()=>(e&&(t=e(e=0)),t);var ye=(e,t)=>{for(var r in t)Ce(e,r,{get:t[r],enumerable:!0})},nr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of or(t))!ir.call(e,i)&&i!==r&&Ce(e,i,{get:()=>t[i],enumerable:!(o=rr(t,i))||o.enumerable});return e};var Ee=e=>nr(Ce({},"__esModule",{value:!0}),e);var Xe={};ye(Xe,{_add:()=>ge,_change:()=>I,_dispose:()=>b,_off:()=>M,_on:()=>ue,_set:()=>le,_signals:()=>R,_state:()=>y,attr:()=>k,batch:()=>oe,clsx:()=>_e,compile:()=>Pe,computed:()=>X,dashcase:()=>Me,debounce:()=>we,decorate:()=>j,default:()=>h,dir:()=>De,directive:()=>ie,effect:()=>B,frag:()=>C,isCE:()=>V,mo:()=>U,modifier:()=>G,mutate:()=>ne,parse:()=>w,prefix:()=>be,signal:()=>q,start:()=>xe,store:()=>Y,throttle:()=>Q,untracked:()=>H,use:()=>de});var b,y,ue,M,ge,be,V,q,B,X,oe,H,ie,G,ve,je,sr,Te,Le,De,Pe,w,Be,de,j,U,ne,xe,C,Me,lr,k,_e,Q,we,h,v=g(()=>{pe();pe();b=Symbol.dispose||(Symbol.dispose=Symbol("dispose")),y=Symbol("state"),ue=Symbol("on"),M=Symbol("off"),ge=Symbol("init"),be=":",V=e=>e.localName?.includes("-"),oe=e=>e(),H=oe,ie={},G={},ve=null,je=null,sr=e=>{if(!e?.tagName)return"";let t=e.tagName.toLowerCase();return e.id?t+="#"+e.id:e.className&&(t+="."+e.className.split(" ")[0]),`<${t}>`},Te=(e,t,r=je)=>{let o=`\u2234 ${e}`;if(r&&(o+=`
|
|
3
3
|
in ${sr(r)}`),t){let i=t.length>100?t.slice(0,80)+`\u2026 (${t.length} chars)`:t;o+=ve?`
|
|
4
4
|
${ve}="${i}"`:`
|
|
5
|
-
="${i}"`}console.error(o)},Le=(e=document.body,t)=>{if(e[y])return Object.assign(e[y],t);t=ae(t||{});let r=e,o=[],i=[];r[ue]=()=>{if(i)return i;i=Array(o.length);for(let s=0;s<o.length;s++)i[s]=o[s]();return i},r[M]=()=>{if(!i)return;let s=i;i=null;for(let l=0;l<s.length;l++)s[l]?.()},r[b]||(r[b]=()=>{r[M]?.(),U?._root===r&&(U.disconnect(),U=null),r[M]=r[ue]=r[b]=r[ge]=r[y]=null});let n=r[ge]=s=>{let l=s.attributes,a;if(l)for(let c=0;c<l.length;){let{name:f,value:P}=l[c];if(f.startsWith(be)){s.removeAttribute(f);let $=s[y];if(ve=f,je=s,o.push(a=De(s,f.slice(be.length),P,t)),i.push(a()),s[y]!==$)return}else c++}if(!(s!==e&&V(s)))if(s.firstChild!==void 0){let c=s.firstChild,f;for(;c;)f=c.nextSibling,c.nodeType==1&&n(c),c=f}else for(let c of s.childNodes)c.nodeType==1&&n(c)};return n(r),ve=je=null,r[y]===void 0&&!V(e)&&(r[y]=t),t};Le.version="13.3.1";w=e=>{let t=Be[e=e.trim()];if(t)return t;try{t=Pe(e||"undefined")}catch(r){Te(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=>Te(s,e,this)),()=>typeof i=="function"&&i()):o(n):n}catch(n){Te(n,e,this)}}},Be={},de=e=>(e.compile&&(Pe=e.compile),e.prefix&&(be=e.prefix),e.signal&&(q=e.signal),e.effect&&(B=e.effect),e.computed&&(X=e.computed),e.batch&&(oe=e.batch),e.untracked&&(H=e.untracked),e.dir&&(De=e.dir)),j=(e,t)=>{for(;t.length;){let[r,...o]=t.pop().split("-"),i=G[r],n;if(i&&(n=i(e,...o))!==e){for(let s in e)n[s]??(n[s]=e[s]);e=n}}return e},U=null,ne=e=>{U?.disconnect(),e(),U?.observe(U._root,{childList:!0,subtree:!0})},xe=(e=document.body,t)=>{let r=ae(t);return Le(e,r),U=new MutationObserver(o=>{for(let i of o){for(let n of i.addedNodes)n.nodeType===1&&n[y]===void 0&&e.contains(n)&&e[ge](n);for(let n of i.removedNodes)n.nodeType===1&&!e.contains(n)&&n[b]?.()}}),U._root=e,U.observe(e,{childList:!0,subtree:!0}),r},C=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(l=>l.name===s),1)}}},Me=e=>e.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(t,r)=>(r?"-":"")+t.toLowerCase()),lr=e=>e.replace(/-([a-z])/g,(t,r)=>r.toUpperCase()),k=(e,t,r)=>r==null||r===!1?e.removeAttribute(t):V(e)?e[lr(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(" "):"",Q=(e,t)=>{let r=0,o=0,i,n=typeof t=="function"?t:t?l=>setTimeout(l,t):queueMicrotask,s=l=>{i=l,r++||(e(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},we=(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)))()},h=Le});var R,I,le,$e,Re,Y,ar,Se,Ge,ae,pe=g(()=>{v();R=Symbol("signals"),I=Symbol("change"),le=Symbol("set"),$e=Symbol("parent"),Re=!0,Y=(e,t)=>{if(!e||e[Symbol.toStringTag]||e[R])return e;if(e.constructor!==Object)return Array.isArray(e)?ar(e):e;let r=Object.keys(e).length,o={},i=new Proxy(Object.assign(o,{[I]:q(r),[R]: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]:t?t[l]:typeof globalThis[l]=="function"&&!globalThis[l].prototype?globalThis[l].bind(globalThis):globalThis[l],set:(s,l,a)=>l in o?(Ge(o,l,a),1):(Re=!1,t&&l in t?t[l]=a:(Se(o,l,a),o[I].value=++r),Re=!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!==$e)),has:(s,l)=>l in o?!0:t?l in t:Re});Object.defineProperty(o,$e,{value:t,configurable:!0});let n=Object.getOwnPropertyDescriptors(e);for(let s in e)n[s]?.get?(o[s]=X(n[s].get.bind(i)))[le]=n[s].set?.bind(i):Se(o,s,e[s]);return i},ar=(e,t=globalThis)=>{let r=Array(e.length).fill(null),o=!1,i=l=>function(){return o=!0,l.apply(this,arguments)},n=q(e.length),s=new Proxy(Object.assign(r,{[I]:n,[R]:r,push:i(r.push),pop:i(r.pop),shift:i(r.shift),unshift:i(r.unshift),splice:i(r.splice)}),{get(l,a){return a==="length"?o?(o=!1,r.length):n.value:typeof a=="symbol"||isNaN(a)?r[a]?.valueOf()??t[a]:(r[a]??(r[a]=q(Y(e[a])))).valueOf()},set(l,a,c){if(a==="length"){for(let f=c;f<r.length;f++)delete s[f];n.value=r.length=c}else a>=r.length?(Se(r,a,c),s.length=+a+1):r[a]?Ge(r,a,c):Se(r,a,c);return 1},deleteProperty:(l,a)=>(r[a]?.[Symbol.dispose]?.(),delete r[a],1)});return Object.defineProperty(r,$e,{value:t,configurable:!0}),s},Se=(e,t,r)=>e[t]=t[0]=="_"||r?.peek||typeof r=="function"?r:q(Y(r)),Ge=(e,t,r,o,i)=>t[0]==="_"||typeof e[t]=="function"?e[t]=r:r!==(i=(o=e[t]).peek?.()??o)&&(o[le]?o[le](r):Array.isArray(r)&&Array.isArray(i)?I in i?H(()=>oe(()=>{for(let n=0;n<r.length;n++)i[n]=r[n];i.length=r.length})):o.value=r:o.value=Y(r)),ae=Y});var We={};ye(We,{batch:()=>fr,computed:()=>cr,effect:()=>Ye,signal:()=>Qe,untracked:()=>ur});var F,qe,ce,Qe,Ye,cr,fr,ur,et=g(()=>{qe=0,Qe=(e,t,r=new Set,o=()=>t.value)=>t={get value(){return F?.deps.add(r.add(F)),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},Ye=(e,t,r,o)=>(r=i=>{if(!e)return;let n=t;if(t=null,n?.call?.(),i=F,F=r,qe++>50){qe--,F=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{F=i,qe--}},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()}),cr=(e,t=Qe(),r,o,i=()=>r.value)=>r={get value(){return o||(o=Ye(()=>t.value=e())),t.value},peek:t.peek,toJSON:i,toString:i,valueOf:i},fr=(e,t=!ce,r)=>{ce??(ce=new Set);try{e()}finally{if(t){[ce,r]=[null,ce];for(let o of r)o()}}},ur=(e,t,r)=>(t=F,F=null,r=e(),F=t,r)});var tt,rt=g(()=>{v();tt=(e,t)=>{var n,s;let r,o;e._holder?h(o=e,t):(e[n=y]??(e[n]=null),o=e.content?C(e):e,o[s=y]??(o[s]=null),ne(()=>e.replaceWith(r=e.ownerDocument.createTextNode(""))),o._holder=r._holder=r,r._clauses=[o._clause=[o,!1]],r._match=null,r.update=Q(()=>{let l=r._clauses.find(([,a])=>a);l!=r._match&&ne(()=>{r._match?.[0].remove(),r._match?.[0][M]?.(),(r._match=l)&&(r.before(r._match[0].content||r._match[0]),r._match[0][y]?r._match[0][ue]?.():(delete r._match[0][y],h(r._match[0],t)))})}));let i=l=>{o._clause[1]=l,o._holder.update()};return i[M]=()=>{o._holder._match?.[0][M]?.(),o._holder._match=null},i}});var ot,it=g(()=>{v();ot=e=>{var o;let t,r=e;for(t=e.content?C(e):e,t[o=y]??(t[o]=null);r&&!(t._holder=r._holder);)r=r.previousSibling;return e.remove(),e[y]=null,t._holder._clauses.push(t._clause=[t,!0]),t._holder.update}});var nt,st=g(()=>{v();nt=e=>(e.content&&e.replaceWith(e=C(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.getRootNode().getSelection?.(),n=i?.rangeCount&&e.contains(i.anchorNode)?i.getRangeAt(0).startOffset:-1;if(e.textContent=t,n>=0&&e.firstChild){let s=Math.min(n,e.firstChild.textContent.length),l=new Range;l.setStart(e.firstChild,s),l.collapse(!0),i.removeAllRanges(),i.addRange(l)}})});var lt,at=g(()=>{v();lt=(e,t,r,o)=>{let i=null,n,s=null;return l=>{if(l=typeof l=="function"?l(e.className):l,l?.constructor===Object){if(s=null,i)for(let a of i)l[a]||(e.classList.remove(a),i.delete(a));i?.size||(i=null);for(let a in l)l[a]&&!i?.has(a)&&(e.classList.add(a),(i||(i=new Set)).add(a));i||e.removeAttribute("class");return}if(l=_e(l),l!==s){if(s=l,n=null,l)for(let a of l.split(" "))a&&(n||(n=new Set)).add(a);if(i)for(let a of i)n?.has(a)||e.classList.remove(a);if(n)for(let a of n)i?.has(a)||e.classList.add(a);n||e.removeAttribute("class"),i=n}}}});var ct,ft=g(()=>{v();ct=(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 ut,dt=g(()=>{ut=()=>e=>typeof e=="function"&&e()});var pt,ht=g(()=>{v();pt=(e,t)=>(e.type?.startsWith("select")&&h(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 dr,mt,yt=g(()=>{v();dr=(e,t=w(`${e}=__`))=>(r,o)=>{r.__=o,t(r),delete r.__},mt=(e,t,r)=>{let o=w(r).call(e,t);typeof o=="function"?o(e):dr(r)(t,e)}});var gt,bt=g(()=>{v();pe();gt=(e,t)=>{let r=e[y]=Y({},t),o=!1,i,n=e.content&&C(e);return n&&e.replaceWith(i=e.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[R][l]=X(a.get.bind(r)))[le]=a.set?.bind(r);continue}let c=typeof s[l]=="function"?s[l].bind(r):s[l];l in r[R]?r[l]=c:r[R][l]=l[0]=="_"||c?.peek?c:q(Y(c))}return!o&&(o=!0,!i&&delete e[y],H(()=>(i?.before(n.content||e),h(n||e,r))))}}});var pr,He,vt,xt=g(()=>{v();pr={get:(e,t)=>t===e.v?e.c?.[e.i]:t===e.k?e.o?e.o[e.i]:e.i:t===R?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?.[R]||{})?e.p[t]=r:(e.l||(e.l={}))[t]=r),1),has:()=>!0},He={get:(e,t)=>t===e.v?e.r:t===e.k?e.i:t===R?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?.[R]||{})?e.p[t]=r:(e.l||(e.l={}))[t]=r),1),has:()=>!0},vt=(e,t,r)=>{let[o,i]=r.split(/\bin|of\b/),[n,s="$"]=o.trim().replace(/\(|\)/g,"").split(/\s*,\s*/),l=e.ownerDocument,a=e._eachHolder||(e._eachHolder=l.createTextNode("")),c=new Map,f=[],P,$,Z,L=!1,re=Q(()=>ne(()=>{let m=P,N=m.length,T=f.length;if(L=!1,!m[I])for(let u=0;u<N;u++){let O=m[u];if(O!=null){L=typeof O=="object";break}}if(L&&T)if(N>T&&c.size===T){let u=N-T>1?l.createDocumentFragment():null,O=u?[]:null;for(let S=T;S<N;S++){let D=m[S],K={p:t,v:n,k:s,r:D,i:S,l:null},x=new Proxy(K,He),d=e.content?C(e):e.cloneNode(!0),_=d.content||d,J={el:d,scope:K,proxy:x};c.set(D,J),f.push(J),u?(u.appendChild(_),O.push([d,x])):(a.before(_),h(d,x))}if(u&&O.length){a.before(u);for(let[S,D]of O)h(S,D)}}else{let u=0;if(N<=T){let x=new Set;for(let d=0;d<N;d++)x.add(m[d]);for(let[d,_]of c)x.has(d)||(_.el[Symbol.dispose]?.(),_.el.remove(),c.delete(d),u++)}let O=[],S=!1,D=null,K=null;N-c.size>1&&(D=l.createDocumentFragment(),K=[]);for(let x=0;x<N;x++){let d=m[x],_=c.get(d);if(_)_.scope.i!==x&&(S=!0),_.scope.i=x,_.scope.r=d,O.push(_);else{let J={p:t,v:n,k:s,r:d,i:x,l:null},Ae=new Proxy(J,He),fe=e.content?C(e):e.cloneNode(!0),Je=fe.content||fe;_={el:fe,scope:J,proxy:Ae},c.set(d,_),O.push(_),D?(D.appendChild(Je),K.push([fe,Ae])):(a.before(Je),h(fe,Ae))}}if(D&&K.length){a.before(D);for(let[x,d]of K)h(x,d)}if(S||u){let x=a;for(let d=O.length-1;d>=0;d--){let _=O[d].el._holder||O[d].el.content||O[d].el;_.nextSibling!==x&&x.before(_),x=_}}f=O}else{if(T&&Z!==m&&!m[I]){for(let u of f)u.el[Symbol.dispose]?.(),u.el.remove();f.length=0,T=0,c.clear()}if(Z=m,N<T){for(let u=N;u<T;u++)f[u].el[Symbol.dispose]?.(),f[u].el.remove();f.length=N}for(let u=0;u<Math.min(T,N);u++)f[u].scope.c=m,$&&(f[u].scope.o=$);if(N>T){let u=N-T>1?l.createDocumentFragment():null,O=u?[]:null;for(let S=T;S<N;S++){let D=L?He:pr,K=L?{p:t,v:n,k:s,r:m[S],i:S,l:null}:{p:t,v:n,k:s,c:m,i:S,o:$,l:null},x=new Proxy(K,D),d=e.content?C(e):e.cloneNode(!0),_=d.content||d,J={el:d,scope:K};f.push(J),L&&c.set(m[S],J),u?(u.appendChild(_),O.push([d,x])):(a.before(_),h(d,x))}if(u){a.before(u);for(let[S,D]of O)h(S,D)}}}}));e.parentNode&&ne(()=>e.replaceWith(a)),e[y]=null;let z=()=>{for(let m of f)m.el[Symbol.dispose]?.(),m.el.remove();f.length=0,c.clear()},A=m=>{$=null,typeof m=="number"?P=Array.from({length:m},(T,u)=>u+1):m?.constructor===Object?($=Object.keys(m),P=Object.values(m)):P=m||[];let N=B(()=>{P[I]?.value,re()});return()=>N()};return A.eval=w(i),A[M]=z,A}});var _t,wt=g(()=>{v();_t=(e,t,r,o)=>i=>k(e,o,typeof i=="function"&&!V(e)?i(e.getAttribute(o)):i)});var St,Nt=g(()=>{v();St=e=>t=>{let r=V(e);for(let o in t)k(e,r?o:Me(o),t[o])}});var Ot,At=g(()=>{v();Ot=(e,t,r,o)=>{let[i,...n]=o.slice(2).split("."),s=w(r).bind(e),l=j(Object.assign(a=>s(t,c=>typeof c=="function"?c(a):c),{target:e}),n);return l.target.addEventListener(i,l,l),{[Symbol.dispose](){l.target.removeEventListener(i,l),l[Symbol.dispose]?.()}}}});var Ct,Et=g(()=>{v();Ct=(e,t,r,o)=>{let i,n,s=w(r).bind(e),l=o.split("..").map((a,c,{length:f})=>a.split(":").reduce((P,$)=>{let[Z,...L]=$.slice(2).split("."),re=(A,m)=>i=typeof A=="function"?A(m):A,z=j(Object.assign(A=>(c?re(i,A):s(t,m=>re(m,A)),n(),n=l[(c+1)%f]()),{target:e}),L);return A=>(A=P?.(),z.target.addEventListener(Z,z,z),()=>(A?.(),z.target.removeEventListener(Z,z)))},null));return n=l[0](),{[Symbol.dispose](){n?.()}}}});var Tt,jt,Lt=g(()=>{v();Tt=e=>!!e?.content,jt=(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?.[b]?.(),r?.remove(),s!=null&&s!=="")return r=Tt(s)?(o=s.innerHTML,C(s)):C((r=i.createElement("template"),r.innerHTML=o=s,r)),H(()=>h(r,t)),n.before(r.content),e._holder&&e.childNodes.splice(0,1/0,...r.childNodes),r[b];e._holder&&(e.childNodes.length=0,o="")}}return r=>{var o;return r=typeof r=="function"?r(e.innerHTML):r,Tt(r)?e.replaceChildren(r.content.cloneNode(!0)):e.innerHTML=r??"",e[o=y]&&(e[o]=null),H(()=>h(e,t)),e[b]}}});var Dt,Pt=g(()=>{Dt=(e,t,r)=>{let o=e.ownerDocument,i=o.createComment(":portal"),n=null;return e.before(i),s=>{let l=e.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(e):i.after(e),n=a,()=>{n&&(i.after(e),n=null)}}}});var Mt,Rt=g(()=>{Mt=e=>t=>e.hidden=!!t});var ke,$t=g(()=>{v();ke=(e,t,r,o)=>{let[,...i]=o.split("."),n=w(r).bind(e),s;return j(Object.assign(()=>{let a=n(t,c=>typeof c=="function"?c(e):c);typeof a=="function"&&(s=a)},{target:e}),i)(),{[b](){s?.(),s=null}}}});var Ie,qt=g(()=>{v();Ie=(e,t,r,o)=>{let[,...i]=o.split("."),n=w(r).bind(e),s=e.type==="checkbox"?()=>e.checked:e.type==="select-multiple"?()=>[...e.selectedOptions].map(a=>a.value):/^(date|time|month|week)/.test(e.type)?()=>e.value:()=>e.selectedIndex<0?null:isNaN(e.valueAsNumber)?e.value:e.valueAsNumber,l=j(Object.assign(()=>{n(t,a=>typeof a=="function"?a(s()):a)},{target:e}),i);return e.addEventListener("input",l),e.addEventListener("change",l),{[b](){e.removeEventListener("input",l),e.removeEventListener("change",l)}}}});var Wt,Ht,kt=g(()=>{v();Wt=(e,t,r,o)=>{let[,...i]=o.split("."),n=w(r).bind(e),s=i.includes("once"),l=j(Object.assign(c=>{n(t,f=>typeof f=="function"?f(c):f)},{target:e}),i),a=new IntersectionObserver(c=>{for(let f of c)f.isIntersecting&&(l(f),s&&a.disconnect())});return a.observe(e),{[b](){a.disconnect()}}};Wt.observer=!0;Ht=Wt});var It,zt,Kt=g(()=>{v();It=(e,t,r,o)=>{let[,...i]=o.split("."),n=w(r).bind(e),s=j(Object.assign(a=>{n(t,c=>typeof c=="function"?c(a):c)},{target:e}),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(e),{[b](){l.disconnect()}}};It.observer=!0;zt=It});var Vt={};ye(Vt,{batch:()=>oe,computed:()=>X,debounce:()=>we,default:()=>br,dispose:()=>gr,effect:()=>B,signal:()=>q,sprae:()=>h,start:()=>xe,store:()=>ae,throttle:()=>Q,untracked:()=>H,use:()=>de});var hr,mr,ze,Ke,Ut,yr,gr,br,Ft=g(()=>{pe();v();et();v();rt();it();st();at();ft();dt();ht();yt();bt();xt();wt();Nt();At();Et();Lt();Pt();Rt();$t();qt();kt();Kt();ke.observer=Ie.observer=!0;Object.assign(ie,{_:_t,"":St,class:lt,text:nt,html:jt,style:ct,fx:ut,value:pt,ref:mt,scope:gt,if:tt,else:ot,each:vt,portal:Dt,hidden:Mt,mount:ke,change:Ie,intersect:Ht,resize:zt});hr=(e,t,r,o)=>{let[i,...n]=t.split("."),s=ie[i]||ie._,l=n.length>0;return()=>{let a=e,c,f,P,$=0;if(l&&(f=q(0),P=j(Object.assign(()=>f.value++,{target:e}),n),a=P.target??e),c=s(a,o,r,i),!c?.call)return c?.[b];let Z=c.eval??w(r).bind(a),L,re=()=>(typeof L=="function"&&L(),L=null);V(a)||(o=a[y]??o);let z=l?B(()=>(f.value==$?P():($=f.value,L=Z(o,c)),re)):B(()=>(L=Z(o,c),re));if(!(y in a))return z;let A=0;return()=>{A||(A=1,z(),c[M]?c[M]():a[b]?.())}}},mr=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,ze=e=>e==="idle"?requestIdleCallback:e==="raf"?requestAnimationFrame:!e||e==="tick"?queueMicrotask:t=>setTimeout(t,mr(e));Object.assign(G,{debounce:(e,t,r)=>we(e,ze(t==="immediate"?r:t),t==="immediate"||r==="immediate"),throttle:(e,t)=>Q(e,ze(t)),delay:(e,t)=>((r=ze(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,[b]:()=>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)});G.outside=G.away;Ke={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)},Ut=(e,t)=>Ke[e]?.(t)||t.key?.toLowerCase()===e||t.keyCode==e;for(let e in Ke)G[e]=(t,r,o)=>i=>Ke[e](i)&&(!r||Ut(r,i))&&(!o||Ut(o,i))&&t(i);yr=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};de({compile:e=>(/^(if|let|const)\b/.test(e)||yr(e)||(e=`return ${e}`),/\bawait\s/.test(e)&&(e=`return (async()=>{${e}})()`),h.constructor(`with(arguments[0]){${e}}`)),dir:(e,t,r,o)=>t.includes("..")?()=>Ct(e,o,r,t)[b]:t.split(":").reduce((i,n)=>{let s=n.split(".")[0],l=ie[s],a=n.startsWith("on")?()=>Ot(e,o,r,n)[b]:l?.observer?()=>l(e,o,r,n)[b]:hr(e,n,r,o);return i?(c,f)=>(c=i(),f=a(),()=>{c(),f()}):a},null),...We});h.use=de;h.store=ae;h.directive=ie;h.modifier=G;gr=h.dispose=e=>e[b]?.();h.start=xe;br=h});var Yt={};ye(Yt,{Computed:()=>te,Effect:()=>se,Signal:()=>E,batch:()=>xr,computed:()=>wr,effect:()=>Qt,signal:()=>_r,untracked:()=>Ve});function Oe(){if(ee>1)ee--;else{for(var e,t=!1;he!==void 0;){var r=he;for(he=void 0,Ue++;r!==void 0;){var o=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Jt(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=o}}if(Ue=0,ee--,t)throw e}}function xr(e){if(ee>0)return e();ee++;try{return e()}finally{Oe()}}function Ve(e){var t=p;p=void 0;try{return e()}finally{p=t}}function Zt(e){if(p!==void 0){var t=e.n;if(t===void 0||t.t!==p)return t={i:0,S:e,p:p.s,n:void 0,t:p,e:void 0,x:void 0,r:t},p.s!==void 0&&(p.s.n=t),p.s=t,e.n=t,32&p.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=p.s,t.n=void 0,p.s.n=t,p.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 _r(e,t){return new E(e,t)}function Jt(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 Bt(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 Xt(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 te(e,t){E.call(this,void 0),this.x=e,this.s=void 0,this.g=Ne-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function wr(e,t){return new te(e,t)}function Gt(e){var t=e.u;if(e.u=void 0,typeof t=="function"){ee++;var r=p;p=void 0;try{t()}catch(o){throw e.f&=-2,e.f|=8,Fe(e),o}finally{p=r,Oe()}}}function Fe(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Gt(e)}function Sr(e){if(p!==this)throw new Error("Out-of-order effect");Xt(this),p=e,this.f&=-2,8&this.f&&Fe(this),Oe()}function se(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 Qt(e,t){var r=new se(e,t);try{r.c()}catch(i){throw r.d(),i}var o=r.d.bind(r);return o[Symbol.dispose]=o,o}var vr,p,he,ee,Ue,Ne,er=g(()=>{vr=Symbol.for("preact-signals");p=void 0;he=void 0,ee=0,Ue=0,Ne=0;E.prototype.brand=vr;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 Qt(function(){var r=t.value,o=p;p=void 0;try{e(r)}finally{p=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=p;p=void 0;try{return this.value}finally{p=e}};Object.defineProperty(E.prototype,"value",{get:function(){var e=Zt(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ue>100)throw new Error("Cycle detected");this.v=e,this.i++,Ne++,ee++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Oe()}}}});te.prototype=new E;te.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ne))return!0;if(this.g=Ne,this.f|=1,this.i>0&&!Jt(this))return this.f&=-2,!0;var e=p;try{Bt(this),p=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 p=e,Xt(this),this.f&=-2,!0};te.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)};te.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)}};te.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(te.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Zt(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});se.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()}};se.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Gt(this),Bt(this),ee++;var e=p;return p=this,Sr.bind(this,e)};se.prototype.N=function(){2&this.f||(this.f|=2,this.o=he,he=this)};se.prototype.d=function(){this.f|=8,1&this.f||Fe(this)};se.prototype.dispose=function(){this.d()}});var Ze=(Ft(),Ee(Vt)).default,Nr=(er(),Ee(Yt)),Or=(v(),Ee(Xe)).use;Or(Nr);module.exports=Ze;var W=document.currentScript,tr=W.getAttribute("prefix")??W.dataset.prefix??W.dataset.spraePrefix,me=W.getAttribute("start")??W.dataset.start??W.dataset.spraeStart;W.removeAttribute("prefix");W.removeAttribute("start");delete W.dataset.prefix;delete W.dataset.start;delete W.dataset.spraePrefix;delete W.dataset.spraeStart;tr&&Ze.use({prefix:tr});me!=null&&me!=="false"&&(me&&me!=="true"?document.querySelectorAll(me):[document.body||document.documentElement]).forEach(e=>Ze.start(e));
|
|
5
|
+
="${i}"`}console.error(o)},Le=(e=document.body,t)=>{if(e[y])return Object.assign(e[y],t);t=ae(t||{});let r=e,o=[],i=[];r[ue]=()=>{if(i)return i;i=Array(o.length);for(let s=0;s<o.length;s++)i[s]=o[s]();return i},r[M]=()=>{if(!i)return;let s=i;i=null;for(let l=0;l<s.length;l++)s[l]?.()},r[b]||(r[b]=()=>{r[M]?.(),U?._root===r&&(U.disconnect(),U=null),r[M]=r[ue]=r[b]=r[ge]=r[y]=null});let n=r[ge]=s=>{let l=s.attributes,a;if(l)for(let c=0;c<l.length;){let{name:f,value:P}=l[c];if(f.startsWith(be)){s.removeAttribute(f);let $=s[y];if(ve=f,je=s,o.push(a=De(s,f.slice(be.length),P,t)),i.push(a()),s[y]!==$)return}else c++}if(!(s!==e&&V(s)))if(s.firstChild!==void 0){let c=s.firstChild,f;for(;c;)f=c.nextSibling,c.nodeType==1&&n(c),c=f}else for(let c of s.childNodes)c.nodeType==1&&n(c)};return n(r),ve=je=null,r[y]===void 0&&!V(e)&&(r[y]=t),t};Le.version="13.3.2";w=e=>{let t=Be[e=e.trim()];if(t)return t;try{t=Pe(e||"undefined")}catch(r){Te(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=>Te(s,e,this)),()=>typeof i=="function"&&i()):o(n):n}catch(n){Te(n,e,this)}}},Be={},de=e=>(e.compile&&(Pe=e.compile),e.prefix&&(be=e.prefix),e.signal&&(q=e.signal),e.effect&&(B=e.effect),e.computed&&(X=e.computed),e.batch&&(oe=e.batch),e.untracked&&(H=e.untracked),e.dir&&(De=e.dir)),j=(e,t)=>{for(;t.length;){let[r,...o]=t.pop().split("-"),i=G[r],n;if(i&&(n=i(e,...o))!==e){for(let s in e)n[s]??(n[s]=e[s]);e=n}}return e},U=null,ne=e=>{U?.disconnect(),e(),U?.observe(U._root,{childList:!0,subtree:!0})},xe=(e=document.body,t)=>{let r=ae(t);return Le(e,r),U=new MutationObserver(o=>{for(let i of o){for(let n of i.addedNodes)n.nodeType===1&&n[y]===void 0&&e.contains(n)&&e[ge](n);for(let n of i.removedNodes)n.nodeType===1&&!e.contains(n)&&n[b]?.()}}),U._root=e,U.observe(e,{childList:!0,subtree:!0}),r},C=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(l=>l.name===s),1)}}},Me=e=>e.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(t,r)=>(r?"-":"")+t.toLowerCase()),lr=e=>e.replace(/-([a-z])/g,(t,r)=>r.toUpperCase()),k=(e,t,r)=>r==null||r===!1?e.removeAttribute(t):V(e)?e[lr(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(" "):"",Q=(e,t)=>{let r=0,o=0,i,n=typeof t=="function"?t:t?l=>setTimeout(l,t):queueMicrotask,s=l=>{i=l,r++||(e(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},we=(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)))()},h=Le});var R,I,le,$e,Re,Y,ar,Se,Ge,ae,pe=g(()=>{v();R=Symbol("signals"),I=Symbol("change"),le=Symbol("set"),$e=Symbol("parent"),Re=!0,Y=(e,t)=>{if(!e||e[Symbol.toStringTag]||e[R])return e;if(e.constructor!==Object)return Array.isArray(e)?ar(e):e;let r=Object.keys(e).length,o={},i=new Proxy(Object.assign(o,{[I]:q(r),[R]: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]:t?t[l]:typeof globalThis[l]=="function"&&!globalThis[l].prototype?globalThis[l].bind(globalThis):globalThis[l],set:(s,l,a)=>l in o?(Ge(o,l,a),1):(Re=!1,t&&l in t?t[l]=a:(Se(o,l,a),o[I].value=++r),Re=!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!==$e)),has:(s,l)=>l in o?!0:t?l in t:Re});Object.defineProperty(o,$e,{value:t,configurable:!0});let n=Object.getOwnPropertyDescriptors(e);for(let s in e)n[s]?.get?(o[s]=X(n[s].get.bind(i)))[le]=n[s].set?.bind(i):Se(o,s,e[s]);return i},ar=(e,t=globalThis)=>{let r=Array(e.length).fill(null),o=!1,i=l=>function(){return o=!0,l.apply(this,arguments)},n=q(e.length),s=new Proxy(Object.assign(r,{[I]:n,[R]:r,push:i(r.push),pop:i(r.pop),shift:i(r.shift),unshift:i(r.unshift),splice:i(r.splice)}),{get(l,a){return a==="length"?o?(o=!1,r.length):n.value:typeof a=="symbol"||isNaN(a)?r[a]?.valueOf()??t[a]:(r[a]??(r[a]=q(Y(e[a])))).valueOf()},set(l,a,c){if(a==="length"){for(let f=c;f<r.length;f++)delete s[f];n.value=r.length=c}else a>=r.length?(Se(r,a,c),s.length=+a+1):r[a]?Ge(r,a,c):Se(r,a,c);return 1},deleteProperty:(l,a)=>(r[a]?.[Symbol.dispose]?.(),delete r[a],1)});return Object.defineProperty(r,$e,{value:t,configurable:!0}),s},Se=(e,t,r)=>e[t]=t[0]=="_"||r?.peek||typeof r=="function"?r:q(Y(r)),Ge=(e,t,r,o,i)=>t[0]==="_"||typeof e[t]=="function"?e[t]=r:r!==(i=(o=e[t]).peek?.()??o)&&(o[le]?o[le](r):Array.isArray(r)&&Array.isArray(i)?I in i?H(()=>oe(()=>{for(let n=0;n<r.length;n++)i[n]=r[n];i.length=r.length})):o.value=r:o.value=Y(r)),ae=Y});var We={};ye(We,{batch:()=>fr,computed:()=>cr,effect:()=>Ye,signal:()=>Qe,untracked:()=>ur});var F,qe,ce,Qe,Ye,cr,fr,ur,et=g(()=>{qe=0,Qe=(e,t,r=new Set,o=()=>t.value)=>t={get value(){return F?.deps.add(r.add(F)),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},Ye=(e,t,r,o)=>(r=i=>{if(!e)return;let n=t;if(t=null,n?.call?.(),i=F,F=r,qe++>50){qe--,F=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{F=i,qe--}},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()}),cr=(e,t=Qe(),r,o,i=()=>r.value)=>r={get value(){return o||(o=Ye(()=>t.value=e())),t.value},peek:t.peek,toJSON:i,toString:i,valueOf:i},fr=(e,t=!ce,r)=>{ce??(ce=new Set);try{e()}finally{if(t){[ce,r]=[null,ce];for(let o of r)o()}}},ur=(e,t,r)=>(t=F,F=null,r=e(),F=t,r)});var tt,rt=g(()=>{v();tt=(e,t)=>{var n,s;let r,o;e._holder?h(o=e,t):(e[n=y]??(e[n]=null),o=e.content?C(e):e,o[s=y]??(o[s]=null),ne(()=>e.replaceWith(r=e.ownerDocument.createTextNode(""))),o._holder=r._holder=r,r._clauses=[o._clause=[o,!1]],r._match=null,r.update=Q(()=>{let l=r._clauses.find(([,a])=>a);l!=r._match&&ne(()=>{r._match?.[0].remove(),r._match?.[0][M]?.(),(r._match=l)&&(r.before(r._match[0].content||r._match[0]),r._match[0][y]?r._match[0][ue]?.():(delete r._match[0][y],h(r._match[0],t)))})}));let i=l=>{o._clause[1]=l,o._holder.update()};return i[M]=()=>{o._holder._match?.[0][M]?.(),o._holder._match=null},i}});var ot,it=g(()=>{v();ot=e=>{var o;let t,r=e;for(t=e.content?C(e):e,t[o=y]??(t[o]=null);r&&!(t._holder=r._holder);)r=r.previousSibling;return e.remove(),e[y]=null,t._holder._clauses.push(t._clause=[t,!0]),t._holder.update}});var nt,st=g(()=>{v();nt=e=>(e.content&&e.replaceWith(e=C(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.getRootNode().getSelection?.(),n=i?.rangeCount&&e.contains(i.anchorNode)?i.getRangeAt(0).startOffset:-1;if(e.textContent=t,n>=0&&e.firstChild){let s=Math.min(n,e.firstChild.textContent.length),l=new Range;l.setStart(e.firstChild,s),l.collapse(!0),i.removeAllRanges(),i.addRange(l)}})});var lt,at=g(()=>{v();lt=(e,t,r,o)=>{let i=null,n,s=null,l=()=>!e.classList.length&&e.removeAttribute("class");return a=>{if(a=typeof a=="function"?a(e.className):a,a?.constructor===Object){if(s=null,i)for(let c of i)a[c]||(e.classList.remove(c),i.delete(c));i?.size||(i=null);for(let c in a)a[c]&&!i?.has(c)&&(e.classList.add(c),(i||(i=new Set)).add(c));i||l();return}if(a=_e(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)||e.classList.remove(c);if(n)for(let c of n)i?.has(c)||e.classList.add(c);n||l(),i=n}}}});var ct,ft=g(()=>{v();ct=(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 ut,dt=g(()=>{ut=()=>e=>typeof e=="function"&&e()});var pt,ht=g(()=>{v();pt=(e,t)=>(e.type?.startsWith("select")&&h(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 dr,mt,yt=g(()=>{v();dr=(e,t=w(`${e}=__`))=>(r,o)=>{r.__=o,t(r),delete r.__},mt=(e,t,r)=>{let o=w(r).call(e,t);typeof o=="function"?o(e):dr(r)(t,e)}});var gt,bt=g(()=>{v();pe();gt=(e,t)=>{let r=e[y]=Y({},t),o=!1,i,n=e.content&&C(e);return n&&e.replaceWith(i=e.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[R][l]=X(a.get.bind(r)))[le]=a.set?.bind(r);continue}let c=typeof s[l]=="function"?s[l].bind(r):s[l];l in r[R]?r[l]=c:r[R][l]=l[0]=="_"||c?.peek?c:q(Y(c))}return!o&&(o=!0,!i&&delete e[y],H(()=>(i?.before(n.content||e),h(n||e,r))))}}});var pr,He,vt,xt=g(()=>{v();pr={get:(e,t)=>t===e.v?e.c?.[e.i]:t===e.k?e.o?e.o[e.i]:e.i:t===R?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?.[R]||{})?e.p[t]=r:(e.l||(e.l={}))[t]=r),1),has:()=>!0},He={get:(e,t)=>t===e.v?e.r:t===e.k?e.i:t===R?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?.[R]||{})?e.p[t]=r:(e.l||(e.l={}))[t]=r),1),has:()=>!0},vt=(e,t,r)=>{let[o,i]=r.split(/\bin|of\b/),[n,s="$"]=o.trim().replace(/\(|\)/g,"").split(/\s*,\s*/),l=e.ownerDocument,a=e._eachHolder||(e._eachHolder=l.createTextNode("")),c=new Map,f=[],P,$,Z,L=!1,re=Q(()=>ne(()=>{let m=P,N=m.length,T=f.length;if(L=!1,!m[I])for(let u=0;u<N;u++){let O=m[u];if(O!=null){L=typeof O=="object";break}}if(L&&T)if(N>T&&c.size===T){let u=N-T>1?l.createDocumentFragment():null,O=u?[]:null;for(let S=T;S<N;S++){let D=m[S],K={p:t,v:n,k:s,r:D,i:S,l:null},x=new Proxy(K,He),d=e.content?C(e):e.cloneNode(!0),_=d.content||d,J={el:d,scope:K,proxy:x};c.set(D,J),f.push(J),u?(u.appendChild(_),O.push([d,x])):(a.before(_),h(d,x))}if(u&&O.length){a.before(u);for(let[S,D]of O)h(S,D)}}else{let u=0;if(N<=T){let x=new Set;for(let d=0;d<N;d++)x.add(m[d]);for(let[d,_]of c)x.has(d)||(_.el[Symbol.dispose]?.(),_.el.remove(),c.delete(d),u++)}let O=[],S=!1,D=null,K=null;N-c.size>1&&(D=l.createDocumentFragment(),K=[]);for(let x=0;x<N;x++){let d=m[x],_=c.get(d);if(_)_.scope.i!==x&&(S=!0),_.scope.i=x,_.scope.r=d,O.push(_);else{let J={p:t,v:n,k:s,r:d,i:x,l:null},Ae=new Proxy(J,He),fe=e.content?C(e):e.cloneNode(!0),Je=fe.content||fe;_={el:fe,scope:J,proxy:Ae},c.set(d,_),O.push(_),D?(D.appendChild(Je),K.push([fe,Ae])):(a.before(Je),h(fe,Ae))}}if(D&&K.length){a.before(D);for(let[x,d]of K)h(x,d)}if(S||u){let x=a;for(let d=O.length-1;d>=0;d--){let _=O[d].el._holder||O[d].el.content||O[d].el;_.nextSibling!==x&&x.before(_),x=_}}f=O}else{if(T&&Z!==m&&!m[I]){for(let u of f)u.el[Symbol.dispose]?.(),u.el.remove();f.length=0,T=0,c.clear()}if(Z=m,N<T){for(let u=N;u<T;u++)f[u].el[Symbol.dispose]?.(),f[u].el.remove();f.length=N}for(let u=0;u<Math.min(T,N);u++)f[u].scope.c=m,$&&(f[u].scope.o=$);if(N>T){let u=N-T>1?l.createDocumentFragment():null,O=u?[]:null;for(let S=T;S<N;S++){let D=L?He:pr,K=L?{p:t,v:n,k:s,r:m[S],i:S,l:null}:{p:t,v:n,k:s,c:m,i:S,o:$,l:null},x=new Proxy(K,D),d=e.content?C(e):e.cloneNode(!0),_=d.content||d,J={el:d,scope:K};f.push(J),L&&c.set(m[S],J),u?(u.appendChild(_),O.push([d,x])):(a.before(_),h(d,x))}if(u){a.before(u);for(let[S,D]of O)h(S,D)}}}}));e.parentNode&&ne(()=>e.replaceWith(a)),e[y]=null;let z=()=>{for(let m of f)m.el[Symbol.dispose]?.(),m.el.remove();f.length=0,c.clear()},A=m=>{$=null,typeof m=="number"?P=Array.from({length:m},(T,u)=>u+1):m?.constructor===Object?($=Object.keys(m),P=Object.values(m)):P=m||[];let N=B(()=>{P[I]?.value,re()});return()=>N()};return A.eval=w(i),A[M]=z,A}});var _t,wt=g(()=>{v();_t=(e,t,r,o)=>i=>k(e,o,typeof i=="function"&&!V(e)?i(e.getAttribute(o)):i)});var St,Nt=g(()=>{v();St=e=>t=>{let r=V(e);for(let o in t)k(e,r?o:Me(o),t[o])}});var Ot,At=g(()=>{v();Ot=(e,t,r,o)=>{let[i,...n]=o.slice(2).split("."),s=w(r).bind(e),l=j(Object.assign(a=>s(t,c=>typeof c=="function"?c(a):c),{target:e}),n);return l.target.addEventListener(i,l,l),{[Symbol.dispose](){l.target.removeEventListener(i,l),l[Symbol.dispose]?.()}}}});var Ct,Et=g(()=>{v();Ct=(e,t,r,o)=>{let i,n,s=w(r).bind(e),l=o.split("..").map((a,c,{length:f})=>a.split(":").reduce((P,$)=>{let[Z,...L]=$.slice(2).split("."),re=(A,m)=>i=typeof A=="function"?A(m):A,z=j(Object.assign(A=>(c?re(i,A):s(t,m=>re(m,A)),n(),n=l[(c+1)%f]()),{target:e}),L);return A=>(A=P?.(),z.target.addEventListener(Z,z,z),()=>(A?.(),z.target.removeEventListener(Z,z)))},null));return n=l[0](),{[Symbol.dispose](){n?.()}}}});var Tt,jt,Lt=g(()=>{v();Tt=e=>!!e?.content,jt=(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?.[b]?.(),r?.remove(),s!=null&&s!=="")return r=Tt(s)?(o=s.innerHTML,C(s)):C((r=i.createElement("template"),r.innerHTML=o=s,r)),H(()=>h(r,t)),n.before(r.content),e._holder&&e.childNodes.splice(0,1/0,...r.childNodes),r[b];e._holder&&(e.childNodes.length=0,o="")}}return r=>{var o;return r=typeof r=="function"?r(e.innerHTML):r,Tt(r)?e.replaceChildren(r.content.cloneNode(!0)):e.innerHTML=r??"",e[o=y]&&(e[o]=null),H(()=>h(e,t)),e[b]}}});var Dt,Pt=g(()=>{Dt=(e,t,r)=>{let o=e.ownerDocument,i=o.createComment(":portal"),n=null;return e.before(i),s=>{let l=e.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(e):i.after(e),n=a,()=>{n&&(i.after(e),n=null)}}}});var Mt,Rt=g(()=>{Mt=e=>t=>e.hidden=!!t});var ke,$t=g(()=>{v();ke=(e,t,r,o)=>{let[,...i]=o.split("."),n=w(r).bind(e),s;return j(Object.assign(()=>{let a=n(t,c=>typeof c=="function"?c(e):c);typeof a=="function"&&(s=a)},{target:e}),i)(),{[b](){s?.(),s=null}}}});var Ie,qt=g(()=>{v();Ie=(e,t,r,o)=>{let[,...i]=o.split("."),n=w(r).bind(e),s=e.type==="checkbox"?()=>e.checked:e.type==="select-multiple"?()=>[...e.selectedOptions].map(a=>a.value):/^(date|time|month|week)/.test(e.type)?()=>e.value:()=>e.selectedIndex<0?null:isNaN(e.valueAsNumber)?e.value:e.valueAsNumber,l=j(Object.assign(()=>{n(t,a=>typeof a=="function"?a(s()):a)},{target:e}),i);return e.addEventListener("input",l),e.addEventListener("change",l),{[b](){e.removeEventListener("input",l),e.removeEventListener("change",l)}}}});var Wt,Ht,kt=g(()=>{v();Wt=(e,t,r,o)=>{let[,...i]=o.split("."),n=w(r).bind(e),s=i.includes("once"),l=j(Object.assign(c=>{n(t,f=>typeof f=="function"?f(c):f)},{target:e}),i),a=new IntersectionObserver(c=>{for(let f of c)f.isIntersecting&&(l(f),s&&a.disconnect())});return a.observe(e),{[b](){a.disconnect()}}};Wt.observer=!0;Ht=Wt});var It,zt,Kt=g(()=>{v();It=(e,t,r,o)=>{let[,...i]=o.split("."),n=w(r).bind(e),s=j(Object.assign(a=>{n(t,c=>typeof c=="function"?c(a):c)},{target:e}),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(e),{[b](){l.disconnect()}}};It.observer=!0;zt=It});var Vt={};ye(Vt,{batch:()=>oe,computed:()=>X,debounce:()=>we,default:()=>br,dispose:()=>gr,effect:()=>B,signal:()=>q,sprae:()=>h,start:()=>xe,store:()=>ae,throttle:()=>Q,untracked:()=>H,use:()=>de});var hr,mr,ze,Ke,Ut,yr,gr,br,Ft=g(()=>{pe();v();et();v();rt();it();st();at();ft();dt();ht();yt();bt();xt();wt();Nt();At();Et();Lt();Pt();Rt();$t();qt();kt();Kt();ke.observer=Ie.observer=!0;Object.assign(ie,{_:_t,"":St,class:lt,text:nt,html:jt,style:ct,fx:ut,value:pt,ref:mt,scope:gt,if:tt,else:ot,each:vt,portal:Dt,hidden:Mt,mount:ke,change:Ie,intersect:Ht,resize:zt});hr=(e,t,r,o)=>{let[i,...n]=t.split("."),s=ie[i]||ie._,l=n.length>0;return()=>{let a=e,c,f,P,$=0;if(l&&(f=q(0),P=j(Object.assign(()=>f.value++,{target:e}),n),a=P.target??e),c=s(a,o,r,i),!c?.call)return c?.[b];let Z=c.eval??w(r).bind(a),L,re=()=>(typeof L=="function"&&L(),L=null);V(a)||(o=a[y]??o);let z=l?B(()=>(f.value==$?P():($=f.value,L=Z(o,c)),re)):B(()=>(L=Z(o,c),re));if(!(y in a))return z;let A=0;return()=>{A||(A=1,z(),c[M]?c[M]():a[b]?.())}}},mr=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,ze=e=>e==="idle"?requestIdleCallback:e==="raf"?requestAnimationFrame:!e||e==="tick"?queueMicrotask:t=>setTimeout(t,mr(e));Object.assign(G,{debounce:(e,t,r)=>we(e,ze(t==="immediate"?r:t),t==="immediate"||r==="immediate"),throttle:(e,t)=>Q(e,ze(t)),delay:(e,t)=>((r=ze(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,[b]:()=>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)});G.outside=G.away;Ke={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)},Ut=(e,t)=>Ke[e]?.(t)||t.key?.toLowerCase()===e||t.keyCode==e;for(let e in Ke)G[e]=(t,r,o)=>i=>Ke[e](i)&&(!r||Ut(r,i))&&(!o||Ut(o,i))&&t(i);yr=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};de({compile:e=>(/^(if|let|const)\b/.test(e)||yr(e)||(e=`return ${e}`),/\bawait\s/.test(e)&&(e=`return (async()=>{${e}})()`),h.constructor(`with(arguments[0]){${e}}`)),dir:(e,t,r,o)=>t.includes("..")?()=>Ct(e,o,r,t)[b]:t.split(":").reduce((i,n)=>{let s=n.split(".")[0],l=ie[s],a=n.startsWith("on")?()=>Ot(e,o,r,n)[b]:l?.observer?()=>l(e,o,r,n)[b]:hr(e,n,r,o);return i?(c,f)=>(c=i(),f=a(),()=>{c(),f()}):a},null),...We});h.use=de;h.store=ae;h.directive=ie;h.modifier=G;gr=h.dispose=e=>e[b]?.();h.start=xe;br=h});var Yt={};ye(Yt,{Computed:()=>te,Effect:()=>se,Signal:()=>E,batch:()=>xr,computed:()=>wr,effect:()=>Qt,signal:()=>_r,untracked:()=>Ve});function Oe(){if(ee>1)ee--;else{for(var e,t=!1;he!==void 0;){var r=he;for(he=void 0,Ue++;r!==void 0;){var o=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Jt(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=o}}if(Ue=0,ee--,t)throw e}}function xr(e){if(ee>0)return e();ee++;try{return e()}finally{Oe()}}function Ve(e){var t=p;p=void 0;try{return e()}finally{p=t}}function Zt(e){if(p!==void 0){var t=e.n;if(t===void 0||t.t!==p)return t={i:0,S:e,p:p.s,n:void 0,t:p,e:void 0,x:void 0,r:t},p.s!==void 0&&(p.s.n=t),p.s=t,e.n=t,32&p.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=p.s,t.n=void 0,p.s.n=t,p.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 _r(e,t){return new E(e,t)}function Jt(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 Bt(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 Xt(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 te(e,t){E.call(this,void 0),this.x=e,this.s=void 0,this.g=Ne-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function wr(e,t){return new te(e,t)}function Gt(e){var t=e.u;if(e.u=void 0,typeof t=="function"){ee++;var r=p;p=void 0;try{t()}catch(o){throw e.f&=-2,e.f|=8,Fe(e),o}finally{p=r,Oe()}}}function Fe(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Gt(e)}function Sr(e){if(p!==this)throw new Error("Out-of-order effect");Xt(this),p=e,this.f&=-2,8&this.f&&Fe(this),Oe()}function se(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 Qt(e,t){var r=new se(e,t);try{r.c()}catch(i){throw r.d(),i}var o=r.d.bind(r);return o[Symbol.dispose]=o,o}var vr,p,he,ee,Ue,Ne,er=g(()=>{vr=Symbol.for("preact-signals");p=void 0;he=void 0,ee=0,Ue=0,Ne=0;E.prototype.brand=vr;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 Qt(function(){var r=t.value,o=p;p=void 0;try{e(r)}finally{p=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=p;p=void 0;try{return this.value}finally{p=e}};Object.defineProperty(E.prototype,"value",{get:function(){var e=Zt(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ue>100)throw new Error("Cycle detected");this.v=e,this.i++,Ne++,ee++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Oe()}}}});te.prototype=new E;te.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ne))return!0;if(this.g=Ne,this.f|=1,this.i>0&&!Jt(this))return this.f&=-2,!0;var e=p;try{Bt(this),p=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 p=e,Xt(this),this.f&=-2,!0};te.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)};te.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)}};te.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(te.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Zt(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});se.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()}};se.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Gt(this),Bt(this),ee++;var e=p;return p=this,Sr.bind(this,e)};se.prototype.N=function(){2&this.f||(this.f|=2,this.o=he,he=this)};se.prototype.d=function(){this.f|=8,1&this.f||Fe(this)};se.prototype.dispose=function(){this.d()}});var Ze=(Ft(),Ee(Vt)).default,Nr=(er(),Ee(Yt)),Or=(v(),Ee(Xe)).use;Or(Nr);module.exports=Ze;var W=document.currentScript,tr=W.getAttribute("prefix")??W.dataset.prefix??W.dataset.spraePrefix,me=W.getAttribute("start")??W.dataset.start??W.dataset.spraeStart;W.removeAttribute("prefix");W.removeAttribute("start");delete W.dataset.prefix;delete W.dataset.start;delete W.dataset.spraePrefix;delete W.dataset.spraeStart;tr&&Ze.use({prefix:tr});me!=null&&me!=="false"&&(me&&me!=="true"?document.querySelectorAll(me):[document.body||document.documentElement]).forEach(e=>Ze.start(e));
|
|
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") {
|