@mxtommy/kip 4.5.0-beta.1 → 4.5.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/CHANGELOG.md +18 -0
- package/README.md +11 -7
- package/package.json +21 -8
- package/plugin/duckdb-parquet-storage.service.js +1182 -0
- package/plugin/history-series.service.js +439 -0
- package/plugin/index.js +705 -30
- package/plugin/openApi.json +253 -3
- package/plugin/plugin-auth.service.js +75 -0
- package/public/assets/help-docs/chartplotter.md +5 -18
- package/public/assets/help-docs/community.md +0 -3
- package/public/assets/help-docs/configuration.md +1 -1
- package/public/assets/help-docs/contact-us.md +0 -4
- package/public/assets/help-docs/dashboards.md +20 -18
- package/public/assets/help-docs/datainspector.md +7 -5
- package/public/assets/help-docs/history-api.md +116 -0
- package/public/assets/help-docs/menu.json +18 -6
- package/public/assets/help-docs/nodered-control-flows.md +125 -0
- package/public/assets/help-docs/putcontrols.md +101 -60
- package/public/assets/help-docs/welcome.md +6 -7
- package/public/assets/help-docs/widget-historical-series.md +66 -0
- package/public/assets/help-docs/zones.md +5 -10
- package/public/chunk-A6DQJFP4.js +16 -0
- package/public/chunk-B75MT7ND.js +1 -0
- package/public/{chunk-T6TFVZVM.js → chunk-CEB42O2C.js} +1 -1
- package/public/chunk-CHGXAEKT.js +2 -0
- package/public/chunk-D7VDX7ZF.js +5 -0
- package/public/{chunk-ZQER6AIQ.js → chunk-DEGYRCMI.js} +1 -1
- package/public/{chunk-M2B5OYGO.js → chunk-DEM56G4S.js} +1 -1
- package/public/chunk-DYTBBUMI.js +4 -0
- package/public/chunk-EQ2N7KDA.js +3 -0
- package/public/chunk-FNF7M3AE.js +1 -0
- package/public/chunk-IHURI4IH.js +5 -0
- package/public/{chunk-YIYYVDFO.js → chunk-IYRLINL7.js} +2 -2
- package/public/{chunk-5FEX27I4.js → chunk-JB4YVVNW.js} +1 -1
- package/public/chunk-JGGMFMY5.js +1 -0
- package/public/chunk-KPHICV76.js +5 -0
- package/public/{chunk-QZKCRH3H.js → chunk-KZ5DUKAX.js} +1 -1
- package/public/{chunk-HMOOTAEA.js → chunk-LQDSU4WS.js} +3 -3
- package/public/{chunk-IXQ7KIFY.js → chunk-MGPPVLZ7.js} +1 -1
- package/public/{chunk-QVCLOCEC.js → chunk-R7RQHWKJ.js} +1 -1
- package/public/chunk-RONXIZ2U.js +9 -0
- package/public/chunk-S72JTJPN.js +6 -0
- package/public/{chunk-KFFAA7DL.js → chunk-VCY32MWT.js} +8 -8
- package/public/chunk-YCEXTKGG.js +1 -0
- package/public/chunk-YKJKIWXO.js +6 -0
- package/public/chunk-ZV7IYYEQ.js +50 -0
- package/public/index.html +1 -1
- package/public/main-FQESQQV6.js +1 -0
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -84
- package/.github/ISSUE_TEMPLATE/config.yml +0 -5
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -35
- package/.github/copilot-instructions.md +0 -205
- package/.github/instructions/angular.instructions.md +0 -123
- package/.github/instructions/best-practices.instructions.md +0 -59
- package/.github/instructions/project.instructions.md +0 -432
- package/.github/workflows/ci.yml +0 -37
- package/docs/widget-schematic.md +0 -102
- package/images/ActionSidenav.png +0 -0
- package/images/ChartplotterMode.png +0 -0
- package/images/KIPDemo.png +0 -0
- package/images/KipBrightness-1024.png +0 -0
- package/images/KipConfig-Units-1024.png +0 -0
- package/images/KipConfig-display-1024x488.png +0 -0
- package/images/KipFreeboard-SK-1024.png +0 -0
- package/images/KipGaugeSample1-1024x545.png +0 -0
- package/images/KipGaugeSample2-1024x488.png +0 -0
- package/images/KipGaugeSample3-1024x508.png +0 -0
- package/images/KipNightMode-1024.png +0 -0
- package/images/KipWidgetConfig-layout-1024.png +0 -0
- package/images/KipWidgetConfig-paths-1024x488.png +0 -0
- package/images/Options.png +0 -0
- package/images/exterior_user_installs.png +0 -0
- package/images/formfactor.png +0 -0
- package/public/assets/help-docs/datasets.md +0 -95
- package/public/chunk-2OB7ZJBR.js +0 -3
- package/public/chunk-6GGJZDRE.js +0 -1
- package/public/chunk-6V4GGGXE.js +0 -2
- package/public/chunk-A5BW6BUM.js +0 -1
- package/public/chunk-DGE5YFPU.js +0 -5
- package/public/chunk-G6M3Z3BY.js +0 -53
- package/public/chunk-GMGZLXY7.js +0 -4
- package/public/chunk-GUZ3BDVZ.js +0 -2
- package/public/chunk-ICDGHQFP.js +0 -6
- package/public/chunk-JCNE4QHQ.js +0 -15
- package/public/chunk-K6XYUNG4.js +0 -8
- package/public/chunk-LGCQEN7V.js +0 -4
- package/public/chunk-O3JH7UTR.js +0 -1
- package/public/chunk-Q3USFT4F.js +0 -2
- package/public/chunk-VIKU7BH7.js +0 -1
- package/public/chunk-XMQPXXLW.js +0 -8
- package/public/main-4URMGBQS.js +0 -1
- package/rm-npmjs-beta.sh +0 -50
- package/tools/schematics/collection.json +0 -9
- package/tools/schematics/create-host2-widget/files/readme/README.md.template +0 -109
- package/tools/schematics/create-host2-widget/files/spec/widget-__name@dasherize__.component.spec.ts +0 -38
- package/tools/schematics/create-host2-widget/files/widget/widget-__name@dasherize__.component.html +0 -6
- package/tools/schematics/create-host2-widget/files/widget/widget-__name@dasherize__.component.scss +0 -5
- package/tools/schematics/create-host2-widget/files/widget/widget-__name@dasherize__.component.ts.template +0 -94
- package/tools/schematics/create-host2-widget/index.js +0 -138
- package/tools/schematics/create-host2-widget/schema.json +0 -89
- package/tools/schematics/create-host2-widget/test/create-host2-widget.spec.ts +0 -70
- package/tools/schematics/create-host2-widget/utils/formatting.js +0 -119
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as Ut,Aa as Ur,B as j,Ba as xt,C as Pt,Ca as Pr,Cc as Jr,D as Er,Da as pe,E as We,Ea as _r,Fa as Ye,Fc as Xr,Ga as Pe,Hc as en,Ia as H,Ja as Ze,Jb as Yr,K as Q,Ka as jt,La as Lr,M as Qe,Ma as xr,Mc as Ft,N as Ue,Oc as et,Q as fe,Qa as jr,Sb as Zr,Sc as tn,Uc as rn,V as Ar,Va as kr,Vc as ve,W as K,Wc as nn,X as _t,Xc as me,Yc as qt,Za as $r,_a as kt,a as h,b as N,ba as Tr,bb as zr,ca as F,cb as ge,da as Ke,db as Fr,f as y,fa as q,fb as qr,g as Cr,hb as Br,i as Sr,ia as w,ib as Je,j as wr,ja as Mr,jb as Hr,jd as Bt,k as ie,kb as Vr,la as S,lb as Xe,m as O,ma as Dr,na as Nr,oa as E,pa as Y,q as U,qa as l,r as A,ra as Or,rb as Gr,s as g,t as br,ta as B,tb as Wr,u as Ot,ua as T,ub as $t,ud as on,v as Ir,vb as zt,wb as Qr,yb as Kr,z as I,za as Lt}from"./chunk-JCNE4QHQ.js";var p="primary",Be=Symbol("RouteTitle"),Qt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ae(t){return new Qt(t)}function Ht(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function gn(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let c={},u=t.slice(0,r.length);return Ht(r,u,c)?{consumed:u,posParams:c}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let s={};return!Ht(o,t.slice(0,o.length),s)||!Ht(a,t.slice(t.length-a.length),s)?null:{consumed:t,posParams:s}}function st(t){return new Promise((n,e)=>{t.pipe(K()).subscribe({next:r=>n(r),error:r=>e(r)})})}function vi(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!k(t[e],n[e]))return!1;return!0}function k(t,n){let e=t?Kt(t):void 0,r=n?Kt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!vn(t[i],n[i]))return!1;return!0}function Kt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function vn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function mi(t){return t.length>0?t[t.length-1]:null}function ue(t){return Ot(t)?t:Wr(t)?A(Promise.resolve(t)):g(t)}function mn(t){return Ot(t)?st(t):Promise.resolve(t)}var yi={exact:Rn,subset:Cn},yn={exact:Ri,subset:Ci,ignored:()=>!0};function sn(t,n,e){return yi[e.paths](t.root,n.root,e.matrixParams)&&yn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ri(t,n){return k(t,n)}function Rn(t,n,e){if(!oe(t.segments,n.segments)||!nt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Rn(t.children[r],n.children[r],e))return!1;return!0}function Ci(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>vn(t[e],n[e]))}function Cn(t,n,e){return Sn(t,n,n.segments,e)}function Sn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!oe(i,e)||n.hasChildren()||!nt(i,e,r))}else if(t.segments.length===e.length){if(!oe(t.segments,e)||!nt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Cn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!oe(t.segments,i)||!nt(t.segments,i,r)||!t.children[p]?!1:Sn(t.children[p],n,o,r)}}function nt(t,n,e){return n.every((r,i)=>yn[e](t[i].parameters,r.parameters))}var x=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){return bi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return it(this)}},Z=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ae(this.parameters),this._parameterMap}toString(){return bn(this)}};function Si(t,n){return oe(t,n)&&t.every((e,r)=>k(e.parameters,n[r].parameters))}function oe(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function wi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)))}),e}var le=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>new G,providedIn:"root"})}return t})(),G=class{parse(n){let e=new Zt(n);return new x(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${_e(n.root,!0)}`,r=Ai(n.queryParams),i=typeof n.fragment=="string"?`#${Ii(n.fragment)}`:"";return`${e}${r}${i}`}},bi=new G;function it(t){return t.segments.map(n=>bn(n)).join("/")}function _e(t,n){if(!t.hasChildren())return it(t);if(n){let e=t.children[p]?_e(t.children[p],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${_e(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=wi(t,(r,i)=>i===p?[_e(t.children[p],!1)]:[`${i}:${_e(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${it(t)}/${e[0]}`:`${it(t)}/(${e.join("//")})`}}function wn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function tt(t){return wn(t).replace(/%3B/gi,";")}function Ii(t){return encodeURI(t)}function Yt(t){return wn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ot(t){return decodeURIComponent(t)}function an(t){return ot(t.replace(/\+/g,"%20"))}function bn(t){return`${Yt(t.path)}${Ei(t.parameters)}`}function Ei(t){return Object.entries(t).map(([n,e])=>`;${Yt(n)}=${Yt(e)}`).join("")}function Ai(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${tt(e)}=${tt(i)}`).join("&"):`${tt(e)}=${tt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Ti=/^[^\/()?;#]+/;function Vt(t){let n=t.match(Ti);return n?n[0]:""}var Mi=/^[^\/()?;=#]+/;function Di(t){let n=t.match(Mi);return n?n[0]:""}var Ni=/^[^=?&#]+/;function Oi(t){let n=t.match(Ni);return n?n[0]:""}var Ui=/^[^&#]+/;function Pi(t){let n=t.match(Ui);return n?n[0]:""}var Zt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new w(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,n)),(e.length>0||Object.keys(r).length>0)&&(i[p]=new v(e,r)),i}parseSegment(){let n=Vt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(n),new Z(ot(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Di(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Vt(this.remaining);i&&(r=i,this.capture(r))}n[ot(e)]=ot(r)}parseQueryParam(n){let e=Oi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=Pi(this.remaining);a&&(r=a,this.capture(r))}let i=an(e),o=an(r);if(n.hasOwnProperty(i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o)}else n[i]=o}parseParens(n,e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Vt(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new w(4010,!1);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=p);let s=this.parseChildren(e+1);r[a??p]=Object.keys(s).length===1&&s[p]?s[p]:new v([],s),this.consumeOptional("//")}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new w(4011,!1)}};function In(t){return t.segments.length>0?new v([],{[p]:t}):t}function En(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=En(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new v(t.segments,n);return _i(e)}function _i(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new v(t.segments.concat(n.segments),n.children)}return t}function J(t){return t instanceof x}function An(t,n,e=null,r=null,i=new G){let o=Tn(t);return Mn(o,n,e,r,i)}function Tn(t){let n;function e(o){let a={};for(let c of o.children){let u=e(c);a[c.outlet]=u}let s=new v(o.url,a);return o===t&&(n=s),s}let r=e(t.root),i=In(r);return n??i}function Mn(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Gt(o,o,o,e,r,i);let a=Li(n);if(a.toRoot())return Gt(o,o,new v([],{}),e,r,i);let s=xi(a,o,t),c=s.processChildren?xe(s.segmentGroup,s.index,a.commands):Nn(s.segmentGroup,s.index,a.commands);return Gt(o,s.segmentGroup,c,e,r,i)}function at(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ke(t){return typeof t=="object"&&t!=null&&t.outlets}function cn(t,n,e){t||="\u0275";let r=new x;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Gt(t,n,e,r,i,o){let a={};for(let[u,d]of Object.entries(r??{}))a[u]=Array.isArray(d)?d.map(f=>cn(u,f,o)):cn(u,d,o);let s;t===n?s=e:s=Dn(t,n,e);let c=In(En(s));return new x(c,a,i)}function Dn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Dn(o,n,e)}),new v(t.segments,r)}var ct=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&at(r[0]))throw new w(4003,!1);let i=r.find(ke);if(i&&i!==mi(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Li(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ct(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([c,u])=>{s[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:s}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((s,c)=>{c==0&&s==="."||(c==0&&s===""?e=!0:s===".."?n++:s!=""&&i.push(s))}),i):[...i,o]},[]);return new ct(e,n,r)}var Re=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function xi(t,n,e){if(t.isAbsolute)return new Re(n,!0,0);if(!e)return new Re(n,!1,NaN);if(e.parent===null)return new Re(e,!0,0);let r=at(t.commands[0])?0:1,i=e.segments.length-1+r;return ji(e,i,t.numberOfDoubleDots)}function ji(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new w(4005,!1);i=r.segments.length}return new Re(r,!1,i-o)}function ki(t){return ke(t[0])?t[0].outlets:{[p]:t}}function Nn(t,n,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return xe(t,n,e);let r=$i(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new v(t.segments.slice(r.pathIndex),t.children),xe(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?Jt(t,n,e):r.match?xe(t,0,i):Jt(t,n,e)}function xe(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=ki(e),i={};if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=xe(t.children[p],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Nn(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a)}),new v(t.segments,i)}}function $i(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],s=e[r];if(ke(s))break;let c=`${s}`,u=r<e.length-1?e[r+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!ln(c,u,a))return o;r+=2}else{if(!ln(c,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Jt(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(ke(o)){let c=zi(o.outlets);return new v(r,c)}if(i===0&&at(e[0])){let c=t.segments[n];r.push(new Z(c.path,un(e[0]))),i++;continue}let a=ke(o)?o.outlets[p]:`${o}`,s=i<e.length-1?e[i+1]:null;a&&s&&at(s)?(r.push(new Z(a,un(s))),i+=2):(r.push(new Z(a,{})),i++)}return new v(r,{})}function zi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Jt(new v([],{}),0,r))}),n}function un(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function ln(t,n,e){return t==e.path&&k(n,e.parameters)}var Ce="imperative",C=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(C||{}),D=class{id;url;constructor(n,e){this.id=n,this.url=e}},X=class extends D{type=C.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},_=class extends D{urlAfterRedirects;type=C.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},b=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(b||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),P=class extends D{reason;code;type=C.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function On(t){return t instanceof P&&(t.code===b.Redirect||t.code===b.SupersededByNewNavigation)}var $=class extends D{reason;code;type=C.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ce=class extends D{error;target;type=C.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},be=class extends D{urlAfterRedirects;state;type=C.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ut=class extends D{urlAfterRedirects;state;type=C.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lt=class extends D{urlAfterRedirects;state;shouldActivate;type=C.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ht=class extends D{urlAfterRedirects;state;type=C.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dt=class extends D{urlAfterRedirects;state;type=C.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ft=class{route;type=C.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},pt=class{route;type=C.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},gt=class{snapshot;type=C.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vt=class{snapshot;type=C.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mt=class{snapshot;type=C.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=C.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ie=class{routerEvent;position;anchor;scrollBehavior;type=C.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ee=class{},Ae=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Fi(t){return!(t instanceof Ee)&&!(t instanceof Ae)}var Rt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new he(this.rootInjector)}},he=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Rt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(Y(B))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ct=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Xt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Xt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=er(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return er(n,this._root).map(e=>e.value)}};function Xt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Xt(t,e);if(r)return r}return null}function er(t,n){if(t===n.value)return[n];for(let e of n.children){let r=er(t,e);if(r.length)return r.unshift(n),r}return[]}var M=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ye(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var $e=class extends Ct{snapshot;constructor(n,e){super(n),this.snapshot=e,cr(this,n)}toString(){return this.snapshot.toString()}};function Un(t,n){let e=qi(t,n),r=new O([new Z("",{})]),i=new O({}),o=new O({}),a=new O({}),s=new O(""),c=new z(r,i,a,s,o,p,t,e.root);return c.snapshot=e.root,new $e(new M(c,[]),e)}function qi(t,n){let e={},r={},i={},a=new se([],e,i,"",r,p,t,null,{},n);return new ze("",new M(a,[]))}var z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,a,s,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(I(u=>u[Be]))??g(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(I(n=>ae(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(n=>ae(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function St(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i?.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&_n(i)&&(r.resolve[Be]=i.title),r}var se=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Be]}constructor(n,e,r,i,o,a,s,c,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=c,this._resolve=u,this._environmentInjector=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ae(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},ze=class extends Ct{url;constructor(n,e){super(e),this.url=n,cr(this,e)}toString(){return Pn(this._root)}};function cr(t,n){n.value._routerState=t,n.children.forEach(e=>cr(t,e))}function Pn(t){let n=t.children.length>0?` { ${t.children.map(Pn).join(", ")} } `:"";return`${t.value}${n}`}function Wt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,k(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),k(n.params,e.params)||t.paramsSubject.next(e.params),vi(n.url,e.url)||t.urlSubject.next(e.url),k(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function tr(t,n){let e=k(t.params,n.params)&&Si(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||tr(t.parent,n.parent))}function _n(t){return typeof t.title=="string"||t.title===null}var Ln=new E(""),ur=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new pe;deactivateEvents=new pe;attachEvents=new pe;detachEvents=new pe;routerOutletData=en();parentContexts=l(he);location=l(qr);changeDetector=l(Ft);inputBinder=l(He,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new rr(e,s,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Xe({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ze]})}return t})(),rr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===z?this.route:n===he?this.childContexts:n===Ln?this.outletData:this.parent.get(n,e)}},He=new E(""),lr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ut([r.queryParams,r.params,r.data]).pipe(F(([o,a,s],c)=>(s=h(h(h({},o),a),s),c===0?g(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=tn(r.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),hr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Hr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Yr(0,"router-outlet")},dependencies:[ur],encapsulation:2})}return t})();function dr(t){let n=t.children&&t.children.map(dr),e=n?N(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=hr),e}function Bi(t,n,e){let r=Fe(t,n._root,e?e._root:void 0);return new $e(r,n)}function Fe(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Hi(t,n,e);return new M(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>Fe(t,s)),a}}let r=Vi(n.value),i=n.children.map(o=>Fe(t,o));return new M(r,i)}}function Hi(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Fe(t,r,i);return Fe(t,r)})}function Vi(t){return new z(new O(t.url),new O(t.params),new O(t.queryParams),new O(t.fragment),new O(t.data),t.outlet,t.component,t)}var Te=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},xn="ngNavigationCancelingError";function wt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=J(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=jn(!1,b.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function jn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[xn]=!0,e.cancellationCode=n,e}function Gi(t){return kn(t)&&J(t.url)}function kn(t){return!!t&&t[xn]}var nr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Wt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ye(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),s=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ye(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new yt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new vt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Wt(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Wt(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,r)}},bt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Se=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Wi(t,n,e){let r=t._root,i=n?n._root:null;return Le(r,i,e,[r.value])}function Qi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function De(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Nr(t)?t:n.get(t):r}function Le(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye(n);return t.children.forEach(a=>{Ki(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>je(s,e.getContext(a),i)),i}function Ki(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let c=Yi(a,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new bt(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Le(t,n,s?s.children:null,r,i):Le(t,n,e,r,i),c&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new Se(s.outlet.component,a))}else a&&je(n,s,i),i.canActivateChecks.push(new bt(r)),o.component?Le(t,null,s?s.children:null,r,i):Le(t,null,e,r,i);return i}function Yi(t,n,e){if(typeof e=="function")return T(n._environmentInjector,()=>e(t,n));switch(e){case"pathParamsChange":return!oe(t.url,n.url);case"pathParamsOrQueryParamsChange":return!oe(t.url,n.url)||!k(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tr(t,n)||!k(t.queryParams,n.queryParams);default:return!tr(t,n)}}function je(t,n,e){let r=ye(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?je(a,n.children.getContext(o),e):je(a,null,e):je(a,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Se(n.outlet.component,i)):e.canDeactivateChecks.push(new Se(null,i)):e.canDeactivateChecks.push(new Se(null,i))}function Ve(t){return typeof t=="function"}function Zi(t){return typeof t=="boolean"}function Ji(t){return t&&Ve(t.canLoad)}function Xi(t){return t&&Ve(t.canActivate)}function eo(t){return t&&Ve(t.canActivateChild)}function to(t){return t&&Ve(t.canDeactivate)}function ro(t){return t&&Ve(t.canMatch)}function $n(t){return t instanceof Ir||t?.name==="EmptyError"}var rt=Symbol("INITIAL_VALUE");function Me(){return F(t=>Ut(t.map(n=>n.pipe(fe(1),Tr(rt)))).pipe(I(n=>{for(let e of n)if(e!==!0){if(e===rt)return rt;if(e===!1||no(e))return e}return!0}),Q(n=>n!==rt),fe(1)))}function no(t){return J(t)||t instanceof Te}function zn(t){return t.aborted?g(void 0).pipe(fe(1)):new wr(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Fn(t){return Ke(zn(t))}function io(t){return j(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?g(N(h({},n),{guardsResult:!0})):oo(o,e,r).pipe(j(a=>a&&Zi(a)?so(e,i,t):g(a)),I(a=>N(h({},n),{guardsResult:a})))})}function oo(t,n,e){return A(t).pipe(j(r=>ho(r.component,r.route,e,n)),K(r=>r!==!0,!0))}function so(t,n,e){return A(n).pipe(Ue(r=>Er(co(r.route.parent,e),ao(r.route,e),lo(t,r.path),uo(t,r.route))),K(r=>r!==!0,!0))}function ao(t,n){return t!==null&&n&&n(new mt(t)),g(!0)}function co(t,n){return t!==null&&n&&n(new gt(t)),g(!0)}function uo(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return g(!0);let r=e.map(i=>We(()=>{let o=n._environmentInjector,a=De(i,o),s=Xi(a)?a.canActivate(n,t):T(o,()=>a(n,t));return ue(s).pipe(K())}));return g(r).pipe(Me())}function lo(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Qi(o)).filter(o=>o!==null).map(o=>We(()=>{let a=o.guards.map(s=>{let c=o.node._environmentInjector,u=De(s,c),d=eo(u)?u.canActivateChild(e,t):T(c,()=>u(e,t));return ue(d).pipe(K())});return g(a).pipe(Me())}));return g(i).pipe(Me())}function ho(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(a=>{let s=n._environmentInjector,c=De(a,s),u=to(c)?c.canDeactivate(t,n,e,r):T(s,()=>c(t,n,e,r));return ue(u).pipe(K())});return g(o).pipe(Me())}function fo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return g(!0);let a=o.map(s=>{let c=De(s,t),u=Ji(c)?c.canLoad(n,e):T(t,()=>c(n,e)),d=ue(u);return i?d.pipe(Fn(i)):d});return g(a).pipe(Me(),qn(r))}function qn(t){return Sr(q(n=>{if(typeof n!="boolean")throw wt(t,n)}),I(n=>n===!0))}function po(t,n,e,r,i){let o=n.canMatch;if(!o||o.length===0)return g(!0);let a=o.map(s=>{let c=De(s,t),u=ro(c)?c.canMatch(n,e):T(t,()=>c(n,e));return ue(u).pipe(Fn(i))});return g(a).pipe(Me(),qn(r))}var V=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}},qe=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function go(t){throw new w(4e3,!1)}function vo(t){throw jn(!1,b.GuardRejected)}var ir=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){return y(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw go(`${n.redirectTo}`);i=i.children[p]}})}applyRedirectCommands(n,e,r,i,o){return y(this,null,function*(){let a=yield mo(e,i,o);if(a instanceof x)throw new qe(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new qe(s);return s})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new x(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);r[i]=e[s]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a={};return Object.entries(e.children).forEach(([s,c])=>{a[s]=this.createSegmentGroup(n,c,r,i)}),new v(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function mo(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t,{queryParams:i,fragment:o,routeConfig:a,url:s,outlet:c,params:u,data:d,title:f,paramMap:R,queryParamMap:m}=n;return st(ue(T(e,()=>r({params:u,data:d,queryParams:i,fragment:o,routeConfig:a,url:s,outlet:c,title:f,paramMap:R,queryParamMap:m}))))}function yo(t,n){return t.providers&&!t._injector&&(t._injector=Je(t.providers,n,`Route: ${t.path}`)),t._injector??n}function L(t){return t.outlet||p}function Ro(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}var or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Co(t,n,e,r,i,o){let a=Bn(t,n,e);return a.matched?(r=yo(n,r),po(r,n,e,i,o).pipe(I(s=>s===!0?a:h({},or)))):g(a)}function Bn(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},or):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||gn)(e,t,n);if(!i)return h({},or);let o={};Object.entries(i.posParams??{}).forEach(([s,c])=>{o[s]=c.path});let a=i.consumed.length>0?h(h({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function hn(t,n,e,r){return e.length>0&&bo(t,e,r)?{segmentGroup:new v(n,wo(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&Io(t,e,r)?{segmentGroup:new v(t.segments,So(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function So(t,n,e,r){let i={};for(let o of e)if(Et(t,n,o)&&!r[L(o)]){let a=new v([],{});i[L(o)]=a}return h(h({},r),i)}function wo(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&L(r)!==p){let i=new v([],{});e[L(r)]=i}return e}function bo(t,n,e){return e.some(r=>Et(t,n,r)&&L(r)!==p)}function Io(t,n,e){return e.some(r=>Et(t,n,r))}function Et(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Eo(t,n,e){return n.length===0&&!t.children[e]}var sr=class{};function Ao(t,n,e,r,i,o,a="emptyOnly",s){return y(this,null,function*(){return new ar(t,n,e,r,i,a,o,s).recognize()})}var To=31,ar=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,a,s,c){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=c,this.applyRedirects=new ir(this.urlSerializer,this.urlTree)}noMatchError(n){return new w(4002,`'${n.segmentGroup}'`)}recognize(){return y(this,null,function*(){let n=hn(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new M(r,e),o=new ze("",i),a=An(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return y(this,null,function*(){let e=new se([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,n,p,e),rootSnapshot:e}}catch(r){if(r instanceof qe)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof V?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return y(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,!0,o);return a instanceof M?[a]:[]})}processChildren(n,e,r,i){return y(this,null,function*(){let o=[];for(let c of Object.keys(r.children))c==="primary"?o.unshift(c):o.push(c);let a=[];for(let c of o){let u=r.children[c],d=Ro(e,c),f=yield this.processSegmentGroup(n,d,u,c,i);a.push(...f)}let s=Hn(a);return Mo(s),s})}processSegment(n,e,r,i,o,a,s){return y(this,null,function*(){for(let c of e)try{return yield this.processSegmentAgainstRoute(c._injector??n,e,c,r,i,o,a,s)}catch(u){if(u instanceof V||$n(u))continue;throw u}if(Eo(r,i,o))return new sr;throw new V(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,s,c){return y(this,null,function*(){if(L(r)!==a&&(a===p||!Et(i,o,r)))throw new V(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,c);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,c);throw new V(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,s){return y(this,null,function*(){let{matched:c,parameters:u,consumedSegments:d,positionalParamSegments:f,remainingSegments:R}=Bn(e,i,o);if(!c)throw new V(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>To&&(this.allowRedirects=!1));let m=new se(o,u,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,dn(i),L(i),i.component??i._loadedComponent??null,i,fn(i),n),te=St(m,s,this.paramsInheritanceStrategy);if(m.params=Object.freeze(te.params),m.data=Object.freeze(te.data),this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let re=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,f,m,n),ne=yield this.applyRedirects.lineralizeSegments(i,re);return this.processSegment(n,r,e,ne.concat(R),a,!1,s)})}matchSegmentAgainstRoute(n,e,r,i,o,a){return y(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=yield st(Co(e,r,i,n,this.urlSerializer,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new V(e);n=r._injector??n;let{routes:c}=yield this.getChildConfig(n,r,i),u=r._loadedInjector??n,{parameters:d,consumedSegments:f,remainingSegments:R}=s,m=new se(f,d,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,dn(r),L(r),r.component??r._loadedComponent??null,r,fn(r),n),te=St(m,a,this.paramsInheritanceStrategy);m.params=Object.freeze(te.params),m.data=Object.freeze(te.data);let{segmentGroup:re,slicedSegments:ne}=hn(e,f,R,c);if(ne.length===0&&re.hasChildren()){let pi=yield this.processChildren(u,c,re,m);return new M(m,pi)}if(c.length===0&&ne.length===0)return new M(m,[]);let Nt=L(r)===o,Oe=yield this.processSegment(u,c,re,ne,Nt?p:o,!0,m);return new M(m,Oe instanceof M?[Oe]:[])})}getChildConfig(n,e,r){return y(this,null,function*(){if(e.children)return{routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield st(fo(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw vo(e)}return{routes:[],injector:n}})}};function Mo(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet))}function Do(t){let n=t.value.routeConfig;return n&&n.path===""}function Hn(t){let n=[],e=new Set;for(let r of t){if(!Do(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=Hn(r.children);n.push(new M(r.value,i))}return n.filter(r=>!e.has(r))}function dn(t){return t.data||{}}function fn(t){return t.resolve||{}}function No(t,n,e,r,i,o,a){return j(s=>y(null,null,function*(){let{state:c,tree:u}=yield Ao(t,n,e,r,s.extractedUrl,i,o,a);return N(h({},s),{targetSnapshot:c,urlAfterRedirects:u})}))}function Oo(t){return j(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return g(n);let i=new Set(r.map(s=>s.route)),o=new Set;for(let s of i)if(!o.has(s))for(let c of Vn(s))o.add(c);let a=0;return A(o).pipe(Ue(s=>i.has(s)?Uo(s,e,t):(s.data=St(s,s.parent,t).resolve,g(void 0))),q(()=>a++),_t(1),j(s=>a===o.size?g(n):U))})}function Vn(t){let n=t.children.map(e=>Vn(e)).flat();return[t,...n]}function Uo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!_n(r)&&(i[Be]=r.title),We(()=>(t.data=St(t,t.parent,e).resolve,Po(i,t,n).pipe(I(o=>(t._resolvedData=o,t.data=h(h({},t.data),o),null)))))}function Po(t,n,e){let r=Kt(t);if(r.length===0)return g({});let i={};return A(r).pipe(j(o=>_o(t[o],n,e).pipe(K(),q(a=>{if(a instanceof Te)throw wt(new G,a);i[o]=a}))),_t(1),I(()=>i),Qe(o=>$n(o)?U:br(o)))}function _o(t,n,e){let r=n._environmentInjector,i=De(t,r),o=i.resolve?i.resolve(n,e):T(r,()=>i(n,e));return ue(o)}function pn(t){return F(n=>{let e=t(n);return e?A(e).pipe(I(()=>n)):g(n)})}var fr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p);return r}getResolvedTitleForRoute(e){return e.data[Be]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(Gn),providedIn:"root"})}return t})(),Gn=(()=>{class t extends fr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(Y(on))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ee=new E("",{factory:()=>({})}),de=new E(""),At=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(Jr);loadComponent(e,r){return y(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=y(this,null,function*(){try{let o=yield mn(T(e,()=>r.loadComponent())),a=yield Kn(Qn(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r)}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=y(this,null,function*(){try{let o=yield Wn(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wn(t,n,e,r){return y(this,null,function*(){let i=yield mn(T(e,()=>t.loadChildren())),o=yield Kn(Qn(i)),a;o instanceof Br||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let s,c,u=!1,d;return Array.isArray(a)?(c=a,u=!0):(s=a.create(e).injector,d=a,c=s.get(de,[],{optional:!0,self:!0}).flat()),{routes:c.map(dr),injector:s,factory:d}})}function Lo(t){return t&&typeof t=="object"&&"default"in t}function Qn(t){return Lo(t)?t.default:t}function Kn(t){return y(this,null,function*(){return t})}var Tt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(xo),providedIn:"root"})}return t})(),xo=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pr=new E(""),gr=new E("");function Yn(t,n,e){let r=t.get(gr),i=t.get(Ur);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u}),s=i.startViewTransition(()=>(o(),jo(t)));s.updateCallbackDone.catch(u=>{}),s.ready.catch(u=>{}),s.finished.catch(u=>{});let{onViewTransitionCreated:c}=r;return c&&T(t,()=>c({transition:s,from:n,to:e})),a}function jo(t){return new Promise(n=>{kt({read:()=>setTimeout(n)},{injector:t})})}var ko=()=>{},vr=new E(""),Mt=(()=>{class t{currentNavigation=Pe(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Pe(null);events=new ie;transitionAbortWithErrorSubject=new ie;configLoader=l(At);environmentInjector=l(B);destroyRef=l(xt);urlSerializer=l(le);rootContexts=l(he);location=l(me);inputBindingEnabled=l(He,{optional:!0})!==null;titleStrategy=l(fr);options=l(ee,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(Tt);createViewTransition=l(pr,{optional:!0});navigationErrorHandler=l(vr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new ft(i)),r=i=>this.events.next(new pt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;H(()=>{this.transitions?.next(N(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))})}setupNavigations(e){return this.transitions=new O(null),this.transitions.pipe(Q(r=>r!==null),F(r=>{let i=!1,o=new AbortController,a=()=>!i&&this.currentTransition?.id===r.id;return g(r).pipe(F(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),U;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:c?N(h({},c),{previousNavigation:null}):null,abort:()=>o.abort()});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&d!=="reload")return this.events.next(new $(s.id,this.urlSerializer.serialize(s.rawUrl),"",we.IgnoredSameUrlNavigation)),s.resolve(!1),U;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return g(s).pipe(F(f=>(this.events.next(new X(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?U:Promise.resolve(f))),No(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),q(f=>{r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(m=>(m.finalUrl=f.urlAfterRedirects,m));let R=new be(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(R)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:f,extractedUrl:R,source:m,restoredState:te,extras:re}=s,ne=new X(f,this.urlSerializer.serialize(R),m,te);this.events.next(ne);let Nt=Un(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=N(h({},s),{targetSnapshot:Nt,urlAfterRedirects:R,extras:N(h({},re),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Oe=>(Oe.finalUrl=R,Oe)),g(r)}else return this.events.next(new $(s.id,this.urlSerializer.serialize(s.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),s.resolve(!1),U}),I(s=>{let c=new ut(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(c),this.currentTransition=r=N(h({},s),{guards:Wi(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),io(s=>this.events.next(s)),F(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw wt(this.urlSerializer,s.guardsResult);let c=new lt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(c),!a())return U;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",b.GuardRejected),U;if(s.guards.canActivateChecks.length===0)return g(s);let u=new ht(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(u),!a())return U;let d=!1;return g(s).pipe(Oo(this.paramsInheritanceStrategy),q({next:()=>{d=!0;let f=new dt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)},complete:()=>{d||this.cancelNavigationTransition(s,"",b.NoDataFromResolver)}}))}),pn(s=>{let c=d=>{let f=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let R=d._environmentInjector;f.push(this.configLoader.loadComponent(R,d.routeConfig).then(m=>{d.component=m}))}for(let R of d.children)f.push(...c(R));return f},u=c(s.targetSnapshot.root);return u.length===0?g(s):A(Promise.all(u).then(()=>s))}),pn(()=>this.afterPreactivation()),F(()=>{let{currentSnapshot:s,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,s.root,c.root);return u?A(u).pipe(I(()=>r)):g(r)}),fe(1),I(s=>{let c=Bi(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=r=s=N(h({},s),{targetRouterState:c}),this.currentNavigation.update(u=>(u.targetRouterState=c,u)),this.events.next(new Ee),a()&&(new nr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),a()&&(i=!0,this.currentNavigation.update(u=>(u.abort=ko,u)),this.lastSuccessfulNavigation.set(H(this.currentNavigation)),this.events.next(new _(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)))}),Ke(zn(o.signal).pipe(Q(()=>!i&&!r.targetRouterState),q(()=>{this.cancelNavigationTransition(r,o.signal.reason+"",b.Aborted)}))),q({complete:()=>{i=!0}}),Ke(this.transitionAbortWithErrorSubject.pipe(q(s=>{throw s}))),Ar(()=>{o.abort(),i||this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Qe(s=>{if(i=!0,this.destroyed)return r.resolve(!1),U;if(kn(s))this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),Gi(s)?this.events.next(new Ae(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{let c=new ce(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let u=T(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof Te){let{message:d,cancellationCode:f}=wt(this.urlSerializer,u);this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),d,f)),this.events.next(new Ae(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),s}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return U}))}))}cancelNavigationTransition(e,r,i){let o=new P(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=H(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $o(t){return t!==Ce}var Zn=new E("");var Jn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(zo),providedIn:"root"})}return t})(),It=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return!0}},zo=(()=>{class t extends It{static \u0275fac=(()=>{let e;return function(i){return(e||(e=jt(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mr=(()=>{class t{urlSerializer=l(le);options=l(ee,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=l(me);urlHandlingStrategy=l(Tt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new x;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof x?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=Un(null,l(B));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(Fo),providedIn:"root"})}return t})(),Fo=(()=>{class t extends mr{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof X?this.updateStateMemento():e instanceof $?this.commitTransition(r):e instanceof be?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ee?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof P&&!On(e)?this.restoreHistory(r):e instanceof ce?this.restoreHistory(r,!0):e instanceof _&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:a}=r;if(this.location.isCurrentPathEqualTo(e)||o){let s=this.browserPageId,c=h(h({},a),this.generateNgRouterState(i,s));this.location.replaceState(e,"",c)}else{let s=h(h({},a),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=jt(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Dt(t,n){t.events.pipe(Q(e=>e instanceof _||e instanceof P||e instanceof ce||e instanceof $),I(e=>e instanceof _||e instanceof $?0:(e instanceof P?e.code===b.Redirect||e.code===b.SupersededByNewNavigation:!1)?2:1),Q(e=>e!==2),fe(1)).subscribe(()=>{n()})}var Xn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ei={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},W=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(Gr);stateManager=l(mr);options=l(ee,{optional:!0})||{};pendingTasks=l(Pr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(Mt);urlSerializer=l(le);location=l(me);urlHandlingStrategy=l(Tt);injector=l(B);_events=new ie;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(Jn);injectorCleanup=l(Zn,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(de,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(He,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Cr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=H(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof P&&r.code!==b.Redirect&&r.code!==b.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof _)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae){let a=r.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=h({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||$o(i.source)},a);this.scheduleNavigation(s,Ce,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Fi(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ce,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i)=>{this.navigateToSyncWithBrowser(e,i,r)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},a=i?.navigationId?i:null;if(i){let c=h({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let s=this.parseUrl(e);this.scheduleNavigation(s,r,a,o).catch(c=>{this.disposed||this.injector.get(Ye)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return H(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(dr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:a,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let R=i?i.snapshot:this.routerState.snapshot.root;f=Tn(R)}catch(R){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),f=this.currentUrlTree.root}return Mn(f,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let i=J(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ce,null,r)}navigate(e,r={skipLocationChange:!1}){return qo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(Mr(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=h({},Xn):r===!1?i=h({},ei):i=r,J(e))return sn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return sn(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(!1);let s,c,u;a?(s=a.resolve,c=a.reject,u=a.promise):u=new Promise((f,R)=>{s=f,c=R});let d=this.pendingTasks.add();return Dt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new w(4008,!1)}var ti=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Pe(null);get href(){return H(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ie;applicationErrorHandler=l(Ye);options=l(ee,{optional:!0});constructor(e,r,i,o,a,s){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=s,this.reactiveHref.set(l(new Xr("href"),{optional:!0}));let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement&&(this.setTabIndexIfNotOnNativeEl("0"),this.subscribeToNavigationEventsIfNecessary())}subscribeToNavigationEventsIfNecessary(){this.subscription===void 0&&(this.subscription=this.router.events.subscribe(e=>{e instanceof _&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(J(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:J(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(ge(W),ge(z),Lr("tabindex"),ge(zr),ge(xr),ge(ve))};static \u0275dir=Xe({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&Zr("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Kr("href",i.reactiveHref(),kr)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",et],skipLocationChange:[2,"skipLocationChange","skipLocationChange",et],replaceUrl:[2,"replaceUrl","replaceUrl",et],routerLink:"routerLink"},features:[Ze]})}return t})();var Ge=class{};var ri=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Q(e=>e instanceof _),Ue(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Je(o.providers,e,""));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(s,o.children??o._loadedRoutes))}return A(i).pipe(Pt())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return g(null);let i;r.loadChildren&&r.canLoad===void 0?i=A(this.loader.loadChildren(e,r)):i=g(null);let o=i.pipe(j(a=>a===null?g(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return A([o,a]).pipe(Pt())}else return o})}static \u0275fac=function(r){return new(r||t)(Y(W),Y(B),Y(Ge),Y(At))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ni=new E(""),Ho=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Ce;restoredId=0;store={};urlSerializer=l(le);zone=l(_r);viewportScroller=l(Bt);transitions=l(Mt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof X?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof _?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof $&&e.code===we.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Ie)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,r){let i=H(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>y(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new Ie(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Fr()};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();function Vo(t,...n){return Or([{provide:de,multi:!0,useValue:t},[],{provide:z,useFactory:ii},{provide:zt,multi:!0,useFactory:oi},n.map(e=>e.\u0275providers)])}function ii(){return l(W).routerState.root}function Ne(t,n){return{\u0275kind:t,\u0275providers:n}}function oi(){let t=l(Lt);return n=>{let e=t.get(Qr);if(n!==e.components[0])return;let r=t.get(W),i=t.get(si);t.get(Rr)===1&&r.initialNavigation(),t.get(ui,null,{optional:!0})?.setUpPreloading(),t.get(ni,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var si=new E("",{factory:()=>new ie}),Rr=new E("",{factory:()=>1});function ai(){let t=[{provide:jr,useValue:!0},{provide:Rr,useValue:0},$t(()=>{let n=l(Lt);return n.get(rn,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(W),o=n.get(si);Dt(i,()=>{r(!0)}),n.get(Mt).afterPreactivation=()=>(r(!0),o.closed?g(void 0):o),i.initialNavigation()}))})];return Ne(2,t)}function ci(){let t=[$t(()=>{l(W).setUpLocationChangeListener()}),{provide:Rr,useValue:2}];return Ne(3,t)}var ui=new E("");function li(t){return Ne(0,[{provide:ui,useExisting:ri},{provide:Ge,useExisting:t}])}function Go(){return Ne(6,[{provide:ve,useClass:qt}])}function hi(){return Ne(8,[lr,{provide:He,useExisting:lr}])}function di(t){$r("NgRouterViewTransitions");let n=[{provide:pr,useValue:Yn},{provide:gr,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ne(9,n)}var fi=[me,{provide:le,useClass:G},W,he,{provide:z,useFactory:ii},At,[]],Wo=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[fi,[],{provide:de,multi:!0,useValue:e},[],r?.errorHandler?{provide:vr,useValue:r.errorHandler}:[],{provide:ee,useValue:r||{}},r?.useHash?Ko():Yo(),Qo(),r?.preloadingStrategy?li(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Zo(r):[],r?.bindToComponentInputs?hi().\u0275providers:[],r?.enableViewTransitions?di().\u0275providers:[],Jo()]}}static forChild(e){return{ngModule:t,providers:[{provide:de,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Vr({type:t});static \u0275inj=Dr({})}return t})();function Qo(){return{provide:ni,useFactory:()=>{let t=l(Bt),n=l(ee);return n.scrollOffset&&t.setOffset(n.scrollOffset),new Ho(n)}}}function Ko(){return{provide:ve,useClass:qt}}function Yo(){return{provide:ve,useClass:nn}}function Zo(t){return[t.initialNavigation==="disabled"?ci().\u0275providers:[],t.initialNavigation==="enabledBlocking"?ai().\u0275providers:[]]}var yr=new E("");function Jo(){return[{provide:yr,useFactory:oi},{provide:zt,multi:!0,useExisting:yr}]}export{_ as a,ur as b,W as c,ti as d,Vo as e,Go as f,Wo as g};
|
|
1
|
+
import{$a as zr,A as Ut,Aa as xt,B as j,Ba as Pr,C as Pt,Ca as pe,Cc as Xr,D as Er,Da as _r,E as We,Ea as Ye,Ec as en,Fa as Pe,Fd as on,Gb as Yr,Ha as H,Ia as Ze,Ja as jt,Jc as Ft,K as Q,Ka as Lr,La as xr,Lc as et,M as Qe,N as Ue,Oa as jr,Oc as tn,Pb as Zr,Q as fe,Qc as rn,Rc as ve,Sc as nn,Ta as kr,Tc as me,Uc as qt,V as Ar,W as K,X as _t,Xa as $r,Ya as kt,a as h,ab as ge,b as N,ba as Tr,bb as Fr,ca as F,da as Ke,db as qr,ea as q,eb as Br,f as y,fb as Je,fd as Bt,g as Cr,gb as Hr,ha as w,hb as Vr,i as Sr,ia as Mr,ib as Xe,j as wr,k as ie,ka as S,la as Dr,m as O,ma as Nr,na as E,oa as Y,ob as Gr,pa as l,q as U,qa as Or,qb as Wr,r as A,rb as $t,s as g,sa as B,sb as zt,t as br,ta as T,tb as Qr,u as Ot,v as Ir,vb as Kr,ya as Lt,z as I,za as Ur,zc as Jr}from"./chunk-A6DQJFP4.js";var p="primary",Be=Symbol("RouteTitle"),Qt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ae(t){return new Qt(t)}function Ht(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function gn(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let c={},u=t.slice(0,r.length);return Ht(r,u,c)?{consumed:u,posParams:c}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let s={};return!Ht(o,t.slice(0,o.length),s)||!Ht(a,t.slice(t.length-a.length),s)?null:{consumed:t,posParams:s}}function st(t){return new Promise((n,e)=>{t.pipe(K()).subscribe({next:r=>n(r),error:r=>e(r)})})}function vi(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!k(t[e],n[e]))return!1;return!0}function k(t,n){let e=t?Kt(t):void 0,r=n?Kt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!vn(t[i],n[i]))return!1;return!0}function Kt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function vn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function mi(t){return t.length>0?t[t.length-1]:null}function ue(t){return Ot(t)?t:Wr(t)?A(Promise.resolve(t)):g(t)}function mn(t){return Ot(t)?st(t):Promise.resolve(t)}var yi={exact:Rn,subset:Cn},yn={exact:Ri,subset:Ci,ignored:()=>!0};function sn(t,n,e){return yi[e.paths](t.root,n.root,e.matrixParams)&&yn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ri(t,n){return k(t,n)}function Rn(t,n,e){if(!oe(t.segments,n.segments)||!nt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Rn(t.children[r],n.children[r],e))return!1;return!0}function Ci(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>vn(t[e],n[e]))}function Cn(t,n,e){return Sn(t,n,n.segments,e)}function Sn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!oe(i,e)||n.hasChildren()||!nt(i,e,r))}else if(t.segments.length===e.length){if(!oe(t.segments,e)||!nt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Cn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!oe(t.segments,i)||!nt(t.segments,i,r)||!t.children[p]?!1:Sn(t.children[p],n,o,r)}}function nt(t,n,e){return n.every((r,i)=>yn[e](t[i].parameters,r.parameters))}var x=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){return bi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return it(this)}},Z=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ae(this.parameters),this._parameterMap}toString(){return bn(this)}};function Si(t,n){return oe(t,n)&&t.every((e,r)=>k(e.parameters,n[r].parameters))}function oe(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function wi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)))}),e}var le=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>new G,providedIn:"root"})}return t})(),G=class{parse(n){let e=new Zt(n);return new x(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${_e(n.root,!0)}`,r=Ai(n.queryParams),i=typeof n.fragment=="string"?`#${Ii(n.fragment)}`:"";return`${e}${r}${i}`}},bi=new G;function it(t){return t.segments.map(n=>bn(n)).join("/")}function _e(t,n){if(!t.hasChildren())return it(t);if(n){let e=t.children[p]?_e(t.children[p],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${_e(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=wi(t,(r,i)=>i===p?[_e(t.children[p],!1)]:[`${i}:${_e(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${it(t)}/${e[0]}`:`${it(t)}/(${e.join("//")})`}}function wn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function tt(t){return wn(t).replace(/%3B/gi,";")}function Ii(t){return encodeURI(t)}function Yt(t){return wn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ot(t){return decodeURIComponent(t)}function an(t){return ot(t.replace(/\+/g,"%20"))}function bn(t){return`${Yt(t.path)}${Ei(t.parameters)}`}function Ei(t){return Object.entries(t).map(([n,e])=>`;${Yt(n)}=${Yt(e)}`).join("")}function Ai(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${tt(e)}=${tt(i)}`).join("&"):`${tt(e)}=${tt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Ti=/^[^\/()?;#]+/;function Vt(t){let n=t.match(Ti);return n?n[0]:""}var Mi=/^[^\/()?;=#]+/;function Di(t){let n=t.match(Mi);return n?n[0]:""}var Ni=/^[^=?&#]+/;function Oi(t){let n=t.match(Ni);return n?n[0]:""}var Ui=/^[^&#]+/;function Pi(t){let n=t.match(Ui);return n?n[0]:""}var Zt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new w(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,n)),(e.length>0||Object.keys(r).length>0)&&(i[p]=new v(e,r)),i}parseSegment(){let n=Vt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(n),new Z(ot(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Di(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Vt(this.remaining);i&&(r=i,this.capture(r))}n[ot(e)]=ot(r)}parseQueryParam(n){let e=Oi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=Pi(this.remaining);a&&(r=a,this.capture(r))}let i=an(e),o=an(r);if(n.hasOwnProperty(i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o)}else n[i]=o}parseParens(n,e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Vt(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new w(4010,!1);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=p);let s=this.parseChildren(e+1);r[a??p]=Object.keys(s).length===1&&s[p]?s[p]:new v([],s),this.consumeOptional("//")}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new w(4011,!1)}};function In(t){return t.segments.length>0?new v([],{[p]:t}):t}function En(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=En(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new v(t.segments,n);return _i(e)}function _i(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new v(t.segments.concat(n.segments),n.children)}return t}function J(t){return t instanceof x}function An(t,n,e=null,r=null,i=new G){let o=Tn(t);return Mn(o,n,e,r,i)}function Tn(t){let n;function e(o){let a={};for(let c of o.children){let u=e(c);a[c.outlet]=u}let s=new v(o.url,a);return o===t&&(n=s),s}let r=e(t.root),i=In(r);return n??i}function Mn(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Gt(o,o,o,e,r,i);let a=Li(n);if(a.toRoot())return Gt(o,o,new v([],{}),e,r,i);let s=xi(a,o,t),c=s.processChildren?xe(s.segmentGroup,s.index,a.commands):Nn(s.segmentGroup,s.index,a.commands);return Gt(o,s.segmentGroup,c,e,r,i)}function at(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ke(t){return typeof t=="object"&&t!=null&&t.outlets}function cn(t,n,e){t||="\u0275";let r=new x;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Gt(t,n,e,r,i,o){let a={};for(let[u,d]of Object.entries(r??{}))a[u]=Array.isArray(d)?d.map(f=>cn(u,f,o)):cn(u,d,o);let s;t===n?s=e:s=Dn(t,n,e);let c=In(En(s));return new x(c,a,i)}function Dn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Dn(o,n,e)}),new v(t.segments,r)}var ct=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&at(r[0]))throw new w(4003,!1);let i=r.find(ke);if(i&&i!==mi(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Li(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ct(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([c,u])=>{s[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:s}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((s,c)=>{c==0&&s==="."||(c==0&&s===""?e=!0:s===".."?n++:s!=""&&i.push(s))}),i):[...i,o]},[]);return new ct(e,n,r)}var Re=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function xi(t,n,e){if(t.isAbsolute)return new Re(n,!0,0);if(!e)return new Re(n,!1,NaN);if(e.parent===null)return new Re(e,!0,0);let r=at(t.commands[0])?0:1,i=e.segments.length-1+r;return ji(e,i,t.numberOfDoubleDots)}function ji(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new w(4005,!1);i=r.segments.length}return new Re(r,!1,i-o)}function ki(t){return ke(t[0])?t[0].outlets:{[p]:t}}function Nn(t,n,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return xe(t,n,e);let r=$i(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new v(t.segments.slice(r.pathIndex),t.children),xe(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?Jt(t,n,e):r.match?xe(t,0,i):Jt(t,n,e)}function xe(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=ki(e),i={};if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=xe(t.children[p],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Nn(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a)}),new v(t.segments,i)}}function $i(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],s=e[r];if(ke(s))break;let c=`${s}`,u=r<e.length-1?e[r+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!ln(c,u,a))return o;r+=2}else{if(!ln(c,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Jt(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(ke(o)){let c=zi(o.outlets);return new v(r,c)}if(i===0&&at(e[0])){let c=t.segments[n];r.push(new Z(c.path,un(e[0]))),i++;continue}let a=ke(o)?o.outlets[p]:`${o}`,s=i<e.length-1?e[i+1]:null;a&&s&&at(s)?(r.push(new Z(a,un(s))),i+=2):(r.push(new Z(a,{})),i++)}return new v(r,{})}function zi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Jt(new v([],{}),0,r))}),n}function un(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function ln(t,n,e){return t==e.path&&k(n,e.parameters)}var Ce="imperative",C=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(C||{}),D=class{id;url;constructor(n,e){this.id=n,this.url=e}},X=class extends D{type=C.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},_=class extends D{urlAfterRedirects;type=C.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},b=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(b||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),P=class extends D{reason;code;type=C.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function On(t){return t instanceof P&&(t.code===b.Redirect||t.code===b.SupersededByNewNavigation)}var $=class extends D{reason;code;type=C.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ce=class extends D{error;target;type=C.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},be=class extends D{urlAfterRedirects;state;type=C.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ut=class extends D{urlAfterRedirects;state;type=C.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lt=class extends D{urlAfterRedirects;state;shouldActivate;type=C.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ht=class extends D{urlAfterRedirects;state;type=C.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dt=class extends D{urlAfterRedirects;state;type=C.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ft=class{route;type=C.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},pt=class{route;type=C.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},gt=class{snapshot;type=C.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vt=class{snapshot;type=C.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mt=class{snapshot;type=C.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=C.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ie=class{routerEvent;position;anchor;scrollBehavior;type=C.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ee=class{},Ae=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Fi(t){return!(t instanceof Ee)&&!(t instanceof Ae)}var Rt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new he(this.rootInjector)}},he=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Rt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(Y(B))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ct=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Xt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Xt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=er(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return er(n,this._root).map(e=>e.value)}};function Xt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Xt(t,e);if(r)return r}return null}function er(t,n){if(t===n.value)return[n];for(let e of n.children){let r=er(t,e);if(r.length)return r.unshift(n),r}return[]}var M=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ye(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var $e=class extends Ct{snapshot;constructor(n,e){super(n),this.snapshot=e,cr(this,n)}toString(){return this.snapshot.toString()}};function Un(t,n){let e=qi(t,n),r=new O([new Z("",{})]),i=new O({}),o=new O({}),a=new O({}),s=new O(""),c=new z(r,i,a,s,o,p,t,e.root);return c.snapshot=e.root,new $e(new M(c,[]),e)}function qi(t,n){let e={},r={},i={},a=new se([],e,i,"",r,p,t,null,{},n);return new ze("",new M(a,[]))}var z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,a,s,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(I(u=>u[Be]))??g(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(I(n=>ae(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(n=>ae(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function St(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i?.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&_n(i)&&(r.resolve[Be]=i.title),r}var se=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Be]}constructor(n,e,r,i,o,a,s,c,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=c,this._resolve=u,this._environmentInjector=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ae(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},ze=class extends Ct{url;constructor(n,e){super(e),this.url=n,cr(this,e)}toString(){return Pn(this._root)}};function cr(t,n){n.value._routerState=t,n.children.forEach(e=>cr(t,e))}function Pn(t){let n=t.children.length>0?` { ${t.children.map(Pn).join(", ")} } `:"";return`${t.value}${n}`}function Wt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,k(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),k(n.params,e.params)||t.paramsSubject.next(e.params),vi(n.url,e.url)||t.urlSubject.next(e.url),k(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function tr(t,n){let e=k(t.params,n.params)&&Si(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||tr(t.parent,n.parent))}function _n(t){return typeof t.title=="string"||t.title===null}var Ln=new E(""),ur=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new pe;deactivateEvents=new pe;attachEvents=new pe;detachEvents=new pe;routerOutletData=en();parentContexts=l(he);location=l(qr);changeDetector=l(Ft);inputBinder=l(He,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new rr(e,s,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Xe({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ze]})}return t})(),rr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===z?this.route:n===he?this.childContexts:n===Ln?this.outletData:this.parent.get(n,e)}},He=new E(""),lr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ut([r.queryParams,r.params,r.data]).pipe(F(([o,a,s],c)=>(s=h(h(h({},o),a),s),c===0?g(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=tn(r.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),hr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Hr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Yr(0,"router-outlet")},dependencies:[ur],encapsulation:2})}return t})();function dr(t){let n=t.children&&t.children.map(dr),e=n?N(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=hr),e}function Bi(t,n,e){let r=Fe(t,n._root,e?e._root:void 0);return new $e(r,n)}function Fe(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Hi(t,n,e);return new M(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>Fe(t,s)),a}}let r=Vi(n.value),i=n.children.map(o=>Fe(t,o));return new M(r,i)}}function Hi(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Fe(t,r,i);return Fe(t,r)})}function Vi(t){return new z(new O(t.url),new O(t.params),new O(t.queryParams),new O(t.fragment),new O(t.data),t.outlet,t.component,t)}var Te=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},xn="ngNavigationCancelingError";function wt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=J(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=jn(!1,b.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function jn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[xn]=!0,e.cancellationCode=n,e}function Gi(t){return kn(t)&&J(t.url)}function kn(t){return!!t&&t[xn]}var nr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Wt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ye(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),s=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ye(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new yt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new vt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Wt(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Wt(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,r)}},bt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Se=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Wi(t,n,e){let r=t._root,i=n?n._root:null;return Le(r,i,e,[r.value])}function Qi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function De(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Nr(t)?t:n.get(t):r}function Le(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye(n);return t.children.forEach(a=>{Ki(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>je(s,e.getContext(a),i)),i}function Ki(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let c=Yi(a,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new bt(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Le(t,n,s?s.children:null,r,i):Le(t,n,e,r,i),c&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new Se(s.outlet.component,a))}else a&&je(n,s,i),i.canActivateChecks.push(new bt(r)),o.component?Le(t,null,s?s.children:null,r,i):Le(t,null,e,r,i);return i}function Yi(t,n,e){if(typeof e=="function")return T(n._environmentInjector,()=>e(t,n));switch(e){case"pathParamsChange":return!oe(t.url,n.url);case"pathParamsOrQueryParamsChange":return!oe(t.url,n.url)||!k(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tr(t,n)||!k(t.queryParams,n.queryParams);default:return!tr(t,n)}}function je(t,n,e){let r=ye(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?je(a,n.children.getContext(o),e):je(a,null,e):je(a,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Se(n.outlet.component,i)):e.canDeactivateChecks.push(new Se(null,i)):e.canDeactivateChecks.push(new Se(null,i))}function Ve(t){return typeof t=="function"}function Zi(t){return typeof t=="boolean"}function Ji(t){return t&&Ve(t.canLoad)}function Xi(t){return t&&Ve(t.canActivate)}function eo(t){return t&&Ve(t.canActivateChild)}function to(t){return t&&Ve(t.canDeactivate)}function ro(t){return t&&Ve(t.canMatch)}function $n(t){return t instanceof Ir||t?.name==="EmptyError"}var rt=Symbol("INITIAL_VALUE");function Me(){return F(t=>Ut(t.map(n=>n.pipe(fe(1),Tr(rt)))).pipe(I(n=>{for(let e of n)if(e!==!0){if(e===rt)return rt;if(e===!1||no(e))return e}return!0}),Q(n=>n!==rt),fe(1)))}function no(t){return J(t)||t instanceof Te}function zn(t){return t.aborted?g(void 0).pipe(fe(1)):new wr(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Fn(t){return Ke(zn(t))}function io(t){return j(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?g(N(h({},n),{guardsResult:!0})):oo(o,e,r).pipe(j(a=>a&&Zi(a)?so(e,i,t):g(a)),I(a=>N(h({},n),{guardsResult:a})))})}function oo(t,n,e){return A(t).pipe(j(r=>ho(r.component,r.route,e,n)),K(r=>r!==!0,!0))}function so(t,n,e){return A(n).pipe(Ue(r=>Er(co(r.route.parent,e),ao(r.route,e),lo(t,r.path),uo(t,r.route))),K(r=>r!==!0,!0))}function ao(t,n){return t!==null&&n&&n(new mt(t)),g(!0)}function co(t,n){return t!==null&&n&&n(new gt(t)),g(!0)}function uo(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return g(!0);let r=e.map(i=>We(()=>{let o=n._environmentInjector,a=De(i,o),s=Xi(a)?a.canActivate(n,t):T(o,()=>a(n,t));return ue(s).pipe(K())}));return g(r).pipe(Me())}function lo(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Qi(o)).filter(o=>o!==null).map(o=>We(()=>{let a=o.guards.map(s=>{let c=o.node._environmentInjector,u=De(s,c),d=eo(u)?u.canActivateChild(e,t):T(c,()=>u(e,t));return ue(d).pipe(K())});return g(a).pipe(Me())}));return g(i).pipe(Me())}function ho(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(a=>{let s=n._environmentInjector,c=De(a,s),u=to(c)?c.canDeactivate(t,n,e,r):T(s,()=>c(t,n,e,r));return ue(u).pipe(K())});return g(o).pipe(Me())}function fo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return g(!0);let a=o.map(s=>{let c=De(s,t),u=Ji(c)?c.canLoad(n,e):T(t,()=>c(n,e)),d=ue(u);return i?d.pipe(Fn(i)):d});return g(a).pipe(Me(),qn(r))}function qn(t){return Sr(q(n=>{if(typeof n!="boolean")throw wt(t,n)}),I(n=>n===!0))}function po(t,n,e,r,i){let o=n.canMatch;if(!o||o.length===0)return g(!0);let a=o.map(s=>{let c=De(s,t),u=ro(c)?c.canMatch(n,e):T(t,()=>c(n,e));return ue(u).pipe(Fn(i))});return g(a).pipe(Me(),qn(r))}var V=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}},qe=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function go(t){throw new w(4e3,!1)}function vo(t){throw jn(!1,b.GuardRejected)}var ir=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){return y(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw go(`${n.redirectTo}`);i=i.children[p]}})}applyRedirectCommands(n,e,r,i,o){return y(this,null,function*(){let a=yield mo(e,i,o);if(a instanceof x)throw new qe(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new qe(s);return s})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new x(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);r[i]=e[s]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a={};return Object.entries(e.children).forEach(([s,c])=>{a[s]=this.createSegmentGroup(n,c,r,i)}),new v(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function mo(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t,{queryParams:i,fragment:o,routeConfig:a,url:s,outlet:c,params:u,data:d,title:f,paramMap:R,queryParamMap:m}=n;return st(ue(T(e,()=>r({params:u,data:d,queryParams:i,fragment:o,routeConfig:a,url:s,outlet:c,title:f,paramMap:R,queryParamMap:m}))))}function yo(t,n){return t.providers&&!t._injector&&(t._injector=Je(t.providers,n,`Route: ${t.path}`)),t._injector??n}function L(t){return t.outlet||p}function Ro(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}var or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Co(t,n,e,r,i,o){let a=Bn(t,n,e);return a.matched?(r=yo(n,r),po(r,n,e,i,o).pipe(I(s=>s===!0?a:h({},or)))):g(a)}function Bn(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},or):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||gn)(e,t,n);if(!i)return h({},or);let o={};Object.entries(i.posParams??{}).forEach(([s,c])=>{o[s]=c.path});let a=i.consumed.length>0?h(h({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function hn(t,n,e,r){return e.length>0&&bo(t,e,r)?{segmentGroup:new v(n,wo(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&Io(t,e,r)?{segmentGroup:new v(t.segments,So(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function So(t,n,e,r){let i={};for(let o of e)if(Et(t,n,o)&&!r[L(o)]){let a=new v([],{});i[L(o)]=a}return h(h({},r),i)}function wo(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&L(r)!==p){let i=new v([],{});e[L(r)]=i}return e}function bo(t,n,e){return e.some(r=>Et(t,n,r)&&L(r)!==p)}function Io(t,n,e){return e.some(r=>Et(t,n,r))}function Et(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Eo(t,n,e){return n.length===0&&!t.children[e]}var sr=class{};function Ao(t,n,e,r,i,o,a="emptyOnly",s){return y(this,null,function*(){return new ar(t,n,e,r,i,a,o,s).recognize()})}var To=31,ar=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,a,s,c){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=c,this.applyRedirects=new ir(this.urlSerializer,this.urlTree)}noMatchError(n){return new w(4002,`'${n.segmentGroup}'`)}recognize(){return y(this,null,function*(){let n=hn(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new M(r,e),o=new ze("",i),a=An(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return y(this,null,function*(){let e=new se([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,n,p,e),rootSnapshot:e}}catch(r){if(r instanceof qe)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof V?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return y(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,!0,o);return a instanceof M?[a]:[]})}processChildren(n,e,r,i){return y(this,null,function*(){let o=[];for(let c of Object.keys(r.children))c==="primary"?o.unshift(c):o.push(c);let a=[];for(let c of o){let u=r.children[c],d=Ro(e,c),f=yield this.processSegmentGroup(n,d,u,c,i);a.push(...f)}let s=Hn(a);return Mo(s),s})}processSegment(n,e,r,i,o,a,s){return y(this,null,function*(){for(let c of e)try{return yield this.processSegmentAgainstRoute(c._injector??n,e,c,r,i,o,a,s)}catch(u){if(u instanceof V||$n(u))continue;throw u}if(Eo(r,i,o))return new sr;throw new V(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,s,c){return y(this,null,function*(){if(L(r)!==a&&(a===p||!Et(i,o,r)))throw new V(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,c);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,c);throw new V(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,s){return y(this,null,function*(){let{matched:c,parameters:u,consumedSegments:d,positionalParamSegments:f,remainingSegments:R}=Bn(e,i,o);if(!c)throw new V(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>To&&(this.allowRedirects=!1));let m=new se(o,u,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,dn(i),L(i),i.component??i._loadedComponent??null,i,fn(i),n),te=St(m,s,this.paramsInheritanceStrategy);if(m.params=Object.freeze(te.params),m.data=Object.freeze(te.data),this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let re=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,f,m,n),ne=yield this.applyRedirects.lineralizeSegments(i,re);return this.processSegment(n,r,e,ne.concat(R),a,!1,s)})}matchSegmentAgainstRoute(n,e,r,i,o,a){return y(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=yield st(Co(e,r,i,n,this.urlSerializer,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new V(e);n=r._injector??n;let{routes:c}=yield this.getChildConfig(n,r,i),u=r._loadedInjector??n,{parameters:d,consumedSegments:f,remainingSegments:R}=s,m=new se(f,d,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,dn(r),L(r),r.component??r._loadedComponent??null,r,fn(r),n),te=St(m,a,this.paramsInheritanceStrategy);m.params=Object.freeze(te.params),m.data=Object.freeze(te.data);let{segmentGroup:re,slicedSegments:ne}=hn(e,f,R,c);if(ne.length===0&&re.hasChildren()){let pi=yield this.processChildren(u,c,re,m);return new M(m,pi)}if(c.length===0&&ne.length===0)return new M(m,[]);let Nt=L(r)===o,Oe=yield this.processSegment(u,c,re,ne,Nt?p:o,!0,m);return new M(m,Oe instanceof M?[Oe]:[])})}getChildConfig(n,e,r){return y(this,null,function*(){if(e.children)return{routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield st(fo(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw vo(e)}return{routes:[],injector:n}})}};function Mo(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet))}function Do(t){let n=t.value.routeConfig;return n&&n.path===""}function Hn(t){let n=[],e=new Set;for(let r of t){if(!Do(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=Hn(r.children);n.push(new M(r.value,i))}return n.filter(r=>!e.has(r))}function dn(t){return t.data||{}}function fn(t){return t.resolve||{}}function No(t,n,e,r,i,o,a){return j(s=>y(null,null,function*(){let{state:c,tree:u}=yield Ao(t,n,e,r,s.extractedUrl,i,o,a);return N(h({},s),{targetSnapshot:c,urlAfterRedirects:u})}))}function Oo(t){return j(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return g(n);let i=new Set(r.map(s=>s.route)),o=new Set;for(let s of i)if(!o.has(s))for(let c of Vn(s))o.add(c);let a=0;return A(o).pipe(Ue(s=>i.has(s)?Uo(s,e,t):(s.data=St(s,s.parent,t).resolve,g(void 0))),q(()=>a++),_t(1),j(s=>a===o.size?g(n):U))})}function Vn(t){let n=t.children.map(e=>Vn(e)).flat();return[t,...n]}function Uo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!_n(r)&&(i[Be]=r.title),We(()=>(t.data=St(t,t.parent,e).resolve,Po(i,t,n).pipe(I(o=>(t._resolvedData=o,t.data=h(h({},t.data),o),null)))))}function Po(t,n,e){let r=Kt(t);if(r.length===0)return g({});let i={};return A(r).pipe(j(o=>_o(t[o],n,e).pipe(K(),q(a=>{if(a instanceof Te)throw wt(new G,a);i[o]=a}))),_t(1),I(()=>i),Qe(o=>$n(o)?U:br(o)))}function _o(t,n,e){let r=n._environmentInjector,i=De(t,r),o=i.resolve?i.resolve(n,e):T(r,()=>i(n,e));return ue(o)}function pn(t){return F(n=>{let e=t(n);return e?A(e).pipe(I(()=>n)):g(n)})}var fr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p);return r}getResolvedTitleForRoute(e){return e.data[Be]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(Gn),providedIn:"root"})}return t})(),Gn=(()=>{class t extends fr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(Y(on))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ee=new E("",{factory:()=>({})}),de=new E(""),At=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(Jr);loadComponent(e,r){return y(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=y(this,null,function*(){try{let o=yield mn(T(e,()=>r.loadComponent())),a=yield Kn(Qn(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r)}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=y(this,null,function*(){try{let o=yield Wn(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wn(t,n,e,r){return y(this,null,function*(){let i=yield mn(T(e,()=>t.loadChildren())),o=yield Kn(Qn(i)),a;o instanceof Br||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let s,c,u=!1,d;return Array.isArray(a)?(c=a,u=!0):(s=a.create(e).injector,d=a,c=s.get(de,[],{optional:!0,self:!0}).flat()),{routes:c.map(dr),injector:s,factory:d}})}function Lo(t){return t&&typeof t=="object"&&"default"in t}function Qn(t){return Lo(t)?t.default:t}function Kn(t){return y(this,null,function*(){return t})}var Tt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(xo),providedIn:"root"})}return t})(),xo=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pr=new E(""),gr=new E("");function Yn(t,n,e){let r=t.get(gr),i=t.get(Ur);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u}),s=i.startViewTransition(()=>(o(),jo(t)));s.updateCallbackDone.catch(u=>{}),s.ready.catch(u=>{}),s.finished.catch(u=>{});let{onViewTransitionCreated:c}=r;return c&&T(t,()=>c({transition:s,from:n,to:e})),a}function jo(t){return new Promise(n=>{kt({read:()=>setTimeout(n)},{injector:t})})}var ko=()=>{},vr=new E(""),Mt=(()=>{class t{currentNavigation=Pe(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Pe(null);events=new ie;transitionAbortWithErrorSubject=new ie;configLoader=l(At);environmentInjector=l(B);destroyRef=l(xt);urlSerializer=l(le);rootContexts=l(he);location=l(me);inputBindingEnabled=l(He,{optional:!0})!==null;titleStrategy=l(fr);options=l(ee,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(Tt);createViewTransition=l(pr,{optional:!0});navigationErrorHandler=l(vr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new ft(i)),r=i=>this.events.next(new pt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;H(()=>{this.transitions?.next(N(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))})}setupNavigations(e){return this.transitions=new O(null),this.transitions.pipe(Q(r=>r!==null),F(r=>{let i=!1,o=new AbortController,a=()=>!i&&this.currentTransition?.id===r.id;return g(r).pipe(F(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),U;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:c?N(h({},c),{previousNavigation:null}):null,abort:()=>o.abort()});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&d!=="reload")return this.events.next(new $(s.id,this.urlSerializer.serialize(s.rawUrl),"",we.IgnoredSameUrlNavigation)),s.resolve(!1),U;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return g(s).pipe(F(f=>(this.events.next(new X(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?U:Promise.resolve(f))),No(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),q(f=>{r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(m=>(m.finalUrl=f.urlAfterRedirects,m));let R=new be(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(R)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:f,extractedUrl:R,source:m,restoredState:te,extras:re}=s,ne=new X(f,this.urlSerializer.serialize(R),m,te);this.events.next(ne);let Nt=Un(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=N(h({},s),{targetSnapshot:Nt,urlAfterRedirects:R,extras:N(h({},re),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Oe=>(Oe.finalUrl=R,Oe)),g(r)}else return this.events.next(new $(s.id,this.urlSerializer.serialize(s.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),s.resolve(!1),U}),I(s=>{let c=new ut(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(c),this.currentTransition=r=N(h({},s),{guards:Wi(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),io(s=>this.events.next(s)),F(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw wt(this.urlSerializer,s.guardsResult);let c=new lt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(c),!a())return U;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",b.GuardRejected),U;if(s.guards.canActivateChecks.length===0)return g(s);let u=new ht(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(u),!a())return U;let d=!1;return g(s).pipe(Oo(this.paramsInheritanceStrategy),q({next:()=>{d=!0;let f=new dt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)},complete:()=>{d||this.cancelNavigationTransition(s,"",b.NoDataFromResolver)}}))}),pn(s=>{let c=d=>{let f=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let R=d._environmentInjector;f.push(this.configLoader.loadComponent(R,d.routeConfig).then(m=>{d.component=m}))}for(let R of d.children)f.push(...c(R));return f},u=c(s.targetSnapshot.root);return u.length===0?g(s):A(Promise.all(u).then(()=>s))}),pn(()=>this.afterPreactivation()),F(()=>{let{currentSnapshot:s,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,s.root,c.root);return u?A(u).pipe(I(()=>r)):g(r)}),fe(1),I(s=>{let c=Bi(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=r=s=N(h({},s),{targetRouterState:c}),this.currentNavigation.update(u=>(u.targetRouterState=c,u)),this.events.next(new Ee),a()&&(new nr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),a()&&(i=!0,this.currentNavigation.update(u=>(u.abort=ko,u)),this.lastSuccessfulNavigation.set(H(this.currentNavigation)),this.events.next(new _(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)))}),Ke(zn(o.signal).pipe(Q(()=>!i&&!r.targetRouterState),q(()=>{this.cancelNavigationTransition(r,o.signal.reason+"",b.Aborted)}))),q({complete:()=>{i=!0}}),Ke(this.transitionAbortWithErrorSubject.pipe(q(s=>{throw s}))),Ar(()=>{o.abort(),i||this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Qe(s=>{if(i=!0,this.destroyed)return r.resolve(!1),U;if(kn(s))this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),Gi(s)?this.events.next(new Ae(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{let c=new ce(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let u=T(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof Te){let{message:d,cancellationCode:f}=wt(this.urlSerializer,u);this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),d,f)),this.events.next(new Ae(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),s}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return U}))}))}cancelNavigationTransition(e,r,i){let o=new P(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=H(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $o(t){return t!==Ce}var Zn=new E("");var Jn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(zo),providedIn:"root"})}return t})(),It=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return!0}},zo=(()=>{class t extends It{static \u0275fac=(()=>{let e;return function(i){return(e||(e=jt(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mr=(()=>{class t{urlSerializer=l(le);options=l(ee,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=l(me);urlHandlingStrategy=l(Tt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new x;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof x?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=Un(null,l(B));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(Fo),providedIn:"root"})}return t})(),Fo=(()=>{class t extends mr{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof X?this.updateStateMemento():e instanceof $?this.commitTransition(r):e instanceof be?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ee?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof P&&!On(e)?this.restoreHistory(r):e instanceof ce?this.restoreHistory(r,!0):e instanceof _&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:a}=r;if(this.location.isCurrentPathEqualTo(e)||o){let s=this.browserPageId,c=h(h({},a),this.generateNgRouterState(i,s));this.location.replaceState(e,"",c)}else{let s=h(h({},a),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=jt(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Dt(t,n){t.events.pipe(Q(e=>e instanceof _||e instanceof P||e instanceof ce||e instanceof $),I(e=>e instanceof _||e instanceof $?0:(e instanceof P?e.code===b.Redirect||e.code===b.SupersededByNewNavigation:!1)?2:1),Q(e=>e!==2),fe(1)).subscribe(()=>{n()})}var Xn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ei={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},W=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(Gr);stateManager=l(mr);options=l(ee,{optional:!0})||{};pendingTasks=l(Pr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(Mt);urlSerializer=l(le);location=l(me);urlHandlingStrategy=l(Tt);injector=l(B);_events=new ie;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(Jn);injectorCleanup=l(Zn,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(de,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(He,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Cr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=H(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof P&&r.code!==b.Redirect&&r.code!==b.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof _)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae){let a=r.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=h({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||$o(i.source)},a);this.scheduleNavigation(s,Ce,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Fi(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ce,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i)=>{this.navigateToSyncWithBrowser(e,i,r)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},a=i?.navigationId?i:null;if(i){let c=h({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let s=this.parseUrl(e);this.scheduleNavigation(s,r,a,o).catch(c=>{this.disposed||this.injector.get(Ye)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return H(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(dr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:a,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let R=i?i.snapshot:this.routerState.snapshot.root;f=Tn(R)}catch(R){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),f=this.currentUrlTree.root}return Mn(f,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let i=J(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ce,null,r)}navigate(e,r={skipLocationChange:!1}){return qo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(Mr(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=h({},Xn):r===!1?i=h({},ei):i=r,J(e))return sn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return sn(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(!1);let s,c,u;a?(s=a.resolve,c=a.reject,u=a.promise):u=new Promise((f,R)=>{s=f,c=R});let d=this.pendingTasks.add();return Dt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new w(4008,!1)}var ti=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Pe(null);get href(){return H(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ie;applicationErrorHandler=l(Ye);options=l(ee,{optional:!0});constructor(e,r,i,o,a,s){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=s,this.reactiveHref.set(l(new Xr("href"),{optional:!0}));let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement&&(this.setTabIndexIfNotOnNativeEl("0"),this.subscribeToNavigationEventsIfNecessary())}subscribeToNavigationEventsIfNecessary(){this.subscription===void 0&&(this.subscription=this.router.events.subscribe(e=>{e instanceof _&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(J(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:J(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(ge(W),ge(z),Lr("tabindex"),ge(zr),ge(xr),ge(ve))};static \u0275dir=Xe({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&Zr("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Kr("href",i.reactiveHref(),kr)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",et],skipLocationChange:[2,"skipLocationChange","skipLocationChange",et],replaceUrl:[2,"replaceUrl","replaceUrl",et],routerLink:"routerLink"},features:[Ze]})}return t})();var Ge=class{};var ri=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Q(e=>e instanceof _),Ue(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Je(o.providers,e,""));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(s,o.children??o._loadedRoutes))}return A(i).pipe(Pt())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return g(null);let i;r.loadChildren&&r.canLoad===void 0?i=A(this.loader.loadChildren(e,r)):i=g(null);let o=i.pipe(j(a=>a===null?g(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return A([o,a]).pipe(Pt())}else return o})}static \u0275fac=function(r){return new(r||t)(Y(W),Y(B),Y(Ge),Y(At))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ni=new E(""),Ho=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Ce;restoredId=0;store={};urlSerializer=l(le);zone=l(_r);viewportScroller=l(Bt);transitions=l(Mt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof X?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof _?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof $&&e.code===we.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Ie)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,r){let i=H(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>y(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new Ie(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Fr()};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();function Vo(t,...n){return Or([{provide:de,multi:!0,useValue:t},[],{provide:z,useFactory:ii},{provide:zt,multi:!0,useFactory:oi},n.map(e=>e.\u0275providers)])}function ii(){return l(W).routerState.root}function Ne(t,n){return{\u0275kind:t,\u0275providers:n}}function oi(){let t=l(Lt);return n=>{let e=t.get(Qr);if(n!==e.components[0])return;let r=t.get(W),i=t.get(si);t.get(Rr)===1&&r.initialNavigation(),t.get(ui,null,{optional:!0})?.setUpPreloading(),t.get(ni,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var si=new E("",{factory:()=>new ie}),Rr=new E("",{factory:()=>1});function ai(){let t=[{provide:jr,useValue:!0},{provide:Rr,useValue:0},$t(()=>{let n=l(Lt);return n.get(rn,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(W),o=n.get(si);Dt(i,()=>{r(!0)}),n.get(Mt).afterPreactivation=()=>(r(!0),o.closed?g(void 0):o),i.initialNavigation()}))})];return Ne(2,t)}function ci(){let t=[$t(()=>{l(W).setUpLocationChangeListener()}),{provide:Rr,useValue:2}];return Ne(3,t)}var ui=new E("");function li(t){return Ne(0,[{provide:ui,useExisting:ri},{provide:Ge,useExisting:t}])}function Go(){return Ne(6,[{provide:ve,useClass:qt}])}function hi(){return Ne(8,[lr,{provide:He,useExisting:lr}])}function di(t){$r("NgRouterViewTransitions");let n=[{provide:pr,useValue:Yn},{provide:gr,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ne(9,n)}var fi=[me,{provide:le,useClass:G},W,he,{provide:z,useFactory:ii},At,[]],Wo=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[fi,[],{provide:de,multi:!0,useValue:e},[],r?.errorHandler?{provide:vr,useValue:r.errorHandler}:[],{provide:ee,useValue:r||{}},r?.useHash?Ko():Yo(),Qo(),r?.preloadingStrategy?li(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Zo(r):[],r?.bindToComponentInputs?hi().\u0275providers:[],r?.enableViewTransitions?di().\u0275providers:[],Jo()]}}static forChild(e){return{ngModule:t,providers:[{provide:de,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Vr({type:t});static \u0275inj=Dr({})}return t})();function Qo(){return{provide:ni,useFactory:()=>{let t=l(Bt),n=l(ee);return n.scrollOffset&&t.setOffset(n.scrollOffset),new Ho(n)}}}function Ko(){return{provide:ve,useClass:qt}}function Yo(){return{provide:ve,useClass:nn}}function Zo(t){return[t.initialNavigation==="disabled"?ci().\u0275providers:[],t.initialNavigation==="enabledBlocking"?ai().\u0275providers:[]]}var yr=new E("");function Jo(){return[{provide:yr,useFactory:oi},{provide:zt,multi:!0,useExisting:yr}]}export{X as a,_ as b,z as c,ur as d,W as e,ti as f,Vo as g,Go as h,Wo as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as B}from"./chunk-EQ2N7KDA.js";import{b as U,j as q}from"./chunk-ZV7IYYEQ.js";import"./chunk-RONXIZ2U.js";import"./chunk-S72JTJPN.js";import"./chunk-CHGXAEKT.js";import"./chunk-DYTBBUMI.js";import"./chunk-KPHICV76.js";import"./chunk-JB4YVVNW.js";import"./chunk-CEB42O2C.js";import"./chunk-D7VDX7ZF.js";import{m as F}from"./chunk-IHURI4IH.js";import{Ac as u,Da as x,Db as w,Eb as s,Fa as r,Fb as c,Fc as D,Ga as l,Gb as h,Nb as y,Pb as O,Pe as S,Rb as g,Re as V,Se as Z,Vd as I,Wa as d,Wc as T,Zb as z,_b as E,ac as m,bc as R,dd as N,gb as W,ie as X,je as L,pa as a,ua as v,uc as k,va as C,vd as A,xb as b,yb as P}from"./chunk-A6DQJFP4.js";var G=["panel"],Q=(i,f)=>[i,f];function j(i,f){if(i&1&&h(0,"div",7),i&2){let t=g();m("transform",t.ghostTransform())}}function H(i,f){if(i&1){let t=y();s(0,"div",8),O("pointerdown",function(e){v(t);let o=g();return C(o.startResize(e))}),s(1,"button",9),O("pointerdown",function(e){v(t);let o=g();return C(o.startResize(e))}),h(2,"mat-icon",10),c()()}}var ct=(()=>{class i{panelEl=D.required("panel");_settings=a(F);_dashboard=a(U);breakpointObserver=a(A);ngZone=a(x);side=r(this._settings.getSplitShellSide());panelRatio=r(this._settings.getSplitShellWidth());originalPanelRatio=null;panelWidth=r(0);panelCollapsed=u(()=>!!this._dashboard.dashboards()[this._dashboard.activeDashboard()]?.collapseSplitShell);fskShellSwipeDisabled=S(this._settings.getSplitShellSwipeDisabledAsO());handset$=this.breakpointObserver.observe(I.HandsetPortrait);handset=S(this.handset$,{initialValue:{matches:!1,breakpoints:{}}});freeboardWidgetStub={uuid:"persistent-freeboard-shell",type:"widget-freeboardsk",config:{}};chartplotterModeInPortrait=u(()=>this.handset().matches&&!this.panelCollapsed());canResize=u(()=>!this._dashboard.isDashboardStatic()&&!this.panelCollapsed());resizing=!1;startX=0;startW=0;boundMove=t=>this.onMove(t);boundUp=()=>this.onUp();static MIN_DELTA_PX=1;ghostActive=r(!1);ghostTransform=r("");ghostWidth=0;recomputeWidth=()=>{let t=this.panelEl()?.nativeElement.parentElement;if(!t)return;let n=t.clientWidth;this.panelWidth.set(Math.round(n*this.panelRatio()))};constructor(){window.addEventListener("resize",this.recomputeWidth,{passive:!0}),queueMicrotask(this.recomputeWidth),l(()=>{this.chartplotterModeInPortrait(),this.panelRatio(),this.recomputeWidth(),setTimeout(()=>window.dispatchEvent(new Event("resize")),0)}),l(()=>{let t=this._dashboard.isDashboardStatic();t||this.originalPanelRatio===null&&(this.originalPanelRatio=this.panelRatio()),t&&this.originalPanelRatio}),l(()=>{if(this._dashboard.layoutEditSaved(),this.originalPanelRatio!==null){let t=this.panelRatio();this._settings.setSplitShellWidth(t),this.originalPanelRatio=null}}),l(()=>{if(this._dashboard.layoutEditCanceled(),this.originalPanelRatio!==null){let t=this.originalPanelRatio;this.panelRatio.set(t),queueMicrotask(()=>this.recomputeWidth()),this.originalPanelRatio=null}})}startResize(t){this.canResize()&&(this.resizing=!0,this.startX=t.clientX,this.startW=this.panelWidth(),this.ghostWidth=this.startW,this.ghostActive.set(!0),this.updateGhostTransform(this.startW),t.target.setPointerCapture(t.pointerId),this.ngZone.runOutsideAngular(()=>{window.addEventListener("pointermove",this.boundMove,{passive:!0}),window.addEventListener("pointerup",this.boundUp,{passive:!0})}))}onMove(t){if(!this.resizing)return;let n=this.side()==="left"?t.clientX-this.startX:this.startX-t.clientX,o=this.panelEl()?.nativeElement.parentElement?.clientWidth??1,p=this.startW+n,_=o*.1,$=o*.9,M=Math.min($,Math.max(_,p));Math.abs(M-this.ghostWidth)<i.MIN_DELTA_PX||(this.ghostWidth=M,this.ngZone.runOutsideAngular(()=>this.updateGhostTransform(M)))}onUp(){if(!this.resizing)return;this.resizing=!1,window.removeEventListener("pointermove",this.boundMove),window.removeEventListener("pointerup",this.boundUp);let t=this.ghostWidth;this.ghostActive.set(!1);let n=this.panelEl();n&&!this.panelCollapsed()&&(n.nativeElement.style.width=t+"px"),this.ngZone.run(()=>{this.panelWidth.set(t);let o=this.panelEl()?.nativeElement.parentElement?.clientWidth??t,p=o?t/o:.3,_=this.panelRatio();Math.abs(p-_)>5e-4&&this.panelRatio.set(p)})}updateGhostTransform(t){this.side()==="left"?this.ghostTransform.set(`translateX(${t}px)`):this.ghostTransform.set(`translateX(-${t}px)`)}ngOnDestroy(){window.removeEventListener("resize",this.recomputeWidth),this.resizing&&(window.removeEventListener("pointermove",this.boundMove),window.removeEventListener("pointerup",this.boundUp))}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=W({type:i,selectors:[["split-shell"]],viewQuery:function(n,e){n&1&&z(e.panelEl,G,5),n&2&&E()},decls:8,vars:18,consts:[["panel",""],[1,"split-root",3,"ngClass"],[1,"resize-ghost",3,"transform"],[1,"fsk-shell"],["role","separator","aria-label","Resize Freeboard chartplotter panel","aria-orientation","vertical",1,"drag-handle"],[1,"fsk-iframe",3,"type","id","swipeDisabled","disableWidgetShell"],[1,"dash-container"],[1,"resize-ghost"],["role","separator","aria-label","Resize Freeboard chartplotter panel","aria-orientation","vertical",1,"drag-handle",3,"pointerdown"],["mat-mini-fab","","tabindex","-1","aria-hidden","true",1,"drag-fab",3,"pointerdown"],["fontIcon","drag_indicator"]],template:function(n,e){n&1&&(s(0,"div",1),b(1,j,1,2,"div",2),s(2,"div",3,0),b(4,H,3,0,"div",4),h(5,"widget-freeboardsk",5),c(),s(6,"div",6),h(7,"dashboard"),c()()),n&2&&(m("--panel-ratio",e.panelRatio()),w("ngClass",k(15,Q,e.side()==="left"?"side-left":"side-right",e.chartplotterModeInPortrait()?"portrait-column":"")),d(),P(e.ghostActive()?1:-1),d(),m("width",e.chartplotterModeInPortrait()?null:e.panelWidth(),"px"),R("collapsed",e.panelCollapsed())("drag-disabled",!e.canResize()),d(2),P(e.canResize()?4:-1),d(),w("type",e.freeboardWidgetStub.type)("id",e.freeboardWidgetStub.uuid)("swipeDisabled",e.fskShellSwipeDisabled())("disableWidgetShell",!0))},dependencies:[N,T,q,B,L,X,Z,V],styles:[".split-root[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;display:flex;overflow:hidden}.split-root.side-left[_ngcontent-%COMP%]{flex-direction:row}.split-root.side-right[_ngcontent-%COMP%]{flex-direction:row-reverse}.split-root.portrait-column[_ngcontent-%COMP%]{flex-direction:column}.split-root.portrait-column[_ngcontent-%COMP%] .fsk-shell[_ngcontent-%COMP%], .split-root.portrait-column[_ngcontent-%COMP%] .dash-container[_ngcontent-%COMP%]{width:100%!important;min-height:0}.split-root.portrait-column[_ngcontent-%COMP%] .fsk-shell[_ngcontent-%COMP%]{flex:0 0 calc(var(--panel-ratio, .3) * 100%)}.split-root.portrait-column[_ngcontent-%COMP%] .dash-container[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow:hidden}.split-root.side-left.portrait-column[_ngcontent-%COMP%] .dash-container[_ngcontent-%COMP%]{order:2}.split-root.side-left.portrait-column[_ngcontent-%COMP%] .fsk-shell[_ngcontent-%COMP%]{order:1}.split-root.side-right.portrait-column[_ngcontent-%COMP%] .fsk-shell[_ngcontent-%COMP%]{order:2}.split-root.side-right.portrait-column[_ngcontent-%COMP%] .dash-container[_ngcontent-%COMP%]{order:1}.split-root.portrait-column[_ngcontent-%COMP%] .fsk-shell.collapsed[_ngcontent-%COMP%]{flex:0 0 0!important}.split-root.portrait-column[_ngcontent-%COMP%] .drag-handle[_ngcontent-%COMP%], .split-root.portrait-column[_ngcontent-%COMP%] .resize-ghost[_ngcontent-%COMP%]{display:none}.fsk-shell[_ngcontent-%COMP%]{position:relative;height:100%;display:flex;flex-direction:column;background:var(--mat-sys-surface-container, #111);transition:width .2s ease}.fsk-shell.collapsed[_ngcontent-%COMP%]{width:1px!important;visibility:hidden;opacity:0;pointer-events:none}.fsk-iframe[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.dash-container[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;height:100%}.drag-handle[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:3px;cursor:col-resize;background:var(--mat-sys-inverse-primary);z-index:5}.drag-handle[_ngcontent-%COMP%] .drag-fab[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:28px;height:28px;min-width:28px;cursor:col-resize;pointer-events:auto}.drag-handle[_ngcontent-%COMP%] .drag-fab[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;line-height:20px}.side-left[_ngcontent-%COMP%] .drag-handle[_ngcontent-%COMP%]{right:-2px}.side-right[_ngcontent-%COMP%] .drag-handle[_ngcontent-%COMP%]{left:-2px}.drag-handle[_ngcontent-%COMP%]:hover{background:var(--mat-sys-error-container)}.side-left[_ngcontent-%COMP%] .collapse-toggle[_ngcontent-%COMP%]{left:.25rem}.side-right[_ngcontent-%COMP%] .collapse-toggle[_ngcontent-%COMP%]{right:.25rem}.fsk-shell.drag-disabled[_ngcontent-%COMP%] .drag-handle[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.4}.resize-ghost[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:2px;background:var(--mat-sys-error-container);opacity:.9;pointer-events:none;z-index:30;will-change:transform;transition:none}.side-left[_ngcontent-%COMP%] .resize-ghost[_ngcontent-%COMP%]{left:0}.side-right[_ngcontent-%COMP%] .resize-ghost[_ngcontent-%COMP%]{right:0}"]})}return i})();export{ct as SplitShellComponent};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{d as O,f as Re,g as v,h as Ae,i as We,k as Ie}from"./chunk-IHURI4IH.js";import{A as de,Aa as R,Ca as ue,Da as fe,Db as N,Eb as H,Fa as ge,Fb as Y,G as he,Gb as F,Hb as ke,I as pe,Ib as Se,Jc as Ee,K as me,La as be,Lc as Q,Nd as Z,Ob as q,Od as Ce,Oe as u,Pb as ve,Rb as P,Sb as C,Tb as k,Vb as ye,Wa as T,Wb as xe,Xb as De,Xd as Oe,ae as J,bc as S,be as $e,ec as G,ee as U,fe as X,g as oe,gb as _,gc as K,h as ne,hb as A,j as w,k as d,ka as E,l as re,la as $,m as b,n as M,na as L,pa as p,pb as _e,rd as Te,s as ce,sc as Me,sd as we,te as V,vb as z,xb as W,yb as I,z as le}from"./chunk-A6DQJFP4.js";var ze={url:"",deserializer:a=>JSON.parse(a.data),serializer:a=>JSON.stringify(a)},He="WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }",j=class a extends re{constructor(o,e){if(super(),this._socket=null,o instanceof w)this.destination=e,this.source=o;else{let t=this._config=Object.assign({},ze);if(this._output=new d,typeof o=="string")t.url=o;else for(let i in o)o.hasOwnProperty(i)&&(t[i]=o[i]);if(!t.WebSocketCtor&&WebSocket)t.WebSocketCtor=WebSocket;else if(!t.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new M}}lift(o){let e=new a(this._config,this.destination);return e.operator=o,e.source=this,e}_resetState(){this._socket=null,this.source||(this.destination=new M),this._output=new d}multiplex(o,e,t){let i=this;return new w(s=>{try{i.next(o())}catch(r){s.error(r)}let n=i.subscribe({next:r=>{try{t(r)&&s.next(r)}catch(c){s.error(c)}},error:r=>s.error(r),complete:()=>s.complete()});return()=>{try{i.next(e())}catch(r){s.error(r)}n.unsubscribe()}})}_connectSocket(){let{WebSocketCtor:o,protocol:e,url:t,binaryType:i}=this._config,s=this._output,n=null;try{n=e?new o(t,e):new o(t),this._socket=n,i&&(this._socket.binaryType=i)}catch(c){s.error(c);return}let r=new oe(()=>{this._socket=null,n&&n.readyState===1&&n.close()});n.onopen=c=>{let{_socket:l}=this;if(!l){n.close(),this._resetState();return}let{openObserver:f}=this._config;f&&f.next(c);let g=this.destination;this.destination=ne.create(h=>{if(n.readyState===1)try{let{serializer:m}=this._config;n.send(m(h))}catch(m){this.destination.error(m)}},h=>{let{closingObserver:m}=this._config;m&&m.next(void 0),h&&h.code?n.close(h.code,h.reason):s.error(new TypeError(He)),this._resetState()},()=>{let{closingObserver:h}=this._config;h&&h.next(void 0),n.close(),this._resetState()}),g&&g instanceof M&&r.add(g.subscribe(this.destination))},n.onerror=c=>{this._resetState(),s.error(c)},n.onclose=c=>{n===this._socket&&this._resetState();let{closeObserver:l}=this._config;l&&l.next(c),c.wasClean?s.complete():s.error(c)},n.onmessage=c=>{try{let{deserializer:l}=this._config;s.next(l(c))}catch(l){s.error(l)}}}_subscribe(o){let{source:e}=this;return e?e.subscribe(o):(this._socket||this._connectSocket(),this._output.subscribe(o),o.add(()=>{let{_socket:t}=this;this._output.observers.length===0&&(t&&(t.readyState===1||t.readyState===0)&&t.close(),this._resetState())}),o)}unsubscribe(){let{_socket:o}=this;o&&(o.readyState===1||o.readyState===0)&&o.close(),this._resetState(),super.unsubscribe()}};function ee(a){return new j(a)}var Ne=(()=>{class a{_destroyRef=p(R);_skRequests$=new d;_skNotificationsMsg$=new d;_skValue$=new d;_skMetadata$=new d;_vesselSelfUrn$=new d;_selfUrn=void 0;streamEndpoint={operation:0,message:"Not connected",hasToken:!1};streamEndpoint$=new b(this.streamEndpoint);endpointWS=null;SubscriptionType="self";WS_CONNECTION_SUBSCRIBE="?subscribe=";WS_CONNECTION_META="&sendMeta=all";socketWS$;socketWSCloseEvent$=new d;socketWSOpenEvent$=new d;authToken=null;server=p(We);auth=p(Ie);connectionStateMachine=p(Ae);zones=p(fe);FLATTEN_CONFIG={maxDepth:3,maxObjectSize:20,enableFlattening:!0};DO_NOT_FLATTEN_PATHS=["displays."];constructor(){this.connectionStateMachine.setWebSocketRetryCallback(()=>{console.log("[Delta Service] Executing WebSocket retry via callback"),this.retryWebSocketConnection()}),this.server.serverServiceEndpoint$.pipe(u(this._destroyRef)).subscribe(e=>{e.operation===2&&(this.endpointWS=e.WsServiceUrl,e.subscribeAll?this.SubscriptionType="all":this.SubscriptionType="self")}),this.connectionStateMachine.state$.pipe(u(this._destroyRef)).subscribe(e=>{switch(e){case v.WebSocketConnecting:this.handleWebSocketConnecting();break;case v.Connected:break;case v.Disconnected:case v.WebSocketError:case v.PermanentFailure:this.handleDisconnection();break}}),this.auth.authToken$.pipe(u(this._destroyRef)).subscribe(e=>{this.authToken!=e&&(this.authToken=e,this.socketWS$&&this.connectionStateMachine.isFullyConnected()&&(this.closeWS("Token changed"),this.connectionStateMachine.startWebSocketConnection()))}),this.socketWSOpenEvent$.pipe(u(this._destroyRef)).subscribe(()=>{this.streamEndpoint.message="Connected",this.streamEndpoint.operation=2,this.authToken?console.log("[Delta Service] WebSocket connected with Authorization Token"):console.log("[Delta Service] WebSocket connected without Authorization Token"),this.streamEndpoint$.next(this.streamEndpoint),this.connectionStateMachine.onWebSocketConnected()}),this.socketWSCloseEvent$.pipe(u(this._destroyRef)).subscribe(e=>{e.wasClean?(console.log("[Delta Service] WebSocket closed cleanly"),this.streamEndpoint.message="WebSocket closed",this.streamEndpoint.operation=0):(console.log("[Delta Service] WebSocket terminated due to socket error"),this.streamEndpoint.message="WebSocket error",this.streamEndpoint.operation=3,this.connectionStateMachine.onWebSocketError("WebSocket connection lost")),this.streamEndpoint$.next(this.streamEndpoint)}),he(document,"visibilitychange").pipe(u(this._destroyRef)).subscribe(()=>{document.visibilityState==="visible"?(console.log("[Delta Service] App resumed, checking WebSocket connection..."),this.checkAndReconnect("App resumed")):document.visibilityState==="hidden"&&console.log("[Delta Service] App suspended")})}connectWS(e){this.streamEndpoint.message="Connecting",this.streamEndpoint.operation=1,console.log(`[Delta Service] ${e}: WebSocket opening...`),this.streamEndpoint$.next(this.streamEndpoint),this.socketWS$=this.getNewWebSocket(),this.zones.runOutsideAngular(()=>{this.socketWS$.pipe(u(this._destroyRef)).subscribe({next:t=>this.processWebsocketMessage(t),error:t=>{console.error("[Delta Service] WebSocket error:",t)}})})}retryWebSocketConnection(){if(console.log("[Delta Service] Retrying WebSocket connection"),!this.endpointWS){console.warn("[Delta Service] No WebSocket endpoint available for retry"),this.connectionStateMachine.onWebSocketError("No WebSocket endpoint available");return}this.socketWS$&&this.closeWS("Retrying connection"),this.connectWS("WebSocket retry attempt")}handleWebSocketConnecting(){if(!this.endpointWS){console.warn("[Delta Service] No WebSocket endpoint available"),this.connectionStateMachine.onWebSocketError("No WebSocket endpoint available");return}this.socketWS$&&this.closeWS("Starting new connection"),this.connectWS("ConnectionStateMachine request")}handleDisconnection(){this.socketWS$&&this.closeWS("ConnectionStateMachine disconnection"),this.streamEndpoint.message="Not connected",this.streamEndpoint.operation=0,this.streamEndpoint$.next(this.streamEndpoint)}getNewWebSocket(){let e=this.WS_CONNECTION_SUBSCRIBE+this.SubscriptionType+this.WS_CONNECTION_META;return this.authToken!=null?(e+="&token="+this.authToken.token,this.streamEndpoint.hasToken=!0):this.streamEndpoint.hasToken=!1,ee({url:this.endpointWS+e,closeObserver:this.socketWSCloseEvent$,openObserver:this.socketWSOpenEvent$})}closeWS(e){this.socketWS$&&(this.streamEndpoint.operation=4,console.log("[Delta Service] "+e+": WebSocket closing..."),this.socketWS$.complete())}publishDelta(e){this.socketWS$?this.socketWS$.next(e):console.log("[Delta Service] No WebSocket present to send message - dropping message")}processWebsocketMessage(e){if(e.updates){this.parseUpdates(e.updates,e.context);return}if(e.requestId){this._skRequests$.next(e);return}if(e.errorMessage){console.warn("[Delta Service] Service received stream error message: "+e.errorMessage);return}if(e.self){this._selfUrn=e.self,this._vesselSelfUrn$.next(e.self),this.server.setServerInfo(e.name,e.version,e.roles);return}console.warn("[Delta Service] Unknown message type. Message content:"+e)}parseUpdates(e,t){e.forEach(i=>{i.meta!==void 0&&i.meta.forEach(s=>this.parseSkMeta(s,t)),i.values!==void 0&&i.values.forEach(s=>{if(s.path.startsWith("notifications."))this._skNotificationsMsg$.next(s);else if(typeof s.value=="object"&&s.value!==null)if(this.DO_NOT_FLATTEN_PATHS.some(n=>s.path.includes(n))){let n={context:t,path:s.path,source:i.$source,timestamp:i.timestamp,value:s.value};this._skValue$.next(n)}else this.FLATTEN_CONFIG.enableFlattening&&this.canFlattenCompletely(s.value,this.FLATTEN_CONFIG.maxDepth,this.FLATTEN_CONFIG.maxObjectSize)?this.flattenObjectValue(s.value,s.path).forEach(r=>{let c={context:t,path:r.path,source:i.$source,timestamp:i.timestamp,value:r.value};this._skValue$.next(c)}):Object.keys(s.value).forEach(n=>{let r={context:t,path:`${s.path}.${n}`,source:i.$source,timestamp:i.timestamp,value:s.value[n]};this._skValue$.next(r)});else{let n={context:t,path:s.path,source:i.$source,timestamp:i.timestamp,value:s.value};this._skValue$.next(n)}})})}canFlattenCompletely(e,t,i,s=0){if(s>=t)return!1;if(typeof e!="object"||e===null)return!0;let n=Object.keys(e);if(n.length>i)return!1;for(let r of n)if(!this.canFlattenCompletely(e[r],t,i,s+1))return!1;return!0}flattenObjectValue(e,t,i=0){let s=[];if(typeof e!="object"||e===null||i>=this.FLATTEN_CONFIG.maxDepth)return[{path:t,value:e}];let n=Object.keys(e);for(let r of n){let c=t?`${t}.${r}`:r,l=this.flattenObjectValue(e[r],c,i+1);s.push(...l)}return s}parseSkMeta(e,t){e.value.properties!==void 0?Object.keys(e.value.properties).forEach(i=>{this._skMetadata$.next({context:t,path:`${e.path}.${i}`,meta:e.value.properties[i]})}):this._skMetadata$.next({context:t,path:e.path,meta:e.value})}getDataStreamStatusAsO(){return this.streamEndpoint$.asObservable()}subscribeRequestUpdates(){return this._skRequests$.asObservable()}subscribeNotificationsUpdates(){return this._skNotificationsMsg$.asObservable()}subscribeDataPathsUpdates(){return this._skValue$.asObservable()}subscribeMetadataUpdates(){return this._skMetadata$.asObservable()}subscribeSelfUpdates(){return this._vesselSelfUrn$.asObservable()}checkAndReconnect(e){this.connectionStateMachine.isFullyConnected()?console.log(`[Delta Service] ${e}: Connection is active.`):this.connectionStateMachine.isHTTPConnected()&&this.connectionStateMachine.currentState!==v.WebSocketRetrying?(console.log(`[Delta Service] ${e}: WebSocket disconnected, requesting reconnection...`),this.connectionStateMachine.startWebSocketConnection()):console.log(`[Delta Service] ${e}: HTTP not connected, cannot start WebSocket`)}ngOnDestroy(){this.closeWS("App terminated"),this._skRequests$.complete(),this._skNotificationsMsg$.complete(),this._skValue$.complete(),this._skMetadata$.complete(),this._vesselSelfUrn$.complete(),this.streamEndpoint$.complete(),this.socketWSOpenEvent$.complete(),this.socketWSCloseEvent$.complete(),this.socketWS$?.complete()}static \u0275fac=function(t){return new(t||a)};static \u0275prov=E({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var x=(function(a){return a.Normal="normal",a.Nominal="nominal",a.Alert="alert",a.Warn="warn",a.Alarm="alarm",a.Emergency="emergency",a})(x||{});var Ye=(function(a){return a.Visual="visual",a.Sound="sound",a})(Ye||{});var qe="self",Fe=a=>isFinite(+(a instanceof Date?a:new Date(a)))?!!new RegExp("^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(.[0-9]+)?(([Zz])|([+|-]([01][0-9]|2[0-3]):[0-5][0-9]))$").test(a):!1,Pe=a=>{if(a)return a==="RFC 3339 (UTC)"?"Date":"number"},Pt=(()=>{class a{delta=p(Ne);_destroyRef=p(R);_deltaUpdatesCounter=0;_deltaUpdatesSubject=new M(10);_isSkDataFullTreeActive=!1;_skDataSubject$=new b([]);_skDataEmitTimer=null;_skDataEmitIntervalMs=200;_dataServiceMeta=[];_dataServiceMetaByPath=new Map;_isSkMetaFullTreeActive=!1;_dataServiceMetaSubject$=new b([]);_skNotificationMsg$=new d;_skNotificationMeta$=new d;_isReset=new d;_pathUpdates$=new d;_selfUrn="self";_skData=new Map;_skDataArrayCache=[];_skDataIndexByPath=new Map;_pathRegister=[];_pathRegisterByPath=new Map;constructor(){pe(1e3).pipe(u(this._destroyRef)).subscribe(()=>{let e={timestamp:Date.now(),value:this._deltaUpdatesCounter};this._deltaUpdatesSubject.next(e),this._deltaUpdatesCounter=0}),this.delta.subscribeDataPathsUpdates().pipe(u(this._destroyRef)).subscribe(e=>{this.updatePathData(e)}),this.delta.subscribeMetadataUpdates().pipe(u(this._destroyRef)).subscribe(e=>{this.setMeta(e)}),this.delta.subscribeNotificationsUpdates().pipe(u(this._destroyRef)).subscribe(e=>{let t=e.path.replace("notifications.","self."),i=this._skData.get(t);if(i&&i.state!==e.value.state){i.state=e.value.state;let s=this._pathRegisterByPath.get(t);if(s?.length)for(let n of s)n._pathState$.next(i.state)}this._skNotificationMsg$.next(e)}),this.delta.subscribeSelfUpdates().pipe(u(this._destroyRef)).subscribe(e=>{this.setSelfUrn(e)})}getSignalkDeltaUpdateStatistics(){return this._deltaUpdatesSubject.asObservable()}resetSignalKData(){this._skData=new Map,this._skDataArrayCache=[],this._skDataIndexByPath.clear(),this._selfUrn="self",this._isReset.next(!0)}unsubscribePath(e){let t=this._pathRegister.findIndex(i=>i.path===e);if(t!==-1){let i=this._pathRegister[t];i.combinedSub?.unsubscribe(),i._pathData$?.complete(),i._pathState$?.complete(),i.pathDataUpdate$?.complete(),i.pathMeta$?.complete(),this._pathRegister.splice(t,1);let s=this._pathRegisterByPath.get(e);if(s){let n=s.filter(r=>r!==i);n.length?this._pathRegisterByPath.set(e,n):this._pathRegisterByPath.delete(e)}}}subscribePath(e,t){let i=this._pathRegisterByPath.get(e),s=i?.find(D=>D.path===e&&D.source===t);if(s)return s.pathDataUpdate$;let n=null,r=null,c=null,l=x.Normal,f={data:{value:null,timestamp:null},state:l},g=null,h=this._skData.get(e);h&&(n=t==="default"?h.pathValue:h.sources?.[t]?.sourceValue??null,r=t==="default"?h.pathTimestamp:h.sources?.[t]?.sourceTimestamp??null,c=r?new Date(r):null,f={data:{value:n,timestamp:c},state:h.state||l},l=h.state||l,g=h.meta||null);let m={path:e,source:t,_pathData$:new b(f.data),_pathState$:new b(f.state),pathDataUpdate$:new b(f),pathMeta$:new b(g?O(g):null)},Be=de([m._pathData$,m._pathState$]).pipe(le(([D,Le])=>({data:D,state:Le})));return m.combinedSub=Be.subscribe(D=>m.pathDataUpdate$.next(D)),this._pathRegister.push(m),i?i.push(m):this._pathRegisterByPath.set(e,[m]),m.pathDataUpdate$}subscribePathTree(e,t="default"){let i=this.normalizePathPrefix(e);return new w(s=>{for(let r of this._skData.values())r.path.startsWith(i)&&s.next({path:r.path,update:this.buildPathUpdate(r,t)});let n=this._pathUpdates$.pipe(me(r=>r.fullPath.startsWith(i))).subscribe(r=>{let c=this._skData.get(r.fullPath);c&&s.next({path:c.path,update:this.buildPathUpdate(c,t)})});return()=>n.unsubscribe()}).pipe(u(this._destroyRef))}updatePathData(e){this._deltaUpdatesCounter++;let t=this.setPathContext(e.context,e.path),i=this._skData.get(t);if(i)i.defaultSource===void 0&&(i.defaultSource=e.source),i.type===void 0&&e.value!==null&&(i.type=typeof e.value,i.type==="string"&&Fe(e.value)&&(i.type="Date")),i.pathValue=e.value,i.pathTimestamp=e.timestamp,i.sources[e.source]={sourceTimestamp:e.timestamp,sourceValue:e.value};else{let n=e.value===null?void 0:typeof e.value;n==="string"&&Fe(e.value)&&(n="Date"),i={path:t,pathValue:e.value,pathTimestamp:e.timestamp,defaultSource:e.source,type:n,state:x.Normal,sources:{[e.source]:{sourceTimestamp:e.timestamp,sourceValue:e.value}}},this._skData.set(t,i)}let s=this._pathRegisterByPath.get(t)??[];if(s.length){let n={value:i.pathValue,timestamp:i.pathTimestamp?new Date(i.pathTimestamp):null},r=s.find(l=>l.source==="default");r&&r._pathData$.next(n);let c=s.find(l=>l.source===e.source);c&&c._pathData$.next(n)}this._isSkDataFullTreeActive&&(this.upsertSkDataCache(i),this.scheduleSkDataFullTreeEmit()),this._pathUpdates$.next({fullPath:t,update:e})}setMeta(e){if(e.path.startsWith("notifications."))this._skNotificationMeta$.next(e);else{let t=this.setPathContext(e.context,e.path),i=this._skData.get(t);i?(i.type==="object"&&e.meta.units&&(i.type=Pe(e.meta.units)),i.meta=Re({},i.meta,e.meta)):(i={path:t,pathValue:void 0,pathTimestamp:void 0,type:Pe(e.meta.units),state:x.Normal,defaultSource:void 0,sources:{},meta:e.meta?O(e.meta):null},this._skData.set(t,i),this._isSkDataFullTreeActive&&(this.upsertSkDataCache(i),this.scheduleSkDataFullTreeEmit()));let s=this._pathRegisterByPath.get(t);if(s?.length)for(let n of s)n.pathMeta$.next(i.meta?O(i.meta):null);this._isSkMetaFullTreeActive&&(this._dataServiceMetaByPath.set(t,{path:t,meta:i.meta}),this._dataServiceMeta=Array.from(this._dataServiceMetaByPath.values()),this._dataServiceMetaSubject$.next(this._dataServiceMeta))}}startSkMetaFullTree(){this._isSkMetaFullTreeActive=!0,this._dataServiceMetaByPath.clear();for(let e of this.getSkDataArray())e.meta!==void 0&&e.path.startsWith("self.")&&this._dataServiceMetaByPath.set(e.path,{path:e.path,meta:e.meta});return this._dataServiceMeta=Array.from(this._dataServiceMetaByPath.values()),this._dataServiceMetaSubject$.next(this._dataServiceMeta),this._dataServiceMetaSubject$}stopSkMetaFullTree(){this._isSkMetaFullTreeActive=!1,this._dataServiceMetaSubject$.next([]),this._dataServiceMeta=[],this._dataServiceMetaByPath.clear()}startSkDataFullTree(){return this._isSkDataFullTreeActive=!0,this.refreshSkDataCache(),this.emitSkDataFullTree(),this._skDataSubject$}getSkDataArray(){return this._isSkDataFullTreeActive?this._skDataArrayCache:Array.from(this._skData.values())}observePathUpdates(){return this._pathUpdates$.asObservable()}stopSkDataFullTree(){this._isSkDataFullTreeActive=!1,this._skDataEmitTimer&&(clearTimeout(this._skDataEmitTimer),this._skDataEmitTimer=null),this._skDataArrayCache=[],this._skDataIndexByPath.clear()}scheduleSkDataFullTreeEmit(){!this._isSkDataFullTreeActive||this._skDataEmitTimer||(this._skDataEmitTimer=setTimeout(()=>{this._skDataEmitTimer=null,this.emitSkDataFullTree()},this._skDataEmitIntervalMs))}emitSkDataFullTree(){this._isSkDataFullTreeActive&&this._skDataSubject$.next(this._skDataArrayCache)}refreshSkDataCache(){this._skDataArrayCache=Array.from(this._skData.values()),this._skDataIndexByPath.clear(),this._skDataArrayCache.forEach((e,t)=>this._skDataIndexByPath.set(e.path,t))}upsertSkDataCache(e){let t=this._skDataIndexByPath.get(e.path);t===void 0?(this._skDataIndexByPath.set(e.path,this._skDataArrayCache.length),this._skDataArrayCache.push(e)):this._skDataArrayCache[t]=e}setSelfUrn(e){e!==""&&e!==null?(console.debug("[Signal K Data Service] Setting self to: "+e),this._selfUrn=e):console.error("[Signal K Data Service] Invalid self URN: "+e)}setPathContext(e,t){return e!==this._selfUrn?`${e}.${t}`:`${qe}.${t}`}normalizePathPrefix(e){let t=e?.trim()??"";return(t.endsWith(".*")||t.endsWith(":*")||t.endsWith("*"))&&(t=t.slice(0,-1)),t&&!t.endsWith(".")&&!t.endsWith(":")&&(t=`${t}.`),t}buildPathUpdate(e,t){let i=t==="default",s=i?e.pathValue:e.sources?.[t]?.sourceValue??null,n=i?e.pathTimestamp:e.sources?.[t]?.sourceTimestamp??null;return{data:{value:s,timestamp:n?new Date(n):null},state:e.state||x.Normal}}getPathsByType(e,t){return this.getSkDataArray().filter(i=>i.type===e&&(!t||i.path.startsWith("self"))).map(i=>i.path)}getPathsAndMetaByType(e,t=!1,i=!1,s=!0){return this.getSkDataArray().filter(n=>{let c=["string","number","boolean","object","undefined","function","symbol","bigint","Date"].includes(e)?n.type===e:n.meta?.type===e,l=!s||n.path.startsWith("self"),f=t===!0?n.meta?.supportsPut===!0:!0,g=i===!0?Array.isArray(n.meta?.zones)&&n.meta.zones.length>0:!0;return c&&l&&f&&g}).map(n=>({path:n.path,meta:n.meta}))}getPathObject(e){return O(this._skData.get(e))||null}getPathUnitType(e){return this._skData.get(e)?.meta?.units||null}timeoutPathObservable(e,t){let i=this._pathRegister.find(s=>s.path==e);if(i){let s;["string","Date","number","multiple"].includes(t)&&(s={data:{value:null,timestamp:null},state:x.Normal}),i.pathDataUpdate$.next(s)}}getNotificationMsgObservable(){return this._skNotificationMsg$.asObservable()}getNotificationMetaObservable(){return this._skNotificationMeta$.asObservable()}getPathMetaObservable(e){return this._pathRegisterByPath.get(e)?.[0]?.pathMeta$.asObservable()||ce(null)}getPathMeta(e){return this._skData.get(e)?.meta||null}isResetService(){return this._isReset.asObservable()}ngOnDestroy(){this._skDataEmitTimer&&(clearTimeout(this._skDataEmitTimer),this._skDataEmitTimer=null),this._deltaUpdatesSubject?.complete(),this._skNotificationMsg$?.complete(),this._skNotificationMeta$?.complete(),this._isReset?.complete(),this._skDataSubject$?.complete(),this._dataServiceMetaSubject$?.complete(),this._pathUpdates$?.complete()}static \u0275fac=function(t){return new(t||a)};static \u0275prov=E({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var Ue=(()=>{class a{_animationsDisabled=Oe();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=_({type:a,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,i){t&2&&S("mat-pseudo-checkbox-indeterminate",i.state==="indeterminate")("mat-pseudo-checkbox-checked",i.state==="checked")("mat-pseudo-checkbox-disabled",i.disabled)("mat-pseudo-checkbox-minimal",i.appearance==="minimal")("mat-pseudo-checkbox-full",i.appearance==="full")("_mat-animation-noopable",i._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(t,i){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}
|
|
2
|
+
`],encapsulation:2,changeDetection:0})}return a})();var Qe=["*",[["mat-option"],["ng-container"]]],Ze=["*","mat-option, ng-container"],Je=["text"],Xe=[[["mat-icon"]],"*"],et=["mat-icon","*"];function tt(a,o){if(a&1&&F(0,"mat-pseudo-checkbox",1),a&2){let e=P();N("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function it(a,o){if(a&1&&F(0,"mat-pseudo-checkbox",3),a&2){let e=P();N("disabled",e.disabled)}}function at(a,o){if(a&1&&(H(0,"span",4),G(1),Y()),a&2){let e=P();T(),K("(",e.group.label,")")}}var te=new L("MAT_OPTION_PARENT_COMPONENT"),ie=new L("MatOptgroup"),st=(()=>{class a{label;disabled=!1;_labelId=p(Z).getId("mat-optgroup-label-");_inert;constructor(){let e=p(te,{optional:!0});this._inert=e?.inertGroups??!1}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=_({type:a,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(t,i){t&2&&z("role",i._inert?null:"group")("aria-disabled",i._inert?null:i.disabled.toString())("aria-labelledby",i._inert?null:i._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",Q]},exportAs:["matOptgroup"],features:[Me([{provide:ie,useExisting:a}])],ngContentSelectors:Ze,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(t,i){t&1&&(C(Qe),ke(0,"span",0)(1,"span",1),G(2),k(3),Se()(),k(4,1)),t&2&&(S("mdc-list-item--disabled",i.disabled),q("id",i._labelId),T(2),K("",i.label," "))},styles:[`.mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-optgroup-label-text-font, var(--mat-sys-title-small-font));line-height:var(--mat-optgroup-label-text-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-optgroup-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-optgroup-label-text-tracking, var(--mat-sys-title-small-tracking));font-weight:var(--mat-optgroup-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal;color:inherit}
|
|
3
|
+
`],encapsulation:2,changeDetection:0})}return a})(),B=class{source;isUserInput;constructor(o,e=!1){this.source=o,this.isUserInput=e}},ae=(()=>{class a{_element=p(be);_changeDetectorRef=p(Ee);_parent=p(te,{optional:!0});group=p(ie,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=p(Z).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=ge(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new ue;_text;_stateChanges=new d;constructor(){let e=p(Te);e.load($e),e.load(we),this._signalDisableRipple=!!this._parent&&_e(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let i=this._getHostElement();typeof i.focus=="function"&&i.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!Ce(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new B(this,e))}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=_({type:a,selectors:[["mat-option"]],viewQuery:function(t,i){if(t&1&&ye(Je,7),t&2){let s;xe(s=De())&&(i._text=s.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,i){t&1&&ve("click",function(){return i._selectViaInteraction()})("keydown",function(n){return i._handleKeydown(n)}),t&2&&(q("id",i.id),z("aria-selected",i.selected)("aria-disabled",i.disabled.toString()),S("mdc-list-item--selected",i.selected)("mat-mdc-option-multiple",i.multiple)("mat-mdc-option-active",i.active)("mdc-list-item--disabled",i.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Q]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:et,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,i){t&1&&(C(Xe),W(0,tt,1,2,"mat-pseudo-checkbox",1),k(1),H(2,"span",2,0),k(4,1),Y(),W(5,it,1,1,"mat-pseudo-checkbox",3),W(6,at,2,1,"span",4),F(7,"div",5)),t&2&&(I(i.multiple?0:-1),T(5),I(!i.multiple&&i.selected&&!i.hideSingleSelectionIndicator?5:-1),T(),I(i.group&&i.group._inert?6:-1),T(),N("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[Ue,J],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active,.mat-mdc-option-multiple,:focus,:hover){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active,.mat-mdc-option-multiple,:focus,:hover) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}
|
|
4
|
+
`],encapsulation:2,changeDetection:0})}return a})();function ot(a,o,e){if(e.length){let t=o.toArray(),i=e.toArray(),s=0;for(let n=0;n<a+1;n++)t[n].group&&t[n].group===i[s]&&s++;return s}return 0}function nt(a,o,e,t){return a<e?a:a+o>e+t?Math.max(0,a-t+o):e}var se=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new d;constructor(o=!1,e,t=!0,i){this._multiple=o,this._emitChanges=t,this.compareWith=i,e&&e.length&&(o?e.forEach(s=>this._markSelected(s)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...o){this._verifyValueAssignment(o),o.forEach(t=>this._markSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...o){this._verifyValueAssignment(o),o.forEach(t=>this._unmarkSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...o){this._verifyValueAssignment(o);let e=this.selected,t=new Set(o.map(s=>this._getConcreteValue(s)));o.forEach(s=>this._markSelected(s)),e.filter(s=>!t.has(this._getConcreteValue(s,t))).forEach(s=>this._unmarkSelected(s));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(o){return this.isSelected(o)?this.deselect(o):this.select(o)}clear(o=!0){this._unmarkAll();let e=this._hasQueuedChanges();return o&&this._emitChangeEvent(),e}isSelected(o){return this._selection.has(this._getConcreteValue(o))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(o){this._multiple&&this.selected&&this._selected.sort(o)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(o){o=this._getConcreteValue(o),this.isSelected(o)||(this._multiple||this._unmarkAll(),this.isSelected(o)||this._selection.add(o),this._emitChanges&&this._selectedToEmit.push(o))}_unmarkSelected(o){o=this._getConcreteValue(o),this.isSelected(o)&&(this._selection.delete(o),this._emitChanges&&this._deselectedToEmit.push(o))}_unmarkAll(){this.isEmpty()||this._selection.forEach(o=>this._unmarkSelected(o))}_verifyValueAssignment(o){o.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(o,e){if(this.compareWith){e=e??this._selection;for(let t of e)if(this.compareWith(o,t))return t;return o}else return o}};var rt=(()=>{class a{_listeners=[];notify(e,t){for(let i of this._listeners)i(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(t){return new(t||a)};static \u0275prov=E({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var Ve=class{applyChanges(o,e,t,i,s){o.forEachOperation((n,r,c)=>{let l,f;if(n.previousIndex==null){let g=t(n,r,c);l=e.createEmbeddedView(g.templateRef,g.context,g.index),f=V.INSERTED}else c==null?(e.remove(r),f=V.REMOVED):(l=e.get(r),e.move(l,c),f=V.MOVED);s&&s({context:l?.context,operation:f,record:n})})}detach(){}};var je=(()=>{class a{static \u0275fac=function(t){return new(t||a)};static \u0275mod=A({type:a});static \u0275inj=$({imports:[U]})}return a})();var ct=(()=>{class a{static \u0275fac=function(t){return new(t||a)};static \u0275mod=A({type:a});static \u0275inj=$({imports:[X,je,ae,U]})}return a})();var lt=["mat-internal-form-field",""],dt=["*"],xi=(()=>{class a{labelPosition="after";static \u0275fac=function(t){return new(t||a)};static \u0275cmp=_({type:a,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(t,i){t&2&&S("mdc-form-field--align-end",i.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:lt,ngContentSelectors:dt,decls:1,vars:0,template:function(t,i){t&1&&(C(),k(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}
|
|
5
|
+
`],encapsulation:2,changeDetection:0})}return a})();export{Ue as a,te as b,ie as c,st as d,B as e,ae as f,ot as g,nt as h,rt as i,Ve as j,se as k,je as l,ct as m,xi as n,x as o,Ye as p,Ne as q,Pt as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as m}from"./chunk-
|
|
1
|
+
import{h as m}from"./chunk-IHURI4IH.js";import{Aa as u,Ac as d,Fa as t,G as n,J as h,Oe as o,f as a,ka as l,pa as c}from"./chunk-A6DQJFP4.js";var w=(()=>{class s{connectionStateMachine=c(m);destroyRef=c(u);probeUrl="https://www.gstatic.com/generate_204";probeTimeoutMs=5e3;healthyRecheckMs=6e4;retryIntervalsMs=[5e3,3e4,6e4];useConnectionStateTriggers=!0;isBrowser=typeof window<"u"&&typeof document<"u";started=!1;retryAttempt=0;checkTimer=null;lastConnectionState=null;isChecking=t(!1);isReachable=t(null);lastSuccessAt=t(null);lastCheckedAt=t(null);lastError=t(null);internetAvailable=d(()=>this.isReachable()===!0);start(){this.started||!this.isBrowser||(this.started=!0,h(n(window,"online"),n(window,"offline")).pipe(o(this.destroyRef)).subscribe(()=>this.recheckNow()),n(document,"visibilitychange").pipe(o(this.destroyRef)).subscribe(()=>{document.visibilityState==="visible"&&this.recheckNow()}),this.useConnectionStateTriggers&&this.connectionStateMachine.status$.pipe(o(this.destroyRef)).subscribe(e=>{e?.state&&e.state!==this.lastConnectionState&&(this.lastConnectionState=e.state,this.recheckNow())}),this.recheckNow())}recheckNow(){this.started&&(this.clearTimer(),this.isChecking()||this.runProbe())}runProbe(){return a(this,null,function*(){this.isChecking.set(!0),this.lastCheckedAt.set(new Date);try{let e=yield this.performProbe();this.isReachable.set(e),e?(this.lastSuccessAt.set(new Date),this.lastError.set(null),this.retryAttempt=0,this.scheduleNext(this.healthyRecheckMs)):(this.lastError.set("Internet reachability probe failed"),this.scheduleRetry())}catch(e){this.isReachable.set(!1),this.lastError.set("Internet reachability probe failed"),this.scheduleRetry()}finally{this.isChecking.set(!1)}})}performProbe(){return a(this,null,function*(){let e=new AbortController,i=setTimeout(()=>e.abort(),this.probeTimeoutMs);try{let r=yield fetch(this.probeUrl,{method:"GET",mode:"no-cors",cache:"no-store",signal:e.signal});return r.type==="opaque"?!0:r.status>=200&&r.status<400}catch(r){return!1}finally{clearTimeout(i)}})}scheduleRetry(){let e=Math.min(this.retryAttempt,this.retryIntervalsMs.length-1),i=this.retryIntervalsMs[e];this.retryAttempt++,this.scheduleNext(i)}scheduleNext(e){this.clearTimer(),this.checkTimer=setTimeout(()=>{this.checkTimer=null,this.runProbe()},e)}clearTimer(){this.checkTimer&&(clearTimeout(this.checkTimer),this.checkTimer=null)}ngOnDestroy(){this.clearTimer()}static \u0275fac=function(i){return new(i||s)};static \u0275prov=l({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();export{w as a};
|