@htmlbricks/hb-uploader 0.66.2 → 0.66.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,5 +1,5 @@
1
1
  (function(At){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Hr=1,zr=2,Nt="[",Rt="[!",Ct="[?",Ot="]",Te={},N=Symbol(),Mt="http://www.w3.org/1999/xhtml",Ur=!1;var Vr=Array.isArray,Yr=Array.prototype.indexOf,xe=Array.prototype.includes,Wr=Array.from,Ye=Object.keys,We=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Gr=Object.getOwnPropertyDescriptors,Jr=Object.prototype,Kr=Array.prototype,Lt=Object.getPrototypeOf,Pt=Object.isExtensible;const Xr=()=>{};function Zr(e){for(var t=0;t<e.length;t++)e[t]()}function Dt(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const A=2,Se=4,Ge=8,It=1<<24,ne=16,W=32,se=64,lt=128,F=512,S=1024,C=2048,G=4096,J=8192,U=16384,ie=32768,Ft=1<<25,Ae=65536,jt=1<<17,Qr=1<<18,ge=1<<19,en=1<<20,be=65536,at=1<<21,ft=1<<22,oe=1<<23,ut=Symbol("$state"),tn=Symbol("legacy props"),rn=Symbol(""),Z=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},nn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),ct=3,Je=8;function sn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function on(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ln(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function an(e){throw new Error("https://svelte.dev/e/effect_orphan")}function fn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function un(){throw new Error("https://svelte.dev/e/hydration_failed")}function cn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function hn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function dn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function vn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function _n(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function le(e){m=e}let T;function K(e){if(e===null)throw Ke(),Te;return T=e}function Xe(){return K(he(T))}function De(e){if(m){if(he(T)!==null)throw Ke(),Te;T=e}}function qt(e=1){if(m){for(var t=e,r=T;t--;)r=he(r);T=r}}function Bt(e=!0){for(var t=0,r=T;;){if(r.nodeType===Je){var n=r.data;if(n===Ot){if(t===0)return r;t-=1}else(n===Nt||n===Rt||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var s=he(r);e&&r.remove(),r=s}}function pn(e){if(!e||e.nodeType!==Je)throw Ke(),Te;return e.data}function Ht(e){return e===this.v}function gn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function bn(e){return!gn(e,this.v)}let wn=!1,j=null;function Ne(e){j=e}function zt(e,t=!1,r){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:g,l:null}}function Ut(e){var t=j,r=t.e;if(r!==null){t.e=null;for(var n of r)vr(n)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function Vt(){return!0}let we=[];function Yt(){var e=we;we=[],Zr(e)}function me(e){if(we.length===0&&!Ie){var t=we;queueMicrotask(()=>{t===we&&Yt()})}we.push(e)}function mn(){for(;we.length>0;)Yt()}function Wt(e){var t=g;if(t===null)return p.f|=oe,e;if((t.f&ie)===0&&(t.f&Se)===0)throw e;ae(e,t)}function ae(e,t){for(;t!==null;){if((t.f&lt)!==0){if((t.f&ie)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const yn=-7169;function x(e,t){e.f=e.f&yn|t}function ht(e){(e.f&F)!==0||e.deps===null?x(e,S):x(e,G)}function Gt(e){if(e!==null)for(const t of e)(t.f&A)===0||(t.f&be)===0||(t.f^=be,Gt(t.deps))}function Jt(e,t,r){(e.f&C)!==0?t.add(e):(e.f&G)!==0&&r.add(e),Gt(e.deps),x(e,S)}const fe=new Set;let $=null,V=null,dt=null,Ie=!1,vt=!1,Re=null,Ze=null;var Kt=0;let $n=1;class Q{id=$n++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#s=new Map;#i=null;#n=[];#o=new Set;#l=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#h(){return this.is_fork||this.#s.size>0}#v(){for(const n of this.#f)for(const s of n.#s.keys()){for(var t=!1,r=s;r.parent!==null;){if(this.#a.has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#a.get(t);if(r){this.#a.delete(t);for(var n of r.d)x(n,C),this.schedule(n);for(n of r.m)x(n,G),this.schedule(n)}}#d(){if(Kt++>1e3&&(fe.delete(this),En()),!this.#h()){for(const o of this.#o)this.#l.delete(o),x(o,C),this.schedule(o);for(const o of this.#l)x(o,G),this.schedule(o)}const t=this.#n;this.#n=[],this.apply();var r=Re=[],n=[],s=Ze=[];for(const o of t)try{this.#u(o,r,n)}catch(a){throw tr(o),a}if($=null,s.length>0){var i=Q.ensure();for(const o of s)i.schedule(o)}if(Re=null,Ze=null,this.#h()||this.#v()){this.#_(n),this.#_(r);for(const[o,a]of this.#a)er(o,a)}else{this.#t.size===0&&fe.delete(this),this.#o.clear(),this.#l.clear();for(const o of this.#e)o(this);this.#e.clear(),Xt(n),Xt(r),this.#i?.resolve()}var l=$;if(this.#n.length>0){const o=l??=this;o.#n.push(...this.#n.filter(a=>!o.#n.includes(a)))}l!==null&&(fe.add(l),l.#d()),fe.has(this)||this.#p()}#u(t,r,n){t.f^=S;for(var s=t.first;s!==null;){var i=s.f,l=(i&(W|se))!==0,o=l&&(i&S)!==0,a=o||(i&J)!==0||this.#a.has(s);if(!a&&s.fn!==null){l?s.f^=S:(i&Se)!==0?r.push(s):Ue(s)&&((i&ne)!==0&&this.#l.add(s),Ce(s));var f=s.first;if(f!==null){s=f;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#_(t){for(var r=0;r<t.length;r+=1)Jt(t[r],this.#o,this.#l)}capture(t,r,n=!1){r!==N&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&oe)===0&&(this.current.set(t,[t.v,n]),V?.set(t,t.v))}activate(){$=this}deactivate(){$=null,V=null}flush(){try{vt=!0,$=this,this.#d()}finally{Kt=0,dt=null,Re=null,Ze=null,vt=!1,$=null,V=null,ue.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),fe.delete(this)}#p(){for(const f of fe){var t=f.id<this.id,r=[];for(const[u,[h,c]]of this.current){if(f.current.has(u)){var n=f.current.get(u)[0];if(t&&h!==n)f.current.set(u,[h,c]);else continue}r.push(u)}var s=[...f.current.keys()].filter(u=>!this.current.has(u));if(s.length===0)t&&f.discard();else if(r.length>0){f.activate();var i=new Set,l=new Map;for(var o of r)Zt(o,s,i,l);if(f.#n.length>0){f.apply();for(var a of f.#n)f.#u(a,[],[]);f.#n=[]}f.deactivate()}}for(const f of fe)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#h()&&(f.activate(),f.#d()))}increment(t,r){let n=this.#t.get(r)??0;if(this.#t.set(r,n+1),t){let s=this.#s.get(r)??0;this.#s.set(r,s+1)}}decrement(t,r,n){let s=this.#t.get(r)??0;if(s===1?this.#t.delete(r):this.#t.set(r,s-1),t){let i=this.#s.get(r)??0;i===1?this.#s.delete(r):this.#s.set(r,i-1)}this.#c||n||(this.#c=!0,me(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,r){for(const n of t)this.#o.add(n);for(const n of r)this.#l.add(n);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#i??=Dt()).promise}static ensure(){if($===null){const t=$=new Q;vt||(fe.add($),Ie||me(()=>{$===t&&t.flush()}))}return $}apply(){{V=null;return}}schedule(t){if(dt=t,t.b?.is_pending&&(t.f&(Se|Ge|It))!==0&&(t.f&ie)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(Re!==null&&r===g&&(p===null||(p.f&A)===0))return;if((n&(se|W))!==0){if((n&S)===0)return;r.f^=S}}this.#n.push(r)}}function Qe(e){var t=Ie;Ie=!0;try{for(var r;;){if(mn(),$===null)return r;$.flush()}}finally{Ie=t}}function En(){try{fn()}catch(e){ae(e,dt)}}let ee=null;function Xt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(U|J))===0&&Ue(n)&&(ee=new Set,Ce(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&br(n),ee?.size>0)){ue.clear();for(const s of ee){if((s.f&(U|J))!==0)continue;const i=[s];let l=s.parent;for(;l!==null;)ee.has(l)&&(ee.delete(l),i.push(l)),l=l.parent;for(let o=i.length-1;o>=0;o--){const a=i[o];(a.f&(U|J))===0&&Ce(a)}}ee.clear()}}ee=null}}function Zt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&A)!==0?Zt(s,t,r,n):(i&(ft|ne))!==0&&(i&C)===0&&Qt(s,t,n)&&(x(s,C),_t(s))}}function Qt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(xe.call(t,s))return!0;if((s.f&A)!==0&&Qt(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function _t(e){$.schedule(e)}function er(e,t){if(!((e.f&W)!==0&&(e.f&S)!==0)){(e.f&C)!==0?t.d.push(e):(e.f&G)!==0&&t.m.push(e),x(e,S);for(var r=e.first;r!==null;)er(r,t),r=r.next}}function tr(e){x(e,S);for(var t=e.first;t!==null;)tr(t),t=t.next}function Tn(e){let t=0,r=Fe(0),n;return()=>{yt()&&(w(r),_r(()=>(t===0&&(n=Zn(()=>e(()=>je(r)))),t+=1,()=>{me(()=>{t-=1,t===0&&(n?.(),n=void 0,je(r))})})))}}var xn=Ae|ge;function kn(e,t,r,n){new Sn(e,t,r,n)}class Sn{parent;is_pending=!1;transform_error;#e;#r=m?T:null;#t;#s;#i;#n=null;#o=null;#l=null;#a=null;#c=0;#f=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=Tn(()=>(this.#u=Fe(this.#c),()=>{this.#u=null}));constructor(t,r,n,s){this.#e=t,this.#t=r,this.#s=i=>{var l=g;l.b=this,l.f|=lt,n(i)},this.parent=g.b,this.transform_error=s??this.parent?.transform_error??(i=>i),this.#i=pr(()=>{if(m){const i=this.#r;Xe();const l=i.data===Rt;if(i.data.startsWith(Ct)){const a=JSON.parse(i.data.slice(Ct.length));this.#y(a)}else l?this.#$():this.#p()}else this.#w()},xn),m&&(this.#e=T)}#p(){try{this.#n=te(()=>this.#s(this.#e))}catch(t){this.error(t)}}#y(t){const r=this.#t.failed;r&&(this.#l=te(()=>{r(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=te(()=>t(this.#e)),me(()=>{var r=this.#a=document.createDocumentFragment(),n=ce();r.append(n),this.#n=this.#b(()=>te(()=>this.#s(n))),this.#f===0&&(this.#e.before(r),this.#a=null,ze(this.#o,()=>{this.#o=null}),this.#g($))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#n=te(()=>{this.#s(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();yr(this.#n,t);const r=this.#t.pending;this.#o=te(()=>r(this.#e))}else this.#g($)}catch(r){this.error(r)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#d)}defer_effect(t){Jt(t,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#b(t){var r=g,n=p,s=j;B(this.#i),P(this.#i),Ne(this.#i.ctx);try{return Q.ensure(),t()}catch(i){return Wt(i),null}finally{B(r),P(n),Ne(s)}}#m(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t,r);return}this.#f+=t,this.#f===0&&(this.#g(r),this.#o&&ze(this.#o,()=>{this.#o=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,r){this.#m(t,r),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,me(()=>{this.#h=!1,this.#u&&tt(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),w(this.#u)}error(t){var r=this.#t.onerror;let n=this.#t.failed;if(!r&&!n)throw t;this.#n&&(L(this.#n),this.#n=null),this.#o&&(L(this.#o),this.#o=null),this.#l&&(L(this.#l),this.#l=null),m&&(K(this.#r),qt(),K(Bt()));var s=!1,i=!1;const l=()=>{if(s){_n();return}s=!0,i&&vn(),this.#l!==null&&ze(this.#l,()=>{this.#l=null}),this.#b(()=>{this.#w()})},o=a=>{try{i=!0,r?.(a,l),i=!1}catch(f){ae(f,this.#i&&this.#i.parent)}n&&(this.#l=this.#b(()=>{try{return te(()=>{var f=g;f.b=this,f.f|=lt,n(this.#e,()=>a,()=>l)})}catch(f){return ae(f,this.#i.parent),null}}))};me(()=>{var a;try{a=this.transform_error(t)}catch(f){ae(f,this.#i&&this.#i.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,f=>ae(f,this.#i&&this.#i.parent)):o(a)})}}function An(e,t,r,n){const s=nr;var i=e.filter(c=>!c.settled);if(r.length===0&&i.length===0){n(t.map(s));return}var l=g,o=Nn(),a=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(c=>c.promise)):null;function f(c){o();try{n(c)}catch(_){(l.f&U)===0&&ae(_,l)}et()}if(r.length===0){a.then(()=>f(t.map(s)));return}var u=rr();function h(){Promise.all(r.map(c=>Rn(c))).then(c=>f([...t.map(s),...c])).catch(c=>ae(c,l)).finally(()=>u())}a?a.then(()=>{o(),h(),et()}):h()}function Nn(){var e=g,t=p,r=j,n=$;return function(i=!0){B(e),P(t),Ne(r),i&&(e.f&U)===0&&(n?.activate(),n?.apply())}}function et(e=!0){B(null),P(null),Ne(null),e&&$?.deactivate()}function rr(){var e=g,t=e.b,r=$,n=t.is_rendered();return t.update_pending_count(1,r),r.increment(n,e),(s=!1)=>{t.update_pending_count(-1,r),r.decrement(n,e,s)}}function nr(e){var t=A|C,r=p!==null&&(p.f&A)!==0?p:null;return g!==null&&(g.f|=ge),{ctx:j,deps:null,effects:null,equals:Ht,f:t,fn:e,reactions:null,rv:0,v:N,wv:0,parent:r??g,ac:null}}function Rn(e,t,r){let n=g;n===null&&sn();var s=void 0,i=Fe(N),l=!p,o=new Map;return Vn(()=>{var a=g,f=Dt();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(et)}catch(_){f.reject(_),et()}var u=$;if(l){if((a.f&ie)!==0)var h=rr();if(n.b.is_rendered())o.get(u)?.reject(Z),o.delete(u);else{for(const _ of o.values())_.reject(Z);o.clear()}o.set(u,f)}const c=(_,d=void 0)=>{if(h){var y=d===Z;h(y)}if(!(d===Z||(a.f&U)!==0)){if(u.activate(),d)i.f|=oe,tt(i,d);else{(i.f&oe)!==0&&(i.f^=oe),tt(i,_);for(const[E,M]of o){if(o.delete(E),E===u)break;M.reject(Z)}}u.deactivate()}};f.promise.then(c,_=>c(null,_||"unknown"))}),dr(()=>{for(const a of o.values())a.reject(Z)}),new Promise(a=>{function f(u){function h(){u===s?a(i):f(s)}u.then(h,h)}f(s)})}function Cn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)L(t[r])}}function On(e){for(var t=e.parent;t!==null;){if((t.f&A)===0)return(t.f&U)===0?t:null;t=t.parent}return null}function pt(e){var t,r=g;B(On(e));try{e.f&=~be,Cn(e),t=Sr(e)}finally{B(r)}return t}function sr(e){var t=e.v,r=pt(e);if(!e.equals(r)&&(e.wv=xr(),(!$?.is_fork||e.deps===null)&&(e.v=r,$?.capture(e,t,!0),e.deps===null))){x(e,S);return}de||(V!==null?(yt()||$?.is_fork)&&V.set(e,r):ht(e))}function Mn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Z),t.teardown=Xr,t.ac=null,Ve(t,0),$t(t))}function ir(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ce(t)}let gt=new Set;const ue=new Map;let or=!1;function Fe(e,t){var r={f:0,v:e,reactions:null,equals:Ht,rv:0,wv:0};return r}function q(e,t){const r=Fe(e);return Jn(r),r}function Ln(e,t=!1,r=!0){const n=Fe(e);return t||(n.equals=bn),n}function k(e,t,r=!1){p!==null&&(!Y||(p.f&jt)!==0)&&Vt()&&(p.f&(A|ne|ft|jt))!==0&&(H===null||!xe.call(H,e))&&dn();let n=r?qe(t):t;return tt(e,n,Ze)}function tt(e,t,r=null){if(!e.equals(t)){var n=e.v;de?ue.set(e,t):ue.set(e,n),e.v=t;var s=Q.ensure();if(s.capture(e,n),(e.f&A)!==0){const i=e;(e.f&C)!==0&&pt(i),V===null&&ht(i)}e.wv=xr(),lr(e,C,r),g!==null&&(g.f&S)!==0&&(g.f&(W|se))===0&&(z===null?Kn([e]):z.push(e)),!s.is_fork&&gt.size>0&&!or&&Pn()}return t}function Pn(){or=!1;for(const e of gt)(e.f&S)!==0&&x(e,G),Ue(e)&&Ce(e);gt.clear()}function je(e){k(e,e.v+1)}function lr(e,t,r){var n=e.reactions;if(n!==null)for(var s=n.length,i=0;i<s;i++){var l=n[i],o=l.f,a=(o&C)===0;if(a&&x(l,t),(o&A)!==0){var f=l;V?.delete(f),(o&be)===0&&(o&F&&(l.f|=be),lr(f,G,r))}else if(a){var u=l;(o&ne)!==0&&ee!==null&&ee.add(u),r!==null?r.push(u):_t(u)}}}function qe(e){if(typeof e!="object"||e===null||ut in e)return e;const t=Lt(e);if(t!==Jr&&t!==Kr)return e;var r=new Map,n=Vr(e),s=q(0),i=$e,l=o=>{if($e===i)return o();var a=p,f=$e;P(null),Tr(i);var u=o();return P(a),Tr(f),u};return n&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&cn();var u=r.get(a);return u===void 0?l(()=>{var h=q(f.value);return r.set(a,h),h}):k(u,f.value,!0),!0},deleteProperty(o,a){var f=r.get(a);if(f===void 0){if(a in o){const u=l(()=>q(N));r.set(a,u),je(s)}}else k(f,N),je(s);return!0},get(o,a,f){if(a===ut)return e;var u=r.get(a),h=a in o;if(u===void 0&&(!h||ke(o,a)?.writable)&&(u=l(()=>{var _=qe(h?o[a]:N),d=q(_);return d}),r.set(a,u)),u!==void 0){var c=w(u);return c===N?void 0:c}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var u=r.get(a);u&&(f.value=w(u))}else if(f===void 0){var h=r.get(a),c=h?.v;if(h!==void 0&&c!==N)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,a){if(a===ut)return!0;var f=r.get(a),u=f!==void 0&&f.v!==N||Reflect.has(o,a);if(f!==void 0||g!==null&&(!u||ke(o,a)?.writable)){f===void 0&&(f=l(()=>{var c=u?qe(o[a]):N,_=q(c);return _}),r.set(a,f));var h=w(f);if(h===N)return!1}return u},set(o,a,f,u){var h=r.get(a),c=a in o;if(n&&a==="length")for(var _=f;_<h.v;_+=1){var d=r.get(_+"");d!==void 0?k(d,N):_ in o&&(d=l(()=>q(N)),r.set(_+"",d))}if(h===void 0)(!c||ke(o,a)?.writable)&&(h=l(()=>q(void 0)),k(h,qe(f)),r.set(a,h));else{c=h.v!==N;var y=l(()=>qe(f));k(h,y)}var E=Reflect.getOwnPropertyDescriptor(o,a);if(E?.set&&E.set.call(u,f),!c){if(n&&typeof a=="string"){var M=r.get("length"),ve=Number(a);Number.isInteger(ve)&&ve>=M.v&&k(M,ve+1)}je(s)}return!0},ownKeys(o){w(s);var a=Reflect.ownKeys(o).filter(h=>{var c=r.get(h);return c===void 0||c.v!==N});for(var[f,u]of r)u.v!==N&&!(f in o)&&a.push(f);return a},setPrototypeOf(){hn()}})}var ar,fr,ur,cr;function bt(){if(ar===void 0){ar=window,fr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;ur=ke(t,"firstChild").get,cr=ke(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 Be(e){return ur.call(e)}function he(e){return cr.call(e)}function He(e,t){if(!m)return Be(e);var r=Be(T);return r===null&&(r=T.appendChild(ce())),K(r),r}function Dn(e,t=1,r=!1){let n=m?T:e;for(var s;t--;)s=n,n=he(n);if(!m)return n;if(r){if(n?.nodeType!==ct){var i=ce();return n===null?s?.after(i):n.before(i),K(i),i}hr(n)}return K(n),n}function In(e){e.textContent=""}function Fn(){return!1}function wt(e,t,r){return document.createElementNS(Mt,e,void 0)}function hr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===ct;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function mt(e){var t=p,r=g;P(null),B(null);try{return e()}finally{P(t),B(r)}}function jn(e){g===null&&(p===null&&an(),ln()),de&&on()}function qn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function X(e,t){var r=g;r!==null&&(r.f&J)!==0&&(e|=J);var n={ctx:j,deps:null,nodes:null,f:e|C|F,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},s=n;if((e&Se)!==0)Re!==null?Re.push(n):Q.ensure().schedule(n);else if(t!==null){try{Ce(n)}catch(l){throw L(n),l}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&ge)===0&&(s=s.first,(e&ne)!==0&&(e&Ae)!==0&&s!==null&&(s.f|=Ae))}if(s!==null&&(s.parent=r,r!==null&&qn(s,r),p!==null&&(p.f&A)!==0&&(e&se)===0)){var i=p;(i.effects??=[]).push(s)}return n}function yt(){return p!==null&&!Y}function dr(e){const t=X(Ge,null);return x(t,S),t.teardown=e,t}function Bn(e){jn();var t=g.f,r=!p&&(t&W)!==0&&(t&ie)===0;if(r){var n=j;(n.e??=[]).push(e)}else return vr(e)}function vr(e){return X(Se|en,e)}function Hn(e){Q.ensure();const t=X(se|ge,e);return()=>{L(t)}}function zn(e){Q.ensure();const t=X(se|ge,e);return(r={})=>new Promise(n=>{r.outro?ze(t,()=>{L(t),n(void 0)}):(L(t),n(void 0))})}function Un(e){return X(Se,e)}function Vn(e){return X(ft|ge,e)}function _r(e,t=0){return X(Ge|t,e)}function rt(e,t=[],r=[],n=[]){An(n,t,r,s=>{X(Ge,()=>e(...s.map(w)))})}function pr(e,t=0){var r=X(ne|t,e);return r}function te(e){return X(W|ge,e)}function gr(e){var t=e.teardown;if(t!==null){const r=de,n=p;$r(!0),P(null);try{t.call(null)}finally{$r(r),P(n)}}}function $t(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&mt(()=>{s.abort(Z)});var n=r.next;(r.f&se)!==0?r.parent=null:L(r,t),r=n}}function Yn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&W)===0&&L(t),t=r}}function L(e,t=!0){var r=!1;(t||(e.f&Qr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Wn(e.nodes.start,e.nodes.end),r=!0),x(e,Ft),$t(e,t&&!r),Ve(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const i of n)i.stop();gr(e),e.f^=Ft,e.f|=U;var s=e.parent;s!==null&&s.first!==null&&br(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Wn(e,t){for(;e!==null;){var r=e===t?null:he(e);e.remove(),e=r}}function br(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 ze(e,t,r=!0){var n=[];wr(e,n,!0);var s=()=>{r&&L(e),t&&t()},i=n.length;if(i>0){var l=()=>--i||s();for(var o of n)o.out(l)}else s()}function wr(e,t,r){if((e.f&J)===0){e.f^=J;var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&t.push(o);for(var s=e.first;s!==null;){var i=s.next,l=(s.f&Ae)!==0||(s.f&W)!==0&&(e.f&ne)!==0;wr(s,t,l?r:!1),s=i}}}function Gn(e){mr(e,!0)}function mr(e,t){if((e.f&J)!==0){e.f^=J,(e.f&S)===0&&(x(e,C),Q.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&Ae)!==0||(r.f&W)!==0;mr(r,s?t:!1),r=n}var i=e.nodes&&e.nodes.t;if(i!==null)for(const l of i)(l.is_global||t)&&l.in()}}function yr(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var s=r===n?null:he(r);t.append(r),r=s}}let nt=!1,de=!1;function $r(e){de=e}let p=null,Y=!1;function P(e){p=e}let g=null;function B(e){g=e}let H=null;function Jn(e){p!==null&&(H===null?H=[e]:H.push(e))}let D=null,I=0,z=null;function Kn(e){z=e}let Er=1,ye=0,$e=ye;function Tr(e){$e=e}function xr(){return++Er}function Ue(e){var t=e.f;if((t&C)!==0)return!0;if(t&A&&(e.f&=~be),(t&G)!==0){for(var r=e.deps,n=r.length,s=0;s<n;s++){var i=r[s];if(Ue(i)&&sr(i),i.wv>e.wv)return!0}(t&F)!==0&&V===null&&x(e,S)}return!1}function kr(e,t,r=!0){var n=e.reactions;if(n!==null&&!(H!==null&&xe.call(H,e)))for(var s=0;s<n.length;s++){var i=n[s];(i.f&A)!==0?kr(i,t,!1):t===i&&(r?x(i,C):(i.f&S)!==0&&x(i,G),_t(i))}}function Sr(e){var t=D,r=I,n=z,s=p,i=H,l=j,o=Y,a=$e,f=e.f;D=null,I=0,z=null,p=(f&(W|se))===0?e:null,H=null,Ne(e.ctx),Y=!1,$e=++ye,e.ac!==null&&(mt(()=>{e.ac.abort(Z)}),e.ac=null);try{e.f|=at;var u=e.fn,h=u();e.f|=ie;var c=e.deps,_=$?.is_fork;if(D!==null){var d;if(_||Ve(e,I),c!==null&&I>0)for(c.length=I+D.length,d=0;d<D.length;d++)c[I+d]=D[d];else e.deps=c=D;if(yt()&&(e.f&F)!==0)for(d=I;d<c.length;d++)(c[d].reactions??=[]).push(e)}else!_&&c!==null&&I<c.length&&(Ve(e,I),c.length=I);if(Vt()&&z!==null&&!Y&&c!==null&&(e.f&(A|G|C))===0)for(d=0;d<z.length;d++)kr(z[d],e);if(s!==null&&s!==e){if(ye++,s.deps!==null)for(let y=0;y<r;y+=1)s.deps[y].rv=ye;if(t!==null)for(const y of t)y.rv=ye;z!==null&&(n===null?n=z:n.push(...z))}return(e.f&oe)!==0&&(e.f^=oe),h}catch(y){return Wt(y)}finally{e.f^=at,D=t,I=r,z=n,p=s,H=i,Ne(l),Y=o,$e=a}}function Xn(e,t){let r=t.reactions;if(r!==null){var n=Yr.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}if(r===null&&(t.f&A)!==0&&(D===null||!xe.call(D,t))){var i=t;(i.f&F)!==0&&(i.f^=F,i.f&=~be),ht(i),Mn(i),Ve(i,0)}}function Ve(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Xn(e,r[n])}function Ce(e){var t=e.f;if((t&U)===0){x(e,S);var r=g,n=nt;g=e,nt=!0;try{(t&(ne|It))!==0?Yn(e):$t(e),gr(e);var s=Sr(e);e.teardown=typeof s=="function"?s:null,e.wv=Er;var i;Ur&&wn&&(e.f&C)!==0&&e.deps}finally{nt=n,g=r}}}function w(e){var t=e.f,r=(t&A)!==0;if(p!==null&&!Y){var n=g!==null&&(g.f&U)!==0;if(!n&&(H===null||!xe.call(H,e))){var s=p.deps;if((p.f&at)!==0)e.rv<ye&&(e.rv=ye,D===null&&s!==null&&s[I]===e?I++:D===null?D=[e]:D.push(e));else{(p.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[p]:xe.call(i,p)||i.push(p)}}}if(de&&ue.has(e))return ue.get(e);if(r){var l=e;if(de){var o=l.v;return((l.f&S)===0&&l.reactions!==null||Nr(l))&&(o=pt(l)),ue.set(l,o),o}var a=(l.f&F)===0&&!Y&&p!==null&&(nt||(p.f&F)!==0),f=(l.f&ie)===0;Ue(l)&&(a&&(l.f|=F),sr(l)),a&&!f&&(ir(l),Ar(l))}if(V?.has(e))return V.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function Ar(e){if(e.f|=F,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&A)!==0&&(t.f&F)===0&&(ir(t),Ar(t))}function Nr(e){if(e.v===N)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ue.has(t)||(t.f&A)!==0&&Nr(t))return!0;return!1}function Zn(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const st=Symbol("events"),Qn=new Set,Rr=new Set;function es(e,t,r,n={}){function s(i){if(n.capture||Et.call(t,i),!i.cancelBubble)return mt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?me(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function ts(e,t,r,n,s){var i={capture:n,passive:s},l=es(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&dr(()=>{t.removeEventListener(e,l,i)})}let Cr=null;function Et(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Cr=e;var l=0,o=Cr===e&&e[st];if(o){var a=s.indexOf(o);if(a!==-1&&(t===document||t===window)){e[st]=t;return}var f=s.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(i=s[l]||e.target,i!==t){We(e,"currentTarget",{configurable:!0,get(){return i||r}});var u=p,h=g;P(null),B(null);try{for(var c,_=[];i!==null;){var d=i.assignedSlot||i.parentNode||i.host||null;try{var y=i[st]?.[n];y!=null&&(!i.disabled||e.target===i)&&y.call(i,e)}catch(E){c?_.push(E):c=E}if(e.cancelBubble||d===t||d===null)break;i=d}if(c){for(let E of _)queueMicrotask(()=>{throw E});throw c}}finally{e[st]=t,delete e.currentTarget,P(u),B(h)}}}const rs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ns(e){return rs?.createHTML(e)??e}function ss(e){var t=wt("template");return t.innerHTML=ns(e.replaceAll("<!>","<!---->")),t.content}function Oe(e,t){var r=g;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Tt(e,t){var r=(t&Hr)!==0,n=(t&zr)!==0,s,i=!e.startsWith("<!>");return()=>{if(m)return Oe(T,null),T;s===void 0&&(s=ss(i?e:"<!>"+e),r||(s=Be(s)));var l=n||fr?document.importNode(s,!0):s.cloneNode(!0);if(r){var o=Be(l),a=l.lastChild;Oe(o,a)}else Oe(l,l);return l}}function Or(e=""){if(!m){var t=ce(e+"");return Oe(t,t),t}var r=T;return r.nodeType!==ct?(r.before(r=ce()),K(r)):hr(r),Oe(r,r),r}function Me(e,t){if(m){var r=g;((r.f&ie)===0||r.nodes.end===null)&&(r.nodes.end=T),Xe();return}e!==null&&e.before(t)}const is=["touchstart","touchmove"];function os(e){return is.includes(e)}function Mr(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function Lr(e,t){return Pr(e,t)}function ls(e,t){bt(),t.intro=t.intro??!1;const r=t.target,n=m,s=T;try{for(var i=Be(r);i&&(i.nodeType!==Je||i.data!==Nt);)i=he(i);if(!i)throw Te;le(!0),K(i);const l=Pr(e,{...t,anchor:i});return le(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Te&&console.warn("Failed to hydrate: ",l),t.recover===!1&&un(),bt(),In(r),le(!1),Lr(e,t)}finally{le(n),K(s)}}const it=new Map;function Pr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:l=!0,transformError:o}){bt();var a=void 0,f=zn(()=>{var u=r??t.appendChild(ce());kn(u,{pending:()=>{}},_=>{zt({});var d=j;if(i&&(d.c=i),s&&(n.$$events=s),m&&Oe(_,null),a=e(_,n)||{},m&&(g.nodes.end=T,T===null||T.nodeType!==Je||T.data!==Ot))throw Ke(),Te;Ut()},o);var h=new Set,c=_=>{for(var d=0;d<_.length;d++){var y=_[d];if(!h.has(y)){h.add(y);var E=os(y);for(const Le of[t,document]){var M=it.get(Le);M===void 0&&(M=new Map,it.set(Le,M));var ve=M.get(y);ve===void 0?(Le.addEventListener(y,Et,{passive:E}),M.set(y,1)):M.set(y,ve+1)}}}};return c(Wr(Qn)),Rr.add(c),()=>{for(var _ of h)for(const E of[t,document]){var d=it.get(E),y=d.get(_);--y==0?(E.removeEventListener(_,Et),d.delete(_),d.size===0&&it.delete(E)):d.set(_,y)}Rr.delete(c),u!==r&&u.parentNode?.removeChild(u)}});return xt.set(a,f),a}let xt=new WeakMap;function as(e,t){const r=xt.get(e);return r?(xt.delete(e),r(t)):Promise.resolve()}class fs{anchor;#e=new Map;#r=new Map;#t=new Map;#s=new Set;#i=!0;constructor(t,r=!0){this.anchor=t,this.#i=r}#n=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#r.get(r);if(n)Gn(n),this.#s.delete(r);else{var s=this.#t.get(r);s&&(this.#r.set(r,s.effect),this.#t.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,l]of this.#e){if(this.#e.delete(i),i===t)break;const o=this.#t.get(l);o&&(L(o.effect),this.#t.delete(l))}for(const[i,l]of this.#r){if(i===r||this.#s.has(i))continue;const o=()=>{if(Array.from(this.#e.values()).includes(i)){var f=document.createDocumentFragment();yr(l,f),f.append(ce()),this.#t.set(i,{effect:l,fragment:f})}else L(l);this.#s.delete(i),this.#r.delete(i)};this.#i||!n?(this.#s.add(i),ze(l,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,s]of this.#t)r.includes(n)||(L(s.effect),this.#t.delete(n))};ensure(t,r){var n=$,s=Fn();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(s){var i=document.createDocumentFragment(),l=ce();i.append(l),this.#t.set(t,{effect:te(()=>r(l)),fragment:i})}else this.#r.set(t,te(()=>r(this.anchor)));if(this.#e.set(n,t),s){for(const[o,a]of this.#r)o===t?n.unskip_effect(a):n.skip_effect(a);for(const[o,a]of this.#t)o===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(this.#n),n.ondiscard(this.#o)}else m&&(this.anchor=T),this.#n(n)}}function us(e,t,r=!1){var n;m&&(n=T,Xe());var s=new fs(e),i=r?Ae:0;function l(o,a){if(m){var f=pn(n);if(o!==parseInt(f.substring(1))){var u=Bt();K(u),s.anchor=u,le(!1),s.ensure(o,a),le(!0);return}}s.ensure(o,a)}pr(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},i)}function cs(e,t,r,n,s){m&&Xe();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 hs(e,t){Un(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=wt("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function ds(e,t,r){var n=""+e;return n}function vs(e,t){return e==null?null:String(e)}function _s(e,t,r,n,s,i){var l=e.__className;if(m||l!==r||l===void 0){var o=ds(r);(!m||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function ps(e,t,r,n){var s=e.__style;if(m||s!==t){var i=vs(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const gs=Symbol("is custom element"),bs=Symbol("is html"),ws=nn?"link":"LINK";function Dr(e,t,r,n){var s=ms(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===ws)||s[t]!==(s[t]=r)&&(t==="loading"&&(e[rn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Fr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ir(e,t,r){var n=p,s=g;let i=m;m&&le(!1),P(null),B(null);try{t!=="style"&&(kt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Fr(e).includes(t):r&&typeof r=="object")?e[t]=r:Dr(e,t,r==null?r:String(r))}finally{P(n),B(s),i&&le(!0)}}function ms(e){return e.__attributes??={[gs]:e.nodeName.includes("-"),[bs]:e.namespaceURI===Mt}}var kt=new Map;function Fr(e){var t=e.getAttribute("is")||e.nodeName,r=kt.get(t);if(r)return r;kt.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Gr(s);for(var l in n)n[l].set&&r.push(l);s=Lt(s)}return r}function St(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 c=e[t];return c===void 0?l():(i=!0,c)};var f=!1,u=nr(()=>(f=!1,a())),h=g;return(function(c,_){if(arguments.length>0){const d=_?w(u):c;return k(u,d),f=!0,s!==void 0&&(s=d),c}return de&&f||(h.f&U)!==0?u.v:w(u)})}function ys(e){return new $s(e)}class $s{#e;#r;constructor(t){var r=new Map,n=(i,l)=>{var o=Ln(l,!1,!1);return r.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,l){return w(r.get(l)??n(l,Reflect.get(i,l)))},has(i,l){return l===tn?!0:(w(r.get(l)??n(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,o){return k(r.get(l)??n(l,o),o),Reflect.set(i,l,o)}});this.#r=(t.hydrate?ls:Lr)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Qe(),this.#e=s.$$events;for(const i of Object.keys(this.#r))i==="$set"||i==="$destroy"||i==="$on"||We(this,i,{get(){return this.#r[i]},set(l){this.#r[i]=l},enumerable:!0});this.#r.$set=i=>{Object.assign(s,i)},this.#r.$destroy=()=>{as(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...s)=>r.call(this,...s);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(s=>s!==n)}}$destroy(){this.#r.$destroy()}}let jr;typeof HTMLElement=="function"&&(jr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}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=wt("slot");n!=="default"&&(i.name=n),Me(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Es(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]=ot(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=ys({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Hn(()=>{_r(()=>{this.$$r=!0;for(const n of Ye(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=ot(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]=ot(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ye(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ot(e,t,r,n){const 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 Es(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Ts(e,t,r,n,s,i){let l=class extends jr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ye(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ye(t).forEach(o=>{We(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=ot(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=ke(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),n.forEach(o=>{We(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const xs={version:"0.66.2"};var Ee={},qr;function ks(){if(qr)return Ee;qr=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.LanguageTranslator=void 0,Ee.getChildStyleToPass=e,Ee.addComponent=t;function e(n,s){var i,l,o="";try{if(n&&s?.length&&(!((i=Object.keys(n))===null||i===void 0)&&i.length)&&(!((l=s?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||l===void 0)&&l.length))for(var a=function(c){var _=s?.filter(function(d){return d.name===c&&d.defaultValue!==n[c]});_&&(o+="".concat(c,":").concat(n[c],";"))},f=0,u=Object.keys(n);f<u.length;f++){var h=u[f];a(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}function t(n){var s,i=((s=n?.repoName.split("/"))===null||s===void 0?void 0:s[1])||n?.repoName;if(!i)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var l=n?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var o=document.createElement("script");if(o.id=i+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(l),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var a=i.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(i.replace(a+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(f){console.warn(f)}}var r=(function(){function n(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return n.prototype.setLang=function(s){s||(s=n.getDefaultLang()),this.lang=s},n.prototype.translateWord=function(s,i){return n.getDictionaryWord(s,this.dictionary,i||this.lang)},n.prototype.translateDate=function(s,i,l){return n.formatDate(s,i,l||this.lang)},n.getDefaultLang=function(){var s,i,l,o="en";return navigator?.languages&&(!((l=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},n.getDictionaryWord=function(s,i,l){var o;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(l&&(!((o=i[l])===null||o===void 0)&&o[s]))return i[l][s];var a="",f=n.getDefaultLang();if(!l||f!==l){var u=i?.[f];u?.[s]&&(a=u[s])}return a},n.formatDate=function(s,i,l){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||n.getDefaultLang(),i);return o.format(s)},n})();return Ee.LanguageTranslator=r,Ee}var Ss=ks(),As=Tt('<div class="progress svelte-cq5tos"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-cq5tos" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>'),Ns=Tt('<div class="progress svelte-cq5tos"><div class="progress-bar svelte-cq5tos" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>'),Rs=Tt('<hb-dialog><span slot="title" class="svelte-cq5tos"><!></span> <div slot="body-content" class="svelte-cq5tos"><!></div> <span slot="modal-footer" class="svelte-cq5tos"></span></hb-dialog>',2);const Cs={hash:"svelte-cq5tos",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");
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Te&&console.warn("Failed to hydrate: ",l),t.recover===!1&&un(),bt(),In(r),le(!1),Lr(e,t)}finally{le(n),K(s)}}const it=new Map;function Pr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:l=!0,transformError:o}){bt();var a=void 0,f=zn(()=>{var u=r??t.appendChild(ce());kn(u,{pending:()=>{}},_=>{zt({});var d=j;if(i&&(d.c=i),s&&(n.$$events=s),m&&Oe(_,null),a=e(_,n)||{},m&&(g.nodes.end=T,T===null||T.nodeType!==Je||T.data!==Ot))throw Ke(),Te;Ut()},o);var h=new Set,c=_=>{for(var d=0;d<_.length;d++){var y=_[d];if(!h.has(y)){h.add(y);var E=os(y);for(const Le of[t,document]){var M=it.get(Le);M===void 0&&(M=new Map,it.set(Le,M));var ve=M.get(y);ve===void 0?(Le.addEventListener(y,Et,{passive:E}),M.set(y,1)):M.set(y,ve+1)}}}};return c(Wr(Qn)),Rr.add(c),()=>{for(var _ of h)for(const E of[t,document]){var d=it.get(E),y=d.get(_);--y==0?(E.removeEventListener(_,Et),d.delete(_),d.size===0&&it.delete(E)):d.set(_,y)}Rr.delete(c),u!==r&&u.parentNode?.removeChild(u)}});return xt.set(a,f),a}let xt=new WeakMap;function as(e,t){const r=xt.get(e);return r?(xt.delete(e),r(t)):Promise.resolve()}class fs{anchor;#e=new Map;#r=new Map;#t=new Map;#s=new Set;#i=!0;constructor(t,r=!0){this.anchor=t,this.#i=r}#n=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#r.get(r);if(n)Gn(n),this.#s.delete(r);else{var s=this.#t.get(r);s&&(this.#r.set(r,s.effect),this.#t.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,l]of this.#e){if(this.#e.delete(i),i===t)break;const o=this.#t.get(l);o&&(L(o.effect),this.#t.delete(l))}for(const[i,l]of this.#r){if(i===r||this.#s.has(i))continue;const o=()=>{if(Array.from(this.#e.values()).includes(i)){var f=document.createDocumentFragment();yr(l,f),f.append(ce()),this.#t.set(i,{effect:l,fragment:f})}else L(l);this.#s.delete(i),this.#r.delete(i)};this.#i||!n?(this.#s.add(i),ze(l,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,s]of this.#t)r.includes(n)||(L(s.effect),this.#t.delete(n))};ensure(t,r){var n=$,s=Fn();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(s){var i=document.createDocumentFragment(),l=ce();i.append(l),this.#t.set(t,{effect:te(()=>r(l)),fragment:i})}else this.#r.set(t,te(()=>r(this.anchor)));if(this.#e.set(n,t),s){for(const[o,a]of this.#r)o===t?n.unskip_effect(a):n.skip_effect(a);for(const[o,a]of this.#t)o===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(this.#n),n.ondiscard(this.#o)}else m&&(this.anchor=T),this.#n(n)}}function us(e,t,r=!1){var n;m&&(n=T,Xe());var s=new fs(e),i=r?Ae:0;function l(o,a){if(m){var f=pn(n);if(o!==parseInt(f.substring(1))){var u=Bt();K(u),s.anchor=u,le(!1),s.ensure(o,a),le(!0);return}}s.ensure(o,a)}pr(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},i)}function cs(e,t,r,n,s){m&&Xe();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 hs(e,t){Un(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=wt("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function ds(e,t,r){var n=""+e;return n}function vs(e,t){return e==null?null:String(e)}function _s(e,t,r,n,s,i){var l=e.__className;if(m||l!==r||l===void 0){var o=ds(r);(!m||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function ps(e,t,r,n){var s=e.__style;if(m||s!==t){var i=vs(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const gs=Symbol("is custom element"),bs=Symbol("is html"),ws=nn?"link":"LINK";function Dr(e,t,r,n){var s=ms(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===ws)||s[t]!==(s[t]=r)&&(t==="loading"&&(e[rn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Fr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ir(e,t,r){var n=p,s=g;let i=m;m&&le(!1),P(null),B(null);try{t!=="style"&&(kt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Fr(e).includes(t):r&&typeof r=="object")?e[t]=r:Dr(e,t,r==null?r:String(r))}finally{P(n),B(s),i&&le(!0)}}function ms(e){return e.__attributes??={[gs]:e.nodeName.includes("-"),[bs]:e.namespaceURI===Mt}}var kt=new Map;function Fr(e){var t=e.getAttribute("is")||e.nodeName,r=kt.get(t);if(r)return r;kt.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Gr(s);for(var l in n)n[l].set&&r.push(l);s=Lt(s)}return r}function St(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 c=e[t];return c===void 0?l():(i=!0,c)};var f=!1,u=nr(()=>(f=!1,a())),h=g;return(function(c,_){if(arguments.length>0){const d=_?w(u):c;return k(u,d),f=!0,s!==void 0&&(s=d),c}return de&&f||(h.f&U)!==0?u.v:w(u)})}function ys(e){return new $s(e)}class $s{#e;#r;constructor(t){var r=new Map,n=(i,l)=>{var o=Ln(l,!1,!1);return r.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,l){return w(r.get(l)??n(l,Reflect.get(i,l)))},has(i,l){return l===tn?!0:(w(r.get(l)??n(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,o){return k(r.get(l)??n(l,o),o),Reflect.set(i,l,o)}});this.#r=(t.hydrate?ls:Lr)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Qe(),this.#e=s.$$events;for(const i of Object.keys(this.#r))i==="$set"||i==="$destroy"||i==="$on"||We(this,i,{get(){return this.#r[i]},set(l){this.#r[i]=l},enumerable:!0});this.#r.$set=i=>{Object.assign(s,i)},this.#r.$destroy=()=>{as(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...s)=>r.call(this,...s);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(s=>s!==n)}}$destroy(){this.#r.$destroy()}}let jr;typeof HTMLElement=="function"&&(jr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}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=wt("slot");n!=="default"&&(i.name=n),Me(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Es(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]=ot(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=ys({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Hn(()=>{_r(()=>{this.$$r=!0;for(const n of Ye(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=ot(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]=ot(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ye(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ot(e,t,r,n){const 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 Es(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Ts(e,t,r,n,s,i){let l=class extends jr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ye(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ye(t).forEach(o=>{We(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=ot(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=ke(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),n.forEach(o=>{We(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const xs={version:"0.66.3"};var Ee={},qr;function ks(){if(qr)return Ee;qr=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.LanguageTranslator=void 0,Ee.getChildStyleToPass=e,Ee.addComponent=t;function e(n,s){var i,l,o="";try{if(n&&s?.length&&(!((i=Object.keys(n))===null||i===void 0)&&i.length)&&(!((l=s?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||l===void 0)&&l.length))for(var a=function(c){var _=s?.filter(function(d){return d.name===c&&d.defaultValue!==n[c]});_&&(o+="".concat(c,":").concat(n[c],";"))},f=0,u=Object.keys(n);f<u.length;f++){var h=u[f];a(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}function t(n){var s,i=((s=n?.repoName.split("/"))===null||s===void 0?void 0:s[1])||n?.repoName;if(!i)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var l=n?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var o=document.createElement("script");if(o.id=i+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(l),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var a=i.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(i.replace(a+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(f){console.warn(f)}}var r=(function(){function n(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return n.prototype.setLang=function(s){s||(s=n.getDefaultLang()),this.lang=s},n.prototype.translateWord=function(s,i){return n.getDictionaryWord(s,this.dictionary,i||this.lang)},n.prototype.translateDate=function(s,i,l){return n.formatDate(s,i,l||this.lang)},n.getDefaultLang=function(){var s,i,l,o="en";return navigator?.languages&&(!((l=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},n.getDictionaryWord=function(s,i,l){var o;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(l&&(!((o=i[l])===null||o===void 0)&&o[s]))return i[l][s];var a="",f=n.getDefaultLang();if(!l||f!==l){var u=i?.[f];u?.[s]&&(a=u[s])}return a},n.formatDate=function(s,i,l){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||n.getDefaultLang(),i);return o.format(s)},n})();return Ee.LanguageTranslator=r,Ee}var Ss=ks(),As=Tt('<div class="progress svelte-cq5tos"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-cq5tos" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>'),Ns=Tt('<div class="progress svelte-cq5tos"><div class="progress-bar svelte-cq5tos" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>'),Rs=Tt('<hb-dialog><span slot="title" class="svelte-cq5tos"><!></span> <div slot="body-content" class="svelte-cq5tos"><!></div> <span slot="modal-footer" class="svelte-cq5tos"></span></hb-dialog>',2);const Cs={hash:"svelte-cq5tos",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");
3
3
  /*!
4
4
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
5
5
  * Copyright 2011-2021 The Bootstrap Authors
package/manifest.json CHANGED
@@ -208,5 +208,5 @@
208
208
  "size": {},
209
209
  "iifePath": "main.iife.js",
210
210
  "repoName": "@htmlbricks/hb-uploader",
211
- "version": "0.66.2"
211
+ "version": "0.66.3"
212
212
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-uploader",
3
- "version": "0.66.2",
3
+ "version": "0.66.3",
4
4
  "contributors": [],
5
5
  "description": "File download/upload UI driven by `fetch_data` (`url`, `data`), with optional `upload_id`, `total`, and `loaded` for progress. Title slot; fires `downloadError`, `downloadComplete`, and `modalShow` for host handling.",
6
6
  "licenses": [