@htmlbricks/hb-dialog-loader 0.61.39 → 0.61.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,6 +1,6 @@
1
- (function(ut){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const gr=2,wr="[",$r="]",pe={},x=Symbol(),br="http://www.w3.org/1999/xhtml",ft=!1;var ct=Array.isArray,mr=Array.prototype.indexOf,yr=Array.from,Ne=Object.keys,ie=Object.defineProperty,le=Object.getOwnPropertyDescriptor,Er=Object.getOwnPropertyDescriptors,Tr=Object.prototype,xr=Array.prototype,ht=Object.getPrototypeOf,vt=Object.isExtensible;function dt(e){for(var t=0;t<e.length;t++)e[t]()}function Sr(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const k=2,De=4,qe=8,ge=16,U=32,G=64,_t=128,C=256,Ae=512,N=1024,I=2048,V=4096,ae=8192,z=16384,Fe=32768,Nr=65536,pt=1<<17,Ar=1<<18,oe=1<<19,kr=1<<20,Ye=1<<21,Be=1<<22,J=1<<23,He=Symbol("$state"),Rr=Symbol("legacy props"),Or=Symbol(""),Ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},gt=3,wt=8;function Cr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Pr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Mr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ir(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Lr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function jr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Dr(){throw new Error("https://svelte.dev/e/hydration_failed")}function qr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ge(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let m=!1;function ue(e){m=e}let E;function Z(e){if(e===null)throw Ge(),pe;return E=e}function Ve(){return Z(ce(E))}function we(e){if(m){if(ce(E)!==null)throw Ge(),pe;E=e}}function Br(e=1){if(m){for(var t=e,r=E;t--;)r=ce(r);E=r}}function $t(e){return e===this.v}function Hr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ur(e){return!Hr(e,this.v)}let Gr=!1,L=null;function ke(e){L=e}function bt(e,t=!1,r){L={p:L,c:null,e:null,s:e,x:null,l:null}}function mt(e){var t=L,r=t.e;if(r!==null){t.e=null;for(var n of r)Dt(n)}return e!==void 0&&(t.x=e),L=t.p,e??{}}function yt(){return!0}const Vr=new WeakMap;function Wr(e){var t=p;if(t===null)return g.f|=J,e;if((t.f&Fe)===0){if((t.f&_t)===0)throw!t.parent&&e instanceof Error&&Et(e),e;t.b.error(e)}else We(e,t)}function We(e,t){for(;t!==null;){if((t.f&_t)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Et(e),e}function Et(e){const t=Vr.get(e);t&&(ie(e,"message",{value:t.message}),ie(e,"stack",{value:t.stack}))}let $e=[],Xe=[];function Tt(){var e=$e;$e=[],dt(e)}function Xr(){var e=Xe;Xe=[],dt(e)}function Kr(e){$e.length===0&&queueMicrotask(Tt),$e.push(e)}function zr(){$e.length>0&&Tt(),Xe.length>0&&Xr()}function Jr(){const e=p.b;return e===null&&Cr(),e}function xt(e){var t=k|I,r=g!==null&&(g.f&k)!==0?g:null;return p===null||r!==null&&(r.f&C)!==0?t|=C:p.f|=oe,{ctx:L,deps:null,effects:null,equals:$t,f:t,fn:e,reactions:null,rv:0,v:x,wv:0,parent:r??p,ac:null}}function Zr(e,t){let r=p;r===null&&Pr();var n=r.b,s=void 0,i=Ze(x),l=null,o=!g;return dn(()=>{try{var a=e();l&&Promise.resolve(a).catch(()=>{})}catch(h){a=Promise.reject(h)}var u=()=>a;s=l?.then(u,u)??Promise.resolve(a),l=s;var f=S,c=n.is_pending();o&&(n.update_pending_count(1),c||f.increment());const v=(h,d=void 0)=>{l=null,c||f.activate(),d?d!==Ue&&(i.f|=J,Qe(i,d)):((i.f&J)!==0&&(i.f^=J),Qe(i,h)),o&&(n.update_pending_count(-1),c||f.decrement()),At()};if(s.then(v,h=>v(null,h||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(a=>{function u(f){function c(){f===s?a(i):u(s)}f.then(c,c)}u(s)})}function St(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)X(t[r])}}function Qr(e){for(var t=e.parent;t!==null;){if((t.f&k)===0)return t;t=t.parent}return null}function Ke(e){var t,r=p;q(Qr(e));try{St(e),t=Kt(e)}finally{q(r)}return t}function Nt(e){var t=Ke(e);if(e.equals(t)||(e.v=t,e.wv=Wt()),!re){var r=(K||(e.f&C)!==0)&&e.deps!==null?V:N;O(e,r)}}function en(e,t,r){const n=xt;if(t.length===0){r(e.map(n));return}var s=S,i=p,l=tn(),o=Jr();Promise.all(t.map(a=>Zr(a))).then(a=>{s?.activate(),l();try{r([...e.map(n),...a])}catch(u){(i.f&z)===0&&We(u,i)}s?.deactivate(),At()}).catch(a=>{o.error(a)})}function tn(){var e=p,t=g,r=L,n=S;return function(){q(e),P(t),ke(r),n?.activate()}}function At(){q(null),P(null),ke(null)}const ze=new Set;let S=null,kt=new Set,Re=[];function Rt(){const e=Re.shift();Re.length>0&&queueMicrotask(Rt),e()}let Q=[],Oe=null,Je=!1,Ce=!1;class ee{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#s=[];#l=[];#i=[];#n=[];#a=[];#c=[];#h=[];skipped_effects=new Set;process(t){Q=[];for(const s of t)this.#d(s);if(this.#s.length===0&&this.#r===0){this.#v();var r=this.#i,n=this.#n;this.#i=[],this.#n=[],this.#a=[],S=null,Ct(r),Ct(n),S===null?S=this:ze.delete(this),this.#u?.resolve()}else this.#o(this.#i),this.#o(this.#n),this.#o(this.#a);for(const s of this.#s)ve(s);for(const s of this.#l)ve(s);this.#s=[],this.#l=[]}#d(t){t.f^=N;for(var r=t.first;r!==null;){var n=r.f,s=(n&(U|G))!==0,i=s&&(n&N)!==0,l=i||(n&ae)!==0||this.skipped_effects.has(r);if(!l&&r.fn!==null){if(s)r.f^=N;else if((n&De)!==0)this.#n.push(r);else if((n&N)===0)if((n&Be)!==0){var o=r.b?.is_pending()?this.#l:this.#s;o.push(r)}else Ie(r)&&((r.f&ge)!==0&&this.#a.push(r),ve(r));var a=r.first;if(a!==null){r=a;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#o(t){for(const r of t)((r.f&I)!==0?this.#c:this.#h).push(r),O(r,N);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){S=this}deactivate(){S=null;for(const t of kt)if(kt.delete(t),t(),S!==null)break}neuter(){this.#f=!0}flush(){Q.length>0?Ot():this.#v(),S===this&&(this.#r===0&&ze.delete(this),this.deactivate())}#v(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)O(t,I),be(t);for(const t of this.#h)O(t,V),be(t);this.#i=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Sr()).promise}static ensure(){if(S===null){const t=S=new ee;ze.add(S),Ce||ee.enqueue(()=>{S===t&&t.flush()})}return S}static enqueue(t){Re.length===0&&queueMicrotask(Rt),Re.unshift(t)}}function Pe(e){var t=Ce;Ce=!0;try{for(var r;;){if(zr(),Q.length===0&&(S?.flush(),Q.length===0))return Oe=null,r;Ot()}}finally{Ce=t}}function Ot(){var e=he;Je=!0;try{var t=0;for(Ht(!0);Q.length>0;){var r=ee.ensure();if(t++>1e3){var n,s;rn()}r.process(Q),W.clear()}}finally{Je=!1,Ht(e),Oe=null}}function rn(){try{jr()}catch(e){We(e,Oe)}}let te=null;function Ct(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(z|ae))===0&&Ie(n)&&(te=[],ve(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Yt(n):n.fn=null),te?.length>0)){W.clear();for(const s of te)ve(s);te=[]}}te=null}}function be(e){for(var t=Oe=e;t.parent!==null;){t=t.parent;var r=t.f;if(Je&&t===p&&(r&ge)!==0)return;if((r&(G|U))!==0){if((r&N)===0)return;t.f^=N}}Q.push(t)}const W=new Map;function Ze(e,t){var r={f:0,v:e,reactions:null,equals:$t,rv:0,wv:0};return r}function D(e,t){const r=Ze(e);return mn(r),r}function nn(e,t=!1,r=!0){const n=Ze(e);return t||(n.equals=Ur),n}function Y(e,t,r=!1){g!==null&&(!ne||(g.f&pt)!==0)&&yt()&&(g.f&(k|ge|Be|pt))!==0&&!H?.includes(e)&&Yr();let n=r?fe(t):t;return Qe(e,n)}function Qe(e,t){if(!e.equals(t)){var r=e.v;re?W.set(e,t):W.set(e,r),e.v=t;var n=ee.ensure();n.capture(e,r),(e.f&k)!==0&&((e.f&I)!==0&&Ke(e),O(e,(e.f&C)===0?N:V)),e.wv=Wt(),Pt(e,I),p!==null&&(p.f&N)!==0&&(p.f&(U|G))===0&&(M===null?yn([e]):M.push(e))}return t}function et(e){Y(e,e.v+1)}function Pt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],l=i.f,o=(l&I)===0;o&&O(i,t),(l&k)!==0?Pt(i,V):o&&((l&ge)!==0&&te!==null&&te.push(i),be(i))}}function fe(e){if(typeof e!="object"||e===null||He in e)return e;const t=ht(e);if(t!==Tr&&t!==xr)return e;var r=new Map,n=ct(e),s=D(0),i=se,l=o=>{if(se===i)return o();var a=g,u=se;P(null),Vt(i);var f=o();return P(a),Vt(u),f};return n&&r.set("length",D(e.length)),new Proxy(e,{defineProperty(o,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&qr();var f=r.get(a);return f===void 0?f=l(()=>{var c=D(u.value);return r.set(a,c),c}):Y(f,u.value,!0),!0},deleteProperty(o,a){var u=r.get(a);if(u===void 0){if(a in o){const f=l(()=>D(x));r.set(a,f),et(s)}}else Y(u,x),et(s);return!0},get(o,a,u){if(a===He)return e;var f=r.get(a),c=a in o;if(f===void 0&&(!c||le(o,a)?.writable)&&(f=l(()=>{var h=fe(c?o[a]:x),d=D(h);return d}),r.set(a,f)),f!==void 0){var v=F(f);return v===x?void 0:v}return Reflect.get(o,a,u)},getOwnPropertyDescriptor(o,a){var u=Reflect.getOwnPropertyDescriptor(o,a);if(u&&"value"in u){var f=r.get(a);f&&(u.value=F(f))}else if(u===void 0){var c=r.get(a),v=c?.v;if(c!==void 0&&v!==x)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return u},has(o,a){if(a===He)return!0;var u=r.get(a),f=u!==void 0&&u.v!==x||Reflect.has(o,a);if(u!==void 0||p!==null&&(!f||le(o,a)?.writable)){u===void 0&&(u=l(()=>{var v=f?fe(o[a]):x,h=D(v);return h}),r.set(a,u));var c=F(u);if(c===x)return!1}return f},set(o,a,u,f){var c=r.get(a),v=a in o;if(n&&a==="length")for(var h=u;h<c.v;h+=1){var d=r.get(h+"");d!==void 0?Y(d,x):h in o&&(d=l(()=>D(x)),r.set(h+"",d))}if(c===void 0)(!v||le(o,a)?.writable)&&(c=l(()=>D(void 0)),Y(c,fe(u)),r.set(a,c));else{v=c.v!==x;var w=l(()=>fe(u));Y(c,w)}var $=Reflect.getOwnPropertyDescriptor(o,a);if($?.set&&$.set.call(f,u),!v){if(n&&typeof a=="string"){var T=r.get("length"),y=Number(a);Number.isInteger(y)&&y>=T.v&&Y(T,y+1)}et(s)}return!0},ownKeys(o){F(s);var a=Reflect.ownKeys(o).filter(c=>{var v=r.get(c);return v===void 0||v.v!==x});for(var[u,f]of r)f.v!==x&&!(u in o)&&a.push(u);return a},setPrototypeOf(){Fr()}})}var Mt,It,Lt,jt;function tt(){if(Mt===void 0){Mt=window,It=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Lt=le(t,"firstChild").get,jt=le(t,"nextSibling").get,vt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),vt(r)&&(r.__t=void 0)}}function me(e=""){return document.createTextNode(e)}function Me(e){return Lt.call(e)}function ce(e){return jt.call(e)}function ye(e,t){if(!m)return Me(e);var r=Me(E);return r===null&&(r=E.appendChild(me())),Z(r),r}function sn(e,t=1,r=!1){let n=m?E:e;for(var s;t--;)s=n,n=ce(n);if(!m)return n;if(r&&n?.nodeType!==gt){var i=me();return n===null?s?.after(i):n.before(i),Z(i),i}return Z(n),n}function ln(e){e.textContent=""}function rt(e){var t=g,r=p;P(null),q(null);try{return e()}finally{P(t),q(r)}}function an(e){p===null&&g===null&&Lr(),g!==null&&(g.f&C)!==0&&p===null&&Ir(),re&&Mr()}function on(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function B(e,t,r,n=!0){var s=p;s!==null&&(s.f&ae)!==0&&(e|=ae);var i={ctx:L,deps:null,nodes_start:null,nodes_end:null,f:e|I,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{ve(i),i.f|=Fe}catch(a){throw X(i),a}else t!==null&&be(i);if(n){var l=i;if(r&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&oe)===0&&(l=l.first),l!==null&&(l.parent=s,s!==null&&on(l,s),g!==null&&(g.f&k)!==0&&(e&G)===0)){var o=g;(o.effects??=[]).push(l)}}return i}function un(e){const t=B(qe,null,!1);return O(t,N),t.teardown=e,t}function fn(e){an();var t=p.f,r=!g&&(t&U)!==0&&(t&Fe)===0;if(r){var n=L;(n.e??=[]).push(e)}else return Dt(e)}function Dt(e){return B(De|kr,e,!1)}function cn(e){ee.ensure();const t=B(G|oe,e,!0);return()=>{X(t)}}function hn(e){ee.ensure();const t=B(G|oe,e,!0);return(r={})=>new Promise(n=>{r.outro?$n(t,()=>{X(t),n(void 0)}):(X(t),n(void 0))})}function vn(e){return B(De,e,!1)}function dn(e){return B(Be|oe,e,!0)}function _n(e,t=0){return B(qe|t,e,!0)}function nt(e,t=[],r=[]){en(t,r,n=>{B(qe,()=>e(...n.map(F)),!0)})}function pn(e,t=!0){return B(U|oe,e,!0,t)}function qt(e){var t=e.teardown;if(t!==null){const r=re,n=g;Ut(!0),P(null);try{t.call(null)}finally{Ut(r),P(n)}}}function Ft(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&rt(()=>{s.abort(Ue)});var n=r.next;(r.f&G)!==0?r.parent=null:X(r,t),r=n}}function gn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&U)===0&&X(t),t=r}}function X(e,t=!0){var r=!1;(t||(e.f&Ar)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(wn(e.nodes_start,e.nodes_end),r=!0),Ft(e,t&&!r),Le(e,0),O(e,z);var n=e.transitions;if(n!==null)for(const i of n)i.stop();qt(e);var s=e.parent;s!==null&&s.first!==null&&Yt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function wn(e,t){for(;e!==null;){var r=e===t?null:ce(e);e.remove(),e=r}}function Yt(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 $n(e,t){var r=[];Bt(e,r,!0),bn(r,()=>{X(e),t&&t()})}function bn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function Bt(e,t,r){if((e.f&ae)===0){if(e.f^=ae,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&Nr)!==0||(n.f&U)!==0;Bt(n,t,i?r:!1),n=s}}}let he=!1;function Ht(e){he=e}let re=!1;function Ut(e){re=e}let g=null,ne=!1;function P(e){g=e}let p=null;function q(e){p=e}let H=null;function mn(e){g!==null&&(H===null?H=[e]:H.push(e))}let A=null,R=0,M=null;function yn(e){M=e}let Gt=1,Ee=0,se=Ee;function Vt(e){se=e}let K=!1;function Wt(){return++Gt}function Ie(e){var t=e.f;if((t&I)!==0)return!0;if((t&V)!==0){var r=e.deps,n=(t&C)!==0;if(r!==null){var s,i,l=(t&Ae)!==0,o=n&&p!==null&&!K,a=r.length;if((l||o)&&(p===null||(p.f&z)===0)){var u=e,f=u.parent;for(s=0;s<a;s++)i=r[s],(l||!i?.reactions?.includes(u))&&(i.reactions??=[]).push(u);l&&(u.f^=Ae),o&&f!==null&&(f.f&C)===0&&(u.f^=C)}for(s=0;s<a;s++)if(i=r[s],Ie(i)&&Nt(i),i.wv>e.wv)return!0}(!n||p!==null&&!K)&&O(e,N)}return!1}function Xt(e,t,r=!0){var n=e.reactions;if(n!==null&&!H?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&k)!==0?Xt(i,t,!1):t===i&&(r?O(i,I):(i.f&N)!==0&&O(i,V),be(i))}}function Kt(e){var t=A,r=R,n=M,s=g,i=K,l=H,o=L,a=ne,u=se,f=e.f;A=null,R=0,M=null,K=(f&C)!==0&&(ne||!he||g===null),g=(f&(U|G))===0?e:null,H=null,ke(e.ctx),ne=!1,se=++Ee,e.ac!==null&&(rt(()=>{e.ac.abort(Ue)}),e.ac=null);try{e.f|=Ye;var c=e.fn,v=c(),h=e.deps;if(A!==null){var d;if(Le(e,R),h!==null&&R>0)for(h.length=R+A.length,d=0;d<A.length;d++)h[R+d]=A[d];else e.deps=h=A;if(!K||(f&k)!==0&&e.reactions!==null)for(d=R;d<h.length;d++)(h[d].reactions??=[]).push(e)}else h!==null&&R<h.length&&(Le(e,R),h.length=R);if(yt()&&M!==null&&!ne&&h!==null&&(e.f&(k|V|I))===0)for(d=0;d<M.length;d++)Xt(M[d],e);return s!==null&&s!==e&&(Ee++,M!==null&&(n===null?n=M:n.push(...M))),(e.f&J)!==0&&(e.f^=J),v}catch(w){return Wr(w)}finally{e.f^=Ye,A=t,R=r,M=n,g=s,K=i,H=l,ke(o),ne=a,se=u}}function En(e,t){let r=t.reactions;if(r!==null){var n=mr.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&k)!==0&&(A===null||!A.includes(t))&&(O(t,V),(t.f&(C|Ae))===0&&(t.f^=Ae),St(t),Le(t,0))}function Le(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)En(e,r[n])}function ve(e){var t=e.f;if((t&z)===0){O(e,N);var r=p,n=he;p=e,he=!0;try{(t&ge)!==0?gn(e):Ft(e),qt(e);var s=Kt(e);e.teardown=typeof s=="function"?s:null,e.wv=Gt;var i;ft&&Gr&&(e.f&I)!==0&&e.deps}finally{he=n,p=r}}}function F(e){var t=e.f,r=(t&k)!==0;if(g!==null&&!ne){var n=p!==null&&(p.f&z)!==0;if(!n&&!H?.includes(e)){var s=g.deps;if((g.f&Ye)!==0)e.rv<Ee&&(e.rv=Ee,A===null&&s!==null&&s[R]===e?R++:A===null?A=[e]:(!K||!A.includes(e))&&A.push(e));else{(g.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[g]:i.includes(g)||i.push(g)}}}else if(r&&e.deps===null&&e.effects===null){var l=e,o=l.parent;o!==null&&(o.f&C)===0&&(l.f^=C)}if(re){if(W.has(e))return W.get(e);if(r){l=e;var a=l.v;return((l.f&N)===0&&l.reactions!==null||zt(l))&&(a=Ke(l)),W.set(l,a),a}}else r&&(l=e,Ie(l)&&Nt(l));if((e.f&J)!==0)throw e.v;return e.v}function zt(e){if(e.v===x)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(W.has(t)||(t.f&k)!==0&&zt(t))return!0;return!1}const Tn=-7169;function O(e,t){e.f=e.f&Tn|t}const xn=new Set,Jt=new Set;function Sn(e,t,r,n={}){function s(i){if(n.capture||Te.call(t,i),!i.cancelBubble)return rt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Kr(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function Nn(e,t,r,n,s){var i={capture:n,passive:s},l=Sn(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&un(()=>{t.removeEventListener(e,l,i)})}let Zt=null;function Te(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Zt=e;var l=0,o=Zt===e&&e.__root;if(o){var a=s.indexOf(o);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;a<=u&&(l=a)}if(i=s[l]||e.target,i!==t){ie(e,"currentTarget",{configurable:!0,get(){return i||r}});var f=g,c=p;P(null),q(null);try{for(var v,h=[];i!==null;){var d=i.assignedSlot||i.parentNode||i.host||null;try{var w=i["__"+n];if(w!=null&&(!i.disabled||e.target===i))if(ct(w)){var[$,...T]=w;$.apply(i,[e,...T])}else w.call(i,e)}catch(y){v?h.push(y):v=y}if(e.cancelBubble||d===t||d===null)break;i=d}if(v){for(let y of h)queueMicrotask(()=>{throw y});throw v}}finally{e.__root=t,delete e.currentTarget,P(f),q(c)}}}function An(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function xe(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function kn(e,t){var r=(t&gr)!==0,n,s=!e.startsWith("<!>");return()=>{if(m)return xe(E,null),E;n===void 0&&(n=An(s?e:"<!>"+e),n=Me(n));var i=r||It?document.importNode(n,!0):n.cloneNode(!0);return xe(i,i),i}}function Rn(e=""){if(!m){var t=me(e+"");return xe(t,t),t}var r=E;return r.nodeType!==gt&&(r.before(r=me()),Z(r)),xe(r,r),r}function st(e,t){if(m){p.nodes_end=E,Ve();return}e!==null&&e.before(t)}const On=["touchstart","touchmove"];function Cn(e){return On.includes(e)}function Qt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function er(e,t){return tr(e,t)}function Pn(e,t){tt(),t.intro=t.intro??!1;const r=t.target,n=m,s=E;try{for(var i=Me(r);i&&(i.nodeType!==wt||i.data!==wr);)i=ce(i);if(!i)throw pe;ue(!0),Z(i),Ve();const l=tr(e,{...t,anchor:i});if(E===null||E.nodeType!==wt||E.data!==$r)throw Ge(),pe;return ue(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==pe&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Dr(),tt(),ln(r),ue(!1),er(e,t)}finally{ue(n),Z(s)}}const de=new Map;function tr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:l=!0}){tt();var o=new Set,a=c=>{for(var v=0;v<c.length;v++){var h=c[v];if(!o.has(h)){o.add(h);var d=Cn(h);t.addEventListener(h,Te,{passive:d});var w=de.get(h);w===void 0?(document.addEventListener(h,Te,{passive:d}),de.set(h,1)):de.set(h,w+1)}}};a(yr(xn)),Jt.add(a);var u=void 0,f=hn(()=>{var c=r??t.appendChild(me());return pn(()=>{if(i){bt({});var v=L;v.c=i}s&&(n.$$events=s),m&&xe(c,null),u=e(c,n)||{},m&&(p.nodes_end=E),i&&mt()}),()=>{for(var v of o){t.removeEventListener(v,Te);var h=de.get(v);--h===0?(document.removeEventListener(v,Te),de.delete(v)):de.set(v,h)}Jt.delete(a),c!==r&&c.parentNode?.removeChild(c)}});return it.set(u,f),u}let it=new WeakMap;function Mn(e,t){const r=it.get(e);return r?(it.delete(e),r(t)):Promise.resolve()}function In(e,t,r,n,s){m&&Ve();var i=t.$$slots?.[r],l=!1;i===!0&&(i=t[r],l=!0),i===void 0?s!==null&&s(e):i(e,l?()=>n:n)}function Ln(e,t){vn(()=>{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)}})}function jn(e,t,r){var n=""+e;return n}function Dn(e,t){return e==null?null:String(e)}function qn(e,t,r,n,s,i){var l=e.__className;if(m||l!==r||l===void 0){var o=jn(r);(!m||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function rr(e,t,r,n){var s=e.__style;if(m||s!==t){var i=Dn(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const Fn=Symbol("is custom element"),Yn=Symbol("is html");function nr(e,t,r,n){var s=Hn(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Or]=r),r==null?e.removeAttribute(t):typeof r!="string"&&sr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Bn(e,t,r){var n=g,s=p;let i=m;m&&ue(!1),P(null),q(null);try{t!=="style"&&(lt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?sr(e).includes(t):r&&typeof r=="object")?e[t]=r:nr(e,t,r==null?r:String(r))}finally{P(n),q(s),i&&ue(!0)}}function Hn(e){return e.__attributes??={[Fn]:e.nodeName.includes("-"),[Yn]:e.namespaceURI===br}}var lt=new Map;function sr(e){var t=e.getAttribute("is")||e.nodeName,r=lt.get(t);if(r)return r;lt.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Er(s);for(var l in n)n[l].set&&r.push(l);s=ht(s)}return r}function at(e,t,r,n){var s=n,i=!0,l=()=>(i&&(i=!1,s=n),s),o;o=e[t],o===void 0&&n!==void 0&&(o=l());var a;a=()=>{var v=e[t];return v===void 0?l():(i=!0,v)};var u=!1,f=xt(()=>(u=!1,a())),c=p;return(function(v,h){if(arguments.length>0){const d=h?F(f):v;return Y(f,d),u=!0,s!==void 0&&(s=d),v}return re&&u||(c.f&z)!==0?f.v:F(f)})}function Un(e){return new Gn(e)}class Gn{#t;#e;constructor(t){var r=new Map,n=(i,l)=>{var o=nn(l,!1,!1);return r.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,l){return F(r.get(l)??n(l,Reflect.get(i,l)))},has(i,l){return l===Rr?!0:(F(r.get(l)??n(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,o){return Y(r.get(l)??n(l,o),o),Reflect.set(i,l,o)}});this.#e=(t.hydrate?Pn:er)(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)&&Pe(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||ie(this,i,{get(){return this.#e[i]},set(l){this.#e[i]=l},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Mn(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 ir;typeof HTMLElement=="function"&&(ir=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),st(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Vn(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]=je(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=Un({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=cn(()=>{_n(()=>{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=je(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]=je(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 je(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 Vn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Wn(e,t,r,n,s,i){let l=class extends ir{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ne(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ne(t).forEach(o=>{ie(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=je(o,a,t),this.$$d[o]=a;var u=this.$$c;if(u){var f=le(u,o)?.get;f?u[o]=a:u.$set({[o]:a})}}})}),n.forEach(o=>{ie(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const Xn={version:"0.61.39"};function Kn(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const s=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(s+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}function zn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _e={},ot,lr;function Jn(){if(lr)return ot;lr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,o=/^\s+|\s+$/g,a=`
3
- `,u="/",f="*",c="",v="comment",h="declaration";ot=function(w,$){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];$=$||{};var T=1,y=1;function fr(b){var _=b.match(t);_&&(T+=_.length);var j=b.lastIndexOf(a);y=~j?b.length-j:y+b.length}function cr(){var b={line:T,column:y};return function(_){return _.position=new hr(b),dr(),_}}function hr(b){this.start=b,this.end={line:T,column:y},this.source=$.source}hr.prototype.content=w;function vr(b){var _=new Error($.source+":"+T+":"+y+": "+b);if(_.reason=b,_.filename=$.source,_.line=T,_.column=y,_.source=w,!$.silent)throw _}function Se(b){var _=b.exec(w);if(_){var j=_[0];return fr(j),w=w.slice(j.length),_}}function dr(){Se(r)}function _r(b){var _;for(b=b||[];_=pr();)_!==!1&&b.push(_);return b}function pr(){var b=cr();if(!(u!=w.charAt(0)||f!=w.charAt(1))){for(var _=2;c!=w.charAt(_)&&(f!=w.charAt(_)||u!=w.charAt(_+1));)++_;if(_+=2,c===w.charAt(_-1))return vr("End of comment missing");var j=w.slice(2,_-2);return y+=2,fr(j),w=w.slice(_),y+=2,b({type:v,comment:j})}}function rs(){var b=cr(),_=Se(n);if(_){if(pr(),!Se(s))return vr("property missing ':'");var j=Se(i),ss=b({type:h,property:d(_[0].replace(e,c)),value:j?d(j[0].replace(e,c)):c});return Se(l),ss}}function ns(){var b=[];_r(b);for(var _;_=rs();)_!==!1&&(b.push(_),_r(b));return b}return dr(),ns()};function d(w){return w?w.replace(o,c):c}return ot}var ar;function Zn(){if(ar)return _e;ar=1;var e=_e&&_e.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=r;var t=e(Jn());function r(n,s){var i=null;if(!n||typeof n!="string")return i;var l=(0,t.default)(n),o=typeof s=="function";return l.forEach(function(a){if(a.type==="declaration"){var u=a.property,f=a.value;o?s(u,f,a):f&&(i=i||{},i[u]=f)}}),i}return _e}var Qn=Zn();const or=zn(Qn);or.default;var es=kn('<hb-dialog><span slot="title" class="svelte-qxv4dk"><!></span> <div slot="body-content" class="svelte-qxv4dk"><div class="progress svelte-qxv4dk"><div class="progress-bar svelte-qxv4dk" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div></div> <span slot="modal-footer" class="svelte-qxv4dk"></span></hb-dialog>',2);const ts={hash:"svelte-qxv4dk",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");
1
+ (function(ft){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const mr=2,br="[",$r="]",ge={},x=Symbol(),yr="http://www.w3.org/1999/xhtml",ct=!1;var vt=Array.isArray,Er=Array.prototype.indexOf,Tr=Array.from,Oe=Object.keys,ae=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,xr=Object.getOwnPropertyDescriptors,Nr=Object.prototype,Ar=Array.prototype,dt=Object.getPrototypeOf,ht=Object.isExtensible;function _t(e){for(var t=0;t<e.length;t++)e[t]()}function Or(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const R=2,qe=4,Fe=8,we=16,H=32,U=64,pt=128,C=256,Re=512,A=1024,M=2048,V=4096,le=8192,K=16384,Ye=32768,Rr=65536,gt=1<<17,Sr=1<<18,ue=1<<19,kr=1<<20,Be=1<<21,We=1<<22,J=1<<23,He=Symbol("$state"),Cr=Symbol("legacy props"),Pr=Symbol(""),Ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},wt=3,mt=8;function Lr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Mr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Dr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ir(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function jr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function qr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Fr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Yr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Br(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ve(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function fe(e){$=e}let E;function Z(e){if(e===null)throw Ve(),ge;return E=e}function Ge(){return Z(ve(E))}function me(e){if($){if(ve(E)!==null)throw Ve(),ge;E=e}}function Hr(e=1){if($){for(var t=e,r=E;t--;)r=ve(r);E=r}}function bt(e){return e===this.v}function Ur(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Vr(e){return!Ur(e,this.v)}let Gr=!1,D=null;function Se(e){D=e}function $t(e,t=!1,r){D={p:D,c:null,e:null,s:e,x:null,l:null}}function yt(e){var t=D,r=t.e;if(r!==null){t.e=null;for(var n of r)qt(n)}return e!==void 0&&(t.x=e),D=t.p,e??{}}function Et(){return!0}const Xr=new WeakMap;function zr(e){var t=p;if(t===null)return g.f|=J,e;if((t.f&Ye)===0){if((t.f&pt)===0)throw!t.parent&&e instanceof Error&&Tt(e),e;t.b.error(e)}else Xe(e,t)}function Xe(e,t){for(;t!==null;){if((t.f&pt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Tt(e),e}function Tt(e){const t=Xr.get(e);t&&(ae(e,"message",{value:t.message}),ae(e,"stack",{value:t.stack}))}let be=[],ze=[];function xt(){var e=be;be=[],_t(e)}function Kr(){var e=ze;ze=[],_t(e)}function Jr(e){be.length===0&&queueMicrotask(xt),be.push(e)}function Zr(){be.length>0&&xt(),ze.length>0&&Kr()}function Qr(){const e=p.b;return e===null&&Lr(),e}function Nt(e){var t=R|M,r=g!==null&&(g.f&R)!==0?g:null;return p===null||r!==null&&(r.f&C)!==0?t|=C:p.f|=ue,{ctx:D,deps:null,effects:null,equals:bt,f:t,fn:e,reactions:null,rv:0,v:x,wv:0,parent:r??p,ac:null}}function en(e,t){let r=p;r===null&&Mr();var n=r.b,i=void 0,s=Qe(x),a=null,o=!g;return pn(()=>{try{var l=e();a&&Promise.resolve(l).catch(()=>{})}catch(d){l=Promise.reject(d)}var u=()=>l;i=a?.then(u,u)??Promise.resolve(l),a=i;var f=N,v=n.is_pending();o&&(n.update_pending_count(1),v||f.increment());const c=(d,h=void 0)=>{a=null,v||f.activate(),h?h!==Ue&&(s.f|=J,et(s,h)):((s.f&J)!==0&&(s.f^=J),et(s,d)),o&&(n.update_pending_count(-1),v||f.decrement()),Rt()};if(i.then(c,d=>c(null,d||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(l=>{function u(f){function v(){f===i?l(s):u(i)}f.then(v,v)}u(i)})}function At(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)X(t[r])}}function tn(e){for(var t=e.parent;t!==null;){if((t.f&R)===0)return t;t=t.parent}return null}function Ke(e){var t,r=p;q(tn(e));try{At(e),t=Kt(e)}finally{q(r)}return t}function Ot(e){var t=Ke(e);if(e.equals(t)||(e.v=t,e.wv=Xt()),!re){var r=(z||(e.f&C)!==0)&&e.deps!==null?V:A;k(e,r)}}function rn(e,t,r){const n=Nt;if(t.length===0){r(e.map(n));return}var i=N,s=p,a=nn(),o=Qr();Promise.all(t.map(l=>en(l))).then(l=>{i?.activate(),a();try{r([...e.map(n),...l])}catch(u){(s.f&K)===0&&Xe(u,s)}i?.deactivate(),Rt()}).catch(l=>{o.error(l)})}function nn(){var e=p,t=g,r=D,n=N;return function(){q(e),P(t),Se(r),n?.activate()}}function Rt(){q(null),P(null),Se(null)}const Je=new Set;let N=null,St=new Set,ke=[];function kt(){const e=ke.shift();ke.length>0&&queueMicrotask(kt),e()}let Q=[],Ce=null,Ze=!1,Pe=!1;class ee{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#a=[];#s=[];#n=[];#o=[];#c=[];#v=[];skipped_effects=new Set;process(t){Q=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#r===0){this.#d();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#o=[],N=null,Pt(r),Pt(n),N===null?N=this:Je.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#o);for(const i of this.#i)he(i);for(const i of this.#a)he(i);this.#i=[],this.#a=[]}#h(t){t.f^=A;for(var r=t.first;r!==null;){var n=r.f,i=(n&(H|U))!==0,s=i&&(n&A)!==0,a=s||(n&le)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(i)r.f^=A;else if((n&qe)!==0)this.#n.push(r);else if((n&A)===0)if((n&We)!==0){var o=r.b?.is_pending()?this.#a:this.#i;o.push(r)}else De(r)&&((r.f&we)!==0&&this.#o.push(r),he(r));var l=r.first;if(l!==null){r=l;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&M)!==0?this.#c:this.#v).push(r),k(r,A);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){N=this}deactivate(){N=null;for(const t of St)if(St.delete(t),t(),N!==null)break}neuter(){this.#f=!0}flush(){Q.length>0?Ct():this.#d(),N===this&&(this.#r===0&&Je.delete(this),this.deactivate())}#d(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)k(t,M),$e(t);for(const t of this.#v)k(t,V),$e(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Or()).promise}static ensure(){if(N===null){const t=N=new ee;Je.add(N),Pe||ee.enqueue(()=>{N===t&&t.flush()})}return N}static enqueue(t){ke.length===0&&queueMicrotask(kt),ke.unshift(t)}}function Le(e){var t=Pe;Pe=!0;try{for(var r;;){if(Zr(),Q.length===0&&(N?.flush(),Q.length===0))return Ce=null,r;Ct()}}finally{Pe=t}}function Ct(){var e=de;Ze=!0;try{var t=0;for(Ht(!0);Q.length>0;){var r=ee.ensure();if(t++>1e3){var n,i;sn()}r.process(Q),G.clear()}}finally{Ze=!1,Ht(e),Ce=null}}function sn(){try{qr()}catch(e){Xe(e,Ce)}}let te=null;function Pt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(K|le))===0&&De(n)&&(te=[],he(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Bt(n):n.fn=null),te?.length>0)){G.clear();for(const i of te)he(i);te=[]}}te=null}}function $e(e){for(var t=Ce=e;t.parent!==null;){t=t.parent;var r=t.f;if(Ze&&t===p&&(r&we)!==0)return;if((r&(U|H))!==0){if((r&A)===0)return;t.f^=A}}Q.push(t)}const G=new Map;function Qe(e,t){var r={f:0,v:e,reactions:null,equals:bt,rv:0,wv:0};return r}function j(e,t){const r=Qe(e);return En(r),r}function an(e,t=!1,r=!0){const n=Qe(e);return t||(n.equals=Vr),n}function Y(e,t,r=!1){g!==null&&(!ne||(g.f&gt)!==0)&&Et()&&(g.f&(R|we|We|gt))!==0&&!W?.includes(e)&&Wr();let n=r?ce(t):t;return et(e,n)}function et(e,t){if(!e.equals(t)){var r=e.v;re?G.set(e,t):G.set(e,r),e.v=t;var n=ee.ensure();n.capture(e,r),(e.f&R)!==0&&((e.f&M)!==0&&Ke(e),k(e,(e.f&C)===0?A:V)),e.wv=Xt(),Lt(e,M),p!==null&&(p.f&A)!==0&&(p.f&(H|U))===0&&(L===null?Tn([e]):L.push(e))}return t}function tt(e){Y(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],a=s.f,o=(a&M)===0;o&&k(s,t),(a&R)!==0?Lt(s,V):o&&((a&we)!==0&&te!==null&&te.push(s),$e(s))}}function ce(e){if(typeof e!="object"||e===null||He in e)return e;const t=dt(e);if(t!==Nr&&t!==Ar)return e;var r=new Map,n=vt(e),i=j(0),s=ie,a=o=>{if(ie===s)return o();var l=g,u=ie;P(null),Gt(s);var f=o();return P(l),Gt(u),f};return n&&r.set("length",j(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Yr();var f=r.get(l);return f===void 0?f=a(()=>{var v=j(u.value);return r.set(l,v),v}):Y(f,u.value,!0),!0},deleteProperty(o,l){var u=r.get(l);if(u===void 0){if(l in o){const f=a(()=>j(x));r.set(l,f),tt(i)}}else Y(u,x),tt(i);return!0},get(o,l,u){if(l===He)return e;var f=r.get(l),v=l in o;if(f===void 0&&(!v||oe(o,l)?.writable)&&(f=a(()=>{var d=ce(v?o[l]:x),h=j(d);return h}),r.set(l,f)),f!==void 0){var c=F(f);return c===x?void 0:c}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=F(f))}else if(u===void 0){var v=r.get(l),c=v?.v;if(v!==void 0&&c!==x)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(o,l){if(l===He)return!0;var u=r.get(l),f=u!==void 0&&u.v!==x||Reflect.has(o,l);if(u!==void 0||p!==null&&(!f||oe(o,l)?.writable)){u===void 0&&(u=a(()=>{var c=f?ce(o[l]):x,d=j(c);return d}),r.set(l,u));var v=F(u);if(v===x)return!1}return f},set(o,l,u,f){var v=r.get(l),c=l in o;if(n&&l==="length")for(var d=u;d<v.v;d+=1){var h=r.get(d+"");h!==void 0?Y(h,x):d in o&&(h=a(()=>j(x)),r.set(d+"",h))}if(v===void 0)(!c||oe(o,l)?.writable)&&(v=a(()=>j(void 0)),Y(v,ce(u)),r.set(l,v));else{c=v.v!==x;var w=a(()=>ce(u));Y(v,w)}var m=Reflect.getOwnPropertyDescriptor(o,l);if(m?.set&&m.set.call(f,u),!c){if(n&&typeof l=="string"){var T=r.get("length"),y=Number(l);Number.isInteger(y)&&y>=T.v&&Y(T,y+1)}tt(i)}return!0},ownKeys(o){F(i);var l=Reflect.ownKeys(o).filter(v=>{var c=r.get(v);return c===void 0||c.v!==x});for(var[u,f]of r)f.v!==x&&!(u in o)&&l.push(u);return l},setPrototypeOf(){Br()}})}var Mt,Dt,It,jt;function rt(){if(Mt===void 0){Mt=window,Dt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;It=oe(t,"firstChild").get,jt=oe(t,"nextSibling").get,ht(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ht(r)&&(r.__t=void 0)}}function ye(e=""){return document.createTextNode(e)}function Me(e){return It.call(e)}function ve(e){return jt.call(e)}function Ee(e,t){if(!$)return Me(e);var r=Me(E);return r===null&&(r=E.appendChild(ye())),Z(r),r}function on(e,t=1,r=!1){let n=$?E:e;for(var i;t--;)i=n,n=ve(n);if(!$)return n;if(r&&n?.nodeType!==wt){var s=ye();return n===null?i?.after(s):n.before(s),Z(s),s}return Z(n),n}function ln(e){e.textContent=""}function nt(e){var t=g,r=p;P(null),q(null);try{return e()}finally{P(t),q(r)}}function un(e){p===null&&g===null&&jr(),g!==null&&(g.f&C)!==0&&p===null&&Ir(),re&&Dr()}function fn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function B(e,t,r,n=!0){var i=p;i!==null&&(i.f&le)!==0&&(e|=le);var s={ctx:D,deps:null,nodes_start:null,nodes_end:null,f:e|M,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{he(s),s.f|=Ye}catch(l){throw X(s),l}else t!==null&&$e(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&ue)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&fn(a,i),g!==null&&(g.f&R)!==0&&(e&U)===0)){var o=g;(o.effects??=[]).push(a)}}return s}function cn(e){const t=B(Fe,null,!1);return k(t,A),t.teardown=e,t}function vn(e){un();var t=p.f,r=!g&&(t&H)!==0&&(t&Ye)===0;if(r){var n=D;(n.e??=[]).push(e)}else return qt(e)}function qt(e){return B(qe|kr,e,!1)}function dn(e){ee.ensure();const t=B(U|ue,e,!0);return()=>{X(t)}}function hn(e){ee.ensure();const t=B(U|ue,e,!0);return(r={})=>new Promise(n=>{r.outro?$n(t,()=>{X(t),n(void 0)}):(X(t),n(void 0))})}function _n(e){return B(qe,e,!1)}function pn(e){return B(We|ue,e,!0)}function gn(e,t=0){return B(Fe|t,e,!0)}function it(e,t=[],r=[]){rn(t,r,n=>{B(Fe,()=>e(...n.map(F)),!0)})}function wn(e,t=!0){return B(H|ue,e,!0,t)}function Ft(e){var t=e.teardown;if(t!==null){const r=re,n=g;Ut(!0),P(null);try{t.call(null)}finally{Ut(r),P(n)}}}function Yt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&nt(()=>{i.abort(Ue)});var n=r.next;(r.f&U)!==0?r.parent=null:X(r,t),r=n}}function mn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&H)===0&&X(t),t=r}}function X(e,t=!0){var r=!1;(t||(e.f&Sr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(bn(e.nodes_start,e.nodes_end),r=!0),Yt(e,t&&!r),Ie(e,0),k(e,K);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Ft(e);var i=e.parent;i!==null&&i.first!==null&&Bt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function bn(e,t){for(;e!==null;){var r=e===t?null:ve(e);e.remove(),e=r}}function Bt(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 $n(e,t){var r=[];Wt(e,r,!0),yn(r,()=>{X(e),t&&t()})}function yn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Wt(e,t,r){if((e.f&le)===0){if(e.f^=le,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&Rr)!==0||(n.f&H)!==0;Wt(n,t,s?r:!1),n=i}}}let de=!1;function Ht(e){de=e}let re=!1;function Ut(e){re=e}let g=null,ne=!1;function P(e){g=e}let p=null;function q(e){p=e}let W=null;function En(e){g!==null&&(W===null?W=[e]:W.push(e))}let O=null,S=0,L=null;function Tn(e){L=e}let Vt=1,Te=0,ie=Te;function Gt(e){ie=e}let z=!1;function Xt(){return++Vt}function De(e){var t=e.f;if((t&M)!==0)return!0;if((t&V)!==0){var r=e.deps,n=(t&C)!==0;if(r!==null){var i,s,a=(t&Re)!==0,o=n&&p!==null&&!z,l=r.length;if((a||o)&&(p===null||(p.f&K)===0)){var u=e,f=u.parent;for(i=0;i<l;i++)s=r[i],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=Re),o&&f!==null&&(f.f&C)===0&&(u.f^=C)}for(i=0;i<l;i++)if(s=r[i],De(s)&&Ot(s),s.wv>e.wv)return!0}(!n||p!==null&&!z)&&k(e,A)}return!1}function zt(e,t,r=!0){var n=e.reactions;if(n!==null&&!W?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&R)!==0?zt(s,t,!1):t===s&&(r?k(s,M):(s.f&A)!==0&&k(s,V),$e(s))}}function Kt(e){var t=O,r=S,n=L,i=g,s=z,a=W,o=D,l=ne,u=ie,f=e.f;O=null,S=0,L=null,z=(f&C)!==0&&(ne||!de||g===null),g=(f&(H|U))===0?e:null,W=null,Se(e.ctx),ne=!1,ie=++Te,e.ac!==null&&(nt(()=>{e.ac.abort(Ue)}),e.ac=null);try{e.f|=Be;var v=e.fn,c=v(),d=e.deps;if(O!==null){var h;if(Ie(e,S),d!==null&&S>0)for(d.length=S+O.length,h=0;h<O.length;h++)d[S+h]=O[h];else e.deps=d=O;if(!z||(f&R)!==0&&e.reactions!==null)for(h=S;h<d.length;h++)(d[h].reactions??=[]).push(e)}else d!==null&&S<d.length&&(Ie(e,S),d.length=S);if(Et()&&L!==null&&!ne&&d!==null&&(e.f&(R|V|M))===0)for(h=0;h<L.length;h++)zt(L[h],e);return i!==null&&i!==e&&(Te++,L!==null&&(n===null?n=L:n.push(...L))),(e.f&J)!==0&&(e.f^=J),c}catch(w){return zr(w)}finally{e.f^=Be,O=t,S=r,L=n,g=i,z=s,W=a,Se(o),ne=l,ie=u}}function xn(e,t){let r=t.reactions;if(r!==null){var n=Er.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&R)!==0&&(O===null||!O.includes(t))&&(k(t,V),(t.f&(C|Re))===0&&(t.f^=Re),At(t),Ie(t,0))}function Ie(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)xn(e,r[n])}function he(e){var t=e.f;if((t&K)===0){k(e,A);var r=p,n=de;p=e,de=!0;try{(t&we)!==0?mn(e):Yt(e),Ft(e);var i=Kt(e);e.teardown=typeof i=="function"?i:null,e.wv=Vt;var s;ct&&Gr&&(e.f&M)!==0&&e.deps}finally{de=n,p=r}}}function F(e){var t=e.f,r=(t&R)!==0;if(g!==null&&!ne){var n=p!==null&&(p.f&K)!==0;if(!n&&!W?.includes(e)){var i=g.deps;if((g.f&Be)!==0)e.rv<Te&&(e.rv=Te,O===null&&i!==null&&i[S]===e?S++:O===null?O=[e]:(!z||!O.includes(e))&&O.push(e));else{(g.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[g]:s.includes(g)||s.push(g)}}}else if(r&&e.deps===null&&e.effects===null){var a=e,o=a.parent;o!==null&&(o.f&C)===0&&(a.f^=C)}if(re){if(G.has(e))return G.get(e);if(r){a=e;var l=a.v;return((a.f&A)===0&&a.reactions!==null||Jt(a))&&(l=Ke(a)),G.set(a,l),l}}else r&&(a=e,De(a)&&Ot(a));if((e.f&J)!==0)throw e.v;return e.v}function Jt(e){if(e.v===x)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(G.has(t)||(t.f&R)!==0&&Jt(t))return!0;return!1}const Nn=-7169;function k(e,t){e.f=e.f&Nn|t}const An=new Set,Zt=new Set;function On(e,t,r,n={}){function i(s){if(n.capture||xe.call(t,s),!s.cancelBubble)return nt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Jr(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Rn(e,t,r,n,i){var s={capture:n,passive:i},a=On(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&cn(()=>{t.removeEventListener(e,a,s)})}let Qt=null;function xe(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Qt=e;var a=0,o=Qt===e&&e.__root;if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(s=i[a]||e.target,s!==t){ae(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=g,v=p;P(null),q(null);try{for(var c,d=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var w=s["__"+n];if(w!=null&&(!s.disabled||e.target===s))if(vt(w)){var[m,...T]=w;m.apply(s,[e,...T])}else w.call(s,e)}catch(y){c?d.push(y):c=y}if(e.cancelBubble||h===t||h===null)break;s=h}if(c){for(let y of d)queueMicrotask(()=>{throw y});throw c}}finally{e.__root=t,delete e.currentTarget,P(f),q(v)}}}function Sn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ne(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function kn(e,t){var r=(t&mr)!==0,n,i=!e.startsWith("<!>");return()=>{if($)return Ne(E,null),E;n===void 0&&(n=Sn(i?e:"<!>"+e),n=Me(n));var s=r||Dt?document.importNode(n,!0):n.cloneNode(!0);return Ne(s,s),s}}function Cn(e=""){if(!$){var t=ye(e+"");return Ne(t,t),t}var r=E;return r.nodeType!==wt&&(r.before(r=ye()),Z(r)),Ne(r,r),r}function st(e,t){if($){p.nodes_end=E,Ge();return}e!==null&&e.before(t)}const Pn=["touchstart","touchmove"];function Ln(e){return Pn.includes(e)}function er(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function tr(e,t){return rr(e,t)}function Mn(e,t){rt(),t.intro=t.intro??!1;const r=t.target,n=$,i=E;try{for(var s=Me(r);s&&(s.nodeType!==mt||s.data!==br);)s=ve(s);if(!s)throw ge;fe(!0),Z(s),Ge();const a=rr(e,{...t,anchor:s});if(E===null||E.nodeType!==mt||E.data!==$r)throw Ve(),ge;return fe(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==ge&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Fr(),rt(),ln(r),fe(!1),tr(e,t)}finally{fe(n),Z(i)}}const _e=new Map;function rr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){rt();var o=new Set,l=v=>{for(var c=0;c<v.length;c++){var d=v[c];if(!o.has(d)){o.add(d);var h=Ln(d);t.addEventListener(d,xe,{passive:h});var w=_e.get(d);w===void 0?(document.addEventListener(d,xe,{passive:h}),_e.set(d,1)):_e.set(d,w+1)}}};l(Tr(An)),Zt.add(l);var u=void 0,f=hn(()=>{var v=r??t.appendChild(ye());return wn(()=>{if(s){$t({});var c=D;c.c=s}i&&(n.$$events=i),$&&Ne(v,null),u=e(v,n)||{},$&&(p.nodes_end=E),s&&yt()}),()=>{for(var c of o){t.removeEventListener(c,xe);var d=_e.get(c);--d===0?(document.removeEventListener(c,xe),_e.delete(c)):_e.set(c,d)}Zt.delete(l),v!==r&&v.parentNode?.removeChild(v)}});return at.set(u,f),u}let at=new WeakMap;function Dn(e,t){const r=at.get(e);return r?(at.delete(e),r(t)):Promise.resolve()}function In(e,t,r,n,i){$&&Ge();var s=t.$$slots?.[r],a=!1;s===!0&&(s=t[r],a=!0),s===void 0?i!==null&&i(e):s(e,a?()=>n:n)}function jn(e,t){_n(()=>{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 qn(e,t,r){var n=""+e;return n}function Fn(e,t){return e==null?null:String(e)}function Yn(e,t,r,n,i,s){var a=e.__className;if($||a!==r||a===void 0){var o=qn(r);(!$||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return s}function nr(e,t,r,n){var i=e.__style;if($||i!==t){var s=Fn(t);(!$||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Bn=Symbol("is custom element"),Wn=Symbol("is html");function ir(e,t,r,n){var i=Un(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Pr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&sr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Hn(e,t,r){var n=g,i=p;let s=$;$&&fe(!1),P(null),q(null);try{t!=="style"&&(ot.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?sr(e).includes(t):r&&typeof r=="object")?e[t]=r:ir(e,t,r==null?r:String(r))}finally{P(n),q(i),s&&fe(!0)}}function Un(e){return e.__attributes??={[Bn]:e.nodeName.includes("-"),[Wn]:e.namespaceURI===yr}}var ot=new Map;function sr(e){var t=e.getAttribute("is")||e.nodeName,r=ot.get(t);if(r)return r;ot.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=xr(i);for(var a in n)n[a].set&&r.push(a);i=dt(i)}return r}function lt(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),o;o=e[t],o===void 0&&n!==void 0&&(o=a());var l;l=()=>{var c=e[t];return c===void 0?a():(s=!0,c)};var u=!1,f=Nt(()=>(u=!1,l())),v=p;return(function(c,d){if(arguments.length>0){const h=d?F(f):c;return Y(f,h),u=!0,i!==void 0&&(i=h),c}return re&&u||(v.f&K)!==0?f.v:F(f)})}function Vn(e){return new Gn(e)}class Gn{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var o=an(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return F(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Cr?!0:(F(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return Y(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#e=(t.hydrate?Mn:tr)(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)&&Le(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||ae(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=()=>{Dn(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),st(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Xn(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]=je(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=Vn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=dn(()=>{gn(()=>{this.$$r=!0;for(const n of Oe(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=je(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]=je(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 Oe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function je(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 Xn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function zn(e,t,r,n,i,s){let a=class extends ar{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Oe(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Oe(t).forEach(o=>{ae(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=je(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var f=oe(u,o)?.get;f?u[o]=l:u.$set({[o]:l})}}})}),n.forEach(o=>{ae(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const Kn={version:"0.61.41"};function Jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var se={},or;function Zn(){if(or)return se;or=1,Object.defineProperty(se,"__esModule",{value:!0}),se.LanguageTranslator=void 0,se.getChildStyleToPass=e,se.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(c){return Object.keys(n).includes(c.name)}))===null||a===void 0)&&a.length))for(var l=function(c){var d=i?.filter(function(h){return h.name===c&&h.defaultValue!==n[c]});d&&(o+="".concat(c,":").concat(n[c],";"))},u=0,f=Object.keys(n);u<f.length;u++){var v=f[u];l(v)}}catch(c){console.error("error getting child style to pass",c)}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(u){console.warn(u)}}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,l,u="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)&&(u=(l=(o=navigator.languages[0])===null||o===void 0?void 0:o.split("-")[0])===null||l===void 0?void 0:l.toLowerCase()),u},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="",u=n.getDefaultLang();if(!a||u!==a){var f=s?.[u];f?.[i]&&(l=f[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 se.LanguageTranslator=r,se}var Qn=Zn(),pe={},ut,lr;function ei(){if(lr)return ut;lr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
3
+ `,u="/",f="*",v="",c="comment",d="declaration";ut=function(w,m){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];m=m||{};var T=1,y=1;function vr(b){var _=b.match(t);_&&(T+=_.length);var I=b.lastIndexOf(l);y=~I?b.length-I:y+b.length}function dr(){var b={line:T,column:y};return function(_){return _.position=new hr(b),pr(),_}}function hr(b){this.start=b,this.end={line:T,column:y},this.source=m.source}hr.prototype.content=w;function _r(b){var _=new Error(m.source+":"+T+":"+y+": "+b);if(_.reason=b,_.filename=m.source,_.line=T,_.column=y,_.source=w,!m.silent)throw _}function Ae(b){var _=b.exec(w);if(_){var I=_[0];return vr(I),w=w.slice(I.length),_}}function pr(){Ae(r)}function gr(b){var _;for(b=b||[];_=wr();)_!==!1&&b.push(_);return b}function wr(){var b=dr();if(!(u!=w.charAt(0)||f!=w.charAt(1))){for(var _=2;v!=w.charAt(_)&&(f!=w.charAt(_)||u!=w.charAt(_+1));)++_;if(_+=2,v===w.charAt(_-1))return _r("End of comment missing");var I=w.slice(2,_-2);return y+=2,vr(I),w=w.slice(_),y+=2,b({type:c,comment:I})}}function si(){var b=dr(),_=Ae(n);if(_){if(wr(),!Ae(i))return _r("property missing ':'");var I=Ae(s),oi=b({type:d,property:h(_[0].replace(e,v)),value:I?h(I[0].replace(e,v)):v});return Ae(a),oi}}function ai(){var b=[];gr(b);for(var _;_=si();)_!==!1&&(b.push(_),gr(b));return b}return pr(),ai()};function h(w){return w?w.replace(o,v):v}return ut}var ur;function ti(){if(ur)return pe;ur=1;var e=pe&&pe.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(pe,"__esModule",{value:!0}),pe.default=r;var t=e(ei());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var a=(0,t.default)(n),o=typeof i=="function";return a.forEach(function(l){if(l.type==="declaration"){var u=l.property,f=l.value;o?i(u,f,l):f&&(s=s||{},s[u]=f)}}),s}return pe}var ri=ti();const fr=Jn(ri);fr.default;var ni=kn('<hb-dialog><span slot="title" class="svelte-qxv4dk"><!></span> <div slot="body-content" class="svelte-qxv4dk"><div class="progress svelte-qxv4dk"><div class="progress-bar svelte-qxv4dk" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div></div> <span slot="modal-footer" class="svelte-qxv4dk"></span></hb-dialog>',2);const ii={hash:"svelte-qxv4dk",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");
4
4
  /*!
5
5
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
6
6
  * Copyright 2011-2021 The Bootstrap Authors
@@ -15,5 +15,5 @@
15
15
  @media (prefers-reduced-motion: reduce) {.progress-bar.svelte-qxv4dk {transition:none;}
16
16
  }
17
17
  @media (prefers-reduced-motion: reduce) {
18
- }:host {font-family:"Roboto", sans-serif;}`};function ur(e,t){bt(t,!0),Ln(e,ts),fe({});let r=D("");function n($,T){t.$$host.dispatchEvent(new CustomEvent($,{detail:T}))}Kn({repoName:"@htmlbricks/hb-dialog",version:Xn.version});let s=at(t,"id",7,""),i=at(t,"title",7,"loading"),l=at(t,"percentage",7,0);fn(()=>{typeof l()=="string"&&l(parseInt(l()))});function o($){n("modalShow",$)}var a={get id(){return s()},set id($=""){s($),Pe()},get title(){return i()},set title($="loading"){i($),Pe()},get percentage(){return l()},set percentage($=0){l($),Pe()}},u=es();rr(u,F(r)),nt(()=>Bn(u,"show",l()?"yes":"no")),qn(u,1,"svelte-qxv4dk");var f=ye(u),c=ye(f);In(c,t,"title",{},$=>{var T=Rn();nt(()=>Qt(T,i())),st($,T)}),we(f);var v=sn(f,2),h=ye(v),d=ye(h),w=ye(d);return we(d),we(h),we(v),Br(2),we(u),nt(($,T,y)=>{rr(d,`width:${$??""}%`),nr(d,"aria-valuenow",T),Qt(w,`${y??""}%`)},[()=>Math.round(l()),()=>Math.round(l()),()=>Math.round(l())]),Nn("modalShow",u,$=>o($.detail)),st(e,u),mt(a)}customElements.define("hb-dialog-loader",Wn(ur,{id:{},title:{},percentage:{}},["title"],[],!0)),ut.Component=ur,Object.defineProperty(ut,Symbol.toStringTag,{value:"Module"})})(this["dialog-loader"]=this["dialog-loader"]||{});
18
+ }:host {font-family:"Roboto", sans-serif;}`};function cr(e,t){$t(t,!0),jn(e,ii),ce({});let r=j("");function n(m,T){t.$$host.dispatchEvent(new CustomEvent(m,{detail:T}))}Qn.addComponent({repoName:"@htmlbricks/hb-dialog",version:Kn.version});let i=lt(t,"id",7,""),s=lt(t,"title",7,"loading"),a=lt(t,"percentage",7,0);vn(()=>{typeof a()=="string"&&a(parseInt(a()))});function o(m){n("modalShow",m)}var l={get id(){return i()},set id(m=""){i(m),Le()},get title(){return s()},set title(m="loading"){s(m),Le()},get percentage(){return a()},set percentage(m=0){a(m),Le()}},u=ni();nr(u,F(r)),it(()=>Hn(u,"show",a()?"yes":"no")),Yn(u,1,"svelte-qxv4dk");var f=Ee(u),v=Ee(f);In(v,t,"title",{},m=>{var T=Cn();it(()=>er(T,s())),st(m,T)}),me(f);var c=on(f,2),d=Ee(c),h=Ee(d),w=Ee(h);return me(h),me(d),me(c),Hr(2),me(u),it((m,T,y)=>{nr(h,`width:${m??""}%`),ir(h,"aria-valuenow",T),er(w,`${y??""}%`)},[()=>Math.round(a()),()=>Math.round(a()),()=>Math.round(a())]),Rn("modalShow",u,m=>o(m.detail)),st(e,u),yt(l)}customElements.define("hb-dialog-loader",zn(cr,{id:{},title:{},percentage:{}},["title"],[],!0)),ft.Component=cr,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})})(this["dialog-loader"]=this["dialog-loader"]||{});
19
19
  //# sourceMappingURL=main.iife.js.map