@htmlbricks/hb-editor-video 0.65.23 → 0.66.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +6 -6
- package/main.iife.js.map +1 -1
- package/manifest.json +3 -34
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
(function(Mr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Yn=1,Fn=4,Hn=8,qn=16,Un=1,Bn=2,Tr="[",tr="[!",zr="]",it={},K=Symbol(),Wn="http://www.w3.org/1999/xhtml",rr=!1;var Jn=Array.isArray,Zn=Array.prototype.indexOf,Gn=Array.from,Dt=Object.keys,Vt=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,Kn=Object.getOwnPropertyDescriptors,Qn=Object.prototype,Xn=Array.prototype,Dr=Object.getPrototypeOf,Vr=Object.isExtensible;function es(e){for(var t=0;t<e.length;t++)e[t]()}function Or(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const Z=2,nr=4,sr=8,Te=16,ze=32,Ye=64,Ot=128,me=512,Q=1024,se=2048,De=4096,pe=8192,Ve=16384,Nt=32768,ot=65536,Nr=1<<17,ir=1<<18,Ge=1<<19,ts=1<<20,Ke=32768,or=1<<21,ar=1<<22,Fe=1<<23,At=Symbol("$state"),Ar=Symbol("legacy props"),rs=Symbol(""),at=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Cr=3,lt=8;function ns(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ss(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function is(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function os(e){throw new Error("https://svelte.dev/e/effect_orphan")}function as(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ls(){throw new Error("https://svelte.dev/e/hydration_failed")}function us(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function cs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ds(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function vs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ct(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function hs(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let N=!1;function ye(e){N=e}let F;function ce(e){if(e===null)throw Ct(),it;return F=e}function lr(){return ce(we(F))}function ie(e){if(N){if(we(F)!==null)throw Ct(),it;F=e}}function ur(e=1){if(N){for(var t=e,r=F;t--;)r=we(r);F=r}}function Lr(e=!0){for(var t=0,r=F;;){if(r.nodeType===lt){var n=r.data;if(n===zr){if(t===0)return r;t-=1}else(n===Tr||n===tr)&&(t+=1)}var s=we(r);e&&r.remove(),r=s}}function bs(e){if(!e||e.nodeType!==lt)throw Ct(),it;return e.data}function Rr(e){return e===this.v}function ms(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Pr(e){return!ms(e,this.v)}let _s=!1,fe=null;function ut(e){fe=e}function Ir(e,t=!1,r){fe={p:fe,i:!1,c:null,e:null,s:e,x:null,l:null}}function jr(e){var t=fe,r=t.e;if(r!==null){t.e=null;for(var n of r)on(n)}return e!==void 0&&(t.x=e),t.i=!0,fe=t.p,e??{}}function Yr(){return!0}let Qe=[];function Fr(){var e=Qe;Qe=[],es(e)}function yt(e){if(Qe.length===0&&!wt){var t=Qe;queueMicrotask(()=>{t===Qe&&Fr()})}Qe.push(e)}function gs(){for(;Qe.length>0;)Fr()}function Hr(e){var t=O;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 ct(e,t)}function ct(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,de=null,ve=[],Pt=null,cr=!1,wt=!1;class _e{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#i=[];#s=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){ve=[],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.#c(),this.is_deferred()?(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects)):(Rt=this,P=null,Ur(r.render_effects),Ur(r.effects),Rt=null,this.#l?.resolve()),de=null}#o(t,r){t.f^=Q;for(var n=t.first;n!==null;){var s=n.f,i=(s&(ze|Ye))!==0,o=i&&(s&Q)!==0,a=o||(s&pe)!==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&nr)!==0?r.effects.push(n):St(n)&&((n.f&Te)!==0&&r.block_effects.push(n),Mt(n));var l=n.first;if(l!==null){n=l;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)u===r.effect&&(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects),r=r.parent),n=u.next,u=u.parent}}#a(t){for(const r of t)((r.f&se)!==0?this.#i:this.#s).push(r),this.#u(r.deps),ee(r,Q)}#u(t){if(t!==null)for(const r of t)(r.f&Z)===0||(r.f&Ke)===0||(r.f^=Ke,this.#u(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Fe)===0&&(this.current.set(t,t.v),de?.set(t,t.v))}activate(){P=this,this.apply()}deactivate(){P===this&&(P=null,de=null)}flush(){if(this.activate(),ve.length>0){if(qr(),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()}#c(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#f()}#f(){if(Lt.size>1){this.previous.clear();var t=de,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[l,u]of this.current){if(i.current.has(l))if(r&&u!==i.current.get(l))i.current.set(l,u);else continue;o.push(l)}if(o.length===0)continue;const a=[...i.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){var s=ve;ve=[];const l=new Set,u=new Map;for(const _ of o)Br(_,a,l,u);if(ve.length>0){P=i,i.apply();for(const _ of ve)i.#o(_,n);i.deactivate()}ve=s}}P=null,de=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,De),Xe(t);this.#i=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=Or()).promise}static ensure(){if(P===null){const t=P=new _e;Lt.add(P),wt||_e.enqueue(()=>{P===t&&t.flush()})}return P}static enqueue(t){yt(t)}apply(){}}function ft(e){var t=wt;wt=!0;try{for(var r;;){if(gs(),ve.length===0&&(P?.flush(),ve.length===0))return Pt=null,r;qr()}}finally{wt=t}}function qr(){var e=qe;cr=!0;var t=null;try{var r=0;for(Ht(!0);ve.length>0;){var n=_e.ensure();if(r++>1e3){var s,i;ps()}n.process(ve),He.clear()}}finally{cr=!1,Ht(e),Pt=null}}function ps(){try{as()}catch(e){ct(e,Pt)}}let Oe=null;function Ur(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Ve|pe))===0&&St(n)&&(Oe=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),Oe?.size>0)){He.clear();for(const s of Oe){if((s.f&(Ve|pe))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)Oe.has(o)&&(Oe.delete(o),i.push(o)),o=o.parent;for(let a=i.length-1;a>=0;a--){const l=i[a];(l.f&(Ve|pe))===0&&Mt(l)}}Oe.clear()}}Oe=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&Z)!==0?Br(s,t,r,n):(i&(ar|Te))!==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&Z)!==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(cr&&t===O&&(r&Te)!==0&&(r&ir)===0)return;if((r&(Ye|ze))!==0){if((r&Q)===0)return;t.f^=Q}}ve.push(t)}function ys(e){let t=0,r=$t(0),n;return()=>{Ft()&&(h(r),br(()=>(t===0&&(n=_r(()=>e(()=>xt(r)))),t+=1,()=>{yt(()=>{t-=1,t===0&&(n?.(),n=void 0,xt(r))})})))}}var ws=ot|Ge|Ot;function $s(e,t,r){new xs(e,t,r)}class xs{parent;#t=!1;#e;#r=N?F:null;#n;#l;#i;#s=null;#o=null;#a=null;#u=null;#c=null;#f=0;#d=0;#h=!1;#v=null;#p=ys(()=>(this.#v=$t(this.#f),()=>{this.#v=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=O.b,this.#t=!!this.#n.pending,this.#i=mr(()=>{if(O.b=this,N){const i=this.#r;lr(),i.nodeType===lt&&i.data===tr?this.#w():this.#y()}else{var s=this.#_();try{this.#s=Ce(()=>n(s))}catch(i){this.error(i)}this.#d>0?this.#m():this.#t=!1}return()=>{this.#c?.remove()}},ws),N&&(this.#e=F)}#y(){try{this.#s=Ce(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#n.pending;t&&(this.#o=Ce(()=>t(this.#e)),_e.enqueue(()=>{var r=this.#_();this.#s=this.#b(()=>(_e.ensure(),Ce(()=>this.#l(r)))),this.#d>0?this.#m():(kt(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#_(){var t=this.#e;return this.#t&&(this.#c=Ne(),this.#e.before(this.#c),t=this.#c),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#b(t){var r=O,n=D,s=fe;he(this.#i),X(this.#i),ut(this.#i.ctx);try{return t()}catch(i){return Hr(i),null}finally{he(r),X(n),ut(s)}}#m(){const t=this.#n.pending;this.#s!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#c),dn(this.#s,this.#u)),this.#o===null&&(this.#o=Ce(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#o&&kt(this.#o,()=>{this.#o=null}),this.#u&&(this.#e.before(this.#u),this.#u=null))}update_pending_count(t){this.#g(t),this.#f+=t,this.#v&&jt(this.#v,this.#f)}get_effect_pending(){return this.#p(),h(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),N&&(ce(this.#r),ur(),ce(Lr()));var s=!1,i=!1;const o=()=>{if(s){hs();return}s=!0,i&&vs(),_e.ensure(),this.#f=0,this.#a!==null&&kt(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#s=this.#b(()=>(this.#h=!1,Ce(()=>this.#l(this.#e)))),this.#d>0?this.#m():this.#t=!1};var a=D;try{X(null),i=!0,r?.(t,o),i=!1}catch(l){ct(l,this.#i&&this.#i.parent)}finally{X(a)}n&&yt(()=>{this.#a=this.#b(()=>{_e.ensure(),this.#h=!0;try{return Ce(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return ct(l,this.#i.parent),null}finally{this.#h=!1}})})}}function ks(e,t,r,n){const s=fr;if(r.length===0&&e.length===0){n(t.map(s));return}var i=P,o=O,a=Es();function l(){Promise.all(r.map(u=>Ss(u))).then(u=>{a();try{n([...t.map(s),...u])}catch(_){(o.f&Ve)===0&&ct(_,o)}i?.deactivate(),It()}).catch(u=>{ct(u,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{i?.deactivate(),It()}}):l()}function Es(){var e=O,t=D,r=fe,n=P;return function(i=!0){he(e),X(t),ut(r),i&&n?.activate()}}function It(){he(null),X(null),ut(null)}function fr(e){var t=Z|se,r=D!==null&&(D.f&Z)!==0?D:null;return O!==null&&(O.f|=Ge),{ctx:fe,deps:null,effects:null,equals:Rr,f:t,fn:e,reactions:null,rv:0,v:K,wv:0,parent:r??O,ac:null}}function Ss(e,t){let r=O;r===null&&ns();var n=r.b,s=void 0,i=$t(K),o=!D,a=new Map;return js(()=>{var l=Or();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{u===P&&u.committed&&u.deactivate(),It()})}catch(c){l.reject(c),It()}var u=P;if(o){var _=!n.is_pending();n.update_pending_count(1),u.increment(_),a.get(u)?.reject(at),a.delete(u),a.set(u,l)}const g=(c,b=void 0)=>{if(u.activate(),b)b!==at&&(i.f|=Fe,jt(i,b));else{(i.f&Fe)!==0&&(i.f^=Fe),jt(i,c);for(const[S,C]of a){if(a.delete(S),S===u)break;C.reject(at)}}o&&(n.update_pending_count(-1),u.decrement(_))};l.promise.then(g,c=>g(null,c||"unknown"))}),sn(()=>{for(const l of a.values())l.reject(at)}),new Promise(l=>{function u(_){function g(){_===s?l(i):u(s)}_.then(g,g)}u(s)})}function Ms(e){const t=fr(e);return t.equals=Pr,t}function Jr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ae(t[r])}}function Ts(e){for(var t=e.parent;t!==null;){if((t.f&Z)===0)return(t.f&Ve)===0?t:null;t=t.parent}return null}function dr(e){var t,r=O;he(Ts(e));try{e.f&=~Ke,Jr(e),t=gn(e)}finally{he(r)}return t}function Zr(e){var t=dr(e);if(e.equals(t)||(P?.is_fork||(e.v=t),e.wv=mn()),!tt)if(de!==null)Ft()&&de.set(e,t);else{var r=(e.f&me)===0?De:Q;ee(e,r)}}let vr=new Set;const He=new Map;let Gr=!1;function $t(e,t){var r={f:0,v:e,reactions:null,equals:Rr,rv:0,wv:0};return r}function I(e,t){const r=$t(e);return Us(r),r}function zs(e,t=!1,r=!0){const n=$t(e);return t||(n.equals=Pr),n}function z(e,t,r=!1){D!==null&&(!xe||(D.f&Nr)!==0)&&Yr()&&(D.f&(Z|Te|ar|Nr))!==0&&!Le?.includes(e)&&ds();let n=r?et(t):t;return jt(e,n)}function jt(e,t){if(!e.equals(t)){var r=e.v;tt?He.set(e,t):He.set(e,r),e.v=t;var n=_e.ensure();n.capture(e,r),(e.f&Z)!==0&&((e.f&se)!==0&&dr(e),ee(e,(e.f&me)!==0?Q:De)),e.wv=mn(),Kr(e,se),O!==null&&(O.f&Q)!==0&&(O.f&(ze|Ye))===0&&(be===null?Bs([e]):be.push(e)),!n.is_fork&&vr.size>0&&!Gr&&Ds()}return t}function Ds(){Gr=!1;var e=qe;Ht(!0);const t=Array.from(vr);try{for(const r of t)(r.f&Q)!==0&&ee(r,De),St(r)&&Mt(r)}finally{Ht(e)}vr.clear()}function xt(e){z(e,e.v+1)}function Kr(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&Z)!==0){var l=i;de?.delete(l),(o&Ke)===0&&(o&me&&(i.f|=Ke),Kr(l,De))}else a&&((o&Te)!==0&&Oe!==null&&Oe.add(i),Xe(i))}}function et(e){if(typeof e!="object"||e===null||At in e)return e;const t=Dr(e);if(t!==Qn&&t!==Xn)return e;var r=new Map,n=Jn(e),s=I(0),i=rt,o=a=>{if(rt===i)return a();var l=D,u=rt;X(null),bn(i);var _=a();return X(l),bn(u),_};return n&&r.set("length",I(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&cs();var _=r.get(l);return _===void 0?_=o(()=>{var g=I(u.value);return r.set(l,g),g}):z(_,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const _=o(()=>I(K));r.set(l,_),xt(s)}}else z(u,K),xt(s);return!0},get(a,l,u){if(l===At)return e;var _=r.get(l),g=l in a;if(_===void 0&&(!g||Ze(a,l)?.writable)&&(_=o(()=>{var b=et(g?a[l]:K),S=I(b);return S}),r.set(l,_)),_!==void 0){var c=h(_);return c===K?void 0:c}return Reflect.get(a,l,u)},getOwnPropertyDescriptor(a,l){var u=Reflect.getOwnPropertyDescriptor(a,l);if(u&&"value"in u){var _=r.get(l);_&&(u.value=h(_))}else if(u===void 0){var g=r.get(l),c=g?.v;if(g!==void 0&&c!==K)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(a,l){if(l===At)return!0;var u=r.get(l),_=u!==void 0&&u.v!==K||Reflect.has(a,l);if(u!==void 0||O!==null&&(!_||Ze(a,l)?.writable)){u===void 0&&(u=o(()=>{var c=_?et(a[l]):K,b=I(c);return b}),r.set(l,u));var g=h(u);if(g===K)return!1}return _},set(a,l,u,_){var g=r.get(l),c=l in a;if(n&&l==="length")for(var b=u;b<g.v;b+=1){var S=r.get(b+"");S!==void 0?z(S,K):b in a&&(S=o(()=>I(K)),r.set(b+"",S))}if(g===void 0)(!c||Ze(a,l)?.writable)&&(g=o(()=>I(void 0)),z(g,et(u)),r.set(l,g));else{c=g.v!==K;var C=o(()=>et(u));z(g,C)}var H=Reflect.getOwnPropertyDescriptor(a,l);if(H?.set&&H.set.call(_,u),!c){if(n&&typeof l=="string"){var V=r.get("length"),L=Number(l);Number.isInteger(L)&&L>=V.v&&z(V,L+1)}xt(s)}return!0},ownKeys(a){h(s);var l=Reflect.ownKeys(a).filter(g=>{var c=r.get(g);return c===void 0||c.v!==K});for(var[u,_]of r)_.v!==K&&!(u in a)&&l.push(u);return l},setPrototypeOf(){fs()}})}var Qr,Xr,en,tn;function hr(){if(Qr===void 0){Qr=window,Xr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;en=Ze(t,"firstChild").get,tn=Ze(t,"nextSibling").get,Vr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Vr(r)&&(r.__t=void 0)}}function Ne(e=""){return document.createTextNode(e)}function dt(e){return en.call(e)}function we(e){return tn.call(e)}function oe(e,t){if(!N)return dt(e);var r=dt(F);return r===null&&(r=F.appendChild(Ne())),ce(r),r}function te(e,t=1,r=!1){let n=N?F:e;for(var s;t--;)s=n,n=we(n);if(!N)return n;if(r&&n?.nodeType!==Cr){var i=Ne();return n===null?s?.after(i):n.before(i),ce(i),i}return ce(n),n}function Vs(e){e.textContent=""}function Os(){return!1}let rn=!1;function nn(){rn||(rn=!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=O;X(null),he(null);try{return e()}finally{X(t),he(r)}}function Ns(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),nn()}function As(e){O===null&&(D===null&&os(),is()),tt&&ss()}function Cs(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function $e(e,t,r){var n=O;n!==null&&(n.f&pe)!==0&&(e|=pe);var s={ctx:fe,deps:null,nodes_start:null,nodes_end:null,f:e|se|me,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&Te)!==0&&(e&ot)!==0&&i!==null&&(i.f|=ot)),i!==null&&(i.parent=n,n!==null&&Cs(i,n),D!==null&&(D.f&Z)!==0&&(e&Ye)===0)){var o=D;(o.effects??=[]).push(i)}return s}function Ft(){return D!==null&&!xe}function sn(e){const t=$e(sr,null,!1);return ee(t,Q),t.teardown=e,t}function Ls(e){As();var t=O.f,r=!D&&(t&ze)!==0&&(t&Nt)===0;if(r){var n=fe;(n.e??=[]).push(e)}else return on(e)}function on(e){return $e(nr|ts,e,!1)}function Rs(e){_e.ensure();const t=$e(Ye|Ge,e,!0);return()=>{ae(t)}}function Ps(e){_e.ensure();const t=$e(Ye|Ge,e,!0);return(r={})=>new Promise(n=>{r.outro?kt(t,()=>{ae(t),n(void 0)}):(ae(t),n(void 0))})}function Is(e){return $e(nr,e,!1)}function js(e){return $e(ar|Ge,e,!0)}function br(e,t=0){return $e(sr|t,e,!0)}function Ae(e,t=[],r=[],n=[]){ks(n,t,r,s=>{$e(sr,()=>e(...s.map(h)),!0)})}function mr(e,t=0){var r=$e(Te|t,e,!0);return r}function Ce(e){return $e(ze|Ge,e,!0)}function an(e){var t=e.teardown;if(t!==null){const r=tt,n=D;vn(!0),X(null);try{t.call(null)}finally{vn(r),X(n)}}}function ln(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Yt(()=>{s.abort(at)});var n=r.next;(r.f&Ye)!==0?r.parent=null:ae(r,t),r=n}}function Ys(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&ze)===0&&ae(t),t=r}}function ae(e,t=!0){var r=!1;(t||(e.f&ir)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Fs(e.nodes_start,e.nodes_end),r=!0),ln(e,t&&!r),qt(e,0),ee(e,Ve);var n=e.transitions;if(n!==null)for(const i of n)i.stop();an(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 Fs(e,t){for(;e!==null;){var r=e===t?null:we(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=[];cn(e,n,!0),Hs(n,()=>{r&&ae(e),t&&t()})}function Hs(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function cn(e,t,r){if((e.f&pe)===0){if(e.f^=pe,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&ot)!==0||(n.f&ze)!==0&&(e.f&Te)!==0;cn(n,t,i?r:!1),n=s}}}function qs(e){fn(e,!0)}function fn(e,t){if((e.f&pe)!==0){e.f^=pe,(e.f&Q)===0&&(ee(e,se),Xe(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&ot)!==0||(r.f&ze)!==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 dn(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:we(r);t.append(r),r=s}}let qe=!1;function Ht(e){qe=e}let tt=!1;function vn(e){tt=e}let D=null,xe=!1;function X(e){D=e}let O=null;function he(e){O=e}let Le=null;function Us(e){D!==null&&(Le===null?Le=[e]:Le.push(e))}let re=null,le=0,be=null;function Bs(e){be=e}let hn=1,Et=0,rt=Et;function bn(e){rt=e}function mn(){return++hn}function St(e){var t=e.f;if((t&se)!==0)return!0;if(t&Z&&(e.f&=~Ke),(t&De)!==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)&&Zr(i),i.wv>e.wv)return!0}(t&me)!==0&&de===null&&ee(e,Q)}return!1}function _n(e,t,r=!0){var n=e.reactions;if(n!==null&&!Le?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&Z)!==0?_n(i,t,!1):t===i&&(r?ee(i,se):(i.f&Q)!==0&&ee(i,De),Xe(i))}}function gn(e){var t=re,r=le,n=be,s=D,i=Le,o=fe,a=xe,l=rt,u=e.f;re=null,le=0,be=null,D=(u&(ze|Ye))===0?e:null,Le=null,ut(e.ctx),xe=!1,rt=++Et,e.ac!==null&&(Yt(()=>{e.ac.abort(at)}),e.ac=null);try{e.f|=or;var _=e.fn,g=_(),c=e.deps;if(re!==null){var b;if(qt(e,le),c!==null&&le>0)for(c.length=le+re.length,b=0;b<re.length;b++)c[le+b]=re[b];else e.deps=c=re;if(qe&&Ft()&&(e.f&me)!==0)for(b=le;b<c.length;b++)(c[b].reactions??=[]).push(e)}else c!==null&&le<c.length&&(qt(e,le),c.length=le);if(Yr()&&be!==null&&!xe&&c!==null&&(e.f&(Z|De|se))===0)for(b=0;b<be.length;b++)_n(be[b],e);return s!==null&&s!==e&&(Et++,be!==null&&(n===null?n=be:n.push(...be))),(e.f&Fe)!==0&&(e.f^=Fe),g}catch(S){return Hr(S)}finally{e.f^=or,re=t,le=r,be=n,D=s,Le=i,ut(o),xe=a,rt=l}}function Ws(e,t){let r=t.reactions;if(r!==null){var n=Zn.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&Z)!==0&&(re===null||!re.includes(t))&&(ee(t,De),(t.f&me)!==0&&(t.f^=me,t.f&=~Ke),Jr(t),qt(t,0))}function qt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Ws(e,r[n])}function Mt(e){var t=e.f;if((t&Ve)===0){ee(e,Q);var r=O,n=qe;O=e,qe=!0;try{(t&Te)!==0?Ys(e):ln(e),an(e);var s=gn(e);e.teardown=typeof s=="function"?s:null,e.wv=hn;var i;rr&&_s&&(e.f&se)!==0&&e.deps}finally{qe=n,O=r}}}async function Js(){await Promise.resolve(),ft()}function h(e){var t=e.f,r=(t&Z)!==0;if(D!==null&&!xe){var n=O!==null&&(O.f&Ve)!==0;if(!n&&!Le?.includes(e)){var s=D.deps;if((D.f&or)!==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(tt){if(He.has(e))return He.get(e);if(r){var o=e,a=o.v;return((o.f&Q)===0&&o.reactions!==null||yn(o))&&(a=dr(o)),He.set(o,a),a}}else r&&!de?.has(e)&&(o=e,St(o)&&Zr(o),qe&&Ft()&&(o.f&me)===0&&pn(o));if(de?.has(e))return de.get(e);if((e.f&Fe)!==0)throw e.v;return e.v}function pn(e){if(e.deps!==null){e.f^=me;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Z)!==0&&(t.f&me)===0&&pn(t)}}function yn(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&Z)!==0&&yn(t))return!0;return!1}function _r(e){var t=xe;try{return xe=!0,e()}finally{xe=t}}const Zs=-7169;function ee(e,t){e.f=e.f&Zs|t}const wn=new Set,gr=new Set;function Gs(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 nt(e,t,r,n,s){var i={capture:n,passive:s},o=Gs(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&sn(()=>{t.removeEventListener(e,o,i)})}function Ks(e){for(var t=0;t<e.length;t++)wn.add(e[t]);for(var r of gr)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 l=s.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;l<=u&&(o=l)}if(i=s[o]||e.target,i!==t){Vt(e,"currentTarget",{configurable:!0,get(){return i||r}});var _=D,g=O;X(null),he(null);try{for(var c,b=[];i!==null;){var S=i.assignedSlot||i.parentNode||i.host||null;try{var C=i["__"+n];C!=null&&(!i.disabled||e.target===i)&&C.call(i,e)}catch(H){c?b.push(H):c=H}if(e.cancelBubble||S===t||S===null)break;i=S}if(c){for(let H of b)queueMicrotask(()=>{throw H});throw c}}finally{e.__root=t,delete e.currentTarget,X(_),he(g)}}}function Qs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function vt(e,t){var r=O;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Re(e,t){var r=(t&Un)!==0,n=(t&Bn)!==0,s,i=!e.startsWith("<!>");return()=>{if(N)return vt(F,null),F;s===void 0&&(s=Qs(i?e:"<!>"+e),r||(s=dt(s)));var o=n||Xr?document.importNode(s,!0):s.cloneNode(!0);if(r){var a=dt(o),l=o.lastChild;vt(a,l)}else vt(o,o);return o}}function Xs(e=""){if(!N){var t=Ne(e+"");return vt(t,t),t}var r=F;return r.nodeType!==Cr&&(r.before(r=Ne()),ce(r)),vt(r,r),r}function ge(e,t){if(N){var r=O;((r.f&Nt)===0||r.nodes_end===null)&&(r.nodes_end=F),lr();return}e!==null&&e.before(t)}const ei=["touchstart","touchmove"];function ti(e){return ei.includes(e)}function ri(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function xn(e,t){return kn(e,t)}function ni(e,t){hr(),t.intro=t.intro??!1;const r=t.target,n=N,s=F;try{for(var i=dt(r);i&&(i.nodeType!==lt||i.data!==Tr);)i=we(i);if(!i)throw it;ye(!0),ce(i);const o=kn(e,{...t,anchor:i});return ye(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==it&&console.warn("Failed to hydrate: ",o),t.recover===!1&&ls(),hr(),Vs(r),ye(!1),xn(e,t)}finally{ye(n),ce(s)}}const ht=new Map;function kn(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:o=!0}){hr();var a=new Set,l=g=>{for(var c=0;c<g.length;c++){var b=g[c];if(!a.has(b)){a.add(b);var S=ti(b);t.addEventListener(b,Tt,{passive:S});var C=ht.get(b);C===void 0?(document.addEventListener(b,Tt,{passive:S}),ht.set(b,1)):ht.set(b,C+1)}}};l(Gn(wn)),gr.add(l);var u=void 0,_=Ps(()=>{var g=r??t.appendChild(Ne());return $s(g,{pending:()=>{}},c=>{if(i){Ir({});var b=fe;b.c=i}if(s&&(n.$$events=s),N&&vt(c,null),u=e(c,n)||{},N&&(O.nodes_end=F,F===null||F.nodeType!==lt||F.data!==zr))throw Ct(),it;i&&jr()}),()=>{for(var c of a){t.removeEventListener(c,Tt);var b=ht.get(c);--b===0?(document.removeEventListener(c,Tt),ht.delete(c)):ht.set(c,b)}gr.delete(l),g!==r&&g.parentNode?.removeChild(g)}});return pr.set(u,_),u}let pr=new WeakMap;function si(e,t){const r=pr.get(e);return r?(pr.delete(e),r(t)):Promise.resolve()}class ii{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,r=!0){this.anchor=t,this.#l=r}#i=()=>{var t=P;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)qs(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 u=document.createDocumentFragment();dn(o,u),u.append(Ne()),this.#r.set(i,{effect:o,fragment:u})}else ae(o);this.#n.delete(i),this.#e.delete(i)};this.#l||!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=Os();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(s){var i=document.createDocumentFragment(),o=Ne();i.append(o),this.#r.set(t,{effect:Ce(()=>r(o)),fragment:i})}else this.#e.set(t,Ce(()=>r(this.anchor)));if(this.#t.set(n,t),s){for(const[a,l]of this.#e)a===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[a,l]of this.#r)a===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#i),n.ondiscard(this.#s)}else N&&(this.anchor=F),this.#i()}}function bt(e,t,r=!1){N&&lr();var n=new ii(e),s=r?ot:0;function i(o,a){if(N){const u=bs(e)===tr;if(o===u){var l=Lr();ce(l),n.anchor=l,ye(!1),n.ensure(o,a),ye(!0);return}}n.ensure(o,a)}mr(()=>{var o=!1;t((a,l=!0)=>{o=!0,i(l,a)}),o||i(!1,null)},s)}function oi(e,t){let r=null,n=N;var s;if(N){r=F;for(var i=dt(document.head);i!==null&&(i.nodeType!==lt||i.data!==e);)i=we(i);if(i===null)ye(!1);else{var o=we(i);i.remove(),ce(o)}}N||(s=document.head.appendChild(Ne()));try{mr(()=>t(s),ir)}finally{n&&(ye(!0),ce(r))}}function ai(e,t){Is(()=>{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 li(e,t,r){var n=""+e;return n}function ui(e,t){return e==null?null:String(e)}function En(e,t,r,n,s,i){var o=e.__className;if(N||o!==r||o===void 0){var a=li(r);(!N||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return i}function Sn(e,t,r,n){var s=e.__style;if(N||s!==t){var i=ui(t);(!N||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const ci=Symbol("is custom element"),fi=Symbol("is html");function mt(e){if(N){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;Ut(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var s=e.checked;Ut(e,"checked",null),e.checked=s}}};e.__on_r=r,yt(r),nn()}}function Ut(e,t,r,n){var s=di(e);N&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[rs]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Mn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ue(e,t,r){var n=D,s=O;let i=N;N&&ye(!1),X(null),he(null);try{t!=="style"&&(yr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Mn(e).includes(t):r&&typeof r=="object")?e[t]=r:Ut(e,t,r==null?r:String(r))}finally{X(n),he(s),i&&ye(!0)}}function di(e){return e.__attributes??={[ci]:e.nodeName.includes("-"),[fi]:e.namespaceURI===Wn}}var yr=new Map;function Mn(e){var t=e.getAttribute("is")||e.nodeName,r=yr.get(t);if(r)return r;yr.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Kn(s);for(var o in n)n[o].set&&r.push(o);s=Dr(s)}return r}function _t(e,t,r=t){var n=new WeakSet;Ns(e,"input",async s=>{var i=s?e.defaultValue:e.value;if(i=wr(e)?$r(i):i,r(i),P!==null&&n.add(P),await Js(),i!==(i=t())){var o=e.selectionStart,a=e.selectionEnd,l=e.value.length;if(e.value=i??"",a!==null){var u=e.value.length;o===a&&a===l&&u>l?(e.selectionStart=u,e.selectionEnd=u):(e.selectionStart=o,e.selectionEnd=Math.min(a,u))}}}),(N&&e.defaultValue!==e.value||_r(t)==null&&e.value)&&(r(wr(e)?$r(e.value):e.value),P!==null&&n.add(P)),br(()=>{var s=t();if(e===document.activeElement){var i=Rt??P;if(n.has(i))return}wr(e)&&s===$r(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function wr(e){var t=e.type;return t==="number"||t==="range"}function $r(e){return e===""?null:+e}let Bt=!1;function vi(e){var t=Bt;try{return Bt=!1,[e(),Bt]}finally{Bt=t}}function Wt(e,t,r,n){var s=(r&Hn)!==0,i=(r&qn)!==0,o=n,a=!0,l=()=>(a&&(a=!1,o=i?_r(n):n),o),u;if(s){var _=At in e||Ar in e;u=Ze(e,t)?.set??(_&&t in e?L=>e[t]=L:void 0)}var g,c=!1;s?[g,c]=vi(()=>e[t]):g=e[t],g===void 0&&n!==void 0&&(g=l(),u&&(us(),u(g)));var b;if(b=()=>{var L=e[t];return L===void 0?l():(a=!0,L)},(r&Fn)===0)return b;if(u){var S=e.$$legacy;return(function(L,B){return arguments.length>0?((!B||S||c)&&u(B?b():L),L):b()})}var C=!1,H=((r&Yn)!==0?fr:Ms)(()=>(C=!1,b()));s&&h(H);var V=O;return(function(L,B){if(arguments.length>0){const Pe=B?h(H):s?et(L):L;return z(H,Pe),C=!0,o!==void 0&&(o=Pe),L}return tt&&C||(V.f&Ve)!==0?H.v:h(H)})}function hi(e){return new bi(e)}class bi{#t;#e;constructor(t){var r=new Map,n=(i,o)=>{var a=zs(o,!1,!1);return r.set(i,a),a};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return h(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===Ar?!0:(h(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?ni:xn)(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=()=>{si(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 Tn;typeof HTMLElement=="function"&&(Tn=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),ge(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=mi(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=hi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Rs(()=>{br(()=>{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 mi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function _i(e,t,r,n,s,i){let o=class extends Tn{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(l){l=Jt(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var _=Ze(u,a)?.get;_?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{Vt(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}function zn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zt={exports:{}},gi=Zt.exports,Dn;function pi(){return Dn||(Dn=1,(function(e,t){(function(r,n){e.exports=n()})(gi,(function(){var r=1e3,n=6e4,s=36e5,i="millisecond",o="second",a="minute",l="hour",u="day",_="week",g="month",c="quarter",b="year",S="date",C="Invalid Date",H=/^(\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,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(y){var m=["th","st","nd","rd"],f=y%100;return"["+y+(m[(f-20)%10]||m[f]||m[0])+"]"}},B=function(y,m,f){var w=String(y);return!w||w.length>=m?y:""+Array(m+1-w.length).join(f)+y},Pe={s:B,z:function(y){var m=-y.utcOffset(),f=Math.abs(m),w=Math.floor(f/60),d=f%60;return(m<=0?"+":"-")+B(w,2,"0")+":"+B(d,2,"0")},m:function y(m,f){if(m.date()<f.date())return-y(f,m);var w=12*(f.year()-m.year())+(f.month()-m.month()),d=m.clone().add(w,g),E=f-d<0,k=m.clone().add(w+(E?-1:1),g);return+(-(w+(f-d)/(E?d-k:k-d))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M:g,y:b,w:_,d:u,D:S,h:l,m:a,s:o,ms:i,Q:c}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},ke="en",T={};T[ke]=L;var $="$isDayjsObject",v=function(y){return y instanceof q||!(!y||!y[$])},A=function y(m,f,w){var d;if(!m)return ke;if(typeof m=="string"){var E=m.toLowerCase();T[E]&&(d=E),f&&(T[E]=f,d=E);var k=m.split("-");if(!d&&k.length>1)return y(k[0])}else{var R=m.name;T[R]=m,d=R}return!w&&d&&(ke=d),d||!w&&ke},M=function(y,m){if(v(y))return y.clone();var f=typeof m=="object"?m:{};return f.date=y,f.args=arguments,new q(f)},x=Pe;x.l=A,x.i=v,x.w=function(y,m){return M(y,{locale:m.$L,utc:m.$u,x:m.$x,$offset:m.$offset})};var q=(function(){function y(f){this.$L=A(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[$]=!0}var m=y.prototype;return m.parse=function(f){this.$d=(function(w){var d=w.date,E=w.utc;if(d===null)return new Date(NaN);if(x.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var k=d.match(H);if(k){var R=k[2]-1||0,j=(k[7]||"0").substring(0,3);return E?new Date(Date.UTC(k[1],R,k[3]||1,k[4]||0,k[5]||0,k[6]||0,j)):new Date(k[1],R,k[3]||1,k[4]||0,k[5]||0,k[6]||0,j)}}return new Date(d)})(f),this.init()},m.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()},m.$utils=function(){return x},m.isValid=function(){return this.$d.toString()!==C},m.isSame=function(f,w){var d=M(f);return this.startOf(w)<=d&&d<=this.endOf(w)},m.isAfter=function(f,w){return M(f)<this.startOf(w)},m.isBefore=function(f,w){return this.endOf(w)<M(f)},m.$g=function(f,w,d){return x.u(f)?this[w]:this.set(d,f)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(f,w){var d=this,E=!!x.u(w)||w,k=x.p(f),R=function(Se,G){var ue=x.w(d.$u?Date.UTC(d.$y,G,Se):new Date(d.$y,G,Se),d);return E?ue:ue.endOf(u)},j=function(Se,G){return x.w(d.toDate()[Se].apply(d.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(G)),d)},U=this.$W,J=this.$M,ne=this.$D,Be="set"+(this.$u?"UTC":"");switch(k){case b:return E?R(1,0):R(31,11);case g:return E?R(1,J):R(0,J+1);case _:var Ee=this.$locale().weekStart||0,Ie=(U<Ee?U+7:U)-Ee;return R(E?ne-Ie:ne+(6-Ie),J);case u:case S:return j(Be+"Hours",0);case l:return j(Be+"Minutes",1);case a:return j(Be+"Seconds",2);case o:return j(Be+"Milliseconds",3);default:return this.clone()}},m.endOf=function(f){return this.startOf(f,!1)},m.$set=function(f,w){var d,E=x.p(f),k="set"+(this.$u?"UTC":""),R=(d={},d[u]=k+"Date",d[S]=k+"Date",d[g]=k+"Month",d[b]=k+"FullYear",d[l]=k+"Hours",d[a]=k+"Minutes",d[o]=k+"Seconds",d[i]=k+"Milliseconds",d)[E],j=E===u?this.$D+(w-this.$W):w;if(E===g||E===b){var U=this.clone().set(S,1);U.$d[R](j),U.init(),this.$d=U.set(S,Math.min(this.$D,U.daysInMonth())).$d}else R&&this.$d[R](j);return this.init(),this},m.set=function(f,w){return this.clone().$set(f,w)},m.get=function(f){return this[x.p(f)]()},m.add=function(f,w){var d,E=this;f=Number(f);var k=x.p(w),R=function(J){var ne=M(E);return x.w(ne.date(ne.date()+Math.round(J*f)),E)};if(k===g)return this.set(g,this.$M+f);if(k===b)return this.set(b,this.$y+f);if(k===u)return R(1);if(k===_)return R(7);var j=(d={},d[a]=n,d[l]=s,d[o]=r,d)[k]||1,U=this.$d.getTime()+f*j;return x.w(U,this)},m.subtract=function(f,w){return this.add(-1*f,w)},m.format=function(f){var w=this,d=this.$locale();if(!this.isValid())return d.invalidDate||C;var E=f||"YYYY-MM-DDTHH:mm:ssZ",k=x.z(this),R=this.$H,j=this.$m,U=this.$M,J=d.weekdays,ne=d.months,Be=d.meridiem,Ee=function(G,ue,Me,We){return G&&(G[ue]||G(w,E))||Me[ue].slice(0,We)},Ie=function(G){return x.s(R%12||12,G,"0")},Se=Be||function(G,ue,Me){var We=G<12?"AM":"PM";return Me?We.toLowerCase():We};return E.replace(V,(function(G,ue){return ue||(function(Me){switch(Me){case"YY":return String(w.$y).slice(-2);case"YYYY":return x.s(w.$y,4,"0");case"M":return U+1;case"MM":return x.s(U+1,2,"0");case"MMM":return Ee(d.monthsShort,U,ne,3);case"MMMM":return Ee(ne,U);case"D":return w.$D;case"DD":return x.s(w.$D,2,"0");case"d":return String(w.$W);case"dd":return Ee(d.weekdaysMin,w.$W,J,2);case"ddd":return Ee(d.weekdaysShort,w.$W,J,3);case"dddd":return J[w.$W];case"H":return String(R);case"HH":return x.s(R,2,"0");case"h":return Ie(1);case"hh":return Ie(2);case"a":return Se(R,j,!0);case"A":return Se(R,j,!1);case"m":return String(j);case"mm":return x.s(j,2,"0");case"s":return String(w.$s);case"ss":return x.s(w.$s,2,"0");case"SSS":return x.s(w.$ms,3,"0");case"Z":return k}return null})(G)||k.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(f,w,d){var E,k=this,R=x.p(w),j=M(f),U=(j.utcOffset()-this.utcOffset())*n,J=this-j,ne=function(){return x.m(k,j)};switch(R){case b:E=ne()/12;break;case g:E=ne();break;case c:E=ne()/3;break;case _:E=(J-U)/6048e5;break;case u:E=(J-U)/864e5;break;case l:E=J/s;break;case a:E=J/n;break;case o:E=J/r;break;default:E=J}return d?E:x.a(E)},m.daysInMonth=function(){return this.endOf(g).$D},m.$locale=function(){return T[this.$L]},m.locale=function(f,w){if(!f)return this.$L;var d=this.clone(),E=A(f,w,!0);return E&&(d.$L=E),d},m.clone=function(){return x.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},y})(),W=q.prototype;return M.prototype=W,[["$ms",i],["$s",o],["$m",a],["$H",l],["$W",u],["$M",g],["$y",b],["$D",S]].forEach((function(y){W[y[1]]=function(m){return this.$g(m,y[0],y[1])}})),M.extend=function(y,m){return y.$i||(y(m,q,M),y.$i=!0),M},M.locale=A,M.isDayjs=v,M.unix=function(y){return M(1e3*y)},M.en=T[ke],M.Ls=T,M.p={},M}))})(Zt)),Zt.exports}var yi=pi();const gt=zn(yi),Vn={version:"0.65.23"};var Gt={exports:{}},wi=Gt.exports,On;function $i(){return On||(On=1,(function(e,t){(function(r,n){e.exports=n()})(wi,(function(){var r,n,s=1e3,i=6e4,o=36e5,a=864e5,l=/\[([^\]]+)]|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,u=31536e6,_=2628e6,g=/^(-|\+)?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:u,months:_,days:a,hours:o,minutes:i,seconds:s,milliseconds:1,weeks:6048e5},b=function(T){return T instanceof Pe},S=function(T,$,v){return new Pe(T,v,$.$l)},C=function(T){return n.p(T)+"s"},H=function(T){return T<0},V=function(T){return H(T)?Math.ceil(T):Math.floor(T)},L=function(T){return Math.abs(T)},B=function(T,$){return T?H(T)?{negative:!0,format:""+L(T)+$}:{negative:!1,format:""+T+$}:{negative:!1,format:""}},Pe=(function(){function T(v,A,M){var x=this;if(this.$d={},this.$l=M,v===void 0&&(this.$ms=0,this.parseFromMilliseconds()),A)return S(v*c[C(A)],this);if(typeof v=="number")return this.$ms=v,this.parseFromMilliseconds(),this;if(typeof v=="object")return Object.keys(v).forEach((function(y){x.$d[C(y)]=v[y]})),this.calMilliseconds(),this;if(typeof v=="string"){var q=v.match(g);if(q){var W=q.slice(2).map((function(y){return y!=null?Number(y):0}));return this.$d.years=W[0],this.$d.months=W[1],this.$d.weeks=W[2],this.$d.days=W[3],this.$d.hours=W[4],this.$d.minutes=W[5],this.$d.seconds=W[6],this.calMilliseconds(),this}}return this}var $=T.prototype;return $.calMilliseconds=function(){var v=this;this.$ms=Object.keys(this.$d).reduce((function(A,M){return A+(v.$d[M]||0)*c[M]}),0)},$.parseFromMilliseconds=function(){var v=this.$ms;this.$d.years=V(v/u),v%=u,this.$d.months=V(v/_),v%=_,this.$d.days=V(v/a),v%=a,this.$d.hours=V(v/o),v%=o,this.$d.minutes=V(v/i),v%=i,this.$d.seconds=V(v/s),v%=s,this.$d.milliseconds=v},$.toISOString=function(){var v=B(this.$d.years,"Y"),A=B(this.$d.months,"M"),M=+this.$d.days||0;this.$d.weeks&&(M+=7*this.$d.weeks);var x=B(M,"D"),q=B(this.$d.hours,"H"),W=B(this.$d.minutes,"M"),y=this.$d.seconds||0;this.$d.milliseconds&&(y+=this.$d.milliseconds/1e3,y=Math.round(1e3*y)/1e3);var m=B(y,"S"),f=v.negative||A.negative||x.negative||q.negative||W.negative||m.negative,w=q.format||W.format||m.format?"T":"",d=(f?"-":"")+"P"+v.format+A.format+x.format+w+q.format+W.format+m.format;return d==="P"||d==="-P"?"P0D":d},$.toJSON=function(){return this.toISOString()},$.format=function(v){var A=v||"YYYY-MM-DDTHH:mm:ss",M={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 A.replace(l,(function(x,q){return q||String(M[x])}))},$.as=function(v){return this.$ms/c[C(v)]},$.get=function(v){var A=this.$ms,M=C(v);return M==="milliseconds"?A%=1e3:A=M==="weeks"?V(A/c[M]):this.$d[M],A||0},$.add=function(v,A,M){var x;return x=A?v*c[C(A)]:b(v)?v.$ms:S(v,this).$ms,S(this.$ms+x*(M?-1:1),this)},$.subtract=function(v,A){return this.add(v,A,!0)},$.locale=function(v){var A=this.clone();return A.$l=v,A},$.clone=function(){return S(this.$ms,this)},$.humanize=function(v){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!v)},$.valueOf=function(){return this.asMilliseconds()},$.milliseconds=function(){return this.get("milliseconds")},$.asMilliseconds=function(){return this.as("milliseconds")},$.seconds=function(){return this.get("seconds")},$.asSeconds=function(){return this.as("seconds")},$.minutes=function(){return this.get("minutes")},$.asMinutes=function(){return this.as("minutes")},$.hours=function(){return this.get("hours")},$.asHours=function(){return this.as("hours")},$.days=function(){return this.get("days")},$.asDays=function(){return this.as("days")},$.weeks=function(){return this.get("weeks")},$.asWeeks=function(){return this.as("weeks")},$.months=function(){return this.get("months")},$.asMonths=function(){return this.as("months")},$.years=function(){return this.get("years")},$.asYears=function(){return this.as("years")},T})(),ke=function(T,$,v){return T.add($.years()*v,"y").add($.months()*v,"M").add($.days()*v,"d").add($.hours()*v,"h").add($.minutes()*v,"m").add($.seconds()*v,"s").add($.milliseconds()*v,"ms")};return function(T,$,v){r=v,n=v().$utils(),v.duration=function(x,q){var W=v.locale();return S(x,{$l:W},q)},v.isDuration=b;var A=$.prototype.add,M=$.prototype.subtract;$.prototype.add=function(x,q){return b(x)?ke(this,x,1):A.bind(this)(x,q)},$.prototype.subtract=function(x,q){return b(x)?ke(this,x,-1):M.bind(this)(x,q)}}}))})(Gt)),Gt.exports}var xi=$i();const ki=zn(xi);var st={},Nn;function Ei(){if(Nn)return st;Nn=1,Object.defineProperty(st,"__esModule",{value:!0}),st.LanguageTranslator=void 0,st.getChildStyleToPass=e,st.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(c){return Object.keys(n).includes(c.name)}))===null||o===void 0)&&o.length))for(var l=function(c){var b=s?.filter(function(S){return S.name===c&&S.defaultValue!==n[c]});b&&(a+="".concat(c,":").concat(n[c],";"))},u=0,_=Object.keys(n);u<_.length;u++){var g=_[u];l(g)}}catch(c){console.error("error getting child style to pass",c)}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 l=i.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(i.replace(l+"-",""),"/").concat(o)}document.head.appendChild(a)}catch(u){console.warn(u)}}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 l="",u=n.getDefaultLang();if(!o||u!==o){var _=i?.[u];_?.[s]&&(l=_[s])}return l},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 st.LanguageTranslator=r,st}var An=Ei(),Si=Re('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-10svzuv"/>'),Mi=Re('<i class="bi bi-play-fill svelte-10svzuv"></i>'),Ti=Re('<i class="bi bi-pause-fill svelte-10svzuv"></i>'),zi=Re('<button class="btn btn-outline-dark svelte-10svzuv"><!></button>'),Di=Re('<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),Vi=Re("<hb-form></hb-form>",2),Oi=Re('<button class="btn btn-sm btn-primary svelte-10svzuv">send</button>'),Ni=Re('<button class="btn btn-sm btn-primary svelte-10svzuv" disabled>send</button>'),Ai=Re('<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 Ci={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.1"};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/)
|
|
6
6
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
7
7
|
* Copyright 2011-2021 Twitter, Inc.
|
|
8
8
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
9
|
-
|
|
9
|
+
*/.svelte-10svzuv,
|
|
10
10
|
.svelte-10svzuv::before,
|
|
11
11
|
.svelte-10svzuv::after {box-sizing:border-box;}
|
|
12
12
|
@media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
|
|
@@ -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
|
|
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
|
-
${
|
|
71
|
-
${
|
|
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
|