@mxtommy/kip 4.0.8-beta.1 → 4.1.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/package.json +1 -1
  2. package/plugin/index.js +49 -2
  3. package/plugin/openApi.json +1 -1
  4. package/public/3rdpartylicenses.txt +26 -26
  5. package/public/assets/help-docs/chartplotter.md +5 -5
  6. package/public/chunk-2QCDSHYY.js +2 -0
  7. package/public/chunk-3VEP4A7I.js +52 -0
  8. package/public/chunk-4BN4AG6O.js +3 -0
  9. package/public/chunk-7EYNQTZR.js +1 -0
  10. package/public/chunk-AQ66AGUC.js +1 -0
  11. package/public/chunk-BRLXMYKY.js +3 -0
  12. package/public/{chunk-QLTN6G6E.js → chunk-CWBDCB4U.js} +1 -1
  13. package/public/{chunk-QZJKBIMY.js → chunk-D3OVXRDS.js} +1 -1
  14. package/public/{chunk-IJ22WXFB.js → chunk-GYERRI2M.js} +1 -1
  15. package/public/{chunk-OQULS6SV.js → chunk-JWT2WFAW.js} +1 -1
  16. package/public/{chunk-SLMCWOKC.js → chunk-K75NRIFB.js} +2 -2
  17. package/public/{chunk-QVCMARCU.js → chunk-KITN4REV.js} +1 -1
  18. package/public/{chunk-2DBQEP6W.js → chunk-KNBOI7TL.js} +1 -1
  19. package/public/{chunk-BMDGKBYM.js → chunk-L4NM3HUK.js} +26 -26
  20. package/public/{chunk-RYHOAWDD.js → chunk-MHCWCMEF.js} +1 -1
  21. package/public/chunk-MKKQCG3C.js +2 -0
  22. package/public/chunk-MVXIEN3D.js +1 -0
  23. package/public/chunk-P7WHH5EN.js +2 -0
  24. package/public/chunk-PR5JLJLD.js +15 -0
  25. package/public/chunk-QL3G7CWF.js +1 -0
  26. package/public/{chunk-HIADZ4BV.js → chunk-RVSQUIEX.js} +1 -1
  27. package/public/{chunk-52M2PJJL.js → chunk-TKCKTVDR.js} +1 -1
  28. package/public/chunk-TMBKBUUJ.js +1 -0
  29. package/public/chunk-UDAYIL7R.js +1 -0
  30. package/public/{chunk-23GQYVQ6.js → chunk-VOXKUTG5.js} +1 -1
  31. package/public/{chunk-SZ2GUIT5.js → chunk-W4VRE5PG.js} +1 -1
  32. package/public/index.html +1 -1
  33. package/public/main-FLRUEB5J.js +5 -0
  34. package/public/{polyfills-HMJGV7SQ.js → polyfills-C5VXBGWL.js} +1 -1
  35. package/public/chunk-3Y7WDZKI.js +0 -1
  36. package/public/chunk-AA2M4OWK.js +0 -2
  37. package/public/chunk-AB255PKD.js +0 -2
  38. package/public/chunk-D2CYLQZF.js +0 -1
  39. package/public/chunk-NDOR4O4J.js +0 -1
  40. package/public/chunk-OB3QLUH6.js +0 -15
  41. package/public/chunk-PKKBBIJK.js +0 -3
  42. package/public/chunk-TIWUK3AU.js +0 -1
  43. package/public/chunk-VJ4U7HHN.js +0 -1
  44. package/public/chunk-WADRUSMB.js +0 -3
  45. package/public/chunk-XDPHEQEO.js +0 -2
  46. package/public/chunk-YIXYV2MV.js +0 -52
  47. package/public/main-HG5TDMOB.js +0 -5
