@htmlbricks/hb-downloader 0.60.1 → 0.60.3

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,21 +1,21 @@
1
- (function(Nt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Mr=1,Lr=2,Rt="[",At="[!",Ot="]",ge={},O=Symbol(),Ir="http://www.w3.org/1999/xhtml",xt=!1;var Ct=Array.isArray,qr=Array.prototype.indexOf,Dr=Array.from,Fe=Object.keys,me=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Fr=Object.getOwnPropertyDescriptors,Ur=Object.prototype,Yr=Array.prototype,kt=Object.getPrototypeOf,jt=Object.isExtensible;function Pt(e){for(var t=0;t<e.length;t++)e[t]()}function Hr(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const L=2,tt=4,rt=8,$e=16,V=32,X=64,Mt=128,q=256,Ue=512,C=1024,D=2048,K=4096,z=8192,ae=16384,nt=32768,it=65536,Lt=1<<17,Br=1<<18,ye=1<<19,Gr=1<<20,st=1<<21,at=1<<22,le=1<<23,lt=Symbol("$state"),Vr=Symbol("legacy props"),Wr=Symbol(""),ot=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},It=3,Ye=8;function Xr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Kr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function zr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Jr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Zr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Qr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function en(){throw new Error("https://svelte.dev/e/hydration_failed")}function tn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function rn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function nn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function He(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let E=!1;function J(e){E=e}let S;function Z(e){if(e===null)throw He(),ge;return S=e}function Be(){return Z(ee(S))}function ke(e){if(E){if(ee(S)!==null)throw He(),ge;S=e}}function sn(e=1){if(E){for(var t=e,r=S;t--;)r=ee(r);S=r}}function an(){for(var e=0,t=S;;){if(t.nodeType===Ye){var r=t.data;if(r===Ot){if(e===0)return t;e-=1}else(r===Rt||r===At)&&(e+=1)}var n=ee(t);t.remove(),t=n}}function ln(e){if(!e||e.nodeType!==Ye)throw He(),ge;return e.data}function qt(e){return e===this.v}function on(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function un(e){return!on(e,this.v)}let fn=!1,Y=null;function Ge(e){Y=e}function Dt(e,t=!1,r){Y={p:Y,c:null,e:null,s:e,x:null,l:null}}function Ft(e){var t=Y,r=t.e;if(r!==null){t.e=null;for(var n of r)ir(n)}return e!==void 0&&(t.x=e),Y=t.p,e??{}}function Ut(){return!0}const cn=new WeakMap;function dn(e){var t=m;if(t===null)return w.f|=le,e;if((t.f&nt)===0){if((t.f&Mt)===0)throw!t.parent&&e instanceof Error&&Yt(e),e;t.b.error(e)}else ut(e,t)}function ut(e,t){for(;t!==null;){if((t.f&Mt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Yt(e),e}function Yt(e){const t=cn.get(e);t&&(me(e,"message",{value:t.message}),me(e,"stack",{value:t.stack}))}let je=[],ft=[];function Ht(){var e=je;je=[],Pt(e)}function vn(){var e=ft;ft=[],Pt(e)}function hn(e){je.length===0&&queueMicrotask(Ht),je.push(e)}function _n(){je.length>0&&Ht(),ft.length>0&&vn()}function pn(){const e=m.b;return e===null&&Xr(),e}function Bt(e){var t=L|D,r=w!==null&&(w.f&L)!==0?w:null;return m===null||r!==null&&(r.f&q)!==0?t|=q:m.f|=ye,{ctx:Y,deps:null,effects:null,equals:qt,f:t,fn:e,reactions:null,rv:0,v:O,wv:0,parent:r??m,ac:null}}function gn(e,t){let r=m;r===null&&Kr();var n=r.b,i=void 0,s=ht(O),a=null,l=!w;return jn(()=>{try{var o=e();a&&Promise.resolve(o).catch(()=>{})}catch(d){o=Promise.reject(d)}var u=()=>o;i=a?.then(u,u)??Promise.resolve(o),a=i;var f=x,c=n.is_pending();l&&(n.update_pending_count(1),c||f.increment());const v=(d,h=void 0)=>{a=null,c||f.activate(),h?h!==ot&&(s.f|=le,_t(s,h)):((s.f&le)!==0&&(s.f^=le),_t(s,d)),l&&(n.update_pending_count(-1),c||f.decrement()),Wt()};if(i.then(v,d=>v(null,d||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(o=>{function u(f){function c(){f===i?o(s):u(i)}f.then(c,c)}u(i)})}function Gt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)te(t[r])}}function mn(e){for(var t=e.parent;t!==null;){if((t.f&L)===0)return t;t=t.parent}return null}function ct(e){var t,r=m;B(mn(e));try{Gt(e),t=gr(e)}finally{B(r)}return t}function Vt(e){var t=ct(e);if(e.equals(t)||(e.v=t,e.wv=_r()),!de){var r=(re||(e.f&q)!==0)&&e.deps!==null?K:C;M(e,r)}}function wn(e,t,r){const n=Bt;if(t.length===0){r(e.map(n));return}var i=x,s=m,a=$n(),l=pn();Promise.all(t.map(o=>gn(o))).then(o=>{i?.activate(),a();try{r([...e.map(n),...o])}catch(u){(s.f&ae)===0&&ut(u,s)}i?.deactivate(),Wt()}).catch(o=>{l.error(o)})}function $n(){var e=m,t=w,r=Y,n=x;return function(){B(e),F(t),Ge(r),n?.activate()}}function Wt(){B(null),F(null),Ge(null)}const dt=new Set;let x=null,Xt=new Set,Ve=[];function Kt(){const e=Ve.shift();Ve.length>0&&queueMicrotask(Kt),e()}let oe=[],We=null,vt=!1,Xe=!1;class ue{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#a=[];#s=[];#n=[];#l=[];#c=[];#d=[];skipped_effects=new Set;process(t){oe=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#r===0){this.#v();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#l=[],x=null,Jt(r),Jt(n),x===null?x=this:dt.delete(this),this.#u?.resolve()}else this.#o(this.#s),this.#o(this.#n),this.#o(this.#l);for(const i of this.#i)Re(i);for(const i of this.#a)Re(i);this.#i=[],this.#a=[]}#h(t){t.f^=C;for(var r=t.first;r!==null;){var n=r.f,i=(n&(V|X))!==0,s=i&&(n&C)!==0,a=s||(n&z)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(i)r.f^=C;else if((n&tt)!==0)this.#n.push(r);else if((n&C)===0)if((n&at)!==0){var l=r.b?.is_pending()?this.#a:this.#i;l.push(r)}else ze(r)&&((r.f&$e)!==0&&this.#l.push(r),Re(r));var o=r.first;if(o!==null){r=o;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&D)!==0?this.#c:this.#d).push(r),M(r,C);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){x=this}deactivate(){x=null;for(const t of Xt)if(Xt.delete(t),t(),x!==null)break}neuter(){this.#f=!0}flush(){oe.length>0?zt():this.#v(),x===this&&(this.#r===0&&dt.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)M(t,D),Ee(t);for(const t of this.#d)M(t,K),Ee(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Hr()).promise}static ensure(){if(x===null){const t=x=new ue;dt.add(x),Xe||ue.enqueue(()=>{x===t&&t.flush()})}return x}static enqueue(t){Ve.length===0&&queueMicrotask(Kt),Ve.unshift(t)}}function be(e){var t=Xe;Xe=!0;try{for(var r;;){if(_n(),oe.length===0&&(x?.flush(),oe.length===0))return We=null,r;zt()}}finally{Xe=t}}function zt(){var e=Ne;vt=!0;try{var t=0;for(cr(!0);oe.length>0;){var r=ue.ensure();if(t++>1e3){var n,i;yn()}r.process(oe),Q.clear()}}finally{vt=!1,cr(e),We=null}}function yn(){try{Qr()}catch(e){ut(e,We)}}let fe=null;function Jt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ae|z))===0&&ze(n)&&(fe=[],Re(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?lr(n):n.fn=null),fe?.length>0)){Q.clear();for(const i of fe)Re(i);fe=[]}}fe=null}}function Ee(e){for(var t=We=e;t.parent!==null;){t=t.parent;var r=t.f;if(vt&&t===m&&(r&$e)!==0)return;if((r&(X|V))!==0){if((r&C)===0)return;t.f^=C}}oe.push(t)}const Q=new Map;function ht(e,t){var r={f:0,v:e,reactions:null,equals:qt,rv:0,wv:0};return r}function j(e,t){const r=ht(e);return Fn(r),r}function bn(e,t=!1,r=!0){const n=ht(e);return t||(n.equals=un),n}function R(e,t,r=!1){w!==null&&(!ve||(w.f&Lt)!==0)&&Ut()&&(w.f&(L|$e|at|Lt))!==0&&!W?.includes(e)&&nn();let n=r?Te(t):t;return _t(e,n)}function _t(e,t){if(!e.equals(t)){var r=e.v;de?Q.set(e,t):Q.set(e,r),e.v=t;var n=ue.ensure();n.capture(e,r),(e.f&L)!==0&&((e.f&D)!==0&&ct(e),M(e,(e.f&q)===0?C:K)),e.wv=_r(),Zt(e,D),m!==null&&(m.f&C)!==0&&(m.f&(V|X))===0&&(U===null?Un([e]):U.push(e))}return t}function pt(e){R(e,e.v+1)}function Zt(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,l=(a&D)===0;l&&M(s,t),(a&L)!==0?Zt(s,K):l&&((a&$e)!==0&&fe!==null&&fe.push(s),Ee(s))}}function Te(e){if(typeof e!="object"||e===null||lt in e)return e;const t=kt(e);if(t!==Ur&&t!==Yr)return e;var r=new Map,n=Ct(e),i=j(0),s=he,a=l=>{if(he===s)return l();var o=w,u=he;F(null),hr(s);var f=l();return F(o),hr(u),f};return n&&r.set("length",j(e.length)),new Proxy(e,{defineProperty(l,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&tn();var f=r.get(o);return f===void 0?f=a(()=>{var c=j(u.value);return r.set(o,c),c}):R(f,u.value,!0),!0},deleteProperty(l,o){var u=r.get(o);if(u===void 0){if(o in l){const f=a(()=>j(O));r.set(o,f),pt(i)}}else R(u,O),pt(i);return!0},get(l,o,u){if(o===lt)return e;var f=r.get(o),c=o in l;if(f===void 0&&(!c||we(l,o)?.writable)&&(f=a(()=>{var d=Te(c?l[o]:O),h=j(d);return h}),r.set(o,f)),f!==void 0){var v=p(f);return v===O?void 0:v}return Reflect.get(l,o,u)},getOwnPropertyDescriptor(l,o){var u=Reflect.getOwnPropertyDescriptor(l,o);if(u&&"value"in u){var f=r.get(o);f&&(u.value=p(f))}else if(u===void 0){var c=r.get(o),v=c?.v;if(c!==void 0&&v!==O)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return u},has(l,o){if(o===lt)return!0;var u=r.get(o),f=u!==void 0&&u.v!==O||Reflect.has(l,o);if(u!==void 0||m!==null&&(!f||we(l,o)?.writable)){u===void 0&&(u=a(()=>{var v=f?Te(l[o]):O,d=j(v);return d}),r.set(o,u));var c=p(u);if(c===O)return!1}return f},set(l,o,u,f){var c=r.get(o),v=o in l;if(n&&o==="length")for(var d=u;d<c.v;d+=1){var h=r.get(d+"");h!==void 0?R(h,O):d in l&&(h=a(()=>j(O)),r.set(d+"",h))}if(c===void 0)(!v||we(l,o)?.writable)&&(c=a(()=>j(void 0)),R(c,Te(u)),r.set(o,c));else{v=c.v!==O;var g=a(()=>Te(u));R(c,g)}var k=Reflect.getOwnPropertyDescriptor(l,o);if(k?.set&&k.set.call(f,u),!v){if(n&&typeof o=="string"){var N=r.get("length"),T=Number(o);Number.isInteger(T)&&T>=N.v&&R(N,T+1)}pt(i)}return!0},ownKeys(l){p(i);var o=Reflect.ownKeys(l).filter(c=>{var v=r.get(c);return v===void 0||v.v!==O});for(var[u,f]of r)f.v!==O&&!(u in l)&&o.push(u);return o},setPrototypeOf(){rn()}})}var Qt,er,tr,rr;function gt(){if(Qt===void 0){Qt=window,er=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;tr=we(t,"firstChild").get,rr=we(t,"nextSibling").get,jt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),jt(r)&&(r.__t=void 0)}}function ce(e=""){return document.createTextNode(e)}function Se(e){return tr.call(e)}function ee(e){return rr.call(e)}function Pe(e,t){if(!E)return Se(e);var r=Se(S);return r===null&&(r=S.appendChild(ce())),Z(r),r}function nr(e,t){if(!E){var r=Se(e);return r instanceof Comment&&r.data===""?ee(r):r}return S}function En(e,t=1,r=!1){let n=E?S:e;for(var i;t--;)i=n,n=ee(n);if(!E)return n;if(r&&n?.nodeType!==It){var s=ce();return n===null?i?.after(s):n.before(s),Z(s),s}return Z(n),n}function Tn(e){e.textContent=""}function Sn(){return!1}function mt(e){var t=w,r=m;F(null),B(null);try{return e()}finally{F(t),B(r)}}function Nn(e){m===null&&w===null&&Zr(),w!==null&&(w.f&q)!==0&&m===null&&Jr(),de&&zr()}function Rn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function H(e,t,r,n=!0){var i=m;i!==null&&(i.f&z)!==0&&(e|=z);var s={ctx:Y,deps:null,nodes_start:null,nodes_end:null,f:e|D,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{Re(s),s.f|=nt}catch(o){throw te(s),o}else t!==null&&Ee(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&ye)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&Rn(a,i),w!==null&&(w.f&L)!==0&&(e&X)===0)){var l=w;(l.effects??=[]).push(a)}}return s}function An(e){const t=H(rt,null,!1);return M(t,C),t.teardown=e,t}function On(e){Nn();var t=m.f,r=!w&&(t&V)!==0&&(t&nt)===0;if(r){var n=Y;(n.e??=[]).push(e)}else return ir(e)}function ir(e){return H(tt|Gr,e,!1)}function xn(e){ue.ensure();const t=H(X|ye,e,!0);return()=>{te(t)}}function Cn(e){ue.ensure();const t=H(X|ye,e,!0);return(r={})=>new Promise(n=>{r.outro?or(t,()=>{te(t),n(void 0)}):(te(t),n(void 0))})}function kn(e){return H(tt,e,!1)}function jn(e){return H(at|ye,e,!0)}function Pn(e,t=0){return H(rt|t,e,!0)}function Ke(e,t=[],r=[]){wn(t,r,n=>{H(rt,()=>e(...n.map(p)),!0)})}function Mn(e,t=0){var r=H($e|t,e,!0);return r}function wt(e,t=!0){return H(V|ye,e,!0,t)}function sr(e){var t=e.teardown;if(t!==null){const r=de,n=w;dr(!0),F(null);try{t.call(null)}finally{dr(r),F(n)}}}function ar(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&mt(()=>{i.abort(ot)});var n=r.next;(r.f&X)!==0?r.parent=null:te(r,t),r=n}}function Ln(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&V)===0&&te(t),t=r}}function te(e,t=!0){var r=!1;(t||(e.f&Br)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(In(e.nodes_start,e.nodes_end),r=!0),ar(e,t&&!r),Je(e,0),M(e,ae);var n=e.transitions;if(n!==null)for(const s of n)s.stop();sr(e);var i=e.parent;i!==null&&i.first!==null&&lr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function In(e,t){for(;e!==null;){var r=e===t?null:ee(e);e.remove(),e=r}}function lr(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 or(e,t){var r=[];ur(e,r,!0),qn(r,()=>{te(e),t&&t()})}function qn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function ur(e,t,r){if((e.f&z)===0){if(e.f^=z,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&it)!==0||(n.f&V)!==0;ur(n,t,s?r:!1),n=i}}}function Dn(e){fr(e,!0)}function fr(e,t){if((e.f&z)!==0){e.f^=z,(e.f&C)===0&&(M(e,D),Ee(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&it)!==0||(r.f&V)!==0;fr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let Ne=!1;function cr(e){Ne=e}let de=!1;function dr(e){de=e}let w=null,ve=!1;function F(e){w=e}let m=null;function B(e){m=e}let W=null;function Fn(e){w!==null&&(W===null?W=[e]:W.push(e))}let P=null,I=0,U=null;function Un(e){U=e}let vr=1,Me=0,he=Me;function hr(e){he=e}let re=!1;function _r(){return++vr}function ze(e){var t=e.f;if((t&D)!==0)return!0;if((t&K)!==0){var r=e.deps,n=(t&q)!==0;if(r!==null){var i,s,a=(t&Ue)!==0,l=n&&m!==null&&!re,o=r.length;if((a||l)&&(m===null||(m.f&ae)===0)){var u=e,f=u.parent;for(i=0;i<o;i++)s=r[i],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=Ue),l&&f!==null&&(f.f&q)===0&&(u.f^=q)}for(i=0;i<o;i++)if(s=r[i],ze(s)&&Vt(s),s.wv>e.wv)return!0}(!n||m!==null&&!re)&&M(e,C)}return!1}function pr(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&L)!==0?pr(s,t,!1):t===s&&(r?M(s,D):(s.f&C)!==0&&M(s,K),Ee(s))}}function gr(e){var t=P,r=I,n=U,i=w,s=re,a=W,l=Y,o=ve,u=he,f=e.f;P=null,I=0,U=null,re=(f&q)!==0&&(ve||!Ne||w===null),w=(f&(V|X))===0?e:null,W=null,Ge(e.ctx),ve=!1,he=++Me,e.ac!==null&&(mt(()=>{e.ac.abort(ot)}),e.ac=null);try{e.f|=st;var c=e.fn,v=c(),d=e.deps;if(P!==null){var h;if(Je(e,I),d!==null&&I>0)for(d.length=I+P.length,h=0;h<P.length;h++)d[I+h]=P[h];else e.deps=d=P;if(!re||(f&L)!==0&&e.reactions!==null)for(h=I;h<d.length;h++)(d[h].reactions??=[]).push(e)}else d!==null&&I<d.length&&(Je(e,I),d.length=I);if(Ut()&&U!==null&&!ve&&d!==null&&(e.f&(L|K|D))===0)for(h=0;h<U.length;h++)pr(U[h],e);return i!==null&&i!==e&&(Me++,U!==null&&(n===null?n=U:n.push(...U))),(e.f&le)!==0&&(e.f^=le),v}catch(g){return dn(g)}finally{e.f^=st,P=t,I=r,U=n,w=i,re=s,W=a,Ge(l),ve=o,he=u}}function Yn(e,t){let r=t.reactions;if(r!==null){var n=qr.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&L)!==0&&(P===null||!P.includes(t))&&(M(t,K),(t.f&(q|Ue))===0&&(t.f^=Ue),Gt(t),Je(t,0))}function Je(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Yn(e,r[n])}function Re(e){var t=e.f;if((t&ae)===0){M(e,C);var r=m,n=Ne;m=e,Ne=!0;try{(t&$e)!==0?Ln(e):ar(e),sr(e);var i=gr(e);e.teardown=typeof i=="function"?i:null,e.wv=vr;var s;xt&&fn&&(e.f&D)!==0&&e.deps}finally{Ne=n,m=r}}}function p(e){var t=e.f,r=(t&L)!==0;if(w!==null&&!ve){var n=m!==null&&(m.f&ae)!==0;if(!n&&!W?.includes(e)){var i=w.deps;if((w.f&st)!==0)e.rv<Me&&(e.rv=Me,P===null&&i!==null&&i[I]===e?I++:P===null?P=[e]:(!re||!P.includes(e))&&P.push(e));else{(w.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[w]:s.includes(w)||s.push(w)}}}else if(r&&e.deps===null&&e.effects===null){var a=e,l=a.parent;l!==null&&(l.f&q)===0&&(a.f^=q)}if(de){if(Q.has(e))return Q.get(e);if(r){a=e;var o=a.v;return((a.f&C)===0&&a.reactions!==null||mr(a))&&(o=ct(a)),Q.set(a,o),o}}else r&&(a=e,ze(a)&&Vt(a));if((e.f&le)!==0)throw e.v;return e.v}function mr(e){if(e.v===O)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Q.has(t)||(t.f&L)!==0&&mr(t))return!0;return!1}const Hn=-7169;function M(e,t){e.f=e.f&Hn|t}const Bn=new Set,wr=new Set;function Gn(e,t,r,n={}){function i(s){if(n.capture||Le.call(t,s),!s.cancelBubble)return mt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?hn(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Vn(e,t,r,n,i){var s={capture:n,passive:i},a=Gn(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&An(()=>{t.removeEventListener(e,a,s)})}let $r=null;function Le(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;$r=e;var a=0,l=$r===e&&e.__root;if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;o<=u&&(a=o)}if(s=i[a]||e.target,s!==t){me(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=w,c=m;F(null),B(null);try{for(var v,d=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var g=s["__"+n];if(g!=null&&(!s.disabled||e.target===s))if(Ct(g)){var[k,...N]=g;k.apply(s,[e,...N])}else g.call(s,e)}catch(T){v?d.push(T):v=T}if(e.cancelBubble||h===t||h===null)break;s=h}if(v){for(let T of d)queueMicrotask(()=>{throw T});throw v}}finally{e.__root=t,delete e.currentTarget,F(f),B(c)}}}function Wn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ne(e,t){var r=m;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function $t(e,t){var r=(t&Mr)!==0,n=(t&Lr)!==0,i,s=!e.startsWith("<!>");return()=>{if(E)return ne(S,null),S;i===void 0&&(i=Wn(s?e:"<!>"+e),r||(i=Se(i)));var a=n||er?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=Se(a),o=a.lastChild;ne(l,o)}else ne(a,a);return a}}function yr(e=""){if(!E){var t=ce(e+"");return ne(t,t),t}var r=S;return r.nodeType!==It&&(r.before(r=ce()),Z(r)),ne(r,r),r}function br(){if(E)return ne(S,null),S;var e=document.createDocumentFragment(),t=document.createComment(""),r=ce();return e.append(t,r),ne(t,r),e}function ie(e,t){if(E){m.nodes_end=S,Be();return}e!==null&&e.before(t)}const Xn=["touchstart","touchmove"];function Kn(e){return Xn.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 Sr(e,t)}function zn(e,t){gt(),t.intro=t.intro??!1;const r=t.target,n=E,i=S;try{for(var s=Se(r);s&&(s.nodeType!==Ye||s.data!==Rt);)s=ee(s);if(!s)throw ge;J(!0),Z(s),Be();const a=Sr(e,{...t,anchor:s});if(S===null||S.nodeType!==Ye||S.data!==Ot)throw He(),ge;return J(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==ge&&console.warn("Failed to hydrate: ",a),t.recover===!1&&en(),gt(),Tn(r),J(!1),Tr(e,t)}finally{J(n),Z(i)}}const Ae=new Map;function Sr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){gt();var l=new Set,o=c=>{for(var v=0;v<c.length;v++){var d=c[v];if(!l.has(d)){l.add(d);var h=Kn(d);t.addEventListener(d,Le,{passive:h});var g=Ae.get(d);g===void 0?(document.addEventListener(d,Le,{passive:h}),Ae.set(d,1)):Ae.set(d,g+1)}}};o(Dr(Bn)),wr.add(o);var u=void 0,f=Cn(()=>{var c=r??t.appendChild(ce());return wt(()=>{if(s){Dt({});var v=Y;v.c=s}i&&(n.$$events=i),E&&ne(c,null),u=e(c,n)||{},E&&(m.nodes_end=S),s&&Ft()}),()=>{for(var v of l){t.removeEventListener(v,Le);var d=Ae.get(v);--d===0?(document.removeEventListener(v,Le),Ae.delete(v)):Ae.set(v,d)}wr.delete(o),c!==r&&c.parentNode?.removeChild(c)}});return yt.set(u,f),u}let yt=new WeakMap;function Jn(e,t){const r=yt.get(e);return r?(yt.delete(e),r(t)):Promise.resolve()}function bt(e,t,r=!1){E&&Be();var n=e,i=null,s=null,a=O,l=r?it:0,o=!1;const u=(d,h=!0)=>{o=!0,v(h,d)};var f=null;function c(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var d=a?i:s,h=a?s:i;d&&Dn(d),h&&or(h,()=>{a?s=null:i=null})}const v=(d,h)=>{if(a===(a=d))return;let g=!1;if(E){const xe=ln(n)===At;!!a===xe&&(n=an(),Z(n),J(!1),g=!0)}var k=Sn(),N=n;if(k&&(f=document.createDocumentFragment(),f.append(N=ce())),a?i??=h&&wt(()=>h(N)):s??=h&&wt(()=>h(N)),k){var T=x,_e=a?i:s,se=a?s:i;_e&&T.skipped_effects.delete(_e),se&&T.skipped_effects.add(se),T.add_callback(c)}else c();g&&J(!0)};Mn(()=>{o=!1,t(u),o||v(null,null)},l),E&&(n=S)}function Zn(e,t,r,n,i){E&&Be();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 Qn(e,t){kn(()=>{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 ei(e,t,r){var n=""+e;return n}function ti(e,t){return e==null?null:String(e)}function ri(e,t,r,n,i,s){var a=e.__className;if(E||a!==r||a===void 0){var l=ei(r);(!E||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return s}function Nr(e,t,r,n){var i=e.__style;if(E||i!==t){var s=ti(t);(!E||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const ni=Symbol("is custom element"),ii=Symbol("is html");function Rr(e,t,r,n){var i=si(e);E&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Wr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Or(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ar(e,t,r){var n=w,i=m;let s=E;E&&J(!1),F(null),B(null);try{t!=="style"&&(Et.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Or(e).includes(t):r&&typeof r=="object")?e[t]=r:Rr(e,t,r==null?r:String(r))}finally{F(n),B(i),s&&J(!0)}}function si(e){return e.__attributes??={[ni]:e.nodeName.includes("-"),[ii]:e.namespaceURI===Ir}}var Et=new Map;function Or(e){var t=e.getAttribute("is")||e.nodeName,r=Et.get(t);if(r)return r;Et.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Fr(i);for(var a in n)n[a].set&&r.push(a);i=kt(i)}return r}function Ie(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),l;l=e[t],l===void 0&&n!==void 0&&(l=a());var o;o=()=>{var v=e[t];return v===void 0?a():(s=!0,v)};var u=!1,f=Bt(()=>(u=!1,o())),c=m;return(function(v,d){if(arguments.length>0){const h=d?p(f):v;return R(f,h),u=!0,i!==void 0&&(i=h),v}return de&&u||(c.f&ae)!==0?f.v:p(f)})}function ai(e){return new li(e)}class li{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var l=bn(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return p(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Vr?!0:(p(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return R(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?zn: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)&&be(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||me(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=()=>{Jn(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 xr;typeof HTMLElement=="function"&&(xr=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),ie(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=oi(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]=Ze(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=ai({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=xn(()=>{Pn(()=>{this.$$r=!0;for(const n of Fe(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Ze(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]=Ze(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 Fe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ze(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 oi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ui(e,t,r,n,i,s){let a=class extends xr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Fe(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Fe(t).forEach(l=>{me(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=Ze(l,o,t),this.$$d[l]=o;var u=this.$$c;if(u){var f=we(u,l)?.get;f?u[l]=o:u.$set({[l]:o})}}})}),n.forEach(l=>{me(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}const fi={version:"0.60.1"};function ci(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 i=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}function di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oe={},Tt,Cr;function vi(){if(Cr)return Tt;Cr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,o=`
3
- `,u="/",f="*",c="",v="comment",d="declaration";Tt=function(g,k){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];k=k||{};var N=1,T=1;function _e(y){var _=y.match(t);_&&(N+=_.length);var A=y.lastIndexOf(o);T=~A?y.length-A:T+y.length}function se(){var y={line:N,column:T};return function(_){return _.position=new xe(y),$(),_}}function xe(y){this.start=y,this.end={line:N,column:T},this.source=k.source}xe.prototype.content=g;function Qe(y){var _=new Error(k.source+":"+N+":"+T+": "+y);if(_.reason=y,_.filename=k.source,_.line=N,_.column=T,_.source=g,!k.silent)throw _}function pe(y){var _=y.exec(g);if(_){var A=_[0];return _e(A),g=g.slice(A.length),_}}function $(){pe(r)}function b(y){var _;for(y=y||[];_=Ce();)_!==!1&&y.push(_);return y}function Ce(){var y=se();if(!(u!=g.charAt(0)||f!=g.charAt(1))){for(var _=2;c!=g.charAt(_)&&(f!=g.charAt(_)||u!=g.charAt(_+1));)++_;if(_+=2,c===g.charAt(_-1))return Qe("End of comment missing");var A=g.slice(2,_-2);return T+=2,_e(A),g=g.slice(_),T+=2,y({type:v,comment:A})}}function G(){var y=se(),_=pe(n);if(_){if(Ce(),!pe(i))return Qe("property missing ':'");var A=pe(s),qe=y({type:d,property:h(_[0].replace(e,c)),value:A?h(A[0].replace(e,c)):c});return pe(a),qe}}function St(){var y=[];b(y);for(var _;_=G();)_!==!1&&(y.push(_),b(y));return y}return $(),St()};function h(g){return g?g.replace(l,c):c}return Tt}var kr;function hi(){if(kr)return Oe;kr=1;var e=Oe&&Oe.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.default=r;var t=e(vi());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var a=(0,t.default)(n),l=typeof i=="function";return a.forEach(function(o){if(o.type==="declaration"){var u=o.property,f=o.value;l?i(u,f,o):f&&(s=s||{},s[u]=f)}}),s}return Oe}var _i=hi();const jr=di(_i);jr.default;var pi=$t('<div class="progress svelte-69qdj4"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-69qdj4" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>'),gi=$t('<div class="progress svelte-69qdj4"><div class="progress-bar svelte-69qdj4" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>'),mi=$t('<hb-dialog><span slot="title" class="svelte-69qdj4"><!></span> <div slot="body-content" class="svelte-69qdj4"><!></div> <span slot="modal-footer" class="svelte-69qdj4"></span></hb-dialog>',2);const wi={hash:"svelte-69qdj4",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(kt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Lr=1,Ir=2,St="[",Nt="[!",Rt="]",ge={},R=Symbol(),qr="http://www.w3.org/1999/xhtml",At=!1;var Ot=Array.isArray,Dr=Array.prototype.indexOf,jr=Array.from,Fe=Object.keys,me=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Fr=Object.getOwnPropertyDescriptors,Ur=Object.prototype,Yr=Array.prototype,Ct=Object.getPrototypeOf,Pt=Object.isExtensible;function Mt(e){for(var t=0;t<e.length;t++)e[t]()}function Hr(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const I=2,tt=4,rt=8,be=16,V=32,X=64,Lt=128,D=256,Ue=512,O=1024,j=2048,K=4096,z=8192,ae=16384,nt=32768,st=65536,It=1<<17,Br=1<<18,$e=1<<19,Gr=1<<20,it=1<<21,at=1<<22,le=1<<23,lt=Symbol("$state"),Vr=Symbol("legacy props"),Wr=Symbol(""),ot=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},qt=3,Ye=8;function Xr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Kr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function zr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Jr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Zr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Qr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function en(){throw new Error("https://svelte.dev/e/hydration_failed")}function tn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function rn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function nn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function He(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let E=!1;function J(e){E=e}let x;function Z(e){if(e===null)throw He(),ge;return x=e}function Be(){return Z(ee(x))}function Ce(e){if(E){if(ee(x)!==null)throw He(),ge;x=e}}function sn(e=1){if(E){for(var t=e,r=x;t--;)r=ee(r);x=r}}function an(){for(var e=0,t=x;;){if(t.nodeType===Ye){var r=t.data;if(r===Rt){if(e===0)return t;e-=1}else(r===St||r===Nt)&&(e+=1)}var n=ee(t);t.remove(),t=n}}function ln(e){if(!e||e.nodeType!==Ye)throw He(),ge;return e.data}function Dt(e){return e===this.v}function on(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function un(e){return!on(e,this.v)}let fn=!1,Y=null;function Ge(e){Y=e}function jt(e,t=!1,r){Y={p:Y,c:null,e:null,s:e,x:null,l:null}}function Ft(e){var t=Y,r=t.e;if(r!==null){t.e=null;for(var n of r)sr(n)}return e!==void 0&&(t.x=e),Y=t.p,e??{}}function Ut(){return!0}const cn=new WeakMap;function dn(e){var t=m;if(t===null)return w.f|=le,e;if((t.f&nt)===0){if((t.f&Lt)===0)throw!t.parent&&e instanceof Error&&Yt(e),e;t.b.error(e)}else ut(e,t)}function ut(e,t){for(;t!==null;){if((t.f&Lt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Yt(e),e}function Yt(e){const t=cn.get(e);t&&(me(e,"message",{value:t.message}),me(e,"stack",{value:t.stack}))}let Pe=[],ft=[];function Ht(){var e=Pe;Pe=[],Mt(e)}function vn(){var e=ft;ft=[],Mt(e)}function hn(e){Pe.length===0&&queueMicrotask(Ht),Pe.push(e)}function _n(){Pe.length>0&&Ht(),ft.length>0&&vn()}function pn(){const e=m.b;return e===null&&Xr(),e}function Bt(e){var t=I|j,r=w!==null&&(w.f&I)!==0?w:null;return m===null||r!==null&&(r.f&D)!==0?t|=D:m.f|=$e,{ctx:Y,deps:null,effects:null,equals:Dt,f:t,fn:e,reactions:null,rv:0,v:R,wv:0,parent:r??m,ac:null}}function gn(e,t){let r=m;r===null&&Kr();var n=r.b,s=void 0,i=ht(R),a=null,l=!w;return Pn(()=>{try{var o=e();a&&Promise.resolve(o).catch(()=>{})}catch(d){o=Promise.reject(d)}var u=()=>o;s=a?.then(u,u)??Promise.resolve(o),a=s;var f=A,c=n.is_pending();l&&(n.update_pending_count(1),c||f.increment());const v=(d,h=void 0)=>{a=null,c||f.activate(),h?h!==ot&&(i.f|=le,_t(i,h)):((i.f&le)!==0&&(i.f^=le),_t(i,d)),l&&(n.update_pending_count(-1),c||f.decrement()),Wt()};if(s.then(v,d=>v(null,d||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(o=>{function u(f){function c(){f===s?o(i):u(s)}f.then(c,c)}u(s)})}function Gt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)te(t[r])}}function mn(e){for(var t=e.parent;t!==null;){if((t.f&I)===0)return t;t=t.parent}return null}function ct(e){var t,r=m;B(mn(e));try{Gt(e),t=gr(e)}finally{B(r)}return t}function Vt(e){var t=ct(e);if(e.equals(t)||(e.v=t,e.wv=_r()),!de){var r=(re||(e.f&D)!==0)&&e.deps!==null?K:O;L(e,r)}}function wn(e,t,r){const n=Bt;if(t.length===0){r(e.map(n));return}var s=A,i=m,a=bn(),l=pn();Promise.all(t.map(o=>gn(o))).then(o=>{s?.activate(),a();try{r([...e.map(n),...o])}catch(u){(i.f&ae)===0&&ut(u,i)}s?.deactivate(),Wt()}).catch(o=>{l.error(o)})}function bn(){var e=m,t=w,r=Y,n=A;return function(){B(e),F(t),Ge(r),n?.activate()}}function Wt(){B(null),F(null),Ge(null)}const dt=new Set;let A=null,Xt=new Set,Ve=[];function Kt(){const e=Ve.shift();Ve.length>0&&queueMicrotask(Kt),e()}let oe=[],We=null,vt=!1,Xe=!1;class ue{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#s=[];#a=[];#i=[];#n=[];#l=[];#c=[];#d=[];skipped_effects=new Set;process(t){oe=[];for(const s of t)this.#h(s);if(this.#s.length===0&&this.#r===0){this.#v();var r=this.#i,n=this.#n;this.#i=[],this.#n=[],this.#l=[],A=null,Jt(r),Jt(n),A===null?A=this:dt.delete(this),this.#u?.resolve()}else this.#o(this.#i),this.#o(this.#n),this.#o(this.#l);for(const s of this.#s)Se(s);for(const s of this.#a)Se(s);this.#s=[],this.#a=[]}#h(t){t.f^=O;for(var r=t.first;r!==null;){var n=r.f,s=(n&(V|X))!==0,i=s&&(n&O)!==0,a=i||(n&z)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(s)r.f^=O;else if((n&tt)!==0)this.#n.push(r);else if((n&O)===0)if((n&at)!==0){var l=r.b?.is_pending()?this.#a:this.#s;l.push(r)}else ze(r)&&((r.f&be)!==0&&this.#l.push(r),Se(r));var o=r.first;if(o!==null){r=o;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&j)!==0?this.#c:this.#d).push(r),L(r,O);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){A=this}deactivate(){A=null;for(const t of Xt)if(Xt.delete(t),t(),A!==null)break}neuter(){this.#f=!0}flush(){oe.length>0?zt():this.#v(),A===this&&(this.#r===0&&dt.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)L(t,j),Ee(t);for(const t of this.#d)L(t,K),Ee(t);this.#i=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Hr()).promise}static ensure(){if(A===null){const t=A=new ue;dt.add(A),Xe||ue.enqueue(()=>{A===t&&t.flush()})}return A}static enqueue(t){Ve.length===0&&queueMicrotask(Kt),Ve.unshift(t)}}function ye(e){var t=Xe;Xe=!0;try{for(var r;;){if(_n(),oe.length===0&&(A?.flush(),oe.length===0))return We=null,r;zt()}}finally{Xe=t}}function zt(){var e=ke;vt=!0;try{var t=0;for(cr(!0);oe.length>0;){var r=ue.ensure();if(t++>1e3){var n,s;$n()}r.process(oe),Q.clear()}}finally{vt=!1,cr(e),We=null}}function $n(){try{Qr()}catch(e){ut(e,We)}}let fe=null;function Jt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ae|z))===0&&ze(n)&&(fe=[],Se(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?lr(n):n.fn=null),fe?.length>0)){Q.clear();for(const s of fe)Se(s);fe=[]}}fe=null}}function Ee(e){for(var t=We=e;t.parent!==null;){t=t.parent;var r=t.f;if(vt&&t===m&&(r&be)!==0)return;if((r&(X|V))!==0){if((r&O)===0)return;t.f^=O}}oe.push(t)}const Q=new Map;function ht(e,t){var r={f:0,v:e,reactions:null,equals:Dt,rv:0,wv:0};return r}function P(e,t){const r=ht(e);return Fn(r),r}function yn(e,t=!1,r=!0){const n=ht(e);return t||(n.equals=un),n}function S(e,t,r=!1){w!==null&&(!ve||(w.f&It)!==0)&&Ut()&&(w.f&(I|be|at|It))!==0&&!W?.includes(e)&&nn();let n=r?Te(t):t;return _t(e,n)}function _t(e,t){if(!e.equals(t)){var r=e.v;de?Q.set(e,t):Q.set(e,r),e.v=t;var n=ue.ensure();n.capture(e,r),(e.f&I)!==0&&((e.f&j)!==0&&ct(e),L(e,(e.f&D)===0?O:K)),e.wv=_r(),Zt(e,j),m!==null&&(m.f&O)!==0&&(m.f&(V|X))===0&&(U===null?Un([e]):U.push(e))}return t}function pt(e){S(e,e.v+1)}function Zt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],a=i.f,l=(a&j)===0;l&&L(i,t),(a&I)!==0?Zt(i,K):l&&((a&be)!==0&&fe!==null&&fe.push(i),Ee(i))}}function Te(e){if(typeof e!="object"||e===null||lt in e)return e;const t=Ct(e);if(t!==Ur&&t!==Yr)return e;var r=new Map,n=Ot(e),s=P(0),i=he,a=l=>{if(he===i)return l();var o=w,u=he;F(null),hr(i);var f=l();return F(o),hr(u),f};return n&&r.set("length",P(e.length)),new Proxy(e,{defineProperty(l,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&tn();var f=r.get(o);return f===void 0?f=a(()=>{var c=P(u.value);return r.set(o,c),c}):S(f,u.value,!0),!0},deleteProperty(l,o){var u=r.get(o);if(u===void 0){if(o in l){const f=a(()=>P(R));r.set(o,f),pt(s)}}else S(u,R),pt(s);return!0},get(l,o,u){if(o===lt)return e;var f=r.get(o),c=o in l;if(f===void 0&&(!c||we(l,o)?.writable)&&(f=a(()=>{var d=Te(c?l[o]:R),h=P(d);return h}),r.set(o,f)),f!==void 0){var v=p(f);return v===R?void 0:v}return Reflect.get(l,o,u)},getOwnPropertyDescriptor(l,o){var u=Reflect.getOwnPropertyDescriptor(l,o);if(u&&"value"in u){var f=r.get(o);f&&(u.value=p(f))}else if(u===void 0){var c=r.get(o),v=c?.v;if(c!==void 0&&v!==R)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return u},has(l,o){if(o===lt)return!0;var u=r.get(o),f=u!==void 0&&u.v!==R||Reflect.has(l,o);if(u!==void 0||m!==null&&(!f||we(l,o)?.writable)){u===void 0&&(u=a(()=>{var v=f?Te(l[o]):R,d=P(v);return d}),r.set(o,u));var c=p(u);if(c===R)return!1}return f},set(l,o,u,f){var c=r.get(o),v=o in l;if(n&&o==="length")for(var d=u;d<c.v;d+=1){var h=r.get(d+"");h!==void 0?S(h,R):d in l&&(h=a(()=>P(R)),r.set(d+"",h))}if(c===void 0)(!v||we(l,o)?.writable)&&(c=a(()=>P(void 0)),S(c,Te(u)),r.set(o,c));else{v=c.v!==R;var g=a(()=>Te(u));S(c,g)}var C=Reflect.getOwnPropertyDescriptor(l,o);if(C?.set&&C.set.call(f,u),!v){if(n&&typeof o=="string"){var k=r.get("length"),T=Number(o);Number.isInteger(T)&&T>=k.v&&S(k,T+1)}pt(s)}return!0},ownKeys(l){p(s);var o=Reflect.ownKeys(l).filter(c=>{var v=r.get(c);return v===void 0||v.v!==R});for(var[u,f]of r)f.v!==R&&!(u in l)&&o.push(u);return o},setPrototypeOf(){rn()}})}var Qt,er,tr,rr;function gt(){if(Qt===void 0){Qt=window,er=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;tr=we(t,"firstChild").get,rr=we(t,"nextSibling").get,Pt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Pt(r)&&(r.__t=void 0)}}function ce(e=""){return document.createTextNode(e)}function xe(e){return tr.call(e)}function ee(e){return rr.call(e)}function Me(e,t){if(!E)return xe(e);var r=xe(x);return r===null&&(r=x.appendChild(ce())),Z(r),r}function nr(e,t){if(!E){var r=xe(e);return r instanceof Comment&&r.data===""?ee(r):r}return x}function En(e,t=1,r=!1){let n=E?x:e;for(var s;t--;)s=n,n=ee(n);if(!E)return n;if(r&&n?.nodeType!==qt){var i=ce();return n===null?s?.after(i):n.before(i),Z(i),i}return Z(n),n}function Tn(e){e.textContent=""}function xn(){return!1}function mt(e){var t=w,r=m;F(null),B(null);try{return e()}finally{F(t),B(r)}}function kn(e){m===null&&w===null&&Zr(),w!==null&&(w.f&D)!==0&&m===null&&Jr(),de&&zr()}function Sn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function H(e,t,r,n=!0){var s=m;s!==null&&(s.f&z)!==0&&(e|=z);var i={ctx:Y,deps:null,nodes_start:null,nodes_end:null,f:e|j,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{Se(i),i.f|=nt}catch(o){throw te(i),o}else t!==null&&Ee(i);if(n){var a=i;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&$e)===0&&(a=a.first),a!==null&&(a.parent=s,s!==null&&Sn(a,s),w!==null&&(w.f&I)!==0&&(e&X)===0)){var l=w;(l.effects??=[]).push(a)}}return i}function Nn(e){const t=H(rt,null,!1);return L(t,O),t.teardown=e,t}function Rn(e){kn();var t=m.f,r=!w&&(t&V)!==0&&(t&nt)===0;if(r){var n=Y;(n.e??=[]).push(e)}else return sr(e)}function sr(e){return H(tt|Gr,e,!1)}function An(e){ue.ensure();const t=H(X|$e,e,!0);return()=>{te(t)}}function On(e){ue.ensure();const t=H(X|$e,e,!0);return(r={})=>new Promise(n=>{r.outro?or(t,()=>{te(t),n(void 0)}):(te(t),n(void 0))})}function Cn(e){return H(tt,e,!1)}function Pn(e){return H(at|$e,e,!0)}function Mn(e,t=0){return H(rt|t,e,!0)}function Ke(e,t=[],r=[]){wn(t,r,n=>{H(rt,()=>e(...n.map(p)),!0)})}function Ln(e,t=0){var r=H(be|t,e,!0);return r}function wt(e,t=!0){return H(V|$e,e,!0,t)}function ir(e){var t=e.teardown;if(t!==null){const r=de,n=w;dr(!0),F(null);try{t.call(null)}finally{dr(r),F(n)}}}function ar(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&mt(()=>{s.abort(ot)});var n=r.next;(r.f&X)!==0?r.parent=null:te(r,t),r=n}}function In(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&V)===0&&te(t),t=r}}function te(e,t=!0){var r=!1;(t||(e.f&Br)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(qn(e.nodes_start,e.nodes_end),r=!0),ar(e,t&&!r),Je(e,0),L(e,ae);var n=e.transitions;if(n!==null)for(const i of n)i.stop();ir(e);var s=e.parent;s!==null&&s.first!==null&&lr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function qn(e,t){for(;e!==null;){var r=e===t?null:ee(e);e.remove(),e=r}}function lr(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 or(e,t){var r=[];ur(e,r,!0),Dn(r,()=>{te(e),t&&t()})}function Dn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function ur(e,t,r){if((e.f&z)===0){if(e.f^=z,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&st)!==0||(n.f&V)!==0;ur(n,t,i?r:!1),n=s}}}function jn(e){fr(e,!0)}function fr(e,t){if((e.f&z)!==0){e.f^=z,(e.f&O)===0&&(L(e,j),Ee(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&st)!==0||(r.f&V)!==0;fr(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}let ke=!1;function cr(e){ke=e}let de=!1;function dr(e){de=e}let w=null,ve=!1;function F(e){w=e}let m=null;function B(e){m=e}let W=null;function Fn(e){w!==null&&(W===null?W=[e]:W.push(e))}let M=null,q=0,U=null;function Un(e){U=e}let vr=1,Le=0,he=Le;function hr(e){he=e}let re=!1;function _r(){return++vr}function ze(e){var t=e.f;if((t&j)!==0)return!0;if((t&K)!==0){var r=e.deps,n=(t&D)!==0;if(r!==null){var s,i,a=(t&Ue)!==0,l=n&&m!==null&&!re,o=r.length;if((a||l)&&(m===null||(m.f&ae)===0)){var u=e,f=u.parent;for(s=0;s<o;s++)i=r[s],(a||!i?.reactions?.includes(u))&&(i.reactions??=[]).push(u);a&&(u.f^=Ue),l&&f!==null&&(f.f&D)===0&&(u.f^=D)}for(s=0;s<o;s++)if(i=r[s],ze(i)&&Vt(i),i.wv>e.wv)return!0}(!n||m!==null&&!re)&&L(e,O)}return!1}function pr(e,t,r=!0){var n=e.reactions;if(n!==null&&!W?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&I)!==0?pr(i,t,!1):t===i&&(r?L(i,j):(i.f&O)!==0&&L(i,K),Ee(i))}}function gr(e){var t=M,r=q,n=U,s=w,i=re,a=W,l=Y,o=ve,u=he,f=e.f;M=null,q=0,U=null,re=(f&D)!==0&&(ve||!ke||w===null),w=(f&(V|X))===0?e:null,W=null,Ge(e.ctx),ve=!1,he=++Le,e.ac!==null&&(mt(()=>{e.ac.abort(ot)}),e.ac=null);try{e.f|=it;var c=e.fn,v=c(),d=e.deps;if(M!==null){var h;if(Je(e,q),d!==null&&q>0)for(d.length=q+M.length,h=0;h<M.length;h++)d[q+h]=M[h];else e.deps=d=M;if(!re||(f&I)!==0&&e.reactions!==null)for(h=q;h<d.length;h++)(d[h].reactions??=[]).push(e)}else d!==null&&q<d.length&&(Je(e,q),d.length=q);if(Ut()&&U!==null&&!ve&&d!==null&&(e.f&(I|K|j))===0)for(h=0;h<U.length;h++)pr(U[h],e);return s!==null&&s!==e&&(Le++,U!==null&&(n===null?n=U:n.push(...U))),(e.f&le)!==0&&(e.f^=le),v}catch(g){return dn(g)}finally{e.f^=it,M=t,q=r,U=n,w=s,re=i,W=a,Ge(l),ve=o,he=u}}function Yn(e,t){let r=t.reactions;if(r!==null){var n=Dr.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&I)!==0&&(M===null||!M.includes(t))&&(L(t,K),(t.f&(D|Ue))===0&&(t.f^=Ue),Gt(t),Je(t,0))}function Je(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Yn(e,r[n])}function Se(e){var t=e.f;if((t&ae)===0){L(e,O);var r=m,n=ke;m=e,ke=!0;try{(t&be)!==0?In(e):ar(e),ir(e);var s=gr(e);e.teardown=typeof s=="function"?s:null,e.wv=vr;var i;At&&fn&&(e.f&j)!==0&&e.deps}finally{ke=n,m=r}}}function p(e){var t=e.f,r=(t&I)!==0;if(w!==null&&!ve){var n=m!==null&&(m.f&ae)!==0;if(!n&&!W?.includes(e)){var s=w.deps;if((w.f&it)!==0)e.rv<Le&&(e.rv=Le,M===null&&s!==null&&s[q]===e?q++:M===null?M=[e]:(!re||!M.includes(e))&&M.push(e));else{(w.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[w]:i.includes(w)||i.push(w)}}}else if(r&&e.deps===null&&e.effects===null){var a=e,l=a.parent;l!==null&&(l.f&D)===0&&(a.f^=D)}if(de){if(Q.has(e))return Q.get(e);if(r){a=e;var o=a.v;return((a.f&O)===0&&a.reactions!==null||mr(a))&&(o=ct(a)),Q.set(a,o),o}}else r&&(a=e,ze(a)&&Vt(a));if((e.f&le)!==0)throw e.v;return e.v}function mr(e){if(e.v===R)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Q.has(t)||(t.f&I)!==0&&mr(t))return!0;return!1}const Hn=-7169;function L(e,t){e.f=e.f&Hn|t}const Bn=new Set,wr=new Set;function Gn(e,t,r,n={}){function s(i){if(n.capture||Ie.call(t,i),!i.cancelBubble)return mt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?hn(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function Vn(e,t,r,n,s){var i={capture:n,passive:s},a=Gn(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Nn(()=>{t.removeEventListener(e,a,i)})}let br=null;function Ie(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;br=e;var a=0,l=br===e&&e.__root;if(l){var o=s.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;o<=u&&(a=o)}if(i=s[a]||e.target,i!==t){me(e,"currentTarget",{configurable:!0,get(){return i||r}});var f=w,c=m;F(null),B(null);try{for(var v,d=[];i!==null;){var h=i.assignedSlot||i.parentNode||i.host||null;try{var g=i["__"+n];if(g!=null&&(!i.disabled||e.target===i))if(Ot(g)){var[C,...k]=g;C.apply(i,[e,...k])}else g.call(i,e)}catch(T){v?d.push(T):v=T}if(e.cancelBubble||h===t||h===null)break;i=h}if(v){for(let T of d)queueMicrotask(()=>{throw T});throw v}}finally{e.__root=t,delete e.currentTarget,F(f),B(c)}}}function Wn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ne(e,t){var r=m;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function bt(e,t){var r=(t&Lr)!==0,n=(t&Ir)!==0,s,i=!e.startsWith("<!>");return()=>{if(E)return ne(x,null),x;s===void 0&&(s=Wn(i?e:"<!>"+e),r||(s=xe(s)));var a=n||er?document.importNode(s,!0):s.cloneNode(!0);if(r){var l=xe(a),o=a.lastChild;ne(l,o)}else ne(a,a);return a}}function $r(e=""){if(!E){var t=ce(e+"");return ne(t,t),t}var r=x;return r.nodeType!==qt&&(r.before(r=ce()),Z(r)),ne(r,r),r}function yr(){if(E)return ne(x,null),x;var e=document.createDocumentFragment(),t=document.createComment(""),r=ce();return e.append(t,r),ne(t,r),e}function se(e,t){if(E){m.nodes_end=x,Be();return}e!==null&&e.before(t)}const Xn=["touchstart","touchmove"];function Kn(e){return Xn.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 xr(e,t)}function zn(e,t){gt(),t.intro=t.intro??!1;const r=t.target,n=E,s=x;try{for(var i=xe(r);i&&(i.nodeType!==Ye||i.data!==St);)i=ee(i);if(!i)throw ge;J(!0),Z(i),Be();const a=xr(e,{...t,anchor:i});if(x===null||x.nodeType!==Ye||x.data!==Rt)throw He(),ge;return J(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==ge&&console.warn("Failed to hydrate: ",a),t.recover===!1&&en(),gt(),Tn(r),J(!1),Tr(e,t)}finally{J(n),Z(s)}}const Ne=new Map;function xr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:a=!0}){gt();var l=new Set,o=c=>{for(var v=0;v<c.length;v++){var d=c[v];if(!l.has(d)){l.add(d);var h=Kn(d);t.addEventListener(d,Ie,{passive:h});var g=Ne.get(d);g===void 0?(document.addEventListener(d,Ie,{passive:h}),Ne.set(d,1)):Ne.set(d,g+1)}}};o(jr(Bn)),wr.add(o);var u=void 0,f=On(()=>{var c=r??t.appendChild(ce());return wt(()=>{if(i){jt({});var v=Y;v.c=i}s&&(n.$$events=s),E&&ne(c,null),u=e(c,n)||{},E&&(m.nodes_end=x),i&&Ft()}),()=>{for(var v of l){t.removeEventListener(v,Ie);var d=Ne.get(v);--d===0?(document.removeEventListener(v,Ie),Ne.delete(v)):Ne.set(v,d)}wr.delete(o),c!==r&&c.parentNode?.removeChild(c)}});return $t.set(u,f),u}let $t=new WeakMap;function Jn(e,t){const r=$t.get(e);return r?($t.delete(e),r(t)):Promise.resolve()}function yt(e,t,r=!1){E&&Be();var n=e,s=null,i=null,a=R,l=r?st:0,o=!1;const u=(d,h=!0)=>{o=!0,v(h,d)};var f=null;function c(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var d=a?s:i,h=a?i:s;d&&jn(d),h&&or(h,()=>{a?i=null:s=null})}const v=(d,h)=>{if(a===(a=d))return;let g=!1;if(E){const Ae=ln(n)===Nt;!!a===Ae&&(n=an(),Z(n),J(!1),g=!0)}var C=xn(),k=n;if(C&&(f=document.createDocumentFragment(),f.append(k=ce())),a?s??=h&&wt(()=>h(k)):i??=h&&wt(()=>h(k)),C){var T=A,_e=a?s:i,ie=a?i:s;_e&&T.skipped_effects.delete(_e),ie&&T.skipped_effects.add(ie),T.add_callback(c)}else c();g&&J(!0)};Ln(()=>{o=!1,t(u),o||v(null,null)},l),E&&(n=x)}function Zn(e,t,r,n,s){E&&Be();var i=t.$$slots?.[r],a=!1;i===!0&&(i=t[r],a=!0),i===void 0?s!==null&&s(e):i(e,a?()=>n:n)}function Qn(e,t){Cn(()=>{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 es(e,t,r){var n=""+e;return n}function ts(e,t){return e==null?null:String(e)}function rs(e,t,r,n,s,i){var a=e.__className;if(E||a!==r||a===void 0){var l=es(r);(!E||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return i}function kr(e,t,r,n){var s=e.__style;if(E||s!==t){var i=ts(t);(!E||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const ns=Symbol("is custom element"),ss=Symbol("is html");function Sr(e,t,r,n){var s=is(e);E&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Wr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Rr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Nr(e,t,r){var n=w,s=m;let i=E;E&&J(!1),F(null),B(null);try{t!=="style"&&(Et.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Rr(e).includes(t):r&&typeof r=="object")?e[t]=r:Sr(e,t,r==null?r:String(r))}finally{F(n),B(s),i&&J(!0)}}function is(e){return e.__attributes??={[ns]:e.nodeName.includes("-"),[ss]:e.namespaceURI===qr}}var Et=new Map;function Rr(e){var t=e.getAttribute("is")||e.nodeName,r=Et.get(t);if(r)return r;Et.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Fr(s);for(var a in n)n[a].set&&r.push(a);s=Ct(s)}return r}function qe(e,t,r,n){var s=n,i=!0,a=()=>(i&&(i=!1,s=n),s),l;l=e[t],l===void 0&&n!==void 0&&(l=a());var o;o=()=>{var v=e[t];return v===void 0?a():(i=!0,v)};var u=!1,f=Bt(()=>(u=!1,o())),c=m;return(function(v,d){if(arguments.length>0){const h=d?p(f):v;return S(f,h),u=!0,s!==void 0&&(s=h),v}return de&&u||(c.f&ae)!==0?f.v:p(f)})}function as(e){return new ls(e)}class ls{#t;#e;constructor(t){var r=new Map,n=(i,a)=>{var l=yn(a,!1,!1);return r.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,a){return p(r.get(a)??n(a,Reflect.get(i,a)))},has(i,a){return a===Vr?!0:(p(r.get(a)??n(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,l){return S(r.get(a)??n(a,l),l),Reflect.set(i,a,l)}});this.#e=(t.hydrate?zn:Tr)(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"||me(this,i,{get(){return this.#e[i]},set(a){this.#e[i]=a},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Jn(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),se(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=os(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]=Ze(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=as({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=An(()=>{Mn(()=>{this.$$r=!0;for(const n of Fe(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=Ze(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]=Ze(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 Fe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ze(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 os(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function us(e,t,r,n,s,i){let a=class extends Ar{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Fe(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Fe(t).forEach(l=>{me(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=Ze(l,o,t),this.$$d[l]=o;var u=this.$$c;if(u){var f=we(u,l)?.get;f?u[l]=o:u.$set({[l]:o})}}})}),n.forEach(l=>{me(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}const fs={version:"0.60.3"};function cs(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 ds(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Re={},Tt,Or;function vs(){if(Or)return Tt;Or=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,o=`
3
+ `,u="/",f="*",c="",v="comment",d="declaration";Tt=function(g,C){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];C=C||{};var k=1,T=1;function _e($){var _=$.match(t);_&&(k+=_.length);var N=$.lastIndexOf(o);T=~N?$.length-N:T+$.length}function ie(){var $={line:k,column:T};return function(_){return _.position=new Ae($),b(),_}}function Ae($){this.start=$,this.end={line:k,column:T},this.source=C.source}Ae.prototype.content=g;function Qe($){var _=new Error(C.source+":"+k+":"+T+": "+$);if(_.reason=$,_.filename=C.source,_.line=k,_.column=T,_.source=g,!C.silent)throw _}function pe($){var _=$.exec(g);if(_){var N=_[0];return _e(N),g=g.slice(N.length),_}}function b(){pe(r)}function y($){var _;for($=$||[];_=Oe();)_!==!1&&$.push(_);return $}function Oe(){var $=ie();if(!(u!=g.charAt(0)||f!=g.charAt(1))){for(var _=2;c!=g.charAt(_)&&(f!=g.charAt(_)||u!=g.charAt(_+1));)++_;if(_+=2,c===g.charAt(_-1))return Qe("End of comment missing");var N=g.slice(2,_-2);return T+=2,_e(N),g=g.slice(_),T+=2,$({type:v,comment:N})}}function G(){var $=ie(),_=pe(n);if(_){if(Oe(),!pe(s))return Qe("property missing ':'");var N=pe(i),De=$({type:d,property:h(_[0].replace(e,c)),value:N?h(N[0].replace(e,c)):c});return pe(a),De}}function xt(){var $=[];y($);for(var _;_=G();)_!==!1&&($.push(_),y($));return $}return b(),xt()};function h(g){return g?g.replace(l,c):c}return Tt}var Cr;function hs(){if(Cr)return Re;Cr=1;var e=Re&&Re.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Re,"__esModule",{value:!0}),Re.default=r;var t=e(vs());function r(n,s){var i=null;if(!n||typeof n!="string")return i;var a=(0,t.default)(n),l=typeof s=="function";return a.forEach(function(o){if(o.type==="declaration"){var u=o.property,f=o.value;l?s(u,f,o):f&&(i=i||{},i[u]=f)}}),i}return Re}var _s=hs();const Pr=ds(_s);Pr.default;var ps=bt('<div class="progress svelte-qxv4dk"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-qxv4dk" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>'),gs=bt('<div class="progress svelte-qxv4dk"><div class="progress-bar svelte-qxv4dk" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>'),ms=bt('<hb-dialog><span slot="title" class="svelte-qxv4dk"><!></span> <div slot="body-content" class="svelte-qxv4dk"><!></div> <span slot="modal-footer" class="svelte-qxv4dk"></span></hb-dialog>',2);const ws={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
7
7
  * Copyright 2011-2021 Twitter, Inc.
8
8
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
9
9
  */
10
- @keyframes svelte-69qdj4-progress-bar-stripes {
10
+ @keyframes svelte-qxv4dk-progress-bar-stripes {
11
11
  0% {
12
- background-position-x: 1rem;
12
+ background-position-x: var(--bs-progress-height);
13
13
  }
14
- }.progress.svelte-69qdj4 {display:flex;height:1rem;overflow:hidden;font-size:0.75rem;background-color:#e9ecef;border-radius:0.25rem;}.progress-bar.svelte-69qdj4 {display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:#0d6efd;transition:width 0.6s ease;}
15
- @media (prefers-reduced-motion: reduce) {.progress-bar.svelte-69qdj4 {transition:none;}
16
- }.progress-bar-striped.svelte-69qdj4 {background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-size:1rem 1rem;}.progress-bar-animated.svelte-69qdj4 {
17
- animation: 1s linear infinite svelte-69qdj4-progress-bar-stripes;}
18
- @media (prefers-reduced-motion: reduce) {.progress-bar-animated.svelte-69qdj4 {
14
+ }.progress.svelte-qxv4dk {--bs-progress-height: 1rem;--bs-progress-font-size: 0.75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width 0.6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius);}.progress-bar.svelte-qxv4dk {display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition);}
15
+ @media (prefers-reduced-motion: reduce) {.progress-bar.svelte-qxv4dk {transition:none;}
16
+ }.progress-bar-striped.svelte-qxv4dk {background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-size:var(--bs-progress-height) var(--bs-progress-height);}.progress-bar-animated.svelte-qxv4dk {
17
+ animation: 1s linear infinite svelte-qxv4dk-progress-bar-stripes;}
18
+ @media (prefers-reduced-motion: reduce) {.progress-bar-animated.svelte-qxv4dk {
19
19
  animation: none;}
20
- }:host {font-family:"Roboto", sans-serif;}`};function Pr(e,t){Dt(t,!0),Qn(e,wi);function r($,b){t.$$host.dispatchEvent(new CustomEvent($,{detail:b}))}ci({repoName:"@htmlbricks/hb-dialog",version:fi.version});let n=Ie(t,"id",7,""),i=Ie(t,"downloadid",7,""),s=Ie(t,"uri",7,""),a=Ie(t,"headers",7,void 0),l=Ie(t,"targetfilename",7,void 0);Te({});let o=j(""),u=j(0),f=j(0),c=j(null),v=j(!1),d=j(null);On(()=>{try{a()&&typeof a()=="string"&&a(JSON.parse(a()))}catch{}!l()&&s()&&l(s().split("/")[s().split("/").length-1].split("?")[0])});function h(){function $(b){console.error(b),b&&R(d,b,!0),R(c,null),r("downloadError",{downloaded:p(v),id:i(),error:b})}R(f,0),R(c,new XMLHttpRequest,!0);try{if(p(c).open("GET",s(),!0),a())for(const b of Object.keys(a()))p(c).setRequestHeader(b,a()[b]);p(c).responseType="blob",p(c).onload=function(){if(l()&&p(c)?.status&&(p(c).status>299||p(c).status<200))return $("request error");const Ce=(window.URL||window.webkitURL).createObjectURL(this.response),G=document.createElement("a");return G.href=Ce,G.target="_blank",G.download=l(),document.body.appendChild(G),G.click(),document.body.removeChild(G),console.log("loadEnd"),i(""),s(""),R(c,null),R(v,!0),R(d,null),r("downloadComplete",{downloaded:p(v),id:i()||"default"})},p(c).onerror=b=>$(b),p(c).onprogress=function(b){R(u,b?.total||0,!0),R(f,b?.loaded||0,!0)},p(c).onloadend=function(b){},p(c).send()}catch(b){return console.error("download err ",b),$(b)}}function g($){$.show?(i($.id),h()):(s(""),i(""),R(d,null),p(c)&&p(c).abort(),R(c,null)),r("modalShow",$)}var k={get id(){return n()},set id($=""){n($),be()},get downloadid(){return i()},set downloadid($=""){i($),be()},get uri(){return s()},set uri($=""){s($),be()},get headers(){return a()},set headers($=void 0){a($),be()},get targetfilename(){return l()},set targetfilename($=void 0){l($),be()}},N=mi();Nr(N,p(o)),Ke(()=>Ar(N,"id",i())),Ke(()=>Ar(N,"show",s()?"yes":"no")),ri(N,1,"svelte-69qdj4");var T=Pe(N),_e=Pe(T);Zn(_e,t,"title",{},$=>{var b=yr("Downloading");ie($,b)}),ke(T);var se=En(T,2),xe=Pe(se);{var Qe=$=>{var b=pi();ie($,b)},pe=$=>{var b=br(),Ce=nr(b);{var G=y=>{var _=gi(),A=Pe(_),qe=Pe(A);ke(A),ke(_),Ke((De,et,$i)=>{Nr(A,`width:${De??""}%`),Rr(A,"aria-valuenow",et),Er(qe,`${$i??""}%`)},[()=>Math.round(p(f)/p(u)*100),()=>Math.round(p(f)/p(u)*100),()=>Math.round(p(f)/p(u)*100)]),ie(y,_)},St=y=>{var _=br(),A=nr(_);{var qe=De=>{var et=yr();Ke(()=>Er(et,p(d))),ie(De,et)};bt(A,De=>{p(d)&&De(qe)},!0)}ie(y,_)};bt(Ce,y=>{p(d)?y(St,!1):y(G)},!0)}ie($,b)};bt(xe,$=>{!p(u)&&!p(d)?$(Qe):$(pe,!1)})}return ke(se),sn(2),ke(N),Vn("modalShow",N,$=>g($.detail)),ie(e,N),Ft(k)}customElements.define("hb-downloader",ui(Pr,{id:{},downloadid:{},uri:{},headers:{},targetfilename:{}},["title"],[],!0)),Nt.Component=Pr,Object.defineProperty(Nt,Symbol.toStringTag,{value:"Module"})})(this.downloader=this.downloader||{});
20
+ }:host {font-family:"Roboto", sans-serif;}`};function Mr(e,t){jt(t,!0),Qn(e,ws);function r(b,y){t.$$host.dispatchEvent(new CustomEvent(b,{detail:y}))}cs({repoName:"@htmlbricks/hb-dialog",version:fs.version});let n=qe(t,"id",7,""),s=qe(t,"downloadid",7,""),i=qe(t,"uri",7,""),a=qe(t,"headers",7,void 0),l=qe(t,"targetfilename",7,void 0);Te({});let o=P(""),u=P(0),f=P(0),c=P(null),v=P(!1),d=P(null);Rn(()=>{try{a()&&typeof a()=="string"&&a(JSON.parse(a()))}catch{}!l()&&i()&&l(i().split("/")[i().split("/").length-1].split("?")[0])});function h(){function b(y){console.error(y),y&&S(d,y,!0),S(c,null),r("downloadError",{downloaded:p(v),id:s(),error:y})}S(f,0),S(c,new XMLHttpRequest,!0);try{if(p(c).open("GET",i(),!0),a())for(const y of Object.keys(a()))p(c).setRequestHeader(y,a()[y]);p(c).responseType="blob",p(c).onload=function(){if(l()&&p(c)?.status&&(p(c).status>299||p(c).status<200))return b("request error");const Oe=(window.URL||window.webkitURL).createObjectURL(this.response),G=document.createElement("a");return G.href=Oe,G.target="_blank",G.download=l(),document.body.appendChild(G),G.click(),document.body.removeChild(G),console.log("loadEnd"),s(""),i(""),S(c,null),S(v,!0),S(d,null),r("downloadComplete",{downloaded:p(v),id:s()||"default"})},p(c).onerror=y=>b(y),p(c).onprogress=function(y){S(u,y?.total||0,!0),S(f,y?.loaded||0,!0)},p(c).onloadend=function(y){},p(c).send()}catch(y){return console.error("download err ",y),b(y)}}function g(b){b.show?(s(b.id),h()):(i(""),s(""),S(d,null),p(c)&&p(c).abort(),S(c,null)),r("modalShow",b)}var C={get id(){return n()},set id(b=""){n(b),ye()},get downloadid(){return s()},set downloadid(b=""){s(b),ye()},get uri(){return i()},set uri(b=""){i(b),ye()},get headers(){return a()},set headers(b=void 0){a(b),ye()},get targetfilename(){return l()},set targetfilename(b=void 0){l(b),ye()}},k=ms();kr(k,p(o)),Ke(()=>Nr(k,"id",s())),Ke(()=>Nr(k,"show",i()?"yes":"no")),rs(k,1,"svelte-qxv4dk");var T=Me(k),_e=Me(T);Zn(_e,t,"title",{},b=>{var y=$r("Downloading");se(b,y)}),Ce(T);var ie=En(T,2),Ae=Me(ie);{var Qe=b=>{var y=ps();se(b,y)},pe=b=>{var y=yr(),Oe=nr(y);{var G=$=>{var _=gs(),N=Me(_),De=Me(N);Ce(N),Ce(_),Ke((je,et,bs)=>{kr(N,`width:${je??""}%`),Sr(N,"aria-valuenow",et),Er(De,`${bs??""}%`)},[()=>Math.round(p(f)/p(u)*100),()=>Math.round(p(f)/p(u)*100),()=>Math.round(p(f)/p(u)*100)]),se($,_)},xt=$=>{var _=yr(),N=nr(_);{var De=je=>{var et=$r();Ke(()=>Er(et,p(d))),se(je,et)};yt(N,je=>{p(d)&&je(De)},!0)}se($,_)};yt(Oe,$=>{p(d)?$(xt,!1):$(G)},!0)}se(b,y)};yt(Ae,b=>{!p(u)&&!p(d)?b(Qe):b(pe,!1)})}return Ce(ie),sn(2),Ce(k),Vn("modalShow",k,b=>g(b.detail)),se(e,k),Ft(C)}customElements.define("hb-downloader",us(Mr,{id:{},downloadid:{},uri:{},headers:{},targetfilename:{}},["title"],[],!0)),kt.Component=Mr,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})})(this.downloader=this.downloader||{});
21
21
  //# sourceMappingURL=main.iife.js.map