@htmlbricks/hb-matrix-video 0.66.6 → 0.66.7
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 +2 -2
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(Gt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const cr=1,hr=2,Kt=4,dr=8,vr=16,_r=1,pr=2,Jt="[",yt="[!",Xt="[?",$t="]",Pe={},L=Symbol(),Zt="http://www.w3.org/1999/xhtml",gr=!1;var Qt=Array.isArray,mr=Array.prototype.indexOf,Le=Array.prototype.includes,rt=Array.from,it=Object.keys,st=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,wr=Object.getOwnPropertyDescriptors,br=Object.prototype,yr=Array.prototype,en=Object.getPrototypeOf,tn=Object.isExtensible;const $r=()=>{};function Er(e){for(var t=0;t<e.length;t++)e[t]()}function nn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const D=2,je=4,lt=8,rn=1<<24,ge=16,re=32,me=64,Et=128,X=512,I=1024,j=2048,fe=4096,G=8192,Z=16384,we=32768,sn=1<<25,He=65536,ln=1<<17,xr=1<<18,ke=1<<19,Tr=1<<20,ae=1<<25,Ae=65536,xt=1<<21,Tt=1<<22,be=1<<23,St=Symbol("$state"),Sr=Symbol("legacy props"),kr=Symbol(""),he=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ar=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),on=3,Ke=8;function Nr(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Cr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Rr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Or(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ir(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Mr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Dr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Pr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Lr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function jr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Hr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ot(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function zr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let E=!1;function ie(e){E=e}let $;function se(e){if(e===null)throw ot(),Pe;return $=e}function ft(){return se(_e($))}function at(e){if(E){if(_e($)!==null)throw ot(),Pe;$=e}}function fn(e=1){if(E){for(var t=e,n=$;t--;)n=_e(n);$=n}}function ut(e=!0){for(var t=0,n=$;;){if(n.nodeType===Ke){var r=n.data;if(r===$t){if(t===0)return n;t-=1}else(r===Jt||r===yt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=_e(n);e&&n.remove(),n=i}}function an(e){if(!e||e.nodeType!==Ke)throw ot(),Pe;return e.data}function un(e){return e===this.v}function Br(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function cn(e){return!Br(e,this.v)}let qr=!1,K=null;function ze(e){K=e}function hn(e,t=!1,n){K={p:K,i:!1,c:null,e:null,s:e,x:null,r:m,l:null}}function dn(e){var t=K,n=t.e;if(n!==null){t.e=null;for(var r of n)Fn(r)}return e!==void 0&&(t.x=e),t.i=!0,K=t.p,e??{}}function vn(){return!0}let Ne=[];function _n(){var e=Ne;Ne=[],Er(e)}function ye(e){if(Ne.length===0&&!Je){var t=Ne;queueMicrotask(()=>{t===Ne&&_n()})}Ne.push(e)}function Yr(){for(;Ne.length>0;)_n()}function pn(e){var t=m;if(t===null)return g.f|=be,e;if((t.f&we)===0&&(t.f&je)===0)throw e;$e(e,t)}function $e(e,t){for(;t!==null;){if((t.f&Et)!==0){if((t.f&we)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Vr=-7169;function R(e,t){e.f=e.f&Vr|t}function kt(e){(e.f&X)!==0||e.deps===null?R(e,I):R(e,fe)}function gn(e){if(e!==null)for(const t of e)(t.f&D)===0||(t.f&Ae)===0||(t.f^=Ae,gn(t.deps))}function mn(e,t,n){(e.f&j)!==0?t.add(e):(e.f&fe)!==0&&n.add(e),gn(e.deps),R(e,I)}const Ee=new Set;let S=null,le=null,At=null,Je=!1,Nt=!1,Be=null,ct=null;var wn=0;let Ur=1;class de{id=Ur++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#l=new Set;#o=new Set;#f=new Map;is_fork=!1;#c=!1;#a=new Set;#h(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#a)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#f.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#f.has(t)||this.#f.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#f.get(t);if(n){this.#f.delete(t);for(var r of n.d)R(r,j),this.schedule(r);for(r of n.m)R(r,fe),this.schedule(r)}}#d(){if(wn++>1e3&&(Ee.delete(this),Wr()),!this.#h()){for(const o of this.#l)this.#o.delete(o),R(o,j),this.schedule(o);for(const o of this.#o)R(o,fe),this.schedule(o)}const t=this.#r;this.#r=[],this.apply();var n=Be=[],r=[],i=ct=[];for(const o of t)try{this.#u(o,n,r)}catch(f){throw xn(o),f}if(S=null,i.length>0){var s=de.ensure();for(const o of i)s.schedule(o)}if(Be=null,ct=null,this.#h()||this.#v()){this.#_(r),this.#_(n);for(const[o,f]of this.#f)En(o,f)}else{this.#t.size===0&&Ee.delete(this),this.#l.clear(),this.#o.clear();for(const o of this.#e)o(this);this.#e.clear(),bn(r),bn(n),this.#s?.resolve()}var l=S;if(this.#r.length>0){const o=l??=this;o.#r.push(...this.#r.filter(f=>!o.#r.includes(f)))}l!==null&&(Ee.add(l),l.#d()),Ee.has(this)||this.#p()}#u(t,n,r){t.f^=I;for(var i=t.first;i!==null;){var s=i.f,l=(s&(re|me))!==0,o=l&&(s&I)!==0,f=o||(s&G)!==0||this.#f.has(i);if(!f&&i.fn!==null){l?i.f^=I:(s&je)!==0?n.push(i):Qe(i)&&((s&ge)!==0&&this.#o.add(i),Ve(i));var a=i.first;if(a!==null){i=a;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)mn(t[n],this.#l,this.#o)}capture(t,n,r=!1){n!==L&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&be)===0&&(this.current.set(t,[t.v,r]),le?.set(t,t.v))}activate(){S=this}deactivate(){S=null,le=null}flush(){try{Nt=!0,S=this,this.#d()}finally{wn=0,At=null,Be=null,ct=null,Nt=!1,S=null,le=null,xe.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),Ee.delete(this)}#p(){for(const a of Ee){var t=a.id<this.id,n=[];for(const[u,[d,c]]of this.current){if(a.current.has(u)){var r=a.current.get(u)[0];if(t&&d!==r)a.current.set(u,[d,c]);else continue}n.push(u)}var i=[...a.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&a.discard();else if(n.length>0){a.activate();var s=new Set,l=new Map;for(var o of n)yn(o,i,s,l);if(a.#r.length>0){a.apply();for(var f of a.#r)a.#u(f,[],[]);a.#r=[]}a.deactivate()}}for(const a of Ee)a.#a.has(this)&&(a.#a.delete(this),a.#a.size===0&&!a.#h()&&(a.activate(),a.#d()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,ye(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#l.add(r);for(const r of n)this.#o.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=nn()).promise}static ensure(){if(S===null){const t=S=new de;Nt||(Ee.add(S),Je||ye(()=>{S===t&&t.flush()}))}return S}apply(){{le=null;return}}schedule(t){if(At=t,t.b?.is_pending&&(t.f&(je|lt|rn))!==0&&(t.f&we)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Be!==null&&n===m&&(g===null||(g.f&D)===0))return;if((r&(me|re))!==0){if((r&I)===0)return;n.f^=I}}this.#r.push(n)}}function Ct(e){var t=Je;Je=!0;try{for(var n;;){if(Yr(),S===null)return n;S.flush()}}finally{Je=t}}function Wr(){try{Dr()}catch(e){$e(e,At)}}let ve=null;function bn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Z|G))===0&&Qe(r)&&(ve=new Set,Ve(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&zn(r),ve?.size>0)){xe.clear();for(const i of ve){if((i.f&(Z|G))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)ve.has(l)&&(ve.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const f=s[o];(f.f&(Z|G))===0&&Ve(f)}}ve.clear()}}ve=null}}function yn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&D)!==0?yn(i,t,n,r):(s&(Tt|ge))!==0&&(s&j)===0&&$n(i,t,r)&&(R(i,j),Rt(i))}}function $n(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(Le.call(t,i))return!0;if((i.f&D)!==0&&$n(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Rt(e){S.schedule(e)}function En(e,t){if(!((e.f&re)!==0&&(e.f&I)!==0)){(e.f&j)!==0?t.d.push(e):(e.f&fe)!==0&&t.m.push(e),R(e,I);for(var n=e.first;n!==null;)En(n,t),n=n.next}}function xn(e){R(e,I);for(var t=e.first;t!==null;)xn(t),t=t.next}function Gr(e){let t=0,n=Ce(0),r;return()=>{jt()&&(p(n),jn(()=>(t===0&&(r=Qn(()=>e(()=>Xe(n)))),t+=1,()=>{ye(()=>{t-=1,t===0&&(r?.(),r=void 0,Xe(n))})})))}}var Kr=He|ke;function Jr(e,t,n,r){new Xr(e,t,n,r)}class Xr{parent;is_pending=!1;transform_error;#e;#n=E?$:null;#t;#i;#s;#r=null;#l=null;#o=null;#f=null;#c=0;#a=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=Gr(()=>(this.#u=Ce(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var l=m;l.b=this,l.f|=Et,r(s)},this.parent=m.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=Ht(()=>{if(E){const s=this.#n;ft();const l=s.data===yt;if(s.data.startsWith(Xt)){const f=JSON.parse(s.data.slice(Xt.length));this.#y(f)}else l?this.#$():this.#p()}else this.#w()},Kr),E&&(this.#e=$)}#p(){try{this.#r=Q(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#o=Q(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=Q(()=>t(this.#e)),ye(()=>{var n=this.#f=document.createDocumentFragment(),r=ue();n.append(r),this.#r=this.#m(()=>Q(()=>this.#i(r))),this.#a===0&&(this.#e.before(n),this.#f=null,Oe(this.#l,()=>{this.#l=null}),this.#g(S))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#a=0,this.#c=0,this.#r=Q(()=>{this.#i(this.#e)}),this.#a>0){var t=this.#f=document.createDocumentFragment();qt(this.#r,t);const n=this.#t.pending;this.#l=Q(()=>n(this.#e))}else this.#g(S)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#d)}defer_effect(t){mn(t,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var n=m,r=g,i=K;ee(this.#s),q(this.#s),ze(this.#s.ctx);try{return de.ensure(),t()}catch(s){return pn(s),null}finally{ee(n),q(r),ze(i)}}#b(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t,n);return}this.#a+=t,this.#a===0&&(this.#g(n),this.#l&&Oe(this.#l,()=>{this.#l=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t,n){this.#b(t,n),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,ye(()=>{this.#h=!1,this.#u&&qe(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),p(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(z(this.#r),this.#r=null),this.#l&&(z(this.#l),this.#l=null),this.#o&&(z(this.#o),this.#o=null),E&&(se(this.#n),fn(),se(ut()));var i=!1,s=!1;const l=()=>{if(i){zr();return}i=!0,s&&Hr(),this.#o!==null&&Oe(this.#o,()=>{this.#o=null}),this.#m(()=>{this.#w()})},o=f=>{try{s=!0,n?.(f,l),s=!1}catch(a){$e(a,this.#s&&this.#s.parent)}r&&(this.#o=this.#m(()=>{try{return Q(()=>{var a=m;a.b=this,a.f|=Et,r(this.#e,()=>f,()=>l)})}catch(a){return $e(a,this.#s.parent),null}}))};ye(()=>{var f;try{f=this.transform_error(t)}catch(a){$e(a,this.#s&&this.#s.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(o,a=>$e(a,this.#s&&this.#s.parent)):o(f)})}}function Zr(e,t,n,r){const i=dt;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var l=m,o=Qr(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function a(c){o();try{r(c)}catch(_){(l.f&Z)===0&&$e(_,l)}ht()}if(n.length===0){f.then(()=>a(t.map(i)));return}var u=Tn();function d(){Promise.all(n.map(c=>ei(c))).then(c=>a([...t.map(i),...c])).catch(c=>$e(c,l)).finally(()=>u())}f?f.then(()=>{o(),d(),ht()}):d()}function Qr(){var e=m,t=g,n=K,r=S;return function(s=!0){ee(e),q(t),ze(n),s&&(e.f&Z)===0&&(r?.activate(),r?.apply())}}function ht(e=!0){ee(null),q(null),ze(null),e&&S?.deactivate()}function Tn(){var e=m,t=e.b,n=S,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function dt(e){var t=D|j,n=g!==null&&(g.f&D)!==0?g:null;return m!==null&&(m.f|=ke),{ctx:K,deps:null,effects:null,equals:un,f:t,fn:e,reactions:null,rv:0,v:L,wv:0,parent:n??m,ac:null}}function ei(e,t,n){let r=m;r===null&&Cr();var i=void 0,s=Ce(L),l=!g,o=new Map;return vi(()=>{var f=m,a=nn();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).finally(ht)}catch(_){a.reject(_),ht()}var u=S;if(l){if((f.f&we)!==0)var d=Tn();if(r.b.is_rendered())o.get(u)?.reject(he),o.delete(u);else{for(const _ of o.values())_.reject(he);o.clear()}o.set(u,a)}const c=(_,v=void 0)=>{if(d){var w=v===he;d(w)}if(!(v===he||(f.f&Z)!==0)){if(u.activate(),v)s.f|=be,qe(s,v);else{(s.f&be)!==0&&(s.f^=be),qe(s,_);for(const[h,b]of o){if(o.delete(h),h===u)break;b.reject(he)}}u.deactivate()}};a.promise.then(c,_=>c(null,_||"unknown"))}),Pn(()=>{for(const f of o.values())f.reject(he)}),new Promise(f=>{function a(u){function d(){u===i?f(s):a(i)}u.then(d,d)}a(i)})}function ti(e){const t=dt(e);return Vn(t),t}function ni(e){const t=dt(e);return t.equals=cn,t}function ri(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)z(t[n])}}function ii(e){for(var t=e.parent;t!==null;){if((t.f&D)===0)return(t.f&Z)===0?t:null;t=t.parent}return null}function Ot(e){var t,n=m;ee(ii(e));try{e.f&=~Ae,ri(e),t=Jn(e)}finally{ee(n)}return t}function Sn(e){var t=e.v,n=Ot(e);if(!e.equals(n)&&(e.wv=Gn(),(!S?.is_fork||e.deps===null)&&(e.v=n,S?.capture(e,t,!0),e.deps===null))){R(e,I);return}Te||(le!==null?(jt()||S?.is_fork)&&le.set(e,n):kt(e))}function si(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(he),t.teardown=$r,t.ac=null,et(t,0),zt(t))}function kn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ve(t)}let It=new Set;const xe=new Map;let An=!1;function Ce(e,t){var n={f:0,v:e,reactions:null,equals:un,rv:0,wv:0};return n}function B(e,t){const n=Ce(e);return Vn(n),n}function Nn(e,t=!1,n=!0){const r=Ce(e);return t||(r.equals=cn),r}function H(e,t,n=!1){g!==null&&(!oe||(g.f&ln)!==0)&&vn()&&(g.f&(D|ge|Tt|ln))!==0&&(te===null||!Le.call(te,e))&&jr();let r=n?Ye(t):t;return qe(e,r,ct)}function qe(e,t,n=null){if(!e.equals(t)){var r=e.v;Te?xe.set(e,t):xe.set(e,r),e.v=t;var i=de.ensure();if(i.capture(e,r),(e.f&D)!==0){const s=e;(e.f&j)!==0&&Ot(s),le===null&&kt(s)}e.wv=Gn(),Cn(e,j,n),m!==null&&(m.f&I)!==0&&(m.f&(re|me))===0&&(ne===null?gi([e]):ne.push(e)),!i.is_fork&&It.size>0&&!An&&li()}return t}function li(){An=!1;for(const e of It)(e.f&I)!==0&&R(e,fe),Qe(e)&&Ve(e);It.clear()}function Xe(e){H(e,e.v+1)}function Cn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var l=r[s],o=l.f,f=(o&j)===0;if(f&&R(l,t),(o&D)!==0){var a=l;le?.delete(a),(o&Ae)===0&&(o&X&&(l.f|=Ae),Cn(a,fe,n))}else if(f){var u=l;(o&ge)!==0&&ve!==null&&ve.add(u),n!==null?n.push(u):Rt(u)}}}function Ye(e){if(typeof e!="object"||e===null||St in e)return e;const t=en(e);if(t!==br&&t!==yr)return e;var n=new Map,r=Qt(e),i=B(0),s=Me,l=o=>{if(Me===s)return o();var f=g,a=Me;q(null),Wn(s);var u=o();return q(f),Wn(a),u};return r&&n.set("length",B(e.length)),new Proxy(e,{defineProperty(o,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Lr();var u=n.get(f);return u===void 0?l(()=>{var d=B(a.value);return n.set(f,d),d}):H(u,a.value,!0),!0},deleteProperty(o,f){var a=n.get(f);if(a===void 0){if(f in o){const u=l(()=>B(L));n.set(f,u),Xe(i)}}else H(a,L),Xe(i);return!0},get(o,f,a){if(f===St)return e;var u=n.get(f),d=f in o;if(u===void 0&&(!d||Fe(o,f)?.writable)&&(u=l(()=>{var _=Ye(d?o[f]:L),v=B(_);return v}),n.set(f,u)),u!==void 0){var c=p(u);return c===L?void 0:c}return Reflect.get(o,f,a)},getOwnPropertyDescriptor(o,f){var a=Reflect.getOwnPropertyDescriptor(o,f);if(a&&"value"in a){var u=n.get(f);u&&(a.value=p(u))}else if(a===void 0){var d=n.get(f),c=d?.v;if(d!==void 0&&c!==L)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(o,f){if(f===St)return!0;var a=n.get(f),u=a!==void 0&&a.v!==L||Reflect.has(o,f);if(a!==void 0||m!==null&&(!u||Fe(o,f)?.writable)){a===void 0&&(a=l(()=>{var c=u?Ye(o[f]):L,_=B(c);return _}),n.set(f,a));var d=p(a);if(d===L)return!1}return u},set(o,f,a,u){var d=n.get(f),c=f in o;if(r&&f==="length")for(var _=a;_<d.v;_+=1){var v=n.get(_+"");v!==void 0?H(v,L):_ in o&&(v=l(()=>B(L)),n.set(_+"",v))}if(d===void 0)(!c||Fe(o,f)?.writable)&&(d=l(()=>B(void 0)),H(d,Ye(a)),n.set(f,d));else{c=d.v!==L;var w=l(()=>Ye(a));H(d,w)}var h=Reflect.getOwnPropertyDescriptor(o,f);if(h?.set&&h.set.call(u,a),!c){if(r&&typeof f=="string"){var b=n.get("length"),M=Number(f);Number.isInteger(M)&&M>=b.v&&H(b,M+1)}Xe(i)}return!0},ownKeys(o){p(i);var f=Reflect.ownKeys(o).filter(d=>{var c=n.get(d);return c===void 0||c.v!==L});for(var[a,u]of n)u.v!==L&&!(a in o)&&f.push(a);return f},setPrototypeOf(){Fr()}})}var Mt,Rn,On,In;function Dt(){if(Mt===void 0){Mt=window,Rn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;On=Fe(t,"firstChild").get,In=Fe(t,"nextSibling").get,tn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),tn(n)&&(n.__t=void 0)}}function ue(e=""){return document.createTextNode(e)}function Re(e){return On.call(e)}function _e(e){return In.call(e)}function Pt(e,t){if(!E)return Re(e);var n=Re($);return n===null&&(n=$.appendChild(ue())),se(n),n}function oi(e,t=!1){if(!E){var n=Re(e);return n instanceof Comment&&n.data===""?_e(n):n}if(t){if($?.nodeType!==on){var r=ue();return $?.before(r),se(r),r}fi($)}return $}function Mn(e){e.textContent=""}function Dn(){return!1}function Lt(e,t,n){return document.createElementNS(Zt,e,void 0)}function fi(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===on;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Ft(e){var t=g,n=m;q(null),ee(null);try{return e()}finally{q(t),ee(n)}}function ai(e){m===null&&(g===null&&Mr(),Ir()),Te&&Or()}function ui(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ce(e,t){var n=m;n!==null&&(n.f&G)!==0&&(e|=G);var r={ctx:K,deps:null,nodes:null,f:e|j|X,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&je)!==0)Be!==null?Be.push(r):de.ensure().schedule(r);else if(t!==null){try{Ve(r)}catch(l){throw z(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ke)===0&&(i=i.first,(e&ge)!==0&&(e&He)!==0&&i!==null&&(i.f|=He))}if(i!==null&&(i.parent=n,n!==null&&ui(i,n),g!==null&&(g.f&D)!==0&&(e&me)===0)){var s=g;(s.effects??=[]).push(i)}return r}function jt(){return g!==null&&!oe}function Pn(e){const t=ce(lt,null);return R(t,I),t.teardown=e,t}function Ln(e){ai();var t=m.f,n=!g&&(t&re)!==0&&(t&we)===0;if(n){var r=K;(r.e??=[]).push(e)}else return Fn(e)}function Fn(e){return ce(je|Tr,e)}function ci(e){de.ensure();const t=ce(me|ke,e);return()=>{z(t)}}function hi(e){de.ensure();const t=ce(me|ke,e);return(n={})=>new Promise(r=>{n.outro?Oe(t,()=>{z(t),r(void 0)}):(z(t),r(void 0))})}function di(e){return ce(je,e)}function vi(e){return ce(Tt|ke,e)}function jn(e,t=0){return ce(lt|t,e)}function Ze(e,t=[],n=[],r=[]){Zr(r,t,n,i=>{ce(lt,()=>e(...i.map(p)))})}function Ht(e,t=0){var n=ce(ge|t,e);return n}function Q(e){return ce(re|ke,e)}function Hn(e){var t=e.teardown;if(t!==null){const n=Te,r=g;Yn(!0),q(null);try{t.call(null)}finally{Yn(n),q(r)}}}function zt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Ft(()=>{i.abort(he)});var r=n.next;(n.f&me)!==0?n.parent=null:z(n,t),n=r}}function _i(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&re)===0&&z(t),t=n}}function z(e,t=!0){var n=!1;(t||(e.f&xr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(pi(e.nodes.start,e.nodes.end),n=!0),R(e,sn),zt(e,t&&!n),et(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Hn(e),e.f^=sn,e.f|=Z;var i=e.parent;i!==null&&i.first!==null&&zn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function pi(e,t){for(;e!==null;){var n=e===t?null:_e(e);e.remove(),e=n}}function zn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Oe(e,t,n=!0){var r=[];Bn(e,r,!0);var i=()=>{n&&z(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||i();for(var o of r)o.out(l)}else i()}function Bn(e,t,n){if((e.f&G)===0){e.f^=G;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,l=(i.f&He)!==0||(i.f&re)!==0&&(e.f&ge)!==0;Bn(i,t,l?n:!1),i=s}}}function Bt(e){qn(e,!0)}function qn(e,t){if((e.f&G)!==0){e.f^=G,(e.f&I)===0&&(R(e,j),de.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&He)!==0||(n.f&re)!==0;qn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function qt(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:_e(n);t.append(n),n=i}}let vt=!1,Te=!1;function Yn(e){Te=e}let g=null,oe=!1;function q(e){g=e}let m=null;function ee(e){m=e}let te=null;function Vn(e){g!==null&&(te===null?te=[e]:te.push(e))}let Y=null,J=0,ne=null;function gi(e){ne=e}let Un=1,Ie=0,Me=Ie;function Wn(e){Me=e}function Gn(){return++Un}function Qe(e){var t=e.f;if((t&j)!==0)return!0;if(t&D&&(e.f&=~Ae),(t&fe)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Qe(s)&&Sn(s),s.wv>e.wv)return!0}(t&X)!==0&&le===null&&R(e,I)}return!1}function Kn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(te!==null&&Le.call(te,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&D)!==0?Kn(s,t,!1):t===s&&(n?R(s,j):(s.f&I)!==0&&R(s,fe),Rt(s))}}function Jn(e){var t=Y,n=J,r=ne,i=g,s=te,l=K,o=oe,f=Me,a=e.f;Y=null,J=0,ne=null,g=(a&(re|me))===0?e:null,te=null,ze(e.ctx),oe=!1,Me=++Ie,e.ac!==null&&(Ft(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=xt;var u=e.fn,d=u();e.f|=we;var c=e.deps,_=S?.is_fork;if(Y!==null){var v;if(_||et(e,J),c!==null&&J>0)for(c.length=J+Y.length,v=0;v<Y.length;v++)c[J+v]=Y[v];else e.deps=c=Y;if(jt()&&(e.f&X)!==0)for(v=J;v<c.length;v++)(c[v].reactions??=[]).push(e)}else!_&&c!==null&&J<c.length&&(et(e,J),c.length=J);if(vn()&&ne!==null&&!oe&&c!==null&&(e.f&(D|fe|j))===0)for(v=0;v<ne.length;v++)Kn(ne[v],e);if(i!==null&&i!==e){if(Ie++,i.deps!==null)for(let w=0;w<n;w+=1)i.deps[w].rv=Ie;if(t!==null)for(const w of t)w.rv=Ie;ne!==null&&(r===null?r=ne:r.push(...ne))}return(e.f&be)!==0&&(e.f^=be),d}catch(w){return pn(w)}finally{e.f^=xt,Y=t,J=n,ne=r,g=i,te=s,ze(l),oe=o,Me=f}}function mi(e,t){let n=t.reactions;if(n!==null){var r=mr.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&D)!==0&&(Y===null||!Le.call(Y,t))){var s=t;(s.f&X)!==0&&(s.f^=X,s.f&=~Ae),kt(s),si(s),et(s,0)}}function et(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)mi(e,n[r])}function Ve(e){var t=e.f;if((t&Z)===0){R(e,I);var n=m,r=vt;m=e,vt=!0;try{(t&(ge|rn))!==0?_i(e):zt(e),Hn(e);var i=Jn(e);e.teardown=typeof i=="function"?i:null,e.wv=Un;var s;gr&&qr&&(e.f&j)!==0&&e.deps}finally{vt=r,m=n}}}function p(e){var t=e.f,n=(t&D)!==0;if(g!==null&&!oe){var r=m!==null&&(m.f&Z)!==0;if(!r&&(te===null||!Le.call(te,e))){var i=g.deps;if((g.f&xt)!==0)e.rv<Ie&&(e.rv=Ie,Y===null&&i!==null&&i[J]===e?J++:Y===null?Y=[e]:Y.push(e));else{(g.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[g]:Le.call(s,g)||s.push(g)}}}if(Te&&xe.has(e))return xe.get(e);if(n){var l=e;if(Te){var o=l.v;return((l.f&I)===0&&l.reactions!==null||Zn(l))&&(o=Ot(l)),xe.set(l,o),o}var f=(l.f&X)===0&&!oe&&g!==null&&(vt||(g.f&X)!==0),a=(l.f&we)===0;Qe(l)&&(f&&(l.f|=X),Sn(l)),f&&!a&&(kn(l),Xn(l))}if(le?.has(e))return le.get(e);if((e.f&be)!==0)throw e.v;return e.v}function Xn(e){if(e.f|=X,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&D)!==0&&(t.f&X)===0&&(kn(t),Xn(t))}function Zn(e){if(e.v===L)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(xe.has(t)||(t.f&D)!==0&&Zn(t))return!0;return!1}function Qn(e){var t=oe;try{return oe=!0,e()}finally{oe=t}}const _t=Symbol("events"),wi=new Set,er=new Set;function bi(e){if(!E)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 yi(e,t,n,r={}){function i(s){if(r.capture||Yt.call(t,s),!s.cancelBubble)return Ft(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ye(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function pt(e,t,n,r,i){var s={capture:r,passive:i},l=yi(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Pn(()=>{t.removeEventListener(e,l,s)})}let tr=null;function Yt(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;tr=e;var l=0,o=tr===e&&e[_t];if(o){var f=i.indexOf(o);if(f!==-1&&(t===document||t===window)){e[_t]=t;return}var a=i.indexOf(t);if(a===-1)return;f<=a&&(l=f)}if(s=i[l]||e.target,s!==t){st(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=g,d=m;q(null),ee(null);try{for(var c,_=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var w=s[_t]?.[r];w!=null&&(!s.disabled||e.target===s)&&w.call(s,e)}catch(h){c?_.push(h):c=h}if(e.cancelBubble||v===t||v===null)break;s=v}if(c){for(let h of _)queueMicrotask(()=>{throw h});throw c}}finally{e[_t]=t,delete e.currentTarget,q(u),ee(d)}}}const $i=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Ei(e){return $i?.createHTML(e)??e}function xi(e){var t=Lt("template");return t.innerHTML=Ei(e.replaceAll("<!>","<!---->")),t.content}function Ue(e,t){var n=m;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function De(e,t){var n=(t&_r)!==0,r=(t&pr)!==0,i,s=!e.startsWith("<!>");return()=>{if(E)return Ue($,null),$;i===void 0&&(i=xi(s?e:"<!>"+e),n||(i=Re(i)));var l=r||Rn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Re(l),f=l.lastChild;Ue(o,f)}else Ue(l,l);return l}}function Ti(){if(E)return Ue($,null),$;var e=document.createDocumentFragment(),t=document.createComment(""),n=ue();return e.append(t,n),Ue(t,n),e}function pe(e,t){if(E){var n=m;((n.f&we)===0||n.nodes.end===null)&&(n.nodes.end=$),ft();return}e!==null&&e.before(t)}const Si=["touchstart","touchmove"];function ki(e){return Si.includes(e)}function nr(e,t){return rr(e,t)}function Ai(e,t){Dt(),t.intro=t.intro??!1;const n=t.target,r=E,i=$;try{for(var s=Re(n);s&&(s.nodeType!==Ke||s.data!==Jt);)s=_e(s);if(!s)throw Pe;ie(!0),se(s);const l=rr(e,{...t,anchor:s});return ie(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Pe&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Pr(),Dt(),Mn(n),ie(!1),nr(e,t)}finally{ie(r),se(i)}}const gt=new Map;function rr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:o}){Dt();var f=void 0,a=hi(()=>{var u=n??t.appendChild(ue());Jr(u,{pending:()=>{}},_=>{hn({});var v=K;if(s&&(v.c=s),i&&(r.$$events=i),E&&Ue(_,null),f=e(_,r)||{},E&&(m.nodes.end=$,$===null||$.nodeType!==Ke||$.data!==$t))throw ot(),Pe;dn()},o);var d=new Set,c=_=>{for(var v=0;v<_.length;v++){var w=_[v];if(!d.has(w)){d.add(w);var h=ki(w);for(const k of[t,document]){var b=gt.get(k);b===void 0&&(b=new Map,gt.set(k,b));var M=b.get(w);M===void 0?(k.addEventListener(w,Yt,{passive:h}),b.set(w,1)):b.set(w,M+1)}}}};return c(rt(wi)),er.add(c),()=>{for(var _ of d)for(const h of[t,document]){var v=gt.get(h),w=v.get(_);--w==0?(h.removeEventListener(_,Yt),v.delete(_),v.size===0&>.delete(h)):v.set(_,w)}er.delete(c),u!==n&&u.parentNode?.removeChild(u)}});return Vt.set(f,a),f}let Vt=new WeakMap;function Ni(e,t){const n=Vt.get(e);return n?(Vt.delete(e),n(t)):Promise.resolve()}class Ci{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)Bt(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,l]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(l);o&&(z(o.effect),this.#t.delete(l))}for(const[s,l]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var a=document.createDocumentFragment();qt(l,a),a.append(ue()),this.#t.set(s,{effect:l,fragment:a})}else z(l);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),Oe(l,o,!1)):o()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(z(i.effect),this.#t.delete(r))};ensure(t,n){var r=S,i=Dn();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),l=ue();s.append(l),this.#t.set(t,{effect:Q(()=>n(l)),fragment:s})}else this.#n.set(t,Q(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,f]of this.#n)o===t?r.unskip_effect(f):r.skip_effect(f);for(const[o,f]of this.#t)o===t?r.unskip_effect(f.effect):r.skip_effect(f.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else E&&(this.anchor=$),this.#r(r)}}function Ri(e){K===null&&Nr(),Ln(()=>{const t=Qn(e);if(typeof t=="function")return t})}function ir(e,t,n=!1){var r;E&&(r=$,ft());var i=new Ci(e),s=n?He:0;function l(o,f){if(E){var a=an(r);if(o!==parseInt(a.substring(1))){var u=ut();se(u),i.anchor=u,ie(!1),i.ensure(o,f),ie(!0);return}}i.ensure(o,f)}Ht(()=>{var o=!1;t((f,a=0)=>{o=!0,l(a,f)}),o||l(-1,null)},s)}function Oi(e,t,n){for(var r=[],i=t.length,s,l=t.length,o=0;o<i;o++){let d=t[o];Oe(d,()=>{if(s){if(s.pending.delete(d),s.done.add(d),s.pending.size===0){var c=e.outrogroups;Ut(e,rt(s.done)),c.delete(s),c.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var f=r.length===0&&n!==null;if(f){var a=n,u=a.parentNode;Mn(u),u.append(a),e.items.clear()}Ut(e,t,!f)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function Ut(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const l of e.pending.values())for(const o of l)r.add(e.items.get(o).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=ae;const l=document.createDocumentFragment();qt(s,l)}else z(t[i],n)}}var sr;function lr(e,t,n,r,i,s=null){var l=e,o=new Map,f=(t&Kt)!==0;if(f){var a=e;l=E?se(Re(a)):a.appendChild(ue())}E&&ft();var u=null,d=ni(()=>{var k=n();return Qt(k)?k:k==null?[]:rt(k)}),c,_=new Map,v=!0;function w(k){(M.effect.f&Z)===0&&(M.pending.delete(k),M.fallback=u,Ii(M,c,l,t,r),u!==null&&(c.length===0?(u.f&ae)===0?Bt(u):(u.f^=ae,nt(u,null,l)):Oe(u,()=>{u=null})))}function h(k){M.pending.delete(k)}var b=Ht(()=>{c=p(d);var k=c.length;let V=!1;if(E){var Ge=an(l)===yt;Ge!==(k===0)&&(l=ut(),se(l),ie(!1),V=!0)}for(var y=new Set,x=S,P=Dn(),O=0;O<k;O+=1){E&&$.nodeType===Ke&&$.data===$t&&(l=$,V=!0,ie(!1));var N=c[O],T=r(N,O),A=v?null:o.get(T);A?(A.v&&qe(A.v,N),A.i&&qe(A.i,O),P&&x.unskip_effect(A.e)):(A=Mi(o,v?l:sr??=ue(),N,T,O,i,t,n),v||(A.e.f|=ae),o.set(T,A)),y.add(T)}if(k===0&&s&&!u&&(v?u=Q(()=>s(l)):(u=Q(()=>s(sr??=ue())),u.f|=ae)),k>y.size&&Rr(),E&&k>0&&se(ut()),!v)if(_.set(x,y),P){for(const[C,U]of o)y.has(C)||x.skip_effect(U.e);x.oncommit(w),x.ondiscard(h)}else w(x);V&&ie(!0),p(d)}),M={effect:b,items:o,pending:_,outrogroups:null,fallback:u};v=!1,E&&(l=$)}function tt(e){for(;e!==null&&(e.f&re)===0;)e=e.next;return e}function Ii(e,t,n,r,i){var s=(r&dr)!==0,l=t.length,o=e.items,f=tt(e.effect.first),a,u=null,d,c=[],_=[],v,w,h,b;if(s)for(b=0;b<l;b+=1)v=t[b],w=i(v,b),h=o.get(w).e,(h.f&ae)===0&&(h.nodes?.a?.measure(),(d??=new Set).add(h));for(b=0;b<l;b+=1){if(v=t[b],w=i(v,b),h=o.get(w).e,e.outrogroups!==null)for(const N of e.outrogroups)N.pending.delete(h),N.done.delete(h);if((h.f&G)!==0&&(Bt(h),s&&(h.nodes?.a?.unfix(),(d??=new Set).delete(h))),(h.f&ae)!==0)if(h.f^=ae,h===f)nt(h,null,n);else{var M=u?u.next:f;h===e.effect.last&&(e.effect.last=h.prev),h.prev&&(h.prev.next=h.next),h.next&&(h.next.prev=h.prev),Se(e,u,h),Se(e,h,M),nt(h,M,n),u=h,c=[],_=[],f=tt(u.next);continue}if(h!==f){if(a!==void 0&&a.has(h)){if(c.length<_.length){var k=_[0],V;u=k.prev;var Ge=c[0],y=c[c.length-1];for(V=0;V<c.length;V+=1)nt(c[V],k,n);for(V=0;V<_.length;V+=1)a.delete(_[V]);Se(e,Ge.prev,y.next),Se(e,u,Ge),Se(e,y,k),f=k,u=y,b-=1,c=[],_=[]}else a.delete(h),nt(h,f,n),Se(e,h.prev,h.next),Se(e,h,u===null?e.effect.first:u.next),Se(e,u,h),u=h;continue}for(c=[],_=[];f!==null&&f!==h;)(a??=new Set).add(f),_.push(f),f=tt(f.next);if(f===null)continue}(h.f&ae)===0&&c.push(h),u=h,f=tt(h.next)}if(e.outrogroups!==null){for(const N of e.outrogroups)N.pending.size===0&&(Ut(e,rt(N.done)),e.outrogroups?.delete(N));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||a!==void 0){var x=[];if(a!==void 0)for(h of a)(h.f&G)===0&&x.push(h);for(;f!==null;)(f.f&G)===0&&f!==e.fallback&&x.push(f),f=tt(f.next);var P=x.length;if(P>0){var O=(r&Kt)!==0&&l===0?n:null;if(s){for(b=0;b<P;b+=1)x[b].nodes?.a?.measure();for(b=0;b<P;b+=1)x[b].nodes?.a?.fix()}Oi(e,x,O)}}s&&ye(()=>{if(d!==void 0)for(h of d)h.nodes?.a?.apply()})}function Mi(e,t,n,r,i,s,l,o){var f=(l&cr)!==0?(l&vr)===0?Nn(n,!1,!1):Ce(n):null,a=(l&hr)!==0?Ce(i):null;return{v:f,i:a,e:Q(()=>(s(t,f??n,a??i,o),()=>{e.delete(r)}))}}function nt(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&ae)===0?t.nodes.start:n;r!==null;){var l=_e(r);if(s.before(r),r===i)return;r=l}}function Se(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Di(e,t){di(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Lt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const Pi=Symbol("is custom element"),Li=Symbol("is html"),Fi=Ar?"link":"LINK";function We(e,t,n,r){var i=ji(e);E&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Fi)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[kr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&or(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function mt(e,t,n){var r=g,i=m;let s=E;E&&ie(!1),q(null),ee(null);try{t!=="style"&&(Wt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?or(e).includes(t):n&&typeof n=="object")?e[t]=n:We(e,t,n==null?n:String(n))}finally{q(r),ee(i),s&&ie(!0)}}function ji(e){return e.__attributes??={[Pi]:e.nodeName.includes("-"),[Li]:e.namespaceURI===Zt}}var Wt=new Map;function or(e){var t=e.getAttribute("is")||e.nodeName,n=Wt.get(t);if(n)return n;Wt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=wr(i);for(var l in r)r[l].set&&n.push(l);i=en(i)}return n}function fr(e,t,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),o;o=e[t],o===void 0&&r!==void 0&&(o=l());var f;f=()=>{var c=e[t];return c===void 0?l():(s=!0,c)};var a=!1,u=dt(()=>(a=!1,f())),d=m;return(function(c,_){if(arguments.length>0){const v=_?p(u):c;return H(u,v),a=!0,i!==void 0&&(i=v),c}return Te&&a||(d.f&Z)!==0?u.v:p(u)})}function Hi(e){return new zi(e)}class zi{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var o=Nn(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return p(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===Sr?!0:(p(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return H(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});this.#n=(t.hydrate?Ai:nr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Ct(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||st(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Ni(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let ar;typeof HTMLElement=="function"&&(ar=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=Lt("slot");r!=="default"&&(s.name=r),pe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Bi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=wt(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Hi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ci(()=>{jn(()=>{this.$$r=!0;for(const r of it(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=wt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=wt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return it(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function wt(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Bi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function qi(e,t,n,r,i,s){let l=class extends ar{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return it(t).map(o=>(t[o].attribute||o).toLowerCase())}};return it(t).forEach(o=>{st(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(f){f=wt(o,f,t),this.$$d[o]=f;var a=this.$$c;if(a){var u=Fe(a,o)?.get;u?a[o]=f:a.$set({[o]:f})}}})}),r.forEach(o=>{st(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const Yi={version:"0.66.6"};function Vi(e,t=100,n={}){if(typeof e!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw new RangeError("`wait` must not be negative.");if(typeof n=="boolean")throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:r}=n;let i,s,l,o,f;function a(){const c=i,_=s;return i=void 0,s=void 0,f=e.apply(c,_),f}function u(){const c=Date.now()-o;c<t&&c>=0?l=setTimeout(u,t-c):(l=void 0,r||(f=a()))}const d=function(...c){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw new Error("Debounced method called with different contexts of the same prototype.");i=this,s=c,o=Date.now();const _=r&&!l;if(l||(l=setTimeout(u,t)),_)return f=a(),f};return Object.defineProperty(d,"isPending",{get(){return l!==void 0}}),d.clear=()=>{l&&(clearTimeout(l),l=void 0,i=void 0,s=void 0)},d.flush=()=>{l&&d.trigger()},d.trigger=()=>{f=a(),d.clear()},d}function Ui(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var Wi=De('<iframe class="svelte-1f6x0x7"></iframe>'),Gi=De("<hb-player-live></hb-player-live>",2),Ki=De("<hb-player-live-camera-ptz></hb-player-live-camera-ptz>",2),Ji=De('<video controls=""><source type="video/mp4"/> <track kind="captions" src="" srclang="en" label="English"/> Your browser does not support the video tag.</video>',2),Xi=De('<div class="col svelte-1f6x0x7" style="padding-right:0px;padding-left:0px;--bs-gutter-x: 0px;"><!></div>'),Zi=De('<div class="row svelte-1f6x0x7"></div>'),Qi=De('<div id="matrix" class="svelte-1f6x0x7"><!></div>');const es={hash:"svelte-1f6x0x7",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-1f6x0x7 {display:grid;gap:5px;
|
|
1
|
+
(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=4096,S=8192,ee=16384,C=32768,te=1<<25,ne=65536,re=1<<19,ie=1<<20,ae=1<<25,oe=65536,se=1<<21,ce=1<<22,le=1<<23,ue=Symbol(`$state`),de=Symbol(`legacy props`),fe=Symbol(``),w=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},pe=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function me(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function he(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ge(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function _e(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ve(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ye(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function be(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function xe(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Se(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ce(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ee(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function De(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Oe(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function E(e){T=e}var D;function O(e){if(e===null)throw De(),t;return D=e}function ke(){return O(z(D))}function Ae(e){if(T){if(z(D)!==null)throw De(),t;D=e}}function je(e=1){if(T){for(var t=e,n=D;t--;)n=z(n);D=n}}function Me(e=!0){for(var t=0,n=D;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=z(n);e&&n.remove(),n=i}}function Ne(e){if(!e||e.nodeType!==8)throw De(),t;return e.data}function Pe(e){return e===this.v}function Fe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ie(e){return!Fe(e,this.v)}var Le=!1,Re=!1,k=null;function ze(e){k=e}function Be(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,r:K,l:Re&&!t?{s:null,u:null,$:[]}:null}}function Ve(e){var t=k,n=t.e;if(n!==null){t.e=null;for(var r of n)un(r)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function He(){return!Re||k!==null&&k.l===null}var Ue=[];function We(){var e=Ue;Ue=[],_(e)}function A(e){if(Ue.length===0&&!nt){var t=Ue;queueMicrotask(()=>{t===Ue&&We()})}Ue.push(e)}function Ge(){for(;Ue.length>0;)We()}function Ke(e){var t=K;if(t===null)return U.f|=le,e;if(!(t.f&32768)&&!(t.f&4))throw e;qe(e,t)}function qe(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Je=~(b|x|y);function j(e,t){e.f=e.f&Je|t}function Ye(e){e.f&512||e.deps===null?j(e,y):j(e,x)}function Xe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=oe,Xe(t.deps))}function Ze(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Xe(e.deps),j(e,y)}var Qe=!1,$e=!1;function et(e){var t=$e;try{return $e=!1,[e(),$e]}finally{$e=t}}var M=new Set,N=null,P=null,tt=null,nt=!1,rt=!1,it=null,at=null,ot=0,st=1,ct=class e{id=st++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)j(n,b),this.schedule(n);for(n of t.m)j(n,x),this.schedule(n)}}#p(){if(ot++>1e3&&(M.delete(this),ut()),!this.#d()){for(let e of this.#o)this.#s.delete(e),j(e,b),this.schedule(e);for(let e of this.#s)j(e,x),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=it=[],r=[],i=at=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw gt(e),t}if(N=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(it=null,at=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)ht(e,t)}else{this.#n.size===0&&M.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),dt(r),dt(n),this.#i?.resolve()}var o=N;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(M.add(o),o.#p()),M.has(this)||this.#g()}#m(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Le&&i&16777224?n.push(r):zn(r)&&(i&16&&this.#s.add(r),Wn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Ze(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),P?.set(e,e.v))}activate(){N=this}deactivate(){N=null,P=null}flush(){try{rt=!0,N=this,this.#p()}finally{ot=0,tt=null,it=null,at=null,rt=!1,N=null,P=null,It.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),M.delete(this)}#g(){for(let c of M){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)ft(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of M)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,A(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(N===null){let t=N=new e;rt||(M.add(N),nt||A(()=>{N===t&&t.flush()}))}return N}apply(){if(!Le||!this.is_fork&&M.size===1){P=null;return}P=new Map;for(let[e,[t]]of this.current)P.set(e,t);for(let n of M)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)P.has(e)||P.set(e,t)}}schedule(e){if(tt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(it!==null&&t===K&&(Le||(U===null||!(U.f&2))&&!Qe))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function lt(e){var t=nt;nt=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if(Ge(),N===null)return n;N.flush()}}finally{nt=t}}function ut(){try{be()}catch(e){qe(e,tt)}}var F=null;function dt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&zn(r)&&(F=new Set,Wn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Sn(r),F?.size>0)){It.clear();for(let e of F){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)F.has(n)&&(F.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Wn(n)}}F.clear()}}F=null}}function ft(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?ft(i,t,n,r):e&4194320&&!(e&2048)&&pt(i,t,r)&&(j(i,b),mt(i))}}function pt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&&pt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function mt(e){N.schedule(e)}function ht(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),j(e,y);for(var n=e.first;n!==null;)ht(n,t),n=n.next}}function gt(e){j(e,y);for(var t=e.first;t!==null;)gt(t),t=t.next}function _t(e){let t=0,n=Rt(0),r;return()=>{sn()&&(Q(n),hn(()=>(t===0&&(r=qn(()=>e(()=>Ht(n)))),t+=1,()=>{A(()=>{--t,t===0&&(r?.(),r=void 0,Ht(n))})})))}}var vt=ne|re;function yt(e,t,n,r){new bt(e,t,n,r)}var bt=class{parent;is_pending=!1;transform_error;#e;#t=T?D:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=_t(()=>(this.#m=Rt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=K;t.b=this,t.f|=128,n(e)},this.parent=K.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=_n(()=>{if(T){let e=this.#t;ke();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},vt),T&&(this.#e=D)}#g(){try{this.#a=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),A(()=>{var e=this.#c=document.createDocumentFragment(),t=R();e.append(t),this.#a=this.#x(()=>V(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Cn(this.#o,()=>{this.#o=null}),this.#b(N))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Dn(this.#a,e);let t=this.#n.pending;this.#o=V(()=>t(this.#e))}else this.#b(N)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ze(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=K,n=U,r=k;q(this.#i),G(this.#i),ze(this.#i.ctx);try{return ct.ensure(),e()}catch(e){return Ke(e),null}finally{q(t),G(n),ze(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&Cn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,A(()=>{this.#d=!1,this.#m&&Bt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Q(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),T&&(O(this.#t),je(),O(Me()));var r=!1,i=!1;let a=()=>{if(r){Oe();return}r=!0,i&&Ee(),this.#s!==null&&Cn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){qe(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return V(()=>{var t=K;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return qe(e,this.#i.parent),null}}))};A(()=>{var t;try{t=this.transform_error(e)}catch(e){qe(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>qe(e,this.#i&&this.#i.parent)):o(t)})}};function xt(e,t,n,r){let i=He()?Tt:Ot;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=K,s=St(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||qe(e,o)}Ct()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=wt();function d(){Promise.all(n.map(e=>Et(e))).then(e=>l([...t.map(i),...e])).catch(e=>qe(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Ct()}):d()}function St(){var e=K,t=U,n=k,r=N;return function(i=!0){q(e),G(t),ze(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Ct(e=!0){q(null),G(null),ze(null),e&&N?.deactivate()}function wt(){var e=K,t=e.b,n=N,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Tt(e){var t=2|b,r=U!==null&&U.f&2?U:null;return K!==null&&(K.f|=re),{ctx:k,deps:null,effects:null,equals:Pe,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??K,ac:null}}function Et(e,t,r){let i=K;i===null&&he();var a=void 0,o=Rt(n),s=!U,c=new Map;return mn(()=>{var t=K,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Ct)}catch(e){n.reject(e),Ct()}var r=N;if(s){if(t.f&32768)var l=wt();if(i.b.is_rendered())c.get(r)?.reject(w),c.delete(r);else{for(let e of c.values())e.reject(w);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===w),!(n===w||t.f&16384)){if(r.activate(),n)o.f|=le,Bt(o,n);else{o.f&8388608&&(o.f^=le),Bt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(w)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),cn(()=>{for(let e of c.values())e.reject(w)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Dt(e){let t=Tt(e);return Le||Mn(t),t}function Ot(e){let t=Tt(e);return t.equals=Ie,t}function kt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function At(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function jt(e){var t,n=K;q(At(e));try{e.f&=~oe,kt(e),t=Vn(e)}finally{q(n)}return t}function Mt(e){var t=e.v,n=jt(e);if(!e.equals(n)&&(e.wv=Rn(),(!N?.is_fork||e.deps===null)&&(e.v=n,N?.capture(e,t,!0),e.deps===null))){j(e,y);return}An||(P===null?Ye(e):(sn()||N?.is_fork)&&P.set(e,n))}function Nt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(w),t.teardown=g,t.ac=null,Un(t,0),yn(t))}function Pt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Wn(t)}var Ft=new Set,It=new Map,Lt=!1;function Rt(e,t){return{f:0,v:e,reactions:null,equals:Pe,rv:0,wv:0}}function I(e,t){let n=Rt(e,t);return Mn(n),n}function zt(e,t=!1,n=!0){let r=Rt(e);return t||(r.equals=Ie),Re&&n&&k!==null&&k.l!==null&&(k.l.s??=[]).push(r),r}function L(e,t,n=!1){return U!==null&&(!W||U.f&131072)&&He()&&U.f&4325394&&(J===null||!o.call(J,e))&&Te(),Bt(e,n?Wt(t):t,at)}function Bt(e,t,n=null){if(!e.equals(t)){var r=e.v;An?It.set(e,t):It.set(e,r),e.v=t;var i=ct.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&jt(t),P===null&&Ye(t)}e.wv=Rn(),Ut(e,b,n),He()&&K!==null&&K.f&1024&&!(K.f&96)&&(Z===null?Nn([e]):Z.push(e)),!i.is_fork&&Ft.size>0&&!Lt&&Vt()}return t}function Vt(){Lt=!1;for(let e of Ft)e.f&1024&&j(e,x),zn(e)&&Wn(e);Ft.clear()}function Ht(e){L(e,e.v+1)}function Ut(e,t,n){var r=e.reactions;if(r!==null)for(var i=He(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===K)){var l=(c&b)===0;if(l&&j(s,t),c&2){var u=s;P?.delete(u),c&65536||(c&512&&(s.f|=oe),Ut(u,x,n))}else if(l){var d=s;c&16&&F!==null&&F.add(d),n===null?mt(d):n.push(d)}}}}function Wt(e){if(typeof e!=`object`||!e||ue in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=I(0),s=null,c=In,l=e=>{if(In===c)return e();var t=U,n=In;G(null),Ln(c);var r=e();return G(t),Ln(n),r};return a&&r.set(`length`,I(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Ce();var i=r.get(t);return i===void 0?l(()=>{var e=I(n.value,s);return r.set(t,e),e}):L(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>I(n,s));r.set(t,e),Ht(o)}}else L(i,n),Ht(o);return!0},get(t,i,a){if(i===ue)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>I(Wt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=Q(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=Q(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===ue)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||K!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>I(a?Wt(e[t]):n,s)),r.set(t,i)),Q(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>I(n,s)),r.set(p+``,m)):L(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>I(void 0,s)),L(d,Wt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Wt(i));L(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&L(_,v+1)}Ht(o)}return!0},ownKeys(e){Q(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){we()}})}var Gt,Kt,qt,Jt;function Yt(){if(Gt===void 0){Gt=window,Kt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;qt=u(t,`firstChild`).get,Jt=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function R(e=``){return document.createTextNode(e)}function Xt(e){return qt.call(e)}function z(e){return Jt.call(e)}function Zt(e,t){if(!T)return Xt(e);var n=Xt(D);if(n===null)n=D.appendChild(R());else if(t&&n.nodeType!==3){var r=R();return n?.before(r),O(r),r}return t&&nn(n),O(n),n}function Qt(e,t=!1){if(!T){var n=Xt(e);return n instanceof Comment&&n.data===``?z(n):n}if(t){if(D?.nodeType!==3){var r=R();return D?.before(r),O(r),r}nn(D)}return D}function $t(e){e.textContent=``}function en(){return!Le||F!==null?!1:(K.f&C)!==0}function tn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function nn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function rn(e){var t=U,n=K;G(null),q(null);try{return e()}finally{G(t),q(n)}}function an(e){K===null&&(U===null&&ye(e),ve()),An&&_e(e)}function on(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function B(e,t){var n=K;n!==null&&n.f&8192&&(e|=S);var r={ctx:k,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)it===null?ct.ensure().schedule(r):it.push(r);else if(t!==null){try{Wn(r)}catch(e){throw H(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ne))}if(i!==null&&(i.parent=n,n!==null&&on(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function sn(){return U!==null&&!W}function cn(e){let t=B(8,null);return j(t,y),t.teardown=e,t}function ln(e){an(`$effect`);var t=K.f;if(!U&&t&32&&!(t&32768)){var n=k;(n.e??=[]).push(e)}else return un(e)}function un(e){return B(4|ie,e)}function dn(e){ct.ensure();let t=B(64|re,e);return()=>{H(t)}}function fn(e){ct.ensure();let t=B(64|re,e);return(e={})=>new Promise(n=>{e.outro?Cn(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function pn(e){return B(4,e)}function mn(e){return B(ce|re,e)}function hn(e,t=0){return B(8|t,e)}function gn(e,t=[],n=[],r=[]){xt(r,t,n,t=>{B(8,()=>e(...t.map(Q)))})}function _n(e,t=0){return B(16|t,e)}function V(e){return B(32|re,e)}function vn(e){var t=e.teardown;if(t!==null){let e=An,n=U;jn(!0),G(null);try{t.call(null)}finally{jn(e),G(n)}}}function yn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&rn(()=>{e.abort(w)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function bn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(xn(e.nodes.start,e.nodes.end),n=!0),j(e,te),yn(e,t&&!n),Un(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();vn(e),e.f^=te,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&Sn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function xn(e,t){for(;e!==null;){var n=e===t?null:z(e);e.remove(),e=n}}function Sn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Cn(e,t,n=!0){var r=[];wn(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function wn(e,t,n){if(!(e.f&8192)){e.f^=S;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;wn(i,t,o?n:!1),i=a}}}function Tn(e){En(e,!0)}function En(e,t){if(e.f&8192){e.f^=S,e.f&1024||(j(e,b),ct.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;En(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Dn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:z(n);t.append(n),n=i}}var On=null,kn=!1,An=!1;function jn(e){An=e}var U=null,W=!1;function G(e){U=e}var K=null;function q(e){K=e}var J=null;function Mn(e){U!==null&&(!Le||U.f&2)&&(J===null?J=[e]:J.push(e))}var Y=null,X=0,Z=null;function Nn(e){Z=e}var Pn=1,Fn=0,In=Fn;function Ln(e){In=e}function Rn(){return++Pn}function zn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~oe),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(zn(a)&&Mt(a),a.wv>e.wv)return!0}t&512&&P===null&&j(e,y)}return!1}function Bn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Le&&J!==null&&o.call(J,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Bn(a,t,!1):t===a&&(n?j(a,b):a.f&1024&&j(a,x),mt(a))}}function Vn(e){var t=Y,n=X,r=Z,i=U,a=J,o=k,s=W,c=In,l=e.f;Y=null,X=0,Z=null,U=l&96?null:e,J=null,ze(e.ctx),W=!1,In=++Fn,e.ac!==null&&(rn(()=>{e.ac.abort(w)}),e.ac=null);try{e.f|=se;var u=e.fn,d=u();e.f|=C;var f=e.deps,p=N?.is_fork;if(Y!==null){var m;if(p||Un(e,X),f!==null&&X>0)for(f.length=X+Y.length,m=0;m<Y.length;m++)f[X+m]=Y[m];else e.deps=f=Y;if(sn()&&e.f&512)for(m=X;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&X<f.length&&(Un(e,X),f.length=X);if(He()&&Z!==null&&!W&&f!==null&&!(e.f&6146))for(m=0;m<Z.length;m++)Bn(Z[m],e);if(i!==null&&i!==e){if(Fn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Fn;if(t!==null)for(let e of t)e.rv=Fn;Z!==null&&(r===null?r=Z:r.push(...Z))}return e.f&8388608&&(e.f^=le),d}catch(e){return Ke(e)}finally{e.f^=se,Y=t,X=n,Z=r,U=i,J=a,ze(o),W=s,In=c}}function Hn(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Y===null||!o.call(Y,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~oe),Ye(s),Nt(s),Un(s,0)}}function Un(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Hn(e,n[r])}function Wn(e){var t=e.f;if(!(t&16384)){j(e,y);var n=K,r=kn;K=e,kn=!0;try{t&16777232?bn(e):yn(e),vn(e);var i=Vn(e);e.teardown=typeof i==`function`?i:null,e.wv=Pn}finally{kn=r,K=n}}}function Q(e){var t=(e.f&2)!=0;if(On?.add(e),U!==null&&!W&&!(K!==null&&K.f&16384)&&(J===null||!o.call(J,e))){var n=U.deps;if(U.f&2097152)e.rv<Fn&&(e.rv=Fn,Y===null&&n!==null&&n[X]===e?X++:Y===null?Y=[e]:Y.push(e));else{(U.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[U]:o.call(r,U)||r.push(U)}}if(An&&It.has(e))return It.get(e);if(t){var i=e;if(An){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Kn(i))&&(a=jt(i)),It.set(i,a),a}var s=(i.f&512)==0&&!W&&U!==null&&(kn||(U.f&512)!=0),c=(i.f&C)===0;zn(i)&&(s&&(i.f|=512),Mt(i)),s&&!c&&(Pt(i),Gn(i))}if(P?.has(e))return P.get(e);if(e.f&8388608)throw e.v;return e.v}function Gn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Pt(t),Gn(t))}function Kn(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(It.has(t)||t.f&2&&Kn(t))return!0;return!1}function qn(e){var t=W;try{return W=!0,e()}finally{W=t}}var Jn=Symbol(`events`),Yn=new Set,Xn=new Set;function Zn(e){if(!T)return;e.removeAttribute(`onload`),e.removeAttribute(`onerror`);let t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function Qn(e,t,n,r={}){function i(e){if(r.capture||tr.call(t,e),!e.cancelBubble)return rn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?A(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function $n(e,t,n,r,i){var a={capture:r,passive:i},o=Qn(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&cn(()=>{t.removeEventListener(e,o,a)})}var er=null;function tr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;er=e;var o=0,s=er===e&&e[Jn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Jn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=U,f=K;G(null),q(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Jn]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Jn]=t,delete e.currentTarget,G(d),q(f)}}}var nr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function rr(e){return nr?.createHTML(e)??e}function ir(e){var t=tn(`template`);return t.innerHTML=rr(e.replaceAll(`<!>`,`<!---->`)),t.content}function ar(e,t){var n=K;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function or(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(T)return ar(D,null),D;i===void 0&&(i=ir(a?e:`<!>`+e),n||(i=Xt(i)));var t=r||Kt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Xt(t),s=t.lastChild;ar(o,s)}else ar(t,t);return t}}function sr(){if(T)return ar(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(``),n=R();return e.append(t,n),ar(t,n),e}function $(e,t){if(T){var n=K;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=D),ke();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var cr=[`touchstart`,`touchmove`];function lr(e){return cr.includes(e)}function ur(e,t){return pr(e,t)}function dr(e,n){Yt(),n.intro=n.intro??!1;let r=n.target,i=T,a=D;try{for(var o=Xt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=z(o);if(!o)throw t;E(!0),O(o);let i=pr(e,{...n,anchor:o});return E(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&xe(),Yt(),$t(r),E(!1),ur(e,n)}finally{E(i),O(a)}}var fr=new Map;function pr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Yt();var u=void 0,d=fn(()=>{var c=r??n.appendChild(R());yt(c,{pending:()=>{}},n=>{Be({});var r=k;if(o&&(r.c=o),a&&(i.$$events=a),T&&ar(n,null),u=e(n,i)||{},T&&(K.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw De(),t;Ve()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=lr(r);for(let e of[n,document]){var a=fr.get(e);a===void 0&&(a=new Map,fr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,tr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Yn)),Xn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=fr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,tr),t.delete(e),t.size===0&&fr.delete(r)):t.set(e,i)}Xn.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return mr.set(u,d),u}var mr=new WeakMap;function hr(e,t){let n=mr.get(e);return n?(mr.delete(e),n(t)):Promise.resolve()}var gr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Tn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(H(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Dn(r,t),t.append(R()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Cn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=en();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=R();i.append(a),this.#n.set(e,{effect:V(()=>t(a)),fragment:i})}else this.#t.set(e,V(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else T&&(this.anchor=D),this.#a(n)}};function _r(e){k===null&&me(`onMount`),Re&&k.l!==null?vr(k).m.push(e):ln(()=>{let t=qn(e);if(typeof t==`function`)return t})}function vr(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function yr(e,t,n=!1){var r;T&&(r=D,ke());var i=new gr(e),a=n?ne:0;function o(e,t){if(T){var n=Ne(r);if(e!==parseInt(n.substring(1))){var a=Me();O(a),i.anchor=a,E(!1),i.ensure(e,t),E(!0);return}}i.ensure(e,t)}_n(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function br(e,t,n){for(var r=[],i=t.length,a,o=t.length,c=0;c<i;c++){let n=t[c];Cn(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;xr(e,s(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;$t(d),d.append(u),e.items.clear()}xr(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function xr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ae,Dn(a,document.createDocumentFragment())):H(t[i],n)}}var Sr;function Cr(e,t,n,r,a,o=null){var c=e,l=new Map;if(t&4){var u=e;c=T?O(Xt(u)):u.appendChild(R())}T&&ke();var d=null,f=Ot(()=>{var e=n();return i(e)?e:e==null?[]:s(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Tr(v,p,c,t,r),d!==null&&(p.length===0?d.f&33554432?(d.f^=ae,Dr(d,null,c)):Tn(d):Cn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:_n(()=>{p=Q(f);var e=p.length;let i=!1;T&&Ne(c)===`[!`!=(e===0)&&(c=Me(),O(c),E(!1),i=!0);for(var s=new Set,u=N,v=en(),y=0;y<e;y+=1){T&&D.nodeType===8&&D.data===`]`&&(c=D,i=!0,E(!1));var b=p[y],x=r(b,y),S=h?null:l.get(x);S?(S.v&&Bt(S.v,b),S.i&&Bt(S.i,y),v&&u.unskip_effect(S.e)):(S=Er(l,h?c:Sr??=R(),b,x,y,a,t,n),h||(S.e.f|=ae),l.set(x,S)),s.add(x)}if(e===0&&o&&!d&&(h?d=V(()=>o(c)):(d=V(()=>o(Sr??=R())),d.f|=ae)),e>s.size&&ge(``,``,``),T&&e>0&&O(Me()),!h)if(m.set(u,s),v){for(let[e,t]of l)s.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);i&&E(!0),Q(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,T&&(c=D)}function wr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Tr(e,t,n,r,i){var a=(r&8)!=0,o=t.length,c=e.items,l=wr(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(Tn(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=ae,_===l)Dr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Or(e,d,_),Or(e,_,y),Dr(_,y,n),d=_,p=[],m=[],l=wr(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Dr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Or(e,S.prev,ee.next),Or(e,d,S),Or(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Dr(_,l,n),Or(e,_.prev,_.next),Or(e,_,d===null?e.effect.first:d.next),Or(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=wr(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=wr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(xr(e,s(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var C=[];if(u!==void 0)for(_ of u)_.f&8192||C.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&C.push(l),l=wr(l.next);var te=C.length;if(te>0){var ne=r&4&&o===0?n:null;if(a){for(v=0;v<te;v+=1)C[v].nodes?.a?.measure();for(v=0;v<te;v+=1)C[v].nodes?.a?.fix()}br(e,C,ne)}}a&&A(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Er(e,t,n,r,i,a,o,s){var c=o&1?o&16?Rt(n):zt(n,!1,!1):null,l=o&2?Rt(i):null;return{v:c,i:l,e:V(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Dr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=z(r);if(a.before(r),r===i)return;r=o}}function Or(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function kr(e,t){pn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=tn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Ar=Symbol(`is custom element`),jr=Symbol(`is html`),Mr=pe?`link`:`LINK`;function Nr(e,t,n,r){var i=Fr(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Mr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[fe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Lr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Pr(e,t,n){var r=U,i=K;let a=T;T&&E(!1),G(null),q(null);try{t!==`style`&&(Ir.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Lr(e).includes(t):n&&typeof n==`object`)?e[t]=n:Nr(e,t,n==null?n:String(n))}finally{G(r),q(i),a&&E(!0)}}function Fr(e){return e.__attributes??={[Ar]:e.nodeName.includes(`-`),[jr]:e.namespaceURI===r}}var Ir=new Map;function Lr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ir.get(t);if(n)return n;Ir.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function Rr(e,t,n,r){var i=!Re||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?qn(r):r),s);let d;if(a){var f=ue in e||de in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=et(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&Se(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Tt:Ot)(()=>(_=!1,h()));a&&Q(v);var y=K;return(function(e,t){if(arguments.length>0){let n=t?Q(v):i&&a?Wt(e):e;return L(v,n),_=!0,s!==void 0&&(s=n),e}return An&&_||y.f&16384?v.v:Q(v)})}function zr(e){return new Br(e)}var Br=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=zt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===de?!0:(Q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?dr:ur)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Le&&(!e?.props?.$$host||e.sync===!1)&<(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{hr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Vr;typeof HTMLElement==`function`&&(Vr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=tn(`slot`);e!==`default`&&(n.name=e),$(t,n)}}let t={},n=Ur(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Hr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=zr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=dn(()=>{hn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Hr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Hr(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Hr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Ur(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Wr(e,t,n,r,i,a){let o=class extends Vr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Hr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var Gr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.7`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}};function Kr(e,t=100,n={}){if(typeof e!=`function`)throw TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw RangeError("`wait` must not be negative.");if(typeof n==`boolean`)throw TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");let{immediate:r}=n,i,a,o,s,c;function l(){let t=i,n=a;return i=void 0,a=void 0,c=e.apply(t,n),c}function u(){let e=Date.now()-s;e<t&&e>=0?o=setTimeout(u,t-e):(o=void 0,r||(c=l()))}let d=function(...e){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw Error(`Debounced method called with different contexts of the same prototype.`);i=this,a=e,s=Date.now();let n=r&&!o;if(o||=setTimeout(u,t),n)return c=l(),c};return Object.defineProperty(d,`isPending`,{get(){return o!==void 0}}),d.clear=()=>{o&&(clearTimeout(o),o=void 0,i=void 0,a=void 0)},d.flush=()=>{o&&d.trigger()},d.trigger=()=>{c=l(),d.clear()},d}function qr(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var Jr=or(`<iframe class="svelte-1f6x0x7"></iframe>`),Yr=or(`<hb-player-live></hb-player-live>`,2),Xr=or(`<hb-player-live-camera-ptz></hb-player-live-camera-ptz>`,2),Zr=or(`<video controls=""><source type="video/mp4"/> <track kind="captions" src="" srclang="en" label="English"/> Your browser does not support the video tag.</video>`,2),Qr=or(`<div class="col svelte-1f6x0x7" style="padding-right:0px;padding-left:0px;--bs-gutter-x: 0px;"><!></div>`),$r=or(`<div class="row svelte-1f6x0x7"></div>`),ei=or(`<div id="matrix" class="svelte-1f6x0x7"><!></div>`),ti={hash:`svelte-1f6x0x7`,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-1f6x0x7 {display:grid;gap:5px;
|
|
3
3
|
/* Play with min-value */overflow:hidden;}.col.svelte-1f6x0x7 {margin:5px;}.row.svelte-1f6x0x7 {margin-top:5px !important;margin-left:5px !important;margin-right:5px !important;}iframe.svelte-1f6x0x7 {border:none;width:100%;height:100%;margin:0px;padding:0px;}
|
|
4
4
|
/*!
|
|
5
5
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
@media (min-width: 1200px) {
|
|
17
17
|
}
|
|
18
18
|
@media (min-width: 1400px) {
|
|
19
|
-
}`};function
|
|
20
|
-
//# sourceMappingURL=main.iife.js.map
|
|
19
|
+
}`};function ni(e,t){Be(t,!0),kr(e,ti);function n(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}let r=t.$$host,i=Rr(t,`id`,7,``),a=Rr(t,`items`,7),o=I(0),s=I(0),c=I(0),l=I(0),u=I(void 0),d=I(Wt([]));function f(){if(Q(s)&&Q(o)){let e=16/9,t=Q(s)/Q(o),n=0,r=0;if(a().length===1)n=1,r=1;else if(Q(s)<450)r=1,n=a().length;else if(a().length===2)t>e?(n=1,r=2):(n=2,r=1);else if(t>e){let t=1/0;for(let i=1;i<=a().length;i++){let c=Math.ceil(a().length/i),l=Q(o)/i*e*c;if(l<=Q(s)){let e=Q(s)-l;e<t&&(t=e,n=i,r=c)}}}else{let t=1/0;for(let i=1;i<=a().length;i++){let c=Math.ceil(a().length/i),l=Q(s)/i/e*c;if(l<=Q(o)){let e=Q(o)-l;e<t&&(t=e,r=i,n=c)}}}if(L(c,n,!0),L(l,r,!0),Q(c)&&Q(l)){let e=[];for(let t=0;t<Q(c);t++)for(let n=0;n<Q(l);n++){let r=a()[t*Q(l)+n];r&&(e[t]||(e[t]={row:t,items:[]}),e[t].items[n]=r)}L(d,e,!0),console.log(Q(d),Q(c),Q(l),`drawItems`)}}}function p(){if(window.innerWidth&&window.innerHeight&&r?.shadowRoot){let e=r.shadowRoot.getElementById(`matrix`);e?.style&&(L(o,window.innerHeight-e.offsetTop),L(s,Number(e.clientWidth),!0),e.style.height=Q(o)+`px`,console.log(`setSize w:${Q(s)} h:${Q(o)}`),f())}}ln(()=>{if(typeof a()==`string`)try{a(JSON.parse(a())),f()}catch(e){console.error(`error parsing items`,e)}}),qr({repoName:`@htmlbricks/hb-player-live`,version:Gr.version}),_r(()=>{p()});function m(e){L(u,e,!0),n(`hoverItem`,{id:e,selected:!!Q(u)})}function h(){Q(u)?n(`clickItem`,{id:Q(u)}):console.info(`No video selected`)}function g(e){let t=e;try{t.contentWindow?.document.addEventListener(`click`,()=>{h()})}catch(e){console.warn(`error adding click event to iframe`,e)}}var _={get id(){return i()},set id(e=``){i(e),lt()},get items(){return a()},set items(e){a(e),lt()}},v=ei(),y=Dt(()=>Kr(p,200));$n(`resize`,Gt,function(...e){Q(y)?.apply(this,e)});var b=Zt(v),x=e=>{var t=sr();Cr(Qt(t),17,()=>Q(d),e=>e.row,(e,t)=>{var n=$r();Cr(n,21,()=>Q(t).items,e=>e.id,(e,t)=>{var n=Qr(),r=Zt(n),i=e=>{var n=Jr();gn(()=>{Nr(n,`title`,Q(t).title),Nr(n,`src`,Q(t).uri)}),$n(`load`,n,e=>g(e.target)),Zn(n),$(e,n)},a=e=>{var n=Yr();Pr(n,`media_type`,`whep`),gn(()=>Pr(n,`mediauri`,`${Q(t).uri??``}/whep`)),$(e,n)},o=e=>{var n=Xr();Pr(n,`media_type`,`whep`),gn(()=>Pr(n,`live_uri`,`${Q(t).uri??``}/whep`)),$(e,n)},s=e=>{var n=Zr(),r=Zt(n);je(3),Ae(n),gn(()=>{Nr(r,`title`,Q(t).title),Nr(r,`src`,Q(t).uri)}),$(e,n)};yr(r,e=>{Q(t).type===`iframe`?e(i):Q(t).type===`mediamtx-webrtc`?e(a,1):Q(t).type===`mediamtx-webrtc-ptz`?e(o,2):Q(t).type===`video`&&e(s,3)}),Ae(n),gn(()=>Nr(n,`id`,`select_${Q(t).id??``}`)),$n(`mouseleave`,n,e=>m()),$n(`mouseenter`,n,e=>m(Q(t).id)),$(e,n)}),Ae(n),$(e,n)}),$(e,t)};return yr(b,e=>{a()&&typeof a()==`object`&&e(x)}),Ae(v),$(e,v),Ve(_)}customElements.define(`hb-matrix-video`,Wr(ni,{id:{},items:{}},[],[],{mode:`open`})),e.Component=ni})(this[`matrix-video`]=this[`matrix-video`]||{});
|
|
20
|
+
//# sourceMappingURL=main.iife.js.map
|