@signalk/freeboard-sk 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/{chunk-ZUWZA665.js → chunk-5LCPVX3S.js} +1 -1
- package/public/{chunk-BW2ETQQP.js → chunk-ECAD42KO.js} +1 -1
- package/public/{chunk-GGSNNB7Z.js → chunk-EXANCIHV.js} +1 -1
- package/public/{chunk-ZNBGUBXU.js → chunk-GU2FUO6Z.js} +1 -1
- package/public/{chunk-BT4IAQBW.js → chunk-KKD4UBHB.js} +3 -3
- package/public/{chunk-4ORQORV3.js → chunk-OFYILQE4.js} +1 -1
- package/public/{chunk-OTJKIGKW.js → chunk-RXMZCTQL.js} +2 -2
- package/public/{chunk-ZTLTHAPK.js → chunk-WMIZVO63.js} +1 -1
- package/public/{chunk-HF67WER7.js → chunk-XFMBJ4SJ.js} +1 -1
- package/public/index.html +1 -1
- package/public/{main-GWT4XTZZ.js → main-MARHMHOX.js} +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fa as $,o as Y,x as Z}from"./chunk-
|
|
1
|
+
import{Fa as $,o as Y,x as Z}from"./chunk-RXMZCTQL.js";import{a as N,b as Q,c as X}from"./chunk-IURS3QQO.js";import"./chunk-4BXCQ655.js";import{i as K,k as W}from"./chunk-LXTM3LEN.js";import{a as J,b as U,d as q}from"./chunk-IYNTZMNB.js";import{a as B}from"./chunk-3CRIFTHA.js";import"./chunk-UF7LOYCE.js";import"./chunk-XHEJEIFO.js";import"./chunk-I3OUN6B4.js";import{b as H,i as z,o as G}from"./chunk-WX7YZB5N.js";import{Dd as P,Ea as u,Ed as R,Fa as g,Ha as C,Hd as k,Ia as M,Ja as I,Jd as T,Ka as _,La as i,Ma as t,Na as b,Q as d,R as p,Rd as V,Td as A,Ua as h,Wa as f,Wd as F,Ya as c,Yd as O,Zd as j,ja as r,lb as n,mb as w,nb as v,oa as m,pb as D,pe as L,qb as S,ra as y,rb as E}from"./chunk-4BSA3TDQ.js";import"./chunk-EQVTEUXC.js";function te(o,a){if(o&1&&(i(0,"mat-option",10),n(1),t()),o&2){let e=a.$implicit;_("value",e),r(),w(e)}}function ie(o,a){if(o&1){let e=h();i(0,"div")(1,"ap-file-input",17),f("chosen",function(l){d(e);let x=c(2);return p(x.parseFile(l))}),i(2,"div",18)(3,"div",19),n(4," Click or Drop file "),t()()()()}o&2&&(r(),_("astext",!0))}function ne(o,a){if(o&1){let e=h();i(0,"div")(1,"div")(2,"b"),n(3,"Invalid Resource Data:"),t(),b(4,"br")(5,"br"),i(6,"i"),n(7,"Selected file does not contain valid data. "),t(),b(8,"br"),t(),i(9,"div",20)(10,"button",21),f("click",function(){d(e);let l=c(2);return p(l.app.showHelp("resource"))}),i(11,"mat-icon"),n(12,"help"),t(),n(13," Help "),t()()()}}function oe(o,a){o&1&&(i(0,"div",16),n(1," Note: Data will not be validated when uploaded to server! "),t())}function ae(o,a){if(o&1){let e=h();i(0,"div",7)(1,"div")(2,"mat-form-field",8)(3,"mat-label"),n(4,"Select Destination Path"),t(),i(5,"mat-select",9,0),E("valueChange",function(l){d(e);let x=c();return S(x.targetPath,l)||(x.targetPath=l),p(l)}),M(7,te,2,2,"mat-option",10,C),t()()(),u(9,ie,5,1,"div"),u(10,ne,14,0,"div"),i(11,"div")(12,"div",11)(13,"div",12)(14,"div")(15,"span",13),n(16,"Name:"),t(),n(17),t(),i(18,"div")(19,"span",13),n(20,"Type:"),t(),n(21),t()()(),i(22,"div",14)(23,"button",15),f("click",function(){d(e);let l=c();return p(l.load())}),i(24,"mat-icon"),n(25,"file_upload"),t(),n(26," \xA0Load\xA0 "),t(),b(27,"br"),n(28,"\xA0 "),u(29,oe,2,0,"div",16),t()()()}if(o&2){let e=c();r(5),_("disabled",!e.resPaths),D("value",e.targetPath),r(2),I(e.resPaths),r(2),g(e.source.name?-1:9),r(),g(e.display.notValid?10:-1),r(7),v(" ",e.source.name," "),r(4),v(" ",e.source.type," "),r(2),_("disabled",!e.targetPath||!e.source.name),r(6),g(e.targetPath&&e.source.name?29:-1)}}var ee=class o{constructor(a,e,s,l){this.app=a;this.skclient=e;this.dialogRef=s;this.data=l}resPaths=[];targetPath=null;source={type:null,name:null,data:null};display={notValid:!1};unsubscribe=[];ngOnInit(){this.skclient.api.get(this.app.skApiVersion,"/resources").subscribe(a=>{this.resPaths=[],this.targetPath=null,this.resPaths=Object.keys(a).filter(e=>!["routes","waypoints","notes","regions","charts","tracks"].includes(e))},()=>{this.resPaths=[],this.targetPath=null})}ngOnDestroy(){this.unsubscribe.forEach(a=>a.unsubscribe())}load(){this.dialogRef.close({path:this.targetPath,data:this.source.data})}parseFile(a){this.source=a,this.source.type="Unknown";try{let e=JSON.parse(a.data);this.source.type=e.type?e.type:this.source.type}catch(e){console.log("Error parsing resource file!")}}static \u0275fac=function(e){return new(e||o)(m(Z),m(Y),m(P),m(R))};static \u0275cmp=y({type:o,selectors:[["resource-upload-dialog"]],decls:13,vars:1,consts:[["respaths",""],[1,"resourceload-dialog"],[2,"background-color","transparent"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mat-dialog-content",""],[1,"card-group"],["floatLabel","always",2,"width","100%"],["id","respaths",3,"valueChange","disabled","value"],[3,"value"],[2,"display","flex","flex-wrap","wrap"],[2,"flex","1 1 auto","padding","5px","font-size","smaller"],[2,"font-weight","bold"],[2,"text-align","center","padding-top","15px"],["mat-raised-button","","matTooltip","Load features","matTooltipPosition","below",3,"click","disabled"],[2,"padding","10px","border","gray 1px dashed","font-style","italic"],[3,"chosen","astext"],[2,"width","200px"],[2,"padding","25%","border","gray 1px dashed"],[2,"width","100%","text-align","center"],["mat-raised-button","",3,"click"]],template:function(e,s){e&1&&(i(0,"div",1)(1,"mat-toolbar",2)(2,"span")(3,"mat-icon"),n(4,"category"),t()(),i(5,"span",3),n(6,"Load Resource"),t(),i(7,"span",4)(8,"button",5),f("click",function(){return s.dialogRef.close()}),i(9,"mat-icon"),n(10,"close"),t()()()(),i(11,"div",6),u(12,ae,30,8,"div",7),t()()),e&2&&(r(12),g(s.display.notValid?-1:12))},dependencies:[L,G,z,H,q,U,J,N,B,j,O,K,F,A,V,X,Q,W,T,k,$],styles:[".resourceload-dialog[_ngcontent-%COMP%]{font-family:roboto;position:relative;width:100%}.card-group[_ngcontent-%COMP%]{padding:5px 5%}@media only screen and (min-width:800px){.card-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{ee as ResourceImportDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ba as a}from"./chunk-
|
|
1
|
+
import{Ba as a}from"./chunk-RXMZCTQL.js";import"./chunk-IURS3QQO.js";import"./chunk-4BXCQ655.js";import"./chunk-LXTM3LEN.js";import"./chunk-IYNTZMNB.js";import"./chunk-3CRIFTHA.js";import"./chunk-UF7LOYCE.js";import"./chunk-XHEJEIFO.js";import"./chunk-I3OUN6B4.js";import"./chunk-WX7YZB5N.js";import"./chunk-4BSA3TDQ.js";import"./chunk-EQVTEUXC.js";export{a as Trail2RouteDialog};
|
package/public/index.html
CHANGED
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
56
|
</app-root>
|
|
57
|
-
<link rel="modulepreload" href="chunk-BJM4SVXD.js"><link rel="modulepreload" href="chunk-
|
|
57
|
+
<link rel="modulepreload" href="chunk-BJM4SVXD.js"><link rel="modulepreload" href="chunk-RXMZCTQL.js"><link rel="modulepreload" href="chunk-IURS3QQO.js"><link rel="modulepreload" href="chunk-4BXCQ655.js"><link rel="modulepreload" href="chunk-LXTM3LEN.js"><link rel="modulepreload" href="chunk-IYNTZMNB.js"><link rel="modulepreload" href="chunk-3CRIFTHA.js"><link rel="modulepreload" href="chunk-UF7LOYCE.js"><link rel="modulepreload" href="chunk-XHEJEIFO.js"><link rel="modulepreload" href="chunk-I3OUN6B4.js"><script src="polyfills-RV3JTMEC.js" type="module"></script><script src="main-MARHMHOX.js" type="module"></script></body>
|
|
58
58
|
</html>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as oo}from"./chunk-BJM4SVXD.js";import{$ as Di,B as pi,C as di,Ca as Qi,Da as Yi,E as ui,Ea as Ji,F as mi,Fa as eo,G as _i,Ga as to,H as fi,Ha as no,I as hi,Ia as io,M as gi,N as Ci,O as vi,P as bi,Q as wi,R as xi,S as yi,T as Ei,U as Ti,V as Si,W as Ai,X as ki,Y as Mi,Z as Pi,_ as Ii,a as qn,b as Hn,c as Xn,d as Kn,da as Ri,e as Zn,ea as Li,f as Jn,fa as Oi,g as ei,ja as Vi,ka as Fi,la as Ni,m as ti,ma as $i,n as Pt,na as Bi,o as ni,oa as qi,pa as zi,qa as Ui,r as ii,ra as ji,sa as Gi,t as oi,ta as j,u as Lt,ua as Wi,v as ri,va as Hi,w as ai,x as si,xa as Xi,y as li,ya as Ki,z as ci,za as Zi}from"./chunk-OTJKIGKW.js";import{a as Yn}from"./chunk-IURS3QQO.js";import{a as Un,g as jn,i as Gn,k as Wn,n as It,q as Dt,u as Rt}from"./chunk-4BXCQ655.js";import"./chunk-LXTM3LEN.js";import"./chunk-IYNTZMNB.js";import{a as Qn}from"./chunk-3CRIFTHA.js";import"./chunk-UF7LOYCE.js";import"./chunk-XHEJEIFO.js";import"./chunk-I3OUN6B4.js";import"./chunk-WX7YZB5N.js";import{$a as St,A as wt,Aa as Z,Ac as we,Ba as Q,Bc as In,Cd as $n,Da as ke,Ea as f,Fa as h,Fc as Mt,Fd as Bn,G as xt,Ha as ze,Hc as Dn,I as ee,Ia as G,Ib as be,Ja as W,Ka as x,L as mn,La as a,M as Ve,Ma as s,N as yt,Na as v,Oa as gn,Ob as ce,P as C,Pa as Cn,Pc as Rn,Q as u,Qa as Ue,R as m,Rd as Ze,Tb as xn,Tc as Ln,U as Et,Ua as E,V as Fe,Va as Ce,Vb as je,Vd as zn,Wa as _,Wd as Qe,X as Ne,Xa as vn,Xb as Ge,Y as te,Ya as l,Yd as xe,Z as z,Za as ue,Zd as ye,_ as oe,_a as Y,_b as yn,aa as $e,ab as J,bb as N,c as ae,ca as se,cb as $,cd as On,da as _n,ec as En,ed as Vn,fc as Tn,ga as fn,gb as Me,ha as le,hb as ne,ib as B,ic as Sn,ja as c,jb as At,jc as An,jd as Xe,ka as Tt,kb as bn,kc as pe,kd as Fn,l as bt,lb as d,lc as We,mb as U,na as Be,nb as me,nd as Nn,oa as ge,pc as kn,ra as R,rc as kt,rd as _e,s as pn,sa as qe,t as Se,ta as hn,tc as Mn,va as Ae,vd as Ke,wb as ve,xa as K,xb as wn,xc as He,y as dn,z as un,zb as re,zc as Pn}from"./chunk-4BSA3TDQ.js";import{a as Oe,b as cn,c as k,e as la,f as O}from"./chunk-EQVTEUXC.js";var Ee=k((xu,po)=>{"use strict";var Ea="2.0.0",Ta=Number.MAX_SAFE_INTEGER||9007199254740991,Sa=16,Aa=250,ka=["major","premajor","minor","preminor","patch","prepatch","prerelease"];po.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Sa,MAX_SAFE_BUILD_LENGTH:Aa,MAX_SAFE_INTEGER:Ta,RELEASE_TYPES:ka,SEMVER_SPEC_VERSION:Ea,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Pe=k((yu,uo)=>{"use strict";var Ma=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};uo.exports=Ma});var Te=k((ie,mo)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:$t,MAX_SAFE_BUILD_LENGTH:Pa,MAX_LENGTH:Ia}=Ee(),Da=Pe();ie=mo.exports={};var Ra=ie.re=[],La=ie.safeRe=[],b=ie.src=[],Oa=ie.safeSrc=[],w=ie.t={},Va=0,Bt="[a-zA-Z0-9-]",Fa=[["\\s",1],["\\d",Ia],[Bt,Pa]],Na=n=>{for(let[t,e]of Fa)n=n.split(`${t}*`).join(`${t}{0,${e}}`).split(`${t}+`).join(`${t}{1,${e}}`);return n},M=(n,t,e)=>{let i=Na(t),o=Va++;Da(n,o,t),w[n]=o,b[o]=t,Oa[o]=i,Ra[o]=new RegExp(t,e?"g":void 0),La[o]=new RegExp(i,e?"g":void 0)};M("NUMERICIDENTIFIER","0|[1-9]\\d*");M("NUMERICIDENTIFIERLOOSE","\\d+");M("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Bt}*`);M("MAINVERSION",`(${b[w.NUMERICIDENTIFIER]})\\.(${b[w.NUMERICIDENTIFIER]})\\.(${b[w.NUMERICIDENTIFIER]})`);M("MAINVERSIONLOOSE",`(${b[w.NUMERICIDENTIFIERLOOSE]})\\.(${b[w.NUMERICIDENTIFIERLOOSE]})\\.(${b[w.NUMERICIDENTIFIERLOOSE]})`);M("PRERELEASEIDENTIFIER",`(?:${b[w.NONNUMERICIDENTIFIER]}|${b[w.NUMERICIDENTIFIER]})`);M("PRERELEASEIDENTIFIERLOOSE",`(?:${b[w.NONNUMERICIDENTIFIER]}|${b[w.NUMERICIDENTIFIERLOOSE]})`);M("PRERELEASE",`(?:-(${b[w.PRERELEASEIDENTIFIER]}(?:\\.${b[w.PRERELEASEIDENTIFIER]})*))`);M("PRERELEASELOOSE",`(?:-?(${b[w.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${b[w.PRERELEASEIDENTIFIERLOOSE]})*))`);M("BUILDIDENTIFIER",`${Bt}+`);M("BUILD",`(?:\\+(${b[w.BUILDIDENTIFIER]}(?:\\.${b[w.BUILDIDENTIFIER]})*))`);M("FULLPLAIN",`v?${b[w.MAINVERSION]}${b[w.PRERELEASE]}?${b[w.BUILD]}?`);M("FULL",`^${b[w.FULLPLAIN]}$`);M("LOOSEPLAIN",`[v=\\s]*${b[w.MAINVERSIONLOOSE]}${b[w.PRERELEASELOOSE]}?${b[w.BUILD]}?`);M("LOOSE",`^${b[w.LOOSEPLAIN]}$`);M("GTLT","((?:<|>)?=?)");M("XRANGEIDENTIFIERLOOSE",`${b[w.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);M("XRANGEIDENTIFIER",`${b[w.NUMERICIDENTIFIER]}|x|X|\\*`);M("XRANGEPLAIN",`[v=\\s]*(${b[w.XRANGEIDENTIFIER]})(?:\\.(${b[w.XRANGEIDENTIFIER]})(?:\\.(${b[w.XRANGEIDENTIFIER]})(?:${b[w.PRERELEASE]})?${b[w.BUILD]}?)?)?`);M("XRANGEPLAINLOOSE",`[v=\\s]*(${b[w.XRANGEIDENTIFIERLOOSE]})(?:\\.(${b[w.XRANGEIDENTIFIERLOOSE]})(?:\\.(${b[w.XRANGEIDENTIFIERLOOSE]})(?:${b[w.PRERELEASELOOSE]})?${b[w.BUILD]}?)?)?`);M("XRANGE",`^${b[w.GTLT]}\\s*${b[w.XRANGEPLAIN]}$`);M("XRANGELOOSE",`^${b[w.GTLT]}\\s*${b[w.XRANGEPLAINLOOSE]}$`);M("COERCEPLAIN",`(^|[^\\d])(\\d{1,${$t}})(?:\\.(\\d{1,${$t}}))?(?:\\.(\\d{1,${$t}}))?`);M("COERCE",`${b[w.COERCEPLAIN]}(?:$|[^\\d])`);M("COERCEFULL",b[w.COERCEPLAIN]+`(?:${b[w.PRERELEASE]})?(?:${b[w.BUILD]})?(?:$|[^\\d])`);M("COERCERTL",b[w.COERCE],!0);M("COERCERTLFULL",b[w.COERCEFULL],!0);M("LONETILDE","(?:~>?)");M("TILDETRIM",`(\\s*)${b[w.LONETILDE]}\\s+`,!0);ie.tildeTrimReplace="$1~";M("TILDE",`^${b[w.LONETILDE]}${b[w.XRANGEPLAIN]}$`);M("TILDELOOSE",`^${b[w.LONETILDE]}${b[w.XRANGEPLAINLOOSE]}$`);M("LONECARET","(?:\\^)");M("CARETTRIM",`(\\s*)${b[w.LONECARET]}\\s+`,!0);ie.caretTrimReplace="$1^";M("CARET",`^${b[w.LONECARET]}${b[w.XRANGEPLAIN]}$`);M("CARETLOOSE",`^${b[w.LONECARET]}${b[w.XRANGEPLAINLOOSE]}$`);M("COMPARATORLOOSE",`^${b[w.GTLT]}\\s*(${b[w.LOOSEPLAIN]})$|^$`);M("COMPARATOR",`^${b[w.GTLT]}\\s*(${b[w.FULLPLAIN]})$|^$`);M("COMPARATORTRIM",`(\\s*)${b[w.GTLT]}\\s*(${b[w.LOOSEPLAIN]}|${b[w.XRANGEPLAIN]})`,!0);ie.comparatorTrimReplace="$1$2$3";M("HYPHENRANGE",`^\\s*(${b[w.XRANGEPLAIN]})\\s+-\\s+(${b[w.XRANGEPLAIN]})\\s*$`);M("HYPHENRANGELOOSE",`^\\s*(${b[w.XRANGEPLAINLOOSE]})\\s+-\\s+(${b[w.XRANGEPLAINLOOSE]})\\s*$`);M("STAR","(<|>)?=?\\s*\\*");M("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");M("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var tt=k((Eu,_o)=>{"use strict";var $a=Object.freeze({loose:!0}),Ba=Object.freeze({}),qa=n=>n?typeof n!="object"?$a:n:Ba;_o.exports=qa});var qt=k((Tu,go)=>{"use strict";var fo=/^[0-9]+$/,ho=(n,t)=>{if(typeof n=="number"&&typeof t=="number")return n===t?0:n<t?-1:1;let e=fo.test(n),i=fo.test(t);return e&&i&&(n=+n,t=+t),n===t?0:e&&!i?-1:i&&!e?1:n<t?-1:1},za=(n,t)=>ho(t,n);go.exports={compareIdentifiers:ho,rcompareIdentifiers:za}});var V=k((Su,vo)=>{"use strict";var nt=Pe(),{MAX_LENGTH:Co,MAX_SAFE_INTEGER:it}=Ee(),{safeRe:ot,t:rt}=Te(),Ua=tt(),{compareIdentifiers:zt}=qt(),ja=(n,t)=>{let e=t.split(".");if(e.length>n.length)return!1;for(let i=0;i<e.length;i++)if(zt(n[i],e[i])!==0)return!1;return!0},Ut=class n{constructor(t,e){if(e=Ua(e),t instanceof n){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Co)throw new TypeError(`version is longer than ${Co} characters`);nt("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;let i=t.trim().match(e.loose?ot[rt.LOOSE]:ot[rt.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>it||this.major<0)throw new TypeError("Invalid major version");if(this.minor>it||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>it||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let r=+o;if(r>=0&&r<it)return r}return o}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(nt("SemVer.compare",this.version,this.options,t),!(t instanceof n)){if(typeof t=="string"&&t===this.version)return 0;t=new n(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof n||(t=new n(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof n||(t=new n(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{let i=this.prerelease[e],o=t.prerelease[e];if(nt("prerelease compare",e,i,o),i===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(i===void 0)return-1;if(i===o)continue;return zt(i,o)}while(++e)}compareBuild(t){t instanceof n||(t=new n(t,this.options));let e=0;do{let i=this.build[e],o=t.build[e];if(nt("build compare",e,i,o),i===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(i===void 0)return-1;if(i===o)continue;return zt(i,o)}while(++e)}inc(t,e,i){if(t.startsWith("pre")){if(!e&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(e){let o=`-${e}`.match(this.options.loose?ot[rt.PRERELEASELOOSE]:ot[rt.PRERELEASE]);if(!o||o[1]!==e)throw new Error(`invalid identifier: ${e}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,i),this.inc("pre",e,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",e,i),this.inc("pre",e,i);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let o=Number(i)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]=="number"&&(this.prerelease[r]++,r=-2);if(r===-1){if(e===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(e){let r=[e,o];if(i===!1&&(r=[e]),ja(this.prerelease,e)){let p=this.prerelease[e.split(".").length];isNaN(p)&&(this.prerelease=r)}else this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};vo.exports=Ut});var de=k((Au,wo)=>{"use strict";var bo=V(),Ga=(n,t,e=!1)=>{if(n instanceof bo)return n;try{return new bo(n,t)}catch(i){if(!e)return null;throw i}};wo.exports=Ga});var yo=k((ku,xo)=>{"use strict";var Wa=de(),Ha=(n,t)=>{let e=Wa(n,t);return e?e.version:null};xo.exports=Ha});var To=k((Mu,Eo)=>{"use strict";var Xa=de(),Ka=(n,t)=>{let e=Xa(n.trim().replace(/^[=v]+/,""),t);return e?e.version:null};Eo.exports=Ka});var ko=k((Pu,Ao)=>{"use strict";var So=V(),Za=(n,t,e,i,o)=>{typeof e=="string"&&(o=i,i=e,e=void 0);try{return new So(n instanceof So?n.version:n,e).inc(t,i,o).version}catch(r){return null}};Ao.exports=Za});var Io=k((Iu,Po)=>{"use strict";var Mo=de(),Qa=(n,t)=>{let e=Mo(n,null,!0),i=Mo(t,null,!0),o=e.compare(i);if(o===0)return null;let r=o>0,p=r?e:i,g=r?i:e,y=!!p.prerelease.length;if(!!g.prerelease.length&&!y){if(!g.patch&&!g.minor)return"major";if(g.compareMain(p)===0)return g.minor&&!g.patch?"minor":"patch"}let P=y?"pre":"";return e.major!==i.major?P+"major":e.minor!==i.minor?P+"minor":e.patch!==i.patch?P+"patch":"prerelease"};Po.exports=Qa});var Ro=k((Du,Do)=>{"use strict";var Ya=V(),Ja=(n,t)=>new Ya(n,t).major;Do.exports=Ja});var Oo=k((Ru,Lo)=>{"use strict";var es=V(),ts=(n,t)=>new es(n,t).minor;Lo.exports=ts});var Fo=k((Lu,Vo)=>{"use strict";var ns=V(),is=(n,t)=>new ns(n,t).patch;Vo.exports=is});var $o=k((Ou,No)=>{"use strict";var os=de(),rs=(n,t)=>{let e=os(n,t);return e&&e.prerelease.length?e.prerelease:null};No.exports=rs});var H=k((Vu,qo)=>{"use strict";var Bo=V(),as=(n,t,e)=>new Bo(n,e).compare(new Bo(t,e));qo.exports=as});var Uo=k((Fu,zo)=>{"use strict";var ss=H(),ls=(n,t,e)=>ss(t,n,e);zo.exports=ls});var Go=k((Nu,jo)=>{"use strict";var cs=H(),ps=(n,t)=>cs(n,t,!0);jo.exports=ps});var at=k(($u,Ho)=>{"use strict";var Wo=V(),ds=(n,t,e)=>{let i=new Wo(n,e),o=new Wo(t,e);return i.compare(o)||i.compareBuild(o)};Ho.exports=ds});var Ko=k((Bu,Xo)=>{"use strict";var us=at(),ms=(n,t)=>n.sort((e,i)=>us(e,i,t));Xo.exports=ms});var Qo=k((qu,Zo)=>{"use strict";var _s=at(),fs=(n,t)=>n.sort((e,i)=>_s(i,e,t));Zo.exports=fs});var Ie=k((zu,Yo)=>{"use strict";var hs=H(),gs=(n,t,e)=>hs(n,t,e)>0;Yo.exports=gs});var st=k((Uu,Jo)=>{"use strict";var Cs=H(),vs=(n,t,e)=>Cs(n,t,e)<0;Jo.exports=vs});var jt=k((ju,er)=>{"use strict";var bs=H(),ws=(n,t,e)=>bs(n,t,e)===0;er.exports=ws});var Gt=k((Gu,tr)=>{"use strict";var xs=H(),ys=(n,t,e)=>xs(n,t,e)!==0;tr.exports=ys});var lt=k((Wu,nr)=>{"use strict";var Es=H(),Ts=(n,t,e)=>Es(n,t,e)>=0;nr.exports=Ts});var ct=k((Hu,ir)=>{"use strict";var Ss=H(),As=(n,t,e)=>Ss(n,t,e)<=0;ir.exports=As});var Wt=k((Xu,or)=>{"use strict";var ks=jt(),Ms=Gt(),Ps=Ie(),Is=lt(),Ds=st(),Rs=ct(),Ls=(n,t,e,i)=>{switch(t){case"===":return typeof n=="object"&&(n=n.version),typeof e=="object"&&(e=e.version),n===e;case"!==":return typeof n=="object"&&(n=n.version),typeof e=="object"&&(e=e.version),n!==e;case"":case"=":case"==":return ks(n,e,i);case"!=":return Ms(n,e,i);case">":return Ps(n,e,i);case">=":return Is(n,e,i);case"<":return Ds(n,e,i);case"<=":return Rs(n,e,i);default:throw new TypeError(`Invalid operator: ${t}`)}};or.exports=Ls});var ar=k((Ku,rr)=>{"use strict";var Os=V(),Vs=de(),{safeRe:pt,t:dt}=Te(),Fs=(n,t)=>{if(n instanceof Os)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;t=t||{};let e=null;if(!t.rtl)e=n.match(t.includePrerelease?pt[dt.COERCEFULL]:pt[dt.COERCE]);else{let y=t.includePrerelease?pt[dt.COERCERTLFULL]:pt[dt.COERCERTL],T;for(;(T=y.exec(n))&&(!e||e.index+e[0].length!==n.length);)(!e||T.index+T[0].length!==e.index+e[0].length)&&(e=T),y.lastIndex=T.index+T[1].length+T[2].length;y.lastIndex=-1}if(e===null)return null;let i=e[2],o=e[3]||"0",r=e[4]||"0",p=t.includePrerelease&&e[5]?`-${e[5]}`:"",g=t.includePrerelease&&e[6]?`+${e[6]}`:"";return Vs(`${i}.${o}.${r}${p}${g}`,t)};rr.exports=Fs});var lr=k((Zu,sr)=>{"use strict";var Ns=de(),$s=Ee(),Bs=V(),qs=(n,t,e)=>{if(!$s.RELEASE_TYPES.includes(t))return null;let i=zs(n,e);return i&&Us(i,t)},zs=(n,t)=>{let e=n instanceof Bs?n.version:n;return Ns(e,t)},Us=(n,t)=>{if(js(t))return n.version;switch(n.prerelease=[],t){case"major":n.minor=0,n.patch=0;break;case"minor":n.patch=0;break}return n.format()},js=n=>n.startsWith("pre");sr.exports=qs});var pr=k((Qu,cr)=>{"use strict";var Ht=class{constructor(){this.max=1e3,this.map=new Map}get(t){let e=this.map.get(t);if(e!==void 0)return this.map.delete(t),this.map.set(t,e),e}delete(t){return this.map.delete(t)}set(t,e){if(!this.delete(t)&&e!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(t,e)}return this}};cr.exports=Ht});var X=k((Yu,_r)=>{"use strict";var Gs=/\s+/g,Xt=class n{constructor(t,e){if(e=Hs(e),t instanceof n)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new n(t.raw,e);if(t instanceof Kt)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().replace(Gs," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(o=>!ur(o[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&nl(o[0])){this.set=[o];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let e=this.set[t];for(let i=0;i<e.length;i++)i>0&&(this.formatted+=" "),this.formatted+=e[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){t=t.replace(tl,"");let i=((this.options.includePrerelease&&Js)|(this.options.loose&&el))+":"+t,o=dr.get(i);if(o)return o;let r=this.options.loose,p=r?q[F.HYPHENRANGELOOSE]:q[F.HYPHENRANGE];t=t.replace(p,ml(this.options.includePrerelease)),I("hyphen replace",t),t=t.replace(q[F.COMPARATORTRIM],Zs),I("comparator trim",t),t=t.replace(q[F.TILDETRIM],Qs),I("tilde trim",t),t=t.replace(q[F.CARETTRIM],Ys),I("caret trim",t);let g=t.split(" ").map(S=>il(S,this.options)).join(" ").split(/\s+/).map(S=>ul(S,this.options));r&&(g=g.filter(S=>(I("loose invalid filter",S,this.options),!!S.match(q[F.COMPARATORLOOSE])))),I("range list",g);let y=new Map,T=g.map(S=>new Kt(S,this.options));for(let S of T){if(ur(S))return[S];y.set(S.value,S)}y.size>1&&y.has("")&&y.delete("");let P=[...y.values()];return dr.set(i,P),P}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Range is required");return this.set.some(i=>mr(i,e)&&t.set.some(o=>mr(o,e)&&i.every(r=>o.every(p=>r.intersects(p,e)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new Xs(t,this.options)}catch(e){return!1}for(let e=0;e<this.set.length;e++)if(_l(this.set[e],t,this.options))return!0;return!1}};_r.exports=Xt;var Ws=pr(),dr=new Ws,Hs=tt(),Kt=De(),I=Pe(),Xs=V(),{safeRe:q,src:Ks,t:F,comparatorTrimReplace:Zs,tildeTrimReplace:Qs,caretTrimReplace:Ys}=Te(),{FLAG_INCLUDE_PRERELEASE:Js,FLAG_LOOSE:el}=Ee(),tl=new RegExp(Ks[F.BUILD],"g"),ur=n=>n.value==="<0.0.0-0",nl=n=>n.value==="",mr=(n,t)=>{let e=!0,i=n.slice(),o=i.pop();for(;e&&i.length;)e=i.every(r=>o.intersects(r,t)),o=i.pop();return e},il=(n,t)=>(n=n.replace(q[F.BUILD],""),I("comp",n,t),n=sl(n,t),I("caret",n),n=rl(n,t),I("tildes",n),n=cl(n,t),I("xrange",n),n=dl(n,t),I("stars",n),n),L=n=>!n||n.toLowerCase()==="x"||n==="*",ol=(n,t,e)=>L(n)&&!L(t)||L(t)&&e&&!L(e),rl=(n,t)=>n.trim().split(/\s+/).map(e=>al(e,t)).join(" "),al=(n,t)=>{let e=t.loose?q[F.TILDELOOSE]:q[F.TILDE],i=t.includePrerelease?"-0":"";return n.replace(e,(o,r,p,g,y)=>{I("tilde",n,o,r,p,g,y);let T;return L(r)?T="":L(p)?T=`>=${r}.0.0${i} <${+r+1}.0.0-0`:L(g)?T=`>=${r}.${p}.0${i} <${r}.${+p+1}.0-0`:y?(I("replaceTilde pr",y),T=`>=${r}.${p}.${g}-${y} <${r}.${+p+1}.0-0`):T=`>=${r}.${p}.${g} <${r}.${+p+1}.0-0`,I("tilde return",T),T})},sl=(n,t)=>n.trim().split(/\s+/).map(e=>ll(e,t)).join(" "),ll=(n,t)=>{I("caret",n,t);let e=t.loose?q[F.CARETLOOSE]:q[F.CARET],i=t.includePrerelease?"-0":"";return n.replace(e,(o,r,p,g,y)=>{I("caret",n,o,r,p,g,y);let T;return L(r)?T="":L(p)?T=`>=${r}.0.0${i} <${+r+1}.0.0-0`:L(g)?r==="0"?T=`>=${r}.${p}.0${i} <${r}.${+p+1}.0-0`:T=`>=${r}.${p}.0${i} <${+r+1}.0.0-0`:y?(I("replaceCaret pr",y),r==="0"?p==="0"?T=`>=${r}.${p}.${g}-${y} <${r}.${p}.${+g+1}-0`:T=`>=${r}.${p}.${g}-${y} <${r}.${+p+1}.0-0`:T=`>=${r}.${p}.${g}-${y} <${+r+1}.0.0-0`):(I("no pr"),r==="0"?p==="0"?T=`>=${r}.${p}.${g} <${r}.${p}.${+g+1}-0`:T=`>=${r}.${p}.${g} <${r}.${+p+1}.0-0`:T=`>=${r}.${p}.${g} <${+r+1}.0.0-0`),I("caret return",T),T})},cl=(n,t)=>(I("replaceXRanges",n,t),n.split(/\s+/).map(e=>pl(e,t)).join(" ")),pl=(n,t)=>{n=n.trim();let e=t.loose?q[F.XRANGELOOSE]:q[F.XRANGE];return n.replace(e,(i,o,r,p,g,y)=>{if(I("xRange",n,i,o,r,p,g,y),ol(r,p,g))return n;let T=L(r),P=T||L(p),S=P||L(g),D=S;return o==="="&&D&&(o=""),y=t.includePrerelease?"-0":"",T?o===">"||o==="<"?i="<0.0.0-0":i="*":o&&D?(P&&(p=0),g=0,o===">"?(o=">=",P?(r=+r+1,p=0,g=0):(p=+p+1,g=0)):o==="<="&&(o="<",P?r=+r+1:p=+p+1),o==="<"&&(y="-0"),i=`${o+r}.${p}.${g}${y}`):P?i=`>=${r}.0.0${y} <${+r+1}.0.0-0`:S&&(i=`>=${r}.${p}.0${y} <${r}.${+p+1}.0-0`),I("xRange return",i),i})},dl=(n,t)=>(I("replaceStars",n,t),n.trim().replace(q[F.STAR],"")),ul=(n,t)=>(I("replaceGTE0",n,t),n.trim().replace(q[t.includePrerelease?F.GTE0PRE:F.GTE0],"")),ml=n=>(t,e,i,o,r,p,g,y,T,P,S,D)=>(L(i)?e="":L(o)?e=`>=${i}.0.0${n?"-0":""}`:L(r)?e=`>=${i}.${o}.0${n?"-0":""}`:p?e=`>=${e}`:e=`>=${e}${n?"-0":""}`,L(T)?y="":L(P)?y=`<${+T+1}.0.0-0`:L(S)?y=`<${T}.${+P+1}.0-0`:D?y=`<=${T}.${P}.${S}-${D}`:n?y=`<${T}.${P}.${+S+1}-0`:y=`<=${y}`,`${e} ${y}`.trim()),_l=(n,t,e)=>{for(let i=0;i<n.length;i++)if(!n[i].test(t))return!1;if(t.prerelease.length&&!e.includePrerelease){for(let i=0;i<n.length;i++)if(I(n[i].semver),n[i].semver!==Kt.ANY&&n[i].semver.prerelease.length>0){let o=n[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}});var De=k((Ju,br)=>{"use strict";var Re=Symbol("SemVer ANY"),Yt=class n{static get ANY(){return Re}constructor(t,e){if(e=fr(e),t instanceof n){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),Qt("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===Re?this.value="":this.value=this.operator+this.semver.version,Qt("comp",this)}parse(t){let e=this.options.loose?hr[gr.COMPARATORLOOSE]:hr[gr.COMPARATOR],i=t.match(e);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Cr(i[2],this.options.loose):this.semver=Re}toString(){return this.value}test(t){if(Qt("Comparator.test",t,this.options.loose),this.semver===Re||t===Re)return!0;if(typeof t=="string")try{t=new Cr(t,this.options)}catch(e){return!1}return Zt(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new vr(t.value,e).test(this.value):t.operator===""?t.value===""?!0:new vr(this.value,e).test(t.semver):(e=fr(e),e.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||Zt(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||Zt(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};br.exports=Yt;var fr=tt(),{safeRe:hr,t:gr}=Te(),Zt=Wt(),Qt=Pe(),Cr=V(),vr=X()});var Le=k((em,wr)=>{"use strict";var fl=X(),hl=(n,t,e)=>{try{t=new fl(t,e)}catch(i){return!1}return t.test(n)};wr.exports=hl});var yr=k((tm,xr)=>{"use strict";var gl=X(),Cl=(n,t)=>new gl(n,t).set.map(e=>e.map(i=>i.value).join(" ").trim().split(" "));xr.exports=Cl});var Tr=k((nm,Er)=>{"use strict";var vl=V(),bl=X(),wl=(n,t,e)=>{let i=null,o=null,r=null;try{r=new bl(t,e)}catch(p){return null}return n.forEach(p=>{r.test(p)&&(!i||o.compare(p)===-1)&&(i=p,o=new vl(i,e))}),i};Er.exports=wl});var Ar=k((im,Sr)=>{"use strict";var xl=V(),yl=X(),El=(n,t,e)=>{let i=null,o=null,r=null;try{r=new yl(t,e)}catch(p){return null}return n.forEach(p=>{r.test(p)&&(!i||o.compare(p)===1)&&(i=p,o=new xl(i,e))}),i};Sr.exports=El});var Pr=k((om,Mr)=>{"use strict";var Jt=V(),Tl=X(),kr=Ie(),Sl=(n,t)=>{n=new Tl(n,t);let e=new Jt("0.0.0");if(n.test(e)||(e=new Jt("0.0.0-0"),n.test(e)))return e;e=null;for(let i=0;i<n.set.length;++i){let o=n.set[i],r=null;o.forEach(p=>{let g=new Jt(p.semver.version);switch(p.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!r||kr(g,r))&&(r=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${p.operator}`)}}),r&&(!e||kr(e,r))&&(e=r)}return e&&n.test(e)?e:null};Mr.exports=Sl});var Dr=k((rm,Ir)=>{"use strict";var Al=X(),kl=(n,t)=>{try{return new Al(n,t).range||"*"}catch(e){return null}};Ir.exports=kl});var ut=k((am,Vr)=>{"use strict";var Ml=V(),Or=De(),{ANY:Pl}=Or,Il=X(),Dl=Le(),Rr=Ie(),Lr=st(),Rl=ct(),Ll=lt(),Ol=(n,t,e,i)=>{n=new Ml(n,i),t=new Il(t,i);let o,r,p,g,y;switch(e){case">":o=Rr,r=Rl,p=Lr,g=">",y=">=";break;case"<":o=Lr,r=Ll,p=Rr,g="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Dl(n,t,i))return!1;for(let T=0;T<t.set.length;++T){let P=t.set[T],S=null,D=null;if(P.forEach(A=>{A.semver===Pl&&(A=new Or(">=0.0.0")),S=S||A,D=D||A,o(A.semver,S.semver,i)?S=A:p(A.semver,D.semver,i)&&(D=A)}),S.operator===g||S.operator===y||(!D.operator||D.operator===g)&&r(n,D.semver))return!1;if(D.operator===y&&p(n,D.semver))return!1}return!0};Vr.exports=Ol});var Nr=k((sm,Fr)=>{"use strict";var Vl=ut(),Fl=(n,t,e)=>Vl(n,t,">",e);Fr.exports=Fl});var Br=k((lm,$r)=>{"use strict";var Nl=ut(),$l=(n,t,e)=>Nl(n,t,"<",e);$r.exports=$l});var Ur=k((cm,zr)=>{"use strict";var qr=X(),Bl=(n,t,e)=>(n=new qr(n,e),t=new qr(t,e),n.intersects(t,e));zr.exports=Bl});var Gr=k((pm,jr)=>{"use strict";var ql=Le(),zl=H();jr.exports=(n,t,e)=>{let i=[],o=null,r=null,p=n.sort((P,S)=>zl(P,S,e));for(let P of p)ql(P,t,e)?(r=P,o||(o=P)):(r&&i.push([o,r]),r=null,o=null);o&&i.push([o,null]);let g=[];for(let[P,S]of i)P===S?g.push(P):!S&&P===p[0]?g.push("*"):S?P===p[0]?g.push(`<=${S}`):g.push(`${P} - ${S}`):g.push(`>=${P}`);let y=g.join(" || "),T=typeof t.raw=="string"?t.raw:String(t);return y.length<T.length?y:t}});var Qr=k((dm,Zr)=>{"use strict";var Wr=X(),nn=De(),{ANY:en}=nn,tn=Le(),on=H(),Ul=(n,t,e={})=>{if(n===t)return!0;n=new Wr(n,e),t=new Wr(t,e);let i=!1;e:for(let o of n.set){for(let r of t.set){let p=Gl(o,r,e);if(i=i||p!==null,p)continue e}if(i)return!1}return!0},jl=[new nn(">=0.0.0-0")],Hr=[new nn(">=0.0.0")],Gl=(n,t,e)=>{if(n===t)return!0;if(n.length===1&&n[0].semver===en){if(t.length===1&&t[0].semver===en)return!0;e.includePrerelease?n=jl:n=Hr}if(t.length===1&&t[0].semver===en){if(e.includePrerelease)return!0;t=Hr}let i=new Set,o,r;for(let A of n)A.operator===">"||A.operator===">="?o=Xr(o,A,e):A.operator==="<"||A.operator==="<="?r=Kr(r,A,e):i.add(A.semver);if(i.size>1)return null;let p;if(o&&r){if(p=on(o.semver,r.semver,e),p>0)return null;if(p===0&&(o.operator!==">="||r.operator!=="<="))return null}for(let A of i){if(o&&!tn(A,String(o),e)||r&&!tn(A,String(r),e))return null;for(let sa of t)if(!tn(A,String(sa),e))return!1;return!0}let g,y,T,P,S=r&&!e.includePrerelease&&r.semver.prerelease.length?r.semver:!1,D=o&&!e.includePrerelease&&o.semver.prerelease.length?o.semver:!1;S&&S.prerelease.length===1&&r.operator==="<"&&S.prerelease[0]===0&&(S=!1);for(let A of t){if(P=P||A.operator===">"||A.operator===">=",T=T||A.operator==="<"||A.operator==="<=",o){if(D&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===D.major&&A.semver.minor===D.minor&&A.semver.patch===D.patch&&(D=!1),A.operator===">"||A.operator===">="){if(g=Xr(o,A,e),g===A&&g!==o)return!1}else if(o.operator===">="&&!A.test(o.semver))return!1}if(r){if(S&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===S.major&&A.semver.minor===S.minor&&A.semver.patch===S.patch&&(S=!1),A.operator==="<"||A.operator==="<="){if(y=Kr(r,A,e),y===A&&y!==r)return!1}else if(r.operator==="<="&&!A.test(r.semver))return!1}if(!A.operator&&(r||o)&&p!==0)return!1}return!(o&&T&&!r&&p!==0||r&&P&&!o&&p!==0||D||S)},Xr=(n,t,e)=>{if(!n)return t;let i=on(n.semver,t.semver,e);return i>0?n:i<0||t.operator===">"&&n.operator===">="?t:n},Kr=(n,t,e)=>{if(!n)return t;let i=on(n.semver,t.semver,e);return i<0?n:i>0||t.operator==="<"&&n.operator==="<="?t:n};Zr.exports=Ul});var ta=k((um,ea)=>{"use strict";var rn=Te(),Yr=Ee(),Wl=V(),Jr=qt(),Hl=de(),Xl=yo(),Kl=To(),Zl=ko(),Ql=Io(),Yl=Ro(),Jl=Oo(),ec=Fo(),tc=$o(),nc=H(),ic=Uo(),oc=Go(),rc=at(),ac=Ko(),sc=Qo(),lc=Ie(),cc=st(),pc=jt(),dc=Gt(),uc=lt(),mc=ct(),_c=Wt(),fc=ar(),hc=lr(),gc=De(),Cc=X(),vc=Le(),bc=yr(),wc=Tr(),xc=Ar(),yc=Pr(),Ec=Dr(),Tc=ut(),Sc=Nr(),Ac=Br(),kc=Ur(),Mc=Gr(),Pc=Qr();ea.exports={parse:Hl,valid:Xl,clean:Kl,inc:Zl,diff:Ql,major:Yl,minor:Jl,patch:ec,prerelease:tc,compare:nc,rcompare:ic,compareLoose:oc,compareBuild:rc,sort:ac,rsort:sc,gt:lc,lt:cc,eq:pc,neq:dc,gte:uc,lte:mc,cmp:_c,coerce:fc,truncate:hc,Comparator:gc,Range:Cc,satisfies:vc,toComparators:bc,maxSatisfying:wc,minSatisfying:xc,minVersion:yc,validRange:Ec,outside:Tc,gtr:Sc,ltr:Ac,intersects:kc,simplifyRange:Mc,subset:Pc,SemVer:Wl,re:rn.re,src:rn.src,tokens:rn.t,SEMVER_SPEC_VERSION:Yr.SEMVER_SPEC_VERSION,RELEASE_TYPES:Yr.RELEASE_TYPES,compareIdentifiers:Jr.compareIdentifiers,rcompareIdentifiers:Jr.rcompareIdentifiers}});var ro="mat-badge-content",ca=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=R({type:n,selectors:[["ng-component"]],decls:0,vars:0,template:function(i,o){},styles:[`.mat-badge {
|
|
1
|
+
import{d as oo}from"./chunk-BJM4SVXD.js";import{$ as Di,B as pi,C as di,Ca as Qi,Da as Yi,E as ui,Ea as Ji,F as mi,Fa as eo,G as _i,Ga as to,H as fi,Ha as no,I as hi,Ia as io,M as gi,N as Ci,O as vi,P as bi,Q as wi,R as xi,S as yi,T as Ei,U as Ti,V as Si,W as Ai,X as ki,Y as Mi,Z as Pi,_ as Ii,a as qn,b as Hn,c as Xn,d as Kn,da as Ri,e as Zn,ea as Li,f as Jn,fa as Oi,g as ei,ja as Vi,ka as Fi,la as Ni,m as ti,ma as $i,n as Pt,na as Bi,o as ni,oa as qi,pa as zi,qa as Ui,r as ii,ra as ji,sa as Gi,t as oi,ta as j,u as Lt,ua as Wi,v as ri,va as Hi,w as ai,x as si,xa as Xi,y as li,ya as Ki,z as ci,za as Zi}from"./chunk-RXMZCTQL.js";import{a as Yn}from"./chunk-IURS3QQO.js";import{a as Un,g as jn,i as Gn,k as Wn,n as It,q as Dt,u as Rt}from"./chunk-4BXCQ655.js";import"./chunk-LXTM3LEN.js";import"./chunk-IYNTZMNB.js";import{a as Qn}from"./chunk-3CRIFTHA.js";import"./chunk-UF7LOYCE.js";import"./chunk-XHEJEIFO.js";import"./chunk-I3OUN6B4.js";import"./chunk-WX7YZB5N.js";import{$a as St,A as wt,Aa as Z,Ac as we,Ba as Q,Bc as In,Cd as $n,Da as ke,Ea as f,Fa as h,Fc as Mt,Fd as Bn,G as xt,Ha as ze,Hc as Dn,I as ee,Ia as G,Ib as be,Ja as W,Ka as x,L as mn,La as a,M as Ve,Ma as s,N as yt,Na as v,Oa as gn,Ob as ce,P as C,Pa as Cn,Pc as Rn,Q as u,Qa as Ue,R as m,Rd as Ze,Tb as xn,Tc as Ln,U as Et,Ua as E,V as Fe,Va as Ce,Vb as je,Vd as zn,Wa as _,Wd as Qe,X as Ne,Xa as vn,Xb as Ge,Y as te,Ya as l,Yd as xe,Z as z,Za as ue,Zd as ye,_ as oe,_a as Y,_b as yn,aa as $e,ab as J,bb as N,c as ae,ca as se,cb as $,cd as On,da as _n,ec as En,ed as Vn,fc as Tn,ga as fn,gb as Me,ha as le,hb as ne,ib as B,ic as Sn,ja as c,jb as At,jc as An,jd as Xe,ka as Tt,kb as bn,kc as pe,kd as Fn,l as bt,lb as d,lc as We,mb as U,na as Be,nb as me,nd as Nn,oa as ge,pc as kn,ra as R,rc as kt,rd as _e,s as pn,sa as qe,t as Se,ta as hn,tc as Mn,va as Ae,vd as Ke,wb as ve,xa as K,xb as wn,xc as He,y as dn,z as un,zb as re,zc as Pn}from"./chunk-4BSA3TDQ.js";import{a as Oe,b as cn,c as k,e as la,f as O}from"./chunk-EQVTEUXC.js";var Ee=k((xu,po)=>{"use strict";var Ea="2.0.0",Ta=Number.MAX_SAFE_INTEGER||9007199254740991,Sa=16,Aa=250,ka=["major","premajor","minor","preminor","patch","prepatch","prerelease"];po.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Sa,MAX_SAFE_BUILD_LENGTH:Aa,MAX_SAFE_INTEGER:Ta,RELEASE_TYPES:ka,SEMVER_SPEC_VERSION:Ea,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Pe=k((yu,uo)=>{"use strict";var Ma=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};uo.exports=Ma});var Te=k((ie,mo)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:$t,MAX_SAFE_BUILD_LENGTH:Pa,MAX_LENGTH:Ia}=Ee(),Da=Pe();ie=mo.exports={};var Ra=ie.re=[],La=ie.safeRe=[],b=ie.src=[],Oa=ie.safeSrc=[],w=ie.t={},Va=0,Bt="[a-zA-Z0-9-]",Fa=[["\\s",1],["\\d",Ia],[Bt,Pa]],Na=n=>{for(let[t,e]of Fa)n=n.split(`${t}*`).join(`${t}{0,${e}}`).split(`${t}+`).join(`${t}{1,${e}}`);return n},M=(n,t,e)=>{let i=Na(t),o=Va++;Da(n,o,t),w[n]=o,b[o]=t,Oa[o]=i,Ra[o]=new RegExp(t,e?"g":void 0),La[o]=new RegExp(i,e?"g":void 0)};M("NUMERICIDENTIFIER","0|[1-9]\\d*");M("NUMERICIDENTIFIERLOOSE","\\d+");M("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Bt}*`);M("MAINVERSION",`(${b[w.NUMERICIDENTIFIER]})\\.(${b[w.NUMERICIDENTIFIER]})\\.(${b[w.NUMERICIDENTIFIER]})`);M("MAINVERSIONLOOSE",`(${b[w.NUMERICIDENTIFIERLOOSE]})\\.(${b[w.NUMERICIDENTIFIERLOOSE]})\\.(${b[w.NUMERICIDENTIFIERLOOSE]})`);M("PRERELEASEIDENTIFIER",`(?:${b[w.NONNUMERICIDENTIFIER]}|${b[w.NUMERICIDENTIFIER]})`);M("PRERELEASEIDENTIFIERLOOSE",`(?:${b[w.NONNUMERICIDENTIFIER]}|${b[w.NUMERICIDENTIFIERLOOSE]})`);M("PRERELEASE",`(?:-(${b[w.PRERELEASEIDENTIFIER]}(?:\\.${b[w.PRERELEASEIDENTIFIER]})*))`);M("PRERELEASELOOSE",`(?:-?(${b[w.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${b[w.PRERELEASEIDENTIFIERLOOSE]})*))`);M("BUILDIDENTIFIER",`${Bt}+`);M("BUILD",`(?:\\+(${b[w.BUILDIDENTIFIER]}(?:\\.${b[w.BUILDIDENTIFIER]})*))`);M("FULLPLAIN",`v?${b[w.MAINVERSION]}${b[w.PRERELEASE]}?${b[w.BUILD]}?`);M("FULL",`^${b[w.FULLPLAIN]}$`);M("LOOSEPLAIN",`[v=\\s]*${b[w.MAINVERSIONLOOSE]}${b[w.PRERELEASELOOSE]}?${b[w.BUILD]}?`);M("LOOSE",`^${b[w.LOOSEPLAIN]}$`);M("GTLT","((?:<|>)?=?)");M("XRANGEIDENTIFIERLOOSE",`${b[w.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);M("XRANGEIDENTIFIER",`${b[w.NUMERICIDENTIFIER]}|x|X|\\*`);M("XRANGEPLAIN",`[v=\\s]*(${b[w.XRANGEIDENTIFIER]})(?:\\.(${b[w.XRANGEIDENTIFIER]})(?:\\.(${b[w.XRANGEIDENTIFIER]})(?:${b[w.PRERELEASE]})?${b[w.BUILD]}?)?)?`);M("XRANGEPLAINLOOSE",`[v=\\s]*(${b[w.XRANGEIDENTIFIERLOOSE]})(?:\\.(${b[w.XRANGEIDENTIFIERLOOSE]})(?:\\.(${b[w.XRANGEIDENTIFIERLOOSE]})(?:${b[w.PRERELEASELOOSE]})?${b[w.BUILD]}?)?)?`);M("XRANGE",`^${b[w.GTLT]}\\s*${b[w.XRANGEPLAIN]}$`);M("XRANGELOOSE",`^${b[w.GTLT]}\\s*${b[w.XRANGEPLAINLOOSE]}$`);M("COERCEPLAIN",`(^|[^\\d])(\\d{1,${$t}})(?:\\.(\\d{1,${$t}}))?(?:\\.(\\d{1,${$t}}))?`);M("COERCE",`${b[w.COERCEPLAIN]}(?:$|[^\\d])`);M("COERCEFULL",b[w.COERCEPLAIN]+`(?:${b[w.PRERELEASE]})?(?:${b[w.BUILD]})?(?:$|[^\\d])`);M("COERCERTL",b[w.COERCE],!0);M("COERCERTLFULL",b[w.COERCEFULL],!0);M("LONETILDE","(?:~>?)");M("TILDETRIM",`(\\s*)${b[w.LONETILDE]}\\s+`,!0);ie.tildeTrimReplace="$1~";M("TILDE",`^${b[w.LONETILDE]}${b[w.XRANGEPLAIN]}$`);M("TILDELOOSE",`^${b[w.LONETILDE]}${b[w.XRANGEPLAINLOOSE]}$`);M("LONECARET","(?:\\^)");M("CARETTRIM",`(\\s*)${b[w.LONECARET]}\\s+`,!0);ie.caretTrimReplace="$1^";M("CARET",`^${b[w.LONECARET]}${b[w.XRANGEPLAIN]}$`);M("CARETLOOSE",`^${b[w.LONECARET]}${b[w.XRANGEPLAINLOOSE]}$`);M("COMPARATORLOOSE",`^${b[w.GTLT]}\\s*(${b[w.LOOSEPLAIN]})$|^$`);M("COMPARATOR",`^${b[w.GTLT]}\\s*(${b[w.FULLPLAIN]})$|^$`);M("COMPARATORTRIM",`(\\s*)${b[w.GTLT]}\\s*(${b[w.LOOSEPLAIN]}|${b[w.XRANGEPLAIN]})`,!0);ie.comparatorTrimReplace="$1$2$3";M("HYPHENRANGE",`^\\s*(${b[w.XRANGEPLAIN]})\\s+-\\s+(${b[w.XRANGEPLAIN]})\\s*$`);M("HYPHENRANGELOOSE",`^\\s*(${b[w.XRANGEPLAINLOOSE]})\\s+-\\s+(${b[w.XRANGEPLAINLOOSE]})\\s*$`);M("STAR","(<|>)?=?\\s*\\*");M("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");M("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var tt=k((Eu,_o)=>{"use strict";var $a=Object.freeze({loose:!0}),Ba=Object.freeze({}),qa=n=>n?typeof n!="object"?$a:n:Ba;_o.exports=qa});var qt=k((Tu,go)=>{"use strict";var fo=/^[0-9]+$/,ho=(n,t)=>{if(typeof n=="number"&&typeof t=="number")return n===t?0:n<t?-1:1;let e=fo.test(n),i=fo.test(t);return e&&i&&(n=+n,t=+t),n===t?0:e&&!i?-1:i&&!e?1:n<t?-1:1},za=(n,t)=>ho(t,n);go.exports={compareIdentifiers:ho,rcompareIdentifiers:za}});var V=k((Su,vo)=>{"use strict";var nt=Pe(),{MAX_LENGTH:Co,MAX_SAFE_INTEGER:it}=Ee(),{safeRe:ot,t:rt}=Te(),Ua=tt(),{compareIdentifiers:zt}=qt(),ja=(n,t)=>{let e=t.split(".");if(e.length>n.length)return!1;for(let i=0;i<e.length;i++)if(zt(n[i],e[i])!==0)return!1;return!0},Ut=class n{constructor(t,e){if(e=Ua(e),t instanceof n){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Co)throw new TypeError(`version is longer than ${Co} characters`);nt("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;let i=t.trim().match(e.loose?ot[rt.LOOSE]:ot[rt.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>it||this.major<0)throw new TypeError("Invalid major version");if(this.minor>it||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>it||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let r=+o;if(r>=0&&r<it)return r}return o}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(nt("SemVer.compare",this.version,this.options,t),!(t instanceof n)){if(typeof t=="string"&&t===this.version)return 0;t=new n(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof n||(t=new n(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof n||(t=new n(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{let i=this.prerelease[e],o=t.prerelease[e];if(nt("prerelease compare",e,i,o),i===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(i===void 0)return-1;if(i===o)continue;return zt(i,o)}while(++e)}compareBuild(t){t instanceof n||(t=new n(t,this.options));let e=0;do{let i=this.build[e],o=t.build[e];if(nt("build compare",e,i,o),i===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(i===void 0)return-1;if(i===o)continue;return zt(i,o)}while(++e)}inc(t,e,i){if(t.startsWith("pre")){if(!e&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(e){let o=`-${e}`.match(this.options.loose?ot[rt.PRERELEASELOOSE]:ot[rt.PRERELEASE]);if(!o||o[1]!==e)throw new Error(`invalid identifier: ${e}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,i),this.inc("pre",e,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",e,i),this.inc("pre",e,i);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let o=Number(i)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]=="number"&&(this.prerelease[r]++,r=-2);if(r===-1){if(e===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(e){let r=[e,o];if(i===!1&&(r=[e]),ja(this.prerelease,e)){let p=this.prerelease[e.split(".").length];isNaN(p)&&(this.prerelease=r)}else this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};vo.exports=Ut});var de=k((Au,wo)=>{"use strict";var bo=V(),Ga=(n,t,e=!1)=>{if(n instanceof bo)return n;try{return new bo(n,t)}catch(i){if(!e)return null;throw i}};wo.exports=Ga});var yo=k((ku,xo)=>{"use strict";var Wa=de(),Ha=(n,t)=>{let e=Wa(n,t);return e?e.version:null};xo.exports=Ha});var To=k((Mu,Eo)=>{"use strict";var Xa=de(),Ka=(n,t)=>{let e=Xa(n.trim().replace(/^[=v]+/,""),t);return e?e.version:null};Eo.exports=Ka});var ko=k((Pu,Ao)=>{"use strict";var So=V(),Za=(n,t,e,i,o)=>{typeof e=="string"&&(o=i,i=e,e=void 0);try{return new So(n instanceof So?n.version:n,e).inc(t,i,o).version}catch(r){return null}};Ao.exports=Za});var Io=k((Iu,Po)=>{"use strict";var Mo=de(),Qa=(n,t)=>{let e=Mo(n,null,!0),i=Mo(t,null,!0),o=e.compare(i);if(o===0)return null;let r=o>0,p=r?e:i,g=r?i:e,y=!!p.prerelease.length;if(!!g.prerelease.length&&!y){if(!g.patch&&!g.minor)return"major";if(g.compareMain(p)===0)return g.minor&&!g.patch?"minor":"patch"}let P=y?"pre":"";return e.major!==i.major?P+"major":e.minor!==i.minor?P+"minor":e.patch!==i.patch?P+"patch":"prerelease"};Po.exports=Qa});var Ro=k((Du,Do)=>{"use strict";var Ya=V(),Ja=(n,t)=>new Ya(n,t).major;Do.exports=Ja});var Oo=k((Ru,Lo)=>{"use strict";var es=V(),ts=(n,t)=>new es(n,t).minor;Lo.exports=ts});var Fo=k((Lu,Vo)=>{"use strict";var ns=V(),is=(n,t)=>new ns(n,t).patch;Vo.exports=is});var $o=k((Ou,No)=>{"use strict";var os=de(),rs=(n,t)=>{let e=os(n,t);return e&&e.prerelease.length?e.prerelease:null};No.exports=rs});var H=k((Vu,qo)=>{"use strict";var Bo=V(),as=(n,t,e)=>new Bo(n,e).compare(new Bo(t,e));qo.exports=as});var Uo=k((Fu,zo)=>{"use strict";var ss=H(),ls=(n,t,e)=>ss(t,n,e);zo.exports=ls});var Go=k((Nu,jo)=>{"use strict";var cs=H(),ps=(n,t)=>cs(n,t,!0);jo.exports=ps});var at=k(($u,Ho)=>{"use strict";var Wo=V(),ds=(n,t,e)=>{let i=new Wo(n,e),o=new Wo(t,e);return i.compare(o)||i.compareBuild(o)};Ho.exports=ds});var Ko=k((Bu,Xo)=>{"use strict";var us=at(),ms=(n,t)=>n.sort((e,i)=>us(e,i,t));Xo.exports=ms});var Qo=k((qu,Zo)=>{"use strict";var _s=at(),fs=(n,t)=>n.sort((e,i)=>_s(i,e,t));Zo.exports=fs});var Ie=k((zu,Yo)=>{"use strict";var hs=H(),gs=(n,t,e)=>hs(n,t,e)>0;Yo.exports=gs});var st=k((Uu,Jo)=>{"use strict";var Cs=H(),vs=(n,t,e)=>Cs(n,t,e)<0;Jo.exports=vs});var jt=k((ju,er)=>{"use strict";var bs=H(),ws=(n,t,e)=>bs(n,t,e)===0;er.exports=ws});var Gt=k((Gu,tr)=>{"use strict";var xs=H(),ys=(n,t,e)=>xs(n,t,e)!==0;tr.exports=ys});var lt=k((Wu,nr)=>{"use strict";var Es=H(),Ts=(n,t,e)=>Es(n,t,e)>=0;nr.exports=Ts});var ct=k((Hu,ir)=>{"use strict";var Ss=H(),As=(n,t,e)=>Ss(n,t,e)<=0;ir.exports=As});var Wt=k((Xu,or)=>{"use strict";var ks=jt(),Ms=Gt(),Ps=Ie(),Is=lt(),Ds=st(),Rs=ct(),Ls=(n,t,e,i)=>{switch(t){case"===":return typeof n=="object"&&(n=n.version),typeof e=="object"&&(e=e.version),n===e;case"!==":return typeof n=="object"&&(n=n.version),typeof e=="object"&&(e=e.version),n!==e;case"":case"=":case"==":return ks(n,e,i);case"!=":return Ms(n,e,i);case">":return Ps(n,e,i);case">=":return Is(n,e,i);case"<":return Ds(n,e,i);case"<=":return Rs(n,e,i);default:throw new TypeError(`Invalid operator: ${t}`)}};or.exports=Ls});var ar=k((Ku,rr)=>{"use strict";var Os=V(),Vs=de(),{safeRe:pt,t:dt}=Te(),Fs=(n,t)=>{if(n instanceof Os)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;t=t||{};let e=null;if(!t.rtl)e=n.match(t.includePrerelease?pt[dt.COERCEFULL]:pt[dt.COERCE]);else{let y=t.includePrerelease?pt[dt.COERCERTLFULL]:pt[dt.COERCERTL],T;for(;(T=y.exec(n))&&(!e||e.index+e[0].length!==n.length);)(!e||T.index+T[0].length!==e.index+e[0].length)&&(e=T),y.lastIndex=T.index+T[1].length+T[2].length;y.lastIndex=-1}if(e===null)return null;let i=e[2],o=e[3]||"0",r=e[4]||"0",p=t.includePrerelease&&e[5]?`-${e[5]}`:"",g=t.includePrerelease&&e[6]?`+${e[6]}`:"";return Vs(`${i}.${o}.${r}${p}${g}`,t)};rr.exports=Fs});var lr=k((Zu,sr)=>{"use strict";var Ns=de(),$s=Ee(),Bs=V(),qs=(n,t,e)=>{if(!$s.RELEASE_TYPES.includes(t))return null;let i=zs(n,e);return i&&Us(i,t)},zs=(n,t)=>{let e=n instanceof Bs?n.version:n;return Ns(e,t)},Us=(n,t)=>{if(js(t))return n.version;switch(n.prerelease=[],t){case"major":n.minor=0,n.patch=0;break;case"minor":n.patch=0;break}return n.format()},js=n=>n.startsWith("pre");sr.exports=qs});var pr=k((Qu,cr)=>{"use strict";var Ht=class{constructor(){this.max=1e3,this.map=new Map}get(t){let e=this.map.get(t);if(e!==void 0)return this.map.delete(t),this.map.set(t,e),e}delete(t){return this.map.delete(t)}set(t,e){if(!this.delete(t)&&e!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(t,e)}return this}};cr.exports=Ht});var X=k((Yu,_r)=>{"use strict";var Gs=/\s+/g,Xt=class n{constructor(t,e){if(e=Hs(e),t instanceof n)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new n(t.raw,e);if(t instanceof Kt)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().replace(Gs," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(o=>!ur(o[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&nl(o[0])){this.set=[o];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let e=this.set[t];for(let i=0;i<e.length;i++)i>0&&(this.formatted+=" "),this.formatted+=e[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){t=t.replace(tl,"");let i=((this.options.includePrerelease&&Js)|(this.options.loose&&el))+":"+t,o=dr.get(i);if(o)return o;let r=this.options.loose,p=r?q[F.HYPHENRANGELOOSE]:q[F.HYPHENRANGE];t=t.replace(p,ml(this.options.includePrerelease)),I("hyphen replace",t),t=t.replace(q[F.COMPARATORTRIM],Zs),I("comparator trim",t),t=t.replace(q[F.TILDETRIM],Qs),I("tilde trim",t),t=t.replace(q[F.CARETTRIM],Ys),I("caret trim",t);let g=t.split(" ").map(S=>il(S,this.options)).join(" ").split(/\s+/).map(S=>ul(S,this.options));r&&(g=g.filter(S=>(I("loose invalid filter",S,this.options),!!S.match(q[F.COMPARATORLOOSE])))),I("range list",g);let y=new Map,T=g.map(S=>new Kt(S,this.options));for(let S of T){if(ur(S))return[S];y.set(S.value,S)}y.size>1&&y.has("")&&y.delete("");let P=[...y.values()];return dr.set(i,P),P}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Range is required");return this.set.some(i=>mr(i,e)&&t.set.some(o=>mr(o,e)&&i.every(r=>o.every(p=>r.intersects(p,e)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new Xs(t,this.options)}catch(e){return!1}for(let e=0;e<this.set.length;e++)if(_l(this.set[e],t,this.options))return!0;return!1}};_r.exports=Xt;var Ws=pr(),dr=new Ws,Hs=tt(),Kt=De(),I=Pe(),Xs=V(),{safeRe:q,src:Ks,t:F,comparatorTrimReplace:Zs,tildeTrimReplace:Qs,caretTrimReplace:Ys}=Te(),{FLAG_INCLUDE_PRERELEASE:Js,FLAG_LOOSE:el}=Ee(),tl=new RegExp(Ks[F.BUILD],"g"),ur=n=>n.value==="<0.0.0-0",nl=n=>n.value==="",mr=(n,t)=>{let e=!0,i=n.slice(),o=i.pop();for(;e&&i.length;)e=i.every(r=>o.intersects(r,t)),o=i.pop();return e},il=(n,t)=>(n=n.replace(q[F.BUILD],""),I("comp",n,t),n=sl(n,t),I("caret",n),n=rl(n,t),I("tildes",n),n=cl(n,t),I("xrange",n),n=dl(n,t),I("stars",n),n),L=n=>!n||n.toLowerCase()==="x"||n==="*",ol=(n,t,e)=>L(n)&&!L(t)||L(t)&&e&&!L(e),rl=(n,t)=>n.trim().split(/\s+/).map(e=>al(e,t)).join(" "),al=(n,t)=>{let e=t.loose?q[F.TILDELOOSE]:q[F.TILDE],i=t.includePrerelease?"-0":"";return n.replace(e,(o,r,p,g,y)=>{I("tilde",n,o,r,p,g,y);let T;return L(r)?T="":L(p)?T=`>=${r}.0.0${i} <${+r+1}.0.0-0`:L(g)?T=`>=${r}.${p}.0${i} <${r}.${+p+1}.0-0`:y?(I("replaceTilde pr",y),T=`>=${r}.${p}.${g}-${y} <${r}.${+p+1}.0-0`):T=`>=${r}.${p}.${g} <${r}.${+p+1}.0-0`,I("tilde return",T),T})},sl=(n,t)=>n.trim().split(/\s+/).map(e=>ll(e,t)).join(" "),ll=(n,t)=>{I("caret",n,t);let e=t.loose?q[F.CARETLOOSE]:q[F.CARET],i=t.includePrerelease?"-0":"";return n.replace(e,(o,r,p,g,y)=>{I("caret",n,o,r,p,g,y);let T;return L(r)?T="":L(p)?T=`>=${r}.0.0${i} <${+r+1}.0.0-0`:L(g)?r==="0"?T=`>=${r}.${p}.0${i} <${r}.${+p+1}.0-0`:T=`>=${r}.${p}.0${i} <${+r+1}.0.0-0`:y?(I("replaceCaret pr",y),r==="0"?p==="0"?T=`>=${r}.${p}.${g}-${y} <${r}.${p}.${+g+1}-0`:T=`>=${r}.${p}.${g}-${y} <${r}.${+p+1}.0-0`:T=`>=${r}.${p}.${g}-${y} <${+r+1}.0.0-0`):(I("no pr"),r==="0"?p==="0"?T=`>=${r}.${p}.${g} <${r}.${p}.${+g+1}-0`:T=`>=${r}.${p}.${g} <${r}.${+p+1}.0-0`:T=`>=${r}.${p}.${g} <${+r+1}.0.0-0`),I("caret return",T),T})},cl=(n,t)=>(I("replaceXRanges",n,t),n.split(/\s+/).map(e=>pl(e,t)).join(" ")),pl=(n,t)=>{n=n.trim();let e=t.loose?q[F.XRANGELOOSE]:q[F.XRANGE];return n.replace(e,(i,o,r,p,g,y)=>{if(I("xRange",n,i,o,r,p,g,y),ol(r,p,g))return n;let T=L(r),P=T||L(p),S=P||L(g),D=S;return o==="="&&D&&(o=""),y=t.includePrerelease?"-0":"",T?o===">"||o==="<"?i="<0.0.0-0":i="*":o&&D?(P&&(p=0),g=0,o===">"?(o=">=",P?(r=+r+1,p=0,g=0):(p=+p+1,g=0)):o==="<="&&(o="<",P?r=+r+1:p=+p+1),o==="<"&&(y="-0"),i=`${o+r}.${p}.${g}${y}`):P?i=`>=${r}.0.0${y} <${+r+1}.0.0-0`:S&&(i=`>=${r}.${p}.0${y} <${r}.${+p+1}.0-0`),I("xRange return",i),i})},dl=(n,t)=>(I("replaceStars",n,t),n.trim().replace(q[F.STAR],"")),ul=(n,t)=>(I("replaceGTE0",n,t),n.trim().replace(q[t.includePrerelease?F.GTE0PRE:F.GTE0],"")),ml=n=>(t,e,i,o,r,p,g,y,T,P,S,D)=>(L(i)?e="":L(o)?e=`>=${i}.0.0${n?"-0":""}`:L(r)?e=`>=${i}.${o}.0${n?"-0":""}`:p?e=`>=${e}`:e=`>=${e}${n?"-0":""}`,L(T)?y="":L(P)?y=`<${+T+1}.0.0-0`:L(S)?y=`<${T}.${+P+1}.0-0`:D?y=`<=${T}.${P}.${S}-${D}`:n?y=`<${T}.${P}.${+S+1}-0`:y=`<=${y}`,`${e} ${y}`.trim()),_l=(n,t,e)=>{for(let i=0;i<n.length;i++)if(!n[i].test(t))return!1;if(t.prerelease.length&&!e.includePrerelease){for(let i=0;i<n.length;i++)if(I(n[i].semver),n[i].semver!==Kt.ANY&&n[i].semver.prerelease.length>0){let o=n[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}});var De=k((Ju,br)=>{"use strict";var Re=Symbol("SemVer ANY"),Yt=class n{static get ANY(){return Re}constructor(t,e){if(e=fr(e),t instanceof n){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),Qt("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===Re?this.value="":this.value=this.operator+this.semver.version,Qt("comp",this)}parse(t){let e=this.options.loose?hr[gr.COMPARATORLOOSE]:hr[gr.COMPARATOR],i=t.match(e);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Cr(i[2],this.options.loose):this.semver=Re}toString(){return this.value}test(t){if(Qt("Comparator.test",t,this.options.loose),this.semver===Re||t===Re)return!0;if(typeof t=="string")try{t=new Cr(t,this.options)}catch(e){return!1}return Zt(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new vr(t.value,e).test(this.value):t.operator===""?t.value===""?!0:new vr(this.value,e).test(t.semver):(e=fr(e),e.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||Zt(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||Zt(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};br.exports=Yt;var fr=tt(),{safeRe:hr,t:gr}=Te(),Zt=Wt(),Qt=Pe(),Cr=V(),vr=X()});var Le=k((em,wr)=>{"use strict";var fl=X(),hl=(n,t,e)=>{try{t=new fl(t,e)}catch(i){return!1}return t.test(n)};wr.exports=hl});var yr=k((tm,xr)=>{"use strict";var gl=X(),Cl=(n,t)=>new gl(n,t).set.map(e=>e.map(i=>i.value).join(" ").trim().split(" "));xr.exports=Cl});var Tr=k((nm,Er)=>{"use strict";var vl=V(),bl=X(),wl=(n,t,e)=>{let i=null,o=null,r=null;try{r=new bl(t,e)}catch(p){return null}return n.forEach(p=>{r.test(p)&&(!i||o.compare(p)===-1)&&(i=p,o=new vl(i,e))}),i};Er.exports=wl});var Ar=k((im,Sr)=>{"use strict";var xl=V(),yl=X(),El=(n,t,e)=>{let i=null,o=null,r=null;try{r=new yl(t,e)}catch(p){return null}return n.forEach(p=>{r.test(p)&&(!i||o.compare(p)===1)&&(i=p,o=new xl(i,e))}),i};Sr.exports=El});var Pr=k((om,Mr)=>{"use strict";var Jt=V(),Tl=X(),kr=Ie(),Sl=(n,t)=>{n=new Tl(n,t);let e=new Jt("0.0.0");if(n.test(e)||(e=new Jt("0.0.0-0"),n.test(e)))return e;e=null;for(let i=0;i<n.set.length;++i){let o=n.set[i],r=null;o.forEach(p=>{let g=new Jt(p.semver.version);switch(p.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!r||kr(g,r))&&(r=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${p.operator}`)}}),r&&(!e||kr(e,r))&&(e=r)}return e&&n.test(e)?e:null};Mr.exports=Sl});var Dr=k((rm,Ir)=>{"use strict";var Al=X(),kl=(n,t)=>{try{return new Al(n,t).range||"*"}catch(e){return null}};Ir.exports=kl});var ut=k((am,Vr)=>{"use strict";var Ml=V(),Or=De(),{ANY:Pl}=Or,Il=X(),Dl=Le(),Rr=Ie(),Lr=st(),Rl=ct(),Ll=lt(),Ol=(n,t,e,i)=>{n=new Ml(n,i),t=new Il(t,i);let o,r,p,g,y;switch(e){case">":o=Rr,r=Rl,p=Lr,g=">",y=">=";break;case"<":o=Lr,r=Ll,p=Rr,g="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Dl(n,t,i))return!1;for(let T=0;T<t.set.length;++T){let P=t.set[T],S=null,D=null;if(P.forEach(A=>{A.semver===Pl&&(A=new Or(">=0.0.0")),S=S||A,D=D||A,o(A.semver,S.semver,i)?S=A:p(A.semver,D.semver,i)&&(D=A)}),S.operator===g||S.operator===y||(!D.operator||D.operator===g)&&r(n,D.semver))return!1;if(D.operator===y&&p(n,D.semver))return!1}return!0};Vr.exports=Ol});var Nr=k((sm,Fr)=>{"use strict";var Vl=ut(),Fl=(n,t,e)=>Vl(n,t,">",e);Fr.exports=Fl});var Br=k((lm,$r)=>{"use strict";var Nl=ut(),$l=(n,t,e)=>Nl(n,t,"<",e);$r.exports=$l});var Ur=k((cm,zr)=>{"use strict";var qr=X(),Bl=(n,t,e)=>(n=new qr(n,e),t=new qr(t,e),n.intersects(t,e));zr.exports=Bl});var Gr=k((pm,jr)=>{"use strict";var ql=Le(),zl=H();jr.exports=(n,t,e)=>{let i=[],o=null,r=null,p=n.sort((P,S)=>zl(P,S,e));for(let P of p)ql(P,t,e)?(r=P,o||(o=P)):(r&&i.push([o,r]),r=null,o=null);o&&i.push([o,null]);let g=[];for(let[P,S]of i)P===S?g.push(P):!S&&P===p[0]?g.push("*"):S?P===p[0]?g.push(`<=${S}`):g.push(`${P} - ${S}`):g.push(`>=${P}`);let y=g.join(" || "),T=typeof t.raw=="string"?t.raw:String(t);return y.length<T.length?y:t}});var Qr=k((dm,Zr)=>{"use strict";var Wr=X(),nn=De(),{ANY:en}=nn,tn=Le(),on=H(),Ul=(n,t,e={})=>{if(n===t)return!0;n=new Wr(n,e),t=new Wr(t,e);let i=!1;e:for(let o of n.set){for(let r of t.set){let p=Gl(o,r,e);if(i=i||p!==null,p)continue e}if(i)return!1}return!0},jl=[new nn(">=0.0.0-0")],Hr=[new nn(">=0.0.0")],Gl=(n,t,e)=>{if(n===t)return!0;if(n.length===1&&n[0].semver===en){if(t.length===1&&t[0].semver===en)return!0;e.includePrerelease?n=jl:n=Hr}if(t.length===1&&t[0].semver===en){if(e.includePrerelease)return!0;t=Hr}let i=new Set,o,r;for(let A of n)A.operator===">"||A.operator===">="?o=Xr(o,A,e):A.operator==="<"||A.operator==="<="?r=Kr(r,A,e):i.add(A.semver);if(i.size>1)return null;let p;if(o&&r){if(p=on(o.semver,r.semver,e),p>0)return null;if(p===0&&(o.operator!==">="||r.operator!=="<="))return null}for(let A of i){if(o&&!tn(A,String(o),e)||r&&!tn(A,String(r),e))return null;for(let sa of t)if(!tn(A,String(sa),e))return!1;return!0}let g,y,T,P,S=r&&!e.includePrerelease&&r.semver.prerelease.length?r.semver:!1,D=o&&!e.includePrerelease&&o.semver.prerelease.length?o.semver:!1;S&&S.prerelease.length===1&&r.operator==="<"&&S.prerelease[0]===0&&(S=!1);for(let A of t){if(P=P||A.operator===">"||A.operator===">=",T=T||A.operator==="<"||A.operator==="<=",o){if(D&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===D.major&&A.semver.minor===D.minor&&A.semver.patch===D.patch&&(D=!1),A.operator===">"||A.operator===">="){if(g=Xr(o,A,e),g===A&&g!==o)return!1}else if(o.operator===">="&&!A.test(o.semver))return!1}if(r){if(S&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===S.major&&A.semver.minor===S.minor&&A.semver.patch===S.patch&&(S=!1),A.operator==="<"||A.operator==="<="){if(y=Kr(r,A,e),y===A&&y!==r)return!1}else if(r.operator==="<="&&!A.test(r.semver))return!1}if(!A.operator&&(r||o)&&p!==0)return!1}return!(o&&T&&!r&&p!==0||r&&P&&!o&&p!==0||D||S)},Xr=(n,t,e)=>{if(!n)return t;let i=on(n.semver,t.semver,e);return i>0?n:i<0||t.operator===">"&&n.operator===">="?t:n},Kr=(n,t,e)=>{if(!n)return t;let i=on(n.semver,t.semver,e);return i<0?n:i>0||t.operator==="<"&&n.operator==="<="?t:n};Zr.exports=Ul});var ta=k((um,ea)=>{"use strict";var rn=Te(),Yr=Ee(),Wl=V(),Jr=qt(),Hl=de(),Xl=yo(),Kl=To(),Zl=ko(),Ql=Io(),Yl=Ro(),Jl=Oo(),ec=Fo(),tc=$o(),nc=H(),ic=Uo(),oc=Go(),rc=at(),ac=Ko(),sc=Qo(),lc=Ie(),cc=st(),pc=jt(),dc=Gt(),uc=lt(),mc=ct(),_c=Wt(),fc=ar(),hc=lr(),gc=De(),Cc=X(),vc=Le(),bc=yr(),wc=Tr(),xc=Ar(),yc=Pr(),Ec=Dr(),Tc=ut(),Sc=Nr(),Ac=Br(),kc=Ur(),Mc=Gr(),Pc=Qr();ea.exports={parse:Hl,valid:Xl,clean:Kl,inc:Zl,diff:Ql,major:Yl,minor:Jl,patch:ec,prerelease:tc,compare:nc,rcompare:ic,compareLoose:oc,compareBuild:rc,sort:ac,rsort:sc,gt:lc,lt:cc,eq:pc,neq:dc,gte:uc,lte:mc,cmp:_c,coerce:fc,truncate:hc,Comparator:gc,Range:Cc,satisfies:vc,toComparators:bc,maxSatisfying:wc,minSatisfying:xc,minVersion:yc,validRange:Ec,outside:Tc,gtr:Sc,ltr:Ac,intersects:kc,simplifyRange:Mc,subset:Pc,SemVer:Wl,re:rn.re,src:rn.src,tokens:rn.t,SEMVER_SPEC_VERSION:Yr.SEMVER_SPEC_VERSION,RELEASE_TYPES:Yr.RELEASE_TYPES,compareIdentifiers:Jr.compareIdentifiers,rcompareIdentifiers:Jr.rcompareIdentifiers}});var ro="mat-badge-content",ca=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=R({type:n,selectors:[["ng-component"]],decls:0,vars:0,template:function(i,o){},styles:[`.mat-badge {
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
4
|
.mat-badge.mat-badge {
|
|
@@ -456,9 +456,9 @@ import{d as oo}from"./chunk-BJM4SVXD.js";import{$ as Di,B as pi,C as di,Ca as Qi
|
|
|
456
456
|
.mat-sidenav-fixed {
|
|
457
457
|
position: fixed;
|
|
458
458
|
}
|
|
459
|
-
`],encapsulation:2,changeDetection:0})}return n})(),Je=(()=>{class n extends Ye{static \u0275fac=(()=>{let e;return function(o){return(e||(e=$e(n)))(o||n)}})();static \u0275cmp=R({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[ve([{provide:we,useExisting:n}]),Ae],ngContentSelectors:et,decls:1,vars:0,template:function(i,o){i&1&&(ue(),Y(0))},encapsulation:2,changeDetection:0})}return n})(),Nt=(()=>{class n extends Ot{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=_e(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=kt(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=kt(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=$e(n)))(o||n)}})();static \u0275cmp=R({type:n,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(i,o){i&2&&(ke("tabIndex",o.mode!=="side"?"-1":null)("align",null),ne("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),B("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[ve([{provide:Ot,useExisting:n}]),Ae],ngContentSelectors:et,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,o){i&1&&(ue(),a(0,"div",1,0),Y(2),s())},dependencies:[we],encapsulation:2,changeDetection:0})}return n})(),lo=(()=>{class n extends Vt{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=$e(n)))(o||n)}})();static \u0275cmp=R({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(i,o,r){if(i&1&&St(r,Je,5)(r,Nt,5),i&2){let p;N(p=$())&&(o._content=p.first),N(p=$())&&(o._allDrawers=p)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,o){i&2&&B("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],features:[ve([{provide:Ft,useExisting:n},{provide:Vt,useExisting:n}]),Ae],ngContentSelectors:Ca,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,o){i&1&&(ue(ga),f(0,va,1,2,"div",0),Y(1),Y(2,1),f(3,ba,2,0,"mat-sidenav-content")),i&2&&(h(o.hasBackdrop?0:-1),c(3),h(o._content?-1:3))},dependencies:[Je],styles:[wa],encapsulation:2,changeDetection:0})}return n})(),co=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=qe({type:n});static \u0275inj=Ve({imports:[Mt,He,Mt]})}return n})();var aa=la(ta());function an(n){let t=[];for(let e of n)for(let i of e.events)t.push(`${e.id}:${i.pr}`);return t}function na(n,t){if(!Array.isArray(t))return n;let e=new Set(t.filter(i=>typeof i=="string"));return n.filter(i=>!e.has(i))}var ia="fb-whats-new-seen",mt=class n{corpus=C(oo);_hasUnseen=z(!1);hasUnseen=this._hasUnseen.asReadonly();init(){return O(this,null,function*(){let t=yield this.corpus.load(),e=na(an(t),this.readSeen());this._hasUnseen.set(e.length>0)})}markAllSeen(){return O(this,null,function*(){let t=yield this.corpus.load();this.writeSeen(an(t)),this._hasUnseen.set(!1)})}readSeen(){try{let t=localStorage.getItem(ia);return t===null?null:JSON.parse(t)}catch(t){return null}}writeSeen(t){try{localStorage.setItem(ia,JSON.stringify(t))}catch(e){}}static \u0275fac=function(e){return new(e||n)};static \u0275prov=mn({token:n,factory:n.\u0275fac,providedIn:"root"})};var Rc=["frame"],_t=class n{constructor(t,e){this.service=t;this.sanitizer=e}placed=ce.required();frame;url;detach=null;ngOnInit(){let t=this.service.widgetDef(this.placed().extension,this.placed().widget);this.url=this.sanitizer.bypassSecurityTrustResourceUrl(t?.url?this.service.resolveAssetUrl(t.url):"about:blank"),this.detach=this.service.attachWidget(this.frame.nativeElement,this.placed())}onFrameLoad(){}ngOnDestroy(){this.detach?.(),this.detach=null}static \u0275fac=function(e){return new(e||n)(ge(j),ge(pe))};static \u0275cmp=R({type:n,selectors:[["fb-plotterext-widget"]],viewQuery:function(e,i){if(e&1&&J(Rc,7),e&2){let o;N(o=$())&&(i.frame=o.first)}},inputs:{placed:[1,"placed"]},decls:2,vars:2,consts:[["frame",""],["sandbox","allow-scripts allow-same-origin allow-forms",3,"load","src","title"]],template:function(e,i){e&1&&(gn(0,"iframe",1,0),vn("load",function(){return i.onFrameLoad()}),Cn()),e&2&&Ce("src",i.url,le)("title",i.placed().widget)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:none;background:transparent}"]})};var Lc=()=>[],Oc=(n,t)=>t.type+t.extension,Vc=(n,t)=>t.instanceId;function Fc(n,t){if(n&1){let e=E();a(0,"div",3)(1,"mat-icon",4),d(2,"filter_alt"),s(),a(3,"span",5),d(4),s(),a(5,"button",6),_("click",function(){let o=u(e).$implicit,r=l(2);return m(r.clearChip(o))}),a(6,"mat-icon"),d(7,"close"),s()()()}if(n&2){let e=t.$implicit;c(4),U(e.label)}}function Nc(n,t){if(n&1&&(a(0,"div",2),G(1,Fc,8,1,"div",3,Oc),s()),n&2){let e=l();B("pe-chips-low",(e.byAnchor().ct??wn(2,Lc)).length>0),c(),W(e.service.filterChips())}}function $c(n,t){if(n&1&&(a(0,"div",9),v(1,"fb-plotterext-widget",10),s()),n&2){let e=t.$implicit,i=l(2);At(i.cellStyle(e)),c(),x("placed",e)}}function Bc(n,t){if(n&1&&(a(0,"div",7),G(1,$c,2,3,"div",8,Vc),s()),n&2){let e=t.$implicit,i=l();At(i.anchorStyle(e)),bn("pe-"+e),ke("data-anchor",e),c(),W(i.byAnchor()[e])}}var qc=1500,oa=8,ht=class n{anchors=It;byAnchor=be(()=>{let t={};for(let e of It)t[e]=[];for(let e of this.service.activeWidgets())t[e.anchor]?.push(e);return t});service=C(j);zone=C(te);host=C(se);holdTimer=null;downPoint=null;onPointerDown=t=>this.pointerDown(t);onPointerMove=t=>this.pointerMove(t);onPointerEnd=()=>this.cancelHold();unregisterHitTester=null;ngOnInit(){this.unregisterHitTester=this.service.registerHitTester((t,e)=>this.hitTest(t,e)),this.zone.runOutsideAngular(()=>{document.addEventListener("pointerdown",this.onPointerDown,!0),document.addEventListener("pointermove",this.onPointerMove,!0),document.addEventListener("pointerup",this.onPointerEnd,!0),document.addEventListener("pointercancel",this.onPointerEnd,!0)})}ngOnDestroy(){this.cancelHold(),this.unregisterHitTester?.(),this.unregisterHitTester=null,document.removeEventListener("pointerdown",this.onPointerDown,!0),document.removeEventListener("pointermove",this.onPointerMove,!0),document.removeEventListener("pointerup",this.onPointerEnd,!0),document.removeEventListener("pointercancel",this.onPointerEnd,!0)}anchorStyle(t){let e={"grid-template-columns":`repeat(${Dt[t].cols}, var(--pe-cell-w))`};if(t!=="ct"&&t!=="cb")return e;let i=new Set;for(let r of this.byAnchor()[t]??[]){let p=this.service.widgetDef(r.extension,r.widget),{cols:g}=Rt(p?.size??"1x1");for(let y=r.col;y<r.col+g&&y<2;y++)i.add(y)}let o="0px";return i.size===1&&(o=i.has(0)?"calc((var(--pe-cell-w) + var(--pe-gap)) / 2)":"calc((var(--pe-cell-w) + var(--pe-gap)) / -2)"),e["--pe-center-shift"]=o,e}cellStyle(t){let e=this.service.widgetDef(t.extension,t.widget),{cols:i,rows:o}=Rt(e?.size??"1x1");return{"grid-column":`${t.col+1} / span ${i}`,"grid-row":`${t.row+1} / span ${o}`}}clearChip(t){this.service.clearResourceFilter(t.extension,t.type)}pointerDown(t){if(this.cancelHold(),!t.isPrimary||t.pointerType==="mouse"&&t.button!==0||t.target?.closest(".cdk-overlay-container, mat-dialog-container, button, mat-toolbar, .pe-cell, .pe-chips"))return;let i=this.hitTest(t.clientX,t.clientY);i&&(this.service.cellOccupied(i.anchor,i.cell)||(this.downPoint={x:t.clientX,y:t.clientY},this.holdTimer=setTimeout(()=>{this.holdTimer=null,this.zone.run(()=>this.service.openAddWidgetPicker(i.anchor,i.cell))},qc)))}pointerMove(t){if(!this.holdTimer||!this.downPoint)return;let e=t.clientX-this.downPoint.x,i=t.clientY-this.downPoint.y;e*e+i*i>oa*oa&&this.cancelHold()}cancelHold(){this.holdTimer&&clearTimeout(this.holdTimer),this.holdTimer=null,this.downPoint=null}hitTest(t,e){let i=this.host.nativeElement.querySelectorAll(".pe-anchor");for(let o of Array.from(i)){let r=o.getBoundingClientRect();if(t<r.left||t>r.right||e<r.top||e>r.bottom)continue;let p=o.dataset.anchor,{cols:g,rows:y}=Dt[p],T=Math.min(g-1,Math.max(0,Math.floor((t-r.left)/r.width*g))),P=Math.min(y-1,Math.max(0,Math.floor((e-r.top)/r.height*y)));return{anchor:p,cell:{col:T,row:P}}}return null}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["fb-plotterext-overlay"]],decls:3,vars:1,consts:[[1,"pe-chips",3,"pe-chips-low"],[1,"pe-anchor",3,"class","style"],[1,"pe-chips"],[1,"pe-chip"],[1,"pe-chip-icon"],[1,"pe-chip-label"],["aria-label","Clear filter",1,"pe-chip-clear",3,"click"],[1,"pe-anchor"],[1,"pe-cell",3,"style"],[1,"pe-cell"],[3,"placed"]],template:function(e,i){e&1&&(f(0,Nc,3,3,"div",0),G(1,Bc,3,5,"div",1,ze)),e&2&&(h(i.service.filterChips().length?0:-1),c(),W(i.anchors))},dependencies:[_t,ye,xe],styles:["[_nghost-%COMP%]{position:absolute;inset:0;z-index:2000;pointer-events:none;--pe-cell-w: clamp(96px, 11vw, 150px);--pe-cell-h: clamp(84px, 9.5vw, 124px);--pe-gap: 6px;--pe-margin: 10px}.pe-anchor[_ngcontent-%COMP%]{position:absolute;display:grid;grid-template-rows:repeat(2,var(--pe-cell-h));gap:var(--pe-gap);pointer-events:none}.pe-tr[_ngcontent-%COMP%]{top:0;right:0}.pe-ct[_ngcontent-%COMP%]{top:0;left:50%;transform:translate(calc(-50% + var(--pe-center-shift, 0px)))}.pe-cb[_ngcontent-%COMP%]{bottom:0;left:50%;transform:translate(calc(-50% + var(--pe-center-shift, 0px)))}.pe-bl[_ngcontent-%COMP%]{bottom:0;left:0}.pe-br[_ngcontent-%COMP%]{bottom:0;right:0}.pe-cell[_ngcontent-%COMP%]{pointer-events:auto;overflow:hidden;border-radius:10px;box-shadow:0 1px 5px #00000059}.pe-chips[_ngcontent-%COMP%]{position:absolute;top:8px;left:50%;transform:translate(-50%);display:flex;gap:6px;pointer-events:auto;z-index:1}.pe-chips-low[_ngcontent-%COMP%]{top:calc(2 * var(--pe-cell-h) + var(--pe-gap) + 10px)}.pe-chip[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;background:#141a20d9;color:#e8edf2;border-radius:16px;padding:3px 6px 3px 10px;font-size:12px;max-width:320px;box-shadow:0 1px 4px #00000059}.pe-chip-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;color:#29b6f6}.pe-chip-label[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pe-chip-clear[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border:none;background:#ffffff26;color:#e8edf2;border-radius:50%;width:20px;height:20px;padding:0;cursor:pointer}.pe-chip-clear[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;height:14px}"]})};var zc=["frame"],Uc=(n,t)=>t.key;function jc(n,t){if(n&1&&v(0,"fb-plotterext-runtime",0),n&2){let e=t.$implicit;x("entry",e)}}var sn=class n{constructor(t,e){this.service=t;this.sanitizer=e}entry=ce.required();frame;url;detach=null;ngOnInit(){let{extension:t,runtime:e}=this.entry();this.url=this.sanitizer.bypassSecurityTrustResourceUrl(e.url?this.service.resolveAssetUrl(e.url):"about:blank"),this.detach=this.service.attachBackground(this.frame.nativeElement,{extension:t,runtime:e})}ngOnDestroy(){this.detach?.(),this.detach=null}static \u0275fac=function(e){return new(e||n)(ge(j),ge(pe))};static \u0275cmp=R({type:n,selectors:[["fb-plotterext-runtime"]],viewQuery:function(e,i){if(e&1&&J(zc,7),e&2){let o;N(o=$())&&(i.frame=o.first)}},inputs:{entry:[1,"entry"]},decls:2,vars:2,consts:[["frame",""],["sandbox","allow-scripts allow-same-origin allow-forms","aria-hidden","true",3,"src","title"]],template:function(e,i){e&1&&Ue(0,"iframe",1,0),e&2&&Ce("src",i.url,le)("title",i.entry().runtime.id)},styles:["[_nghost-%COMP%]{display:none}"]})},gt=class n{service=C(j);static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["fb-plotterext-runtimes"]],decls:2,vars:0,consts:[[3,"entry"]],template:function(e,i){e&1&&G(0,jc,1,1,"fb-plotterext-runtime",0,Uc),e&2&&W(i.service.backgroundRuntimes())},dependencies:[sn],styles:["[_nghost-%COMP%]{display:none}"]})};var Wc=["frame"],Hc=(n,t)=>t.key;function Xc(n,t){if(n&1){let e=E();a(0,"div",1)(1,"span"),d(2),s(),a(3,"button",4),_("click",function(){u(e);let o=l();return m(o.service.closeVisiblePanel())}),a(4,"mat-icon"),d(5,"close"),s()()()}n&2&&(c(2),U(t.panel.title))}function Kc(n,t){if(n&1&&(a(0,"div",5),v(1,"fb-plotterext-panel-frame",6),s()),n&2){let e=t.$implicit;B("pe-body-hidden",!e.visible),c(),x("panelKey",e.key)("extension",e.extension)("panel",e.panel)}}var ln=class n{panelKey=ce.required();extension=ce.required();panel=ce.required();frame;url;detach=null;service=C(j);sanitizer=C(pe);ngOnInit(){this.url=this.sanitizer.bypassSecurityTrustResourceUrl(this.panel().url?this.service.resolveAssetUrl(this.panel().url):"about:blank"),this.detach=this.service.attachPanel(this.frame.nativeElement,{extension:this.extension(),panel:this.panel(),close:()=>this.service.closePanel(this.panelKey())})}ngOnDestroy(){this.detach?.(),this.detach=null}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["fb-plotterext-panel-frame"]],viewQuery:function(e,i){if(e&1&&J(Wc,7),e&2){let o;N(o=$())&&(i.frame=o.first)}},inputs:{panelKey:[1,"panelKey"],extension:[1,"extension"],panel:[1,"panel"]},decls:2,vars:2,consts:[["frame",""],["sandbox","allow-scripts allow-same-origin allow-forms",3,"src","title"]],template:function(e,i){e&1&&Ue(0,"iframe",1,0),e&2&&Ce("src",i.url,le)("title",i.panel().title)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:none}"]})},Ct=class n{service=C(j);isOpen=be(()=>!!this.service.visiblePanel());constructor(){let t=!0;oe(()=>{if(this.isOpen(),t){t=!1;return}this.service.pulseMapResize()})}onTransitionEnd(t){t.propertyName==="width"&&this.service.pulseMapResize(80)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["fb-plotterext-panel-drawer"]],hostVars:2,hostBindings:function(e,i){e&2&&B("pe-open",i.isOpen())},decls:5,vars:1,consts:[[1,"pe-drawer-inner",3,"transitionend"],[1,"pe-drawer-head"],[1,"pe-drawer-bodies"],[1,"pe-drawer-body",3,"pe-body-hidden"],["mat-icon-button","","aria-label","Close panel",3,"click"],[1,"pe-drawer-body"],[3,"panelKey","extension","panel"]],template:function(e,i){if(e&1&&(a(0,"div",0),_("transitionend",function(r){return i.onTransitionEnd(r)}),f(1,Xc,6,1,"div",1),a(2,"div",2),G(3,Kc,2,5,"div",3,Hc),s()()),e&2){let o;c(),h((o=i.service.visiblePanel())?1:-1,o),c(2),W(i.service.openPanels())}},dependencies:[Qe,Ze,ye,xe,ln],styles:["[_nghost-%COMP%]{flex:0 0 auto;height:100%;width:0;max-width:92vw;overflow:hidden;background:#1d242b;color:#e8edf2}.pe-open[_nghost-%COMP%]{width:390px;box-shadow:-2px 0 8px #0006}.pe-drawer-inner[_ngcontent-%COMP%]{width:390px;max-width:92vw;height:100%;display:flex;flex-direction:column}.pe-drawer-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 4px 14px;font-weight:600;border-bottom:1px solid rgba(255,255,255,.12);flex:0 0 auto}.pe-drawer-bodies[_ngcontent-%COMP%]{flex:1;min-height:0;position:relative}.pe-drawer-body[_ngcontent-%COMP%]{position:absolute;inset:0}.pe-body-hidden[_ngcontent-%COMP%]{visibility:hidden;pointer-events:none}"]})};var Zc=["sideright"],Qc=()=>[Ti],Yc=()=>[Ii],Jc=()=>[yi],ep=()=>[fi],tp=()=>[gi],np=()=>[Ei],ip=()=>[vi],op=()=>[Ri],rp=()=>[Vi],ap=()=>[Fi],sp=(n,t)=>({"dark-theme":n,"app-night":t}),he=(n,t)=>({"button-primary":n,"button-toolbar":t}),lp=(n,t)=>t.extension+"/"+t.button.id,cp=(n,t)=>t[0];function pp(n,t){if(n&1){let e=E();a(0,"button",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("resourceGroups",!0))}),a(1,"mat-icon"),d(2,"category"),s(),d(3," \xA0Groups "),s()}}function dp(n,t){if(n&1){let e=E();a(0,"button",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("infoLayerList",!0))}),a(1,"mat-icon"),d(2,"layers"),s(),d(3," \xA0Overlays "),s()}}function up(n,t){if(n&1){let e=E();a(0,"button",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("trackList",!0))}),a(1,"mat-icon",32),d(2,"show_chart"),s(),d(3," \xA0Tracks "),s()}}function mp(n,t){if(n&1){let e=E();a(0,"div")(1,"button",8),_("click",function(){let o=u(e).$implicit,r=l(2);return m(r.openExperiment({choice:o,value:null}))}),v(2,"mat-icon",33),d(3),s()()}if(n&2){let e=t.$implicit;c(3),me(" \xA0",e," ")}}function _p(n,t){if(n&1&&(a(0,"div"),G(1,mp,4,1,"div",null,ze),s()),n&2){let e=l();c(),W(e.app.config.resources.paths.sort())}}function fp(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.clearTrail(o.app.data.serverTrail))}),a(1,"mat-icon"),d(2,"clear_all"),s(),a(3,"span"),d(4),s()(),a(5,"a",8),_("click",function(){u(e);let o=l();return m(o.trailToRoute())}),a(6,"mat-icon"),d(7,"insights"),s(),a(8,"span"),d(9,"Trail to Route"),s()(),v(10,"mat-divider")}if(n&2){let e=l();c(4),me("",e.app.data.serverTrail?"Refresh":"Clear"," Trail")}}function hp(n,t){n&1&&(a(0,"span"),d(1,"Clear Active Route"),s())}function gp(n,t){n&1&&(a(0,"span"),d(1,"Clear Destination"),s())}function Cp(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.clearDestination())}),a(1,"mat-icon"),d(2,"clear_all"),s(),f(3,hp,2,0,"span")(4,gp,2,0,"span"),s(),a(5,"a",8),_("click",function(){u(e);let o=l();return m(o.clearCourseData())}),a(6,"mat-icon"),d(7,"clear_all"),s(),a(8,"span"),d(9,"Clear Course Data"),s()(),v(10,"mat-divider")}if(n&2){let e=l();c(3),h(e.app.data.activeRoute?3:4)}}function vp(n,t){if(n&1){let e=E();v(0,"mat-divider"),a(1,"a",8),_("click",function(){u(e);let o=l();return m(o.showWeather("forecast"))}),a(2,"mat-icon"),d(3,"air"),s(),a(4,"span"),d(5,"Weather Forecast"),s()()}}function bp(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.skres.newWaypointAt(o.app.data.vessels.active.position))}),a(1,"mat-icon",10),d(2,"add_location"),s(),a(3,"span"),d(4,"Add Waypoint at Vessel"),s()()}}function wp(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.drawFeature("note"))}),a(1,"mat-icon"),d(2,"local_offer"),s(),a(3,"span"),d(4,"Add Note"),s()()}}function xp(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.showLogin(null,!1))}),a(1,"mat-icon",34),d(2," account_circle "),s(),a(3,"span"),d(4),s()(),v(5,"mat-divider")}if(n&2){let e=l();c(),x("matBadgeHidden",e.app.isLoggedIn()),c(3),U(e.app.isLoggedIn()?"Change User":"Login")}}function yp(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("anchorWatch",!0))}),a(1,"mat-icon"),d(2,"anchor"),s(),a(3,"span"),d(4,"Anchor Watch"),s()()}}function Ep(n,t){n&1&&(a(0,"mat-icon",15),d(1,"check_box"),s())}function Tp(n,t){n&1&&v(0,"mat-icon",35)}function Sp(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.showRadarPanel())}),f(1,Ep,2,0,"mat-icon",15)(2,Tp,1,0,"mat-icon",35),a(3,"span"),d(4,"Radar Overlay"),s()()}if(n&2){let e=l();c(),h(e.app.uiCtrl().radarLayer?1:2)}}function Ap(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.showPlaybackSettings())}),a(1,"mat-icon"),d(2,"history"),s(),a(3,"span"),d(4,"Playback History"),s()()}}function kp(n,t){if(n&1){let e=E();a(0,"radar-panel",42),_("connect",function(){u(e);let o=l(2);return m(o.connectRadar())})("disconnect",function(){u(e);let o=l(2);return m(o.disconnectRadar())}),s()}if(n&2){let e=l(2);x("radar",e.infoPanel.item().resource)("id",e.infoPanel.item().id)}}function Mp(n,t){if(n&1){let e=E();a(0,"note-panel",43),_("edit",function(o){u(e);let r=l(2);return m(r.skres.showNoteEditor({id:o}))})("move",function(o){u(e);let r=l(2);return m(r.onNoteMove(o))})("panTo",function(o){u(e);let r=l(2);return m(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(n&2){let e=l(2);x("note",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("interacting",e.isInteracting())}}function Pp(n,t){if(n&1){let e=E();a(0,"region-panel",44),_("edit",function(o){u(e);let r=l(2);return m(r.skres.editRegionInfo(o))})("panTo",function(o){u(e);let r=l(2);return m(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(n&2){let e=l(2);x("region",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("related",e.infoPanel.related())("interacting",e.isInteracting())}}function Ip(n,t){if(n&1){let e=E();a(0,"waypoint-panel",45),_("edit",function(o){u(e);let r=l(2);return m(r.skres.editWaypointInfo(o))})("panTo",function(o){u(e);let r=l(2);return m(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(n&2){let e=l(2);x("waypoint",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("related",e.infoPanel.related())("interacting",e.isInteracting())}}function Dp(n,t){if(n&1){let e=E();a(0,"route-panel",46),_("edit",function(o){u(e);let r=l(2);return m(r.onRouteInfoEdit(o))})("activate",function(o){u(e);let r=l(2);return m(r.activateRoute(o))})("panTo",function(o){u(e);let r=l(2);return m(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(n&2){let e=l(2);x("route",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("related",e.infoPanel.related())("interacting",e.isInteracting())}}function Rp(n,t){if(n&1){let e=E();a(0,"info-panel",36),_("closed",function(){u(e);let o=l();return m(o.closeDrawer())}),f(1,kp,1,2,"radar-panel",37),f(2,Mp,1,3,"note-panel",38),f(3,Pp,1,4,"region-panel",39),f(4,Ip,1,4,"waypoint-panel",40),f(5,Dp,1,4,"route-panel",41),s()}if(n&2){let e,i,o,r,p,g=l();c(),h(((e=g.infoPanel.item())==null?null:e.type)==="radars"?1:-1),c(),h(((i=g.infoPanel.item())==null?null:i.type)==="notes"?2:-1),c(),h(((o=g.infoPanel.item())==null?null:o.type)==="regions"?3:-1),c(),h(((r=g.infoPanel.item())==null?null:r.type)==="waypoints"?4:-1),c(),h(((p=g.infoPanel.item())==null?null:p.type)==="routes"?5:-1)}}function Lp(n,t){if(n&1){let e=E();a(0,"a",54),_("click",function(){u(e);let o=l(2);return m(o.closeInstrumentPanel())}),a(1,"mat-icon"),d(2,"open_in_new"),s()()}if(n&2){let e=l(2);x("href",e.instUrl(),fn)}}function Op(n,t){if(n&1&&v(0,"iframe",53),n&2){let e=l(2);x("src",e.instUrl(),le)}}function Vp(n,t){if(n&1){let e=E();a(0,"div",21)(1,"mat-nav-list")(2,"a",47)(3,"a",48),_("click",function(){u(e);let o=l();return m(o.closeInstrumentPanel())}),a(4,"mat-icon"),d(5,"arrow_forward"),s()(),d(6," \xA0\xA0\xA0\xA0 "),f(7,Lp,3,1,"a",49),a(8,"a",50),_("click",function(){u(e);let o=l();return m(o.selectPlugin())}),a(9,"mat-icon"),d(10,"arrow_back_ios"),s()(),a(11,"a",51),_("click",function(){u(e);let o=l();return m(o.selectPlugin(!0))}),a(12,"mat-icon"),d(13,"arrow_forward_ios"),s()()(),v(14,"mat-divider"),s(),a(15,"div",52),f(16,Op,1,1,"iframe",53),s()()}if(n&2){let e=l();c(7),h(e.app.config.display.plugins.instruments?7:-1),c(),x("disabled",e.app.config.display.plugins.favourites.length===0),c(3),x("disabled",e.app.config.display.plugins.favourites.length===0),c(5),h(e.app.instrumentPanel().activate?16:-1)}}function Fp(n,t){n&1&&(a(0,"div",23),v(1,"mat-progress-bar",55),s())}function Np(n,t){if(n&1){let e=E();a(0,"autopilot-console",56),_("close",function(){u(e);let o=l();return m(o.toggleAutopilotConsole(!1))}),s()}if(n&2){let e=l();x("apData",e.app.data.vessels.self.autopilot)}}function $p(n,t){if(n&1){let e=E();a(0,"route-builder",57),_("save",function(o){u(e);let r=l();return m(r.skres.newRouteAt(o.coordinates,o.meta))})("close",function(){u(e);let o=l();return m(o.toggleRouteBuilderConsole(!1))}),s()}}function Bp(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",77),_("click",function(){u(e);let o=l(3);return m(o.centerVessel())}),a(2,"mat-icon"),d(3," center_focus_strong "),s()()()}if(n&2){let e=l(3);c(),x("disabled",!e.app.data.vessels.showSelf)}}function qp(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",78),_("click",function(){u(e);let o=l(3);return m(o.showSelectMode())}),a(2,"mat-icon"),d(3,"cancel"),s()()()}}function zp(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",79),_("click",function(){u(e);let o=l(3);return m(o.openFeatureBrowser())}),a(2,"mat-icon"),d(3,"tips_and_updates"),s()()()}}function Up(n,t){if(n&1){let e=E();a(0,"div",61)(1,"div",59)(2,"button",68),_("click",function(){u(e);let o=l(2);return m(o.toggleAlertList(!0))}),v(3,"mat-icon",69),s()(),a(4,"div",59)(5,"button",70)(6,"mat-icon"),d(7,"layers"),s()()(),a(8,"div",59)(9,"button",71)(10,"mat-icon"),d(11,"edit"),s()()(),a(12,"div",59)(13,"button",72),_("click",function(){u(e);let o=l(2);return m(o.toggleNorthUp())}),v(14,"mat-icon",73),s()(),a(15,"div",59)(16,"button",74),_("click",function(){u(e);let o=l(2);return m(o.toggleMoveMap())}),v(17,"mat-icon",75),s()(),f(18,Bp,4,1,"div",59),a(19,"div",59)(20,"button",76)(21,"mat-icon"),d(22,"more_horiz"),s()()(),f(23,qp,4,0,"div",59),f(24,zp,4,0,"div",59),s()}if(n&2){let e=l(2),i=Me(3),o=Me(41),r=Me(73);c(2),x("matBadge",e.notiMgr.alerts().length)("matBadgeHidden",e.notiMgr.alerts().length===0),c(3),x("disabled",e.isInteracting())("matMenuTriggerFor",i),c(4),x("disabled",e.isInteracting())("matMenuTriggerFor",r),c(4),x("ngClass",re(17,he,!e.app.uiConfig().mapNorthUp,e.app.uiConfig().mapNorthUp))("matTooltip",e.app.uiConfig().mapNorthUp?"Show Heading Up":"Show North Up"),c(),x("svgIcon",e.app.uiConfig().mapNorthUp?"heading-n-up":"heading-h-up"),c(2),x("ngClass",re(20,he,e.app.uiConfig().mapMove,!e.app.uiConfig().mapMove))("disabled",!e.app.data.vessels.showSelf)("matTooltip",e.app.uiConfig().mapMove?"Turn off Follow Vessel":"Follow Vessel"),c(2),h(e.app.uiConfig().mapMove?-1:18),c(2),x("disabled",e.isInteracting())("matMenuTriggerFor",o),c(3),h(e.mode===1?23:-1),c(),h(e.whatsNew.hasUnseen()?24:-1)}}function jp(n,t){if(n&1){let e=E();a(0,"route-list",81),_("activate",function(o){u(e);let r=l(4);return m(r.activateRoute(o.id))})("deactivate",function(){u(e);let o=l(4);return m(o.clearDestination())})("select",function(o){u(e);let r=l(4);return m(r.handleResourceInfo("routes",o.id))})("points",function(o){u(e);let r=l(4);return m(r.featureProperties({id:o.id,type:"route"}))})("notes",function(o){u(e);let r=l(4);return m(r.skres.showRelatedNotes(o.id,"route",o.readOnly))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(n&2){let e=l(4);x("activeRoute",e.app.data.activeRoute)("editingRouteId",e.app.data.editingId)}}function Gp(n,t){n&1&&(K(0,jp,1,2),Z(1,0,Qc),Q())}function Wp(n,t){if(n&1){let e=E();a(0,"waypoint-list",82),_("select",function(o){u(e);let r=l(4);return m(r.handleResourceInfo("waypoints",o.id))})("goto",function(o){u(e);let r=l(4);return m(r.course.navigateToWaypoint(o.id))})("deactivate",function(){u(e);let o=l(4);return m(o.clearDestination())})("center",function(o){u(e);let r=l(4);return m(r.centerAndZoom(o))})("notes",function(o){u(e);let r=l(4);return m(r.skres.showRelatedNotes(o.id,"waypoint",o.readOnly))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(n&2){let e=l(4);x("activeWaypoint",e.app.data.activeWaypoint)("editingWaypointId",e.app.data.editingId)}}function Hp(n,t){n&1&&(K(0,Wp,1,2),Z(1,0,Yc),Q())}function Xp(n,t){if(n&1){let e=E();a(0,"chart-list",83),_("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(n&2){let e=l(4);x("selectedCharts",e.app.config.selections.charts)}}function Kp(n,t){n&1&&(K(0,Xp,1,1),Z(1,0,Jc),Q())}function Zp(n,t){if(n&1){let e=E();a(0,"note-list",84),_("select",function(o){u(e);let r=l(4);return m(r.handleResourceInfo("notes",o.id))})("pan",function(o){u(e);let r=l(4);return m(r.centerAndZoom(o.center,o.zoomLevel))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(n&2){let e=l(4);x("notes",e.skres.notes())}}function Qp(n,t){n&1&&(K(0,Zp,1,1),Z(1,0,ep),Q())}function Yp(n,t){if(n&1){let e=E();a(0,"region-list",85),_("select",function(o){u(e);let r=l(4);return m(r.handleResourceInfo("regions",o.id))})("pan",function(o){u(e);let r=l(4);return m(r.centerAndZoom(o.center,o.zoomLevel))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(n&2){let e=l(4);x("regions",e.skres.regions())}}function Jp(n,t){n&1&&(K(0,Yp,1,1),Z(1,0,tp),Q())}function ed(n,t){if(n&1){let e=E();a(0,"track-list",86),_("center",function(o){u(e);let r=l(4);return m(r.centerAndZoom(o))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}}function td(n,t){n&1&&(K(0,ed,1,0),Z(1,0,np),Q())}function nd(n,t){if(n&1){let e=E();a(0,"ais-list",87),_("properties",function(o){u(e);let r=l(4);return m(r.featureProperties({id:o,type:"ais"}))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())})("focusVessel",function(o){u(e);let r=l(4);return m(r.switchActiveVessel(o))})("pan",function(o){u(e);let r=l(4);return m(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(n&2){let e=l(4);x("focusId",e.app.data.vessels.activeId)}}function id(n,t){n&1&&(K(0,nd,1,1),Z(1,0,ip),Q())}function od(n,t){if(n&1){let e=E();a(0,"group-list",36),_("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}}function rd(n,t){n&1&&(K(0,od,1,0),Z(1,0,op),Q())}function ad(n,t){if(n&1){let e=E();a(0,"infolayer-list",88),_("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())})("paramChanged",function(o){u(e);let r=l(4);return m(r.onInfoLayerParamChange(o))}),s()}}function sd(n,t){n&1&&(K(0,ad,1,0),Z(1,0,rp),Q())}function ld(n,t){if(n&1){let e=E();a(0,"anchor-watch",89),_("closed",function(){u(e);let o=l(3);return m(o.displayLeftMenu())}),s()}if(n&2){let e=l(3);x("showSelf",e.app.data.vessels.showSelf)("radius",e.anchor.radius())("raised",e.anchor.raised())}}function cd(n,t){if(n&1){let e=E();a(0,"weather-list",36),_("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}}function pd(n,t){n&1&&(K(0,cd,1,0),Z(1,0,ap),Q())}function dd(n,t){if(n&1&&(a(0,"div",62),f(1,Gp,3,0),f(2,Hp,3,0),f(3,Kp,3,0),f(4,Qp,3,0),f(5,Jp,3,0),f(6,td,3,0),f(7,id,3,0),f(8,rd,3,0),f(9,sd,3,0),f(10,ld,1,3,"anchor-watch",80),f(11,pd,3,0),s()),n&2){let e=l(2);c(),h(e.leftMenuCtrl().routeList?1:-1),c(),h(e.leftMenuCtrl().waypointList?2:-1),c(),h(e.leftMenuCtrl().chartList?3:-1),c(),h(e.leftMenuCtrl().noteList?4:-1),c(),h(e.leftMenuCtrl().regionList?5:-1),c(),h(e.leftMenuCtrl().trackList?6:-1),c(),h(e.leftMenuCtrl().aisList?7:-1),c(),h(e.leftMenuCtrl().resourceGroups?8:-1),c(),h(e.leftMenuCtrl().infoLayerList?9:-1),c(),h(e.leftMenuCtrl().anchorWatch?10:-1),c(),h(e.leftMenuCtrl().weatherList?11:-1)}}function ud(n,t){n&1&&(a(0,"div",64)(1,"mat-icon",90),d(2,"visibility_off "),s()())}function md(n,t){n&1&&(a(0,"div",64)(1,"mat-icon",91),d(2,"compare_arrows "),s()())}function _d(n,t){n&1&&(a(0,"div",64)(1,"mat-icon",92),d(2,"directions_boat "),s()())}function fd(n,t){n&1&&(a(0,"div",64)(1,"mat-icon",93),d(2,"local_offer "),s()())}function hd(n,t){n&1&&(a(0,"div",64)(1,"mat-icon",94),d(2,"signal_wifi_statusbar_connected_no_internet_4 "),s()())}function gd(n,t){if(n&1){let e=E();a(0,"button",100),_("click",function(){u(e);let o=l(3);return m(o.openInstrumentPanel())}),a(1,"mat-icon"),d(2,"av_timer"),s()()}}function Cd(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",101),_("click",function(){u(e);let o=l(3);return m(o.enableAudio())}),a(2,"mat-icon",32),d(3,"volume_off"),s()(),v(4,"br"),d(5,"\xA0"),v(6,"br"),s()}}function vd(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",102),_("click",function(){u(e);let o=l(3);return m(o.toggleFullscreen())}),a(2,"mat-icon"),d(3),s()(),v(4,"br"),d(5,"\xA0"),v(6,"br"),s()}if(n&2){let e=l(3);c(),x("ngClass",re(3,he,e.displayFullscreen().active,!e.displayFullscreen().active))("matTooltip",e.displayFullscreen().active?"Exit Fullscreen ":"Go Fullscreen"),c(2),me(" ",e.displayFullscreen().active?"fullscreen_exit ":"fullscreen"," ")}}function bd(n,t){if(n&1){let e=E();a(0,"div",59)(1,"fb-experiments",103),_("selected",function(o){u(e);let r=l(3);return m(r.openExperiment(o))}),s(),v(2,"br"),d(3,"\xA0"),v(4,"br"),s()}}function wd(n,t){if(n&1){let e=E();a(0,"div",59)(1,"pip-video",104),_("click",function(){u(e);let o=l(3);return m(o.focusMap())}),s(),v(2,"br"),d(3,"\xA0"),v(4,"br"),s()}if(n&2){let e=l(3);c(),x("src",e.vidUrl())("muted",!0)}}function xd(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",105),_("click",function(){u(e);let o=l(3);return m(o.toggleAutopilotConsole(!0))}),v(2,"mat-icon",106),s(),v(3,"br"),d(4,"\xA0"),v(5,"br"),s()}if(n&2){let e=l(3);c(),x("ngClass",re(1,he,e.app.data.vessels.self.autopilot.enabled,!e.app.data.vessels.self.autopilot.enabled))}}function yd(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",107),_("click",function(){u(e);let o=l(3);return m(o.showRadarPanel())}),v(2,"mat-icon",35),s(),v(3,"br"),d(4,"\xA0"),v(5,"br"),s()}if(n&2){let e=l(3);c(),x("ngClass",re(2,he,e.app.uiCtrl().radarLayer,!e.app.uiCtrl().radarLayer))("disabled",e.app.instrumentPanel().open)}}function Ed(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",108),_("click",function(){let o=u(e).$implicit,r=l(3);return m(r.plotterExt.handleButtonAction(o.extension,o.button))}),a(2,"mat-icon"),d(3),s()(),v(4,"br"),d(5,"\xA0"),v(6,"br"),s()}if(n&2){let e=t.$implicit;c(),x("matTooltip",e.button.title),c(2),U(e.button.icon||"extension")}}function Td(n,t){if(n&1){let e=E();a(0,"div",95)(1,"div",96),f(2,gd,3,0,"button",97),v(3,"br"),d(4,"\xA0"),v(5,"br"),d(6,"\xA0 "),s(),f(7,Cd,7,0,"div",59),f(8,vd,7,6,"div",59),a(9,"div",59)(10,"button",98),_("click",function(){u(e);let o=l(2);return m(o.toggleConstrainMapZoom())}),a(11,"mat-icon"),d(12,"zoom_in_map"),s()(),v(13,"br"),d(14,"\xA0"),v(15,"br"),s(),a(16,"div",59)(17,"button",99),_("click",function(){u(e);let o=l(2);return m(o.invertFeatureLabelColor())}),a(18,"mat-icon"),d(19),s()(),v(20,"br"),d(21,"\xA0"),v(22,"br"),s(),f(23,bd,5,0,"div",59),f(24,wd,5,2,"div",59),f(25,xd,6,4,"div",59),f(26,yd,6,5,"div",59),G(27,Ed,7,2,"div",59,lp),s()}if(n&2){let e=l(2);ne("top",60+e.plotterExt.toolbarTopOffset(),"px"),c(2),h(e.app.instrumentPanelAvailable()&&!e.app.instrumentPanel().open&&!e.infoPanel.opened()&&!e.isInteracting()&&!e.app.data.vessels.activeId?2:-1),c(5),h(e.audioStatus()!=="running"?7:-1),c(),h(e.app.isTopWindow()&&e.displayFullscreen().enabled?8:-1),c(2),x("ngClass",re(12,he,e.app.uiConfig().mapConstrainZoom,!e.app.uiConfig().mapConstrainZoom)),c(7),x("ngClass",re(15,he,e.app.uiConfig().invertColor,!e.app.uiConfig().invertColor)),c(2),U("invert_colors"),c(4),h(e.app.config.experiments?23:-1),c(),h(e.app.config.resources.video.enable&&e.app.config.resources.video.url?24:-1),c(),h(e.app.featureFlags().autopilotApi&&e.app.data.vessels.self.autopilot.default&&e.app.config.display.fab!=="autopilot"?25:-1),c(),h(e.app.featureFlags().radarApi&&e.radarApi.radarId()&&e.app.config.display.fab!=="radar"?26:-1),c(),W(e.plotterExt.toolbarButtons())}}function Sd(n,t){if(n&1){let e=E();a(0,"div",58)(1,"div",59)(2,"button",60)(3,"mat-icon"),d(4,"menu"),s()()()(),f(5,Up,25,23,"div",61),f(6,dd,12,11,"div",62),a(7,"div",63),f(8,ud,3,0,"div",64),f(9,md,3,0,"div",64),f(10,_d,3,0,"div",64),f(11,fd,3,0,"div",64),f(12,hd,3,0,"div",64),s(),a(13,"div",65)(14,"div",59)(15,"button",66),_("click",function(){u(e);let o=l();return m(o.toggleToolbarButtons())}),a(16,"mat-icon"),d(17),s()()()(),f(18,Td,29,18,"div",67)}if(n&2){let e=l(),i=Me(109);c(2),x("disabled",e.isInteracting())("matBadgeHidden",e.app.isLoggedIn())("matMenuTriggerFor",i),c(3),h(e.app.uiConfig().toolbarButtons?5:-1),c(),h(e.leftMenuCtrl().leftMenuPanel?6:-1),c(),ne("top",20+e.plotterExt.toolbarTopOffset(),"px"),c(),h(!e.wakeLock.enabled()&&e.wakeLock.isAvailable?8:-1),c(),h(e.app.uiConfig().showCourseData?-1:9),c(),h(e.app.uiConfig().showAisTargets?-1:10),c(),h(e.app.uiConfig().showNotes?-1:11),c(),h(e.stream.watchDogAlarm()?12:-1),c(),ne("top",e.plotterExt.toolbarTopOffset(),"px"),c(2),x("matTooltip",e.app.uiConfig().toolbarButtons?"Hide Toobars":"Show Toobars"),c(2),U(e.app.uiConfig().toolbarButtons?"apps":"apps_outage"),c(),h(e.app.uiConfig().toolbarButtons?18:-1)}}function Ad(n,t){if(n&1&&(a(0,"div",29)(1,"div",109)(2,"mat-icon"),d(3,"access_time"),s(),a(4,"b"),d(5,"Playback:"),s()(),a(6,"div",110),d(7),s()()),n&2){let e=l();c(7),U(e.playbackTime())}}function kd(n,t){if(n&1){let e=E();a(0,"alert-list",114),_("closed",function(){u(e);let o=l(2);return m(o.toggleAlertList(!1))}),s()}if(n&2){let e=l(2);x("alerts",e.notiMgr.alerts())}}function Md(n,t){if(n&1){let e=E();a(0,"span",113)(1,"fb-alert",115),_("nextPoint",function(){u(e);let o=l(2);return m(o.course.coursePointIndex(o.course.courseData().pointIndex+1))})("routeEnd",function(){u(e);let o=l(2);return m(o.clearDestination())}),s()()}if(n&2){let e=t.$implicit,i=l(2);c(),x("audioStatus",i.audioStatus())("alert",e[1])("acknowledged",e[1].acknowledged)("silenced",e[1].silenced)("doNotPlaySound",i.app.config.display.muteSound)}}function Pd(n,t){if(n&1&&(f(0,kd,1,1,"alert-list",111),a(1,"div",112),G(2,Md,2,5,"span",113,cp),s()),n&2){let e=l();h(e.app.uiCtrl().alertList?0:-1),c(2),W(e.notiMgr.alerts())}}function Id(n,t){if(n&1){let e=E();a(0,"fb-interact-help",116),_("cancel",function(){u(e);let o=l();return m(o.closeInteraction())}),s()}}function Dd(n,t){if(n&1){let e=E();a(0,"route-nextpoint",119),_("selected",function(o){u(e);let r=l(2);return m(r.routeNextPoint(o))}),s()}if(n&2){let e=l(2);x("index",e.course.courseData().pointIndex)("total",e.course.courseData().pointTotal)("circular",e.app.data.activeRouteCircular)}}function Rd(n,t){if(n&1&&v(0,"ap-dial-text",129),n&2){let e=l(3);x("title","VMG")("value",e.app.formatSpeed(e.course.courseData().vmg,!0))("units",e.app.formattedSpeedUnits)}}function Ld(n,t){if(n&1&&v(0,"ap-dial-text",129),n&2){let e=l(3);x("title","BRG")("value",e.course.courseData().bearing.value.toFixed(1))("units",e.course.courseData().bearing.type==="M"?"deg (M)":"deg (T)")}}function Od(n,t){if(n&1&&v(0,"ap-dial-text",129),n&2){let e=l(3);x("title","XTE")("value",e.course.courseData().xte>10?e.course.courseData().xte.toFixed(1):e.course.courseData().xte.toFixed(3))("units",e.convert.getSymbol(e.app.config.units.distance))}}function Vd(n,t){if(n&1&&v(0,"ap-dial-text",132),n&2){let e=l(4);x("title","DTG")("value",e.course.courseData().route.dtg.toFixed(1))("units",e.convert.getSymbol(e.app.config.units.distance))}}function Fd(n,t){if(n&1&&v(0,"ap-dial-ttg",133),n&2){let e=l(4);x("value",e.course.courseData().route.ttg)}}function Nd(n,t){if(n&1&&v(0,"ap-dial-eta",134),n&2){let e=l(4);x("title","ETA")("value",e.course.courseData().route.eta)}}function $d(n,t){if(n&1&&(f(0,Vd,1,3,"ap-dial-text",132),f(1,Fd,1,1,"ap-dial-ttg",133),f(2,Nd,1,2,"ap-dial-eta",134)),n&2){let e=l(3);h(e.course.courseData().route.dtg?0:-1),c(),h(e.course.courseData().route.ttg?1:-1),c(),h(e.course.courseData().route.eta?2:-1)}}function Bd(n,t){if(n&1&&v(0,"ap-dial-text",129),n&2){let e=l(3);x("title","DTG")("value",e.course.courseData().dtg.toFixed(1))("units",e.convert.getSymbol(e.app.config.units.distance))}}function qd(n,t){if(n&1&&v(0,"ap-dial-ttg",130),n&2){let e=l(3);x("value",e.course.courseData().ttg)}}function zd(n,t){if(n&1&&v(0,"ap-dial-eta",131),n&2){let e=l(3);x("title","ETA")("value",e.course.courseData().eta)}}function Ud(n,t){if(n&1){let e=E();a(0,"div",118)(1,"div",120)(2,"div",121)(3,"button",122),_("click",function(){u(e);let o=l(2);return m(o.openCourseSettings())}),v(4,"mat-icon",123),s(),v(5,"br"),a(6,"button",124),_("click",function(){u(e);let o=l(2);return m(o.autopilot.engage())}),v(7,"mat-icon",125),s()(),a(8,"div")(9,"button",126),_("click",function(){u(e);let o=l(2);return m(o.course.courseRestart())}),a(10,"mat-icon"),d(11,"replay"),s()(),v(12,"br"),a(13,"button",127),_("click",function(){u(e);let o=l(2);return m(o.course.courseReverse())}),a(14,"mat-icon",128),d(15," multiple_stop "),s()()()(),f(16,Rd,1,3,"ap-dial-text",129),f(17,Ld,1,3,"ap-dial-text",129),f(18,Od,1,3,"ap-dial-text",129),f(19,$d,3,3),f(20,Bd,1,3,"ap-dial-text",129),f(21,qd,1,1,"ap-dial-ttg",130),f(22,zd,1,2,"ap-dial-eta",131),s()}if(n&2){let e=l(2);c(6),x("disabled",!e.app.featureFlags().autopilotApi||!e.app.data.vessels.self.autopilot.default),c(),x("color",e.navDataPanel().apModeColor),c(6),x("disabled",!e.app.data.activeRoute),c(),x("color",e.app.data.activeRouteReversed?"primary":"none"),c(2),h(e.course.courseData().vmg?16:-1),c(),h(e.course.courseData().bearing.value?17:-1),c(),h(e.course.courseData().xte?18:-1),c(),h(e.app.data.activeRoute?19:-1),c(),h(e.course.courseData().dtg?20:-1),c(),h(e.course.courseData().ttg?21:-1),c(),h(e.course.courseData().eta?22:-1)}}function jd(n,t){if(n&1&&(a(0,"div",30),f(1,Dd,1,3,"route-nextpoint",117),f(2,Ud,23,11,"div",118),s()),n&2){let e=l();c(),h(e.navDataPanel().nextPointCtrl?1:-1),c(),h(e.app.config.ui.showCourseData&&e.navDataPanel().show?2:-1)}}function Gd(n,t){if(n&1){let e=E();a(0,"mfb-container",135),_("radarClick",function(){u(e);let o=l();return m(o.showRadarPanel())}),s()}if(n&2){let e=l();x("action",e.app.config.display.fab)}}var vt=class n{sideright;navDataPanel=z({show:!1,nextPointCtrl:!1,apModeColor:"",apModeText:""});playbackTime=z(null);leftMenuCtrl=z({leftMenuPanel:!1,routeList:!1,waypointList:!1,chartList:!1,noteList:!1,regionList:!1,trackList:!1,aisList:!1,resourceGroups:!1,infoLayerList:!1,anchorWatch:!1,weatherList:!1});displayFullscreen=z({active:!1,enabled:document.fullscreenEnabled});features={playbackAPI:!0};mode=0;timers=[];instUrl=z(null);selFavourite=-1;vidUrl=z(null);convert=Pt;obsList=[];streamOptions={options:null,toMode:null};mapSetFocus=z("");mapCenter=z([0,0]);audioStatus=z("");isInteracting=be(()=>this.mapInteract.isMeasuring()||this.mapInteract.isDrawing()||this.mapInteract.isModifying()||this.mapInteract.isBoxSelecting());app=C(si);infoPanel=C(Ai);mapInteract=C(li);anchor=C(qi);notiMgr=C(Ni);course=C(mi);stream=C(ri);skres=C(pi);skresOther=C(di);signalk=C(ni);dom=C(pe);overlayContainer=C(Ln);bottomSheet=C(qn);dialog=C(Bn);wakeLock=C(ti);settings=C(Xi);autopilot=C(Ui);radarApi=C(ai);symbols=C(oi);routeBuffers=C(Si);plotterExt=C(j);whatsNew=C(mt);constructor(){this.app.data.vessels.active=this.app.data.vessels.self,oe(()=>{this.app.debug("** skAuthChange Event:",this.app.skAuthChange()),this.handleSKAuthChange()}),oe(()=>{this.app.debug("** kioskMode Event:",this.app.kioskMode()),this.toggleSuppressContextMenu(this.app.kioskMode())}),oe(()=>{this.handleSelectionEnded(this.mapInteract.selection())}),oe(()=>{this.app.uiConfig(),this.handleSettingChangeEvent(void 0)}),oe(()=>{this.infoPanel.opened()||this.app.instrumentPanel().activate?this.sideright?.opened||this.openDrawer():this.sideright?.opened&&this.closeDrawer()}),oe(()=>{let t=this.app.mapMoveRequest();t&&(this.app.uiConfig.update(e=>e.mapMove?cn(Oe({},e),{mapMove:!1}):e),this.centerAndZoom(t.center,t.zoom))})}ngAfterViewInit(){setTimeout(()=>{this.app.config.display.disableWakelock||this.wakeLock.enable()},500)}enableAudio(){this.app.audio.context&&this.app.audio.context.resume()}ngOnInit(){this.whatsNew.init(),this.audioStatus.update(()=>this.app.audio.context.state),this.app.debug("audio state:",this.audioStatus()),this.app.audio.context.onstatechange=()=>{this.app.debug("audio statechange:",this.app.audio.context.state),this.audioStatus.update(()=>this.app.audio.context.state)},this.mapCenter.update(()=>this.app.config.map.center),this.app.instrumentPanel.update(t=>Object.assign({},t,{activate:!this.app.config.display.plugins.startOnOpen})),this.setDarkTheme(),this.instUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(this.formatInstrumentsUrl())),this.vidUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(`${this.app.config.resources.video.url}`)),this.connectSignalKServer(),this.obsList.push(this.stream.delta$().subscribe(t=>this.onMessage(t))),this.obsList.push(this.stream.connect$().subscribe(t=>this.onConnect(t))),this.obsList.push(this.stream.close$().subscribe(t=>this.onClose(t))),this.obsList.push(this.stream.error$().subscribe(t=>this.onError(t))),this.obsList.push(this.stream.trail$().subscribe(t=>this.handleTrailUpdate(t))),this.obsList.push(this.settings.change$.subscribe(t=>this.handleSettingChangeEvent(t))),document.addEventListener("fullscreenchange",()=>{this.displayFullscreen.update(t=>Object.assign({},t,{active:!!document.fullscreenElement}))}),document.addEventListener("fullscreenerror",t=>{this.displayFullscreen.update(e=>Object.assign({},e,{active:!1}))})}ngOnDestroy(){this.stopTimers(),this.stream.terminate(),this.signalk.disconnect(),this.obsList.forEach(t=>t.unsubscribe())}getOrientation(){return this.app.uiConfig().mapNorthUp?"rotate(0deg)":"rotate("+(0-this.app.data.vessels.active.orientation)+"rad)"}showRadarPanel(){if(!this.radarApi.hasWebGL){this.radarApi.showNoWebGLMessage();return}this.app.instrumentPanel().open&&this.closeInstrumentPanel(),this.connectRadar(),this.infoPanel.openRadar(this.radarApi.radar()),this.focusMap()}connectRadar(){this.app.uiCtrl().radarLayer||this.app.uiCtrl.update(t=>Object.assign({},t,{radarLayer:!0}))}disconnectRadar(){this.app.uiCtrl().radarLayer&&this.app.uiCtrl.update(t=>Object.assign({},t,{radarLayer:!1}))}toggleMoveMap(t=!1){this.app.uiConfig.update(e=>{let i=t?!1:!e.mapMove;return Object.assign({},e,{mapMove:i})}),this.focusMap()}toggleNorthUp(){this.app.uiConfig.update(t=>Object.assign({},t,{mapNorthUp:!t.mapNorthUp})),this.focusMap()}toggleToolbarButtons(){this.app.uiConfig.update(t=>Object.assign({},t,{toolbarButtons:!t.toolbarButtons})),this.focusMap()}toggleConstrainMapZoom(){this.app.uiConfig.update(t=>Object.assign({},t,{mapConstrainZoom:!t.mapConstrainZoom})),this.skres.setMapZoomRange(),this.focusMap()}invertFeatureLabelColor(){this.app.uiConfig.update(t=>Object.assign({},t,{invertColor:!t.invertColor})),this.focusMap()}toggleAlertList(t){this.app.uiCtrl.update(e=>Object.assign({},e,{alertList:t}))}toggleAutopilotConsole(t){this.app.uiCtrl.update(e=>Object.assign({},e,{autopilotConsole:t}))}toggleRouteBuilderConsole(t){this.app.uiCtrl.update(e=>Object.assign({},e,{routeBuilder:t}))}toggleSuppressContextMenu(t){this.app.uiCtrl.update(e=>Object.assign({},e,{suppressContextMenu:t}))}toggleFullscreen(){let t=document.documentElement,e=t.requestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullscreen||t.msRequestFullscreen;e&&(document.fullscreenElement?document.exitFullscreen&&document.exitFullscreen():e.call(t),this.focusMap())}darkThemeApplied;setDarkTheme(){let t=window.matchMedia("(prefers-color-scheme: dark)"),e=this.app.config.display.darkMode.source===0&&t.matches||this.app.config.display.darkMode.source===1&&this.app.data.vessels.self.environment.mode==="night"||this.app.config.display.darkMode.source===-1;if(e===this.darkThemeApplied)return;this.darkThemeApplied=e;let i=this.overlayContainer.getContainerElement();e?i.classList.add("dark-theme"):i.classList.remove("dark-theme"),this.app.config.display.darkMode.enabled=e}formatInstrumentsUrl(){let t=`${this.app.hostDef.url}${this.app.config.display.plugins.instruments}`,e=this.app.config.display.plugins.parameters?this.app.config.display.plugins.parameters.length>0&&this.app.config.display.plugins.parameters[0]!=="?"?`?${this.app.config.display.plugins.parameters}`:this.app.config.display.plugins.parameters:"";return e?`${t}/${e}`:t}selectPlugin(t=!1){t?this.selFavourite===-1?this.selFavourite=0:this.selFavourite===this.app.config.display.plugins.favourites.length-1?this.selFavourite=-1:this.selFavourite++:this.selFavourite===-1?this.selFavourite=this.app.config.display.plugins.favourites.length-1:this.selFavourite===0?this.selFavourite=-1:this.selFavourite--;let e=this.selFavourite===-1?this.formatInstrumentsUrl():`${this.app.hostDef.url}${this.app.config.display.plugins.favourites[this.selFavourite]}`;this.instUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(e))}onInfoLayerParamChange(t){this.skresOther.infoLayerParams.update(()=>[t])}handleContextMenuSelection(t){switch(t){case"cleartrail":this.clearTrail(this.app.data.serverTrail);break;case"trail2route":this.trailToRoute();break;case"cleardestination":this.clearDestination();break;case"anchor":this.displayLeftMenu("anchorWatch",!0);break;case"weather_forecast":this.showWeather("forecast");break}}trailToRoute(){return O(this,null,function*(){let{Trail2RouteDialog:t}=yield import("./chunk-HF67WER7.js");this.dialog.open(t,{disableClose:!0,data:{trail:this.app.selfTrail()}}).afterClosed().subscribe(e=>{e.result&&this.skres.newRouteAt(e.data),this.focusMap()})})}showWeather(t){t==="forecast"&&this.bottomSheet.open(Ki,{disableClose:!0,data:{title:"Forecast",position:this.app.data.vessels.self.position,subTitle:"Location: Vessel Position"}}).afterDismissed().subscribe(()=>{this.focusMap()})}openExperiment(t){t.choice==="debugCapture"?window.isSecureContext?(navigator.clipboard.writeText(JSON.stringify({data:this.app.data,config:this.app.config})),this.app.showMessage("Debug data catpured to clipboard.")):this.app.showAlert("Feature Unavailable",`This feature is only available in a secure context!
|
|
460
|
-
e.g. https, http://localhost, http://127.0.0.1`):this.app.config.resources.paths.includes(t.choice)&&this.bottomSheet.open(Li,{disableClose:!0,data:{path:t.choice}}).afterDismissed().subscribe(()=>{this.focusMap()})}openCourseSettings(){this.bottomSheet.open(ui,{disableClose:!0,data:{title:"Course Settings"}}).afterDismissed().subscribe(()=>{this.focusMap()})}handleSKAuthChange(){this.signalk.getLoginStatus().subscribe(t=>{this.app.data.loginRequired=t.authenticationRequired??!1,this.app.isLoggedIn.update(()=>t.status==="loggedIn"),this.signalk.get("/plugins/freeboard-sk").subscribe(()=>{this.app.debug("User Authenticated"),this.app.isLoggedIn.set(!0)},e=>{e.status===401&&(this.app.debug("User NOT Authenticated"),this.app.isLoggedIn.set(!1))})})}connectSignalKServer(){this.app.data.selfId=null,this.app.data.server=null,this.signalk.proxied=this.app.config.signalk.proxied,this.signalk.connect(this.app.hostDef.name,this.app.hostDef.port,this.app.hostDef.ssl).subscribe({next:()=>{this.signalk.authToken=this.app.getFBToken(),this.app.watchSKLogin(),this.app.loadUserConfigfromServer().finally(()=>{this.loadSymbolsThenFetchResources(),this.plotterExt.init()}),this.getFeatures(),this.app.data.server=this.signalk.server.info,this.openSKStream()},error:()=>{this.app.showMessage("Unable to contact Signal K server! (Retrying in 5 secs)",!1,5e3),setTimeout(()=>this.connectSignalKServer(),5e3)}})}getFeatures(){return O(this,null,function*(){let t={anchorApi:!1,autopilotApi:!1,weatherApi:!1,radarApi:!1,notificationApi:!1,buddyList:!1,tidalApi:!1};this.signalk.get("/signalk/v2/features?enabled=1").subscribe(i=>{t.weatherApi=i.apis.includes("weather"),t.autopilotApi=i.apis.includes("autopilot"),t.radarApi=i.apis.includes("radar"),t.notificationApi=i.apis.includes("notifications");let o={charts:!1,pmTiles:!1};i.plugins.forEach(r=>{r.id==="anchoralarm"&&(this.app.debug("*** found anchoralarm plugin"),t.anchorApi=!0),r.id==="signalk-buddylist-plugin"&&(this.app.debug("*** found buddylist plugin"),t.buddyList=!!aa.satisfies(r.version,">1.2.0")),r.id==="signalk-pmtiles-plugin"&&(this.app.debug("*** found PMTiles plugin"),o.pmTiles=!0),r.id==="signalk-tidal-currents"&&(this.app.debug("*** found signalk-tidal-currents plugin"),t.tidalApi=!0)}),this.app.featureFlags.update(r=>Object.assign({},r,t))},()=>{this.app.debug("*** Features API not present!")}),this.app.fetchUnitPrefsFromSKServer();let e=yield this.skresOther.initCustomCollections();this.app.featureFlags.update(i=>Object.assign({},i,e))})}startTimers(){this.app.debug("Starting Trail logging timer..."),this.timers.push(setInterval(()=>{this.processTrail()},5e3))}stopTimers(){this.app.debug("Stopping timers:"),this.timers.forEach(t=>clearInterval(t)),this.timers=[]}processTrail(t){if(!this.app.config.vessels.trail)return;let e=this.app.selfTrail().slice(-1);if(this.app.data.vessels.showSelf){if(e.length===0){this.app.selfTrail.update(o=>{let r=[].concat(o);return r.push(this.app.data.vessels.self.position),r});return}(this.app.data.vessels.self.position[0]!==e[0][0]||this.app.data.vessels.self.position[1]!==e[0][1])&&this.app.selfTrail.update(o=>{let r=[].concat(o);return r.push(this.app.data.vessels.self.position),r})}if(!t||t.length===0)this.app.selfTrail().length%60===0&&this.app.data.serverTrail&&this.app.config.vessels.trailFromServer&&this.stream.requestTrailFromServer(),this.app.selfTrail.update(o=>o.slice(-5e3));else{let o=t.slice(-1),r=o.length!==0?o[0].slice(-1):t.length>1?t[t.length-2].slice(-1):[];this.app.selfTrail.update(()=>r)}let i=this.mode===1?"history":"self";this.app.db.saveTrail(i,this.app.selfTrail())}handleTrailUpdate(t){t.action==="get"&&t.mode==="trail"&&(this.app.config.vessels.trailFromServer&&this.app.selfTrailFromServer.update(()=>t.data),this.processTrail(t.data))}handleSettingChangeEvent(t){t?.includes("darkTheme")&&this.setDarkTheme(),t?.includes("headingAttribute")&&(this.app.debug("True / Magnetic selection changed.."),this.app.data.vessels.self.heading=this.app.useMagnetic?this.app.data.vessels.self.headingMagnetic:this.app.data.vessels.self.headingTrue,this.app.data.vessels.self.cog=this.app.useMagnetic?this.app.data.vessels.self.cogMagnetic:this.app.data.vessels.self.cogTrue,this.app.data.vessels.self.wind.direction=this.app.useMagnetic?this.app.data.vessels.self.wind.mwd:this.app.data.vessels.self.wind.twd,this.app.data.vessels.aisTargets.forEach(e=>{e.heading=this.app.useMagnetic?e.headingMagnetic:e.headingTrue,e.cog=this.app.useMagnetic?e.cogMagnetic:e.cogTrue,e.wind.direction=this.app.useMagnetic?e.wind.mwd:e.wind.twd}),this.app.sTrueMagChoice.set(this.app.config.units.headingAttribute)),(t?.includes("pluginParameters")||t?.includes("pluginInstruments")||t?.includes("pluginStartOnOpen"))&&(this.instUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(this.formatInstrumentsUrl())),this.app.instrumentPanel.update(e=>Object.assign({},e,{activate:this.app.config.display.plugins.startOnOpen?!!e.open:!0}))),t?.includes("videoUrl")&&this.vidUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(`${this.app.config.resources.video.url}`)),(t?.includes("vesselTrail")||t?.includes("trailFromServer"))&&this.app.config.vessels.trail&&(this.app.config.vessels.trailFromServer?this.stream.requestTrailFromServer():this.app.data.serverTrail=!1)}focusMap(){this.mapSetFocus.update(()=>Date().valueOf())}openDrawer(){this.sideright.open()}closeDrawer(){this.sideright.close()}openInstrumentPanel(){this.app.instrumentPanel().open||(this.infoPanel.opened()&&this.infoPanel.close(),this.app.instrumentPanel.update(t=>Object.assign({},t,{open:!0,activate:!0})))}closeInstrumentPanel(){this.app.instrumentPanel.update(t=>Object.assign({},t,{open:!1,activate:this.app.config.display.plugins.startOnOpen?!1:t.activate})),this.focusMap()}displayLeftMenu(t="",e=!1){let i={leftMenuPanel:e,routeList:!1,waypointList:!1,chartList:!1,noteList:!1,regionList:!1,trackList:!1,aisList:!1,resourceGroups:!1,infoLayerList:!1,anchorWatch:!1,weatherList:!1};switch(t){case"routeList":i.routeList=e;break;case"waypointList":i.waypointList=e;break;case"chartList":i.chartList=e;break;case"noteList":i.noteList=e;break;case"regionList":i.regionList=e;break;case"trackList":i.trackList=e;break;case"anchorWatch":i.anchorWatch=e;break;case"aisList":i.aisList=e;break;case"resourceGroups":i.resourceGroups=e;break;case"infoLayerList":i.infoLayerList=e;break;case"weatherList":i.weatherList=e;break;default:i.leftMenuPanel=!1}this.leftMenuCtrl.update(()=>i),e||this.focusMap()}handleResourceInfo(t,e){t==="notes"&&!this.app.useInfoPanel()?this.skres.noteSelected(e,!1):t==="regions"&&!this.app.useInfoPanel()?this.skres.editRegionInfo(e):t==="waypoints"&&!this.app.useInfoPanel()?this.skres.editWaypointInfo(e):t==="routes"&&!this.app.useInfoPanel()?this.skres.editRouteInfo(e):this.infoPanel.open(t,e)}onNoteMove(t){this.infoPanel.opened()&&(this.infoPanel.close(),this.closeDrawer()),this.skres.startNoteModify(t)}openAbout(){return O(this,null,function*(){let{AboutDialog:t}=yield import("./chunk-OXZNIUU4.js");this.dialog.open(t,{disableClose:!1,data:{name:this.app.name,version:this.app.version,description:this.app.description,logo:this.app.logo,url:this.app.url}}).afterClosed().subscribe(()=>this.focusMap())})}openSettings(){return O(this,null,function*(){let{SettingsDialog:t}=yield import("./chunk-
|
|
461
|
-
Not all features were loaded.`),this.focusMap())})})}importResourceSet(){return O(this,null,function*(){let{ResourceImportDialog:t}=yield import("./chunk-
|
|
459
|
+
`],encapsulation:2,changeDetection:0})}return n})(),Je=(()=>{class n extends Ye{static \u0275fac=(()=>{let e;return function(o){return(e||(e=$e(n)))(o||n)}})();static \u0275cmp=R({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[ve([{provide:we,useExisting:n}]),Ae],ngContentSelectors:et,decls:1,vars:0,template:function(i,o){i&1&&(ue(),Y(0))},encapsulation:2,changeDetection:0})}return n})(),Nt=(()=>{class n extends Ot{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=_e(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=kt(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=kt(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=$e(n)))(o||n)}})();static \u0275cmp=R({type:n,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(i,o){i&2&&(ke("tabIndex",o.mode!=="side"?"-1":null)("align",null),ne("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),B("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[ve([{provide:Ot,useExisting:n}]),Ae],ngContentSelectors:et,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,o){i&1&&(ue(),a(0,"div",1,0),Y(2),s())},dependencies:[we],encapsulation:2,changeDetection:0})}return n})(),lo=(()=>{class n extends Vt{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=$e(n)))(o||n)}})();static \u0275cmp=R({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(i,o,r){if(i&1&&St(r,Je,5)(r,Nt,5),i&2){let p;N(p=$())&&(o._content=p.first),N(p=$())&&(o._allDrawers=p)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,o){i&2&&B("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],features:[ve([{provide:Ft,useExisting:n},{provide:Vt,useExisting:n}]),Ae],ngContentSelectors:Ca,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,o){i&1&&(ue(ga),f(0,va,1,2,"div",0),Y(1),Y(2,1),f(3,ba,2,0,"mat-sidenav-content")),i&2&&(h(o.hasBackdrop?0:-1),c(3),h(o._content?-1:3))},dependencies:[Je],styles:[wa],encapsulation:2,changeDetection:0})}return n})(),co=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=qe({type:n});static \u0275inj=Ve({imports:[Mt,He,Mt]})}return n})();var aa=la(ta());function an(n){let t=[];for(let e of n)for(let i of e.events)t.push(`${e.id}:${i.pr}`);return t}function na(n,t){if(!Array.isArray(t))return n;let e=new Set(t.filter(i=>typeof i=="string"));return n.filter(i=>!e.has(i))}var ia="fb-whats-new-seen",mt=class n{corpus=C(oo);_hasUnseen=z(!1);hasUnseen=this._hasUnseen.asReadonly();init(){return O(this,null,function*(){let t=yield this.corpus.load(),e=na(an(t),this.readSeen());this._hasUnseen.set(e.length>0)})}markAllSeen(){return O(this,null,function*(){let t=yield this.corpus.load();this.writeSeen(an(t)),this._hasUnseen.set(!1)})}readSeen(){try{let t=localStorage.getItem(ia);return t===null?null:JSON.parse(t)}catch(t){return null}}writeSeen(t){try{localStorage.setItem(ia,JSON.stringify(t))}catch(e){}}static \u0275fac=function(e){return new(e||n)};static \u0275prov=mn({token:n,factory:n.\u0275fac,providedIn:"root"})};var Rc=["frame"],_t=class n{constructor(t,e){this.service=t;this.sanitizer=e}placed=ce.required();frame;url;detach=null;ngOnInit(){let t=this.service.widgetDef(this.placed().extension,this.placed().widget);this.url=this.sanitizer.bypassSecurityTrustResourceUrl(t?.url?this.service.resolveAssetUrl(t.url):"about:blank"),this.detach=this.service.attachWidget(this.frame.nativeElement,this.placed())}onFrameLoad(){}ngOnDestroy(){this.detach?.(),this.detach=null}static \u0275fac=function(e){return new(e||n)(ge(j),ge(pe))};static \u0275cmp=R({type:n,selectors:[["fb-plotterext-widget"]],viewQuery:function(e,i){if(e&1&&J(Rc,7),e&2){let o;N(o=$())&&(i.frame=o.first)}},inputs:{placed:[1,"placed"]},decls:2,vars:2,consts:[["frame",""],["sandbox","allow-scripts allow-same-origin allow-forms",3,"load","src","title"]],template:function(e,i){e&1&&(gn(0,"iframe",1,0),vn("load",function(){return i.onFrameLoad()}),Cn()),e&2&&Ce("src",i.url,le)("title",i.placed().widget)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:none;background:transparent}"]})};var Lc=()=>[],Oc=(n,t)=>t.type+t.extension,Vc=(n,t)=>t.instanceId;function Fc(n,t){if(n&1){let e=E();a(0,"div",3)(1,"mat-icon",4),d(2,"filter_alt"),s(),a(3,"span",5),d(4),s(),a(5,"button",6),_("click",function(){let o=u(e).$implicit,r=l(2);return m(r.clearChip(o))}),a(6,"mat-icon"),d(7,"close"),s()()()}if(n&2){let e=t.$implicit;c(4),U(e.label)}}function Nc(n,t){if(n&1&&(a(0,"div",2),G(1,Fc,8,1,"div",3,Oc),s()),n&2){let e=l();B("pe-chips-low",(e.byAnchor().ct??wn(2,Lc)).length>0),c(),W(e.service.filterChips())}}function $c(n,t){if(n&1&&(a(0,"div",9),v(1,"fb-plotterext-widget",10),s()),n&2){let e=t.$implicit,i=l(2);At(i.cellStyle(e)),c(),x("placed",e)}}function Bc(n,t){if(n&1&&(a(0,"div",7),G(1,$c,2,3,"div",8,Vc),s()),n&2){let e=t.$implicit,i=l();At(i.anchorStyle(e)),bn("pe-"+e),ke("data-anchor",e),c(),W(i.byAnchor()[e])}}var qc=1500,oa=8,ht=class n{anchors=It;byAnchor=be(()=>{let t={};for(let e of It)t[e]=[];for(let e of this.service.activeWidgets())t[e.anchor]?.push(e);return t});service=C(j);zone=C(te);host=C(se);holdTimer=null;downPoint=null;onPointerDown=t=>this.pointerDown(t);onPointerMove=t=>this.pointerMove(t);onPointerEnd=()=>this.cancelHold();unregisterHitTester=null;ngOnInit(){this.unregisterHitTester=this.service.registerHitTester((t,e)=>this.hitTest(t,e)),this.zone.runOutsideAngular(()=>{document.addEventListener("pointerdown",this.onPointerDown,!0),document.addEventListener("pointermove",this.onPointerMove,!0),document.addEventListener("pointerup",this.onPointerEnd,!0),document.addEventListener("pointercancel",this.onPointerEnd,!0)})}ngOnDestroy(){this.cancelHold(),this.unregisterHitTester?.(),this.unregisterHitTester=null,document.removeEventListener("pointerdown",this.onPointerDown,!0),document.removeEventListener("pointermove",this.onPointerMove,!0),document.removeEventListener("pointerup",this.onPointerEnd,!0),document.removeEventListener("pointercancel",this.onPointerEnd,!0)}anchorStyle(t){let e={"grid-template-columns":`repeat(${Dt[t].cols}, var(--pe-cell-w))`};if(t!=="ct"&&t!=="cb")return e;let i=new Set;for(let r of this.byAnchor()[t]??[]){let p=this.service.widgetDef(r.extension,r.widget),{cols:g}=Rt(p?.size??"1x1");for(let y=r.col;y<r.col+g&&y<2;y++)i.add(y)}let o="0px";return i.size===1&&(o=i.has(0)?"calc((var(--pe-cell-w) + var(--pe-gap)) / 2)":"calc((var(--pe-cell-w) + var(--pe-gap)) / -2)"),e["--pe-center-shift"]=o,e}cellStyle(t){let e=this.service.widgetDef(t.extension,t.widget),{cols:i,rows:o}=Rt(e?.size??"1x1");return{"grid-column":`${t.col+1} / span ${i}`,"grid-row":`${t.row+1} / span ${o}`}}clearChip(t){this.service.clearResourceFilter(t.extension,t.type)}pointerDown(t){if(this.cancelHold(),!t.isPrimary||t.pointerType==="mouse"&&t.button!==0||t.target?.closest(".cdk-overlay-container, mat-dialog-container, button, mat-toolbar, .pe-cell, .pe-chips"))return;let i=this.hitTest(t.clientX,t.clientY);i&&(this.service.cellOccupied(i.anchor,i.cell)||(this.downPoint={x:t.clientX,y:t.clientY},this.holdTimer=setTimeout(()=>{this.holdTimer=null,this.zone.run(()=>this.service.openAddWidgetPicker(i.anchor,i.cell))},qc)))}pointerMove(t){if(!this.holdTimer||!this.downPoint)return;let e=t.clientX-this.downPoint.x,i=t.clientY-this.downPoint.y;e*e+i*i>oa*oa&&this.cancelHold()}cancelHold(){this.holdTimer&&clearTimeout(this.holdTimer),this.holdTimer=null,this.downPoint=null}hitTest(t,e){let i=this.host.nativeElement.querySelectorAll(".pe-anchor");for(let o of Array.from(i)){let r=o.getBoundingClientRect();if(t<r.left||t>r.right||e<r.top||e>r.bottom)continue;let p=o.dataset.anchor,{cols:g,rows:y}=Dt[p],T=Math.min(g-1,Math.max(0,Math.floor((t-r.left)/r.width*g))),P=Math.min(y-1,Math.max(0,Math.floor((e-r.top)/r.height*y)));return{anchor:p,cell:{col:T,row:P}}}return null}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["fb-plotterext-overlay"]],decls:3,vars:1,consts:[[1,"pe-chips",3,"pe-chips-low"],[1,"pe-anchor",3,"class","style"],[1,"pe-chips"],[1,"pe-chip"],[1,"pe-chip-icon"],[1,"pe-chip-label"],["aria-label","Clear filter",1,"pe-chip-clear",3,"click"],[1,"pe-anchor"],[1,"pe-cell",3,"style"],[1,"pe-cell"],[3,"placed"]],template:function(e,i){e&1&&(f(0,Nc,3,3,"div",0),G(1,Bc,3,5,"div",1,ze)),e&2&&(h(i.service.filterChips().length?0:-1),c(),W(i.anchors))},dependencies:[_t,ye,xe],styles:["[_nghost-%COMP%]{position:absolute;inset:0;z-index:2000;pointer-events:none;--pe-cell-w: clamp(96px, 11vw, 150px);--pe-cell-h: clamp(84px, 9.5vw, 124px);--pe-gap: 6px;--pe-margin: 10px}.pe-anchor[_ngcontent-%COMP%]{position:absolute;display:grid;grid-template-rows:repeat(2,var(--pe-cell-h));gap:var(--pe-gap);pointer-events:none}.pe-tr[_ngcontent-%COMP%]{top:0;right:0}.pe-ct[_ngcontent-%COMP%]{top:0;left:50%;transform:translate(calc(-50% + var(--pe-center-shift, 0px)))}.pe-cb[_ngcontent-%COMP%]{bottom:0;left:50%;transform:translate(calc(-50% + var(--pe-center-shift, 0px)))}.pe-bl[_ngcontent-%COMP%]{bottom:0;left:0}.pe-br[_ngcontent-%COMP%]{bottom:0;right:0}.pe-cell[_ngcontent-%COMP%]{pointer-events:auto;overflow:hidden;border-radius:10px;box-shadow:0 1px 5px #00000059}.pe-chips[_ngcontent-%COMP%]{position:absolute;top:8px;left:50%;transform:translate(-50%);display:flex;gap:6px;pointer-events:auto;z-index:1}.pe-chips-low[_ngcontent-%COMP%]{top:calc(2 * var(--pe-cell-h) + var(--pe-gap) + 10px)}.pe-chip[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;background:#141a20d9;color:#e8edf2;border-radius:16px;padding:3px 6px 3px 10px;font-size:12px;max-width:320px;box-shadow:0 1px 4px #00000059}.pe-chip-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;color:#29b6f6}.pe-chip-label[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pe-chip-clear[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border:none;background:#ffffff26;color:#e8edf2;border-radius:50%;width:20px;height:20px;padding:0;cursor:pointer}.pe-chip-clear[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;height:14px}"]})};var zc=["frame"],Uc=(n,t)=>t.key;function jc(n,t){if(n&1&&v(0,"fb-plotterext-runtime",0),n&2){let e=t.$implicit;x("entry",e)}}var sn=class n{constructor(t,e){this.service=t;this.sanitizer=e}entry=ce.required();frame;url;detach=null;ngOnInit(){let{extension:t,runtime:e}=this.entry();this.url=this.sanitizer.bypassSecurityTrustResourceUrl(e.url?this.service.resolveAssetUrl(e.url):"about:blank"),this.detach=this.service.attachBackground(this.frame.nativeElement,{extension:t,runtime:e})}ngOnDestroy(){this.detach?.(),this.detach=null}static \u0275fac=function(e){return new(e||n)(ge(j),ge(pe))};static \u0275cmp=R({type:n,selectors:[["fb-plotterext-runtime"]],viewQuery:function(e,i){if(e&1&&J(zc,7),e&2){let o;N(o=$())&&(i.frame=o.first)}},inputs:{entry:[1,"entry"]},decls:2,vars:2,consts:[["frame",""],["sandbox","allow-scripts allow-same-origin allow-forms","aria-hidden","true",3,"src","title"]],template:function(e,i){e&1&&Ue(0,"iframe",1,0),e&2&&Ce("src",i.url,le)("title",i.entry().runtime.id)},styles:["[_nghost-%COMP%]{display:none}"]})},gt=class n{service=C(j);static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["fb-plotterext-runtimes"]],decls:2,vars:0,consts:[[3,"entry"]],template:function(e,i){e&1&&G(0,jc,1,1,"fb-plotterext-runtime",0,Uc),e&2&&W(i.service.backgroundRuntimes())},dependencies:[sn],styles:["[_nghost-%COMP%]{display:none}"]})};var Wc=["frame"],Hc=(n,t)=>t.key;function Xc(n,t){if(n&1){let e=E();a(0,"div",1)(1,"span"),d(2),s(),a(3,"button",4),_("click",function(){u(e);let o=l();return m(o.service.closeVisiblePanel())}),a(4,"mat-icon"),d(5,"close"),s()()()}n&2&&(c(2),U(t.panel.title))}function Kc(n,t){if(n&1&&(a(0,"div",5),v(1,"fb-plotterext-panel-frame",6),s()),n&2){let e=t.$implicit;B("pe-body-hidden",!e.visible),c(),x("panelKey",e.key)("extension",e.extension)("panel",e.panel)}}var ln=class n{panelKey=ce.required();extension=ce.required();panel=ce.required();frame;url;detach=null;service=C(j);sanitizer=C(pe);ngOnInit(){this.url=this.sanitizer.bypassSecurityTrustResourceUrl(this.panel().url?this.service.resolveAssetUrl(this.panel().url):"about:blank"),this.detach=this.service.attachPanel(this.frame.nativeElement,{extension:this.extension(),panel:this.panel(),close:()=>this.service.closePanel(this.panelKey())})}ngOnDestroy(){this.detach?.(),this.detach=null}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["fb-plotterext-panel-frame"]],viewQuery:function(e,i){if(e&1&&J(Wc,7),e&2){let o;N(o=$())&&(i.frame=o.first)}},inputs:{panelKey:[1,"panelKey"],extension:[1,"extension"],panel:[1,"panel"]},decls:2,vars:2,consts:[["frame",""],["sandbox","allow-scripts allow-same-origin allow-forms",3,"src","title"]],template:function(e,i){e&1&&Ue(0,"iframe",1,0),e&2&&Ce("src",i.url,le)("title",i.panel().title)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:none}"]})},Ct=class n{service=C(j);isOpen=be(()=>!!this.service.visiblePanel());constructor(){let t=!0;oe(()=>{if(this.isOpen(),t){t=!1;return}this.service.pulseMapResize()})}onTransitionEnd(t){t.propertyName==="width"&&this.service.pulseMapResize(80)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["fb-plotterext-panel-drawer"]],hostVars:2,hostBindings:function(e,i){e&2&&B("pe-open",i.isOpen())},decls:5,vars:1,consts:[[1,"pe-drawer-inner",3,"transitionend"],[1,"pe-drawer-head"],[1,"pe-drawer-bodies"],[1,"pe-drawer-body",3,"pe-body-hidden"],["mat-icon-button","","aria-label","Close panel",3,"click"],[1,"pe-drawer-body"],[3,"panelKey","extension","panel"]],template:function(e,i){if(e&1&&(a(0,"div",0),_("transitionend",function(r){return i.onTransitionEnd(r)}),f(1,Xc,6,1,"div",1),a(2,"div",2),G(3,Kc,2,5,"div",3,Hc),s()()),e&2){let o;c(),h((o=i.service.visiblePanel())?1:-1,o),c(2),W(i.service.openPanels())}},dependencies:[Qe,Ze,ye,xe,ln],styles:["[_nghost-%COMP%]{flex:0 0 auto;height:100%;width:0;max-width:92vw;overflow:hidden;background:#1d242b;color:#e8edf2}.pe-open[_nghost-%COMP%]{width:390px;box-shadow:-2px 0 8px #0006}.pe-drawer-inner[_ngcontent-%COMP%]{width:390px;max-width:92vw;height:100%;display:flex;flex-direction:column}.pe-drawer-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 4px 14px;font-weight:600;border-bottom:1px solid rgba(255,255,255,.12);flex:0 0 auto}.pe-drawer-bodies[_ngcontent-%COMP%]{flex:1;min-height:0;position:relative}.pe-drawer-body[_ngcontent-%COMP%]{position:absolute;inset:0}.pe-body-hidden[_ngcontent-%COMP%]{visibility:hidden;pointer-events:none}"]})};var Zc=["sideright"],Qc=()=>[Ti],Yc=()=>[Ii],Jc=()=>[yi],ep=()=>[fi],tp=()=>[gi],np=()=>[Ei],ip=()=>[vi],op=()=>[Ri],rp=()=>[Vi],ap=()=>[Fi],sp=(n,t)=>({"dark-theme":n,"app-night":t}),he=(n,t)=>({"button-primary":n,"button-toolbar":t}),lp=(n,t)=>t.extension+"/"+t.button.id,cp=(n,t)=>t[0];function pp(n,t){if(n&1){let e=E();a(0,"button",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("resourceGroups",!0))}),a(1,"mat-icon"),d(2,"category"),s(),d(3," \xA0Groups "),s()}}function dp(n,t){if(n&1){let e=E();a(0,"button",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("infoLayerList",!0))}),a(1,"mat-icon"),d(2,"layers"),s(),d(3," \xA0Overlays "),s()}}function up(n,t){if(n&1){let e=E();a(0,"button",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("trackList",!0))}),a(1,"mat-icon",32),d(2,"show_chart"),s(),d(3," \xA0Tracks "),s()}}function mp(n,t){if(n&1){let e=E();a(0,"div")(1,"button",8),_("click",function(){let o=u(e).$implicit,r=l(2);return m(r.openExperiment({choice:o,value:null}))}),v(2,"mat-icon",33),d(3),s()()}if(n&2){let e=t.$implicit;c(3),me(" \xA0",e," ")}}function _p(n,t){if(n&1&&(a(0,"div"),G(1,mp,4,1,"div",null,ze),s()),n&2){let e=l();c(),W(e.app.config.resources.paths.sort())}}function fp(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.clearTrail(o.app.data.serverTrail))}),a(1,"mat-icon"),d(2,"clear_all"),s(),a(3,"span"),d(4),s()(),a(5,"a",8),_("click",function(){u(e);let o=l();return m(o.trailToRoute())}),a(6,"mat-icon"),d(7,"insights"),s(),a(8,"span"),d(9,"Trail to Route"),s()(),v(10,"mat-divider")}if(n&2){let e=l();c(4),me("",e.app.data.serverTrail?"Refresh":"Clear"," Trail")}}function hp(n,t){n&1&&(a(0,"span"),d(1,"Clear Active Route"),s())}function gp(n,t){n&1&&(a(0,"span"),d(1,"Clear Destination"),s())}function Cp(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.clearDestination())}),a(1,"mat-icon"),d(2,"clear_all"),s(),f(3,hp,2,0,"span")(4,gp,2,0,"span"),s(),a(5,"a",8),_("click",function(){u(e);let o=l();return m(o.clearCourseData())}),a(6,"mat-icon"),d(7,"clear_all"),s(),a(8,"span"),d(9,"Clear Course Data"),s()(),v(10,"mat-divider")}if(n&2){let e=l();c(3),h(e.app.data.activeRoute?3:4)}}function vp(n,t){if(n&1){let e=E();v(0,"mat-divider"),a(1,"a",8),_("click",function(){u(e);let o=l();return m(o.showWeather("forecast"))}),a(2,"mat-icon"),d(3,"air"),s(),a(4,"span"),d(5,"Weather Forecast"),s()()}}function bp(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.skres.newWaypointAt(o.app.data.vessels.active.position))}),a(1,"mat-icon",10),d(2,"add_location"),s(),a(3,"span"),d(4,"Add Waypoint at Vessel"),s()()}}function wp(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.drawFeature("note"))}),a(1,"mat-icon"),d(2,"local_offer"),s(),a(3,"span"),d(4,"Add Note"),s()()}}function xp(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.showLogin(null,!1))}),a(1,"mat-icon",34),d(2," account_circle "),s(),a(3,"span"),d(4),s()(),v(5,"mat-divider")}if(n&2){let e=l();c(),x("matBadgeHidden",e.app.isLoggedIn()),c(3),U(e.app.isLoggedIn()?"Change User":"Login")}}function yp(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("anchorWatch",!0))}),a(1,"mat-icon"),d(2,"anchor"),s(),a(3,"span"),d(4,"Anchor Watch"),s()()}}function Ep(n,t){n&1&&(a(0,"mat-icon",15),d(1,"check_box"),s())}function Tp(n,t){n&1&&v(0,"mat-icon",35)}function Sp(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.showRadarPanel())}),f(1,Ep,2,0,"mat-icon",15)(2,Tp,1,0,"mat-icon",35),a(3,"span"),d(4,"Radar Overlay"),s()()}if(n&2){let e=l();c(),h(e.app.uiCtrl().radarLayer?1:2)}}function Ap(n,t){if(n&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.showPlaybackSettings())}),a(1,"mat-icon"),d(2,"history"),s(),a(3,"span"),d(4,"Playback History"),s()()}}function kp(n,t){if(n&1){let e=E();a(0,"radar-panel",42),_("connect",function(){u(e);let o=l(2);return m(o.connectRadar())})("disconnect",function(){u(e);let o=l(2);return m(o.disconnectRadar())}),s()}if(n&2){let e=l(2);x("radar",e.infoPanel.item().resource)("id",e.infoPanel.item().id)}}function Mp(n,t){if(n&1){let e=E();a(0,"note-panel",43),_("edit",function(o){u(e);let r=l(2);return m(r.skres.showNoteEditor({id:o}))})("move",function(o){u(e);let r=l(2);return m(r.onNoteMove(o))})("panTo",function(o){u(e);let r=l(2);return m(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(n&2){let e=l(2);x("note",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("interacting",e.isInteracting())}}function Pp(n,t){if(n&1){let e=E();a(0,"region-panel",44),_("edit",function(o){u(e);let r=l(2);return m(r.skres.editRegionInfo(o))})("panTo",function(o){u(e);let r=l(2);return m(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(n&2){let e=l(2);x("region",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("related",e.infoPanel.related())("interacting",e.isInteracting())}}function Ip(n,t){if(n&1){let e=E();a(0,"waypoint-panel",45),_("edit",function(o){u(e);let r=l(2);return m(r.skres.editWaypointInfo(o))})("panTo",function(o){u(e);let r=l(2);return m(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(n&2){let e=l(2);x("waypoint",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("related",e.infoPanel.related())("interacting",e.isInteracting())}}function Dp(n,t){if(n&1){let e=E();a(0,"route-panel",46),_("edit",function(o){u(e);let r=l(2);return m(r.onRouteInfoEdit(o))})("activate",function(o){u(e);let r=l(2);return m(r.activateRoute(o))})("panTo",function(o){u(e);let r=l(2);return m(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(n&2){let e=l(2);x("route",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("related",e.infoPanel.related())("interacting",e.isInteracting())}}function Rp(n,t){if(n&1){let e=E();a(0,"info-panel",36),_("closed",function(){u(e);let o=l();return m(o.closeDrawer())}),f(1,kp,1,2,"radar-panel",37),f(2,Mp,1,3,"note-panel",38),f(3,Pp,1,4,"region-panel",39),f(4,Ip,1,4,"waypoint-panel",40),f(5,Dp,1,4,"route-panel",41),s()}if(n&2){let e,i,o,r,p,g=l();c(),h(((e=g.infoPanel.item())==null?null:e.type)==="radars"?1:-1),c(),h(((i=g.infoPanel.item())==null?null:i.type)==="notes"?2:-1),c(),h(((o=g.infoPanel.item())==null?null:o.type)==="regions"?3:-1),c(),h(((r=g.infoPanel.item())==null?null:r.type)==="waypoints"?4:-1),c(),h(((p=g.infoPanel.item())==null?null:p.type)==="routes"?5:-1)}}function Lp(n,t){if(n&1){let e=E();a(0,"a",54),_("click",function(){u(e);let o=l(2);return m(o.closeInstrumentPanel())}),a(1,"mat-icon"),d(2,"open_in_new"),s()()}if(n&2){let e=l(2);x("href",e.instUrl(),fn)}}function Op(n,t){if(n&1&&v(0,"iframe",53),n&2){let e=l(2);x("src",e.instUrl(),le)}}function Vp(n,t){if(n&1){let e=E();a(0,"div",21)(1,"mat-nav-list")(2,"a",47)(3,"a",48),_("click",function(){u(e);let o=l();return m(o.closeInstrumentPanel())}),a(4,"mat-icon"),d(5,"arrow_forward"),s()(),d(6," \xA0\xA0\xA0\xA0 "),f(7,Lp,3,1,"a",49),a(8,"a",50),_("click",function(){u(e);let o=l();return m(o.selectPlugin())}),a(9,"mat-icon"),d(10,"arrow_back_ios"),s()(),a(11,"a",51),_("click",function(){u(e);let o=l();return m(o.selectPlugin(!0))}),a(12,"mat-icon"),d(13,"arrow_forward_ios"),s()()(),v(14,"mat-divider"),s(),a(15,"div",52),f(16,Op,1,1,"iframe",53),s()()}if(n&2){let e=l();c(7),h(e.app.config.display.plugins.instruments?7:-1),c(),x("disabled",e.app.config.display.plugins.favourites.length===0),c(3),x("disabled",e.app.config.display.plugins.favourites.length===0),c(5),h(e.app.instrumentPanel().activate?16:-1)}}function Fp(n,t){n&1&&(a(0,"div",23),v(1,"mat-progress-bar",55),s())}function Np(n,t){if(n&1){let e=E();a(0,"autopilot-console",56),_("close",function(){u(e);let o=l();return m(o.toggleAutopilotConsole(!1))}),s()}if(n&2){let e=l();x("apData",e.app.data.vessels.self.autopilot)}}function $p(n,t){if(n&1){let e=E();a(0,"route-builder",57),_("save",function(o){u(e);let r=l();return m(r.skres.newRouteAt(o.coordinates,o.meta))})("close",function(){u(e);let o=l();return m(o.toggleRouteBuilderConsole(!1))}),s()}}function Bp(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",77),_("click",function(){u(e);let o=l(3);return m(o.centerVessel())}),a(2,"mat-icon"),d(3," center_focus_strong "),s()()()}if(n&2){let e=l(3);c(),x("disabled",!e.app.data.vessels.showSelf)}}function qp(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",78),_("click",function(){u(e);let o=l(3);return m(o.showSelectMode())}),a(2,"mat-icon"),d(3,"cancel"),s()()()}}function zp(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",79),_("click",function(){u(e);let o=l(3);return m(o.openFeatureBrowser())}),a(2,"mat-icon"),d(3,"tips_and_updates"),s()()()}}function Up(n,t){if(n&1){let e=E();a(0,"div",61)(1,"div",59)(2,"button",68),_("click",function(){u(e);let o=l(2);return m(o.toggleAlertList(!0))}),v(3,"mat-icon",69),s()(),a(4,"div",59)(5,"button",70)(6,"mat-icon"),d(7,"layers"),s()()(),a(8,"div",59)(9,"button",71)(10,"mat-icon"),d(11,"edit"),s()()(),a(12,"div",59)(13,"button",72),_("click",function(){u(e);let o=l(2);return m(o.toggleNorthUp())}),v(14,"mat-icon",73),s()(),a(15,"div",59)(16,"button",74),_("click",function(){u(e);let o=l(2);return m(o.toggleMoveMap())}),v(17,"mat-icon",75),s()(),f(18,Bp,4,1,"div",59),a(19,"div",59)(20,"button",76)(21,"mat-icon"),d(22,"more_horiz"),s()()(),f(23,qp,4,0,"div",59),f(24,zp,4,0,"div",59),s()}if(n&2){let e=l(2),i=Me(3),o=Me(41),r=Me(73);c(2),x("matBadge",e.notiMgr.alerts().length)("matBadgeHidden",e.notiMgr.alerts().length===0),c(3),x("disabled",e.isInteracting())("matMenuTriggerFor",i),c(4),x("disabled",e.isInteracting())("matMenuTriggerFor",r),c(4),x("ngClass",re(17,he,!e.app.uiConfig().mapNorthUp,e.app.uiConfig().mapNorthUp))("matTooltip",e.app.uiConfig().mapNorthUp?"Show Heading Up":"Show North Up"),c(),x("svgIcon",e.app.uiConfig().mapNorthUp?"heading-n-up":"heading-h-up"),c(2),x("ngClass",re(20,he,e.app.uiConfig().mapMove,!e.app.uiConfig().mapMove))("disabled",!e.app.data.vessels.showSelf)("matTooltip",e.app.uiConfig().mapMove?"Turn off Follow Vessel":"Follow Vessel"),c(2),h(e.app.uiConfig().mapMove?-1:18),c(2),x("disabled",e.isInteracting())("matMenuTriggerFor",o),c(3),h(e.mode===1?23:-1),c(),h(e.whatsNew.hasUnseen()?24:-1)}}function jp(n,t){if(n&1){let e=E();a(0,"route-list",81),_("activate",function(o){u(e);let r=l(4);return m(r.activateRoute(o.id))})("deactivate",function(){u(e);let o=l(4);return m(o.clearDestination())})("select",function(o){u(e);let r=l(4);return m(r.handleResourceInfo("routes",o.id))})("points",function(o){u(e);let r=l(4);return m(r.featureProperties({id:o.id,type:"route"}))})("notes",function(o){u(e);let r=l(4);return m(r.skres.showRelatedNotes(o.id,"route",o.readOnly))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(n&2){let e=l(4);x("activeRoute",e.app.data.activeRoute)("editingRouteId",e.app.data.editingId)}}function Gp(n,t){n&1&&(K(0,jp,1,2),Z(1,0,Qc),Q())}function Wp(n,t){if(n&1){let e=E();a(0,"waypoint-list",82),_("select",function(o){u(e);let r=l(4);return m(r.handleResourceInfo("waypoints",o.id))})("goto",function(o){u(e);let r=l(4);return m(r.course.navigateToWaypoint(o.id))})("deactivate",function(){u(e);let o=l(4);return m(o.clearDestination())})("center",function(o){u(e);let r=l(4);return m(r.centerAndZoom(o))})("notes",function(o){u(e);let r=l(4);return m(r.skres.showRelatedNotes(o.id,"waypoint",o.readOnly))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(n&2){let e=l(4);x("activeWaypoint",e.app.data.activeWaypoint)("editingWaypointId",e.app.data.editingId)}}function Hp(n,t){n&1&&(K(0,Wp,1,2),Z(1,0,Yc),Q())}function Xp(n,t){if(n&1){let e=E();a(0,"chart-list",83),_("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(n&2){let e=l(4);x("selectedCharts",e.app.config.selections.charts)}}function Kp(n,t){n&1&&(K(0,Xp,1,1),Z(1,0,Jc),Q())}function Zp(n,t){if(n&1){let e=E();a(0,"note-list",84),_("select",function(o){u(e);let r=l(4);return m(r.handleResourceInfo("notes",o.id))})("pan",function(o){u(e);let r=l(4);return m(r.centerAndZoom(o.center,o.zoomLevel))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(n&2){let e=l(4);x("notes",e.skres.notes())}}function Qp(n,t){n&1&&(K(0,Zp,1,1),Z(1,0,ep),Q())}function Yp(n,t){if(n&1){let e=E();a(0,"region-list",85),_("select",function(o){u(e);let r=l(4);return m(r.handleResourceInfo("regions",o.id))})("pan",function(o){u(e);let r=l(4);return m(r.centerAndZoom(o.center,o.zoomLevel))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(n&2){let e=l(4);x("regions",e.skres.regions())}}function Jp(n,t){n&1&&(K(0,Yp,1,1),Z(1,0,tp),Q())}function ed(n,t){if(n&1){let e=E();a(0,"track-list",86),_("center",function(o){u(e);let r=l(4);return m(r.centerAndZoom(o))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}}function td(n,t){n&1&&(K(0,ed,1,0),Z(1,0,np),Q())}function nd(n,t){if(n&1){let e=E();a(0,"ais-list",87),_("properties",function(o){u(e);let r=l(4);return m(r.featureProperties({id:o,type:"ais"}))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())})("focusVessel",function(o){u(e);let r=l(4);return m(r.switchActiveVessel(o))})("pan",function(o){u(e);let r=l(4);return m(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(n&2){let e=l(4);x("focusId",e.app.data.vessels.activeId)}}function id(n,t){n&1&&(K(0,nd,1,1),Z(1,0,ip),Q())}function od(n,t){if(n&1){let e=E();a(0,"group-list",36),_("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}}function rd(n,t){n&1&&(K(0,od,1,0),Z(1,0,op),Q())}function ad(n,t){if(n&1){let e=E();a(0,"infolayer-list",88),_("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())})("paramChanged",function(o){u(e);let r=l(4);return m(r.onInfoLayerParamChange(o))}),s()}}function sd(n,t){n&1&&(K(0,ad,1,0),Z(1,0,rp),Q())}function ld(n,t){if(n&1){let e=E();a(0,"anchor-watch",89),_("closed",function(){u(e);let o=l(3);return m(o.displayLeftMenu())}),s()}if(n&2){let e=l(3);x("showSelf",e.app.data.vessels.showSelf)("radius",e.anchor.radius())("raised",e.anchor.raised())}}function cd(n,t){if(n&1){let e=E();a(0,"weather-list",36),_("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}}function pd(n,t){n&1&&(K(0,cd,1,0),Z(1,0,ap),Q())}function dd(n,t){if(n&1&&(a(0,"div",62),f(1,Gp,3,0),f(2,Hp,3,0),f(3,Kp,3,0),f(4,Qp,3,0),f(5,Jp,3,0),f(6,td,3,0),f(7,id,3,0),f(8,rd,3,0),f(9,sd,3,0),f(10,ld,1,3,"anchor-watch",80),f(11,pd,3,0),s()),n&2){let e=l(2);c(),h(e.leftMenuCtrl().routeList?1:-1),c(),h(e.leftMenuCtrl().waypointList?2:-1),c(),h(e.leftMenuCtrl().chartList?3:-1),c(),h(e.leftMenuCtrl().noteList?4:-1),c(),h(e.leftMenuCtrl().regionList?5:-1),c(),h(e.leftMenuCtrl().trackList?6:-1),c(),h(e.leftMenuCtrl().aisList?7:-1),c(),h(e.leftMenuCtrl().resourceGroups?8:-1),c(),h(e.leftMenuCtrl().infoLayerList?9:-1),c(),h(e.leftMenuCtrl().anchorWatch?10:-1),c(),h(e.leftMenuCtrl().weatherList?11:-1)}}function ud(n,t){n&1&&(a(0,"div",64)(1,"mat-icon",90),d(2,"visibility_off "),s()())}function md(n,t){n&1&&(a(0,"div",64)(1,"mat-icon",91),d(2,"compare_arrows "),s()())}function _d(n,t){n&1&&(a(0,"div",64)(1,"mat-icon",92),d(2,"directions_boat "),s()())}function fd(n,t){n&1&&(a(0,"div",64)(1,"mat-icon",93),d(2,"local_offer "),s()())}function hd(n,t){n&1&&(a(0,"div",64)(1,"mat-icon",94),d(2,"signal_wifi_statusbar_connected_no_internet_4 "),s()())}function gd(n,t){if(n&1){let e=E();a(0,"button",100),_("click",function(){u(e);let o=l(3);return m(o.openInstrumentPanel())}),a(1,"mat-icon"),d(2,"av_timer"),s()()}}function Cd(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",101),_("click",function(){u(e);let o=l(3);return m(o.enableAudio())}),a(2,"mat-icon",32),d(3,"volume_off"),s()(),v(4,"br"),d(5,"\xA0"),v(6,"br"),s()}}function vd(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",102),_("click",function(){u(e);let o=l(3);return m(o.toggleFullscreen())}),a(2,"mat-icon"),d(3),s()(),v(4,"br"),d(5,"\xA0"),v(6,"br"),s()}if(n&2){let e=l(3);c(),x("ngClass",re(3,he,e.displayFullscreen().active,!e.displayFullscreen().active))("matTooltip",e.displayFullscreen().active?"Exit Fullscreen ":"Go Fullscreen"),c(2),me(" ",e.displayFullscreen().active?"fullscreen_exit ":"fullscreen"," ")}}function bd(n,t){if(n&1){let e=E();a(0,"div",59)(1,"fb-experiments",103),_("selected",function(o){u(e);let r=l(3);return m(r.openExperiment(o))}),s(),v(2,"br"),d(3,"\xA0"),v(4,"br"),s()}}function wd(n,t){if(n&1){let e=E();a(0,"div",59)(1,"pip-video",104),_("click",function(){u(e);let o=l(3);return m(o.focusMap())}),s(),v(2,"br"),d(3,"\xA0"),v(4,"br"),s()}if(n&2){let e=l(3);c(),x("src",e.vidUrl())("muted",!0)}}function xd(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",105),_("click",function(){u(e);let o=l(3);return m(o.toggleAutopilotConsole(!0))}),v(2,"mat-icon",106),s(),v(3,"br"),d(4,"\xA0"),v(5,"br"),s()}if(n&2){let e=l(3);c(),x("ngClass",re(1,he,e.app.data.vessels.self.autopilot.enabled,!e.app.data.vessels.self.autopilot.enabled))}}function yd(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",107),_("click",function(){u(e);let o=l(3);return m(o.showRadarPanel())}),v(2,"mat-icon",35),s(),v(3,"br"),d(4,"\xA0"),v(5,"br"),s()}if(n&2){let e=l(3);c(),x("ngClass",re(2,he,e.app.uiCtrl().radarLayer,!e.app.uiCtrl().radarLayer))("disabled",e.app.instrumentPanel().open)}}function Ed(n,t){if(n&1){let e=E();a(0,"div",59)(1,"button",108),_("click",function(){let o=u(e).$implicit,r=l(3);return m(r.plotterExt.handleButtonAction(o.extension,o.button))}),a(2,"mat-icon"),d(3),s()(),v(4,"br"),d(5,"\xA0"),v(6,"br"),s()}if(n&2){let e=t.$implicit;c(),x("matTooltip",e.button.title),c(2),U(e.button.icon||"extension")}}function Td(n,t){if(n&1){let e=E();a(0,"div",95)(1,"div",96),f(2,gd,3,0,"button",97),v(3,"br"),d(4,"\xA0"),v(5,"br"),d(6,"\xA0 "),s(),f(7,Cd,7,0,"div",59),f(8,vd,7,6,"div",59),a(9,"div",59)(10,"button",98),_("click",function(){u(e);let o=l(2);return m(o.toggleConstrainMapZoom())}),a(11,"mat-icon"),d(12,"zoom_in_map"),s()(),v(13,"br"),d(14,"\xA0"),v(15,"br"),s(),a(16,"div",59)(17,"button",99),_("click",function(){u(e);let o=l(2);return m(o.invertFeatureLabelColor())}),a(18,"mat-icon"),d(19),s()(),v(20,"br"),d(21,"\xA0"),v(22,"br"),s(),f(23,bd,5,0,"div",59),f(24,wd,5,2,"div",59),f(25,xd,6,4,"div",59),f(26,yd,6,5,"div",59),G(27,Ed,7,2,"div",59,lp),s()}if(n&2){let e=l(2);ne("top",60+e.plotterExt.toolbarTopOffset(),"px"),c(2),h(e.app.instrumentPanelAvailable()&&!e.app.instrumentPanel().open&&!e.infoPanel.opened()&&!e.isInteracting()&&!e.app.data.vessels.activeId?2:-1),c(5),h(e.audioStatus()!=="running"?7:-1),c(),h(e.app.isTopWindow()&&e.displayFullscreen().enabled?8:-1),c(2),x("ngClass",re(12,he,e.app.uiConfig().mapConstrainZoom,!e.app.uiConfig().mapConstrainZoom)),c(7),x("ngClass",re(15,he,e.app.uiConfig().invertColor,!e.app.uiConfig().invertColor)),c(2),U("invert_colors"),c(4),h(e.app.config.experiments?23:-1),c(),h(e.app.config.resources.video.enable&&e.app.config.resources.video.url?24:-1),c(),h(e.app.featureFlags().autopilotApi&&e.app.data.vessels.self.autopilot.default&&e.app.config.display.fab!=="autopilot"?25:-1),c(),h(e.app.featureFlags().radarApi&&e.radarApi.radarId()&&e.app.config.display.fab!=="radar"?26:-1),c(),W(e.plotterExt.toolbarButtons())}}function Sd(n,t){if(n&1){let e=E();a(0,"div",58)(1,"div",59)(2,"button",60)(3,"mat-icon"),d(4,"menu"),s()()()(),f(5,Up,25,23,"div",61),f(6,dd,12,11,"div",62),a(7,"div",63),f(8,ud,3,0,"div",64),f(9,md,3,0,"div",64),f(10,_d,3,0,"div",64),f(11,fd,3,0,"div",64),f(12,hd,3,0,"div",64),s(),a(13,"div",65)(14,"div",59)(15,"button",66),_("click",function(){u(e);let o=l();return m(o.toggleToolbarButtons())}),a(16,"mat-icon"),d(17),s()()()(),f(18,Td,29,18,"div",67)}if(n&2){let e=l(),i=Me(109);c(2),x("disabled",e.isInteracting())("matBadgeHidden",e.app.isLoggedIn())("matMenuTriggerFor",i),c(3),h(e.app.uiConfig().toolbarButtons?5:-1),c(),h(e.leftMenuCtrl().leftMenuPanel?6:-1),c(),ne("top",20+e.plotterExt.toolbarTopOffset(),"px"),c(),h(!e.wakeLock.enabled()&&e.wakeLock.isAvailable?8:-1),c(),h(e.app.uiConfig().showCourseData?-1:9),c(),h(e.app.uiConfig().showAisTargets?-1:10),c(),h(e.app.uiConfig().showNotes?-1:11),c(),h(e.stream.watchDogAlarm()?12:-1),c(),ne("top",e.plotterExt.toolbarTopOffset(),"px"),c(2),x("matTooltip",e.app.uiConfig().toolbarButtons?"Hide Toobars":"Show Toobars"),c(2),U(e.app.uiConfig().toolbarButtons?"apps":"apps_outage"),c(),h(e.app.uiConfig().toolbarButtons?18:-1)}}function Ad(n,t){if(n&1&&(a(0,"div",29)(1,"div",109)(2,"mat-icon"),d(3,"access_time"),s(),a(4,"b"),d(5,"Playback:"),s()(),a(6,"div",110),d(7),s()()),n&2){let e=l();c(7),U(e.playbackTime())}}function kd(n,t){if(n&1){let e=E();a(0,"alert-list",114),_("closed",function(){u(e);let o=l(2);return m(o.toggleAlertList(!1))}),s()}if(n&2){let e=l(2);x("alerts",e.notiMgr.alerts())}}function Md(n,t){if(n&1){let e=E();a(0,"span",113)(1,"fb-alert",115),_("nextPoint",function(){u(e);let o=l(2);return m(o.course.coursePointIndex(o.course.courseData().pointIndex+1))})("routeEnd",function(){u(e);let o=l(2);return m(o.clearDestination())}),s()()}if(n&2){let e=t.$implicit,i=l(2);c(),x("audioStatus",i.audioStatus())("alert",e[1])("acknowledged",e[1].acknowledged)("silenced",e[1].silenced)("doNotPlaySound",i.app.config.display.muteSound)}}function Pd(n,t){if(n&1&&(f(0,kd,1,1,"alert-list",111),a(1,"div",112),G(2,Md,2,5,"span",113,cp),s()),n&2){let e=l();h(e.app.uiCtrl().alertList?0:-1),c(2),W(e.notiMgr.alerts())}}function Id(n,t){if(n&1){let e=E();a(0,"fb-interact-help",116),_("cancel",function(){u(e);let o=l();return m(o.closeInteraction())}),s()}}function Dd(n,t){if(n&1){let e=E();a(0,"route-nextpoint",119),_("selected",function(o){u(e);let r=l(2);return m(r.routeNextPoint(o))}),s()}if(n&2){let e=l(2);x("index",e.course.courseData().pointIndex)("total",e.course.courseData().pointTotal)("circular",e.app.data.activeRouteCircular)}}function Rd(n,t){if(n&1&&v(0,"ap-dial-text",129),n&2){let e=l(3);x("title","VMG")("value",e.app.formatSpeed(e.course.courseData().vmg,!0))("units",e.app.formattedSpeedUnits)}}function Ld(n,t){if(n&1&&v(0,"ap-dial-text",129),n&2){let e=l(3);x("title","BRG")("value",e.course.courseData().bearing.value.toFixed(1))("units",e.course.courseData().bearing.type==="M"?"deg (M)":"deg (T)")}}function Od(n,t){if(n&1&&v(0,"ap-dial-text",129),n&2){let e=l(3);x("title","XTE")("value",e.course.courseData().xte>10?e.course.courseData().xte.toFixed(1):e.course.courseData().xte.toFixed(3))("units",e.convert.getSymbol(e.app.config.units.distance))}}function Vd(n,t){if(n&1&&v(0,"ap-dial-text",132),n&2){let e=l(4);x("title","DTG")("value",e.course.courseData().route.dtg.toFixed(1))("units",e.convert.getSymbol(e.app.config.units.distance))}}function Fd(n,t){if(n&1&&v(0,"ap-dial-ttg",133),n&2){let e=l(4);x("value",e.course.courseData().route.ttg)}}function Nd(n,t){if(n&1&&v(0,"ap-dial-eta",134),n&2){let e=l(4);x("title","ETA")("value",e.course.courseData().route.eta)}}function $d(n,t){if(n&1&&(f(0,Vd,1,3,"ap-dial-text",132),f(1,Fd,1,1,"ap-dial-ttg",133),f(2,Nd,1,2,"ap-dial-eta",134)),n&2){let e=l(3);h(e.course.courseData().route.dtg?0:-1),c(),h(e.course.courseData().route.ttg?1:-1),c(),h(e.course.courseData().route.eta?2:-1)}}function Bd(n,t){if(n&1&&v(0,"ap-dial-text",129),n&2){let e=l(3);x("title","DTG")("value",e.course.courseData().dtg.toFixed(1))("units",e.convert.getSymbol(e.app.config.units.distance))}}function qd(n,t){if(n&1&&v(0,"ap-dial-ttg",130),n&2){let e=l(3);x("value",e.course.courseData().ttg)}}function zd(n,t){if(n&1&&v(0,"ap-dial-eta",131),n&2){let e=l(3);x("title","ETA")("value",e.course.courseData().eta)}}function Ud(n,t){if(n&1){let e=E();a(0,"div",118)(1,"div",120)(2,"div",121)(3,"button",122),_("click",function(){u(e);let o=l(2);return m(o.openCourseSettings())}),v(4,"mat-icon",123),s(),v(5,"br"),a(6,"button",124),_("click",function(){u(e);let o=l(2);return m(o.autopilot.engage())}),v(7,"mat-icon",125),s()(),a(8,"div")(9,"button",126),_("click",function(){u(e);let o=l(2);return m(o.course.courseRestart())}),a(10,"mat-icon"),d(11,"replay"),s()(),v(12,"br"),a(13,"button",127),_("click",function(){u(e);let o=l(2);return m(o.course.courseReverse())}),a(14,"mat-icon",128),d(15," multiple_stop "),s()()()(),f(16,Rd,1,3,"ap-dial-text",129),f(17,Ld,1,3,"ap-dial-text",129),f(18,Od,1,3,"ap-dial-text",129),f(19,$d,3,3),f(20,Bd,1,3,"ap-dial-text",129),f(21,qd,1,1,"ap-dial-ttg",130),f(22,zd,1,2,"ap-dial-eta",131),s()}if(n&2){let e=l(2);c(6),x("disabled",!e.app.featureFlags().autopilotApi||!e.app.data.vessels.self.autopilot.default),c(),x("color",e.navDataPanel().apModeColor),c(6),x("disabled",!e.app.data.activeRoute),c(),x("color",e.app.data.activeRouteReversed?"primary":"none"),c(2),h(e.course.courseData().vmg?16:-1),c(),h(e.course.courseData().bearing.value?17:-1),c(),h(e.course.courseData().xte?18:-1),c(),h(e.app.data.activeRoute?19:-1),c(),h(e.course.courseData().dtg?20:-1),c(),h(e.course.courseData().ttg?21:-1),c(),h(e.course.courseData().eta?22:-1)}}function jd(n,t){if(n&1&&(a(0,"div",30),f(1,Dd,1,3,"route-nextpoint",117),f(2,Ud,23,11,"div",118),s()),n&2){let e=l();c(),h(e.navDataPanel().nextPointCtrl?1:-1),c(),h(e.app.config.ui.showCourseData&&e.navDataPanel().show?2:-1)}}function Gd(n,t){if(n&1){let e=E();a(0,"mfb-container",135),_("radarClick",function(){u(e);let o=l();return m(o.showRadarPanel())}),s()}if(n&2){let e=l();x("action",e.app.config.display.fab)}}var vt=class n{sideright;navDataPanel=z({show:!1,nextPointCtrl:!1,apModeColor:"",apModeText:""});playbackTime=z(null);leftMenuCtrl=z({leftMenuPanel:!1,routeList:!1,waypointList:!1,chartList:!1,noteList:!1,regionList:!1,trackList:!1,aisList:!1,resourceGroups:!1,infoLayerList:!1,anchorWatch:!1,weatherList:!1});displayFullscreen=z({active:!1,enabled:document.fullscreenEnabled});features={playbackAPI:!0};mode=0;timers=[];instUrl=z(null);selFavourite=-1;vidUrl=z(null);convert=Pt;obsList=[];streamOptions={options:null,toMode:null};mapSetFocus=z("");mapCenter=z([0,0]);audioStatus=z("");isInteracting=be(()=>this.mapInteract.isMeasuring()||this.mapInteract.isDrawing()||this.mapInteract.isModifying()||this.mapInteract.isBoxSelecting());app=C(si);infoPanel=C(Ai);mapInteract=C(li);anchor=C(qi);notiMgr=C(Ni);course=C(mi);stream=C(ri);skres=C(pi);skresOther=C(di);signalk=C(ni);dom=C(pe);overlayContainer=C(Ln);bottomSheet=C(qn);dialog=C(Bn);wakeLock=C(ti);settings=C(Xi);autopilot=C(Ui);radarApi=C(ai);symbols=C(oi);routeBuffers=C(Si);plotterExt=C(j);whatsNew=C(mt);constructor(){this.app.data.vessels.active=this.app.data.vessels.self,oe(()=>{this.app.debug("** skAuthChange Event:",this.app.skAuthChange()),this.handleSKAuthChange()}),oe(()=>{this.app.debug("** kioskMode Event:",this.app.kioskMode()),this.toggleSuppressContextMenu(this.app.kioskMode())}),oe(()=>{this.handleSelectionEnded(this.mapInteract.selection())}),oe(()=>{this.app.uiConfig(),this.handleSettingChangeEvent(void 0)}),oe(()=>{this.infoPanel.opened()||this.app.instrumentPanel().activate?this.sideright?.opened||this.openDrawer():this.sideright?.opened&&this.closeDrawer()}),oe(()=>{let t=this.app.mapMoveRequest();t&&(this.app.uiConfig.update(e=>e.mapMove?cn(Oe({},e),{mapMove:!1}):e),this.centerAndZoom(t.center,t.zoom))})}ngAfterViewInit(){setTimeout(()=>{this.app.config.display.disableWakelock||this.wakeLock.enable()},500)}enableAudio(){this.app.audio.context&&this.app.audio.context.resume()}ngOnInit(){this.whatsNew.init(),this.audioStatus.update(()=>this.app.audio.context.state),this.app.debug("audio state:",this.audioStatus()),this.app.audio.context.onstatechange=()=>{this.app.debug("audio statechange:",this.app.audio.context.state),this.audioStatus.update(()=>this.app.audio.context.state)},this.mapCenter.update(()=>this.app.config.map.center),this.app.instrumentPanel.update(t=>Object.assign({},t,{activate:!this.app.config.display.plugins.startOnOpen})),this.setDarkTheme(),this.instUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(this.formatInstrumentsUrl())),this.vidUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(`${this.app.config.resources.video.url}`)),this.connectSignalKServer(),this.obsList.push(this.stream.delta$().subscribe(t=>this.onMessage(t))),this.obsList.push(this.stream.connect$().subscribe(t=>this.onConnect(t))),this.obsList.push(this.stream.close$().subscribe(t=>this.onClose(t))),this.obsList.push(this.stream.error$().subscribe(t=>this.onError(t))),this.obsList.push(this.stream.trail$().subscribe(t=>this.handleTrailUpdate(t))),this.obsList.push(this.settings.change$.subscribe(t=>this.handleSettingChangeEvent(t))),document.addEventListener("fullscreenchange",()=>{this.displayFullscreen.update(t=>Object.assign({},t,{active:!!document.fullscreenElement}))}),document.addEventListener("fullscreenerror",t=>{this.displayFullscreen.update(e=>Object.assign({},e,{active:!1}))})}ngOnDestroy(){this.stopTimers(),this.stream.terminate(),this.signalk.disconnect(),this.obsList.forEach(t=>t.unsubscribe())}getOrientation(){return this.app.uiConfig().mapNorthUp?"rotate(0deg)":"rotate("+(0-this.app.data.vessels.active.orientation)+"rad)"}showRadarPanel(){if(!this.radarApi.hasWebGL){this.radarApi.showNoWebGLMessage();return}this.app.instrumentPanel().open&&this.closeInstrumentPanel(),this.connectRadar(),this.infoPanel.openRadar(this.radarApi.radar()),this.focusMap()}connectRadar(){this.app.uiCtrl().radarLayer||this.app.uiCtrl.update(t=>Object.assign({},t,{radarLayer:!0}))}disconnectRadar(){this.app.uiCtrl().radarLayer&&this.app.uiCtrl.update(t=>Object.assign({},t,{radarLayer:!1}))}toggleMoveMap(t=!1){this.app.uiConfig.update(e=>{let i=t?!1:!e.mapMove;return Object.assign({},e,{mapMove:i})}),this.focusMap()}toggleNorthUp(){this.app.uiConfig.update(t=>Object.assign({},t,{mapNorthUp:!t.mapNorthUp})),this.focusMap()}toggleToolbarButtons(){this.app.uiConfig.update(t=>Object.assign({},t,{toolbarButtons:!t.toolbarButtons})),this.focusMap()}toggleConstrainMapZoom(){this.app.uiConfig.update(t=>Object.assign({},t,{mapConstrainZoom:!t.mapConstrainZoom})),this.skres.setMapZoomRange(),this.focusMap()}invertFeatureLabelColor(){this.app.uiConfig.update(t=>Object.assign({},t,{invertColor:!t.invertColor})),this.focusMap()}toggleAlertList(t){this.app.uiCtrl.update(e=>Object.assign({},e,{alertList:t}))}toggleAutopilotConsole(t){this.app.uiCtrl.update(e=>Object.assign({},e,{autopilotConsole:t}))}toggleRouteBuilderConsole(t){this.app.uiCtrl.update(e=>Object.assign({},e,{routeBuilder:t}))}toggleSuppressContextMenu(t){this.app.uiCtrl.update(e=>Object.assign({},e,{suppressContextMenu:t}))}toggleFullscreen(){let t=document.documentElement,e=t.requestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullscreen||t.msRequestFullscreen;e&&(document.fullscreenElement?document.exitFullscreen&&document.exitFullscreen():e.call(t),this.focusMap())}darkThemeApplied;setDarkTheme(){let t=window.matchMedia("(prefers-color-scheme: dark)"),e=this.app.config.display.darkMode.source===0&&t.matches||this.app.config.display.darkMode.source===1&&this.app.data.vessels.self.environment.mode==="night"||this.app.config.display.darkMode.source===-1;if(e===this.darkThemeApplied)return;this.darkThemeApplied=e;let i=this.overlayContainer.getContainerElement();e?i.classList.add("dark-theme"):i.classList.remove("dark-theme"),this.app.config.display.darkMode.enabled=e}formatInstrumentsUrl(){let t=`${this.app.hostDef.url}${this.app.config.display.plugins.instruments}`,e=this.app.config.display.plugins.parameters?this.app.config.display.plugins.parameters.length>0&&this.app.config.display.plugins.parameters[0]!=="?"?`?${this.app.config.display.plugins.parameters}`:this.app.config.display.plugins.parameters:"";return e?`${t}/${e}`:t}selectPlugin(t=!1){t?this.selFavourite===-1?this.selFavourite=0:this.selFavourite===this.app.config.display.plugins.favourites.length-1?this.selFavourite=-1:this.selFavourite++:this.selFavourite===-1?this.selFavourite=this.app.config.display.plugins.favourites.length-1:this.selFavourite===0?this.selFavourite=-1:this.selFavourite--;let e=this.selFavourite===-1?this.formatInstrumentsUrl():`${this.app.hostDef.url}${this.app.config.display.plugins.favourites[this.selFavourite]}`;this.instUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(e))}onInfoLayerParamChange(t){this.skresOther.infoLayerParams.update(()=>[t])}handleContextMenuSelection(t){switch(t){case"cleartrail":this.clearTrail(this.app.data.serverTrail);break;case"trail2route":this.trailToRoute();break;case"cleardestination":this.clearDestination();break;case"anchor":this.displayLeftMenu("anchorWatch",!0);break;case"weather_forecast":this.showWeather("forecast");break}}trailToRoute(){return O(this,null,function*(){let{Trail2RouteDialog:t}=yield import("./chunk-XFMBJ4SJ.js");this.dialog.open(t,{disableClose:!0,data:{trail:this.app.selfTrail()}}).afterClosed().subscribe(e=>{e.result&&this.skres.newRouteAt(e.data),this.focusMap()})})}showWeather(t){t==="forecast"&&this.bottomSheet.open(Ki,{disableClose:!0,data:{title:"Forecast",position:this.app.data.vessels.self.position,subTitle:"Location: Vessel Position"}}).afterDismissed().subscribe(()=>{this.focusMap()})}openExperiment(t){t.choice==="debugCapture"?window.isSecureContext?(navigator.clipboard.writeText(JSON.stringify({data:this.app.data,config:this.app.config})),this.app.showMessage("Debug data catpured to clipboard.")):this.app.showAlert("Feature Unavailable",`This feature is only available in a secure context!
|
|
460
|
+
e.g. https, http://localhost, http://127.0.0.1`):this.app.config.resources.paths.includes(t.choice)&&this.bottomSheet.open(Li,{disableClose:!0,data:{path:t.choice}}).afterDismissed().subscribe(()=>{this.focusMap()})}openCourseSettings(){this.bottomSheet.open(ui,{disableClose:!0,data:{title:"Course Settings"}}).afterDismissed().subscribe(()=>{this.focusMap()})}handleSKAuthChange(){this.signalk.getLoginStatus().subscribe(t=>{this.app.data.loginRequired=t.authenticationRequired??!1,this.app.isLoggedIn.update(()=>t.status==="loggedIn"),this.signalk.get("/plugins/freeboard-sk").subscribe(()=>{this.app.debug("User Authenticated"),this.app.isLoggedIn.set(!0)},e=>{e.status===401&&(this.app.debug("User NOT Authenticated"),this.app.isLoggedIn.set(!1))})})}connectSignalKServer(){this.app.data.selfId=null,this.app.data.server=null,this.signalk.proxied=this.app.config.signalk.proxied,this.signalk.connect(this.app.hostDef.name,this.app.hostDef.port,this.app.hostDef.ssl).subscribe({next:()=>{this.signalk.authToken=this.app.getFBToken(),this.app.watchSKLogin(),this.app.loadUserConfigfromServer().finally(()=>{this.loadSymbolsThenFetchResources(),this.plotterExt.init()}),this.getFeatures(),this.app.data.server=this.signalk.server.info,this.openSKStream()},error:()=>{this.app.showMessage("Unable to contact Signal K server! (Retrying in 5 secs)",!1,5e3),setTimeout(()=>this.connectSignalKServer(),5e3)}})}getFeatures(){return O(this,null,function*(){let t={anchorApi:!1,autopilotApi:!1,weatherApi:!1,radarApi:!1,notificationApi:!1,buddyList:!1,tidalApi:!1};this.signalk.get("/signalk/v2/features?enabled=1").subscribe(i=>{t.weatherApi=i.apis.includes("weather"),t.autopilotApi=i.apis.includes("autopilot"),t.radarApi=i.apis.includes("radar"),t.notificationApi=i.apis.includes("notifications");let o={charts:!1,pmTiles:!1};i.plugins.forEach(r=>{r.id==="anchoralarm"&&(this.app.debug("*** found anchoralarm plugin"),t.anchorApi=!0),r.id==="signalk-buddylist-plugin"&&(this.app.debug("*** found buddylist plugin"),t.buddyList=!!aa.satisfies(r.version,">1.2.0")),r.id==="signalk-pmtiles-plugin"&&(this.app.debug("*** found PMTiles plugin"),o.pmTiles=!0),r.id==="signalk-tidal-currents"&&(this.app.debug("*** found signalk-tidal-currents plugin"),t.tidalApi=!0)}),this.app.featureFlags.update(r=>Object.assign({},r,t))},()=>{this.app.debug("*** Features API not present!")}),this.app.fetchUnitPrefsFromSKServer();let e=yield this.skresOther.initCustomCollections();this.app.featureFlags.update(i=>Object.assign({},i,e))})}startTimers(){this.app.debug("Starting Trail logging timer..."),this.timers.push(setInterval(()=>{this.processTrail()},5e3))}stopTimers(){this.app.debug("Stopping timers:"),this.timers.forEach(t=>clearInterval(t)),this.timers=[]}processTrail(t){if(!this.app.config.vessels.trail)return;let e=this.app.selfTrail().slice(-1);if(this.app.data.vessels.showSelf){if(e.length===0){this.app.selfTrail.update(o=>{let r=[].concat(o);return r.push(this.app.data.vessels.self.position),r});return}(this.app.data.vessels.self.position[0]!==e[0][0]||this.app.data.vessels.self.position[1]!==e[0][1])&&this.app.selfTrail.update(o=>{let r=[].concat(o);return r.push(this.app.data.vessels.self.position),r})}if(!t||t.length===0)this.app.selfTrail().length%60===0&&this.app.data.serverTrail&&this.app.config.vessels.trailFromServer&&this.stream.requestTrailFromServer(),this.app.selfTrail.update(o=>o.slice(-5e3));else{let o=t.slice(-1),r=o.length!==0?o[0].slice(-1):t.length>1?t[t.length-2].slice(-1):[];this.app.selfTrail.update(()=>r)}let i=this.mode===1?"history":"self";this.app.db.saveTrail(i,this.app.selfTrail())}handleTrailUpdate(t){t.action==="get"&&t.mode==="trail"&&(this.app.config.vessels.trailFromServer&&this.app.selfTrailFromServer.update(()=>t.data),this.processTrail(t.data))}handleSettingChangeEvent(t){t?.includes("darkTheme")&&this.setDarkTheme(),t?.includes("headingAttribute")&&(this.app.debug("True / Magnetic selection changed.."),this.app.data.vessels.self.heading=this.app.useMagnetic?this.app.data.vessels.self.headingMagnetic:this.app.data.vessels.self.headingTrue,this.app.data.vessels.self.cog=this.app.useMagnetic?this.app.data.vessels.self.cogMagnetic:this.app.data.vessels.self.cogTrue,this.app.data.vessels.self.wind.direction=this.app.useMagnetic?this.app.data.vessels.self.wind.mwd:this.app.data.vessels.self.wind.twd,this.app.data.vessels.aisTargets.forEach(e=>{e.heading=this.app.useMagnetic?e.headingMagnetic:e.headingTrue,e.cog=this.app.useMagnetic?e.cogMagnetic:e.cogTrue,e.wind.direction=this.app.useMagnetic?e.wind.mwd:e.wind.twd}),this.app.sTrueMagChoice.set(this.app.config.units.headingAttribute)),(t?.includes("pluginParameters")||t?.includes("pluginInstruments")||t?.includes("pluginStartOnOpen"))&&(this.instUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(this.formatInstrumentsUrl())),this.app.instrumentPanel.update(e=>Object.assign({},e,{activate:this.app.config.display.plugins.startOnOpen?!!e.open:!0}))),t?.includes("videoUrl")&&this.vidUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(`${this.app.config.resources.video.url}`)),(t?.includes("vesselTrail")||t?.includes("trailFromServer"))&&this.app.config.vessels.trail&&(this.app.config.vessels.trailFromServer?this.stream.requestTrailFromServer():this.app.data.serverTrail=!1)}focusMap(){this.mapSetFocus.update(()=>Date().valueOf())}openDrawer(){this.sideright.open()}closeDrawer(){this.sideright.close()}openInstrumentPanel(){this.app.instrumentPanel().open||(this.infoPanel.opened()&&this.infoPanel.close(),this.app.instrumentPanel.update(t=>Object.assign({},t,{open:!0,activate:!0})))}closeInstrumentPanel(){this.app.instrumentPanel.update(t=>Object.assign({},t,{open:!1,activate:this.app.config.display.plugins.startOnOpen?!1:t.activate})),this.focusMap()}displayLeftMenu(t="",e=!1){let i={leftMenuPanel:e,routeList:!1,waypointList:!1,chartList:!1,noteList:!1,regionList:!1,trackList:!1,aisList:!1,resourceGroups:!1,infoLayerList:!1,anchorWatch:!1,weatherList:!1};switch(t){case"routeList":i.routeList=e;break;case"waypointList":i.waypointList=e;break;case"chartList":i.chartList=e;break;case"noteList":i.noteList=e;break;case"regionList":i.regionList=e;break;case"trackList":i.trackList=e;break;case"anchorWatch":i.anchorWatch=e;break;case"aisList":i.aisList=e;break;case"resourceGroups":i.resourceGroups=e;break;case"infoLayerList":i.infoLayerList=e;break;case"weatherList":i.weatherList=e;break;default:i.leftMenuPanel=!1}this.leftMenuCtrl.update(()=>i),e||this.focusMap()}handleResourceInfo(t,e){t==="notes"&&!this.app.useInfoPanel()?this.skres.noteSelected(e,!1):t==="regions"&&!this.app.useInfoPanel()?this.skres.editRegionInfo(e):t==="waypoints"&&!this.app.useInfoPanel()?this.skres.editWaypointInfo(e):t==="routes"&&!this.app.useInfoPanel()?this.skres.editRouteInfo(e):this.infoPanel.open(t,e)}onNoteMove(t){this.infoPanel.opened()&&(this.infoPanel.close(),this.closeDrawer()),this.skres.startNoteModify(t)}openAbout(){return O(this,null,function*(){let{AboutDialog:t}=yield import("./chunk-OXZNIUU4.js");this.dialog.open(t,{disableClose:!1,data:{name:this.app.name,version:this.app.version,description:this.app.description,logo:this.app.logo,url:this.app.url}}).afterClosed().subscribe(()=>this.focusMap())})}openSettings(){return O(this,null,function*(){let{SettingsDialog:t}=yield import("./chunk-5LCPVX3S.js");this.dialog.open(t,{disableClose:!0,data:{},width:"1000px",maxWidth:"96vw",height:"80vh"}).afterClosed().subscribe(()=>{this.focusMap()})})}openFeatureBrowser(){return O(this,null,function*(){this.whatsNew.markAllSeen();let{FeatureBrowserDialog:t}=yield import("./chunk-KKD4UBHB.js");this.dialog.open(t,{data:{},width:"900px",maxWidth:"96vw"}).afterClosed().subscribe(()=>{this.focusMap()})})}importFile(t){t.data.indexOf("<gpx ")!==-1?this.processGPX(t):t.data.indexOf('"type": "FeatureCollection",')!==-1?this.processGeoJSON(t):this.app.showAlert("Import","File format not supported!"),this.focusMap()}processGPX(t){return O(this,null,function*(){let{GPXImportDialog:e}=yield import("./chunk-GU2FUO6Z.js");this.dialog.open(e,{disableClose:!0,data:{fileData:t.data,fileName:t.name}}).afterClosed().subscribe(i=>{if(typeof i.errCount>"u"||i.errCount<0){this.focusMap();return}this.fetchResources(),i.errCount===0?this.app.showMsgBox("GPX Load","GPX file resources loaded successfully."):this.app.showErrorList(i.errList),this.focusMap()})})}exportToGPX(){return O(this,null,function*(){let{GPXExportDialog:t}=yield import("./chunk-EXANCIHV.js");this.dialog.open(t,{disableClose:!0,data:{routes:this.skres.routes(),tracks:[this.app.selfTrail()]}}).afterClosed().subscribe(e=>{if(e<0){this.focusMap();return}e===0?this.app.showMsgBox("GPX Save","Resources saved to GPX file successfully."):this.app.showAlert("GPX Save","Error saving resources to GPX file!"),this.focusMap()})})}processGeoJSON(t){return O(this,null,function*(){let{GeoJSONImportDialog:e}=yield import("./chunk-ECAD42KO.js");this.dialog.open(e,{disableClose:!0,data:{fileData:t.data,fileName:t.name}}).afterClosed().subscribe(i=>{i<0||(this.fetchResources(),i===0?this.app.showMsgBox("GeoJSON Load","GeoJSON features loaded successfully."):this.app.showAlert("GeoJSON Load",`Completed with errors!
|
|
461
|
+
Not all features were loaded.`),this.focusMap())})})}importResourceSet(){return O(this,null,function*(){let{ResourceImportDialog:t}=yield import("./chunk-WMIZVO63.js");this.dialog.open(t,{disableClose:!0,data:{}}).afterClosed().subscribe(e=>{if(e){try{let i=JSON.parse(e.data);this.skres.postToServer(e.path,i)}catch(i){this.app.showAlert("Load Resource",`Resources were not loaded!
|
|
462
462
|
Invalid JSON.`)}this.focusMap()}})})}showLogin(t,e=!0,i){return O(this,null,function*(){let{LoginDialog:o}=yield import("./chunk-OXZNIUU4.js");this.dialog.open(o,{disableClose:!0,data:{message:t||"Login to Signal K server."}}).afterClosed().subscribe(r=>{r.cancel?(this.app.hasAuthToken.set(!1),this.signalk.isLoggedIn().subscribe(p=>{this.app.isLoggedIn.set(p)}),i?this.showLogin(null,!1,!0):e&&this.app.showAlert("Login Cancelled:","Update operations are NOT available until you have authenticated to the Signal K server.")):this.signalk.login(r.user,r.pwd).subscribe({next:p=>{this.app.persistToken(p.token),this.app.loadUserConfigfromServer().then(g=>{g&&(this.loadSymbolsThenFetchResources(),this.plotterExt.init())}),i&&this.queryAfterConnect(),this.app.isLoggedIn.set(!0)},error:()=>{this.app.persistToken(null),this.signalk.isLoggedIn().subscribe(p=>{this.app.isLoggedIn.set(p)}),i?this.app.showConfirm("Invalid Username or Password.","Authentication Failed:","Try Again").subscribe(()=>{this.showLogin(null,!1,!0)}):this.app.showConfirm(`Invalid Username or Password.
|
|
463
463
|
Note: Choosing CLOSE may make operations requiring authentication unavailable.`,"Authentication Failed:","Try Again","Close").subscribe(p=>{p&&this.showLogin()})}}),this.focusMap()})})}showPlaybackSettings(){return O(this,null,function*(){let{PlaybackDialog:t}=yield import("./chunk-CATOWZ7J.js");this.dialog.open(t,{disableClose:!1}).afterClosed().subscribe(e=>{e.result?this.switchMode(1,e.query):this.switchMode(0),this.focusMap()})})}centerAndZoom(t,e){this.mapCenter.update(()=>t),typeof e=="number"&&(this.app.config.map.zoomLevel=e)}centerVessel(){let t=this.app.calcMapCenter();this.centerAndZoom(t)}toggleAisTargets(){this.app.config.ui.showAisTargets=!this.app.config.ui.showAisTargets,this.app.config.ui.showAisTargets&&this.stream.aisTargetUpdated(),this.app.saveConfig()}toggleCourseData(){this.app.config.ui.showCourseData=!this.app.config.ui.showCourseData,this.app.saveConfig()}toggleNotes(){this.app.config.ui.showNotes=!this.app.config.ui.showNotes,this.app.saveConfig()}clearTrail(t=!1){let e=()=>{this.app.data.serverTrail?this.app.config.vessels.trailFromServer&&this.stream.requestTrailFromServer():this.app.selfTrail.set([])};t?e():this.app.data.serverTrail||this.app.showConfirm("Clear Vessel Trail","Do you want to delete the vessel trail?").subscribe(i=>{i&&e()})}clearCourseData(){this.course.initCourseData()}clearDestination(){this.course.clearCourse()}activateRoute(t){let e=this.skres.fromCache("routes",t),i=Lt.closestForwardPoint(e[1].feature.geometry.coordinates,this.app.data.vessels.self.position,Pt.radiansToDegrees(this.app.data.vessels.self.heading));if(i===-1){this.app.showConfirm(`Closest point is behind vessel!
|
|
464
464
|
Do you want to start from the first point?`,"Start Route").subscribe(o=>{o&&this.course.activateRoute(t)});return}this.course.activateRoute(t,i)}routeNextPoint(t){this.course.coursePointIndex(t),this.focusMap()}featureProperties(t){return O(this,null,function*(){let e;if(t.type==="route")try{this.app.sIsFetching.set(!0),e=yield this.skres.fromServer("routes",t.id),this.app.sIsFetching.set(!1),e&&this.bottomSheet.open(_i,{disableClose:!0,data:{title:"Route Properties",resource:[t.id,e,!1],type:t.type}}).afterDismissed().subscribe(i=>{i&&this.clearDestination(),this.focusMap()})}catch(i){this.app.sIsFetching.set(!1),this.app.parseHttpErrorResponse(i)}else if(t.type==="aton"||t.type==="meteo"){let i,o,r;t.type==="meteo"?(e=this.app.data.meteo.get(t.id),i="Meteo Properties",o="air",r=t.type):t.id.slice(0,3)==="sar"?(e=this.app.data.sar.get(t.id),i="SaR Properties",o="tour",r="sar"):(e=this.app.data.atons.get(t.id),i="AtoN Properties",o="beenhere",r="aton"),e&&this.bottomSheet.open(wi,{disableClose:!0,data:{title:i,target:e,id:t.id,icon:o,type:r}}).afterDismissed().subscribe(()=>this.focusMap())}else if(t.type==="aircraft")e=this.app.data.aircraft.get(t.id),e&&this.bottomSheet.open(xi,{disableClose:!0,data:{title:"Aircraft Properties",target:e,id:t.id}}).afterDismissed().subscribe(()=>this.focusMap());else if(t.type==="alarm")this.notiMgr.showAlertInfo(t.id);else if(t.type==="rset")e=this.skresOther.fromResourceSetCache(t.id),e&&this.bottomSheet.open(Oi,{disableClose:!0,data:{id:t.id,item:e}}).afterDismissed().subscribe(()=>{this.focusMap()});else{let i=t.type==="self"?t.type:t.id.includes("vessels.")?t.id.split(".")[1]:t.id;try{this.app.sIsFetching.set(!0),e=yield this.skres.vesselFromServer(i),this.app.sIsFetching.set(!1),e&&this.bottomSheet.open(bi,{disableClose:!0,data:{title:"Vessel Properties",target:e}}).afterDismissed().subscribe(()=>this.focusMap())}catch(o){this.app.sIsFetching.set(!1),this.app.parseHttpErrorResponse(o)}}})}mapDragOver(t){t.preventDefault()}mapDrop(t){if(t.preventDefault(),t.dataTransfer.files)if(t.dataTransfer.files.length>1)this.app.showAlert("Load Resources",`Multiple files provided!
|