@htmlbricks/hb-editor-video 0.66.6 → 0.66.8

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