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