@htmlbricks/hb-editor-video 0.66.0 → 0.66.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(Sr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const In=1,jn=4,Yn=8,Fn=16,Hn=1,qn=2,Mr="[",er="[!",Tr="]",st={},K=Symbol(),Bn="http://www.w3.org/1999/xhtml",tr=!1;var Wn=Array.isArray,Un=Array.prototype.indexOf,Jn=Array.from,Dt=Object.keys,Vt=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,Zn=Object.getOwnPropertyDescriptors,Gn=Object.prototype,Kn=Array.prototype,zr=Object.getPrototypeOf,Dr=Object.isExtensible;function Qn(e){for(var t=0;t<e.length;t++)e[t]()}function Vr(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const G=2,rr=4,nr=8,ze=16,De=32,Ye=64,Ot=128,ge=512,Q=1024,se=2048,Ve=4096,we=8192,Oe=16384,Nt=32768,it=65536,Or=1<<17,sr=1<<18,Ge=1<<19,Xn=1<<20,Ke=32768,ir=1<<21,or=1<<22,Fe=1<<23,At=Symbol("$state"),Nr=Symbol("legacy props"),es=Symbol(""),ot=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ar=3,at=8;function ts(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function rs(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ns(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ss(e){throw new Error("https://svelte.dev/e/effect_orphan")}function is(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function os(){throw new Error("https://svelte.dev/e/hydration_failed")}function as(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function us(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ls(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function fs(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function cs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ct(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ds(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let A=!1;function xe(e){A=e}let j;function ce(e){if(e===null)throw Ct(),st;return j=e}function ar(){return ce(ke(j))}function ie(e){if(A){if(ke(j)!==null)throw Ct(),st;j=e}}function ur(e=1){if(A){for(var t=e,r=j;t--;)r=ke(r);j=r}}function Cr(e=!0){for(var t=0,r=j;;){if(r.nodeType===at){var n=r.data;if(n===Tr){if(t===0)return r;t-=1}else(n===Mr||n===er)&&(t+=1)}var s=ke(r);e&&r.remove(),r=s}}function vs(e){if(!e||e.nodeType!==at)throw Ct(),st;return e.data}function Lr(e){return e===this.v}function hs(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Rr(e){return!hs(e,this.v)}let bs=!1,de=null;function ut(e){de=e}function Pr(e,t=!1,r){de={p:de,i:!1,c:null,e:null,s:e,x:null,l:null}}function Ir(e){var t=de,r=t.e;if(r!==null){t.e=null;for(var n of r)sn(n)}return e!==void 0&&(t.x=e),t.i=!0,de=t.p,e??{}}function jr(){return!0}let Qe=[];function Yr(){var e=Qe;Qe=[],Qn(e)}function yt(e){if(Qe.length===0&&!$t){var t=Qe;queueMicrotask(()=>{t===Qe&&Yr()})}Qe.push(e)}function _s(){for(;Qe.length>0;)Yr()}function Fr(e){var t=N;if(t===null)return D.f|=Fe,e;if((t.f&Nt)===0){if((t.f&Ot)===0)throw e;t.b.error(e)}else lt(e,t)}function lt(e,t){for(;t!==null;){if((t.f&Ot)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Lt=new Set;let P=null,Rt=null,ve=null,he=[],Pt=null,lr=!1,$t=!1;class ye{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#u=null;#i=[];#s=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){he=[],Rt=null,this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#o(n,r);this.is_fork||this.#f(),this.is_deferred()?(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects)):(Rt=this,P=null,qr(r.render_effects),qr(r.effects),Rt=null,this.#u?.resolve()),ve=null}#o(t,r){t.f^=Q;for(var n=t.first;n!==null;){var s=n.f,i=(s&(De|Ye))!==0,o=i&&(s&Q)!==0,a=o||(s&we)!==0||this.skipped_effects.has(n);if((n.f&Ot)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){i?n.f^=Q:(s&rr)!==0?r.effects.push(n):St(n)&&((n.f&ze)!==0&&r.block_effects.push(n),Mt(n));var u=n.first;if(u!==null){n=u;continue}}var l=n.parent;for(n=n.next;n===null&&l!==null;)l===r.effect&&(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects),r=r.parent),n=l.next,l=l.parent}}#a(t){for(const r of t)((r.f&se)!==0?this.#i:this.#s).push(r),this.#l(r.deps),ee(r,Q)}#l(t){if(t!==null)for(const r of t)(r.f&G)===0||(r.f&Ke)===0||(r.f^=Ke,this.#l(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Fe)===0&&(this.current.set(t,t.v),ve?.set(t,t.v))}activate(){P=this,this.apply()}deactivate(){P===this&&(P=null,ve=null)}flush(){if(this.activate(),he.length>0){if(Hr(),P!==null&&P!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Lt.size>1){this.previous.clear();var t=ve,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Lt){if(i===this){r=!1;continue}const o=[];for(const[u,l]of this.current){if(i.current.has(u))if(r&&l!==i.current.get(u))i.current.set(u,l);else continue;o.push(u)}if(o.length===0)continue;const a=[...i.current.keys()].filter(u=>!this.current.has(u));if(a.length>0){var s=he;he=[];const u=new Set,l=new Map;for(const _ of o)Br(_,a,u,l);if(he.length>0){P=i,i.apply();for(const _ of he)i.#o(_,n);i.deactivate()}he=s}}P=null,ve=t}this.committed=!0,Lt.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#i)ee(t,se),Xe(t);for(const t of this.#s)ee(t,Ve),Xe(t);this.#i=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#u??=Vr()).promise}static ensure(){if(P===null){const t=P=new ye;Lt.add(P),$t||ye.enqueue(()=>{P===t&&t.flush()})}return P}static enqueue(t){yt(t)}apply(){}}function ft(e){var t=$t;$t=!0;try{for(var r;;){if(_s(),he.length===0&&(P?.flush(),he.length===0))return Pt=null,r;Hr()}}finally{$t=t}}function Hr(){var e=qe;lr=!0;var t=null;try{var r=0;for(Ht(!0);he.length>0;){var n=ye.ensure();if(r++>1e3){var s,i;ms()}n.process(he),He.clear()}}finally{lr=!1,Ht(e),Pt=null}}function ms(){try{is()}catch(e){lt(e,Pt)}}let Ne=null;function qr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Oe|we))===0&&St(n)&&(Ne=new Set,Mt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?un(n):n.fn=null),Ne?.size>0)){He.clear();for(const s of Ne){if((s.f&(Oe|we))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)Ne.has(o)&&(Ne.delete(o),i.push(o)),o=o.parent;for(let a=i.length-1;a>=0;a--){const u=i[a];(u.f&(Oe|we))===0&&Mt(u)}}Ne.clear()}}Ne=null}}function Br(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&G)!==0?Br(s,t,r,n):(i&(or|ze))!==0&&(i&se)===0&&Wr(s,t,n)&&(ee(s,se),Xe(s))}}function Wr(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&G)!==0&&Wr(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function Xe(e){for(var t=Pt=e;t.parent!==null;){t=t.parent;var r=t.f;if(lr&&t===N&&(r&ze)!==0&&(r&sr)===0)return;if((r&(Ye|De))!==0){if((r&Q)===0)return;t.f^=Q}}he.push(t)}function ps(e){let t=0,r=wt(0),n;return()=>{Ft()&&(b(r),hr(()=>(t===0&&(n=_r(()=>e(()=>xt(r)))),t+=1,()=>{yt(()=>{t-=1,t===0&&(n?.(),n=void 0,xt(r))})})))}}var gs=it|Ge|Ot;function ys(e,t,r){new $s(e,t,r)}class $s{parent;#t=!1;#e;#r=A?j:null;#n;#u;#i;#s=null;#o=null;#a=null;#l=null;#f=null;#c=0;#d=0;#h=!1;#v=null;#g=ps(()=>(this.#v=wt(this.#c),()=>{this.#v=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#u=n,this.parent=N.b,this.#t=!!this.#n.pending,this.#i=br(()=>{if(N.b=this,A){const i=this.#r;ar(),i.nodeType===at&&i.data===er?this.#$():this.#y()}else{var s=this.#m();try{this.#s=Le(()=>n(s))}catch(i){this.error(i)}this.#d>0?this.#_():this.#t=!1}return()=>{this.#f?.remove()}},gs),A&&(this.#e=j)}#y(){try{this.#s=Le(()=>this.#u(this.#e))}catch(t){this.error(t)}this.#t=!1}#$(){const t=this.#n.pending;t&&(this.#o=Le(()=>t(this.#e)),ye.enqueue(()=>{var r=this.#m();this.#s=this.#b(()=>(ye.ensure(),Le(()=>this.#u(r)))),this.#d>0?this.#_():(kt(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#m(){var t=this.#e;return this.#t&&(this.#f=Ae(),this.#e.before(this.#f),t=this.#f),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#b(t){var r=N,n=D,s=de;be(this.#i),X(this.#i),ut(this.#i.ctx);try{return t()}catch(i){return Fr(i),null}finally{be(r),X(n),ut(s)}}#_(){const t=this.#n.pending;this.#s!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#f),cn(this.#s,this.#l)),this.#o===null&&(this.#o=Le(()=>t(this.#e)))}#p(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#p(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#o&&kt(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t){this.#p(t),this.#c+=t,this.#v&&jt(this.#v,this.#c)}get_effect_pending(){return this.#g(),b(this.#v)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#h||!r&&!n)throw t;this.#s&&(ae(this.#s),this.#s=null),this.#o&&(ae(this.#o),this.#o=null),this.#a&&(ae(this.#a),this.#a=null),A&&(ce(this.#r),ur(),ce(Cr()));var s=!1,i=!1;const o=()=>{if(s){ds();return}s=!0,i&&cs(),ye.ensure(),this.#c=0,this.#a!==null&&kt(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#s=this.#b(()=>(this.#h=!1,Le(()=>this.#u(this.#e)))),this.#d>0?this.#_():this.#t=!1};var a=D;try{X(null),i=!0,r?.(t,o),i=!1}catch(u){lt(u,this.#i&&this.#i.parent)}finally{X(a)}n&&yt(()=>{this.#a=this.#b(()=>{ye.ensure(),this.#h=!0;try{return Le(()=>{n(this.#e,()=>t,()=>o)})}catch(u){return lt(u,this.#i.parent),null}finally{this.#h=!1}})})}}function ws(e,t,r,n){const s=fr;if(r.length===0&&e.length===0){n(t.map(s));return}var i=P,o=N,a=xs();function u(){Promise.all(r.map(l=>ks(l))).then(l=>{a();try{n([...t.map(s),...l])}catch(_){(o.f&Oe)===0&&lt(_,o)}i?.deactivate(),It()}).catch(l=>{lt(l,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return u()}finally{i?.deactivate(),It()}}):u()}function xs(){var e=N,t=D,r=de,n=P;return function(i=!0){be(e),X(t),ut(r),i&&n?.activate()}}function It(){be(null),X(null),ut(null)}function fr(e){var t=G|se,r=D!==null&&(D.f&G)!==0?D:null;return N!==null&&(N.f|=Ge),{ctx:de,deps:null,effects:null,equals:Lr,f:t,fn:e,reactions:null,rv:0,v:K,wv:0,parent:r??N,ac:null}}function ks(e,t){let r=N;r===null&&ts();var n=r.b,s=void 0,i=wt(K),o=!D,a=new Map;return Ps(()=>{var u=Vr();s=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{l===P&&l.committed&&l.deactivate(),It()})}catch(d){u.reject(d),It()}var l=P;if(o){var _=!n.is_pending();n.update_pending_count(1),l.increment(_),a.get(l)?.reject(ot),a.delete(l),a.set(l,u)}const p=(d,v=void 0)=>{if(l.activate(),v)v!==ot&&(i.f|=Fe,jt(i,v));else{(i.f&Fe)!==0&&(i.f^=Fe),jt(i,d);for(const[S,L]of a){if(a.delete(S),S===l)break;L.reject(ot)}}o&&(n.update_pending_count(-1),l.decrement(_))};u.promise.then(p,d=>p(null,d||"unknown"))}),nn(()=>{for(const u of a.values())u.reject(ot)}),new Promise(u=>{function l(_){function p(){_===s?u(i):l(s)}_.then(p,p)}l(s)})}function Es(e){const t=fr(e);return t.equals=Rr,t}function Ur(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ae(t[r])}}function Ss(e){for(var t=e.parent;t!==null;){if((t.f&G)===0)return(t.f&Oe)===0?t:null;t=t.parent}return null}function cr(e){var t,r=N;be(Ss(e));try{e.f&=~Ke,Ur(e),t=mn(e)}finally{be(r)}return t}function Jr(e){var t=cr(e);if(e.equals(t)||(P?.is_fork||(e.v=t),e.wv=bn()),!et)if(ve!==null)Ft()&&ve.set(e,t);else{var r=(e.f&ge)===0?Ve:Q;ee(e,r)}}let dr=new Set;const He=new Map;let Zr=!1;function wt(e,t){var r={f:0,v:e,reactions:null,equals:Lr,rv:0,wv:0};return r}function H(e,t){const r=wt(e);return Hs(r),r}function Ms(e,t=!1,r=!0){const n=wt(e);return t||(n.equals=Rr),n}function z(e,t,r=!1){D!==null&&(!Se||(D.f&Or)!==0)&&jr()&&(D.f&(G|ze|or|Or))!==0&&!Re?.includes(e)&&fs();let n=r?ct(t):t;return jt(e,n)}function jt(e,t){if(!e.equals(t)){var r=e.v;et?He.set(e,t):He.set(e,r),e.v=t;var n=ye.ensure();n.capture(e,r),(e.f&G)!==0&&((e.f&se)!==0&&cr(e),ee(e,(e.f&ge)!==0?Q:Ve)),e.wv=bn(),Gr(e,se),N!==null&&(N.f&Q)!==0&&(N.f&(De|Ye))===0&&(_e===null?qs([e]):_e.push(e)),!n.is_fork&&dr.size>0&&!Zr&&Ts()}return t}function Ts(){Zr=!1;var e=qe;Ht(!0);const t=Array.from(dr);try{for(const r of t)(r.f&Q)!==0&&ee(r,Ve),St(r)&&Mt(r)}finally{Ht(e)}dr.clear()}function xt(e){z(e,e.v+1)}function Gr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],o=i.f,a=(o&se)===0;if(a&&ee(i,t),(o&G)!==0){var u=i;ve?.delete(u),(o&Ke)===0&&(o&ge&&(i.f|=Ke),Gr(u,Ve))}else a&&((o&ze)!==0&&Ne!==null&&Ne.add(i),Xe(i))}}function ct(e){if(typeof e!="object"||e===null||At in e)return e;const t=zr(e);if(t!==Gn&&t!==Kn)return e;var r=new Map,n=Wn(e),s=H(0),i=tt,o=a=>{if(tt===i)return a();var u=D,l=tt;X(null),hn(i);var _=a();return X(u),hn(l),_};return n&&r.set("length",H(e.length)),new Proxy(e,{defineProperty(a,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&us();var _=r.get(u);return _===void 0?_=o(()=>{var p=H(l.value);return r.set(u,p),p}):z(_,l.value,!0),!0},deleteProperty(a,u){var l=r.get(u);if(l===void 0){if(u in a){const _=o(()=>H(K));r.set(u,_),xt(s)}}else z(l,K),xt(s);return!0},get(a,u,l){if(u===At)return e;var _=r.get(u),p=u in a;if(_===void 0&&(!p||Ze(a,u)?.writable)&&(_=o(()=>{var v=ct(p?a[u]:K),S=H(v);return S}),r.set(u,_)),_!==void 0){var d=b(_);return d===K?void 0:d}return Reflect.get(a,u,l)},getOwnPropertyDescriptor(a,u){var l=Reflect.getOwnPropertyDescriptor(a,u);if(l&&"value"in l){var _=r.get(u);_&&(l.value=b(_))}else if(l===void 0){var p=r.get(u),d=p?.v;if(p!==void 0&&d!==K)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return l},has(a,u){if(u===At)return!0;var l=r.get(u),_=l!==void 0&&l.v!==K||Reflect.has(a,u);if(l!==void 0||N!==null&&(!_||Ze(a,u)?.writable)){l===void 0&&(l=o(()=>{var d=_?ct(a[u]):K,v=H(d);return v}),r.set(u,l));var p=b(l);if(p===K)return!1}return _},set(a,u,l,_){var p=r.get(u),d=u in a;if(n&&u==="length")for(var v=l;v<p.v;v+=1){var S=r.get(v+"");S!==void 0?z(S,K):v in a&&(S=o(()=>H(K)),r.set(v+"",S))}if(p===void 0)(!d||Ze(a,u)?.writable)&&(p=o(()=>H(void 0)),z(p,ct(l)),r.set(u,p));else{d=p.v!==K;var L=o(()=>ct(l));z(p,L)}var Y=Reflect.getOwnPropertyDescriptor(a,u);if(Y?.set&&Y.set.call(_,l),!d){if(n&&typeof u=="string"){var V=r.get("length"),R=Number(u);Number.isInteger(R)&&R>=V.v&&z(V,R+1)}xt(s)}return!0},ownKeys(a){b(s);var u=Reflect.ownKeys(a).filter(p=>{var d=r.get(p);return d===void 0||d.v!==K});for(var[l,_]of r)_.v!==K&&!(l in a)&&u.push(l);return u},setPrototypeOf(){ls()}})}var Kr,Qr,Xr,en;function vr(){if(Kr===void 0){Kr=window,Qr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Xr=Ze(t,"firstChild").get,en=Ze(t,"nextSibling").get,Dr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Dr(r)&&(r.__t=void 0)}}function Ae(e=""){return document.createTextNode(e)}function dt(e){return Xr.call(e)}function ke(e){return en.call(e)}function oe(e,t){if(!A)return dt(e);var r=dt(j);return r===null&&(r=j.appendChild(Ae())),ce(r),r}function te(e,t=1,r=!1){let n=A?j:e;for(var s;t--;)s=n,n=ke(n);if(!A)return n;if(r&&n?.nodeType!==Ar){var i=Ae();return n===null?s?.after(i):n.before(i),ce(i),i}return ce(n),n}function zs(e){e.textContent=""}function Ds(){return!1}let tn=!1;function rn(){tn||(tn=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Yt(e){var t=D,r=N;X(null),be(null);try{return e()}finally{X(t),be(r)}}function Vs(e,t,r,n=r){e.addEventListener(t,()=>Yt(r));const s=e.__on_r;s?e.__on_r=()=>{s(),n(!0)}:e.__on_r=()=>n(!0),rn()}function Os(e){N===null&&(D===null&&ss(),ns()),et&&rs()}function Ns(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Ee(e,t,r){var n=N;n!==null&&(n.f&we)!==0&&(e|=we);var s={ctx:de,deps:null,nodes_start:null,nodes_end:null,f:e|se|ge,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Mt(s),s.f|=Nt}catch(a){throw ae(s),a}else t!==null&&Xe(s);var i=s;if(r&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&Ge)===0&&(i=i.first,(e&ze)!==0&&(e&it)!==0&&i!==null&&(i.f|=it)),i!==null&&(i.parent=n,n!==null&&Ns(i,n),D!==null&&(D.f&G)!==0&&(e&Ye)===0)){var o=D;(o.effects??=[]).push(i)}return s}function Ft(){return D!==null&&!Se}function nn(e){const t=Ee(nr,null,!1);return ee(t,Q),t.teardown=e,t}function As(e){Os();var t=N.f,r=!D&&(t&De)!==0&&(t&Nt)===0;if(r){var n=de;(n.e??=[]).push(e)}else return sn(e)}function sn(e){return Ee(rr|Xn,e,!1)}function Cs(e){ye.ensure();const t=Ee(Ye|Ge,e,!0);return()=>{ae(t)}}function Ls(e){ye.ensure();const t=Ee(Ye|Ge,e,!0);return(r={})=>new Promise(n=>{r.outro?kt(t,()=>{ae(t),n(void 0)}):(ae(t),n(void 0))})}function Rs(e){return Ee(rr,e,!1)}function Ps(e){return Ee(or|Ge,e,!0)}function hr(e,t=0){return Ee(nr|t,e,!0)}function Ce(e,t=[],r=[],n=[]){ws(n,t,r,s=>{Ee(nr,()=>e(...s.map(b)),!0)})}function br(e,t=0){var r=Ee(ze|t,e,!0);return r}function Le(e){return Ee(De|Ge,e,!0)}function on(e){var t=e.teardown;if(t!==null){const r=et,n=D;dn(!0),X(null);try{t.call(null)}finally{dn(r),X(n)}}}function an(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Yt(()=>{s.abort(ot)});var n=r.next;(r.f&Ye)!==0?r.parent=null:ae(r,t),r=n}}function Is(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&De)===0&&ae(t),t=r}}function ae(e,t=!0){var r=!1;(t||(e.f&sr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(js(e.nodes_start,e.nodes_end),r=!0),an(e,t&&!r),qt(e,0),ee(e,Oe);var n=e.transitions;if(n!==null)for(const i of n)i.stop();on(e);var s=e.parent;s!==null&&s.first!==null&&un(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function js(e,t){for(;e!==null;){var r=e===t?null:ke(e);e.remove(),e=r}}function un(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 kt(e,t,r=!0){var n=[];ln(e,n,!0),Ys(n,()=>{r&&ae(e),t&&t()})}function Ys(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function ln(e,t,r){if((e.f&we)===0){if(e.f^=we,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&it)!==0||(n.f&De)!==0&&(e.f&ze)!==0;ln(n,t,i?r:!1),n=s}}}function Fs(e){fn(e,!0)}function fn(e,t){if((e.f&we)!==0){e.f^=we,(e.f&Q)===0&&(ee(e,se),Xe(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&it)!==0||(r.f&De)!==0;fn(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function cn(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:ke(r);t.append(r),r=s}}let qe=!1;function Ht(e){qe=e}let et=!1;function dn(e){et=e}let D=null,Se=!1;function X(e){D=e}let N=null;function be(e){N=e}let Re=null;function Hs(e){D!==null&&(Re===null?Re=[e]:Re.push(e))}let re=null,le=0,_e=null;function qs(e){_e=e}let vn=1,Et=0,tt=Et;function hn(e){tt=e}function bn(){return++vn}function St(e){var t=e.f;if((t&se)!==0)return!0;if(t&G&&(e.f&=~Ke),(t&Ve)!==0){var r=e.deps;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s];if(St(i)&&Jr(i),i.wv>e.wv)return!0}(t&ge)!==0&&ve===null&&ee(e,Q)}return!1}function _n(e,t,r=!0){var n=e.reactions;if(n!==null&&!Re?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&G)!==0?_n(i,t,!1):t===i&&(r?ee(i,se):(i.f&Q)!==0&&ee(i,Ve),Xe(i))}}function mn(e){var t=re,r=le,n=_e,s=D,i=Re,o=de,a=Se,u=tt,l=e.f;re=null,le=0,_e=null,D=(l&(De|Ye))===0?e:null,Re=null,ut(e.ctx),Se=!1,tt=++Et,e.ac!==null&&(Yt(()=>{e.ac.abort(ot)}),e.ac=null);try{e.f|=ir;var _=e.fn,p=_(),d=e.deps;if(re!==null){var v;if(qt(e,le),d!==null&&le>0)for(d.length=le+re.length,v=0;v<re.length;v++)d[le+v]=re[v];else e.deps=d=re;if(qe&&Ft()&&(e.f&ge)!==0)for(v=le;v<d.length;v++)(d[v].reactions??=[]).push(e)}else d!==null&&le<d.length&&(qt(e,le),d.length=le);if(jr()&&_e!==null&&!Se&&d!==null&&(e.f&(G|Ve|se))===0)for(v=0;v<_e.length;v++)_n(_e[v],e);return s!==null&&s!==e&&(Et++,_e!==null&&(n===null?n=_e:n.push(..._e))),(e.f&Fe)!==0&&(e.f^=Fe),p}catch(S){return Fr(S)}finally{e.f^=ir,re=t,le=r,_e=n,D=s,Re=i,ut(o),Se=a,tt=u}}function Bs(e,t){let r=t.reactions;if(r!==null){var n=Un.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&G)!==0&&(re===null||!re.includes(t))&&(ee(t,Ve),(t.f&ge)!==0&&(t.f^=ge,t.f&=~Ke),Ur(t),qt(t,0))}function qt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Bs(e,r[n])}function Mt(e){var t=e.f;if((t&Oe)===0){ee(e,Q);var r=N,n=qe;N=e,qe=!0;try{(t&ze)!==0?Is(e):an(e),on(e);var s=mn(e);e.teardown=typeof s=="function"?s:null,e.wv=vn;var i;tr&&bs&&(e.f&se)!==0&&e.deps}finally{qe=n,N=r}}}async function Ws(){await Promise.resolve(),ft()}function b(e){var t=e.f,r=(t&G)!==0;if(D!==null&&!Se){var n=N!==null&&(N.f&Oe)!==0;if(!n&&!Re?.includes(e)){var s=D.deps;if((D.f&ir)!==0)e.rv<Et&&(e.rv=Et,re===null&&s!==null&&s[le]===e?le++:re===null?re=[e]:re.includes(e)||re.push(e));else{(D.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[D]:i.includes(D)||i.push(D)}}}if(et){if(He.has(e))return He.get(e);if(r){var o=e,a=o.v;return((o.f&Q)===0&&o.reactions!==null||gn(o))&&(a=cr(o)),He.set(o,a),a}}else r&&!ve?.has(e)&&(o=e,St(o)&&Jr(o),qe&&Ft()&&(o.f&ge)===0&&pn(o));if(ve?.has(e))return ve.get(e);if((e.f&Fe)!==0)throw e.v;return e.v}function pn(e){if(e.deps!==null){e.f^=ge;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&G)!==0&&(t.f&ge)===0&&pn(t)}}function gn(e){if(e.v===K)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(He.has(t)||(t.f&G)!==0&&gn(t))return!0;return!1}function _r(e){var t=Se;try{return Se=!0,e()}finally{Se=t}}const Us=-7169;function ee(e,t){e.f=e.f&Us|t}const yn=new Set,mr=new Set;function Js(e,t,r,n={}){function s(i){if(n.capture||Tt.call(t,i),!i.cancelBubble)return Yt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?yt(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function rt(e,t,r,n,s){var i={capture:n,passive:s},o=Js(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&nn(()=>{t.removeEventListener(e,o,i)})}function Zs(e){for(var t=0;t<e.length;t++)yn.add(e[t]);for(var r of mr)r(e)}let $n=null;function Tt(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;$n=e;var o=0,a=$n===e&&e.__root;if(a){var u=s.indexOf(a);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var l=s.indexOf(t);if(l===-1)return;u<=l&&(o=u)}if(i=s[o]||e.target,i!==t){Vt(e,"currentTarget",{configurable:!0,get(){return i||r}});var _=D,p=N;X(null),be(null);try{for(var d,v=[];i!==null;){var S=i.assignedSlot||i.parentNode||i.host||null;try{var L=i["__"+n];L!=null&&(!i.disabled||e.target===i)&&L.call(i,e)}catch(Y){d?v.push(Y):d=Y}if(e.cancelBubble||S===t||S===null)break;i=S}if(d){for(let Y of v)queueMicrotask(()=>{throw Y});throw d}}finally{e.__root=t,delete e.currentTarget,X(_),be(p)}}}function Gs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function vt(e,t){var r=N;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Pe(e,t){var r=(t&Hn)!==0,n=(t&qn)!==0,s,i=!e.startsWith("<!>");return()=>{if(A)return vt(j,null),j;s===void 0&&(s=Gs(i?e:"<!>"+e),r||(s=dt(s)));var o=n||Qr?document.importNode(s,!0):s.cloneNode(!0);if(r){var a=dt(o),u=o.lastChild;vt(a,u)}else vt(o,o);return o}}function Ks(e=""){if(!A){var t=Ae(e+"");return vt(t,t),t}var r=j;return r.nodeType!==Ar&&(r.before(r=Ae()),ce(r)),vt(r,r),r}function $e(e,t){if(A){var r=N;((r.f&Nt)===0||r.nodes_end===null)&&(r.nodes_end=j),ar();return}e!==null&&e.before(t)}const Qs=["touchstart","touchmove"];function Xs(e){return Qs.includes(e)}function ei(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function wn(e,t){return xn(e,t)}function ti(e,t){vr(),t.intro=t.intro??!1;const r=t.target,n=A,s=j;try{for(var i=dt(r);i&&(i.nodeType!==at||i.data!==Mr);)i=ke(i);if(!i)throw st;xe(!0),ce(i);const o=xn(e,{...t,anchor:i});return xe(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==st&&console.warn("Failed to hydrate: ",o),t.recover===!1&&os(),vr(),zs(r),xe(!1),wn(e,t)}finally{xe(n),ce(s)}}const ht=new Map;function xn(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:o=!0}){vr();var a=new Set,u=p=>{for(var d=0;d<p.length;d++){var v=p[d];if(!a.has(v)){a.add(v);var S=Xs(v);t.addEventListener(v,Tt,{passive:S});var L=ht.get(v);L===void 0?(document.addEventListener(v,Tt,{passive:S}),ht.set(v,1)):ht.set(v,L+1)}}};u(Jn(yn)),mr.add(u);var l=void 0,_=Ls(()=>{var p=r??t.appendChild(Ae());return ys(p,{pending:()=>{}},d=>{if(i){Pr({});var v=de;v.c=i}if(s&&(n.$$events=s),A&&vt(d,null),l=e(d,n)||{},A&&(N.nodes_end=j,j===null||j.nodeType!==at||j.data!==Tr))throw Ct(),st;i&&Ir()}),()=>{for(var d of a){t.removeEventListener(d,Tt);var v=ht.get(d);--v===0?(document.removeEventListener(d,Tt),ht.delete(d)):ht.set(d,v)}mr.delete(u),p!==r&&p.parentNode?.removeChild(p)}});return pr.set(l,_),l}let pr=new WeakMap;function ri(e,t){const r=pr.get(e);return r?(pr.delete(e),r(t)):Promise.resolve()}class ni{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#u=!0;constructor(t,r=!0){this.anchor=t,this.#u=r}#i=()=>{var t=P;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Fs(n),this.#n.delete(r);else{var s=this.#r.get(r);s&&(this.#e.set(r,s.effect),this.#r.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,o]of this.#t){if(this.#t.delete(i),i===t)break;const a=this.#r.get(o);a&&(ae(a.effect),this.#r.delete(o))}for(const[i,o]of this.#e){if(i===r||this.#n.has(i))continue;const a=()=>{if(Array.from(this.#t.values()).includes(i)){var l=document.createDocumentFragment();cn(o,l),l.append(Ae()),this.#r.set(i,{effect:o,fragment:l})}else ae(o);this.#n.delete(i),this.#e.delete(i)};this.#u||!n?(this.#n.add(i),kt(o,a,!1)):a()}}};#s=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,s]of this.#r)r.includes(n)||(ae(s.effect),this.#r.delete(n))};ensure(t,r){var n=P,s=Ds();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(s){var i=document.createDocumentFragment(),o=Ae();i.append(o),this.#r.set(t,{effect:Le(()=>r(o)),fragment:i})}else this.#e.set(t,Le(()=>r(this.anchor)));if(this.#t.set(n,t),s){for(const[a,u]of this.#e)a===t?n.skipped_effects.delete(u):n.skipped_effects.add(u);for(const[a,u]of this.#r)a===t?n.skipped_effects.delete(u.effect):n.skipped_effects.add(u.effect);n.oncommit(this.#i),n.ondiscard(this.#s)}else A&&(this.anchor=j),this.#i()}}function bt(e,t,r=!1){A&&ar();var n=new ni(e),s=r?it:0;function i(o,a){if(A){const l=vs(e)===er;if(o===l){var u=Cr();ce(u),n.anchor=u,xe(!1),n.ensure(o,a),xe(!0);return}}n.ensure(o,a)}br(()=>{var o=!1;t((a,u=!0)=>{o=!0,i(u,a)}),o||i(!1,null)},s)}function si(e,t){let r=null,n=A;var s;if(A){r=j;for(var i=dt(document.head);i!==null&&(i.nodeType!==at||i.data!==e);)i=ke(i);if(i===null)xe(!1);else{var o=ke(i);i.remove(),ce(o)}}A||(s=document.head.appendChild(Ae()));try{br(()=>t(s),sr)}finally{n&&(xe(!0),ce(r))}}function ii(e,t){Rs(()=>{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 oi(e,t,r){var n=""+e;return n}function ai(e,t){return e==null?null:String(e)}function kn(e,t,r,n,s,i){var o=e.__className;if(A||o!==r||o===void 0){var a=oi(r);(!A||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return i}function En(e,t,r,n){var s=e.__style;if(A||s!==t){var i=ai(t);(!A||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const ui=Symbol("is custom element"),li=Symbol("is html");function _t(e){if(A){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;Bt(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var s=e.checked;Bt(e,"checked",null),e.checked=s}}};e.__on_r=r,yt(r),rn()}}function Bt(e,t,r,n){var s=fi(e);A&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[es]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Sn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Be(e,t,r){var n=D,s=N;let i=A;A&&xe(!1),X(null),be(null);try{t!=="style"&&(gr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Sn(e).includes(t):r&&typeof r=="object")?e[t]=r:Bt(e,t,r==null?r:String(r))}finally{X(n),be(s),i&&xe(!0)}}function fi(e){return e.__attributes??={[ui]:e.nodeName.includes("-"),[li]:e.namespaceURI===Bn}}var gr=new Map;function Sn(e){var t=e.getAttribute("is")||e.nodeName,r=gr.get(t);if(r)return r;gr.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Zn(s);for(var o in n)n[o].set&&r.push(o);s=zr(s)}return r}function mt(e,t,r=t){var n=new WeakSet;Vs(e,"input",async s=>{var i=s?e.defaultValue:e.value;if(i=yr(e)?$r(i):i,r(i),P!==null&&n.add(P),await Ws(),i!==(i=t())){var o=e.selectionStart,a=e.selectionEnd,u=e.value.length;if(e.value=i??"",a!==null){var l=e.value.length;o===a&&a===u&&l>u?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(a,l))}}}),(A&&e.defaultValue!==e.value||_r(t)==null&&e.value)&&(r(yr(e)?$r(e.value):e.value),P!==null&&n.add(P)),hr(()=>{var s=t();if(e===document.activeElement){var i=Rt??P;if(n.has(i))return}yr(e)&&s===$r(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function yr(e){var t=e.type;return t==="number"||t==="range"}function $r(e){return e===""?null:+e}let Wt=!1;function ci(e){var t=Wt;try{return Wt=!1,[e(),Wt]}finally{Wt=t}}function Ut(e,t,r,n){var s=(r&Yn)!==0,i=(r&Fn)!==0,o=n,a=!0,u=()=>(a&&(a=!1,o=i?_r(n):n),o),l;if(s){var _=At in e||Nr in e;l=Ze(e,t)?.set??(_&&t in e?R=>e[t]=R:void 0)}var p,d=!1;s?[p,d]=ci(()=>e[t]):p=e[t],p===void 0&&n!==void 0&&(p=u(),l&&(as(),l(p)));var v;if(v=()=>{var R=e[t];return R===void 0?u():(a=!0,R)},(r&jn)===0)return v;if(l){var S=e.$$legacy;return(function(R,W){return arguments.length>0?((!W||S||d)&&l(W?v():R),R):v()})}var L=!1,Y=((r&In)!==0?fr:Es)(()=>(L=!1,v()));s&&b(Y);var V=N;return(function(R,W){if(arguments.length>0){const ue=W?b(Y):s?ct(R):R;return z(Y,ue),L=!0,o!==void 0&&(o=ue),R}return et&&L||(V.f&Oe)!==0?Y.v:b(Y)})}function di(e){return new vi(e)}class vi{#t;#e;constructor(t){var r=new Map,n=(i,o)=>{var a=Ms(o,!1,!1);return r.set(i,a),a};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return b(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===Nr?!0:(b(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return z(r.get(o)??n(o,a),a),Reflect.set(i,o,a)}});this.#e=(t.hydrate?ti:wn)(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)&&ft(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Vt(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{ri(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 Mn;typeof HTMLElement=="function"&&(Mn=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),$e(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=hi(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]=Jt(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=di({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Cs(()=>{hr(()=>{this.$$r=!0;for(const n of Dt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=Jt(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]=Jt(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 Dt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Jt(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 hi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function bi(e,t,r,n,s,i){let o=class extends Mn{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Dt(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Dt(t).forEach(a=>{Vt(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){u=Jt(a,u,t),this.$$d[a]=u;var l=this.$$c;if(l){var _=Ze(l,a)?.get;_?l[a]=u:l.$set({[a]:u})}}})}),n.forEach(a=>{Vt(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}function Tn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zt={exports:{}},_i=Zt.exports,zn;function mi(){return zn||(zn=1,(function(e,t){(function(r,n){e.exports=n()})(_i,(function(){var r=1e3,n=6e4,s=36e5,i="millisecond",o="second",a="minute",u="hour",l="day",_="week",p="month",d="quarter",v="year",S="date",L="Invalid Date",Y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,V=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var h=["th","st","nd","rd"],f=$%100;return"["+$+(h[(f-20)%10]||h[f]||h[0])+"]"}},W=function($,h,f){var y=String($);return!y||y.length>=h?$:""+Array(h+1-y.length).join(f)+$},ue={s:W,z:function($){var h=-$.utcOffset(),f=Math.abs(h),y=Math.floor(f/60),c=f%60;return(h<=0?"+":"-")+W(y,2,"0")+":"+W(c,2,"0")},m:function $(h,f){if(h.date()<f.date())return-$(f,h);var y=12*(f.year()-h.year())+(f.month()-h.month()),c=h.clone().add(y,p),E=f-c<0,k=h.clone().add(y+(E?-1:1),p);return+(-(y+(f-c)/(E?c-k:k-c))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:p,y:v,w:_,d:l,D:S,h:u,m:a,s:o,ms:i,Q:d}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},fe="en",M={};M[fe]=R;var w="$isDayjsObject",m=function($){return $ instanceof q||!(!$||!$[w])},O=function $(h,f,y){var c;if(!h)return fe;if(typeof h=="string"){var E=h.toLowerCase();M[E]&&(c=E),f&&(M[E]=f,c=E);var k=h.split("-");if(!c&&k.length>1)return $(k[0])}else{var C=h.name;M[C]=h,c=C}return!y&&c&&(fe=c),c||!y&&fe},T=function($,h){if(m($))return $.clone();var f=typeof h=="object"?h:{};return f.date=$,f.args=arguments,new q(f)},x=ue;x.l=O,x.i=m,x.w=function($,h){return T($,{locale:h.$L,utc:h.$u,x:h.$x,$offset:h.$offset})};var q=(function(){function $(f){this.$L=O(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[w]=!0}var h=$.prototype;return h.parse=function(f){this.$d=(function(y){var c=y.date,E=y.utc;if(c===null)return new Date(NaN);if(x.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var k=c.match(Y);if(k){var C=k[2]-1||0,F=(k[7]||"0").substring(0,3);return E?new Date(Date.UTC(k[1],C,k[3]||1,k[4]||0,k[5]||0,k[6]||0,F)):new Date(k[1],C,k[3]||1,k[4]||0,k[5]||0,k[6]||0,F)}}return new Date(c)})(f),this.init()},h.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},h.$utils=function(){return x},h.isValid=function(){return this.$d.toString()!==L},h.isSame=function(f,y){var c=T(f);return this.startOf(y)<=c&&c<=this.endOf(y)},h.isAfter=function(f,y){return T(f)<this.startOf(y)},h.isBefore=function(f,y){return this.endOf(y)<T(f)},h.$g=function(f,y,c){return x.u(f)?this[y]:this.set(c,f)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(f,y){var c=this,E=!!x.u(y)||y,k=x.p(f),C=function(me,U){var pe=x.w(c.$u?Date.UTC(c.$y,U,me):new Date(c.$y,U,me),c);return E?pe:pe.endOf(l)},F=function(me,U){return x.w(c.toDate()[me].apply(c.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(U)),c)},B=this.$W,Z=this.$M,ne=this.$D,Me="set"+(this.$u?"UTC":"");switch(k){case v:return E?C(1,0):C(31,11);case p:return E?C(1,Z):C(0,Z+1);case _:var Te=this.$locale().weekStart||0,We=(B<Te?B+7:B)-Te;return C(E?ne-We:ne+(6-We),Z);case l:case S:return F(Me+"Hours",0);case u:return F(Me+"Minutes",1);case a:return F(Me+"Seconds",2);case o:return F(Me+"Milliseconds",3);default:return this.clone()}},h.endOf=function(f){return this.startOf(f,!1)},h.$set=function(f,y){var c,E=x.p(f),k="set"+(this.$u?"UTC":""),C=(c={},c[l]=k+"Date",c[S]=k+"Date",c[p]=k+"Month",c[v]=k+"FullYear",c[u]=k+"Hours",c[a]=k+"Minutes",c[o]=k+"Seconds",c[i]=k+"Milliseconds",c)[E],F=E===l?this.$D+(y-this.$W):y;if(E===p||E===v){var B=this.clone().set(S,1);B.$d[C](F),B.init(),this.$d=B.set(S,Math.min(this.$D,B.daysInMonth())).$d}else C&&this.$d[C](F);return this.init(),this},h.set=function(f,y){return this.clone().$set(f,y)},h.get=function(f){return this[x.p(f)]()},h.add=function(f,y){var c,E=this;f=Number(f);var k=x.p(y),C=function(Z){var ne=T(E);return x.w(ne.date(ne.date()+Math.round(Z*f)),E)};if(k===p)return this.set(p,this.$M+f);if(k===v)return this.set(v,this.$y+f);if(k===l)return C(1);if(k===_)return C(7);var F=(c={},c[a]=n,c[u]=s,c[o]=r,c)[k]||1,B=this.$d.getTime()+f*F;return x.w(B,this)},h.subtract=function(f,y){return this.add(-1*f,y)},h.format=function(f){var y=this,c=this.$locale();if(!this.isValid())return c.invalidDate||L;var E=f||"YYYY-MM-DDTHH:mm:ssZ",k=x.z(this),C=this.$H,F=this.$m,B=this.$M,Z=c.weekdays,ne=c.months,Me=c.meridiem,Te=function(U,pe,Ue,Ie){return U&&(U[pe]||U(y,E))||Ue[pe].slice(0,Ie)},We=function(U){return x.s(C%12||12,U,"0")},me=Me||function(U,pe,Ue){var Ie=U<12?"AM":"PM";return Ue?Ie.toLowerCase():Ie};return E.replace(V,(function(U,pe){return pe||(function(Ue){switch(Ue){case"YY":return String(y.$y).slice(-2);case"YYYY":return x.s(y.$y,4,"0");case"M":return B+1;case"MM":return x.s(B+1,2,"0");case"MMM":return Te(c.monthsShort,B,ne,3);case"MMMM":return Te(ne,B);case"D":return y.$D;case"DD":return x.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return Te(c.weekdaysMin,y.$W,Z,2);case"ddd":return Te(c.weekdaysShort,y.$W,Z,3);case"dddd":return Z[y.$W];case"H":return String(C);case"HH":return x.s(C,2,"0");case"h":return We(1);case"hh":return We(2);case"a":return me(C,F,!0);case"A":return me(C,F,!1);case"m":return String(F);case"mm":return x.s(F,2,"0");case"s":return String(y.$s);case"ss":return x.s(y.$s,2,"0");case"SSS":return x.s(y.$ms,3,"0");case"Z":return k}return null})(U)||k.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(f,y,c){var E,k=this,C=x.p(y),F=T(f),B=(F.utcOffset()-this.utcOffset())*n,Z=this-F,ne=function(){return x.m(k,F)};switch(C){case v:E=ne()/12;break;case p:E=ne();break;case d:E=ne()/3;break;case _:E=(Z-B)/6048e5;break;case l:E=(Z-B)/864e5;break;case u:E=Z/s;break;case a:E=Z/n;break;case o:E=Z/r;break;default:E=Z}return c?E:x.a(E)},h.daysInMonth=function(){return this.endOf(p).$D},h.$locale=function(){return M[this.$L]},h.locale=function(f,y){if(!f)return this.$L;var c=this.clone(),E=O(f,y,!0);return E&&(c.$L=E),c},h.clone=function(){return x.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},$})(),J=q.prototype;return T.prototype=J,[["$ms",i],["$s",o],["$m",a],["$H",u],["$W",l],["$M",p],["$y",v],["$D",S]].forEach((function($){J[$[1]]=function(h){return this.$g(h,$[0],$[1])}})),T.extend=function($,h){return $.$i||($(h,q,T),$.$i=!0),T},T.locale=O,T.isDayjs=m,T.unix=function($){return T(1e3*$)},T.en=M[fe],T.Ls=M,T.p={},T}))})(Zt)),Zt.exports}var pi=mi();const pt=Tn(pi),Dn={version:"0.66.0"};var Gt={exports:{}},gi=Gt.exports,Vn;function yi(){return Vn||(Vn=1,(function(e,t){(function(r,n){e.exports=n()})(gi,(function(){var r,n,s=1e3,i=6e4,o=36e5,a=864e5,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l=31536e6,_=2628e6,p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,d={years:l,months:_,days:a,hours:o,minutes:i,seconds:s,milliseconds:1,weeks:6048e5},v=function(M){return M instanceof ue},S=function(M,w,m){return new ue(M,m,w.$l)},L=function(M){return n.p(M)+"s"},Y=function(M){return M<0},V=function(M){return Y(M)?Math.ceil(M):Math.floor(M)},R=function(M){return Math.abs(M)},W=function(M,w){return M?Y(M)?{negative:!0,format:""+R(M)+w}:{negative:!1,format:""+M+w}:{negative:!1,format:""}},ue=(function(){function M(m,O,T){var x=this;if(this.$d={},this.$l=T,m===void 0&&(this.$ms=0,this.parseFromMilliseconds()),O)return S(m*d[L(O)],this);if(typeof m=="number")return this.$ms=m,this.parseFromMilliseconds(),this;if(typeof m=="object")return Object.keys(m).forEach((function($){x.$d[L($)]=m[$]})),this.calMilliseconds(),this;if(typeof m=="string"){var q=m.match(p);if(q){var J=q.slice(2).map((function($){return $!=null?Number($):0}));return this.$d.years=J[0],this.$d.months=J[1],this.$d.weeks=J[2],this.$d.days=J[3],this.$d.hours=J[4],this.$d.minutes=J[5],this.$d.seconds=J[6],this.calMilliseconds(),this}}return this}var w=M.prototype;return w.calMilliseconds=function(){var m=this;this.$ms=Object.keys(this.$d).reduce((function(O,T){return O+(m.$d[T]||0)*d[T]}),0)},w.parseFromMilliseconds=function(){var m=this.$ms;this.$d.years=V(m/l),m%=l,this.$d.months=V(m/_),m%=_,this.$d.days=V(m/a),m%=a,this.$d.hours=V(m/o),m%=o,this.$d.minutes=V(m/i),m%=i,this.$d.seconds=V(m/s),m%=s,this.$d.milliseconds=m},w.toISOString=function(){var m=W(this.$d.years,"Y"),O=W(this.$d.months,"M"),T=+this.$d.days||0;this.$d.weeks&&(T+=7*this.$d.weeks);var x=W(T,"D"),q=W(this.$d.hours,"H"),J=W(this.$d.minutes,"M"),$=this.$d.seconds||0;this.$d.milliseconds&&($+=this.$d.milliseconds/1e3,$=Math.round(1e3*$)/1e3);var h=W($,"S"),f=m.negative||O.negative||x.negative||q.negative||J.negative||h.negative,y=q.format||J.format||h.format?"T":"",c=(f?"-":"")+"P"+m.format+O.format+x.format+y+q.format+J.format+h.format;return c==="P"||c==="-P"?"P0D":c},w.toJSON=function(){return this.toISOString()},w.format=function(m){var O=m||"YYYY-MM-DDTHH:mm:ss",T={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return O.replace(u,(function(x,q){return q||String(T[x])}))},w.as=function(m){return this.$ms/d[L(m)]},w.get=function(m){var O=this.$ms,T=L(m);return T==="milliseconds"?O%=1e3:O=T==="weeks"?V(O/d[T]):this.$d[T],O||0},w.add=function(m,O,T){var x;return x=O?m*d[L(O)]:v(m)?m.$ms:S(m,this).$ms,S(this.$ms+x*(T?-1:1),this)},w.subtract=function(m,O){return this.add(m,O,!0)},w.locale=function(m){var O=this.clone();return O.$l=m,O},w.clone=function(){return S(this.$ms,this)},w.humanize=function(m){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!m)},w.valueOf=function(){return this.asMilliseconds()},w.milliseconds=function(){return this.get("milliseconds")},w.asMilliseconds=function(){return this.as("milliseconds")},w.seconds=function(){return this.get("seconds")},w.asSeconds=function(){return this.as("seconds")},w.minutes=function(){return this.get("minutes")},w.asMinutes=function(){return this.as("minutes")},w.hours=function(){return this.get("hours")},w.asHours=function(){return this.as("hours")},w.days=function(){return this.get("days")},w.asDays=function(){return this.as("days")},w.weeks=function(){return this.get("weeks")},w.asWeeks=function(){return this.as("weeks")},w.months=function(){return this.get("months")},w.asMonths=function(){return this.as("months")},w.years=function(){return this.get("years")},w.asYears=function(){return this.as("years")},M})(),fe=function(M,w,m){return M.add(w.years()*m,"y").add(w.months()*m,"M").add(w.days()*m,"d").add(w.hours()*m,"h").add(w.minutes()*m,"m").add(w.seconds()*m,"s").add(w.milliseconds()*m,"ms")};return function(M,w,m){r=m,n=m().$utils(),m.duration=function(x,q){var J=m.locale();return S(x,{$l:J},q)},m.isDuration=v;var O=w.prototype.add,T=w.prototype.subtract;w.prototype.add=function(x,q){return v(x)?fe(this,x,1):O.bind(this)(x,q)},w.prototype.subtract=function(x,q){return v(x)?fe(this,x,-1):T.bind(this)(x,q)}}}))})(Gt)),Gt.exports}var $i=yi();const wi=Tn($i);var nt={},On;function xi(){if(On)return nt;On=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.LanguageTranslator=void 0,nt.getChildStyleToPass=e,nt.addComponent=t;function e(n,s){var i,o,a="";try{if(n&&s?.length&&(!((i=Object.keys(n))===null||i===void 0)&&i.length)&&(!((o=s?.filter(function(d){return Object.keys(n).includes(d.name)}))===null||o===void 0)&&o.length))for(var u=function(d){var v=s?.filter(function(S){return S.name===d&&S.defaultValue!==n[d]});v&&(a+="".concat(d,":").concat(n[d],";"))},l=0,_=Object.keys(n);l<_.length;l++){var p=_[l];u(p)}}catch(d){console.error("error getting child style to pass",d)}finally{return a}}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 o=n?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var a=document.createElement("script");if(a.id=i+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(o),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var u=i.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(i.replace(u+"-",""),"/").concat(o)}document.head.appendChild(a)}catch(l){console.warn(l)}}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,o){return n.formatDate(s,i,o||this.lang)},n.getDefaultLang=function(){var s,i,o,a="en";return navigator?.languages&&(!((o=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||o===void 0)&&o.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},n.getDictionaryWord=function(s,i,o){var a;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(o&&(!((a=i[o])===null||a===void 0)&&a[s]))return i[o][s];var u="",l=n.getDefaultLang();if(!o||l!==o){var _=i?.[l];_?.[s]&&(u=_[s])}return u},n.formatDate=function(s,i,o){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(o||n.getDefaultLang(),i);return a.format(s)},n})();return nt.LanguageTranslator=r,nt}var Nn=xi(),ki=Pe('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-10svzuv"/>'),Ei=Pe('<i class="bi bi-play-fill svelte-10svzuv"></i>'),Si=Pe('<i class="bi bi-pause-fill svelte-10svzuv"></i>'),Mi=Pe('<button class="btn btn-outline-dark svelte-10svzuv"><!></button>'),Ti=Pe('<div style="width: 100%;margin-bottom:15px" class="svelte-10svzuv"><div style="display:inline-block; width:50px;" class="svelte-10svzuv"><!></div> <div style="display:inline-block;width:calc(100% - 60px);position:relative" class="svelte-10svzuv"><hb-range-slider></hb-range-slider></div></div>',2),zi=Pe("<hb-form></hb-form>",2),Di=Pe('<button class="btn btn-sm btn-primary svelte-10svzuv">send</button>'),Vi=Pe('<button class="btn btn-sm btn-primary svelte-10svzuv" disabled>send</button>'),Oi=Pe('<div id="card" class="card h-100 svelte-10svzuv"><div class="ratio ratio-16x9 svelte-10svzuv" style="background-color: black;"><video id="video" class="ratio ratio-16x9 svelte-10svzuv"><source type="video/mp4" class="svelte-10svzuv"/> <track kind="captions" src="" srclang="en" label="English" class="svelte-10svzuv"/> Your browser does not support the video tag.</video></div> <div class="card-body svelte-10svzuv"><!> <!> <div id="controls" class="svelte-10svzuv"><div style="flex-grow: 2" class="svelte-10svzuv"><button class="btn btn-sm btn-secondary svelte-10svzuv">▼</button> <button class="btn btn-sm btn-secondary svelte-10svzuv">▲</button> <input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>h <input class="form-control form-custom-control-numbers svelte-10svzuv" type="number"/>m <input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>s</div> <div style="flex-grow: 2;text-align:center" class="svelte-10svzuv"></div> <div style="flex-grow: 2;text-align:right" class="svelte-10svzuv"><input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>h <input class="form-control form-custom-control-numbers svelte-10svzuv" type="number"/>m <input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>s <button class="btn btn-sm btn-secondary svelte-10svzuv">▲</button> <button class="btn btn-sm btn-secondary svelte-10svzuv">▼</button></div></div></div> <div class="card-footer svelte-10svzuv"><span style="float:left;height:30px;line-height:30px" class="svelte-10svzuv"><!></span> <span style="float:right;height:30px;line-height:30px" class="svelte-10svzuv"><!></span></div></div>',2);const Ni={hash:"svelte-10svzuv",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(zr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Xn=1,Qn=4,es=8,ts=16,rs=1,ns=2,Dr="[",Or="[!",Vr="[?",Nr="]",lt={},Q=Symbol(),Ar="http://www.w3.org/1999/xhtml",ss=!1;var is=Array.isArray,os=Array.prototype.indexOf,ut=Array.prototype.includes,as=Array.from,Nt=Object.keys,At=Object.defineProperty,tt=Object.getOwnPropertyDescriptor,ls=Object.getOwnPropertyDescriptors,us=Object.prototype,fs=Array.prototype,Cr=Object.getPrototypeOf,Rr=Object.isExtensible;const cs=()=>{};function ds(e){for(var t=0;t<e.length;t++)e[t]()}function Lr(){var e,t,r=new Promise((s,n)=>{e=s,t=n});return{promise:r,resolve:e,reject:t}}const Z=2,ft=4,Ct=8,Pr=1<<24,Ye=16,ke=32,Fe=64,Qt=128,de=512,J=1024,ee=2048,Ee=4096,Se=8192,ye=16384,He=32768,Ir=1<<25,ct=65536,jr=1<<17,Yr=1<<18,qe=1<<19,vs=1<<20,rt=65536,er=1<<21,tr=1<<22,We=1<<23,Rt=Symbol("$state"),Fr=Symbol("legacy props"),hs=Symbol(""),Ve=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},bs=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),rr=3,kt=8;function ms(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function _s(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ps(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function gs(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ys(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ws(){throw new Error("https://svelte.dev/e/hydration_failed")}function $s(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function xs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ks(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Es(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ss(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Lt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ts(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let R=!1;function Te(e){R=e}let Y;function ve(e){if(e===null)throw Lt(),lt;return Y=e}function nr(){return ve(Me(Y))}function ne(e){if(R){if(Me(Y)!==null)throw Lt(),lt;Y=e}}function sr(e=1){if(R){for(var t=e,r=Y;t--;)r=Me(r);Y=r}}function Hr(e=!0){for(var t=0,r=Y;;){if(r.nodeType===kt){var s=r.data;if(s===Nr){if(t===0)return r;t-=1}else(s===Dr||s===Or||s[0]==="["&&!isNaN(Number(s.slice(1))))&&(t+=1)}var n=Me(r);e&&r.remove(),r=n}}function Ms(e){if(!e||e.nodeType!==kt)throw Lt(),lt;return e.data}function qr(e){return e===this.v}function zs(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Wr(e){return!zs(e,this.v)}let Ds=!1,he=null;function dt(e){he=e}function Br(e,t=!1,r){he={p:he,i:!1,c:null,e:null,s:e,x:null,r:V,l:null}}function Ur(e){var t=he,r=t.e;if(r!==null){t.e=null;for(var s of r)gn(s)}return e!==void 0&&(t.x=e),t.i=!0,he=t.p,e??{}}function Jr(){return!0}let nt=[];function Gr(){var e=nt;nt=[],ds(e)}function Be(e){if(nt.length===0&&!Et){var t=nt;queueMicrotask(()=>{t===nt&&Gr()})}nt.push(e)}function Os(){for(;nt.length>0;)Gr()}function Zr(e){var t=V;if(t===null)return O.f|=We,e;if((t.f&He)===0&&(t.f&ft)===0)throw e;Ue(e,t)}function Ue(e,t){for(;t!==null;){if((t.f&Qt)!==0){if((t.f&He)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const Vs=-7169;function U(e,t){e.f=e.f&Vs|t}function ir(e){(e.f&de)!==0||e.deps===null?U(e,J):U(e,Ee)}function Kr(e){if(e!==null)for(const t of e)(t.f&Z)===0||(t.f&rt)===0||(t.f^=rt,Kr(t.deps))}function Xr(e,t,r){(e.f&ee)!==0?t.add(e):(e.f&Ee)!==0&&r.add(e),Kr(e.deps),U(e,J)}let Pt=!1;function Ns(e){var t=Pt;try{return Pt=!1,[e(),Pt]}finally{Pt=t}}const Je=new Set;let P=null,we=null,or=null,Et=!1,ar=!1,vt=null,It=null;var Qr=0;let As=1;class Ne{id=As++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#s=new Map;#i=null;#n=[];#o=new Set;#a=new Set;#l=new Map;is_fork=!1;#c=!1;#u=new Set;#d(){return this.is_fork||this.#s.size>0}#h(){for(const s of this.#u)for(const n of s.#s.keys()){for(var t=!1,r=n;r.parent!==null;){if(this.#l.has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#l.get(t);if(r){this.#l.delete(t);for(var s of r.d)U(s,ee),this.schedule(s);for(s of r.m)U(s,Ee),this.schedule(s)}}#v(){if(Qr++>1e3&&(Je.delete(this),Cs()),!this.#d()){for(const o of this.#o)this.#a.delete(o),U(o,ee),this.schedule(o);for(const o of this.#a)U(o,Ee),this.schedule(o)}const t=this.#n;this.#n=[],this.apply();var r=vt=[],s=[],n=It=[];for(const o of t)try{this.#f(o,r,s)}catch(u){throw sn(o),u}if(P=null,n.length>0){var i=Ne.ensure();for(const o of n)i.schedule(o)}if(vt=null,It=null,this.#d()||this.#h()){this.#b(s),this.#b(r);for(const[o,u]of this.#l)nn(o,u)}else{this.#t.size===0&&Je.delete(this),this.#o.clear(),this.#a.clear();for(const o of this.#e)o(this);this.#e.clear(),en(s),en(r),this.#i?.resolve()}var a=P;if(this.#n.length>0){const o=a??=this;o.#n.push(...this.#n.filter(u=>!o.#n.includes(u)))}a!==null&&(Je.add(a),a.#v()),Je.has(this)||this.#m()}#f(t,r,s){t.f^=J;for(var n=t.first;n!==null;){var i=n.f,a=(i&(ke|Fe))!==0,o=a&&(i&J)!==0,u=o||(i&Se)!==0||this.#l.has(n);if(!u&&n.fn!==null){a?n.f^=J:(i&ft)!==0?r.push(n):zt(n)&&((i&Ye)!==0&&this.#a.add(n),_t(n));var l=n.first;if(l!==null){n=l;continue}}for(;n!==null;){var f=n.next;if(f!==null){n=f;break}n=n.parent}}}#b(t){for(var r=0;r<t.length;r+=1)Xr(t[r],this.#o,this.#a)}capture(t,r,s=!1){r!==Q&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&We)===0&&(this.current.set(t,[t.v,s]),we?.set(t,t.v))}activate(){P=this}deactivate(){P=null,we=null}flush(){try{ar=!0,P=this,this.#v()}finally{Qr=0,or=null,vt=null,It=null,ar=!1,P=null,we=null,Ge.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),Je.delete(this)}#m(){for(const l of Je){var t=l.id<this.id,r=[];for(const[f,[m,c]]of this.current){if(l.current.has(f)){var s=l.current.get(f)[0];if(t&&m!==s)l.current.set(f,[m,c]);else continue}r.push(f)}var n=[...l.current.keys()].filter(f=>!this.current.has(f));if(n.length===0)t&&l.discard();else if(r.length>0){l.activate();var i=new Set,a=new Map;for(var o of r)tn(o,n,i,a);if(l.#n.length>0){l.apply();for(var u of l.#n)l.#f(u,[],[]);l.#n=[]}l.deactivate()}}for(const l of Je)l.#u.has(this)&&(l.#u.delete(this),l.#u.size===0&&!l.#d()&&(l.activate(),l.#v()))}increment(t,r){let s=this.#t.get(r)??0;if(this.#t.set(r,s+1),t){let n=this.#s.get(r)??0;this.#s.set(r,n+1)}}decrement(t,r,s){let n=this.#t.get(r)??0;if(n===1?this.#t.delete(r):this.#t.set(r,n-1),t){let i=this.#s.get(r)??0;i===1?this.#s.delete(r):this.#s.set(r,i-1)}this.#c||s||(this.#c=!0,Be(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,r){for(const s of t)this.#o.add(s);for(const s of r)this.#a.add(s);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#i??=Lr()).promise}static ensure(){if(P===null){const t=P=new Ne;ar||(Je.add(P),Et||Be(()=>{P===t&&t.flush()}))}return P}apply(){{we=null;return}}schedule(t){if(or=t,t.b?.is_pending&&(t.f&(ft|Ct|Pr))!==0&&(t.f&He)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var s=r.f;if(vt!==null&&r===V&&(O===null||(O.f&Z)===0))return;if((s&(Fe|ke))!==0){if((s&J)===0)return;r.f^=J}}this.#n.push(r)}}function ht(e){var t=Et;Et=!0;try{for(var r;;){if(Os(),P===null)return r;P.flush()}}finally{Et=t}}function Cs(){try{ys()}catch(e){Ue(e,or)}}let Ae=null;function en(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var s=e[r++];if((s.f&(ye|Se))===0&&zt(s)&&(Ae=new Set,_t(s),s.deps===null&&s.first===null&&s.nodes===null&&s.teardown===null&&s.ac===null&&wn(s),Ae?.size>0)){Ge.clear();for(const n of Ae){if((n.f&(ye|Se))!==0)continue;const i=[n];let a=n.parent;for(;a!==null;)Ae.has(a)&&(Ae.delete(a),i.push(a)),a=a.parent;for(let o=i.length-1;o>=0;o--){const u=i[o];(u.f&(ye|Se))===0&&_t(u)}}Ae.clear()}}Ae=null}}function tn(e,t,r,s){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const n of e.reactions){const i=n.f;(i&Z)!==0?tn(n,t,r,s):(i&(tr|Ye))!==0&&(i&ee)===0&&rn(n,t,s)&&(U(n,ee),lr(n))}}function rn(e,t,r){const s=r.get(e);if(s!==void 0)return s;if(e.deps!==null)for(const n of e.deps){if(ut.call(t,n))return!0;if((n.f&Z)!==0&&rn(n,t,r))return r.set(n,!0),!0}return r.set(e,!1),!1}function lr(e){P.schedule(e)}function nn(e,t){if(!((e.f&ke)!==0&&(e.f&J)!==0)){(e.f&ee)!==0?t.d.push(e):(e.f&Ee)!==0&&t.m.push(e),U(e,J);for(var r=e.first;r!==null;)nn(r,t),r=r.next}}function sn(e){U(e,J);for(var t=e.first;t!==null;)sn(t),t=t.next}function Rs(e){let t=0,r=St(0),s;return()=>{hr()&&(b(r),br(()=>(t===0&&(s=pr(()=>e(()=>Tt(r)))),t+=1,()=>{Be(()=>{t-=1,t===0&&(s?.(),s=void 0,Tt(r))})})))}}var Ls=ct|qe;function Ps(e,t,r,s){new Is(e,t,r,s)}class Is{parent;is_pending=!1;transform_error;#e;#r=R?Y:null;#t;#s;#i;#n=null;#o=null;#a=null;#l=null;#c=0;#u=0;#d=!1;#h=new Set;#v=new Set;#f=null;#b=Rs(()=>(this.#f=St(this.#c),()=>{this.#f=null}));constructor(t,r,s,n){this.#e=t,this.#t=r,this.#s=i=>{var a=V;a.b=this,a.f|=Qt,s(i)},this.parent=V.b,this.transform_error=n??this.parent?.transform_error??(i=>i),this.#i=mr(()=>{if(R){const i=this.#r;nr();const a=i.data===Or;if(i.data.startsWith(Vr)){const u=JSON.parse(i.data.slice(Vr.length));this.#w(u)}else a?this.#$():this.#m()}else this.#g()},Ls),R&&(this.#e=Y)}#m(){try{this.#n=Le(()=>this.#s(this.#e))}catch(t){this.error(t)}}#w(t){const r=this.#t.failed;r&&(this.#a=Le(()=>{r(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=Le(()=>t(this.#e)),Be(()=>{var r=this.#l=document.createDocumentFragment(),s=Ce();r.append(s),this.#n=this.#p(()=>Le(()=>this.#s(s))),this.#u===0&&(this.#e.before(r),this.#l=null,Mt(this.#o,()=>{this.#o=null}),this.#_(P))}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#n=Le(()=>{this.#s(this.#e)}),this.#u>0){var t=this.#l=document.createDocumentFragment();kn(this.#n,t);const r=this.#t.pending;this.#o=Le(()=>r(this.#e))}else this.#_(P)}catch(r){this.error(r)}}#_(t){this.is_pending=!1,t.transfer_effects(this.#h,this.#v)}defer_effect(t){Xr(t,this.#h,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#p(t){var r=V,s=O,n=he;be(this.#i),oe(this.#i),dt(this.#i.ctx);try{return Ne.ensure(),t()}catch(i){return Zr(i),null}finally{be(r),oe(s),dt(n)}}#y(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,r);return}this.#u+=t,this.#u===0&&(this.#_(r),this.#o&&Mt(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t,r){this.#y(t,r),this.#c+=t,!(!this.#f||this.#d)&&(this.#d=!0,Be(()=>{this.#d=!1,this.#f&&Yt(this.#f,this.#c)}))}get_effect_pending(){return this.#b(),b(this.#f)}error(t){var r=this.#t.onerror;let s=this.#t.failed;if(!r&&!s)throw t;this.#n&&(ie(this.#n),this.#n=null),this.#o&&(ie(this.#o),this.#o=null),this.#a&&(ie(this.#a),this.#a=null),R&&(ve(this.#r),sr(),ve(Hr()));var n=!1,i=!1;const a=()=>{if(n){Ts();return}n=!0,i&&Ss(),this.#a!==null&&Mt(this.#a,()=>{this.#a=null}),this.#p(()=>{this.#g()})},o=u=>{try{i=!0,r?.(u,a),i=!1}catch(l){Ue(l,this.#i&&this.#i.parent)}s&&(this.#a=this.#p(()=>{try{return Le(()=>{var l=V;l.b=this,l.f|=Qt,s(this.#e,()=>u,()=>a)})}catch(l){return Ue(l,this.#i.parent),null}}))};Be(()=>{var u;try{u=this.transform_error(t)}catch(l){Ue(l,this.#i&&this.#i.parent);return}u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(o,l=>Ue(l,this.#i&&this.#i.parent)):o(u)})}}function js(e,t,r,s){const n=ur;var i=e.filter(c=>!c.settled);if(r.length===0&&i.length===0){s(t.map(n));return}var a=V,o=Ys(),u=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(c=>c.promise)):null;function l(c){o();try{s(c)}catch(g){(a.f&ye)===0&&Ue(g,a)}jt()}if(r.length===0){u.then(()=>l(t.map(n)));return}var f=on();function m(){Promise.all(r.map(c=>Fs(c))).then(c=>l([...t.map(n),...c])).catch(c=>Ue(c,a)).finally(()=>f())}u?u.then(()=>{o(),m(),jt()}):m()}function Ys(){var e=V,t=O,r=he,s=P;return function(i=!0){be(e),oe(t),dt(r),i&&(e.f&ye)===0&&(s?.activate(),s?.apply())}}function jt(e=!0){be(null),oe(null),dt(null),e&&P?.deactivate()}function on(){var e=V,t=e.b,r=P,s=t.is_rendered();return t.update_pending_count(1,r),r.increment(s,e),(n=!1)=>{t.update_pending_count(-1,r),r.decrement(s,e,n)}}function ur(e){var t=Z|ee,r=O!==null&&(O.f&Z)!==0?O:null;return V!==null&&(V.f|=qe),{ctx:he,deps:null,effects:null,equals:qr,f:t,fn:e,reactions:null,rv:0,v:Q,wv:0,parent:r??V,ac:null}}function Fs(e,t,r){let s=V;s===null&&ms();var n=void 0,i=St(Q),a=!O,o=new Map;return si(()=>{var u=V,l=Lr();n=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).finally(jt)}catch(g){l.reject(g),jt()}var f=P;if(a){if((u.f&He)!==0)var m=on();if(s.b.is_rendered())o.get(f)?.reject(Ve),o.delete(f);else{for(const g of o.values())g.reject(Ve);o.clear()}o.set(f,l)}const c=(g,p=void 0)=>{if(m){var S=p===Ve;m(S)}if(!(p===Ve||(u.f&ye)!==0)){if(f.activate(),p)i.f|=We,Yt(i,p);else{(i.f&We)!==0&&(i.f^=We),Yt(i,g);for(const[C,T]of o){if(o.delete(C),C===f)break;T.reject(Ve)}}f.deactivate()}};l.promise.then(c,g=>c(null,g||"unknown"))}),pn(()=>{for(const u of o.values())u.reject(Ve)}),new Promise(u=>{function l(f){function m(){f===n?u(i):l(n)}f.then(m,m)}l(n)})}function Hs(e){const t=ur(e);return t.equals=Wr,t}function qs(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ie(t[r])}}function Ws(e){for(var t=e.parent;t!==null;){if((t.f&Z)===0)return(t.f&ye)===0?t:null;t=t.parent}return null}function fr(e){var t,r=V;be(Ws(e));try{e.f&=~rt,qs(e),t=Dn(e)}finally{be(r)}return t}function an(e){var t=e.v,r=fr(e);if(!e.equals(r)&&(e.wv=Mn(),(!P?.is_fork||e.deps===null)&&(e.v=r,P?.capture(e,t,!0),e.deps===null))){U(e,J);return}Ze||(we!==null?(hr()||P?.is_fork)&&we.set(e,r):ir(e))}function Bs(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Ve),t.teardown=cs,t.ac=null,Dt(t,0),_r(t))}function ln(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&_t(t)}let cr=new Set;const Ge=new Map;let un=!1;function St(e,t){var r={f:0,v:e,reactions:null,equals:qr,rv:0,wv:0};return r}function q(e,t){const r=St(e);return li(r),r}function Us(e,t=!1,r=!0){const s=St(e);return t||(s.equals=Wr),s}function N(e,t,r=!1){O!==null&&(!$e||(O.f&jr)!==0)&&Jr()&&(O.f&(Z|Ye|tr|jr))!==0&&(me===null||!ut.call(me,e))&&Es();let s=r?bt(t):t;return Yt(e,s,It)}function Yt(e,t,r=null){if(!e.equals(t)){var s=e.v;Ze?Ge.set(e,t):Ge.set(e,s),e.v=t;var n=Ne.ensure();if(n.capture(e,s),(e.f&Z)!==0){const i=e;(e.f&ee)!==0&&fr(i),we===null&&ir(i)}e.wv=Mn(),fn(e,ee,r),V!==null&&(V.f&J)!==0&&(V.f&(ke|Fe))===0&&(_e===null?ui([e]):_e.push(e)),!n.is_fork&&cr.size>0&&!un&&Js()}return t}function Js(){un=!1;for(const e of cr)(e.f&J)!==0&&U(e,Ee),zt(e)&&_t(e);cr.clear()}function Tt(e){N(e,e.v+1)}function fn(e,t,r){var s=e.reactions;if(s!==null)for(var n=s.length,i=0;i<n;i++){var a=s[i],o=a.f,u=(o&ee)===0;if(u&&U(a,t),(o&Z)!==0){var l=a;we?.delete(l),(o&rt)===0&&(o&de&&(a.f|=rt),fn(l,Ee,r))}else if(u){var f=a;(o&Ye)!==0&&Ae!==null&&Ae.add(f),r!==null?r.push(f):lr(f)}}}function bt(e){if(typeof e!="object"||e===null||Rt in e)return e;const t=Cr(e);if(t!==us&&t!==fs)return e;var r=new Map,s=is(e),n=q(0),i=it,a=o=>{if(it===i)return o();var u=O,l=it;oe(null),Tn(i);var f=o();return oe(u),Tn(l),f};return s&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(o,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&xs();var f=r.get(u);return f===void 0?a(()=>{var m=q(l.value);return r.set(u,m),m}):N(f,l.value,!0),!0},deleteProperty(o,u){var l=r.get(u);if(l===void 0){if(u in o){const f=a(()=>q(Q));r.set(u,f),Tt(n)}}else N(l,Q),Tt(n);return!0},get(o,u,l){if(u===Rt)return e;var f=r.get(u),m=u in o;if(f===void 0&&(!m||tt(o,u)?.writable)&&(f=a(()=>{var g=bt(m?o[u]:Q),p=q(g);return p}),r.set(u,f)),f!==void 0){var c=b(f);return c===Q?void 0:c}return Reflect.get(o,u,l)},getOwnPropertyDescriptor(o,u){var l=Reflect.getOwnPropertyDescriptor(o,u);if(l&&"value"in l){var f=r.get(u);f&&(l.value=b(f))}else if(l===void 0){var m=r.get(u),c=m?.v;if(m!==void 0&&c!==Q)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(o,u){if(u===Rt)return!0;var l=r.get(u),f=l!==void 0&&l.v!==Q||Reflect.has(o,u);if(l!==void 0||V!==null&&(!f||tt(o,u)?.writable)){l===void 0&&(l=a(()=>{var c=f?bt(o[u]):Q,g=q(c);return g}),r.set(u,l));var m=b(l);if(m===Q)return!1}return f},set(o,u,l,f){var m=r.get(u),c=u in o;if(s&&u==="length")for(var g=l;g<m.v;g+=1){var p=r.get(g+"");p!==void 0?N(p,Q):g in o&&(p=a(()=>q(Q)),r.set(g+"",p))}if(m===void 0)(!c||tt(o,u)?.writable)&&(m=a(()=>q(void 0)),N(m,bt(l)),r.set(u,m));else{c=m.v!==Q;var S=a(()=>bt(l));N(m,S)}var C=Reflect.getOwnPropertyDescriptor(o,u);if(C?.set&&C.set.call(f,l),!c){if(s&&typeof u=="string"){var T=r.get("length"),L=Number(u);Number.isInteger(L)&&L>=T.v&&N(T,L+1)}Tt(n)}return!0},ownKeys(o){b(n);var u=Reflect.ownKeys(o).filter(m=>{var c=r.get(m);return c===void 0||c.v!==Q});for(var[l,f]of r)f.v!==Q&&!(l in o)&&u.push(l);return u},setPrototypeOf(){ks()}})}var cn,dn,vn,hn;function dr(){if(cn===void 0){cn=window,dn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;vn=tt(t,"firstChild").get,hn=tt(t,"nextSibling").get,Rr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Rr(r)&&(r.__t=void 0)}}function Ce(e=""){return document.createTextNode(e)}function mt(e){return vn.call(e)}function Me(e){return hn.call(e)}function se(e,t){if(!R)return mt(e);var r=mt(Y);return r===null&&(r=Y.appendChild(Ce())),ve(r),r}function te(e,t=1,r=!1){let s=R?Y:e;for(var n;t--;)n=s,s=Me(s);if(!R)return s;if(r){if(s?.nodeType!==rr){var i=Ce();return s===null?n?.after(i):s.before(i),ve(i),i}bn(s)}return ve(s),s}function Gs(e){e.textContent=""}function Zs(){return!1}function vr(e,t,r){return document.createElementNS(Ar,e,void 0)}function bn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===rr;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}let mn=!1;function _n(){mn||(mn=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Ft(e){var t=O,r=V;oe(null),be(null);try{return e()}finally{oe(t),be(r)}}function Ks(e,t,r,s=r){e.addEventListener(t,()=>Ft(r));const n=e.__on_r;n?e.__on_r=()=>{n(),s(!0)}:e.__on_r=()=>s(!0),_n()}function Xs(e){V===null&&(O===null&&gs(),ps()),Ze&&_s()}function Qs(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ze(e,t){var r=V;r!==null&&(r.f&Se)!==0&&(e|=Se);var s={ctx:he,deps:null,nodes:null,f:e|ee|de,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},n=s;if((e&ft)!==0)vt!==null?vt.push(s):Ne.ensure().schedule(s);else if(t!==null){try{_t(s)}catch(a){throw ie(s),a}n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&(n.f&qe)===0&&(n=n.first,(e&Ye)!==0&&(e&ct)!==0&&n!==null&&(n.f|=ct))}if(n!==null&&(n.parent=r,r!==null&&Qs(n,r),O!==null&&(O.f&Z)!==0&&(e&Fe)===0)){var i=O;(i.effects??=[]).push(n)}return s}function hr(){return O!==null&&!$e}function pn(e){const t=ze(Ct,null);return U(t,J),t.teardown=e,t}function ei(e){Xs();var t=V.f,r=!O&&(t&ke)!==0&&(t&He)===0;if(r){var s=he;(s.e??=[]).push(e)}else return gn(e)}function gn(e){return ze(ft|vs,e)}function ti(e){Ne.ensure();const t=ze(Fe|qe,e);return()=>{ie(t)}}function ri(e){Ne.ensure();const t=ze(Fe|qe,e);return(r={})=>new Promise(s=>{r.outro?Mt(t,()=>{ie(t),s(void 0)}):(ie(t),s(void 0))})}function ni(e){return ze(ft,e)}function si(e){return ze(tr|qe,e)}function br(e,t=0){return ze(Ct|t,e)}function Re(e,t=[],r=[],s=[]){js(s,t,r,n=>{ze(Ct,()=>e(...n.map(b)))})}function mr(e,t=0){var r=ze(Ye|t,e);return r}function Le(e){return ze(ke|qe,e)}function yn(e){var t=e.teardown;if(t!==null){const r=Ze,s=O;En(!0),oe(null);try{t.call(null)}finally{En(r),oe(s)}}}function _r(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const n=r.ac;n!==null&&Ft(()=>{n.abort(Ve)});var s=r.next;(r.f&Fe)!==0?r.parent=null:ie(r,t),r=s}}function ii(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&ke)===0&&ie(t),t=r}}function ie(e,t=!0){var r=!1;(t||(e.f&Yr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(oi(e.nodes.start,e.nodes.end),r=!0),U(e,Ir),_r(e,t&&!r),Dt(e,0);var s=e.nodes&&e.nodes.t;if(s!==null)for(const i of s)i.stop();yn(e),e.f^=Ir,e.f|=ye;var n=e.parent;n!==null&&n.first!==null&&wn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function oi(e,t){for(;e!==null;){var r=e===t?null:Me(e);e.remove(),e=r}}function wn(e){var t=e.parent,r=e.prev,s=e.next;r!==null&&(r.next=s),s!==null&&(s.prev=r),t!==null&&(t.first===e&&(t.first=s),t.last===e&&(t.last=r))}function Mt(e,t,r=!0){var s=[];$n(e,s,!0);var n=()=>{r&&ie(e),t&&t()},i=s.length;if(i>0){var a=()=>--i||n();for(var o of s)o.out(a)}else n()}function $n(e,t,r){if((e.f&Se)===0){e.f^=Se;var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,a=(n.f&ct)!==0||(n.f&ke)!==0&&(e.f&Ye)!==0;$n(n,t,a?r:!1),n=i}}}function ai(e){xn(e,!0)}function xn(e,t){if((e.f&Se)!==0){e.f^=Se,(e.f&J)===0&&(U(e,ee),Ne.ensure().schedule(e));for(var r=e.first;r!==null;){var s=r.next,n=(r.f&ct)!==0||(r.f&ke)!==0;xn(r,n?t:!1),r=s}var i=e.nodes&&e.nodes.t;if(i!==null)for(const a of i)(a.is_global||t)&&a.in()}}function kn(e,t){if(e.nodes)for(var r=e.nodes.start,s=e.nodes.end;r!==null;){var n=r===s?null:Me(r);t.append(r),r=n}}let Ht=!1,Ze=!1;function En(e){Ze=e}let O=null,$e=!1;function oe(e){O=e}let V=null;function be(e){V=e}let me=null;function li(e){O!==null&&(me===null?me=[e]:me.push(e))}let ae=null,ue=0,_e=null;function ui(e){_e=e}let Sn=1,st=0,it=st;function Tn(e){it=e}function Mn(){return++Sn}function zt(e){var t=e.f;if((t&ee)!==0)return!0;if(t&Z&&(e.f&=~rt),(t&Ee)!==0){for(var r=e.deps,s=r.length,n=0;n<s;n++){var i=r[n];if(zt(i)&&an(i),i.wv>e.wv)return!0}(t&de)!==0&&we===null&&U(e,J)}return!1}function zn(e,t,r=!0){var s=e.reactions;if(s!==null&&!(me!==null&&ut.call(me,e)))for(var n=0;n<s.length;n++){var i=s[n];(i.f&Z)!==0?zn(i,t,!1):t===i&&(r?U(i,ee):(i.f&J)!==0&&U(i,Ee),lr(i))}}function Dn(e){var t=ae,r=ue,s=_e,n=O,i=me,a=he,o=$e,u=it,l=e.f;ae=null,ue=0,_e=null,O=(l&(ke|Fe))===0?e:null,me=null,dt(e.ctx),$e=!1,it=++st,e.ac!==null&&(Ft(()=>{e.ac.abort(Ve)}),e.ac=null);try{e.f|=er;var f=e.fn,m=f();e.f|=He;var c=e.deps,g=P?.is_fork;if(ae!==null){var p;if(g||Dt(e,ue),c!==null&&ue>0)for(c.length=ue+ae.length,p=0;p<ae.length;p++)c[ue+p]=ae[p];else e.deps=c=ae;if(hr()&&(e.f&de)!==0)for(p=ue;p<c.length;p++)(c[p].reactions??=[]).push(e)}else!g&&c!==null&&ue<c.length&&(Dt(e,ue),c.length=ue);if(Jr()&&_e!==null&&!$e&&c!==null&&(e.f&(Z|Ee|ee))===0)for(p=0;p<_e.length;p++)zn(_e[p],e);if(n!==null&&n!==e){if(st++,n.deps!==null)for(let S=0;S<r;S+=1)n.deps[S].rv=st;if(t!==null)for(const S of t)S.rv=st;_e!==null&&(s===null?s=_e:s.push(..._e))}return(e.f&We)!==0&&(e.f^=We),m}catch(S){return Zr(S)}finally{e.f^=er,ae=t,ue=r,_e=s,O=n,me=i,dt(a),$e=o,it=u}}function fi(e,t){let r=t.reactions;if(r!==null){var s=os.call(r,e);if(s!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[s]=r[n],r.pop())}}if(r===null&&(t.f&Z)!==0&&(ae===null||!ut.call(ae,t))){var i=t;(i.f&de)!==0&&(i.f^=de,i.f&=~rt),ir(i),Bs(i),Dt(i,0)}}function Dt(e,t){var r=e.deps;if(r!==null)for(var s=t;s<r.length;s++)fi(e,r[s])}function _t(e){var t=e.f;if((t&ye)===0){U(e,J);var r=V,s=Ht;V=e,Ht=!0;try{(t&(Ye|Pr))!==0?ii(e):_r(e),yn(e);var n=Dn(e);e.teardown=typeof n=="function"?n:null,e.wv=Sn;var i;ss&&Ds&&(e.f&ee)!==0&&e.deps}finally{Ht=s,V=r}}}async function ci(){await Promise.resolve(),ht()}function b(e){var t=e.f,r=(t&Z)!==0;if(O!==null&&!$e){var s=V!==null&&(V.f&ye)!==0;if(!s&&(me===null||!ut.call(me,e))){var n=O.deps;if((O.f&er)!==0)e.rv<st&&(e.rv=st,ae===null&&n!==null&&n[ue]===e?ue++:ae===null?ae=[e]:ae.push(e));else{(O.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[O]:ut.call(i,O)||i.push(O)}}}if(Ze&&Ge.has(e))return Ge.get(e);if(r){var a=e;if(Ze){var o=a.v;return((a.f&J)===0&&a.reactions!==null||Vn(a))&&(o=fr(a)),Ge.set(a,o),o}var u=(a.f&de)===0&&!$e&&O!==null&&(Ht||(O.f&de)!==0),l=(a.f&He)===0;zt(a)&&(u&&(a.f|=de),an(a)),u&&!l&&(ln(a),On(a))}if(we?.has(e))return we.get(e);if((e.f&We)!==0)throw e.v;return e.v}function On(e){if(e.f|=de,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Z)!==0&&(t.f&de)===0&&(ln(t),On(t))}function Vn(e){if(e.v===Q)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ge.has(t)||(t.f&Z)!==0&&Vn(t))return!0;return!1}function pr(e){var t=$e;try{return $e=!0,e()}finally{$e=t}}const Ot=Symbol("events"),Nn=new Set,gr=new Set;function di(e,t,r,s={}){function n(i){if(s.capture||yr.call(t,i),!i.cancelBubble)return Ft(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Be(()=>{t.addEventListener(e,n,s)}):t.addEventListener(e,n,s),n}function ot(e,t,r,s,n){var i={capture:s,passive:n},a=di(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&pn(()=>{t.removeEventListener(e,a,i)})}function fe(e,t,r){(t[Ot]??={})[e]=r}function vi(e){for(var t=0;t<e.length;t++)Nn.add(e[t]);for(var r of gr)r(e)}let An=null;function yr(e){var t=this,r=t.ownerDocument,s=e.type,n=e.composedPath?.()||[],i=n[0]||e.target;An=e;var a=0,o=An===e&&e[Ot];if(o){var u=n.indexOf(o);if(u!==-1&&(t===document||t===window)){e[Ot]=t;return}var l=n.indexOf(t);if(l===-1)return;u<=l&&(a=u)}if(i=n[a]||e.target,i!==t){At(e,"currentTarget",{configurable:!0,get(){return i||r}});var f=O,m=V;oe(null),be(null);try{for(var c,g=[];i!==null;){var p=i.assignedSlot||i.parentNode||i.host||null;try{var S=i[Ot]?.[s];S!=null&&(!i.disabled||e.target===i)&&S.call(i,e)}catch(C){c?g.push(C):c=C}if(e.cancelBubble||p===t||p===null)break;i=p}if(c){for(let C of g)queueMicrotask(()=>{throw C});throw c}}finally{e[Ot]=t,delete e.currentTarget,oe(f),be(m)}}}const hi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function bi(e){return hi?.createHTML(e)??e}function mi(e){var t=vr("template");return t.innerHTML=bi(e.replaceAll("<!>","<!---->")),t.content}function pt(e,t){var r=V;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Pe(e,t){var r=(t&rs)!==0,s=(t&ns)!==0,n,i=!e.startsWith("<!>");return()=>{if(R)return pt(Y,null),Y;n===void 0&&(n=mi(i?e:"<!>"+e),r||(n=mt(n)));var a=s||dn?document.importNode(n,!0):n.cloneNode(!0);if(r){var o=mt(a),u=a.lastChild;pt(o,u)}else pt(a,a);return a}}function _i(e=""){if(!R){var t=Ce(e+"");return pt(t,t),t}var r=Y;return r.nodeType!==rr?(r.before(r=Ce()),ve(r)):bn(r),pt(r,r),r}function xe(e,t){if(R){var r=V;((r.f&He)===0||r.nodes.end===null)&&(r.nodes.end=Y),nr();return}e!==null&&e.before(t)}const pi=["touchstart","touchmove"];function gi(e){return pi.includes(e)}function yi(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function Cn(e,t){return Rn(e,t)}function wi(e,t){dr(),t.intro=t.intro??!1;const r=t.target,s=R,n=Y;try{for(var i=mt(r);i&&(i.nodeType!==kt||i.data!==Dr);)i=Me(i);if(!i)throw lt;Te(!0),ve(i);const a=Rn(e,{...t,anchor:i});return Te(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==lt&&console.warn("Failed to hydrate: ",a),t.recover===!1&&ws(),dr(),Gs(r),Te(!1),Cn(e,t)}finally{Te(s),ve(n)}}const qt=new Map;function Rn(e,{target:t,anchor:r,props:s={},events:n,context:i,intro:a=!0,transformError:o}){dr();var u=void 0,l=ri(()=>{var f=r??t.appendChild(Ce());Ps(f,{pending:()=>{}},g=>{Br({});var p=he;if(i&&(p.c=i),n&&(s.$$events=n),R&&pt(g,null),u=e(g,s)||{},R&&(V.nodes.end=Y,Y===null||Y.nodeType!==kt||Y.data!==Nr))throw Lt(),lt;Ur()},o);var m=new Set,c=g=>{for(var p=0;p<g.length;p++){var S=g[p];if(!m.has(S)){m.add(S);var C=gi(S);for(const F of[t,document]){var T=qt.get(F);T===void 0&&(T=new Map,qt.set(F,T));var L=T.get(S);L===void 0?(F.addEventListener(S,yr,{passive:C}),T.set(S,1)):T.set(S,L+1)}}}};return c(as(Nn)),gr.add(c),()=>{for(var g of m)for(const C of[t,document]){var p=qt.get(C),S=p.get(g);--S==0?(C.removeEventListener(g,yr),p.delete(g),p.size===0&&qt.delete(C)):p.set(g,S)}gr.delete(c),f!==r&&f.parentNode?.removeChild(f)}});return wr.set(u,l),u}let wr=new WeakMap;function $i(e,t){const r=wr.get(e);return r?(wr.delete(e),r(t)):Promise.resolve()}class xi{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),s=this.#r.get(r);if(s)ai(s),this.#s.delete(r);else{var n=this.#t.get(r);n&&(this.#r.set(r,n.effect),this.#t.delete(r),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),s=n.effect)}for(const[i,a]of this.#e){if(this.#e.delete(i),i===t)break;const o=this.#t.get(a);o&&(ie(o.effect),this.#t.delete(a))}for(const[i,a]of this.#r){if(i===r||this.#s.has(i))continue;const o=()=>{if(Array.from(this.#e.values()).includes(i)){var l=document.createDocumentFragment();kn(a,l),l.append(Ce()),this.#t.set(i,{effect:a,fragment:l})}else ie(a);this.#s.delete(i),this.#r.delete(i)};this.#i||!s?(this.#s.add(i),Mt(a,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[s,n]of this.#t)r.includes(s)||(ie(n.effect),this.#t.delete(s))};ensure(t,r){var s=P,n=Zs();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(n){var i=document.createDocumentFragment(),a=Ce();i.append(a),this.#t.set(t,{effect:Le(()=>r(a)),fragment:i})}else this.#r.set(t,Le(()=>r(this.anchor)));if(this.#e.set(s,t),n){for(const[o,u]of this.#r)o===t?s.unskip_effect(u):s.skip_effect(u);for(const[o,u]of this.#t)o===t?s.unskip_effect(u.effect):s.skip_effect(u.effect);s.oncommit(this.#n),s.ondiscard(this.#o)}else R&&(this.anchor=Y),this.#n(s)}}function gt(e,t,r=!1){var s;R&&(s=Y,nr());var n=new xi(e),i=r?ct:0;function a(o,u){if(R){var l=Ms(s);if(o!==parseInt(l.substring(1))){var f=Hr();ve(f),n.anchor=f,Te(!1),n.ensure(o,u),Te(!0);return}}n.ensure(o,u)}mr(()=>{var o=!1;t((u,l=0)=>{o=!0,a(l,u)}),o||a(-1,null)},i)}function ki(e,t){let r=null,s=R;var n;if(R){r=Y;for(var i=mt(document.head);i!==null&&(i.nodeType!==kt||i.data!==e);)i=Me(i);if(i===null)Te(!1);else{var a=Me(i);i.remove(),ve(a)}}R||(n=document.head.appendChild(Ce()));try{mr(()=>t(n),Yr|qe)}finally{s&&(Te(!0),ve(r))}}function Ei(e,t){ni(()=>{var r=e.getRootNode(),s=r.host?r:r.head??r.ownerDocument.head;if(!s.querySelector("#"+t.hash)){const n=vr("style");n.id=t.hash,n.textContent=t.code,s.appendChild(n)}})}function Si(e,t,r){var s=""+e;return s}function Ti(e,t){return e==null?null:String(e)}function Ln(e,t,r,s,n,i){var a=e.__className;if(R||a!==r||a===void 0){var o=Si(r);(!R||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function Pn(e,t,r,s){var n=e.__style;if(R||n!==t){var i=Ti(t);(!R||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return s}const Mi=Symbol("is custom element"),zi=Symbol("is html"),Di=bs?"link":"LINK";function yt(e){if(R){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var s=e.value;Wt(e,"value",null),e.value=s}if(e.hasAttribute("checked")){var n=e.checked;Wt(e,"checked",null),e.checked=n}}};e.__on_r=r,Be(r),_n()}}function Wt(e,t,r,s){var n=Oi(e);R&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Di)||n[t]!==(n[t]=r)&&(t==="loading"&&(e[hs]=r),r==null?e.removeAttribute(t):typeof r!="string"&&In(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ke(e,t,r){var s=O,n=V;let i=R;R&&Te(!1),oe(null),be(null);try{t!=="style"&&($r.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?In(e).includes(t):r&&typeof r=="object")?e[t]=r:Wt(e,t,r==null?r:String(r))}finally{oe(s),be(n),i&&Te(!0)}}function Oi(e){return e.__attributes??={[Mi]:e.nodeName.includes("-"),[zi]:e.namespaceURI===Ar}}var $r=new Map;function In(e){var t=e.getAttribute("is")||e.nodeName,r=$r.get(t);if(r)return r;$r.set(t,r=[]);for(var s,n=e,i=Element.prototype;i!==n;){s=ls(n);for(var a in s)s[a].set&&r.push(a);n=Cr(n)}return r}function wt(e,t,r=t){var s=new WeakSet;Ks(e,"input",async n=>{var i=n?e.defaultValue:e.value;if(i=xr(e)?kr(i):i,r(i),P!==null&&s.add(P),await ci(),i!==(i=t())){var a=e.selectionStart,o=e.selectionEnd,u=e.value.length;if(e.value=i??"",o!==null){var l=e.value.length;a===o&&o===u&&l>u?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=a,e.selectionEnd=Math.min(o,l))}}}),(R&&e.defaultValue!==e.value||pr(t)==null&&e.value)&&(r(xr(e)?kr(e.value):e.value),P!==null&&s.add(P)),br(()=>{var n=t();if(e===document.activeElement){var i=P;if(s.has(i))return}xr(e)&&n===kr(e.value)||e.type==="date"&&!n&&!e.value||n!==e.value&&(e.value=n??"")})}function xr(e){var t=e.type;return t==="number"||t==="range"}function kr(e){return e===""?null:+e}function Bt(e,t,r,s){var n=(r&es)!==0,i=(r&ts)!==0,a=s,o=!0,u=()=>(o&&(o=!1,a=i?pr(s):s),a);let l;if(n){var f=Rt in e||Fr in e;l=tt(e,t)?.set??(f&&t in e?L=>e[t]=L:void 0)}var m,c=!1;n?[m,c]=Ns(()=>e[t]):m=e[t],m===void 0&&s!==void 0&&(m=u(),l&&($s(),l(m)));var g;if(g=()=>{var L=e[t];return L===void 0?u():(o=!0,L)},(r&Qn)===0)return g;if(l){var p=e.$$legacy;return(function(L,F){return arguments.length>0?((!F||p||c)&&l(F?g():L),L):g()})}var S=!1,C=((r&Xn)!==0?ur:Hs)(()=>(S=!1,g()));n&&b(C);var T=V;return(function(L,F){if(arguments.length>0){const le=F?b(C):n?bt(L):L;return N(C,le),S=!0,a!==void 0&&(a=le),L}return Ze&&S||(T.f&ye)!==0?C.v:b(C)})}function Vi(e){return new Ni(e)}class Ni{#e;#r;constructor(t){var r=new Map,s=(i,a)=>{var o=Us(a,!1,!1);return r.set(i,o),o};const n=new Proxy({...t.props||{},$$events:{}},{get(i,a){return b(r.get(a)??s(a,Reflect.get(i,a)))},has(i,a){return a===Fr?!0:(b(r.get(a)??s(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,o){return N(r.get(a)??s(a,o),o),Reflect.set(i,a,o)}});this.#r=(t.hydrate?wi:Cn)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&ht(),this.#e=n.$$events;for(const i of Object.keys(this.#r))i==="$set"||i==="$destroy"||i==="$on"||At(this,i,{get(){return this.#r[i]},set(a){this.#r[i]=a},enumerable:!0});this.#r.$set=i=>{Object.assign(n,i)},this.#r.$destroy=()=>{$i(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const s=(...n)=>r.call(this,...n);return this.#e[t].push(s),()=>{this.#e[t]=this.#e[t].filter(n=>n!==s)}}$destroy(){this.#r.$destroy()}}let jn;typeof HTMLElement=="function"&&(jn=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 s=this.$$c.$on(e,t);this.$$l_u.set(t,s)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const s=this.$$l_u.get(t);s&&(s(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(s){return n=>{const i=vr("slot");s!=="default"&&(i.name=s),xe(n,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Ai(this);for(const s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=e(s),t.default=!0):t[s]=e(s));for(const s of this.attributes){const n=this.$$g_p(s.name);n in this.$$d||(this.$$d[n]=Ut(n,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Vi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ti(()=>{br(()=>{this.$$r=!0;for(const s of Nt(this.$$c)){if(!this.$$p_d[s]?.reflect)continue;this.$$d[s]=this.$$c[s];const n=Ut(s,this.$$d[s],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,n)}this.$$r=!1})});for(const s in this.$$l)for(const n of this.$$l[s]){const i=this.$$c.$on(s,n);this.$$l_u.set(n,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ut(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 Nt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ut(e,t,r,s){const n=r[e]?.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!r[e])return t;if(s==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ai(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Ci(e,t,r,s,n,i){let a=class extends jn{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Nt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Nt(t).forEach(o=>{At(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){u=Ut(o,u,t),this.$$d[o]=u;var l=this.$$c;if(l){var f=tt(l,o)?.get;f?l[o]=u:l.$set({[o]:u})}}})}),s.forEach(o=>{At(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}function Yn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jt={exports:{}},Ri=Jt.exports,Fn;function Li(){return Fn||(Fn=1,(function(e,t){(function(r,s){e.exports=s()})(Ri,(function(){var r=1e3,s=6e4,n=36e5,i="millisecond",a="second",o="minute",u="hour",l="day",f="week",m="month",c="quarter",g="year",p="date",S="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,L={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var h=["th","st","nd","rd"],d=$%100;return"["+$+(h[(d-20)%10]||h[d]||h[0])+"]"}},F=function($,h,d){var w=String($);return!w||w.length>=h?$:""+Array(h+1-w.length).join(d)+$},le={s:F,z:function($){var h=-$.utcOffset(),d=Math.abs(h),w=Math.floor(d/60),v=d%60;return(h<=0?"+":"-")+F(w,2,"0")+":"+F(v,2,"0")},m:function $(h,d){if(h.date()<d.date())return-$(d,h);var w=12*(d.year()-h.year())+(d.month()-h.month()),v=h.clone().add(w,m),M=d-v<0,E=h.clone().add(w+(M?-1:1),m);return+(-(w+(d-v)/(M?v-E:E-v))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:m,y:g,w:f,d:l,D:p,h:u,m:o,s:a,ms:i,Q:c}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},ce="en",z={};z[ce]=L;var x="$isDayjsObject",_=function($){return $ instanceof W||!(!$||!$[x])},A=function $(h,d,w){var v;if(!h)return ce;if(typeof h=="string"){var M=h.toLowerCase();z[M]&&(v=M),d&&(z[M]=d,v=M);var E=h.split("-");if(!v&&E.length>1)return $(E[0])}else{var I=h.name;z[I]=h,v=I}return!w&&v&&(ce=v),v||!w&&ce},D=function($,h){if(_($))return $.clone();var d=typeof h=="object"?h:{};return d.date=$,d.args=arguments,new W(d)},k=le;k.l=A,k.i=_,k.w=function($,h){return D($,{locale:h.$L,utc:h.$u,x:h.$x,$offset:h.$offset})};var W=(function(){function $(d){this.$L=A(d.locale,null,!0),this.parse(d),this.$x=this.$x||d.x||{},this[x]=!0}var h=$.prototype;return h.parse=function(d){this.$d=(function(w){var v=w.date,M=w.utc;if(v===null)return new Date(NaN);if(k.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var E=v.match(C);if(E){var I=E[2]-1||0,H=(E[7]||"0").substring(0,3);return M?new Date(Date.UTC(E[1],I,E[3]||1,E[4]||0,E[5]||0,E[6]||0,H)):new Date(E[1],I,E[3]||1,E[4]||0,E[5]||0,E[6]||0,H)}}return new Date(v)})(d),this.init()},h.init=function(){var d=this.$d;this.$y=d.getFullYear(),this.$M=d.getMonth(),this.$D=d.getDate(),this.$W=d.getDay(),this.$H=d.getHours(),this.$m=d.getMinutes(),this.$s=d.getSeconds(),this.$ms=d.getMilliseconds()},h.$utils=function(){return k},h.isValid=function(){return this.$d.toString()!==S},h.isSame=function(d,w){var v=D(d);return this.startOf(w)<=v&&v<=this.endOf(w)},h.isAfter=function(d,w){return D(d)<this.startOf(w)},h.isBefore=function(d,w){return this.endOf(w)<D(d)},h.$g=function(d,w,v){return k.u(d)?this[w]:this.set(v,d)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(d,w){var v=this,M=!!k.u(w)||w,E=k.p(d),I=function(pe,G){var ge=k.w(v.$u?Date.UTC(v.$y,G,pe):new Date(v.$y,G,pe),v);return M?ge:ge.endOf(l)},H=function(pe,G){return k.w(v.toDate()[pe].apply(v.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(G)),v)},B=this.$W,X=this.$M,re=this.$D,De="set"+(this.$u?"UTC":"");switch(E){case g:return M?I(1,0):I(31,11);case m:return M?I(1,X):I(0,X+1);case f:var Oe=this.$locale().weekStart||0,Xe=(B<Oe?B+7:B)-Oe;return I(M?re-Xe:re+(6-Xe),X);case l:case p:return H(De+"Hours",0);case u:return H(De+"Minutes",1);case o:return H(De+"Seconds",2);case a:return H(De+"Milliseconds",3);default:return this.clone()}},h.endOf=function(d){return this.startOf(d,!1)},h.$set=function(d,w){var v,M=k.p(d),E="set"+(this.$u?"UTC":""),I=(v={},v[l]=E+"Date",v[p]=E+"Date",v[m]=E+"Month",v[g]=E+"FullYear",v[u]=E+"Hours",v[o]=E+"Minutes",v[a]=E+"Seconds",v[i]=E+"Milliseconds",v)[M],H=M===l?this.$D+(w-this.$W):w;if(M===m||M===g){var B=this.clone().set(p,1);B.$d[I](H),B.init(),this.$d=B.set(p,Math.min(this.$D,B.daysInMonth())).$d}else I&&this.$d[I](H);return this.init(),this},h.set=function(d,w){return this.clone().$set(d,w)},h.get=function(d){return this[k.p(d)]()},h.add=function(d,w){var v,M=this;d=Number(d);var E=k.p(w),I=function(X){var re=D(M);return k.w(re.date(re.date()+Math.round(X*d)),M)};if(E===m)return this.set(m,this.$M+d);if(E===g)return this.set(g,this.$y+d);if(E===l)return I(1);if(E===f)return I(7);var H=(v={},v[o]=s,v[u]=n,v[a]=r,v)[E]||1,B=this.$d.getTime()+d*H;return k.w(B,this)},h.subtract=function(d,w){return this.add(-1*d,w)},h.format=function(d){var w=this,v=this.$locale();if(!this.isValid())return v.invalidDate||S;var M=d||"YYYY-MM-DDTHH:mm:ssZ",E=k.z(this),I=this.$H,H=this.$m,B=this.$M,X=v.weekdays,re=v.months,De=v.meridiem,Oe=function(G,ge,Qe,Ie){return G&&(G[ge]||G(w,M))||Qe[ge].slice(0,Ie)},Xe=function(G){return k.s(I%12||12,G,"0")},pe=De||function(G,ge,Qe){var Ie=G<12?"AM":"PM";return Qe?Ie.toLowerCase():Ie};return M.replace(T,(function(G,ge){return ge||(function(Qe){switch(Qe){case"YY":return String(w.$y).slice(-2);case"YYYY":return k.s(w.$y,4,"0");case"M":return B+1;case"MM":return k.s(B+1,2,"0");case"MMM":return Oe(v.monthsShort,B,re,3);case"MMMM":return Oe(re,B);case"D":return w.$D;case"DD":return k.s(w.$D,2,"0");case"d":return String(w.$W);case"dd":return Oe(v.weekdaysMin,w.$W,X,2);case"ddd":return Oe(v.weekdaysShort,w.$W,X,3);case"dddd":return X[w.$W];case"H":return String(I);case"HH":return k.s(I,2,"0");case"h":return Xe(1);case"hh":return Xe(2);case"a":return pe(I,H,!0);case"A":return pe(I,H,!1);case"m":return String(H);case"mm":return k.s(H,2,"0");case"s":return String(w.$s);case"ss":return k.s(w.$s,2,"0");case"SSS":return k.s(w.$ms,3,"0");case"Z":return E}return null})(G)||E.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(d,w,v){var M,E=this,I=k.p(w),H=D(d),B=(H.utcOffset()-this.utcOffset())*s,X=this-H,re=function(){return k.m(E,H)};switch(I){case g:M=re()/12;break;case m:M=re();break;case c:M=re()/3;break;case f:M=(X-B)/6048e5;break;case l:M=(X-B)/864e5;break;case u:M=X/n;break;case o:M=X/s;break;case a:M=X/r;break;default:M=X}return v?M:k.a(M)},h.daysInMonth=function(){return this.endOf(m).$D},h.$locale=function(){return z[this.$L]},h.locale=function(d,w){if(!d)return this.$L;var v=this.clone(),M=A(d,w,!0);return M&&(v.$L=M),v},h.clone=function(){return k.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},$})(),K=W.prototype;return D.prototype=K,[["$ms",i],["$s",a],["$m",o],["$H",u],["$W",l],["$M",m],["$y",g],["$D",p]].forEach((function($){K[$[1]]=function(h){return this.$g(h,$[0],$[1])}})),D.extend=function($,h){return $.$i||($(h,W,D),$.$i=!0),D},D.locale=A,D.isDayjs=_,D.unix=function($){return D(1e3*$)},D.en=z[ce],D.Ls=z,D.p={},D}))})(Jt)),Jt.exports}var Pi=Li();const $t=Yn(Pi),Hn={version:"0.66.2"};var Gt={exports:{}},Ii=Gt.exports,qn;function ji(){return qn||(qn=1,(function(e,t){(function(r,s){e.exports=s()})(Ii,(function(){var r,s,n=1e3,i=6e4,a=36e5,o=864e5,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l=31536e6,f=2628e6,m=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,c={years:l,months:f,days:o,hours:a,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},g=function(z){return z instanceof le},p=function(z,x,_){return new le(z,_,x.$l)},S=function(z){return s.p(z)+"s"},C=function(z){return z<0},T=function(z){return C(z)?Math.ceil(z):Math.floor(z)},L=function(z){return Math.abs(z)},F=function(z,x){return z?C(z)?{negative:!0,format:""+L(z)+x}:{negative:!1,format:""+z+x}:{negative:!1,format:""}},le=(function(){function z(_,A,D){var k=this;if(this.$d={},this.$l=D,_===void 0&&(this.$ms=0,this.parseFromMilliseconds()),A)return p(_*c[S(A)],this);if(typeof _=="number")return this.$ms=_,this.parseFromMilliseconds(),this;if(typeof _=="object")return Object.keys(_).forEach((function($){k.$d[S($)]=_[$]})),this.calMilliseconds(),this;if(typeof _=="string"){var W=_.match(m);if(W){var K=W.slice(2).map((function($){return $!=null?Number($):0}));return this.$d.years=K[0],this.$d.months=K[1],this.$d.weeks=K[2],this.$d.days=K[3],this.$d.hours=K[4],this.$d.minutes=K[5],this.$d.seconds=K[6],this.calMilliseconds(),this}}return this}var x=z.prototype;return x.calMilliseconds=function(){var _=this;this.$ms=Object.keys(this.$d).reduce((function(A,D){return A+(_.$d[D]||0)*c[D]}),0)},x.parseFromMilliseconds=function(){var _=this.$ms;this.$d.years=T(_/l),_%=l,this.$d.months=T(_/f),_%=f,this.$d.days=T(_/o),_%=o,this.$d.hours=T(_/a),_%=a,this.$d.minutes=T(_/i),_%=i,this.$d.seconds=T(_/n),_%=n,this.$d.milliseconds=_},x.toISOString=function(){var _=F(this.$d.years,"Y"),A=F(this.$d.months,"M"),D=+this.$d.days||0;this.$d.weeks&&(D+=7*this.$d.weeks);var k=F(D,"D"),W=F(this.$d.hours,"H"),K=F(this.$d.minutes,"M"),$=this.$d.seconds||0;this.$d.milliseconds&&($+=this.$d.milliseconds/1e3,$=Math.round(1e3*$)/1e3);var h=F($,"S"),d=_.negative||A.negative||k.negative||W.negative||K.negative||h.negative,w=W.format||K.format||h.format?"T":"",v=(d?"-":"")+"P"+_.format+A.format+k.format+w+W.format+K.format+h.format;return v==="P"||v==="-P"?"P0D":v},x.toJSON=function(){return this.toISOString()},x.format=function(_){var A=_||"YYYY-MM-DDTHH:mm:ss",D={Y:this.$d.years,YY:s.s(this.$d.years,2,"0"),YYYY:s.s(this.$d.years,4,"0"),M:this.$d.months,MM:s.s(this.$d.months,2,"0"),D:this.$d.days,DD:s.s(this.$d.days,2,"0"),H:this.$d.hours,HH:s.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,"0"),SSS:s.s(this.$d.milliseconds,3,"0")};return A.replace(u,(function(k,W){return W||String(D[k])}))},x.as=function(_){return this.$ms/c[S(_)]},x.get=function(_){var A=this.$ms,D=S(_);return D==="milliseconds"?A%=1e3:A=D==="weeks"?T(A/c[D]):this.$d[D],A||0},x.add=function(_,A,D){var k;return k=A?_*c[S(A)]:g(_)?_.$ms:p(_,this).$ms,p(this.$ms+k*(D?-1:1),this)},x.subtract=function(_,A){return this.add(_,A,!0)},x.locale=function(_){var A=this.clone();return A.$l=_,A},x.clone=function(){return p(this.$ms,this)},x.humanize=function(_){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!_)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},z})(),ce=function(z,x,_){return z.add(x.years()*_,"y").add(x.months()*_,"M").add(x.days()*_,"d").add(x.hours()*_,"h").add(x.minutes()*_,"m").add(x.seconds()*_,"s").add(x.milliseconds()*_,"ms")};return function(z,x,_){r=_,s=_().$utils(),_.duration=function(k,W){var K=_.locale();return p(k,{$l:K},W)},_.isDuration=g;var A=x.prototype.add,D=x.prototype.subtract;x.prototype.add=function(k,W){return g(k)?ce(this,k,1):A.bind(this)(k,W)},x.prototype.subtract=function(k,W){return g(k)?ce(this,k,-1):D.bind(this)(k,W)}}}))})(Gt)),Gt.exports}var Yi=ji();const Fi=Yn(Yi);var at={},Wn;function Hi(){if(Wn)return at;Wn=1,Object.defineProperty(at,"__esModule",{value:!0}),at.LanguageTranslator=void 0,at.getChildStyleToPass=e,at.addComponent=t;function e(s,n){var i,a,o="";try{if(s&&n?.length&&(!((i=Object.keys(s))===null||i===void 0)&&i.length)&&(!((a=n?.filter(function(c){return Object.keys(s).includes(c.name)}))===null||a===void 0)&&a.length))for(var u=function(c){var g=n?.filter(function(p){return p.name===c&&p.defaultValue!==s[c]});g&&(o+="".concat(c,":").concat(s[c],";"))},l=0,f=Object.keys(s);l<f.length;l++){var m=f[l];u(m)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}function t(s){var n,i=((n=s?.repoName.split("/"))===null||n===void 0?void 0:n[1])||s?.repoName;if(!i)throw new Error("wrong componentPath "+s?.repoName);if(!s?.version)throw new Error("wrong version "+s?.version);var a=s?.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(s.repoName,"@").concat(s.version,"/").concat(a),s?.local)o.src="".concat(s.local);else if(location.href.includes("localhost:6006")){var u=i.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(i.replace(u+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(l){console.warn(l)}}var r=(function(){function s(n){if(this.lang="",!n?.dictionary)throw new Error("no dictionary provided");this.dictionary=n.dictionary,this.setLang(n?.lang)}return s.prototype.setLang=function(n){n||(n=s.getDefaultLang()),this.lang=n},s.prototype.translateWord=function(n,i){return s.getDictionaryWord(n,this.dictionary,i||this.lang)},s.prototype.translateDate=function(n,i,a){return s.formatDate(n,i,a||this.lang)},s.getDefaultLang=function(){var n,i,a,o="en";return navigator?.languages&&(!((a=(i=(n=navigator.languages[0])===null||n===void 0?void 0:n.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||a===void 0)&&a.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},s.getDictionaryWord=function(n,i,a){var o;if(!n)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(a&&(!((o=i[a])===null||o===void 0)&&o[n]))return i[a][n];var u="",l=s.getDefaultLang();if(!a||l!==a){var f=i?.[l];f?.[n]&&(u=f[n])}return u},s.formatDate=function(n,i,a){if(!n)throw new Error("no date provided");if(typeof n.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(a||s.getDefaultLang(),i);return o.format(n)},s})();return at.LanguageTranslator=r,at}var Bn=Hi(),qi=Pe('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-10svzuv"/>'),Wi=Pe('<i class="bi bi-play-fill svelte-10svzuv"></i>'),Bi=Pe('<i class="bi bi-pause-fill svelte-10svzuv"></i>'),Ui=Pe('<button class="btn btn-outline-dark svelte-10svzuv"><!></button>'),Ji=Pe('<div style="width: 100%;margin-bottom:15px" class="svelte-10svzuv"><div style="display:inline-block; width:50px;" class="svelte-10svzuv"><!></div> <div style="display:inline-block;width:calc(100% - 60px);position:relative" class="svelte-10svzuv"><hb-range-slider></hb-range-slider></div></div>',2),Gi=Pe("<hb-form></hb-form>",2),Zi=Pe('<button class="btn btn-sm btn-primary svelte-10svzuv">send</button>'),Ki=Pe('<button class="btn btn-sm btn-primary svelte-10svzuv" disabled="">send</button>'),Xi=Pe('<div id="card" class="card h-100 svelte-10svzuv"><div class="ratio ratio-16x9 svelte-10svzuv" style="background-color: black;"><video id="video" class="ratio ratio-16x9 svelte-10svzuv"><source type="video/mp4" class="svelte-10svzuv"/> <track kind="captions" src="" srclang="en" label="English" class="svelte-10svzuv"/> Your browser does not support the video tag.</video></div> <div class="card-body svelte-10svzuv"><!> <!> <div id="controls" class="svelte-10svzuv"><div style="flex-grow: 2" class="svelte-10svzuv"><button class="btn btn-sm btn-secondary svelte-10svzuv">▼</button> <button class="btn btn-sm btn-secondary svelte-10svzuv">▲</button> <input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>h <input class="form-control form-custom-control-numbers svelte-10svzuv" type="number"/>m <input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>s</div> <div style="flex-grow: 2;text-align:center" class="svelte-10svzuv"></div> <div style="flex-grow: 2;text-align:right" class="svelte-10svzuv"><input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>h <input class="form-control form-custom-control-numbers svelte-10svzuv" type="number"/>m <input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>s <button class="btn btn-sm btn-secondary svelte-10svzuv">▲</button> <button class="btn btn-sm btn-secondary svelte-10svzuv">▼</button></div></div></div> <div class="card-footer svelte-10svzuv"><span style="float:left;height:30px;line-height:30px" class="svelte-10svzuv"><!></span> <span style="float:right;height:30px;line-height:30px" class="svelte-10svzuv"><!></span></div></div>',2);const Qi={hash:"svelte-10svzuv",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
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
4
4
  /*!
5
5
  * Bootstrap v5.3.8 (https://getbootstrap.com/)
@@ -65,8 +65,8 @@ button.svelte-10svzuv {margin:0;font-family:inherit;font-size:inherit;line-heigh
65
65
  @media (min-width: 1200px) {
66
66
  }
67
67
  @media (min-width: 1400px) {
68
- }:host {font-family:"Roboto", sans-serif;}.form-custom-control-numbers.svelte-10svzuv {width:40px;display:inline-block;padding:0px;}#controls.svelte-10svzuv {display:flex;justify-content:space-around;flex-flow:row wrap;align-items:stretch;}`};function An(e,t){Pr(t,!0),ii(e,Ni);pt.extend(wi);let r=Ut(t,"id",7,""),n=Ut(t,"src",7,""),s=Ut(t,"track",23,()=>({maxValue:0,minValue:0})),i=Ut(t,"form",7),o=H(void 0),a=H(0),u=H(void 0),l=H(void 0),_=H(void 0),p=H(void 0),d=H(void 0),v=H(void 0),S=H(0),L=H("no"),Y=H(!0),V=H(void 0),R=H(void 0),W=H(!0);As(()=>{i()&&z(Y,!1),s()&&typeof s()=="string"&&s(JSON.parse(s())),console.log("reload all"),console.log(b(R),"log",b(a)),s()&&z(R,s().minValue<(b(R)||0)?b(R)||0:s().minValue,!0),console.log(b(R),"log2")});function ue(){s().maxValue=(b(u)||0)*3600+(b(_)||0)*60+(b(d)||0),s().minValue=(b(l)||0)*3600+(b(p)||0)*60+(b(v)||0)}function fe(g,I){t.$$host.dispatchEvent(new CustomEvent(g,{detail:I}))}function M(g){b(V).currentTime=g}Nn.addComponent({repoName:"@htmlbricks/hb-range-slider",version:Dn.version}),Nn.addComponent({repoName:"@htmlbricks/hb-form",version:Dn.version});function w(g){s().minValue=g.minValue,s().maxValue=g.maxValue,b(V).currentTime=g.positionValReal,z(R,g.positionValReal,!0),O(),b(V).currentTime<s().minValue&&M(s().minValue),b(V).currentTime>s().maxValue&&M(s().maxValue),fe("changeTrackValues",{minVaule:s().minValue,maxValue:s().maxValue})}function m(){!s()||!s().minValue&&s().minValue!==0||!s().maxValue&&s().maxValue!==0||(i()?z(L,"yes"):(fe("dispatchTrack",s()),console.log(s())))}function O(){z(u,parseInt((s().maxValue/3600).toString()),!0),z(l,parseInt((s().maxValue/3600).toString()),!0),z(_,parseInt(((s().maxValue-Number(b(u))*60)/60).toString()),!0),z(p,parseInt(((s().minValue-Number(b(l))*60)/60).toString()),!0),z(d,s().maxValue-Number(b(u))*3600-Number(b(_))*60),z(v,s().minValue-Number(b(l))*3600-Number(b(p))*60)}function T(g){z(S,g.target.duration,!0),z(o,b(S),!0),(!s().maxValue||s().maxValue>b(o))&&(s().maxValue=b(o)),(!s().minValue||s().minValue<b(a))&&(s().minValue=b(a)),z(V,t.$$host?.shadowRoot?.querySelector("#video"),!0),O(),console.log("videoElement",b(V)),b(S)/5>100||b(S)/5}function x(g){switch(g){case"start":b(V).currentTime<s().maxValue&&(s().minValue=b(V).currentTime);break;case"end":b(V).currentTime>s().minValue&&(s().maxValue=b(V).currentTime);break;default:return console.error("no vaild point for cue")}O(),fe("changeTrackValues",{minVaule:s().minValue,maxValue:s().maxValue})}function q(g){console.log("formSubmit",g._valid),z(Y,g._valid,!0),b(L)==="yes"&&(g._valid&&!(!s()||!s().minValue&&s().minValue!==0||!s().maxValue&&s().maxValue!==0)&&fe("dispatchTrack",Object.assign(s(),g)),console.log(s())),b(L)!=="no"&&z(L,"no")}function J(g){z(Y,g._valid,!0)}function $(){b(V).currentTime>s().maxValue?(b(V).pause(),M(s().maxValue)):b(V).currentTime<s().minValue-.01&&(b(V).pause(),M(s().minValue)),z(R,b(V).currentTime,!0)}var h={get id(){return r()},set id(g=""){r(g),ft()},get src(){return n()},set src(g=""){n(g),ft()},get track(){return s()},set track(g={maxValue:0,minValue:0}){s(g),ft()},get form(){return i()},set form(g){i(g),ft()}},f=Oi();si("10svzuv",g=>{var I=ki();$e(g,I)});var y=oe(f),c=oe(y),E=oe(c);ur(3),ie(c),ie(y);var k=te(y,2),C=oe(k);{var F=g=>{var I=Ti(),je=oe(I),xr=oe(je);{var kr=zt=>{var Xt=Mi();Xt.__click=()=>b(V).paused?b(V).play():b(V).pause();var ji=oe(Xt);{var Yi=gt=>{var Er=Ei();$e(gt,Er)},Fi=gt=>{var Er=Si();$e(gt,Er)};bt(ji,gt=>{b(W)?gt(Yi):gt(Fi,!1)})}ie(Xt),$e(zt,Xt)};bt(xr,zt=>{b(V)&&zt(kr)})}ie(je);var Pn=te(je,2),Je=oe(Pn);En(Je,"--hb-slider-background-color: red;"),Ce(()=>Be(Je,"max",b(o)?.toString?.()||"0")),Ce(()=>Be(Je,"min",b(a)?.toString?.()||"0")),Ce(()=>Be(Je,"maxval",s().maxValue?.toString?.()||"0")),Ce(()=>Be(Je,"minval",s().minValue?.toString?.()||"0")),Ce(()=>Be(Je,"position_value",b(R)?.toString()||"0")),kn(Je,1,"svelte-10svzuv"),ie(Pn),ie(I),rt("changeRangeValues",Je,zt=>{w(zt.detail)}),$e(g,I)};bt(C,g=>{b(S)&&s()&&g(F)})}var B=te(C,2);{var Z=g=>{var I=zi();Be(I,"hide_submit","yes"),En(I,"margin:40px auto 20px auto; display:block"),Ce(()=>Be(I,"submitted",b(L))),Ce(()=>Be(I,"schema",i())),kn(I,1,"svelte-10svzuv"),rt("submit",I,je=>q(je.detail)),rt("update",I,je=>J(je.detail)),$e(g,I)};bt(B,g=>{i()&&g(Z)})}var ne=te(B,2),Me=oe(ne),Te=oe(Me);Te.__click=()=>{x("start")};var We=te(Te,2);We.__click=()=>{M(s().minValue)};var me=te(We,2);_t(me),me.__change=ue;var U=te(me,2);_t(U),U.__change=ue;var pe=te(U,2);_t(pe),pe.__change=ue,ur(),ie(Me);var Ue=te(Me,4),Ie=oe(Ue);_t(Ie),Ie.__change=ue;var Kt=te(Ie,2);_t(Kt),Kt.__change=ue;var Qt=te(Kt,2);_t(Qt),Qt.__change=ue;var Cn=te(Qt,2);Cn.__click=()=>{M(s().maxValue)};var Ai=te(Cn,2);Ai.__click=()=>{x("end")},ie(Ue),ie(ne),ie(k);var Ln=te(k,2),wr=oe(Ln),Ci=oe(wr);{var Li=g=>{var I=Ks();Ce((je,xr,kr)=>ei(I,`duration:
68
+ }:host {font-family:"Roboto", sans-serif;}.form-custom-control-numbers.svelte-10svzuv {width:40px;display:inline-block;padding:0px;}#controls.svelte-10svzuv {display:flex;justify-content:space-around;flex-flow:row wrap;align-items:stretch;}`};function Un(e,t){Br(t,!0),Ei(e,Qi);$t.extend(Fi);let r=Bt(t,"id",7,""),s=Bt(t,"src",7,""),n=Bt(t,"track",23,()=>({maxValue:0,minValue:0})),i=Bt(t,"form",7),a=q(void 0),o=q(0),u=q(void 0),l=q(void 0),f=q(void 0),m=q(void 0),c=q(void 0),g=q(void 0),p=q(0),S=q("no"),C=q(!0),T=q(void 0),L=q(void 0),F=q(!0);ei(()=>{i()&&N(C,!1),n()&&typeof n()=="string"&&n(JSON.parse(n())),console.log("reload all"),console.log(b(L),"log",b(o)),n()&&N(L,n().minValue<(b(L)||0)?b(L)||0:n().minValue,!0),console.log(b(L),"log2")});function le(){n().maxValue=(b(u)||0)*3600+(b(f)||0)*60+(b(c)||0),n().minValue=(b(l)||0)*3600+(b(m)||0)*60+(b(g)||0)}function ce(y,j){t.$$host.dispatchEvent(new CustomEvent(y,{detail:j}))}function z(y){b(T).currentTime=y}Bn.addComponent({repoName:"@htmlbricks/hb-range-slider",version:Hn.version}),Bn.addComponent({repoName:"@htmlbricks/hb-form",version:Hn.version});function x(y){n().minValue=y.minValue,n().maxValue=y.maxValue,b(T).currentTime=y.positionValReal,N(L,y.positionValReal,!0),A(),b(T).currentTime<n().minValue&&z(n().minValue),b(T).currentTime>n().maxValue&&z(n().maxValue),ce("changeTrackValues",{minVaule:n().minValue,maxValue:n().maxValue})}function _(){!n()||!n().minValue&&n().minValue!==0||!n().maxValue&&n().maxValue!==0||(i()?N(S,"yes"):(ce("dispatchTrack",n()),console.log(n())))}function A(){N(u,parseInt((n().maxValue/3600).toString()),!0),N(l,parseInt((n().maxValue/3600).toString()),!0),N(f,parseInt(((n().maxValue-Number(b(u))*60)/60).toString()),!0),N(m,parseInt(((n().minValue-Number(b(l))*60)/60).toString()),!0),N(c,n().maxValue-Number(b(u))*3600-Number(b(f))*60),N(g,n().minValue-Number(b(l))*3600-Number(b(m))*60)}function D(y){N(p,y.target.duration,!0),N(a,b(p),!0),(!n().maxValue||n().maxValue>b(a))&&(n().maxValue=b(a)),(!n().minValue||n().minValue<b(o))&&(n().minValue=b(o)),N(T,t.$$host?.shadowRoot?.querySelector("#video"),!0),A(),console.log("videoElement",b(T)),b(p)/5>100||b(p)/5}function k(y){switch(y){case"start":b(T).currentTime<n().maxValue&&(n().minValue=b(T).currentTime);break;case"end":b(T).currentTime>n().minValue&&(n().maxValue=b(T).currentTime);break;default:return console.error("no vaild point for cue")}A(),ce("changeTrackValues",{minVaule:n().minValue,maxValue:n().maxValue})}function W(y){console.log("formSubmit",y._valid),N(C,y._valid,!0),b(S)==="yes"&&(y._valid&&!(!n()||!n().minValue&&n().minValue!==0||!n().maxValue&&n().maxValue!==0)&&ce("dispatchTrack",Object.assign(n(),y)),console.log(n())),b(S)!=="no"&&N(S,"no")}function K(y){N(C,y._valid,!0)}function $(){b(T).currentTime>n().maxValue?(b(T).pause(),z(n().maxValue)):b(T).currentTime<n().minValue-.01&&(b(T).pause(),z(n().minValue)),N(L,b(T).currentTime,!0)}var h={get id(){return r()},set id(y=""){r(y),ht()},get src(){return s()},set src(y=""){s(y),ht()},get track(){return n()},set track(y={maxValue:0,minValue:0}){n(y),ht()},get form(){return i()},set form(y){i(y),ht()}},d=Xi();ki("10svzuv",y=>{var j=qi();xe(y,j)});var w=se(d),v=se(w),M=se(v);sr(3),ne(v),ne(w);var E=te(w,2),I=se(E);{var H=y=>{var j=Ji(),je=se(j),Sr=se(je);{var Tr=Vt=>{var Xt=Ui(),oo=se(Xt);{var ao=xt=>{var Mr=Wi();xe(xt,Mr)},lo=xt=>{var Mr=Bi();xe(xt,Mr)};gt(oo,xt=>{b(F)?xt(ao):xt(lo,-1)})}ne(Xt),fe("click",Xt,()=>b(T).paused?b(T).play():b(T).pause()),xe(Vt,Xt)};gt(Sr,Vt=>{b(T)&&Vt(Tr)})}ne(je);var Kn=te(je,2),et=se(Kn);Pn(et,"--hb-slider-background-color: red;"),Re(()=>Ke(et,"max",b(a)?.toString?.()||"0")),Re(()=>Ke(et,"min",b(o)?.toString?.()||"0")),Re(()=>Ke(et,"maxval",n().maxValue?.toString?.()||"0")),Re(()=>Ke(et,"minval",n().minValue?.toString?.()||"0")),Re(()=>Ke(et,"position_value",b(L)?.toString()||"0")),Ln(et,1,"svelte-10svzuv"),ne(Kn),ne(j),ot("changeRangeValues",et,Vt=>{x(Vt.detail)}),xe(y,j)};gt(I,y=>{b(p)&&n()&&y(H)})}var B=te(I,2);{var X=y=>{var j=Gi();Ke(j,"hide_submit","yes"),Pn(j,"margin:40px auto 20px auto; display:block"),Re(()=>Ke(j,"submitted",b(S))),Re(()=>Ke(j,"schema",i())),Ln(j,1,"svelte-10svzuv"),ot("submit",j,je=>W(je.detail)),ot("update",j,je=>K(je.detail)),xe(y,j)};gt(B,y=>{i()&&y(X)})}var re=te(B,2),De=se(re),Oe=se(De),Xe=te(Oe,2),pe=te(Xe,2);yt(pe);var G=te(pe,2);yt(G);var ge=te(G,2);yt(ge),sr(),ne(De);var Qe=te(De,4),Ie=se(Qe);yt(Ie);var Zt=te(Ie,2);yt(Zt);var Kt=te(Zt,2);yt(Kt);var Jn=te(Kt,2),eo=te(Jn,2);ne(Qe),ne(re),ne(E);var Gn=te(E,2),Er=se(Gn),to=se(Er);{var ro=y=>{var j=_i();Re((je,Sr,Tr)=>yi(j,`duration:
69
69
  ${je??""}
70
- ${xr??""}
71
- ${kr??""}`),[()=>pt.duration((s().maxValue-s().minValue)*1e3).hours()?pt.duration((s().maxValue-s().minValue)*1e3).format("H")+" hours":"",()=>pt.duration((s().maxValue-s().minValue)*1e3).minutes()?pt.duration((s().maxValue-s().minValue)*1e3).format("m")+" minutes":"",()=>pt.duration(parseInt(((s().maxValue-s().minValue)*1e3).toString())).format("s.SSS")+" seconds"]),$e(g,I)};bt(Ci,g=>{s()?.maxValue&&g(Li)})}ie(wr);var Rn=te(wr,2),Ri=oe(Rn);{var Pi=g=>{var I=Di();I.__click=m,$e(g,I)},Ii=g=>{var I=Vi();I.__click=m,$e(g,I)};bt(Ri,g=>{b(Y)?g(Pi):g(Ii,!1)})}return ie(Rn),ie(Ln),ie(f),Ce(()=>Bt(E,"src",n())),rt("play",c,()=>z(W,!1)),rt("pause",c,()=>z(W,!0)),rt("timeupdate",c,g=>$()),rt("loadedmetadata",c,g=>T(g)),mt(me,()=>b(l),g=>z(l,g)),mt(U,()=>b(p),g=>z(p,g)),mt(pe,()=>b(v),g=>z(v,g)),mt(Ie,()=>b(u),g=>z(u,g)),mt(Kt,()=>b(_),g=>z(_,g)),mt(Qt,()=>b(d),g=>z(d,g)),$e(e,f),Ir(h)}Zs(["click","change"]),customElements.define("hb-editor-video",bi(An,{id:{},src:{},track:{},form:{}},[],[],!0)),Sr.Component=An,Object.defineProperty(Sr,Symbol.toStringTag,{value:"Module"})})(this["editor-video"]=this["editor-video"]||{});
70
+ ${Sr??""}
71
+ ${Tr??""}`),[()=>$t.duration((n().maxValue-n().minValue)*1e3).hours()?$t.duration((n().maxValue-n().minValue)*1e3).format("H")+" hours":"",()=>$t.duration((n().maxValue-n().minValue)*1e3).minutes()?$t.duration((n().maxValue-n().minValue)*1e3).format("m")+" minutes":"",()=>$t.duration(parseInt(((n().maxValue-n().minValue)*1e3).toString())).format("s.SSS")+" seconds"]),xe(y,j)};gt(to,y=>{n()?.maxValue&&y(ro)})}ne(Er);var Zn=te(Er,2),no=se(Zn);{var so=y=>{var j=Zi();fe("click",j,_),xe(y,j)},io=y=>{var j=Ki();fe("click",j,_),xe(y,j)};gt(no,y=>{b(C)?y(so):y(io,-1)})}return ne(Zn),ne(Gn),ne(d),Re(()=>Wt(M,"src",s())),ot("play",v,()=>N(F,!1)),ot("pause",v,()=>N(F,!0)),ot("timeupdate",v,y=>$()),ot("loadedmetadata",v,y=>D(y)),fe("click",Oe,()=>{k("start")}),fe("click",Xe,()=>{z(n().minValue)}),fe("change",pe,le),wt(pe,()=>b(l),y=>N(l,y)),fe("change",G,le),wt(G,()=>b(m),y=>N(m,y)),fe("change",ge,le),wt(ge,()=>b(g),y=>N(g,y)),fe("change",Ie,le),wt(Ie,()=>b(u),y=>N(u,y)),fe("change",Zt,le),wt(Zt,()=>b(f),y=>N(f,y)),fe("change",Kt,le),wt(Kt,()=>b(c),y=>N(c,y)),fe("click",Jn,()=>{z(n().maxValue)}),fe("click",eo,()=>{k("end")}),xe(e,d),Ur(h)}vi(["click","change"]),customElements.define("hb-editor-video",Ci(Un,{id:{},src:{},track:{},form:{}},[],[],{mode:"open"})),zr.Component=Un,Object.defineProperty(zr,Symbol.toStringTag,{value:"Module"})})(this["editor-video"]=this["editor-video"]||{});
72
72
  //# sourceMappingURL=main.iife.js.map