@htmlbricks/hb-json-viewer 0.65.23 → 0.66.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +5 -5
- package/main.iife.js.map +1 -1
- package/manifest.json +43 -43
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
(function(_r){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const xn=1,jn=2,Tn=16,Sn=1,An=4,Cn=8,Nn=16,Pn=1,On=2,pr="[",_t="[!",Bt="]",Je={},A=Symbol(),Rn="http://www.w3.org/1999/xhtml",qt=!1;var br=Array.isArray,Mn=Array.prototype.indexOf,Ut=Array.from,pt=Object.keys,bt=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,Dn=Object.getOwnPropertyDescriptors,Ln=Object.prototype,In=Array.prototype,gr=Object.getPrototypeOf,mr=Object.isExtensible;function Fn(e){for(var t=0;t<e.length;t++)e[t]()}function yr(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}function Bn(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const r=[];for(const n of e)if(r.push(n),r.length===t)break;return r}const S=2,Vt=4,Ht=8,ge=16,me=32,Ae=64,gt=128,te=512,C=1024,I=2048,ye=4096,U=8192,we=16384,mt=32768,Ge=65536,wr=1<<17,$r=1<<18,Ie=1<<19,qn=1<<20,Fe=32768,Yt=1<<21,zt=1<<22,Ce=1<<23,yt=Symbol("$state"),Er=Symbol("legacy props"),Un=Symbol(""),Ke=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Wt=3,Xe=8;function Vn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Hn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Yn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function zn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Wn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Jn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Gn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Kn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Xn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Zn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Qn(){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 m=!1;function $e(e){m=e}let y;function F(e){if(e===null)throw wt(),Je;return y=e}function it(){return F(oe(y))}function Y(e){if(m){if(oe(y)!==null)throw wt(),Je;y=e}}function st(e=1){if(m){for(var t=e,r=y;t--;)r=oe(r);y=r}}function $t(e=!0){for(var t=0,r=y;;){if(r.nodeType===Xe){var n=r.data;if(n===Bt){if(t===0)return r;t-=1}else(n===pr||n===_t)&&(t+=1)}var i=oe(r);e&&r.remove(),r=i}}function kr(e){if(!e||e.nodeType!==Xe)throw wt(),Je;return e.data}function xr(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 jr(e){return!ti(e,this.v)}let ri=!1,z=null;function Ze(e){z=e}function Jt(e,t=!1,r){z={p:z,i:!1,c:null,e:null,s:e,x:null,l:null}}function Gt(e){var t=z,r=t.e;if(r!==null){t.e=null;for(var n of r)Jr(n)}return e!==void 0&&(t.x=e),t.i=!0,z=t.p,e??{}}function Tr(){return!0}let Be=[];function Sr(){var e=Be;Be=[],Fn(e)}function Kt(e){if(Be.length===0&&!at){var t=Be;queueMicrotask(()=>{t===Be&&Sr()})}Be.push(e)}function ni(){for(;Be.length>0;)Sr()}function Ar(e){var t=b;if(t===null)return p.f|=Ce,e;if((t.f&mt)===0){if((t.f>)===0)throw e;t.b.error(e)}else Qe(e,t)}function Qe(e,t){for(;t!==null;){if((t.f>)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Et=new Set;let k=null,W=null,J=[],kt=null,Xt=!1,at=!1;class re{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){J=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#a(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects)):(k=null,Nr(r.render_effects),Nr(r.effects),this.#l?.resolve()),W=null}#a(t,r){t.f^=C;for(var n=t.first;n!==null;){var i=n.f,s=(i&(me|Ae))!==0,a=s&&(i&C)!==0,o=a||(i&U)!==0||this.skipped_effects.has(n);if((n.f>)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!o&&n.fn!==null){s?n.f^=C:(i&Vt)!==0?r.effects.push(n):ct(n)&&((n.f&ge)!==0&&r.block_effects.push(n),dt(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#o(t){for(const r of t)((r.f&I)!==0?this.#s:this.#i).push(r),this.#f(r.deps),N(r,C)}#f(t){if(t!==null)for(const r of t)(r.f&S)===0||(r.f&Fe)===0||(r.f^=Fe,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(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(Cr(),k!==null&&k!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Et.size>1){this.previous.clear();var t=W,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Et){if(s===this){r=!1;continue}const a=[];for(const[l,f]of this.current){if(s.current.has(l))if(r&&f!==s.current.get(l))s.current.set(l,f);else continue;a.push(l)}if(a.length===0)continue;const o=[...s.current.keys()].filter(l=>!this.current.has(l));if(o.length>0){var i=J;J=[];const l=new Set,f=new Map;for(const u of a)Pr(u,o,l,f);if(J.length>0){k=s,s.apply();for(const u of J)s.#a(u,n);s.deactivate()}J=i}}k=null,W=t}this.committed=!0,Et.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)N(t,I),qe(t);for(const t of this.#i)N(t,ye),qe(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=yr()).promise}static ensure(){if(k===null){const t=k=new re;Et.add(k),at||re.enqueue(()=>{k===t&&t.flush()})}return k}static enqueue(t){Kt(t)}apply(){}}function Ee(e){var t=at;at=!0;try{for(var r;;){if(ni(),J.length===0&&(k?.flush(),J.length===0))return kt=null,r;Cr()}}finally{at=t}}function Cr(){var e=Oe;Xt=!0;var t=null;try{var r=0;for(At(!0);J.length>0;){var n=re.ensure();if(r++>1e3){var i,s;ii()}n.process(J),Ne.clear()}}finally{Xt=!1,At(e),kt=null}}function ii(){try{Wn()}catch(e){Qe(e,kt)}}let ke=null;function Nr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(we|U))===0&&ct(n)&&(ke=new Set,dt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Zr(n):n.fn=null),ke?.size>0)){Ne.clear();for(const i of ke){if((i.f&(we|U))!==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 o=s.length-1;o>=0;o--){const l=s[o];(l.f&(we|U))===0&&dt(l)}}ke.clear()}}ke=null}}function Pr(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&S)!==0?Pr(i,t,r,n):(s&(zt|ge))!==0&&(s&I)===0&&Or(i,t,n)&&(N(i,I),qe(i))}}function Or(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&S)!==0&&Or(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function qe(e){for(var t=kt=e;t.parent!==null;){t=t.parent;var r=t.f;if(Xt&&t===b&&(r&ge)!==0&&(r&$r)===0)return;if((r&(Ae|me))!==0){if((r&C)===0)return;t.f^=C}}J.push(t)}function si(e){let t=0,r=Ue(0),n;return()=>{Tt()&&(w(r),Gr(()=>(t===0&&(n=dn(()=>e(()=>lt(r)))),t+=1,()=>{Kt(()=>{t-=1,t===0&&(n?.(),n=void 0,lt(r))})})))}}var ai=Ge|Ie|gt;function oi(e,t,r){new li(e,t,r)}class li{parent;#t=!1;#e;#r=m?y:null;#n;#l;#s;#i=null;#a=null;#o=null;#f=null;#u=null;#c=0;#d=0;#h=!1;#v=null;#m=si(()=>(this.#v=Ue(this.#c),()=>{this.#v=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=b.b,this.#t=!!this.#n.pending,this.#s=nr(()=>{if(b.b=this,m){const s=this.#r;it(),s.nodeType===Xe&&s.data===_t?this.#w():this.#y()}else{var i=this.#b();try{this.#i=X(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},ai),m&&(this.#e=y)}#y(){try{this.#i=X(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#n.pending;t&&(this.#a=X(()=>t(this.#e)),re.enqueue(()=>{var r=this.#b();this.#i=this.#_(()=>(re.ensure(),X(()=>this.#l(r)))),this.#d>0?this.#p():(et(this.#a,()=>{this.#a=null}),this.#t=!1)}))}#b(){var t=this.#e;return this.#t&&(this.#u=K(),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.#n.pending}#_(t){var r=b,n=p,i=z;ce(this.#s),B(this.#s),Ze(this.#s.ctx);try{return t()}catch(s){return Ar(s),null}finally{ce(r),B(n),Ze(i)}}#p(){const t=this.#n.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),tn(this.#i,this.#f)),this.#a===null&&(this.#a=X(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(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.#g(t),this.#c+=t,this.#v&&ot(this.#v,this.#c)}get_effect_pending(){return this.#m(),w(this.#v)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#h||!r&&!n)throw t;this.#i&&(R(this.#i),this.#i=null),this.#a&&(R(this.#a),this.#a=null),this.#o&&(R(this.#o),this.#o=null),m&&(F(this.#r),st(),F($t()));var i=!1,s=!1;const a=()=>{if(i){ei();return}i=!0,s&&Qn(),re.ensure(),this.#c=0,this.#o!==null&&et(this.#o,()=>{this.#o=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#h=!1,X(()=>this.#l(this.#e)))),this.#d>0?this.#p():this.#t=!1};var o=p;try{B(null),s=!0,r?.(t,a),s=!1}catch(l){Qe(l,this.#s&&this.#s.parent)}finally{B(o)}n&&Kt(()=>{this.#o=this.#_(()=>{re.ensure(),this.#h=!0;try{return X(()=>{n(this.#e,()=>t,()=>a)})}catch(l){return Qe(l,this.#s.parent),null}finally{this.#h=!1}})})}}function fi(e,t){return t}function ui(e,t,r){for(var n=[],i=t.length,s=0;s<i;s++)ir(t[s].e,n,!0);Qr(n,()=>{var a=n.length===0&&r!==null;if(a){var o=r,l=o.parentNode;Hr(l),l.append(o),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,r,n,i,s=null){var a=e,o=new Map,l=null;{var f=e;a=m?F(Ve(f)):f.appendChild(K())}m&&it();var u=null,c=Rr(()=>{var x=r();return br(x)?x:x==null?[]:Ut(x)}),d,v=!0;function _(){di(j,d,a,t,n),u!==null&&(d.length===0?(u.fragment?(a.before(u.fragment),u.fragment=null):sr(u.effect),g.first=u.effect):et(u.effect,()=>{u=null}))}var g=nr(()=>{d=w(c);var x=d.length;let $=!1;if(m){var D=kr(a)===_t;D!==(x===0)&&(a=$t(),F(a),$e(!1),$=!0)}for(var L=new Set,H=k,Me=null,je=Yr(),ve=0;ve<x;ve+=1){m&&y.nodeType===Xe&&y.data===Bt&&(a=y,$=!0,$e(!1));var ht=d[ve],We=n(ht,ve),Q=v?null:o.get(We);Q?(ot(Q.v,ht),Q.i=ve,je&&H.skipped_effects.delete(Q.e)):(Q=vi(v?a:null,Me,ht,We,ve,i,t,r),v&&(Q.o=!0,Me===null?l=Q:Me.next=Q,Me=Q),o.set(We,Q)),L.add(We)}if(x===0&&s&&!u)if(v)u={fragment:null,effect:X(()=>s(a))};else{var Rt=document.createDocumentFragment(),Mt=K();Rt.append(Mt),u={fragment:Rt,effect:X(()=>s(Mt))}}if(m&&x>0&&F($t()),!v)if(je){for(const[h,T]of o)L.has(h)||H.skipped_effects.add(T.e);H.oncommit(_),H.ondiscard(()=>{})}else _();$&&$e(!0),w(c)}),j={effect:g,items:o,first:l};v=!1,m&&(a=y)}function di(e,t,r,n,i){var s=t.length,a=e.items,o=e.first,l,f=null,u=[],c=[],d,v,_,g;for(g=0;g<s;g+=1){if(d=t[g],v=i(d,g),_=a.get(v),e.first??=_,!_.o){_.o=!0;var j=f?f.next:o;ae(e,f,_),ae(e,_,j),Zt(_,j,r),f=_,u=[],c=[],o=f.next;continue}if((_.e.f&U)!==0&&sr(_.e),_!==o){if(l!==void 0&&l.has(_)){if(u.length<c.length){var x=c[0],$;f=x.prev;var D=u[0],L=u[u.length-1];for($=0;$<u.length;$+=1)Zt(u[$],x,r);for($=0;$<c.length;$+=1)l.delete(c[$]);ae(e,D.prev,L.next),ae(e,f,D),ae(e,L,x),o=x,f=L,g-=1,u=[],c=[]}else l.delete(_),Zt(_,o,r),ae(e,_.prev,_.next),ae(e,_,f===null?e.first:f.next),ae(e,f,_),f=_;continue}for(u=[],c=[];o!==null&&o.k!==v;)(o.e.f&U)===0&&(l??=new Set).add(o),c.push(o),o=o.next;if(o===null)continue;_=o}u.push(_),f=_,o=_.next}if(o!==null||l!==void 0){for(var H=l===void 0?[]:Ut(l);o!==null;)(o.e.f&U)===0&&H.push(o),o=o.next;var Me=H.length;if(Me>0){var je=s===0?r:null;ui(e,H,je)}}}function vi(e,t,r,n,i,s,a,o){var l=(a&xn)!==0,f=(a&Tn)===0,u=l?f?Ir(r,!1,!1):Ue(r):r,c=(a&jn)===0?i:Ue(i),d={i:c,v:u,k:n,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var v=document.createDocumentFragment();v.append(e=K())}return d.e=X(()=>s(e,u,c,o)),t!==null&&(t.next=d),d}finally{}}function Zt(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=oe(s);i.before(s),s=a}}function ae(e,t,r){t===null?(e.first=r,e.effect.first=r&&r.e):(t.e.next&&(t.e.next.prev=null),t.next=r,t.e.next=r&&r.e),r===null?e.effect.last=t&&t.e:(r.e.prev&&(r.e.prev.next=null),r.prev=t,r.e.prev=t&&t.e)}function hi(e,t,r,n){const i=jt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=k,a=b,o=_i();function l(){Promise.all(r.map(f=>pi(f))).then(f=>{o();try{n([...t.map(i),...f])}catch(u){(a.f&we)===0&&Qe(u,a)}s?.deactivate(),xt()}).catch(f=>{Qe(f,a)})}e.length>0?Promise.all(e).then(()=>{o();try{return l()}finally{s?.deactivate(),xt()}}):l()}function _i(){var e=b,t=p,r=z,n=k;return function(s=!0){ce(e),B(t),Ze(r),s&&n?.activate()}}function xt(){ce(null),B(null),Ze(null)}function jt(e){var t=S|I,r=p!==null&&(p.f&S)!==0?p:null;return b!==null&&(b.f|=Ie),{ctx:z,deps:null,effects:null,equals:xr,f:t,fn:e,reactions:null,rv:0,v:A,wv:0,parent:r??b,ac:null}}function pi(e,t){let r=b;r===null&&Vn();var n=r.b,i=void 0,s=Ue(A),a=!p,o=new Map;return xi(()=>{var l=yr();i=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===k&&f.committed&&f.deactivate(),xt()})}catch(d){l.reject(d),xt()}var f=k;if(a){var u=!n.is_pending();n.update_pending_count(1),f.increment(u),o.get(f)?.reject(Ke),o.delete(f),o.set(f,l)}const c=(d,v=void 0)=>{if(f.activate(),v)v!==Ke&&(s.f|=Ce,ot(s,v));else{(s.f&Ce)!==0&&(s.f^=Ce),ot(s,d);for(const[_,g]of o){if(o.delete(_),_===f)break;g.reject(Ke)}}a&&(n.update_pending_count(-1),f.decrement(u))};l.promise.then(c,d=>c(null,d||"unknown"))}),wi(()=>{for(const l of o.values())l.reject(Ke)}),new Promise(l=>{function f(u){function c(){u===i?l(s):f(i)}u.then(c,c)}f(i)})}function Qt(e){const t=jt(e);return nn(t),t}function Rr(e){const t=jt(e);return t.equals=jr,t}function Mr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)R(t[r])}}function bi(e){for(var t=e.parent;t!==null;){if((t.f&S)===0)return(t.f&we)===0?t:null;t=t.parent}return null}function er(e){var t,r=b;ce(bi(e));try{e.f&=~Fe,Mr(e),t=fn(e)}finally{ce(r)}return t}function Dr(e){var t=er(e);if(e.equals(t)||(k?.is_fork||(e.v=t),e.wv=on()),!He)if(W!==null)Tt()&&W.set(e,t);else{var r=(e.f&te)===0?ye:C;N(e,r)}}let tr=new Set;const Ne=new Map;let Lr=!1;function Ue(e,t){var r={f:0,v:e,reactions:null,equals:xr,rv:0,wv:0};return r}function G(e,t){const r=Ue(e);return nn(r),r}function Ir(e,t=!1,r=!0){const n=Ue(e);return t||(n.equals=jr),n}function O(e,t,r=!1){p!==null&&(!ue||(p.f&wr)!==0)&&Tr()&&(p.f&(S|ge|zt|wr))!==0&&!xe?.includes(e)&&Zn();let n=r?Pe(t):t;return ot(e,n)}function ot(e,t){if(!e.equals(t)){var r=e.v;He?Ne.set(e,t):Ne.set(e,r),e.v=t;var n=re.ensure();n.capture(e,r),(e.f&S)!==0&&((e.f&I)!==0&&er(e),N(e,(e.f&te)!==0?C:ye)),e.wv=on(),Fr(e,I),b!==null&&(b.f&C)!==0&&(b.f&(me|Ae))===0&&(Z===null?Si([e]):Z.push(e)),!n.is_fork&&tr.size>0&&!Lr&&gi()}return t}function gi(){Lr=!1;var e=Oe;At(!0);const t=Array.from(tr);try{for(const r of t)(r.f&C)!==0&&N(r,ye),ct(r)&&dt(r)}finally{At(e)}tr.clear()}function lt(e){O(e,e.v+1)}function Fr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&I)===0;if(o&&N(s,t),(a&S)!==0){var l=s;W?.delete(l),(a&Fe)===0&&(a&te&&(s.f|=Fe),Fr(l,ye))}else o&&((a&ge)!==0&&ke!==null&&ke.add(s),qe(s))}}function Pe(e){if(typeof e!="object"||e===null||yt in e)return e;const t=gr(e);if(t!==Ln&&t!==In)return e;var r=new Map,n=br(e),i=G(0),s=Ye,a=o=>{if(Ye===s)return o();var l=p,f=Ye;B(null),an(s);var u=o();return B(l),an(f),u};return n&&r.set("length",G(e.length)),new Proxy(e,{defineProperty(o,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Kn();var u=r.get(l);return u===void 0?u=a(()=>{var c=G(f.value);return r.set(l,c),c}):O(u,f.value,!0),!0},deleteProperty(o,l){var f=r.get(l);if(f===void 0){if(l in o){const u=a(()=>G(A));r.set(l,u),lt(i)}}else O(f,A),lt(i);return!0},get(o,l,f){if(l===yt)return e;var u=r.get(l),c=l in o;if(u===void 0&&(!c||Le(o,l)?.writable)&&(u=a(()=>{var v=Pe(c?o[l]:A),_=G(v);return _}),r.set(l,u)),u!==void 0){var d=w(u);return d===A?void 0:d}return Reflect.get(o,l,f)},getOwnPropertyDescriptor(o,l){var f=Reflect.getOwnPropertyDescriptor(o,l);if(f&&"value"in f){var u=r.get(l);u&&(f.value=w(u))}else if(f===void 0){var c=r.get(l),d=c?.v;if(c!==void 0&&d!==A)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(o,l){if(l===yt)return!0;var f=r.get(l),u=f!==void 0&&f.v!==A||Reflect.has(o,l);if(f!==void 0||b!==null&&(!u||Le(o,l)?.writable)){f===void 0&&(f=a(()=>{var d=u?Pe(o[l]):A,v=G(d);return v}),r.set(l,f));var c=w(f);if(c===A)return!1}return u},set(o,l,f,u){var c=r.get(l),d=l in o;if(n&&l==="length")for(var v=f;v<c.v;v+=1){var _=r.get(v+"");_!==void 0?O(_,A):v in o&&(_=a(()=>G(A)),r.set(v+"",_))}if(c===void 0)(!d||Le(o,l)?.writable)&&(c=a(()=>G(void 0)),O(c,Pe(f)),r.set(l,c));else{d=c.v!==A;var g=a(()=>Pe(f));O(c,g)}var j=Reflect.getOwnPropertyDescriptor(o,l);if(j?.set&&j.set.call(u,f),!d){if(n&&typeof l=="string"){var x=r.get("length"),$=Number(l);Number.isInteger($)&&$>=x.v&&O(x,$+1)}lt(i)}return!0},ownKeys(o){w(i);var l=Reflect.ownKeys(o).filter(c=>{var d=r.get(c);return d===void 0||d.v!==A});for(var[f,u]of r)u.v!==A&&!(f in o)&&l.push(f);return l},setPrototypeOf(){Xn()}})}var Br,qr,Ur,Vr;function rr(){if(Br===void 0){Br=window,qr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ur=Le(t,"firstChild").get,Vr=Le(t,"nextSibling").get,mr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),mr(r)&&(r.__t=void 0)}}function K(e=""){return document.createTextNode(e)}function Ve(e){return Ur.call(e)}function oe(e){return Vr.call(e)}function ne(e,t){if(!m)return Ve(e);var r=Ve(y);if(r===null)r=y.appendChild(K());else if(t&&r.nodeType!==Wt){var n=K();return r?.before(n),F(n),n}return F(r),r}function ft(e,t=!1){if(!m){var r=Ve(e);return r instanceof Comment&&r.data===""?oe(r):r}if(t&&y?.nodeType!==Wt){var n=K();return y?.before(n),F(n),n}return y}function le(e,t=1,r=!1){let n=m?y:e;for(var i;t--;)i=n,n=oe(n);if(!m)return n;if(r&&n?.nodeType!==Wt){var s=K();return n===null?i?.after(s):n.before(s),F(s),s}return F(n),n}function Hr(e){e.textContent=""}function Yr(){return!1}function zr(e){var t=p,r=b;B(null),ce(null);try{return e()}finally{B(t),ce(r)}}function mi(e){b===null&&(p===null&&zn(),Yn()),He&&Hn()}function yi(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function fe(e,t,r){var n=b;n!==null&&(n.f&U)!==0&&(e|=U);var i={ctx:z,deps:null,nodes_start:null,nodes_end:null,f:e|I|te,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{dt(i),i.f|=mt}catch(o){throw R(i),o}else t!==null&&qe(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&Ie)===0&&(s=s.first,(e&ge)!==0&&(e&Ge)!==0&&s!==null&&(s.f|=Ge)),s!==null&&(s.parent=n,n!==null&&yi(s,n),p!==null&&(p.f&S)!==0&&(e&Ae)===0)){var a=p;(a.effects??=[]).push(s)}return i}function Tt(){return p!==null&&!ue}function wi(e){const t=fe(Ht,null,!1);return N(t,C),t.teardown=e,t}function Wr(e){mi();var t=b.f,r=!p&&(t&me)!==0&&(t&mt)===0;if(r){var n=z;(n.e??=[]).push(e)}else return Jr(e)}function Jr(e){return fe(Vt|qn,e,!1)}function $i(e){re.ensure();const t=fe(Ae|Ie,e,!0);return()=>{R(t)}}function Ei(e){re.ensure();const t=fe(Ae|Ie,e,!0);return(r={})=>new Promise(n=>{r.outro?et(t,()=>{R(t),n(void 0)}):(R(t),n(void 0))})}function ki(e){return fe(Vt,e,!1)}function xi(e){return fe(zt|Ie,e,!0)}function Gr(e,t=0){return fe(Ht|t,e,!0)}function St(e,t=[],r=[],n=[]){hi(n,t,r,i=>{fe(Ht,()=>e(...i.map(w)),!0)})}function nr(e,t=0){var r=fe(ge|t,e,!0);return r}function X(e){return fe(me|Ie,e,!0)}function Kr(e){var t=e.teardown;if(t!==null){const r=He,n=p;rn(!0),B(null);try{t.call(null)}finally{rn(r),B(n)}}}function Xr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&zr(()=>{i.abort(Ke)});var n=r.next;(r.f&Ae)!==0?r.parent=null:R(r,t),r=n}}function ji(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&me)===0&&R(t),t=r}}function R(e,t=!0){var r=!1;(t||(e.f&$r)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Ti(e.nodes_start,e.nodes_end),r=!0),Xr(e,t&&!r),Ct(e,0),N(e,we);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Kr(e);var i=e.parent;i!==null&&i.first!==null&&Zr(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 r=e===t?null:oe(e);e.remove(),e=r}}function Zr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function et(e,t,r=!0){var n=[];ir(e,n,!0),Qr(n,()=>{r&&R(e),t&&t()})}function Qr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function ir(e,t,r){if((e.f&U)===0){if(e.f^=U,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Ge)!==0||(n.f&me)!==0&&(e.f&ge)!==0;ir(n,t,s?r:!1),n=i}}}function sr(e){en(e,!0)}function en(e,t){if((e.f&U)!==0){e.f^=U,(e.f&C)===0&&(N(e,I),qe(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Ge)!==0||(r.f&me)!==0;en(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function tn(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:oe(r);t.append(r),r=i}}let Oe=!1;function At(e){Oe=e}let He=!1;function rn(e){He=e}let p=null,ue=!1;function B(e){p=e}let b=null;function ce(e){b=e}let xe=null;function nn(e){p!==null&&(xe===null?xe=[e]:xe.push(e))}let M=null,V=0,Z=null;function Si(e){Z=e}let sn=1,ut=0,Ye=ut;function an(e){Ye=e}function on(){return++sn}function ct(e){var t=e.f;if((t&I)!==0)return!0;if(t&S&&(e.f&=~Fe),(t&ye)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(ct(s)&&Dr(s),s.wv>e.wv)return!0}(t&te)!==0&&W===null&&N(e,C)}return!1}function ln(e,t,r=!0){var n=e.reactions;if(n!==null&&!xe?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&S)!==0?ln(s,t,!1):t===s&&(r?N(s,I):(s.f&C)!==0&&N(s,ye),qe(s))}}function fn(e){var t=M,r=V,n=Z,i=p,s=xe,a=z,o=ue,l=Ye,f=e.f;M=null,V=0,Z=null,p=(f&(me|Ae))===0?e:null,xe=null,Ze(e.ctx),ue=!1,Ye=++ut,e.ac!==null&&(zr(()=>{e.ac.abort(Ke)}),e.ac=null);try{e.f|=Yt;var u=e.fn,c=u(),d=e.deps;if(M!==null){var v;if(Ct(e,V),d!==null&&V>0)for(d.length=V+M.length,v=0;v<M.length;v++)d[V+v]=M[v];else e.deps=d=M;if(Oe&&Tt()&&(e.f&te)!==0)for(v=V;v<d.length;v++)(d[v].reactions??=[]).push(e)}else d!==null&&V<d.length&&(Ct(e,V),d.length=V);if(Tr()&&Z!==null&&!ue&&d!==null&&(e.f&(S|ye|I))===0)for(v=0;v<Z.length;v++)ln(Z[v],e);return i!==null&&i!==e&&(ut++,Z!==null&&(n===null?n=Z:n.push(...Z))),(e.f&Ce)!==0&&(e.f^=Ce),c}catch(_){return Ar(_)}finally{e.f^=Yt,M=t,V=r,Z=n,p=i,xe=s,Ze(a),ue=o,Ye=l}}function Ai(e,t){let r=t.reactions;if(r!==null){var n=Mn.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&S)!==0&&(M===null||!M.includes(t))&&(N(t,ye),(t.f&te)!==0&&(t.f^=te,t.f&=~Fe),Mr(t),Ct(t,0))}function Ct(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Ai(e,r[n])}function dt(e){var t=e.f;if((t&we)===0){N(e,C);var r=b,n=Oe;b=e,Oe=!0;try{(t&ge)!==0?ji(e):Xr(e),Kr(e);var i=fn(e);e.teardown=typeof i=="function"?i:null,e.wv=sn;var s;qt&&ri&&(e.f&I)!==0&&e.deps}finally{Oe=n,b=r}}}function w(e){var t=e.f,r=(t&S)!==0;if(p!==null&&!ue){var n=b!==null&&(b.f&we)!==0;if(!n&&!xe?.includes(e)){var i=p.deps;if((p.f&Yt)!==0)e.rv<ut&&(e.rv=ut,M===null&&i!==null&&i[V]===e?V++:M===null?M=[e]:M.includes(e)||M.push(e));else{(p.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[p]:s.includes(p)||s.push(p)}}}if(He){if(Ne.has(e))return Ne.get(e);if(r){var a=e,o=a.v;return((a.f&C)===0&&a.reactions!==null||cn(a))&&(o=er(a)),Ne.set(a,o),o}}else r&&!W?.has(e)&&(a=e,ct(a)&&Dr(a),Oe&&Tt()&&(a.f&te)===0&&un(a));if(W?.has(e))return W.get(e);if((e.f&Ce)!==0)throw e.v;return e.v}function un(e){if(e.deps!==null){e.f^=te;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&S)!==0&&(t.f&te)===0&&un(t)}}function cn(e){if(e.v===A)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ne.has(t)||(t.f&S)!==0&&cn(t))return!0;return!1}function dn(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 vn=new Set,ar=new Set;function Ni(e){for(var t=0;t<e.length;t++)vn.add(e[t]);for(var r of ar)r(e)}let hn=null;function Nt(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;hn=e;var a=0,o=hn===e&&e.__root;if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;l<=f&&(a=l)}if(s=i[a]||e.target,s!==t){bt(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=p,c=b;B(null),ce(null);try{for(var d,v=[];s!==null;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var g=s["__"+n];g!=null&&(!s.disabled||e.target===s)&&g.call(s,e)}catch(j){d?v.push(j):d=j}if(e.cancelBubble||_===t||_===null)break;s=_}if(d){for(let j of v)queueMicrotask(()=>{throw j});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 r=b;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function q(e,t){var r=(t&Pn)!==0,n=(t&On)!==0,i,s=!e.startsWith("<!>");return()=>{if(m)return tt(y,null),y;i===void 0&&(i=Pi(s?e:"<!>"+e),r||(i=Ve(i)));var a=n||qr?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=Ve(a),l=a.lastChild;tt(o,l)}else tt(a,a);return a}}function Oi(){if(m)return tt(y,null),y;var e=document.createDocumentFragment(),t=document.createComment(""),r=K();return e.append(t,r),tt(t,r),e}function P(e,t){if(m){var r=b;((r.f&mt)===0||r.nodes_end===null)&&(r.nodes_end=y),it();return}e!==null&&e.before(t)}const Ri=["touchstart","touchmove"];function Mi(e){return Ri.includes(e)}function vt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function _n(e,t){return pn(e,t)}function Di(e,t){rr(),t.intro=t.intro??!1;const r=t.target,n=m,i=y;try{for(var s=Ve(r);s&&(s.nodeType!==Xe||s.data!==pr);)s=oe(s);if(!s)throw Je;$e(!0),F(s);const a=pn(e,{...t,anchor:s});return $e(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Je&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Jn(),rr(),Hr(r),$e(!1),_n(e,t)}finally{$e(n),F(i)}}const rt=new Map;function pn(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){rr();var o=new Set,l=c=>{for(var d=0;d<c.length;d++){var v=c[d];if(!o.has(v)){o.add(v);var _=Mi(v);t.addEventListener(v,Nt,{passive:_});var g=rt.get(v);g===void 0?(document.addEventListener(v,Nt,{passive:_}),rt.set(v,1)):rt.set(v,g+1)}}};l(Ut(vn)),ar.add(l);var f=void 0,u=Ei(()=>{var c=r??t.appendChild(K());return oi(c,{pending:()=>{}},d=>{if(s){Jt({});var v=z;v.c=s}if(i&&(n.$$events=i),m&&tt(d,null),f=e(d,n)||{},m&&(b.nodes_end=y,y===null||y.nodeType!==Xe||y.data!==Bt))throw wt(),Je;s&&Gt()}),()=>{for(var d of o){t.removeEventListener(d,Nt);var v=rt.get(d);--v===0?(document.removeEventListener(d,Nt),rt.delete(d)):rt.set(d,v)}ar.delete(l),c!==r&&c.parentNode?.removeChild(c)}});return or.set(f,u),f}let or=new WeakMap;function Li(e,t){const r=or.get(e);return r?(or.delete(e),r(t)):Promise.resolve()}class Ii{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,r=!0){this.anchor=t,this.#l=r}#s=()=>{var t=k;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)sr(n),this.#n.delete(r);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of this.#t){if(this.#t.delete(s),s===t)break;const o=this.#r.get(a);o&&(R(o.effect),this.#r.delete(a))}for(const[s,a]of this.#e){if(s===r||this.#n.has(s))continue;const o=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();tn(a,f),f.append(K()),this.#r.set(s,{effect:a,fragment:f})}else R(a);this.#n.delete(s),this.#e.delete(s)};this.#l||!n?(this.#n.add(s),et(a,o,!1)):o()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(R(i.effect),this.#r.delete(n))};ensure(t,r){var n=k,i=Yr();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),a=K();s.append(a),this.#r.set(t,{effect:X(()=>r(a)),fragment:s})}else this.#e.set(t,X(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[o,l]of this.#e)o===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[o,l]of this.#r)o===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else m&&(this.anchor=y),this.#s()}}function de(e,t,r=!1){m&&it();var n=new Ii(e),i=r?Ge:0;function s(a,o){if(m){const f=kr(e)===_t;if(a===f){var l=$t();F(l),n.anchor=l,$e(!1),n.ensure(a,o),$e(!0);return}}n.ensure(a,o)}nr(()=>{var a=!1;t((o,l=!0)=>{a=!0,s(l,o)}),a||s(!1,null)},i)}function Fi(e,t,r,n,i){m&&it();var s=t.$$slots?.[r],a=!1;s===!0&&(s=t.children,a=!0),s===void 0||s(e,a?()=>n:n)}function bn(e,t){ki(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Bi(e,t,r){var n=e==null?"":""+e;return n=n?n+" "+t:t,n===""?null:n}function qi(e,t,r,n,i,s){var a=e.__className;if(m||a!==r||a===void 0){var o=Bi(r,n);(!m||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return s}const Ui=Symbol("is custom element"),Vi=Symbol("is html");function gn(e,t,r,n){var i=Hi(e);m&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Un]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Yi(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Hi(e){return e.__attributes??={[Ui]:e.nodeName.includes("-"),[Vi]:e.namespaceURI===Rn}}var mn=new Map;function Yi(e){var t=e.getAttribute("is")||e.nodeName,r=mn.get(t);if(r)return r;mn.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Dn(i);for(var a in n)n[a].set&&r.push(a);i=gr(i)}return r}let Pt=!1;function zi(e){var t=Pt;try{return Pt=!1,[e(),Pt]}finally{Pt=t}}function Re(e,t,r,n){var i=(r&Cn)!==0,s=(r&Nn)!==0,a=n,o=!0,l=()=>(o&&(o=!1,a=s?dn(n):n),a),f;if(i){var u=yt in e||Er in e;f=Le(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&&n!==void 0&&(c=l(),f&&(Gn(),f(c)));var v;if(v=()=>{var $=e[t];return $===void 0?l():(o=!0,$)},(r&An)===0)return v;if(f){var _=e.$$legacy;return(function($,D){return arguments.length>0?((!D||_||d)&&f(D?v():$),$):v()})}var g=!1,j=((r&Sn)!==0?jt:Rr)(()=>(g=!1,v()));i&&w(j);var x=b;return(function($,D){if(arguments.length>0){const L=D?w(j):i?Pe($):$;return O(j,L),g=!0,a!==void 0&&(a=L),$}return He&&g||(x.f&we)!==0?j.v:w(j)})}function Wi(e){return new Ji(e)}class Ji{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var o=Ir(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return w(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Er?!0:(w(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return O(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#e=(t.hydrate?Di:_n)(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"||bt(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,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let yn;typeof HTMLElement=="function"&&(yn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),P(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Gi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Ot(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Wi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=$i(()=>{Gr(()=>{this.$$r=!0;for(const n of pt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Ot(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ot(e,r,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,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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(r=>{t[r.slot||"default"]=!0}),t}function wn(e,t,r,n,i,s){let a=class extends yn{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return pt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return pt(t).forEach(o=>{bt(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=Ot(o,l,t),this.$$d[o]=l;var f=this.$$c;if(f){var u=Le(f,o)?.get;u?f[o]=l:f.$set({[o]:l})}}})}),n.forEach(o=>{bt(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}var ze={},$n;function Ki(){if($n)return ze;$n=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.LanguageTranslator=void 0,ze.getChildStyleToPass=e,ze.addComponent=t;function e(n,i){var s,a,o="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(d){return Object.keys(n).includes(d.name)}))===null||a===void 0)&&a.length))for(var l=function(d){var v=i?.filter(function(_){return _.name===d&&_.defaultValue!==n[d]});v&&(o+="".concat(d,":").concat(n[d],";"))},f=0,u=Object.keys(n);f<u.length;f++){var c=u[f];l(c)}}catch(d){console.error("error getting child style to pass",d)}finally{return o}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var a=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(l+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(f){console.warn(f)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,o="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)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},n.getDictionaryWord=function(i,s,a){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((o=s[a])===null||o===void 0)&&o[i]))return s[a][i];var l="",f=n.getDefaultLang();if(!a||f!==a){var u=s?.[f];u?.[i]&&(l=u[i])}return l},n.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 o=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return o.format(i)},n})();return ze.LanguageTranslator=r,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),rs=q('<span class="jn-popover svelte-2u2vu2">copied</span>'),ns=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),os=q('<div class="jn-children svelte-2u2vu2"></div> <div class="jn-close svelte-2u2vu2"><!></div>',1),ls=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
|
|
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&>(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
|
|
7
7
|
* Copyright 2011-2021 Twitter, Inc.
|
|
8
8
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
9
|
-
|
|
9
|
+
*/.svelte-g7b435,
|
|
10
10
|
.svelte-g7b435::before,
|
|
11
11
|
.svelte-g7b435::after {box-sizing:border-box;}
|
|
12
12
|
@media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
@media (min-width: 1200px) {
|
|
57
57
|
}
|
|
58
58
|
@media (min-width: 1400px) {
|
|
59
|
-
}`};function
|
|
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
|