@htmlbricks/hb-matrix-video 0.61.40 → 0.61.42
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 +4 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(er){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Ze=1,Qe=2,tr=4,dn=8,vn=16,hn=1,_n=2,rr="[",gt="[!",mt="]",Te={},D=Symbol(),bn="http://www.w3.org/1999/xhtml",nr=!1;var wt=Array.isArray,pn=Array.prototype.indexOf,yt=Array.from,et=Object.keys,Se=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,gn=Object.getOwnPropertyDescriptors,mn=Object.prototype,wn=Array.prototype,ir=Object.getPrototypeOf,sr=Object.isExtensible;function ar(e){for(var t=0;t<e.length;t++)e[t]()}function yn(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const B=2,Et=4,$t=8,Ce=16,ae=32,le=64,or=128,W=256,tt=512,F=1024,G=2048,fe=4096,Z=8192,_e=16384,xt=32768,kt=65536,lr=1<<17,En=1<<18,Re=1<<19,$n=1<<20,Tt=1<<21,St=1<<22,be=1<<23,At=Symbol("$state"),xn=Symbol("legacy props"),kn=Symbol(""),Ct=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Be=8;function Tn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Sn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function An(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Cn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Rn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Nn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function On(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function In(){throw new Error("https://svelte.dev/e/hydration_failed")}function Mn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Pn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ln(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function rt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let R=!1;function Q(e){R=e}let C;function ue(e){if(e===null)throw rt(),Te;return C=e}function nt(){return ue(de(C))}function it(e){if(R){if(de(C)!==null)throw rt(),Te;C=e}}function Dn(e=1){if(R){for(var t=e,r=C;t--;)r=de(r);C=r}}function Rt(){for(var e=0,t=C;;){if(t.nodeType===Be){var r=t.data;if(r===mt){if(e===0)return t;e-=1}else(r===rr||r===gt)&&(e+=1)}var n=de(t);t.remove(),t=n}}function fr(e){if(!e||e.nodeType!==Be)throw rt(),Te;return e.data}function ur(e){return e===this.v}function jn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function cr(e){return!jn(e,this.v)}let Fn=!1,V=null;function st(e){V=e}function dr(e,t=!1,r){V={p:V,c:null,e:null,s:e,x:null,l:null}}function vr(e){var t=V,r=t.e;if(r!==null){t.e=null;for(var n of r)Ir(n)}return e!==void 0&&(t.x=e),V=t.p,e??{}}function hr(){return!0}const qn=new WeakMap;function Hn(e){var t=$;if(t===null)return x.f|=be,e;if((t.f&xt)===0){if((t.f&or)===0)throw!t.parent&&e instanceof Error&&_r(e),e;t.b.error(e)}else Nt(e,t)}function Nt(e,t){for(;t!==null;){if((t.f&or)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&_r(e),e}function _r(e){const t=qn.get(e);t&&(Se(e,"message",{value:t.message}),Se(e,"stack",{value:t.stack}))}let Ue=[],Ot=[];function br(){var e=Ue;Ue=[],ar(e)}function zn(){var e=Ot;Ot=[],ar(e)}function pr(e){Ue.length===0&&queueMicrotask(br),Ue.push(e)}function Yn(){Ue.length>0&&br(),Ot.length>0&&zn()}function Bn(){const e=$.b;return e===null&&Tn(),e}function at(e){var t=B|G,r=x!==null&&(x.f&B)!==0?x:null;return $===null||r!==null&&(r.f&W)!==0?t|=W:$.f|=Re,{ctx:V,deps:null,effects:null,equals:ur,f:t,fn:e,reactions:null,rv:0,v:D,wv:0,parent:r??$,ac:null}}function Un(e,t){let r=$;r===null&&An();var n=r.b,i=void 0,s=We(D),a=null,o=!x;return ii(()=>{try{var l=e();a&&Promise.resolve(l).catch(()=>{})}catch(d){l=Promise.reject(d)}var f=()=>l;i=a?.then(f,f)??Promise.resolve(l),a=i;var u=P,v=n.is_pending();o&&(n.update_pending_count(1),v||u.increment());const h=(d,c=void 0)=>{a=null,v||u.activate(),c?c!==Ct&&(s.f|=be,Ge(s,c)):((s.f&be)!==0&&(s.f^=be),Ge(s,d)),o&&(n.update_pending_count(-1),v||u.decrement()),wr()};if(i.then(h,d=>h(null,d||"unknown")),u)return()=>{queueMicrotask(()=>u.neuter())}}),new Promise(l=>{function f(u){function v(){u===i?l(s):f(i)}u.then(v,v)}f(i)})}function Wn(e){const t=at(e);return zr(t),t}function Gn(e){const t=at(e);return t.equals=cr,t}function gr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)te(t[r])}}function Vn(e){for(var t=e.parent;t!==null;){if((t.f&B)===0)return t;t=t.parent}return null}function It(e){var t,r=$;ne(Vn(e));try{gr(e),t=Gr(e)}finally{ne(r)}return t}function mr(e){var t=It(e);if(e.equals(t)||(e.v=t,e.wv=Ur()),!Ee){var r=(ve||(e.f&W)!==0)&&e.deps!==null?fe:F;Y(e,r)}}function Xn(e,t,r){const n=at;if(t.length===0){r(e.map(n));return}var i=P,s=$,a=Kn(),o=Bn();Promise.all(t.map(l=>Un(l))).then(l=>{i?.activate(),a();try{r([...e.map(n),...l])}catch(f){(s.f&_e)===0&&Nt(f,s)}i?.deactivate(),wr()}).catch(l=>{o.error(l)})}function Kn(){var e=$,t=x,r=V,n=P;return function(){ne(e),X(t),st(r),n?.activate()}}function wr(){ne(null),X(null),st(null)}const Mt=new Set;let P=null,yr=new Set,ot=[];function Er(){const e=ot.shift();ot.length>0&&queueMicrotask(Er),e()}let pe=[],lt=null,Pt=!1,ft=!1;class ge{current=new Map;#t=new Map;#e=new Set;#r=0;#f=null;#u=!1;#i=[];#a=[];#s=[];#n=[];#o=[];#c=[];#d=[];skipped_effects=new Set;process(t){pe=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#r===0){this.#v();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#o=[],P=null,xr(r),xr(n),P===null?P=this:Mt.delete(this),this.#f?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#o);for(const i of this.#i)Pe(i);for(const i of this.#a)Pe(i);this.#i=[],this.#a=[]}#h(t){t.f^=F;for(var r=t.first;r!==null;){var n=r.f,i=(n&(ae|le))!==0,s=i&&(n&F)!==0,a=s||(n&Z)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(i)r.f^=F;else if((n&Et)!==0)this.#n.push(r);else if((n&F)===0)if((n&St)!==0){var o=r.b?.is_pending()?this.#a:this.#i;o.push(r)}else ct(r)&&((r.f&Ce)!==0&&this.#o.push(r),Pe(r));var l=r.first;if(l!==null){r=l;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)r=f.next,f=f.parent}}#l(t){for(const r of t)((r.f&G)!==0?this.#c:this.#d).push(r),Y(r,F);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){P=this}deactivate(){P=null;for(const t of yr)if(yr.delete(t),t(),P!==null)break}neuter(){this.#u=!0}flush(){pe.length>0?$r():this.#v(),P===this&&(this.#r===0&&Mt.delete(this),this.deactivate())}#v(){if(!this.#u)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)Y(t,G),Ne(t);for(const t of this.#d)Y(t,fe),Ne(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#f??=yn()).promise}static ensure(){if(P===null){const t=P=new ge;Mt.add(P),ft||ge.enqueue(()=>{P===t&&t.flush()})}return P}static enqueue(t){ot.length===0&&queueMicrotask(Er),ot.unshift(t)}}function Lt(e){var t=ft;ft=!0;try{for(var r;;){if(Yn(),pe.length===0&&(P?.flush(),pe.length===0))return lt=null,r;$r()}}finally{ft=t}}function $r(){var e=Me;Pt=!0;try{var t=0;for(qr(!0);pe.length>0;){var r=ge.ensure();if(t++>1e3){var n,i;Jn()}r.process(pe),ce.clear()}}finally{Pt=!1,qr(e),lt=null}}function Jn(){try{On()}catch(e){Nt(e,lt)}}let me=null;function xr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(_e|Z))===0&&ct(n)&&(me=[],Pe(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Dr(n):n.fn=null),me?.length>0)){ce.clear();for(const i of me)Pe(i);me=[]}}me=null}}function Ne(e){for(var t=lt=e;t.parent!==null;){t=t.parent;var r=t.f;if(Pt&&t===$&&(r&Ce)!==0)return;if((r&(le|ae))!==0){if((r&F)===0)return;t.f^=F}}pe.push(t)}const ce=new Map;function We(e,t){var r={f:0,v:e,reactions:null,equals:ur,rv:0,wv:0};return r}function q(e,t){const r=We(e);return zr(r),r}function kr(e,t=!1,r=!0){const n=We(e);return t||(n.equals=cr),n}function H(e,t,r=!1){x!==null&&(!re||(x.f&lr)!==0)&&hr()&&(x.f&(B|Ce|St|lr))!==0&&!oe?.includes(e)&&Ln();let n=r?we(t):t;return Ge(e,n)}function Ge(e,t){if(!e.equals(t)){var r=e.v;Ee?ce.set(e,t):ce.set(e,r),e.v=t;var n=ge.ensure();n.capture(e,r),(e.f&B)!==0&&((e.f&G)!==0&&It(e),Y(e,(e.f&W)===0?F:fe)),e.wv=Ur(),Tr(e,G),$!==null&&($.f&F)!==0&&($.f&(ae|le))===0&&(K===null?li([e]):K.push(e))}return t}function Dt(e){H(e,e.v+1)}function Tr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&G)===0;o&&Y(s,t),(a&B)!==0?Tr(s,fe):o&&((a&Ce)!==0&&me!==null&&me.push(s),Ne(s))}}function we(e){if(typeof e!="object"||e===null||At in e)return e;const t=ir(e);if(t!==mn&&t!==wn)return e;var r=new Map,n=wt(e),i=q(0),s=$e,a=o=>{if($e===s)return o();var l=x,f=$e;X(null),Br(s);var u=o();return X(l),Br(f),u};return n&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(o,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Mn();var u=r.get(l);return u===void 0?u=a(()=>{var v=q(f.value);return r.set(l,v),v}):H(u,f.value,!0),!0},deleteProperty(o,l){var f=r.get(l);if(f===void 0){if(l in o){const u=a(()=>q(D));r.set(l,u),Dt(i)}}else H(f,D),Dt(i);return!0},get(o,l,f){if(l===At)return e;var u=r.get(l),v=l in o;if(u===void 0&&(!v||Ae(o,l)?.writable)&&(u=a(()=>{var d=we(v?o[l]:D),c=q(d);return c}),r.set(l,u)),u!==void 0){var h=m(u);return h===D?void 0:h}return Reflect.get(o,l,f)},getOwnPropertyDescriptor(o,l){var f=Reflect.getOwnPropertyDescriptor(o,l);if(f&&"value"in f){var u=r.get(l);u&&(f.value=m(u))}else if(f===void 0){var v=r.get(l),h=v?.v;if(v!==void 0&&h!==D)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(o,l){if(l===At)return!0;var f=r.get(l),u=f!==void 0&&f.v!==D||Reflect.has(o,l);if(f!==void 0||$!==null&&(!u||Ae(o,l)?.writable)){f===void 0&&(f=a(()=>{var h=u?we(o[l]):D,d=q(h);return d}),r.set(l,f));var v=m(f);if(v===D)return!1}return u},set(o,l,f,u){var v=r.get(l),h=l in o;if(n&&l==="length")for(var d=f;d<v.v;d+=1){var c=r.get(d+"");c!==void 0?H(c,D):d in o&&(c=a(()=>q(D)),r.set(d+"",c))}if(v===void 0)(!h||Ae(o,l)?.writable)&&(v=a(()=>q(void 0)),H(v,we(f)),r.set(l,v));else{h=v.v!==D;var b=a(()=>we(f));H(v,b)}var y=Reflect.getOwnPropertyDescriptor(o,l);if(y?.set&&y.set.call(u,f),!h){if(n&&typeof l=="string"){var k=r.get("length"),E=Number(l);Number.isInteger(E)&&E>=k.v&&H(k,E+1)}Dt(i)}return!0},ownKeys(o){m(i);var l=Reflect.ownKeys(o).filter(v=>{var h=r.get(v);return h===void 0||h.v!==D});for(var[f,u]of r)u.v!==D&&!(f in o)&&l.push(f);return l},setPrototypeOf(){Pn()}})}var jt,Sr,Ar,Cr;function Ft(){if(jt===void 0){jt=window,Sr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ar=Ae(t,"firstChild").get,Cr=Ae(t,"nextSibling").get,sr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),sr(r)&&(r.__t=void 0)}}function Oe(e=""){return document.createTextNode(e)}function ye(e){return Ar.call(e)}function de(e){return Cr.call(e)}function qt(e,t){if(!R)return ye(e);var r=ye(C);return r===null&&(r=C.appendChild(Oe())),ue(r),r}function ut(e,t){if(!R){var r=ye(e);return r instanceof Comment&&r.data===""?de(r):r}return C}function Rr(e){e.textContent=""}function Nr(){return!1}function Ht(e){var t=x,r=$;X(null),ne(null);try{return e()}finally{X(t),ne(r)}}function Zn(e){$===null&&x===null&&Nn(),x!==null&&(x.f&W)!==0&&$===null&&Rn(),Ee&&Cn()}function Qn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ee(e,t,r,n=!0){var i=$;i!==null&&(i.f&Z)!==0&&(e|=Z);var s={ctx:V,deps:null,nodes_start:null,nodes_end:null,f:e|G,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Pe(s),s.f|=xt}catch(l){throw te(s),l}else t!==null&&Ne(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&Re)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&Qn(a,i),x!==null&&(x.f&B)!==0&&(e&le)===0)){var o=x;(o.effects??=[]).push(a)}}return s}function ei(e){const t=ee($t,null,!1);return Y(t,F),t.teardown=e,t}function Or(e){Zn();var t=$.f,r=!x&&(t&ae)!==0&&(t&xt)===0;if(r){var n=V;(n.e??=[]).push(e)}else return Ir(e)}function Ir(e){return ee(Et|$n,e,!1)}function ti(e){ge.ensure();const t=ee(le|Re,e,!0);return()=>{te(t)}}function ri(e){ge.ensure();const t=ee(le|Re,e,!0);return(r={})=>new Promise(n=>{r.outro?zt(t,()=>{te(t),n(void 0)}):(te(t),n(void 0))})}function ni(e){return ee(Et,e,!1)}function ii(e){return ee(St|Re,e,!0)}function si(e,t=0){return ee($t|t,e,!0)}function Ve(e,t=[],r=[]){Xn(t,r,n=>{ee($t,()=>e(...n.map(m)),!0)})}function Mr(e,t=0){var r=ee(Ce|t,e,!0);return r}function Ie(e,t=!0){return ee(ae|Re,e,!0,t)}function Pr(e){var t=e.teardown;if(t!==null){const r=Ee,n=x;Hr(!0),X(null);try{t.call(null)}finally{Hr(r),X(n)}}}function Lr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Ht(()=>{i.abort(Ct)});var n=r.next;(r.f&le)!==0?r.parent=null:te(r,t),r=n}}function ai(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&ae)===0&&te(t),t=r}}function te(e,t=!0){var r=!1;(t||(e.f&En)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(oi(e.nodes_start,e.nodes_end),r=!0),Lr(e,t&&!r),dt(e,0),Y(e,_e);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Pr(e);var i=e.parent;i!==null&&i.first!==null&&Dr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function oi(e,t){for(;e!==null;){var r=e===t?null:de(e);e.remove(),e=r}}function Dr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function zt(e,t){var r=[];Yt(e,r,!0),jr(r,()=>{te(e),t&&t()})}function jr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Yt(e,t,r){if((e.f&Z)===0){if(e.f^=Z,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&kt)!==0||(n.f&ae)!==0;Yt(n,t,s?r:!1),n=i}}}function Bt(e){Fr(e,!0)}function Fr(e,t){if((e.f&Z)!==0){e.f^=Z,(e.f&F)===0&&(Y(e,G),Ne(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&kt)!==0||(r.f&ae)!==0;Fr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let Me=!1;function qr(e){Me=e}let Ee=!1;function Hr(e){Ee=e}let x=null,re=!1;function X(e){x=e}let $=null;function ne(e){$=e}let oe=null;function zr(e){x!==null&&(oe===null?oe=[e]:oe.push(e))}let z=null,U=0,K=null;function li(e){K=e}let Yr=1,Xe=0,$e=Xe;function Br(e){$e=e}let ve=!1;function Ur(){return++Yr}function ct(e){var t=e.f;if((t&G)!==0)return!0;if((t&fe)!==0){var r=e.deps,n=(t&W)!==0;if(r!==null){var i,s,a=(t&tt)!==0,o=n&&$!==null&&!ve,l=r.length;if((a||o)&&($===null||($.f&_e)===0)){var f=e,u=f.parent;for(i=0;i<l;i++)s=r[i],(a||!s?.reactions?.includes(f))&&(s.reactions??=[]).push(f);a&&(f.f^=tt),o&&u!==null&&(u.f&W)===0&&(f.f^=W)}for(i=0;i<l;i++)if(s=r[i],ct(s)&&mr(s),s.wv>e.wv)return!0}(!n||$!==null&&!ve)&&Y(e,F)}return!1}function Wr(e,t,r=!0){var n=e.reactions;if(n!==null&&!oe?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&B)!==0?Wr(s,t,!1):t===s&&(r?Y(s,G):(s.f&F)!==0&&Y(s,fe),Ne(s))}}function Gr(e){var t=z,r=U,n=K,i=x,s=ve,a=oe,o=V,l=re,f=$e,u=e.f;z=null,U=0,K=null,ve=(u&W)!==0&&(re||!Me||x===null),x=(u&(ae|le))===0?e:null,oe=null,st(e.ctx),re=!1,$e=++Xe,e.ac!==null&&(Ht(()=>{e.ac.abort(Ct)}),e.ac=null);try{e.f|=Tt;var v=e.fn,h=v(),d=e.deps;if(z!==null){var c;if(dt(e,U),d!==null&&U>0)for(d.length=U+z.length,c=0;c<z.length;c++)d[U+c]=z[c];else e.deps=d=z;if(!ve||(u&B)!==0&&e.reactions!==null)for(c=U;c<d.length;c++)(d[c].reactions??=[]).push(e)}else d!==null&&U<d.length&&(dt(e,U),d.length=U);if(hr()&&K!==null&&!re&&d!==null&&(e.f&(B|fe|G))===0)for(c=0;c<K.length;c++)Wr(K[c],e);return i!==null&&i!==e&&(Xe++,K!==null&&(n===null?n=K:n.push(...K))),(e.f&be)!==0&&(e.f^=be),h}catch(b){return Hn(b)}finally{e.f^=Tt,z=t,U=r,K=n,x=i,ve=s,oe=a,st(o),re=l,$e=f}}function fi(e,t){let r=t.reactions;if(r!==null){var n=pn.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&B)!==0&&(z===null||!z.includes(t))&&(Y(t,fe),(t.f&(W|tt))===0&&(t.f^=tt),gr(t),dt(t,0))}function dt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)fi(e,r[n])}function Pe(e){var t=e.f;if((t&_e)===0){Y(e,F);var r=$,n=Me;$=e,Me=!0;try{(t&Ce)!==0?ai(e):Lr(e),Pr(e);var i=Gr(e);e.teardown=typeof i=="function"?i:null,e.wv=Yr;var s;nr&&Fn&&(e.f&G)!==0&&e.deps}finally{Me=n,$=r}}}function m(e){var t=e.f,r=(t&B)!==0;if(x!==null&&!re){var n=$!==null&&($.f&_e)!==0;if(!n&&!oe?.includes(e)){var i=x.deps;if((x.f&Tt)!==0)e.rv<Xe&&(e.rv=Xe,z===null&&i!==null&&i[U]===e?U++:z===null?z=[e]:(!ve||!z.includes(e))&&z.push(e));else{(x.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[x]:s.includes(x)||s.push(x)}}}else if(r&&e.deps===null&&e.effects===null){var a=e,o=a.parent;o!==null&&(o.f&W)===0&&(a.f^=W)}if(Ee){if(ce.has(e))return ce.get(e);if(r){a=e;var l=a.v;return((a.f&F)===0&&a.reactions!==null||Vr(a))&&(l=It(a)),ce.set(a,l),l}}else r&&(a=e,ct(a)&&mr(a));if((e.f&be)!==0)throw e.v;return e.v}function Vr(e){if(e.v===D)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ce.has(t)||(t.f&B)!==0&&Vr(t))return!0;return!1}function ui(e){var t=re;try{return re=!0,e()}finally{re=t}}const ci=-7169;function Y(e,t){e.f=e.f&ci|t}const di=new Set,Xr=new Set;function vi(e){if(!R)return;e.removeAttribute("onload"),e.removeAttribute("onerror");const t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function hi(e,t,r,n={}){function i(s){if(n.capture||Ke.call(t,s),!s.cancelBubble)return Ht(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?pr(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function vt(e,t,r,n,i){var s={capture:n,passive:i},a=hi(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ei(()=>{t.removeEventListener(e,a,s)})}let Kr=null;function Ke(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Kr=e;var a=0,o=Kr===e&&e.__root;if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;l<=f&&(a=l)}if(s=i[a]||e.target,s!==t){Se(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=x,v=$;X(null),ne(null);try{for(var h,d=[];s!==null;){var c=s.assignedSlot||s.parentNode||s.host||null;try{var b=s["__"+n];if(b!=null&&(!s.disabled||e.target===s))if(wt(b)){var[y,...k]=b;y.apply(s,[e,...k])}else b.call(s,e)}catch(E){h?d.push(E):h=E}if(e.cancelBubble||c===t||c===null)break;s=c}if(h){for(let E of d)queueMicrotask(()=>{throw E});throw h}}finally{e.__root=t,delete e.currentTarget,X(u),ne(v)}}}function _i(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Le(e,t){var r=$;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function xe(e,t){var r=(t&hn)!==0,n=(t&_n)!==0,i,s=!e.startsWith("<!>");return()=>{if(R)return Le(C,null),C;i===void 0&&(i=_i(s?e:"<!>"+e),r||(i=ye(i)));var a=n||Sr?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=ye(a),l=a.lastChild;Le(o,l)}else Le(a,a);return a}}function ht(){if(R)return Le(C,null),C;var e=document.createDocumentFragment(),t=document.createComment(""),r=Oe();return e.append(t,r),Le(t,r),e}function J(e,t){if(R){$.nodes_end=C,nt();return}e!==null&&e.before(t)}const bi=["touchstart","touchmove"];function pi(e){return bi.includes(e)}function Jr(e,t){return Zr(e,t)}function gi(e,t){Ft(),t.intro=t.intro??!1;const r=t.target,n=R,i=C;try{for(var s=ye(r);s&&(s.nodeType!==Be||s.data!==rr);)s=de(s);if(!s)throw Te;Q(!0),ue(s),nt();const a=Zr(e,{...t,anchor:s});if(C===null||C.nodeType!==Be||C.data!==mt)throw rt(),Te;return Q(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Te&&console.warn("Failed to hydrate: ",a),t.recover===!1&&In(),Ft(),Rr(r),Q(!1),Jr(e,t)}finally{Q(n),ue(i)}}const De=new Map;function Zr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){Ft();var o=new Set,l=v=>{for(var h=0;h<v.length;h++){var d=v[h];if(!o.has(d)){o.add(d);var c=pi(d);t.addEventListener(d,Ke,{passive:c});var b=De.get(d);b===void 0?(document.addEventListener(d,Ke,{passive:c}),De.set(d,1)):De.set(d,b+1)}}};l(yt(di)),Xr.add(l);var f=void 0,u=ri(()=>{var v=r??t.appendChild(Oe());return Ie(()=>{if(s){dr({});var h=V;h.c=s}i&&(n.$$events=i),R&&Le(v,null),f=e(v,n)||{},R&&($.nodes_end=C),s&&vr()}),()=>{for(var h of o){t.removeEventListener(h,Ke);var d=De.get(h);--d===0?(document.removeEventListener(h,Ke),De.delete(h)):De.set(h,d)}Xr.delete(l),v!==r&&v.parentNode?.removeChild(v)}});return Ut.set(f,u),f}let Ut=new WeakMap;function mi(e,t){const r=Ut.get(e);return r?(Ut.delete(e),r(t)):Promise.resolve()}function wi(e){V===null&&Sn(),Or(()=>{const t=ui(e);if(typeof t=="function")return t})}function Je(e,t,r=!1){R&&nt();var n=e,i=null,s=null,a=D,o=r?kt:0,l=!1;const f=(d,c=!0)=>{l=!0,h(c,d)};var u=null;function v(){u!==null&&(u.lastChild.remove(),n.before(u),u=null);var d=a?i:s,c=a?s:i;d&&Bt(d),c&&zt(c,()=>{a?s=null:i=null})}const h=(d,c)=>{if(a===(a=d))return;let b=!1;if(R){const N=fr(n)===gt;!!a===N&&(n=Rt(),ue(n),Q(!1),b=!0)}var y=Nr(),k=n;if(y&&(u=document.createDocumentFragment(),u.append(k=Oe())),a?i??=c&&Ie(()=>c(k)):s??=c&&Ie(()=>c(k)),y){var E=P,L=a?i:s,j=a?s:i;L&&E.skipped_effects.delete(L),j&&E.skipped_effects.add(j),E.add_callback(v)}else v();b&&Q(!0)};Mr(()=>{l=!1,t(f),l||h(null,null)},o),R&&(n=C)}function yi(e,t,r){for(var n=e.items,i=[],s=t.length,a=0;a<s;a++)Yt(t[a].e,i,!0);var o=s>0&&i.length===0&&r!==null;if(o){var l=r.parentNode;Rr(l),l.append(r),n.clear(),ie(e,t[0].prev,t[s-1].next)}jr(i,()=>{for(var f=0;f<s;f++){var u=t[f];o||(n.delete(u.k),ie(e,u.prev,u.next)),te(u.e,!o)}})}function Qr(e,t,r,n,i,s=null){var a=e,o={flags:t,items:new Map,first:null},l=(t&tr)!==0;if(l){var f=e;a=R?ue(ye(f)):f.appendChild(Oe())}R&&nt();var u=null,v=!1,h=new Map,d=Gn(()=>{var k=r();return wt(k)?k:k==null?[]:yt(k)}),c,b;function y(){Ei(b,c,o,h,a,i,t,n,r),s!==null&&(c.length===0?u?Bt(u):u=Ie(()=>s(a)):u!==null&&zt(u,()=>{u=null}))}Mr(()=>{b??=$,c=m(d);var k=c.length;if(v&&k===0)return;v=k===0;let E=!1;if(R){var L=fr(a)===gt;L!==(k===0)&&(a=Rt(),ue(a),Q(!1),E=!0)}if(R){for(var j=null,N,_=0;_<k;_++){if(C.nodeType===Be&&C.data===mt){a=C,E=!0,Q(!1);break}var w=c[_],S=n(w,_);N=Wt(C,o,j,null,w,S,_,i,t,r),o.items.set(S,N),j=N}k>0&&ue(Rt())}if(R)k===0&&s&&(u=Ie(()=>s(a)));else if(Nr()){var O=new Set,I=P;for(_=0;_<k;_+=1){w=c[_],S=n(w,_);var T=o.items.get(S)??h.get(S);T?(t&(Ze|Qe))!==0&&en(T,w,_,t):(N=Wt(null,o,null,null,w,S,_,i,t,r,!0),h.set(S,N)),O.add(S)}for(const[A,p]of o.items)O.has(A)||I.skipped_effects.add(p.e);I.add_callback(y)}else y();E&&Q(!0),m(d)}),R&&(a=C)}function Ei(e,t,r,n,i,s,a,o,l){var f=(a&dn)!==0,u=(a&(Ze|Qe))!==0,v=t.length,h=r.items,d=r.first,c=d,b,y=null,k,E=[],L=[],j,N,_,w;if(f)for(w=0;w<v;w+=1)j=t[w],N=o(j,w),_=h.get(N),_!==void 0&&(_.a?.measure(),(k??=new Set).add(_));for(w=0;w<v;w+=1){if(j=t[w],N=o(j,w),_=h.get(N),_===void 0){var S=n.get(N);if(S!==void 0){n.delete(N),h.set(N,S);var O=y?y.next:c;ie(r,y,S),ie(r,S,O),Gt(S,O,i),y=S}else{var I=c?c.e.nodes_start:i;y=Wt(I,r,y,y===null?r.first:y.next,j,N,w,s,a,l)}h.set(N,y),E=[],L=[],c=y.next;continue}if(u&&en(_,j,w,a),(_.e.f&Z)!==0&&(Bt(_.e),f&&(_.a?.unfix(),(k??=new Set).delete(_))),_!==c){if(b!==void 0&&b.has(_)){if(E.length<L.length){var T=L[0],A;y=T.prev;var p=E[0],g=E[E.length-1];for(A=0;A<E.length;A+=1)Gt(E[A],T,i);for(A=0;A<L.length;A+=1)b.delete(L[A]);ie(r,p.prev,g.next),ie(r,y,p),ie(r,g,T),c=T,y=g,w-=1,E=[],L=[]}else b.delete(_),Gt(_,c,i),ie(r,_.prev,_.next),ie(r,_,y===null?r.first:y.next),ie(r,y,_),y=_;continue}for(E=[],L=[];c!==null&&c.k!==N;)(c.e.f&Z)===0&&(b??=new Set).add(c),L.push(c),c=c.next;if(c===null)continue;_=c}E.push(_),y=_,c=_.next}if(c!==null||b!==void 0){for(var M=b===void 0?[]:yt(b);c!==null;)(c.e.f&Z)===0&&M.push(c),c=c.next;var ke=M.length;if(ke>0){var Kt=(a&tr)!==0&&v===0?i:null;if(f){for(w=0;w<ke;w+=1)M[w].a?.measure();for(w=0;w<ke;w+=1)M[w].a?.fix()}yi(r,M,Kt)}}f&&pr(()=>{if(k!==void 0)for(_ of k)_.a?.apply()}),e.first=r.first&&r.first.e,e.last=y&&y.e;for(var se of n.values())te(se.e);n.clear()}function en(e,t,r,n){(n&Ze)!==0&&Ge(e.v,t),(n&Qe)!==0?Ge(e.i,r):e.i=r}function Wt(e,t,r,n,i,s,a,o,l,f,u){var v=(l&Ze)!==0,h=(l&vn)===0,d=v?h?kr(i,!1,!1):We(i):i,c=(l&Qe)===0?a:We(a),b={i:c,v:d,k:s,a:null,e:null,prev:r,next:n};try{if(e===null){var y=document.createDocumentFragment();y.append(e=Oe())}return b.e=Ie(()=>o(e,d,c,f),R),b.e.prev=r&&r.e,b.e.next=n&&n.e,r===null?u||(t.first=b):(r.next=b,r.e.next=b.e),n!==null&&(n.prev=b,n.e.prev=b.e),b}finally{}}function Gt(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=de(s);i.before(s),s=a}}function ie(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function $i(e,t){ni(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}const xi=Symbol("is custom element"),ki=Symbol("is html");function je(e,t,r,n){var i=Ti(e);R&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[kn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&tn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function _t(e,t,r){var n=x,i=$;let s=R;R&&Q(!1),X(null),ne(null);try{t!=="style"&&(Vt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?tn(e).includes(t):r&&typeof r=="object")?e[t]=r:je(e,t,r==null?r:String(r))}finally{X(n),ne(i),s&&Q(!0)}}function Ti(e){return e.__attributes??={[xi]:e.nodeName.includes("-"),[ki]:e.namespaceURI===bn}}var Vt=new Map;function tn(e){var t=e.getAttribute("is")||e.nodeName,r=Vt.get(t);if(r)return r;Vt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=gn(i);for(var a in n)n[a].set&&r.push(a);i=ir(i)}return r}function rn(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),o;o=e[t],o===void 0&&n!==void 0&&(o=a());var l;l=()=>{var h=e[t];return h===void 0?a():(s=!0,h)};var f=!1,u=at(()=>(f=!1,l())),v=$;return(function(h,d){if(arguments.length>0){const c=d?m(u):h;return H(u,c),f=!0,i!==void 0&&(i=c),h}return Ee&&f||(v.f&_e)!==0?u.v:m(u)})}function Si(e){return new Ai(e)}class Ai{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var o=kr(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return m(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===xn?!0:(m(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return H(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#e=(t.hydrate?gi:Jr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Lt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Se(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{mi(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let nn;typeof HTMLElement=="function"&&(nn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),J(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Ci(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=bt(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Si({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ti(()=>{si(()=>{this.$$r=!0;for(const n of et(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=bt(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=bt(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 et(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function bt(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 Ci(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Ri(e,t,r,n,i,s){let a=class extends nn{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return et(t).map(o=>(t[o].attribute||o).toLowerCase())}};return et(t).forEach(o=>{Se(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=bt(o,l,t),this.$$d[o]=l;var f=this.$$c;if(f){var u=Ae(f,o)?.get;u?f[o]=l:f.$set({[o]:l})}}})}),n.forEach(o=>{Se(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const Ni={version:"0.61.40"};function sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pt={exports:{}},an;function Oi(){if(an)return pt.exports;an=1;function e(t,r=100,n={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(r<0)throw new RangeError("`wait` must not be negative.");const{immediate:i}=typeof n=="boolean"?{immediate:n}:n;let s,a,o,l,f;function u(){const d=s,c=a;return s=void 0,a=void 0,f=t.apply(d,c),f}function v(){const d=Date.now()-l;d<r&&d>=0?o=setTimeout(v,r-d):(o=void 0,i||(f=u()))}const h=function(...d){if(s&&this!==s&&Object.getPrototypeOf(this)===Object.getPrototypeOf(s))throw new Error("Debounced method called with different contexts of the same prototype.");s=this,a=d,l=Date.now();const c=i&&!o;return o||(o=setTimeout(v,r)),c&&(f=u()),f};return Object.defineProperty(h,"isPending",{get(){return o!==void 0}}),h.clear=()=>{o&&(clearTimeout(o),o=void 0)},h.flush=()=>{o&&h.trigger()},h.trigger=()=>{f=u(),h.clear()},h}return pt.exports.debounce=e,pt.exports=e,pt.exports}var Ii=Oi();const Mi=sn(Ii);var Fe={},Xt,on;function Pi(){if(on)return Xt;on=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
|
|
3
|
-
`,
|
|
1
|
+
(function(tr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Qe=1,et=2,rr=4,hn=8,_n=16,bn=1,pn=2,nr="[",mt="[!",wt="]",Ce={},D=Symbol(),gn="http://www.w3.org/1999/xhtml",ir=!1;var yt=Array.isArray,mn=Array.prototype.indexOf,Et=Array.from,tt=Object.keys,Ae=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,wn=Object.getOwnPropertyDescriptors,yn=Object.prototype,En=Array.prototype,sr=Object.getPrototypeOf,ar=Object.isExtensible;function or(e){for(var t=0;t<e.length;t++)e[t]()}function $n(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const Y=2,$t=4,xt=8,Ne=16,ae=32,le=64,lr=128,U=256,rt=512,F=1024,G=2048,ue=4096,Z=8192,_e=16384,Tt=32768,kt=65536,ur=1<<17,xn=1<<18,Se=1<<19,Tn=1<<20,Ct=1<<21,At=1<<22,be=1<<23,Rt=Symbol("$state"),kn=Symbol("legacy props"),Cn=Symbol(""),Nt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Be=8;function An(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Rn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Nn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Sn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function On(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function In(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Mn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Pn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ln(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Dn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function jn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function nt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let N=!1;function Q(e){N=e}let R;function fe(e){if(e===null)throw nt(),Ce;return R=e}function it(){return fe(de(R))}function st(e){if(N){if(de(R)!==null)throw nt(),Ce;R=e}}function Fn(e=1){if(N){for(var t=e,r=R;t--;)r=de(r);R=r}}function St(){for(var e=0,t=R;;){if(t.nodeType===Be){var r=t.data;if(r===wt){if(e===0)return t;e-=1}else(r===nr||r===mt)&&(e+=1)}var n=de(t);t.remove(),t=n}}function fr(e){if(!e||e.nodeType!==Be)throw nt(),Ce;return e.data}function cr(e){return e===this.v}function qn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function dr(e){return!qn(e,this.v)}let Hn=!1,V=null;function at(e){V=e}function vr(e,t=!1,r){V={p:V,c:null,e:null,s:e,x:null,l:null}}function hr(e){var t=V,r=t.e;if(r!==null){t.e=null;for(var n of r)Mr(n)}return e!==void 0&&(t.x=e),V=t.p,e??{}}function _r(){return!0}const zn=new WeakMap;function Wn(e){var t=$;if(t===null)return x.f|=be,e;if((t.f&Tt)===0){if((t.f&lr)===0)throw!t.parent&&e instanceof Error&&br(e),e;t.b.error(e)}else Ot(e,t)}function Ot(e,t){for(;t!==null;){if((t.f&lr)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&br(e),e}function br(e){const t=zn.get(e);t&&(Ae(e,"message",{value:t.message}),Ae(e,"stack",{value:t.stack}))}let Ue=[],It=[];function pr(){var e=Ue;Ue=[],or(e)}function Yn(){var e=It;It=[],or(e)}function gr(e){Ue.length===0&&queueMicrotask(pr),Ue.push(e)}function Bn(){Ue.length>0&&pr(),It.length>0&&Yn()}function Un(){const e=$.b;return e===null&&An(),e}function ot(e){var t=Y|G,r=x!==null&&(x.f&Y)!==0?x:null;return $===null||r!==null&&(r.f&U)!==0?t|=U:$.f|=Se,{ctx:V,deps:null,effects:null,equals:cr,f:t,fn:e,reactions:null,rv:0,v:D,wv:0,parent:r??$,ac:null}}function Gn(e,t){let r=$;r===null&&Nn();var n=r.b,i=void 0,s=Ge(D),a=null,o=!x;return ai(()=>{try{var l=e();a&&Promise.resolve(l).catch(()=>{})}catch(v){l=Promise.reject(v)}var u=()=>l;i=a?.then(u,u)??Promise.resolve(l),a=i;var f=P,h=n.is_pending();o&&(n.update_pending_count(1),h||f.increment());const d=(v,c=void 0)=>{a=null,h||f.activate(),c?c!==Nt&&(s.f|=be,Ve(s,c)):((s.f&be)!==0&&(s.f^=be),Ve(s,v)),o&&(n.update_pending_count(-1),h||f.decrement()),yr()};if(i.then(d,v=>d(null,v||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(l=>{function u(f){function h(){f===i?l(s):u(i)}f.then(h,h)}u(i)})}function Vn(e){const t=ot(e);return Wr(t),t}function Xn(e){const t=ot(e);return t.equals=dr,t}function mr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)te(t[r])}}function Jn(e){for(var t=e.parent;t!==null;){if((t.f&Y)===0)return t;t=t.parent}return null}function Mt(e){var t,r=$;ne(Jn(e));try{mr(e),t=Vr(e)}finally{ne(r)}return t}function wr(e){var t=Mt(e);if(e.equals(t)||(e.v=t,e.wv=Ur()),!Ee){var r=(ve||(e.f&U)!==0)&&e.deps!==null?ue:F;W(e,r)}}function Kn(e,t,r){const n=ot;if(t.length===0){r(e.map(n));return}var i=P,s=$,a=Zn(),o=Un();Promise.all(t.map(l=>Gn(l))).then(l=>{i?.activate(),a();try{r([...e.map(n),...l])}catch(u){(s.f&_e)===0&&Ot(u,s)}i?.deactivate(),yr()}).catch(l=>{o.error(l)})}function Zn(){var e=$,t=x,r=V,n=P;return function(){ne(e),X(t),at(r),n?.activate()}}function yr(){ne(null),X(null),at(null)}const Pt=new Set;let P=null,Er=new Set,lt=[];function $r(){const e=lt.shift();lt.length>0&&queueMicrotask($r),e()}let pe=[],ut=null,Lt=!1,ft=!1;class ge{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#a=[];#s=[];#n=[];#o=[];#c=[];#d=[];skipped_effects=new Set;process(t){pe=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#r===0){this.#v();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#o=[],P=null,Tr(r),Tr(n),P===null?P=this:Pt.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#o);for(const i of this.#i)Le(i);for(const i of this.#a)Le(i);this.#i=[],this.#a=[]}#h(t){t.f^=F;for(var r=t.first;r!==null;){var n=r.f,i=(n&(ae|le))!==0,s=i&&(n&F)!==0,a=s||(n&Z)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(i)r.f^=F;else if((n&$t)!==0)this.#n.push(r);else if((n&F)===0)if((n&At)!==0){var o=r.b?.is_pending()?this.#a:this.#i;o.push(r)}else dt(r)&&((r.f&Ne)!==0&&this.#o.push(r),Le(r));var l=r.first;if(l!==null){r=l;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&G)!==0?this.#c:this.#d).push(r),W(r,F);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){P=this}deactivate(){P=null;for(const t of Er)if(Er.delete(t),t(),P!==null)break}neuter(){this.#f=!0}flush(){pe.length>0?xr():this.#v(),P===this&&(this.#r===0&&Pt.delete(this),this.deactivate())}#v(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)W(t,G),Oe(t);for(const t of this.#d)W(t,ue),Oe(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=$n()).promise}static ensure(){if(P===null){const t=P=new ge;Pt.add(P),ft||ge.enqueue(()=>{P===t&&t.flush()})}return P}static enqueue(t){lt.length===0&&queueMicrotask($r),lt.unshift(t)}}function Dt(e){var t=ft;ft=!0;try{for(var r;;){if(Bn(),pe.length===0&&(P?.flush(),pe.length===0))return ut=null,r;xr()}}finally{ft=t}}function xr(){var e=Pe;Lt=!0;try{var t=0;for(Hr(!0);pe.length>0;){var r=ge.ensure();if(t++>1e3){var n,i;Qn()}r.process(pe),ce.clear()}}finally{Lt=!1,Hr(e),ut=null}}function Qn(){try{Mn()}catch(e){Ot(e,ut)}}let me=null;function Tr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(_e|Z))===0&&dt(n)&&(me=[],Le(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?jr(n):n.fn=null),me?.length>0)){ce.clear();for(const i of me)Le(i);me=[]}}me=null}}function Oe(e){for(var t=ut=e;t.parent!==null;){t=t.parent;var r=t.f;if(Lt&&t===$&&(r&Ne)!==0)return;if((r&(le|ae))!==0){if((r&F)===0)return;t.f^=F}}pe.push(t)}const ce=new Map;function Ge(e,t){var r={f:0,v:e,reactions:null,equals:cr,rv:0,wv:0};return r}function q(e,t){const r=Ge(e);return Wr(r),r}function kr(e,t=!1,r=!0){const n=Ge(e);return t||(n.equals=dr),n}function H(e,t,r=!1){x!==null&&(!re||(x.f&ur)!==0)&&_r()&&(x.f&(Y|Ne|At|ur))!==0&&!oe?.includes(e)&&jn();let n=r?we(t):t;return Ve(e,n)}function Ve(e,t){if(!e.equals(t)){var r=e.v;Ee?ce.set(e,t):ce.set(e,r),e.v=t;var n=ge.ensure();n.capture(e,r),(e.f&Y)!==0&&((e.f&G)!==0&&Mt(e),W(e,(e.f&U)===0?F:ue)),e.wv=Ur(),Cr(e,G),$!==null&&($.f&F)!==0&&($.f&(ae|le))===0&&(J===null?fi([e]):J.push(e))}return t}function jt(e){H(e,e.v+1)}function Cr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&G)===0;o&&W(s,t),(a&Y)!==0?Cr(s,ue):o&&((a&Ne)!==0&&me!==null&&me.push(s),Oe(s))}}function we(e){if(typeof e!="object"||e===null||Rt in e)return e;const t=sr(e);if(t!==yn&&t!==En)return e;var r=new Map,n=yt(e),i=q(0),s=$e,a=o=>{if($e===s)return o();var l=x,u=$e;X(null),Br(s);var f=o();return X(l),Br(u),f};return n&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Ln();var f=r.get(l);return f===void 0?f=a(()=>{var h=q(u.value);return r.set(l,h),h}):H(f,u.value,!0),!0},deleteProperty(o,l){var u=r.get(l);if(u===void 0){if(l in o){const f=a(()=>q(D));r.set(l,f),jt(i)}}else H(u,D),jt(i);return!0},get(o,l,u){if(l===Rt)return e;var f=r.get(l),h=l in o;if(f===void 0&&(!h||Re(o,l)?.writable)&&(f=a(()=>{var v=we(h?o[l]:D),c=q(v);return c}),r.set(l,f)),f!==void 0){var d=m(f);return d===D?void 0:d}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=m(f))}else if(u===void 0){var h=r.get(l),d=h?.v;if(h!==void 0&&d!==D)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(o,l){if(l===Rt)return!0;var u=r.get(l),f=u!==void 0&&u.v!==D||Reflect.has(o,l);if(u!==void 0||$!==null&&(!f||Re(o,l)?.writable)){u===void 0&&(u=a(()=>{var d=f?we(o[l]):D,v=q(d);return v}),r.set(l,u));var h=m(u);if(h===D)return!1}return f},set(o,l,u,f){var h=r.get(l),d=l in o;if(n&&l==="length")for(var v=u;v<h.v;v+=1){var c=r.get(v+"");c!==void 0?H(c,D):v in o&&(c=a(()=>q(D)),r.set(v+"",c))}if(h===void 0)(!d||Re(o,l)?.writable)&&(h=a(()=>q(void 0)),H(h,we(u)),r.set(l,h));else{d=h.v!==D;var b=a(()=>we(u));H(h,b)}var y=Reflect.getOwnPropertyDescriptor(o,l);if(y?.set&&y.set.call(f,u),!d){if(n&&typeof l=="string"){var T=r.get("length"),E=Number(l);Number.isInteger(E)&&E>=T.v&&H(T,E+1)}jt(i)}return!0},ownKeys(o){m(i);var l=Reflect.ownKeys(o).filter(h=>{var d=r.get(h);return d===void 0||d.v!==D});for(var[u,f]of r)f.v!==D&&!(u in o)&&l.push(u);return l},setPrototypeOf(){Dn()}})}var Ft,Ar,Rr,Nr;function qt(){if(Ft===void 0){Ft=window,Ar=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Rr=Re(t,"firstChild").get,Nr=Re(t,"nextSibling").get,ar(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ar(r)&&(r.__t=void 0)}}function Ie(e=""){return document.createTextNode(e)}function ye(e){return Rr.call(e)}function de(e){return Nr.call(e)}function Ht(e,t){if(!N)return ye(e);var r=ye(R);return r===null&&(r=R.appendChild(Ie())),fe(r),r}function ct(e,t){if(!N){var r=ye(e);return r instanceof Comment&&r.data===""?de(r):r}return R}function Sr(e){e.textContent=""}function Or(){return!1}function zt(e){var t=x,r=$;X(null),ne(null);try{return e()}finally{X(t),ne(r)}}function ei(e){$===null&&x===null&&In(),x!==null&&(x.f&U)!==0&&$===null&&On(),Ee&&Sn()}function ti(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ee(e,t,r,n=!0){var i=$;i!==null&&(i.f&Z)!==0&&(e|=Z);var s={ctx:V,deps:null,nodes_start:null,nodes_end:null,f:e|G,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Le(s),s.f|=Tt}catch(l){throw te(s),l}else t!==null&&Oe(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&Se)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&ti(a,i),x!==null&&(x.f&Y)!==0&&(e&le)===0)){var o=x;(o.effects??=[]).push(a)}}return s}function ri(e){const t=ee(xt,null,!1);return W(t,F),t.teardown=e,t}function Ir(e){ei();var t=$.f,r=!x&&(t&ae)!==0&&(t&Tt)===0;if(r){var n=V;(n.e??=[]).push(e)}else return Mr(e)}function Mr(e){return ee($t|Tn,e,!1)}function ni(e){ge.ensure();const t=ee(le|Se,e,!0);return()=>{te(t)}}function ii(e){ge.ensure();const t=ee(le|Se,e,!0);return(r={})=>new Promise(n=>{r.outro?Wt(t,()=>{te(t),n(void 0)}):(te(t),n(void 0))})}function si(e){return ee($t,e,!1)}function ai(e){return ee(At|Se,e,!0)}function oi(e,t=0){return ee(xt|t,e,!0)}function Xe(e,t=[],r=[]){Kn(t,r,n=>{ee(xt,()=>e(...n.map(m)),!0)})}function Pr(e,t=0){var r=ee(Ne|t,e,!0);return r}function Me(e,t=!0){return ee(ae|Se,e,!0,t)}function Lr(e){var t=e.teardown;if(t!==null){const r=Ee,n=x;zr(!0),X(null);try{t.call(null)}finally{zr(r),X(n)}}}function Dr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&zt(()=>{i.abort(Nt)});var n=r.next;(r.f&le)!==0?r.parent=null:te(r,t),r=n}}function li(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&ae)===0&&te(t),t=r}}function te(e,t=!0){var r=!1;(t||(e.f&xn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(ui(e.nodes_start,e.nodes_end),r=!0),Dr(e,t&&!r),vt(e,0),W(e,_e);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Lr(e);var i=e.parent;i!==null&&i.first!==null&&jr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function ui(e,t){for(;e!==null;){var r=e===t?null:de(e);e.remove(),e=r}}function jr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Wt(e,t){var r=[];Yt(e,r,!0),Fr(r,()=>{te(e),t&&t()})}function Fr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Yt(e,t,r){if((e.f&Z)===0){if(e.f^=Z,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&kt)!==0||(n.f&ae)!==0;Yt(n,t,s?r:!1),n=i}}}function Bt(e){qr(e,!0)}function qr(e,t){if((e.f&Z)!==0){e.f^=Z,(e.f&F)===0&&(W(e,G),Oe(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&kt)!==0||(r.f&ae)!==0;qr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let Pe=!1;function Hr(e){Pe=e}let Ee=!1;function zr(e){Ee=e}let x=null,re=!1;function X(e){x=e}let $=null;function ne(e){$=e}let oe=null;function Wr(e){x!==null&&(oe===null?oe=[e]:oe.push(e))}let z=null,B=0,J=null;function fi(e){J=e}let Yr=1,Je=0,$e=Je;function Br(e){$e=e}let ve=!1;function Ur(){return++Yr}function dt(e){var t=e.f;if((t&G)!==0)return!0;if((t&ue)!==0){var r=e.deps,n=(t&U)!==0;if(r!==null){var i,s,a=(t&rt)!==0,o=n&&$!==null&&!ve,l=r.length;if((a||o)&&($===null||($.f&_e)===0)){var u=e,f=u.parent;for(i=0;i<l;i++)s=r[i],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=rt),o&&f!==null&&(f.f&U)===0&&(u.f^=U)}for(i=0;i<l;i++)if(s=r[i],dt(s)&&wr(s),s.wv>e.wv)return!0}(!n||$!==null&&!ve)&&W(e,F)}return!1}function Gr(e,t,r=!0){var n=e.reactions;if(n!==null&&!oe?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&Y)!==0?Gr(s,t,!1):t===s&&(r?W(s,G):(s.f&F)!==0&&W(s,ue),Oe(s))}}function Vr(e){var t=z,r=B,n=J,i=x,s=ve,a=oe,o=V,l=re,u=$e,f=e.f;z=null,B=0,J=null,ve=(f&U)!==0&&(re||!Pe||x===null),x=(f&(ae|le))===0?e:null,oe=null,at(e.ctx),re=!1,$e=++Je,e.ac!==null&&(zt(()=>{e.ac.abort(Nt)}),e.ac=null);try{e.f|=Ct;var h=e.fn,d=h(),v=e.deps;if(z!==null){var c;if(vt(e,B),v!==null&&B>0)for(v.length=B+z.length,c=0;c<z.length;c++)v[B+c]=z[c];else e.deps=v=z;if(!ve||(f&Y)!==0&&e.reactions!==null)for(c=B;c<v.length;c++)(v[c].reactions??=[]).push(e)}else v!==null&&B<v.length&&(vt(e,B),v.length=B);if(_r()&&J!==null&&!re&&v!==null&&(e.f&(Y|ue|G))===0)for(c=0;c<J.length;c++)Gr(J[c],e);return i!==null&&i!==e&&(Je++,J!==null&&(n===null?n=J:n.push(...J))),(e.f&be)!==0&&(e.f^=be),d}catch(b){return Wn(b)}finally{e.f^=Ct,z=t,B=r,J=n,x=i,ve=s,oe=a,at(o),re=l,$e=u}}function ci(e,t){let r=t.reactions;if(r!==null){var n=mn.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&Y)!==0&&(z===null||!z.includes(t))&&(W(t,ue),(t.f&(U|rt))===0&&(t.f^=rt),mr(t),vt(t,0))}function vt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ci(e,r[n])}function Le(e){var t=e.f;if((t&_e)===0){W(e,F);var r=$,n=Pe;$=e,Pe=!0;try{(t&Ne)!==0?li(e):Dr(e),Lr(e);var i=Vr(e);e.teardown=typeof i=="function"?i:null,e.wv=Yr;var s;ir&&Hn&&(e.f&G)!==0&&e.deps}finally{Pe=n,$=r}}}function m(e){var t=e.f,r=(t&Y)!==0;if(x!==null&&!re){var n=$!==null&&($.f&_e)!==0;if(!n&&!oe?.includes(e)){var i=x.deps;if((x.f&Ct)!==0)e.rv<Je&&(e.rv=Je,z===null&&i!==null&&i[B]===e?B++:z===null?z=[e]:(!ve||!z.includes(e))&&z.push(e));else{(x.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[x]:s.includes(x)||s.push(x)}}}else if(r&&e.deps===null&&e.effects===null){var a=e,o=a.parent;o!==null&&(o.f&U)===0&&(a.f^=U)}if(Ee){if(ce.has(e))return ce.get(e);if(r){a=e;var l=a.v;return((a.f&F)===0&&a.reactions!==null||Xr(a))&&(l=Mt(a)),ce.set(a,l),l}}else r&&(a=e,dt(a)&&wr(a));if((e.f&be)!==0)throw e.v;return e.v}function Xr(e){if(e.v===D)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ce.has(t)||(t.f&Y)!==0&&Xr(t))return!0;return!1}function di(e){var t=re;try{return re=!0,e()}finally{re=t}}const vi=-7169;function W(e,t){e.f=e.f&vi|t}const hi=new Set,Jr=new Set;function _i(e){if(!N)return;e.removeAttribute("onload"),e.removeAttribute("onerror");const t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function bi(e,t,r,n={}){function i(s){if(n.capture||Ke.call(t,s),!s.cancelBubble)return zt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?gr(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function ht(e,t,r,n,i){var s={capture:n,passive:i},a=bi(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ri(()=>{t.removeEventListener(e,a,s)})}let Kr=null;function Ke(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Kr=e;var a=0,o=Kr===e&&e.__root;if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(s=i[a]||e.target,s!==t){Ae(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=x,h=$;X(null),ne(null);try{for(var d,v=[];s!==null;){var c=s.assignedSlot||s.parentNode||s.host||null;try{var b=s["__"+n];if(b!=null&&(!s.disabled||e.target===s))if(yt(b)){var[y,...T]=b;y.apply(s,[e,...T])}else b.call(s,e)}catch(E){d?v.push(E):d=E}if(e.cancelBubble||c===t||c===null)break;s=c}if(d){for(let E of v)queueMicrotask(()=>{throw E});throw d}}finally{e.__root=t,delete e.currentTarget,X(f),ne(h)}}}function pi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function De(e,t){var r=$;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function xe(e,t){var r=(t&bn)!==0,n=(t&pn)!==0,i,s=!e.startsWith("<!>");return()=>{if(N)return De(R,null),R;i===void 0&&(i=pi(s?e:"<!>"+e),r||(i=ye(i)));var a=n||Ar?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=ye(a),l=a.lastChild;De(o,l)}else De(a,a);return a}}function _t(){if(N)return De(R,null),R;var e=document.createDocumentFragment(),t=document.createComment(""),r=Ie();return e.append(t,r),De(t,r),e}function K(e,t){if(N){$.nodes_end=R,it();return}e!==null&&e.before(t)}const gi=["touchstart","touchmove"];function mi(e){return gi.includes(e)}function Zr(e,t){return Qr(e,t)}function wi(e,t){qt(),t.intro=t.intro??!1;const r=t.target,n=N,i=R;try{for(var s=ye(r);s&&(s.nodeType!==Be||s.data!==nr);)s=de(s);if(!s)throw Ce;Q(!0),fe(s),it();const a=Qr(e,{...t,anchor:s});if(R===null||R.nodeType!==Be||R.data!==wt)throw nt(),Ce;return Q(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Ce&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Pn(),qt(),Sr(r),Q(!1),Zr(e,t)}finally{Q(n),fe(i)}}const je=new Map;function Qr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){qt();var o=new Set,l=h=>{for(var d=0;d<h.length;d++){var v=h[d];if(!o.has(v)){o.add(v);var c=mi(v);t.addEventListener(v,Ke,{passive:c});var b=je.get(v);b===void 0?(document.addEventListener(v,Ke,{passive:c}),je.set(v,1)):je.set(v,b+1)}}};l(Et(hi)),Jr.add(l);var u=void 0,f=ii(()=>{var h=r??t.appendChild(Ie());return Me(()=>{if(s){vr({});var d=V;d.c=s}i&&(n.$$events=i),N&&De(h,null),u=e(h,n)||{},N&&($.nodes_end=R),s&&hr()}),()=>{for(var d of o){t.removeEventListener(d,Ke);var v=je.get(d);--v===0?(document.removeEventListener(d,Ke),je.delete(d)):je.set(d,v)}Jr.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return Ut.set(u,f),u}let Ut=new WeakMap;function yi(e,t){const r=Ut.get(e);return r?(Ut.delete(e),r(t)):Promise.resolve()}function Ei(e){V===null&&Rn(),Ir(()=>{const t=di(e);if(typeof t=="function")return t})}function Ze(e,t,r=!1){N&&it();var n=e,i=null,s=null,a=D,o=r?kt:0,l=!1;const u=(v,c=!0)=>{l=!0,d(c,v)};var f=null;function h(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var v=a?i:s,c=a?s:i;v&&Bt(v),c&&Wt(c,()=>{a?s=null:i=null})}const d=(v,c)=>{if(a===(a=v))return;let b=!1;if(N){const S=fr(n)===mt;!!a===S&&(n=St(),fe(n),Q(!1),b=!0)}var y=Or(),T=n;if(y&&(f=document.createDocumentFragment(),f.append(T=Ie())),a?i??=c&&Me(()=>c(T)):s??=c&&Me(()=>c(T)),y){var E=P,L=a?i:s,j=a?s:i;L&&E.skipped_effects.delete(L),j&&E.skipped_effects.add(j),E.add_callback(h)}else h();b&&Q(!0)};Pr(()=>{l=!1,t(u),l||d(null,null)},o),N&&(n=R)}function $i(e,t,r){for(var n=e.items,i=[],s=t.length,a=0;a<s;a++)Yt(t[a].e,i,!0);var o=s>0&&i.length===0&&r!==null;if(o){var l=r.parentNode;Sr(l),l.append(r),n.clear(),ie(e,t[0].prev,t[s-1].next)}Fr(i,()=>{for(var u=0;u<s;u++){var f=t[u];o||(n.delete(f.k),ie(e,f.prev,f.next)),te(f.e,!o)}})}function en(e,t,r,n,i,s=null){var a=e,o={flags:t,items:new Map,first:null},l=(t&rr)!==0;if(l){var u=e;a=N?fe(ye(u)):u.appendChild(Ie())}N&&it();var f=null,h=!1,d=new Map,v=Xn(()=>{var T=r();return yt(T)?T:T==null?[]:Et(T)}),c,b;function y(){xi(b,c,o,d,a,i,t,n,r),s!==null&&(c.length===0?f?Bt(f):f=Me(()=>s(a)):f!==null&&Wt(f,()=>{f=null}))}Pr(()=>{b??=$,c=m(v);var T=c.length;if(h&&T===0)return;h=T===0;let E=!1;if(N){var L=fr(a)===mt;L!==(T===0)&&(a=St(),fe(a),Q(!1),E=!0)}if(N){for(var j=null,S,_=0;_<T;_++){if(R.nodeType===Be&&R.data===wt){a=R,E=!0,Q(!1);break}var w=c[_],C=n(w,_);S=Gt(R,o,j,null,w,C,_,i,t,r),o.items.set(C,S),j=S}T>0&&fe(St())}if(N)T===0&&s&&(f=Me(()=>s(a)));else if(Or()){var O=new Set,I=P;for(_=0;_<T;_+=1){w=c[_],C=n(w,_);var k=o.items.get(C)??d.get(C);k?(t&(Qe|et))!==0&&tn(k,w,_,t):(S=Gt(null,o,null,null,w,C,_,i,t,r,!0),d.set(C,S)),O.add(C)}for(const[A,p]of o.items)O.has(A)||I.skipped_effects.add(p.e);I.add_callback(y)}else y();E&&Q(!0),m(v)}),N&&(a=R)}function xi(e,t,r,n,i,s,a,o,l){var u=(a&hn)!==0,f=(a&(Qe|et))!==0,h=t.length,d=r.items,v=r.first,c=v,b,y=null,T,E=[],L=[],j,S,_,w;if(u)for(w=0;w<h;w+=1)j=t[w],S=o(j,w),_=d.get(S),_!==void 0&&(_.a?.measure(),(T??=new Set).add(_));for(w=0;w<h;w+=1){if(j=t[w],S=o(j,w),_=d.get(S),_===void 0){var C=n.get(S);if(C!==void 0){n.delete(S),d.set(S,C);var O=y?y.next:c;ie(r,y,C),ie(r,C,O),Vt(C,O,i),y=C}else{var I=c?c.e.nodes_start:i;y=Gt(I,r,y,y===null?r.first:y.next,j,S,w,s,a,l)}d.set(S,y),E=[],L=[],c=y.next;continue}if(f&&tn(_,j,w,a),(_.e.f&Z)!==0&&(Bt(_.e),u&&(_.a?.unfix(),(T??=new Set).delete(_))),_!==c){if(b!==void 0&&b.has(_)){if(E.length<L.length){var k=L[0],A;y=k.prev;var p=E[0],g=E[E.length-1];for(A=0;A<E.length;A+=1)Vt(E[A],k,i);for(A=0;A<L.length;A+=1)b.delete(L[A]);ie(r,p.prev,g.next),ie(r,y,p),ie(r,g,k),c=k,y=g,w-=1,E=[],L=[]}else b.delete(_),Vt(_,c,i),ie(r,_.prev,_.next),ie(r,_,y===null?r.first:y.next),ie(r,y,_),y=_;continue}for(E=[],L=[];c!==null&&c.k!==S;)(c.e.f&Z)===0&&(b??=new Set).add(c),L.push(c),c=c.next;if(c===null)continue;_=c}E.push(_),y=_,c=_.next}if(c!==null||b!==void 0){for(var M=b===void 0?[]:Et(b);c!==null;)(c.e.f&Z)===0&&M.push(c),c=c.next;var ke=M.length;if(ke>0){var Kt=(a&rr)!==0&&h===0?i:null;if(u){for(w=0;w<ke;w+=1)M[w].a?.measure();for(w=0;w<ke;w+=1)M[w].a?.fix()}$i(r,M,Kt)}}u&&gr(()=>{if(T!==void 0)for(_ of T)_.a?.apply()}),e.first=r.first&&r.first.e,e.last=y&&y.e;for(var se of n.values())te(se.e);n.clear()}function tn(e,t,r,n){(n&Qe)!==0&&Ve(e.v,t),(n&et)!==0?Ve(e.i,r):e.i=r}function Gt(e,t,r,n,i,s,a,o,l,u,f){var h=(l&Qe)!==0,d=(l&_n)===0,v=h?d?kr(i,!1,!1):Ge(i):i,c=(l&et)===0?a:Ge(a),b={i:c,v,k:s,a:null,e:null,prev:r,next:n};try{if(e===null){var y=document.createDocumentFragment();y.append(e=Ie())}return b.e=Me(()=>o(e,v,c,u),N),b.e.prev=r&&r.e,b.e.next=n&&n.e,r===null?f||(t.first=b):(r.next=b,r.e.next=b.e),n!==null&&(n.prev=b,n.e.prev=b.e),b}finally{}}function Vt(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=de(s);i.before(s),s=a}}function ie(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function Ti(e,t){si(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}const ki=Symbol("is custom element"),Ci=Symbol("is html");function Fe(e,t,r,n){var i=Ai(e);N&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Cn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&rn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function bt(e,t,r){var n=x,i=$;let s=N;N&&Q(!1),X(null),ne(null);try{t!=="style"&&(Xt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?rn(e).includes(t):r&&typeof r=="object")?e[t]=r:Fe(e,t,r==null?r:String(r))}finally{X(n),ne(i),s&&Q(!0)}}function Ai(e){return e.__attributes??={[ki]:e.nodeName.includes("-"),[Ci]:e.namespaceURI===gn}}var Xt=new Map;function rn(e){var t=e.getAttribute("is")||e.nodeName,r=Xt.get(t);if(r)return r;Xt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=wn(i);for(var a in n)n[a].set&&r.push(a);i=sr(i)}return r}function nn(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),o;o=e[t],o===void 0&&n!==void 0&&(o=a());var l;l=()=>{var d=e[t];return d===void 0?a():(s=!0,d)};var u=!1,f=ot(()=>(u=!1,l())),h=$;return(function(d,v){if(arguments.length>0){const c=v?m(f):d;return H(f,c),u=!0,i!==void 0&&(i=c),d}return Ee&&u||(h.f&_e)!==0?f.v:m(f)})}function Ri(e){return new Ni(e)}class Ni{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var o=kr(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return m(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===kn?!0:(m(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return H(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#e=(t.hydrate?wi:Zr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Dt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ae(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{yi(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let sn;typeof HTMLElement=="function"&&(sn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),K(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Si(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=pt(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Ri({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ni(()=>{oi(()=>{this.$$r=!0;for(const n of tt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=pt(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=pt(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 tt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function pt(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 Si(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Oi(e,t,r,n,i,s){let a=class extends sn{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return tt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return tt(t).forEach(o=>{Ae(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=pt(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var f=Re(u,o)?.get;f?u[o]=l:u.$set({[o]:l})}}})}),n.forEach(o=>{Ae(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const Ii={version:"0.61.42"};function an(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gt={exports:{}},on;function Mi(){if(on)return gt.exports;on=1;function e(t,r=100,n={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(r<0)throw new RangeError("`wait` must not be negative.");const{immediate:i}=typeof n=="boolean"?{immediate:n}:n;let s,a,o,l,u;function f(){const v=s,c=a;return s=void 0,a=void 0,u=t.apply(v,c),u}function h(){const v=Date.now()-l;v<r&&v>=0?o=setTimeout(h,r-v):(o=void 0,i||(u=f()))}const d=function(...v){if(s&&this!==s&&Object.getPrototypeOf(this)===Object.getPrototypeOf(s))throw new Error("Debounced method called with different contexts of the same prototype.");s=this,a=v,l=Date.now();const c=i&&!o;return o||(o=setTimeout(h,r)),c&&(u=f()),u};return Object.defineProperty(d,"isPending",{get(){return o!==void 0}}),d.clear=()=>{o&&(clearTimeout(o),o=void 0)},d.flush=()=>{o&&d.trigger()},d.trigger=()=>{u=f(),d.clear()},d}return gt.exports.debounce=e,gt.exports=e,gt.exports}var Pi=Mi();const Li=an(Pi);var qe={},Jt,ln;function Di(){if(ln)return Jt;ln=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
|
|
3
|
+
`,u="/",f="*",h="",d="comment",v="declaration";Jt=function(b,y){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];y=y||{};var T=1,E=1;function L(p){var g=p.match(t);g&&(T+=g.length);var M=p.lastIndexOf(l);E=~M?p.length-M:E+p.length}function j(){var p={line:T,column:E};return function(g){return g.position=new S(p),C(),g}}function S(p){this.start=p,this.end={line:T,column:E},this.source=y.source}S.prototype.content=b;function _(p){var g=new Error(y.source+":"+T+":"+E+": "+p);if(g.reason=p,g.filename=y.source,g.line=T,g.column=E,g.source=b,!y.silent)throw g}function w(p){var g=p.exec(b);if(g){var M=g[0];return L(M),b=b.slice(M.length),g}}function C(){w(r)}function O(p){var g;for(p=p||[];g=I();)g!==!1&&p.push(g);return p}function I(){var p=j();if(!(u!=b.charAt(0)||f!=b.charAt(1))){for(var g=2;h!=b.charAt(g)&&(f!=b.charAt(g)||u!=b.charAt(g+1));)++g;if(g+=2,h===b.charAt(g-1))return _("End of comment missing");var M=b.slice(2,g-2);return E+=2,L(M),b=b.slice(g),E+=2,p({type:d,comment:M})}}function k(){var p=j(),g=w(n);if(g){if(I(),!w(i))return _("property missing ':'");var M=w(s),ke=p({type:v,property:c(g[0].replace(e,h)),value:M?c(M[0].replace(e,h)):h});return w(a),ke}}function A(){var p=[];O(p);for(var g;g=k();)g!==!1&&(p.push(g),O(p));return p}return C(),A()};function c(b){return b?b.replace(o,h):h}return Jt}var un;function ji(){if(un)return qe;un=1;var e=qe&&qe.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(qe,"__esModule",{value:!0}),qe.default=r;var t=e(Di());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var a=(0,t.default)(n),o=typeof i=="function";return a.forEach(function(l){if(l.type==="declaration"){var u=l.property,f=l.value;o?i(u,f,l):f&&(s=s||{},s[u]=f)}}),s}return qe}var Fi=ji();const fn=an(Fi);fn.default;var Te={},cn;function qi(){if(cn)return Te;cn=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.LanguageTranslator=void 0,Te.getChildStyleToPass=e,Te.addComponent=t;function e(n,i){var s,a,o="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(d){return Object.keys(n).includes(d.name)}))===null||a===void 0)&&a.length))for(var l=function(d){var v=i?.filter(function(c){return c.name===d&&c.defaultValue!==n[d]});v&&(o+="".concat(d,":").concat(n[d],";"))},u=0,f=Object.keys(n);u<f.length;u++){var h=f[u];l(h)}}catch(d){console.error("error getting child style to pass",d)}finally{return o}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var a=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(l+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(u){console.warn(u)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,o,l,u="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(u=(l=(o=navigator.languages[0])===null||o===void 0?void 0:o.split("-")[0])===null||l===void 0?void 0:l.toLowerCase()),u},n.getDictionaryWord=function(i,s,a){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((o=s[a])===null||o===void 0)&&o[i]))return s[a][i];var l="",u=n.getDefaultLang();if(!a||u!==a){var f=s?.[u];f?.[i]&&(l=f[i])}return l},n.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return o.format(i)},n})();return Te.LanguageTranslator=r,Te}var Hi=qi(),zi=xe('<iframe class="svelte-1ckzc0s"></iframe>'),Wi=xe("<hb-player-live></hb-player-live>",2),Yi=xe("<hb-player-live-camera-ptz></hb-player-live-camera-ptz>",2),Bi=xe('<video controls><source type="video/mp4"/> <track kind="captions" src="" srclang="en" label="English"/> Your browser does not support the video tag.</video>',2),Ui=xe('<div class="col svelte-1ckzc0s" style="padding-right:0px;padding-left:0px;--bs-gutter-x: 0px;"><!></div>'),Gi=xe('<div class="row svelte-1ckzc0s"></div>'),Vi=xe('<div id="matrix" class="svelte-1ckzc0s"><!></div>');const Xi={hash:"svelte-1ckzc0s",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");:host {font-family:"Roboto", sans-serif;width:100%;display:block;background-color:black;}#matrix.svelte-1ckzc0s {display:grid;gap:5px;
|
|
4
4
|
/* Play with min-value */overflow:hidden;}.col.svelte-1ckzc0s {margin:5px;}.row.svelte-1ckzc0s {margin-top:5px !important;margin-left:5px !important;margin-right:5px !important;}iframe.svelte-1ckzc0s {border:none;width:100%;height:100%;margin:0px;padding:0px;}
|
|
5
5
|
/*!
|
|
6
6
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
@media (min-width: 1200px) {
|
|
18
18
|
}
|
|
19
19
|
@media (min-width: 1400px) {
|
|
20
|
-
}`};function
|
|
20
|
+
}`};function dn(e,t){vr(t,!0),Ti(e,Xi);function r(_,w){t.$$host.dispatchEvent(new CustomEvent(_,{detail:w}))}const n=t.$$host;let i=nn(t,"id",7,""),s=nn(t,"items");we({});let a=q(0),o=q(0),l=q(0),u=q(0),f=q(void 0),h=q(we([]));function d(){if(m(o)&&m(a)){const _=1.7777777777777777,w=m(o)/m(a);let C=0,O=0;if(s().length===1)C=1,O=1;else if(m(o)<450)O=1,C=s().length;else if(s().length===2)w>_?(C=1,O=2):(C=2,O=1);else if(w>_){let I=1/0;for(let k=1;k<=s().length;k++){const A=Math.ceil(s().length/k),p=m(a)/k*_*A;if(p<=m(o)){const g=m(o)-p;g<I&&(I=g,C=k,O=A)}}}else{let I=1/0;for(let k=1;k<=s().length;k++){const A=Math.ceil(s().length/k),p=m(o)/k/_*A;if(p<=m(a)){const g=m(a)-p;g<I&&(I=g,O=k,C=A)}}}if(H(l,C,!0),H(u,O,!0),m(l)&&m(u)){const I=[];for(let k=0;k<m(l);k++)for(let A=0;A<m(u);A++){const p=s()[k*m(u)+A];p&&(I[k]||(I[k]={row:k,items:[]}),I[k].items[A]=p)}H(h,I,!0),console.log(m(h),m(l),m(u),"drawItems")}}}function v(){if(window.innerWidth&&window.innerHeight&&n?.shadowRoot){const w=n.shadowRoot.getElementById("matrix");w?.style&&(H(a,window.innerHeight-w.offsetTop),H(o,Number(w.clientWidth),!0),w.style.height=m(a)+"px",console.log(`setSize w:${m(o)} h:${m(a)}`),d())}}Ir(()=>{if(typeof s()=="string")try{s(JSON.parse(s())),d()}catch(_){console.error("error parsing items",_)}}),Hi.addComponent({repoName:"@htmlbricks/hb-player-live",version:Ii.version}),Ei(()=>{v()});function c(_){H(f,_,!0),r("hoverItem",{id:_,selected:!!m(f)})}function b(){m(f)?r("clickItem",{id:m(f)}):console.info("No video selected")}function y(_){const w=_;try{w.contentWindow?.document.addEventListener("click",()=>{b()})}catch(C){console.warn("error adding click event to iframe",C)}}var T={get id(){return i()},set id(_=""){i(_),Dt()},get items(){return s()},set items(_){s(_),Dt()}},E=Vi(),L=Vn(()=>Li(v,200));ht("resize",Ft,function(..._){m(L)?.apply(this,_)});var j=Ht(E);{var S=_=>{var w=_t(),C=ct(w);en(C,17,()=>m(h),O=>O.row,(O,I)=>{var k=Gi();en(k,21,()=>m(I).items,A=>A.id,(A,p)=>{var g=Ui(),M=Ht(g);{var ke=se=>{var he=zi();Xe(()=>{Fe(he,"title",m(p).title),Fe(he,"src",m(p).uri)}),ht("load",he,Zt=>y(Zt.target)),_i(he),K(se,he)},Kt=se=>{var he=_t(),Zt=ct(he);{var Ji=He=>{var ze=Wi();bt(ze,"media_type","whep"),Xe(()=>bt(ze,"mediauri",`${m(p).uri??""}/whep`)),K(He,ze)},Ki=He=>{var ze=_t(),Zi=ct(ze);{var Qi=We=>{var Ye=Yi();bt(Ye,"media_type","whep"),Xe(()=>bt(Ye,"live_uri",`${m(p).uri??""}/whep`)),K(We,Ye)},es=We=>{var Ye=_t(),ts=ct(Ye);{var rs=Qt=>{var er=Bi(),vn=Ht(er);Fn(3),st(er),Xe(()=>{Fe(vn,"title",m(p).title),Fe(vn,"src",m(p).uri)}),K(Qt,er)};Ze(ts,Qt=>{m(p).type==="video"&&Qt(rs)},!0)}K(We,Ye)};Ze(Zi,We=>{m(p).type==="mediamtx-webrtc-ptz"?We(Qi):We(es,!1)},!0)}K(He,ze)};Ze(Zt,He=>{m(p).type==="mediamtx-webrtc"?He(Ji):He(Ki,!1)},!0)}K(se,he)};Ze(M,se=>{m(p).type==="iframe"?se(ke):se(Kt,!1)})}st(g),Xe(()=>Fe(g,"id",`select_${m(p).id??""}`)),ht("mouseleave",g,se=>c()),ht("mouseenter",g,se=>c(m(p).id)),K(A,g)}),st(k),K(O,k)}),K(_,w)};Ze(j,_=>{s()&&typeof s()=="object"&&_(S)})}return st(E),K(e,E),hr(T)}customElements.define("hb-matrix-video",Oi(dn,{id:{},items:{}},[],[],!0)),tr.Component=dn,Object.defineProperty(tr,Symbol.toStringTag,{value:"Module"})})(this["matrix-video"]=this["matrix-video"]||{});
|
|
21
21
|
//# sourceMappingURL=main.iife.js.map
|