@@ -1,2 +1,2 @@
1
- var ca=Object.create;var Ut=Object.defineProperty;var ua=Object.getOwnPropertyDescriptor;var la=Object.getOwnPropertyNames;var fa=Object.getPrototypeOf,ha=Object.prototype.hasOwnProperty;var u=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var va=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of la(r))!ha.call(e,o)&&o!==t&&Ut(e,o,{get:()=>r[o],enumerable:!(n=ua(r,o))||n.enumerable});return e};var da=(e,r,t)=>(t=e!=null?ca(fa(e)):{},va(r||!e||!e.__esModule?Ut(t,"default",{value:e,enumerable:!0}):t,e));var oe=u((Pr,$t)=>{"use strict";var Ae=function(e){return e&&e.Math===Math&&e};$t.exports=Ae(typeof globalThis=="object"&&globalThis)||Ae(typeof window=="object"&&window)||Ae(typeof self=="object"&&self)||Ae(typeof global=="object"&&global)||Ae(typeof Pr=="object"&&Pr)||(function(){return this})()||Function("return this")()});var zt=u((_v,Vt)=>{"use strict";Vt.exports=!1});var Xe=u((Tv,Yt)=>{"use strict";var Wt=oe(),pa=Object.defineProperty;Yt.exports=function(e,r){try{pa(Wt,e,{value:r,configurable:!0,writable:!0})}catch{Wt[e]=r}return r}});var Je=u((Ev,Jt)=>{"use strict";var ya=zt(),_a=oe(),Ta=Xe(),Kt="__core-js_shared__",Xt=Jt.exports=_a[Kt]||Ta(Kt,{});(Xt.versions||(Xt.versions=[])).push({version:"3.46.0",mode:ya?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var wr=u((gv,en)=>{"use strict";var Qt=Je();en.exports=function(e,r){return Qt[e]||(Qt[e]=r||{})}});var J=u((bv,rn)=>{"use strict";rn.exports=function(e){try{return!!e()}catch{return!0}}});var Ze=u((mv,tn)=>{"use strict";var Ea=J();tn.exports=!Ea(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ie=u((Ov,sn)=>{"use strict";var nn=Ze(),on=Function.prototype,Sr=on.call,ga=nn&&on.bind.bind(Sr,Sr);sn.exports=nn?ga:function(e){return function(){return Sr.apply(e,arguments)}}});var Rr=u((qv,an)=>{"use strict";an.exports=function(e){return e==null}});var Qe=u((kv,cn)=>{"use strict";var ba=Rr(),ma=TypeError;cn.exports=function(e){if(ba(e))throw new ma("Can't call method on "+e);return e}});var Cr=u((Pv,un)=>{"use strict";var Oa=Qe(),qa=Object;un.exports=function(e){return qa(Oa(e))}});var ce=u((wv,ln)=>{"use strict";var ka=ie(),Pa=Cr(),wa=ka({}.hasOwnProperty);ln.exports=Object.hasOwn||function(r,t){return wa(Pa(r),t)}});var Dr=u((Sv,fn)=>{"use strict";var Sa=ie(),Ra=0,Ca=Math.random(),Da=Sa(1.1.toString);fn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Da(++Ra+Ca,36)}});var pn=u((Rv,dn)=>{"use strict";var Ia=oe(),hn=Ia.navigator,vn=hn&&hn.userAgent;dn.exports=vn?String(vn):""});var mn=u((Cv,bn)=>{"use strict";var gn=oe(),Ir=pn(),yn=gn.process,_n=gn.Deno,Tn=yn&&yn.versions||_n&&_n.version,En=Tn&&Tn.v8,ve,er;En&&(ve=En.split("."),er=ve[0]>0&&ve[0]<4?1:+(ve[0]+ve[1]));!er&&Ir&&(ve=Ir.match(/Edge\/(\d+)/),(!ve||ve[1]>=74)&&(ve=Ir.match(/Chrome\/(\d+)/),ve&&(er=+ve[1])));bn.exports=er});var jr=u((Dv,qn)=>{"use strict";var On=mn(),ja=J(),Na=oe(),xa=Na.String;qn.exports=!!Object.getOwnPropertySymbols&&!ja(function(){var e=Symbol("symbol detection");return!xa(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&On&&On<41})});var Nr=u((Iv,kn)=>{"use strict";var Ma=jr();kn.exports=Ma&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Fe=u((jv,wn)=>{"use strict";var La=oe(),Aa=wr(),Pn=ce(),Za=Dr(),Fa=jr(),Ga=Nr(),Ne=La.Symbol,xr=Aa("wks"),Ba=Ga?Ne.for||Ne:Ne&&Ne.withoutSetter||Za;wn.exports=function(e){return Pn(xr,e)||(xr[e]=Fa&&Pn(Ne,e)?Ne[e]:Ba("Symbol."+e)),xr[e]}});var rr=u((Nv,Rn)=>{"use strict";var Ha=Fe(),Ua=Ha("toStringTag"),Sn={};Sn[Ua]="z";Rn.exports=String(Sn)==="[object z]"});var se=u((xv,Cn)=>{"use strict";var Mr=typeof document=="object"&&document.all;Cn.exports=typeof Mr>"u"&&Mr!==void 0?function(e){return typeof e=="function"||e===Mr}:function(e){return typeof e=="function"}});var de=u((Mv,Dn)=>{"use strict";var $a=J();Dn.exports=!$a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var ae=u((Lv,In)=>{"use strict";var Va=se();In.exports=function(e){return typeof e=="object"?e!==null:Va(e)}});var Ar=u((Av,Nn)=>{"use strict";var za=oe(),jn=ae(),Lr=za.document,Wa=jn(Lr)&&jn(Lr.createElement);Nn.exports=function(e){return Wa?Lr.createElement(e):{}}});var Zr=u((Zv,xn)=>{"use strict";var Ya=de(),Ka=J(),Xa=Ar();xn.exports=!Ya&&!Ka(function(){return Object.defineProperty(Xa("div"),"a",{get:function(){return 7}}).a!==7})});var Fr=u((Fv,Mn)=>{"use strict";var Ja=de(),Qa=J();Mn.exports=Ja&&Qa(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var re=u((Gv,Ln)=>{"use strict";var ec=ae(),rc=String,tc=TypeError;Ln.exports=function(e){if(ec(e))return e;throw new tc(rc(e)+" is not an object")}});var xe=u((Bv,An)=>{"use strict";var nc=Ze(),tr=Function.prototype.call;An.exports=nc?tr.bind(tr):function(){return tr.apply(tr,arguments)}});var Re=u((Hv,Zn)=>{"use strict";var Gr=oe(),oc=se(),ic=function(e){return oc(e)?e:void 0};Zn.exports=function(e,r){return arguments.length<2?ic(Gr[e]):Gr[e]&&Gr[e][r]}});var Gn=u((Uv,Fn)=>{"use strict";var sc=ie();Fn.exports=sc({}.isPrototypeOf)});var Br=u(($v,Bn)=>{"use strict";var ac=Re(),cc=se(),uc=Gn(),lc=Nr(),fc=Object;Bn.exports=lc?function(e){return typeof e=="symbol"}:function(e){var r=ac("Symbol");return cc(r)&&uc(r.prototype,fc(e))}});var Hr=u((Vv,Hn)=>{"use strict";var hc=String;Hn.exports=function(e){try{return hc(e)}catch{return"Object"}}});var Ge=u((zv,Un)=>{"use strict";var vc=se(),dc=Hr(),pc=TypeError;Un.exports=function(e){if(vc(e))return e;throw new pc(dc(e)+" is not a function")}});var Vn=u((Wv,$n)=>{"use strict";var yc=Ge(),_c=Rr();$n.exports=function(e,r){var t=e[r];return _c(t)?void 0:yc(t)}});var Wn=u((Yv,zn)=>{"use strict";var Ur=xe(),$r=se(),Vr=ae(),Tc=TypeError;zn.exports=function(e,r){var t,n;if(r==="string"&&$r(t=e.toString)&&!Vr(n=Ur(t,e))||$r(t=e.valueOf)&&!Vr(n=Ur(t,e))||r!=="string"&&$r(t=e.toString)&&!Vr(n=Ur(t,e)))return n;throw new Tc("Can't convert object to primitive value")}});var Jn=u((Kv,Xn)=>{"use strict";var Ec=xe(),Yn=ae(),Kn=Br(),gc=Vn(),bc=Wn(),mc=Fe(),Oc=TypeError,qc=mc("toPrimitive");Xn.exports=function(e,r){if(!Yn(e)||Kn(e))return e;var t=gc(e,qc),n;if(t){if(r===void 0&&(r="default"),n=Ec(t,e,r),!Yn(n)||Kn(n))return n;throw new Oc("Can't convert object to primitive value")}return r===void 0&&(r="number"),bc(e,r)}});var nr=u((Xv,Qn)=>{"use strict";var kc=Jn(),Pc=Br();Qn.exports=function(e){var r=kc(e,"string");return Pc(r)?r:r+""}});var Se=u(ro=>{"use strict";var wc=de(),Sc=Zr(),Rc=Fr(),or=re(),eo=nr(),Cc=TypeError,zr=Object.defineProperty,Dc=Object.getOwnPropertyDescriptor,Wr="enumerable",Yr="configurable",Kr="writable";ro.f=wc?Rc?function(r,t,n){if(or(r),t=eo(t),or(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Kr in n&&!n[Kr]){var o=Dc(r,t);o&&o[Kr]&&(r[t]=n.value,n={configurable:Yr in n?n[Yr]:o[Yr],enumerable:Wr in n?n[Wr]:o[Wr],writable:!1})}return zr(r,t,n)}:zr:function(r,t,n){if(or(r),t=eo(t),or(n),Sc)try{return zr(r,t,n)}catch{}if("get"in n||"set"in n)throw new Cc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var oo=u((Qv,no)=>{"use strict";var Xr=de(),Ic=ce(),to=Function.prototype,jc=Xr&&Object.getOwnPropertyDescriptor,Jr=Ic(to,"name"),Nc=Jr&&(function(){}).name==="something",xc=Jr&&(!Xr||Xr&&jc(to,"name").configurable);no.exports={EXISTS:Jr,PROPER:Nc,CONFIGURABLE:xc}});var et=u((ed,io)=>{"use strict";var Mc=ie(),Lc=se(),Qr=Je(),Ac=Mc(Function.toString);Lc(Qr.inspectSource)||(Qr.inspectSource=function(e){return Ac(e)});io.exports=Qr.inspectSource});var co=u((rd,ao)=>{"use strict";var Zc=oe(),Fc=se(),so=Zc.WeakMap;ao.exports=Fc(so)&&/native code/.test(String(so))});var ir=u((td,uo)=>{"use strict";uo.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var rt=u((nd,lo)=>{"use strict";var Gc=de(),Bc=Se(),Hc=ir();lo.exports=Gc?function(e,r,t){return Bc.f(e,r,Hc(1,t))}:function(e,r,t){return e[r]=t,e}});var sr=u((od,ho)=>{"use strict";var Uc=wr(),$c=Dr(),fo=Uc("keys");ho.exports=function(e){return fo[e]||(fo[e]=$c(e))}});var ar=u((id,vo)=>{"use strict";vo.exports={}});var To=u((sd,_o)=>{"use strict";var Vc=co(),yo=oe(),zc=ae(),Wc=rt(),tt=ce(),nt=Je(),Yc=sr(),Kc=ar(),po="Object already initialized",ot=yo.TypeError,Xc=yo.WeakMap,cr,Be,ur,Jc=function(e){return ur(e)?Be(e):cr(e,{})},Qc=function(e){return function(r){var t;if(!zc(r)||(t=Be(r)).type!==e)throw new ot("Incompatible receiver, "+e+" required");return t}};Vc||nt.state?(pe=nt.state||(nt.state=new Xc),pe.get=pe.get,pe.has=pe.has,pe.set=pe.set,cr=function(e,r){if(pe.has(e))throw new ot(po);return r.facade=e,pe.set(e,r),r},Be=function(e){return pe.get(e)||{}},ur=function(e){return pe.has(e)}):(Ce=Yc("state"),Kc[Ce]=!0,cr=function(e,r){if(tt(e,Ce))throw new ot(po);return r.facade=e,Wc(e,Ce,r),r},Be=function(e){return tt(e,Ce)?e[Ce]:{}},ur=function(e){return tt(e,Ce)});var pe,Ce;_o.exports={set:cr,get:Be,has:ur,enforce:Jc,getterFor:Qc}});var mo=u((ad,bo)=>{"use strict";var st=ie(),eu=J(),ru=se(),lr=ce(),it=de(),tu=oo().CONFIGURABLE,nu=et(),go=To(),ou=go.enforce,iu=go.get,Eo=String,fr=Object.defineProperty,su=st("".slice),au=st("".replace),cu=st([].join),uu=it&&!eu(function(){return fr(function(){},"length",{value:8}).length!==8}),lu=String(String).split("String"),fu=bo.exports=function(e,r,t){su(Eo(r),0,7)==="Symbol("&&(r="["+au(Eo(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(r="get "+r),t&&t.setter&&(r="set "+r),(!lr(e,"name")||tu&&e.name!==r)&&(it?fr(e,"name",{value:r,configurable:!0}):e.name=r),uu&&t&&lr(t,"arity")&&e.length!==t.arity&&fr(e,"length",{value:t.arity});try{t&&lr(t,"constructor")&&t.constructor?it&&fr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=ou(e);return lr(n,"source")||(n.source=cu(lu,typeof r=="string"?r:"")),e};Function.prototype.toString=fu(function(){return ru(this)&&iu(this).source||nu(this)},"toString")});var at=u((cd,Oo)=>{"use strict";var hu=se(),vu=Se(),du=mo(),pu=Xe();Oo.exports=function(e,r,t,n){n||(n={});var o=n.enumerable,c=n.name!==void 0?n.name:r;if(hu(t)&&du(t,c,n),n.global)o?e[r]=t:pu(r,t);else{try{n.unsafe?e[r]&&(o=!0):delete e[r]}catch{}o?e[r]=t:vu.f(e,r,{value:t,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}});var hr=u((ud,ko)=>{"use strict";var qo=ie(),yu=qo({}.toString),_u=qo("".slice);ko.exports=function(e){return _u(yu(e),8,-1)}});var ct=u((ld,Po)=>{"use strict";var Tu=rr(),Eu=se(),vr=hr(),gu=Fe(),bu=gu("toStringTag"),mu=Object,Ou=vr((function(){return arguments})())==="Arguments",qu=function(e,r){try{return e[r]}catch{}};Po.exports=Tu?vr:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=qu(r=mu(e),bu))=="string"?t:Ou?vr(r):(n=vr(r))==="Object"&&Eu(r.callee)?"Arguments":n}});var So=u((fd,wo)=>{"use strict";var ku=rr(),Pu=ct();wo.exports=ku?{}.toString:function(){return"[object "+Pu(this)+"]"}});var Ro=u(()=>{"use strict";var wu=rr(),Su=at(),Ru=So();wu||Su(Object.prototype,"toString",Ru,{unsafe:!0})});var jo=u(Io=>{"use strict";var Co={}.propertyIsEnumerable,Do=Object.getOwnPropertyDescriptor,Cu=Do&&!Co.call({1:2},1);Io.f=Cu?function(r){var t=Do(this,r);return!!t&&t.enumerable}:Co});var xo=u((pd,No)=>{"use strict";var Du=ie(),Iu=J(),ju=hr(),ut=Object,Nu=Du("".split);No.exports=Iu(function(){return!ut("z").propertyIsEnumerable(0)})?function(e){return ju(e)==="String"?Nu(e,""):ut(e)}:ut});var He=u((yd,Mo)=>{"use strict";var xu=xo(),Mu=Qe();Mo.exports=function(e){return xu(Mu(e))}});var De=u(Ao=>{"use strict";var Lu=de(),Au=xe(),Zu=jo(),Fu=ir(),Gu=He(),Bu=nr(),Hu=ce(),Uu=Zr(),Lo=Object.getOwnPropertyDescriptor;Ao.f=Lu?Lo:function(r,t){if(r=Gu(r),t=Bu(t),Uu)try{return Lo(r,t)}catch{}if(Hu(r,t))return Fu(!Au(Zu.f,r,t),r[t])}});var Fo=u((Td,Zo)=>{"use strict";var $u=Math.ceil,Vu=Math.floor;Zo.exports=Math.trunc||function(r){var t=+r;return(t>0?Vu:$u)(t)}});var lt=u((Ed,Go)=>{"use strict";var zu=Fo();Go.exports=function(e){var r=+e;return r!==r||r===0?0:zu(r)}});var Ho=u((gd,Bo)=>{"use strict";var Wu=lt(),Yu=Math.max,Ku=Math.min;Bo.exports=function(e,r){var t=Wu(e);return t<0?Yu(t+r,0):Ku(t,r)}});var $o=u((bd,Uo)=>{"use strict";var Xu=lt(),Ju=Math.min;Uo.exports=function(e){var r=Xu(e);return r>0?Ju(r,9007199254740991):0}});var zo=u((md,Vo)=>{"use strict";var Qu=$o();Vo.exports=function(e){return Qu(e.length)}});var Ko=u((Od,Yo)=>{"use strict";var el=He(),rl=Ho(),tl=zo(),Wo=function(e){return function(r,t,n){var o=el(r),c=tl(o);if(c===0)return!e&&-1;var f=rl(n,c),l;if(e&&t!==t){for(;c>f;)if(l=o[f++],l!==l)return!0}else for(;c>f;f++)if((e||f in o)&&o[f]===t)return e||f||0;return!e&&-1}};Yo.exports={includes:Wo(!0),indexOf:Wo(!1)}});var ht=u((qd,Jo)=>{"use strict";var nl=ie(),ft=ce(),ol=He(),il=Ko().indexOf,sl=ar(),Xo=nl([].push);Jo.exports=function(e,r){var t=ol(e),n=0,o=[],c;for(c in t)!ft(sl,c)&&ft(t,c)&&Xo(o,c);for(;r.length>n;)ft(t,c=r[n++])&&(~il(o,c)||Xo(o,c));return o}});var dr=u((kd,Qo)=>{"use strict";Qo.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var ri=u(ei=>{"use strict";var al=ht(),cl=dr(),ul=cl.concat("length","prototype");ei.f=Object.getOwnPropertyNames||function(r){return al(r,ul)}});var ni=u(ti=>{"use strict";ti.f=Object.getOwnPropertySymbols});var vt=u((Sd,oi)=>{"use strict";var ll=Re(),fl=ie(),hl=ri(),vl=ni(),dl=re(),pl=fl([].concat);oi.exports=ll("Reflect","ownKeys")||function(r){var t=hl.f(dl(r)),n=vl.f;return n?pl(t,n(r)):t}});var ai=u((Rd,si)=>{"use strict";var ii=ce(),yl=vt(),_l=De(),Tl=Se();si.exports=function(e,r,t){for(var n=yl(r),o=Tl.f,c=_l.f,f=0;f<n.length;f++){var l=n[f];!ii(e,l)&&!(t&&ii(t,l))&&o(e,l,c(r,l))}}});var ui=u((Cd,ci)=>{"use strict";var El=J(),gl=se(),bl=/#|\.prototype\./,Ue=function(e,r){var t=Ol[ml(e)];return t===kl?!0:t===ql?!1:gl(r)?El(r):!!r},ml=Ue.normalize=function(e){return String(e).replace(bl,".").toLowerCase()},Ol=Ue.data={},ql=Ue.NATIVE="N",kl=Ue.POLYFILL="P";ci.exports=Ue});var ne=u((Dd,li)=>{"use strict";var pr=oe(),Pl=De().f,wl=rt(),Sl=at(),Rl=Xe(),Cl=ai(),Dl=ui();li.exports=function(e,r){var t=e.target,n=e.global,o=e.stat,c,f,l,_,q,y;if(n?f=pr:o?f=pr[t]||Rl(t,{}):f=pr[t]&&pr[t].prototype,f)for(l in r){if(q=r[l],e.dontCallGetSet?(y=Pl(f,l),_=y&&y.value):_=f[l],c=Dl(n?l:t+(o?".":"#")+l,e.forced),!c&&_!==void 0){if(typeof q==typeof _)continue;Cl(q,_)}(e.sham||_&&_.sham)&&wl(q,"sham",!0),Sl(f,l,q,e)}}});var dt=u((Id,di)=>{"use strict";var Il=Ze(),vi=Function.prototype,fi=vi.apply,hi=vi.call;di.exports=typeof Reflect=="object"&&Reflect.apply||(Il?hi.bind(fi):function(){return hi.apply(fi,arguments)})});var pi=u(()=>{"use strict";var jl=ne(),Nl=dt(),xl=Ge(),Ml=re(),Ll=J(),Al=!Ll(function(){Reflect.apply(function(){})});jl({target:"Reflect",stat:!0,forced:Al},{apply:function(r,t,n){return Nl(xl(r),t,Ml(n))}})});var _i=u((xd,yi)=>{"use strict";var Zl=ie();yi.exports=Zl([].slice)});var mi=u((Md,bi)=>{"use strict";var Ei=ie(),Fl=Ge(),Gl=ae(),Bl=ce(),Ti=_i(),Hl=Ze(),gi=Function,Ul=Ei([].concat),$l=Ei([].join),pt={},Vl=function(e,r,t){if(!Bl(pt,r)){for(var n=[],o=0;o<r;o++)n[o]="a["+o+"]";pt[r]=gi("C,a","return new C("+$l(n,",")+")")}return pt[r](e,t)};bi.exports=Hl?gi.bind:function(r){var t=Fl(this),n=t.prototype,o=Ti(arguments,1),c=function(){var l=Ul(o,Ti(arguments));return this instanceof c?Vl(t,l.length,l):t.apply(r,l)};return Gl(n)&&(c.prototype=n),c}});var Si=u((Ld,wi)=>{"use strict";var zl=ie(),Wl=J(),Oi=se(),Yl=ct(),Kl=Re(),Xl=et(),qi=function(){},ki=Kl("Reflect","construct"),yt=/^\s*(?:class|function)\b/,Jl=zl(yt.exec),Ql=!yt.test(qi),$e=function(r){if(!Oi(r))return!1;try{return ki(qi,[],r),!0}catch{return!1}},Pi=function(r){if(!Oi(r))return!1;switch(Yl(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ql||!!Jl(yt,Xl(r))}catch{return!0}};Pi.sham=!0;wi.exports=!ki||Wl(function(){var e;return $e($e.call)||!$e(Object)||!$e(function(){e=!0})||e})?Pi:$e});var Ci=u((Ad,Ri)=>{"use strict";var ef=Si(),rf=Hr(),tf=TypeError;Ri.exports=function(e){if(ef(e))return e;throw new tf(rf(e)+" is not a constructor")}});var Ii=u((Zd,Di)=>{"use strict";var nf=ht(),of=dr();Di.exports=Object.keys||function(r){return nf(r,of)}});var Ni=u(ji=>{"use strict";var sf=de(),af=Fr(),cf=Se(),uf=re(),lf=He(),ff=Ii();ji.f=sf&&!af?Object.defineProperties:function(r,t){uf(r);for(var n=lf(t),o=ff(t),c=o.length,f=0,l;c>f;)cf.f(r,l=o[f++],n[l]);return r}});var Mi=u((Gd,xi)=>{"use strict";var hf=Re();xi.exports=hf("document","documentElement")});var Ui=u((Bd,Hi)=>{"use strict";var vf=re(),df=Ni(),Li=dr(),pf=ar(),yf=Mi(),_f=Ar(),Tf=sr(),Ai=">",Zi="<",Tt="prototype",Et="script",Gi=Tf("IE_PROTO"),_t=function(){},Bi=function(e){return Zi+Et+Ai+e+Zi+"/"+Et+Ai},Fi=function(e){e.write(Bi("")),e.close();var r=e.parentWindow.Object;return e=null,r},Ef=function(){var e=_f("iframe"),r="java"+Et+":",t;return e.style.display="none",yf.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Bi("document.F=Object")),t.close(),t.F},yr,_r=function(){try{yr=new ActiveXObject("htmlfile")}catch{}_r=typeof document<"u"?document.domain&&yr?Fi(yr):Ef():Fi(yr);for(var e=Li.length;e--;)delete _r[Tt][Li[e]];return _r()};pf[Gi]=!0;Hi.exports=Object.create||function(r,t){var n;return r!==null?(_t[Tt]=vf(r),n=new _t,_t[Tt]=null,n[Gi]=r):n=_r(),t===void 0?n:df.f(n,t)}});var Xi=u(()=>{"use strict";var gf=ne(),bf=Re(),gt=dt(),mf=mi(),$i=Ci(),Of=re(),Vi=ae(),qf=Ui(),Wi=J(),bt=bf("Reflect","construct"),kf=Object.prototype,Pf=[].push,Yi=Wi(function(){function e(){}return!(bt(function(){},[],e)instanceof e)}),Ki=!Wi(function(){bt(function(){})}),zi=Yi||Ki;gf({target:"Reflect",stat:!0,forced:zi,sham:zi},{construct:function(r,t){$i(r),Of(t);var n=arguments.length<3?r:$i(arguments[2]);if(Ki&&!Yi)return bt(r,t,n);if(r===n){switch(t.length){case 0:return new r;case 1:return new r(t[0]);case 2:return new r(t[0],t[1]);case 3:return new r(t[0],t[1],t[2]);case 4:return new r(t[0],t[1],t[2],t[3])}var o=[null];return gt(Pf,o,t),new(gt(mf,r,o))}var c=n.prototype,f=qf(Vi(c)?c:kf),l=gt(r,f,t);return Vi(l)?l:f}})});var es=u(()=>{"use strict";var wf=ne(),Sf=de(),Ji=re(),Rf=nr(),Qi=Se(),Cf=J(),Df=Cf(function(){Reflect.defineProperty(Qi.f({},1,{value:1}),1,{value:2})});wf({target:"Reflect",stat:!0,forced:Df,sham:!Sf},{defineProperty:function(r,t,n){Ji(r);var o=Rf(t);Ji(n);try{return Qi.f(r,o,n),!0}catch{return!1}}})});var rs=u(()=>{"use strict";var If=ne(),jf=re(),Nf=De().f;If({target:"Reflect",stat:!0},{deleteProperty:function(r,t){var n=Nf(jf(r),t);return n&&!n.configurable?!1:delete r[t]}})});var mt=u((Yd,ns)=>{"use strict";var ts=ce();ns.exports=function(e){return e!==void 0&&(ts(e,"value")||ts(e,"writable"))}});var Ot=u((Kd,os)=>{"use strict";var xf=J();os.exports=!xf(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Tr=u((Xd,ss)=>{"use strict";var Mf=ce(),Lf=se(),Af=Cr(),Zf=sr(),Ff=Ot(),is=Zf("IE_PROTO"),qt=Object,Gf=qt.prototype;ss.exports=Ff?qt.getPrototypeOf:function(e){var r=Af(e);if(Mf(r,is))return r[is];var t=r.constructor;return Lf(t)&&r instanceof t?t.prototype:r instanceof qt?Gf:null}});var cs=u(()=>{"use strict";var Bf=ne(),Hf=xe(),Uf=ae(),$f=re(),Vf=mt(),zf=De(),Wf=Tr();function as(e,r){var t=arguments.length<3?e:arguments[2],n,o;if($f(e)===t)return e[r];if(n=zf.f(e,r),n)return Vf(n)?n.value:n.get===void 0?void 0:Hf(n.get,t);if(Uf(o=Wf(e)))return as(o,r,t)}Bf({target:"Reflect",stat:!0},{get:as})});var us=u(()=>{"use strict";var Yf=ne(),Kf=de(),Xf=re(),Jf=De();Yf({target:"Reflect",stat:!0,sham:!Kf},{getOwnPropertyDescriptor:function(r,t){return Jf.f(Xf(r),t)}})});var ls=u(()=>{"use strict";var Qf=ne(),eh=re(),rh=Tr(),th=Ot();Qf({target:"Reflect",stat:!0,sham:!th},{getPrototypeOf:function(r){return rh(eh(r))}})});var fs=u(()=>{"use strict";var nh=ne();nh({target:"Reflect",stat:!0},{has:function(r,t){return t in r}})});var vs=u((sp,hs)=>{"use strict";var oh=J();hs.exports=oh(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var ys=u((ap,ps)=>{"use strict";var ih=J(),sh=ae(),ah=hr(),ds=vs(),Er=Object.isExtensible,ch=ih(function(){Er(1)});ps.exports=ch||ds?function(r){return!sh(r)||ds&&ah(r)==="ArrayBuffer"?!1:Er?Er(r):!0}:Er});var _s=u(()=>{"use strict";var uh=ne(),lh=re(),fh=ys();uh({target:"Reflect",stat:!0},{isExtensible:function(r){return lh(r),fh(r)}})});var Ts=u(()=>{"use strict";var hh=ne(),vh=vt();hh({target:"Reflect",stat:!0},{ownKeys:vh})});var gs=u((hp,Es)=>{"use strict";var dh=J();Es.exports=!dh(function(){return Object.isExtensible(Object.preventExtensions({}))})});var bs=u(()=>{"use strict";var ph=ne(),yh=Re(),_h=re(),Th=gs();ph({target:"Reflect",stat:!0,sham:!Th},{preventExtensions:function(r){_h(r);try{var t=yh("Object","preventExtensions");return t&&t(r),!0}catch{return!1}}})});var Ps=u(()=>{"use strict";var Eh=ne(),gh=xe(),bh=re(),ms=ae(),mh=mt(),Oh=J(),kt=Se(),Os=De(),qh=Tr(),qs=ir();function ks(e,r,t){var n=arguments.length<4?e:arguments[3],o=Os.f(bh(e),r),c,f,l;if(!o){if(ms(f=qh(e)))return ks(f,r,t,n);o=qs(0)}if(mh(o)){if(o.writable===!1||!ms(n))return!1;if(c=Os.f(n,r)){if(c.get||c.set||c.writable===!1)return!1;c.value=t,kt.f(n,r,c)}else kt.f(n,r,qs(0,t))}else{if(l=o.set,l===void 0)return!1;gh(l,n,t)}return!0}var kh=Oh(function(){var e=function(){},r=kt.f(new e,"a",{configurable:!0});return Reflect.set(e.prototype,"a",1,r)!==!1});Eh({target:"Reflect",stat:!0,forced:kh},{set:ks})});var Ss=u((_p,ws)=>{"use strict";var Ph=ae();ws.exports=function(e){return Ph(e)||e===null}});var Pt=u((Tp,Rs)=>{"use strict";var wh=Ss(),Sh=String,Rh=TypeError;Rs.exports=function(e){if(wh(e))return e;throw new Rh("Can't set "+Sh(e)+" as a prototype")}});var Ds=u((Ep,Cs)=>{"use strict";var Ch=ie(),Dh=Ge();Cs.exports=function(e,r,t){try{return Ch(Dh(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}}});var js=u((gp,Is)=>{"use strict";var Ih=Ds(),jh=ae(),Nh=Qe(),xh=Pt();Is.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var e=!1,r={},t;try{t=Ih(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(o,c){return Nh(o),xh(c),jh(o)&&(e?t(o,c):o.__proto__=c),o}})():void 0)});var xs=u(()=>{"use strict";var Mh=ne(),Lh=re(),Ah=Pt(),Ns=js();Ns&&Mh({target:"Reflect",stat:!0},{setPrototypeOf:function(r,t){Lh(r),Ah(t);try{return Ns(r,t),!0}catch{return!1}}})});var As=u((Op,Ls)=>{"use strict";var Zh=Se().f,Fh=ce(),Gh=Fe(),Ms=Gh("toStringTag");Ls.exports=function(e,r,t){e&&!t&&(e=e.prototype),e&&!Fh(e,Ms)&&Zh(e,Ms,{configurable:!0,value:r})}});var Zs=u(()=>{"use strict";var Bh=ne(),Hh=oe(),Uh=As();Bh({global:!0},{Reflect:{}});Uh(Hh.Reflect,"Reflect",!0)});var Gs=u((Pp,Fs)=>{"use strict";var $h=oe();Fs.exports=$h});var Hs=u((wp,Bs)=>{"use strict";Ro();pi();Xi();es();rs();cs();us();ls();fs();_s();Ts();bs();Ps();xs();Zs();var Vh=Gs();Bs.exports=Vh.Reflect});var Sp=da(Hs());var Ee=globalThis;function ue(e){return(Ee.__Zone_symbol_prefix||"__zone_symbol__")+e}function zh(){let e=Ee.performance;function r(I){e&&e.mark&&e.mark(I)}function t(I,T){e&&e.measure&&e.measure(I,T)}r("Zone");let n=(()=>{class I{static __symbol__=ue;static assertZonePatched(){if(Ee.Promise!==D.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let i=I.current;for(;i.parent;)i=i.parent;return i}static get current(){return k.zone}static get currentTask(){return C}static __load_patch(i,s,b=!1){if(D.hasOwnProperty(i)){let P=Ee[ue("forceDuplicateZoneCheck")]===!0;if(!b&&P)throw Error("Already loaded patch: "+i)}else if(!Ee["__Zone_disable_"+i]){let P="Zone:"+i;r(P),D[i]=s(Ee,I,S),t(P,P)}}get parent(){return this._parent}get name(){return this._name}_parent;_name;_properties;_zoneDelegate;constructor(i,s){this._parent=i,this._name=s?s.name||"unnamed":"<root>",this._properties=s&&s.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,s)}get(i){let s=this.getZoneWith(i);if(s)return s._properties[i]}getZoneWith(i){let s=this;for(;s;){if(s._properties.hasOwnProperty(i))return s;s=s._parent}return null}fork(i){if(!i)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,i)}wrap(i,s){if(typeof i!="function")throw new Error("Expecting function got: "+i);let b=this._zoneDelegate.intercept(this,i,s),P=this;return function(){return P.runGuarded(b,this,arguments,s)}}run(i,s,b,P){k={parent:k,zone:this};try{return this._zoneDelegate.invoke(this,i,s,b,P)}finally{k=k.parent}}runGuarded(i,s=null,b,P){k={parent:k,zone:this};try{try{return this._zoneDelegate.invoke(this,i,s,b,P)}catch(W){if(this._zoneDelegate.handleError(this,W))throw W}}finally{k=k.parent}}runTask(i,s,b){if(i.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(i.zone||ee).name+"; Execution: "+this.name+")");let P=i,{type:W,data:{isPeriodic:L=!1,isRefreshable:Pe=!1}={}}=i;if(i.state===Y&&(W===V||W===E))return;let ge=i.state!=A;ge&&P._transitionTo(A,p);let be=C;C=P,k={parent:k,zone:this};try{W==E&&i.data&&!L&&!Pe&&(i.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,P,s,b)}catch(fe){if(this._zoneDelegate.handleError(this,fe))throw fe}}finally{let fe=i.state;if(fe!==Y&&fe!==K)if(W==V||L||Pe&&fe===m)ge&&P._transitionTo(p,A,m);else{let d=P._zoneDelegates;this._updateTaskCount(P,-1),ge&&P._transitionTo(Y,A,Y),Pe&&(P._zoneDelegates=d)}k=k.parent,C=be}}scheduleTask(i){if(i.zone&&i.zone!==this){let b=this;for(;b;){if(b===i.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${i.zone.name}`);b=b.parent}}i._transitionTo(m,Y);let s=[];i._zoneDelegates=s,i._zone=this;try{i=this._zoneDelegate.scheduleTask(this,i)}catch(b){throw i._transitionTo(K,m,Y),this._zoneDelegate.handleError(this,b),b}return i._zoneDelegates===s&&this._updateTaskCount(i,1),i.state==m&&i._transitionTo(p,m),i}scheduleMicroTask(i,s,b,P){return this.scheduleTask(new f(B,i,s,b,P,void 0))}scheduleMacroTask(i,s,b,P,W){return this.scheduleTask(new f(E,i,s,b,P,W))}scheduleEventTask(i,s,b,P,W){return this.scheduleTask(new f(V,i,s,b,P,W))}cancelTask(i){if(i.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(i.zone||ee).name+"; Execution: "+this.name+")");if(!(i.state!==p&&i.state!==A)){i._transitionTo(G,p,A);try{this._zoneDelegate.cancelTask(this,i)}catch(s){throw i._transitionTo(K,G),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(i,-1),i._transitionTo(Y,G),i.runCount=-1,i}}_updateTaskCount(i,s){let b=i._zoneDelegates;s==-1&&(i._zoneDelegates=null);for(let P=0;P<b.length;P++)b[P]._updateTaskCount(i.type,s)}}return I})(),o={name:"",onHasTask:(I,T,i,s)=>I.hasTask(i,s),onScheduleTask:(I,T,i,s)=>I.scheduleTask(i,s),onInvokeTask:(I,T,i,s,b,P)=>I.invokeTask(i,s,b,P),onCancelTask:(I,T,i,s)=>I.cancelTask(i,s)};class c{get zone(){return this._zone}_zone;_taskCounts={microTask:0,macroTask:0,eventTask:0};_parentDelegate;_forkDlgt;_forkZS;_forkCurrZone;_interceptDlgt;_interceptZS;_interceptCurrZone;_invokeDlgt;_invokeZS;_invokeCurrZone;_handleErrorDlgt;_handleErrorZS;_handleErrorCurrZone;_scheduleTaskDlgt;_scheduleTaskZS;_scheduleTaskCurrZone;_invokeTaskDlgt;_invokeTaskZS;_invokeTaskCurrZone;_cancelTaskDlgt;_cancelTaskZS;_cancelTaskCurrZone;_hasTaskDlgt;_hasTaskDlgtOwner;_hasTaskZS;_hasTaskCurrZone;constructor(T,i,s){this._zone=T,this._parentDelegate=i,this._forkZS=s&&(s&&s.onFork?s:i._forkZS),this._forkDlgt=s&&(s.onFork?i:i._forkDlgt),this._forkCurrZone=s&&(s.onFork?this._zone:i._forkCurrZone),this._interceptZS=s&&(s.onIntercept?s:i._interceptZS),this._interceptDlgt=s&&(s.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=s&&(s.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=s&&(s.onInvoke?s:i._invokeZS),this._invokeDlgt=s&&(s.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=s&&(s.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=s&&(s.onHandleError?s:i._handleErrorZS),this._handleErrorDlgt=s&&(s.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=s&&(s.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=s&&(s.onScheduleTask?s:i._scheduleTaskZS),this._scheduleTaskDlgt=s&&(s.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=s&&(s.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=s&&(s.onInvokeTask?s:i._invokeTaskZS),this._invokeTaskDlgt=s&&(s.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=s&&(s.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=s&&(s.onCancelTask?s:i._cancelTaskZS),this._cancelTaskDlgt=s&&(s.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=s&&(s.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let b=s&&s.onHasTask,P=i&&i._hasTaskZS;(b||P)&&(this._hasTaskZS=b?s:o,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,s.onScheduleTask||(this._scheduleTaskZS=o,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),s.onInvokeTask||(this._invokeTaskZS=o,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),s.onCancelTask||(this._cancelTaskZS=o,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(T,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,i):new n(T,i)}intercept(T,i,s){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,i,s):i}invoke(T,i,s,b,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,i,s,b,P):i.apply(s,b)}handleError(T,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,i):!0}scheduleTask(T,i){let s=i;if(this._scheduleTaskZS)this._hasTaskZS&&s._zoneDelegates.push(this._hasTaskDlgtOwner),s=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,i),s||(s=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==B)$(i);else throw new Error("Task is missing scheduleFn.");return s}invokeTask(T,i,s,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,i,s,b):i.callback.apply(s,b)}cancelTask(T,i){let s;if(this._cancelTaskZS)s=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");s=i.cancelFn(i)}return s}hasTask(T,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,i)}catch(s){this.handleError(T,s)}}_updateTaskCount(T,i){let s=this._taskCounts,b=s[T],P=s[T]=b+i;if(P<0)throw new Error("More tasks executed then were scheduled.");if(b==0||P==0){let W={microTask:s.microTask>0,macroTask:s.macroTask>0,eventTask:s.eventTask>0,change:T};this.hasTask(this._zone,W)}}}class f{type;source;invoke;callback;data;scheduleFn;cancelFn;_zone=null;runCount=0;_zoneDelegates=null;_state="notScheduled";constructor(T,i,s,b,P,W){if(this.type=T,this.source=i,this.data=b,this.scheduleFn=P,this.cancelFn=W,!s)throw new Error("callback is not defined");this.callback=s;let L=this;T===V&&b&&b.useG?this.invoke=f.invokeTask:this.invoke=function(){return f.invokeTask.call(Ee,L,this,arguments)}}static invokeTask(T,i,s){T||(T=this),te++;try{return T.runCount++,T.zone.runTask(T,i,s)}finally{te==1&&Q(),te--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Y,m)}_transitionTo(T,i,s){if(this._state===i||this._state===s)this._state=T,T==Y&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${i}'${s?" or '"+s+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let l=ue("setTimeout"),_=ue("Promise"),q=ue("then"),y=[],w=!1,M;function F(I){if(M||Ee[_]&&(M=Ee[_].resolve(0)),M){let T=M[q];T||(T=M.then),T.call(M,I)}else Ee[l](I,0)}function $(I){te===0&&y.length===0&&F(Q),I&&y.push(I)}function Q(){if(!w){for(w=!0;y.length;){let I=y;y=[];for(let T=0;T<I.length;T++){let i=I[T];try{i.zone.runTask(i,null,null)}catch(s){S.onUnhandledError(s)}}}S.microtaskDrainDone(),w=!1}}let ee={name:"NO ZONE"},Y="notScheduled",m="scheduling",p="scheduled",A="running",G="canceling",K="unknown",B="microTask",E="macroTask",V="eventTask",D={},S={symbol:ue,currentZoneFrame:()=>k,onUnhandledError:z,microtaskDrainDone:z,scheduleMicroTask:$,showUncaughtError:()=>!n[ue("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:z,patchMethod:()=>z,bindArguments:()=>[],patchThen:()=>z,patchMacroTask:()=>z,patchEventPrototype:()=>z,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>z,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>z,wrapWithCurrentZone:()=>z,filterProperties:()=>[],attachOriginToPatched:()=>z,_redefineProperty:()=>z,patchCallbacks:()=>z,nativeScheduleMicroTask:F},k={parent:null,zone:new n(null,null)},C=null,te=0;function z(){}return t("Zone","Zone"),n}function Wh(){let e=globalThis,r=e[ue("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(r||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=zh(),e.Zone}var ze=Object.getOwnPropertyDescriptor,Dt=Object.defineProperty,It=Object.getPrototypeOf,Yh=Object.create,Kh=Array.prototype.slice,jt="addEventListener",Nt="removeEventListener",wt=ue(jt),St=ue(Nt),me="true",Oe="false",We=ue("");function xt(e,r){return Zone.current.wrap(e,r)}function Mt(e,r,t,n,o){return Zone.current.scheduleMacroTask(e,r,t,n,o)}var Z=ue,mr=typeof window<"u",Ye=mr?window:void 0,X=mr&&Ye||globalThis,Xh="removeAttribute";function Lt(e,r){for(let t=e.length-1;t>=0;t--)typeof e[t]=="function"&&(e[t]=xt(e[t],r+"_"+t));return e}function Jh(e,r){let t=e.constructor.name;for(let n=0;n<r.length;n++){let o=r[n],c=e[o];if(c){let f=ze(e,o);if(!Ks(f))continue;e[o]=(l=>{let _=function(){return l.apply(this,Lt(arguments,t+"."+o))};return ke(_,l),_})(c)}}}function Ks(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var Xs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Or=!("nw"in X)&&typeof X.process<"u"&&X.process.toString()==="[object process]",At=!Or&&!Xs&&!!(mr&&Ye.HTMLElement),Js=typeof X.process<"u"&&X.process.toString()==="[object process]"&&!Xs&&!!(mr&&Ye.HTMLElement),br={},Qh=Z("enable_beforeunload"),Us=function(e){if(e=e||X.event,!e)return;let r=br[e.type];r||(r=br[e.type]=Z("ON_PROPERTY"+e.type));let t=this||e.target||X,n=t[r],o;if(At&&t===Ye&&e.type==="error"){let c=e;o=n&&n.call(this,c.message,c.filename,c.lineno,c.colno,c.error),o===!0&&e.preventDefault()}else o=n&&n.apply(this,arguments),e.type==="beforeunload"&&X[Qh]&&typeof o=="string"?e.returnValue=o:o!=null&&!o&&e.preventDefault();return o};function $s(e,r,t){let n=ze(e,r);if(!n&&t&&ze(t,r)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let o=Z("on"+r+"patched");if(e.hasOwnProperty(o)&&e[o])return;delete n.writable,delete n.value;let c=n.get,f=n.set,l=r.slice(2),_=br[l];_||(_=br[l]=Z("ON_PROPERTY"+l)),n.set=function(q){let y=this;if(!y&&e===X&&(y=X),!y)return;typeof y[_]=="function"&&y.removeEventListener(l,Us),f?.call(y,null),y[_]=q,typeof q=="function"&&y.addEventListener(l,Us,!1)},n.get=function(){let q=this;if(!q&&e===X&&(q=X),!q)return null;let y=q[_];if(y)return y;if(c){let w=c.call(this);if(w)return n.set.call(this,w),typeof q[Xh]=="function"&&q.removeAttribute(r),w}return null},Dt(e,r,n),e[o]=!0}function Qs(e,r,t){if(r)for(let n=0;n<r.length;n++)$s(e,"on"+r[n],t);else{let n=[];for(let o in e)o.slice(0,2)=="on"&&n.push(o);for(let o=0;o<n.length;o++)$s(e,n[o],t)}}var ye=Z("originalInstance");function Ve(e){let r=X[e];if(!r)return;X[Z(e)]=r,X[e]=function(){let o=Lt(arguments,e);switch(o.length){case 0:this[ye]=new r;break;case 1:this[ye]=new r(o[0]);break;case 2:this[ye]=new r(o[0],o[1]);break;case 3:this[ye]=new r(o[0],o[1],o[2]);break;case 4:this[ye]=new r(o[0],o[1],o[2],o[3]);break;default:throw new Error("Arg list too long.")}},ke(X[e],r);let t=new r(function(){}),n;for(n in t)e==="XMLHttpRequest"&&n==="responseBlob"||(function(o){typeof t[o]=="function"?X[e].prototype[o]=function(){return this[ye][o].apply(this[ye],arguments)}:Dt(X[e].prototype,o,{set:function(c){typeof c=="function"?(this[ye][o]=xt(c,e+"."+o),ke(this[ye][o],c)):this[ye][o]=c},get:function(){return this[ye][o]}})})(n);for(n in r)n!=="prototype"&&r.hasOwnProperty(n)&&(X[e][n]=r[n])}function qe(e,r,t){let n=e;for(;n&&!n.hasOwnProperty(r);)n=It(n);!n&&e[r]&&(n=e);let o=Z(r),c=null;if(n&&(!(c=n[o])||!n.hasOwnProperty(o))){c=n[o]=n[r];let f=n&&ze(n,r);if(Ks(f)){let l=t(c,o,r);n[r]=function(){return l(this,arguments)},ke(n[r],c)}}return c}function ev(e,r,t){let n=null;function o(c){let f=c.data;return f.args[f.cbIdx]=function(){c.invoke.apply(this,arguments)},n.apply(f.target,f.args),c}n=qe(e,r,c=>function(f,l){let _=t(f,l);return _.cbIdx>=0&&typeof l[_.cbIdx]=="function"?Mt(_.name,l[_.cbIdx],_,o):c.apply(f,l)})}function ke(e,r){e[Z("OriginalDelegate")]=r}var Vs=!1,Rt=!1;function rv(){if(Vs)return Rt;Vs=!0;try{let e=Ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Rt=!0)}catch{}return Rt}function zs(e){return typeof e=="function"}function Ws(e){return typeof e=="number"}var tv={useG:!0},le={},ea={},ra=new RegExp("^"+We+"(\\w+)(true|false)$"),ta=Z("propagationStopped");function na(e,r){let t=(r?r(e):e)+Oe,n=(r?r(e):e)+me,o=We+t,c=We+n;le[e]={},le[e][Oe]=o,le[e][me]=c}function nv(e,r,t,n){let o=n&&n.add||jt,c=n&&n.rm||Nt,f=n&&n.listeners||"eventListeners",l=n&&n.rmAll||"removeAllListeners",_=Z(o),q="."+o+":",y="prependListener",w="."+y+":",M=function(m,p,A){if(m.isRemoved)return;let G=m.callback;typeof G=="object"&&G.handleEvent&&(m.callback=E=>G.handleEvent(E),m.originalDelegate=G);let K;try{m.invoke(m,p,[A])}catch(E){K=E}let B=m.options;if(B&&typeof B=="object"&&B.once){let E=m.originalDelegate?m.originalDelegate:m.callback;p[c].call(p,A.type,E,B)}return K};function F(m,p,A){if(p=p||e.event,!p)return;let G=m||p.target||e,K=G[le[p.type][A?me:Oe]];if(K){let B=[];if(K.length===1){let E=M(K[0],G,p);E&&B.push(E)}else{let E=K.slice();for(let V=0;V<E.length&&!(p&&p[ta]===!0);V++){let D=M(E[V],G,p);D&&B.push(D)}}if(B.length===1)throw B[0];for(let E=0;E<B.length;E++){let V=B[E];r.nativeScheduleMicroTask(()=>{throw V})}}}let $=function(m){return F(this,m,!1)},Q=function(m){return F(this,m,!0)};function ee(m,p){if(!m)return!1;let A=!0;p&&p.useG!==void 0&&(A=p.useG);let G=p&&p.vh,K=!0;p&&p.chkDup!==void 0&&(K=p.chkDup);let B=!1;p&&p.rt!==void 0&&(B=p.rt);let E=m;for(;E&&!E.hasOwnProperty(o);)E=It(E);if(!E&&m[o]&&(E=m),!E||E[_])return!1;let V=p&&p.eventNameToString,D={},S=E[_]=E[o],k=E[Z(c)]=E[c],C=E[Z(f)]=E[f],te=E[Z(l)]=E[l],z;p&&p.prepend&&(z=E[Z(p.prepend)]=E[p.prepend]);function I(a,v){return v?typeof a=="boolean"?{capture:a,passive:!0}:a?typeof a=="object"&&a.passive!==!1?{...a,passive:!0}:a:{passive:!0}:a}let T=function(a){if(!D.isExisting)return S.call(D.target,D.eventName,D.capture?Q:$,D.options)},i=function(a){if(!a.isRemoved){let v=le[a.eventName],O;v&&(O=v[a.capture?me:Oe]);let R=O&&a.target[O];if(R){for(let g=0;g<R.length;g++)if(R[g]===a){R.splice(g,1),a.isRemoved=!0,a.removeAbortListener&&(a.removeAbortListener(),a.removeAbortListener=null),R.length===0&&(a.allRemoved=!0,a.target[O]=null);break}}}if(a.allRemoved)return k.call(a.target,a.eventName,a.capture?Q:$,a.options)},s=function(a){return S.call(D.target,D.eventName,a.invoke,D.options)},b=function(a){return z.call(D.target,D.eventName,a.invoke,D.options)},P=function(a){return k.call(a.target,a.eventName,a.invoke,a.options)},W=A?T:s,L=A?i:P,Pe=function(a,v){let O=typeof v;return O==="function"&&a.callback===v||O==="object"&&a.originalDelegate===v},ge=p?.diff||Pe,be=Zone[Z("UNPATCHED_EVENTS")],fe=e[Z("PASSIVE_EVENTS")];function d(a){if(typeof a=="object"&&a!==null){let v={...a};return a.signal&&(v.signal=a.signal),v}return a}let h=function(a,v,O,R,g=!1,j=!1){return function(){let N=this||e,x=arguments[0];p&&p.transferEventName&&(x=p.transferEventName(x));let H=arguments[1];if(!H)return a.apply(this,arguments);if(Or&&x==="uncaughtException")return a.apply(this,arguments);let U=!1;if(typeof H!="function"){if(!H.handleEvent)return a.apply(this,arguments);U=!0}if(G&&!G(a,H,N,arguments))return;let we=!!fe&&fe.indexOf(x)!==-1,_e=d(I(arguments[2],we)),Ie=_e?.signal;if(Ie?.aborted)return;if(be){for(let Te=0;Te<be.length;Te++)if(x===be[Te])return we?a.call(N,x,H,_e):a.apply(this,arguments)}let qr=_e?typeof _e=="boolean"?!0:_e.capture:!1,Zt=_e&&typeof _e=="object"?_e.once:!1,aa=Zone.current,kr=le[x];kr||(na(x,V),kr=le[x]);let Ft=kr[qr?me:Oe],je=N[Ft],Gt=!1;if(je){if(Gt=!0,K){for(let Te=0;Te<je.length;Te++)if(ge(je[Te],H))return}}else je=N[Ft]=[];let Ke,Bt=N.constructor.name,Ht=ea[Bt];Ht&&(Ke=Ht[x]),Ke||(Ke=Bt+v+(V?V(x):x)),D.options=_e,Zt&&(D.options.once=!1),D.target=N,D.capture=qr,D.eventName=x,D.isExisting=Gt;let Le=A?tv:void 0;Le&&(Le.taskData=D),Ie&&(D.options.signal=void 0);let he=aa.scheduleEventTask(Ke,H,Le,O,R);if(Ie){D.options.signal=Ie;let Te=()=>he.zone.cancelTask(he);a.call(Ie,"abort",Te,{once:!0}),he.removeAbortListener=()=>Ie.removeEventListener("abort",Te)}if(D.target=null,Le&&(Le.taskData=null),Zt&&(D.options.once=!0),typeof he.options!="boolean"&&(he.options=_e),he.target=N,he.capture=qr,he.eventName=x,U&&(he.originalDelegate=H),j?je.unshift(he):je.push(he),g)return N}};return E[o]=h(S,q,W,L,B),z&&(E[y]=h(z,w,b,L,B,!0)),E[c]=function(){let a=this||e,v=arguments[0];p&&p.transferEventName&&(v=p.transferEventName(v));let O=arguments[2],R=O?typeof O=="boolean"?!0:O.capture:!1,g=arguments[1];if(!g)return k.apply(this,arguments);if(G&&!G(k,g,a,arguments))return;let j=le[v],N;j&&(N=j[R?me:Oe]);let x=N&&a[N];if(x)for(let H=0;H<x.length;H++){let U=x[H];if(ge(U,g)){if(x.splice(H,1),U.isRemoved=!0,x.length===0&&(U.allRemoved=!0,a[N]=null,!R&&typeof v=="string")){let we=We+"ON_PROPERTY"+v;a[we]=null}return U.zone.cancelTask(U),B?a:void 0}}return k.apply(this,arguments)},E[f]=function(){let a=this||e,v=arguments[0];p&&p.transferEventName&&(v=p.transferEventName(v));let O=[],R=oa(a,V?V(v):v);for(let g=0;g<R.length;g++){let j=R[g],N=j.originalDelegate?j.originalDelegate:j.callback;O.push(N)}return O},E[l]=function(){let a=this||e,v=arguments[0];if(v){p&&p.transferEventName&&(v=p.transferEventName(v));let O=le[v];if(O){let R=O[Oe],g=O[me],j=a[R],N=a[g];if(j){let x=j.slice();for(let H=0;H<x.length;H++){let U=x[H],we=U.originalDelegate?U.originalDelegate:U.callback;this[c].call(this,v,we,U.options)}}if(N){let x=N.slice();for(let H=0;H<x.length;H++){let U=x[H],we=U.originalDelegate?U.originalDelegate:U.callback;this[c].call(this,v,we,U.options)}}}}else{let O=Object.keys(a);for(let R=0;R<O.length;R++){let g=O[R],j=ra.exec(g),N=j&&j[1];N&&N!=="removeListener"&&this[l].call(this,N)}this[l].call(this,"removeListener")}if(B)return this},ke(E[o],S),ke(E[c],k),te&&ke(E[l],te),C&&ke(E[f],C),!0}let Y=[];for(let m=0;m<t.length;m++)Y[m]=ee(t[m],n);return Y}function oa(e,r){if(!r){let c=[];for(let f in e){let l=ra.exec(f),_=l&&l[1];if(_&&(!r||_===r)){let q=e[f];if(q)for(let y=0;y<q.length;y++)c.push(q[y])}}return c}let t=le[r];t||(na(r),t=le[r]);let n=e[t[Oe]],o=e[t[me]];return n?o?n.concat(o):n.slice():o?o.slice():[]}function ov(e,r){let t=e.Event;t&&t.prototype&&r.patchMethod(t.prototype,"stopImmediatePropagation",n=>function(o,c){o[ta]=!0,n&&n.apply(o,c)})}function iv(e,r){r.patchMethod(e,"queueMicrotask",t=>function(n,o){Zone.current.scheduleMicroTask("queueMicrotask",o[0])})}var gr=Z("zoneTask");function Me(e,r,t,n){let o=null,c=null;r+=n,t+=n;let f={};function l(q){let y=q.data;y.args[0]=function(){return q.invoke.apply(this,arguments)};let w=o.apply(e,y.args);return Ws(w)?y.handleId=w:(y.handle=w,y.isRefreshable=zs(w.refresh)),q}function _(q){let{handle:y,handleId:w}=q.data;return c.call(e,y??w)}o=qe(e,r,q=>function(y,w){if(zs(w[0])){let M={isRefreshable:!1,isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?w[1]||0:void 0,args:w},F=w[0];w[0]=function(){try{return F.apply(this,arguments)}finally{let{handle:A,handleId:G,isPeriodic:K,isRefreshable:B}=M;!K&&!B&&(G?delete f[G]:A&&(A[gr]=null))}};let $=Mt(r,w[0],M,l,_);if(!$)return $;let{handleId:Q,handle:ee,isRefreshable:Y,isPeriodic:m}=$.data;if(Q)f[Q]=$;else if(ee&&(ee[gr]=$,Y&&!m)){let p=ee.refresh;ee.refresh=function(){let{zone:A,state:G}=$;return G==="notScheduled"?($._state="scheduled",A._updateTaskCount($,1)):G==="running"&&($._state="scheduling"),p.call(this)}}return ee??Q??$}else return q.apply(e,w)}),c=qe(e,t,q=>function(y,w){let M=w[0],F;Ws(M)?(F=f[M],delete f[M]):(F=M?.[gr],F?M[gr]=null:F=M),F?.type?F.cancelFn&&F.zone.cancelTask(F):q.apply(e,w)})}function sv(e,r){let{isBrowser:t,isMix:n}=r.getGlobalObjects();if(!t&&!n||!e.customElements||!("customElements"in e))return;let o=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];r.patchCallbacks(r,e.customElements,"customElements","define",o)}function av(e,r){if(Zone[r.symbol("patchEventTarget")])return;let{eventNames:t,zoneSymbolEventNames:n,TRUE_STR:o,FALSE_STR:c,ZONE_SYMBOL_PREFIX:f}=r.getGlobalObjects();for(let _=0;_<t.length;_++){let q=t[_],y=q+c,w=q+o,M=f+y,F=f+w;n[q]={},n[q][c]=M,n[q][o]=F}let l=e.EventTarget;if(!(!l||!l.prototype))return r.patchEventTarget(e,r,[l&&l.prototype]),!0}function cv(e,r){r.patchEventPrototype(e,r)}function ia(e,r,t){if(!t||t.length===0)return r;let n=t.filter(c=>c.target===e);if(n.length===0)return r;let o=n[0].ignoreProperties;return r.filter(c=>o.indexOf(c)===-1)}function Ys(e,r,t,n){if(!e)return;let o=ia(e,r,t);Qs(e,o,n)}function Ct(e){return Object.getOwnPropertyNames(e).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function uv(e,r){if(Or&&!Js||Zone[e.symbol("patchEvents")])return;let t=r.__Zone_ignore_on_properties,n=[];if(At){let o=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let c=[];Ys(o,Ct(o),t&&t.concat(c),It(o))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let o=0;o<n.length;o++){let c=r[n[o]];c?.prototype&&Ys(c.prototype,Ct(c.prototype),t)}}function lv(e){e.__load_patch("legacy",r=>{let t=r[e.__symbol__("legacyPatch")];t&&t()}),e.__load_patch("timers",r=>{let n="clear";Me(r,"set",n,"Timeout"),Me(r,"set",n,"Interval"),Me(r,"set",n,"Immediate")}),e.__load_patch("requestAnimationFrame",r=>{Me(r,"request","cancel","AnimationFrame"),Me(r,"mozRequest","mozCancel","AnimationFrame"),Me(r,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(r,t)=>{let n=["alert","prompt","confirm"];for(let o=0;o<n.length;o++){let c=n[o];qe(r,c,(f,l,_)=>function(q,y){return t.current.run(f,r,y,_)})}}),e.__load_patch("EventTarget",(r,t,n)=>{cv(r,n),av(r,n);let o=r.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(r,n,[o.prototype])}),e.__load_patch("MutationObserver",(r,t,n)=>{Ve("MutationObserver"),Ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(r,t,n)=>{Ve("IntersectionObserver")}),e.__load_patch("FileReader",(r,t,n)=>{Ve("FileReader")}),e.__load_patch("on_property",(r,t,n)=>{uv(n,r)}),e.__load_patch("customElements",(r,t,n)=>{sv(r,n)}),e.__load_patch("XHR",(r,t)=>{q(r);let n=Z("xhrTask"),o=Z("xhrSync"),c=Z("xhrListener"),f=Z("xhrScheduled"),l=Z("xhrURL"),_=Z("xhrErrorBeforeScheduled");function q(y){let w=y.XMLHttpRequest;if(!w)return;let M=w.prototype;function F(S){return S[n]}let $=M[wt],Q=M[St];if(!$){let S=y.XMLHttpRequestEventTarget;if(S){let k=S.prototype;$=k[wt],Q=k[St]}}let ee="readystatechange",Y="scheduled";function m(S){let k=S.data,C=k.target;C[f]=!1,C[_]=!1;let te=C[c];$||($=C[wt],Q=C[St]),te&&Q.call(C,ee,te);let z=C[c]=()=>{if(C.readyState===C.DONE)if(!k.aborted&&C[f]&&S.state===Y){let T=C[t.__symbol__("loadfalse")];if(C.status!==0&&T&&T.length>0){let i=S.invoke;S.invoke=function(){let s=C[t.__symbol__("loadfalse")];for(let b=0;b<s.length;b++)s[b]===S&&s.splice(b,1);!k.aborted&&S.state===Y&&i.call(S)},T.push(S)}else S.invoke()}else!k.aborted&&C[f]===!1&&(C[_]=!0)};return $.call(C,ee,z),C[n]||(C[n]=S),V.apply(C,k.args),C[f]=!0,S}function p(){}function A(S){let k=S.data;return k.aborted=!0,D.apply(k.target,k.args)}let G=qe(M,"open",()=>function(S,k){return S[o]=k[2]==!1,S[l]=k[1],G.apply(S,k)}),K="XMLHttpRequest.send",B=Z("fetchTaskAborting"),E=Z("fetchTaskScheduling"),V=qe(M,"send",()=>function(S,k){if(t.current[E]===!0||S[o])return V.apply(S,k);{let C={target:S,url:S[l],isPeriodic:!1,args:k,aborted:!1},te=Mt(K,p,C,m,A);S&&S[_]===!0&&!C.aborted&&te.state===Y&&te.invoke()}}),D=qe(M,"abort",()=>function(S,k){let C=F(S);if(C&&typeof C.type=="string"){if(C.cancelFn==null||C.data&&C.data.aborted)return;C.zone.cancelTask(C)}else if(t.current[B]===!0)return D.apply(S,k)})}}),e.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&Jh(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(r,t)=>{function n(o){return function(c){oa(r,o).forEach(l=>{let _=r.PromiseRejectionEvent;if(_){let q=new _(o,{promise:c.promise,reason:c.rejection});l.invoke(q)}})}}r.PromiseRejectionEvent&&(t[Z("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[Z("rejectionHandledHandler")]=n("rejectionhandled"))}),e.__load_patch("queueMicrotask",(r,t,n)=>{iv(r,n)})}function fv(e){e.__load_patch("ZoneAwarePromise",(r,t,n)=>{let o=Object.getOwnPropertyDescriptor,c=Object.defineProperty;function f(d){if(d&&d.toString===Object.prototype.toString){let h=d.constructor&&d.constructor.name;return(h||"")+": "+JSON.stringify(d)}return d?d.toString():Object.prototype.toString.call(d)}let l=n.symbol,_=[],q=r[l("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,y=l("Promise"),w=l("then"),M="__creationTrace__";n.onUnhandledError=d=>{if(n.showUncaughtError()){let h=d&&d.rejection;h?console.error("Unhandled Promise rejection:",h instanceof Error?h.message:h,"; Zone:",d.zone.name,"; Task:",d.task&&d.task.source,"; Value:",h,h instanceof Error?h.stack:void 0):console.error(d)}},n.microtaskDrainDone=()=>{for(;_.length;){let d=_.shift();try{d.zone.runGuarded(()=>{throw d.throwOriginal?d.rejection:d})}catch(h){$(h)}}};let F=l("unhandledPromiseRejectionHandler");function $(d){n.onUnhandledError(d);try{let h=t[F];typeof h=="function"&&h.call(this,d)}catch{}}function Q(d){return d&&typeof d.then=="function"}function ee(d){return d}function Y(d){return L.reject(d)}let m=l("state"),p=l("value"),A=l("finally"),G=l("parentPromiseValue"),K=l("parentPromiseState"),B="Promise.then",E=null,V=!0,D=!1,S=0;function k(d,h){return a=>{try{I(d,h,a)}catch(v){I(d,!1,v)}}}let C=function(){let d=!1;return function(a){return function(){d||(d=!0,a.apply(null,arguments))}}},te="Promise resolved with itself",z=l("currentTaskTrace");function I(d,h,a){let v=C();if(d===a)throw new TypeError(te);if(d[m]===E){let O=null;try{(typeof a=="object"||typeof a=="function")&&(O=a&&a.then)}catch(R){return v(()=>{I(d,!1,R)})(),d}if(h!==D&&a instanceof L&&a.hasOwnProperty(m)&&a.hasOwnProperty(p)&&a[m]!==E)i(a),I(d,a[m],a[p]);else if(h!==D&&typeof O=="function")try{O.call(a,v(k(d,h)),v(k(d,!1)))}catch(R){v(()=>{I(d,!1,R)})()}else{d[m]=h;let R=d[p];if(d[p]=a,d[A]===A&&h===V&&(d[m]=d[K],d[p]=d[G]),h===D&&a instanceof Error){let g=t.currentTask&&t.currentTask.data&&t.currentTask.data[M];g&&c(a,z,{configurable:!0,enumerable:!1,writable:!0,value:g})}for(let g=0;g<R.length;)s(d,R[g++],R[g++],R[g++],R[g++]);if(R.length==0&&h==D){d[m]=S;let g=a;try{throw new Error("Uncaught (in promise): "+f(a)+(a&&a.stack?`
1
+ var ca=Object.create;var Ut=Object.defineProperty;var ua=Object.getOwnPropertyDescriptor;var la=Object.getOwnPropertyNames;var fa=Object.getPrototypeOf,ha=Object.prototype.hasOwnProperty;var u=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var va=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of la(r))!ha.call(e,o)&&o!==t&&Ut(e,o,{get:()=>r[o],enumerable:!(n=ua(r,o))||n.enumerable});return e};var da=(e,r,t)=>(t=e!=null?ca(fa(e)):{},va(r||!e||!e.__esModule?Ut(t,"default",{value:e,enumerable:!0}):t,e));var oe=u((Pr,$t)=>{"use strict";var Ae=function(e){return e&&e.Math===Math&&e};$t.exports=Ae(typeof globalThis=="object"&&globalThis)||Ae(typeof window=="object"&&window)||Ae(typeof self=="object"&&self)||Ae(typeof global=="object"&&global)||Ae(typeof Pr=="object"&&Pr)||(function(){return this})()||Function("return this")()});var zt=u((_v,Vt)=>{"use strict";Vt.exports=!1});var Xe=u((Tv,Yt)=>{"use strict";var Wt=oe(),pa=Object.defineProperty;Yt.exports=function(e,r){try{pa(Wt,e,{value:r,configurable:!0,writable:!0})}catch{Wt[e]=r}return r}});var Je=u((Ev,Jt)=>{"use strict";var ya=zt(),_a=oe(),Ta=Xe(),Kt="__core-js_shared__",Xt=Jt.exports=_a[Kt]||Ta(Kt,{});(Xt.versions||(Xt.versions=[])).push({version:"3.47.0",mode:ya?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var wr=u((gv,en)=>{"use strict";var Qt=Je();en.exports=function(e,r){return Qt[e]||(Qt[e]=r||{})}});var J=u((bv,rn)=>{"use strict";rn.exports=function(e){try{return!!e()}catch{return!0}}});var Ze=u((mv,tn)=>{"use strict";var Ea=J();tn.exports=!Ea(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ie=u((Ov,sn)=>{"use strict";var nn=Ze(),on=Function.prototype,Sr=on.call,ga=nn&&on.bind.bind(Sr,Sr);sn.exports=nn?ga:function(e){return function(){return Sr.apply(e,arguments)}}});var Rr=u((qv,an)=>{"use strict";an.exports=function(e){return e==null}});var Qe=u((kv,cn)=>{"use strict";var ba=Rr(),ma=TypeError;cn.exports=function(e){if(ba(e))throw new ma("Can't call method on "+e);return e}});var Cr=u((Pv,un)=>{"use strict";var Oa=Qe(),qa=Object;un.exports=function(e){return qa(Oa(e))}});var ce=u((wv,ln)=>{"use strict";var ka=ie(),Pa=Cr(),wa=ka({}.hasOwnProperty);ln.exports=Object.hasOwn||function(r,t){return wa(Pa(r),t)}});var Dr=u((Sv,fn)=>{"use strict";var Sa=ie(),Ra=0,Ca=Math.random(),Da=Sa(1.1.toString);fn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Da(++Ra+Ca,36)}});var pn=u((Rv,dn)=>{"use strict";var Ia=oe(),hn=Ia.navigator,vn=hn&&hn.userAgent;dn.exports=vn?String(vn):""});var mn=u((Cv,bn)=>{"use strict";var gn=oe(),Ir=pn(),yn=gn.process,_n=gn.Deno,Tn=yn&&yn.versions||_n&&_n.version,En=Tn&&Tn.v8,ve,er;En&&(ve=En.split("."),er=ve[0]>0&&ve[0]<4?1:+(ve[0]+ve[1]));!er&&Ir&&(ve=Ir.match(/Edge\/(\d+)/),(!ve||ve[1]>=74)&&(ve=Ir.match(/Chrome\/(\d+)/),ve&&(er=+ve[1])));bn.exports=er});var jr=u((Dv,qn)=>{"use strict";var On=mn(),ja=J(),Na=oe(),xa=Na.String;qn.exports=!!Object.getOwnPropertySymbols&&!ja(function(){var e=Symbol("symbol detection");return!xa(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&On&&On<41})});var Nr=u((Iv,kn)=>{"use strict";var Ma=jr();kn.exports=Ma&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Fe=u((jv,wn)=>{"use strict";var La=oe(),Aa=wr(),Pn=ce(),Za=Dr(),Fa=jr(),Ga=Nr(),Ne=La.Symbol,xr=Aa("wks"),Ba=Ga?Ne.for||Ne:Ne&&Ne.withoutSetter||Za;wn.exports=function(e){return Pn(xr,e)||(xr[e]=Fa&&Pn(Ne,e)?Ne[e]:Ba("Symbol."+e)),xr[e]}});var rr=u((Nv,Rn)=>{"use strict";var Ha=Fe(),Ua=Ha("toStringTag"),Sn={};Sn[Ua]="z";Rn.exports=String(Sn)==="[object z]"});var se=u((xv,Cn)=>{"use strict";var Mr=typeof document=="object"&&document.all;Cn.exports=typeof Mr>"u"&&Mr!==void 0?function(e){return typeof e=="function"||e===Mr}:function(e){return typeof e=="function"}});var de=u((Mv,Dn)=>{"use strict";var $a=J();Dn.exports=!$a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var ae=u((Lv,In)=>{"use strict";var Va=se();In.exports=function(e){return typeof e=="object"?e!==null:Va(e)}});var Ar=u((Av,Nn)=>{"use strict";var za=oe(),jn=ae(),Lr=za.document,Wa=jn(Lr)&&jn(Lr.createElement);Nn.exports=function(e){return Wa?Lr.createElement(e):{}}});var Zr=u((Zv,xn)=>{"use strict";var Ya=de(),Ka=J(),Xa=Ar();xn.exports=!Ya&&!Ka(function(){return Object.defineProperty(Xa("div"),"a",{get:function(){return 7}}).a!==7})});var Fr=u((Fv,Mn)=>{"use strict";var Ja=de(),Qa=J();Mn.exports=Ja&&Qa(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var re=u((Gv,Ln)=>{"use strict";var ec=ae(),rc=String,tc=TypeError;Ln.exports=function(e){if(ec(e))return e;throw new tc(rc(e)+" is not an object")}});var xe=u((Bv,An)=>{"use strict";var nc=Ze(),tr=Function.prototype.call;An.exports=nc?tr.bind(tr):function(){return tr.apply(tr,arguments)}});var Re=u((Hv,Zn)=>{"use strict";var Gr=oe(),oc=se(),ic=function(e){return oc(e)?e:void 0};Zn.exports=function(e,r){return arguments.length<2?ic(Gr[e]):Gr[e]&&Gr[e][r]}});var Gn=u((Uv,Fn)=>{"use strict";var sc=ie();Fn.exports=sc({}.isPrototypeOf)});var Br=u(($v,Bn)=>{"use strict";var ac=Re(),cc=se(),uc=Gn(),lc=Nr(),fc=Object;Bn.exports=lc?function(e){return typeof e=="symbol"}:function(e){var r=ac("Symbol");return cc(r)&&uc(r.prototype,fc(e))}});var Hr=u((Vv,Hn)=>{"use strict";var hc=String;Hn.exports=function(e){try{return hc(e)}catch{return"Object"}}});var Ge=u((zv,Un)=>{"use strict";var vc=se(),dc=Hr(),pc=TypeError;Un.exports=function(e){if(vc(e))return e;throw new pc(dc(e)+" is not a function")}});var Vn=u((Wv,$n)=>{"use strict";var yc=Ge(),_c=Rr();$n.exports=function(e,r){var t=e[r];return _c(t)?void 0:yc(t)}});var Wn=u((Yv,zn)=>{"use strict";var Ur=xe(),$r=se(),Vr=ae(),Tc=TypeError;zn.exports=function(e,r){var t,n;if(r==="string"&&$r(t=e.toString)&&!Vr(n=Ur(t,e))||$r(t=e.valueOf)&&!Vr(n=Ur(t,e))||r!=="string"&&$r(t=e.toString)&&!Vr(n=Ur(t,e)))return n;throw new Tc("Can't convert object to primitive value")}});var Jn=u((Kv,Xn)=>{"use strict";var Ec=xe(),Yn=ae(),Kn=Br(),gc=Vn(),bc=Wn(),mc=Fe(),Oc=TypeError,qc=mc("toPrimitive");Xn.exports=function(e,r){if(!Yn(e)||Kn(e))return e;var t=gc(e,qc),n;if(t){if(r===void 0&&(r="default"),n=Ec(t,e,r),!Yn(n)||Kn(n))return n;throw new Oc("Can't convert object to primitive value")}return r===void 0&&(r="number"),bc(e,r)}});var nr=u((Xv,Qn)=>{"use strict";var kc=Jn(),Pc=Br();Qn.exports=function(e){var r=kc(e,"string");return Pc(r)?r:r+""}});var Se=u(ro=>{"use strict";var wc=de(),Sc=Zr(),Rc=Fr(),or=re(),eo=nr(),Cc=TypeError,zr=Object.defineProperty,Dc=Object.getOwnPropertyDescriptor,Wr="enumerable",Yr="configurable",Kr="writable";ro.f=wc?Rc?function(r,t,n){if(or(r),t=eo(t),or(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Kr in n&&!n[Kr]){var o=Dc(r,t);o&&o[Kr]&&(r[t]=n.value,n={configurable:Yr in n?n[Yr]:o[Yr],enumerable:Wr in n?n[Wr]:o[Wr],writable:!1})}return zr(r,t,n)}:zr:function(r,t,n){if(or(r),t=eo(t),or(n),Sc)try{return zr(r,t,n)}catch{}if("get"in n||"set"in n)throw new Cc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var oo=u((Qv,no)=>{"use strict";var Xr=de(),Ic=ce(),to=Function.prototype,jc=Xr&&Object.getOwnPropertyDescriptor,Jr=Ic(to,"name"),Nc=Jr&&(function(){}).name==="something",xc=Jr&&(!Xr||Xr&&jc(to,"name").configurable);no.exports={EXISTS:Jr,PROPER:Nc,CONFIGURABLE:xc}});var et=u((ed,io)=>{"use strict";var Mc=ie(),Lc=se(),Qr=Je(),Ac=Mc(Function.toString);Lc(Qr.inspectSource)||(Qr.inspectSource=function(e){return Ac(e)});io.exports=Qr.inspectSource});var co=u((rd,ao)=>{"use strict";var Zc=oe(),Fc=se(),so=Zc.WeakMap;ao.exports=Fc(so)&&/native code/.test(String(so))});var ir=u((td,uo)=>{"use strict";uo.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var rt=u((nd,lo)=>{"use strict";var Gc=de(),Bc=Se(),Hc=ir();lo.exports=Gc?function(e,r,t){return Bc.f(e,r,Hc(1,t))}:function(e,r,t){return e[r]=t,e}});var sr=u((od,ho)=>{"use strict";var Uc=wr(),$c=Dr(),fo=Uc("keys");ho.exports=function(e){return fo[e]||(fo[e]=$c(e))}});var ar=u((id,vo)=>{"use strict";vo.exports={}});var To=u((sd,_o)=>{"use strict";var Vc=co(),yo=oe(),zc=ae(),Wc=rt(),tt=ce(),nt=Je(),Yc=sr(),Kc=ar(),po="Object already initialized",ot=yo.TypeError,Xc=yo.WeakMap,cr,Be,ur,Jc=function(e){return ur(e)?Be(e):cr(e,{})},Qc=function(e){return function(r){var t;if(!zc(r)||(t=Be(r)).type!==e)throw new ot("Incompatible receiver, "+e+" required");return t}};Vc||nt.state?(pe=nt.state||(nt.state=new Xc),pe.get=pe.get,pe.has=pe.has,pe.set=pe.set,cr=function(e,r){if(pe.has(e))throw new ot(po);return r.facade=e,pe.set(e,r),r},Be=function(e){return pe.get(e)||{}},ur=function(e){return pe.has(e)}):(Ce=Yc("state"),Kc[Ce]=!0,cr=function(e,r){if(tt(e,Ce))throw new ot(po);return r.facade=e,Wc(e,Ce,r),r},Be=function(e){return tt(e,Ce)?e[Ce]:{}},ur=function(e){return tt(e,Ce)});var pe,Ce;_o.exports={set:cr,get:Be,has:ur,enforce:Jc,getterFor:Qc}});var mo=u((ad,bo)=>{"use strict";var st=ie(),eu=J(),ru=se(),lr=ce(),it=de(),tu=oo().CONFIGURABLE,nu=et(),go=To(),ou=go.enforce,iu=go.get,Eo=String,fr=Object.defineProperty,su=st("".slice),au=st("".replace),cu=st([].join),uu=it&&!eu(function(){return fr(function(){},"length",{value:8}).length!==8}),lu=String(String).split("String"),fu=bo.exports=function(e,r,t){su(Eo(r),0,7)==="Symbol("&&(r="["+au(Eo(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(r="get "+r),t&&t.setter&&(r="set "+r),(!lr(e,"name")||tu&&e.name!==r)&&(it?fr(e,"name",{value:r,configurable:!0}):e.name=r),uu&&t&&lr(t,"arity")&&e.length!==t.arity&&fr(e,"length",{value:t.arity});try{t&&lr(t,"constructor")&&t.constructor?it&&fr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=ou(e);return lr(n,"source")||(n.source=cu(lu,typeof r=="string"?r:"")),e};Function.prototype.toString=fu(function(){return ru(this)&&iu(this).source||nu(this)},"toString")});var at=u((cd,Oo)=>{"use strict";var hu=se(),vu=Se(),du=mo(),pu=Xe();Oo.exports=function(e,r,t,n){n||(n={});var o=n.enumerable,c=n.name!==void 0?n.name:r;if(hu(t)&&du(t,c,n),n.global)o?e[r]=t:pu(r,t);else{try{n.unsafe?e[r]&&(o=!0):delete e[r]}catch{}o?e[r]=t:vu.f(e,r,{value:t,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}});var hr=u((ud,ko)=>{"use strict";var qo=ie(),yu=qo({}.toString),_u=qo("".slice);ko.exports=function(e){return _u(yu(e),8,-1)}});var ct=u((ld,Po)=>{"use strict";var Tu=rr(),Eu=se(),vr=hr(),gu=Fe(),bu=gu("toStringTag"),mu=Object,Ou=vr((function(){return arguments})())==="Arguments",qu=function(e,r){try{return e[r]}catch{}};Po.exports=Tu?vr:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=qu(r=mu(e),bu))=="string"?t:Ou?vr(r):(n=vr(r))==="Object"&&Eu(r.callee)?"Arguments":n}});var So=u((fd,wo)=>{"use strict";var ku=rr(),Pu=ct();wo.exports=ku?{}.toString:function(){return"[object "+Pu(this)+"]"}});var Ro=u(()=>{"use strict";var wu=rr(),Su=at(),Ru=So();wu||Su(Object.prototype,"toString",Ru,{unsafe:!0})});var jo=u(Io=>{"use strict";var Co={}.propertyIsEnumerable,Do=Object.getOwnPropertyDescriptor,Cu=Do&&!Co.call({1:2},1);Io.f=Cu?function(r){var t=Do(this,r);return!!t&&t.enumerable}:Co});var xo=u((pd,No)=>{"use strict";var Du=ie(),Iu=J(),ju=hr(),ut=Object,Nu=Du("".split);No.exports=Iu(function(){return!ut("z").propertyIsEnumerable(0)})?function(e){return ju(e)==="String"?Nu(e,""):ut(e)}:ut});var He=u((yd,Mo)=>{"use strict";var xu=xo(),Mu=Qe();Mo.exports=function(e){return xu(Mu(e))}});var De=u(Ao=>{"use strict";var Lu=de(),Au=xe(),Zu=jo(),Fu=ir(),Gu=He(),Bu=nr(),Hu=ce(),Uu=Zr(),Lo=Object.getOwnPropertyDescriptor;Ao.f=Lu?Lo:function(r,t){if(r=Gu(r),t=Bu(t),Uu)try{return Lo(r,t)}catch{}if(Hu(r,t))return Fu(!Au(Zu.f,r,t),r[t])}});var Fo=u((Td,Zo)=>{"use strict";var $u=Math.ceil,Vu=Math.floor;Zo.exports=Math.trunc||function(r){var t=+r;return(t>0?Vu:$u)(t)}});var lt=u((Ed,Go)=>{"use strict";var zu=Fo();Go.exports=function(e){var r=+e;return r!==r||r===0?0:zu(r)}});var Ho=u((gd,Bo)=>{"use strict";var Wu=lt(),Yu=Math.max,Ku=Math.min;Bo.exports=function(e,r){var t=Wu(e);return t<0?Yu(t+r,0):Ku(t,r)}});var $o=u((bd,Uo)=>{"use strict";var Xu=lt(),Ju=Math.min;Uo.exports=function(e){var r=Xu(e);return r>0?Ju(r,9007199254740991):0}});var zo=u((md,Vo)=>{"use strict";var Qu=$o();Vo.exports=function(e){return Qu(e.length)}});var Ko=u((Od,Yo)=>{"use strict";var el=He(),rl=Ho(),tl=zo(),Wo=function(e){return function(r,t,n){var o=el(r),c=tl(o);if(c===0)return!e&&-1;var f=rl(n,c),l;if(e&&t!==t){for(;c>f;)if(l=o[f++],l!==l)return!0}else for(;c>f;f++)if((e||f in o)&&o[f]===t)return e||f||0;return!e&&-1}};Yo.exports={includes:Wo(!0),indexOf:Wo(!1)}});var ht=u((qd,Jo)=>{"use strict";var nl=ie(),ft=ce(),ol=He(),il=Ko().indexOf,sl=ar(),Xo=nl([].push);Jo.exports=function(e,r){var t=ol(e),n=0,o=[],c;for(c in t)!ft(sl,c)&&ft(t,c)&&Xo(o,c);for(;r.length>n;)ft(t,c=r[n++])&&(~il(o,c)||Xo(o,c));return o}});var dr=u((kd,Qo)=>{"use strict";Qo.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var ri=u(ei=>{"use strict";var al=ht(),cl=dr(),ul=cl.concat("length","prototype");ei.f=Object.getOwnPropertyNames||function(r){return al(r,ul)}});var ni=u(ti=>{"use strict";ti.f=Object.getOwnPropertySymbols});var vt=u((Sd,oi)=>{"use strict";var ll=Re(),fl=ie(),hl=ri(),vl=ni(),dl=re(),pl=fl([].concat);oi.exports=ll("Reflect","ownKeys")||function(r){var t=hl.f(dl(r)),n=vl.f;return n?pl(t,n(r)):t}});var ai=u((Rd,si)=>{"use strict";var ii=ce(),yl=vt(),_l=De(),Tl=Se();si.exports=function(e,r,t){for(var n=yl(r),o=Tl.f,c=_l.f,f=0;f<n.length;f++){var l=n[f];!ii(e,l)&&!(t&&ii(t,l))&&o(e,l,c(r,l))}}});var ui=u((Cd,ci)=>{"use strict";var El=J(),gl=se(),bl=/#|\.prototype\./,Ue=function(e,r){var t=Ol[ml(e)];return t===kl?!0:t===ql?!1:gl(r)?El(r):!!r},ml=Ue.normalize=function(e){return String(e).replace(bl,".").toLowerCase()},Ol=Ue.data={},ql=Ue.NATIVE="N",kl=Ue.POLYFILL="P";ci.exports=Ue});var ne=u((Dd,li)=>{"use strict";var pr=oe(),Pl=De().f,wl=rt(),Sl=at(),Rl=Xe(),Cl=ai(),Dl=ui();li.exports=function(e,r){var t=e.target,n=e.global,o=e.stat,c,f,l,_,q,y;if(n?f=pr:o?f=pr[t]||Rl(t,{}):f=pr[t]&&pr[t].prototype,f)for(l in r){if(q=r[l],e.dontCallGetSet?(y=Pl(f,l),_=y&&y.value):_=f[l],c=Dl(n?l:t+(o?".":"#")+l,e.forced),!c&&_!==void 0){if(typeof q==typeof _)continue;Cl(q,_)}(e.sham||_&&_.sham)&&wl(q,"sham",!0),Sl(f,l,q,e)}}});var dt=u((Id,di)=>{"use strict";var Il=Ze(),vi=Function.prototype,fi=vi.apply,hi=vi.call;di.exports=typeof Reflect=="object"&&Reflect.apply||(Il?hi.bind(fi):function(){return hi.apply(fi,arguments)})});var pi=u(()=>{"use strict";var jl=ne(),Nl=dt(),xl=Ge(),Ml=re(),Ll=J(),Al=!Ll(function(){Reflect.apply(function(){})});jl({target:"Reflect",stat:!0,forced:Al},{apply:function(r,t,n){return Nl(xl(r),t,Ml(n))}})});var _i=u((xd,yi)=>{"use strict";var Zl=ie();yi.exports=Zl([].slice)});var mi=u((Md,bi)=>{"use strict";var Ei=ie(),Fl=Ge(),Gl=ae(),Bl=ce(),Ti=_i(),Hl=Ze(),gi=Function,Ul=Ei([].concat),$l=Ei([].join),pt={},Vl=function(e,r,t){if(!Bl(pt,r)){for(var n=[],o=0;o<r;o++)n[o]="a["+o+"]";pt[r]=gi("C,a","return new C("+$l(n,",")+")")}return pt[r](e,t)};bi.exports=Hl?gi.bind:function(r){var t=Fl(this),n=t.prototype,o=Ti(arguments,1),c=function(){var l=Ul(o,Ti(arguments));return this instanceof c?Vl(t,l.length,l):t.apply(r,l)};return Gl(n)&&(c.prototype=n),c}});var Si=u((Ld,wi)=>{"use strict";var zl=ie(),Wl=J(),Oi=se(),Yl=ct(),Kl=Re(),Xl=et(),qi=function(){},ki=Kl("Reflect","construct"),yt=/^\s*(?:class|function)\b/,Jl=zl(yt.exec),Ql=!yt.test(qi),$e=function(r){if(!Oi(r))return!1;try{return ki(qi,[],r),!0}catch{return!1}},Pi=function(r){if(!Oi(r))return!1;switch(Yl(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ql||!!Jl(yt,Xl(r))}catch{return!0}};Pi.sham=!0;wi.exports=!ki||Wl(function(){var e;return $e($e.call)||!$e(Object)||!$e(function(){e=!0})||e})?Pi:$e});var Ci=u((Ad,Ri)=>{"use strict";var ef=Si(),rf=Hr(),tf=TypeError;Ri.exports=function(e){if(ef(e))return e;throw new tf(rf(e)+" is not a constructor")}});var Ii=u((Zd,Di)=>{"use strict";var nf=ht(),of=dr();Di.exports=Object.keys||function(r){return nf(r,of)}});var Ni=u(ji=>{"use strict";var sf=de(),af=Fr(),cf=Se(),uf=re(),lf=He(),ff=Ii();ji.f=sf&&!af?Object.defineProperties:function(r,t){uf(r);for(var n=lf(t),o=ff(t),c=o.length,f=0,l;c>f;)cf.f(r,l=o[f++],n[l]);return r}});var Mi=u((Gd,xi)=>{"use strict";var hf=Re();xi.exports=hf("document","documentElement")});var Ui=u((Bd,Hi)=>{"use strict";var vf=re(),df=Ni(),Li=dr(),pf=ar(),yf=Mi(),_f=Ar(),Tf=sr(),Ai=">",Zi="<",Tt="prototype",Et="script",Gi=Tf("IE_PROTO"),_t=function(){},Bi=function(e){return Zi+Et+Ai+e+Zi+"/"+Et+Ai},Fi=function(e){e.write(Bi("")),e.close();var r=e.parentWindow.Object;return e=null,r},Ef=function(){var e=_f("iframe"),r="java"+Et+":",t;return e.style.display="none",yf.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Bi("document.F=Object")),t.close(),t.F},yr,_r=function(){try{yr=new ActiveXObject("htmlfile")}catch{}_r=typeof document<"u"?document.domain&&yr?Fi(yr):Ef():Fi(yr);for(var e=Li.length;e--;)delete _r[Tt][Li[e]];return _r()};pf[Gi]=!0;Hi.exports=Object.create||function(r,t){var n;return r!==null?(_t[Tt]=vf(r),n=new _t,_t[Tt]=null,n[Gi]=r):n=_r(),t===void 0?n:df.f(n,t)}});var Xi=u(()=>{"use strict";var gf=ne(),bf=Re(),gt=dt(),mf=mi(),$i=Ci(),Of=re(),Vi=ae(),qf=Ui(),Wi=J(),bt=bf("Reflect","construct"),kf=Object.prototype,Pf=[].push,Yi=Wi(function(){function e(){}return!(bt(function(){},[],e)instanceof e)}),Ki=!Wi(function(){bt(function(){})}),zi=Yi||Ki;gf({target:"Reflect",stat:!0,forced:zi,sham:zi},{construct:function(r,t){$i(r),Of(t);var n=arguments.length<3?r:$i(arguments[2]);if(Ki&&!Yi)return bt(r,t,n);if(r===n){switch(t.length){case 0:return new r;case 1:return new r(t[0]);case 2:return new r(t[0],t[1]);case 3:return new r(t[0],t[1],t[2]);case 4:return new r(t[0],t[1],t[2],t[3])}var o=[null];return gt(Pf,o,t),new(gt(mf,r,o))}var c=n.prototype,f=qf(Vi(c)?c:kf),l=gt(r,f,t);return Vi(l)?l:f}})});var es=u(()=>{"use strict";var wf=ne(),Sf=de(),Ji=re(),Rf=nr(),Qi=Se(),Cf=J(),Df=Cf(function(){Reflect.defineProperty(Qi.f({},1,{value:1}),1,{value:2})});wf({target:"Reflect",stat:!0,forced:Df,sham:!Sf},{defineProperty:function(r,t,n){Ji(r);var o=Rf(t);Ji(n);try{return Qi.f(r,o,n),!0}catch{return!1}}})});var rs=u(()=>{"use strict";var If=ne(),jf=re(),Nf=De().f;If({target:"Reflect",stat:!0},{deleteProperty:function(r,t){var n=Nf(jf(r),t);return n&&!n.configurable?!1:delete r[t]}})});var mt=u((Yd,ns)=>{"use strict";var ts=ce();ns.exports=function(e){return e!==void 0&&(ts(e,"value")||ts(e,"writable"))}});var Ot=u((Kd,os)=>{"use strict";var xf=J();os.exports=!xf(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Tr=u((Xd,ss)=>{"use strict";var Mf=ce(),Lf=se(),Af=Cr(),Zf=sr(),Ff=Ot(),is=Zf("IE_PROTO"),qt=Object,Gf=qt.prototype;ss.exports=Ff?qt.getPrototypeOf:function(e){var r=Af(e);if(Mf(r,is))return r[is];var t=r.constructor;return Lf(t)&&r instanceof t?t.prototype:r instanceof qt?Gf:null}});var cs=u(()=>{"use strict";var Bf=ne(),Hf=xe(),Uf=ae(),$f=re(),Vf=mt(),zf=De(),Wf=Tr();function as(e,r){var t=arguments.length<3?e:arguments[2],n,o;if($f(e)===t)return e[r];if(n=zf.f(e,r),n)return Vf(n)?n.value:n.get===void 0?void 0:Hf(n.get,t);if(Uf(o=Wf(e)))return as(o,r,t)}Bf({target:"Reflect",stat:!0},{get:as})});var us=u(()=>{"use strict";var Yf=ne(),Kf=de(),Xf=re(),Jf=De();Yf({target:"Reflect",stat:!0,sham:!Kf},{getOwnPropertyDescriptor:function(r,t){return Jf.f(Xf(r),t)}})});var ls=u(()=>{"use strict";var Qf=ne(),eh=re(),rh=Tr(),th=Ot();Qf({target:"Reflect",stat:!0,sham:!th},{getPrototypeOf:function(r){return rh(eh(r))}})});var fs=u(()=>{"use strict";var nh=ne();nh({target:"Reflect",stat:!0},{has:function(r,t){return t in r}})});var vs=u((sp,hs)=>{"use strict";var oh=J();hs.exports=oh(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var ys=u((ap,ps)=>{"use strict";var ih=J(),sh=ae(),ah=hr(),ds=vs(),Er=Object.isExtensible,ch=ih(function(){Er(1)});ps.exports=ch||ds?function(r){return!sh(r)||ds&&ah(r)==="ArrayBuffer"?!1:Er?Er(r):!0}:Er});var _s=u(()=>{"use strict";var uh=ne(),lh=re(),fh=ys();uh({target:"Reflect",stat:!0},{isExtensible:function(r){return lh(r),fh(r)}})});var Ts=u(()=>{"use strict";var hh=ne(),vh=vt();hh({target:"Reflect",stat:!0},{ownKeys:vh})});var gs=u((hp,Es)=>{"use strict";var dh=J();Es.exports=!dh(function(){return Object.isExtensible(Object.preventExtensions({}))})});var bs=u(()=>{"use strict";var ph=ne(),yh=Re(),_h=re(),Th=gs();ph({target:"Reflect",stat:!0,sham:!Th},{preventExtensions:function(r){_h(r);try{var t=yh("Object","preventExtensions");return t&&t(r),!0}catch{return!1}}})});var Ps=u(()=>{"use strict";var Eh=ne(),gh=xe(),bh=re(),ms=ae(),mh=mt(),Oh=J(),kt=Se(),Os=De(),qh=Tr(),qs=ir();function ks(e,r,t){var n=arguments.length<4?e:arguments[3],o=Os.f(bh(e),r),c,f,l;if(!o){if(ms(f=qh(e)))return ks(f,r,t,n);o=qs(0)}if(mh(o)){if(o.writable===!1||!ms(n))return!1;if(c=Os.f(n,r)){if(c.get||c.set||c.writable===!1)return!1;c.value=t,kt.f(n,r,c)}else kt.f(n,r,qs(0,t))}else{if(l=o.set,l===void 0)return!1;gh(l,n,t)}return!0}var kh=Oh(function(){var e=function(){},r=kt.f(new e,"a",{configurable:!0});return Reflect.set(e.prototype,"a",1,r)!==!1});Eh({target:"Reflect",stat:!0,forced:kh},{set:ks})});var Ss=u((_p,ws)=>{"use strict";var Ph=ae();ws.exports=function(e){return Ph(e)||e===null}});var Pt=u((Tp,Rs)=>{"use strict";var wh=Ss(),Sh=String,Rh=TypeError;Rs.exports=function(e){if(wh(e))return e;throw new Rh("Can't set "+Sh(e)+" as a prototype")}});var Ds=u((Ep,Cs)=>{"use strict";var Ch=ie(),Dh=Ge();Cs.exports=function(e,r,t){try{return Ch(Dh(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}}});var js=u((gp,Is)=>{"use strict";var Ih=Ds(),jh=ae(),Nh=Qe(),xh=Pt();Is.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var e=!1,r={},t;try{t=Ih(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(o,c){return Nh(o),xh(c),jh(o)&&(e?t(o,c):o.__proto__=c),o}})():void 0)});var xs=u(()=>{"use strict";var Mh=ne(),Lh=re(),Ah=Pt(),Ns=js();Ns&&Mh({target:"Reflect",stat:!0},{setPrototypeOf:function(r,t){Lh(r),Ah(t);try{return Ns(r,t),!0}catch{return!1}}})});var As=u((Op,Ls)=>{"use strict";var Zh=Se().f,Fh=ce(),Gh=Fe(),Ms=Gh("toStringTag");Ls.exports=function(e,r,t){e&&!t&&(e=e.prototype),e&&!Fh(e,Ms)&&Zh(e,Ms,{configurable:!0,value:r})}});var Zs=u(()=>{"use strict";var Bh=ne(),Hh=oe(),Uh=As();Bh({global:!0},{Reflect:{}});Uh(Hh.Reflect,"Reflect",!0)});var Gs=u((Pp,Fs)=>{"use strict";var $h=oe();Fs.exports=$h});var Hs=u((wp,Bs)=>{"use strict";Ro();pi();Xi();es();rs();cs();us();ls();fs();_s();Ts();bs();Ps();xs();Zs();var Vh=Gs();Bs.exports=Vh.Reflect});var Sp=da(Hs());var Ee=globalThis;function ue(e){return(Ee.__Zone_symbol_prefix||"__zone_symbol__")+e}function zh(){let e=Ee.performance;function r(I){e&&e.mark&&e.mark(I)}function t(I,T){e&&e.measure&&e.measure(I,T)}r("Zone");let n=(()=>{class I{static __symbol__=ue;static assertZonePatched(){if(Ee.Promise!==D.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let i=I.current;for(;i.parent;)i=i.parent;return i}static get current(){return k.zone}static get currentTask(){return C}static __load_patch(i,s,b=!1){if(D.hasOwnProperty(i)){let P=Ee[ue("forceDuplicateZoneCheck")]===!0;if(!b&&P)throw Error("Already loaded patch: "+i)}else if(!Ee["__Zone_disable_"+i]){let P="Zone:"+i;r(P),D[i]=s(Ee,I,S),t(P,P)}}get parent(){return this._parent}get name(){return this._name}_parent;_name;_properties;_zoneDelegate;constructor(i,s){this._parent=i,this._name=s?s.name||"unnamed":"<root>",this._properties=s&&s.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,s)}get(i){let s=this.getZoneWith(i);if(s)return s._properties[i]}getZoneWith(i){let s=this;for(;s;){if(s._properties.hasOwnProperty(i))return s;s=s._parent}return null}fork(i){if(!i)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,i)}wrap(i,s){if(typeof i!="function")throw new Error("Expecting function got: "+i);let b=this._zoneDelegate.intercept(this,i,s),P=this;return function(){return P.runGuarded(b,this,arguments,s)}}run(i,s,b,P){k={parent:k,zone:this};try{return this._zoneDelegate.invoke(this,i,s,b,P)}finally{k=k.parent}}runGuarded(i,s=null,b,P){k={parent:k,zone:this};try{try{return this._zoneDelegate.invoke(this,i,s,b,P)}catch(W){if(this._zoneDelegate.handleError(this,W))throw W}}finally{k=k.parent}}runTask(i,s,b){if(i.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(i.zone||ee).name+"; Execution: "+this.name+")");let P=i,{type:W,data:{isPeriodic:L=!1,isRefreshable:Pe=!1}={}}=i;if(i.state===Y&&(W===V||W===E))return;let ge=i.state!=A;ge&&P._transitionTo(A,p);let be=C;C=P,k={parent:k,zone:this};try{W==E&&i.data&&!L&&!Pe&&(i.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,P,s,b)}catch(fe){if(this._zoneDelegate.handleError(this,fe))throw fe}}finally{let fe=i.state;if(fe!==Y&&fe!==K)if(W==V||L||Pe&&fe===m)ge&&P._transitionTo(p,A,m);else{let d=P._zoneDelegates;this._updateTaskCount(P,-1),ge&&P._transitionTo(Y,A,Y),Pe&&(P._zoneDelegates=d)}k=k.parent,C=be}}scheduleTask(i){if(i.zone&&i.zone!==this){let b=this;for(;b;){if(b===i.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${i.zone.name}`);b=b.parent}}i._transitionTo(m,Y);let s=[];i._zoneDelegates=s,i._zone=this;try{i=this._zoneDelegate.scheduleTask(this,i)}catch(b){throw i._transitionTo(K,m,Y),this._zoneDelegate.handleError(this,b),b}return i._zoneDelegates===s&&this._updateTaskCount(i,1),i.state==m&&i._transitionTo(p,m),i}scheduleMicroTask(i,s,b,P){return this.scheduleTask(new f(B,i,s,b,P,void 0))}scheduleMacroTask(i,s,b,P,W){return this.scheduleTask(new f(E,i,s,b,P,W))}scheduleEventTask(i,s,b,P,W){return this.scheduleTask(new f(V,i,s,b,P,W))}cancelTask(i){if(i.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(i.zone||ee).name+"; Execution: "+this.name+")");if(!(i.state!==p&&i.state!==A)){i._transitionTo(G,p,A);try{this._zoneDelegate.cancelTask(this,i)}catch(s){throw i._transitionTo(K,G),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(i,-1),i._transitionTo(Y,G),i.runCount=-1,i}}_updateTaskCount(i,s){let b=i._zoneDelegates;s==-1&&(i._zoneDelegates=null);for(let P=0;P<b.length;P++)b[P]._updateTaskCount(i.type,s)}}return I})(),o={name:"",onHasTask:(I,T,i,s)=>I.hasTask(i,s),onScheduleTask:(I,T,i,s)=>I.scheduleTask(i,s),onInvokeTask:(I,T,i,s,b,P)=>I.invokeTask(i,s,b,P),onCancelTask:(I,T,i,s)=>I.cancelTask(i,s)};class c{get zone(){return this._zone}_zone;_taskCounts={microTask:0,macroTask:0,eventTask:0};_parentDelegate;_forkDlgt;_forkZS;_forkCurrZone;_interceptDlgt;_interceptZS;_interceptCurrZone;_invokeDlgt;_invokeZS;_invokeCurrZone;_handleErrorDlgt;_handleErrorZS;_handleErrorCurrZone;_scheduleTaskDlgt;_scheduleTaskZS;_scheduleTaskCurrZone;_invokeTaskDlgt;_invokeTaskZS;_invokeTaskCurrZone;_cancelTaskDlgt;_cancelTaskZS;_cancelTaskCurrZone;_hasTaskDlgt;_hasTaskDlgtOwner;_hasTaskZS;_hasTaskCurrZone;constructor(T,i,s){this._zone=T,this._parentDelegate=i,this._forkZS=s&&(s&&s.onFork?s:i._forkZS),this._forkDlgt=s&&(s.onFork?i:i._forkDlgt),this._forkCurrZone=s&&(s.onFork?this._zone:i._forkCurrZone),this._interceptZS=s&&(s.onIntercept?s:i._interceptZS),this._interceptDlgt=s&&(s.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=s&&(s.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=s&&(s.onInvoke?s:i._invokeZS),this._invokeDlgt=s&&(s.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=s&&(s.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=s&&(s.onHandleError?s:i._handleErrorZS),this._handleErrorDlgt=s&&(s.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=s&&(s.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=s&&(s.onScheduleTask?s:i._scheduleTaskZS),this._scheduleTaskDlgt=s&&(s.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=s&&(s.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=s&&(s.onInvokeTask?s:i._invokeTaskZS),this._invokeTaskDlgt=s&&(s.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=s&&(s.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=s&&(s.onCancelTask?s:i._cancelTaskZS),this._cancelTaskDlgt=s&&(s.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=s&&(s.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let b=s&&s.onHasTask,P=i&&i._hasTaskZS;(b||P)&&(this._hasTaskZS=b?s:o,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,s.onScheduleTask||(this._scheduleTaskZS=o,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),s.onInvokeTask||(this._invokeTaskZS=o,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),s.onCancelTask||(this._cancelTaskZS=o,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(T,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,i):new n(T,i)}intercept(T,i,s){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,i,s):i}invoke(T,i,s,b,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,i,s,b,P):i.apply(s,b)}handleError(T,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,i):!0}scheduleTask(T,i){let s=i;if(this._scheduleTaskZS)this._hasTaskZS&&s._zoneDelegates.push(this._hasTaskDlgtOwner),s=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,i),s||(s=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==B)$(i);else throw new Error("Task is missing scheduleFn.");return s}invokeTask(T,i,s,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,i,s,b):i.callback.apply(s,b)}cancelTask(T,i){let s;if(this._cancelTaskZS)s=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");s=i.cancelFn(i)}return s}hasTask(T,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,i)}catch(s){this.handleError(T,s)}}_updateTaskCount(T,i){let s=this._taskCounts,b=s[T],P=s[T]=b+i;if(P<0)throw new Error("More tasks executed then were scheduled.");if(b==0||P==0){let W={microTask:s.microTask>0,macroTask:s.macroTask>0,eventTask:s.eventTask>0,change:T};this.hasTask(this._zone,W)}}}class f{type;source;invoke;callback;data;scheduleFn;cancelFn;_zone=null;runCount=0;_zoneDelegates=null;_state="notScheduled";constructor(T,i,s,b,P,W){if(this.type=T,this.source=i,this.data=b,this.scheduleFn=P,this.cancelFn=W,!s)throw new Error("callback is not defined");this.callback=s;let L=this;T===V&&b&&b.useG?this.invoke=f.invokeTask:this.invoke=function(){return f.invokeTask.call(Ee,L,this,arguments)}}static invokeTask(T,i,s){T||(T=this),te++;try{return T.runCount++,T.zone.runTask(T,i,s)}finally{te==1&&Q(),te--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Y,m)}_transitionTo(T,i,s){if(this._state===i||this._state===s)this._state=T,T==Y&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${i}'${s?" or '"+s+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let l=ue("setTimeout"),_=ue("Promise"),q=ue("then"),y=[],w=!1,M;function F(I){if(M||Ee[_]&&(M=Ee[_].resolve(0)),M){let T=M[q];T||(T=M.then),T.call(M,I)}else Ee[l](I,0)}function $(I){te===0&&y.length===0&&F(Q),I&&y.push(I)}function Q(){if(!w){for(w=!0;y.length;){let I=y;y=[];for(let T=0;T<I.length;T++){let i=I[T];try{i.zone.runTask(i,null,null)}catch(s){S.onUnhandledError(s)}}}S.microtaskDrainDone(),w=!1}}let ee={name:"NO ZONE"},Y="notScheduled",m="scheduling",p="scheduled",A="running",G="canceling",K="unknown",B="microTask",E="macroTask",V="eventTask",D={},S={symbol:ue,currentZoneFrame:()=>k,onUnhandledError:z,microtaskDrainDone:z,scheduleMicroTask:$,showUncaughtError:()=>!n[ue("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:z,patchMethod:()=>z,bindArguments:()=>[],patchThen:()=>z,patchMacroTask:()=>z,patchEventPrototype:()=>z,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>z,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>z,wrapWithCurrentZone:()=>z,filterProperties:()=>[],attachOriginToPatched:()=>z,_redefineProperty:()=>z,patchCallbacks:()=>z,nativeScheduleMicroTask:F},k={parent:null,zone:new n(null,null)},C=null,te=0;function z(){}return t("Zone","Zone"),n}function Wh(){let e=globalThis,r=e[ue("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(r||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=zh(),e.Zone}var ze=Object.getOwnPropertyDescriptor,Dt=Object.defineProperty,It=Object.getPrototypeOf,Yh=Object.create,Kh=Array.prototype.slice,jt="addEventListener",Nt="removeEventListener",wt=ue(jt),St=ue(Nt),me="true",Oe="false",We=ue("");function xt(e,r){return Zone.current.wrap(e,r)}function Mt(e,r,t,n,o){return Zone.current.scheduleMacroTask(e,r,t,n,o)}var Z=ue,mr=typeof window<"u",Ye=mr?window:void 0,X=mr&&Ye||globalThis,Xh="removeAttribute";function Lt(e,r){for(let t=e.length-1;t>=0;t--)typeof e[t]=="function"&&(e[t]=xt(e[t],r+"_"+t));return e}function Jh(e,r){let t=e.constructor.name;for(let n=0;n<r.length;n++){let o=r[n],c=e[o];if(c){let f=ze(e,o);if(!Ks(f))continue;e[o]=(l=>{let _=function(){return l.apply(this,Lt(arguments,t+"."+o))};return ke(_,l),_})(c)}}}function Ks(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var Xs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Or=!("nw"in X)&&typeof X.process<"u"&&X.process.toString()==="[object process]",At=!Or&&!Xs&&!!(mr&&Ye.HTMLElement),Js=typeof X.process<"u"&&X.process.toString()==="[object process]"&&!Xs&&!!(mr&&Ye.HTMLElement),br={},Qh=Z("enable_beforeunload"),Us=function(e){if(e=e||X.event,!e)return;let r=br[e.type];r||(r=br[e.type]=Z("ON_PROPERTY"+e.type));let t=this||e.target||X,n=t[r],o;if(At&&t===Ye&&e.type==="error"){let c=e;o=n&&n.call(this,c.message,c.filename,c.lineno,c.colno,c.error),o===!0&&e.preventDefault()}else o=n&&n.apply(this,arguments),e.type==="beforeunload"&&X[Qh]&&typeof o=="string"?e.returnValue=o:o!=null&&!o&&e.preventDefault();return o};function $s(e,r,t){let n=ze(e,r);if(!n&&t&&ze(t,r)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let o=Z("on"+r+"patched");if(e.hasOwnProperty(o)&&e[o])return;delete n.writable,delete n.value;let c=n.get,f=n.set,l=r.slice(2),_=br[l];_||(_=br[l]=Z("ON_PROPERTY"+l)),n.set=function(q){let y=this;if(!y&&e===X&&(y=X),!y)return;typeof y[_]=="function"&&y.removeEventListener(l,Us),f?.call(y,null),y[_]=q,typeof q=="function"&&y.addEventListener(l,Us,!1)},n.get=function(){let q=this;if(!q&&e===X&&(q=X),!q)return null;let y=q[_];if(y)return y;if(c){let w=c.call(this);if(w)return n.set.call(this,w),typeof q[Xh]=="function"&&q.removeAttribute(r),w}return null},Dt(e,r,n),e[o]=!0}function Qs(e,r,t){if(r)for(let n=0;n<r.length;n++)$s(e,"on"+r[n],t);else{let n=[];for(let o in e)o.slice(0,2)=="on"&&n.push(o);for(let o=0;o<n.length;o++)$s(e,n[o],t)}}var ye=Z("originalInstance");function Ve(e){let r=X[e];if(!r)return;X[Z(e)]=r,X[e]=function(){let o=Lt(arguments,e);switch(o.length){case 0:this[ye]=new r;break;case 1:this[ye]=new r(o[0]);break;case 2:this[ye]=new r(o[0],o[1]);break;case 3:this[ye]=new r(o[0],o[1],o[2]);break;case 4:this[ye]=new r(o[0],o[1],o[2],o[3]);break;default:throw new Error("Arg list too long.")}},ke(X[e],r);let t=new r(function(){}),n;for(n in t)e==="XMLHttpRequest"&&n==="responseBlob"||(function(o){typeof t[o]=="function"?X[e].prototype[o]=function(){return this[ye][o].apply(this[ye],arguments)}:Dt(X[e].prototype,o,{set:function(c){typeof c=="function"?(this[ye][o]=xt(c,e+"."+o),ke(this[ye][o],c)):this[ye][o]=c},get:function(){return this[ye][o]}})})(n);for(n in r)n!=="prototype"&&r.hasOwnProperty(n)&&(X[e][n]=r[n])}function qe(e,r,t){let n=e;for(;n&&!n.hasOwnProperty(r);)n=It(n);!n&&e[r]&&(n=e);let o=Z(r),c=null;if(n&&(!(c=n[o])||!n.hasOwnProperty(o))){c=n[o]=n[r];let f=n&&ze(n,r);if(Ks(f)){let l=t(c,o,r);n[r]=function(){return l(this,arguments)},ke(n[r],c)}}return c}function ev(e,r,t){let n=null;function o(c){let f=c.data;return f.args[f.cbIdx]=function(){c.invoke.apply(this,arguments)},n.apply(f.target,f.args),c}n=qe(e,r,c=>function(f,l){let _=t(f,l);return _.cbIdx>=0&&typeof l[_.cbIdx]=="function"?Mt(_.name,l[_.cbIdx],_,o):c.apply(f,l)})}function ke(e,r){e[Z("OriginalDelegate")]=r}var Vs=!1,Rt=!1;function rv(){if(Vs)return Rt;Vs=!0;try{let e=Ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Rt=!0)}catch{}return Rt}function zs(e){return typeof e=="function"}function Ws(e){return typeof e=="number"}var tv={useG:!0},le={},ea={},ra=new RegExp("^"+We+"(\\w+)(true|false)$"),ta=Z("propagationStopped");function na(e,r){let t=(r?r(e):e)+Oe,n=(r?r(e):e)+me,o=We+t,c=We+n;le[e]={},le[e][Oe]=o,le[e][me]=c}function nv(e,r,t,n){let o=n&&n.add||jt,c=n&&n.rm||Nt,f=n&&n.listeners||"eventListeners",l=n&&n.rmAll||"removeAllListeners",_=Z(o),q="."+o+":",y="prependListener",w="."+y+":",M=function(m,p,A){if(m.isRemoved)return;let G=m.callback;typeof G=="object"&&G.handleEvent&&(m.callback=E=>G.handleEvent(E),m.originalDelegate=G);let K;try{m.invoke(m,p,[A])}catch(E){K=E}let B=m.options;if(B&&typeof B=="object"&&B.once){let E=m.originalDelegate?m.originalDelegate:m.callback;p[c].call(p,A.type,E,B)}return K};function F(m,p,A){if(p=p||e.event,!p)return;let G=m||p.target||e,K=G[le[p.type][A?me:Oe]];if(K){let B=[];if(K.length===1){let E=M(K[0],G,p);E&&B.push(E)}else{let E=K.slice();for(let V=0;V<E.length&&!(p&&p[ta]===!0);V++){let D=M(E[V],G,p);D&&B.push(D)}}if(B.length===1)throw B[0];for(let E=0;E<B.length;E++){let V=B[E];r.nativeScheduleMicroTask(()=>{throw V})}}}let $=function(m){return F(this,m,!1)},Q=function(m){return F(this,m,!0)};function ee(m,p){if(!m)return!1;let A=!0;p&&p.useG!==void 0&&(A=p.useG);let G=p&&p.vh,K=!0;p&&p.chkDup!==void 0&&(K=p.chkDup);let B=!1;p&&p.rt!==void 0&&(B=p.rt);let E=m;for(;E&&!E.hasOwnProperty(o);)E=It(E);if(!E&&m[o]&&(E=m),!E||E[_])return!1;let V=p&&p.eventNameToString,D={},S=E[_]=E[o],k=E[Z(c)]=E[c],C=E[Z(f)]=E[f],te=E[Z(l)]=E[l],z;p&&p.prepend&&(z=E[Z(p.prepend)]=E[p.prepend]);function I(a,v){return v?typeof a=="boolean"?{capture:a,passive:!0}:a?typeof a=="object"&&a.passive!==!1?{...a,passive:!0}:a:{passive:!0}:a}let T=function(a){if(!D.isExisting)return S.call(D.target,D.eventName,D.capture?Q:$,D.options)},i=function(a){if(!a.isRemoved){let v=le[a.eventName],O;v&&(O=v[a.capture?me:Oe]);let R=O&&a.target[O];if(R){for(let g=0;g<R.length;g++)if(R[g]===a){R.splice(g,1),a.isRemoved=!0,a.removeAbortListener&&(a.removeAbortListener(),a.removeAbortListener=null),R.length===0&&(a.allRemoved=!0,a.target[O]=null);break}}}if(a.allRemoved)return k.call(a.target,a.eventName,a.capture?Q:$,a.options)},s=function(a){return S.call(D.target,D.eventName,a.invoke,D.options)},b=function(a){return z.call(D.target,D.eventName,a.invoke,D.options)},P=function(a){return k.call(a.target,a.eventName,a.invoke,a.options)},W=A?T:s,L=A?i:P,Pe=function(a,v){let O=typeof v;return O==="function"&&a.callback===v||O==="object"&&a.originalDelegate===v},ge=p?.diff||Pe,be=Zone[Z("UNPATCHED_EVENTS")],fe=e[Z("PASSIVE_EVENTS")];function d(a){if(typeof a=="object"&&a!==null){let v={...a};return a.signal&&(v.signal=a.signal),v}return a}let h=function(a,v,O,R,g=!1,j=!1){return function(){let N=this||e,x=arguments[0];p&&p.transferEventName&&(x=p.transferEventName(x));let H=arguments[1];if(!H)return a.apply(this,arguments);if(Or&&x==="uncaughtException")return a.apply(this,arguments);let U=!1;if(typeof H!="function"){if(!H.handleEvent)return a.apply(this,arguments);U=!0}if(G&&!G(a,H,N,arguments))return;let we=!!fe&&fe.indexOf(x)!==-1,_e=d(I(arguments[2],we)),Ie=_e?.signal;if(Ie?.aborted)return;if(be){for(let Te=0;Te<be.length;Te++)if(x===be[Te])return we?a.call(N,x,H,_e):a.apply(this,arguments)}let qr=_e?typeof _e=="boolean"?!0:_e.capture:!1,Zt=_e&&typeof _e=="object"?_e.once:!1,aa=Zone.current,kr=le[x];kr||(na(x,V),kr=le[x]);let Ft=kr[qr?me:Oe],je=N[Ft],Gt=!1;if(je){if(Gt=!0,K){for(let Te=0;Te<je.length;Te++)if(ge(je[Te],H))return}}else je=N[Ft]=[];let Ke,Bt=N.constructor.name,Ht=ea[Bt];Ht&&(Ke=Ht[x]),Ke||(Ke=Bt+v+(V?V(x):x)),D.options=_e,Zt&&(D.options.once=!1),D.target=N,D.capture=qr,D.eventName=x,D.isExisting=Gt;let Le=A?tv:void 0;Le&&(Le.taskData=D),Ie&&(D.options.signal=void 0);let he=aa.scheduleEventTask(Ke,H,Le,O,R);if(Ie){D.options.signal=Ie;let Te=()=>he.zone.cancelTask(he);a.call(Ie,"abort",Te,{once:!0}),he.removeAbortListener=()=>Ie.removeEventListener("abort",Te)}if(D.target=null,Le&&(Le.taskData=null),Zt&&(D.options.once=!0),typeof he.options!="boolean"&&(he.options=_e),he.target=N,he.capture=qr,he.eventName=x,U&&(he.originalDelegate=H),j?je.unshift(he):je.push(he),g)return N}};return E[o]=h(S,q,W,L,B),z&&(E[y]=h(z,w,b,L,B,!0)),E[c]=function(){let a=this||e,v=arguments[0];p&&p.transferEventName&&(v=p.transferEventName(v));let O=arguments[2],R=O?typeof O=="boolean"?!0:O.capture:!1,g=arguments[1];if(!g)return k.apply(this,arguments);if(G&&!G(k,g,a,arguments))return;let j=le[v],N;j&&(N=j[R?me:Oe]);let x=N&&a[N];if(x)for(let H=0;H<x.length;H++){let U=x[H];if(ge(U,g)){if(x.splice(H,1),U.isRemoved=!0,x.length===0&&(U.allRemoved=!0,a[N]=null,!R&&typeof v=="string")){let we=We+"ON_PROPERTY"+v;a[we]=null}return U.zone.cancelTask(U),B?a:void 0}}return k.apply(this,arguments)},E[f]=function(){let a=this||e,v=arguments[0];p&&p.transferEventName&&(v=p.transferEventName(v));let O=[],R=oa(a,V?V(v):v);for(let g=0;g<R.length;g++){let j=R[g],N=j.originalDelegate?j.originalDelegate:j.callback;O.push(N)}return O},E[l]=function(){let a=this||e,v=arguments[0];if(v){p&&p.transferEventName&&(v=p.transferEventName(v));let O=le[v];if(O){let R=O[Oe],g=O[me],j=a[R],N=a[g];if(j){let x=j.slice();for(let H=0;H<x.length;H++){let U=x[H],we=U.originalDelegate?U.originalDelegate:U.callback;this[c].call(this,v,we,U.options)}}if(N){let x=N.slice();for(let H=0;H<x.length;H++){let U=x[H],we=U.originalDelegate?U.originalDelegate:U.callback;this[c].call(this,v,we,U.options)}}}}else{let O=Object.keys(a);for(let R=0;R<O.length;R++){let g=O[R],j=ra.exec(g),N=j&&j[1];N&&N!=="removeListener"&&this[l].call(this,N)}this[l].call(this,"removeListener")}if(B)return this},ke(E[o],S),ke(E[c],k),te&&ke(E[l],te),C&&ke(E[f],C),!0}let Y=[];for(let m=0;m<t.length;m++)Y[m]=ee(t[m],n);return Y}function oa(e,r){if(!r){let c=[];for(let f in e){let l=ra.exec(f),_=l&&l[1];if(_&&(!r||_===r)){let q=e[f];if(q)for(let y=0;y<q.length;y++)c.push(q[y])}}return c}let t=le[r];t||(na(r),t=le[r]);let n=e[t[Oe]],o=e[t[me]];return n?o?n.concat(o):n.slice():o?o.slice():[]}function ov(e,r){let t=e.Event;t&&t.prototype&&r.patchMethod(t.prototype,"stopImmediatePropagation",n=>function(o,c){o[ta]=!0,n&&n.apply(o,c)})}function iv(e,r){r.patchMethod(e,"queueMicrotask",t=>function(n,o){Zone.current.scheduleMicroTask("queueMicrotask",o[0])})}var gr=Z("zoneTask");function Me(e,r,t,n){let o=null,c=null;r+=n,t+=n;let f={};function l(q){let y=q.data;y.args[0]=function(){return q.invoke.apply(this,arguments)};let w=o.apply(e,y.args);return Ws(w)?y.handleId=w:(y.handle=w,y.isRefreshable=zs(w.refresh)),q}function _(q){let{handle:y,handleId:w}=q.data;return c.call(e,y??w)}o=qe(e,r,q=>function(y,w){if(zs(w[0])){let M={isRefreshable:!1,isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?w[1]||0:void 0,args:w},F=w[0];w[0]=function(){try{return F.apply(this,arguments)}finally{let{handle:A,handleId:G,isPeriodic:K,isRefreshable:B}=M;!K&&!B&&(G?delete f[G]:A&&(A[gr]=null))}};let $=Mt(r,w[0],M,l,_);if(!$)return $;let{handleId:Q,handle:ee,isRefreshable:Y,isPeriodic:m}=$.data;if(Q)f[Q]=$;else if(ee&&(ee[gr]=$,Y&&!m)){let p=ee.refresh;ee.refresh=function(){let{zone:A,state:G}=$;return G==="notScheduled"?($._state="scheduled",A._updateTaskCount($,1)):G==="running"&&($._state="scheduling"),p.call(this)}}return ee??Q??$}else return q.apply(e,w)}),c=qe(e,t,q=>function(y,w){let M=w[0],F;Ws(M)?(F=f[M],delete f[M]):(F=M?.[gr],F?M[gr]=null:F=M),F?.type?F.cancelFn&&F.zone.cancelTask(F):q.apply(e,w)})}function sv(e,r){let{isBrowser:t,isMix:n}=r.getGlobalObjects();if(!t&&!n||!e.customElements||!("customElements"in e))return;let o=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];r.patchCallbacks(r,e.customElements,"customElements","define",o)}function av(e,r){if(Zone[r.symbol("patchEventTarget")])return;let{eventNames:t,zoneSymbolEventNames:n,TRUE_STR:o,FALSE_STR:c,ZONE_SYMBOL_PREFIX:f}=r.getGlobalObjects();for(let _=0;_<t.length;_++){let q=t[_],y=q+c,w=q+o,M=f+y,F=f+w;n[q]={},n[q][c]=M,n[q][o]=F}let l=e.EventTarget;if(!(!l||!l.prototype))return r.patchEventTarget(e,r,[l&&l.prototype]),!0}function cv(e,r){r.patchEventPrototype(e,r)}function ia(e,r,t){if(!t||t.length===0)return r;let n=t.filter(c=>c.target===e);if(n.length===0)return r;let o=n[0].ignoreProperties;return r.filter(c=>o.indexOf(c)===-1)}function Ys(e,r,t,n){if(!e)return;let o=ia(e,r,t);Qs(e,o,n)}function Ct(e){return Object.getOwnPropertyNames(e).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function uv(e,r){if(Or&&!Js||Zone[e.symbol("patchEvents")])return;let t=r.__Zone_ignore_on_properties,n=[];if(At){let o=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let c=[];Ys(o,Ct(o),t&&t.concat(c),It(o))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let o=0;o<n.length;o++){let c=r[n[o]];c?.prototype&&Ys(c.prototype,Ct(c.prototype),t)}}function lv(e){e.__load_patch("legacy",r=>{let t=r[e.__symbol__("legacyPatch")];t&&t()}),e.__load_patch("timers",r=>{let n="clear";Me(r,"set",n,"Timeout"),Me(r,"set",n,"Interval"),Me(r,"set",n,"Immediate")}),e.__load_patch("requestAnimationFrame",r=>{Me(r,"request","cancel","AnimationFrame"),Me(r,"mozRequest","mozCancel","AnimationFrame"),Me(r,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(r,t)=>{let n=["alert","prompt","confirm"];for(let o=0;o<n.length;o++){let c=n[o];qe(r,c,(f,l,_)=>function(q,y){return t.current.run(f,r,y,_)})}}),e.__load_patch("EventTarget",(r,t,n)=>{cv(r,n),av(r,n);let o=r.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(r,n,[o.prototype])}),e.__load_patch("MutationObserver",(r,t,n)=>{Ve("MutationObserver"),Ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(r,t,n)=>{Ve("IntersectionObserver")}),e.__load_patch("FileReader",(r,t,n)=>{Ve("FileReader")}),e.__load_patch("on_property",(r,t,n)=>{uv(n,r)}),e.__load_patch("customElements",(r,t,n)=>{sv(r,n)}),e.__load_patch("XHR",(r,t)=>{q(r);let n=Z("xhrTask"),o=Z("xhrSync"),c=Z("xhrListener"),f=Z("xhrScheduled"),l=Z("xhrURL"),_=Z("xhrErrorBeforeScheduled");function q(y){let w=y.XMLHttpRequest;if(!w)return;let M=w.prototype;function F(S){return S[n]}let $=M[wt],Q=M[St];if(!$){let S=y.XMLHttpRequestEventTarget;if(S){let k=S.prototype;$=k[wt],Q=k[St]}}let ee="readystatechange",Y="scheduled";function m(S){let k=S.data,C=k.target;C[f]=!1,C[_]=!1;let te=C[c];$||($=C[wt],Q=C[St]),te&&Q.call(C,ee,te);let z=C[c]=()=>{if(C.readyState===C.DONE)if(!k.aborted&&C[f]&&S.state===Y){let T=C[t.__symbol__("loadfalse")];if(C.status!==0&&T&&T.length>0){let i=S.invoke;S.invoke=function(){let s=C[t.__symbol__("loadfalse")];for(let b=0;b<s.length;b++)s[b]===S&&s.splice(b,1);!k.aborted&&S.state===Y&&i.call(S)},T.push(S)}else S.invoke()}else!k.aborted&&C[f]===!1&&(C[_]=!0)};return $.call(C,ee,z),C[n]||(C[n]=S),V.apply(C,k.args),C[f]=!0,S}function p(){}function A(S){let k=S.data;return k.aborted=!0,D.apply(k.target,k.args)}let G=qe(M,"open",()=>function(S,k){return S[o]=k[2]==!1,S[l]=k[1],G.apply(S,k)}),K="XMLHttpRequest.send",B=Z("fetchTaskAborting"),E=Z("fetchTaskScheduling"),V=qe(M,"send",()=>function(S,k){if(t.current[E]===!0||S[o])return V.apply(S,k);{let C={target:S,url:S[l],isPeriodic:!1,args:k,aborted:!1},te=Mt(K,p,C,m,A);S&&S[_]===!0&&!C.aborted&&te.state===Y&&te.invoke()}}),D=qe(M,"abort",()=>function(S,k){let C=F(S);if(C&&typeof C.type=="string"){if(C.cancelFn==null||C.data&&C.data.aborted)return;C.zone.cancelTask(C)}else if(t.current[B]===!0)return D.apply(S,k)})}}),e.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&Jh(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(r,t)=>{function n(o){return function(c){oa(r,o).forEach(l=>{let _=r.PromiseRejectionEvent;if(_){let q=new _(o,{promise:c.promise,reason:c.rejection});l.invoke(q)}})}}r.PromiseRejectionEvent&&(t[Z("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[Z("rejectionHandledHandler")]=n("rejectionhandled"))}),e.__load_patch("queueMicrotask",(r,t,n)=>{iv(r,n)})}function fv(e){e.__load_patch("ZoneAwarePromise",(r,t,n)=>{let o=Object.getOwnPropertyDescriptor,c=Object.defineProperty;function f(d){if(d&&d.toString===Object.prototype.toString){let h=d.constructor&&d.constructor.name;return(h||"")+": "+JSON.stringify(d)}return d?d.toString():Object.prototype.toString.call(d)}let l=n.symbol,_=[],q=r[l("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,y=l("Promise"),w=l("then"),M="__creationTrace__";n.onUnhandledError=d=>{if(n.showUncaughtError()){let h=d&&d.rejection;h?console.error("Unhandled Promise rejection:",h instanceof Error?h.message:h,"; Zone:",d.zone.name,"; Task:",d.task&&d.task.source,"; Value:",h,h instanceof Error?h.stack:void 0):console.error(d)}},n.microtaskDrainDone=()=>{for(;_.length;){let d=_.shift();try{d.zone.runGuarded(()=>{throw d.throwOriginal?d.rejection:d})}catch(h){$(h)}}};let F=l("unhandledPromiseRejectionHandler");function $(d){n.onUnhandledError(d);try{let h=t[F];typeof h=="function"&&h.call(this,d)}catch{}}function Q(d){return d&&typeof d.then=="function"}function ee(d){return d}function Y(d){return L.reject(d)}let m=l("state"),p=l("value"),A=l("finally"),G=l("parentPromiseValue"),K=l("parentPromiseState"),B="Promise.then",E=null,V=!0,D=!1,S=0;function k(d,h){return a=>{try{I(d,h,a)}catch(v){I(d,!1,v)}}}let C=function(){let d=!1;return function(a){return function(){d||(d=!0,a.apply(null,arguments))}}},te="Promise resolved with itself",z=l("currentTaskTrace");function I(d,h,a){let v=C();if(d===a)throw new TypeError(te);if(d[m]===E){let O=null;try{(typeof a=="object"||typeof a=="function")&&(O=a&&a.then)}catch(R){return v(()=>{I(d,!1,R)})(),d}if(h!==D&&a instanceof L&&a.hasOwnProperty(m)&&a.hasOwnProperty(p)&&a[m]!==E)i(a),I(d,a[m],a[p]);else if(h!==D&&typeof O=="function")try{O.call(a,v(k(d,h)),v(k(d,!1)))}catch(R){v(()=>{I(d,!1,R)})()}else{d[m]=h;let R=d[p];if(d[p]=a,d[A]===A&&h===V&&(d[m]=d[K],d[p]=d[G]),h===D&&a instanceof Error){let g=t.currentTask&&t.currentTask.data&&t.currentTask.data[M];g&&c(a,z,{configurable:!0,enumerable:!1,writable:!0,value:g})}for(let g=0;g<R.length;)s(d,R[g++],R[g++],R[g++],R[g++]);if(R.length==0&&h==D){d[m]=S;let g=a;try{throw new Error("Uncaught (in promise): "+f(a)+(a&&a.stack?`
2
2
  `+a.stack:""))}catch(j){g=j}q&&(g.throwOriginal=!0),g.rejection=a,g.promise=d,g.zone=t.current,g.task=t.currentTask,_.push(g),n.scheduleMicroTask()}}}return d}let T=l("rejectionHandledHandler");function i(d){if(d[m]===S){try{let h=t[T];h&&typeof h=="function"&&h.call(this,{rejection:d[p],promise:d})}catch{}d[m]=D;for(let h=0;h<_.length;h++)d===_[h].promise&&_.splice(h,1)}}function s(d,h,a,v,O){i(d);let R=d[m],g=R?typeof v=="function"?v:ee:typeof O=="function"?O:Y;h.scheduleMicroTask(B,()=>{try{let j=d[p],N=!!a&&A===a[A];N&&(a[G]=j,a[K]=R);let x=h.run(g,void 0,N&&g!==Y&&g!==ee?[]:[j]);I(a,!0,x)}catch(j){I(a,!1,j)}},a)}let b="function ZoneAwarePromise() { [native code] }",P=function(){},W=r.AggregateError;class L{static toString(){return b}static resolve(h){return h instanceof L?h:I(new this(null),V,h)}static reject(h){return I(new this(null),D,h)}static withResolvers(){let h={};return h.promise=new L((a,v)=>{h.resolve=a,h.reject=v}),h}static any(h){if(!h||typeof h[Symbol.iterator]!="function")return Promise.reject(new W([],"All promises were rejected"));let a=[],v=0;try{for(let g of h)v++,a.push(L.resolve(g))}catch{return Promise.reject(new W([],"All promises were rejected"))}if(v===0)return Promise.reject(new W([],"All promises were rejected"));let O=!1,R=[];return new L((g,j)=>{for(let N=0;N<a.length;N++)a[N].then(x=>{O||(O=!0,g(x))},x=>{R.push(x),v--,v===0&&(O=!0,j(new W(R,"All promises were rejected")))})})}static race(h){let a,v,O=new this((j,N)=>{a=j,v=N});function R(j){a(j)}function g(j){v(j)}for(let j of h)Q(j)||(j=this.resolve(j)),j.then(R,g);return O}static all(h){return L.allWithCallback(h)}static allSettled(h){return(this&&this.prototype instanceof L?this:L).allWithCallback(h,{thenCallback:v=>({status:"fulfilled",value:v}),errorCallback:v=>({status:"rejected",reason:v})})}static allWithCallback(h,a){let v,O,R=new this((x,H)=>{v=x,O=H}),g=2,j=0,N=[];for(let x of h){Q(x)||(x=this.resolve(x));let H=j;try{x.then(U=>{N[H]=a?a.thenCallback(U):U,g--,g===0&&v(N)},U=>{a?(N[H]=a.errorCallback(U),g--,g===0&&v(N)):O(U)})}catch(U){O(U)}g++,j++}return g-=2,g===0&&v(N),R}constructor(h){let a=this;if(!(a instanceof L))throw new Error("Must be an instanceof Promise.");a[m]=E,a[p]=[];try{let v=C();h&&h(v(k(a,V)),v(k(a,D)))}catch(v){I(a,!1,v)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return L}then(h,a){let v=this.constructor?.[Symbol.species];(!v||typeof v!="function")&&(v=this.constructor||L);let O=new v(P),R=t.current;return this[m]==E?this[p].push(R,O,h,a):s(this,R,O,h,a),O}catch(h){return this.then(null,h)}finally(h){let a=this.constructor?.[Symbol.species];(!a||typeof a!="function")&&(a=L);let v=new a(P);v[A]=A;let O=t.current;return this[m]==E?this[p].push(O,v,h,h):s(this,O,v,h,h),v}}L.resolve=L.resolve,L.reject=L.reject,L.race=L.race,L.all=L.all;let Pe=r[y]=r.Promise;r.Promise=L;let ge=l("thenPatched");function be(d){let h=d.prototype,a=o(h,"then");if(a&&(a.writable===!1||!a.configurable))return;let v=h.then;h[w]=v,d.prototype.then=function(O,R){return new L((j,N)=>{v.call(this,j,N)}).then(O,R)},d[ge]=!0}n.patchThen=be;function fe(d){return function(h,a){let v=d.apply(h,a);if(v instanceof L)return v;let O=v.constructor;return O[ge]||be(O),v}}return Pe&&(be(Pe),qe(r,"fetch",d=>fe(d))),Promise[t.__symbol__("uncaughtPromiseErrors")]=_,L})}function hv(e){e.__load_patch("toString",r=>{let t=Function.prototype.toString,n=Z("OriginalDelegate"),o=Z("Promise"),c=Z("Error"),f=function(){if(typeof this=="function"){let y=this[n];if(y)return typeof y=="function"?t.call(y):Object.prototype.toString.call(y);if(this===Promise){let w=r[o];if(w)return t.call(w)}if(this===Error){let w=r[c];if(w)return t.call(w)}}return t.call(this)};f[n]=t,Function.prototype.toString=f;let l=Object.prototype.toString,_="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?_:l.call(this)}})}function vv(e,r,t,n,o){let c=Zone.__symbol__(n);if(r[c])return;let f=r[c]=r[n];r[n]=function(l,_,q){return _&&_.prototype&&o.forEach(function(y){let w=`${t}.${n}::`+y,M=_.prototype;try{if(M.hasOwnProperty(y)){let F=e.ObjectGetOwnPropertyDescriptor(M,y);F&&F.value?(F.value=e.wrapWithCurrentZone(F.value,w),e._redefineProperty(_.prototype,y,F)):M[y]&&(M[y]=e.wrapWithCurrentZone(M[y],w))}else M[y]&&(M[y]=e.wrapWithCurrentZone(M[y],w))}catch{}}),f.call(r,l,_,q)},e.attachOriginToPatched(r[n],f)}function dv(e){e.__load_patch("util",(r,t,n)=>{let o=Ct(r);n.patchOnProperties=Qs,n.patchMethod=qe,n.bindArguments=Lt,n.patchMacroTask=ev;let c=t.__symbol__("BLACK_LISTED_EVENTS"),f=t.__symbol__("UNPATCHED_EVENTS");r[f]&&(r[c]=r[f]),r[c]&&(t[c]=t[f]=r[c]),n.patchEventPrototype=ov,n.patchEventTarget=nv,n.isIEOrEdge=rv,n.ObjectDefineProperty=Dt,n.ObjectGetOwnPropertyDescriptor=ze,n.ObjectCreate=Yh,n.ArraySlice=Kh,n.patchClass=Ve,n.wrapWithCurrentZone=xt,n.filterProperties=ia,n.attachOriginToPatched=ke,n._redefineProperty=Object.defineProperty,n.patchCallbacks=vv,n.getGlobalObjects=()=>({globalSources:ea,zoneSymbolEventNames:le,eventNames:o,isBrowser:At,isMix:Js,isNode:Or,TRUE_STR:me,FALSE_STR:Oe,ZONE_SYMBOL_PREFIX:We,ADD_EVENT_LISTENER_STR:jt,REMOVE_EVENT_LISTENER_STR:Nt})})}function pv(e){fv(e),hv(e),dv(e)}var sa=Wh();pv(sa);lv(sa);window.process={env:{DEBUG:void 0}};
@@ -1 +0,0 @@
1
- import{h as B}from"./chunk-WADRUSMB.js";import{i as q}from"./chunk-YIXYV2MV.js";import"./chunk-QVCMARCU.js";import"./chunk-RYHOAWDD.js";import"./chunk-PKKBBIJK.js";import"./chunk-HIADZ4BV.js";import{a as I}from"./chunk-VJ4U7HHN.js";import"./chunk-OQULS6SV.js";import"./chunk-QLTN6G6E.js";import{m as N}from"./chunk-XDPHEQEO.js";import"./chunk-SZ2GUIT5.js";import{Db as z,Eb as E,Fa as l,Gb as m,Gc as A,Gd as L,Hb as R,Hd as F,Ld as U,Oa as x,Oc as S,Xa as W,Zb as k,Zd as V,_d as Z,bb as b,cb as P,dc as u,ec as h,ga as a,hb as w,ib as s,ja as v,jb as c,ka as C,kb as d,kc as D,pd as X,ra as r,rb as y,tb as O,vb as g,xc as T}from"./chunk-OB3QLUH6.js";var G=["panel"],Q=(i,f)=>[i,f];function j(i,f){if(i&1&&d(0,"div",7),i&2){let t=g();m("transform",t.ghostTransform())}}function H(i,f){if(i&1){let t=y();s(0,"div",8),O("pointerdown",function(e){v(t);let o=g();return C(o.startResize(e))}),s(1,"button",9),O("pointerdown",function(e){v(t);let o=g();return C(o.startResize(e))}),d(2,"mat-icon",10),c()()}}var ct=(()=>{class i{panelEl=D.required("panel");_settings=a(N);_dashboard=a(I);breakpointObserver=a(X);ngZone=a(W);side=r(this._settings.getSplitShellSide());panelRatio=r(this._settings.getSplitShellWidth());originalPanelRatio=null;panelWidth=r(0);panelCollapsed=u(()=>!!this._dashboard.dashboards()[this._dashboard.activeDashboard()]?.collapseSplitShell);fskShellSwipeDisabled=S(this._settings.getSplitShellSwipeDisabledAsO());handset$=this.breakpointObserver.observe(U.HandsetPortrait);handset=S(this.handset$,{initialValue:{matches:!1,breakpoints:{}}});freeboardWidgetStub={uuid:"persistent-freeboard-shell",type:"widget-freeboardsk",config:{}};chartplotterModeInPortrait=u(()=>this.handset().matches&&!this.panelCollapsed());canResize=u(()=>!this._dashboard.isDashboardStatic()&&!this.panelCollapsed());resizing=!1;startX=0;startW=0;boundMove=t=>this.onMove(t);boundUp=()=>this.onUp();static MIN_DELTA_PX=1;ghostActive=r(!1);ghostTransform=r("");ghostWidth=0;recomputeWidth=()=>{let t=this.panelEl()?.nativeElement.parentElement;if(!t)return;let n=t.clientWidth;this.panelWidth.set(Math.round(n*this.panelRatio()))};constructor(){window.addEventListener("resize",this.recomputeWidth,{passive:!0}),queueMicrotask(this.recomputeWidth),h(()=>{this.chartplotterModeInPortrait(),this.panelRatio(),this.recomputeWidth(),setTimeout(()=>window.dispatchEvent(new Event("resize")),0)}),h(()=>{let t=this._dashboard.isDashboardStatic();t||this.originalPanelRatio===null&&(this.originalPanelRatio=this.panelRatio()),t&&this.originalPanelRatio}),h(()=>{if(this._dashboard.layoutEditSaved(),this.originalPanelRatio!==null){let t=this.panelRatio();this._settings.setSplitShellWidth(t),this.originalPanelRatio=null}}),h(()=>{if(this._dashboard.layoutEditCanceled(),this.originalPanelRatio!==null){let t=this.originalPanelRatio;this.panelRatio.set(t),queueMicrotask(()=>this.recomputeWidth()),this.originalPanelRatio=null}})}startResize(t){this.canResize()&&(this.resizing=!0,this.startX=t.clientX,this.startW=this.panelWidth(),this.ghostWidth=this.startW,this.ghostActive.set(!0),this.updateGhostTransform(this.startW),t.target.setPointerCapture(t.pointerId),this.ngZone.runOutsideAngular(()=>{window.addEventListener("pointermove",this.boundMove,{passive:!0}),window.addEventListener("pointerup",this.boundUp,{passive:!0})}))}onMove(t){if(!this.resizing)return;let n=this.side()==="left"?t.clientX-this.startX:this.startX-t.clientX,o=this.panelEl()?.nativeElement.parentElement?.clientWidth??1,p=this.startW+n,_=o*.1,$=o*.9,M=Math.min($,Math.max(_,p));Math.abs(M-this.ghostWidth)<i.MIN_DELTA_PX||(this.ghostWidth=M,this.ngZone.runOutsideAngular(()=>this.updateGhostTransform(M)))}onUp(){if(!this.resizing)return;this.resizing=!1,window.removeEventListener("pointermove",this.boundMove),window.removeEventListener("pointerup",this.boundUp);let t=this.ghostWidth;this.ghostActive.set(!1);let n=this.panelEl();n&&!this.panelCollapsed()&&(n.nativeElement.style.width=t+"px"),this.ngZone.run(()=>{this.panelWidth.set(t);let o=this.panelEl()?.nativeElement.parentElement?.clientWidth??t,p=o?t/o:.3,_=this.panelRatio();Math.abs(p-_)>5e-4&&this.panelRatio.set(p)})}updateGhostTransform(t){this.side()==="left"?this.ghostTransform.set(`translateX(${t}px)`):this.ghostTransform.set(`translateX(-${t}px)`)}ngOnDestroy(){window.removeEventListener("resize",this.recomputeWidth),this.resizing&&(window.removeEventListener("pointermove",this.boundMove),window.removeEventListener("pointerup",this.boundUp))}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=x({type:i,selectors:[["split-shell"]],viewQuery:function(n,e){n&1&&z(e.panelEl,G,5),n&2&&E()},decls:8,vars:18,consts:[["panel",""],[1,"split-root",3,"ngClass"],[1,"resize-ghost",3,"transform"],[1,"fsk-shell"],["role","separator","aria-label","Resize Freeboard chartplotter panel","aria-orientation","vertical",1,"drag-handle"],[1,"fsk-iframe",3,"type","id","swipeDisabled","disableWidgetShell"],[1,"dash-container"],[1,"resize-ghost"],["role","separator","aria-label","Resize Freeboard chartplotter panel","aria-orientation","vertical",1,"drag-handle",3,"pointerdown"],["mat-mini-fab","","tabindex","-1","aria-hidden","true",1,"drag-fab",3,"pointerdown"],["fontIcon","drag_indicator"]],template:function(n,e){n&1&&(s(0,"div",1),b(1,j,1,2,"div",2),s(2,"div",3,0),b(4,H,3,0,"div",4),d(5,"widget-freeboardsk",5),c(),s(6,"div",6),d(7,"dashboard"),c()()),n&2&&(m("--panel-ratio",e.panelRatio()),w("ngClass",k(15,Q,e.side()==="left"?"side-left":"side-right",e.chartplotterModeInPortrait()?"portrait-column":"")),l(),P(e.ghostActive()?1:-1),l(),m("width",e.chartplotterModeInPortrait()?null:e.panelWidth(),"px"),R("collapsed",e.panelCollapsed())("drag-disabled",!e.canResize()),l(2),P(e.canResize()?4:-1),l(),w("type",e.freeboardWidgetStub.type)("id",e.freeboardWidgetStub.uuid)("swipeDisabled",e.fskShellSwipeDisabled())("disableWidgetShell",!0))},dependencies:[A,T,q,B,Z,V,F,L],styles:[".split-root[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;display:flex;overflow:hidden}.split-root.side-left[_ngcontent-%COMP%]{flex-direction:row}.split-root.side-right[_ngcontent-%COMP%]{flex-direction:row-reverse}.split-root.portrait-column[_ngcontent-%COMP%]{flex-direction:column}.split-root.portrait-column[_ngcontent-%COMP%] .fsk-shell[_ngcontent-%COMP%], .split-root.portrait-column[_ngcontent-%COMP%] .dash-container[_ngcontent-%COMP%]{width:100%!important;min-height:0}.split-root.portrait-column[_ngcontent-%COMP%] .fsk-shell[_ngcontent-%COMP%]{flex:0 0 calc(var(--panel-ratio, .3) * 100%)}.split-root.portrait-column[_ngcontent-%COMP%] .dash-container[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow:hidden}.split-root.side-left.portrait-column[_ngcontent-%COMP%] .dash-container[_ngcontent-%COMP%]{order:2}.split-root.side-left.portrait-column[_ngcontent-%COMP%] .fsk-shell[_ngcontent-%COMP%]{order:1}.split-root.side-right.portrait-column[_ngcontent-%COMP%] .fsk-shell[_ngcontent-%COMP%]{order:2}.split-root.side-right.portrait-column[_ngcontent-%COMP%] .dash-container[_ngcontent-%COMP%]{order:1}.split-root.portrait-column[_ngcontent-%COMP%] .fsk-shell.collapsed[_ngcontent-%COMP%]{flex:0 0 0!important}.split-root.portrait-column[_ngcontent-%COMP%] .drag-handle[_ngcontent-%COMP%], .split-root.portrait-column[_ngcontent-%COMP%] .resize-ghost[_ngcontent-%COMP%]{display:none}.fsk-shell[_ngcontent-%COMP%]{position:relative;height:100%;display:flex;flex-direction:column;background:var(--mat-sys-surface-container, #111);transition:width .2s ease}.fsk-shell.collapsed[_ngcontent-%COMP%]{width:1px!important;visibility:hidden;opacity:0;pointer-events:none}.fsk-iframe[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.dash-container[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;height:100%}.drag-handle[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:3px;cursor:col-resize;background:var(--mat-sys-inverse-primary);z-index:5}.drag-handle[_ngcontent-%COMP%] .drag-fab[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:28px;height:28px;min-width:28px;cursor:col-resize;pointer-events:auto}.drag-handle[_ngcontent-%COMP%] .drag-fab[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;line-height:20px}.side-left[_ngcontent-%COMP%] .drag-handle[_ngcontent-%COMP%]{right:-2px}.side-right[_ngcontent-%COMP%] .drag-handle[_ngcontent-%COMP%]{left:-2px}.drag-handle[_ngcontent-%COMP%]:hover{background:var(--mat-sys-error-container)}.side-left[_ngcontent-%COMP%] .collapse-toggle[_ngcontent-%COMP%]{left:.25rem}.side-right[_ngcontent-%COMP%] .collapse-toggle[_ngcontent-%COMP%]{right:.25rem}.fsk-shell.drag-disabled[_ngcontent-%COMP%] .drag-handle[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.4}.resize-ghost[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:2px;background:var(--mat-sys-error-container);opacity:.9;pointer-events:none;z-index:30;will-change:transform;transition:none}.side-left[_ngcontent-%COMP%] .resize-ghost[_ngcontent-%COMP%]{left:0}.side-right[_ngcontent-%COMP%] .resize-ghost[_ngcontent-%COMP%]{right:0}"]})}return i})();export{ct as SplitShellComponent};
@@ -1,2 +0,0 @@
1
- import{a as Xe,n as mt,o as ut,p as ft,q as vt,r as Dt,s as bt}from"./chunk-YIXYV2MV.js";import"./chunk-QVCMARCU.js";import{a as xt}from"./chunk-IJ22WXFB.js";import{d as wt,e as St,g as Pt,h as yt}from"./chunk-RYHOAWDD.js";import"./chunk-PKKBBIJK.js";import"./chunk-HIADZ4BV.js";import{a as et,b as at}from"./chunk-VJ4U7HHN.js";import{b as gt}from"./chunk-OQULS6SV.js";import"./chunk-QLTN6G6E.js";import"./chunk-XDPHEQEO.js";import"./chunk-SZ2GUIT5.js";import{D as Ae,Dd as fe,E as $,Ea as ae,Fa as b,Gb as Ke,Gd as M,Ha as le,Hb as ce,Hd as L,Jb as F,K as Fe,Kb as f,La as Ge,Lb as he,Ld as ve,Oa as R,Oc as me,Qa as de,Sc as Je,Td as lt,V as ie,Vd as dt,W as He,Wa as S,Wc as Qe,Wd as ct,X as A,Xa as U,Xb as pe,Ya as $e,Yd as ht,Z as Be,_d as q,ab as Ue,ad as tt,bb as We,bd as it,ca as se,cb as Ze,cd as j,dc as _e,de as pt,ea as k,ed as H,fb as je,fe as _t,g as T,ga as c,gb as qe,hb as I,hd as ue,i as te,ib as p,j as _,ja as E,jb as g,jd as x,ka as C,kb as W,l as Me,md as st,n as Le,na as ze,nc as ge,oa as ne,od as nt,pc as O,pd as rt,qc as Ye,ra as re,rb as Z,tb as m,ua as Ve,vb as y,w as Ne,wa as oe,wd as ot}from"./chunk-OB3QLUH6.js";function we(r){let t=r.cloneNode(!0),e=t.querySelectorAll("[id]"),i=r.nodeName.toLowerCase();t.removeAttribute("id");for(let s=0;s<e.length;s++)e[s].removeAttribute("id");return i==="canvas"?Rt(r,t):(i==="input"||i==="select"||i==="textarea")&&Ct(r,t),Et("canvas",r,t,Rt),Et("input, textarea, select",r,t,Ct),t}function Et(r,t,e,i){let s=t.querySelectorAll(r);if(s.length){let n=e.querySelectorAll(r);for(let o=0;o<s.length;o++)i(s[o],n[o])}}var ni=0;function Ct(r,t){t.type!=="file"&&(t.value=r.value),t.type==="radio"&&t.name&&(t.name=`mat-clone-${t.name}-${ni++}`)}function Rt(r,t){let e=t.getContext("2d");if(e)try{e.drawImage(r,0,0)}catch{}}function Re(r){let t=r.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function Se(r,t,e){let{top:i,bottom:s,left:n,right:o}=r;return e>=i&&e<=s&&t>=n&&t<=o}function ri(r,t){let e=t.left<r.left,i=t.left+t.width>r.right,s=t.top<r.top,n=t.top+t.height>r.bottom;return e||i||s||n}function V(r,t,e){r.top+=t,r.bottom=r.top+r.height,r.left+=e,r.right=r.left+r.width}function It(r,t,e,i){let{top:s,right:n,bottom:o,left:a,width:l,height:d}=r,h=l*t,v=d*t;return i>s-v&&i<o+v&&e>a-h&&e<n+h}var K=class{_document;positions=new Map;constructor(t){this._document=t}clear(){this.positions.clear()}cache(t){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),t.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Re(e)})})}handleScroll(t){let e=H(t),i=this.positions.get(e);if(!i)return null;let s=i.scrollPosition,n,o;if(e===this._document){let d=this.getViewportScrollPosition();n=d.top,o=d.left}else n=e.scrollTop,o=e.scrollLeft;let a=s.top-n,l=s.left-o;return this.positions.forEach((d,h)=>{d.clientRect&&e!==h&&e.contains(h)&&V(d.clientRect,a,l)}),s.top=n,s.left=o,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function Gt(r,t){let e=r.rootNodes;if(e.length===1&&e[0].nodeType===t.ELEMENT_NODE)return e[0];let i=t.createElement("div");return e.forEach(s=>i.appendChild(s)),i}function Ie(r,t,e){for(let i in t)if(t.hasOwnProperty(i)){let s=t[i];s?r.setProperty(i,s,e?.has(i)?"important":""):r.removeProperty(i)}return r}function N(r,t){let e=t?"":"none";Ie(r.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function Tt(r,t,e){Ie(r.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function Y(r,t){return t&&t!="none"?r+" "+t:r}function kt(r,t){r.style.width=`${t.width}px`,r.style.height=`${t.height}px`,r.style.transform=G(t.left,t.top)}function G(r,t){return`translate3d(${Math.round(r)}px, ${Math.round(t)}px, 0)`}function Ot(r){let t=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*t}function oi(r){let t=getComputedStyle(r),e=De(t,"transition-property"),i=e.find(a=>a==="transform"||a==="all");if(!i)return 0;let s=e.indexOf(i),n=De(t,"transition-duration"),o=De(t,"transition-delay");return Ot(n[s])+Ot(o[s])}function De(r,t){return r.getPropertyValue(t).split(",").map(i=>i.trim())}var ai=new Set(["position"]),Pe=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(t,e,i,s,n,o,a,l,d,h){this._document=t,this._rootElement=e,this._direction=i,this._initialDomRect=s,this._previewTemplate=n,this._previewClass=o,this._pickupPositionOnPage=a,this._initialTransform=l,this._zIndex=d,this._renderer=h}attach(t){this._preview=this._createPreview(),t.appendChild(this._preview),Mt(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(t){this._preview.style.transform=t}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(t){this._preview.classList.add(t)}getTransitionDuration(){return oi(this._preview)}addEventListener(t,e){return this._renderer.listen(this._preview,t,e)}_createPreview(){let t=this._previewTemplate,e=this._previewClass,i=t?t.template:null,s;if(i&&t){let n=t.matchSize?this._initialDomRect:null,o=t.viewContainer.createEmbeddedView(i,t.context);o.detectChanges(),s=Gt(o,this._document),this._previewEmbeddedView=o,t.matchSize?kt(s,n):s.style.transform=G(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=we(this._rootElement),kt(s,this._initialDomRect),this._initialTransform&&(s.style.transform=this._initialTransform);return Ie(s.style,{"pointer-events":"none",margin:Mt(s)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},ai),N(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("popover","manual"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(n=>s.classList.add(n)):s.classList.add(e)),s}};function Mt(r){return"showPopover"in r}var li={passive:!0},Lt={passive:!1},di={passive:!1,capture:!0},ci=800,Nt="cdk-drag-placeholder",At=new Set(["position"]),ye=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=re(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new _;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=T.EMPTY;_pointerUpSubscription=T.EMPTY;_scrollSubscription=T.EMPTY;_resizeSubscription=T.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(t){t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(e=>N(e,t)))}_disabled=!1;beforeStarted=new _;started=new _;released=new _;ended=new _;entered=new _;exited=new _;dropped=new _;moved=this._moveEvents;data;constrainPosition;constructor(t,e,i,s,n,o,a){this._config=e,this._document=i,this._ngZone=s,this._viewportRuler=n,this._dragDropRegistry=o,this._renderer=a,this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new K(i),o.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>x(i)),this._handles.forEach(i=>N(i,this.disabled)),this._toggleNativeDragInteractions();let e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){let e=x(t);if(e!==this._rootElement){this._removeRootElementListeners();let i=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"mousedown",this._pointerDown,Lt),i.listen(e,"touchstart",this._pointerDown,li),i.listen(e,"dragstart",this._nativeDragStart,Lt)]),this._initialTransform=void 0,this._rootElement=e}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?x(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&ri(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let t=this._boundaryElement.getBoundingClientRect(),e=this._rootElement.getBoundingClientRect(),i=0,s=0;e.left<t.left?i=t.left-e.left:e.right>t.right&&(i=t.right-e.right),e.top<t.top?s=t.top-e.top:e.bottom>t.bottom&&(s=t.bottom-e.bottom);let n=this._activeTransform.x,o=this._activeTransform.y,a=n+i,l=o+s;this._rootElement.style.transform=G(a,l),this._activeTransform={x:a,y:l},this._passiveTransform={x:a,y:l}}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),N(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),N(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){let t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){let t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null}_pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){let e=this._getTargetHandle(t);e&&!this._disabledHandles.has(e)&&!this.disabled&&this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)};_pointerMove=t=>{let e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging()){let s=Math.abs(e.x-this._pickupPositionOnPage.x),n=Math.abs(e.y-this._pickupPositionOnPage.y);if(s+n>=this._config.dragStartThreshold){let a=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),l=this._dropContainer;if(!a){this._endDragSequence(t);return}(!l||!l.isDragging()&&!l.isReceiving())&&(t.cancelable&&t.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(t)))}return}t.cancelable&&t.preventDefault();let i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{let s=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,n=this._activeTransform;n.x=i.x-s.x+this._passiveTransform.x,n.y=i.y-s.y+this._passiveTransform.y,this._applyRootElementTransform(n.x,n.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})};_pointerUp=t=>{this._endDragSequence(t)};_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){B(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let e=this._getShadowRoot(),i=this._dropContainer;if(e&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(e,"selectstart",hi,di)}),i){let s=this._rootElement,n=s.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._marker=this._marker||this._document.createComment("");n.insertBefore(a,s),this._initialTransform=s.style.transform||"",this._preview=new Pe(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(n,e)),Tt(s,!1,At),this._document.body.appendChild(n.replaceChild(o,s)),this.started.next({source:this,event:t}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();let i=this.isDragging(),s=B(e),n=!s&&e.button!==0,o=this._rootElement,a=H(e),l=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+ci>Date.now(),d=s?it(e):tt(e);if(a&&a.draggable&&e.type==="mousedown"&&e.preventDefault(),i||n||l||d)return;if(this._handles.length){let P=o.style;this._rootElementTapHighlight=P.webkitTapHighlightColor||"",P.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(P=>this._updateOnScroll(P)),this._boundaryElement&&(this._boundaryRect=Re(this._boundaryElement));let h=this._previewTemplate;this._pickupPositionInElement=h&&h.template&&!h.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,t,e);let v=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:v.x,y:v.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){Tt(this._rootElement,!0,At),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let e=this._dropContainer,i=e.getItemIndex(this),s=this._getPointerPositionOnPage(t),n=this._getDragDistance(s),o=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:n,dropPoint:s,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:n,dropPoint:s,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,o,n,s,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:s}){let n=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!n&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(n=this._initialContainer),n&&n!==this._dropContainer&&this._ngZone.run(()=>{let o=this._dropContainer.getItemIndex(this),a=this._dropContainer.getItemAtIndex(o+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(n,this._dropContainer,a),this._dropContainer=n,this._dropContainer.enter(this,t,e,n===this._initialContainer&&n.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:n,currentIndex:n.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,s),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let t=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);let e=this._preview.getTransitionDuration();return e===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{let s=a=>{(!a||this._preview&&H(a)===this._preview.element&&a.propertyName==="transform")&&(o(),i(),clearTimeout(n))},n=setTimeout(s,e*1.5),o=this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){let t=this._placeholderTemplate,e=t?t.template:null,i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=Gt(this._placeholderRef,this._document)):i=we(this._rootElement),i.style.pointerEvents="none",i.classList.add(Nt),i}_getPointerPositionInElement(t,e,i){let s=e===this._rootElement?null:e,n=s?s.getBoundingClientRect():t,o=B(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition(),l=o.pageX-n.left-a.left,d=o.pageY-n.top-a.top;return{x:n.left-t.left+l,y:n.top-t.top+d}}_getPointerPositionOnPage(t){let e=this._getViewportScrollPosition(),i=B(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,s=i.pageX-e.left,n=i.pageY-e.top;if(this._ownerSVGElement){let o=this._ownerSVGElement.getScreenCTM();if(o){let a=this._ownerSVGElement.createSVGPoint();return a.x=s,a.y=n,a.matrixTransform(o.inverse())}}return{x:s,y:n}}_getConstrainedPointerPosition(t){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:i,y:s}=this.constrainPosition?this.constrainPosition(t,this,this._initialDomRect,this._pickupPositionInElement):t;if(this.lockAxis==="x"||e==="x"?s=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||e==="y")&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:n,y:o}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:d}=this._getPreviewRect(),h=a.top+o,v=a.bottom-(d-o),P=a.left+n,Q=a.right-(l-n);i=Ft(i,P,Q),s=Ft(s,h,v)}return{x:i,y:s}}_updatePointerDirectionDelta(t){let{x:e,y:i}=t,s=this._pointerDirectionDelta,n=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-n.x),a=Math.abs(i-n.y);return o>this._config.pointerDirectionChangeThreshold&&(s.x=e>n.x?1:-1,n.x=e),a>this._config.pointerDirectionChangeThreshold&&(s.y=i>n.y?1:-1,n.y=i),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,N(this._rootElement,t))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(t=>t()),this._rootElementCleanups=void 0}_applyRootElementTransform(t,e){let i=1/this.scale,s=G(t*i,e*i),n=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=n.transform&&n.transform!="none"?n.transform:""),n.transform=Y(s,this._initialTransform)}_applyPreviewTransform(t,e){let i=this._previewTemplate?.template?void 0:this._initialTransform,s=G(t,e);this._preview.setTransform(Y(s,i))}_getDragDistance(t){let e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(t===0&&e===0||this.isDragging()||!this._boundaryElement)return;let i=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(s.width===0&&s.height===0||i.width===0&&i.height===0)return;let n=s.left-i.left,o=i.right-s.right,a=s.top-i.top,l=i.bottom-s.bottom;s.width>i.width?(n>0&&(t+=n),o>0&&(t-=o)):t=0,s.height>i.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){let e=this.dragStartDelay;return typeof e=="number"?e:B(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){let e=this._parentPositions.handleScroll(t);if(e){let i=H(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&V(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=j(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){let i=this._previewContainer||"global";if(i==="parent")return t;if(i==="global"){let s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return x(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=t=>{if(this._handles.length){let e=this._getTargetHandle(t);e&&!this._disabledHandles.has(e)&&!this.disabled&&t.preventDefault()}else this.disabled||t.preventDefault()};_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}_conditionallyInsertAnchor(t,e,i){if(t===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(e===this._initialContainer&&e.hasAnchor){let s=this._anchor??=we(this._placeholder);s.classList.remove(Nt),s.classList.add("cdk-drag-anchor"),s.style.transform="",i?i.before(s):x(e.element).appendChild(s)}}};function Ft(r,t,e){return Math.max(t,Math.min(e,r))}function B(r){return r.type[0]==="t"}function hi(r){r.preventDefault()}function J(r,t,e){let i=Ht(t,r.length-1),s=Ht(e,r.length-1);if(i===s)return;let n=r[i],o=s<i?-1:1;for(let a=i;a!==s;a+=o)r[a]=r[a+o];r[s]=n}function Ht(r,t){return Math.max(0,Math.min(t,r))}var X=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction;constructor(t){this._dragDropRegistry=t}_previousSwap={drag:null,delta:0,overlaps:!1};start(t){this.withItems(t)}sort(t,e,i,s){let n=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,s);if(o===-1&&n.length>0)return null;let a=this.orientation==="horizontal",l=n.findIndex(D=>D.drag===t),d=n[o],h=n[l].clientRect,v=d.clientRect,P=l>o?1:-1,Q=this._getItemOffsetPx(h,v,P),ti=this._getSiblingOffsetPx(l,n,P),ii=n.slice();return J(n,l,o),n.forEach((D,si)=>{if(ii[si]===D)return;let Te=D.drag===t,ee=Te?Q:ti,ke=Te?t.getPlaceholderElement():D.drag.getRootElement();D.offset+=ee;let Oe=Math.round(D.offset*(1/D.drag.scale));a?(ke.style.transform=Y(`translate3d(${Oe}px, 0, 0)`,D.initialTransform),V(D.clientRect,0,ee)):(ke.style.transform=Y(`translate3d(0, ${Oe}px, 0)`,D.initialTransform),V(D.clientRect,ee,0))}),this._previousSwap.overlaps=Se(v,e,i),this._previousSwap.drag=d.drag,this._previousSwap.delta=a?s.x:s.y,{previousIndex:l,currentIndex:o}}enter(t,e,i,s){let n=s==null||s<0?this._getItemIndexFromPointerPosition(t,e,i):s,o=this._activeDraggables,a=o.indexOf(t),l=t.getPlaceholderElement(),d=o[n];if(d===t&&(d=o[n+1]),!d&&(n==null||n===-1||n<o.length-1)&&this._shouldEnterAsFirstChild(e,i)&&(d=o[0]),a>-1&&o.splice(a,1),d&&!this._dragDropRegistry.isDragging(d)){let h=d.getRootElement();h.parentElement.insertBefore(l,h),o.splice(n,0,t)}else this._element.appendChild(l),o.push(t);l.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables?.forEach(t=>{let e=t.getRootElement();if(e){let i=this._itemPositions.find(s=>s.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return this._getVisualItemPositions().findIndex(e=>e.drag===t)}getItemAtIndex(t){return this._getVisualItemPositions()[t]?.drag||null}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{V(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}withElementContainer(t){this._element=t}_cacheItemPositions(){let t=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(e=>{let i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:Re(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(t,e,i){let s=this.orientation==="horizontal",n=s?e.left-t.left:e.top-t.top;return i===-1&&(n+=s?e.width-t.width:e.height-t.height),n}_getSiblingOffsetPx(t,e,i){let s=this.orientation==="horizontal",n=e[t].clientRect,o=e[t+i*-1],a=n[s?"width":"height"]*i;if(o){let l=s?"left":"top",d=s?"right":"bottom";i===-1?a-=o.clientRect[l]-n[d]:a+=n[l]-o.clientRect[d]}return a}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;let i=this._itemPositions,s=this.orientation==="horizontal";if(i[0].drag!==this._activeDraggables[0]){let o=i[i.length-1].clientRect;return s?t>=o.right:e>=o.bottom}else{let o=i[0].clientRect;return s?t<=o.left:e<=o.top}}_getItemIndexFromPointerPosition(t,e,i,s){let n=this.orientation==="horizontal",o=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===t)return!1;if(s){let d=n?s.x:s.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&d===this._previousSwap.delta)return!1}return n?e>=Math.floor(l.left)&&e<Math.floor(l.right):i>=Math.floor(l.top)&&i<Math.floor(l.bottom)});return o===-1||!this._sortPredicate(o,t)?-1:o}},xe=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(t,e){this._document=t,this._dragDropRegistry=e}start(t){let e=this._element.childNodes;this._relatedNodes=[];for(let i=0;i<e.length;i++){let s=e[i];this._relatedNodes.push([s,s.nextSibling])}this.withItems(t)}sort(t,e,i,s){let n=this._getItemIndexFromPointerPosition(t,e,i),o=this._previousSwap;if(n===-1||this._activeItems[n]===t)return null;let a=this._activeItems[n];if(o.drag===a&&o.overlaps&&o.deltaX===s.x&&o.deltaY===s.y)return null;let l=this.getItemIndex(t),d=t.getPlaceholderElement(),h=a.getRootElement();n>l?h.after(d):h.before(d),J(this._activeItems,l,n);let v=this._getRootNode().elementFromPoint(e,i);return o.deltaX=s.x,o.deltaY=s.y,o.drag=a,o.overlaps=h===v||h.contains(v),{previousIndex:l,currentIndex:n}}enter(t,e,i,s){let n=this._activeItems.indexOf(t);n>-1&&this._activeItems.splice(n,1);let o=s==null||s<0?this._getItemIndexFromPointerPosition(t,e,i):s;o===-1&&(o=this._getClosestItemIndexToPointer(t,e,i));let a=this._activeItems[o];a&&!this._dragDropRegistry.isDragging(a)?(this._activeItems.splice(o,0,t),a.getRootElement().before(t.getPlaceholderElement())):(this._activeItems.push(t),this._element.appendChild(t.getPlaceholderElement()))}withItems(t){this._activeItems=t.slice()}withSortPredicate(t){this._sortPredicate=t}reset(){let t=this._element,e=this._previousSwap;for(let i=this._relatedNodes.length-1;i>-1;i--){let[s,n]=this._relatedNodes[i];s.parentNode===t&&s.nextSibling!==n&&(n===null?t.appendChild(s):n.parentNode===t&&t.insertBefore(s,n))}this._relatedNodes=[],this._activeItems=[],e.drag=null,e.deltaX=e.deltaY=0,e.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(t){return this._activeItems.indexOf(t)}getItemAtIndex(t){return this._activeItems[t]||null}updateOnScroll(){this._activeItems.forEach(t=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}withElementContainer(t){t!==this._element&&(this._element=t,this._rootNode=void 0)}_getItemIndexFromPointerPosition(t,e,i){let s=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(i)),n=s?this._activeItems.findIndex(o=>{let a=o.getRootElement();return s===a||a.contains(s)}):-1;return n===-1||!this._sortPredicate(n,t)?-1:n}_getRootNode(){return this._rootNode||(this._rootNode=j(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(t,e,i){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let s=1/0,n=-1;for(let o=0;o<this._activeItems.length;o++){let a=this._activeItems[o];if(a!==t){let{x:l,y:d}=a.getRootElement().getBoundingClientRect(),h=Math.hypot(e-l,i-d);h<s&&(s=h,n=o)}}return n}},Bt=.05,$t=.05,w=(function(r){return r[r.NONE=0]="NONE",r[r.UP=1]="UP",r[r.DOWN=2]="DOWN",r})(w||{}),u=(function(r){return r[r.NONE=0]="NONE",r[r.LEFT=1]="LEFT",r[r.RIGHT=2]="RIGHT",r})(u||{}),Ee=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis;autoScrollDisabled=!1;autoScrollStep=2;hasAnchor=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new _;entered=new _;exited=new _;dropped=new _;sorted=new _;receivingStarted=new _;receivingStopped=new _;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=T.EMPTY;_verticalScrollDirection=w.NONE;_horizontalScrollDirection=u.NONE;_scrollNode;_stopScrollTimers=new _;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(t,e,i,s,n){this._dragDropRegistry=e,this._ngZone=s,this._viewportRuler=n;let o=this.element=x(t);this._document=i,this.withOrientation("vertical").withElementContainer(o),e.registerDropContainer(this),this._parentPositions=new K(i)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,s){this._draggingStarted(),s==null&&this.sortingDisabled&&(s=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,s,n,o,a,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:s,isPointerOverContainer:n,distance:o,dropPoint:a,event:l})}withItems(t){let e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>t.indexOf(s)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._direction=t,this._sortStrategy instanceof X&&(this._sortStrategy.direction=t),this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){if(t==="mixed")this._sortStrategy=new xe(this._document,this._dragDropRegistry);else{let e=new X(this._dragDropRegistry);e.direction=this._direction,e.orientation=t,this._sortStrategy=e}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((e,i)=>this.sortPredicate(e,i,this)),this}withScrollableParents(t){let e=this._container;return this._scrollableElements=t.indexOf(e)===-1?[e,...t]:t.slice(),this}withElementContainer(t){if(t===this._container)return this;let e=x(this.element),i=this._scrollableElements.indexOf(this._container),s=this._scrollableElements.indexOf(t);return i>-1&&this._scrollableElements.splice(i,1),s>-1&&this._scrollableElements.splice(s,1),this._sortStrategy&&this._sortStrategy.withElementContainer(t),this._cachedShadowRoot=null,this._scrollableElements.unshift(t),this._container=t,this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}getItemAtIndex(t){return this._isDragging?this._sortStrategy.getItemAtIndex(t):this._draggables[t]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,s){if(this.sortingDisabled||!this._domRect||!It(this._domRect,Bt,e,i))return;let n=this._sortStrategy.sort(t,e,i,s);n&&this.sorted.next({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,s=w.NONE,n=u.NONE;if(this._parentPositions.positions.forEach((o,a)=>{a===this._document||!o.clientRect||i||It(o.clientRect,Bt,t,e)&&([s,n]=pi(a,o.clientRect,this._direction,t,e),(s||n)&&(i=a))}),!s&&!n){let{width:o,height:a}=this._viewportRuler.getViewportSize(),l={width:o,height:a,top:0,right:o,bottom:a,left:0};s=Ut(l,e),n=Wt(l,t),i=window}i&&(s!==this._verticalScrollDirection||n!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=n,this._scrollNode=i,(s||n)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let t=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let t=this._container.style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),Ae(0,Le).pipe(A(this._stopScrollTimers)).subscribe(()=>{let t=this._scrollNode,e=this.autoScrollStep;this._verticalScrollDirection===w.UP?t.scrollBy(0,-e):this._verticalScrollDirection===w.DOWN&&t.scrollBy(0,e),this._horizontalScrollDirection===u.LEFT?t.scrollBy(-e,0):this._horizontalScrollDirection===u.RIGHT&&t.scrollBy(e,0)})};_isOverContainer(t,e){return this._domRect!=null&&Se(this._domRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(s=>s._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._domRect||!Se(this._domRect,e,i)||!this.enterPredicate(t,this))return!1;let s=this._getShadowRoot().elementFromPoint(e,i);return s?s===this._container||this._container.contains(s):!1}_startReceiving(t,e){let i=this._activeSiblings;!i.has(t)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:t,receiver:this,items:e}))}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:t,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){let e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let t=j(this._container);this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}};function Ut(r,t){let{top:e,bottom:i,height:s}=r,n=s*$t;return t>=e-n&&t<=e+n?w.UP:t>=i-n&&t<=i+n?w.DOWN:w.NONE}function Wt(r,t){let{left:e,right:i,width:s}=r,n=s*$t;return t>=e-n&&t<=e+n?u.LEFT:t>=i-n&&t<=i+n?u.RIGHT:u.NONE}function pi(r,t,e,i,s){let n=Ut(t,s),o=Wt(t,i),a=w.NONE,l=u.NONE;if(n){let d=r.scrollTop;n===w.UP?d>0&&(a=w.UP):r.scrollHeight-d>r.clientHeight&&(a=w.DOWN)}if(o){let d=r.scrollLeft;e==="rtl"?o===u.RIGHT?d<0&&(l=u.RIGHT):r.scrollWidth+d>r.clientWidth&&(l=u.LEFT):o===u.LEFT?d>0&&(l=u.LEFT):r.scrollWidth-d>r.clientWidth&&(l=u.RIGHT)}return[a,l]}var z={capture:!0},be={passive:!1,capture:!0},_i=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275cmp=R({type:r,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(i,s){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
2
- `],encapsulation:2,changeDetection:0})}return r})(),Zt=(()=>{class r{_ngZone=c(U);_document=c(ne);_styleLoader=c(st);_renderer=c(le).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new _;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=re([]);_globalListeners;_draggingPredicate=e=>e.isDragging();_domNodesToDirectives=null;pointerMove=new _;pointerUp=new _;constructor(){}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,be)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(e,i){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._styleLoader.load(_i),this._activeDragInstances.update(s=>[...s,e]),this._activeDragInstances().length===1)){let s=i.type.startsWith("touch"),n=a=>this.pointerUp.next(a),o=[["scroll",a=>this._scroll.next(a),z],["selectstart",this._preventDefaultWhileDragging,be]];s?o.push(["touchend",n,z],["touchcancel",n,z]):o.push(["mouseup",n,z]),s||o.push(["mousemove",a=>this.pointerMove.next(a),be]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=o.map(([a,l,d])=>this._renderer.listen(this._document,a,l,d))})}}stopDragging(e){this._activeDragInstances.update(i=>{let s=i.indexOf(e);return s>-1?(i.splice(s,1),[...i]):i}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances().indexOf(e)>-1}scrolled(e){let i=[this._scroll];return e&&e!==this._document&&i.push(new te(s=>this._ngZone.runOutsideAngular(()=>{let n=this._renderer.listen(e,"scroll",o=>{this._activeDragInstances().length&&s.next(o)},z);return()=>{n()}}))),$(...i)}registerDirectiveNode(e,i){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(e,i)}removeDirectiveNode(e){this._domNodesToDirectives?.delete(e)}getDragDirectiveForNode(e){return this._domNodesToDirectives?.get(e)||null}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=e=>{this._activeDragInstances().length>0&&e.preventDefault()};_persistentTouchmoveListener=e=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))};_clearGlobalListeners(){this._globalListeners?.forEach(e=>e()),this._globalListeners=void 0}static \u0275fac=function(i){return new(i||r)};static \u0275prov=se({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),gi={dragStartThreshold:5,pointerDirectionChangeThreshold:5},jt=(()=>{class r{_document=c(ne);_ngZone=c(U);_viewportRuler=c(_t);_dragDropRegistry=c(Zt);_renderer=c(le).createRenderer(null,null);constructor(){}createDrag(e,i=gi){return new ye(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(e){return new Ee(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(i){return new(i||r)};static \u0275prov=se({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),zt=new k("CDK_DRAG_PARENT");var mi=new k("CdkDragHandle");var qt=new k("CDK_DRAG_CONFIG"),Kt=new k("CdkDropList"),Yt=(()=>{class r{element=c(oe);dropContainer=c(Kt,{optional:!0,skipSelf:!0});_ngZone=c(U);_viewContainerRef=c(Ge);_dir=c(fe,{optional:!0});_changeDetectorRef=c(ge);_selfHandle=c(mi,{optional:!0,self:!0});_parentDrag=c(zt,{optional:!0,skipSelf:!0});_dragDropRegistry=c(Zt);_destroyed=new _;_handles=new Me([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new S;released=new S;ended=new S;entered=new S;exited=new S;dropped=new S;moved=new te(e=>{let i=this._dragRef.moved.pipe(Ne(s=>({source:this,pointerPosition:s.pointerPosition,event:s.event,delta:s.delta,distance:s.distance}))).subscribe(e);return()=>{i.unsubscribe()}});_injector=c(ze);constructor(){let e=this.dropContainer,i=c(qt,{optional:!0}),s=c(jt);this._dragRef=s.createDrag(this.element,{dragStartThreshold:i&&i.dragStartThreshold!=null?i.dragStartThreshold:5,pointerDirectionChangeThreshold:i&&i.pointerDirectionChangeThreshold!=null?i.pointerDirectionChangeThreshold:5,zIndex:i?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),i&&this._assignDefaults(i),e&&(e.addItem(this),e._dropListRef.beforeStarted.pipe(A(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}resetToBoundary(){this._dragRef.resetToBoundary()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){$e(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(e){let i=e.rootElementSelector,s=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){let i=this._handles.getValue();i.push(e),this._handles.next(i)}_removeHandle(e){let i=this._handles.getValue(),s=i.indexOf(e);s>-1&&(i.splice(s,1),this._handles.next(i))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let e=this.element.nativeElement,i=e;this.rootElementSelector&&(i=e.closest!==void 0?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||e)}_getBoundaryElement(){let e=this.boundaryElement;return e?typeof e=="string"?this.element.nativeElement.closest(e):x(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){let i=this._dir,s=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,o=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay=typeof s=="object"&&s?s:ue(s),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(o).withPreviewContainer(this.previewContainer||"global"),i&&e.withDirection(i.value)}}),e.beforeStarted.pipe(Fe(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let i=this.element.nativeElement.parentElement;for(;i;){let s=this._dragDropRegistry.getDragDirectiveForNode(i);if(s){e.withParent(s._dragRef);break}i=i.parentElement}})}_handleEvents(e){e.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),e.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(e){let{lockAxis:i,dragStartDelay:s,constrainPosition:n,previewClass:o,boundaryElement:a,draggingDisabled:l,rootElementSelector:d,previewContainer:h}=e;this.disabled=l??!1,this.dragStartDelay=s||0,i&&(this.lockAxis=i),n&&(this.constrainPosition=n),o&&(this.previewClass=o),a&&(this.boundaryElement=a),d&&(this.rootElementSelector=d),h&&(this.previewContainer=h)}_setupHandlesListener(){this._handles.pipe(Be(e=>{let i=e.map(s=>s.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),He(e=>$(...e.map(i=>i._stateChanges.pipe(ie(i))))),A(this._destroyed)).subscribe(e=>{let i=this._dragRef,s=e.element.nativeElement;e.disabled?i.disableHandle(s):i.enableHandle(s)})}static \u0275fac=function(i){return new(i||r)};static \u0275dir=de({type:r,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(i,s){i&2&&ce("cdk-drag-disabled",s.disabled)("cdk-drag-dragging",s._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",O],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",Ye]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[pe([{provide:zt,useExisting:r}]),Ve]})}return r})(),Vt=new k("CdkDropListGroup");var Xt=(()=>{class r{element=c(oe);_changeDetectorRef=c(ge);_scrollDispatcher=c(pt);_dir=c(fe,{optional:!0});_group=c(Vt,{optional:!0,skipSelf:!0});_latestSortedRefs;_destroyed=new _;_scrollableParentsResolved;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation;id=c(ot).getId("cdk-drop-list-");lockAxis;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=e}_disabled;sortingDisabled;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled;autoScrollStep;elementContainerSelector;hasAnchor;dropped=new S;entered=new S;exited=new S;sorted=new S;_unsortedItems=new Set;constructor(){let e=c(jt),i=c(qt,{optional:!0});this._dropListRef=e.createDropList(this.element),this._dropListRef.data=this,i&&this._assignDefaults(i),this._dropListRef.enterPredicate=(s,n)=>this.enterPredicate(s.data,n.data),this._dropListRef.sortPredicate=(s,n,o)=>this.sortPredicate(s,n.data,o.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),r._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(e){this._unsortedItems.add(e),e._dragRef._withDropContainer(this._dropListRef),this._dropListRef.isDragging()&&this._syncItemsWithRef(this.getSortedItems().map(i=>i._dragRef))}removeItem(e){if(this._unsortedItems.delete(e),this._latestSortedRefs){let i=this._latestSortedRefs.indexOf(e._dragRef);i>-1&&(this._latestSortedRefs.splice(i,1),this._syncItemsWithRef(this._latestSortedRefs))}}getSortedItems(){return Array.from(this._unsortedItems).sort((e,i)=>e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let e=r._dropLists.indexOf(this);e>-1&&r._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._latestSortedRefs=void 0,this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(ie(this._dir.value),A(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{let i=nt(this.connectedTo).map(s=>{if(typeof s=="string"){let n=r._dropLists.find(o=>o.id===s);return n}return s});if(this._group&&this._group._items.forEach(s=>{i.indexOf(s)===-1&&i.push(s)}),!this._scrollableParentsResolved){let s=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(n=>n.getElementRef().nativeElement);this._dropListRef.withScrollableParents(s),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let s=this.element.nativeElement.querySelector(this.elementContainerSelector);e.withElementContainer(s)}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=ue(this.autoScrollStep,2),e.hasAnchor=this.hasAnchor,e.connectedTo(i.filter(s=>s&&s!==this).map(s=>s._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(this.getSortedItems().map(i=>i._dragRef)),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),$(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){let{lockAxis:i,draggingDisabled:s,sortingDisabled:n,listAutoScrollDisabled:o,listOrientation:a}=e;this.disabled=s??!1,this.sortingDisabled=n??!1,this.autoScrollDisabled=o??!1,this.orientation=a||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(e){this._latestSortedRefs=e,this._dropListRef.withItems(e)}static \u0275fac=function(i){return new(i||r)};static \u0275dir=de({type:r,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(i,s){i&2&&(Ue("id",s.id),ce("cdk-drop-list-disabled",s.disabled)("cdk-drop-list-dragging",s._dropListRef.isDragging())("cdk-drop-list-receiving",s._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",O],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",O],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",O],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor","hasAnchor",O]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[pe([{provide:Vt,useValue:void 0},{provide:Kt,useExisting:r}])]})}return r})();function ui(r,t){if(r&1){let e=Z();p(0,"button",0),m("click",function(){E(e);let s=y();return C(s.clickAction("cancel"))}),p(1,"mat-icon",1),f(2,"close"),g(),p(3,"span"),f(4,"Close"),g()()}}var Qt=(()=>{class r{_bottomSheetRef=c(vt);data=c(ft);showCancel=!!(this.data&&this.data.showCancel);clickAction(e){this._bottomSheetRef.dismiss(e)}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=R({type:r,selectors:[["dashboards-bottom-sheet"]],decls:12,vars:1,consts:[["mat-list-item","",3,"click"],["matListItemIcon",""],["mat-list-item",""]],template:function(i,s){i&1&&(p(0,"mat-action-list")(1,"button",0),m("click",function(){return s.clickAction("duplicate")}),p(2,"mat-icon",1),f(3,"content_copy"),g(),p(4,"span"),f(5,"Duplicate"),g()(),p(6,"button",0),m("click",function(){return s.clickAction("delete")}),p(7,"mat-icon",1),f(8,"delete_forever"),g(),p(9,"span"),f(10,"Delete"),g()(),We(11,ui,5,0,"button",2),g()),i&2&&(b(11),Ze(s.showCancel?11:-1))},dependencies:[yt,St,Pt,wt,L,M],encapsulation:2})}return r})();var vi=(r,t)=>t.id;function Di(r,t){if(r&1){let e=Z();p(0,"div",5),m("cdkDragStarted",function(){E(e);let s=y();return C(s.dragStart())})("cdkDragMoved",function(s){E(e);let n=y();return C(n.onDragMoved(s))})("cdkDragEnded",function(){E(e);let s=y();return C(s.dragEnd())})("press",function(){let s=E(e).$index,n=y();return C(n.onPress(s))})("doubletap",function(){let s=E(e).$index,n=y();return C(n.editDashboard(s))}),p(1,"div",6),f(2),g(),p(3,"div"),W(4,"mat-icon",7),g(),p(5,"p",8),f(6),g()()}if(r&2){let e=t.$implicit,i=t.$index,s=y();I("mode","editor")("disableGestures",s._sheetOpen||s.suppressDrag)("cdkDragDisabled",s._sheetOpen||s.suppressDrag),b(2),he(i+1),b(2),Ke("width",72,"px")("height",72,"px"),I("svgIcon",e.icon||"dashboard"),b(2),he(e.name)}}var ei=(()=>{class r{pageTitle="Dashboards";_bottomSheet=c(Dt);_dashboard=c(et);_uiEvent=c(ut);_dialog=c(mt);_sanitizer=c(Je);_sheetOpen=!1;suppressDrag=!1;_dragActive=!1;_dragMoved=!1;_dragSuppressThresholdPx=4;addDashboard(){this._dialog.openDashboardPageEditorDialog({title:"New Dashboard",name:`Dashboard ${this._dashboard.dashboards().length+1}`,icon:"dashboard-dashboard",confirmBtnText:"Create",cancelBtnText:"Cancel"}).afterClosed().subscribe(e=>{e&&this._dashboard.add(e.name,[],e.icon,e.collapseSplitShell)})}openBottomSheet(e){if(this._sheetOpen)return;this._sheetOpen=!0;let i=typeof navigator<"u"&&/Linux/.test(navigator.platform)&&/Firefox/.test(navigator.userAgent);this._bottomSheet.open(Qt,i?{disableClose:!0,data:{showCancel:!0}}:{}).afterDismissed().subscribe(n=>{switch(this._sheetOpen=!1,n){case"delete":this.deleteDashboard(e);break;case"duplicate":this.duplicateDashboard(e,`${this._dashboard.dashboards()[e].name}`);break;default:break}})}editDashboard(e){let i=this._dashboard.dashboards()[e];this._dialog.openDashboardPageEditorDialog({title:"Dashboard Options",name:i.name,icon:i.icon||"dashboard-dashboard",confirmBtnText:"Save",cancelBtnText:"Cancel",collapseSplitShell:i.collapseSplitShell??!1}).afterClosed().subscribe(s=>{s&&this._dashboard.update(e,s.name,s.icon,s.collapseSplitShell)})}deleteDashboard(e){this._dashboard.delete(e)}duplicateDashboard(e,i){let s=this._dashboard.dashboards()[e];this._dialog.openDashboardPageEditorDialog({title:"Duplicate Dashboard",name:`${i} copy`,icon:s.icon||"dashboard-dashboard",confirmBtnText:"Save",cancelBtnText:"Cancel",collapseSplitShell:s.collapseSplitShell??!1}).afterClosed().subscribe(n=>{n&&this._dashboard.duplicate(e,n.name,n.icon,n.collapseSplitShell)})}drop(e){this._dashboard.dashboards.update(i=>{let s=[...i];J(s,e.previousIndex,e.currentIndex);let n=this._dashboard.activeDashboard();return n===e.previousIndex?this._dashboard.activeDashboard.set(e.currentIndex):n>e.previousIndex&&n<=e.currentIndex?this._dashboard.activeDashboard.set(n-1):n<e.previousIndex&&n>=e.currentIndex&&this._dashboard.activeDashboard.set(n+1),s})}dragStart(){this._sheetOpen||this.suppressDrag||(this._uiEvent.isDragging.set(!0),this._dragActive=!0,this._dragMoved=!1)}dragEnd(){this._uiEvent.isDragging.set(!1),this._dragActive=!1,setTimeout(()=>{this._dragMoved=!1},60)}onDragMoved(e){if(!this._dragActive||this._dragMoved)return;Math.hypot(e.distance.x,e.distance.y)>this._dragSuppressThresholdPx&&(this._dragMoved=!0)}onPress(e){this._sheetOpen||this._dragMoved||(this.cancelPointerSequence(),this.openBottomSheet(e))}cancelPointerSequence(){this.suppressDrag=!0,this._dragActive=!1,this._dragMoved=!1,["pointerup","mouseup","touchend"].forEach(e=>{document.dispatchEvent(new Event(e,{bubbles:!0}))})}onPointerRelease(){this._sheetOpen||(this.suppressDrag=!1)}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=R({type:r,selectors:[["dashboards-editor"]],hostBindings:function(i,s){i&1&&m("mouseup",function(){return s.onPointerRelease()},ae)("touchend",function(){return s.onPointerRelease()},ae)},decls:10,vars:0,consts:[["cdkDropList","","cdkDropListOrientation","mixed",1,"dashboard-manage",3,"cdkDropListDropped"],["kipGestures","","matRipple","","cdkDrag","","cdkDragBoundary",".dashboard-manage","tabindex","0",1,"dashboard-card","dashboard-item",3,"mode","disableGestures","cdkDragDisabled"],["tabindex","0",1,"dashboard-card","dashboard-item-add","dashboard-add-btn",3,"click","keydown"],["mat-fab",""],[2,"margin-top","10px"],["kipGestures","","matRipple","","cdkDrag","","cdkDragBoundary",".dashboard-manage","tabindex","0",1,"dashboard-card","dashboard-item",3,"cdkDragStarted","cdkDragMoved","cdkDragEnded","press","doubletap","mode","disableGestures","cdkDragDisabled"],[1,"item-index"],["aria-hidden","false",1,"dashboard-icon",3,"svgIcon"],[1,"dashboard-name"]],template:function(i,s){i&1&&(p(0,"div",0),m("cdkDropListDropped",function(o){return s.drop(o)}),je(1,Di,7,10,"div",1,vi),p(3,"div",2),m("click",function(){return s.addDashboard()})("keydown",function(){return s.addDashboard()}),p(4,"button",3)(5,"mat-icon"),f(6,"add_box"),g()(),p(7,"p",4)(8,"i"),f(9,"Add Dashboard"),g()()()()),i&2&&(b(),qe(s._dashboard.dashboards()))},dependencies:[bt,q,ht,L,M,Xt,Yt,ct,lt,Xe],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;overflow-y:auto;scroll-behavior:smooth}.dashboard-manage[_ngcontent-%COMP%]{box-sizing:border-box;padding:0 60px;width:100%;height:100%;display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-around;overflow-y:auto;scroll-behavior:smooth}.dashboard-card[_ngcontent-%COMP%]{position:relative;height:200px;width:300px;margin:10px;border-radius:15px;padding:10px;align-content:center;text-align:center;border:2px solid transparent}@media (max-width: 600px) and (orientation: portrait){.dashboard-manage[_ngcontent-%COMP%]{padding:0 70px}.dashboard-card[_ngcontent-%COMP%]{height:175px}}.dashboard-item[_ngcontent-%COMP%]{background-color:var(--mat-sys-surface-container-highest);cursor:pointer}.dashboard-item[_ngcontent-%COMP%]:hover{border:2px solid var(--mat-sys-outline)}.dashboard-item-add[_ngcontent-%COMP%]{background-color:var(--mat-sys-surface-container);cursor:pointer}.dashboard-item-add[_ngcontent-%COMP%]:hover{border:2px solid var(--mat-sys-outline)}.dashboard-add-btn[_ngcontent-%COMP%]{align-content:center;text-align:center;border:dashed 1px var(--mat-sys-outline)}.item-index[_ngcontent-%COMP%]{position:absolute;top:20px;left:20px;display:inline-flex;flex-wrap:wrap;height:42px;width:42px;background-color:var(--kip-contrast-dim-color);color:var(--mat-sys-surface-bright);border-radius:25%;align-content:center;align-items:center;justify-content:center;font-weight:700;font-size:1.25em;z-index:1}.dashboard-icon[_ngcontent-%COMP%]{opacity:.5}.dashboard-name[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:0;font-size:1.1em}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px var(--mat-sys-on-primary-container),0 8px 10px 1px var(--mat-sys-on-primary-container),0 3px 14px 2px var(--mat-sys-on-primary-container)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}"]})}return r})();var Ps=(()=>{class r{_router=c(Qe);app=c(at);_responsive=c(rt);_isPhonePortrait=me(this._responsive.observe(ve.HandsetPortrait));_isPhoneLandscape=me(this._responsive.observe(ve.HandsetLandscape));isPhonePortrait=_e(()=>this._isPhonePortrait().matches);isPhoneLandscape=_e(()=>this._isPhoneLandscape().matches);closePage(){this._router.navigate(["/dashboard"])}onActionItem(e){switch(e){case"help":this._router.navigate(["/help"]);break;case"datainspector":this._router.navigate(["/data"]);break;case"remotecontrol":this._router.navigate(["/remote"]);break;case"options":this._router.navigate(["/options"]);break;default:break}}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=R({type:r,selectors:[["settings"]],decls:11,vars:20,consts:[[1,"home-container"],[1,"actions-header-container"],[1,"actions-buttons-container"],["tabindex","0","svgIcon","settings","label","Options",3,"click","iconOnly","compact","iconSize"],["tabindex","0","svgIcon","troubleshoot","label","Data Inspector",3,"click","iconOnly","compact","iconSize"],["tabindex","0","svgIcon","remote-control","label","Remote Control",3,"click","iconOnly","compact","iconSize"],["tabindex","0","svgIcon","help-center","label","Help",3,"click","iconOnly","compact","iconSize"],["mat-icon-button","",1,"dialog-close-icon",3,"click"],[1,"dashboards-editor"]],template:function(i,s){i&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"tile-large-icon",3),m("click",function(){return s.onActionItem("options")}),g(),p(4,"tile-large-icon",4),m("click",function(){return s.onActionItem("datainspector")}),g(),p(5,"tile-large-icon",5),m("click",function(){return s.onActionItem("remotecontrol")}),g(),p(6,"tile-large-icon",6),m("click",function(){return s.onActionItem("help")}),g()(),p(7,"button",7),m("click",function(){return s.closePage()}),p(8,"mat-icon"),f(9,"close"),g()()(),W(10,"dashboards-editor",8),g()),i&2&&(b(3),F(`${s.isPhonePortrait()?"no-label":"with-label"}`),I("iconOnly",s.isPhonePortrait())("compact",!0)("iconSize",48),b(),F(`${s.isPhonePortrait()?"no-label":"with-label"}`),I("iconOnly",s.isPhonePortrait())("compact",!0)("iconSize",48),b(),F(`${s.isPhonePortrait()?"no-label":"with-label"}`),I("iconOnly",s.isPhonePortrait())("compact",!0)("iconSize",48),b(),F(`${s.isPhonePortrait()?"no-label":"with-label"}`),I("iconOnly",s.isPhonePortrait())("compact",!0)("iconSize",48))},dependencies:[L,M,q,dt,xt,gt,ei],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.home-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.actions-header-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;width:100%;padding:5px 0 5px 10px}.with-label[_ngcontent-%COMP%]{height:80px;width:100px}.no-label[_ngcontent-%COMP%]{height:58px;width:63px}.dashboard-editor[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow:auto}.actions-buttons-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;gap:5px}.dialog-close-icon[_ngcontent-%COMP%]{margin-right:15px;margin-top:6px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:max-content}"]})}return r})();export{Ps as SettingsComponent};
@@ -1,2 +0,0 @@
1
- import{a as q,i as w,m as tt,o as et,s as it}from"./chunk-SZ2GUIT5.js";import{Ab as Y,Bb as H,Cd as Q,Dd as W,Fa as E,Fd as v,Hb as g,Kb as z,La as R,Lb as F,Nd as b,Oa as A,Pa as M,Pd as T,Qa as L,X as r,Xa as S,Ya as m,a as h,da as C,de as K,ea as _,fd as j,ga as a,gd as U,ge as J,hb as x,hd as y,ib as f,j as p,ja as I,jb as N,ka as P,kd as B,na as d,nc as X,oa as O,rb as k,tb as u,vd as $,wa as c,xc as G,xd as Z,zb as V}from"./chunk-OB3QLUH6.js";var ht=["tooltip"],nt=20;var at=new _("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let n=a(d);return()=>w(n,{scrollThrottle:nt})}});function dt(n){let rt=a(d);return()=>w(rt,{scrollThrottle:nt})}var ct={provide:at,deps:[],useFactory:dt};function pt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var _t=new _("mat-tooltip-default-options",{providedIn:"root",factory:pt});var ot="tooltip-panel",st=U({passive:!0}),mt=8,ft=8,ut=24,gt=200,Ft=(()=>{class n{_elementRef=a(c);_ngZone=a(S);_platform=a(j);_ariaDescriber=a(Q);_focusMonitor=a(B);_dir=a(W);_injector=a(d);_viewContainerRef=a(R);_animationsDisabled=b();_defaultOptions=a(_t,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=yt;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=T(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let e=T(t);this._disabled!==e&&(this._disabled=e,e?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=y(t)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=y(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){let e=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(e)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new p;_isDestroyed=!1;constructor(){let t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._viewportMargin=mt}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(r(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,st)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,e){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let i=this._createOverlay(e);this._detach(),this._portal=this._portal||new q(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=i.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(r(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){let e=this._tooltipInstance;e&&(e.isVisible()?e.hide(t):(e._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&s._origin instanceof c)return this._overlayRef;this._detach()}let e=this._injector.get(K).getAncestorScrollContainers(this._elementRef),i=`${this._cssClassPrefix}-${ot}`,o=tt(this._injector,this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return o.positionChanges.pipe(r(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=et(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,i]:i,scrollStrategy:this._injector.get(at)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(r(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(r(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(r(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&s.keyCode===27&&!Z(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(r(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let e=t.getConfig().positionStrategy,i=this._getOrigin(),o=this._getOverlayPosition();e.withPositions([this._addOffset(h(h({},i.main),o.main)),this._addOffset(h(h({},i.fallback),o.fallback))])}_addOffset(t){let e=ft,i=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-e:t.originY==="bottom"?t.offsetY=e:t.originX==="start"?t.offsetX=i?-e:e:t.originX==="end"&&(t.offsetX=i?e:-e),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"||e=="below"?i={originX:"center",originY:e=="above"?"top":"bottom"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={originX:"start",originY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={originX:"end",originY:"center"});let{x:o,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:o,originY:s}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"?i={overlayX:"center",overlayY:"bottom"}:e=="below"?i={overlayX:"center",overlayY:"top"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={overlayX:"end",overlayY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={overlayX:"start",overlayY:"center"});let{x:o,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),m(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return this.position==="above"||this.position==="below"?e==="top"?e="bottom":e==="bottom"&&(e="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){let{overlayY:e,originX:i,originY:o}=t,s;if(e==="center"?this._dir&&this._dir.value==="rtl"?s=i==="end"?"left":"right":s=i==="start"?"left":"right":s=e==="bottom"&&o==="top"?"above":"below",s!==this._currentPosition){let l=this._overlayRef;if(l){let D=`${this._cssClassPrefix}-${ot}-`;l.removePanelClass(D+this._currentPosition),l.addPanelClass(D+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let e;t.x!==void 0&&t.y!==void 0&&(e=t),this.show(void 0,e)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let e=t.targetTouches?.[0],i=e?{x:e.clientX,y:e.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,i)},this._defaultOptions?.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",e=>{let i=e.relatedTarget;(!i||!this._overlayRef?.overlayElement.contains(i))&&this.hide()}],["wheel",e=>this._wheelListener(e)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([e,i])=>{this._elementRef.nativeElement.addEventListener(e,i,st)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let e=this._injector.get(O).elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e!==i&&!i.contains(e)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let e=this._elementRef.nativeElement,i=e.style;(t==="on"||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA")&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),(t==="on"||!e.draggable)&&(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._isDestroyed||m({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(e){return new(e||n)};static \u0275dir=L({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,i){e&2&&g("mat-mdc-tooltip-disabled",i.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return n})(),yt=(()=>{class n{_changeDetectorRef=a(X);_elementRef=a(c);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=b();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new p;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>ut&&t.width>=gt}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let e=this._tooltip.nativeElement,i=this._showAnimation,o=this._hideAnimation;if(e.classList.remove(t?o:i),e.classList.add(t?i:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let s=getComputedStyle(e);(s.getPropertyValue("animation-duration")==="0s"||s.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=A({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(e&1&&V(ht,7),e&2){let o;Y(o=H())&&(i._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(e,i){e&1&&u("mouseleave",function(s){return i._handleMouseLeave(s)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(e,i){if(e&1){let o=k();f(0,"div",1,0),u("animationend",function(l){return I(o),P(i._handleAnimationEnd(l))}),f(2,"div",2),z(3),N()()}e&2&&(g("mdc-tooltip--multiline",i._isMultiline),x("ngClass",i.tooltipClass),E(3),F(i.message))},dependencies:[G],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}
2
- `],encapsulation:2,changeDetection:0})}return n})(),Xt=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=M({type:n});static \u0275inj=C({providers:[ct],imports:[$,it,v,v,J]})}return n})();export{_t as a,Ft as b,Xt as c};
@@ -1 +0,0 @@
1
- import{Fa as r,Gb as p,Gd as f,Hd as v,Kb as o,Lb as h,Oa as c,Vd as x,Wc as u,_d as b,ga as d,hb as m,ib as e,jb as t,jc as s,kb as g,tb as l}from"./chunk-OB3QLUH6.js";var O=(()=>{class a{pageTitle=s.required();svgIconId=s.required();_router=d(u);backPage(){this._router.navigate(["/settings"])}closePage(){this._router.navigate(["/dashboard"])}static \u0275fac=function(n){return new(n||a)};static \u0275cmp=c({type:a,selectors:[["page-header"]],inputs:{pageTitle:[1,"pageTitle"],svgIconId:[1,"svgIconId"]},decls:11,vars:6,consts:[[1,"page-icon-container"],["aria-hidden","false",3,"svgIcon"],[1,"page-title"],[1,"dialog-close-icon"],["mat-icon-button","",3,"click"]],template:function(n,i){n&1&&(e(0,"div",0),g(1,"mat-icon",1),t(),e(2,"h6",2),o(3),t(),e(4,"div",3)(5,"button",4),l("click",function(){return i.backPage()}),e(6,"mat-icon"),o(7,"arrow_back_ios"),t()(),e(8,"button",4),l("click",function(){return i.closePage()}),e(9,"mat-icon"),o(10,"close"),t()()()),n&2&&(r(),p("width",24,"px")("height",24,"px"),m("svgIcon",i.svgIconId()),r(2),h(i.pageTitle()))},dependencies:[b,x,v,f],styles:["[_nghost-%COMP%]{display:flex;justify-content:space-between;align-items:center;flex-direction:row;flex-wrap:nowrap}.page-icon-container[_ngcontent-%COMP%]{width:100px;height:max-content;padding-left:15px;padding-top:6px}.page-title[_ngcontent-%COMP%]{margin-block-start:0px;margin-block-end:0px;padding:18px 0 13px;color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, .87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, .03125em))}.dialog-close-icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;gap:5px;padding-right:15px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:max-content}"]})}return a})();export{O as a};
@@ -1 +0,0 @@
1
- import{a as H,b as B,c as N,d as z,e as A,f as j}from"./chunk-52M2PJJL.js";import{a as U}from"./chunk-IJ22WXFB.js";import{e as L,g as E,h as F}from"./chunk-RYHOAWDD.js";import{a as V}from"./chunk-D2CYLQZF.js";import"./chunk-HIADZ4BV.js";import"./chunk-OQULS6SV.js";import{m as $}from"./chunk-XDPHEQEO.js";import{Fa as d,Gd as k,Hb as T,Hd as O,Ic as D,Kb as s,Lb as R,Mc as S,Oa as I,_d as P,bb as M,cb as b,db as w,fb as f,ga as g,gb as v,hb as h,ib as a,ja as u,jb as r,ka as _,kb as x,ra as c,rb as y,t as p,tb as C,vb as l}from"./chunk-OB3QLUH6.js";var K=(t,n)=>n.id;function q(t,n){if(t&1){let e=y();a(0,"button",9),C("click",function(){let o=u(e).$implicit,m=l();return _(m.displayDashboards(o.displayId))}),s(1),r()}if(t&2){let e=n.$implicit,i=l();T("selected",i.selectedDisplayButtonId()===e.displayId),d(),R(e.displayName)}}function W(t,n){t&1&&(a(0,"button",5)(1,"i"),s(2,'"No Remote"'),r()())}function G(t,n){t&1&&(a(0,"div",7),x(1,"mat-progress-spinner",10),r())}function J(t,n){if(t&1){let e=y();a(0,"tile-large-icon",12,0),C("click",function(){let o=u(e).$index,m=l(2);return _(m.setActiveScreen(o))}),r()}if(t&2){let e=n.$implicit,i=n.$index,o=l(2);h("active",o.activeScreen.value()===i)("svgIcon",e.icon)("iconSize",72)("label",e.name)}}function Q(t,n){if(t&1&&f(0,J,2,4,"tile-large-icon",11,K),t&2){let e=l();v(e.screens.value())}}function X(t,n){t&1&&(a(0,"div",8)(1,"mat-icon",13),s(2,"cast"),r(),a(3,"div",14)(4,"p"),s(5,"Select an available remote KIP in the menu."),r(),a(6,"p"),s(7,"To allow remote control of a dashboard, on that KIP device open Options \u2192 Display \u2192 Remote Control and enable it."),r()()())}var _e=(()=>{class t{http=g(D);_settings=g($);HOST_URL=this._settings.signalkUrl.url;pageTitle="Remote Control";displayId=c(null);displays=c(null);screens=S(()=>{if(this.displayId())return`${this.HOST_URL}/plugins/kip/displays/${this.displayId()}`});activeScreen=S(()=>{if(this.displayId())return`${this.HOST_URL}/plugins/kip/displays/${this.displayId()}/activeScreen`});selectedDisplayButtonId=c(null);appID="";ngOnInit(){this.appID=this._settings.KipUUID,p(this.http.get(`${this.HOST_URL}/plugins/kip/displays`)).then(e=>{this.displays.set(e.filter(i=>i.displayId!==this.appID))})}displayDashboards(e){this.displayId.set(e),this.selectedDisplayButtonId.set(e)}setActiveScreen(e){p(this.http.put(`${this.HOST_URL}/plugins/kip/displays/${this.displayId()}/activeScreen`,{screenIdx:e})).then(i=>{i.statusCode!==200&&console.error(`Failed to set active screen: ${i.message}`)}),this.activeScreen.set(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=I({type:t,selectors:[["remote-control"]],decls:11,vars:3,consts:[["tile",""],["svgIconId","remote-control",3,"pageTitle"],[1,"sidenav-remote-control-container"],["mode","side","opened",""],["mat-list-item","","tabindex","0",3,"selected"],["mat-list-item","","tabindex","0","disabled","true",2,"text-align","center"],[1,"sidenav-remote-control-content"],["aria-label","Loading screens",1,"loading-container"],["role","status","aria-live","polite",1,"empty-state-msg"],["mat-list-item","","tabindex","0",3,"click"],["mode","indeterminate","diameter","64","strokeWidth","5"],["tabindex","0",3,"active","svgIcon","iconSize","label"],["tabindex","0",3,"click","active","svgIcon","iconSize","label"],["aria-hidden","true","color","primary",1,"empty-state-icon"],[1,"copy"]],template:function(i,o){i&1&&(x(0,"page-header",1),a(1,"mat-sidenav-container",2)(2,"mat-sidenav",3)(3,"mat-action-list"),f(4,q,2,3,"button",4,w,!1,W,3,0,"button",5),r()(),a(7,"mat-sidenav-content",6),M(8,G,2,0,"div",7)(9,Q,2,0)(10,X,8,0,"div",8),r()()),i&2&&(h("pageTitle",o.pageTitle),d(4),v(o.displays()),d(4),b(o.screens.isLoading()?8:o.screens.hasValue()?9:10))},dependencies:[V,z,B,N,H,F,L,E,P,j,A,U,O,k],styles:[".sidenav-remote-control-container[_ngcontent-%COMP%]{height:calc(100% - 87px);width:calc(100% - 48px);margin:0 24px 24px;border:1px solid var(--mat-sys-outline-variant)}mat-sidenav[_ngcontent-%COMP%]{width:150px;--mat-sidenav-container-shape: square}.selected[_ngcontent-%COMP%]{background-color:var(--mat-sys-inverse-on-surface)}.loading-container[_ngcontent-%COMP%]{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px}.sidenav-remote-control-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;height:100%;width:100%;padding:5px;gap:5px;overflow-y:auto;scrollbar-width:none;overflow-x:hidden;scroll-behavior:smooth;flex:1 1 auto;min-height:0}tile-large-icon[_ngcontent-%COMP%]{width:190px}.empty-state-msg[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:center;height:100%;width:calc(100% - 150px);min-height:70vh;padding:2rem;text-align:center;color:var(--mat-sys-outline-variant);font-style:italic}.empty-state-icon[_ngcontent-%COMP%]{font-size:4rem;width:4rem;height:4rem;color:var(--mat-sys-outline-variant);margin-bottom:1rem}"]})}return t})();export{_e as RemoteControlComponent};