@htmlbricks/hb-skeleton-component 0.62.0 → 0.62.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 CHANGED
@@ -1,5 +1,5 @@
1
- (function(ht){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const hr=2,dt="[",_t="[!",vt="]",be={},y=Symbol(),dr="http://www.w3.org/1999/xhtml",bt=!1;var _r=Array.isArray,vr=Array.prototype.indexOf,br=Array.from,Ne=Object.keys,Re=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,pr=Object.getOwnPropertyDescriptors,gr=Object.prototype,mr=Array.prototype,pt=Object.getPrototypeOf,gt=Object.isExtensible;function yr(e){for(var t=0;t<e.length;t++)e[t]()}function mt(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const w=2,Oe=4,Ge=8,B=16,te=32,K=64,Pe=128,R=512,$=1024,T=2048,H=4096,W=8192,G=16384,yt=32768,je=65536,wt=1<<17,$t=1<<18,re=1<<19,wr=1<<20,pe=32768,Xe=1<<21,Ze=1<<22,X=1<<23,Qe=Symbol("$state"),$r=Symbol("legacy props"),ae=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Et=3,Me=8;function Er(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function xr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function kr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Sr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Tr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Cr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function et(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Nr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let g=!1;function De(e){g=e}let p;function Y(e){if(e===null)throw et(),be;return p=e}function tt(){return Y(ee(p))}function ge(e){if(g){if(ee(p)!==null)throw et(),be;p=e}}function Rr(e=1){if(g){for(var t=e,r=p;t--;)r=ee(r);p=r}}function Or(e=!0){for(var t=0,r=p;;){if(r.nodeType===Me){var n=r.data;if(n===vt){if(t===0)return r;t-=1}else(n===dt||n===_t)&&(t+=1)}var s=ee(r);e&&r.remove(),r=s}}function xt(e){return e===this.v}function Pr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function jr(e){return!Pr(e,this.v)}let Mr=!1,O=null;function ue(e){O=e}function kt(e,t=!1,r){O={p:O,i:!1,c:null,e:null,s:e,x:null,l:null}}function St(e){var t=O,r=t.e;if(r!==null){t.e=null;for(var n of r)Xr(n)}return e!==void 0&&(t.x=e),t.i=!0,O=t.p,e??{}}function Tt(){return!0}let ne=[];function At(){var e=ne;ne=[],yr(e)}function rt(e){if(ne.length===0&&!me){var t=ne;queueMicrotask(()=>{t===ne&&At()})}ne.push(e)}function Dr(){for(;ne.length>0;)At()}function Ct(e){var t=v;if(t===null)return _.f|=X,e;if((t.f&yt)===0){if((t.f&Pe)===0)throw e;t.b.error(e)}else ce(e,t)}function ce(e,t){for(;t!==null;){if((t.f&Pe)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Ie=new Set;let m=null,A=null,L=[],Le=null,nt=!1,me=!1;class P{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#f=0;#i=0;#a=null;#o=[];#s=[];skipped_effects=new Set;is_fork=!1;process(t){L=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#r(n,r);this.is_fork||this.#l(),this.#i>0||this.is_fork?(this.#n(r.effects),this.#n(r.render_effects),this.#n(r.block_effects)):(m=null,Rt(r.render_effects),Rt(r.effects),this.#a?.resolve()),A=null}#r(t,r){t.f^=$;for(var n=t.first;n!==null;){var s=n.f,i=(s&(te|K))!==0,o=i&&(s&$)!==0,l=o||(s&W)!==0||this.skipped_effects.has(n);if((n.f&Pe)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!l&&n.fn!==null){i?n.f^=$:(s&Oe)!==0?r.effects.push(n):Te(n)&&((n.f&B)!==0&&r.block_effects.push(n),Ae(n));var f=n.first;if(f!==null){n=f;continue}}var a=n.parent;for(n=n.next;n===null&&a!==null;)a===r.effect&&(this.#n(r.effects),this.#n(r.render_effects),this.#n(r.block_effects),r=r.parent),n=a.next,a=a.parent}}#n(t){for(const r of t)((r.f&T)!==0?this.#o:this.#s).push(r),x(r,$)}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&X)===0&&(this.current.set(t,t.v),A?.set(t,t.v))}activate(){m=this,this.apply()}deactivate(){m=null,A=null}flush(){if(this.activate(),L.length>0){if(Nt(),m!==null&&m!==this)return}else this.#f===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#l(){if(this.#i===0){for(const t of this.#t)t();this.#t.clear()}this.#f===0&&this.#u()}#u(){if(Ie.size>1){this.previous.clear();var t=A,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Ie){if(s===this){r=!1;continue}const i=[];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;i.push(l)}if(i.length===0)continue;const o=[...s.current.keys()].filter(l=>!this.current.has(l));if(o.length>0){const l=new Set,f=new Map;for(const a of i)Ot(a,o,l,f);if(L.length>0){m=s,s.apply();for(const a of L)s.#r(a,n);L=[],s.deactivate()}}}m=null,A=t}this.committed=!0,Ie.delete(this)}increment(t){this.#f+=1,t&&(this.#i+=1)}decrement(t){this.#f-=1,t&&(this.#i-=1),this.revive()}revive(){for(const t of this.#o)x(t,T),he(t);for(const t of this.#s)x(t,H),he(t);this.#o=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=mt()).promise}static ensure(){if(m===null){const t=m=new P;Ie.add(m),me||P.enqueue(()=>{m===t&&t.flush()})}return m}static enqueue(t){rt(t)}apply(){}}function ye(e){var t=me;me=!0;try{for(var r;;){if(Dr(),L.length===0&&(m?.flush(),L.length===0))return Le=null,r;Nt()}}finally{me=t}}function Nt(){var e=ie;nt=!0;try{var t=0;for(Kt(!0);L.length>0;){var r=P.ensure();if(t++>1e3){var n,s;Ir()}r.process(L),Z.clear()}}finally{nt=!1,Kt(e),Le=null}}function Ir(){try{xr()}catch(e){ce(e,Le)}}let V=null;function Rt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(G|W))===0&&Te(n)&&(V=new Set,Ae(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?zt(n):n.fn=null),V?.size>0)){Z.clear();for(const s of V){if((s.f&(G|W))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)V.has(o)&&(V.delete(o),i.push(o)),o=o.parent;for(let l=i.length-1;l>=0;l--){const f=i[l];(f.f&(G|W))===0&&Ae(f)}}V.clear()}}V=null}}function Ot(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&w)!==0?Ot(s,t,r,n):(i&(Ze|B))!==0&&(i&T)===0&&Pt(s,t,n)&&(x(s,T),he(s))}}function Pt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&w)!==0&&Pt(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function he(e){for(var t=Le=e;t.parent!==null;){t=t.parent;var r=t.f;if(nt&&t===v&&(r&B)!==0&&(r&$t)===0)return;if((r&(K|te))!==0){if((r&$)===0)return;t.f^=$}}L.push(t)}function Lr(e){let t=0,r=we(0),n;return()=>{Be()&&(S(r),Ht(()=>(t===0&&(n=cn(()=>e(()=>$e(r)))),t+=1,()=>{rt(()=>{t-=1,t===0&&(n?.(),n=void 0,$e(r))})})))}}var Fr=je|re|Pe;function Ur(e,t,r){new qr(e,t,r)}class qr{parent;#t=!1;#e;#f=g?p:null;#i;#a;#o;#s=null;#r=null;#n=null;#l=null;#u=null;#d=0;#c=0;#_=!1;#h=null;#m=Lr(()=>(this.#h=we(this.#d),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#i=r,this.#a=n,this.parent=v.b,this.#t=!!this.#i.pending,this.#o=nn(()=>{if(v.b=this,g){const i=this.#f;tt(),i.nodeType===Me&&i.data===_t?this.#w():this.#y()}else{var s=this.#p();try{this.#s=se(()=>n(s))}catch(i){this.error(i)}this.#c>0?this.#b():this.#t=!1}return()=>{this.#u?.remove()}},Fr),g&&(this.#e=p)}#y(){try{this.#s=se(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#i.pending;t&&(this.#r=se(()=>t(this.#e)),P.enqueue(()=>{var r=this.#p();this.#s=this.#v(()=>(P.ensure(),se(()=>this.#a(r)))),this.#c>0?this.#b():(He(this.#r,()=>{this.#r=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=de(),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.#i.pending}#v(t){var r=v,n=_,s=O;q(this.#o),k(this.#o),ue(this.#o.ctx);try{return t()}catch(i){return Ct(i),null}finally{q(r),k(n),ue(s)}}#b(){const t=this.#i.pending;this.#s!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#u),fn(this.#s,this.#l)),this.#r===null&&(this.#r=se(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#r&&He(this.#r,()=>{this.#r=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t){this.#g(t),this.#d+=t,this.#h&&Ue(this.#h,this.#d)}get_effect_pending(){return this.#m(),S(this.#h)}error(t){var r=this.#i.onerror;let n=this.#i.failed;if(this.#_||!r&&!n)throw t;this.#s&&(j(this.#s),this.#s=null),this.#r&&(j(this.#r),this.#r=null),this.#n&&(j(this.#n),this.#n=null),g&&(Y(this.#f),Rr(),Y(Or()));var s=!1,i=!1;const o=()=>{if(s){Nr();return}s=!0,i&&Cr(),P.ensure(),this.#d=0,this.#n!==null&&He(this.#n,()=>{this.#n=null}),this.#t=this.has_pending_snippet(),this.#s=this.#v(()=>(this.#_=!1,se(()=>this.#a(this.#e)))),this.#c>0?this.#b():this.#t=!1};var l=_;try{k(null),i=!0,r?.(t,o),i=!1}catch(f){ce(f,this.#o&&this.#o.parent)}finally{k(l)}n&&rt(()=>{this.#n=this.#v(()=>{P.ensure(),this.#_=!0;try{return se(()=>{n(this.#e,()=>t,()=>o)})}catch(f){return ce(f,this.#o.parent),null}finally{this.#_=!1}})})}}function Br(e,t,r,n){const s=st;if(r.length===0&&e.length===0){n(t.map(s));return}var i=m,o=v,l=Hr();function f(){Promise.all(r.map(a=>Yr(a))).then(a=>{l();try{n([...t.map(s),...a])}catch(h){(o.f&G)===0&&ce(h,o)}i?.deactivate(),Fe()}).catch(a=>{ce(a,o)})}e.length>0?Promise.all(e).then(()=>{l();try{return f()}finally{i?.deactivate(),Fe()}}):f()}function Hr(){var e=v,t=_,r=O,n=m;return function(i=!0){q(e),k(t),ue(r),i&&n?.activate()}}function Fe(){q(null),k(null),ue(null)}function st(e){var t=w|T,r=_!==null&&(_.f&w)!==0?_:null;return v!==null&&(v.f|=re),{ctx:O,deps:null,effects:null,equals:xt,f:t,fn:e,reactions:null,rv:0,v:y,wv:0,parent:r??v,ac:null}}function Yr(e,t){let r=v;r===null&&Er();var n=r.b,s=void 0,i=we(y),o=!_,l=new Map;return tn(()=>{var f=mt();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{a===m&&a.committed&&a.deactivate(),Fe()})}catch(u){f.reject(u),Fe()}var a=m;if(o){var h=!n.is_pending();n.update_pending_count(1),a.increment(h),l.get(a)?.reject(ae),l.delete(a),l.set(a,f)}const d=(u,c=void 0)=>{if(a.activate(),c)c!==ae&&(i.f|=X,Ue(i,c));else{(i.f&X)!==0&&(i.f^=X),Ue(i,u);for(const[b,M]of l){if(l.delete(b),b===a)break;M.reject(ae)}}o&&(n.update_pending_count(-1),a.decrement(h))};f.promise.then(d,u=>d(null,u||"unknown"))}),Gr(()=>{for(const f of l.values())f.reject(ae)}),new Promise(f=>{function a(h){function d(){h===s?f(i):a(s)}h.then(d,d)}a(s)})}function it(e){const t=st(e);return Gt(t),t}function jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)j(t[r])}}function Vr(e){for(var t=e.parent;t!==null;){if((t.f&w)===0)return t;t=t.parent}return null}function ot(e){var t,r=v;q(Vr(e));try{e.f&=~pe,jt(e),t=tr(e)}finally{q(r)}return t}function Mt(e){var t=ot(e);if(e.equals(t)||(e.v=t,e.wv=Qt()),!_e)if(A!==null)Be()&&A.set(e,e.v);else{var r=(e.f&R)===0?H:$;x(e,r)}}let lt=new Set;const Z=new Map;let Dt=!1;function we(e,t){var r={f:0,v:e,reactions:null,equals:xt,rv:0,wv:0};return r}function Q(e,t){const r=we(e);return Gt(r),r}function zr(e,t=!1,r=!0){const n=we(e);return t||(n.equals=jr),n}function z(e,t,r=!1){_!==null&&(!U||(_.f&wt)!==0)&&Tt()&&(_.f&(w|B|Ze|wt))!==0&&!J?.includes(e)&&Ar();let n=r?Ee(t):t;return Ue(e,n)}function Ue(e,t){if(!e.equals(t)){var r=e.v;_e?Z.set(e,t):Z.set(e,r),e.v=t;var n=P.ensure();n.capture(e,r),(e.f&w)!==0&&((e.f&T)!==0&&ot(e),x(e,(e.f&R)!==0?$:H)),e.wv=Qt(),It(e,T),v!==null&&(v.f&$)!==0&&(v.f&(te|K))===0&&(N===null?an([e]):N.push(e)),!n.is_fork&&lt.size>0&&!Dt&&Jr()}return t}function Jr(){Dt=!1;const e=Array.from(lt);for(const t of e)(t.f&$)!==0&&x(t,H),Te(t)&&Ae(t);lt.clear()}function $e(e){z(e,e.v+1)}function It(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],o=i.f,l=(o&T)===0;if(l&&x(i,t),(o&w)!==0){var f=i;A?.delete(f),(o&pe)===0&&(o&R&&(i.f|=pe),It(f,H))}else l&&((o&B)!==0&&V!==null&&V.add(i),he(i))}}function Ee(e){if(typeof e!="object"||e===null||Qe in e)return e;const t=pt(e);if(t!==gr&&t!==mr)return e;var r=new Map,n=_r(e),s=Q(0),i=oe,o=l=>{if(oe===i)return l();var f=_,a=oe;k(null),Zt(i);var h=l();return k(f),Zt(a),h};return n&&r.set("length",Q(e.length)),new Proxy(e,{defineProperty(l,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Sr();var h=r.get(f);return h===void 0?h=o(()=>{var d=Q(a.value);return r.set(f,d),d}):z(h,a.value,!0),!0},deleteProperty(l,f){var a=r.get(f);if(a===void 0){if(f in l){const h=o(()=>Q(y));r.set(f,h),$e(s)}}else z(a,y),$e(s);return!0},get(l,f,a){if(f===Qe)return e;var h=r.get(f),d=f in l;if(h===void 0&&(!d||fe(l,f)?.writable)&&(h=o(()=>{var c=Ee(d?l[f]:y),b=Q(c);return b}),r.set(f,h)),h!==void 0){var u=S(h);return u===y?void 0:u}return Reflect.get(l,f,a)},getOwnPropertyDescriptor(l,f){var a=Reflect.getOwnPropertyDescriptor(l,f);if(a&&"value"in a){var h=r.get(f);h&&(a.value=S(h))}else if(a===void 0){var d=r.get(f),u=d?.v;if(d!==void 0&&u!==y)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return a},has(l,f){if(f===Qe)return!0;var a=r.get(f),h=a!==void 0&&a.v!==y||Reflect.has(l,f);if(a!==void 0||v!==null&&(!h||fe(l,f)?.writable)){a===void 0&&(a=o(()=>{var u=h?Ee(l[f]):y,c=Q(u);return c}),r.set(f,a));var d=S(a);if(d===y)return!1}return h},set(l,f,a,h){var d=r.get(f),u=f in l;if(n&&f==="length")for(var c=a;c<d.v;c+=1){var b=r.get(c+"");b!==void 0?z(b,y):c in l&&(b=o(()=>Q(y)),r.set(c+"",b))}if(d===void 0)(!u||fe(l,f)?.writable)&&(d=o(()=>Q(void 0)),z(d,Ee(a)),r.set(f,d));else{u=d.v!==y;var M=o(()=>Ee(a));z(d,M)}var D=Reflect.getOwnPropertyDescriptor(l,f);if(D?.set&&D.set.call(h,a),!u){if(n&&typeof f=="string"){var We=r.get("length"),le=Number(f);Number.isInteger(le)&&le>=We.v&&z(We,le+1)}$e(s)}return!0},ownKeys(l){S(s);var f=Reflect.ownKeys(l).filter(d=>{var u=r.get(d);return u===void 0||u.v!==y});for(var[a,h]of r)h.v!==y&&!(a in l)&&f.push(a);return f},setPrototypeOf(){Tr()}})}var Lt,Ft,Ut,qt;function ft(){if(Lt===void 0){Lt=window,Ft=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ut=fe(t,"firstChild").get,qt=fe(t,"nextSibling").get,gt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),gt(r)&&(r.__t=void 0)}}function de(e=""){return document.createTextNode(e)}function qe(e){return Ut.call(e)}function ee(e){return qt.call(e)}function xe(e,t){if(!g)return qe(e);var r=qe(p);return r===null&&(r=p.appendChild(de())),Y(r),r}function ke(e,t=1,r=!1){let n=g?p:e;for(var s;t--;)s=n,n=ee(n);if(!g)return n;if(r&&n?.nodeType!==Et){var i=de();return n===null?s?.after(i):n.before(i),Y(i),i}return Y(n),n}function Kr(e){e.textContent=""}function Bt(e){var t=_,r=v;k(null),q(null);try{return e()}finally{k(t),q(r)}}function Wr(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function F(e,t,r,n=!0){var s=v;s!==null&&(s.f&W)!==0&&(e|=W);var i={ctx:O,deps:null,nodes_start:null,nodes_end:null,f:e|T|R,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Ae(i),i.f|=yt}catch(f){throw j(i),f}else t!==null&&he(i);if(n){var o=i;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&re)===0&&(o=o.first,(e&B)!==0&&(e&je)!==0&&o!==null&&(o.f|=je)),o!==null&&(o.parent=s,s!==null&&Wr(o,s),_!==null&&(_.f&w)!==0&&(e&K)===0)){var l=_;(l.effects??=[]).push(o)}}return i}function Be(){return _!==null&&!U}function Gr(e){const t=F(Ge,null,!1);return x(t,$),t.teardown=e,t}function Xr(e){return F(Oe|wr,e,!1)}function Zr(e){P.ensure();const t=F(K|re,e,!0);return()=>{j(t)}}function Qr(e){P.ensure();const t=F(K|re,e,!0);return(r={})=>new Promise(n=>{r.outro?He(t,()=>{j(t),n(void 0)}):(j(t),n(void 0))})}function en(e){return F(Oe,e,!1)}function tn(e){return F(Ze|re,e,!0)}function Ht(e,t=0){return F(Ge|t,e,!0)}function rn(e,t=[],r=[],n=[],s=!1){Br(n,t,r,i=>{F(s?Oe:Ge,()=>e(...i.map(S)),!0)})}function nn(e,t=0){var r=F(B|t,e,!0);return r}function se(e,t=!0){return F(te|re,e,!0,t)}function Yt(e){var t=e.teardown;if(t!==null){const r=_e,n=_;Wt(!0),k(null);try{t.call(null)}finally{Wt(r),k(n)}}}function Vt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Bt(()=>{s.abort(ae)});var n=r.next;(r.f&K)!==0?r.parent=null:j(r,t),r=n}}function sn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&te)===0&&j(t),t=r}}function j(e,t=!0){var r=!1;(t||(e.f&$t)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(on(e.nodes_start,e.nodes_end),r=!0),Vt(e,t&&!r),Ye(e,0),x(e,G);var n=e.transitions;if(n!==null)for(const i of n)i.stop();Yt(e);var s=e.parent;s!==null&&s.first!==null&&zt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function on(e,t){for(;e!==null;){var r=e===t?null:ee(e);e.remove(),e=r}}function zt(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 He(e,t,r=!0){var n=[];Jt(e,n,!0),ln(n,()=>{r&&j(e),t&&t()})}function ln(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function Jt(e,t,r){if((e.f&W)===0){if(e.f^=W,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&je)!==0||(n.f&te)!==0&&(e.f&B)!==0;Jt(n,t,i?r:!1),n=s}}}function fn(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:ee(r);t.append(r),r=s}}let ie=!1;function Kt(e){ie=e}let _e=!1;function Wt(e){_e=e}let _=null,U=!1;function k(e){_=e}let v=null;function q(e){v=e}let J=null;function Gt(e){_!==null&&(J===null?J=[e]:J.push(e))}let E=null,C=0,N=null;function an(e){N=e}let Xt=1,Se=0,oe=Se;function Zt(e){oe=e}function Qt(){return++Xt}function Te(e){var t=e.f;if((t&T)!==0)return!0;if(t&w&&(e.f&=~pe),(t&H)!==0){var r=e.deps;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s];if(Te(i)&&Mt(i),i.wv>e.wv)return!0}(t&R)!==0&&A===null&&x(e,$)}return!1}function er(e,t,r=!0){var n=e.reactions;if(n!==null&&!J?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&w)!==0?er(i,t,!1):t===i&&(r?x(i,T):(i.f&$)!==0&&x(i,H),he(i))}}function tr(e){var t=E,r=C,n=N,s=_,i=J,o=O,l=U,f=oe,a=e.f;E=null,C=0,N=null,_=(a&(te|K))===0?e:null,J=null,ue(e.ctx),U=!1,oe=++Se,e.ac!==null&&(Bt(()=>{e.ac.abort(ae)}),e.ac=null);try{e.f|=Xe;var h=e.fn,d=h(),u=e.deps;if(E!==null){var c;if(Ye(e,C),u!==null&&C>0)for(u.length=C+E.length,c=0;c<E.length;c++)u[C+c]=E[c];else e.deps=u=E;if(ie&&Be()&&(e.f&R)!==0)for(c=C;c<u.length;c++)(u[c].reactions??=[]).push(e)}else u!==null&&C<u.length&&(Ye(e,C),u.length=C);if(Tt()&&N!==null&&!U&&u!==null&&(e.f&(w|H|T))===0)for(c=0;c<N.length;c++)er(N[c],e);return s!==null&&s!==e&&(Se++,N!==null&&(n===null?n=N:n.push(...N))),(e.f&X)!==0&&(e.f^=X),d}catch(b){return Ct(b)}finally{e.f^=Xe,E=t,C=r,N=n,_=s,J=i,ue(o),U=l,oe=f}}function un(e,t){let r=t.reactions;if(r!==null){var n=vr.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&w)!==0&&(E===null||!E.includes(t))&&(x(t,H),(t.f&R)!==0&&(t.f^=R,t.f&=~pe),jt(t),Ye(t,0))}function Ye(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)un(e,r[n])}function Ae(e){var t=e.f;if((t&G)===0){x(e,$);var r=v,n=ie;v=e,ie=!0;try{(t&B)!==0?sn(e):Vt(e),Yt(e);var s=tr(e);e.teardown=typeof s=="function"?s:null,e.wv=Xt;var i;bt&&Mr&&(e.f&T)!==0&&e.deps}finally{ie=n,v=r}}}function S(e){var t=e.f,r=(t&w)!==0;if(_!==null&&!U){var n=v!==null&&(v.f&G)!==0;if(!n&&!J?.includes(e)){var s=_.deps;if((_.f&Xe)!==0)e.rv<Se&&(e.rv=Se,E===null&&s!==null&&s[C]===e?C++:E===null?E=[e]:E.includes(e)||E.push(e));else{(_.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[_]:i.includes(_)||i.push(_)}}}if(_e){if(Z.has(e))return Z.get(e);if(r){var o=e,l=o.v;return((o.f&$)===0&&o.reactions!==null||nr(o))&&(l=ot(o)),Z.set(o,l),l}}else if(r){if(o=e,A?.has(o))return A.get(o);Te(o)&&Mt(o),ie&&Be()&&(o.f&R)===0&&rr(o)}else if(A?.has(e))return A.get(e);if((e.f&X)!==0)throw e.v;return e.v}function rr(e){if(e.deps!==null){e.f^=R;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&w)!==0&&(t.f&R)===0&&rr(t)}}function nr(e){if(e.v===y)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Z.has(t)||(t.f&w)!==0&&nr(t))return!0;return!1}function cn(e){var t=U;try{return U=!0,e()}finally{U=t}}const hn=-7169;function x(e,t){e.f=e.f&hn|t}const sr=new Set,at=new Set;function dn(e){for(var t=0;t<e.length;t++)sr.add(e[t]);for(var r of at)r(e)}let ir=null;function Ve(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;ir=e;var o=0,l=ir===e&&e.__root;if(l){var f=s.indexOf(l);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var a=s.indexOf(t);if(a===-1)return;f<=a&&(o=f)}if(i=s[o]||e.target,i!==t){Re(e,"currentTarget",{configurable:!0,get(){return i||r}});var h=_,d=v;k(null),q(null);try{for(var u,c=[];i!==null;){var b=i.assignedSlot||i.parentNode||i.host||null;try{var M=i["__"+n];M!=null&&(!i.disabled||e.target===i)&&M.call(i,e)}catch(D){u?c.push(D):u=D}if(e.cancelBubble||b===t||b===null)break;i=b}if(u){for(let D of c)queueMicrotask(()=>{throw D});throw u}}finally{e.__root=t,delete e.currentTarget,k(h),q(d)}}}function _n(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ce(e,t){var r=v;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function vn(e,t){var r=(t&hr)!==0,n,s=!e.startsWith("<!>");return()=>{if(g)return Ce(p,null),p;n===void 0&&(n=_n(s?e:"<!>"+e),n=qe(n));var i=r||Ft?document.importNode(n,!0):n.cloneNode(!0);return Ce(i,i),i}}function bn(e=""){if(!g){var t=de(e+"");return Ce(t,t),t}var r=p;return r.nodeType!==Et&&(r.before(r=de()),Y(r)),Ce(r,r),r}function ut(e,t){if(g){v.nodes_end=p,tt();return}e!==null&&e.before(t)}const pn=["touchstart","touchmove"];function gn(e){return pn.includes(e)}function ze(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function or(e,t){return lr(e,t)}function mn(e,t){ft(),t.intro=t.intro??!1;const r=t.target,n=g,s=p;try{for(var i=qe(r);i&&(i.nodeType!==Me||i.data!==dt);)i=ee(i);if(!i)throw be;De(!0),Y(i);const o=lr(e,{...t,anchor:i});return De(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==be&&console.warn("Failed to hydrate: ",o),t.recover===!1&&kr(),ft(),Kr(r),De(!1),or(e,t)}finally{De(n),Y(s)}}const ve=new Map;function lr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:o=!0}){ft();var l=new Set,f=d=>{for(var u=0;u<d.length;u++){var c=d[u];if(!l.has(c)){l.add(c);var b=gn(c);t.addEventListener(c,Ve,{passive:b});var M=ve.get(c);M===void 0?(document.addEventListener(c,Ve,{passive:b}),ve.set(c,1)):ve.set(c,M+1)}}};f(br(sr)),at.add(f);var a=void 0,h=Qr(()=>{var d=r??t.appendChild(de());return Ur(d,{pending:()=>{}},u=>{if(i){kt({});var c=O;c.c=i}if(s&&(n.$$events=s),g&&Ce(u,null),a=e(u,n)||{},g&&(v.nodes_end=p,p===null||p.nodeType!==Me||p.data!==vt))throw et(),be;i&&St()}),()=>{for(var u of l){t.removeEventListener(u,Ve);var c=ve.get(u);--c===0?(document.removeEventListener(u,Ve),ve.delete(u)):ve.set(u,c)}at.delete(f),d!==r&&d.parentNode?.removeChild(d)}});return ct.set(a,h),a}let ct=new WeakMap;function yn(e,t){const r=ct.get(e);return r?(ct.delete(e),r(t)):Promise.resolve()}function wn(e,t,r,n,s){g&&tt();var i=t.$$slots?.[r],o=!1;i===!0&&(i=t[r],o=!0),i===void 0?s!==null&&s(e):i(e,o?()=>n:n)}function $n(e,t){en(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}const En=Symbol("is custom element"),xn=Symbol("is html");function kn(e,t,r,n){var s=Sn(e);g&&(s[t]=e.getAttribute(t)),s[t]!==(s[t]=r)&&(r==null?e.removeAttribute(t):typeof r!="string"&&Tn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Sn(e){return e.__attributes??={[En]:e.nodeName.includes("-"),[xn]:e.namespaceURI===dr}}var fr=new Map;function Tn(e){var t=e.getAttribute("is")||e.nodeName,r=fr.get(t);if(r)return r;fr.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=pr(s);for(var o in n)n[o].set&&r.push(o);s=pt(s)}return r}function Je(e,t,r,n){var s=n,i=!0,o=()=>(i&&(i=!1,s=n),s),l;l=e[t],l===void 0&&n!==void 0&&(l=o());var f;f=()=>{var u=e[t];return u===void 0?o():(i=!0,u)};var a=!1,h=st(()=>(a=!1,f())),d=v;return(function(u,c){if(arguments.length>0){const b=c?S(h):u;return z(h,b),a=!0,s!==void 0&&(s=b),u}return _e&&a||(d.f&G)!==0?h.v:S(h)})}function An(e){return new Cn(e)}class Cn{#t;#e;constructor(t){var r=new Map,n=(i,o)=>{var l=zr(o,!1,!1);return r.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return S(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===$r?!0:(S(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,l){return z(r.get(o)??n(o,l),l),Reflect.set(i,o,l)}});this.#e=(t.hydrate?mn:or)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&ye(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Re(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{yn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let ar;typeof HTMLElement=="function"&&(ar=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 s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),ut(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Nn(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 s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Ke(s,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=An({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Zr(()=>{Ht(()=>{this.$$r=!0;for(const n of Ne(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=Ke(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ke(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 Ne(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ke(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Nn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Rn(e,t,r,n,s,i){let o=class extends ar{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ne(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ne(t).forEach(l=>{Re(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=Ke(l,f,t),this.$$d[l]=f;var a=this.$$c;if(a){var h=fe(a,l)?.get;h?a[l]=f:a.$set({[l]:f})}}})}),n.forEach(l=>{Re(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}var On=vn('<div class="skeleton-root svelte-10p6erh"><p class="svelte-10p6erh"> </p> <p class="svelte-10p6erh"> </p> <p class="svelte-10p6erh"> </p> <p class="svelte-10p6erh"> </p> <button class="btn btn-primary svelte-10p6erh">Dispatch Event</button> <!></div>');const Pn={hash:"svelte-10p6erh",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;}
1
+ (function(vt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const dr=2,bt="[",pt="[!",gt="]",pe={},w=Symbol(),hr="http://www.w3.org/1999/xhtml",Ge=!1;var _r=Array.isArray,vr=Array.prototype.indexOf,br=Array.from,Ne=Object.keys,Re=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,pr=Object.getOwnPropertyDescriptors,gr=Object.prototype,mr=Array.prototype,mt=Object.getPrototypeOf,yt=Object.isExtensible;function yr(e){for(var t=0;t<e.length;t++)e[t]()}function wt(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const y=2,Xe=4,Ze=8,B=16,re=32,W=64,Oe=128,O=512,$=1024,T=2048,H=4096,G=8192,Y=16384,Qe=32768,Pe=65536,$t=1<<17,Et=1<<18,ne=1<<19,wr=1<<20,se=32768,et=1<<21,tt=1<<22,X=1<<23,rt=Symbol("$state"),$r=Symbol("legacy props"),ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},xt=3,je=8;function Er(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function xr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function kr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Sr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Tr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Cr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function nt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Nr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function Me(e){m=e}let p;function V(e){if(e===null)throw nt(),pe;return p=e}function st(){return V(ee(p))}function ge(e){if(m){if(ee(p)!==null)throw nt(),pe;p=e}}function Rr(e=1){if(m){for(var t=e,r=p;t--;)r=ee(r);p=r}}function Or(e=!0){for(var t=0,r=p;;){if(r.nodeType===je){var n=r.data;if(n===gt){if(t===0)return r;t-=1}else(n===bt||n===pt)&&(t+=1)}var i=ee(r);e&&r.remove(),r=i}}function kt(e){return e===this.v}function Pr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function jr(e){return!Pr(e,this.v)}let Mr=!1,P=null;function ce(e){P=e}function St(e,t=!1,r){P={p:P,i:!1,c:null,e:null,s:e,x:null,l:null}}function Tt(e){var t=P,r=t.e;if(r!==null){t.e=null;for(var n of r)Xr(n)}return e!==void 0&&(t.x=e),t.i=!0,P=t.p,e??{}}function At(){return!0}let ie=[];function Ct(){var e=ie;ie=[],yr(e)}function it(e){if(ie.length===0&&!me){var t=ie;queueMicrotask(()=>{t===ie&&Ct()})}ie.push(e)}function Dr(){for(;ie.length>0;)Ct()}function Nt(e){var t=v;if(t===null)return _.f|=X,e;if((t.f&Qe)===0){if((t.f&Oe)===0)throw e;t.b.error(e)}else de(e,t)}function de(e,t){for(;t!==null;){if((t.f&Oe)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const De=new Set;let g=null,C=null,N=[],Ie=null,ot=!1,me=!1;class j{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#f=0;#i=0;#a=null;#o=[];#s=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#i>0}process(t){N=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#r(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#n(r.effects),this.#n(r.render_effects),this.#n(r.block_effects)):(g=null,Ot(r.render_effects),Ot(r.effects),this.#a?.resolve()),C=null}#r(t,r){t.f^=$;for(var n=t.first;n!==null;){var i=n.f,s=(i&(re|W))!==0,o=s&&(i&$)!==0,f=o||(i&G)!==0||this.skipped_effects.has(n);if((n.f&Oe)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!f&&n.fn!==null){s?n.f^=$:(i&Xe)!==0?r.effects.push(n):Te(n)&&((n.f&B)!==0&&r.block_effects.push(n),Ae(n));var l=n.first;if(l!==null){n=l;continue}}var a=n.parent;for(n=n.next;n===null&&a!==null;)a===r.effect&&(this.#n(r.effects),this.#n(r.render_effects),this.#n(r.block_effects),r=r.parent),n=a.next,a=a.parent}}#n(t){for(const r of t)((r.f&T)!==0?this.#o:this.#s).push(r),this.#l(r.deps),x(r,$)}#l(t){if(t!==null)for(const r of t)(r.f&y)===0||(r.f&se)===0||(r.f^=se,this.#l(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&X)===0&&(this.current.set(t,t.v),C?.set(t,t.v))}activate(){g=this,this.apply()}deactivate(){g===this&&(g=null,C=null)}flush(){if(this.activate(),N.length>0){if(Rt(),g!==null&&g!==this)return}else this.#f===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#i===0){for(const t of this.#t)t();this.#t.clear()}this.#f===0&&this.#c()}#c(){if(De.size>1){this.previous.clear();var t=C,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of De){if(s===this){r=!1;continue}const o=[];for(const[l,a]of this.current){if(s.current.has(l))if(r&&a!==s.current.get(l))s.current.set(l,a);else continue;o.push(l)}if(o.length===0)continue;const f=[...s.current.keys()].filter(l=>!this.current.has(l));if(f.length>0){var i=N;N=[];const l=new Set,a=new Map;for(const c of o)Pt(c,f,l,a);if(N.length>0){g=s,s.apply();for(const c of N)s.#r(c,n);s.deactivate()}N=i}}g=null,C=t}this.committed=!0,De.delete(this)}increment(t){this.#f+=1,t&&(this.#i+=1)}decrement(t){this.#f-=1,t&&(this.#i-=1),this.revive()}revive(){for(const t of this.#o)x(t,T),he(t);for(const t of this.#s)x(t,H),he(t);this.#o=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=wt()).promise}static ensure(){if(g===null){const t=g=new j;De.add(g),me||j.enqueue(()=>{g===t&&t.flush()})}return g}static enqueue(t){it(t)}apply(){}}function ye(e){var t=me;me=!0;try{for(var r;;){if(Dr(),N.length===0&&(g?.flush(),N.length===0))return Ie=null,r;Rt()}}finally{me=t}}function Rt(){var e=te;ot=!0;var t=null;try{var r=0;for(He(!0);N.length>0;){var n=j.ensure();if(r++>1e3){var i,s;Ir()}n.process(N),Z.clear()}}finally{ot=!1,He(e),Ie=null}}function Ir(){try{xr()}catch(e){de(e,Ie)}}let z=null;function Ot(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Y|G))===0&&Te(n)&&(z=new Set,Ae(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Jt(n):n.fn=null),z?.size>0)){Z.clear();for(const i of z){if((i.f&(Y|G))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)z.has(o)&&(z.delete(o),s.push(o)),o=o.parent;for(let f=s.length-1;f>=0;f--){const l=s[f];(l.f&(Y|G))===0&&Ae(l)}}z.clear()}}z=null}}function Pt(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&y)!==0?Pt(i,t,r,n):(s&(tt|B))!==0&&(s&T)===0&&jt(i,t,n)&&(x(i,T),he(i))}}function jt(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&y)!==0&&jt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function he(e){for(var t=Ie=e;t.parent!==null;){t=t.parent;var r=t.f;if(ot&&t===v&&(r&B)!==0&&(r&Et)===0)return;if((r&(W|re))!==0){if((r&$)===0)return;t.f^=$}}N.push(t)}function Lr(e){let t=0,r=we(0),n;return()=>{qe()&&(S(r),Yt(()=>(t===0&&(n=cn(()=>e(()=>$e(r)))),t+=1,()=>{it(()=>{t-=1,t===0&&(n?.(),n=void 0,$e(r))})})))}}var Fr=Pe|ne|Oe;function Ur(e,t,r){new qr(e,t,r)}class qr{parent;#t=!1;#e;#f=m?p:null;#i;#a;#o;#s=null;#r=null;#n=null;#l=null;#u=null;#c=0;#d=0;#_=!1;#h=null;#m=Lr(()=>(this.#h=we(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#i=r,this.#a=n,this.parent=v.b,this.#t=!!this.#i.pending,this.#o=nn(()=>{if(v.b=this,m){const s=this.#f;st(),s.nodeType===je&&s.data===pt?this.#w():this.#y()}else{var i=this.#p();try{this.#s=oe(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#b():this.#t=!1}return()=>{this.#u?.remove()}},Fr),m&&(this.#e=p)}#y(){try{this.#s=oe(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#i.pending;t&&(this.#r=oe(()=>t(this.#e)),j.enqueue(()=>{var r=this.#p();this.#s=this.#v(()=>(j.ensure(),oe(()=>this.#a(r)))),this.#d>0?this.#b():(Be(this.#r,()=>{this.#r=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=_e(),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.#i.pending}#v(t){var r=v,n=_,i=P;q(this.#o),k(this.#o),ce(this.#o.ctx);try{return t()}catch(s){return Nt(s),null}finally{q(r),k(n),ce(i)}}#b(){const t=this.#i.pending;this.#s!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#u),fn(this.#s,this.#l)),this.#r===null&&(this.#r=oe(()=>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.#r&&Be(this.#r,()=>{this.#r=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&Fe(this.#h,this.#c)}get_effect_pending(){return this.#m(),S(this.#h)}error(t){var r=this.#i.onerror;let n=this.#i.failed;if(this.#_||!r&&!n)throw t;this.#s&&(M(this.#s),this.#s=null),this.#r&&(M(this.#r),this.#r=null),this.#n&&(M(this.#n),this.#n=null),m&&(V(this.#f),Rr(),V(Or()));var i=!1,s=!1;const o=()=>{if(i){Nr();return}i=!0,s&&Cr(),j.ensure(),this.#c=0,this.#n!==null&&Be(this.#n,()=>{this.#n=null}),this.#t=this.has_pending_snippet(),this.#s=this.#v(()=>(this.#_=!1,oe(()=>this.#a(this.#e)))),this.#d>0?this.#b():this.#t=!1};var f=_;try{k(null),s=!0,r?.(t,o),s=!1}catch(l){de(l,this.#o&&this.#o.parent)}finally{k(f)}n&&it(()=>{this.#n=this.#v(()=>{j.ensure(),this.#_=!0;try{return oe(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return de(l,this.#o.parent),null}finally{this.#_=!1}})})}}function Br(e,t,r,n){const i=lt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=g,o=v,f=Hr();function l(){Promise.all(r.map(a=>Yr(a))).then(a=>{f();try{n([...t.map(i),...a])}catch(c){(o.f&Y)===0&&de(c,o)}s?.deactivate(),Le()}).catch(a=>{de(a,o)})}e.length>0?Promise.all(e).then(()=>{f();try{return l()}finally{s?.deactivate(),Le()}}):l()}function Hr(){var e=v,t=_,r=P,n=g;return function(s=!0){q(e),k(t),ce(r),s&&n?.activate()}}function Le(){q(null),k(null),ce(null)}function lt(e){var t=y|T,r=_!==null&&(_.f&y)!==0?_:null;return v!==null&&(v.f|=ne),{ctx:P,deps:null,effects:null,equals:kt,f:t,fn:e,reactions:null,rv:0,v:w,wv:0,parent:r??v,ac:null}}function Yr(e,t){let r=v;r===null&&Er();var n=r.b,i=void 0,s=we(w),o=!_,f=new Map;return tn(()=>{var l=wt();i=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{a===g&&a.committed&&a.deactivate(),Le()})}catch(u){l.reject(u),Le()}var a=g;if(o){var c=!n.is_pending();n.update_pending_count(1),a.increment(c),f.get(a)?.reject(ue),f.delete(a),f.set(a,l)}const h=(u,d=void 0)=>{if(a.activate(),d)d!==ue&&(s.f|=X,Fe(s,d));else{(s.f&X)!==0&&(s.f^=X),Fe(s,u);for(const[b,D]of f){if(f.delete(b),b===a)break;D.reject(ue)}}o&&(n.update_pending_count(-1),a.decrement(c))};l.promise.then(h,u=>h(null,u||"unknown"))}),Gr(()=>{for(const l of f.values())l.reject(ue)}),new Promise(l=>{function a(c){function h(){c===i?l(s):a(i)}c.then(h,h)}a(i)})}function ft(e){const t=lt(e);return Gt(t),t}function Mt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)M(t[r])}}function Vr(e){for(var t=e.parent;t!==null;){if((t.f&y)===0)return(t.f&Y)===0?t:null;t=t.parent}return null}function at(e){var t,r=v;q(Vr(e));try{e.f&=~se,Mt(e),t=tr(e)}finally{q(r)}return t}function Dt(e){var t=at(e);if(e.equals(t)||(g?.is_fork||(e.v=t),e.wv=Qt()),!ve)if(C!==null)qe()&&C.set(e,t);else{var r=(e.f&O)===0?H:$;x(e,r)}}let ut=new Set;const Z=new Map;let It=!1;function we(e,t){var r={f:0,v:e,reactions:null,equals:kt,rv:0,wv:0};return r}function Q(e,t){const r=we(e);return Gt(r),r}function zr(e,t=!1,r=!0){const n=we(e);return t||(n.equals=jr),n}function J(e,t,r=!1){_!==null&&(!U||(_.f&$t)!==0)&&At()&&(_.f&(y|B|tt|$t))!==0&&!K?.includes(e)&&Ar();let n=r?Ee(t):t;return Fe(e,n)}function Fe(e,t){if(!e.equals(t)){var r=e.v;ve?Z.set(e,t):Z.set(e,r),e.v=t;var n=j.ensure();n.capture(e,r),(e.f&y)!==0&&((e.f&T)!==0&&at(e),x(e,(e.f&O)!==0?$:H)),e.wv=Qt(),Lt(e,T),v!==null&&(v.f&$)!==0&&(v.f&(re|W))===0&&(R===null?an([e]):R.push(e)),!n.is_fork&&ut.size>0&&!It&&Jr()}return t}function Jr(){It=!1;var e=te;He(!0);const t=Array.from(ut);try{for(const r of t)(r.f&$)!==0&&x(r,H),Te(r)&&Ae(r)}finally{He(e)}ut.clear()}function $e(e){J(e,e.v+1)}function Lt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,f=(o&T)===0;if(f&&x(s,t),(o&y)!==0){var l=s;C?.delete(l),(o&se)===0&&(o&O&&(s.f|=se),Lt(l,H))}else f&&((o&B)!==0&&z!==null&&z.add(s),he(s))}}function Ee(e){if(typeof e!="object"||e===null||rt in e)return e;const t=mt(e);if(t!==gr&&t!==mr)return e;var r=new Map,n=_r(e),i=Q(0),s=le,o=f=>{if(le===s)return f();var l=_,a=le;k(null),Zt(s);var c=f();return k(l),Zt(a),c};return n&&r.set("length",Q(e.length)),new Proxy(e,{defineProperty(f,l,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Sr();var c=r.get(l);return c===void 0?c=o(()=>{var h=Q(a.value);return r.set(l,h),h}):J(c,a.value,!0),!0},deleteProperty(f,l){var a=r.get(l);if(a===void 0){if(l in f){const c=o(()=>Q(w));r.set(l,c),$e(i)}}else J(a,w),$e(i);return!0},get(f,l,a){if(l===rt)return e;var c=r.get(l),h=l in f;if(c===void 0&&(!h||ae(f,l)?.writable)&&(c=o(()=>{var d=Ee(h?f[l]:w),b=Q(d);return b}),r.set(l,c)),c!==void 0){var u=S(c);return u===w?void 0:u}return Reflect.get(f,l,a)},getOwnPropertyDescriptor(f,l){var a=Reflect.getOwnPropertyDescriptor(f,l);if(a&&"value"in a){var c=r.get(l);c&&(a.value=S(c))}else if(a===void 0){var h=r.get(l),u=h?.v;if(h!==void 0&&u!==w)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return a},has(f,l){if(l===rt)return!0;var a=r.get(l),c=a!==void 0&&a.v!==w||Reflect.has(f,l);if(a!==void 0||v!==null&&(!c||ae(f,l)?.writable)){a===void 0&&(a=o(()=>{var u=c?Ee(f[l]):w,d=Q(u);return d}),r.set(l,a));var h=S(a);if(h===w)return!1}return c},set(f,l,a,c){var h=r.get(l),u=l in f;if(n&&l==="length")for(var d=a;d<h.v;d+=1){var b=r.get(d+"");b!==void 0?J(b,w):d in f&&(b=o(()=>Q(w)),r.set(d+"",b))}if(h===void 0)(!u||ae(f,l)?.writable)&&(h=o(()=>Q(void 0)),J(h,Ee(a)),r.set(l,h));else{u=h.v!==w;var D=o(()=>Ee(a));J(h,D)}var I=Reflect.getOwnPropertyDescriptor(f,l);if(I?.set&&I.set.call(c,a),!u){if(n&&typeof l=="string"){var We=r.get("length"),fe=Number(l);Number.isInteger(fe)&&fe>=We.v&&J(We,fe+1)}$e(i)}return!0},ownKeys(f){S(i);var l=Reflect.ownKeys(f).filter(h=>{var u=r.get(h);return u===void 0||u.v!==w});for(var[a,c]of r)c.v!==w&&!(a in f)&&l.push(a);return l},setPrototypeOf(){Tr()}})}var Ft,Ut,qt,Bt;function ct(){if(Ft===void 0){Ft=window,Ut=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;qt=ae(t,"firstChild").get,Bt=ae(t,"nextSibling").get,yt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),yt(r)&&(r.__t=void 0)}}function _e(e=""){return document.createTextNode(e)}function Ue(e){return qt.call(e)}function ee(e){return Bt.call(e)}function xe(e,t){if(!m)return Ue(e);var r=Ue(p);return r===null&&(r=p.appendChild(_e())),V(r),r}function ke(e,t=1,r=!1){let n=m?p:e;for(var i;t--;)i=n,n=ee(n);if(!m)return n;if(r&&n?.nodeType!==xt){var s=_e();return n===null?i?.after(s):n.before(s),V(s),s}return V(n),n}function Kr(e){e.textContent=""}function Ht(e){var t=_,r=v;k(null),q(null);try{return e()}finally{k(t),q(r)}}function Wr(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function F(e,t,r){var n=v;n!==null&&(n.f&G)!==0&&(e|=G);var i={ctx:P,deps:null,nodes_start:null,nodes_end:null,f:e|T|O,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{Ae(i),i.f|=Qe}catch(f){throw M(i),f}else t!==null&&he(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&ne)===0&&(s=s.first,(e&B)!==0&&(e&Pe)!==0&&s!==null&&(s.f|=Pe)),s!==null&&(s.parent=n,n!==null&&Wr(s,n),_!==null&&(_.f&y)!==0&&(e&W)===0)){var o=_;(o.effects??=[]).push(s)}return i}function qe(){return _!==null&&!U}function Gr(e){const t=F(Ze,null,!1);return x(t,$),t.teardown=e,t}function Xr(e){return F(Xe|wr,e,!1)}function Zr(e){j.ensure();const t=F(W|ne,e,!0);return()=>{M(t)}}function Qr(e){j.ensure();const t=F(W|ne,e,!0);return(r={})=>new Promise(n=>{r.outro?Be(t,()=>{M(t),n(void 0)}):(M(t),n(void 0))})}function en(e){return F(Xe,e,!1)}function tn(e){return F(tt|ne,e,!0)}function Yt(e,t=0){return F(Ze|t,e,!0)}function rn(e,t=[],r=[],n=[]){Br(n,t,r,i=>{F(Ze,()=>e(...i.map(S)),!0)})}function nn(e,t=0){var r=F(B|t,e,!0);return r}function oe(e){return F(re|ne,e,!0)}function Vt(e){var t=e.teardown;if(t!==null){const r=ve,n=_;Wt(!0),k(null);try{t.call(null)}finally{Wt(r),k(n)}}}function zt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Ht(()=>{i.abort(ue)});var n=r.next;(r.f&W)!==0?r.parent=null:M(r,t),r=n}}function sn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&re)===0&&M(t),t=r}}function M(e,t=!0){var r=!1;(t||(e.f&Et)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(on(e.nodes_start,e.nodes_end),r=!0),zt(e,t&&!r),Ye(e,0),x(e,Y);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Vt(e);var i=e.parent;i!==null&&i.first!==null&&Jt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function on(e,t){for(;e!==null;){var r=e===t?null:ee(e);e.remove(),e=r}}function Jt(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 Be(e,t,r=!0){var n=[];Kt(e,n,!0),ln(n,()=>{r&&M(e),t&&t()})}function ln(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Kt(e,t,r){if((e.f&G)===0){if(e.f^=G,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Pe)!==0||(n.f&re)!==0&&(e.f&B)!==0;Kt(n,t,s?r:!1),n=i}}}function fn(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:ee(r);t.append(r),r=i}}let te=!1;function He(e){te=e}let ve=!1;function Wt(e){ve=e}let _=null,U=!1;function k(e){_=e}let v=null;function q(e){v=e}let K=null;function Gt(e){_!==null&&(K===null?K=[e]:K.push(e))}let E=null,A=0,R=null;function an(e){R=e}let Xt=1,Se=0,le=Se;function Zt(e){le=e}function Qt(){return++Xt}function Te(e){var t=e.f;if((t&T)!==0)return!0;if(t&y&&(e.f&=~se),(t&H)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(Te(s)&&Dt(s),s.wv>e.wv)return!0}(t&O)!==0&&C===null&&x(e,$)}return!1}function er(e,t,r=!0){var n=e.reactions;if(n!==null&&!K?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&y)!==0?er(s,t,!1):t===s&&(r?x(s,T):(s.f&$)!==0&&x(s,H),he(s))}}function tr(e){var t=E,r=A,n=R,i=_,s=K,o=P,f=U,l=le,a=e.f;E=null,A=0,R=null,_=(a&(re|W))===0?e:null,K=null,ce(e.ctx),U=!1,le=++Se,e.ac!==null&&(Ht(()=>{e.ac.abort(ue)}),e.ac=null);try{e.f|=et;var c=e.fn,h=c(),u=e.deps;if(E!==null){var d;if(Ye(e,A),u!==null&&A>0)for(u.length=A+E.length,d=0;d<E.length;d++)u[A+d]=E[d];else e.deps=u=E;if(te&&qe()&&(e.f&O)!==0)for(d=A;d<u.length;d++)(u[d].reactions??=[]).push(e)}else u!==null&&A<u.length&&(Ye(e,A),u.length=A);if(At()&&R!==null&&!U&&u!==null&&(e.f&(y|H|T))===0)for(d=0;d<R.length;d++)er(R[d],e);return i!==null&&i!==e&&(Se++,R!==null&&(n===null?n=R:n.push(...R))),(e.f&X)!==0&&(e.f^=X),h}catch(b){return Nt(b)}finally{e.f^=et,E=t,A=r,R=n,_=i,K=s,ce(o),U=f,le=l}}function un(e,t){let r=t.reactions;if(r!==null){var n=vr.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&y)!==0&&(E===null||!E.includes(t))&&(x(t,H),(t.f&O)!==0&&(t.f^=O,t.f&=~se),Mt(t),Ye(t,0))}function Ye(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)un(e,r[n])}function Ae(e){var t=e.f;if((t&Y)===0){x(e,$);var r=v,n=te;v=e,te=!0;try{(t&B)!==0?sn(e):zt(e),Vt(e);var i=tr(e);e.teardown=typeof i=="function"?i:null,e.wv=Xt;var s;Ge&&Mr&&(e.f&T)!==0&&e.deps}finally{te=n,v=r}}}function S(e){var t=e.f,r=(t&y)!==0;if(_!==null&&!U){var n=v!==null&&(v.f&Y)!==0;if(!n&&!K?.includes(e)){var i=_.deps;if((_.f&et)!==0)e.rv<Se&&(e.rv=Se,E===null&&i!==null&&i[A]===e?A++:E===null?E=[e]:E.includes(e)||E.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:s.includes(_)||s.push(_)}}}if(ve){if(Z.has(e))return Z.get(e);if(r){var o=e,f=o.v;return((o.f&$)===0&&o.reactions!==null||nr(o))&&(f=at(o)),Z.set(o,f),f}}else r&&!C?.has(e)&&(o=e,Te(o)&&Dt(o),te&&qe()&&(o.f&O)===0&&rr(o));if(C?.has(e))return C.get(e);if((e.f&X)!==0)throw e.v;return e.v}function rr(e){if(e.deps!==null){e.f^=O;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&y)!==0&&(t.f&O)===0&&rr(t)}}function nr(e){if(e.v===w)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Z.has(t)||(t.f&y)!==0&&nr(t))return!0;return!1}function cn(e){var t=U;try{return U=!0,e()}finally{U=t}}const dn=-7169;function x(e,t){e.f=e.f&dn|t}const sr=new Set,dt=new Set;function hn(e){for(var t=0;t<e.length;t++)sr.add(e[t]);for(var r of dt)r(e)}let ir=null;function Ve(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;ir=e;var o=0,f=ir===e&&e.__root;if(f){var l=i.indexOf(f);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var a=i.indexOf(t);if(a===-1)return;l<=a&&(o=l)}if(s=i[o]||e.target,s!==t){Re(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=_,h=v;k(null),q(null);try{for(var u,d=[];s!==null;){var b=s.assignedSlot||s.parentNode||s.host||null;try{var D=s["__"+n];D!=null&&(!s.disabled||e.target===s)&&D.call(s,e)}catch(I){u?d.push(I):u=I}if(e.cancelBubble||b===t||b===null)break;s=b}if(u){for(let I of d)queueMicrotask(()=>{throw I});throw u}}finally{e.__root=t,delete e.currentTarget,k(c),q(h)}}}function _n(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ce(e,t){var r=v;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function vn(e,t){var r=(t&dr)!==0,n,i=!e.startsWith("<!>");return()=>{if(m)return Ce(p,null),p;n===void 0&&(n=_n(i?e:"<!>"+e),n=Ue(n));var s=r||Ut?document.importNode(n,!0):n.cloneNode(!0);return Ce(s,s),s}}function bn(e=""){if(!m){var t=_e(e+"");return Ce(t,t),t}var r=p;return r.nodeType!==xt&&(r.before(r=_e()),V(r)),Ce(r,r),r}function ht(e,t){if(m){var r=v;((r.f&Qe)===0||r.nodes_end===null)&&(r.nodes_end=p),st();return}e!==null&&e.before(t)}const pn=["touchstart","touchmove"];function gn(e){return pn.includes(e)}function ze(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function or(e,t){return lr(e,t)}function mn(e,t){ct(),t.intro=t.intro??!1;const r=t.target,n=m,i=p;try{for(var s=Ue(r);s&&(s.nodeType!==je||s.data!==bt);)s=ee(s);if(!s)throw pe;Me(!0),V(s);const o=lr(e,{...t,anchor:s});return Me(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(f=>f.startsWith("https://svelte.dev/e/")))throw o;return o!==pe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&kr(),ct(),Kr(r),Me(!1),or(e,t)}finally{Me(n),V(i)}}const be=new Map;function lr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){ct();var f=new Set,l=h=>{for(var u=0;u<h.length;u++){var d=h[u];if(!f.has(d)){f.add(d);var b=gn(d);t.addEventListener(d,Ve,{passive:b});var D=be.get(d);D===void 0?(document.addEventListener(d,Ve,{passive:b}),be.set(d,1)):be.set(d,D+1)}}};l(br(sr)),dt.add(l);var a=void 0,c=Qr(()=>{var h=r??t.appendChild(_e());return Ur(h,{pending:()=>{}},u=>{if(s){St({});var d=P;d.c=s}if(i&&(n.$$events=i),m&&Ce(u,null),a=e(u,n)||{},m&&(v.nodes_end=p,p===null||p.nodeType!==je||p.data!==gt))throw nt(),pe;s&&Tt()}),()=>{for(var u of f){t.removeEventListener(u,Ve);var d=be.get(u);--d===0?(document.removeEventListener(u,Ve),be.delete(u)):be.set(u,d)}dt.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return _t.set(a,c),a}let _t=new WeakMap;function yn(e,t){const r=_t.get(e);return r?(_t.delete(e),r(t)):Promise.resolve()}function wn(e,t,r,n,i){m&&st();var s=t.$$slots?.[r],o=!1;s===!0&&(s=t[r],o=!0),s===void 0?i!==null&&i(e):s(e,o?()=>n:n)}function $n(e,t){en(()=>{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)}})}const En=Symbol("is custom element"),xn=Symbol("is html");function kn(e,t,r,n){var i=Sn(e);m&&(i[t]=e.getAttribute(t)),i[t]!==(i[t]=r)&&(r==null?e.removeAttribute(t):typeof r!="string"&&Tn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Sn(e){return e.__attributes??={[En]:e.nodeName.includes("-"),[xn]:e.namespaceURI===hr}}var fr=new Map;function Tn(e){var t=e.getAttribute("is")||e.nodeName,r=fr.get(t);if(r)return r;fr.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=pr(i);for(var o in n)n[o].set&&r.push(o);i=mt(i)}return r}function Je(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),f;f=e[t],f===void 0&&n!==void 0&&(f=o());var l;l=()=>{var u=e[t];return u===void 0?o():(s=!0,u)};var a=!1,c=lt(()=>(a=!1,l())),h=v;return(function(u,d){if(arguments.length>0){const b=d?S(c):u;return J(c,b),a=!0,i!==void 0&&(i=b),u}return ve&&a||(h.f&Y)!==0?c.v:S(c)})}function An(e){return new Cn(e)}class Cn{#t;#e;constructor(t){var r=new Map,n=(s,o)=>{var f=zr(o,!1,!1);return r.set(s,f),f};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return S(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===$r?!0:(S(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,f){return J(r.get(o)??n(o,f),f),Reflect.set(s,o,f)}});this.#e=(t.hydrate?mn:or)(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)&&ye(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Re(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{yn(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 ar;typeof HTMLElement=="function"&&(ar=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),ht(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Nn(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]=Ke(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=An({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Zr(()=>{Yt(()=>{this.$$r=!0;for(const n of Ne(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Ke(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]=Ke(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 Ne(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ke(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 Nn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Rn(e,t,r,n,i,s){let o=class extends ar{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ne(t).map(f=>(t[f].attribute||f).toLowerCase())}};return Ne(t).forEach(f=>{Re(o.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(l){l=Ke(f,l,t),this.$$d[f]=l;var a=this.$$c;if(a){var c=ae(a,f)?.get;c?a[f]=l:a.$set({[f]:l})}}})}),n.forEach(f=>{Re(o.prototype,f,{get(){return this.$$c?.[f]}})}),e.element=o,o}var On=vn('<div class="skeleton-root svelte-10p6erh"><p class="svelte-10p6erh"> </p> <p class="svelte-10p6erh"> </p> <p class="svelte-10p6erh"> </p> <p class="svelte-10p6erh"> </p> <button class="btn btn-primary svelte-10p6erh">Dispatch Event</button> <!></div>');const Pn={hash:"svelte-10p6erh",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;}
3
3
  /*!
4
4
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
5
5
  * Copyright 2011-2021 The Bootstrap Authors
@@ -56,5 +56,5 @@ button.svelte-10p6erh {margin:0;font-family:inherit;font-size:inherit;line-heigh
56
56
  @media (min-width: 1200px) {
57
57
  }
58
58
  @media (min-width: 1400px) {
59
- }`};function ur(e,t){kt(t,!0),$n(e,Pn);let r=Je(t,"id",7,""),n=Je(t,"string",7,""),s=Je(t,"json",7,"{}"),i=Je(t,"boolean",7,!1),o=it(()=>n()?n().toUpperCase():""),l=it(()=>{if(typeof s()=="object")return s();try{return JSON.parse(s()||"{}")}catch{return{}}}),f=it(()=>i()===!0||i()==="true"||i()==="");function a(){t.$$host.dispatchEvent(new CustomEvent("event",{detail:{test:!0}}))}var h={get id(){return r()},set id(I=""){r(I),ye()},get string(){return n()},set string(I=""){n(I),ye()},get json(){return s()},set json(I="{}"){s(I),ye()},get boolean(){return i()},set boolean(I=!1){i(I),ye()}},d=On(),u=xe(d),c=xe(u);ge(u);var b=ke(u,2),M=xe(b);ge(b);var D=ke(b,2),We=xe(D);ge(D);var le=ke(D,2),jn=xe(le);ge(le);var cr=ke(le,2);cr.__click=a;var Mn=ke(cr,2);return wn(Mn,t,"content",{},I=>{var Dn=bn("Default slot content");ut(I,Dn)}),ge(d),rn(I=>{kn(d,"id",r()),ze(c,`String: ${n()??""}`),ze(M,`Upper: ${S(o)??""}`),ze(We,`Boolean: ${S(f)??""}`),ze(jn,`JSON keys: ${I??""}`)},[()=>Object.keys(S(l)).join(", ")]),ut(e,d),St(h)}dn(["click"]),customElements.define("hb-skeleton-component",Rn(ur,{id:{},string:{},json:{},boolean:{}},["content"],[],!0)),ht.Component=ur,Object.defineProperty(ht,Symbol.toStringTag,{value:"Module"})})(this["skeleton-component"]=this["skeleton-component"]||{});
59
+ }`};function ur(e,t){St(t,!0),$n(e,Pn);let r=Je(t,"id",7,""),n=Je(t,"string",7,""),i=Je(t,"json",7,"{}"),s=Je(t,"boolean",7,!1),o=ft(()=>n()?n().toUpperCase():""),f=ft(()=>{if(typeof i()=="object")return i();try{return JSON.parse(i()||"{}")}catch{return{}}}),l=ft(()=>s()===!0||s()==="true"||s()==="");function a(){t.$$host.dispatchEvent(new CustomEvent("event",{detail:{test:!0}}))}var c={get id(){return r()},set id(L=""){r(L),ye()},get string(){return n()},set string(L=""){n(L),ye()},get json(){return i()},set json(L="{}"){i(L),ye()},get boolean(){return s()},set boolean(L=!1){s(L),ye()}},h=On(),u=xe(h),d=xe(u);ge(u);var b=ke(u,2),D=xe(b);ge(b);var I=ke(b,2),We=xe(I);ge(I);var fe=ke(I,2),jn=xe(fe);ge(fe);var cr=ke(fe,2);cr.__click=a;var Mn=ke(cr,2);return wn(Mn,t,"content",{},L=>{var Dn=bn("Default slot content");ht(L,Dn)}),ge(h),rn(L=>{kn(h,"id",r()),ze(d,`String: ${n()??""}`),ze(D,`Upper: ${S(o)??""}`),ze(We,`Boolean: ${S(l)??""}`),ze(jn,`JSON keys: ${L??""}`)},[()=>Object.keys(S(f)).join(", ")]),ht(e,h),Tt(c)}hn(["click"]),customElements.define("hb-skeleton-component",Rn(ur,{id:{},string:{},json:{},boolean:{}},["content"],[],!0)),vt.Component=ur,Object.defineProperty(vt,Symbol.toStringTag,{value:"Module"})})(this["skeleton-component"]=this["skeleton-component"]||{});
60
60
  //# sourceMappingURL=main.iife.js.map