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