@duplicati/ngclient 0.0.164 → 0.0.166
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/chunk-25QJ7OWU.js +1 -0
- package/{chunk-2QT6CZNW.js → chunk-2HQTO4LT.js} +1 -1
- package/{chunk-NXROYR6L.js → chunk-3ADKRLYD.js} +1 -1
- package/{chunk-VEON764K.js → chunk-3O255C2R.js} +1 -1
- package/{chunk-K6IL54XE.js → chunk-3VHQLGKM.js} +1 -1
- package/{chunk-SVQCV5AE.js → chunk-4IAJY6E3.js} +1 -1
- package/chunk-4N7O6OWH.js +1 -0
- package/{chunk-JPRQYGHQ.js → chunk-53GUCO6P.js} +1 -1
- package/{chunk-VCLWADQK.js → chunk-53V6KV3I.js} +1 -1
- package/{chunk-E5E5ASXG.js → chunk-5RCKMVGY.js} +1 -1
- package/{chunk-4GY6ZWN5.js → chunk-7WATCQLK.js} +1 -1
- package/chunk-A4HSV37F.js +1 -0
- package/{chunk-7XXYLQEN.js → chunk-AROXMP46.js} +1 -1
- package/{chunk-HVB6ARTT.js → chunk-AUMCM45B.js} +1 -1
- package/{chunk-NME5JWZN.js → chunk-AY4BUZJQ.js} +1 -1
- package/{chunk-X5BOJXMC.js → chunk-BRPGUJ77.js} +1 -1
- package/{chunk-URAI6X74.js → chunk-CMFSS355.js} +1 -1
- package/{chunk-CZRQ3GX6.js → chunk-CMMGGY2S.js} +1 -1
- package/{chunk-35KH4G7Y.js → chunk-CO4VU5IU.js} +1 -1
- package/chunk-DPQEDR6U.js +1 -0
- package/{chunk-XTFTWEJS.js → chunk-E4KSSC6K.js} +1 -1
- package/chunk-EEXKY2IJ.js +1 -0
- package/chunk-EYFKXXER.js +1 -0
- package/chunk-FUPYLAQ6.js +1 -0
- package/chunk-G4Z3JAJB.js +1 -0
- package/{chunk-H3W2UQY2.js → chunk-GGNFAVSC.js} +1 -1
- package/{chunk-QMHLXETS.js → chunk-GHJ4MU3O.js} +1 -1
- package/{chunk-WJDMMKWE.js → chunk-GRPEAINE.js} +1 -1
- package/{chunk-RPJFKWMV.js → chunk-HEST3B3S.js} +1 -1
- package/chunk-HJSCQF6V.js +1 -0
- package/{chunk-465L4ZG5.js → chunk-HKYSIIV5.js} +1 -1
- package/{chunk-AT6BXXSP.js → chunk-HW7A5ZWV.js} +1 -1
- package/{chunk-ISCGGOPN.js → chunk-ILGMXHEE.js} +1 -1
- package/chunk-IMF5BUVN.js +1 -0
- package/{chunk-2CWLIRUP.js → chunk-IQ52IXSC.js} +1 -1
- package/{chunk-2DP4QU4T.js → chunk-J64OAILA.js} +1 -1
- package/{chunk-OHP7HLY2.js → chunk-JGXPFEYZ.js} +1 -1
- package/{chunk-D3LEV6WL.js → chunk-JXLBFHEH.js} +1 -1
- package/chunk-KKLVMIFL.js +1 -0
- package/{chunk-H4H72SDD.js → chunk-KUP2T6AG.js} +1 -1
- package/{chunk-NFIJYWQI.js → chunk-L7WPKNLR.js} +1 -1
- package/{chunk-TBTQMBCJ.js → chunk-LHOHOKP5.js} +1 -1
- package/{chunk-NZDZUPC5.js → chunk-M2BAPEJT.js} +1 -1
- package/{chunk-IKPQDSQK.js → chunk-NA6MTRHY.js} +2 -2
- package/{chunk-Z5W4ULWF.js → chunk-NDZU2O2Q.js} +1 -1
- package/chunk-NLXY47SY.js +1 -0
- package/{chunk-RNWKZDZM.js → chunk-NXJQU7IR.js} +1 -1
- package/{chunk-POJT4MSX.js → chunk-NY63VRAY.js} +1 -1
- package/{chunk-E3KF5SRU.js → chunk-O2M7MRKP.js} +1 -1
- package/{chunk-AWXWGD4T.js → chunk-OQ2HMOSQ.js} +1 -1
- package/{chunk-SXFSAK5L.js → chunk-OVLLX4US.js} +1 -1
- package/{chunk-TC7HZO7D.js → chunk-P7OKMMNZ.js} +1 -1
- package/chunk-POAVE42X.js +1 -0
- package/{chunk-PKK4MIRQ.js → chunk-Q4I4JXKZ.js} +1 -1
- package/chunk-QAY6UFT6.js +1 -0
- package/chunk-QE4NBN5H.js +2 -0
- package/{chunk-QBHHGHBJ.js → chunk-QLUEDPL4.js} +1 -1
- package/{chunk-E6DCTQ34.js → chunk-QOQI2ALM.js} +1 -1
- package/{chunk-5KMPTDRJ.js → chunk-R2N5UWYB.js} +1 -1
- package/chunk-R3F6GIHW.js +1 -0
- package/{chunk-CENUQU54.js → chunk-RRM5OZPV.js} +2 -2
- package/{chunk-ZLLXHZQV.js → chunk-SFSDLKTN.js} +1 -1
- package/{chunk-DY4NXNVS.js → chunk-SHNCRKXQ.js} +1 -1
- package/chunk-SKFITJZT.js +1 -0
- package/{chunk-O5W6EGCB.js → chunk-SNVT3M5C.js} +1 -1
- package/chunk-TPYX7QC7.js +1 -0
- package/{chunk-75C77QFK.js → chunk-ULR2EPP5.js} +1 -1
- package/{chunk-MSASOFXF.js → chunk-V5B247QH.js} +1 -1
- package/{chunk-W2SSWLYM.js → chunk-V7OQKE2Z.js} +1 -1
- package/{chunk-4Z72AON4.js → chunk-VXJJGZ5F.js} +1 -1
- package/{chunk-DQAT6VCF.js → chunk-W7NX3PWJ.js} +1 -1
- package/chunk-WJEUX75A.js +1 -0
- package/{chunk-DF6VTK4B.js → chunk-WKA7CSGA.js} +1 -1
- package/{chunk-D7OP5FPA.js → chunk-WNHQELMC.js} +1 -1
- package/{chunk-J34TTKLN.js → chunk-WPIVIZS6.js} +1 -1
- package/{chunk-4VZNWPWO.js → chunk-X6SJVQXW.js} +1 -1
- package/{chunk-MPQNBRD5.js → chunk-X7XIFHAV.js} +1 -1
- package/{chunk-ATGKEH5N.js → chunk-XUQ74HFK.js} +1 -1
- package/{chunk-2VOU6SHS.js → chunk-Y2LISX47.js} +1 -1
- package/chunk-Y7PHGRGB.js +4 -0
- package/{chunk-Y4GDUNWN.js → chunk-YU5AMM6C.js} +1 -1
- package/{chunk-35ZUPRX7.js → chunk-YWZRYOES.js} +1 -1
- package/{chunk-AE7T2DAH.js → chunk-ZQ56M63S.js} +1 -1
- package/chunk-ZSEZR472.js +1 -0
- package/{chunk-EUVXYJ2O.js → chunk-ZXEF3CNK.js} +1 -1
- package/{chunk-GNJTDWT4.js → chunk-ZZBUNZZO.js} +1 -1
- package/{chunk-GOFRTODH.js → chunk-ZZBZEHXF.js} +1 -1
- package/index.html +2 -2
- package/locale/messages.en.json +3 -0
- package/locale/messages.json +3 -0
- package/main-L5HX5P6R.js +1 -0
- package/package.json +1 -1
- package/styles-5QAJP4BI.css +1 -0
- package/chunk-5RQDJUIT.js +0 -1
- package/chunk-732GPC5D.js +0 -1
- package/chunk-ACZQPL4M.js +0 -1
- package/chunk-EOKEY2WO.js +0 -1
- package/chunk-EVJEPFC6.js +0 -1
- package/chunk-IFCA5KWR.js +0 -1
- package/chunk-LH6XLRJU.js +0 -1
- package/chunk-MCOUCF6F.js +0 -1
- package/chunk-PIMTQKQK.js +0 -1
- package/chunk-RIX6H2ZX.js +0 -1
- package/chunk-TGNUULAU.js +0 -1
- package/chunk-VNGJCKGG.js +0 -1
- package/chunk-W4KOKNGU.js +0 -1
- package/chunk-WZAZENJC.js +0 -1
- package/chunk-X4KK6R3X.js +0 -1
- package/chunk-XKKT2NP5.js +0 -1
- package/chunk-XRI2BFC2.js +0 -2
- package/chunk-XUN5TTJC.js +0 -1
- package/chunk-Z34TVTJN.js +0 -1
- package/chunk-Z4MDYLVI.js +0 -1
- package/chunk-ZBK64QS2.js +0 -4
- package/main-75X3EGHT.js +0 -1
- package/styles-JSM72RCO.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as Hr}from"./chunk-53V6KV3I.js";import{h as Br,k as rt}from"./chunk-3ADKRLYD.js";import{$ as Sr,$c as et,B as G,C as ee,E as Ut,Eb as _r,F as le,H as Ye,I as Q,J as Pt,K as vr,Kc as $r,M as mr,O as Rr,P as A,Pa as Ar,Pc as Y,Q as _t,R as S,S as C,Uc as zr,V as m,Va as jt,Wa as x,Wc as Fr,X as yr,Xa as Tr,Y as D,Yb as xr,Z as K,_ as d,_a as Er,ab as Xe,ba as te,bb as Or,bc as Lr,ca as _,cc as jr,d as lr,db as Te,dc as kr,dd as tt,e as hr,f as dr,g as Dt,gd as qr,h as Nt,i as z,ia as Cr,j as M,jb as re,ka as wr,l as F,m as w,ma as Ze,mb as Mr,n as h,nb as Dr,o as be,oa as Je,p as fr,pa as br,pb as Nr,q as pr,qb as Ur,r as v,ra as Ae,s as Qe,sa as xt,t as I,ta as Ir,tb as Pr,u as Ie,ua as Lt,v as gr,w as Ke,z as q}from"./chunk-Y7PHGRGB.js";import{a as l,b as P}from"./chunk-EUDKD2JW.js";var f="primary",Fe=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 oe(t){return new qt(t)}function Jr(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=t[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function Fn(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!j(t[e],n[e]))return!1;return!0}function j(t,n){let e=t?Bt(t):void 0,r=n?Bt(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],!Xr(t[i],n[i]))return!1;return!0}function Bt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Xr(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 en(t){return t.length>0?t[t.length-1]:null}function V(t){return fr(t)?t:Dr(t)?w(Promise.resolve(t)):h(t)}var qn={exact:rn,subset:nn},tn={exact:Bn,subset:Hn,ignored:()=>!0};function Vr(t,n,e){return qn[e.paths](t.root,n.root,e.matrixParams)&&tn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Bn(t,n){return j(t,n)}function rn(t,n,e){if(!ne(t.segments,n.segments)||!ot(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 Hn(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Xr(t[e],n[e]))}function nn(t,n,e){return on(t,n,n.segments,e)}function on(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ne(i,e)||n.hasChildren()||!ot(i,e,r))}else if(t.segments.length===e.length){if(!ne(t.segments,e)||!ot(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!nn(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!ne(t.segments,i)||!ot(t.segments,i,r)||!t.children[f]?!1:on(t.children[f],n,o,r)}}function ot(t,n,e){return n.every((r,i)=>tn[e](t[i].parameters,r.parameters))}var $=class{root;queryParams;fragment;_queryParamMap;constructor(n=new g([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=oe(this.queryParams),this._queryParamMap}toString(){return Gn.serialize(this)}},g=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 st(this)}},Z=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=oe(this.parameters),this._parameterMap}toString(){return an(this)}};function Vn(t,n){return ne(t,n)&&t.every((e,r)=>j(e.parameters,n[r].parameters))}function ne(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function Wn(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)))}),e}var qe=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>new se,providedIn:"root"})}return t})(),se=class{parse(n){let e=new Vt(n);return new $(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Ee(n.root,!0)}`,r=Yn(n.queryParams),i=typeof n.fragment=="string"?`#${Qn(n.fragment)}`:"";return`${e}${r}${i}`}},Gn=new se;function st(t){return t.segments.map(n=>an(n)).join("/")}function Ee(t,n){if(!t.hasChildren())return st(t);if(n){let e=t.children[f]?Ee(t.children[f],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${Ee(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=Wn(t,(r,i)=>i===f?[Ee(t.children[f],!1)]:[`${i}:${Ee(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${st(t)}/${e[0]}`:`${st(t)}/(${e.join("//")})`}}function sn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function nt(t){return sn(t).replace(/%3B/gi,";")}function Qn(t){return encodeURI(t)}function Ht(t){return sn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function at(t){return decodeURIComponent(t)}function Wr(t){return at(t.replace(/\+/g,"%20"))}function an(t){return`${Ht(t.path)}${Kn(t.parameters)}`}function Kn(t){return Object.entries(t).map(([n,e])=>`;${Ht(n)}=${Ht(e)}`).join("")}function Yn(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${nt(e)}=${nt(i)}`).join("&"):`${nt(e)}=${nt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Zn=/^[^\/()?;#]+/;function kt(t){let n=t.match(Zn);return n?n[0]:""}var Jn=/^[^\/()?;=#]+/;function Xn(t){let n=t.match(Jn);return n?n[0]:""}var ei=/^[^=?&#]+/;function ti(t){let n=t.match(ei);return n?n[0]:""}var ri=/^[^&#]+/;function ni(t){let n=t.match(ri);return n?n[0]:""}var Vt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new g([],{}):new g([],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(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[f]=new g(n,e)),r}parseSegment(){let n=kt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(n),new Z(at(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Xn(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=kt(this.remaining);i&&(r=i,this.capture(r))}n[at(e)]=at(r)}parseQueryParam(n){let e=ti(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=ni(this.remaining);s&&(r=s,this.capture(r))}let i=Wr(e),o=Wr(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=kt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=f);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[f]:new g([],s),this.consumeOptional("//")}return e}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 C(4011,!1)}};function un(t){return t.segments.length>0?new g([],{[f]:t}):t}function cn(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=cn(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new g(t.segments,n);return ii(e)}function ii(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new g(t.segments.concat(n.segments),n.children)}return t}function J(t){return t instanceof $}function ln(t,n,e=null,r=null){let i=hn(t);return dn(i,n,e,r)}function hn(t){let n;function e(o){let s={};for(let u of o.children){let c=e(u);s[u.outlet]=c}let a=new g(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=un(r);return n??i}function dn(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return $t(i,i,i,e,r);let o=oi(n);if(o.toRoot())return $t(i,i,new g([],{}),e,r);let s=si(o,i,t),a=s.processChildren?Me(s.segmentGroup,s.index,o.commands):pn(s.segmentGroup,s.index,o.commands);return $t(i,s.segmentGroup,a,e,r)}function ut(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ue(t){return typeof t=="object"&&t!=null&&t.outlets}function $t(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(p=>`${p}`):`${c}`});let s;t===n?s=e:s=fn(t,n,e);let a=un(cn(s));return new $(a,o,i)}function fn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=fn(o,n,e)}),new g(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&&ut(r[0]))throw new C(4003,!1);let i=r.find(Ue);if(i&&i!==en(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function oi(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,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new ct(e,n,r)}var fe=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function si(t,n,e){if(t.isAbsolute)return new fe(n,!0,0);if(!e)return new fe(n,!1,NaN);if(e.parent===null)return new fe(e,!0,0);let r=ut(t.commands[0])?0:1,i=e.segments.length-1+r;return ai(e,i,t.numberOfDoubleDots)}function ai(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new C(4005,!1);i=r.segments.length}return new fe(r,!1,i-o)}function ui(t){return Ue(t[0])?t[0].outlets:{[f]:t}}function pn(t,n,e){if(t??=new g([],{}),t.segments.length===0&&t.hasChildren())return Me(t,n,e);let r=ci(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new g(t.segments.slice(0,r.pathIndex),{});return o.children[f]=new g(t.segments.slice(r.pathIndex),t.children),Me(o,0,i)}else return r.match&&i.length===0?new g(t.segments,{}):r.match&&!t.hasChildren()?Wt(t,n,e):r.match?Me(t,0,i):Wt(t,n,e)}function Me(t,n,e){if(e.length===0)return new g(t.segments,{});{let r=ui(e),i={};if(Object.keys(r).some(o=>o!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let o=Me(t.children[f],n,e);return new g(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=pn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new g(t.segments,i)}}function ci(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 s=t.segments[i],a=e[r];if(Ue(a))break;let u=`${a}`,c=r<e.length-1?e[r+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Qr(u,c,s))return o;r+=2}else{if(!Qr(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Wt(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(Ue(o)){let u=li(o.outlets);return new g(r,u)}if(i===0&&ut(e[0])){let u=t.segments[n];r.push(new Z(u.path,Gr(e[0]))),i++;continue}let s=Ue(o)?o.outlets[f]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&ut(a)?(r.push(new Z(s,Gr(a))),i+=2):(r.push(new Z(s,{})),i++)}return new g(r,{})}function li(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Wt(new g([],{}),0,r))}),n}function Gr(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Qr(t,n,e){return t==e.path&&j(n,e.parameters)}var De="imperative",R=(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})(R||{}),O=class{id;url;constructor(n,e){this.id=n,this.url=e}},ae=class extends O{type=R.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}')`}},N=class extends O{urlAfterRedirects;type=R.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||{}),Pe=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Pe||{}),k=class extends O{reason;code;type=R.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},B=class extends O{reason;code;type=R.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ge=class extends O{error;target;type=R.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})`}},_e=class extends O{urlAfterRedirects;state;type=R.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})`}},lt=class extends O{urlAfterRedirects;state;type=R.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})`}},ht=class extends O{urlAfterRedirects;state;shouldActivate;type=R.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})`}},dt=class extends O{urlAfterRedirects;state;type=R.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})`}},ft=class extends O{urlAfterRedirects;state;type=R.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})`}},pt=class{route;type=R.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},gt=class{route;type=R.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},vt=class{snapshot;type=R.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mt=class{snapshot;type=R.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rt=class{snapshot;type=R.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=R.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var xe=class{},ve=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function hi(t){return!(t instanceof xe)&&!(t instanceof ve)}function di(t,n){return t.providers&&!t._injector&&(t._injector=Xe(t.providers,n,`Route: ${t.path}`)),t._injector??n}function L(t){return t.outlet||f}function fi(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}function ye(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var St=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ye(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Se(this.rootInjector)}},Se=(()=>{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 St(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(K(te))};static \u0275prov=m({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=Gt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Gt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Qt(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Qt(n,this._root).map(e=>e.value)}};function Gt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Gt(t,e);if(r)return r}return null}function Qt(t,n){if(t===n.value)return[n];for(let e of n.children){let r=Qt(t,e);if(r.length)return r.unshift(n),r}return[]}var E=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function de(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Le=class extends Ct{snapshot;constructor(n,e){super(n),this.snapshot=e,rr(this,n)}toString(){return this.snapshot.toString()}};function gn(t){let n=pi(t),e=new M([new Z("",{})]),r=new M({}),i=new M({}),o=new M({}),s=new M(""),a=new H(e,r,o,s,i,f,t,n.root);return a.snapshot=n.root,new Le(new E(a,[]),n)}function pi(t){let n={},e={},r={},o=new ie([],n,r,"",e,f,t,null,{});return new je("",new E(o,[]))}var H=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,s,a,u){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(v(c=>c[Fe]))??h(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(v(n=>oe(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(n=>oe(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function wt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:l(l({},n.params),t.params),data:l(l({},n.data),t.data),resolve:l(l(l(l({},t.data),n.data),i?.data),t._resolvedData)}:r={params:l({},t.params),data:l({},t.data),resolve:l(l({},t.data),t._resolvedData??{})},i&&mn(i)&&(r.resolve[Fe]=i.title),r}var ie=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Fe]}constructor(n,e,r,i,o,s,a,u,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}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??=oe(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=oe(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}')`}},je=class extends Ct{url;constructor(n,e){super(e),this.url=n,rr(this,e)}toString(){return vn(this._root)}};function rr(t,n){n.value._routerState=t,n.children.forEach(e=>rr(t,e))}function vn(t){let n=t.children.length>0?` { ${t.children.map(vn).join(", ")} } `:"";return`${t.value}${n}`}function zt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,j(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),j(n.params,e.params)||t.paramsSubject.next(e.params),Fn(n.url,e.url)||t.urlSubject.next(e.url),j(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Kt(t,n){let e=j(t.params,n.params)&&Vn(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Kt(t.parent,n.parent))}function mn(t){return typeof t.title=="string"||t.title===null}var Rn=new D(""),nr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new re;deactivateEvents=new re;attachEvents=new re;detachEvents=new re;routerOutletData=Fr(void 0);parentContexts=d(Se);location=d(Tr);changeDetector=d(et);inputBinder=d(Be,{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 C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(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 C(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new Yt(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:u,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=Te({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ae]})}return t})(),Yt=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===H?this.route:n===Se?this.childContexts:n===Rn?this.outletData:this.parent.get(n,e)}},Be=new D(""),ir=(()=>{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=Qe([r.queryParams,r.params,r.data]).pipe(A(([o,s,a],u)=>(a=l(l(l({},o),s),a),u===0?h(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=qr(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})(),or=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Or({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&_r(0,"router-outlet")},dependencies:[nr],encapsulation:2})}return t})();function sr(t){let n=t.children&&t.children.map(sr),e=n?P(l({},t),{children:n}):l({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=or),e}function gi(t,n,e){let r=ke(t,n._root,e?e._root:void 0);return new Le(r,n)}function ke(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=vi(t,n,e);return new E(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>ke(t,a)),s}}let r=mi(n.value),i=n.children.map(o=>ke(t,o));return new E(r,i)}}function vi(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return ke(t,r,i);return ke(t,r)})}function mi(t){return new H(new M(t.url),new M(t.params),new M(t.queryParams),new M(t.fragment),new M(t.data),t.outlet,t.component,t)}var me=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},yn="ngNavigationCancelingError";function bt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=J(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Sn(!1,b.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Sn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[yn]=!0,e.cancellationCode=n,e}function Ri(t){return Cn(t)&&J(t.url)}function Cn(t){return!!t&&t[yn]}var yi=(t,n,e,r)=>v(i=>(new Zt(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),Zt=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),zt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=de(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),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 s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.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=de(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=de(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=de(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 mt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(zt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),zt(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},It=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},pe=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Si(t,n,e){let r=t._root,i=n?n._root:null;return Oe(r,i,e,[r.value])}function Ci(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ce(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!yr(t)?t:n.get(t):r}function Oe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=de(n);return t.children.forEach(s=>{wi(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ne(a,e.getContext(s),i)),i}function wi(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=bi(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new It(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Oe(t,n,a?a.children:null,r,i):Oe(t,n,e,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new pe(a.outlet.component,s))}else s&&Ne(n,a,i),i.canActivateChecks.push(new It(r)),o.component?Oe(t,null,a?a.children:null,r,i):Oe(t,null,e,r,i);return i}function bi(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!ne(t.url,n.url);case"pathParamsOrQueryParamsChange":return!ne(t.url,n.url)||!j(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kt(t,n)||!j(t.queryParams,n.queryParams);case"paramsChange":default:return!Kt(t,n)}}function Ne(t,n,e){let r=de(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Ne(s,n.children.getContext(o),e):Ne(s,null,e):Ne(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new pe(n.outlet.component,i)):e.canDeactivateChecks.push(new pe(null,i)):e.canDeactivateChecks.push(new pe(null,i))}function He(t){return typeof t=="function"}function Ii(t){return typeof t=="boolean"}function Ai(t){return t&&He(t.canLoad)}function Ti(t){return t&&He(t.canActivate)}function Ei(t){return t&&He(t.canActivateChild)}function Oi(t){return t&&He(t.canDeactivate)}function Mi(t){return t&&He(t.canMatch)}function wn(t){return t instanceof pr||t?.name==="EmptyError"}var it=Symbol("INITIAL_VALUE");function Re(){return A(t=>Qe(t.map(n=>n.pipe(le(1),Rr(it)))).pipe(v(n=>{for(let e of n)if(e!==!0){if(e===it)return it;if(e===!1||Di(e))return e}return!0}),q(n=>n!==it),le(1)))}function Di(t){return J(t)||t instanceof me}function Ni(t,n){return I(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?h(P(l({},e),{guardsResult:!0})):Ui(s,r,i,t).pipe(I(a=>a&&Ii(a)?Pi(r,o,t,n):h(a)),v(a=>P(l({},e),{guardsResult:a})))})}function Ui(t,n,e,r){return w(t).pipe(I(i=>ki(i.component,i.route,e,n,r)),Q(i=>i!==!0,!0))}function Pi(t,n,e,r){return w(n).pipe(ee(i=>gr(xi(i.route.parent,r),_i(i.route,r),ji(t,i.path,e),Li(t,i.route,e))),Q(i=>i!==!0,!0))}function _i(t,n){return t!==null&&n&&n(new Rt(t)),h(!0)}function xi(t,n){return t!==null&&n&&n(new vt(t)),h(!0)}function Li(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return h(!0);let i=r.map(o=>Ke(()=>{let s=ye(n)??e,a=Ce(o,s),u=Ti(a)?a.canActivate(n,t):_(s,()=>a(n,t));return V(u).pipe(Q())}));return h(i).pipe(Re())}function ji(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>Ci(s)).filter(s=>s!==null).map(s=>Ke(()=>{let a=s.guards.map(u=>{let c=ye(s.node)??e,p=Ce(u,c),y=Ei(p)?p.canActivateChild(r,t):_(c,()=>p(r,t));return V(y).pipe(Q())});return h(a).pipe(Re())}));return h(o).pipe(Re())}function ki(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return h(!0);let s=o.map(a=>{let u=ye(n)??i,c=Ce(a,u),p=Oi(c)?c.canDeactivate(t,n,e,r):_(u,()=>c(t,n,e,r));return V(p).pipe(Q())});return h(s).pipe(Re())}function $i(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return h(!0);let o=i.map(s=>{let a=Ce(s,t),u=Ai(a)?a.canLoad(n,e):_(t,()=>a(n,e));return V(u)});return h(o).pipe(Re(),bn(r))}function bn(t){return hr(S(n=>{if(typeof n!="boolean")throw bt(t,n)}),v(n=>n===!0))}function zi(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return h(!0);let o=i.map(s=>{let a=Ce(s,t),u=Mi(a)?a.canMatch(n,e):_(t,()=>a(n,e));return V(u)});return h(o).pipe(Re(),bn(r))}var $e=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},ze=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function he(t){return be(new $e(t))}function Fi(t){return be(new C(4e3,!1))}function qi(t){return be(Sn(!1,b.GuardRejected))}var Jt=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return h(r);if(i.numberOfChildren>1||!i.children[f])return Fi(`${n.redirectTo}`);i=i.children[f]}}applyRedirectCommands(n,e,r,i,o){return Bi(e,i,o).pipe(v(s=>{if(s instanceof $)throw new ze(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new ze(a);return a}))}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new $(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 a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(n,u,r,i)}),new g(o,s)}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 C(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 Bi(t,n,e){if(typeof t=="string")return h(t);let r=t,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:u,params:c,data:p,title:y}=n;return V(_(e,()=>r({params:c,data:p,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:u,title:y})))}var Xt={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Hi(t,n,e,r,i){let o=In(t,n,e);return o.matched?(r=di(n,r),zi(r,n,e,i).pipe(v(s=>s===!0?o:l({},Xt)))):h(o)}function In(t,n,e){if(n.path==="**")return Vi(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?l({},Xt):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Jr)(e,t,n);if(!i)return l({},Xt);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?l(l({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Vi(t){return{matched:!0,parameters:t.length>0?en(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Kr(t,n,e,r){return e.length>0&&Qi(t,e,r)?{segmentGroup:new g(n,Gi(r,new g(e,t.children))),slicedSegments:[]}:e.length===0&&Ki(t,e,r)?{segmentGroup:new g(t.segments,Wi(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new g(t.segments,t.children),slicedSegments:e}}function Wi(t,n,e,r){let i={};for(let o of e)if(Tt(t,n,o)&&!r[L(o)]){let s=new g([],{});i[L(o)]=s}return l(l({},r),i)}function Gi(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&L(r)!==f){let i=new g([],{});e[L(r)]=i}return e}function Qi(t,n,e){return e.some(r=>Tt(t,n,r)&&L(r)!==f)}function Ki(t,n,e){return e.some(r=>Tt(t,n,r))}function Tt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Yi(t,n,e){return n.length===0&&!t.children[e]}var er=class{};function Zi(t,n,e,r,i,o,s="emptyOnly"){return new tr(t,n,e,r,i,s,o).recognize()}var Ji=31,tr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Jt(this.urlSerializer,this.urlTree)}noMatchError(n){return new C(4002,`'${n.segmentGroup}'`)}recognize(){let n=Kr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(v(({children:e,rootSnapshot:r})=>{let i=new E(r,e),o=new je("",i),s=ln(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new ie([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,f,e).pipe(v(r=>({children:r,rootSnapshot:e})),G(r=>{if(r instanceof ze)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof $e?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(v(s=>s instanceof E?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return w(o).pipe(ee(s=>{let a=r.children[s],u=fi(e,s);return this.processSegmentGroup(n,u,a,s,i)}),mr((s,a)=>(s.push(...a),s)),Ut(null),vr(),I(s=>{if(s===null)return he(r);let a=An(s);return Xi(a),h(a)}))}processSegment(n,e,r,i,o,s,a){return w(e).pipe(ee(u=>this.processSegmentAgainstRoute(u._injector??n,e,u,r,i,o,s,a).pipe(G(c=>{if(c instanceof $e)return h(null);throw c}))),Q(u=>!!u),G(u=>{if(wn(u))return Yi(r,i,o)?h(new er):he(r);throw u}))}processSegmentAgainstRoute(n,e,r,i,o,s,a,u){return L(r)!==s&&(s===f||!Tt(i,o,r))?he(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,u):he(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){let{matched:u,parameters:c,consumedSegments:p,positionalParamSegments:y,remainingSegments:U}=In(e,i,o);if(!u)return he(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ji&&(this.allowRedirects=!1));let W=new ie(o,c,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Yr(i),L(i),i.component??i._loadedComponent??null,i,Zr(i)),T=wt(W,a,this.paramsInheritanceStrategy);return W.params=Object.freeze(T.params),W.data=Object.freeze(T.data),this.applyRedirects.applyRedirectCommands(p,i.redirectTo,y,W,n).pipe(A(X=>this.applyRedirects.lineralizeSegments(i,X)),I(X=>this.processSegment(n,r,e,X.concat(U),s,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let a=Hi(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(A(u=>u.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(A(({routes:c})=>{let p=r._loadedInjector??n,{parameters:y,consumedSegments:U,remainingSegments:W}=u,T=new ie(U,y,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Yr(r),L(r),r.component??r._loadedComponent??null,r,Zr(r)),ce=wt(T,s,this.paramsInheritanceStrategy);T.params=Object.freeze(ce.params),T.data=Object.freeze(ce.data);let{segmentGroup:X,slicedSegments:Mt}=Kr(e,U,W,c);if(Mt.length===0&&X.hasChildren())return this.processChildren(p,c,X,T).pipe(v(Ge=>new E(T,Ge)));if(c.length===0&&Mt.length===0)return h(new E(T,[]));let $n=L(r)===o;return this.processSegment(p,c,X,Mt,$n?f:o,!0,T).pipe(v(Ge=>new E(T,Ge instanceof E?[Ge]:[])))}))):he(e)))}getChildConfig(n,e,r){return e.children?h({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?h({routes:e._loadedRoutes,injector:e._loadedInjector}):$i(n,e,r,this.urlSerializer).pipe(I(i=>i?this.configLoader.loadChildren(n,e).pipe(S(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):qi(e))):h({routes:[],injector:n})}};function Xi(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet))}function eo(t){let n=t.value.routeConfig;return n&&n.path===""}function An(t){let n=[],e=new Set;for(let r of t){if(!eo(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=An(r.children);n.push(new E(r.value,i))}return n.filter(r=>!e.has(r))}function Yr(t){return t.data||{}}function Zr(t){return t.resolve||{}}function to(t,n,e,r,i,o){return I(s=>Zi(t,n,e,r,s.extractedUrl,i,o).pipe(v(({state:a,tree:u})=>P(l({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function ro(t,n){return I(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return h(e);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of Tn(u))s.add(c);let a=0;return w(s).pipe(ee(u=>o.has(u)?no(u,r,t,n):(u.data=wt(u,u.parent,t).resolve,h(void 0))),S(()=>a++),Pt(1),I(u=>a===s.size?h(e):F))})}function Tn(t){let n=t.children.map(e=>Tn(e)).flat();return[t,...n]}function no(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!mn(i)&&(o[Fe]=i.title),Ke(()=>(t.data=wt(t,t.parent,e).resolve,io(o,t,n,r).pipe(v(s=>(t._resolvedData=s,t.data=l(l({},t.data),s),null)))))}function io(t,n,e,r){let i=Bt(t);if(i.length===0)return h({});let o={};return w(i).pipe(I(s=>oo(t[s],n,e,r).pipe(Q(),S(a=>{if(a instanceof me)throw bt(new se,a);o[s]=a}))),Pt(1),v(()=>o),G(s=>wn(s)?F:be(s)))}function oo(t,n,e,r){let i=ye(n)??r,o=Ce(t,i),s=o.resolve?o.resolve(n,e):_(i,()=>o(n,e));return V(s)}function Ft(t){return A(n=>{let e=t(n);return e?w(e).pipe(v(()=>n)):h(n)})}var ar=(()=>{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===f);return r}getResolvedTitleForRoute(e){return e.data[Fe]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>d(En),providedIn:"root"})}return t})(),En=(()=>{class t extends ar{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)(K(Hr))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),we=new D("",{providedIn:"root",factory:()=>({})}),Ve=new D(""),ur=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d($r);loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return h(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=V(_(e,()=>r.loadComponent())).pipe(v(Mn),A(Dn),S(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Ye(()=>{this.componentLoaders.delete(r)})),o=new Nt(i,()=>new z).pipe(Dt());return this.componentLoaders.set(r,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return h({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=On(r,this.compiler,e,this.onLoadEndListener).pipe(Ye(()=>{this.childrenLoaders.delete(r)})),s=new Nt(o,()=>new z).pipe(Dt());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function On(t,n,e,r){return V(_(e,()=>t.loadChildren())).pipe(v(Mn),A(Dn),I(i=>i instanceof Er||Array.isArray(i)?h(i):w(n.compileModuleAsync(i))),v(i=>{r&&r(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(Ve,[],{optional:!0,self:!0}).flat()),{routes:s.map(sr),injector:o}}))}function so(t){return t&&typeof t=="object"&&"default"in t}function Mn(t){return so(t)?t.default:t}function Dn(t){return h(t)}var Et=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>d(ao),providedIn:"root"})}return t})(),ao=(()=>{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=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nn=new D("");var Un=new D(""),Pn=(()=>{class t{currentNavigation=Je(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new z;transitionAbortWithErrorSubject=new z;configLoader=d(ur);environmentInjector=d(te);destroyRef=d(wr);urlSerializer=d(qe);rootContexts=d(Se);location=d(rt);inputBindingEnabled=d(Be,{optional:!0})!==null;titleStrategy=d(ar);options=d(we,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(Et);createViewTransition=d(Nn,{optional:!0});navigationErrorHandler=d(Un,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>h(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new pt(i)),r=i=>this.events.next(new gt(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;Y(()=>{this.transitions?.next(P(l({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:r}))})}setupNavigations(e){return this.transitions=new M(null),this.transitions.pipe(q(r=>r!==null),A(r=>{let i=!1;return h(r).pipe(A(o=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),F;this.currentTransition=r,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?P(l({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new B(o.id,this.urlSerializer.serialize(o.rawUrl),"",Pe.IgnoredSameUrlNavigation)),o.resolve(!1),F;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return h(o).pipe(A(u=>(this.events.next(new ae(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),u.id!==this.navigationId?F:Promise.resolve(u))),to(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),S(u=>{r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation.update(p=>(p.finalUrl=u.urlAfterRedirects,p));let c=new _e(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:u,extractedUrl:c,source:p,restoredState:y,extras:U}=o,W=new ae(u,this.urlSerializer.serialize(c),p,y);this.events.next(W);let T=gn(this.rootComponentType).snapshot;return this.currentTransition=r=P(l({},o),{targetSnapshot:T,urlAfterRedirects:c,extras:P(l({},U),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(ce=>(ce.finalUrl=c,ce)),h(r)}else return this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Pe.IgnoredByUrlHandlingStrategy)),o.resolve(!1),F}),S(o=>{let s=new lt(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),v(o=>(this.currentTransition=r=P(l({},o),{guards:Si(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),r)),Ni(this.environmentInjector,o=>this.events.next(o)),S(o=>{if(r.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw bt(this.urlSerializer,o.guardsResult);let s=new ht(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),q(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",b.GuardRejected),!1)),Ft(o=>{if(o.guards.canActivateChecks.length!==0)return h(o).pipe(S(s=>{let a=new dt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),A(s=>{let a=!1;return h(s).pipe(ro(this.paramsInheritanceStrategy,this.environmentInjector),S({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",b.NoDataFromResolver)}}))}),S(s=>{let a=new ft(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),Ft(o=>{let s=a=>{let u=[];if(a.routeConfig?.loadComponent){let c=ye(a)??this.environmentInjector;u.push(this.configLoader.loadComponent(c,a.routeConfig).pipe(S(p=>{a.component=p}),v(()=>{})))}for(let c of a.children)u.push(...s(c));return u};return Qe(s(o.targetSnapshot.root)).pipe(Ut(null),le(1))}),Ft(()=>this.afterPreactivation()),A(()=>{let{currentSnapshot:o,targetSnapshot:s}=r,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?w(a).pipe(v(()=>r)):h(r)}),v(o=>{let s=gi(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=r=P(l({},o),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),r}),S(()=>{this.events.next(new xe)}),yi(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),le(1),_t(new dr(o=>{let s=r.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(q(()=>!i&&!r.targetRouterState),S(()=>{this.cancelNavigationTransition(r,r.abortController.signal.reason+"",b.Aborted)}))),S({next:o=>{i=!0,this.lastSuccessfulNavigation=Y(this.currentNavigation),this.events.next(new N(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),_t(this.transitionAbortWithErrorSubject.pipe(S(o=>{throw o}))),Ye(()=>{i||this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),G(o=>{if(this.destroyed)return r.resolve(!1),F;if(i=!0,Cn(o))this.events.next(new k(r.id,this.urlSerializer.serialize(r.extractedUrl),o.message,o.cancellationCode)),Ri(o)?this.events.next(new ve(o.url,o.navigationBehaviorOptions)):r.resolve(!1);else{let s=new ge(r.id,this.urlSerializer.serialize(r.extractedUrl),o,r.targetSnapshot??void 0);try{let a=_(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof me){let{message:u,cancellationCode:c}=bt(this.urlSerializer,a);this.events.next(new k(r.id,this.urlSerializer.serialize(r.extractedUrl),u,c)),this.events.next(new ve(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(a)}}return F}))}))}cancelNavigationTransition(e,r,i){let o=new k(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=Y(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=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function uo(t){return t!==De}var _n=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>d(co),providedIn:"root"})}return t})(),At=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},co=(()=>{class t extends At{static \u0275fac=(()=>{let e;return function(i){return(e||(e=xt(t)))(i||t)}})();static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xn=(()=>{class t{urlSerializer=d(qe);options=d(we,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(rt);urlHandlingStrategy=d(Et);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new $;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,s=i??o;return s instanceof $?this.urlSerializer.serialize(s):s}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=gn(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>d(lo),providedIn:"root"})}return t})(),lo=(()=>{class t extends xn{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}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 ae?this.updateStateMemento():e instanceof B?this.commitTransition(r):e instanceof _e?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof xe?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof k&&e.code!==b.SupersededByNewNavigation&&e.code!==b.Redirect?this.restoreHistory(r):e instanceof ge?this.restoreHistory(r,!0):e instanceof N&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,u=l(l({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",u)}else{let a=l(l({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}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())}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=xt(t)))(i||t)}})();static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function cr(t,n){t.events.pipe(q(e=>e instanceof N||e instanceof k||e instanceof ge||e instanceof B),v(e=>e instanceof N||e instanceof B?0:(e instanceof k?e.code===b.Redirect||e.code===b.SupersededByNewNavigation:!1)?2:1),q(e=>e!==2),le(1)).subscribe(()=>{n()})}var ho={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ue=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(Mr);stateManager=d(xn);options=d(we,{optional:!0})||{};pendingTasks=d(br);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(Pn);urlSerializer=d(qe);location=d(rt);urlHandlingStrategy=d(Et);injector=d(te);_events=new z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(_n);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Ve,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(Be,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new lr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=Y(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof k&&r.code!==b.Redirect&&r.code!==b.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof N)this.navigated=!0;else if(r instanceof ve){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),u=l({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||uo(i.source)},s);this.scheduleNavigation(a,De,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}hi(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),De,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},s=i?.navigationId?i:null;if(i){let u=l({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o).catch(u=>{this.disposed||this.injector.get(Ze)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Y(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(sr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:s,p=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":p=l(l({},this.currentUrlTree.queryParams),o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}p!==null&&(p=this.removeEmptyProps(p));let y;try{let U=i?i.snapshot:this.routerState.snapshot.root;y=hn(U)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),y=this.currentUrlTree.root}return dn(y,e,p,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=J(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,De,null,r)}navigate(e,r={skipLocationChange:!1}){return po(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=l({},ho):r===!1?i=l({},fo):i=r,J(e))return Vr(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Vr(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,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((y,U)=>{a=y,u=U});let p=this.pendingTasks.add();return cr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(y=>Promise.reject(y))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function po(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new C(4008,!1)}var Ot=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Je(null);get href(){return Y(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new z;applicationErrorHandler=d(Ze);options=d(we,{optional:!0});constructor(e,r,i,o,s,a){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(d(new zr("href"),{optional:!0}));let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area"||!!(typeof customElements=="object"&&customElements.get(u)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,r=i=>i==="merge"||i==="preserve";e||=r(this.queryParamsHandling),e||=!this.queryParamsHandling&&!r(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(i=>{i instanceof N&&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.subscribeToNavigationEventsIfNecessary()),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,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u)?.catch(c=>{this.applicationErrorHandler(c)}),!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)(x(ue),x(H),Ir("tabindex"),x(jt),x(Lt),x(Br))};static \u0275dir=Te({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&xr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Pr("href",i.reactiveHref(),Ar)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",tt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",tt],replaceUrl:[2,"replaceUrl","replaceUrl",tt],routerLink:"routerLink"},features:[Ae]})}return t})(),vo=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new re;constructor(e,r,i,o,s){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof N&&this.update()})}ngAfterContentInit(){h(this.links.changes,h(null)).pipe(Ie()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=w(e).pipe(Ie()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=mo(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(x(ue),x(Lt),x(jt),x(et),x(Ot,8))};static \u0275dir=Te({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Lr(o,Ot,5),r&2){let s;jr(s=kr())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ae]})}return t})();function mo(t){return!!t.paths}var We=class{},Ro=(()=>{class t{preload(e,r){return r().pipe(G(()=>h(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ln=(()=>{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 N),ee(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Xe(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return w(i).pipe(Ie())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=h(null);let o=i.pipe(I(s=>s===null?h(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(e,r);return w([o,s]).pipe(Ie())}else return o})}static \u0275fac=function(r){return new(r||t)(K(ue),K(te),K(We),K(ur))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yo=new D("");function So(t,...n){return Sr([{provide:Ve,multi:!0,useValue:t},[],{provide:H,useFactory:Co,deps:[ue]},{provide:Nr,multi:!0,useFactory:wo},n.map(e=>e.\u0275providers)])}function Co(t){return t.routerState.root}function jn(t,n){return{\u0275kind:t,\u0275providers:n}}function wo(){let t=d(Cr);return n=>{let e=t.get(Ur);if(n!==e.components[0])return;let r=t.get(ue),i=t.get(bo);t.get(Io)===1&&r.initialNavigation(),t.get(kn,null,{optional:!0})?.setUpPreloading(),t.get(yo,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var bo=new D("",{factory:()=>new z}),Io=new D("",{providedIn:"root",factory:()=>1});var kn=new D("");function Ao(t){return jn(0,[{provide:kn,useExisting:Ln},{provide:We,useExisting:t}])}function To(){return jn(8,[ir,{provide:Be,useExisting:ir}])}export{N as a,H as b,nr as c,ue as d,Ot as e,vo as f,Ro as g,So as h,Ao as i,To as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as _}from"./chunk-
|
|
1
|
+
import{a as _}from"./chunk-NY63VRAY.js";import"./chunk-GRPEAINE.js";import"./chunk-P7OKMMNZ.js";import"./chunk-XUQ74HFK.js";import{oa as l}from"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import{Fb as n,Fc as g,Gb as i,Gc as d,Ra as a,Ub as p,_ as s,bb as S,mc as c,nc as m}from"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";var o=class r{#e=s(_);serverSettings=this.#e.serverSettings;static \u0275fac=function(e){return new(e||r)};static \u0275cmp=S({type:r,selectors:[["app-server-settings"]],decls:6,vars:3,consts:()=>{let t;return t=$localize`System settings`,[t]},template:function(e,E){e&1&&(n(0,"h3"),p(1,0),i(),n(2,"code")(3,"pre"),c(4),g(5,"json"),i()()),e&2&&(a(4),m(d(5,1,E.serverSettings())))},dependencies:[l],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30)}code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:1rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{o as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as Me}from"./chunk-
|
|
1
|
+
import{a as Me}from"./chunk-QE4NBN5H.js";import"./chunk-KUP2T6AG.js";import"./chunk-WNHQELMC.js";import{a as ge}from"./chunk-EEXKY2IJ.js";import{h as F}from"./chunk-IQ52IXSC.js";import{a as Ee}from"./chunk-R2N5UWYB.js";import"./chunk-J64OAILA.js";import"./chunk-OQ2HMOSQ.js";import{a as Ne}from"./chunk-X7XIFHAV.js";import"./chunk-ZZBUNZZO.js";import"./chunk-HW7A5ZWV.js";import"./chunk-ULR2EPP5.js";import"./chunk-VXJJGZ5F.js";import"./chunk-6Q6SSTBK.js";import"./chunk-AUMCM45B.js";import"./chunk-QOQI2ALM.js";import"./chunk-NY63VRAY.js";import{b as A}from"./chunk-GRPEAINE.js";import"./chunk-QLUEDPL4.js";import"./chunk-ZQ56M63S.js";import"./chunk-E4KSSC6K.js";import"./chunk-4IAJY6E3.js";import{a as pe,b as ue}from"./chunk-P7OKMMNZ.js";import{B as me,F as _e,G as de,K as ce,O as Ce,c as Q,e as Y,f as Z,j as ee,n as te,o as ne,p as oe,q as ie,r as ae,s as re,t as se,u as le}from"./chunk-HJSCQF6V.js";import{b as j,d as H,e as q}from"./chunk-G4Z3JAJB.js";import"./chunk-53V6KV3I.js";import"./chunk-XUQ74HFK.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import{Ab as G,Ac as z,Bb as u,Cb as a,Db as n,Eb as r,Ib as S,Jb as T,Lb as k,Ra as m,Rc as W,Sb as f,Tb as O,Ub as c,Vb as y,Wb as v,Yb as U,_ as p,_b as g,bb as D,da as E,ea as M,jc as x,oa as L,rc as w,sc as K,tc as J,wb as R,xb as $,yb as b,yc as X,zb as B,zc as V}from"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";var Se=()=>["backup"];function Te(s,t){s&1&&r(0,"sh-progress-bar",11)}function fe(s,t){if(s&1&&(a(0,"sh-form-field"),r(1,"input",30),n()),s&2){let e=t.$implicit,l=t.$index;m(),u("id",X("filter-",l))("formControl",e)}}function Oe(s,t){if(s&1){let e=k();a(0,"form",12)(1,"sh-select",13)(2,"label",14),c(3,1),n(),r(4,"input",15),n(),a(5,"sh-form-field")(6,"label",16),c(7,2),n(),r(8,"textarea",17),n(),a(9,"sh-form-field")(10,"label",18),c(11,3),n(),r(12,"textarea",19),n()(),a(13,"sh-divider"),c(14,4),n(),a(15,"form",12)(16,"sh-form-field")(17,"label",20),c(18,5),n(),r(19,"input",21),n(),a(20,"sh-form-field")(21,"label",22),c(22,6),n(),r(23,"input",23),n(),a(24,"app-toggle-card",24),S(25,25),c(26,7),T(),S(27,26),B(28,fe,2,3,"sh-form-field",null,b),T(),n()(),a(30,"app-options-list",27),J("optionsChange",function(i){E(e);let C=g();return K(C.settings,i)||(C.settings=i),M(i)}),n(),a(31,"div",28)(32,"button",29),U("click",function(){E(e);let i=g();return M(i.submit())}),f(33,8),r(34,"sh-icon"),O(),n()()}if(s&2){let e=g();u("formGroup",e.baseCmdForm),m(),u("options",e.commandOptions()??z(10,Se))("inlineSearch",!0),m(14),u("formGroup",e.standardFields),m(9),u("disallowToggle",!0),m(4),G(e.standardFields.controls.filters.controls),m(2),w("options",e.settings),u("hasFreeTextSettings",!0),m(2),x("loader",e.isSubmitting()),m(2),y(e.baseCmdForm.value.command),v(33)}}var _=new ae,P=class s{#e=p(F);#t=p(ue);#n=p(H);#o=p(j);#i=p(pe);#a=p(Ne);#r=A(this.#o.params);commandOptions=A(this.#i.getApiV1Commandline());isSubmitting=L(!1);optionsFields=this.#e.optionsFields;standardFields=_.group({"backup-id":_.control(""),"backup-name":_.control(""),dbpath:_.control(""),filters:_.array([])});baseCmdForm=_.group({command:_.control("backup"),targetUrl:_.control(""),arguments:_.control("")});finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;settings=this.#e.settings;#l=W(()=>{let t=this.#r()?.id;this.#e.backupId.set(t),this.getBackup(t)});getBackup(t){this.#t.getApiV1BackupById({id:t}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.#e.mapGeneralToForm(e.Backup),this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup,!0)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(t){this.standardFields.patchValue({dbpath:t.DBPath,"backup-id":t.ID,"backup-name":t.Name}),t.Filters&&t.Filters.length&&t.Filters.map(e=>{this.standardFields.controls.filters.push(_.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.#a.resumeDialogCheck(()=>this.#s())}#s(){this.isSubmitting.set(!0);let t=this.baseCmdForm.value,e=t.targetUrl??"",l=t.arguments?.split(`
|
|
2
2
|
`).filter(o=>o.length>0)??[],i=this.standardFields.value,C=i.filters??[],N=[t.command,e,...l,`--backup-name=${i["backup-name"]}`,`--dbpath=${i.dbpath}`,`--backup-id=${i["backup-id"]}`,...C.filter(o=>o).map(o=>o.startsWith("-")?`--exclude=${o?.slice(1)}`:`--include=${o}`),...this.#e.mapFormsToSettings(["backup-id","backup-name","dbpath"]).map(o=>`${o.Name.startsWith("--")?"":"--"}${o.Name}=${o.Value}`),"--disable-module=console-password-input"];this.#t.postApiV1Commandline({requestBody:N}).subscribe(o=>{o.Status==="OK"&&this.#n.navigate(["backup",this.backupId(),"commandline",o.ID])})}mapBaseCmdToForm(t){let e=t.TargetURL??null;e&&this.baseCmdForm.patchValue({targetUrl:e??"",arguments:t.Sources?.join(`
|
|
3
3
|
`)??""})}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=D({type:s,selectors:[["app-commandline"]],features:[V([F])],decls:8,vars:1,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let e;e=$localize`Command`;let l;l=$localize`TargetUrl`;let i;i=$localize`Commandline Arguments`;let C;C=$localize`Advanced options`;let N;N=$localize`Backup ID`;let o;o=$localize`Backup Name`;let I;I=$localize`Filters`;let h;return h=$localize`${"\uFFFD#34\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#34\uFFFD"}:CLOSE_TAG_SH_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[t,e,l,i,C,N,o,I,h,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["placeholder","Select a command...",3,"options","inlineSearch"],["for","command"],["type","text","id","command","formControlName","command"],["for","targetUrl"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["id","arguments","autocomplete","off","formControlName","arguments"],["for","backup-id"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["id","backup-name","formControlName","backup-name"],[3,"disallowToggle"],["title",""],["content","","formGroupName","filters"],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["shButton","",1,"raised","primary",3,"click"],[3,"id","formControl"]]},template:function(e,l){e&1&&(r(0,"app-status-bar"),a(1,"section")(2,"div",9)(3,"button",10),f(4,0),r(5,"sh-icon"),O(),n()(),R(6,Te,1,0,"sh-progress-bar",11)(7,Oe,35,11),n()),e&2&&(m(6),$(l.finishedLoading()?7:6))},dependencies:[re,ee,Q,Y,Z,ge,Me,Ee,se,te,ne,ie,oe,q,de,me,_e,Ce,ce,le],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};export{P as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Pc as f,Qc as D,Rc as w,S as d,Sc as x,Tc as h,_ as v,ia as y,k as m,ka as l,oa as b}from"./chunk-Y7PHGRGB.js";import{a as p,b as g}from"./chunk-EUDKD2JW.js";function E(o,e){let s=e?.injector??v(y),n=new m(1),i=w(()=>{let t;try{t=o()}catch(u){f(()=>n.error(u));return}f(()=>n.next(t))},{injector:s,manualCleanup:!0});return s.get(l).onDestroy(()=>{i.destroy(),n.complete()}),n.asObservable()}function U(o,e){let n=!e?.manualCleanup?e?.injector?.get(l)??v(l):null,i=k(e?.equal),t;e?.requireSync?t=b({kind:0},{equal:i}):t=b({kind:1,value:e?.initialValue},{equal:i});let u,a=o.subscribe({next:r=>t.set({kind:1,value:r}),error:r=>{t.set({kind:2,error:r}),u?.()},complete:()=>{u?.()}});if(e?.requireSync&&t().kind===0)throw new d(601,!1);return u=n?.onDestroy(a.unsubscribe.bind(a)),D(()=>{let r=t();switch(r.kind){case 1:return r.value;case 2:throw r.error;case 0:throw new d(601,!1)}},{equal:e?.equal})}function k(o=Object.is){return(e,s)=>e.kind===1&&s.kind===1&&o(e.value,s.value)}function T(o){return x(g(p({},o),{loader:void 0,stream:e=>{let s,n=()=>s?.unsubscribe();e.abortSignal.addEventListener("abort",n);let i=b({value:void 0}),t,u=new Promise(c=>t=c);function a(c){i.set(c),t?.(i),t=void 0}let r=o.stream??o.loader;if(r===void 0)throw new d(990,!1);return s=r(e).subscribe({next:c=>a({value:c}),error:c=>{a({error:h(c)}),e.abortSignal.removeEventListener("abort",n)},complete:()=>{t&&a({error:new d(991,!1)}),e.abortSignal.removeEventListener("abort",n)}}),u}}))}export{E as a,U as b,T as c};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as P}from"./chunk-
|
|
1
|
+
import{b as P}from"./chunk-P7OKMMNZ.js";import"./chunk-XUQ74HFK.js";import"./chunk-FPPZ4BUR.js";import{Ab as b,Fb as o,Gb as i,H as p,Qc as x,Ra as s,V as h,_ as r,_b as L,bb as u,ic as E,mc as a,nc as M,oa as c,wb as f,xb as C,yb as _,zb as v}from"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";var l=class e{#e=r(P);isLoaded=c(!1);crashLog=c(null);load(){this.isLoaded()||this.#e.getApiV1LogdataCrashlog().pipe(p(()=>this.isLoaded.set(!0))).subscribe({next:t=>{this.crashLog.set(t.Logdata??null)}})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})};function O(e,t){e&1&&(o(0,"div",0),a(1,"Loading ..."),i())}function S(e,t){e&1&&(o(0,"div",0),a(1,"No crash log found"),i())}function w(e,t){if(e&1&&(o(0,"li"),a(1),i()),e&2){let n=t.$implicit;s(),M(n)}}function D(e,t){if(e&1&&(o(0,"div",2)(1,"code")(2,"ol",3),v(3,w,2,1,"li",null,_),i()()()),e&2){let n=L();E("grid-column","1 / -1")("height","auto"),s(3),b(n.breakIntoLines(n.crashLog()))}}var g=class e{#e=r(l);logsLoading=x(()=>!this.#e.isLoaded());crashLog=this.#e.crashLog;ngOnInit(){this.#e.load()}breakIntoLines(t){return t?t.split(`
|
|
2
2
|
`):[]}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=u({type:e,selectors:[["app-crashlogs"]],decls:5,vars:1,consts:[[1,"loading"],[2,"white-space","pre-wrap",3,"grid-column","height"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol"]],template:function(n,d){if(n&1&&(o(0,"h3"),a(1,"Crash log"),i(),f(2,O,2,0,"div",0)(3,S,2,0,"div",0)(4,D,5,4,"div",1)),n&2){let m;s(2),C(d.logsLoading()?2:d.crashLog()==null||((m=d.crashLog())==null?null:m.length)===0?3:4)}},styles:["[_nghost-%COMP%]{display:block;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}sh-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Aa as Ii,a as Xt,ea as Ai}from"./chunk-3ADKRLYD.js";import{$b as W,$c as qt,Ab as Ht,Ac as $t,Bb as ge,Bc as mt,Cb as E,Cc as Wt,Db as T,Eb as Ae,Fb as U,Gb as z,Hb as Ie,Kb as Pe,Lb as he,Oc as Gt,Pc as be,Qa as Mi,Qc as F,Ra as S,Rc as J,S as ht,Ta as pt,U as ue,V as Be,Va as ye,Vc as xe,W as Xe,Wa as N,Wc as V,Xa as Ei,Xc as fe,Y as Ce,Yb as $,Yc as Ti,Zb as Fe,Zc as ne,_ as A,_b as y,a as mi,ac as b,ba as Di,bb as B,ca as bi,cb as Ze,da as H,db as X,dd as Ni,ea as j,ec as xi,fb as ie,fc as pe,fd as Yt,gb as Ne,gc as De,hc as Oi,i as vi,ia as He,ic as se,ja as je,jb as Me,jc as G,ka as Te,kc as Vi,lb as kt,lc as ve,m as _i,mc as I,na as Ft,nb as wi,nc as Ke,oa as O,oc as we,pc as ft,qb as Rt,r as Ci,ra as Qe,rc as jt,sa as Ue,sc as Ut,tb as Ee,tc as zt,ua as Y,uc as gt,vc as me,wb as k,wc as K,x as yi,xb as R,ya as Si,yb as Lt,zb as Bt,zc as re}from"./chunk-Y7PHGRGB.js";import{a as Z,b as te,c as gi,d as f,e as w,f as x,g as M}from"./chunk-EUDKD2JW.js";var Ui=(()=>{class i{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,n){this._renderer=t,this._elementRef=n}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(n){return new(n||i)(N(ye),N(Y))};static \u0275dir=X({type:i})}return i})(),rt=(()=>{class i extends Ui{static \u0275fac=(()=>{let t;return function(o){return(t||(t=Ue(i)))(o||i)}})();static \u0275dir=X({type:i,features:[ie]})}return i})(),Ve=new Ce(""),Vn={provide:Ve,useExisting:ue(()=>Tn),multi:!0},Tn=(()=>{class i extends rt{writeValue(t){this.setProperty("checked",t)}static \u0275fac=(()=>{let t;return function(o){return(t||(t=Ue(i)))(o||i)}})();static \u0275dir=X({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,o){n&1&&$("change",function(c){return o.onChange(c.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([Vn]),ie]})}return i})(),Nn={provide:Ve,useExisting:ue(()=>zi),multi:!0};function An(){let i=Xt()?Xt().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var In=new Ce(""),zi=(()=>{class i extends Ui{_compositionMode;_composing=!1;constructor(t,n,o){super(t,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!An())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static \u0275fac=function(n){return new(n||i)(N(ye),N(Y),N(In,8))};static \u0275dir=X({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){n&1&&$("input",function(c){return o._handleInput(c.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(c){return o._compositionEnd(c.target.value)})},standalone:!1,features:[re([Nn]),ie]})}return i})();function Jt(i){return i==null||ei(i)===0}function ei(i){return i==null?null:Array.isArray(i)||typeof i=="string"?i.length:i instanceof Set?i.size:null}var ke=new Ce(""),Re=new Ce(""),Pn=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Pi=class{static min(e){return Fn(e)}static max(e){return kn(e)}static required(e){return Rn(e)}static requiredTrue(e){return Ln(e)}static email(e){return Bn(e)}static minLength(e){return Hn(e)}static maxLength(e){return jn(e)}static pattern(e){return Un(e)}static nullValidator(e){return $i()}static compose(e){return Qi(e)}static composeAsync(e){return Zi(e)}};function Fn(i){return e=>{if(e.value==null||i==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t<i?{min:{min:i,actual:e.value}}:null}}function kn(i){return e=>{if(e.value==null||i==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t>i?{max:{max:i,actual:e.value}}:null}}function Rn(i){return Jt(i.value)?{required:!0}:null}function Ln(i){return i.value===!0?null:{required:!0}}function Bn(i){return Jt(i.value)||Pn.test(i.value)?null:{email:!0}}function Hn(i){return e=>{let t=e.value?.length??ei(e.value);return t===null||t===0?null:t<i?{minlength:{requiredLength:i,actualLength:t}}:null}}function jn(i){return e=>{let t=e.value?.length??ei(e.value);return t!==null&&t>i?{maxlength:{requiredLength:i,actualLength:t}}:null}}function Un(i){if(!i)return $i;let e,t;return typeof i=="string"?(t="",i.charAt(0)!=="^"&&(t+="^"),t+=i,i.charAt(i.length-1)!=="$"&&(t+="$"),e=new RegExp(t)):(t=i.toString(),e=i),n=>{if(Jt(n.value))return null;let o=n.value;return e.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}function $i(i){return null}function Wi(i){return i!=null}function Gi(i){return wi(i)?_i(i):i}function qi(i){let e={};return i.forEach(t=>{e=t!=null?Z(Z({},e),t):e}),Object.keys(e).length===0?null:e}function Yi(i,e){return e.map(t=>t(i))}function zn(i){return!i.validate}function Xi(i){return i.map(e=>zn(e)?e:t=>e.validate(t))}function Qi(i){if(!i)return null;let e=i.filter(Wi);return e.length==0?null:function(t){return qi(Yi(t,e))}}function ti(i){return i!=null?Qi(Xi(i)):null}function Zi(i){if(!i)return null;let e=i.filter(Wi);return e.length==0?null:function(t){let n=Yi(t,e).map(Gi);return yi(n).pipe(Ci(qi))}}function ii(i){return i!=null?Zi(Xi(i)):null}function Fi(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function Ki(i){return i._rawValidators}function Ji(i){return i._rawAsyncValidators}function Qt(i){return i?Array.isArray(i)?i:[i]:[]}function _t(i,e){return Array.isArray(i)?i.includes(e):i===e}function ki(i,e){let t=Qt(e);return Qt(i).forEach(o=>{_t(t,o)||t.push(o)}),t}function Ri(i,e){return Qt(e).filter(t=>!_t(i,t))}var Ct=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=ti(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=ii(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},oe=class extends Ct{name;get formDirective(){return null}get path(){return null}},_e=class extends Ct{_parent=null;name=null;valueAccessor=null},yt=class{_cd;constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},$n={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},jr=te(Z({},$n),{"[class.ng-submitted]":"isSubmitted"}),Ur=(()=>{class i extends yt{constructor(t){super(t)}static \u0275fac=function(n){return new(n||i)(N(_e,2))};static \u0275dir=X({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&G("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[ie]})}return i})(),zr=(()=>{class i extends yt{constructor(t){super(t)}static \u0275fac=function(n){return new(n||i)(N(oe,10))};static \u0275dir=X({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&G("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[ie]})}return i})();var Je="VALID",vt="INVALID",ze="PENDING",et="DISABLED",Oe=class{},Dt=class extends Oe{value;source;constructor(e,t){super(),this.value=e,this.source=t}},it=class extends Oe{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},nt=class extends Oe{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},$e=class extends Oe{status;source;constructor(e,t){super(),this.status=e,this.source=t}},bt=class extends Oe{source;constructor(e){super(),this.source=e}},St=class extends Oe{source;constructor(e){super(),this.source=e}};function ni(i){return(xt(i)?i.validators:i)||null}function Wn(i){return Array.isArray(i)?ti(i):i||null}function oi(i,e){return(xt(e)?e.asyncValidators:i)||null}function Gn(i){return Array.isArray(i)?ii(i):i||null}function xt(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function en(i,e,t){let n=i.controls;if(!(e?Object.keys(n):n).length)throw new ht(1e3,"");if(!n[t])throw new ht(1001,"")}function tn(i,e,t){i._forEachChild((n,o)=>{if(t[o]===void 0)throw new ht(1002,"")})}var We=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,t){this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return be(this.statusReactive)}set status(e){be(()=>this.statusReactive.set(e))}_status=F(()=>this.statusReactive());statusReactive=O(void 0);get valid(){return this.status===Je}get invalid(){return this.status===vt}get pending(){return this.status==ze}get disabled(){return this.status===et}get enabled(){return this.status!==et}errors;get pristine(){return be(this.pristineReactive)}set pristine(e){be(()=>this.pristineReactive.set(e))}_pristine=F(()=>this.pristineReactive());pristineReactive=O(!0);get dirty(){return!this.pristine}get touched(){return be(this.touchedReactive)}set touched(e){be(()=>this.touchedReactive.set(e))}_touched=F(()=>this.touchedReactive());touchedReactive=O(!1);get untouched(){return!this.touched}_events=new vi;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(ki(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(ki(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Ri(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Ri(e,this._rawAsyncValidators))}hasValidator(e){return _t(this._rawValidators,e)}hasAsyncValidator(e){return _t(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(te(Z({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new nt(!0,n))}markAllAsDirty(e={}){this.markAsDirty({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(e))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&e.emitEvent!==!1&&this._events.next(new nt(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(te(Z({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new it(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new it(!0,n))}markAsPending(e={}){this.status=ze;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new $e(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(te(Z({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=et,this.errors=null,this._forEachChild(o=>{o.disable(te(Z({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Dt(this.value,n)),this._events.next(new $e(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(te(Z({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=Je,this._forEachChild(n=>{n.enable(te(Z({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(te(Z({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Je||this.status===ze)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Dt(this.value,t)),this._events.next(new $e(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(te(Z({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?et:Je}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=ze,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let n=Gi(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,o)=>n&&n._find(o),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new $e(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new Me,this.statusChanges=new Me}_calculateStatus(){return this._allControlsDisabled()?et:this.errors?vt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ze)?ze:this._anyControlsHaveStatus(vt)?vt:Je}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),o&&this._events.next(new it(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new nt(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){xt(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Wn(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Gn(this._rawAsyncValidators)}},Ge=class extends We{constructor(e,t,n){super(ni(t),oi(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){tn(this,!0,e),Object.keys(e).forEach(n=>{en(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(n=>{let o=this.controls[n];o&&o.patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,o)=>{n.reset(e?e[o]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,n)=>n._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,n]of Object.entries(this.controls))if(this.contains(t)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(t,n,o)=>((n.enabled||this.disabled)&&(t[o]=n.value),t))}_reduceChildren(e,t){let n=e;return this._forEachChild((o,s)=>{n=t(n,o,s)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Zt=class extends Ge{};var Le=new Ce("",{providedIn:"root",factory:()=>at}),at="always";function Ot(i,e){return[...e.path,i]}function st(i,e,t=at){si(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),Yn(i,e),Qn(i,e),Xn(i,e),qn(i,e)}function Mt(i,e,t=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),wt(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Et(i,e){i.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function qn(i,e){if(e.valueAccessor.setDisabledState){let t=n=>{e.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(t)})}}function si(i,e){let t=Ki(i);e.validator!==null?i.setValidators(Fi(t,e.validator)):typeof t=="function"&&i.setValidators([t]);let n=Ji(i);e.asyncValidator!==null?i.setAsyncValidators(Fi(n,e.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let o=()=>i.updateValueAndValidity();Et(e._rawValidators,o),Et(e._rawAsyncValidators,o)}function wt(i,e){let t=!1;if(i!==null){if(e.validator!==null){let o=Ki(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(c=>c!==e.validator);s.length!==o.length&&(t=!0,i.setValidators(s))}}if(e.asyncValidator!==null){let o=Ji(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(c=>c!==e.asyncValidator);s.length!==o.length&&(t=!0,i.setAsyncValidators(s))}}}let n=()=>{};return Et(e._rawValidators,n),Et(e._rawAsyncValidators,n),t}function Yn(i,e){e.valueAccessor.registerOnChange(t=>{i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&nn(i,e)})}function Xn(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&nn(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function nn(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Qn(i,e){let t=(n,o)=>{e.valueAccessor.writeValue(n),o&&e.viewToModelUpdate(n)};i.registerOnChange(t),e._registerOnDestroy(()=>{i._unregisterOnChange(t)})}function on(i,e){i==null,si(i,e)}function Zn(i,e){return wt(i,e)}function ri(i,e){if(!i.hasOwnProperty("model"))return!1;let t=i.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function Kn(i){return Object.getPrototypeOf(i.constructor)===rt}function sn(i,e){i._syncPendingControls(),e.forEach(t=>{let n=t.control;n.updateOn==="submit"&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function ai(i,e){if(!e)return null;Array.isArray(e);let t,n,o;return e.forEach(s=>{s.constructor===zi?t=s:Kn(s)?n=s:o=s}),o||n||t||null}function Jn(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}var eo={provide:oe,useExisting:ue(()=>to)},tt=Promise.resolve(),to=(()=>{class i extends oe{callSetDisabledState;get submitted(){return be(this.submittedReactive)}_submitted=F(()=>this.submittedReactive());submittedReactive=O(!1);_directives=new Set;form;ngSubmit=new Me;options;constructor(t,n,o){super(),this.callSetDisabledState=o,this.form=new Ge({},ti(t),ii(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){tt.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),st(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){tt.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){tt.then(()=>{let n=this._findContainer(t.path),o=new Ge({});on(o,t),n.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){tt.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){tt.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),sn(this.form,this._directives),this.ngSubmit.emit(t),this.form._events.next(new bt(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1),this.form._events.next(new St(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static \u0275fac=function(n){return new(n||i)(N(ke,10),N(Re,10),N(Le,8))};static \u0275dir=X({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&$("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[re([eo]),ie]})}return i})();function Li(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}function Bi(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var ot=class extends We{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,n){super(ni(t),oi(n,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),xt(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Bi(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Li(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Li(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Bi(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var io=i=>i instanceof ot,no=(()=>{class i extends oe{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Ot(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let t;return function(o){return(t||(t=Ue(i)))(o||i)}})();static \u0275dir=X({type:i,standalone:!1,features:[ie]})}return i})();var oo={provide:_e,useExisting:ue(()=>so)},Hi=Promise.resolve(),so=(()=>{class i extends _e{_changeDetectorRef;callSetDisabledState;control=new ot;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Me;constructor(t,n,o,s,c,_){super(),this._changeDetectorRef=c,this.callSetDisabledState=_,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=ai(this,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),ri(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){st(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){Hi.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,o=n!==0&&Ni(n);Hi.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Ot(t,this._parent):[t]}static \u0275fac=function(n){return new(n||i)(N(oe,9),N(ke,10),N(Re,10),N(Ve,10),N(qt,8),N(Le,8))};static \u0275dir=X({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[re([oo]),ie,Qe]})}return i})();var Wr=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275dir=X({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return i})(),ro={provide:Ve,useExisting:ue(()=>ao),multi:!0},ao=(()=>{class i extends rt{writeValue(t){let n=t??"";this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=Ue(i)))(o||i)}})();static \u0275dir=X({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&$("input",function(c){return o.onChange(c.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([ro]),ie]})}return i})(),lo={provide:Ve,useExisting:ue(()=>uo),multi:!0};var co=(()=>{class i{_accessors=[];add(t,n){this._accessors.push([t,n])}remove(t){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===t){this._accessors.splice(n,1);return}}select(t){this._accessors.forEach(n=>{this._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})}_isSameGroup(t,n){return t[0].control?t[0]._parent===n._control._parent&&t[1].name===n.name:!1}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Be({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),uo=(()=>{class i extends rt{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=A(Le,{optional:!0})??at;constructor(t,n,o,s){super(t,n),this._registry=o,this._injector=s}ngOnInit(){this._control=this._injector.get(_e),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this.setProperty("checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}setDisabledState(t){(this.setDisabledStateFired||t||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",t),this.setDisabledStateFired=!0}fireUncheck(t){this.writeValue(t)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(n){return new(n||i)(N(ye),N(Y),N(co),N(He))};static \u0275dir=X({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,o){n&1&&$("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[re([lo]),ie]})}return i})(),ho={provide:Ve,useExisting:ue(()=>po),multi:!0},po=(()=>{class i extends rt{writeValue(t){this.setProperty("value",parseFloat(t))}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=Ue(i)))(o||i)}})();static \u0275dir=X({type:i,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(n,o){n&1&&$("change",function(c){return o.onChange(c.target.value)})("input",function(c){return o.onChange(c.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([ho]),ie]})}return i})(),li=new Ce(""),fo={provide:_e,useExisting:ue(()=>go)},go=(()=>{class i extends _e{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(t){}model;update=new Me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,o,s,c){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=c,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ai(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let n=t.form.previousValue;n&&Mt(n,this,!1),st(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ri(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Mt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||i)(N(ke,10),N(Re,10),N(Ve,10),N(li,8),N(Le,8))};static \u0275dir=X({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[re([fo]),ie,Qe]})}return i})(),mo={provide:oe,useExisting:ue(()=>rn)},rn=(()=>{class i extends oe{callSetDisabledState;get submitted(){return be(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}_submitted=F(()=>this._submittedReactive());_submittedReactive=O(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new Me;constructor(t,n,o){super(),this.callSetDisabledState=o,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(wt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return st(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){Mt(t.control||null,t,!1),Jn(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this._submittedReactive.set(!0),sn(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new bt(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0,n={}){this.form.reset(t,n),this._submittedReactive.set(!1),n?.emitEvent!==!1&&this.form._events.next(new St(this.form))}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,o=this.form.get(t.path);n!==o&&(Mt(n||null,t),io(o)&&(st(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);on(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&Zn(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){si(this.form,this),this._oldForm&&wt(this._oldForm,this)}static \u0275fac=function(n){return new(n||i)(N(ke,10),N(Re,10),N(Le,8))};static \u0275dir=X({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&$("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[re([mo]),ie,Qe]})}return i})(),vo={provide:oe,useExisting:ue(()=>an)},an=(()=>{class i extends no{name=null;constructor(t,n,o){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){cn(this._parent)}static \u0275fac=function(n){return new(n||i)(N(oe,13),N(ke,10),N(Re,10))};static \u0275dir=X({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[re([vo]),ie]})}return i})(),_o={provide:oe,useExisting:ue(()=>ln)},ln=(()=>{class i extends oe{_parent;name=null;constructor(t,n,o){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){cn(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Ot(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||i)(N(oe,13),N(ke,10),N(Re,10))};static \u0275dir=X({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[re([_o]),ie]})}return i})();function cn(i){return!(i instanceof an)&&!(i instanceof rn)&&!(i instanceof ln)}var Co={provide:_e,useExisting:ue(()=>yo)},yo=(()=>{class i extends _e{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(t){}model;update=new Me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,o,s,c){super(),this._ngModelWarningConfig=c,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=ai(this,s)}ngOnChanges(t){this._added||this._setUpControl(),ri(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Ot(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(n){return new(n||i)(N(oe,13),N(ke,10),N(Re,10),N(Ve,10),N(li,8))};static \u0275dir=X({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[re([Co]),ie,Qe]})}return i})();var dn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ze({type:i});static \u0275inj=Xe({})}return i})(),Kt=class extends We{constructor(e,t,n){super(ni(t),oi(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){Array.isArray(e)?e.forEach(n=>{this.controls.push(n),this._registerControl(n)}):(this.controls.push(e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,n={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,t={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,n={}){let o=this._adjustIndex(e);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),t&&(this.controls.splice(o,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){tn(this,!1,e),e.forEach((n,o)=>{en(this,!1,o),this.at(o).setValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(e.forEach((n,o)=>{this.at(o)&&this.at(o).patchValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,o)=>{n.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,n)=>n._syncPendingControls()?!0:t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function ji(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var Gr=(()=>{class i{useNonNullable=!1;get nonNullable(){let t=new i;return t.useNonNullable=!0,t}group(t,n=null){let o=this._reduceControls(t),s={};return ji(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new Ge(o,s)}record(t,n=null){let o=this._reduceControls(t);return new Zt(o,n)}control(t,n,o){let s={};return this.useNonNullable?(ji(n)?s=n:(s.validators=n,s.asyncValidators=o),new ot(t,te(Z({},s),{nonNullable:!0}))):new ot(t,n,o)}array(t,n,o){let s=t.map(c=>this._createControl(c));return new Kt(s,n,o)}_reduceControls(t){let n={};return Object.keys(t).forEach(o=>{n[o]=this._createControl(t[o])}),n}_createControl(t){if(t instanceof ot)return t;if(t instanceof We)return t;if(Array.isArray(t)){let n=t[0],o=t.length>1?t[1]:null,s=t.length>2?t[2]:null;return this.control(n,o,s)}else return this.control(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Be({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var qr=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:Le,useValue:t.callSetDisabledState??at}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ze({type:i});static \u0275inj=Xe({imports:[dn]})}return i})(),Yr=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:li,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Le,useValue:t.callSetDisabledState??at}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ze({type:i});static \u0275inj=Xe({imports:[dn]})}return i})();var ce=["*"],Do=[[["","icon",""]],[["sh-icon"]],[["","title",""]],"*",[["","content",""]],[["p"]]],bo=["[icon]","sh-icon","[title]","*","[content]","p"];function So(i,e){i&1&&(E(0,"sh-icon",3),I(1,"info"),T())}function Mo(i,e){i&1&&(E(0,"sh-icon",3),I(1,"info"),T())}function Eo(i,e){i&1&&(E(0,"sh-icon",3),I(1,"warning"),T())}function wo(i,e){i&1&&(E(0,"sh-icon",3),I(1,"warning-octagon"),T())}function xo(i,e){i&1&&(E(0,"sh-icon",3),I(1,"check-circle"),T())}function Oo(i,e){i&1&&(E(0,"sh-icon",3),I(1,"question"),T())}function Vo(i,e){if(i&1){let t=he();E(0,"sh-icon",7),$("click",function(){H(t);let o=y();return j(o.removeAlert())}),I(1,"plus"),T()}}var To=["dialogRef"];function No(i,e){if(i&1){let t=he();U(0,"div",5),Fe("click",function(){H(t);let o=y(2);return j(o.isOpen.set(!1))}),z()}}function Ao(i,e){if(i&1&&(U(0,"dialog",2,0)(2,"div",3),b(3),z(),k(4,No,1,0,"div",4),z()),i&2){let t=y(),n=K(0);ve(n.class),se("width",n.width??"")("max-width",n.maxWidth??"")("max-height",n.maxHeight??"")("height",n.height??""),S(4),R(t.defaultOptionMerge().closeOnOutsideClick?4:-1)}}var Io=["shButton",""];var Po=["triggerRef"],Fo=["popoverRef"],ko=["popoverContentRef"],Ro=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],Lo=["[trigger]","button","[shButton]","*"];function Bo(i,e){if(i&1){let t=he();U(0,"div",6,1)(2,"div",7),Fe("click",function(o){H(t);let s=y();return j(s.eventClose(o))}),z(),U(3,"div",8,2),b(5,3),z()()}if(i&2){let t=y();Ee("id",t.id()+"hello"),S(3),Vi(t.menuStyle()),se("position-anchor",t.id())}}var Ho=()=>({closeOnButton:!1,closeOnEsc:!0});var jo=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],Uo=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],zo=["input"],$o=[[["label"]]],Wo=["label"];function Go(i,e){if(i&1&&(E(0,"div",3),I(1),T()),i&2){let t=y();S(),Ke(t.files()[0].name)}}function qo(i,e){if(i&1&&(E(0,"div",3),I(1),T()),i&2){let t=y();S(),we("",t.files().length," files selected")}}function Yo(i,e){if(i&1&&(E(0,"div",4),I(1),T()),i&2){let t=y();S(),Ke(t.filesOver()?t.overlayText():t.placeholder())}}var Xo=["inputRef"],Qo=["optionsRef"],Zo=["*",[["","menu",""]]],Ko=["*","[menu]"];function Jo(i,e){i&1&&(E(0,"sh-icon",5),I(1,"caret-down"),T())}var es=[[["label"]],[["input","type","range"]]],ts=["label","input[type=range]"],is=["optionsWrap"],ns=[[["label"]],[["","prefix",""]],[["","boxPrefix",""]],[["input"]],[["textarea"]]],os=["label","[prefix]","[boxPrefix]","input","textarea"],ss=()=>({closeOnButton:!1,closeOnEsc:!1}),un=(i,e)=>({$implicit:i,last:e}),pi=i=>({$implicit:i});function rs(i,e){if(i&1&&I(0),i&2){let t=y();we(" ",t.inputValue()," ")}}function as(i,e){i&1&&Pe(0)}function ls(i,e){if(i&1&&Ne(0,as,1,0,"ng-container",13),i&2){let t=y(3),n=t.$implicit,o=t.$index,s=t.$count;y(2);let c=K(3);ge("ngTemplateOutlet",c)("ngTemplateOutletContext",Wt(2,un,n,o===s-1))}}function cs(i,e){if(i&1&&I(0),i&2){let t=y(3).$implicit,n=y(2);we(" ",n.getLabel(t)," ")}}function ds(i,e){if(i&1){let t=he();E(0,"sh-chip",12),$("click",function(o){H(t);let s=y(2).$index,c=y(2);return j(c.removeSelectedOptionByIndex(o,s))}),k(1,ls,1,5,"ng-container")(2,cs,1,1),E(3,"sh-icon"),I(4,"x-bold"),T()()}if(i&2){let t=y(4),n=K(3);ve(t.selectClasses()),S(),R(n?1:2)}}function us(i,e){i&1&&Pe(0)}function hs(i,e){if(i&1&&Ne(0,us,1,0,"ng-container",13),i&2){let t=y(4),n=t.$implicit,o=t.$index,s=t.$count;y(2);let c=K(3);ge("ngTemplateOutlet",c)("ngTemplateOutletContext",Wt(2,un,n,o===s-1))}}function ps(i,e){if(i&1&&I(0),i&2){let t=y(4),n=t.$implicit,o=t.$index,s=t.$count,c=y(2);we(" ",o===s-1?c.getLabel(n):c.getLabel(n)+","," ")}}function fs(i,e){if(i&1&&k(0,hs,1,5,"ng-container")(1,ps,1,1),i&2){y(5);let t=K(3);R(t?0:1)}}function gs(i,e){if(i&1&&k(0,fs,2,1),i&2){y(4);let t=K(6);R(t?-1:0)}}function ms(i,e){if(i&1&&k(0,ds,5,3,"sh-chip",11)(1,gs,1,1),i&2){y(3);let t=K(5);R(t?0:1)}}function vs(i,e){if(i&1&&k(0,ms,2,1),i&2){let t=e.$implicit;R(t?0:-1)}}function _s(i,e){if(i&1&&Bt(0,vs,1,1,null,null,Lt),i&2){y();let t=K(2);Ht(t)}}function Cs(i,e){i&1&&Pe(0)}function ys(i,e){if(i&1&&Ne(0,Cs,1,0,"ng-container",14),i&2){y(2);let t=K(0);ge("ngTemplateOutlet",t)}}function Ds(i,e){if(i&1&&I(0),i&2){let t=y(2);we(" ",t.placeholderText()??""," ")}}function bs(i,e){if(i&1&&k(0,ys,1,1,"ng-container")(1,Ds,1,1),i&2){y();let t=K(0);R(t?0:1)}}function Ss(i,e){i&1&&(E(0,"sh-icon",6),I(1,"caret-down"),T())}function Ms(i,e){i&1&&Ae(0,"sh-spinner",7)}function Es(i,e){i&1&&(E(0,"sh-icon",6),I(1,"list-magnifying-glass"),T())}function ws(i,e){i&1&&(E(0,"sh-icon",6),I(1,"magnifying-glass"),T())}function xs(i,e){if(i&1){let t=he();E(0,"sh-icon",15),$("click",function(o){H(t);let s=y();return j(s.clear(o))}),I(1,"x-bold"),T()}}function Os(i,e){i&1&&(E(0,"sh-icon",6),I(1,"caret-down"),T())}function Vs(i,e){i&1&&(E(0,"sh-icon",6),I(1,"caret-up"),T())}function Ts(i,e){if(i&1&&(E(0,"p",9),I(1),T()),i&2){let t=y(3);S(),Ke(t.freeTextTitle())}}function Ns(i,e){i&1&&Pe(0)}function As(i,e){if(i&1&&Ne(0,Ns,1,0,"ng-container",13),i&2){y(2);let t=K(0);y();let n=K(1);ge("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(2,pi,t))}}function Is(i,e){i&1&&Pe(0)}function Ps(i,e){if(i&1&&Ne(0,Is,1,0,"ng-container",13),i&2){y(2);let t=K(0);y();let n=K(4);ge("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(2,pi,t))}}function Fs(i,e){if(i&1&&I(0),i&2){y(2);let t=K(1);we(" ",t," ")}}function ks(i,e){i&1&&Ae(0,"sh-divider")}function Rs(i,e){if(i&1){let t=he();k(0,Ts,2,1,"p",9),E(1,"li",16),$("click",function(){H(t);let o=y(2);return j(o.toggleOptionByIndex(-1))}),k(2,As,1,4,"ng-container")(3,Ps,1,4,"ng-container")(4,Fs,1,1),T(),k(5,ks,1,0,"sh-divider")}if(i&2){y();let t=K(0),n=y(),o=K(1),s=K(4);R(n.freeTextTitle()?0:-1),S(),G("selected",n.isSelected(-1))("focused",n.focusedOptionIndex()===-1),ge("id",n.getLabelAsSlug(t)),Ee("aria-selected",n.isSelected(-1)),S(),R(o?2:s?3:4),S(3),R(n.freeTextTitle()&&n.filteredOptions().length>0?5:-1)}}function Ls(i,e){if(i&1&&(gt(0)(1),k(2,Rs,6,9)),i&2){let t=y(),n=me(t.computedFreeTextOption());S();let o=me(t.getValue(n));S(),R(o.length>0?2:-1)}}function Bs(i,e){if(i&1&&(E(0,"p",9),I(1),T()),i&2){let t=y();S(),Ke(t.optionTitle())}}function Hs(i,e){if(i&1&&Ae(0,"sh-checkbox"),i&2){let t=y().$index,n=y();ve(n.selectClasses()),G("active",n.isSelected(t))}}function js(i,e){i&1&&Pe(0)}function Us(i,e){if(i&1&&Ne(0,js,1,0,"ng-container",13),i&2){let t=y().$implicit;y();let n=K(4);ge("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(2,pi,t))}}function zs(i,e){if(i&1&&I(0),i&2){let t=y().$implicit,n=y();we(" ",n.getLabel(t)," ")}}function $s(i,e){if(i&1){let t=he();E(0,"li",16),$("click",function(){let o=H(t).$index,s=y();return j(s.toggleOptionByIndex(o))}),k(1,Hs,1,4,"sh-checkbox",17),k(2,Us,1,4,"ng-container")(3,zs,1,1),T()}if(i&2){let t=e.$implicit,n=e.$index,o=y(),s=K(4);G("selected",o.isSelected(n))("focused",n===o.focusedOptionIndex()),ge("id",o.getLabelAsSlug(t)),Ee("aria-selected",o.isSelected(n)),S(),R(o.selectMultiple()?1:-1),S(),R(s?2:3)}}var Ws=["dragImageElement"],Gs=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],qs=["[sidenav]","[sidenav-closed-topbar]","*"];function Ys(i,e){i&1&&Ie(0,"div",1,0)}function Xs(i,e){if(i&1){let t=he();U(0,"div",7),Fe("drop",function(o){H(t);let s=y();return j(s.drop(o))})("dragenter",function(){H(t);let o=y();return j(o.dragEnter())})("dragleave",function(){H(t);let o=y();return j(o.dragLeave())}),z()}}function Qs(i,e){if(i&1){let t=he();U(0,"div",8),Fe("dragstart",function(o){H(t);let s=y();return j(s.dragStart(o))})("dragend",function(o){H(t);let s=y();return j(s.dragEnd(o))})("drag",function(o){H(t);let s=y();return j(s.drag(o))})("touchstart",function(o){H(t);let s=y();return j(s.touchStart(o))})("touchmove",function(o){H(t);let s=y();return j(s.touchMove(o))})("touchend",function(o){H(t);let s=y();return j(s.touchEnd(o))})("touchcancel",function(o){H(t);let s=y();return j(s.touchCancel(o))}),z()}}var Zs=["thead"],Ks=["tbody"],Js=[[["th"]],[["","thead",""]],"*",[["","table-no-rows",""]]],er=["th","[thead]","*","[table-no-rows]"];function tr(i,e){i&1&&Ae(0,"sh-progress-bar",2)}function ir(i,e){i&1&&(E(0,"div",3),b(1,3),T())}var nr=[[["","title",""]],"*"],or=["[title]","*"];function sr(i,e){i&1&&I(0,"Title")}function rr(i,e){i&1&&(E(0,"sh-icon",1),I(1,"caret-down"),T())}var ar=["bold","thin","light","fill","duotone"],Ye=(()=>{var e,t;let n=class n{constructor(){w(this,e,A(Y));w(this,t,A(ye))}ngAfterContentInit(){let s=f(this,e).nativeElement.textContent?.trim();if(!s)return;let c=s.split("-").at(-1);c&&ar.includes(c)&&f(this,t).addClass(f(this,e).nativeElement,c)}};e=new WeakMap,t=new WeakMap,n.\u0275fac=function(c){return new(c||n)},n.\u0275cmp=B({type:n,selectors:[["sh-icon"]],ngContentSelectors:ce,decls:1,vars:0,template:function(c,_){c&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=n;return i})();function At(i=null){let e=i??A(Y).nativeElement;if(!e)return O("");let t=O(e.className);if(typeof MutationObserver>"u")return t.asReadonly();let n=A(Te),o=new MutationObserver(s=>{for(let c of s)if(c.type==="attributes"&&c.attributeName==="class"){let _=c.target;t.set(_.className)}});return o.observe(e,{attributes:!0,attributeFilter:["class"]}),n.onDestroy(()=>o.disconnect()),t.asReadonly()}var It=new Ce("Ship UI Config"),lr=["simple","outlined","flat","raised"],Da=(()=>{var e;let t=class t{constructor(){w(this,e);x(this,e,A(It,{optional:!0})),this.variant=O(f(this,e)?.alertVariant??""),this._el=A(Y),this.alertService=V(null),this.id=V(null),this.currentClasses=At(),this.activeClass=F(()=>{let o=this.variant(),s=`${this.currentClasses()} sh-sheet`;return o?lr.find(_=>this.currentClasses().includes(_))?s:`${s} ${o}`:s})}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=B({type:t,selectors:[["sh-alert"]],hostVars:2,hostBindings:function(s,c){s&2&&ve(c.activeClass())},inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:bo,decls:19,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(s,c){if(s&1&&(W(Do),E(0,"div",1)(1,"div",2,0),b(3),b(4,1),T(),E(5,"div",2),k(6,So,2,0,"sh-icon",3)(7,Mo,2,0,"sh-icon",3)(8,Eo,2,0,"sh-icon",3)(9,wo,2,0,"sh-icon",3)(10,xo,2,0,"sh-icon",3)(11,Oo,2,0,"sh-icon",3),T(),E(12,"div",4),b(13,2),b(14,3),T(),k(15,Vo,2,0,"sh-icon",5),E(16,"div",6),b(17,4),b(18,5),T()()),s&2){let _=Oi(2);S(),se("display",_.children.length?"block":"none");let m=c.currentClasses();S(5),R(m.includes("primary")?6:m.includes("accent")?7:m.includes("warn")?8:m.includes("error")?9:m.includes("success")?10:11),S(9),R(c.id()?15:-1)}},dependencies:[Ye],encapsulation:2,changeDetection:0});let i=t;return i})();function Pt(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var ba=(()=>{let e=class e{constructor(){this.alertHistory=O([]),this.alertHistoryIsOpen=O(!1),this.alertHistoryIsHidden=O(!0)}error(n){this.addAlert({type:"error",title:n??"An error occured"})}success(n){this.addAlert({type:"success",title:n})}question(n){this.addAlert({type:"question",title:n})}warning(n){this.addAlert({type:"warn",title:n})}info(n){this.addAlert({type:"primary",title:n})}addAlert(n){let o=Pt();this.alertHistory.update(s=>[te(Z({},n),{isOpen:!0,animateIn:!0,animateOut:!1,id:o}),...s]),setTimeout(()=>{this.alertHistory.update(s=>s.map(c=>te(Z({},c),{animateIn:c.id===o?!1:c.animateIn})))},40),setTimeout(()=>{this.hideAlert(o)},2500)}removeAlert(n){this.alertHistory.update(o=>o.map(s=>te(Z({},s),{animateOut:s.id===n?!1:s.animateOut}))),setTimeout(()=>{this.alertHistory.update(o=>o.filter(s=>s.id!==n))},300)}hideAlert(n){this.alertHistory.update(o=>o.map(s=>te(Z({},s),{isOpen:s.id===n?!1:s.isOpen})))}setHidden(n){this.alertHistoryIsHidden.set(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),cr={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},dr=(()=>{var e,t;let n=class n{constructor(){w(this,e);w(this,t);x(this,e,A(je)),x(this,t,A(It,{optional:!0})),this.dialogRef=fe("dialogRef"),this.isOpen=ne(!1),this.options=V(),this.closed=xe(),this.defaultOptionMerge=F(()=>Z(te(Z({},cr),{class:f(this,t)?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=J(()=>{let s=this.dialogRef()?.nativeElement;s&&(this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(s.showModal(),s.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),f(this,e).addEventListener("keydown",c=>{c.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&c.preventDefault(),c.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(s.close(),queueMicrotask(()=>this.closed.emit())))})}ngOnDestroy(){this.abortController?.abort()}};e=new WeakMap,t=new WeakMap,n.\u0275fac=function(c){return new(c||n)},n.\u0275cmp=B({type:n,selectors:[["sh-dialog"]],viewQuery:function(c,_){c&1&&pe(_.dialogRef,To,5),c&2&&De()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ce,decls:2,vars:2,consts:[["dialogRef",""],["shDialog","",3,"class","width","max-width","max-height","height"],["shDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(c,_){c&1&&(W(),gt(0),k(1,Ao,5,11,"dialog",1)),c&2&&(me(_.defaultOptionMerge()),S(),R(_.isOpen()?1:-1))},encapsulation:2,changeDetection:0});let i=n;return i})(),Sa=(()=>{var e,t,n,o,hn,lt;let _=class _{constructor(){w(this,o);w(this,e);w(this,t);w(this,n);x(this,e,A(je)),x(this,t,f(this,e).querySelector("body")),x(this,n,A(Rt)),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}open(r,l){let u=f(this,n).injector,h=M(this,o,hn).call(this),g=!1,q=l||{},{data:C,closed:a}=q,d=gi(q,["data","closed"]);this.compRef&&M(this,o,lt).call(this,!0),this.insertedCompRef=Yt(r,{environmentInjector:u}),this.compRef=Yt(dr,{hostElement:h,environmentInjector:u,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let p=this.insertedCompRef.instance,v=p.data,D=p.closed;if(C){if(Ft(v))this.insertedCompRef.setInput("data",C);else if(!Ft(v))throw new Error("data is not an input signal on the passed component")}D instanceof Gt&&(this.closedFieldSub=D.subscribe(P=>{M(this,o,lt).call(this),!g&&(g=!0,a?.(P),(this.compRef?.instance.closed).emit(P))})),f(this,n).attachView(this.insertedCompRef.hostView),f(this,n).attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",d),this.compClosedSub=this.compRef.instance.closed.subscribe(()=>ee());let L=this;function ee(P=void 0){var Q;M(Q=L,o,lt).call(Q),!g&&(g=!0,D&&D instanceof Gt&&D.emit(P),a?.(P))}return{component:this.insertedCompRef.instance,close:ee,closed:this.compRef.instance.closed}}ngOnDestroy(){M(this,o,lt).call(this,!0)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakSet,hn=function(){let r=f(this,e).createElement("sh-dialog-ref");return r.id="sh-dialog-ref",f(this,e).getElementById("sh-dialog-ref")||f(this,t)?.append(r),f(this,e).getElementById("sh-dialog-ref")},lt=function(r=!1){let l=this;r||queueMicrotask(()=>u());function u(){l.insertedCompRef&&(f(l,n).detachView(l.insertedCompRef.hostView),l.closedFieldSub?.unsubscribe(),l.insertedCompRef.destroy()),l.compRef&&(f(l,n).detachView(l.compRef.hostView),l.compClosedSub?.unsubscribe(),l.compRef.destroy())}},_.\u0275fac=function(l){return new(l||_)},_.\u0275prov=Be({token:_,factory:_.\u0275fac,providedIn:"root"});let i=_;return i})();var Ma=(()=>{let e=class e{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-button-group"]],hostVars:2,hostBindings:function(o,s){o&2&&se("--btng-id",s.id)},ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),Ea=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["","shButton",""]],hostAttrs:[1,"sh-sheet-h"],attrs:Io,ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),wa=(()=>{var e;let t=class t{constructor(){w(this,e);x(this,e,A(It,{optional:!0})),this.class=O(f(this,e)?.cardType??"type-a")}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=B({type:t,selectors:[["sh-card"]],hostVars:2,hostBindings:function(s,c){s&2&&ve(c.class())},ngContentSelectors:ce,decls:1,vars:0,template:function(s,c){s&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=t;return i})(),ur=(()=>{let e=class e{constructor(){this.currentClassList=At()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-checkbox"]],ngContentSelectors:ce,decls:7,vars:2,consts:[[1,"box","sh-sheet"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"],[1,"label"]],template:function(o,s){o&1&&(W(),E(0,"div",0)(1,"sh-icon",1),I(2,"check-bold"),T(),E(3,"sh-icon",2),I(4,"minus-bold"),T()(),E(5,"div",3),b(6),T()),o&2&&ve(s.currentClassList())},dependencies:[Ye],encapsulation:2,changeDetection:0});let i=e;return i})(),hr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],ngContentSelectors:ce,decls:2,vars:0,template:function(o,s){o&1&&(W(),U(0,"div"),b(1),z())},encapsulation:2,changeDetection:0});let i=e;return i})();var Vt=4,pr=["scroll","auto"],fr={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},pn=(()=>{var e,t,fn,gn,mn,vn,_n,Tt;let r=class r{constructor(){w(this,t);w(this,e);x(this,e,A(je)),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=V(!1),this.disableOpenByClick=V(!1),this.isOpen=ne(!1),this.options=V(),this.closed=xe(),this.defaultOptionMerge=F(()=>Z(Z({},fr),this.options())),this.triggerRef=fe.required("triggerRef"),this.popoverRef=fe("popoverRef"),this.popoverContentRef=fe("popoverContentRef"),this.id=O("--"+Pt()),this.menuStyle=O(null),this.openAbort=null,this.openEffect=J(()=>{let u=this.isOpen();queueMicrotask(()=>{let h=this.popoverRef()?.nativeElement;if(!h){this.openAbort?.abort(),this.openAbort=null;return}u?(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,f(this,e).addEventListener("keydown",g=>{g.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&g.preventDefault(),g.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.openAbort?.signal}),h.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{M(this,t,fn).call(this,h).addEventListener("scroll",()=>M(this,t,Tt).call(this),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>M(this,t,Tt).call(this),{signal:this.openAbort?.signal}),M(this,t,Tt).call(this)})):(this.closed.emit(),this.openAbort?.abort(),this.openAbort=null)})})}toggleIsOpen(u){this.disableOpenByClick()||(u.preventDefault(),u.stopPropagation(),this.isOpen.set(!this.isOpen()))}eventClose(u){this.isOpen()&&this.isOpen.set(!1)}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null}};e=new WeakMap,t=new WeakSet,fn=function(u){let h=u.parentElement;for(;h;){if(pr.indexOf(window?.getComputedStyle(h).overflowY)>-1&&h.scrollHeight>h.clientHeight)return h;h=h.parentElement}return f(this,e).documentElement},gn=function(u,h){let g=u.left,C=u.bottom+Vt;return{left:g,top:C}},mn=function(u,h){let g=u.right+Vt,C=u.top;return{left:g,top:C}},vn=function(u,h){let g=u.right+Vt,C=u.bottom;return{left:g,top:C}},_n=function(u,h){let g=u.left,C=u.bottom-u.height-h.height-Vt;return{left:g,top:C}},Tt=function(){let u=this.triggerRef()?.nativeElement.getBoundingClientRect(),h=this.popoverContentRef()?.nativeElement.getBoundingClientRect(),g=[M(this,t,mn),M(this,t,vn)],C=[M(this,t,gn),M(this,t,_n)],a=this.asMultiLayer()?g:C;for(let p=0;p<a.length;p++){let v=a[p](u,h),D=v.left+(h?.width||0)>window.innerWidth,L=v.top+(h?.height||0)>window.innerHeight;if(!D&&!L){this.menuStyle.set({left:v.left+"px",top:v.top+"px"});return}}let d=a[0](u,h);this.menuStyle.set({left:d.left+"px",top:d.top+"px"})},r.\u0275fac=function(h){return new(h||r)},r.\u0275cmp=B({type:r,selectors:[["sh-popover"]],viewQuery:function(h,g){h&1&&(pe(g.triggerRef,Po,5),pe(g.popoverRef,Fo,5),pe(g.popoverContentRef,ko,5)),h&2&&De(3)},hostVars:2,hostBindings:function(h,g){h&2&&G("multi-layer",g.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Lo,decls:8,vars:4,consts:[["triggerRef",""],["popoverRef",""],["popoverContentRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],[1,"trigger-anchor"],["popover","manual",1,"popover"],[1,"overlay",3,"click"],[1,"popover-content"]],template:function(h,g){if(h&1){let C=he();W(Ro),U(0,"div",3,0),Fe("click",function(d){return H(C),j(g.toggleIsOpen(d))}),U(2,"div",4),b(3),b(4,1),b(5,2),z(),Ie(6,"div",5),z(),k(7,Bo,6,5,"div",6)}h&2&&(Ee("popovertarget",g.id()+"hello"),S(6),se("anchor-name",g.id()),S(),R(g.isOpen()?7:-1))},encapsulation:2,changeDetection:0});let i=r;return i})();var gr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-divider"]],ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})();var fi=(()=>{var e;let t=class t{constructor(){w(this,e,A(Y));kt(()=>{let o=typeof CSS<"u"&&CSS.supports("field-sizing","content"),s=f(this,e).nativeElement.querySelector("textarea");if(!o&&s!==null){let m=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},r=function(){setTimeout(m,0)};var c=m,_=r;s.addEventListener("change",m),s.addEventListener("cut",r),s.addEventListener("paste",r),s.addEventListener("drop",r),s.addEventListener("keydown",r),s.focus(),s.select(),m()}})}onClick(){f(this,e).nativeElement.querySelector("input")&&f(this,e).nativeElement.querySelector("input").focus(),f(this,e).nativeElement.querySelector("textarea")&&f(this,e).nativeElement.querySelector("textarea").focus()}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=B({type:t,selectors:[["sh-form-field"]],hostBindings:function(s,c){s&1&&$("click",function(){return c.onClick()})},ngContentSelectors:Uo,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(s,c){s&1&&(W(jo),b(0),U(1,"div",0)(2,"div",1),b(3,1),b(4,2),b(5,3),z(),b(6,4),b(7,5),U(8,"div",2),b(9,6),b(10,7),b(11,8),z()(),U(12,"div",3)(13,"div",4),b(14,9),z(),U(15,"div",5),b(16,10),z()())},encapsulation:2,changeDetection:0});let i=t;return i})(),xa=(()=>{let e=class e{constructor(){this._el=A(Y),this.inputRef=fe.required("input"),this.filesOver=O(!1),this.multiple=V(),this.accept=V(null),this.placeholder=ne("Click or drag files here"),this.overlayText=V("Drop files here"),this.files=ne([]),this.fileUploadClasses=F(()=>this._el.nativeElement.classList.toString()),this.inputEffect=J(()=>{let n=this.inputRef().nativeElement;n&&(n.placeholder&&this.placeholder.set(n.placeholder),n.addEventListener("dragover",o=>{o.preventDefault(),this.filesOver.set(!0)}),n.addEventListener("dragleave",o=>{o.preventDefault(),this.filesOver.set(!1)}),n.addEventListener("drop",o=>{o.preventDefault(),this.filesOver.set(!1);let s=o.dataTransfer?.files;s&&s.length>0&&(this.handleFileUpload(Array.from(s)),n.files=s)}),n.addEventListener("change",o=>{o.preventDefault(),this.handleFileUpload(Array.from(o.target.files))}))})}handleFileUpload(n){this.multiple()?this.files.update(o=>[...o,...n]):this.files.set(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-file-upload"]],viewQuery:function(o,s){o&1&&pe(s.inputRef,zo,5),o&2&&De()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:Wo,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(o,s){o&1&&(W($o),E(0,"sh-form-field"),b(1,0,["ngProjectAs","label",5,["label"]]),E(2,"div",2,0),k(4,Go,2,1,"div",3)(5,qo,2,1,"div",3)(6,Yo,2,1,"div",4),Ae(7,"input",5,1)(9,"div",6),T(),E(10,"sh-icon",7),I(11,"upload-simple"),T()()),o&2&&(ve(s.fileUploadClasses()),S(4),R(s.files().length===1?4:s.files().length>1?5:6),S(3),Ee("multiple",s.multiple())("accept",s.accept()),S(2),G("files-over",s.filesOver()))},dependencies:[fi,Ye],encapsulation:2,changeDetection:0});let i=e;return i})(),Oa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-list"]],ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})();function mr(i,e){let t=O(null),n=e.map(m=>m.toUpperCase()),o=A(He),s=o.get(Te);if(Ii(o.get(Si))||typeof MutationObserver>"u")return t.asReadonly();if(n.find(m=>i.nativeElement.querySelector(m)))return t.set(new Y(i.nativeElement.querySelector(e[0]))),t.asReadonly();let _=new MutationObserver(m=>{for(let r of m)if(r.addedNodes){for(let l of Array.from(r.addedNodes))if(l.nodeType===Node.ELEMENT_NODE&&n.includes(l.nodeName)){t.set(new Y(l)),_.disconnect();return}}});return _.observe(i.nativeElement,{childList:!0,subtree:!0}),s.onDestroy(()=>_.disconnect()),t.asReadonly()}function Cn(i,e){let t=A(He),n=t.get(Te),o=O([]),s=null,c=null,_=(r,l)=>{c&&c.disconnect();let u=Array.from(r.nativeElement.querySelectorAll(l.join(",")));o.set(u),typeof MutationObserver<"u"&&(c=new MutationObserver(h=>{queueMicrotask(()=>{let g=Array.from(r.nativeElement.querySelectorAll(l.join(",")));o.set(g)})}),c.observe(r.nativeElement,{childList:!0,subtree:!0})),n.onDestroy(()=>m())};s=J(()=>{let r=typeof i=="function"&&i[mi]?i():i,l=typeof e=="function"?e():e;r&&l?.length>0?_(r,l):(o.set([]),c&&(c.disconnect(),c=null))},{injector:t});function m(){s&&s.destroy(),c&&c.disconnect()}return{signal:o.asReadonly(),destroy:m}}function vr(i,e=["input","textarea"]){let t=i||mr(A(Y),e),n=O(void 0),o=A(He),s=o.get(Te),c=O(null);J(m=>{let r=t();if(!r)return;let l=r.nativeElement;l&&(_r(l),c.set(l),n.set(l.value??""),m(()=>{c.set(null)}))},{injector:o});let _=null;return J(()=>{let m=c();if(!m)return;_&&(_(),_=null);let r=u=>{n.set(u.detail.value)},l=u=>{n.set(u.target.value)};m.addEventListener("input",l),m.addEventListener("inputValueChanged",r),n.set(m.value),_=()=>{m.removeEventListener("input",l),m.removeEventListener("inputValueChanged",r)},s.onDestroy(()=>{_&&_()})},{injector:o}),J(()=>{let m=c();if(!m)return;let r=n();r&&(m.value=r,m.dispatchEvent(new Event("input")))},{injector:o}),n}function _r(i){return Object.defineProperty(i,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"value").get.call(this)},set(e){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"value").set.call(this,e);let n=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}});return this.dispatchEvent(n),e}}),i}var Va=(()=>{var e,t,n,yn,ci;let c=class c{constructor(){w(this,n);w(this,e);w(this,t);x(this,e,A(je)),x(this,t,A(ye)),this.asMultiLayer=V(!1),this.openIndicator=V(!1),this.disabled=V(!1),this.customOptionElementSelectors=V(["button"]),this.keepClickedOptionActive=V(!1),this.closeOnClick=V(!0),this.isOpen=ne(!1),this.closed=xe(),this.searchable=V(!1),this.activeOptionIndex=O(-1),this.inputRef=fe("inputRef"),this.optionsRef=fe("optionsRef"),this.options=Cn(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=F(()=>this.options.signal().filter(m=>!m.disabled)),this.inputValue=vr(this.inputRef),this.abortController=null,this.optionsEffect=J(()=>{if(this.abortController!==null&&(this.abortController.abort(),this.abortController=null),!this.isOpen())return;this.abortController=new AbortController,this.searchable()||f(this,e).documentElement.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal});let r=this.inputRef()?.nativeElement;r&&(queueMicrotask(()=>r.focus()),r.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal}),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",u=>{let h=u.target,g=this.activeElements();if(!g.length){let a=this.optionsEl();this.activeElements.set(a),g=a}let C=g.findIndex(a=>a===h);C>-1&&(this.activeOptionIndex.set(C),r.focus())}))}),this.keyDownEventListener=m=>{let r=this.activeOptionIndex();m.key==="ArrowDown"?(m.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(r))):m.key==="ArrowUp"?(m.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(r))):m.key==="Enter"?(m.preventDefault(),r>-1&&(this.activeElements()[r].click(),queueMicrotask(()=>this.close("active")))):m.key==="Tab"&&(m.preventDefault(),this.close("closed"))},this._lastElementList=[],this.activeElements=O([]),this.lastInputValue="",this.inputValueEffect=J(()=>{if(!this.searchable())return;let r=(this.inputValue()??"").toLowerCase();if(M(this,n,ci).call(this),!r||r===""){let u=this.optionsEl();this.activeElements.set(u),this._lastElementList=u;for(let h=0;h<u.length;h++)f(this,t).removeStyle(u[h],"order");return}if(!r||r==="")return;let l=this._lastElementList.length&&r.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=r;for(let u=0;u<l.length;u++){let h=l[u],g=h.textContent?.toLowerCase()||"",C=M(this,n,yn).call(this,g,r);h.value=C}l=l.filter(u=>u.value>0).sort((u,h)=>h.value-u.value);for(let u=0;u<l.length;u++)f(this,t).setStyle(l[u],"order",u);this.activeElements.set(l),this._lastElementList=l}),this.activeOptionIndexEffect=J(()=>{let m=this.activeElements(),r=this.activeOptionIndex();for(let l=0;l<m.length;l++)m[l].classList.remove("active");r>-1&&(m[r].scrollIntoView({block:"center"}),m[r].classList.add("active"))})}toggleIsOpen(m){m.preventDefault(),m.stopPropagation(),!this.disabled()&&(this.isOpen.set(!this.isOpen()),this.searchable()&&this.isOpen()&&setTimeout(()=>this.inputRef()?.nativeElement.focus()))}nextActiveIndex(m){let r=this.activeElements();if(!r.length){let u=this.optionsEl();this.activeElements.set(u),r=u}if(m===-1||m===r.length-1)return 0;let l=m+1;return r[l].disabled?this.nextActiveIndex(l):l}prevActiveIndex(m){let r=this.activeElements();if(!r.length){let u=this.optionsEl();this.activeElements.set(u),r=u}if(m===0||m===-1)return r.length-1;let l=m-1;return r[l].disabled?this.prevActiveIndex(l):l}close(m="closed",r){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||m==="closed")&&M(this,n,ci).call(this),this.isOpen.set(!1),this.closed.emit(m==="active"))}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}};e=new WeakMap,t=new WeakMap,n=new WeakSet,yn=function(m,r){if(!r)return 0;let l=0,u=-1,h=0,g=!0;for(let C=0;C<r.length;C++){let a=r[C];if(m.length>u+1&&m[u+1]===a)l+=C===0?100:150,u++,h++;else{let d=m.indexOf(a,u+1);if(C>0&&(g=!1),d===-1)return 0;l+=100,u=d,h++}}return g&&r.length===h&&(l+=1e3),l+=h*20,l},ci=function(){this.activeOptionIndex.set(-1);let m=this.optionsEl();for(let r=0;r<m.length;r++)m[r].classList.remove("active")},c.\u0275fac=function(r){return new(r||c)},c.\u0275cmp=B({type:c,selectors:[["sh-menu"]],viewQuery:function(r,l){r&1&&(pe(l.inputRef,Xo,5),pe(l.optionsRef,Qo,5)),r&2&&De(2)},hostVars:6,hostBindings:function(r,l){r&2&&G("disabled",l.disabled())("has-search",l.searchable())("multi-layer",l.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Ko,decls:12,vars:12,consts:[["formFieldWrapper",""],["inputRef",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","asMultiLayer","options"],["trigger","",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(r,l){if(r&1){let u=he();W(Zo),E(0,"sh-popover",3,0),zt("isOpenChange",function(g){return H(u),Ut(l.isOpen,g)||(l.isOpen=g),j(g)}),$("closed",function(){return H(u),j(l.close("fromPopover"))}),E(2,"div",4),$("click",function(g){return H(u),j(l.toggleIsOpen(g))}),b(3),k(4,Jo,2,0,"sh-icon",5),T(),E(5,"div",6)(6,"sh-form-field",7),Ae(7,"input",8,1),T()(),E(9,"div",9,2),$("click",function(){return H(u),j(l.close("active"))}),b(11,1),T()()}r&2&&(jt("isOpen",l.isOpen),ge("disableOpenByClick",!0)("asMultiLayer",l.asMultiLayer())("options",$t(11,Ho)),S(2),G("is-open",l.isOpen()),S(2),R(l.openIndicator()?4:-1),S(2),G("hidden",l.searchable()===!1),S(3),G("searching",l.searchable()&&l.inputValue()!==""))},dependencies:[pn,fi,Ye],encapsulation:2,changeDetection:0});let i=c;return i})(),Cr=(()=>{let e=class e{constructor(){this.value=V(void 0)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(o,s){o&1&&Ie(0,"div",0),o&2&&se("width",s.value(),"%")},encapsulation:2,changeDetection:0});let i=e;return i})(),Ta=(()=>{let e=class e{constructor(){this.currentClassList=At()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-radio"]],ngContentSelectors:ce,decls:2,vars:2,consts:[[1,"radio","sh-sheet"]],template:function(o,s){o&1&&(W(),Ie(0,"div",0),b(1)),o&2&&ve(s.currentClassList())},encapsulation:2,changeDetection:0});let i=e;return i})(),Na=(()=>{var e,t,n,o,s,di,Dn,bn,Sn;let l=class l{constructor(){w(this,s);w(this,e);w(this,t);w(this,n);w(this,o);x(this,e,A(Y)),x(this,t,null),x(this,n,null),x(this,o,0),this.unit=V(""),this.value=ne(f(this,o)),this.inputState=O({min:0,max:100,step:1}),this.valuePercentage=F(()=>{let{min:h,max:g}=this.inputState(),C=this.value()??h;if(isNaN(C))return 0;let a=g-h;if(a===0)return 0;let d=(C-h)/a*100;return Math.max(0,Math.min(100,d))}),this.trackFilledPercentage=F(()=>this.valuePercentage()),this.thumbPositionPercentage=F(()=>this.valuePercentage()),this.syncModelToInputEffect=J(()=>{let h=this.value();if(f(this,n)){let g=parseFloat(f(this,n).value);(isNaN(g)||String(g)!==String(h))&&(f(this,n).value=String(h))}})}get hasInputElement(){return!!f(this,n)}ngAfterViewInit(){x(this,n,f(this,e).nativeElement.querySelector('input[type="range"]')),f(this,n)?(M(this,s,Sn).call(this,f(this,n)),f(this,n).oninput=()=>{this.setNewInputValue(f(this,n).value)},f(this,n).addEventListener("inputValueChanged",h=>{this.setNewInputValue(h.detail.value)}),queueMicrotask(()=>M(this,s,di).call(this,!0)),M(this,s,Dn).call(this)):console.error('ShipRangeSlider: No <input type="range"> element found projected inside.')}setNewInputValue(h){let g=parseFloat(h??"0");if(!isNaN(g)){let{min:C,max:a}=this.inputState();this.value.set(Math.max(C,Math.min(a,g)))}}trackEvent(h){if(!f(this,n)||f(this,n).readOnly||f(this,n).disabled){h.preventDefault(),h.stopPropagation();return}if(h.target===f(this,n)||h.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let C=h.currentTarget.getBoundingClientRect(),a=h.clientX-C.left,d=C.width,{min:p,max:v,step:D}=this.inputState(),L=v-p;if(d>0&&L!==0&&D>0){let q=(a/d*L+p-p)/D,P=p+Math.round(q)*D,Q=M(this,s,bn).call(this,D);P=parseFloat(P.toFixed(Q));let de=Math.max(p,Math.min(v,P));this.value.set(de)}}ngOnDestroy(){f(this,t)&&f(this,t).disconnect(),f(this,n)&&(f(this,n).oninput=null)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,di=function(h=!1){if(!f(this,n))return;let g=parseFloat(f(this,n).min??"0")??0,C=parseFloat(f(this,n).max??"100")??100,a=f(this,n).step,d=1;if(a&&a.toLowerCase()!=="any"){let v=parseFloat(a);!isNaN(v)&&v>0&&(d=v)}this.inputState.set({min:g,max:C,step:d});let p=parseFloat(f(this,n).value??String(g))??g;if(h&&this.value()!==f(this,o)){let v=this.value(),D=Math.max(g,Math.min(C,v));p!==D&&(f(this,n).value=String(D)),v!==D&&this.value.set(D)}else{let v=Math.max(g,Math.min(C,p));this.value()!==v&&this.value.set(v)}},Dn=function(){if(!f(this,n)||typeof MutationObserver>"u")return;let h=["min","max","step","value","readonly","disabled"];x(this,t,new MutationObserver(g=>{let C=!1;for(let a of g)if(a.type==="attributes"&&h.includes(a.attributeName??"")){C=!0;break}C&&M(this,s,di).call(this,!1)})),f(this,t).observe(f(this,n),{attributes:!0,attributeFilter:h})},bn=function(h){if(isNaN(h)||Math.floor(h)===h)return 0;let C=h.toString().split(".")[1];return C?C.length:0},Sn=function(h){Object.defineProperty(h,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(h),"value").get.call(this)},set(g){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(h),"value").set.call(this,g);let a=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:g}});return this.dispatchEvent(a),g}})},l.\u0275fac=function(g){return new(g||l)},l.\u0275cmp=B({type:l,selectors:[["sh-range-slider"]],hostVars:2,hostBindings:function(g,C){g&2&&G("has-input",C.hasInputElement)},inputs:{unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:ts,decls:15,vars:10,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(g,C){g&1&&(W(es),U(0,"div",0),b(1),z(),U(2,"div",1)(3,"div",2),I(4),z(),U(5,"div",3),Fe("click",function(d){return C.trackEvent(d)}),b(6,1),U(7,"div",4),Ie(8,"div",5),z(),U(9,"div",6)(10,"div",7)(11,"div",8),I(12),z()()()(),U(13,"div",9),I(14),z()()),g&2&&(S(4),ft("",C.inputState().min,"",C.unit()),S(4),se("width",C.trackFilledPercentage(),"%"),S(),se("left",C.thumbPositionPercentage(),"%"),S(3),ft("",C.value(),"",C.unit()),S(2),ft("",C.inputState().max,"",C.unit()))},encapsulation:2,changeDetection:0});let i=l;return i})(),yr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-spinner"]],decls:0,vars:0,template:function(o,s){},encapsulation:2,changeDetection:0});let i=e;return i})(),Aa=(()=>{var e,t,n,o,ui,c,_,hi,le,Mn,En,wn;let g=class g{constructor(){w(this,o);w(this,e);w(this,t);w(this,n);w(this,c);w(this,_);x(this,e,A(Y)),this.value=V(),this.label=V(),this.asFreeText=V(!1),this.optionTitle=V(null),this.freeTextTitle=V(null),this.freeTextPlaceholder=V("Type to create a new option"),this.validateFreeText=V(),this.placeholder=V(),this.readonly=ne(!1),this.disabled=ne(!1),this.lazySearch=V(!1),this.inlineSearch=V(!1),this.asText=V(!1),this.isClearable=V(!0),this.selectMultiple=V(!1),this.optionTemplate=V(null),this.selectedOptionTemplate=V(null),this.placeholderTemplate=V(null),this.freeTextOptionTemplate=V(null),this.isOpen=ne(!1),this.isLoading=ne(!1),this.options=ne([]),this.selectedOptions=ne([]),this.cleared=xe(),this.onAddNewFreeTextOption=xe(),this.computedFreeTextOption=F(()=>{let a=this.inputValue(),d=this.value(),p=d?{}:a;return d&&typeof p=="object"&&(p[d]=a),p}),x(this,t,O(null)),this.inlineTemplate=Ti(pt),this.optionsWrapRef=fe.required("optionsWrap"),this.inputRefInput=O(null),x(this,n,typeof MutationObserver<"u"&&new MutationObserver(a=>{for(var d of a)d&&(d.target.nodeName==="INPUT"||d.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new Y(d.target)),f(this,n).disconnect())})),this.inputValue=O(""),this.prevInputValue=O(null),this.focusedOptionIndex=O(-1),this._isClearable=F(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=F(()=>f(this,e).nativeElement.classList.toString()),this.stretch=F(()=>this.selectClasses().includes("stretch")),this.small=F(()=>this.selectClasses().includes("small")),this.placeholderText=F(()=>{let a=this.placeholder(),d=this.inputRefEl();return a||d?.placeholder||null}),this.selectedOptionValues=F(()=>{let a=this.selectedOptions(),d=this.value();return d?a.map(p=>M(this,o,le).call(this,p,d)):a}),this.filteredOptions=F(()=>{let a=this.options()||[],d=this.label(),p=this.value(),v=this.inlineSearch(),D=this.inputValue().toLowerCase(),L=M(this,o,En).call(this,D);if(a.length<=0)return[];if(!v||D==="")return a;let q=a.filter(P=>{let Q=d?(M(this,o,le).call(this,P,d)??"").toString().toLowerCase():(P??"").toString().toLowerCase(),de=((p?M(this,o,le).call(this,P,p):P)??"").toString().toLowerCase(),Se=L.test(Q),dt=L.test(de);return Se||dt}).map(P=>{let Q=d?(M(this,o,le).call(this,P,d)??"").toString().toLowerCase():(P??"").toString().toLowerCase(),de=((p?M(this,o,le).call(this,P,p):P)??"").toString().toLowerCase(),Se=M(this,o,ui).call(this,Q,D),dt=M(this,o,ui).call(this,de,D);return{item:P,score:Math.max(Se,dt)}});return q.sort((P,Q)=>Q.score-P.score),q.map(P=>P.item)}),x(this,c,Pt()),this.inputRefEl=F(()=>{let a=this.inputRefInput();if(a===null)return;let d=a?a.nativeElement:null;return d?(d.autocomplete="off",d.setAttribute("role","combobox"),d.setAttribute("id",`combobox-${f(this,c)}`),d.setAttribute("aria-haspopup","listbox"),d.setAttribute("aria-owns","optionsWrapId"),M(this,o,Mn).call(this,d),d.addEventListener("focus",()=>{this.readonly()||this.open()}),d.addEventListener("input",p=>{let v=p.target.value,D=this.inputValue();v!==D&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(v),this.updateInputElValue())}),d.addEventListener("inputValueChanged",p=>{let v=p.detail.value,D=this.inputValue();if(v!==D){if(v===""){this.clear();return}this.setSelectedOptionsFromValue(v),this.setInputValueFromOptions(this.selectedOptions()),M(this,o,hi).call(this)}}),d):(console.warn("<sh-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.focusEffect=J(()=>{let a=this.inputRefEl();if(!a)return;let d=this.getLabelAsSlug(this.filteredOptions()[this.focusedOptionIndex()]);d?a.setAttribute("aria-activedescendant",d):a.removeAttribute("aria-activedescendant")}),this.openAbortController=null,this.isOpenEffect=J(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let d=this.inputRefEl(),v=this.asFreeText()?-1:0;if(!d)return;d.setAttribute("aria-expanded",this.isOpen().toString()),d.addEventListener("keydown",D=>{if((D.key==="Escape"||D.key==="Tab")&&(D.preventDefault(),this.close()),D.key==="Enter"&&(D.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex(),void 0,!0)),D.key==="ArrowDown"){D.preventDefault();let L=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(L>this.filteredOptions().length-1?v:L)}if(D.key==="ArrowUp"){D.preventDefault();let L=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(L<v?this.filteredOptions().length-1:L)}},{signal:this.openAbortController?.signal})}else{let d=this.inputRefEl();if(!d)return;d.setAttribute("aria-expanded",this.isOpen().toString()),this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=J(()=>{let a=this.inputValue();this._inputValue=a}),this.inputRefElEffect=J(()=>{let a=this.inputRefEl();a&&a.value!==this._inputValue&&(this.disabled.set(a.disabled),this.setSelectedOptionsFromValue(a.value),this.setInputValueFromOptions(this.selectedOptions()))}),this.selectedLabels=F(()=>{let a=this.selectedOptions();return this.label()?a.map(p=>this.getLabel(p)).join(", "):a.join(", ")}),this.inputState=F(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=F(()=>this.inlineSearch()||this.lazySearch()),x(this,_,J(()=>{if(this.selectMultiple()&&this.hasSearch())return;let a=this.selectedOptions(),d=this.value(),p=a.map(v=>d?M(this,o,le).call(this,v,d):v).join(",");this.inputValue.set(p)}))}ngOnInit(){this.setInitInput()}setInitInput(){let a=f(this,e).nativeElement.querySelector("input");if(a){this.inputRefInput.set(new Y(a));return}let d=f(this,e).nativeElement.querySelector("textarea");if(d){this.inputRefInput.set(new Y(d));return}typeof MutationObserver<"u"&&f(this,n).observe(f(this,e).nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(a){let d=this.options()||[],p=this.value(),v=this.selectMultiple(),D=a.toString().split(",");if(D.length===0){this.selectedOptions.set([]);return}let L=v?D:[D[0]],ee=d.filter(q=>{let P=p?M(this,o,le).call(this,q,p)?.toString():q?.toString();return P&&L.includes(P)});this.selectedOptions.set(v?ee:[ee[0]])}setInputValueFromOptions(a){let d=this.value();if(a.length===0){this.inputValue.set(""),this.updateInputElValue();return}let p=a.map(v=>d?M(this,o,le).call(this,v,d):v).join(",");p!==this.inputValue()&&(this.inputValue.set(p),this.updateInputElValue())}getValue(a){let d=this.value();return d?M(this,o,le).call(this,a,d):a}getLabel(a){let d=this.label();return d?M(this,o,le).call(this,a,d):a}getLabelAsSlug(a){let d=this.getLabel(a);return!d||typeof d!="string"?"":d.replaceAll(" ","-")}toggleOptionByIndex(a,d,p=!1){let v=this.filteredOptions()[a];if(this.asFreeText()&&a===-1){let Q=this.computedFreeTextOption(),de=this.getValue(Q);if(!(this.validateFreeText()??(ut=>!0))(de))return;this.options.update(ut=>ut.findIndex(xn=>this.getValue(xn)===de)>-1?ut:(this.onAddNewFreeTextOption.emit(de),[Q,...ut])),a=0,v=Q}else if(!v){this.close();return}d&&d.stopPropagation();let D=this.selectMultiple(),L=this._isClearable(),ee=this.value(),q=this.selectedOptionValues(),P=ee?M(this,o,le).call(this,v,ee):v;this.prevInputValue.set(null),f(this,t).set(null),this.selectedOptions.update(Q=>{let de=q.indexOf(P);if(de>-1){let Se=[...Q.slice(0,de),...Q.slice(de+1)];return L||Se.length>0?Se:Q}else return this.focusedOptionIndex.set(a),D?[...Q,v]:[v]}),D?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromOptions(this.selectedOptions()),D&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(a,d){a.stopPropagation(),this.selectedOptions.update(p=>[...p.slice(0,d),...p.slice(d+1)]),this.setInputValueFromOptions(this.selectedOptions())}isSelected(a){let d=this.value(),p=this.filteredOptions()[a],v=d?M(this,o,le).call(this,p,d):p;return this.selectedOptionValues().indexOf(v)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()?(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()):f(this,t).set(this.selectedOptions()),this.selectMultiple()||M(this,o,hi).call(this))}close(){this.isOpen.set(!1);let a=this.prevInputValue(),d=f(this,t).call(this);if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&a&&(this.inputValue.set(a),this.setInputValueFromOptions(this.selectedOptions())),!this.hasSearch()&&d!==null&&this.setInputValueFromOptions(d),this.selectMultiple()&&this.setInputValueFromOptions(this.selectedOptions())}clear(a){a?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let a=this.inputRefEl(),d=this.inputValue();a&&(a.value=d,a.dispatchEvent(new Event("input")))}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&f(this,n).disconnect()}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakSet,ui=function(a,d){if(!d)return 0;let p=0,v=-1,D=0,L=!0;for(let ee=0;ee<d.length;ee++){let q=d[ee];if(a.length>v+1&&a[v+1]===q)p+=ee===0?100:150,v++,D++;else{let P=a.indexOf(q,v+1);if(ee>0&&(L=!1),P===-1)return 0;p+=100,v=P,D++}}return L&&d.length===D&&(p+=1e3),p+=D*20,p},c=new WeakMap,_=new WeakMap,hi=function(){let a=this.selectedOptionValues()[0],d=this.value();if(a){let p=this.filteredOptions().findIndex(v=>d?M(this,o,le).call(this,v,d)===a:v===a);this.focusedOptionIndex.set(p)}else this.focusedOptionIndex.set(-1)},le=function(a,d){return d.split(".").reduce((p,v)=>p?.[v],a)},Mn=function(a){Object.defineProperty(a,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").get.call(this)},set(d){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").set.call(this,d);let v=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:d}});return this.dispatchEvent(v),d}})},En=function(a){let d=(a??"").toLowerCase(),p="^";for(let v of d)p+=".*"+M(this,o,wn).call(this,v);return p+=".*$",new RegExp(p,"i")},wn=function(a){return a.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")},g.\u0275fac=function(d){return new(d||g)},g.\u0275cmp=B({type:g,selectors:[["sh-select"]],contentQueries:function(d,p,v){d&1&&xi(v,p.inlineTemplate,pt,5),d&2&&De()},viewQuery:function(d,p){d&1&&pe(p.optionsWrapRef,is,5),d&2&&De()},hostVars:2,hostBindings:function(d,p){d&2&&G("multiple",p.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],optionTitle:[1,"optionTitle"],freeTextTitle:[1,"freeTextTitle"],freeTextPlaceholder:[1,"freeTextPlaceholder"],validateFreeText:[1,"validateFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],freeTextOptionTemplate:[1,"freeTextOptionTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared",onAddNewFreeTextOption:"onAddNewFreeTextOption"},ngContentSelectors:os,decls:33,vars:25,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],["id","optionsWrapId","role","listbox",1,"ship-options"],["title",""],[1,"option",3,"id","selected","focused"],[1,"small",3,"class"],[1,"small",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click","id"],[3,"class","active"]],template:function(d,p){if(d&1){let v=he();W(ns),gt(0)(1)(2)(3)(4)(5)(6),E(7,"sh-popover",2,0),zt("isOpenChange",function(L){return H(v),Ut(p.isOpen,L)||(p.isOpen=L),j(L)}),$("closed",function(){return H(v),j(p.close())}),E(9,"sh-form-field",3),$("click",function(){return H(v),j(p.open())}),b(10,0,["ngProjectAs","label",5,["label"]]),b(11,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),b(12,2,["ngProjectAs","[boxPrefix]",5,["","boxPrefix",""]]),E(13,"div",4)(14,"div",5),k(15,rs,1,1)(16,_s,2,0)(17,bs,2,1),b(18,3),b(19,4),T()(),k(20,Ss,2,0,"sh-icon",6)(21,Ms,1,0,"sh-spinner",7)(22,Es,2,0,"sh-icon",6)(23,ws,2,0,"sh-icon",6)(24,xs,2,0,"sh-icon",6)(25,Os,2,0,"sh-icon",6)(26,Vs,2,0,"sh-icon",6),T(),E(27,"div",8,1),k(29,Ls,3,3),k(30,Bs,2,1,"p",9),Bt(31,$s,4,8,"li",10,Lt),T()()}if(d&2){me(p.placeholderTemplate());let v=p.optionTemplate();S(),me(p.freeTextOptionTemplate());let D=p.selectedOptionTemplate(),L=p.inlineTemplate();S();let ee=me(p.selectedOptions()),q=p.inputState();S(),me(D||v||L),S(),me(v||L),S();let P=me(!p.asText()&&p.selectMultiple());S();let Q=me(p.isOpen()&&p.hasSearch()&&(P||p.inputValue().length>-1));S(),jt("isOpen",p.isOpen),ge("disableOpenByClick",!0)("options",$t(24,ss)),S(2),G("stretch",p.stretch())("small",p.small())("readonly",p.readonly()||p.disabled()),S(4),G("show-search-text",Q),S(),G("is-selected",q==="selected"),S(),R(p.asFreeText()&&p.inputValue().length>0&&!p.isOpen()?15:ee.length>0?16:Q?-1:17),S(5),R(q==="closed"?20:q==="loading"?21:q==="open-searching"?22:q==="searching"?23:q==="selected"&&p._isClearable()?24:q==="selected"&&!p._isClearable()?25:26),S(9),R(p.asFreeText()?29:-1),S(),R(p.optionTitle()&&p.filteredOptions().length>0?30:-1),S(),Ht(p.filteredOptions())}},dependencies:[Ai,pn,fi,Ye,ur,yr,hr,gr],encapsulation:2,changeDetection:0});let i=g;return i})();function Dr(i){let e=A(Y),t=A(Te),n=O(!1),o=typeof MutationObserver<"u"&&new MutationObserver(s=>{s.forEach(c=>{c.type==="attributes"&&c.attributeName==="class"&&n.set(e.nativeElement.classList.contains(i))})});return bi(e.nativeElement,()=>{o&&o.observe(e.nativeElement,{attributes:!0}),n.set(e.nativeElement.classList.contains(i))}),t.onDestroy(()=>{o&&o.disconnect()}),n}var Ia=(()=>{var e,t,n,o,s,ct;let _=class _{constructor(){w(this,s);w(this,e);w(this,t);w(this,n);w(this,o);x(this,e,A(je)),x(this,t,A(Y)),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=V(!1),this.isOpen=ne(!1),this.isOverlay=Dr("overlay"),x(this,n,f(this,t).nativeElement.parentElement),x(this,o,f(this,n).getBoundingClientRect&&f(this,n).getBoundingClientRect()),this.dragImageElement=fe.required("dragImageElement"),this.dragIsEnding=O(!1),this.dragIsOnScreen=O(!0),this.isDragging=O(!1),this.dragPositionX=O(0),this.dragActualPositionX=F(()=>{let r=this.dragPositionX(),l=280,u=100,h=.008,g=l/2,C=g-u/2,a=g+u/2;if(r>a){let d=r-a,v=(l-a)*(1-Math.exp(-h*d));return a+v}else if(r<C){let d=C-r,v=C*(1-Math.exp(-h*d));return C-v}return r}),this.draggingStyle=F(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=J(()=>{this.disableDrag()||(this.isDragging()?f(this,e).body.classList.add("dragging"):f(this,e).body.classList.remove("dragging"))})}drop(r){r.stopPropagation(),M(this,s,ct).call(this,r.clientX-f(this,o).left)}dragEnd(r){r.clientX-f(this,o).left<0&&M(this,s,ct).call(this,0),r.clientX-f(this,o).left>this.openWidthTreshold&&M(this,s,ct).call(this,this.openWidthTreshold)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragStart(r){r.stopPropagation(),x(this,o,f(this,n).getBoundingClientRect()),this.isDragging.set(!0)}drag(r){r.stopPropagation(),this.isDragging()&&(r.clientX!==0||r.clientY!==0)&&this.dragPositionX.set(r.clientX-f(this,o).left)}touchStart(r){r.stopPropagation(),this.isDragging.set(!0),x(this,o,f(this,n).getBoundingClientRect()),this.dragPositionX.set(0)}touchMove(r){r.stopPropagation(),this.isDragging()&&this.dragPositionX.set(r.touches[0].clientX-f(this,o).left)}touchEnd(r){r.stopPropagation(),M(this,s,ct).call(this,r.changedTouches[0].clientX-f(this,o).left)}touchCancel(r){r.stopPropagation(),this.isDragging.set(!1)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,ct=function(r){this.isDragging.set(!1),r>=this.openWidthTreshold?this.isOpen.set(!0):this.isOpen.set(!1)},_.\u0275fac=function(l){return new(l||_)},_.\u0275cmp=B({type:_,selectors:[["sh-sidenav"]],viewQuery:function(l,u){l&1&&pe(u.dragImageElement,Ws,5),l&2&&De()},hostVars:6,hostBindings:function(l,u){l&2&&G("open",u.isOpen())("closed",!u.isOpen())("is-dragging",u.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:qs,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(l,u){l&1&&(W(Gs),k(0,Ys,2,0,"div",1),k(1,Xs,1,0,"div",2),U(2,"div",3),b(3),z(),U(4,"div",4),k(5,Qs,1,0,"div",5),U(6,"div",6),b(7,1),z(),U(8,"main"),b(9,2),z()()),l&2&&(R(u.isOverlay()&&!u.disableDrag()?0:-1),S(),R(u.isOverlay()&&u.isDragging()?1:-1),S(3),se("transform",!u.disableDrag()&&u.draggingStyle()),S(),R(u.isOverlay()&&!u.disableDrag()?5:-1))},encapsulation:2,changeDetection:0});let i=_;return i})();var Pa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-stepper"]],ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})();var Fa=(()=>{var e;let t=class t{constructor(){w(this,e);x(this,e,A(br)),this.shSort=V(),this.sortAsc=F(()=>{let o=f(this,e).sortByColumn(),s=this.shSort();return!o||!s?!1:o===s}),this.sortDesc=F(()=>{let o=f(this,e).sortByColumn(),s=this.shSort();return!o||!s?!1:o===`-${s}`})}toggleSort(){let o=this.shSort();o&&f(this,e).toggleSort(o)}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=X({type:t,selectors:[["","shSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(s,c){s&1&&$("mousedown",function(){return c.toggleSort()}),s&2&&G("sort-asc",c.sortAsc())("sort-desc",c.sortDesc())},inputs:{shSort:[1,"shSort"]}});let i=t;return i})();var qe=1.5,br=(()=>{var e,t,n,o,s,Nt;let _=class _{constructor(){w(this,s);w(this,e);w(this,t);w(this,n);w(this,o);x(this,e,A(Y)),x(this,t,A(It,{optional:!0})),this.loading=V(!1),this.data=V([]),this.dataChange=xe(),this.sortByColumn=ne(null),this.currentClass=At(),this.thead=fe("thead"),this.tbody=fe("tbody"),this.columns=Cn(this.thead,["tr:first-child th"]),this.stickyHeaderHeight=F(()=>{let r=this.currentClass();return this.thead()?.nativeElement?.clientHeight??0}),this.bodyEffect=J(()=>{let r=this.tbody()?.nativeElement,l=this.thead()?.nativeElement;if(!r||!l)return;let u=this.stickyHeaderHeight();queueMicrotask(()=>{let h=l.querySelectorAll("tr.sticky").length>0,g=r.querySelectorAll("tr.sticky");if(g.length>0&&h)for(let a=0;a<g.length;a++)g[a].style.top=`${u}px`})}),this.class=O(f(this,t)?.tableType??"default"),this.resizing=O(!1),this.sizeTrigger=O(!0),x(this,n,null),x(this,o,O(!1)),this.scrollXState=O(-1),this.scrollYState=O(-1),this.canScrollX=O(!1),this.canScrollY=O(!1),this.columnSizes=F(()=>{this.sizeTrigger();let r=this.columns.signal();return r.reduce((l,u,h)=>{let g=u,C=g.getAttribute("size"),a=h===r.length-1;return C?`${l} ${C}`:g.classList.contains("sticky")||g.classList.contains("sticky-end")?`${l} min-content`:a?`${l} 1fr`:`${l} 1fr`},"")}),this.e=J(()=>{let r=this.sortByColumn();if(r===null)return f(this,o).call(this)||(x(this,n,this.data()),f(this,o).set(!0)),this.dataChange.emit(structuredClone(f(this,n)));let l=r.startsWith("-")?r.slice(1):r,u=r.startsWith("-"),h=this.data().sort((g,C)=>{let a=g[l],d=C[l],p=0;return typeof a=="number"&&typeof d=="number"&&(p=a-d),a instanceof Date&&d instanceof Date&&(p=a.getTime()-d.getTime()),typeof a=="string"&&typeof d=="string"&&(p=a.localeCompare(d,void 0,{sensitivity:"base"})),u?-p:p});this.dataChange.emit(h)})}updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){M(this,s,Nt).call(this)}onResize(r){M(this,s,Nt).call(this)}ngAfterViewInit(){queueMicrotask(()=>M(this,s,Nt).call(this))}toggleSort(r){let l=this.sortByColumn(),u=l===r?`-${r}`:l===`-${r}`?null:r;this.sortByColumn.set(u)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,Nt=function(){let r=f(this,e).nativeElement,l=-1,u=-1,h=r.scrollWidth>r.clientWidth+qe;if(h){let C=r.scrollLeft<=qe;r.scrollWidth-(r.scrollLeft+r.clientWidth)<qe?l=1:C||(l=0)}this.scrollXState.set(l),this.canScrollX.set(h);let g=r.scrollHeight>r.clientHeight+qe;if(g){let C=r.scrollTop<=qe;r.scrollHeight-(r.scrollTop+r.clientHeight)<qe?u=1:C||(u=0)}this.scrollYState.set(u),this.canScrollY.set(g)},_.\u0275fac=function(l){return new(l||_)},_.\u0275cmp=B({type:_,selectors:[["sh-table"]],viewQuery:function(l,u){l&1&&(pe(u.thead,Zs,5),pe(u.tbody,Ks,5)),l&2&&De(2)},hostVars:18,hostBindings:function(l,u){l&1&&$("scroll",function(){return u.onScroll()})("resize",function(g){return u.onResize(g)},Mi),l&2&&(ve(u.class()),se("grid-template-columns",u.columnSizes()),G("resizing",u.resizing())("can-scroll-x",u.canScrollX())("can-scroll-y",u.canScrollY())("scrolled-x",u.scrollXState()>=0)("scrolled-x-end",u.scrollXState()===1)("scrolled-y",u.scrollYState()>=0)("scrolled-y-end",u.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:er,decls:9,vars:2,consts:[["thead",""],["tbody",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(l,u){l&1&&(W(Js),k(0,tr,1,0,"sh-progress-bar",2),E(1,"thead",null,0),b(3),b(4,1),T(),E(5,"tbody",null,1),b(7,2),T(),k(8,ir,2,0,"div",3)),l&2&&(R(u.loading()?0:-1),S(8),R(u.loading()?-1:8))},dependencies:[Cr],encapsulation:2,changeDetection:0});let i=_;return i})(),ka=(()=>{let e=class e{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-tabs"]],hostVars:2,hostBindings:function(o,s){o&2&&se("--tabs-id",s.id)},ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),Ra=(()=>{let e=class e{constructor(){this.isActive=ne(!1),this.disallowToggle=V(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-toggle-card"]],hostVars:2,hostBindings:function(o,s){o&2&&G("active",s.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:or,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(o,s){o&1&&(W(nr),E(0,"h3",0),$("click",function(){return s.disallowToggle()||s.toggle()}),b(1,0,null,sr,1,0),k(3,rr,2,0,"sh-icon",1),T(),E(4,"div",2)(5,"div",3),b(6,1),T()()),o&2&&(S(3),R(s.disallowToggle()?-1:3))},dependencies:[Ye],encapsulation:2,changeDetection:0});let i=e;return i})(),La=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-toggle"]],ngContentSelectors:ce,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(o,s){o&1&&(W(),U(0,"div",0),Ie(1,"div",1),z(),b(2))},encapsulation:2,changeDetection:0});let i=e;return i})();var Ba=(()=>{let e=class e{constructor(){this.filesOver=O(!1),this.filesDropped=xe()}onDragOver(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!0)}onDragLeave(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!1)}ondrop(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!1);let o=n.dataTransfer?.files;o&&o.length>0&&this.filesDropped.emit(o)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=X({type:e,selectors:[["","shDragDrop",""]],hostVars:2,hostBindings:function(o,s){o&1&&$("dragover",function(_){return s.onDragOver(_)})("dragleave",function(_){return s.onDragLeave(_)})("drop",function(_){return s.ondrop(_)}),o&2&&G("filesover",s.filesOver())},outputs:{filesDropped:"filesDropped"}});let i=e;return i})();var Sr=(()=>{var e,t,n;let o=class o{constructor(){w(this,e);w(this,t);w(this,n);this.positionAnchorName=V.required(),this.anchorEl=V.required(),this.isOpen=V(!1),x(this,e,A(Y)),x(this,t,A(ye)),x(this,n,null),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc"),this.isBelow=O(!1),this.openEffect=J(()=>{this.isOpen()?setTimeout(()=>{f(this,e).nativeElement.showPopover(),this.calculateTooltipPosition()}):f(this,e).nativeElement.hidePopover()}),this.calculateTooltipPosition=()=>{if(!this.anchorEl())return;let c=this.anchorEl().nativeElement.getBoundingClientRect(),_=f(this,e).nativeElement,m=_.getBoundingClientRect();if(m.width===0&&m.height===0)return;let r=c.top-m.height<0;if(this.isBelow.set(r),!this.SUPPORTS_ANCHOR){let l=_.getBoundingClientRect(),u=c.top-l.height,h=c.left+c.width/2-l.width/2;r&&(u=c.top+c.height),h+l.width>window?.innerWidth&&(h=c.right-l.width/2),h<0&&(h=-(l.width/2)),f(this,t).setStyle(_,"left",`${h}px`),f(this,t).setStyle(_,"top",`${u}px`),f(this,t).setStyle(_,"position","fixed")}}}ngAfterViewInit(){x(this,n,new AbortController);let c={signal:f(this,n).signal,capture:!0};window?.addEventListener("scroll",this.calculateTooltipPosition,c),window?.addEventListener("resize",this.calculateTooltipPosition,{signal:f(this,n).signal}),setTimeout(()=>this.calculateTooltipPosition())}ngOnDestroy(){f(this,n)?.abort()}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o.\u0275fac=function(_){return new(_||o)},o.\u0275cmp=B({type:o,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(_,m){_&2&&(Ee("popover","manual"),se("position-anchor",m.positionAnchorName()),G("below",m.isBelow()))},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"]},ngContentSelectors:ce,decls:2,vars:0,consts:[[1,"tooltip-content"]],template:function(_,m){_&1&&(W(),U(0,"div",0),b(1),z())},encapsulation:2});let i=o;return i})(),ae=null,Ha=(()=>{var e,t,n,o,s;let c=class c{constructor(){w(this,e);w(this,t);w(this,n);w(this,o);w(this,s);this.shTooltip=V.required(),x(this,e,A(Y)),x(this,t,A(Ei)),x(this,n,A(Di)),x(this,o,A(ye)),x(this,s,null),this.DEBOUNCE_DELAY=500,this.anchorName=`--${Pt()}`,this.isOpen=O(!1)}onMouseEnter(){ae?.component.anchorName!==this.anchorName&&this.cleanupTooltip(),this.cancelCleanupTimer(),queueMicrotask(()=>this.showTooltip())}onMouseLeave(){this.startCleanupTimer()}ngOnDestroy(){this.cancelCleanupTimer(),this.cleanupTooltip()}startCleanupTimer(){this.cancelCleanupTimer(),this.debounceTimer=setTimeout(()=>{this.cleanupTooltip()},this.DEBOUNCE_DELAY)}cancelCleanupTimer(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)}showTooltip(){if(ae?.wrapperComponentRef||!this.shTooltip())return;let m,r=this.shTooltip();if(typeof r=="string")m=[[f(this,o).createText(r)]];else if(r instanceof pt)x(this,s,r.createEmbeddedView({})),f(this,s).detectChanges(),m=[f(this,s).rootNodes];else return;ae={wrapperComponentRef:f(this,t).createComponent(Sr,{environmentInjector:f(this,n),projectableNodes:m}),component:this},ae.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),ae.wrapperComponentRef.setInput("anchorEl",f(this,e)),ae.wrapperComponentRef?.setInput("isOpen",this.isOpen),ae.wrapperComponentRef.changeDetectorRef.detectChanges(),ae.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",()=>{this.cancelCleanupTimer()}),ae.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",()=>{this.startCleanupTimer()}),setTimeout(()=>{this.isOpen.set(!0)})}cleanupTooltip(){ae?.wrapperComponentRef&&(ae.component.cancelCleanupTimer(),ae.wrapperComponentRef.destroy(),ae.component.isOpen.set(!1),ae=null),f(this,s)&&(f(this,s).destroy(),x(this,s,null))}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakMap,c.\u0275fac=function(r){return new(r||c)},c.\u0275dir=X({type:c,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(r,l){r&1&&$("mouseenter",function(){return l.onMouseEnter()})("mouseleave",function(){return l.onMouseLeave()}),r&2&&(se("anchor-name",l.anchorName),G("active",l.isOpen()))},inputs:{shTooltip:[1,"shTooltip"]}});let i=c;return i})();export{Ve as a,Tn as b,zi as c,Pi as d,Ur as e,zr as f,to as g,ot as h,so as i,Wr as j,ao as k,uo as l,po as m,go as n,rn as o,an as p,yo as q,Gr as r,qr as s,Yr as t,Ye as u,It as v,Da as w,ba as x,dr as y,Sa as z,Ma as A,Ea as B,wa as C,ur as D,hr as E,gr as F,fi as G,xa as H,Oa as I,Va as J,Cr as K,Ta as L,Na as M,yr as N,Aa as O,Ia as P,Pa as Q,Fa as R,br as S,ka as T,Ra as U,La as V,Ba as W,Ha as X};
|