3 lines
6.5 KiB
JavaScript
3 lines
6.5 KiB
JavaScript
var Ce=Object.defineProperty;var fe=i=>{throw TypeError(i)};var Se=(i,e,s)=>e in i?Ce(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var Q=(i,e,s)=>Se(i,typeof e!="symbol"?e+"":e,s),U=(i,e,s)=>e.has(i)||fe("Cannot "+s);var t=(i,e,s)=>(U(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>e.has(i)?fe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,s),a=(i,e,s,n)=>(U(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s),l=(i,e,s)=>(U(i,e,"access private method"),s);import{T as Ne,p as ye,i as ke,K as me,u as ne,V as he,q as P,W as A,h as C,X as Y,Y as oe,d as Fe,e as Oe,H as xe,Z as k,_ as be,F as X,$ as Z,a0 as Ye,a1 as le,a2 as Me,a3 as _e,a4 as Be,a5 as Ie,a6 as de,a7 as ce,a8 as ue,a9 as je,aa as He,j as M,D as qe,ab as G,A as L,n as Pe,B as Ve,ac as pe,ad as ze,E as Le,ae as We,af as $e,ag as ee,ah as Je,ai as Ee,aj as Ke,ak as Qe,al as te,C as H,am as Ue,an as Xe,ao as Ze,ap as Ge,aq as et,ar as ge,as as ve,at as tt,Q as st,au as it,av as at,aw as nt,R as rt,ax as ft,l as ht,ay as ot,az as lt,J as _t,aA as dt,aB as ct,aC as ut,aD as pt,aE as gt}from"./nEbfNkJh.js";function vt(i){let e=0,s=me(0),n;return()=>{Ne()&&(ye(s),ke(()=>(e===0&&(n=ne(()=>i(()=>he(s)))),e+=1,()=>{P(()=>{e-=1,e===0&&(n==null||n(),n=void 0,he(s))})})))}}var yt=Le|We;function mt(i,e,s){new bt(i,e,s)}var c,B,T,S,m,b,_,E,R,N,D,F,O,x,w,W,f,Te,Re,se,V,z,ie;class bt{constructor(e,s,n){h(this,f);Q(this,"parent");Q(this,"is_pending",!1);h(this,c);h(this,B,C?A:null);h(this,T);h(this,S);h(this,m);h(this,b,null);h(this,_,null);h(this,E,null);h(this,R,null);h(this,N,0);h(this,D,0);h(this,F,!1);h(this,O,new Set);h(this,x,new Set);h(this,w,null);h(this,W,vt(()=>(a(this,w,me(t(this,N))),()=>{a(this,w,null)})));a(this,c,e),a(this,T,s),a(this,S,o=>{var r=Y;r.b=this,r.f|=oe,n(o)}),this.parent=Y.b,a(this,m,Fe(()=>{if(C){const o=t(this,B);Oe(),o.data===xe?l(this,f,Re).call(this):l(this,f,Te).call(this)}else l(this,f,se).call(this)},yt)),C&&a(this,c,A)}defer_effect(e){Ie(e,t(this,O),t(this,x))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!t(this,T).pending}update_pending_count(e){l(this,f,ie).call(this,e),a(this,N,t(this,N)+e),!(!t(this,w)||t(this,F))&&(a(this,F,!0),P(()=>{a(this,F,!1),t(this,w)&&qe(t(this,w),t(this,N))}))}get_effect_pending(){return t(this,W).call(this),ye(t(this,w))}error(e){var s=t(this,T).onerror;let n=t(this,T).failed;if(!s&&!n)throw e;t(this,b)&&(G(t(this,b)),a(this,b,null)),t(this,_)&&(G(t(this,_)),a(this,_,null)),t(this,E)&&(G(t(this,E)),a(this,E,null)),C&&(L(t(this,B)),Pe(),L(Ve()));var o=!1,r=!1;const u=()=>{if(o){$e();return}o=!0,r&&ze(),t(this,E)!==null&&Z(t(this,E),()=>{a(this,E,null)}),l(this,f,z).call(this,()=>{X.ensure(),l(this,f,se).call(this)})};P(()=>{try{r=!0,s==null||s(e,u),r=!1}catch(d){pe(d,t(this,m)&&t(this,m).parent)}n&&a(this,E,l(this,f,z).call(this,()=>{X.ensure();try{return k(()=>{var d=Y;d.b=this,d.f|=oe,n(t(this,c),()=>e,()=>u)})}catch(d){return pe(d,t(this,m).parent),null}}))})}}c=new WeakMap,B=new WeakMap,T=new WeakMap,S=new WeakMap,m=new WeakMap,b=new WeakMap,_=new WeakMap,E=new WeakMap,R=new WeakMap,N=new WeakMap,D=new WeakMap,F=new WeakMap,O=new WeakMap,x=new WeakMap,w=new WeakMap,W=new WeakMap,f=new WeakSet,Te=function(){try{a(this,b,k(()=>t(this,S).call(this,t(this,c))))}catch(e){this.error(e)}},Re=function(){const e=t(this,T).pending;e&&(this.is_pending=!0,a(this,_,k(()=>e(t(this,c)))),P(()=>{var s=a(this,R,document.createDocumentFragment()),n=be();s.append(n),a(this,b,l(this,f,z).call(this,()=>(X.ensure(),k(()=>t(this,S).call(this,n))))),t(this,D)===0&&(t(this,c).before(s),a(this,R,null),Z(t(this,_),()=>{a(this,_,null)}),l(this,f,V).call(this))}))},se=function(){try{if(this.is_pending=this.has_pending_snippet(),a(this,D,0),a(this,N,0),a(this,b,k(()=>{t(this,S).call(this,t(this,c))})),t(this,D)>0){var e=a(this,R,document.createDocumentFragment());Ye(t(this,b),e);const s=t(this,T).pending;a(this,_,k(()=>s(t(this,c))))}else l(this,f,V).call(this)}catch(s){this.error(s)}},V=function(){this.is_pending=!1;for(const e of t(this,O))le(e,Me),_e(e);for(const e of t(this,x))le(e,Be),_e(e);t(this,O).clear(),t(this,x).clear()},z=function(e){var s=Y,n=He,o=M;de(t(this,m)),ce(t(this,m)),ue(t(this,m).ctx);try{return e()}catch(r){return je(r),null}finally{de(s),ce(n),ue(o)}},ie=function(e){var s;if(!this.has_pending_snippet()){this.parent&&l(s=this.parent,f,ie).call(s,e);return}a(this,D,t(this,D)+e),t(this,D)===0&&(l(this,f,V).call(this),t(this,_)&&Z(t(this,_),()=>{a(this,_,null)}),t(this,R)&&(t(this,c).before(t(this,R)),a(this,R,null)))};function Ct(i,e){var s=e==null?"":typeof e=="object"?e+"":e;s!==(i.__t??(i.__t=i.nodeValue))&&(i.__t=s,i.nodeValue=s+"")}function we(i,e){return De(i,e)}function Et(i,e){ee(),e.intro=e.intro??!1;const s=e.target,n=C,o=A;try{for(var r=Je(s);r&&(r.nodeType!==Ee||r.data!==Ke);)r=Qe(r);if(!r)throw te;H(!0),L(r);const u=De(i,{...e,anchor:r});return H(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
|
|
`).some(d=>d.startsWith("https://svelte.dev/e/")))throw u;return u!==te&&console.warn("Failed to hydrate: ",u),e.recover===!1&&Ue(),ee(),Xe(s),H(!1),we(i,e)}finally{H(n),L(o)}}const q=new Map;function De(i,{target:e,anchor:s,props:n={},events:o,context:r,intro:u=!0}){ee();var d=void 0,Ae=Ze(()=>{var I=s??e.appendChild(be());mt(I,{pending:()=>{}},p=>{st({});var g=M;if(r&&(g.c=r),o&&(n.$$events=o),C&&it(p,null),d=i(p,n)||{},C&&(Y.nodes.end=A,A===null||A.nodeType!==Ee||A.data!==at))throw nt(),te;rt()});var $=new Set,J=p=>{for(var g=0;g<p.length;g++){var v=p[g];if(!$.has(v)){$.add(v);var j=tt(v);for(const K of[e,document]){var y=q.get(K);y===void 0&&(y=new Map,q.set(K,y));var re=y.get(v);re===void 0?(K.addEventListener(v,ve,{passive:j}),y.set(v,1)):y.set(v,re+1)}}}};return J(Ge(et)),ge.add(J),()=>{var j;for(var p of $)for(const y of[e,document]){var g=q.get(y),v=g.get(p);--v==0?(y.removeEventListener(p,ve),g.delete(p),g.size===0&&q.delete(y)):g.set(p,v)}ge.delete(J),I!==s&&((j=I.parentNode)==null||j.removeChild(I))}});return ae.set(d,Ae),d}let ae=new WeakMap;function Tt(i,e){const s=ae.get(i);return s?(ae.delete(i),s(e)):Promise.resolve()}function Rt(i){M===null&&ft(),ot&&M.l!==null?wt(M).m.push(i):ht(()=>{const e=ne(i);if(typeof e=="function")return e})}function wt(i){var e=i.l;return e.u??(e.u={a:[],b:[],m:[]})}const St=Object.freeze(Object.defineProperty({__proto__:null,flushSync:_t,getAllContexts:dt,getContext:ct,hasContext:ut,hydrate:Et,mount:we,onMount:Rt,setContext:pt,settled:gt,tick:lt,unmount:Tt,untrack:ne},Symbol.toStringTag,{value:"Module"}));export{St as a,vt as c,Et as h,we as m,Rt as o,Ct as s,Tt as u};
|