@htmlbricks/hb-json-viewer 0.66.0 → 0.66.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/main.iife.js CHANGED
@@ -1,6 +1,6 @@
1
- (function(pn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const jr=1,xr=2,Tr=16,Ar=1,Sr=4,Cr=8,Nr=16,Pr=1,Or=2,gn="[",_t="[!",Bt="]",Je={},S=Symbol(),Rr="http://www.w3.org/1999/xhtml",qt=!1;var mn=Array.isArray,Dr=Array.prototype.indexOf,Vt=Array.from,pt=Object.keys,gt=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,Mr=Object.getOwnPropertyDescriptors,Lr=Object.prototype,Ir=Array.prototype,bn=Object.getPrototypeOf,yn=Object.isExtensible;function Fr(e){for(var t=0;t<e.length;t++)e[t]()}function wn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function Br(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const A=2,Ht=4,Ut=8,me=16,be=32,Se=64,mt=128,ee=512,C=1024,I=2048,ye=4096,V=8192,we=16384,bt=32768,Ge=65536,$n=1<<17,En=1<<18,Le=1<<19,qr=1<<20,Ie=32768,Yt=1<<21,zt=1<<22,Ce=1<<23,yt=Symbol("$state"),kn=Symbol("legacy props"),Vr=Symbol(""),Ke=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Wt=3,Xe=8;function Hr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ur(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Yr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function zr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Wr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Jr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Gr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Kr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Xr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Zr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Qr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function wt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ei(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let b=!1;function $e(e){b=e}let y;function F(e){if(e===null)throw wt(),Je;return y=e}function it(){return F(le(y))}function Y(e){if(b){if(le(y)!==null)throw wt(),Je;y=e}}function st(e=1){if(b){for(var t=e,n=y;t--;)n=le(n);y=n}}function $t(e=!0){for(var t=0,n=y;;){if(n.nodeType===Xe){var r=n.data;if(r===Bt){if(t===0)return n;t-=1}else(r===gn||r===_t)&&(t+=1)}var i=le(n);e&&n.remove(),n=i}}function jn(e){if(!e||e.nodeType!==Xe)throw wt(),Je;return e.data}function xn(e){return e===this.v}function ti(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Tn(e){return!ti(e,this.v)}let ni=!1,z=null;function Ze(e){z=e}function Jt(e,t=!1,n){z={p:z,i:!1,c:null,e:null,s:e,x:null,l:null}}function Gt(e){var t=z,n=t.e;if(n!==null){t.e=null;for(var r of n)Gn(r)}return e!==void 0&&(t.x=e),t.i=!0,z=t.p,e??{}}function An(){return!0}let Fe=[];function Sn(){var e=Fe;Fe=[],Fr(e)}function Kt(e){if(Fe.length===0&&!at){var t=Fe;queueMicrotask(()=>{t===Fe&&Sn()})}Fe.push(e)}function ri(){for(;Fe.length>0;)Sn()}function Cn(e){var t=g;if(t===null)return p.f|=Ce,e;if((t.f&bt)===0){if((t.f&mt)===0)throw e;t.b.error(e)}else Qe(e,t)}function Qe(e,t){for(;t!==null;){if((t.f&mt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Et=new Set;let k=null,W=null,J=[],kt=null,Xt=!1,at=!1;class te{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#o=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){J=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#a(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects)):(k=null,Pn(n.render_effects),Pn(n.effects),this.#o?.resolve()),W=null}#a(t,n){t.f^=C;for(var r=t.first;r!==null;){var i=r.f,s=(i&(be|Se))!==0,a=s&&(i&C)!==0,l=a||(i&V)!==0||this.skipped_effects.has(r);if((r.f&mt)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){s?r.f^=C:(i&Ht)!==0?n.effects.push(r):ct(r)&&((r.f&me)!==0&&n.block_effects.push(r),dt(r));var o=r.first;if(o!==null){r=o;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)f===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects),n=n.parent),r=f.next,f=f.parent}}#l(t){for(const n of t)((n.f&I)!==0?this.#s:this.#i).push(n),this.#f(n.deps),N(n,C)}#f(t){if(t!==null)for(const n of t)(n.f&A)===0||(n.f&Ie)===0||(n.f^=Ie,this.#f(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&Ce)===0&&(this.current.set(t,t.v),W?.set(t,t.v))}activate(){k=this,this.apply()}deactivate(){k===this&&(k=null,W=null)}flush(){if(this.activate(),J.length>0){if(Nn(),k!==null&&k!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(Et.size>1){this.previous.clear();var t=W,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Et){if(s===this){n=!1;continue}const a=[];for(const[o,f]of this.current){if(s.current.has(o))if(n&&f!==s.current.get(o))s.current.set(o,f);else continue;a.push(o)}if(a.length===0)continue;const l=[...s.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){var i=J;J=[];const o=new Set,f=new Map;for(const u of a)On(u,l,o,f);if(J.length>0){k=s,s.apply();for(const u of J)s.#a(u,r);s.deactivate()}J=i}}k=null,W=t}this.committed=!0,Et.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#s)N(t,I),Be(t);for(const t of this.#i)N(t,ye),Be(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#o??=wn()).promise}static ensure(){if(k===null){const t=k=new te;Et.add(k),at||te.enqueue(()=>{k===t&&t.flush()})}return k}static enqueue(t){Kt(t)}apply(){}}function Ee(e){var t=at;at=!0;try{for(var n;;){if(ri(),J.length===0&&(k?.flush(),J.length===0))return kt=null,n;Nn()}}finally{at=t}}function Nn(){var e=Pe;Xt=!0;var t=null;try{var n=0;for(St(!0);J.length>0;){var r=te.ensure();if(n++>1e3){var i,s;ii()}r.process(J),Ne.clear()}}finally{Xt=!1,St(e),kt=null}}function ii(){try{Wr()}catch(e){Qe(e,kt)}}let ke=null;function Pn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(we|V))===0&&ct(r)&&(ke=new Set,dt(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Qn(r):r.fn=null),ke?.size>0)){Ne.clear();for(const i of ke){if((i.f&(we|V))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)ke.has(a)&&(ke.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const o=s[l];(o.f&(we|V))===0&&dt(o)}}ke.clear()}}ke=null}}function On(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&A)!==0?On(i,t,n,r):(s&(zt|me))!==0&&(s&I)===0&&Rn(i,t,r)&&(N(i,I),Be(i))}}function Rn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&A)!==0&&Rn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Be(e){for(var t=kt=e;t.parent!==null;){t=t.parent;var n=t.f;if(Xt&&t===g&&(n&me)!==0&&(n&En)===0)return;if((n&(Se|be))!==0){if((n&C)===0)return;t.f^=C}}J.push(t)}function si(e){let t=0,n=qe(0),r;return()=>{Tt()&&(w(n),Kn(()=>(t===0&&(r=dr(()=>e(()=>ot(n)))),t+=1,()=>{Kt(()=>{t-=1,t===0&&(r?.(),r=void 0,ot(n))})})))}}var ai=Ge|Le|mt;function li(e,t,n){new oi(e,t,n)}class oi{parent;#t=!1;#e;#n=b?y:null;#r;#o;#s;#i=null;#a=null;#l=null;#f=null;#u=null;#c=0;#d=0;#h=!1;#v=null;#b=si(()=>(this.#v=qe(this.#c),()=>{this.#v=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#o=r,this.parent=g.b,this.#t=!!this.#r.pending,this.#s=rn(()=>{if(g.b=this,b){const s=this.#n;it(),s.nodeType===Xe&&s.data===_t?this.#w():this.#y()}else{var i=this.#g();try{this.#i=K(()=>r(i))}catch(s){this.error(s)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},ai),b&&(this.#e=y)}#y(){try{this.#i=K(()=>this.#o(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#r.pending;t&&(this.#a=K(()=>t(this.#e)),te.enqueue(()=>{var n=this.#g();this.#i=this.#_(()=>(te.ensure(),K(()=>this.#o(n)))),this.#d>0?this.#p():(et(this.#a,()=>{this.#a=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=G(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=g,r=p,i=z;ce(this.#s),B(this.#s),Ze(this.#s.ctx);try{return t()}catch(s){return Cn(s),null}finally{ce(n),B(r),Ze(i)}}#p(){const t=this.#r.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),nr(this.#i,this.#f)),this.#a===null&&(this.#a=K(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#a&&et(this.#a,()=>{this.#a=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#v&&lt(this.#v,this.#c)}get_effect_pending(){return this.#b(),w(this.#v)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#h||!n&&!r)throw t;this.#i&&(R(this.#i),this.#i=null),this.#a&&(R(this.#a),this.#a=null),this.#l&&(R(this.#l),this.#l=null),b&&(F(this.#n),st(),F($t()));var i=!1,s=!1;const a=()=>{if(i){ei();return}i=!0,s&&Qr(),te.ensure(),this.#c=0,this.#l!==null&&et(this.#l,()=>{this.#l=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#h=!1,K(()=>this.#o(this.#e)))),this.#d>0?this.#p():this.#t=!1};var l=p;try{B(null),s=!0,n?.(t,a),s=!1}catch(o){Qe(o,this.#s&&this.#s.parent)}finally{B(l)}r&&Kt(()=>{this.#l=this.#_(()=>{te.ensure(),this.#h=!0;try{return K(()=>{r(this.#e,()=>t,()=>a)})}catch(o){return Qe(o,this.#s.parent),null}finally{this.#h=!1}})})}}function fi(e,t){return t}function ui(e,t,n){for(var r=[],i=t.length,s=0;s<i;s++)sn(t[s].e,r,!0);er(r,()=>{var a=r.length===0&&n!==null;if(a){var l=n,o=l.parentNode;Yn(o),o.append(l),e.items.clear(),ae(e,t[0].prev,t[i-1].next)}for(var f=0;f<i;f++){var u=t[f];a||(e.items.delete(u.k),ae(e,u.prev,u.next)),R(u.e,!a)}e.first===t[0]&&(e.first=t[0].prev)})}function ci(e,t,n,r,i,s=null){var a=e,l=new Map,o=null;{var f=e;a=b?F(He(f)):f.appendChild(G())}b&&it();var u=null,c=Dn(()=>{var j=n();return mn(j)?j:j==null?[]:Vt(j)}),d,v=!0;function _(){di(x,d,a,t,r),u!==null&&(d.length===0?(u.fragment?(a.before(u.fragment),u.fragment=null):an(u.effect),m.first=u.effect):et(u.effect,()=>{u=null}))}var m=rn(()=>{d=w(c);var j=d.length;let $=!1;if(b){var M=jn(a)===_t;M!==(j===0)&&(a=$t(),F(a),$e(!1),$=!0)}for(var L=new Set,U=k,Re=null,xe=zn(),ve=0;ve<j;ve+=1){b&&y.nodeType===Xe&&y.data===Bt&&(a=y,$=!0,$e(!1));var ht=d[ve],We=r(ht,ve),Z=v?null:l.get(We);Z?(lt(Z.v,ht),Z.i=ve,xe&&U.skipped_effects.delete(Z.e)):(Z=vi(v?a:null,Re,ht,We,ve,i,t,n),v&&(Z.o=!0,Re===null?o=Z:Re.next=Z,Re=Z),l.set(We,Z)),L.add(We)}if(j===0&&s&&!u)if(v)u={fragment:null,effect:K(()=>s(a))};else{var Rt=document.createDocumentFragment(),Dt=G();Rt.append(Dt),u={fragment:Rt,effect:K(()=>s(Dt))}}if(b&&j>0&&F($t()),!v)if(xe){for(const[h,T]of l)L.has(h)||U.skipped_effects.add(T.e);U.oncommit(_),U.ondiscard(()=>{})}else _();$&&$e(!0),w(c)}),x={effect:m,items:l,first:o};v=!1,b&&(a=y)}function di(e,t,n,r,i){var s=t.length,a=e.items,l=e.first,o,f=null,u=[],c=[],d,v,_,m;for(m=0;m<s;m+=1){if(d=t[m],v=i(d,m),_=a.get(v),e.first??=_,!_.o){_.o=!0;var x=f?f.next:l;ae(e,f,_),ae(e,_,x),Zt(_,x,n),f=_,u=[],c=[],l=f.next;continue}if((_.e.f&V)!==0&&an(_.e),_!==l){if(o!==void 0&&o.has(_)){if(u.length<c.length){var j=c[0],$;f=j.prev;var M=u[0],L=u[u.length-1];for($=0;$<u.length;$+=1)Zt(u[$],j,n);for($=0;$<c.length;$+=1)o.delete(c[$]);ae(e,M.prev,L.next),ae(e,f,M),ae(e,L,j),l=j,f=L,m-=1,u=[],c=[]}else o.delete(_),Zt(_,l,n),ae(e,_.prev,_.next),ae(e,_,f===null?e.first:f.next),ae(e,f,_),f=_;continue}for(u=[],c=[];l!==null&&l.k!==v;)(l.e.f&V)===0&&(o??=new Set).add(l),c.push(l),l=l.next;if(l===null)continue;_=l}u.push(_),f=_,l=_.next}if(l!==null||o!==void 0){for(var U=o===void 0?[]:Vt(o);l!==null;)(l.e.f&V)===0&&U.push(l),l=l.next;var Re=U.length;if(Re>0){var xe=s===0?n:null;ui(e,U,xe)}}}function vi(e,t,n,r,i,s,a,l){var o=(a&jr)!==0,f=(a&Tr)===0,u=o?f?Fn(n,!1,!1):qe(n):n,c=(a&xr)===0?i:qe(i),d={i:c,v:u,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var v=document.createDocumentFragment();v.append(e=G())}return d.e=K(()=>s(e,u,c,l)),t!==null&&(t.next=d),d}finally{}}function Zt(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,s=e.e.nodes_start;s!==null&&s!==r;){var a=le(s);i.before(s),s=a}}function ae(e,t,n){t===null?(e.first=n,e.effect.first=n&&n.e):(t.e.next&&(t.e.next.prev=null),t.next=n,t.e.next=n&&n.e),n===null?e.effect.last=t&&t.e:(n.e.prev&&(n.e.prev.next=null),n.prev=t,n.e.prev=t&&t.e)}function hi(e,t,n,r){const i=xt;if(n.length===0&&e.length===0){r(t.map(i));return}var s=k,a=g,l=_i();function o(){Promise.all(n.map(f=>pi(f))).then(f=>{l();try{r([...t.map(i),...f])}catch(u){(a.f&we)===0&&Qe(u,a)}s?.deactivate(),jt()}).catch(f=>{Qe(f,a)})}e.length>0?Promise.all(e).then(()=>{l();try{return o()}finally{s?.deactivate(),jt()}}):o()}function _i(){var e=g,t=p,n=z,r=k;return function(s=!0){ce(e),B(t),Ze(n),s&&r?.activate()}}function jt(){ce(null),B(null),Ze(null)}function xt(e){var t=A|I,n=p!==null&&(p.f&A)!==0?p:null;return g!==null&&(g.f|=Le),{ctx:z,deps:null,effects:null,equals:xn,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??g,ac:null}}function pi(e,t){let n=g;n===null&&Hr();var r=n.b,i=void 0,s=qe(S),a=!p,l=new Map;return ji(()=>{var o=wn();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{f===k&&f.committed&&f.deactivate(),jt()})}catch(d){o.reject(d),jt()}var f=k;if(a){var u=!r.is_pending();r.update_pending_count(1),f.increment(u),l.get(f)?.reject(Ke),l.delete(f),l.set(f,o)}const c=(d,v=void 0)=>{if(f.activate(),v)v!==Ke&&(s.f|=Ce,lt(s,v));else{(s.f&Ce)!==0&&(s.f^=Ce),lt(s,d);for(const[_,m]of l){if(l.delete(_),_===f)break;m.reject(Ke)}}a&&(r.update_pending_count(-1),f.decrement(u))};o.promise.then(c,d=>c(null,d||"unknown"))}),wi(()=>{for(const o of l.values())o.reject(Ke)}),new Promise(o=>{function f(u){function c(){u===i?o(s):f(i)}u.then(c,c)}f(i)})}function Qt(e){const t=xt(e);return ir(t),t}function Dn(e){const t=xt(e);return t.equals=Tn,t}function Mn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)R(t[n])}}function gi(e){for(var t=e.parent;t!==null;){if((t.f&A)===0)return(t.f&we)===0?t:null;t=t.parent}return null}function en(e){var t,n=g;ce(gi(e));try{e.f&=~Ie,Mn(e),t=fr(e)}finally{ce(n)}return t}function Ln(e){var t=en(e);if(e.equals(t)||(k?.is_fork||(e.v=t),e.wv=lr()),!Ue)if(W!==null)Tt()&&W.set(e,t);else{var n=(e.f&ee)===0?ye:C;N(e,n)}}let tn=new Set;const Ne=new Map;let In=!1;function qe(e,t){var n={f:0,v:e,reactions:null,equals:xn,rv:0,wv:0};return n}function ne(e,t){const n=qe(e);return ir(n),n}function Fn(e,t=!1,n=!0){const r=qe(e);return t||(r.equals=Tn),r}function O(e,t,n=!1){p!==null&&(!ue||(p.f&$n)!==0)&&An()&&(p.f&(A|me|zt|$n))!==0&&!je?.includes(e)&&Zr();let r=n?Ve(t):t;return lt(e,r)}function lt(e,t){if(!e.equals(t)){var n=e.v;Ue?Ne.set(e,t):Ne.set(e,n),e.v=t;var r=te.ensure();r.capture(e,n),(e.f&A)!==0&&((e.f&I)!==0&&en(e),N(e,(e.f&ee)!==0?C:ye)),e.wv=lr(),Bn(e,I),g!==null&&(g.f&C)!==0&&(g.f&(be|Se))===0&&(X===null?Ai([e]):X.push(e)),!r.is_fork&&tn.size>0&&!In&&mi()}return t}function mi(){In=!1;var e=Pe;St(!0);const t=Array.from(tn);try{for(const n of t)(n.f&C)!==0&&N(n,ye),ct(n)&&dt(n)}finally{St(e)}tn.clear()}function ot(e){O(e,e.v+1)}function Bn(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],a=s.f,l=(a&I)===0;if(l&&N(s,t),(a&A)!==0){var o=s;W?.delete(o),(a&Ie)===0&&(a&ee&&(s.f|=Ie),Bn(o,ye))}else l&&((a&me)!==0&&ke!==null&&ke.add(s),Be(s))}}function Ve(e){if(typeof e!="object"||e===null||yt in e)return e;const t=bn(e);if(t!==Lr&&t!==Ir)return e;var n=new Map,r=mn(e),i=ne(0),s=Ye,a=l=>{if(Ye===s)return l();var o=p,f=Ye;B(null),ar(s);var u=l();return B(o),ar(f),u};return r&&n.set("length",ne(e.length)),new Proxy(e,{defineProperty(l,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Kr();var u=n.get(o);return u===void 0?u=a(()=>{var c=ne(f.value);return n.set(o,c),c}):O(u,f.value,!0),!0},deleteProperty(l,o){var f=n.get(o);if(f===void 0){if(o in l){const u=a(()=>ne(S));n.set(o,u),ot(i)}}else O(f,S),ot(i);return!0},get(l,o,f){if(o===yt)return e;var u=n.get(o),c=o in l;if(u===void 0&&(!c||Me(l,o)?.writable)&&(u=a(()=>{var v=Ve(c?l[o]:S),_=ne(v);return _}),n.set(o,u)),u!==void 0){var d=w(u);return d===S?void 0:d}return Reflect.get(l,o,f)},getOwnPropertyDescriptor(l,o){var f=Reflect.getOwnPropertyDescriptor(l,o);if(f&&"value"in f){var u=n.get(o);u&&(f.value=w(u))}else if(f===void 0){var c=n.get(o),d=c?.v;if(c!==void 0&&d!==S)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(l,o){if(o===yt)return!0;var f=n.get(o),u=f!==void 0&&f.v!==S||Reflect.has(l,o);if(f!==void 0||g!==null&&(!u||Me(l,o)?.writable)){f===void 0&&(f=a(()=>{var d=u?Ve(l[o]):S,v=ne(d);return v}),n.set(o,f));var c=w(f);if(c===S)return!1}return u},set(l,o,f,u){var c=n.get(o),d=o in l;if(r&&o==="length")for(var v=f;v<c.v;v+=1){var _=n.get(v+"");_!==void 0?O(_,S):v in l&&(_=a(()=>ne(S)),n.set(v+"",_))}if(c===void 0)(!d||Me(l,o)?.writable)&&(c=a(()=>ne(void 0)),O(c,Ve(f)),n.set(o,c));else{d=c.v!==S;var m=a(()=>Ve(f));O(c,m)}var x=Reflect.getOwnPropertyDescriptor(l,o);if(x?.set&&x.set.call(u,f),!d){if(r&&typeof o=="string"){var j=n.get("length"),$=Number(o);Number.isInteger($)&&$>=j.v&&O(j,$+1)}ot(i)}return!0},ownKeys(l){w(i);var o=Reflect.ownKeys(l).filter(c=>{var d=n.get(c);return d===void 0||d.v!==S});for(var[f,u]of n)u.v!==S&&!(f in l)&&o.push(f);return o},setPrototypeOf(){Xr()}})}var qn,Vn,Hn,Un;function nn(){if(qn===void 0){qn=window,Vn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Hn=Me(t,"firstChild").get,Un=Me(t,"nextSibling").get,yn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),yn(n)&&(n.__t=void 0)}}function G(e=""){return document.createTextNode(e)}function He(e){return Hn.call(e)}function le(e){return Un.call(e)}function re(e,t){if(!b)return He(e);var n=He(y);if(n===null)n=y.appendChild(G());else if(t&&n.nodeType!==Wt){var r=G();return n?.before(r),F(r),r}return F(n),n}function ft(e,t=!1){if(!b){var n=He(e);return n instanceof Comment&&n.data===""?le(n):n}if(t&&y?.nodeType!==Wt){var r=G();return y?.before(r),F(r),r}return y}function oe(e,t=1,n=!1){let r=b?y:e;for(var i;t--;)i=r,r=le(r);if(!b)return r;if(n&&r?.nodeType!==Wt){var s=G();return r===null?i?.after(s):r.before(s),F(s),s}return F(r),r}function Yn(e){e.textContent=""}function zn(){return!1}function Wn(e){var t=p,n=g;B(null),ce(null);try{return e()}finally{B(t),ce(n)}}function bi(e){g===null&&(p===null&&zr(),Yr()),Ue&&Ur()}function yi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function fe(e,t,n){var r=g;r!==null&&(r.f&V)!==0&&(e|=V);var i={ctx:z,deps:null,nodes_start:null,nodes_end:null,f:e|I|ee,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{dt(i),i.f|=bt}catch(l){throw R(i),l}else t!==null&&Be(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&Le)===0&&(s=s.first,(e&me)!==0&&(e&Ge)!==0&&s!==null&&(s.f|=Ge)),s!==null&&(s.parent=r,r!==null&&yi(s,r),p!==null&&(p.f&A)!==0&&(e&Se)===0)){var a=p;(a.effects??=[]).push(s)}return i}function Tt(){return p!==null&&!ue}function wi(e){const t=fe(Ut,null,!1);return N(t,C),t.teardown=e,t}function Jn(e){bi();var t=g.f,n=!p&&(t&be)!==0&&(t&bt)===0;if(n){var r=z;(r.e??=[]).push(e)}else return Gn(e)}function Gn(e){return fe(Ht|qr,e,!1)}function $i(e){te.ensure();const t=fe(Se|Le,e,!0);return()=>{R(t)}}function Ei(e){te.ensure();const t=fe(Se|Le,e,!0);return(n={})=>new Promise(r=>{n.outro?et(t,()=>{R(t),r(void 0)}):(R(t),r(void 0))})}function ki(e){return fe(Ht,e,!1)}function ji(e){return fe(zt|Le,e,!0)}function Kn(e,t=0){return fe(Ut|t,e,!0)}function At(e,t=[],n=[],r=[]){hi(r,t,n,i=>{fe(Ut,()=>e(...i.map(w)),!0)})}function rn(e,t=0){var n=fe(me|t,e,!0);return n}function K(e){return fe(be|Le,e,!0)}function Xn(e){var t=e.teardown;if(t!==null){const n=Ue,r=p;rr(!0),B(null);try{t.call(null)}finally{rr(n),B(r)}}}function Zn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Wn(()=>{i.abort(Ke)});var r=n.next;(n.f&Se)!==0?n.parent=null:R(n,t),n=r}}function xi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&be)===0&&R(t),t=n}}function R(e,t=!0){var n=!1;(t||(e.f&En)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Ti(e.nodes_start,e.nodes_end),n=!0),Zn(e,t&&!n),Ct(e,0),N(e,we);var r=e.transitions;if(r!==null)for(const s of r)s.stop();Xn(e);var i=e.parent;i!==null&&i.first!==null&&Qn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Ti(e,t){for(;e!==null;){var n=e===t?null:le(e);e.remove(),e=n}}function Qn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function et(e,t,n=!0){var r=[];sn(e,r,!0),er(r,()=>{n&&R(e),t&&t()})}function er(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function sn(e,t,n){if((e.f&V)===0){if(e.f^=V,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Ge)!==0||(r.f&be)!==0&&(e.f&me)!==0;sn(r,t,s?n:!1),r=i}}}function an(e){tr(e,!0)}function tr(e,t){if((e.f&V)!==0){e.f^=V,(e.f&C)===0&&(N(e,I),Be(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Ge)!==0||(n.f&be)!==0;tr(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function nr(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:le(n);t.append(n),n=i}}let Pe=!1;function St(e){Pe=e}let Ue=!1;function rr(e){Ue=e}let p=null,ue=!1;function B(e){p=e}let g=null;function ce(e){g=e}let je=null;function ir(e){p!==null&&(je===null?je=[e]:je.push(e))}let D=null,H=0,X=null;function Ai(e){X=e}let sr=1,ut=0,Ye=ut;function ar(e){Ye=e}function lr(){return++sr}function ct(e){var t=e.f;if((t&I)!==0)return!0;if(t&A&&(e.f&=~Ie),(t&ye)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(ct(s)&&Ln(s),s.wv>e.wv)return!0}(t&ee)!==0&&W===null&&N(e,C)}return!1}function or(e,t,n=!0){var r=e.reactions;if(r!==null&&!je?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&A)!==0?or(s,t,!1):t===s&&(n?N(s,I):(s.f&C)!==0&&N(s,ye),Be(s))}}function fr(e){var t=D,n=H,r=X,i=p,s=je,a=z,l=ue,o=Ye,f=e.f;D=null,H=0,X=null,p=(f&(be|Se))===0?e:null,je=null,Ze(e.ctx),ue=!1,Ye=++ut,e.ac!==null&&(Wn(()=>{e.ac.abort(Ke)}),e.ac=null);try{e.f|=Yt;var u=e.fn,c=u(),d=e.deps;if(D!==null){var v;if(Ct(e,H),d!==null&&H>0)for(d.length=H+D.length,v=0;v<D.length;v++)d[H+v]=D[v];else e.deps=d=D;if(Pe&&Tt()&&(e.f&ee)!==0)for(v=H;v<d.length;v++)(d[v].reactions??=[]).push(e)}else d!==null&&H<d.length&&(Ct(e,H),d.length=H);if(An()&&X!==null&&!ue&&d!==null&&(e.f&(A|ye|I))===0)for(v=0;v<X.length;v++)or(X[v],e);return i!==null&&i!==e&&(ut++,X!==null&&(r===null?r=X:r.push(...X))),(e.f&Ce)!==0&&(e.f^=Ce),c}catch(_){return Cn(_)}finally{e.f^=Yt,D=t,H=n,X=r,p=i,je=s,Ze(a),ue=l,Ye=o}}function Si(e,t){let n=t.reactions;if(n!==null){var r=Dr.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&A)!==0&&(D===null||!D.includes(t))&&(N(t,ye),(t.f&ee)!==0&&(t.f^=ee,t.f&=~Ie),Mn(t),Ct(t,0))}function Ct(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Si(e,n[r])}function dt(e){var t=e.f;if((t&we)===0){N(e,C);var n=g,r=Pe;g=e,Pe=!0;try{(t&me)!==0?xi(e):Zn(e),Xn(e);var i=fr(e);e.teardown=typeof i=="function"?i:null,e.wv=sr;var s;qt&&ni&&(e.f&I)!==0&&e.deps}finally{Pe=r,g=n}}}function w(e){var t=e.f,n=(t&A)!==0;if(p!==null&&!ue){var r=g!==null&&(g.f&we)!==0;if(!r&&!je?.includes(e)){var i=p.deps;if((p.f&Yt)!==0)e.rv<ut&&(e.rv=ut,D===null&&i!==null&&i[H]===e?H++:D===null?D=[e]:D.includes(e)||D.push(e));else{(p.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[p]:s.includes(p)||s.push(p)}}}if(Ue){if(Ne.has(e))return Ne.get(e);if(n){var a=e,l=a.v;return((a.f&C)===0&&a.reactions!==null||cr(a))&&(l=en(a)),Ne.set(a,l),l}}else n&&!W?.has(e)&&(a=e,ct(a)&&Ln(a),Pe&&Tt()&&(a.f&ee)===0&&ur(a));if(W?.has(e))return W.get(e);if((e.f&Ce)!==0)throw e.v;return e.v}function ur(e){if(e.deps!==null){e.f^=ee;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&A)!==0&&(t.f&ee)===0&&ur(t)}}function cr(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ne.has(t)||(t.f&A)!==0&&cr(t))return!0;return!1}function dr(e){var t=ue;try{return ue=!0,e()}finally{ue=t}}const Ci=-7169;function N(e,t){e.f=e.f&Ci|t}const vr=new Set,ln=new Set;function Ni(e){for(var t=0;t<e.length;t++)vr.add(e[t]);for(var n of ln)n(e)}let hr=null;function Nt(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;hr=e;var a=0,l=hr===e&&e.__root;if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;o<=f&&(a=o)}if(s=i[a]||e.target,s!==t){gt(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=p,c=g;B(null),ce(null);try{for(var d,v=[];s!==null;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var m=s["__"+r];m!=null&&(!s.disabled||e.target===s)&&m.call(s,e)}catch(x){d?v.push(x):d=x}if(e.cancelBubble||_===t||_===null)break;s=_}if(d){for(let x of v)queueMicrotask(()=>{throw x});throw d}}finally{e.__root=t,delete e.currentTarget,B(u),ce(c)}}}function Pi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function tt(e,t){var n=g;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function q(e,t){var n=(t&Pr)!==0,r=(t&Or)!==0,i,s=!e.startsWith("<!>");return()=>{if(b)return tt(y,null),y;i===void 0&&(i=Pi(s?e:"<!>"+e),n||(i=He(i)));var a=r||Vn?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=He(a),o=a.lastChild;tt(l,o)}else tt(a,a);return a}}function Oi(){if(b)return tt(y,null),y;var e=document.createDocumentFragment(),t=document.createComment(""),n=G();return e.append(t,n),tt(t,n),e}function P(e,t){if(b){var n=g;((n.f&bt)===0||n.nodes_end===null)&&(n.nodes_end=y),it();return}e!==null&&e.before(t)}const Ri=["touchstart","touchmove"];function Di(e){return Ri.includes(e)}function vt(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function _r(e,t){return pr(e,t)}function Mi(e,t){nn(),t.intro=t.intro??!1;const n=t.target,r=b,i=y;try{for(var s=He(n);s&&(s.nodeType!==Xe||s.data!==gn);)s=le(s);if(!s)throw Je;$e(!0),F(s);const a=pr(e,{...t,anchor:s});return $e(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Je&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Jr(),nn(),Yn(n),$e(!1),_r(e,t)}finally{$e(r),F(i)}}const nt=new Map;function pr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0}){nn();var l=new Set,o=c=>{for(var d=0;d<c.length;d++){var v=c[d];if(!l.has(v)){l.add(v);var _=Di(v);t.addEventListener(v,Nt,{passive:_});var m=nt.get(v);m===void 0?(document.addEventListener(v,Nt,{passive:_}),nt.set(v,1)):nt.set(v,m+1)}}};o(Vt(vr)),ln.add(o);var f=void 0,u=Ei(()=>{var c=n??t.appendChild(G());return li(c,{pending:()=>{}},d=>{if(s){Jt({});var v=z;v.c=s}if(i&&(r.$$events=i),b&&tt(d,null),f=e(d,r)||{},b&&(g.nodes_end=y,y===null||y.nodeType!==Xe||y.data!==Bt))throw wt(),Je;s&&Gt()}),()=>{for(var d of l){t.removeEventListener(d,Nt);var v=nt.get(d);--v===0?(document.removeEventListener(d,Nt),nt.delete(d)):nt.set(d,v)}ln.delete(o),c!==n&&c.parentNode?.removeChild(c)}});return on.set(f,u),f}let on=new WeakMap;function Li(e,t){const n=on.get(e);return n?(on.delete(e),n(t)):Promise.resolve()}class Ii{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#o=!0;constructor(t,n=!0){this.anchor=t,this.#o=n}#s=()=>{var t=k;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)an(r),this.#r.delete(n);else{var i=this.#n.get(n);i&&(this.#e.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,a]of this.#t){if(this.#t.delete(s),s===t)break;const l=this.#n.get(a);l&&(R(l.effect),this.#n.delete(a))}for(const[s,a]of this.#e){if(s===n||this.#r.has(s))continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();nr(a,f),f.append(G()),this.#n.set(s,{effect:a,fragment:f})}else R(a);this.#r.delete(s),this.#e.delete(s)};this.#o||!r?(this.#r.add(s),et(a,l,!1)):l()}}};#i=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#n)n.includes(r)||(R(i.effect),this.#n.delete(r))};ensure(t,n){var r=k,i=zn();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),a=G();s.append(a),this.#n.set(t,{effect:K(()=>n(a)),fragment:s})}else this.#e.set(t,K(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[l,o]of this.#e)l===t?r.skipped_effects.delete(o):r.skipped_effects.add(o);for(const[l,o]of this.#n)l===t?r.skipped_effects.delete(o.effect):r.skipped_effects.add(o.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else b&&(this.anchor=y),this.#s()}}function de(e,t,n=!1){b&&it();var r=new Ii(e),i=n?Ge:0;function s(a,l){if(b){const f=jn(e)===_t;if(a===f){var o=$t();F(o),r.anchor=o,$e(!1),r.ensure(a,l),$e(!0);return}}r.ensure(a,l)}rn(()=>{var a=!1;t((l,o=!0)=>{a=!0,s(o,l)}),a||s(!1,null)},i)}function Fi(e,t,n,r,i){b&&it();var s=t.$$slots?.[n],a=!1;s===!0&&(s=t.children,a=!0),s===void 0||s(e,a?()=>r:r)}function gr(e,t){ki(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Bi(e,t,n){var r=e==null?"":""+e;return r=r?r+" "+t:t,r===""?null:r}function qi(e,t,n,r,i,s){var a=e.__className;if(b||a!==n||a===void 0){var l=Bi(n,r);(!b||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}const Vi=Symbol("is custom element"),Hi=Symbol("is html");function mr(e,t,n,r){var i=Ui(e);b&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Vr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Yi(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ui(e){return e.__attributes??={[Vi]:e.nodeName.includes("-"),[Hi]:e.namespaceURI===Rr}}var br=new Map;function Yi(e){var t=e.getAttribute("is")||e.nodeName,n=br.get(t);if(n)return n;br.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Mr(i);for(var a in r)r[a].set&&n.push(a);i=bn(i)}return n}let Pt=!1;function zi(e){var t=Pt;try{return Pt=!1,[e(),Pt]}finally{Pt=t}}function Oe(e,t,n,r){var i=(n&Cr)!==0,s=(n&Nr)!==0,a=r,l=!0,o=()=>(l&&(l=!1,a=s?dr(r):r),a),f;if(i){var u=yt in e||kn in e;f=Me(e,t)?.set??(u&&t in e?$=>e[t]=$:void 0)}var c,d=!1;i?[c,d]=zi(()=>e[t]):c=e[t],c===void 0&&r!==void 0&&(c=o(),f&&(Gr(),f(c)));var v;if(v=()=>{var $=e[t];return $===void 0?o():(l=!0,$)},(n&Sr)===0)return v;if(f){var _=e.$$legacy;return(function($,M){return arguments.length>0?((!M||_||d)&&f(M?v():$),$):v()})}var m=!1,x=((n&Ar)!==0?xt:Dn)(()=>(m=!1,v()));i&&w(x);var j=g;return(function($,M){if(arguments.length>0){const L=M?w(x):i?Ve($):$;return O(x,L),m=!0,a!==void 0&&(a=L),$}return Ue&&m||(j.f&we)!==0?x.v:w(x)})}function Wi(e){return new Ji(e)}class Ji{#t;#e;constructor(t){var n=new Map,r=(s,a)=>{var l=Fn(a,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return w(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===kn?!0:(w(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return O(n.get(a)??r(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?Mi:_r)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Ee(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||gt(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Li(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let yr;typeof HTMLElement=="function"&&(yr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),P(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Gi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Ot(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Wi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=$i(()=>{Kn(()=>{this.$$r=!0;for(const r of pt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Ot(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ot(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return pt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ot(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Gi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function wr(e,t,n,r,i,s){let a=class extends yr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return pt(t).map(l=>(t[l].attribute||l).toLowerCase())}};return pt(t).forEach(l=>{gt(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=Ot(l,o,t),this.$$d[l]=o;var f=this.$$c;if(f){var u=Me(f,l)?.get;u?f[l]=o:f.$set({[l]:o})}}})}),r.forEach(l=>{gt(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}var ze={},$r;function Ki(){if($r)return ze;$r=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.LanguageTranslator=void 0,ze.getChildStyleToPass=e,ze.addComponent=t;function e(r,i){var s,a,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(d){return Object.keys(r).includes(d.name)}))===null||a===void 0)&&a.length))for(var o=function(d){var v=i?.filter(function(_){return _.name===d&&_.defaultValue!==r[d]});v&&(l+="".concat(d,":").concat(r[d],";"))},f=0,u=Object.keys(r);f<u.length;f++){var c=u[f];o(c)}}catch(d){console.error("error getting child style to pass",d)}finally{return l}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var a=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(a),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(a)}document.head.appendChild(l)}catch(f){console.warn(f)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,a){return r.formatDate(i,s,a||this.lang)},r.getDefaultLang=function(){var i,s,a,l="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(i,s,a){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((l=s[a])===null||l===void 0)&&l[i]))return s[a][i];var o="",f=r.getDefaultLang();if(!a||f!==a){var u=s?.[f];u?.[i]&&(o=u[i])}return o},r.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||r.getDefaultLang(),s);return l.format(i)},r})();return ze.LanguageTranslator=n,ze}Ki();var Xi=q('<span class="jn-popover svelte-2u2vu2">copied</span>'),Zi=q('<span class="jn-key svelte-2u2vu2" role="button" tabindex="0" title="Copia JSON"> </span><!> <span class="jn-sep svelte-2u2vu2">:</span>',1),Qi=q('<div class="jn-row svelte-2u2vu2"><!> <span> </span></div>'),es=q('<span class="jn-popover svelte-2u2vu2">copied</span>'),ts=q('<span class="jn-key svelte-2u2vu2" role="button" tabindex="0" title="Copia JSON"> </span><!> <span class="jn-sep svelte-2u2vu2">:</span>',1),ns=q('<span class="jn-popover svelte-2u2vu2">copied</span>'),rs=q('<span class="jn-bracket svelte-2u2vu2">[</span>'),is=q('<span class="jn-bracket svelte-2u2vu2"></span>'),ss=q(']<span class="jn-trailing"></span>',1),as=q(' <span class="jn-trailing"></span>',1),ls=q('<div class="jn-children svelte-2u2vu2"></div> <div class="jn-close svelte-2u2vu2"><!></div>',1),os=q('<div class="jn-node svelte-2u2vu2"><div class="jn-header svelte-2u2vu2"><span class="jn-actions svelte-2u2vu2"><button class="jn-btn jn-toggle-btn svelte-2u2vu2"> </button></span> <!> <span class="jn-type svelte-2u2vu2" role="button" tabindex="0" title="Copia JSON"> </span><!> <!></div> <!></div>');const fs={hash:"svelte-2u2vu2",code:`.jn-row.svelte-2u2vu2 {font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
3
- "Liberation Mono", "Courier New", monospace;line-height:1.5;}.jn-node.svelte-2u2vu2 {margin-left:0.75rem;}.jn-header.svelte-2u2vu2 {display:inline-flex;align-items:baseline;gap:0.25rem;}.jn-actions.svelte-2u2vu2 {display:inline-flex;gap:0.25rem;margin-right:0.25rem;}.jn-btn.svelte-2u2vu2 {cursor:pointer;border:1px solid var(--jn-button-border);border-radius:4px;background:transparent;color:inherit;width:1.25rem;height:1.25rem;display:inline-flex;align-items:center;justify-content:center;font-size:0.85rem;line-height:1;padding:0;}.jn-btn.svelte-2u2vu2:hover {background-color:var(--jn-button-hover-bg);}.jn-key.svelte-2u2vu2 {cursor:pointer;}.jn-key.svelte-2u2vu2 {color:var(--jn-key);}.jn-sep.svelte-2u2vu2 {color:var(--jn-sep);}.jn-type.svelte-2u2vu2 {color:var(--jn-type);cursor:pointer;}.jn-popover.svelte-2u2vu2 {display:inline-block;margin-left:0.25rem;padding:0 0.35rem;border-radius:999px;font-size:0.7rem;line-height:1.4;color:var(--jn-popover-text);background-color:var(--jn-popover-bg);border:1px solid var(--jn-popover-border);vertical-align:middle;user-select:none;}.jn-bracket.svelte-2u2vu2 {color:var(--jn-bracket);}.jn-children.svelte-2u2vu2 {margin-left:1rem;border-left:1px dashed var(--jn-children-border);padding-left:0.75rem;}.jn-close.svelte-2u2vu2 {margin-left:0.75rem;color:var(--jn-close);}.jn-string.svelte-2u2vu2 {color:var(--jn-string);}.jn-number.svelte-2u2vu2 {color:var(--jn-number);}.jn-boolean.svelte-2u2vu2 {color:var(--jn-boolean);}.jn-undefined.svelte-2u2vu2 {color:var(--jn-undefined);font-style:italic;}.jn-symbol.svelte-2u2vu2 {color:var(--jn-symbol);}`};function fn(e,t){Jt(t,!0),gr(e,fs);let n=Oe(t,"keyPath",23,()=>[]),r=Oe(t,"value",7),i=Oe(t,"name",7,null),s=Oe(t,"collapsed",7),a=Oe(t,"status",7,"open");const l=h=>h!==null&&typeof h=="object"&&!Array.isArray(h),o=h=>Array.isArray(h),f=h=>!l(h)&&!o(h);function u(h){return h===null?"null":o(h)?`Array(${h.length})`:l(h)?"Object":typeof h}function c(h){return typeof h=="string"?`"${h}"`:h===null?"null":typeof h>"u"?"undefined":typeof h=="bigint"?h.toString()+"n":typeof h=="symbol"?h.toString():String(h)}function d(h){return o(h)?h.map((T,he)=>[he,T]):l(h)?Object.entries(h):[]}function v(h,T){return h==="open"?!1:h==="closed"?!0:T>0}const _=n().length;let m=ne(Ve(s()??v(a(),_)));Jn(()=>{s()===void 0&&O(m,v(a(),_),!0)});function x(){O(m,!w(m))}function j(h){const T=new WeakSet;try{return JSON.stringify(h,(he,ie)=>{if(typeof ie=="object"&&ie!==null){if(T.has(ie))return"[Circular]";T.add(ie)}return ie},2)}catch{return String(h)}}async function $(){const h=j(r());try{navigator.clipboard&&navigator.clipboard.writeText?await navigator.clipboard.writeText(h):console.error("unsupported copying node")}catch(T){console.error("error copying node",T)}}let M=ne(null),L=ne(!1),U=null;function Re(h){O(M,h,!0),O(L,!0),U!==null&&window.clearTimeout(U),U=window.setTimeout(()=>{O(L,!1),O(M,null),U=null},1e3)}async function xe(h){await $(),Re(h)}function ve(h,T){(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),h.stopPropagation(),xe(T))}var ht={get keyPath(){return n()},set keyPath(h=[]){n(h),Ee()},get value(){return r()},set value(h){r(h),Ee()},get name(){return i()},set name(h=null){i(h),Ee()},get collapsed(){return s()},set collapsed(h){s(h),Ee()},get status(){return a()},set status(h="open"){a(h),Ee()}},We=Oi(),Z=ft(We);{var Rt=h=>{var T=Qi(),he=re(T);{var ie=De=>{var Mt=Zi(),se=ft(Mt);se.__click=_e=>{_e.stopPropagation(),xe("key")},se.__keydown=_e=>{_e.stopPropagation(),ve(_e,"key")};var cn=re(se,!0);Y(se);var Lt=oe(se);{var dn=_e=>{var vn=Xi();P(_e,vn)};de(Lt,_e=>{w(L)&&w(M)==="key"&&_e(dn)})}st(2),At(()=>vt(cn,i())),P(De,Mt)};de(he,De=>{i()!==null&&De(ie)})}var Te=oe(he,2),un=re(Te,!0);Y(Te),Y(T),At(De=>{qi(Te,1,`jn-val ${"jn-"+(typeof r()=="string"?"string":typeof r())}`,"svelte-2u2vu2"),vt(un,De)},[()=>c(r())]),P(h,T)},Dt=h=>{var T=os(),he=re(T),ie=re(he),Te=re(ie);Te.__click=E=>{E.stopPropagation(),x()};var un=re(Te,!0);Y(Te),Y(ie);var De=oe(ie,2);{var Mt=E=>{var Q=ts(),Ae=ft(Q);Ae.__click=pe=>{pe.stopPropagation(),xe("key")},Ae.__keydown=pe=>{pe.stopPropagation(),ve(pe,"key")};var It=re(Ae,!0);Y(Ae);var hn=oe(Ae);{var _n=pe=>{var ge=es();P(pe,ge)};de(hn,pe=>{w(L)&&w(M)==="key"&&pe(_n)})}st(2),At(()=>vt(It,i())),P(E,Q)};de(De,E=>{i()!==null&&E(Mt)})}var se=oe(De,2);se.__click=E=>{E.stopPropagation(),xe("type")},se.__keydown=E=>{E.stopPropagation(),ve(E,"type")};var cn=re(se,!0);Y(se);var Lt=oe(se);{var dn=E=>{var Q=ns();P(E,Q)};de(Lt,E=>{w(L)&&w(M)==="type"&&E(dn)})}var _e=oe(Lt,2);{var vn=E=>{var Q=rs();P(E,Q)},vs=E=>{var Q=is();Q.textContent="{",P(E,Q)};de(_e,E=>{o(r())?E(vn):E(vs,!1)})}Y(he);var hs=oe(he,2);{var _s=E=>{var Q=ls(),Ae=ft(Q);ci(Ae,21,()=>d(r()),fi,(ge,rt)=>{var Ft=Qt(()=>Br(w(rt),2));let kr=()=>w(Ft)[0],ps=()=>w(Ft)[1];{let gs=Qt(()=>[...n(),kr()]),ms=Qt(()=>v(a(),_+1));fn(ge,{get name(){return kr()},get value(){return ps()},get keyPath(){return w(gs)},get status(){return a()},get collapsed(){return w(ms)}})}}),Y(Ae);var It=oe(Ae,2),hn=re(It);{var _n=ge=>{var rt=ss();st(),P(ge,rt)},pe=ge=>{var rt=as(),Ft=ft(rt,!0);Ft.nodeValue="}",st(),P(ge,rt)};de(hn,ge=>{o(r())?ge(_n):ge(pe,!1)})}Y(It),P(E,Q)};de(hs,E=>{w(m)||E(_s)})}Y(T),At(E=>{mr(Te,"aria-label",w(m)?"Espandi":"Comprimi"),mr(Te,"title",w(m)?"Espandi":"Comprimi"),vt(un,w(m)?"+":"-"),vt(cn,E)},[()=>u(r())]),P(h,T)};de(Z,h=>{f(r())?h(Rt):h(Dt,!1)})}return P(e,We),Gt(ht)}Ni(["click","keydown"]),wr(fn,{keyPath:{},value:{},name:{},collapsed:{},status:{}},[],[],!0);var us=q('<div class="jn-empty svelte-g7b435">No data</div>'),cs=q('<div class="hb-json-viewer svelte-g7b435"><!> <!></div>');const ds={hash:"svelte-g7b435",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;--jn-key: #6f42c1;--jn-sep: #8b949e;--jn-type: #1f6feb;--jn-bracket: #8b949e;--jn-children-border: rgba(128, 128, 128, .3);--jn-close: #8b949e;--jn-string: #0a7;--jn-number: #d19a66;--jn-boolean: #56b6c2;--jn-undefined: #8b949e;--jn-symbol: #8b949e;--jn-button-border: rgba(128, 128, 128, .3);--jn-button-hover-bg: rgba(128, 128, 128, .1);--jn-popover-text: #0f5132;--jn-popover-bg: #d1e7dd;--jn-popover-border: #badbcc;}
1
+ (function(jn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Vr=1,Hr=2,qr=16,Yr=1,Ur=4,Wr=8,Gr=16,Jr=1,Kr=2,Tn="[",qt="[!",xn="[?",Yt="]",Qe={},P=Symbol(),Sn="http://www.w3.org/1999/xhtml",Xr=!1;var An=Array.isArray,Zr=Array.prototype.indexOf,et=Array.prototype.includes,kt=Array.from,jt=Object.keys,Tt=Object.defineProperty,ze=Object.getOwnPropertyDescriptor,Qr=Object.getOwnPropertyDescriptors,ei=Object.prototype,ti=Array.prototype,Nn=Object.getPrototypeOf,Cn=Object.isExtensible;const ni=()=>{};function ri(e){for(var t=0;t<e.length;t++)e[t]()}function Pn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function ii(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const N=2,tt=4,xt=8,On=1<<24,Se=16,te=32,Ae=64,Ut=128,Y=512,A=1024,R=2048,ue=4096,H=8192,U=16384,Ne=32768,Rn=1<<25,nt=65536,Mn=1<<17,si=1<<18,Be=1<<19,li=1<<20,be=1<<25,Ve=65536,Wt=1<<21,Gt=1<<22,Ce=1<<23,St=Symbol("$state"),Dn=Symbol("legacy props"),oi=Symbol(""),we=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ai=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),At=3,ct=8;function ui(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function fi(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function ci(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function di(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function vi(e){throw new Error("https://svelte.dev/e/effect_orphan")}function hi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function _i(){throw new Error("https://svelte.dev/e/hydration_failed")}function pi(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function gi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function mi(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function bi(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function wi(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Nt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function yi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function ye(e){$=e}let y;function I(e){if(e===null)throw Nt(),Qe;return y=e}function dt(){return I(fe(y))}function W(e){if($){if(fe(y)!==null)throw Nt(),Qe;y=e}}function vt(e=1){if($){for(var t=e,n=y;t--;)n=fe(n);y=n}}function Ct(e=!0){for(var t=0,n=y;;){if(n.nodeType===ct){var r=n.data;if(r===Yt){if(t===0)return n;t-=1}else(r===Tn||r===qt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=fe(n);e&&n.remove(),n=i}}function Ln(e){if(!e||e.nodeType!==ct)throw Nt(),Qe;return e.data}function In(e){return e===this.v}function $i(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Fn(e){return!$i(e,this.v)}let Ei=!1,G=null;function rt(e){G=e}function Jt(e,t=!1,n){G={p:G,i:!1,c:null,e:null,s:e,x:null,r:b,l:null}}function Kt(e){var t=G,n=t.e;if(n!==null){t.e=null;for(var r of n)dr(r)}return e!==void 0&&(t.x=e),t.i=!0,G=t.p,e??{}}function zn(){return!0}let He=[];function Bn(){var e=He;He=[],ri(e)}function it(e){if(He.length===0&&!ht){var t=He;queueMicrotask(()=>{t===He&&Bn()})}He.push(e)}function ki(){for(;He.length>0;)Bn()}function Vn(e){var t=b;if(t===null)return m.f|=Ce,e;if((t.f&Ne)===0&&(t.f&tt)===0)throw e;Pe(e,t)}function Pe(e,t){for(;t!==null;){if((t.f&Ut)!==0){if((t.f&Ne)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const ji=-7169;function S(e,t){e.f=e.f&ji|t}function Xt(e){(e.f&Y)!==0||e.deps===null?S(e,A):S(e,ue)}function Hn(e){if(e!==null)for(const t of e)(t.f&N)===0||(t.f&Ve)===0||(t.f^=Ve,Hn(t.deps))}function qn(e,t,n){(e.f&R)!==0?t.add(e):(e.f&ue)!==0&&n.add(e),Hn(e.deps),S(e,A)}let Pt=!1;function Ti(e){var t=Pt;try{return Pt=!1,[e(),Pt]}finally{Pt=t}}const Oe=new Set;let j=null,ne=null,Zt=null,ht=!1,Qt=!1,st=null,Ot=null;var Yn=0;let xi=1;class $e{id=xi++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#l=new Set;#o=new Set;#a=new Map;is_fork=!1;#c=!1;#u=new Set;#d(){return this.is_fork||this.#i.size>0}#h(){for(const r of this.#u)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#a.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#a.get(t);if(n){this.#a.delete(t);for(var r of n.d)S(r,R),this.schedule(r);for(r of n.m)S(r,ue),this.schedule(r)}}#v(){if(Yn++>1e3&&(Oe.delete(this),Si()),!this.#d()){for(const l of this.#l)this.#o.delete(l),S(l,R),this.schedule(l);for(const l of this.#o)S(l,ue),this.schedule(l)}const t=this.#r;this.#r=[],this.apply();var n=st=[],r=[],i=Ot=[];for(const l of t)try{this.#f(l,n,r)}catch(u){throw Kn(l),u}if(j=null,i.length>0){var s=$e.ensure();for(const l of i)s.schedule(l)}if(st=null,Ot=null,this.#d()||this.#h()){this.#_(r),this.#_(n);for(const[l,u]of this.#a)Jn(l,u)}else{this.#t.size===0&&Oe.delete(this),this.#l.clear(),this.#o.clear();for(const l of this.#e)l(this);this.#e.clear(),Un(r),Un(n),this.#s?.resolve()}var o=j;if(this.#r.length>0){const l=o??=this;l.#r.push(...this.#r.filter(u=>!l.#r.includes(u)))}o!==null&&(Oe.add(o),o.#v()),Oe.has(this)||this.#p()}#f(t,n,r){t.f^=A;for(var i=t.first;i!==null;){var s=i.f,o=(s&(te|Ae))!==0,l=o&&(s&A)!==0,u=l||(s&H)!==0||this.#a.has(i);if(!u&&i.fn!==null){o?i.f^=A:(s&tt)!==0?n.push(i):gt(i)&&((s&Se)!==0&&this.#o.add(i),at(i));var a=i.first;if(a!==null){i=a;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)qn(t[n],this.#l,this.#o)}capture(t,n,r=!1){n!==P&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Ce)===0&&(this.current.set(t,[t.v,r]),ne?.set(t,t.v))}activate(){j=this}deactivate(){j=null,ne=null}flush(){try{Qt=!0,j=this,this.#v()}finally{Yn=0,Zt=null,st=null,Ot=null,Qt=!1,j=null,ne=null,Re.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),Oe.delete(this)}#p(){for(const a of Oe){var t=a.id<this.id,n=[];for(const[f,[d,v]]of this.current){if(a.current.has(f)){var r=a.current.get(f)[0];if(t&&d!==r)a.current.set(f,[d,v]);else continue}n.push(f)}var i=[...a.current.keys()].filter(f=>!this.current.has(f));if(i.length===0)t&&a.discard();else if(n.length>0){a.activate();var s=new Set,o=new Map;for(var l of n)Wn(l,i,s,o);if(a.#r.length>0){a.apply();for(var u of a.#r)a.#f(u,[],[]);a.#r=[]}a.deactivate()}}for(const a of Oe)a.#u.has(this)&&(a.#u.delete(this),a.#u.size===0&&!a.#d()&&(a.activate(),a.#v()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,it(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#l.add(r);for(const r of n)this.#o.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Pn()).promise}static ensure(){if(j===null){const t=j=new $e;Qt||(Oe.add(j),ht||it(()=>{j===t&&t.flush()}))}return j}apply(){{ne=null;return}}schedule(t){if(Zt=t,t.b?.is_pending&&(t.f&(tt|xt|On))!==0&&(t.f&Ne)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(st!==null&&n===b&&(m===null||(m.f&N)===0))return;if((r&(Ae|te))!==0){if((r&A)===0)return;n.f^=A}}this.#r.push(n)}}function Ee(e){var t=ht;ht=!0;try{for(var n;;){if(ki(),j===null)return n;j.flush()}}finally{ht=t}}function Si(){try{hi()}catch(e){Pe(e,Zt)}}let ke=null;function Un(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(U|H))===0&&gt(r)&&(ke=new Set,at(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&_r(r),ke?.size>0)){Re.clear();for(const i of ke){if((i.f&(U|H))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)ke.has(o)&&(ke.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const u=s[l];(u.f&(U|H))===0&&at(u)}}ke.clear()}}ke=null}}function Wn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&N)!==0?Wn(i,t,n,r):(s&(Gt|Se))!==0&&(s&R)===0&&Gn(i,t,r)&&(S(i,R),en(i))}}function Gn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(et.call(t,i))return!0;if((i.f&N)!==0&&Gn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function en(e){j.schedule(e)}function Jn(e,t){if(!((e.f&te)!==0&&(e.f&A)!==0)){(e.f&R)!==0?t.d.push(e):(e.f&ue)!==0&&t.m.push(e),S(e,A);for(var n=e.first;n!==null;)Jn(n,t),n=n.next}}function Kn(e){S(e,A);for(var t=e.first;t!==null;)Kn(t),t=t.next}function Ai(e){let t=0,n=qe(0),r;return()=>{on()&&(w(n),vr(()=>(t===0&&(r=xr(()=>e(()=>_t(n)))),t+=1,()=>{it(()=>{t-=1,t===0&&(r?.(),r=void 0,_t(n))})})))}}var Ni=nt|Be;function Ci(e,t,n,r){new Pi(e,t,n,r)}class Pi{parent;is_pending=!1;transform_error;#e;#n=$?y:null;#t;#i;#s;#r=null;#l=null;#o=null;#a=null;#c=0;#u=0;#d=!1;#h=new Set;#v=new Set;#f=null;#_=Ai(()=>(this.#f=qe(this.#c),()=>{this.#f=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var o=b;o.b=this,o.f|=Ut,r(s)},this.parent=b.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=an(()=>{if($){const s=this.#n;dt();const o=s.data===qt;if(s.data.startsWith(xn)){const u=JSON.parse(s.data.slice(xn.length));this.#y(u)}else o?this.#$():this.#p()}else this.#b()},Ni),$&&(this.#e=y)}#p(){try{this.#r=K(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#o=K(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=K(()=>t(this.#e)),it(()=>{var n=this.#a=document.createDocumentFragment(),r=J();n.append(r),this.#r=this.#m(()=>K(()=>this.#i(r))),this.#u===0&&(this.#e.before(n),this.#a=null,We(this.#l,()=>{this.#l=null}),this.#g(j))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#r=K(()=>{this.#i(this.#e)}),this.#u>0){var t=this.#a=document.createDocumentFragment();cn(this.#r,t);const n=this.#t.pending;this.#l=K(()=>n(this.#e))}else this.#g(j)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#h,this.#v)}defer_effect(t){qn(t,this.#h,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var n=b,r=m,i=G;ve(this.#s),X(this.#s),rt(this.#s.ctx);try{return $e.ensure(),t()}catch(s){return Vn(s),null}finally{ve(n),X(r),rt(i)}}#w(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,n);return}this.#u+=t,this.#u===0&&(this.#g(n),this.#l&&We(this.#l,()=>{this.#l=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#w(t,n),this.#c+=t,!(!this.#f||this.#d)&&(this.#d=!0,it(()=>{this.#d=!1,this.#f&&ot(this.#f,this.#c)}))}get_effect_pending(){return this.#_(),w(this.#f)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(L(this.#r),this.#r=null),this.#l&&(L(this.#l),this.#l=null),this.#o&&(L(this.#o),this.#o=null),$&&(I(this.#n),vt(),I(Ct()));var i=!1,s=!1;const o=()=>{if(i){yi();return}i=!0,s&&wi(),this.#o!==null&&We(this.#o,()=>{this.#o=null}),this.#m(()=>{this.#b()})},l=u=>{try{s=!0,n?.(u,o),s=!1}catch(a){Pe(a,this.#s&&this.#s.parent)}r&&(this.#o=this.#m(()=>{try{return K(()=>{var a=b;a.b=this,a.f|=Ut,r(this.#e,()=>u,()=>o)})}catch(a){return Pe(a,this.#s.parent),null}}))};it(()=>{var u;try{u=this.transform_error(t)}catch(a){Pe(a,this.#s&&this.#s.parent);return}u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(l,a=>Pe(a,this.#s&&this.#s.parent)):l(u)})}}function Oi(e,t,n,r){const i=Mt;var s=e.filter(v=>!v.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var o=b,l=Ri(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(v=>v.promise)):null;function a(v){l();try{r(v)}catch(_){(o.f&U)===0&&Pe(_,o)}Rt()}if(n.length===0){u.then(()=>a(t.map(i)));return}var f=Xn();function d(){Promise.all(n.map(v=>Mi(v))).then(v=>a([...t.map(i),...v])).catch(v=>Pe(v,o)).finally(()=>f())}u?u.then(()=>{l(),d(),Rt()}):d()}function Ri(){var e=b,t=m,n=G,r=j;return function(s=!0){ve(e),X(t),rt(n),s&&(e.f&U)===0&&(r?.activate(),r?.apply())}}function Rt(e=!0){ve(null),X(null),rt(null),e&&j?.deactivate()}function Xn(){var e=b,t=e.b,n=j,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Mt(e){var t=N|R,n=m!==null&&(m.f&N)!==0?m:null;return b!==null&&(b.f|=Be),{ctx:G,deps:null,effects:null,equals:In,f:t,fn:e,reactions:null,rv:0,v:P,wv:0,parent:n??b,ac:null}}function Mi(e,t,n){let r=b;r===null&&ui();var i=void 0,s=qe(P),o=!m,l=new Map;return Ui(()=>{var u=b,a=Pn();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).finally(Rt)}catch(_){a.reject(_),Rt()}var f=j;if(o){if((u.f&Ne)!==0)var d=Xn();if(r.b.is_rendered())l.get(f)?.reject(we),l.delete(f);else{for(const _ of l.values())_.reject(we);l.clear()}l.set(f,a)}const v=(_,c=void 0)=>{if(d){var p=c===we;d(p)}if(!(c===we||(u.f&U)!==0)){if(f.activate(),c)s.f|=Ce,ot(s,c);else{(s.f&Ce)!==0&&(s.f^=Ce),ot(s,_);for(const[E,T]of l){if(l.delete(E),E===f)break;T.reject(we)}}f.deactivate()}};a.promise.then(v,_=>v(null,_||"unknown"))}),Vi(()=>{for(const u of l.values())u.reject(we)}),new Promise(u=>{function a(f){function d(){f===i?u(s):a(i)}f.then(d,d)}a(i)})}function lt(e){const t=Mt(e);return br(t),t}function Zn(e){const t=Mt(e);return t.equals=Fn,t}function Di(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)L(t[n])}}function Li(e){for(var t=e.parent;t!==null;){if((t.f&N)===0)return(t.f&U)===0?t:null;t=t.parent}return null}function tn(e){var t,n=b;ve(Li(e));try{e.f&=~Ve,Di(e),t=kr(e)}finally{ve(n)}return t}function Qn(e){var t=e.v,n=tn(e);if(!e.equals(n)&&(e.wv=$r(),(!j?.is_fork||e.deps===null)&&(e.v=n,j?.capture(e,t,!0),e.deps===null))){S(e,A);return}Me||(ne!==null?(on()||j?.is_fork)&&ne.set(e,n):Xt(e))}function Ii(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(we),t.teardown=ni,t.ac=null,mt(t,0),un(t))}function er(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&at(t)}let nn=new Set;const Re=new Map;let tr=!1;function qe(e,t){var n={f:0,v:e,reactions:null,equals:In,rv:0,wv:0};return n}function re(e,t){const n=qe(e);return br(n),n}function nr(e,t=!1,n=!0){const r=qe(e);return t||(r.equals=Fn),r}function D(e,t,n=!1){m!==null&&(!se||(m.f&Mn)!==0)&&zn()&&(m.f&(N|Se|Gt|Mn))!==0&&(Z===null||!et.call(Z,e))&&bi();let r=n?Ye(t):t;return ot(e,r,Ot)}function ot(e,t,n=null){if(!e.equals(t)){var r=e.v;Me?Re.set(e,t):Re.set(e,r),e.v=t;var i=$e.ensure();if(i.capture(e,r),(e.f&N)!==0){const s=e;(e.f&R)!==0&&tn(s),ne===null&&Xt(s)}e.wv=$r(),rr(e,R,n),b!==null&&(b.f&A)!==0&&(b.f&(te|Ae))===0&&(Q===null?Ji([e]):Q.push(e)),!i.is_fork&&nn.size>0&&!tr&&Fi()}return t}function Fi(){tr=!1;for(const e of nn)(e.f&A)!==0&&S(e,ue),gt(e)&&at(e);nn.clear()}function _t(e){D(e,e.v+1)}function rr(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,u=(l&R)===0;if(u&&S(o,t),(l&N)!==0){var a=o;ne?.delete(a),(l&Ve)===0&&(l&Y&&(o.f|=Ve),rr(a,ue,n))}else if(u){var f=o;(l&Se)!==0&&ke!==null&&ke.add(f),n!==null?n.push(f):en(f)}}}function Ye(e){if(typeof e!="object"||e===null||St in e)return e;const t=Nn(e);if(t!==ei&&t!==ti)return e;var n=new Map,r=An(e),i=re(0),s=Je,o=l=>{if(Je===s)return l();var u=m,a=Je;X(null),yr(s);var f=l();return X(u),yr(a),f};return r&&n.set("length",re(e.length)),new Proxy(e,{defineProperty(l,u,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&gi();var f=n.get(u);return f===void 0?o(()=>{var d=re(a.value);return n.set(u,d),d}):D(f,a.value,!0),!0},deleteProperty(l,u){var a=n.get(u);if(a===void 0){if(u in l){const f=o(()=>re(P));n.set(u,f),_t(i)}}else D(a,P),_t(i);return!0},get(l,u,a){if(u===St)return e;var f=n.get(u),d=u in l;if(f===void 0&&(!d||ze(l,u)?.writable)&&(f=o(()=>{var _=Ye(d?l[u]:P),c=re(_);return c}),n.set(u,f)),f!==void 0){var v=w(f);return v===P?void 0:v}return Reflect.get(l,u,a)},getOwnPropertyDescriptor(l,u){var a=Reflect.getOwnPropertyDescriptor(l,u);if(a&&"value"in a){var f=n.get(u);f&&(a.value=w(f))}else if(a===void 0){var d=n.get(u),v=d?.v;if(d!==void 0&&v!==P)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return a},has(l,u){if(u===St)return!0;var a=n.get(u),f=a!==void 0&&a.v!==P||Reflect.has(l,u);if(a!==void 0||b!==null&&(!f||ze(l,u)?.writable)){a===void 0&&(a=o(()=>{var v=f?Ye(l[u]):P,_=re(v);return _}),n.set(u,a));var d=w(a);if(d===P)return!1}return f},set(l,u,a,f){var d=n.get(u),v=u in l;if(r&&u==="length")for(var _=a;_<d.v;_+=1){var c=n.get(_+"");c!==void 0?D(c,P):_ in l&&(c=o(()=>re(P)),n.set(_+"",c))}if(d===void 0)(!v||ze(l,u)?.writable)&&(d=o(()=>re(void 0)),D(d,Ye(a)),n.set(u,d));else{v=d.v!==P;var p=o(()=>Ye(a));D(d,p)}var E=Reflect.getOwnPropertyDescriptor(l,u);if(E?.set&&E.set.call(f,a),!v){if(r&&typeof u=="string"){var T=n.get("length"),g=Number(u);Number.isInteger(g)&&g>=T.v&&D(T,g+1)}_t(i)}return!0},ownKeys(l){w(i);var u=Reflect.ownKeys(l).filter(d=>{var v=n.get(d);return v===void 0||v.v!==P});for(var[a,f]of n)f.v!==P&&!(a in l)&&u.push(a);return u},setPrototypeOf(){mi()}})}var ir,sr,lr,or;function rn(){if(ir===void 0){ir=window,sr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;lr=ze(t,"firstChild").get,or=ze(t,"nextSibling").get,Cn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Cn(n)&&(n.__t=void 0)}}function J(e=""){return document.createTextNode(e)}function Ue(e){return lr.call(e)}function fe(e){return or.call(e)}function ie(e,t){if(!$)return Ue(e);var n=Ue(y);if(n===null)n=y.appendChild(J());else if(t&&n.nodeType!==At){var r=J();return n?.before(r),I(r),r}return t&&ln(n),I(n),n}function pt(e,t=!1){if(!$){var n=Ue(e);return n instanceof Comment&&n.data===""?fe(n):n}if(t){if(y?.nodeType!==At){var r=J();return y?.before(r),I(r),r}ln(y)}return y}function ce(e,t=1,n=!1){let r=$?y:e;for(var i;t--;)i=r,r=fe(r);if(!$)return r;if(n){if(r?.nodeType!==At){var s=J();return r===null?i?.after(s):r.before(s),I(s),s}ln(r)}return I(r),r}function ar(e){e.textContent=""}function ur(){return!1}function sn(e,t,n){return document.createElementNS(Sn,e,void 0)}function ln(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===At;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function fr(e){var t=m,n=b;X(null),ve(null);try{return e()}finally{X(t),ve(n)}}function zi(e){b===null&&(m===null&&vi(),di()),Me&&ci()}function Bi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function de(e,t){var n=b;n!==null&&(n.f&H)!==0&&(e|=H);var r={ctx:G,deps:null,nodes:null,f:e|R|Y,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&tt)!==0)st!==null?st.push(r):$e.ensure().schedule(r);else if(t!==null){try{at(r)}catch(o){throw L(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Be)===0&&(i=i.first,(e&Se)!==0&&(e&nt)!==0&&i!==null&&(i.f|=nt))}if(i!==null&&(i.parent=n,n!==null&&Bi(i,n),m!==null&&(m.f&N)!==0&&(e&Ae)===0)){var s=m;(s.effects??=[]).push(i)}return r}function on(){return m!==null&&!se}function Vi(e){const t=de(xt,null);return S(t,A),t.teardown=e,t}function cr(e){zi();var t=b.f,n=!m&&(t&te)!==0&&(t&Ne)===0;if(n){var r=G;(r.e??=[]).push(e)}else return dr(e)}function dr(e){return de(tt|li,e)}function Hi(e){$e.ensure();const t=de(Ae|Be,e);return()=>{L(t)}}function qi(e){$e.ensure();const t=de(Ae|Be,e);return(n={})=>new Promise(r=>{n.outro?We(t,()=>{L(t),r(void 0)}):(L(t),r(void 0))})}function Yi(e){return de(tt,e)}function Ui(e){return de(Gt|Be,e)}function vr(e,t=0){return de(xt|t,e)}function Dt(e,t=[],n=[],r=[]){Oi(r,t,n,i=>{de(xt,()=>e(...i.map(w)))})}function an(e,t=0){var n=de(Se|t,e);return n}function K(e){return de(te|Be,e)}function hr(e){var t=e.teardown;if(t!==null){const n=Me,r=m;mr(!0),X(null);try{t.call(null)}finally{mr(n),X(r)}}}function un(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&fr(()=>{i.abort(we)});var r=n.next;(n.f&Ae)!==0?n.parent=null:L(n,t),n=r}}function Wi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&te)===0&&L(t),t=n}}function L(e,t=!0){var n=!1;(t||(e.f&si)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Gi(e.nodes.start,e.nodes.end),n=!0),S(e,Rn),un(e,t&&!n),mt(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();hr(e),e.f^=Rn,e.f|=U;var i=e.parent;i!==null&&i.first!==null&&_r(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Gi(e,t){for(;e!==null;){var n=e===t?null:fe(e);e.remove(),e=n}}function _r(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function We(e,t,n=!0){var r=[];pr(e,r,!0);var i=()=>{n&&L(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function pr(e,t,n){if((e.f&H)===0){e.f^=H;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&nt)!==0||(i.f&te)!==0&&(e.f&Se)!==0;pr(i,t,o?n:!1),i=s}}}function fn(e){gr(e,!0)}function gr(e,t){if((e.f&H)!==0){e.f^=H,(e.f&A)===0&&(S(e,R),$e.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&nt)!==0||(n.f&te)!==0;gr(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function cn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:fe(n);t.append(n),n=i}}let Lt=!1,Me=!1;function mr(e){Me=e}let m=null,se=!1;function X(e){m=e}let b=null;function ve(e){b=e}let Z=null;function br(e){m!==null&&(Z===null?Z=[e]:Z.push(e))}let F=null,q=0,Q=null;function Ji(e){Q=e}let wr=1,Ge=0,Je=Ge;function yr(e){Je=e}function $r(){return++wr}function gt(e){var t=e.f;if((t&R)!==0)return!0;if(t&N&&(e.f&=~Ve),(t&ue)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(gt(s)&&Qn(s),s.wv>e.wv)return!0}(t&Y)!==0&&ne===null&&S(e,A)}return!1}function Er(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Z!==null&&et.call(Z,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&N)!==0?Er(s,t,!1):t===s&&(n?S(s,R):(s.f&A)!==0&&S(s,ue),en(s))}}function kr(e){var t=F,n=q,r=Q,i=m,s=Z,o=G,l=se,u=Je,a=e.f;F=null,q=0,Q=null,m=(a&(te|Ae))===0?e:null,Z=null,rt(e.ctx),se=!1,Je=++Ge,e.ac!==null&&(fr(()=>{e.ac.abort(we)}),e.ac=null);try{e.f|=Wt;var f=e.fn,d=f();e.f|=Ne;var v=e.deps,_=j?.is_fork;if(F!==null){var c;if(_||mt(e,q),v!==null&&q>0)for(v.length=q+F.length,c=0;c<F.length;c++)v[q+c]=F[c];else e.deps=v=F;if(on()&&(e.f&Y)!==0)for(c=q;c<v.length;c++)(v[c].reactions??=[]).push(e)}else!_&&v!==null&&q<v.length&&(mt(e,q),v.length=q);if(zn()&&Q!==null&&!se&&v!==null&&(e.f&(N|ue|R))===0)for(c=0;c<Q.length;c++)Er(Q[c],e);if(i!==null&&i!==e){if(Ge++,i.deps!==null)for(let p=0;p<n;p+=1)i.deps[p].rv=Ge;if(t!==null)for(const p of t)p.rv=Ge;Q!==null&&(r===null?r=Q:r.push(...Q))}return(e.f&Ce)!==0&&(e.f^=Ce),d}catch(p){return Vn(p)}finally{e.f^=Wt,F=t,q=n,Q=r,m=i,Z=s,rt(o),se=l,Je=u}}function Ki(e,t){let n=t.reactions;if(n!==null){var r=Zr.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&N)!==0&&(F===null||!et.call(F,t))){var s=t;(s.f&Y)!==0&&(s.f^=Y,s.f&=~Ve),Xt(s),Ii(s),mt(s,0)}}function mt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ki(e,n[r])}function at(e){var t=e.f;if((t&U)===0){S(e,A);var n=b,r=Lt;b=e,Lt=!0;try{(t&(Se|On))!==0?Wi(e):un(e),hr(e);var i=kr(e);e.teardown=typeof i=="function"?i:null,e.wv=wr;var s;Xr&&Ei&&(e.f&R)!==0&&e.deps}finally{Lt=r,b=n}}}function w(e){var t=e.f,n=(t&N)!==0;if(m!==null&&!se){var r=b!==null&&(b.f&U)!==0;if(!r&&(Z===null||!et.call(Z,e))){var i=m.deps;if((m.f&Wt)!==0)e.rv<Ge&&(e.rv=Ge,F===null&&i!==null&&i[q]===e?q++:F===null?F=[e]:F.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:et.call(s,m)||s.push(m)}}}if(Me&&Re.has(e))return Re.get(e);if(n){var o=e;if(Me){var l=o.v;return((o.f&A)===0&&o.reactions!==null||Tr(o))&&(l=tn(o)),Re.set(o,l),l}var u=(o.f&Y)===0&&!se&&m!==null&&(Lt||(m.f&Y)!==0),a=(o.f&Ne)===0;gt(o)&&(u&&(o.f|=Y),Qn(o)),u&&!a&&(er(o),jr(o))}if(ne?.has(e))return ne.get(e);if((e.f&Ce)!==0)throw e.v;return e.v}function jr(e){if(e.f|=Y,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&N)!==0&&(t.f&Y)===0&&(er(t),jr(t))}function Tr(e){if(e.v===P)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Re.has(t)||(t.f&N)!==0&&Tr(t))return!0;return!1}function xr(e){var t=se;try{return se=!0,e()}finally{se=t}}const bt=Symbol("events"),Sr=new Set,dn=new Set;function Ke(e,t,n){(t[bt]??={})[e]=n}function Xi(e){for(var t=0;t<e.length;t++)Sr.add(e[t]);for(var n of dn)n(e)}let Ar=null;function Nr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Ar=e;var o=0,l=Ar===e&&e[bt];if(l){var u=i.indexOf(l);if(u!==-1&&(t===document||t===window)){e[bt]=t;return}var a=i.indexOf(t);if(a===-1)return;u<=a&&(o=u)}if(s=i[o]||e.target,s!==t){Tt(e,"currentTarget",{configurable:!0,get(){return s||n}});var f=m,d=b;X(null),ve(null);try{for(var v,_=[];s!==null;){var c=s.assignedSlot||s.parentNode||s.host||null;try{var p=s[bt]?.[r];p!=null&&(!s.disabled||e.target===s)&&p.call(s,e)}catch(E){v?_.push(E):v=E}if(e.cancelBubble||c===t||c===null)break;s=c}if(v){for(let E of _)queueMicrotask(()=>{throw E});throw v}}finally{e[bt]=t,delete e.currentTarget,X(f),ve(d)}}}const Zi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Qi(e){return Zi?.createHTML(e)??e}function es(e){var t=sn("template");return t.innerHTML=Qi(e.replaceAll("<!>","<!---->")),t.content}function ut(e,t){var n=b;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function z(e,t){var n=(t&Jr)!==0,r=(t&Kr)!==0,i,s=!e.startsWith("<!>");return()=>{if($)return ut(y,null),y;i===void 0&&(i=es(s?e:"<!>"+e),n||(i=Ue(i)));var o=r||sr?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Ue(o),u=o.lastChild;ut(l,u)}else ut(o,o);return o}}function ts(){if($)return ut(y,null),y;var e=document.createDocumentFragment(),t=document.createComment(""),n=J();return e.append(t,n),ut(t,n),e}function M(e,t){if($){var n=b;((n.f&Ne)===0||n.nodes.end===null)&&(n.nodes.end=y),dt();return}e!==null&&e.before(t)}const ns=["touchstart","touchmove"];function rs(e){return ns.includes(e)}function wt(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Cr(e,t){return Pr(e,t)}function is(e,t){rn(),t.intro=t.intro??!1;const n=t.target,r=$,i=y;try{for(var s=Ue(n);s&&(s.nodeType!==ct||s.data!==Tn);)s=fe(s);if(!s)throw Qe;ye(!0),I(s);const o=Pr(e,{...t,anchor:s});return ye(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Qe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&_i(),rn(),ar(n),ye(!1),Cr(e,t)}finally{ye(r),I(i)}}const It=new Map;function Pr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){rn();var u=void 0,a=qi(()=>{var f=n??t.appendChild(J());Ci(f,{pending:()=>{}},_=>{Jt({});var c=G;if(s&&(c.c=s),i&&(r.$$events=i),$&&ut(_,null),u=e(_,r)||{},$&&(b.nodes.end=y,y===null||y.nodeType!==ct||y.data!==Yt))throw Nt(),Qe;Kt()},l);var d=new Set,v=_=>{for(var c=0;c<_.length;c++){var p=_[c];if(!d.has(p)){d.add(p);var E=rs(p);for(const x of[t,document]){var T=It.get(x);T===void 0&&(T=new Map,It.set(x,T));var g=T.get(p);g===void 0?(x.addEventListener(p,Nr,{passive:E}),T.set(p,1)):T.set(p,g+1)}}}};return v(kt(Sr)),dn.add(v),()=>{for(var _ of d)for(const E of[t,document]){var c=It.get(E),p=c.get(_);--p==0?(E.removeEventListener(_,Nr),c.delete(_),c.size===0&&It.delete(E)):c.set(_,p)}dn.delete(v),f!==n&&f.parentNode?.removeChild(f)}});return vn.set(u,a),u}let vn=new WeakMap;function ss(e,t){const n=vn.get(e);return n?(vn.delete(e),n(t)):Promise.resolve()}class ls{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)fn(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#t.get(o);l&&(L(l.effect),this.#t.delete(o))}for(const[s,o]of this.#n){if(s===n||this.#i.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var a=document.createDocumentFragment();cn(o,a),a.append(J()),this.#t.set(s,{effect:o,fragment:a})}else L(o);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),We(o,l,!1)):l()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(L(i.effect),this.#t.delete(r))};ensure(t,n){var r=j,i=ur();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),o=J();s.append(o),this.#t.set(t,{effect:K(()=>n(o)),fragment:s})}else this.#n.set(t,K(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[l,u]of this.#n)l===t?r.unskip_effect(u):r.skip_effect(u);for(const[l,u]of this.#t)l===t?r.unskip_effect(u.effect):r.skip_effect(u.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else $&&(this.anchor=y),this.#r(r)}}function he(e,t,n=!1){var r;$&&(r=y,dt());var i=new ls(e),s=n?nt:0;function o(l,u){if($){var a=Ln(r);if(l!==parseInt(a.substring(1))){var f=Ct();I(f),i.anchor=f,ye(!1),i.ensure(l,u),ye(!0);return}}i.ensure(l,u)}an(()=>{var l=!1;t((u,a=0)=>{l=!0,o(a,u)}),l||o(-1,null)},s)}function os(e,t){return t}function as(e,t,n){for(var r=[],i=t.length,s,o=t.length,l=0;l<i;l++){let d=t[l];We(d,()=>{if(s){if(s.pending.delete(d),s.done.add(d),s.pending.size===0){var v=e.outrogroups;hn(e,kt(s.done)),v.delete(s),v.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var u=r.length===0&&n!==null;if(u){var a=n,f=a.parentNode;ar(f),f.append(a),e.items.clear()}hn(e,t,!u)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function hn(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const o of e.pending.values())for(const l of o)r.add(e.items.get(l).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=be;const o=document.createDocumentFragment();cn(s,o)}else L(t[i],n)}}var Or;function us(e,t,n,r,i,s=null){var o=e,l=new Map;{var u=e;o=$?I(Ue(u)):u.appendChild(J())}$&&dt();var a=null,f=Zn(()=>{var g=n();return An(g)?g:g==null?[]:kt(g)}),d,v=new Map,_=!0;function c(g){(T.effect.f&U)===0&&(T.pending.delete(g),T.fallback=a,fs(T,d,o,t,r),a!==null&&(d.length===0?(a.f&be)===0?fn(a):(a.f^=be,$t(a,null,o)):We(a,()=>{a=null})))}function p(g){T.pending.delete(g)}var E=an(()=>{d=w(f);var g=d.length;let x=!1;if($){var B=Ln(o)===qt;B!==(g===0)&&(o=Ct(),I(o),ye(!1),x=!0)}for(var V=new Set,_e=j,je=ur(),O=0;O<g;O+=1){$&&y.nodeType===ct&&y.data===Yt&&(o=y,x=!0,ye(!1));var Et=d[O],Ze=r(Et,O),le=_?null:l.get(Ze);le?(le.v&&ot(le.v,Et),le.i&&ot(le.i,O),je&&_e.unskip_effect(le.e)):(le=cs(l,_?o:Or??=J(),Et,Ze,O,i,t,n),_||(le.e.f|=be),l.set(Ze,le)),V.add(Ze)}if(g===0&&s&&!a&&(_?a=K(()=>s(o)):(a=K(()=>s(Or??=J())),a.f|=be)),g>V.size&&fi(),$&&g>0&&I(Ct()),!_)if(v.set(_e,V),je){for(const[pn,gn]of l)V.has(pn)||_e.skip_effect(gn.e);_e.oncommit(c),_e.ondiscard(p)}else c(_e);x&&ye(!0),w(f)}),T={effect:E,items:l,pending:v,outrogroups:null,fallback:a};_=!1,$&&(o=y)}function yt(e){for(;e!==null&&(e.f&te)===0;)e=e.next;return e}function fs(e,t,n,r,i){var s=t.length,o=e.items,l=yt(e.effect.first),u,a=null,f=[],d=[],v,_,c,p;for(p=0;p<s;p+=1){if(v=t[p],_=i(v,p),c=o.get(_).e,e.outrogroups!==null)for(const O of e.outrogroups)O.pending.delete(c),O.done.delete(c);if((c.f&H)!==0&&fn(c),(c.f&be)!==0)if(c.f^=be,c===l)$t(c,null,n);else{var E=a?a.next:l;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),De(e,a,c),De(e,c,E),$t(c,E,n),a=c,f=[],d=[],l=yt(a.next);continue}if(c!==l){if(u!==void 0&&u.has(c)){if(f.length<d.length){var T=d[0],g;a=T.prev;var x=f[0],B=f[f.length-1];for(g=0;g<f.length;g+=1)$t(f[g],T,n);for(g=0;g<d.length;g+=1)u.delete(d[g]);De(e,x.prev,B.next),De(e,a,x),De(e,B,T),l=T,a=B,p-=1,f=[],d=[]}else u.delete(c),$t(c,l,n),De(e,c.prev,c.next),De(e,c,a===null?e.effect.first:a.next),De(e,a,c),a=c;continue}for(f=[],d=[];l!==null&&l!==c;)(u??=new Set).add(l),d.push(l),l=yt(l.next);if(l===null)continue}(c.f&be)===0&&f.push(c),a=c,l=yt(c.next)}if(e.outrogroups!==null){for(const O of e.outrogroups)O.pending.size===0&&(hn(e,kt(O.done)),e.outrogroups?.delete(O));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var V=[];if(u!==void 0)for(c of u)(c.f&H)===0&&V.push(c);for(;l!==null;)(l.f&H)===0&&l!==e.fallback&&V.push(l),l=yt(l.next);var _e=V.length;if(_e>0){var je=s===0?n:null;as(e,V,je)}}}function cs(e,t,n,r,i,s,o,l){var u=(o&Vr)!==0?(o&qr)===0?nr(n,!1,!1):qe(n):null,a=(o&Hr)!==0?qe(i):null;return{v:u,i:a,e:K(()=>(s(t,u??n,a??i,l),()=>{e.delete(r)}))}}function $t(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&be)===0?t.nodes.start:n;r!==null;){var o=fe(r);if(s.before(r),r===i)return;r=o}}function De(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ds(e,t,n,r,i){$&&dt();var s=t.$$slots?.[n],o=!1;s===!0&&(s=t.children,o=!0),s===void 0||s(e,o?()=>r:r)}function Rr(e,t){Yi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=sn("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function vs(e,t,n){var r=e==null?"":""+e;return r=r?r+" "+t:t,r===""?null:r}function hs(e,t,n,r,i,s){var o=e.__className;if($||o!==n||o===void 0){var l=vs(n,r);(!$||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}const _s=Symbol("is custom element"),ps=Symbol("is html"),gs=ai?"link":"LINK";function Mr(e,t,n,r){var i=ms(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===gs)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[oi]=n),n==null?e.removeAttribute(t):typeof n!="string"&&bs(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ms(e){return e.__attributes??={[_s]:e.nodeName.includes("-"),[ps]:e.namespaceURI===Sn}}var Dr=new Map;function bs(e){var t=e.getAttribute("is")||e.nodeName,n=Dr.get(t);if(n)return n;Dr.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Qr(i);for(var o in r)r[o].set&&n.push(o);i=Nn(i)}return n}function Le(e,t,n,r){var i=(n&Wr)!==0,s=(n&Gr)!==0,o=r,l=!0,u=()=>(l&&(l=!1,o=s?xr(r):r),o);let a;if(i){var f=St in e||Dn in e;a=ze(e,t)?.set??(f&&t in e?g=>e[t]=g:void 0)}var d,v=!1;i?[d,v]=Ti(()=>e[t]):d=e[t],d===void 0&&r!==void 0&&(d=u(),a&&(pi(),a(d)));var _;if(_=()=>{var g=e[t];return g===void 0?u():(l=!0,g)},(n&Ur)===0)return _;if(a){var c=e.$$legacy;return(function(g,x){return arguments.length>0?((!x||c||v)&&a(x?_():g),g):_()})}var p=!1,E=((n&Yr)!==0?Mt:Zn)(()=>(p=!1,_()));i&&w(E);var T=b;return(function(g,x){if(arguments.length>0){const B=x?w(E):i?Ye(g):g;return D(E,B),p=!0,o!==void 0&&(o=B),g}return Me&&p||(T.f&U)!==0?E.v:w(E)})}function ws(e){return new ys(e)}class ys{#e;#n;constructor(t){var n=new Map,r=(s,o)=>{var l=nr(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return w(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===Dn?!0:(w(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return D(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#n=(t.hydrate?is:Cr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Ee(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Tt(this,s,{get(){return this.#n[s]},set(o){this.#n[s]=o},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{ss(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let Lr;typeof HTMLElement=="function"&&(Lr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=sn("slot");r!=="default"&&(s.name=r),M(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=$s(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Ft(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=ws({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Hi(()=>{vr(()=>{this.$$r=!0;for(const r of jt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Ft(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ft(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return jt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ft(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function $s(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ir(e,t,n,r,i,s){let o=class extends Lr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return jt(t).map(l=>(t[l].attribute||l).toLowerCase())}};return jt(t).forEach(l=>{Tt(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){u=Ft(l,u,t),this.$$d[l]=u;var a=this.$$c;if(a){var f=ze(a,l)?.get;f?a[l]=u:a.$set({[l]:u})}}})}),r.forEach(l=>{Tt(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}var Xe={},Fr;function Es(){if(Fr)return Xe;Fr=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.LanguageTranslator=void 0,Xe.getChildStyleToPass=e,Xe.addComponent=t;function e(r,i){var s,o,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(v){return Object.keys(r).includes(v.name)}))===null||o===void 0)&&o.length))for(var u=function(v){var _=i?.filter(function(c){return c.name===v&&c.defaultValue!==r[v]});_&&(l+="".concat(v,":").concat(r[v],";"))},a=0,f=Object.keys(r);a<f.length;a++){var d=f[a];u(d)}}catch(v){console.error("error getting child style to pass",v)}finally{return l}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var o=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(o),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var u=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(u+"-",""),"/").concat(o)}document.head.appendChild(l)}catch(a){console.warn(a)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,o){return r.formatDate(i,s,o||this.lang)},r.getDefaultLang=function(){var i,s,o,l="en";return navigator?.languages&&(!((o=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||o===void 0)&&o.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(i,s,o){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((l=s[o])===null||l===void 0)&&l[i]))return s[o][i];var u="",a=r.getDefaultLang();if(!o||a!==o){var f=s?.[a];f?.[i]&&(u=f[i])}return u},r.formatDate=function(i,s,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(o||r.getDefaultLang(),s);return l.format(i)},r})();return Xe.LanguageTranslator=n,Xe}Es();var ks=z('<span class="jn-popover svelte-2u2vu2">copied</span>'),js=z('<span class="jn-key svelte-2u2vu2" role="button" tabindex="0" title="Copia JSON"> </span><!> <span class="jn-sep svelte-2u2vu2">:</span>',1),Ts=z('<div class="jn-row svelte-2u2vu2"><!> <span> </span></div>'),xs=z('<span class="jn-popover svelte-2u2vu2">copied</span>'),Ss=z('<span class="jn-key svelte-2u2vu2" role="button" tabindex="0" title="Copia JSON"> </span><!> <span class="jn-sep svelte-2u2vu2">:</span>',1),As=z('<span class="jn-popover svelte-2u2vu2">copied</span>'),Ns=z('<span class="jn-bracket svelte-2u2vu2">[</span>'),Cs=z('<span class="jn-bracket svelte-2u2vu2"></span>'),Ps=z(']<span class="jn-trailing"></span>',1),Os=z(' <span class="jn-trailing"></span>',1),Rs=z('<div class="jn-children svelte-2u2vu2"></div> <div class="jn-close svelte-2u2vu2"><!></div>',1),Ms=z('<div class="jn-node svelte-2u2vu2"><div class="jn-header svelte-2u2vu2"><span class="jn-actions svelte-2u2vu2"><button class="jn-btn jn-toggle-btn svelte-2u2vu2"> </button></span> <!> <span class="jn-type svelte-2u2vu2" role="button" tabindex="0" title="Copia JSON"> </span><!> <!></div> <!></div>');const Ds={hash:"svelte-2u2vu2",code:`.jn-row.svelte-2u2vu2 {font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
3
+ "Liberation Mono", "Courier New", monospace;line-height:1.5;}.jn-node.svelte-2u2vu2 {margin-left:0.75rem;}.jn-header.svelte-2u2vu2 {display:inline-flex;align-items:baseline;gap:0.25rem;}.jn-actions.svelte-2u2vu2 {display:inline-flex;gap:0.25rem;margin-right:0.25rem;}.jn-btn.svelte-2u2vu2 {cursor:pointer;border:1px solid var(--jn-button-border);border-radius:4px;background:transparent;color:inherit;width:1.25rem;height:1.25rem;display:inline-flex;align-items:center;justify-content:center;font-size:0.85rem;line-height:1;padding:0;}.jn-btn.svelte-2u2vu2:hover {background-color:var(--jn-button-hover-bg);}.jn-key.svelte-2u2vu2 {cursor:pointer;}.jn-key.svelte-2u2vu2 {color:var(--jn-key);}.jn-sep.svelte-2u2vu2 {color:var(--jn-sep);}.jn-type.svelte-2u2vu2 {color:var(--jn-type);cursor:pointer;}.jn-popover.svelte-2u2vu2 {display:inline-block;margin-left:0.25rem;padding:0 0.35rem;border-radius:999px;font-size:0.7rem;line-height:1.4;color:var(--jn-popover-text);background-color:var(--jn-popover-bg);border:1px solid var(--jn-popover-border);vertical-align:middle;user-select:none;}.jn-bracket.svelte-2u2vu2 {color:var(--jn-bracket);}.jn-children.svelte-2u2vu2 {margin-left:1rem;border-left:1px dashed var(--jn-children-border);padding-left:0.75rem;}.jn-close.svelte-2u2vu2 {margin-left:0.75rem;color:var(--jn-close);}.jn-string.svelte-2u2vu2 {color:var(--jn-string);}.jn-number.svelte-2u2vu2 {color:var(--jn-number);}.jn-boolean.svelte-2u2vu2 {color:var(--jn-boolean);}.jn-undefined.svelte-2u2vu2 {color:var(--jn-undefined);font-style:italic;}.jn-symbol.svelte-2u2vu2 {color:var(--jn-symbol);}`};function _n(e,t){Jt(t,!0),Rr(e,Ds);let n=Le(t,"keyPath",23,()=>[]),r=Le(t,"value",7),i=Le(t,"name",7,null),s=Le(t,"collapsed",7),o=Le(t,"status",7,"open");const l=h=>h!==null&&typeof h=="object"&&!Array.isArray(h),u=h=>Array.isArray(h),a=h=>!l(h)&&!u(h);function f(h){return h===null?"null":u(h)?`Array(${h.length})`:l(h)?"Object":typeof h}function d(h){return typeof h=="string"?`"${h}"`:h===null?"null":typeof h>"u"?"undefined":typeof h=="bigint"?h.toString()+"n":typeof h=="symbol"?h.toString():String(h)}function v(h){return u(h)?h.map((C,pe)=>[pe,C]):l(h)?Object.entries(h):[]}function _(h,C){return h==="open"?!1:h==="closed"?!0:C>0}const c=n().length;let p=re(Ye(s()??_(o(),c)));cr(()=>{s()===void 0&&D(p,_(o(),c),!0)});function E(){D(p,!w(p))}function T(h){const C=new WeakSet;try{return JSON.stringify(h,(pe,oe)=>{if(typeof oe=="object"&&oe!==null){if(C.has(oe))return"[Circular]";C.add(oe)}return oe},2)}catch{return String(h)}}async function g(){const h=T(r());try{navigator.clipboard&&navigator.clipboard.writeText?await navigator.clipboard.writeText(h):console.error("unsupported copying node")}catch(C){console.error("error copying node",C)}}let x=re(null),B=re(!1),V=null;function _e(h){D(x,h,!0),D(B,!0),V!==null&&window.clearTimeout(V),V=window.setTimeout(()=>{D(B,!1),D(x,null),V=null},1e3)}async function je(h){await g(),_e(h)}function O(h,C){(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),h.stopPropagation(),je(C))}var Et={get keyPath(){return n()},set keyPath(h=[]){n(h),Ee()},get value(){return r()},set value(h){r(h),Ee()},get name(){return i()},set name(h=null){i(h),Ee()},get collapsed(){return s()},set collapsed(h){s(h),Ee()},get status(){return o()},set status(h="open"){o(h),Ee()}},Ze=ts(),le=pt(Ze);{var pn=h=>{var C=Ts(),pe=ie(C);{var oe=Ie=>{var zt=js(),ae=pt(zt),bn=ie(ae,!0);W(ae);var Bt=ce(ae);{var wn=ge=>{var yn=ks();M(ge,yn)};he(Bt,ge=>{w(B)&&w(x)==="key"&&ge(wn)})}vt(2),Dt(()=>wt(bn,i())),Ke("click",ae,ge=>{ge.stopPropagation(),je("key")}),Ke("keydown",ae,ge=>{ge.stopPropagation(),O(ge,"key")}),M(Ie,zt)};he(pe,Ie=>{i()!==null&&Ie(oe)})}var Te=ce(pe,2),mn=ie(Te,!0);W(Te),W(C),Dt(Ie=>{hs(Te,1,`jn-val ${"jn-"+(typeof r()=="string"?"string":typeof r())}`,"svelte-2u2vu2"),wt(mn,Ie)},[()=>d(r())]),M(h,C)},gn=lt(()=>a(r())),zs=h=>{var C=Ms(),pe=ie(C),oe=ie(pe),Te=ie(oe),mn=ie(Te,!0);W(Te),W(oe);var Ie=ce(oe,2);{var zt=k=>{var ee=Ss(),xe=pt(ee),Vt=ie(xe,!0);W(xe);var $n=ce(xe);{var En=me=>{var kn=xs();M(me,kn)};he($n,me=>{w(B)&&w(x)==="key"&&me(En)})}vt(2),Dt(()=>wt(Vt,i())),Ke("click",xe,me=>{me.stopPropagation(),je("key")}),Ke("keydown",xe,me=>{me.stopPropagation(),O(me,"key")}),M(k,ee)};he(Ie,k=>{i()!==null&&k(zt)})}var ae=ce(Ie,2),bn=ie(ae,!0);W(ae);var Bt=ce(ae);{var wn=k=>{var ee=As();M(k,ee)};he(Bt,k=>{w(B)&&w(x)==="type"&&k(wn)})}var ge=ce(Bt,2);{var yn=k=>{var ee=Ns();M(k,ee)},Bs=lt(()=>u(r())),Vs=k=>{var ee=Cs();ee.textContent="{",M(k,ee)};he(ge,k=>{w(Bs)?k(yn):k(Vs,-1)})}W(pe);var Hs=ce(pe,2);{var qs=k=>{var ee=Rs(),xe=pt(ee);us(xe,21,()=>v(r()),os,(Fe,ft)=>{var Ht=lt(()=>ii(w(ft),2));let Br=()=>w(Ht)[0],Ys=()=>w(Ht)[1];{let Us=lt(()=>[...n(),Br()]),Ws=lt(()=>_(o(),c+1));_n(Fe,{get name(){return Br()},get value(){return Ys()},get keyPath(){return w(Us)},get status(){return o()},get collapsed(){return w(Ws)}})}}),W(xe);var Vt=ce(xe,2),$n=ie(Vt);{var En=Fe=>{var ft=Ps();vt(),M(Fe,ft)},me=lt(()=>u(r())),kn=Fe=>{var ft=Os(),Ht=pt(ft,!0);Ht.nodeValue="}",vt(),M(Fe,ft)};he($n,Fe=>{w(me)?Fe(En):Fe(kn,-1)})}W(Vt),M(k,ee)};he(Hs,k=>{w(p)||k(qs)})}W(C),Dt(k=>{Mr(Te,"aria-label",w(p)?"Espandi":"Comprimi"),Mr(Te,"title",w(p)?"Espandi":"Comprimi"),wt(mn,w(p)?"+":"-"),wt(bn,k)},[()=>f(r())]),Ke("click",Te,k=>{k.stopPropagation(),E()}),Ke("click",ae,k=>{k.stopPropagation(),je("type")}),Ke("keydown",ae,k=>{k.stopPropagation(),O(k,"type")}),M(h,C)};he(le,h=>{w(gn)?h(pn):h(zs,-1)})}return M(e,Ze),Kt(Et)}Xi(["click","keydown"]),Ir(_n,{keyPath:{},value:{},name:{},collapsed:{},status:{}},[],[],{mode:"open"});var Ls=z('<div class="jn-empty svelte-g7b435">No data</div>'),Is=z('<div class="hb-json-viewer svelte-g7b435"><!> <!></div>');const Fs={hash:"svelte-g7b435",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;--jn-key: #6f42c1;--jn-sep: #8b949e;--jn-type: #1f6feb;--jn-bracket: #8b949e;--jn-children-border: rgba(128, 128, 128, .3);--jn-close: #8b949e;--jn-string: #0a7;--jn-number: #d19a66;--jn-boolean: #56b6c2;--jn-undefined: #8b949e;--jn-symbol: #8b949e;--jn-button-border: rgba(128, 128, 128, .3);--jn-button-hover-bg: rgba(128, 128, 128, .1);--jn-popover-text: #0f5132;--jn-popover-bg: #d1e7dd;--jn-popover-border: #badbcc;}
4
4
  /*!
5
5
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
6
6
  * Copyright 2011-2021 The Bootstrap Authors
@@ -56,5 +56,5 @@
56
56
  @media (min-width: 1200px) {
57
57
  }
58
58
  @media (min-width: 1400px) {
59
- }`};function Er(e,t){Jt(t,!0),gr(e,ds);let n=Oe(t,"id",7,""),r=Oe(t,"json",7),i=Oe(t,"status",7,"open");Jn(()=>{if(typeof r()=="string")try{r(JSON.parse(r()))}catch(c){console.error("error parsing json",c)}});var s={get id(){return n()},set id(c=""){n(c),Ee()},get json(){return r()},set json(c){r(c),Ee()},get status(){return i()},set status(c="open"){i(c),Ee()}},a=cs(),l=re(a);{var o=c=>{fn(c,{get value(){return r()},name:null,keyPath:[],get status(){return i()}})},f=c=>{var d=us();P(c,d)};de(l,c=>{r()!==void 0?c(o):c(f,!1)})}var u=oe(l,2);return Fi(u,t,"default",{}),Y(a),P(e,a),Gt(s)}customElements.define("hb-json-viewer",wr(Er,{id:{},json:{},status:{}},["default"],[],!0)),pn.Component=Er,Object.defineProperty(pn,Symbol.toStringTag,{value:"Module"})})(this["json-viewer"]=this["json-viewer"]||{});
59
+ }`};function zr(e,t){Jt(t,!0),Rr(e,Fs);let n=Le(t,"id",7,""),r=Le(t,"json",7),i=Le(t,"status",7,"open");cr(()=>{if(typeof r()=="string")try{r(JSON.parse(r()))}catch(d){console.error("error parsing json",d)}});var s={get id(){return n()},set id(d=""){n(d),Ee()},get json(){return r()},set json(d){r(d),Ee()},get status(){return i()},set status(d="open"){i(d),Ee()}},o=Is(),l=ie(o);{var u=d=>{_n(d,{get value(){return r()},name:null,keyPath:[],get status(){return i()}})},a=d=>{var v=Ls();M(d,v)};he(l,d=>{r()!==void 0?d(u):d(a,-1)})}var f=ce(l,2);return ds(f,t,"default",{}),W(o),M(e,o),Kt(s)}customElements.define("hb-json-viewer",Ir(zr,{id:{},json:{},status:{}},["default"],[],{mode:"open"})),jn.Component=zr,Object.defineProperty(jn,Symbol.toStringTag,{value:"Module"})})(this["json-viewer"]=this["json-viewer"]||{});
60
60
  //# sourceMappingURL=main.iife.js.map