@htmlbricks/hb-player-live-camera-ptz 0.60.1 → 0.60.3
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 +31 -29
- package/main.iife.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(Tn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Qr=1,ei=4,ti=8,ni=16,ri=1,ii=2,qt="[",Pn="[!",Sn="]",Ue={},F=Symbol(),si="http://www.w3.org/1999/xhtml",An=!1;var Cn=Array.isArray,oi=Array.prototype.indexOf,li=Array.from,pt=Object.keys,Je=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,ai=Object.getOwnPropertyDescriptors,ui=Object.prototype,ci=Array.prototype,On=Object.getPrototypeOf,Nn=Object.isExtensible;function Rn(e){for(var t=0;t<e.length;t++)e[t]()}function fi(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const J=2,Gt=4,Vt=8,We=16,pe=32,me=64,In=128,Z=256,bt=512,q=1024,K=2048,xe=4096,ye=8192,Re=16384,Yt=32768,Ht=65536,jn=1<<17,Mn=1<<18,Xe=1<<19,di=1<<20,Bt=1<<21,Ut=1<<22,Ie=1<<23,_t=Symbol("$state"),Dn=Symbol("legacy props"),vi=Symbol(""),Jt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ln=3,lt=8;function hi(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function pi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function bi(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function _i(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function gi(e){throw new Error("https://svelte.dev/e/effect_orphan")}function mi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function xi(){throw new Error("https://svelte.dev/e/hydration_failed")}function yi(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function wi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ki(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function $i(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function gt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let S=!1;function le(e){S=e}let I;function ae(e){if(e===null)throw gt(),Ue;return I=e}function Wt(){return ae(ue(I))}function O(e){if(S){if(ue(I)!==null)throw gt(),Ue;I=e}}function Ei(e=1){if(S){for(var t=e,n=I;t--;)n=ue(n);I=n}}function Ti(){for(var e=0,t=I;;){if(t.nodeType===lt){var n=t.data;if(n===Sn){if(e===0)return t;e-=1}else(n===qt||n===Pn)&&(e+=1)}var r=ue(t);t.remove(),t=r}}function Pi(e){if(!e||e.nodeType!==lt)throw gt(),Ue;return e.data}function zn(e){return e===this.v}function Si(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Fn(e){return!Si(e,this.v)}let Ai=!1,ie=null;function mt(e){ie=e}function qn(e,t=!1,n){ie={p:ie,c:null,e:null,s:e,x:null,l:null}}function Gn(e){var t=ie,n=t.e;if(n!==null){t.e=null;for(var r of n)ar(r)}return e!==void 0&&(t.x=e),ie=t.p,e??{}}function Vn(){return!0}const Ci=new WeakMap;function Oi(e){var t=k;if(t===null)return E.f|=Ie,e;if((t.f&Yt)===0){if((t.f&In)===0)throw!t.parent&&e instanceof Error&&Yn(e),e;t.b.error(e)}else Xt(e,t)}function Xt(e,t){for(;t!==null;){if((t.f&In)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&Yn(e),e}function Yn(e){const t=Ci.get(e);t&&(Je(e,"message",{value:t.message}),Je(e,"stack",{value:t.stack}))}const Ni=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let at=[],ut=[];function Hn(){var e=at;at=[],Rn(e)}function Bn(){var e=ut;ut=[],Rn(e)}function Ri(e){at.length===0&&queueMicrotask(Hn),at.push(e)}function Ii(e){ut.length===0&&Ni(Bn),ut.push(e)}function ji(){at.length>0&&Hn(),ut.length>0&&Bn()}function Mi(){const e=k.b;return e===null&&hi(),e}function xt(e){var t=J|K,n=E!==null&&(E.f&J)!==0?E:null;return k===null||n!==null&&(n.f&Z)!==0?t|=Z:k.f|=Xe,{ctx:ie,deps:null,effects:null,equals:zn,f:t,fn:e,reactions:null,rv:0,v:F,wv:0,parent:n??k,ac:null}}function Di(e,t){let n=k;n===null&&pi();var r=n.b,i=void 0,s=en(F),o=null,a=!E;return ts(()=>{try{var c=e();o&&Promise.resolve(c).catch(()=>{})}catch(d){c=Promise.reject(d)}var l=()=>c;i=o?.then(l,l)??Promise.resolve(c),o=i;var v=R,h=r.is_pending();a&&(r.update_pending_count(1),h||v.increment());const p=(d,b=void 0)=>{o=null,h||v.activate(),b?b!==Jt&&(s.f|=Ie,tn(s,b)):((s.f&Ie)!==0&&(s.f^=Ie),tn(s,d)),a&&(r.update_pending_count(-1),h||v.decrement()),Wn()};if(i.then(p,d=>p(null,d||"unknown")),v)return()=>{queueMicrotask(()=>v.neuter())}}),new Promise(c=>{function l(v){function h(){v===i?c(s):l(i)}v.then(h,h)}l(i)})}function Li(e){const t=xt(e);return mr(t),t}function zi(e){const t=xt(e);return t.equals=Fn,t}function Un(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ke(t[n])}}function Fi(e){for(var t=e.parent;t!==null;){if((t.f&J)===0)return t;t=t.parent}return null}function Zt(e){var t,n=k;de(Fi(e));try{Un(e),t=$r(e)}finally{de(n)}return t}function Jn(e){var t=Zt(e);if(e.equals(t)||(e.v=t,e.wv=wr()),!ze){var n=($e||(e.f&Z)!==0)&&e.deps!==null?xe:q;U(e,n)}}function qi(e,t,n){const r=xt;if(t.length===0){n(e.map(r));return}var i=R,s=k,o=Gi(),a=Mi();Promise.all(t.map(c=>Di(c))).then(c=>{i?.activate(),o();try{n([...e.map(r),...c])}catch(l){(s.f&Re)===0&&Xt(l,s)}i?.deactivate(),Wn()}).catch(c=>{a.error(c)})}function Gi(){var e=k,t=E,n=ie,r=R;return function(){de(e),ee(t),mt(n),r?.activate()}}function Wn(){de(null),ee(null),mt(null)}const Kt=new Set;let R=null,yt=null,Xn=new Set,wt=[];function Zn(){const e=wt.shift();wt.length>0&&queueMicrotask(Zn),e()}let je=[],kt=null,Qt=!1,$t=!1;class Me{current=new Map;#t=new Map;#e=new Set;#n=0;#u=null;#c=!1;#i=[];#o=[];#s=[];#r=[];#l=[];#f=[];#d=[];skipped_effects=new Set;process(t){je=[],yt=null;for(const i of t)this.#h(i);if(this.#i.length===0&&this.#n===0){this.#v();var n=this.#s,r=this.#r;this.#s=[],this.#r=[],this.#l=[],yt=R,R=null,Qn(n),Qn(r),R===null?R=this:Kt.delete(this),this.#u?.resolve()}else this.#a(this.#s),this.#a(this.#r),this.#a(this.#l);for(const i of this.#i)et(i);for(const i of this.#o)et(i);this.#i=[],this.#o=[]}#h(t){t.f^=q;for(var n=t.first;n!==null;){var r=n.f,i=(r&(pe|me))!==0,s=i&&(r&q)!==0,o=s||(r&ye)!==0||this.skipped_effects.has(n);if(!o&&n.fn!==null){if(i)n.f^=q;else if((r&Gt)!==0)this.#r.push(n);else if((r&q)===0)if((r&Ut)!==0){var a=n.b?.is_pending()?this.#o:this.#i;a.push(n)}else Tt(n)&&((n.f&We)!==0&&this.#l.push(n),et(n));var c=n.first;if(c!==null){n=c;continue}}var l=n.parent;for(n=n.next;n===null&&l!==null;)n=l.next,l=l.parent}}#a(t){for(const n of t)((n.f&K)!==0?this.#f:this.#d).push(n),U(n,q);t.length=0}capture(t,n){this.#t.has(t)||this.#t.set(t,n),this.current.set(t,t.v)}activate(){R=this}deactivate(){R=null,yt=null;for(const t of Xn)if(Xn.delete(t),t(),R!==null)break}neuter(){this.#c=!0}flush(){je.length>0?Kn():this.#v(),R===this&&(this.#n===0&&Kt.delete(this),this.deactivate())}#v(){if(!this.#c)for(const t of this.#e)t();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const t of this.#f)U(t,K),Ze(t);for(const t of this.#d)U(t,xe),Ze(t);this.#s=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=fi()).promise}static ensure(){if(R===null){const t=R=new Me;Kt.add(R),$t||Me.enqueue(()=>{R===t&&t.flush()})}return R}static enqueue(t){wt.length===0&&queueMicrotask(Zn),wt.unshift(t)}}function Q(e){var t=$t;$t=!0;try{for(var n;;){if(ji(),je.length===0&&(R?.flush(),je.length===0))return kt=null,n;Kn()}}finally{$t=t}}function Kn(){var e=Qe;Qt=!0;try{var t=0;for(_r(!0);je.length>0;){var n=Me.ensure();if(t++>1e3){var r,i;Vi()}n.process(je),we.clear()}}finally{Qt=!1,_r(e),kt=null}}function Vi(){try{mi()}catch(e){Xt(e,kt)}}let De=null;function Qn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Re|ye))===0&&Tt(r)&&(De=[],et(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?vr(r):r.fn=null),De?.length>0)){we.clear();for(const i of De)et(i);De=[]}}De=null}}function Ze(e){for(var t=kt=e;t.parent!==null;){t=t.parent;var n=t.f;if(Qt&&t===k&&(n&We)!==0)return;if((n&(me|pe))!==0){if((n&q)===0)return;t.f^=q}}je.push(t)}const we=new Map;function en(e,t){var n={f:0,v:e,reactions:null,equals:zn,rv:0,wv:0};return n}function A(e,t){const n=en(e);return mr(n),n}function Yi(e,t=!1,n=!0){const r=en(e);return t||(r.equals=Fn),r}function y(e,t,n=!1){E!==null&&(!fe||(E.f&jn)!==0)&&Vn()&&(E.f&(J|We|Ut|jn))!==0&&!_e?.includes(e)&&$i();let r=n?be(t):t;return tn(e,r)}function tn(e,t){if(!e.equals(t)){var n=e.v;ze?we.set(e,t):we.set(e,n),e.v=t;var r=Me.ensure();r.capture(e,n),(e.f&J)!==0&&((e.f&K)!==0&&Zt(e),U(e,(e.f&Z)===0?q:xe)),e.wv=wr(),er(e,K),k!==null&&(k.f&q)!==0&&(k.f&(pe|me))===0&&(te===null?os([e]):te.push(e))}return t}function nn(e){y(e,e.v+1)}function er(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],o=s.f,a=(o&K)===0;a&&U(s,t),(o&J)!==0?er(s,xe):a&&((o&We)!==0&&De!==null&&De.push(s),Ze(s))}}function be(e){if(typeof e!="object"||e===null||_t in e)return e;const t=On(e);if(t!==ui&&t!==ci)return e;var n=new Map,r=Cn(e),i=A(0),s=Fe,o=a=>{if(Fe===s)return a();var c=E,l=Fe;ee(null),yr(s);var v=a();return ee(c),yr(l),v};return r&&n.set("length",A(e.length)),new Proxy(e,{defineProperty(a,c,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&wi();var v=n.get(c);return v===void 0?v=o(()=>{var h=A(l.value);return n.set(c,h),h}):y(v,l.value,!0),!0},deleteProperty(a,c){var l=n.get(c);if(l===void 0){if(c in a){const v=o(()=>A(F));n.set(c,v),nn(i)}}else y(l,F),nn(i);return!0},get(a,c,l){if(c===_t)return e;var v=n.get(c),h=c in a;if(v===void 0&&(!h||Ne(a,c)?.writable)&&(v=o(()=>{var d=be(h?a[c]:F),b=A(d);return b}),n.set(c,v)),v!==void 0){var p=f(v);return p===F?void 0:p}return Reflect.get(a,c,l)},getOwnPropertyDescriptor(a,c){var l=Reflect.getOwnPropertyDescriptor(a,c);if(l&&"value"in l){var v=n.get(c);v&&(l.value=f(v))}else if(l===void 0){var h=n.get(c),p=h?.v;if(h!==void 0&&p!==F)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return l},has(a,c){if(c===_t)return!0;var l=n.get(c),v=l!==void 0&&l.v!==F||Reflect.has(a,c);if(l!==void 0||k!==null&&(!v||Ne(a,c)?.writable)){l===void 0&&(l=o(()=>{var p=v?be(a[c]):F,d=A(p);return d}),n.set(c,l));var h=f(l);if(h===F)return!1}return v},set(a,c,l,v){var h=n.get(c),p=c in a;if(r&&c==="length")for(var d=l;d<h.v;d+=1){var b=n.get(d+"");b!==void 0?y(b,F):d in a&&(b=o(()=>A(F)),n.set(d+"",b))}if(h===void 0)(!p||Ne(a,c)?.writable)&&(h=o(()=>A(void 0)),y(h,be(l)),n.set(c,h));else{p=h.v!==F;var g=o(()=>be(l));y(h,g)}var _=Reflect.getOwnPropertyDescriptor(a,c);if(_?.set&&_.set.call(v,l),!p){if(r&&typeof c=="string"){var z=n.get("length"),w=Number(c);Number.isInteger(w)&&w>=z.v&&y(z,w+1)}nn(i)}return!0},ownKeys(a){f(i);var c=Reflect.ownKeys(a).filter(h=>{var p=n.get(h);return p===void 0||p.v!==F});for(var[l,v]of n)v.v!==F&&!(l in a)&&c.push(l);return c},setPrototypeOf(){ki()}})}var tr,nr,rr,ir;function rn(){if(tr===void 0){tr=window,nr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;rr=Ne(t,"firstChild").get,ir=Ne(t,"nextSibling").get,Nn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Nn(n)&&(n.__t=void 0)}}function Ke(e=""){return document.createTextNode(e)}function Le(e){return rr.call(e)}function ue(e){return ir.call(e)}function N(e,t){if(!S)return Le(e);var n=Le(I);if(n===null)n=I.appendChild(Ke());else if(t&&n.nodeType!==Ln){var r=Ke();return n?.before(r),ae(r),r}return ae(n),n}function sr(e,t){if(!S){var n=Le(e);return n instanceof Comment&&n.data===""?ue(n):n}return I}function C(e,t=1,n=!1){let r=S?I:e;for(var i;t--;)i=r,r=ue(r);if(!S)return r;if(n&&r?.nodeType!==Ln){var s=Ke();return r===null?i?.after(s):r.before(s),ae(s),s}return ae(r),r}function Hi(e){e.textContent=""}function Bi(){return!1}let or=!1;function lr(){or||(or=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Et(e){var t=E,n=k;ee(null),de(null);try{return e()}finally{ee(t),de(n)}}function Ui(e,t,n,r=n){e.addEventListener(t,()=>Et(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),lr()}function Ji(e){k===null&&E===null&&gi(),E!==null&&(E.f&Z)!==0&&k===null&&_i(),ze&&bi()}function Wi(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,n,r=!0){var i=k;i!==null&&(i.f&ye)!==0&&(e|=ye);var s={ctx:ie,deps:null,nodes_start:null,nodes_end:null,f:e|K,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(n)try{et(s),s.f|=Yt}catch(c){throw ke(s),c}else t!==null&&Ze(s);if(r){var o=s;if(n&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&Xe)===0&&(o=o.first),o!==null&&(o.parent=i,i!==null&&Wi(o,i),E!==null&&(E.f&J)!==0&&(e&me)===0)){var a=E;(a.effects??=[]).push(o)}}return s}function Xi(e){const t=ce(Vt,null,!1);return U(t,q),t.teardown=e,t}function Zi(e){Ji();var t=k.f,n=!E&&(t&pe)!==0&&(t&Yt)===0;if(n){var r=ie;(r.e??=[]).push(e)}else return ar(e)}function ar(e){return ce(Gt|di,e,!1)}function Ki(e){Me.ensure();const t=ce(me|Xe,e,!0);return()=>{ke(t)}}function Qi(e){Me.ensure();const t=ce(me|Xe,e,!0);return(n={})=>new Promise(r=>{n.outro?hr(t,()=>{ke(t),r(void 0)}):(ke(t),r(void 0))})}function es(e){return ce(Gt,e,!1)}function ts(e){return ce(Ut|Xe,e,!0)}function ur(e,t=0){return ce(Vt|t,e,!0)}function M(e,t=[],n=[]){qi(t,n,r=>{ce(Vt,()=>e(...r.map(f)),!0)})}function cr(e,t=0){var n=ce(We|t,e,!0);return n}function sn(e,t=!0){return ce(pe|Xe,e,!0,t)}function fr(e){var t=e.teardown;if(t!==null){const n=ze,r=E;gr(!0),ee(null);try{t.call(null)}finally{gr(n),ee(r)}}}function dr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Et(()=>{i.abort(Jt)});var r=n.next;(n.f&me)!==0?n.parent=null:ke(n,t),n=r}}function ns(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&pe)===0&&ke(t),t=n}}function ke(e,t=!0){var n=!1;(t||(e.f&Mn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(rs(e.nodes_start,e.nodes_end),n=!0),dr(e,t&&!n),Pt(e,0),U(e,Re);var r=e.transitions;if(r!==null)for(const s of r)s.stop();fr(e);var i=e.parent;i!==null&&i.first!==null&&vr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function rs(e,t){for(;e!==null;){var n=e===t?null:ue(e);e.remove(),e=n}}function vr(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 hr(e,t){var n=[];pr(e,n,!0),is(n,()=>{ke(e),t&&t()})}function is(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function pr(e,t,n){if((e.f&ye)===0){if(e.f^=ye,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Ht)!==0||(r.f&pe)!==0;pr(r,t,s?n:!1),r=i}}}function ss(e){br(e,!0)}function br(e,t){if((e.f&ye)!==0){e.f^=ye,(e.f&q)===0&&(U(e,K),Ze(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Ht)!==0||(n.f&pe)!==0;br(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let Qe=!1;function _r(e){Qe=e}let ze=!1;function gr(e){ze=e}let E=null,fe=!1;function ee(e){E=e}let k=null;function de(e){k=e}let _e=null;function mr(e){E!==null&&(_e===null?_e=[e]:_e.push(e))}let Y=null,W=0,te=null;function os(e){te=e}let xr=1,ct=0,Fe=ct;function yr(e){Fe=e}let $e=!1;function wr(){return++xr}function Tt(e){var t=e.f;if((t&K)!==0)return!0;if((t&xe)!==0){var n=e.deps,r=(t&Z)!==0;if(n!==null){var i,s,o=(t&bt)!==0,a=r&&k!==null&&!$e,c=n.length;if((o||a)&&(k===null||(k.f&Re)===0)){var l=e,v=l.parent;for(i=0;i<c;i++)s=n[i],(o||!s?.reactions?.includes(l))&&(s.reactions??=[]).push(l);o&&(l.f^=bt),a&&v!==null&&(v.f&Z)===0&&(l.f^=Z)}for(i=0;i<c;i++)if(s=n[i],Tt(s)&&Jn(s),s.wv>e.wv)return!0}(!r||k!==null&&!$e)&&U(e,q)}return!1}function kr(e,t,n=!0){var r=e.reactions;if(r!==null&&!_e?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&J)!==0?kr(s,t,!1):t===s&&(n?U(s,K):(s.f&q)!==0&&U(s,xe),Ze(s))}}function $r(e){var t=Y,n=W,r=te,i=E,s=$e,o=_e,a=ie,c=fe,l=Fe,v=e.f;Y=null,W=0,te=null,$e=(v&Z)!==0&&(fe||!Qe||E===null),E=(v&(pe|me))===0?e:null,_e=null,mt(e.ctx),fe=!1,Fe=++ct,e.ac!==null&&(Et(()=>{e.ac.abort(Jt)}),e.ac=null);try{e.f|=Bt;var h=e.fn,p=h(),d=e.deps;if(Y!==null){var b;if(Pt(e,W),d!==null&&W>0)for(d.length=W+Y.length,b=0;b<Y.length;b++)d[W+b]=Y[b];else e.deps=d=Y;if(!$e||(v&J)!==0&&e.reactions!==null)for(b=W;b<d.length;b++)(d[b].reactions??=[]).push(e)}else d!==null&&W<d.length&&(Pt(e,W),d.length=W);if(Vn()&&te!==null&&!fe&&d!==null&&(e.f&(J|xe|K))===0)for(b=0;b<te.length;b++)kr(te[b],e);return i!==null&&i!==e&&(ct++,te!==null&&(r===null?r=te:r.push(...te))),(e.f&Ie)!==0&&(e.f^=Ie),p}catch(g){return Oi(g)}finally{e.f^=Bt,Y=t,W=n,te=r,E=i,$e=s,_e=o,mt(a),fe=c,Fe=l}}function ls(e,t){let n=t.reactions;if(n!==null){var r=oi.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&J)!==0&&(Y===null||!Y.includes(t))&&(U(t,xe),(t.f&(Z|bt))===0&&(t.f^=bt),Un(t),Pt(t,0))}function Pt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ls(e,n[r])}function et(e){var t=e.f;if((t&Re)===0){U(e,q);var n=k,r=Qe;k=e,Qe=!0;try{(t&We)!==0?ns(e):dr(e),fr(e);var i=$r(e);e.teardown=typeof i=="function"?i:null,e.wv=xr;var s;An&&Ai&&(e.f&K)!==0&&e.deps}finally{Qe=r,k=n}}}async function as(){await Promise.resolve(),Q()}function f(e){var t=e.f,n=(t&J)!==0;if(E!==null&&!fe){var r=k!==null&&(k.f&Re)!==0;if(!r&&!_e?.includes(e)){var i=E.deps;if((E.f&Bt)!==0)e.rv<ct&&(e.rv=ct,Y===null&&i!==null&&i[W]===e?W++:Y===null?Y=[e]:(!$e||!Y.includes(e))&&Y.push(e));else{(E.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[E]:s.includes(E)||s.push(E)}}}else if(n&&e.deps===null&&e.effects===null){var o=e,a=o.parent;a!==null&&(a.f&Z)===0&&(o.f^=Z)}if(ze){if(we.has(e))return we.get(e);if(n){o=e;var c=o.v;return((o.f&q)===0&&o.reactions!==null||Er(o))&&(c=Zt(o)),we.set(o,c),c}}else n&&(o=e,Tt(o)&&Jn(o));if((e.f&Ie)!==0)throw e.v;return e.v}function Er(e){if(e.v===F)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(we.has(t)||(t.f&J)!==0&&Er(t))return!0;return!1}function Tr(e){var t=fe;try{return fe=!0,e()}finally{fe=t}}const us=-7169;function U(e,t){e.f=e.f&us|t}const Pr=new Set,on=new Set;function cs(e,t,n,r={}){function i(s){if(r.capture||ft.call(t,s),!s.cancelBubble)return Et(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ri(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function X(e,t,n,r,i){var s={capture:r,passive:i},o=cs(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Xi(()=>{t.removeEventListener(e,o,s)})}function fs(e){for(var t=0;t<e.length;t++)Pr.add(e[t]);for(var n of on)n(e)}let Sr=null;function ft(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Sr=e;var o=0,a=Sr===e&&e.__root;if(a){var c=i.indexOf(a);if(c!==-1&&(t===document||t===window)){e.__root=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(s=i[o]||e.target,s!==t){Je(e,"currentTarget",{configurable:!0,get(){return s||n}});var v=E,h=k;ee(null),de(null);try{for(var p,d=[];s!==null;){var b=s.assignedSlot||s.parentNode||s.host||null;try{var g=s["__"+r];if(g!=null&&(!s.disabled||e.target===s))if(Cn(g)){var[_,...z]=g;_.apply(s,[e,...z])}else g.call(s,e)}catch(w){p?d.push(w):p=w}if(e.cancelBubble||b===t||b===null)break;s=b}if(p){for(let w of d)queueMicrotask(()=>{throw w});throw p}}finally{e.__root=t,delete e.currentTarget,ee(v),de(h)}}}let ne;function ds(){ne=void 0}function vs(e){let t=null,n=S;var r;if(S){for(t=I,ne===void 0&&(ne=Le(document.head));ne!==null&&(ne.nodeType!==lt||ne.data!==qt);)ne=ue(ne);ne===null?le(!1):ne=ae(ue(ne))}S||(r=document.head.appendChild(Ke()));try{cr(()=>e(r),Mn)}finally{n&&(le(!0),ne=I,ae(t))}}function hs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function St(e,t){var n=k;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function qe(e,t){var n=(t&ri)!==0,r=(t&ii)!==0,i,s=!e.startsWith("<!>");return()=>{if(S)return St(I,null),I;i===void 0&&(i=hs(s?e:"<!>"+e),n||(i=Le(i)));var o=r||nr?document.importNode(i,!0):i.cloneNode(!0);if(n){var a=Le(o),c=o.lastChild;St(a,c)}else St(o,o);return o}}function Ee(e,t){if(S){k.nodes_end=I,Wt();return}e!==null&&e.before(t)}const ps=["touchstart","touchmove"];function bs(e){return ps.includes(e)}function At(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Ar(e,t){return Cr(e,t)}function _s(e,t){rn(),t.intro=t.intro??!1;const n=t.target,r=S,i=I;try{for(var s=Le(n);s&&(s.nodeType!==lt||s.data!==qt);)s=ue(s);if(!s)throw Ue;le(!0),ae(s),Wt();const o=Cr(e,{...t,anchor:s});if(I===null||I.nodeType!==lt||I.data!==Sn)throw gt(),Ue;return le(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(
|
|
3
|
-
`,
|
|
4
|
-
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;}#grid_table.svelte-
|
|
1
|
+
(function(En){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Qr=1,ei=4,ti=8,ni=16,ri=1,ii=2,qt="[",xn="[!",Tn="]",Ue={},F=Symbol(),si="http://www.w3.org/1999/xhtml",Pn=!1;var Sn=Array.isArray,ai=Array.prototype.indexOf,oi=Array.from,bt=Object.keys,Je=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,li=Object.getOwnPropertyDescriptors,ui=Object.prototype,ci=Array.prototype,An=Object.getPrototypeOf,Cn=Object.isExtensible;function On(e){for(var t=0;t<e.length;t++)e[t]()}function fi(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const J=2,Gt=4,Vt=8,We=16,be=32,me=64,Nn=128,Z=256,_t=512,q=1024,K=2048,ye=4096,we=8192,Oe=16384,Yt=32768,Ht=65536,Rn=1<<17,In=1<<18,Xe=1<<19,di=1<<20,Bt=1<<21,Ut=1<<22,Ne=1<<23,pt=Symbol("$state"),Mn=Symbol("legacy props"),vi=Symbol(""),Jt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Dn=3,ot=8;function hi(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function bi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function _i(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function pi(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function gi(e){throw new Error("https://svelte.dev/e/effect_orphan")}function mi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function yi(){throw new Error("https://svelte.dev/e/hydration_failed")}function wi(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function ji(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function zi(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function $i(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function gt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let T=!1;function oe(e){T=e}let N;function le(e){if(e===null)throw gt(),Ue;return N=e}function Wt(){return le(ue(N))}function A(e){if(T){if(ue(N)!==null)throw gt(),Ue;N=e}}function ki(e=1){if(T){for(var t=e,n=N;t--;)n=ue(n);N=n}}function Ei(){for(var e=0,t=N;;){if(t.nodeType===ot){var n=t.data;if(n===Tn){if(e===0)return t;e-=1}else(n===qt||n===xn)&&(e+=1)}var r=ue(t);t.remove(),t=r}}function xi(e){if(!e||e.nodeType!==ot)throw gt(),Ue;return e.data}function Ln(e){return e===this.v}function Ti(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Fn(e){return!Ti(e,this.v)}let Pi=!1,ie=null;function mt(e){ie=e}function qn(e,t=!1,n){ie={p:ie,c:null,e:null,s:e,x:null,l:null}}function Gn(e){var t=ie,n=t.e;if(n!==null){t.e=null;for(var r of n)lr(r)}return e!==void 0&&(t.x=e),ie=t.p,e??{}}function Vn(){return!0}const Si=new WeakMap;function Ai(e){var t=z;if(t===null)return k.f|=Ne,e;if((t.f&Yt)===0){if((t.f&Nn)===0)throw!t.parent&&e instanceof Error&&Yn(e),e;t.b.error(e)}else Xt(e,t)}function Xt(e,t){for(;t!==null;){if((t.f&Nn)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&Yn(e),e}function Yn(e){const t=Si.get(e);t&&(Je(e,"message",{value:t.message}),Je(e,"stack",{value:t.stack}))}const Ci=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let lt=[],ut=[];function Hn(){var e=lt;lt=[],On(e)}function Bn(){var e=ut;ut=[],On(e)}function Oi(e){lt.length===0&&queueMicrotask(Hn),lt.push(e)}function Ni(e){ut.length===0&&Ci(Bn),ut.push(e)}function Ri(){lt.length>0&&Hn(),ut.length>0&&Bn()}function Ii(){const e=z.b;return e===null&&hi(),e}function yt(e){var t=J|K,n=k!==null&&(k.f&J)!==0?k:null;return z===null||n!==null&&(n.f&Z)!==0?t|=Z:z.f|=Xe,{ctx:ie,deps:null,effects:null,equals:Ln,f:t,fn:e,reactions:null,rv:0,v:F,wv:0,parent:n??z,ac:null}}function Mi(e,t){let n=z;n===null&&bi();var r=n.b,i=void 0,s=en(F),a=null,l=!k;return ts(()=>{try{var c=e();a&&Promise.resolve(c).catch(()=>{})}catch(d){c=Promise.reject(d)}var o=()=>c;i=a?.then(o,o)??Promise.resolve(c),a=i;var v=O,h=r.is_pending();l&&(r.update_pending_count(1),h||v.increment());const b=(d,_=void 0)=>{a=null,h||v.activate(),_?_!==Jt&&(s.f|=Ne,tn(s,_)):((s.f&Ne)!==0&&(s.f^=Ne),tn(s,d)),l&&(r.update_pending_count(-1),h||v.decrement()),Wn()};if(i.then(b,d=>b(null,d||"unknown")),v)return()=>{queueMicrotask(()=>v.neuter())}}),new Promise(c=>{function o(v){function h(){v===i?c(s):o(i)}v.then(h,h)}o(i)})}function Di(e){const t=yt(e);return mr(t),t}function Li(e){const t=yt(e);return t.equals=Fn,t}function Un(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ze(t[n])}}function Fi(e){for(var t=e.parent;t!==null;){if((t.f&J)===0)return t;t=t.parent}return null}function Zt(e){var t,n=z;de(Fi(e));try{Un(e),t=$r(e)}finally{de(n)}return t}function Jn(e){var t=Zt(e);if(e.equals(t)||(e.v=t,e.wv=jr()),!Le){var n=($e||(e.f&Z)!==0)&&e.deps!==null?ye:q;U(e,n)}}function qi(e,t,n){const r=yt;if(t.length===0){n(e.map(r));return}var i=O,s=z,a=Gi(),l=Ii();Promise.all(t.map(c=>Mi(c))).then(c=>{i?.activate(),a();try{n([...e.map(r),...c])}catch(o){(s.f&Oe)===0&&Xt(o,s)}i?.deactivate(),Wn()}).catch(c=>{l.error(c)})}function Gi(){var e=z,t=k,n=ie,r=O;return function(){de(e),ee(t),mt(n),r?.activate()}}function Wn(){de(null),ee(null),mt(null)}const Kt=new Set;let O=null,wt=null,Xn=new Set,jt=[];function Zn(){const e=jt.shift();jt.length>0&&queueMicrotask(Zn),e()}let Re=[],zt=null,Qt=!1,$t=!1;class Ie{current=new Map;#t=new Map;#e=new Set;#n=0;#u=null;#c=!1;#i=[];#a=[];#s=[];#r=[];#o=[];#f=[];#d=[];skipped_effects=new Set;process(t){Re=[],wt=null;for(const i of t)this.#h(i);if(this.#i.length===0&&this.#n===0){this.#v();var n=this.#s,r=this.#r;this.#s=[],this.#r=[],this.#o=[],wt=O,O=null,Qn(n),Qn(r),O===null?O=this:Kt.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#r),this.#l(this.#o);for(const i of this.#i)et(i);for(const i of this.#a)et(i);this.#i=[],this.#a=[]}#h(t){t.f^=q;for(var n=t.first;n!==null;){var r=n.f,i=(r&(be|me))!==0,s=i&&(r&q)!==0,a=s||(r&we)!==0||this.skipped_effects.has(n);if(!a&&n.fn!==null){if(i)n.f^=q;else if((r&Gt)!==0)this.#r.push(n);else if((r&q)===0)if((r&Ut)!==0){var l=n.b?.is_pending()?this.#a:this.#i;l.push(n)}else Et(n)&&((n.f&We)!==0&&this.#o.push(n),et(n));var c=n.first;if(c!==null){n=c;continue}}var o=n.parent;for(n=n.next;n===null&&o!==null;)n=o.next,o=o.parent}}#l(t){for(const n of t)((n.f&K)!==0?this.#f:this.#d).push(n),U(n,q);t.length=0}capture(t,n){this.#t.has(t)||this.#t.set(t,n),this.current.set(t,t.v)}activate(){O=this}deactivate(){O=null,wt=null;for(const t of Xn)if(Xn.delete(t),t(),O!==null)break}neuter(){this.#c=!0}flush(){Re.length>0?Kn():this.#v(),O===this&&(this.#n===0&&Kt.delete(this),this.deactivate())}#v(){if(!this.#c)for(const t of this.#e)t();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const t of this.#f)U(t,K),Ze(t);for(const t of this.#d)U(t,ye),Ze(t);this.#s=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=fi()).promise}static ensure(){if(O===null){const t=O=new Ie;Kt.add(O),$t||Ie.enqueue(()=>{O===t&&t.flush()})}return O}static enqueue(t){jt.length===0&&queueMicrotask(Zn),jt.unshift(t)}}function Q(e){var t=$t;$t=!0;try{for(var n;;){if(Ri(),Re.length===0&&(O?.flush(),Re.length===0))return zt=null,n;Kn()}}finally{$t=t}}function Kn(){var e=Qe;Qt=!0;try{var t=0;for(pr(!0);Re.length>0;){var n=Ie.ensure();if(t++>1e3){var r,i;Vi()}n.process(Re),je.clear()}}finally{Qt=!1,pr(e),zt=null}}function Vi(){try{mi()}catch(e){Xt(e,zt)}}let Me=null;function Qn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Oe|we))===0&&Et(r)&&(Me=[],et(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?vr(r):r.fn=null),Me?.length>0)){je.clear();for(const i of Me)et(i);Me=[]}}Me=null}}function Ze(e){for(var t=zt=e;t.parent!==null;){t=t.parent;var n=t.f;if(Qt&&t===z&&(n&We)!==0)return;if((n&(me|be))!==0){if((n&q)===0)return;t.f^=q}}Re.push(t)}const je=new Map;function en(e,t){var n={f:0,v:e,reactions:null,equals:Ln,rv:0,wv:0};return n}function P(e,t){const n=en(e);return mr(n),n}function Yi(e,t=!1,n=!0){const r=en(e);return t||(r.equals=Fn),r}function w(e,t,n=!1){k!==null&&(!fe||(k.f&Rn)!==0)&&Vn()&&(k.f&(J|We|Ut|Rn))!==0&&!pe?.includes(e)&&$i();let r=n?_e(t):t;return tn(e,r)}function tn(e,t){if(!e.equals(t)){var n=e.v;Le?je.set(e,t):je.set(e,n),e.v=t;var r=Ie.ensure();r.capture(e,n),(e.f&J)!==0&&((e.f&K)!==0&&Zt(e),U(e,(e.f&Z)===0?q:ye)),e.wv=jr(),er(e,K),z!==null&&(z.f&q)!==0&&(z.f&(be|me))===0&&(te===null?as([e]):te.push(e))}return t}function nn(e){w(e,e.v+1)}function er(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],a=s.f,l=(a&K)===0;l&&U(s,t),(a&J)!==0?er(s,ye):l&&((a&We)!==0&&Me!==null&&Me.push(s),Ze(s))}}function _e(e){if(typeof e!="object"||e===null||pt in e)return e;const t=An(e);if(t!==ui&&t!==ci)return e;var n=new Map,r=Sn(e),i=P(0),s=Fe,a=l=>{if(Fe===s)return l();var c=k,o=Fe;ee(null),wr(s);var v=l();return ee(c),wr(o),v};return r&&n.set("length",P(e.length)),new Proxy(e,{defineProperty(l,c,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&ji();var v=n.get(c);return v===void 0?v=a(()=>{var h=P(o.value);return n.set(c,h),h}):w(v,o.value,!0),!0},deleteProperty(l,c){var o=n.get(c);if(o===void 0){if(c in l){const v=a(()=>P(F));n.set(c,v),nn(i)}}else w(o,F),nn(i);return!0},get(l,c,o){if(c===pt)return e;var v=n.get(c),h=c in l;if(v===void 0&&(!h||Ce(l,c)?.writable)&&(v=a(()=>{var d=_e(h?l[c]:F),_=P(d);return _}),n.set(c,v)),v!==void 0){var b=f(v);return b===F?void 0:b}return Reflect.get(l,c,o)},getOwnPropertyDescriptor(l,c){var o=Reflect.getOwnPropertyDescriptor(l,c);if(o&&"value"in o){var v=n.get(c);v&&(o.value=f(v))}else if(o===void 0){var h=n.get(c),b=h?.v;if(h!==void 0&&b!==F)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return o},has(l,c){if(c===pt)return!0;var o=n.get(c),v=o!==void 0&&o.v!==F||Reflect.has(l,c);if(o!==void 0||z!==null&&(!v||Ce(l,c)?.writable)){o===void 0&&(o=a(()=>{var b=v?_e(l[c]):F,d=P(b);return d}),n.set(c,o));var h=f(o);if(h===F)return!1}return v},set(l,c,o,v){var h=n.get(c),b=c in l;if(r&&c==="length")for(var d=o;d<h.v;d+=1){var _=n.get(d+"");_!==void 0?w(_,F):d in l&&(_=a(()=>P(F)),n.set(d+"",_))}if(h===void 0)(!b||Ce(l,c)?.writable)&&(h=a(()=>P(void 0)),w(h,_e(o)),n.set(c,h));else{b=h.v!==F;var g=a(()=>_e(o));w(h,g)}var p=Reflect.getOwnPropertyDescriptor(l,c);if(p?.set&&p.set.call(v,o),!b){if(r&&typeof c=="string"){var L=n.get("length"),j=Number(c);Number.isInteger(j)&&j>=L.v&&w(L,j+1)}nn(i)}return!0},ownKeys(l){f(i);var c=Reflect.ownKeys(l).filter(h=>{var b=n.get(h);return b===void 0||b.v!==F});for(var[o,v]of n)v.v!==F&&!(o in l)&&c.push(o);return c},setPrototypeOf(){zi()}})}var tr,nr,rr,ir;function rn(){if(tr===void 0){tr=window,nr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;rr=Ce(t,"firstChild").get,ir=Ce(t,"nextSibling").get,Cn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Cn(n)&&(n.__t=void 0)}}function Ke(e=""){return document.createTextNode(e)}function De(e){return rr.call(e)}function ue(e){return ir.call(e)}function C(e,t){if(!T)return De(e);var n=De(N);if(n===null)n=N.appendChild(Ke());else if(t&&n.nodeType!==Dn){var r=Ke();return n?.before(r),le(r),r}return le(n),n}function sr(e,t){if(!T){var n=De(e);return n instanceof Comment&&n.data===""?ue(n):n}return N}function S(e,t=1,n=!1){let r=T?N:e;for(var i;t--;)i=r,r=ue(r);if(!T)return r;if(n&&r?.nodeType!==Dn){var s=Ke();return r===null?i?.after(s):r.before(s),le(s),s}return le(r),r}function Hi(e){e.textContent=""}function Bi(){return!1}let ar=!1;function or(){ar||(ar=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function kt(e){var t=k,n=z;ee(null),de(null);try{return e()}finally{ee(t),de(n)}}function Ui(e,t,n,r=n){e.addEventListener(t,()=>kt(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),or()}function Ji(e){z===null&&k===null&&gi(),k!==null&&(k.f&Z)!==0&&z===null&&pi(),Le&&_i()}function Wi(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,n,r=!0){var i=z;i!==null&&(i.f&we)!==0&&(e|=we);var s={ctx:ie,deps:null,nodes_start:null,nodes_end:null,f:e|K,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(n)try{et(s),s.f|=Yt}catch(c){throw ze(s),c}else t!==null&&Ze(s);if(r){var a=s;if(n&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&Xe)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&Wi(a,i),k!==null&&(k.f&J)!==0&&(e&me)===0)){var l=k;(l.effects??=[]).push(a)}}return s}function Xi(e){const t=ce(Vt,null,!1);return U(t,q),t.teardown=e,t}function Zi(e){Ji();var t=z.f,n=!k&&(t&be)!==0&&(t&Yt)===0;if(n){var r=ie;(r.e??=[]).push(e)}else return lr(e)}function lr(e){return ce(Gt|di,e,!1)}function Ki(e){Ie.ensure();const t=ce(me|Xe,e,!0);return()=>{ze(t)}}function Qi(e){Ie.ensure();const t=ce(me|Xe,e,!0);return(n={})=>new Promise(r=>{n.outro?hr(t,()=>{ze(t),r(void 0)}):(ze(t),r(void 0))})}function es(e){return ce(Gt,e,!1)}function ts(e){return ce(Ut|Xe,e,!0)}function ur(e,t=0){return ce(Vt|t,e,!0)}function I(e,t=[],n=[]){qi(t,n,r=>{ce(Vt,()=>e(...r.map(f)),!0)})}function cr(e,t=0){var n=ce(We|t,e,!0);return n}function sn(e,t=!0){return ce(be|Xe,e,!0,t)}function fr(e){var t=e.teardown;if(t!==null){const n=Le,r=k;gr(!0),ee(null);try{t.call(null)}finally{gr(n),ee(r)}}}function dr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&kt(()=>{i.abort(Jt)});var r=n.next;(n.f&me)!==0?n.parent=null:ze(n,t),n=r}}function ns(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&be)===0&&ze(t),t=n}}function ze(e,t=!0){var n=!1;(t||(e.f&In)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(rs(e.nodes_start,e.nodes_end),n=!0),dr(e,t&&!n),xt(e,0),U(e,Oe);var r=e.transitions;if(r!==null)for(const s of r)s.stop();fr(e);var i=e.parent;i!==null&&i.first!==null&&vr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function rs(e,t){for(;e!==null;){var n=e===t?null:ue(e);e.remove(),e=n}}function vr(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 hr(e,t){var n=[];br(e,n,!0),is(n,()=>{ze(e),t&&t()})}function is(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function br(e,t,n){if((e.f&we)===0){if(e.f^=we,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Ht)!==0||(r.f&be)!==0;br(r,t,s?n:!1),r=i}}}function ss(e){_r(e,!0)}function _r(e,t){if((e.f&we)!==0){e.f^=we,(e.f&q)===0&&(U(e,K),Ze(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Ht)!==0||(n.f&be)!==0;_r(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let Qe=!1;function pr(e){Qe=e}let Le=!1;function gr(e){Le=e}let k=null,fe=!1;function ee(e){k=e}let z=null;function de(e){z=e}let pe=null;function mr(e){k!==null&&(pe===null?pe=[e]:pe.push(e))}let Y=null,W=0,te=null;function as(e){te=e}let yr=1,ct=0,Fe=ct;function wr(e){Fe=e}let $e=!1;function jr(){return++yr}function Et(e){var t=e.f;if((t&K)!==0)return!0;if((t&ye)!==0){var n=e.deps,r=(t&Z)!==0;if(n!==null){var i,s,a=(t&_t)!==0,l=r&&z!==null&&!$e,c=n.length;if((a||l)&&(z===null||(z.f&Oe)===0)){var o=e,v=o.parent;for(i=0;i<c;i++)s=n[i],(a||!s?.reactions?.includes(o))&&(s.reactions??=[]).push(o);a&&(o.f^=_t),l&&v!==null&&(v.f&Z)===0&&(o.f^=Z)}for(i=0;i<c;i++)if(s=n[i],Et(s)&&Jn(s),s.wv>e.wv)return!0}(!r||z!==null&&!$e)&&U(e,q)}return!1}function zr(e,t,n=!0){var r=e.reactions;if(r!==null&&!pe?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&J)!==0?zr(s,t,!1):t===s&&(n?U(s,K):(s.f&q)!==0&&U(s,ye),Ze(s))}}function $r(e){var t=Y,n=W,r=te,i=k,s=$e,a=pe,l=ie,c=fe,o=Fe,v=e.f;Y=null,W=0,te=null,$e=(v&Z)!==0&&(fe||!Qe||k===null),k=(v&(be|me))===0?e:null,pe=null,mt(e.ctx),fe=!1,Fe=++ct,e.ac!==null&&(kt(()=>{e.ac.abort(Jt)}),e.ac=null);try{e.f|=Bt;var h=e.fn,b=h(),d=e.deps;if(Y!==null){var _;if(xt(e,W),d!==null&&W>0)for(d.length=W+Y.length,_=0;_<Y.length;_++)d[W+_]=Y[_];else e.deps=d=Y;if(!$e||(v&J)!==0&&e.reactions!==null)for(_=W;_<d.length;_++)(d[_].reactions??=[]).push(e)}else d!==null&&W<d.length&&(xt(e,W),d.length=W);if(Vn()&&te!==null&&!fe&&d!==null&&(e.f&(J|ye|K))===0)for(_=0;_<te.length;_++)zr(te[_],e);return i!==null&&i!==e&&(ct++,te!==null&&(r===null?r=te:r.push(...te))),(e.f&Ne)!==0&&(e.f^=Ne),b}catch(g){return Ai(g)}finally{e.f^=Bt,Y=t,W=n,te=r,k=i,$e=s,pe=a,mt(l),fe=c,Fe=o}}function os(e,t){let n=t.reactions;if(n!==null){var r=ai.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&J)!==0&&(Y===null||!Y.includes(t))&&(U(t,ye),(t.f&(Z|_t))===0&&(t.f^=_t),Un(t),xt(t,0))}function xt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)os(e,n[r])}function et(e){var t=e.f;if((t&Oe)===0){U(e,q);var n=z,r=Qe;z=e,Qe=!0;try{(t&We)!==0?ns(e):dr(e),fr(e);var i=$r(e);e.teardown=typeof i=="function"?i:null,e.wv=yr;var s;Pn&&Pi&&(e.f&K)!==0&&e.deps}finally{Qe=r,z=n}}}async function ls(){await Promise.resolve(),Q()}function f(e){var t=e.f,n=(t&J)!==0;if(k!==null&&!fe){var r=z!==null&&(z.f&Oe)!==0;if(!r&&!pe?.includes(e)){var i=k.deps;if((k.f&Bt)!==0)e.rv<ct&&(e.rv=ct,Y===null&&i!==null&&i[W]===e?W++:Y===null?Y=[e]:(!$e||!Y.includes(e))&&Y.push(e));else{(k.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[k]:s.includes(k)||s.push(k)}}}else if(n&&e.deps===null&&e.effects===null){var a=e,l=a.parent;l!==null&&(l.f&Z)===0&&(a.f^=Z)}if(Le){if(je.has(e))return je.get(e);if(n){a=e;var c=a.v;return((a.f&q)===0&&a.reactions!==null||kr(a))&&(c=Zt(a)),je.set(a,c),c}}else n&&(a=e,Et(a)&&Jn(a));if((e.f&Ne)!==0)throw e.v;return e.v}function kr(e){if(e.v===F)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(je.has(t)||(t.f&J)!==0&&kr(t))return!0;return!1}function Er(e){var t=fe;try{return fe=!0,e()}finally{fe=t}}const us=-7169;function U(e,t){e.f=e.f&us|t}const xr=new Set,an=new Set;function cs(e,t,n,r={}){function i(s){if(r.capture||ft.call(t,s),!s.cancelBubble)return kt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Oi(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function X(e,t,n,r,i){var s={capture:r,passive:i},a=cs(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Xi(()=>{t.removeEventListener(e,a,s)})}function fs(e){for(var t=0;t<e.length;t++)xr.add(e[t]);for(var n of an)n(e)}let Tr=null;function ft(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Tr=e;var a=0,l=Tr===e&&e.__root;if(l){var c=i.indexOf(l);if(c!==-1&&(t===document||t===window)){e.__root=t;return}var o=i.indexOf(t);if(o===-1)return;c<=o&&(a=c)}if(s=i[a]||e.target,s!==t){Je(e,"currentTarget",{configurable:!0,get(){return s||n}});var v=k,h=z;ee(null),de(null);try{for(var b,d=[];s!==null;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var g=s["__"+r];if(g!=null&&(!s.disabled||e.target===s))if(Sn(g)){var[p,...L]=g;p.apply(s,[e,...L])}else g.call(s,e)}catch(j){b?d.push(j):b=j}if(e.cancelBubble||_===t||_===null)break;s=_}if(b){for(let j of d)queueMicrotask(()=>{throw j});throw b}}finally{e.__root=t,delete e.currentTarget,ee(v),de(h)}}}let ne;function ds(){ne=void 0}function vs(e){let t=null,n=T;var r;if(T){for(t=N,ne===void 0&&(ne=De(document.head));ne!==null&&(ne.nodeType!==ot||ne.data!==qt);)ne=ue(ne);ne===null?oe(!1):ne=le(ue(ne))}T||(r=document.head.appendChild(Ke()));try{cr(()=>e(r),In)}finally{n&&(oe(!0),ne=N,le(t))}}function hs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Tt(e,t){var n=z;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function qe(e,t){var n=(t&ri)!==0,r=(t&ii)!==0,i,s=!e.startsWith("<!>");return()=>{if(T)return Tt(N,null),N;i===void 0&&(i=hs(s?e:"<!>"+e),n||(i=De(i)));var a=r||nr?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=De(a),c=a.lastChild;Tt(l,c)}else Tt(a,a);return a}}function ke(e,t){if(T){z.nodes_end=N,Wt();return}e!==null&&e.before(t)}const bs=["touchstart","touchmove"];function _s(e){return bs.includes(e)}function Pt(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Pr(e,t){return Sr(e,t)}function ps(e,t){rn(),t.intro=t.intro??!1;const n=t.target,r=T,i=N;try{for(var s=De(n);s&&(s.nodeType!==ot||s.data!==qt);)s=ue(s);if(!s)throw Ue;oe(!0),le(s),Wt();const a=Sr(e,{...t,anchor:s});if(N===null||N.nodeType!==ot||N.data!==Tn)throw gt(),Ue;return oe(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Ue&&console.warn("Failed to hydrate: ",a),t.recover===!1&&yi(),rn(),Hi(n),oe(!1),Pr(e,t)}finally{oe(r),le(i),ds()}}const tt=new Map;function Sr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0}){rn();var l=new Set,c=h=>{for(var b=0;b<h.length;b++){var d=h[b];if(!l.has(d)){l.add(d);var _=_s(d);t.addEventListener(d,ft,{passive:_});var g=tt.get(d);g===void 0?(document.addEventListener(d,ft,{passive:_}),tt.set(d,1)):tt.set(d,g+1)}}};c(oi(xr)),an.add(c);var o=void 0,v=Qi(()=>{var h=n??t.appendChild(Ke());return sn(()=>{if(s){qn({});var b=ie;b.c=s}i&&(r.$$events=i),T&&Tt(h,null),o=e(h,r)||{},T&&(z.nodes_end=N),s&&Gn()}),()=>{for(var b of l){t.removeEventListener(b,ft);var d=tt.get(b);--d===0?(document.removeEventListener(b,ft),tt.delete(b)):tt.set(b,d)}an.delete(c),h!==n&&h.parentNode?.removeChild(h)}});return on.set(o,v),o}let on=new WeakMap;function gs(e,t){const n=on.get(e);return n?(on.delete(e),n(t)):Promise.resolve()}function St(e,t,n=!1){T&&Wt();var r=e,i=null,s=null,a=F,l=n?Ht:0,c=!1;const o=(d,_=!0)=>{c=!0,b(_,d)};var v=null;function h(){v!==null&&(v.lastChild.remove(),r.before(v),v=null);var d=a?i:s,_=a?s:i;d&&ss(d),_&&hr(_,()=>{a?s=null:i=null})}const b=(d,_)=>{if(a===(a=d))return;let g=!1;if(T){const H=xi(r)===xn;!!a===H&&(r=Ei(),le(r),oe(!1),g=!0)}var p=Bi(),L=r;if(p&&(v=document.createDocumentFragment(),v.append(L=Ke())),a?i??=_&&sn(()=>_(L)):s??=_&&sn(()=>_(L)),p){var j=O,re=a?i:s,M=a?s:i;re&&j.skipped_effects.delete(re),M&&j.skipped_effects.add(M),j.add_callback(h)}else h();g&&oe(!0)};cr(()=>{c=!1,t(o),c||b(null,null)},l),T&&(r=N)}function ms(e,t){es(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function ys(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function ws(e,t){return e==null?null:String(e)}function D(e,t,n,r,i,s){var a=e.__className;if(T||a!==n||a===void 0){var l=ys(n,r);(!T||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}function Ee(e,t,n,r){var i=e.__style;if(T||i!==t){var s=ws(t);(!T||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const js=Symbol("is custom element"),zs=Symbol("is html");function Ar(e){if(T){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;dt(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;dt(e,"checked",null),e.checked=i}}};e.__on_r=n,Ni(n),or()}}function dt(e,t,n,r){var i=$s(e);T&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[vi]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Cr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function E(e,t,n){var r=k,i=z;let s=T;T&&oe(!1),ee(null),de(null);try{t!=="style"&&(ln.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Cr(e).includes(t):n&&typeof n=="object")?e[t]=n:dt(e,t,n==null?n:String(n))}finally{ee(r),de(i),s&&oe(!0)}}function $s(e){return e.__attributes??={[js]:e.nodeName.includes("-"),[zs]:e.namespaceURI===si}}var ln=new Map;function Cr(e){var t=e.getAttribute("is")||e.nodeName,n=ln.get(t);if(n)return n;ln.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=li(i);for(var a in r)r[a].set&&n.push(a);i=An(i)}return n}function Or(e,t,n=t){var r=new WeakSet;Ui(e,"input",async i=>{var s=i?e.defaultValue:e.value;if(s=un(e)?cn(s):s,n(s),O!==null&&r.add(O),await ls(),s!==(s=t())){var a=e.selectionStart,l=e.selectionEnd;e.value=s??"",l!==null&&(e.selectionStart=a,e.selectionEnd=Math.min(l,e.value.length))}}),(T&&e.defaultValue!==e.value||Er(t)==null&&e.value)&&(n(un(e)?cn(e.value):e.value),O!==null&&r.add(O)),ur(()=>{var i=t();if(e===document.activeElement){var s=wt??O;if(r.has(s))return}un(e)&&i===cn(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function un(e){var t=e.type;return t==="number"||t==="range"}function cn(e){return e===""?null:+e}let At=!1;function ks(e){var t=At;try{return At=!1,[e(),At]}finally{At=t}}function ve(e,t,n,r){var i=(n&ti)!==0,s=(n&ni)!==0,a=r,l=!0,c=()=>(l&&(l=!1,a=s?Er(r):r),a),o;if(i){var v=pt in e||Mn in e;o=Ce(e,t)?.set??(v&&t in e?j=>e[t]=j:void 0)}var h,b=!1;i?[h,b]=ks(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=c(),o&&(wi(),o(h)));var d;if(d=()=>{var j=e[t];return j===void 0?c():(l=!0,j)},(n&ei)===0)return d;if(o){var _=e.$$legacy;return(function(j,re){return arguments.length>0?((!re||_||b)&&o(re?d():j),j):d()})}var g=!1,p=((n&Qr)!==0?yt:Li)(()=>(g=!1,d()));i&&f(p);var L=z;return(function(j,re){if(arguments.length>0){const M=re?f(p):i?_e(j):j;return w(p,M),g=!0,a!==void 0&&(a=M),j}return Le&&g||(L.f&Oe)!==0?p.v:f(p)})}function Es(e){return new xs(e)}class xs{#t;#e;constructor(t){var n=new Map,r=(s,a)=>{var l=Yi(a,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return f(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===Mn?!0:(f(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return w(n.get(a)??r(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?ps:Pr)(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)&&Q(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Je(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=()=>{gs(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let Nr;typeof HTMLElement=="function"&&(Nr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}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=document.createElement("slot");r!=="default"&&(s.name=r),ke(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Ts(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]=Ct(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=Es({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Ki(()=>{ur(()=>{this.$$r=!0;for(const r of bt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Ct(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]=Ct(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 bt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ct(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 Ts(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ps(e,t,n,r,i,s){let a=class extends Nr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return bt(t).map(l=>(t[l].attribute||l).toLowerCase())}};return bt(t).forEach(l=>{Je(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(c){c=Ct(l,c,t),this.$$d[l]=c;var o=this.$$c;if(o){var v=Ce(o,l)?.get;v?o[l]=c:o.$set({[l]:c})}}})}),r.forEach(l=>{Je(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}const Ot={version:"0.60.3"};function Ss(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nt={},fn,Rr;function As(){if(Rr)return fn;Rr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c=`
|
|
3
|
+
`,o="/",v="*",h="",b="comment",d="declaration";fn=function(g,p){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];p=p||{};var L=1,j=1;function re(x){var m=x.match(t);m&&(L+=m.length);var G=x.lastIndexOf(c);j=~G?x.length-G:j+x.length}function M(){var x={line:L,column:j};return function(m){return m.position=new H(x),rt(),m}}function H(x){this.start=x,this.end={line:L,column:j},this.source=p.source}H.prototype.content=g;function vt(x){var m=new Error(p.source+":"+L+":"+j+": "+x);if(m.reason=x,m.filename=p.source,m.line=L,m.column=j,m.source=g,!p.silent)throw m}function he(x){var m=x.exec(g);if(m){var G=m[0];return re(G),g=g.slice(G.length),m}}function rt(){he(n)}function Ge(x){var m;for(x=x||[];m=xe();)m!==!1&&x.push(m);return x}function xe(){var x=M();if(!(o!=g.charAt(0)||v!=g.charAt(1))){for(var m=2;h!=g.charAt(m)&&(v!=g.charAt(m)||o!=g.charAt(m+1));)++m;if(m+=2,h===g.charAt(m-1))return vt("End of comment missing");var G=g.slice(2,m-2);return j+=2,re(G),g=g.slice(m),j+=2,x({type:b,comment:G})}}function Ve(){var x=M(),m=he(r);if(m){if(xe(),!he(i))return vt("property missing ':'");var G=he(s),st=x({type:d,property:_(m[0].replace(e,h)),value:G?_(G[0].replace(e,h)):h});return he(a),st}}function it(){var x=[];Ge(x);for(var m;m=Ve();)m!==!1&&(x.push(m),Ge(x));return x}return rt(),it()};function _(g){return g?g.replace(l,h):h}return fn}var Ir;function Cs(){if(Ir)return nt;Ir=1;var e=nt&&nt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(nt,"__esModule",{value:!0}),nt.default=n;var t=e(As());function n(r,i){var s=null;if(!r||typeof r!="string")return s;var a=(0,t.default)(r),l=typeof i=="function";return a.forEach(function(c){if(c.type==="declaration"){var o=c.property,v=c.value;l?i(o,v,c):v&&(s=s||{},s[o]=v)}}),s}return nt}var Os=Cs();const Mr=Ss(Os);Mr.default;function Nt(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 Ns=qe('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-javzh2"/>'),Rs=qe("<hb-table></hb-table>",2),Is=qe("<hb-pad-joystick></hb-pad-joystick>",2),Ms=qe("<hb-pad-joystick></hb-pad-joystick>",2),Ds=(e,t)=>t("in"),Ls=(e,t)=>t("out"),Fs=(e,t)=>t(),qs=(e,t)=>t(),Gs=(e,t)=>t(),Vs=(e,t)=>t(),Ys=(e,t)=>f(t)?.requestFullscreen(),Hs=(e,t)=>t(),Bs=(e,t)=>{t()},Us=(e,t)=>{f(t)&&(f(t).muted=!f(t).muted)},Js=(e,t)=>t(),Ws=(e,t)=>t(),Xs=qe('<div id="controller" class="svelte-javzh2"><div id="panel" class="svelte-javzh2"><div id="joystick" class="area svelte-javzh2"><!></div> <div id="buttons" class="area svelte-javzh2"><div class="btn-group svelte-javzh2" style="margin-right:10px"><button class="btn btn-sm btn-light svelte-javzh2" aria-label="Zoom In"><i class="bi bi-zoom-in svelte-javzh2"></i></button> <button class="btn btn-sm btn-light svelte-javzh2" aria-label="Zoom Out"><i class="bi bi-zoom-out svelte-javzh2"></i></button></div> <button aria-label="Go to home"><i class="bi bi-house-door-fill svelte-javzh2"></i></button> <button aria-label="select zone"><i class="bi bi-square svelte-javzh2"></i></button></div> <div id="speed" class="area svelte-javzh2"><span class="slider_label svelte-javzh2">speed:</span> <input class="range svelte-javzh2" type="range"/></div> <div id="precision" class="area svelte-javzh2"><span class="slider_label svelte-javzh2">precision:</span> <input class="range svelte-javzh2" type="range"/></div> <div id="presets_view" class="area svelte-javzh2"><button aria-label="showGrid"><i class="bi bi-grid-3x3 svelte-javzh2"></i></button> <button aria-label="Toggle joystick mode"><i class="bi bi-joystick svelte-javzh2"></i></button> <button style="float:right;margin-right:5px;" class="btn btn-sm btn-light svelte-javzh2" aria-label="Enter fullscreen mode"><i class="bi bi-arrows-fullscreen svelte-javzh2"></i></button></div> <div id="presets_select" class="area svelte-javzh2"><button class="btn btn-sm btn-light svelte-javzh2" aria-label="Add Scene to Preset"><i class="bi bi-plus-circle-fill svelte-javzh2"></i></button> <button style="width:130px!important;display:inline-block!important" aria-label="Open Presets Modal"> <i style="float:right" class="bi bi-arrow-down-up svelte-javzh2"></i></button></div> <div id="presets_buttons" class="area svelte-javzh2"><button><i></i></button> <button><i></i></button> <button class="btn btn-sm btn-light svelte-javzh2" aria-label="Open settings"><i class="bi bi-sliders svelte-javzh2"></i> <span class="timecell svelte-javzh2"><span class="svelte-javzh2"> </span></span></button></div></div></div>'),Zs=(e,t,n,r)=>{t(!t()),n("panelMove",{id:r(),opened:t()})},Ks=qe('<!> <div id="opener" class="svelte-javzh2"><i></i></div>',1),Qs=qe('<hb-dialog><div slot="body-content" class="svelte-javzh2"><!></div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-javzh2">Are You sure to add this scene to the preset?</div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-javzh2">Are You sure to go To Home?</div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-javzh2"> </div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-javzh2"> </div></hb-dialog> <div id="container" class="svelte-javzh2"><hb-player-live></hb-player-live> <div id="area_selector" class="svelte-javzh2"></div> <div id="grid" class="svelte-javzh2"><table id="grid_table" class="svelte-javzh2"><tbody class="svelte-javzh2"><tr class="svelte-javzh2"><td class="svelte-javzh2"></td><td class="svelte-javzh2"></td><td class="svelte-javzh2"></td><td class="svelte-javzh2"></td></tr><tr class="svelte-javzh2"><td class="svelte-javzh2"></td><td class="svelte-javzh2"></td><td class="svelte-javzh2"></td><td class="svelte-javzh2"></td></tr><tr class="svelte-javzh2"><td class="svelte-javzh2"></td><td class="svelte-javzh2"></td><td class="svelte-javzh2"></td><td class="svelte-javzh2"></td></tr><tr class="svelte-javzh2"><td class="svelte-javzh2"></td><td class="svelte-javzh2"></td><td class="svelte-javzh2"></td><td class="svelte-javzh2"></td></tr></tbody></table></div> <!></div>',3);const ea={hash:"svelte-javzh2",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");
|
|
4
|
+
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;}#grid_table.svelte-javzh2 {width:100%;height:100%;}#area_selector.svelte-javzh2 {position:absolute;z-index:2;border:solid 2px red;}#grid.svelte-javzh2 {position:absolute;top:0px;z-index:2;width:100%;height:100%;}#grid.svelte-javzh2 td:where(.svelte-javzh2) {border:2px solid black;}.area.svelte-javzh2 {padding:5px;}#container.svelte-javzh2 {position:relative;width:100%;height:100%;display:block;min-height:160px;}hb-pad-joystick.svelte-javzh2 {--hb-pad-joystick-size: 100px;}#joystick.svelte-javzh2 {grid-area:pad;margin-top:7px;display:block;width:100%;text-align:center;}#buttons.svelte-javzh2 {grid-area:buttons;}#presets_buttons.svelte-javzh2 {grid-area:presets_buttons;}#speed.svelte-javzh2 {grid-area:speed;text-align:center;vertical-align:middle;line-height:28px;}#precision.svelte-javzh2 {grid-area:precision;text-align:center;vertical-align:middle;line-height:28px;}#presets_select.svelte-javzh2 {grid-area:presets_select;}#presets_view.svelte-javzh2 {grid-area:presets_view;}#controller.svelte-javzh2 {position:absolute;top:calc(100% - 160px);width:100%;z-index:3;}#opener.svelte-javzh2 {background-color:silver;line-height:126px;vertical-align:middle;position:absolute;position:absolute;top:calc(100% - 160px);z-index:4;cursor:pointer;}#panel.svelte-javzh2 {display:grid;width:500px;height:126px;background-color:rgba(127, 127, 127, 0.8);grid-template-areas:"pad buttons presets_view opener" "pad speed presets_select opener" "pad precision presets_buttons opener";grid-template-columns:120px 200px 180px;grid-template-rows:42px 42px 42px;}.slider_label.svelte-javzh2 {font-size:0.6em;width:50px;display:inline-block;font-weight:bold;}#player.svelte-javzh2 {z-index:1;}.timecell.svelte-javzh2 {font-size:0.8em;line-height:20px;width:56px;display:inline-block;vertical-align:middle;}.range.svelte-javzh2 {vertical-align:middle;line-height:28px;}
|
|
5
5
|
/*!
|
|
6
|
-
* Bootstrap v5.
|
|
6
|
+
* Bootstrap v5.3.8 (https://getbootstrap.com/)
|
|
7
7
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
8
8
|
* Copyright 2011-2021 Twitter, Inc.
|
|
9
9
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
10
|
-
*/.svelte-
|
|
11
|
-
.svelte-
|
|
12
|
-
.svelte-
|
|
13
|
-
@media (prefers-reduced-motion: no-preference) {:
|
|
10
|
+
*/.svelte-javzh2,
|
|
11
|
+
.svelte-javzh2::before,
|
|
12
|
+
.svelte-javzh2::after {box-sizing:border-box;}
|
|
13
|
+
@media (prefers-reduced-motion: no-preference) {:root {scroll-behavior:smooth;}
|
|
14
14
|
}
|
|
15
15
|
@media (min-width: 1200px) {
|
|
16
16
|
}
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
@media (min-width: 1200px) {
|
|
20
20
|
}
|
|
21
21
|
@media (min-width: 1200px) {
|
|
22
|
-
}table.svelte-
|
|
23
|
-
tbody.svelte-
|
|
24
|
-
tr.svelte-
|
|
25
|
-
td.svelte-
|
|
26
|
-
button.svelte-
|
|
22
|
+
}table.svelte-javzh2 {caption-side:bottom;border-collapse:collapse;}
|
|
23
|
+
tbody.svelte-javzh2,
|
|
24
|
+
tr.svelte-javzh2,
|
|
25
|
+
td.svelte-javzh2 {border-color:inherit;border-style:solid;border-width:0;}button.svelte-javzh2 {border-radius:0;}button.svelte-javzh2:focus:not(:focus-visible) {outline:0;}input.svelte-javzh2,
|
|
26
|
+
button.svelte-javzh2 {margin:0;font-family:inherit;font-size:inherit;line-height:inherit;}button.svelte-javzh2 {text-transform:none;}button.svelte-javzh2 {-webkit-appearance:button;}button.svelte-javzh2:not(:disabled) {cursor:pointer;}.svelte-javzh2::-moz-focus-inner {padding:0;border-style:none;}
|
|
27
27
|
@media (min-width: 1200px) {
|
|
28
|
-
}.svelte-
|
|
29
|
-
.svelte-
|
|
30
|
-
.svelte-
|
|
31
|
-
.svelte-
|
|
32
|
-
.svelte-
|
|
33
|
-
.svelte-
|
|
34
|
-
.svelte-
|
|
28
|
+
}.svelte-javzh2::-webkit-datetime-edit-fields-wrapper,
|
|
29
|
+
.svelte-javzh2::-webkit-datetime-edit-text,
|
|
30
|
+
.svelte-javzh2::-webkit-datetime-edit-minute,
|
|
31
|
+
.svelte-javzh2::-webkit-datetime-edit-hour-field,
|
|
32
|
+
.svelte-javzh2::-webkit-datetime-edit-day-field,
|
|
33
|
+
.svelte-javzh2::-webkit-datetime-edit-month-field,
|
|
34
|
+
.svelte-javzh2::-webkit-datetime-edit-year-field {padding:0;}.svelte-javzh2::-webkit-inner-spin-button {height:auto;}
|
|
35
35
|
/* rtl:raw:
|
|
36
36
|
[type="tel"],
|
|
37
37
|
[type="url"],
|
|
@@ -39,13 +39,15 @@ button.svelte-1pnb87x {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
39
39
|
[type="number"] {
|
|
40
40
|
direction: ltr;
|
|
41
41
|
}
|
|
42
|
-
*/.svelte-
|
|
43
|
-
@media (prefers-reduced-motion: reduce) {.btn.svelte-
|
|
44
|
-
}.btn.svelte-
|
|
45
|
-
.btn-group.svelte-
|
|
46
|
-
.btn-group.svelte-
|
|
47
|
-
.btn-group.svelte-
|
|
48
|
-
.btn-group.svelte-
|
|
42
|
+
*/.svelte-javzh2::-webkit-search-decoration {-webkit-appearance:none;}.svelte-javzh2::-webkit-color-swatch-wrapper {padding:0;}.svelte-javzh2::file-selector-button {font:inherit;-webkit-appearance:button;}.btn.svelte-javzh2 {--bs-btn-padding-x: 0.75rem;--bs-btn-padding-y: 0.375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.5;--bs-btn-color: var(--bs-body-color);--bs-btn-bg: transparent;--bs-btn-border-width: var(--bs-border-width);--bs-btn-border-color: transparent;--bs-btn-border-radius: var(--bs-border-radius);--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity: 0.65;--bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
|
|
43
|
+
@media (prefers-reduced-motion: reduce) {.btn.svelte-javzh2 {transition:none;}
|
|
44
|
+
}.btn.svelte-javzh2:hover {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);}.btn.svelte-javzh2:focus-visible {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow);} .svelte-javzh2:not(.btn-check) + .btn:where(.svelte-javzh2):active, .btn.svelte-javzh2:first-child:active {color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color);} .svelte-javzh2:not(.btn-check) + .btn:where(.svelte-javzh2):active:focus-visible, .btn.svelte-javzh2:first-child:active:focus-visible {box-shadow:var(--bs-btn-focus-box-shadow);}.btn.svelte-javzh2:disabled {color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity);}.btn-primary.svelte-javzh2 {--bs-btn-color: #fff;--bs-btn-bg: #0d6efd;--bs-btn-border-color: #0d6efd;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(11.05, 93.5, 215.05);--bs-btn-hover-border-color: rgb(10.4, 88, 202.4);--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(10.4, 88, 202.4);--bs-btn-active-border-color: rgb(9.75, 82.5, 189.75);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;}.btn-warning.svelte-javzh2 {--bs-btn-color: #000;--bs-btn-bg: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(255, 202.3, 44.2);--bs-btn-hover-border-color: rgb(255, 199.2, 31.8);--bs-btn-focus-shadow-rgb: 217, 164, 6;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(255, 205.4, 56.6);--bs-btn-active-border-color: rgb(255, 199.2, 31.8);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #ffc107;--bs-btn-disabled-border-color: #ffc107;}.btn-light.svelte-javzh2 {--bs-btn-color: #000;--bs-btn-bg: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(210.8, 211.65, 212.5);--bs-btn-hover-border-color: rgb(198.4, 199.2, 200);--bs-btn-focus-shadow-rgb: 211, 212, 213;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(198.4, 199.2, 200);--bs-btn-active-border-color: rgb(186, 186.75, 187.5);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #f8f9fa;--bs-btn-disabled-border-color: #f8f9fa;}.btn-sm.svelte-javzh2 {--bs-btn-padding-y: 0.25rem;--bs-btn-padding-x: 0.5rem;--bs-btn-font-size: 0.875rem;--bs-btn-border-radius: var(--bs-border-radius-sm);}.btn-group.svelte-javzh2 {position:relative;display:inline-flex;vertical-align:middle;}.btn-group.svelte-javzh2 > .btn:where(.svelte-javzh2) {position:relative;flex:1 1 auto;}
|
|
45
|
+
.btn-group.svelte-javzh2 > .btn:where(.svelte-javzh2):hover,
|
|
46
|
+
.btn-group.svelte-javzh2 > .btn:where(.svelte-javzh2):focus,
|
|
47
|
+
.btn-group.svelte-javzh2 > .btn:where(.svelte-javzh2):active {z-index:1;}.btn-group.svelte-javzh2 {border-radius:var(--bs-border-radius);}.btn-group.svelte-javzh2 > :where(.svelte-javzh2):not(.btn-check:first-child) + .btn:where(.svelte-javzh2) {margin-left:calc(-1 * var(--bs-border-width));}.btn-group.svelte-javzh2 > .btn:where(.svelte-javzh2):not(:last-child):not(.dropdown-toggle) {border-top-right-radius:0;border-bottom-right-radius:0;}.btn-group.svelte-javzh2 > .btn:where(.svelte-javzh2):nth-child(n+3),
|
|
48
|
+
.btn-group.svelte-javzh2 > :where(.svelte-javzh2):not(.btn-check) + .btn:where(.svelte-javzh2) {border-top-left-radius:0;border-bottom-left-radius:0;}
|
|
49
|
+
@media (prefers-reduced-motion: reduce) {
|
|
50
|
+
}
|
|
49
51
|
@media (min-width: 576px) {
|
|
50
52
|
}
|
|
51
53
|
@media (min-width: 768px) {
|
|
@@ -71,5 +73,5 @@ button.svelte-1pnb87x {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
71
73
|
@media (min-width: 1200px) {
|
|
72
74
|
}
|
|
73
75
|
@media print {
|
|
74
|
-
}`};function Lr(e,t){qn(t,!0),ms(e,eo);function n(u,x){t.$$host.dispatchEvent(new CustomEvent(u,{detail:x}))}const r={joystick:!0,presets:!0,deletePreset:!0,addPreset:!0,switchPreset:!0,home:!0,zoom:{in:!0,out:!0},pan:!0,tilt:!0,clickToCenter:!0,settings:!0};let i=ve(t,"id",7,""),s=ve(t,"live_uri",7,""),o=ve(t,"media_type",7,"auto"),a=ve(t,"presets",23,()=>[]),c=ve(t,"position",7,"right-bottom"),l=ve(t,"configuration",7,r),v=ve(t,"current_preset",7,""),h=ve(t,"is_home",7,void 0),p=ve(t,"is_ptz_connected",7,void 0),d=ve(t,"is_ptz_panel_opened",7,void 0);const b=[{label:"Name",key:"name",copyTxt:!0},{label:"Token",key:"token",copyTxt:!0}],g=[{name:"goto",type:"icon",iconOrText:"arrow-right-circle"},{name:"delete",type:"icon",iconOrText:"x-circle-fill",btnClass:"danger"}];let _=A(void 0);be({});let z=A(""),w=A(""),re=A(""),D=A("");const H={precision:50,speed:50};let vt=A(be(new Date().toLocaleTimeString())),he=Li(()=>a()?.map(u=>({_id:u.token+"_"+u.name,name:u.name,token:u.token}))),rt=A(!0),Ge=A(!1),Pe=A(!1),Ve=A(!1),it=A(!1),P=A(!1),m=A(!1),G=A(!1),st=A(!1),Se=A("dpad"),ge=A(!1),Ae=A(be({top:0,left:0,width:0,height:0})),$={};Zi(()=>{if(p()===""&&p(!0),p()||p(!1),typeof p()=="string"&&p(p()==="true"||p()==="yes"),d()===""&&d(!0),d()||d(!1),typeof d()=="string"&&d(d()==="true"||d()==="yes"),h()===""&&h(!0),h()||h(!1),typeof h()=="string"&&h(h()==="true"||h()==="yes"),typeof l()=="string")try{l(JSON.parse(l()))}catch{}if(typeof a()=="string")try{a(JSON.parse(a()))}catch{}}),setInterval(()=>{y(vt,new Date().toLocaleTimeString(),!0)},1e3);function zr(u){if(!l()?.zoom)return console.error("Zoom is not enabled in the configuration");if(!l().zoom[u])return console.error(`Zoom ${u} is not enabled in the configuration`);const x={time:new Date,id:i(),movementSettings:H,direction:u};n("zoomAction",x)}function to(){if(!l()?.home)return console.error("Go to home is not enabled in the configuration");i(),n("goToHome",{id:i(),movementSettings:H})}function no(){if(!l()?.addPreset)return console.error("Add scene to preset is not enabled in the configuration");const u={time:new Date,id:i()};n("setPreset",u)}function ro(){if(!l()?.clickToCenter)return console.error("Click to center is not enabled in the configuration");const u=f(_)?.getBoundingClientRect(),x=Object.assign({time:new Date,id:i(),movementSettings:H,htmlVideoElementWidth:u?.width,htmlVideoElementHeight:u?.height},f(Ae));n("goToSelectedArea",x),y(ge,!1),y(Ae,{top:0,left:0,width:0,height:0},!0),$={}}function io(){if(!l()?.presets)return console.error("Presets is not enabled in the configuration");y(Ve,!f(Ve))}function so(){if(!l()?.addPreset)return console.error("Add scene to preset is not enabled in the configuration");y(it,!f(it))}function oo(){if(!l()?.home)return console.error("Go to home is not enabled in the configuration");y(G,!f(G))}function lo(u){if(!l()?.switchPreset)return console.error("Switch preset is not enabled in the configuration");const x=a()?.find?.(j=>j.token===u);if(x){const j=Object.assign({time:new Date,playerId:i(),movementSettings:H},x);n("goToPreset",j)}else console.error("Preset not found")}function ao(){const u={time:new Date,id:i(),htmlVideoElement:f(_)};n("initVideo",u),f(_)&&(f(_).onloadedmetadata=()=>{y(Pe,!0)},f(_).onpause=()=>{y(rt,!0),y(Ge,!1)},f(_).onplay=()=>{y(rt,!1),y(Ge,!0)},f(_).onclick=x=>{if(f(ge)){const j=f(_)?.getBoundingClientRect(),Mt={x:x.clientX-j?.left,y:x.clientY-j?.top,width:0,height:0};$.start?($={start:$.start,end:Mt},ro()):$={start:Mt}}},f(_).onmousemove=x=>{if(f(ge)){const j={x:x.clientX,y:x.clientY};$.start&&($={start:$.start,end:j},y(Ae,{top:$.start.y>$.end.y?$.end.y:$.start.y,left:$.start.x>$.end.x?$.end.x:$.start.x,width:Math.abs(($?.start?.x||0)-($?.end?.x||0)),height:Math.abs(($?.start?.y||0)-($?.end?.y||0))},!0))}})}function uo(u){if(!l()?.deletePreset)return console.error("Delete preset is not enabled in the configuration");const x=a()?.find(j=>j.token===u);if(x){const j=Object.assign({time:new Date,playerId:i()},x);n("deletePreset",j)}else console.error("Preset not found")}function co(u){if(!l()?.joystick||l()?.pan||l()?.tilt)return console.error("Pan and Tilt on joystick are not enabled in the configuration");n("sendJoystickPosition",{id:i(),x:u.x,y:u.y,cardinalDirection:u.cardinalDirection,joyId:u.id,movementSettings:H})}function fo(u){l()?.pan&&l()?.tilt?n("sendDirection",{id:i(),movementSettings:H,direction:u.direction,joyId:u.id}):console.error("Pan and Tilt are not enabled in the configuration")}function vo(){y(st,!f(st))}function ho(){if(!l()?.clickToCenter)return console.error("Click to center is not enabled in the configuration");y(ge,!f(ge))}function po(){if(f(Se)==="dpad"){if(!l()?.joystick)return console.error("Joystick is not enabled in the configuration");y(Se,"joystick")}else y(Se,"dpad")}function bo(){}function _o(u){console.log(u,"presetclick"),y(Ve,!1);const x=a()?.find(j=>u.itemId.includes(j.token+"_"))?.token;switch(x&&y(D,x,!0),u.action){case"goto":y(m,!0);break;case"delete":y(P,!0);break;default:return console.error("Action not found")}}function go(){if(!f(_))return console.error("Video element not found");f(_).paused?f(_).play():f(_).pause()}It({repoName:"@htmlbricks/hb-player-live",version:Rt.version}),It({repoName:"@htmlbricks/hb-pad-joystick",version:Rt.version}),It({repoName:"@htmlbricks/hb-table",version:Rt.version}),It({repoName:"@htmlbricks/hb-dialog",version:Rt.version});var mo={get id(){return i()},set id(u=""){i(u),Q()},get live_uri(){return s()},set live_uri(u=""){s(u),Q()},get media_type(){return o()},set media_type(u="auto"){o(u),Q()},get presets(){return a()},set presets(u=[]){a(u),Q()},get position(){return c()},set position(u="right-bottom"){c(u),Q()},get configuration(){return l()},set configuration(u=r){l(u),Q()},get current_preset(){return v()},set current_preset(u=""){v(u),Q()},get is_home(){return h()},set is_home(u=void 0){h(u),Q()},get is_ptz_connected(){return p()},set is_ptz_connected(u=void 0){p(u),Q()},get is_ptz_panel_opened(){return d()},set is_ptz_panel_opened(u=void 0){d(u),Q()}},Fr=Qs();vs(u=>{var x=Is();Ee(u,x)});var Ce=sr(Fr);T(Ce,"title","Presets"),M(()=>T(Ce,"show",f(Ve)?"yes":"no")),T(Ce,"hide_confirm","yes"),L(Ce,1,"svelte-1pnb87x");var qr=N(Ce),xo=N(qr);{var yo=u=>{var x=js();Te(x,f(re)),M(()=>T(x,"rows",JSON.stringify(f(he)))),M(()=>T(x,"headers",JSON.stringify(b))),M(()=>T(x,"actions",JSON.stringify(g))),T(x,"size","12"),M(()=>T(x,"disablepagination",f(he)&&f(he).length<12?"yes":"no")),L(x,1,"svelte-1pnb87x"),X("tableaction",x,j=>{_o(j.detail)}),Ee(u,x)};Ct(xo,u=>{f(he)?.length&&u(yo)})}O(qr),O(Ce);var ot=C(Ce,2);T(ot,"title","Add Scene to Preset"),M(()=>T(ot,"show",f(it)?"yes":"no")),L(ot,1,"svelte-1pnb87x");var Ye=C(ot,2);T(Ye,"title","Go to Home"),M(()=>T(Ye,"show",f(G)?"yes":"no")),T(Ye,"confirmlabel","GO"),L(Ye,1,"svelte-1pnb87x");var se=C(Ye,2);M(()=>T(se,"id","del_"+f(D))),M(()=>T(se,"title",`Go to Preset ${(f(D)?a()?.find(u=>u.token===f(D))?.token:"")??""}`)),M(()=>T(se,"show",f(P)?"yes":"no")),T(se,"confirmlabel","delete"),T(se,"confirm_btn_class","danger"),L(se,1,"svelte-1pnb87x");var Gr=N(se),wo=N(Gr);O(Gr),O(se);var oe=C(se,2);M(()=>T(oe,"id","goto_"+f(D))),M(()=>T(oe,"title",`Go to Preset ${(f(D)?a()?.find(u=>u.token===f(D))?.token:"")??""}`)),M(()=>T(oe,"show",f(m)?"yes":"no")),T(oe,"confirmlabel","go"),T(oe,"confirm_btn_class","light"),L(oe,1,"svelte-1pnb87x");var Vr=N(oe),ko=N(Vr);O(Vr),O(oe);var jt=C(oe,2);jt.__mousemove=u=>{if(f(ge)){const x=f(_)?.getBoundingClientRect(),j={x:u.clientX-x?.left,y:u.clientY-x?.top};$.start&&($={start:$.start,end:j},y(Ae,{top:$.start.y>$.end.y?$.end.y:$.start.y,left:$.start.x>$.end.x?$.end.x:$.start.x,width:Math.abs(($?.start?.x||0)-($?.end?.x||0)),height:Math.abs(($?.start?.y||0)-($?.end?.y||0))},!0))}};var Oe=N(jt);T(Oe,"no_controls","yes"),T(Oe,"id","player"),M(()=>T(Oe,"mediauri",s())),M(()=>T(Oe,"media_type",o())),Te(Oe,f(z)),L(Oe,1,"svelte-1pnb87x");var Yr=C(Oe,2),Hr=C(Yr,2),$o=C(Hr,2);{var Eo=u=>{var x=Ks(),j=sr(x);{var Mt=dn=>{var vn=Xs(),Br=N(vn),hn=N(Br),Po=N(hn);{var So=V=>{var B=Ms();M(()=>T(B,"id","pad_"+f(Se))),T(B,"pad_or_joystick","dpad"),T(B,"size","60px"),Te(B,f(w)),L(B,1,"svelte-1pnb87x"),X("sendDirection",B,En=>{fo(En.detail)}),Ee(V,B)},Ao=V=>{var B=Ds();M(()=>T(B,"id","pad_"+f(Se))),T(B,"pad_or_joystick","joystick"),T(B,"size","60px"),Te(B,f(w)),L(B,1,"svelte-1pnb87x"),X("sendJoystickPosition",B,En=>{co(En.detail)}),Ee(V,B)};Ct(Po,V=>{f(Se)==="dpad"?V(So):V(Ao,!1)})}O(hn);var pn=C(hn,2),bn=N(pn),_n=N(bn);_n.__click=[Ls,zr];var Ur=C(_n,2);Ur.__click=[zs,zr],O(bn);var Lt=C(bn,2);Lt.__click=[Fs,oo];var gn=C(Lt,2);gn.__click=[qs,ho],O(pn);var mn=C(pn,2),Jr=C(N(mn),2);Or(Jr),O(mn);var xn=C(mn,2),Wr=C(N(xn),2);Or(Wr),O(xn);var yn=C(xn,2),wn=N(yn);wn.__click=[Gs,vo];var zt=C(wn,2);zt.__click=[Vs,po];var Co=C(zt,2);Co.__click=[Ys,_],O(yn);var kn=C(yn,2),$n=N(kn);$n.__click=[Hs,so];var ht=C($n,2);ht.__click=[Bs,io];var Oo=N(ht);Ei(),O(ht),O(kn);var Xr=C(kn,2),He=N(Xr);He.__click=[Us,_];var No=N(He);O(He);var Be=C(He,2);Be.__click=[Js,go];var Ro=N(Be);O(Be);var Ft=C(Be,2);Ft.__click=[Ws,bo];var Zr=C(N(Ft),2),Kr=N(Zr),Io=N(Kr,!0);O(Kr),O(Zr),O(Ft),O(Xr),O(Br),O(vn),M(V=>{_n.disabled=!l()?.zoom?.in,Ur.disabled=!l()?.zoom?.out,Lt.disabled=!l()?.home,L(Lt,1,`btn btn-sm btn-${h()?"primary":"light"}`,"svelte-1pnb87x"),gn.disabled=!l()?.clickToCenter,L(gn,1,`btn btn-sm btn-${f(ge)?"primary":"light"}`,"svelte-1pnb87x"),L(wn,1,`btn btn-sm btn-${f(st)?"primary":"light"}`,"svelte-1pnb87x"),zt.disabled=!l()?.joystick,L(zt,1,`btn btn-sm btn-${f(Se)&&f(Se)==="dpad"?"light":"primary"}`,"svelte-1pnb87x"),$n.disabled=!l()?.addPreset,ht.disabled=!l()?.presets,L(ht,1,`btn btn-sm btn-${v()?"primary":"light"}`,"svelte-1pnb87x"),At(Oo,`${V??""} `),He.disabled=!f(Pe),L(He,1,`btn btn-sm btn-${f(Pe)?f(_)?.muted?"warning":"primary":"light"}`,"svelte-1pnb87x"),dt(He,"aria-label",f(_)?.muted?"Unmute video":"Mute video"),L(No,1,`bi bi-${f(_)?.muted||!f(_)?"volume-mute-fill":"volume-up-fill"}`,"svelte-1pnb87x"),Be.disabled=!f(Pe),L(Be,1,`btn btn-sm btn-${f(Pe)?f(Ge)?"primary":"warning":"light"}`,"svelte-1pnb87x"),dt(Be,"aria-label",f(Ge)?"Pause video":"Play video"),L(Ro,1,`bi bi-${f(rt)||!f(_)?"pause-fill":"play"}`,"svelte-1pnb87x"),Ft.disabled=!l()?.settings,At(Io,f(vt))},[()=>v()&&a()?.find(V=>V.token===v())?a()?.find(V=>V.token===v())?.name:""]),Rr(Jr,()=>H.speed,V=>H.speed=V),Rr(Wr,()=>H.precision,V=>H.precision=V),Ee(dn,vn)};Ct(j,dn=>{d()&&dn(Mt)})}var Dt=C(j,2);Dt.__click=[Zs,d,n,i];var To=N(Dt);O(Dt),M(()=>{Te(Dt,`left:${d()?"500":"0"}px;`),L(To,1,`bi-${d()?"caret-left-fill":"caret-right-fill"}`,"svelte-1pnb87x")}),Ee(u,x)};Ct($o,u=>{p()&&u(Eo)})}return O(jt),M((u,x)=>{At(wo,`Are You sure to DELETE preset ${u??""}?`),At(ko,`Are You sure to GO to preset "${x??""}"?`),Te(jt,`cursor: ${f(ge)?"crosshair":""};`),Te(Yr,`display:${f(ge)?"inherit":"none"}; width:${f(Ae).width??""}px; height:${f(Ae).height??""}px;top:${f(Ae).top??""}px;left:${f(Ae).left??""}px;`),Te(Hr,`display:${f(st)?"inherit":"none"}`)},[()=>f(D)?a()?.find(u=>u.token===f(D))?.token:"",()=>f(D)?a()?.find(u=>u.token===f(D))?.token:""]),X("modalShow",Ce,u=>{y(Ve,u.detail.show,!0)}),X("modalShow",ot,u=>{y(it,u.detail.show,!0)}),X("modalConfirm",ot,u=>{u?.detail?.confirm&&no()}),X("modalShow",Ye,u=>{y(G,u.detail.show,!0)}),X("modalConfirm",Ye,u=>{u?.detail?.confirm&&to()}),X("modalShow",se,u=>{y(P,u.detail.show,!0)}),X("modalConfirm",se,u=>{console.log(u.detail,"detail"),u?.detail?.confirm&&uo(u.detail.id.split("del_")[1])}),X("modalShow",oe,u=>{y(m,u.detail.show,!0)}),X("modalConfirm",oe,u=>{console.log(u.detail.id.split("goto")[1],"detail"),u?.detail?.confirm&&lo(u.detail.id.split("goto_")[1])}),X("htmlVideoInit",Oe,u=>{console.log(u.detail,"detailvid"),y(_,u.detail.video,!0),ao()}),Ee(e,Fr),Gn(mo)}fs(["mousemove","click"]),customElements.define("hb-player-live-camera-ptz",As(Lr,{id:{},live_uri:{},media_type:{},presets:{},position:{},configuration:{},current_preset:{},is_home:{},is_ptz_connected:{},is_ptz_panel_opened:{}},[],[],!0)),Tn.Component=Lr,Object.defineProperty(Tn,Symbol.toStringTag,{value:"Module"})})(this["player-live-camera-ptz"]=this["player-live-camera-ptz"]||{});
|
|
76
|
+
}`};function Dr(e,t){qn(t,!0),ms(e,ea);function n(u,y){t.$$host.dispatchEvent(new CustomEvent(u,{detail:y}))}const r={joystick:!0,presets:!0,deletePreset:!0,addPreset:!0,switchPreset:!0,home:!0,zoom:{in:!0,out:!0},pan:!0,tilt:!0,clickToCenter:!0,settings:!0};let i=ve(t,"id",7,""),s=ve(t,"live_uri",7,""),a=ve(t,"media_type",7,"auto"),l=ve(t,"presets",23,()=>[]),c=ve(t,"position",7,"right-bottom"),o=ve(t,"configuration",7,r),v=ve(t,"current_preset",7,""),h=ve(t,"is_home",7,void 0),b=ve(t,"is_ptz_connected",7,void 0),d=ve(t,"is_ptz_panel_opened",7,void 0);const _=[{label:"Name",key:"name",copyTxt:!0},{label:"Token",key:"token",copyTxt:!0}],g=[{name:"goto",type:"icon",iconOrText:"arrow-right-circle"},{name:"delete",type:"icon",iconOrText:"x-circle-fill",btnClass:"danger"}];let p=P(void 0);_e({});let L=P(""),j=P(""),re=P(""),M=P("");const H={precision:50,speed:50};let vt=P(_e(new Date().toLocaleTimeString())),he=Di(()=>l()?.map(u=>({_id:u.token+"_"+u.name,name:u.name,token:u.token}))),rt=P(!0),Ge=P(!1),xe=P(!1),Ve=P(!1),it=P(!1),x=P(!1),m=P(!1),G=P(!1),st=P(!1),Te=P("dpad"),ge=P(!1),Pe=P(_e({top:0,left:0,width:0,height:0})),$={};Zi(()=>{if(b()===""&&b(!0),b()||b(!1),typeof b()=="string"&&b(b()==="true"||b()==="yes"),d()===""&&d(!0),d()||d(!1),typeof d()=="string"&&d(d()==="true"||d()==="yes"),h()===""&&h(!0),h()||h(!1),typeof h()=="string"&&h(h()==="true"||h()==="yes"),typeof o()=="string")try{o(JSON.parse(o()))}catch{}if(typeof l()=="string")try{l(JSON.parse(l()))}catch{}}),setInterval(()=>{w(vt,new Date().toLocaleTimeString(),!0)},1e3);function Lr(u){if(!o()?.zoom)return console.error("Zoom is not enabled in the configuration");if(!o().zoom[u])return console.error(`Zoom ${u} is not enabled in the configuration`);const y={time:new Date,id:i(),movementSettings:H,direction:u};n("zoomAction",y)}function ta(){if(!o()?.home)return console.error("Go to home is not enabled in the configuration");i(),n("goToHome",{id:i(),movementSettings:H})}function na(){if(!o()?.addPreset)return console.error("Add scene to preset is not enabled in the configuration");const u={time:new Date,id:i()};n("setPreset",u)}function ra(){if(!o()?.clickToCenter)return console.error("Click to center is not enabled in the configuration");const u=f(p)?.getBoundingClientRect(),y=Object.assign({time:new Date,id:i(),movementSettings:H,htmlVideoElementWidth:u?.width,htmlVideoElementHeight:u?.height},f(Pe));n("goToSelectedArea",y),w(ge,!1),w(Pe,{top:0,left:0,width:0,height:0},!0),$={}}function ia(){if(!o()?.presets)return console.error("Presets is not enabled in the configuration");w(Ve,!f(Ve))}function sa(){if(!o()?.addPreset)return console.error("Add scene to preset is not enabled in the configuration");w(it,!f(it))}function aa(){if(!o()?.home)return console.error("Go to home is not enabled in the configuration");w(G,!f(G))}function oa(u){if(!o()?.switchPreset)return console.error("Switch preset is not enabled in the configuration");const y=l()?.find?.(R=>R.token===u);if(y){const R=Object.assign({time:new Date,playerId:i(),movementSettings:H},y);n("goToPreset",R)}else console.error("Preset not found")}function la(){const u={time:new Date,id:i(),htmlVideoElement:f(p)};n("initVideo",u),f(p)&&(f(p).onloadedmetadata=()=>{w(xe,!0)},f(p).onpause=()=>{w(rt,!0),w(Ge,!1)},f(p).onplay=()=>{w(rt,!1),w(Ge,!0)},f(p).onclick=y=>{if(f(ge)){const R=f(p)?.getBoundingClientRect(),It={x:y.clientX-R?.left,y:y.clientY-R?.top,width:0,height:0};$.start?($={start:$.start,end:It},ra()):$={start:It}}},f(p).onmousemove=y=>{if(f(ge)){const R={x:y.clientX,y:y.clientY};$.start&&($={start:$.start,end:R},w(Pe,{top:$.start.y>$.end.y?$.end.y:$.start.y,left:$.start.x>$.end.x?$.end.x:$.start.x,width:Math.abs(($?.start?.x||0)-($?.end?.x||0)),height:Math.abs(($?.start?.y||0)-($?.end?.y||0))},!0))}})}function ua(u){if(!o()?.deletePreset)return console.error("Delete preset is not enabled in the configuration");const y=l()?.find(R=>R.token===u);if(y){const R=Object.assign({time:new Date,playerId:i()},y);n("deletePreset",R)}else console.error("Preset not found")}function ca(u){if(!o()?.joystick||o()?.pan||o()?.tilt)return console.error("Pan and Tilt on joystick are not enabled in the configuration");n("sendJoystickPosition",{id:i(),x:u.x,y:u.y,cardinalDirection:u.cardinalDirection,joyId:u.id,movementSettings:H})}function fa(u){o()?.pan&&o()?.tilt?n("sendDirection",{id:i(),movementSettings:H,direction:u.direction,joyId:u.id}):console.error("Pan and Tilt are not enabled in the configuration")}function da(){w(st,!f(st))}function va(){if(!o()?.clickToCenter)return console.error("Click to center is not enabled in the configuration");w(ge,!f(ge))}function ha(){if(f(Te)==="dpad"){if(!o()?.joystick)return console.error("Joystick is not enabled in the configuration");w(Te,"joystick")}else w(Te,"dpad")}function ba(){}function _a(u){console.log(u,"presetclick"),w(Ve,!1);const y=l()?.find(R=>u.itemId.includes(R.token+"_"))?.token;switch(y&&w(M,y,!0),u.action){case"goto":w(m,!0);break;case"delete":w(x,!0);break;default:return console.error("Action not found")}}function pa(){if(!f(p))return console.error("Video element not found");f(p).paused?f(p).play():f(p).pause()}Nt({repoName:"@htmlbricks/hb-player-live",version:Ot.version}),Nt({repoName:"@htmlbricks/hb-pad-joystick",version:Ot.version}),Nt({repoName:"@htmlbricks/hb-table",version:Ot.version}),Nt({repoName:"@htmlbricks/hb-dialog",version:Ot.version});var ga={get id(){return i()},set id(u=""){i(u),Q()},get live_uri(){return s()},set live_uri(u=""){s(u),Q()},get media_type(){return a()},set media_type(u="auto"){a(u),Q()},get presets(){return l()},set presets(u=[]){l(u),Q()},get position(){return c()},set position(u="right-bottom"){c(u),Q()},get configuration(){return o()},set configuration(u=r){o(u),Q()},get current_preset(){return v()},set current_preset(u=""){v(u),Q()},get is_home(){return h()},set is_home(u=void 0){h(u),Q()},get is_ptz_connected(){return b()},set is_ptz_connected(u=void 0){b(u),Q()},get is_ptz_panel_opened(){return d()},set is_ptz_panel_opened(u=void 0){d(u),Q()}},Fr=Qs();vs(u=>{var y=Ns();ke(u,y)});var Se=sr(Fr);E(Se,"title","Presets"),I(()=>E(Se,"show",f(Ve)?"yes":"no")),E(Se,"hide_confirm","yes"),D(Se,1,"svelte-javzh2");var qr=C(Se),ma=C(qr);{var ya=u=>{var y=Rs();Ee(y,f(re)),I(()=>E(y,"rows",JSON.stringify(f(he)))),I(()=>E(y,"headers",JSON.stringify(_))),I(()=>E(y,"actions",JSON.stringify(g))),E(y,"size","12"),I(()=>E(y,"disablepagination",f(he)&&f(he).length<12?"yes":"no")),D(y,1,"svelte-javzh2"),X("tableaction",y,R=>{_a(R.detail)}),ke(u,y)};St(ma,u=>{f(he)?.length&&u(ya)})}A(qr),A(Se);var at=S(Se,2);E(at,"title","Add Scene to Preset"),I(()=>E(at,"show",f(it)?"yes":"no")),D(at,1,"svelte-javzh2");var Ye=S(at,2);E(Ye,"title","Go to Home"),I(()=>E(Ye,"show",f(G)?"yes":"no")),E(Ye,"confirmlabel","GO"),D(Ye,1,"svelte-javzh2");var se=S(Ye,2);I(()=>E(se,"id","del_"+f(M))),I(()=>E(se,"title",`Go to Preset ${(f(M)?l()?.find(u=>u.token===f(M))?.token:"")??""}`)),I(()=>E(se,"show",f(x)?"yes":"no")),E(se,"confirmlabel","delete"),E(se,"confirm_btn_class","danger"),D(se,1,"svelte-javzh2");var Gr=C(se),wa=C(Gr);A(Gr),A(se);var ae=S(se,2);I(()=>E(ae,"id","goto_"+f(M))),I(()=>E(ae,"title",`Go to Preset ${(f(M)?l()?.find(u=>u.token===f(M))?.token:"")??""}`)),I(()=>E(ae,"show",f(m)?"yes":"no")),E(ae,"confirmlabel","go"),E(ae,"confirm_btn_class","light"),D(ae,1,"svelte-javzh2");var Vr=C(ae),ja=C(Vr);A(Vr),A(ae);var Rt=S(ae,2);Rt.__mousemove=u=>{if(f(ge)){const y=f(p)?.getBoundingClientRect(),R={x:u.clientX-y?.left,y:u.clientY-y?.top};$.start&&($={start:$.start,end:R},w(Pe,{top:$.start.y>$.end.y?$.end.y:$.start.y,left:$.start.x>$.end.x?$.end.x:$.start.x,width:Math.abs(($?.start?.x||0)-($?.end?.x||0)),height:Math.abs(($?.start?.y||0)-($?.end?.y||0))},!0))}};var Ae=C(Rt);E(Ae,"no_controls","yes"),E(Ae,"id","player"),I(()=>E(Ae,"mediauri",s())),I(()=>E(Ae,"media_type",a())),Ee(Ae,f(L)),D(Ae,1,"svelte-javzh2");var Yr=S(Ae,2),Hr=S(Yr,2),za=S(Hr,2);{var $a=u=>{var y=Ks(),R=sr(y);{var It=dn=>{var vn=Xs(),Br=C(vn),hn=C(Br),Ea=C(hn);{var xa=V=>{var B=Is();I(()=>E(B,"id","pad_"+f(Te))),E(B,"pad_or_joystick","dpad"),E(B,"size","60px"),Ee(B,f(j)),D(B,1,"svelte-javzh2"),X("sendDirection",B,kn=>{fa(kn.detail)}),ke(V,B)},Ta=V=>{var B=Ms();I(()=>E(B,"id","pad_"+f(Te))),E(B,"pad_or_joystick","joystick"),E(B,"size","60px"),Ee(B,f(j)),D(B,1,"svelte-javzh2"),X("sendJoystickPosition",B,kn=>{ca(kn.detail)}),ke(V,B)};St(Ea,V=>{f(Te)==="dpad"?V(xa):V(Ta,!1)})}A(hn);var bn=S(hn,2),_n=C(bn),pn=C(_n);pn.__click=[Ds,Lr];var Ur=S(pn,2);Ur.__click=[Ls,Lr],A(_n);var Dt=S(_n,2);Dt.__click=[Fs,aa];var gn=S(Dt,2);gn.__click=[qs,va],A(bn);var mn=S(bn,2),Jr=S(C(mn),2);Ar(Jr),A(mn);var yn=S(mn,2),Wr=S(C(yn),2);Ar(Wr),A(yn);var wn=S(yn,2),jn=C(wn);jn.__click=[Gs,da];var Lt=S(jn,2);Lt.__click=[Vs,ha];var Pa=S(Lt,2);Pa.__click=[Ys,p],A(wn);var zn=S(wn,2),$n=C(zn);$n.__click=[Hs,sa];var ht=S($n,2);ht.__click=[Bs,ia];var Sa=C(ht);ki(),A(ht),A(zn);var Xr=S(zn,2),He=C(Xr);He.__click=[Us,p];var Aa=C(He);A(He);var Be=S(He,2);Be.__click=[Js,pa];var Ca=C(Be);A(Be);var Ft=S(Be,2);Ft.__click=[Ws,ba];var Zr=S(C(Ft),2),Kr=C(Zr),Oa=C(Kr,!0);A(Kr),A(Zr),A(Ft),A(Xr),A(Br),A(vn),I(V=>{pn.disabled=!o()?.zoom?.in,Ur.disabled=!o()?.zoom?.out,Dt.disabled=!o()?.home,D(Dt,1,`btn btn-sm btn-${h()?"primary":"light"}`,"svelte-javzh2"),gn.disabled=!o()?.clickToCenter,D(gn,1,`btn btn-sm btn-${f(ge)?"primary":"light"}`,"svelte-javzh2"),D(jn,1,`btn btn-sm btn-${f(st)?"primary":"light"}`,"svelte-javzh2"),Lt.disabled=!o()?.joystick,D(Lt,1,`btn btn-sm btn-${f(Te)&&f(Te)==="dpad"?"light":"primary"}`,"svelte-javzh2"),$n.disabled=!o()?.addPreset,ht.disabled=!o()?.presets,D(ht,1,`btn btn-sm btn-${v()?"primary":"light"}`,"svelte-javzh2"),Pt(Sa,`${V??""} `),He.disabled=!f(xe),D(He,1,`btn btn-sm btn-${f(xe)?f(p)?.muted?"warning":"primary":"light"}`,"svelte-javzh2"),dt(He,"aria-label",f(p)?.muted?"Unmute video":"Mute video"),D(Aa,1,`bi bi-${f(p)?.muted||!f(p)?"volume-mute-fill":"volume-up-fill"}`,"svelte-javzh2"),Be.disabled=!f(xe),D(Be,1,`btn btn-sm btn-${f(xe)?f(Ge)?"primary":"warning":"light"}`,"svelte-javzh2"),dt(Be,"aria-label",f(Ge)?"Pause video":"Play video"),D(Ca,1,`bi bi-${f(rt)||!f(p)?"pause-fill":"play"}`,"svelte-javzh2"),Ft.disabled=!o()?.settings,Pt(Oa,f(vt))},[()=>v()&&l()?.find(V=>V.token===v())?l()?.find(V=>V.token===v())?.name:""]),Or(Jr,()=>H.speed,V=>H.speed=V),Or(Wr,()=>H.precision,V=>H.precision=V),ke(dn,vn)};St(R,dn=>{d()&&dn(It)})}var Mt=S(R,2);Mt.__click=[Zs,d,n,i];var ka=C(Mt);A(Mt),I(()=>{Ee(Mt,`left:${d()?"500":"0"}px;`),D(ka,1,`bi-${d()?"caret-left-fill":"caret-right-fill"}`,"svelte-javzh2")}),ke(u,y)};St(za,u=>{b()&&u($a)})}return A(Rt),I((u,y)=>{Pt(wa,`Are You sure to DELETE preset ${u??""}?`),Pt(ja,`Are You sure to GO to preset "${y??""}"?`),Ee(Rt,`cursor: ${f(ge)?"crosshair":""};`),Ee(Yr,`display:${f(ge)?"inherit":"none"}; width:${f(Pe).width??""}px; height:${f(Pe).height??""}px;top:${f(Pe).top??""}px;left:${f(Pe).left??""}px;`),Ee(Hr,`display:${f(st)?"inherit":"none"}`)},[()=>f(M)?l()?.find(u=>u.token===f(M))?.token:"",()=>f(M)?l()?.find(u=>u.token===f(M))?.token:""]),X("modalShow",Se,u=>{w(Ve,u.detail.show,!0)}),X("modalShow",at,u=>{w(it,u.detail.show,!0)}),X("modalConfirm",at,u=>{u?.detail?.confirm&&na()}),X("modalShow",Ye,u=>{w(G,u.detail.show,!0)}),X("modalConfirm",Ye,u=>{u?.detail?.confirm&&ta()}),X("modalShow",se,u=>{w(x,u.detail.show,!0)}),X("modalConfirm",se,u=>{console.log(u.detail,"detail"),u?.detail?.confirm&&ua(u.detail.id.split("del_")[1])}),X("modalShow",ae,u=>{w(m,u.detail.show,!0)}),X("modalConfirm",ae,u=>{console.log(u.detail.id.split("goto")[1],"detail"),u?.detail?.confirm&&oa(u.detail.id.split("goto_")[1])}),X("htmlVideoInit",Ae,u=>{console.log(u.detail,"detailvid"),w(p,u.detail.video,!0),la()}),ke(e,Fr),Gn(ga)}fs(["mousemove","click"]),customElements.define("hb-player-live-camera-ptz",Ps(Dr,{id:{},live_uri:{},media_type:{},presets:{},position:{},configuration:{},current_preset:{},is_home:{},is_ptz_connected:{},is_ptz_panel_opened:{}},[],[],!0)),En.Component=Dr,Object.defineProperty(En,Symbol.toStringTag,{value:"Module"})})(this["player-live-camera-ptz"]=this["player-live-camera-ptz"]||{});
|
|
75
77
|
//# sourceMappingURL=main.iife.js.map
|