@duplicati/ngclient 0.0.24 → 0.0.26
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-26IRMVIY.js +2 -0
- package/chunk-2PUTRWRI.js +1 -0
- package/chunk-2SYB6ABM.js +1 -0
- package/chunk-47O5BYLZ.js +1 -0
- package/chunk-4Y76KESB.js +2 -0
- package/chunk-5X5UJ7CP.js +1 -0
- package/chunk-6TFXXYVK.js +1 -0
- package/chunk-7O44NQO3.js +1 -0
- package/{chunk-MJCUB3L3.js → chunk-AIQQJSGP.js} +1 -1
- package/chunk-B7SRENJI.js +1 -0
- package/chunk-BR45PK72.js +1 -0
- package/{chunk-NAZLO3UY.js → chunk-BVTTY2FQ.js} +1 -1
- package/chunk-C4S5PKAB.js +1 -0
- package/chunk-C5O62M3L.js +6 -0
- package/chunk-CGWELGPM.js +1 -0
- package/{chunk-3XQGPHYU.js → chunk-D2HTMQIW.js} +1 -1
- package/chunk-DESW2TCQ.js +1 -0
- package/chunk-DOGZZDWG.js +1 -0
- package/chunk-EPVXOSHI.js +1 -0
- package/chunk-FAAAWY76.js +1 -0
- package/chunk-FWNXTY54.js +1 -0
- package/chunk-GAJ43GZE.js +1 -0
- package/chunk-GWGOC52B.js +1 -0
- package/chunk-HH2EA6LF.js +1 -0
- package/chunk-KZLQWBL3.js +1 -0
- package/chunk-L7M2MTRL.js +1 -0
- package/chunk-LUAN4O53.js +1 -0
- package/chunk-MFLGWG77.js +1 -0
- package/chunk-MHCUWVA2.js +1 -0
- package/chunk-MSQ7LZTH.js +1 -0
- package/chunk-PD6257G7.js +1 -0
- package/chunk-QL753AWG.js +1 -0
- package/chunk-QNP3LI3Y.js +1 -0
- package/chunk-RJDP2FPE.js +7 -0
- package/chunk-RMZR2OAY.js +1 -0
- package/chunk-SDVRKDZS.js +1 -0
- package/{chunk-Z3RCJ5NZ.js → chunk-T6ENXWPD.js} +1 -1
- package/chunk-TLFDZKKI.js +1 -0
- package/chunk-UGZKHGQT.js +1 -0
- package/chunk-UMY3Y7LR.js +1 -0
- package/chunk-UPIWGO32.js +1 -0
- package/chunk-UVZO552H.js +1 -0
- package/chunk-VAAI6C2V.js +1 -0
- package/chunk-VJACGH6X.js +1 -0
- package/chunk-WHYVZMAC.js +1 -0
- package/chunk-WV3AOW4R.js +1 -0
- package/chunk-ZAREJJZA.js +1 -0
- package/chunk-ZVT4YXH5.js +1 -0
- package/index.html +3 -3
- package/main-HBZS5ADV.js +1 -0
- package/package.json +1 -1
- package/styles-JDUV6AV5.css +1 -0
- package/chunk-2653SOTQ.js +0 -1
- package/chunk-2EGLLTER.js +0 -1
- package/chunk-2MDIWOW5.js +0 -1
- package/chunk-3UHRO33D.js +0 -1
- package/chunk-4C6SJEAP.js +0 -1
- package/chunk-4HGECFGT.js +0 -1
- package/chunk-4JYRDCTW.js +0 -1
- package/chunk-4NLCRQLQ.js +0 -1
- package/chunk-637GTPYL.js +0 -1
- package/chunk-67JGZ4NF.js +0 -7
- package/chunk-AEQ7QJXE.js +0 -1
- package/chunk-BTF6XTSM.js +0 -1
- package/chunk-C3SI6ECZ.js +0 -1
- package/chunk-CESPRUJX.js +0 -1
- package/chunk-CUYURNCB.js +0 -1
- package/chunk-EOYIT7GV.js +0 -2
- package/chunk-GO7CLBZY.js +0 -1
- package/chunk-GTGXQQJJ.js +0 -1
- package/chunk-HJUBM7Q5.js +0 -1
- package/chunk-JE2I63Y6.js +0 -2
- package/chunk-JRKR54DW.js +0 -1
- package/chunk-KJQLPHGM.js +0 -1
- package/chunk-KV674FA2.js +0 -1
- package/chunk-NAPR7ILQ.js +0 -1
- package/chunk-NILUA3YB.js +0 -1
- package/chunk-NVZUM7FG.js +0 -1
- package/chunk-NYFN2CT6.js +0 -6
- package/chunk-OSB5J6SK.js +0 -1
- package/chunk-P6347OTT.js +0 -1
- package/chunk-RHGRQONA.js +0 -1
- package/chunk-RNJMBZB7.js +0 -1
- package/chunk-SGZGAY7X.js +0 -1
- package/chunk-SRW3NRX3.js +0 -1
- package/chunk-SRX3KYGO.js +0 -1
- package/chunk-T2ZGAXWS.js +0 -1
- package/chunk-TNE7LVPH.js +0 -1
- package/chunk-VA5L4XPW.js +0 -1
- package/chunk-VJDUCP4Z.js +0 -1
- package/chunk-VXKI3RQB.js +0 -1
- package/chunk-X2IPCPJN.js +0 -1
- package/chunk-YBWO6L26.js +0 -1
- package/chunk-ZLOKN5SO.js +0 -1
- package/main-WZ7WTPZS.js +0 -1
- package/styles-LL6J7JBI.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-ZAREJJZA.js";import{a as c}from"./chunk-BVTTY2FQ.js";import{X as u}from"./chunk-PD6257G7.js";import{B as e,E as l,Fc as h,N as i,R as a,X as s,Za as o}from"./chunk-RJDP2FPE.js";var p=class r{#e=s(m);#i=s(u);#s=s(c);#t=o(this.#e.getItemParsed("token")??null);#r=o(this.#e.getItemParsed("tokenSetTime")??null);#o=o(!1);tokenSetTime=this.#r.asReadonly();token=this.#t.asReadonly();isLoggingOut=this.#o.asReadonly();#n=h(()=>{if(!this.#t()){this.#e.clearAll(),this.#i.navigate(["/login"]);return}let t=Date.now();this.#e.setItemParsed("tokenSetTime",t),this.#e.setItemParsed("token",this.#t()),this.#r.set(this.#t()?t:null)});login(t="helloworld"){return this.#s.postApiV1AuthLogin({requestBody:{Password:t,RememberMe:!0}}).pipe(e(1),i(n=>this.#t.set(n.AccessToken??null)))}refreshToken(){return this.#s.postApiV1AuthRefresh().pipe(e(1),i(t=>this.#t.set(t.AccessToken??null)))}logout(){this.#o.set(!0),this.#s.postApiV1AuthRefreshLogout().pipe(e(1),l(()=>this.#o.set(!1)),i(t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])})).subscribe({error:t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])}})}static \u0275fac=function(n){return new(n||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as L}from"./chunk-2SYB6ABM.js";import{a as R,b as V}from"./chunk-BVTTY2FQ.js";import{n as O}from"./chunk-QL753AWG.js";import{a as M}from"./chunk-AIQQJSGP.js";import{Ab as T,Dc as c,E as h,Eb as l,Fb as o,Fc as v,Gb as w,L as B,R as I,Ra as u,Rb as S,X as r,Za as i,cc as p,fb as y,fc as k,ib as C,l as b,lb as _,oc as A,p as D,pc as E,vb as x}from"./chunk-RJDP2FPE.js";import{a as f,b as g}from"./chunk-7CGTOI24.js";var m=class a{#t=r(M);transform(e,...t){return this.#t(e).fromNow()}static \u0275fac=function(t){return new(t||a)};static \u0275pipe=C({name:"appRelativeTime",type:a,pure:!0})};var d=class a{#t=1e3;#d=r(V);#o=r(R);#n=r(L);#e=i(!1);#i=i(!1);#u=i(this.#t);#p=i(null);#r=i(!1);#s=i(!1);#a=i(null);#f=i(!1);statusData=this.#p.asReadonly();serverState=c(()=>{let e=this.#a();return e?(e.ProposedSchedule=e?.ProposedSchedule?.map(t=>{let s=t.Item1?this.#n.getBackupById(t.Item1):null;return g(f({},t),{backup:s})}),e):null});isFetching=this.#i.asReadonly();#l=null;#g=v(()=>{let e=this.#e(),t=this.#u();if(!e||!t||t<this.#t){this.#l&&window.clearInterval(this.#l);return}this.#l=window.setInterval(()=>{this.#m()},t)});start(){this.#r.set(!0),this.#c()}stop(){this.#r.set(!1)}startPollingProgress(){this.#m(),this.#e.set(!0)}stopPollingProgress(){this.#e.set(!1)}setProgressStatePollingInterval(e){if(e<this.#t){console.error(`Polling interval must be at least ${this.#t}ms`);return}this.#u.set(e)}serverStateEffect=v(()=>{if(this.#f()){this.stopPollingProgress();return}!this.#s()&&this.#r()?setTimeout(()=>{this.startPollingProgress(),this.#c()},1e3):this.stopPollingProgress()});#c(){if(this.#s())return;this.#s.set(!0);let e=this.#a()?.LastEventID,t=e==null?{}:{lastEventId:e,longpoll:!0,duration:"299s"};this.#o.getApiV1Serverstate(t).pipe(h(()=>this.#s.set(!1))).subscribe({next:s=>{this.#a()?.LastDataUpdateID!==s.LastDataUpdateID&&this.#n.getBackups(),this.#a.set(s)}})}#m(){this.#i.set(!0),this.#d.getApiV1Progressstate().pipe(B(e=>{let t=e.TaskID??null;return t===null?b(e):this.#o.getApiV1TaskByTaskid({taskid:t}).pipe(D(s=>g(f({},e),{task:s??null})))}),h(()=>this.#i.set(!1))).subscribe({next:e=>{let t=e.TaskID??null,s=e.BackupID??null;if(t!==null&&s!==null){let n=this.#n.getBackupById(s);e.backup=n}e.task?.Status==="Completed"?this.#e.set(!1):this.#e.set(!0),this.#p.set(e)},error:e=>{e.status===404&&this.#e.set(!1)}})}static \u0275fac=function(t){return new(t||a)};static \u0275prov=I({token:a,factory:a.\u0275fac,providedIn:"root"})};function j(a,e){if(a&1&&(l(0,"div",2),p(1),o(),w(2,"spk-progress-bar",3)),a&2){let t,s,n=S();u(),k("",(t=n.statusData())==null||t.task==null?null:t.task.Status," - ",(t=n.statusData())==null||t.backup==null||t.backup.Backup==null?null:t.backup.Backup.Name,""),u(),x("value",(s=n.statusData())!=null&&s.OverallProgress?((s=n.statusData())==null?null:s.OverallProgress)*100:3)}}function G(a,e){if(a&1&&(l(0,"div",2),p(1),A(2,"appRelativeTime"),o()),a&2){let t,s=S();u(),k("",(t=s.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",E(2,2,s.nextBackup().time),"")}}function F(a,e){a&1&&(l(0,"div",2),p(1,"No scheduled tasks"),o())}function U(a,e){a&1&&(l(0,"div",2),p(1,"Loading..."),o())}var P=class a{#t=r(d);statusData=this.#t.statusData;serverState=this.#t.serverState;nextBackup=c(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));ngOnInit(){this.#t.start()}ngOnDestroy(){this.#t.stop()}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=y({type:a,selectors:[["app-status-bar"]],decls:6,vars:1,consts:[[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"raised","primary",3,"value"]],template:function(t,s){if(t&1&&(l(0,"div",0)(1,"div",1),_(2,j,3,3)(3,G,3,4,"div",2)(4,F,2,0,"div",2)(5,U,2,0,"div",2),o()()),t&2){let n;u(2),T(!((n=s.statusData())==null||n.task==null)&&n.task.Status&&((n=s.statusData())==null||n.task==null?null:n.task.Status)!=="Completed"?2:s.nextBackup()?3:!s.statusData()||((n=s.statusData())==null||n.task==null?null:n.task.Status)==="Completed"?4:5)}},dependencies:[O,m],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{P as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as C}from"./chunk-L7M2MTRL.js";import"./chunk-ZAREJJZA.js";import"./chunk-BVTTY2FQ.js";import{g as b}from"./chunk-QL753AWG.js";import"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import{Ab as f,Eb as e,Fb as o,Gb as c,Ra as m,Sb as h,Tb as l,X as p,cc as i,fb as s,lb as u}from"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";var y=["*",[["","footer",""]]],_=["*","[footer]"],r=class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=s({type:t,selectors:[["app-custom-card"]],ngContentSelectors:_,decls:11,vars:0,consts:[[1,"card"],["src","/assets/noise/auth-noise.svg",1,"noise"],[1,"header-title"],["src","/assets/duplicati/duplicati.svg","alt",""],[1,"bg"]],template:function(n,d){n&1&&(h(y),e(0,"div",0),c(1,"img",1),e(2,"header")(3,"div",2),c(4,"img",3),i(5," Duplicati "),o()(),e(6,"main"),l(7),e(8,"footer"),l(9,1),o()()(),c(10,"div",4))},styles:['[_nghost-%COMP%]{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;background-color:var(--base-level-20)}body.dark [_nghost-%COMP%] .card[_ngcontent-%COMP%]:before{background:radial-gradient(rgba(var(--primary-rgb-900),1),#0000 60%)}.card[_ngcontent-%COMP%]{max-width:480px;width:100%;position:relative;z-index:100;background-color:var(--base-level-10);border-radius:var(--shape-5);box-shadow:var(--box-shadow-40);border:1px solid var(--base-level-30);overflow:hidden}.card[_ngcontent-%COMP%]:before{content:"";position:absolute;height:480px;transform:translateY(-285px);left:0;right:0;z-index:-2;background:radial-gradient(rgba(var(--primary-rgb-100),1),#0000 60%)}.card[_ngcontent-%COMP%] img.noise[_ngcontent-%COMP%]{position:absolute;height:480px;width:100%;transform:translateY(-285px);left:0;right:0;z-index:-1;mask-image:radial-gradient(#000,#0000 60%)}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 0;gap:12px;position:relative;z-index:10}.header-title[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;gap:10px}.header-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:28px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:2.5rem;position:relative;z-index:10}main[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{font:var(--paragraph-40);color:var(--base-level-60R);text-align:center;text-wrap:balance}.bg[_ngcontent-%COMP%]{position:fixed;inset:0;width:100vw;height:100vh;background-image:url(/assets/backgrounds/base-bg.svg);background-size:cover;background-position:center;background-repeat:no-repeat}body.dark[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{opacity:1}footer[_ngcontent-%COMP%]:empty{display:none}'],changeDetection:0})};function M(t,a){t&1&&(e(0,"h3"),i(1,"Logging out..."),o())}function O(t,a){t&1&&(e(0,"h3"),i(1,"You have successfully logged out your being redirected to login page."),o(),e(2,"button",0),i(3,"Go to login page"),o())}var g=class t{#e=p(C);isLoggingOut=this.#e.isLoggingOut;ngOnInit(){this.#e.logout()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=s({type:t,selectors:[["app-logout"]],decls:3,vars:1,consts:[["spk-button","","routerLink","/",1,"raised","primary"]],template:function(n,d){n&1&&(e(0,"app-custom-card"),u(1,M,2,0,"h3")(2,O,4,0),o()),n&2&&(m(),f(d.isLoggingOut()?1:2))},dependencies:[r,b],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as a,m as b}from"./chunk-C5O62M3L.js";import"./chunk-2PUTRWRI.js";import"./chunk-DNHLTHLR.js";import"./chunk-TLFDZKKI.js";import"./chunk-ZVT4YXH5.js";import"./chunk-6TFXXYVK.js";import"./chunk-BVTTY2FQ.js";import"./chunk-QL753AWG.js";import"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";export{a as createSourceDataForm,b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as se}from"./chunk-D2HTMQIW.js";import{a as $}from"./chunk-TLFDZKKI.js";import{b as L}from"./chunk-ZVT4YXH5.js";import{a as le}from"./chunk-T6ENXWPD.js";import{b as q,d as z,e as W,h as j,j as H,l as J,m as K,o as Q,p as X,q as Y,r as Z,s as ee,t as te}from"./chunk-6TFXXYVK.js";import"./chunk-ZAREJJZA.js";import{a as ae}from"./chunk-LUAN4O53.js";import"./chunk-2SYB6ABM.js";import{a as B}from"./chunk-BVTTY2FQ.js";import{g as ne,k as ie,o as oe,q as re}from"./chunk-QL753AWG.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import"./chunk-AIQQJSGP.js";import{Ab as C,Bb as x,Cb as T,Db as k,Dc as A,Eb as n,Fb as o,Fc as G,Gb as p,Hb as R,Ib as w,K as v,Kb as _,Oa as I,Qb as m,Ra as s,Rb as c,Ub as N,X as y,Za as h,c as U,cc as r,dc as E,ea as u,ec as b,fa as d,fb as D,lb as O,p as F,vb as S,xb as M}from"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";function ce(a,e){if(a&1){let t=_();n(0,"spk-form-field",28),p(1,"input",29),o(),n(2,"button",30),m("click",function(){u(t);let l=c(2);return d(l.beginRemoteRegistration())}),r(3," Register for remote control "),o()}}function ue(a,e){if(a&1&&(n(0,"div",26)(1,"label"),r(2,"Machine is now registered, open this link to add it to your account:"),o(),n(3,"a",31),r(4),o()()),a&2){let t=c(2);s(3),N("href",t.remoteControlClaimUrl(),I),s(),E(t.remoteControlClaimUrl())}}function de(a,e){a&1&&(n(0,"div",26)(1,"label"),r(2,"Registering, please wait..."),o()())}function ge(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.cancelRemoteRegistration())}),r(1," Cancel registration "),o()}}function Ce(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.disableRemoteControl())}),r(1," Disable remote control "),o()}}function _e(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.enableRemoteControl())}),r(1," Enable remote control "),o(),n(2,"button",32),m("click",function(){u(t);let l=c(2);return d(l.deleteRemoteControl())}),r(3," Delete remote control setup "),o()}}function fe(a,e){if(a&1&&(n(0,"div",5),O(1,ce,4,0)(2,ue,5,2,"div",26)(3,de,3,0,"div",26)(4,ge,2,0,"button",27)(5,Ce,2,0,"button",27)(6,_e,4,0),o()),a&2){let t=c();s(),C(t.remoteControlState()==="inactive"?1:-1),s(),C(t.remoteControlState()==="registered"?2:-1),s(),C(t.remoteControlState()==="registering"?3:-1),s(),C(t.remoteControlState()==="registering"||t.remoteControlState()==="registeringfaulted"||t.remoteControlState()==="registered"?4:-1),s(),C(t.remoteControlState()==="connected"||t.remoteControlState()==="enabled"?5:-1),s(),C(t.remoteControlState()==="disabled"?6:-1)}}function Se(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.pauseSettings.controls.timeType.setValue(l.value))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t.value),s(),b(" ",t.label," ")}}function he(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.pauseSettings.controls.time.setValue(l))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t),s(),E(t)}}function be(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.settingsForm.controls.usageStatistics.setValue(l.value))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t.value),s(),b(" ",t.label," ")}}var f=new Z,me=[{value:"s",label:"Seconds"},{value:"m",label:"Minutes"},{value:"h",label:"Hours"}],V=[{value:"en",label:"English"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"es",label:"Spanish"},{value:"it",label:"Italian"}],pe=[{value:"",label:"System default (information)"},{value:"information",label:"Usage statistics, warnings, errors, and crashes"},{value:"warning",label:"Warnings, errors and crashes"},{value:"error",label:"Errors and crashes"},{value:"crash",label:"Crashes only"},{value:"none",label:"None / disabled"}],P=class a{#i=y(le);#o=y($);#e=y(B);sysinfo=this.#o.systemInfo;isDarkMode=this.#i.isDarkMode;editAs=h("list");settingsForm=f.group({pauseSettings:f.group({time:f.control(0),timeType:f.control("s")}),language:f.control("en"),usageStatistics:f.control(""),updateChannel:f.control(""),remoteControlRegisterUrl:f.control("")});remoteControlState=h("unknown");remoteControlClaimUrl=h(null);sysInfoEffect=G(()=>{this.settingsForm.controls.remoteControlRegisterUrl.patchValue(this.sysinfo()?.RemoteControlRegistrationUrl??"")});get pauseSettings(){return this.settingsForm.controls.pauseSettings}langSignal=L(this.settingsForm.controls.language.valueChanges);timeTypeOptions=h(me);timeOptions=se([this.pauseSettings.controls.timeType.valueChanges.pipe(v("s")),this.pauseSettings.controls.time.valueChanges.pipe(v(null))],U(F(([e,t])=>{let i=this.#r(e);return t!==null?i.filter(l=>l.toString().includes(t.toString())):i}),v([])));languageOptions=A(()=>this.langSignal()?V.filter(e=>e.value===this.langSignal()):V);usageStatisticsOptions=h(pe);ngOnInit(){this.refreshRemoteControlStatus(),this.getServerSettings()}submit(){let e=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#e.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e,"update-channel":this.settingsForm.controls.updateChannel.value}}).subscribe({next:t=>{console.log("res",t)},error:t=>{console.error("err",t)}})}getServerSettings(){return this.#e.getApiV1Serversettings().subscribe({next:e=>{let t=e["startup-delay"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(t.substring(0,t.length-1)==""?"0":t.substring(0,t.length-1)),timeType:t.substring(-1)===""?"s":t.substring(-1)},usageStatistics:e["usage-reporter-level"],updateChannel:e["update-channel"]})}})}languageDisplay(e){return e?V.find(t=>t.value===e)?.label??null:null}typeDisplay(e){return e==null?null:me.find(t=>t.value===e)?.label??null}usageDisplay(e){return typeof e!="string"?null:pe.find(t=>t.value===e)?.label??null}setDarkMode(){this.#i.setDarkMode()}setLightMode(){this.#i.setLightMode()}#r(e){let t=e==="h"?25:61;return new Array(t).fill(0).map((i,l)=>l)}repeatRegisterTimer=null;#t(e){e.RegistrationUrl&&this.remoteControlClaimUrl.set(e.RegistrationUrl),console.log(e),e.IsConnected?this.remoteControlState.set("connected"):e.IsEnabled?this.remoteControlState.set("enabled"):e.CanEnable?this.remoteControlState.set("disabled"):e.IsRegisteringFaulted?this.remoteControlState.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.remoteControlState.set("registered"):this.remoteControlState.set("registering"):this.remoteControlState.set("inactive");let t=this.remoteControlState();console.log(t),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:i=>{this.#t(i)},error:i=>{this.#n(i)}})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:i=>{this.#t(i)},error:i=>{this.#n(i)}})},5e3)),e.IsRegistering&&e.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:i=>{this.#t(i)}})}#n(e){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>{this.#t(t)}})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}beginRemoteRegistration(){this.remoteControlState.set("registering");let e=this.settingsForm.controls.remoteControlRegisterUrl.value;this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:e}}).subscribe({next:t=>{this.#t(t)},error:t=>{this.#n(t)}})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}deleteRemoteControl(){let e=this;confirm("Are you sure you want to delete the remote control registration?")&&e.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>{e.#t(t)},error:t=>{e.#n(t)}})}getRemoteControlStatusText(){let e=this.remoteControlState();return e==="enabled"?"Remote control is enabled but not connected":e==="connected"?"Remote control is connected":e==="registering"?"Registering machine...":e==="registeringfaulted"?"Registration failed":e==="registered"?"Registered, waiting for accept":e==="disabled"?"Remote control is configured but not enabled":e==="unknown"?"...loading...":"Remote control is not set up"}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=D({type:a,selectors:[["app-settings"]],decls:100,vars:11,consts:[[1,"content",3,"submit","formGroup"],[1,"title"],["type","submit","spk-button","",1,"raised","primary"],[1,"left"],[1,"right","remote-control"],[1,"field-row"],[1,"right"],["formGroupName","pauseSettings",1,"field-row"],[3,"displayValue"],["type","text","formControlName","timeType"],["options",""],[3,"value"],["type","search","formControlName","time"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"outlined","primary"],["type","radio","name","updateChannel","value","","formControlName","updateChannel"],["type","radio","name","updateChannel","value","stable","formControlName","updateChannel"],["type","radio","name","updateChannel","value","beta","formControlName","updateChannel"],["type","radio","name","updateChannel","value","experimental","formControlName","updateChannel"],["type","radio","name","updateChannel","value","canary","formControlName","updateChannel"],["href","#"],["type","text","formControlName","usageStatistics"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl","formControlName","remoteControlRegisterUrl"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"],[3,"click","value"]],template:function(t,i){if(t&1&&(p(0,"app-status-bar"),n(1,"form",0),m("submit",function(){return i.submit()}),n(2,"header")(3,"div",1)(4,"h2"),r(5,"Settings"),o(),n(6,"p"),r(7,"Configure your backup settings."),o()(),n(8,"button",2),r(9,"Save changes"),o()(),n(10,"section")(11,"div",3)(12,"h3"),r(13,"Remote access control"),o(),n(14,"p"),r(15),o()(),n(16,"div",4),O(17,fe,7,6,"div",5),o()(),n(18,"section")(19,"div",3)(20,"h3"),r(21,"Pause after startup or hibernation"),o(),n(22,"p"),r(23," Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. "),o()(),n(24,"div",6)(25,"div",7)(26,"spk-select",8),p(27,"input",9),R(28,10),T(29,Se,2,2,"option",11,x),w(),o(),n(31,"spk-select"),p(32,"input",12),R(33,10),T(34,he,2,2,"option",11,x),w(),o()()()(),n(36,"section")(37,"div",3)(38,"h3"),r(39,"Color theme"),o(),n(40,"p"),r(41,"Customize your application theme"),o()(),n(42,"div",6)(43,"div",13)(44,"img",14),m("click",function(){return i.setLightMode()}),o(),n(45,"img",15),m("click",function(){return i.setDarkMode()}),o()()()(),n(46,"section")(47,"div",3)(48,"h3"),r(49,"Update channel"),o(),n(50,"p"),r(51,"Update channel selection is not implemented yet."),o()(),n(52,"div",16)(53,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("")}),n(54,"spk-radio",18),r(55),p(56,"input",19),o(),n(57,"p"),r(58),o()(),n(59,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("stable")}),n(60,"spk-radio",18),r(61," Stable "),p(62,"input",20),o(),n(63,"p"),r(64,"Official releases"),o()(),n(65,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("beta")}),n(66,"spk-radio",18),r(67," Beta "),p(68,"input",21),o(),n(69,"p"),r(70," Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. "),o()(),n(71,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("experimental")}),n(72,"spk-radio",18),r(73," Experimental "),p(74,"input",22),o(),n(75,"p"),r(76,"Specific builds for developers only. Not for use with important data."),o()(),n(77,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("canary")}),n(78,"spk-radio",18),r(79," Canary "),p(80,"input",23),o(),n(81,"p"),r(82,"Individual builds for developers only. Not for use with important data."),o()()()(),n(83,"section")(84,"div",3)(85,"h3"),r(86,"Usage statistics"),o(),n(87,"p"),r(88," Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate "),n(89,"a",24),r(90,"public usage statistics."),o(),p(91,"br")(92,"br"),r(93," All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. "),o()(),n(94,"div",6)(95,"spk-select",8),p(96,"input",25),R(97,10),T(98,be,2,2,"option",11,x),w(),o()()()()),t&2){let l,g;s(),S("formGroup",i.settingsForm),s(14),E(i.getRemoteControlStatusText()),s(2),C(i.remoteControlState()!=="unknown"?17:-1),s(9),S("displayValue",i.typeDisplay(i.settingsForm.value.pauseSettings==null?null:i.settingsForm.value.pauseSettings.timeType)),s(3),k(i.timeTypeOptions()),s(5),k(i.timeOptions()),s(10),M("active",!i.isDarkMode()),s(),M("active",i.isDarkMode()),s(10),b(" Default (",(l=i.sysinfo())==null?null:l.DefaultUpdateChannel,") "),s(3),b("Same as the base install version: ",(g=i.sysinfo())==null?null:g.ServerVersionType,""),s(37),S("displayValue",i.usageDisplay(i.settingsForm.controls.usageStatistics.value)),s(3),k(i.usageStatisticsOptions())}},dependencies:[ee,j,X,Y,q,H,z,W,te,J,Q,K,ae,ne,oe,ie,re],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}.remote-control[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}"],changeDetection:0})};export{P as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as rn}from"./chunk-B7SRENJI.js";import{Ea as xt,e as Jr,g as en,j as se,l as tn,m as Ut,n as Ae}from"./chunk-DESW2TCQ.js";import{A as Rt,B as ie,Ba as jr,Bc as Ye,C as Rr,E as He,F as Q,G as wt,Gb as Wr,H as wr,Hc as Xr,I as br,K as Ir,L as P,M as Ar,N as R,O as b,Pa as Nr,Qb as Gr,R as C,S as Dr,Sa as j,T as Mr,Ta as Lr,U as A,V as bt,W as q,Wa as Mt,X as l,Xa as $r,Xb as Qr,Y as Tr,Yb as Kr,Z as Or,Zb as Zr,_ as Er,a as vr,aa as Ie,ba as k,c as mr,cb as kr,da as We,e as yt,eb as Tt,f as Ct,fb as _r,g as W,gb as zr,h as E,ha as It,hb as Qe,ia as Ur,j as G,ja as At,k as I,kb as Fr,l as f,la as xr,m as we,ma as oe,mb as qr,n as yr,na as Ge,nb as Br,o as Cr,p as m,pb as Ot,q as Ve,qb as Et,r as M,ra as Pr,rb as Vr,s as be,sa as Dt,sc as Yr,t as Sr,tc as Ke,u as St,ub as Hr,w as X,xc as Ze,y as J,z as ne}from"./chunk-RJDP2FPE.js";import{a as h,b as D}from"./chunk-7CGTOI24.js";var g="primary",_e=Symbol("RouteTitle"),$t=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 de(t){return new $t(t)}function Xn(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],u=t[o];if(s[0]===":")i[s.substring(1)]=u;else if(s!==u.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function Jn(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!_(t[e],n[e]))return!1;return!0}function _(t,n){let e=t?kt(t):void 0,r=n?kt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!gn(t[i],n[i]))return!1;return!0}function kt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function gn(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 vn(t){return t.length>0?t[t.length-1]:null}function Y(t){return yr(t)?t:Br(t)?I(Promise.resolve(t)):f(t)}var ei={exact:yn,subset:Cn},mn={exact:ti,subset:ri,ignored:()=>!0};function nn(t,n,e){return ei[e.paths](t.root,n.root,e.matrixParams)&&mn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function ti(t,n){return _(t,n)}function yn(t,n,e){if(!te(t.segments,n.segments)||!et(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!yn(t.children[r],n.children[r],e))return!1;return!0}function ri(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>gn(t[e],n[e]))}function Cn(t,n,e){return Sn(t,n,n.segments,e)}function Sn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!te(i,e)||n.hasChildren()||!et(i,e,r))}else if(t.segments.length===e.length){if(!te(t.segments,e)||!et(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Cn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!te(t.segments,i)||!et(t.segments,i,r)||!t.children[g]?!1:Sn(t.children[g],n,o,r)}}function et(t,n,e){return n.every((r,i)=>mn[e](t[i].parameters,r.parameters))}var V=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=de(this.queryParams),this._queryParamMap}toString(){return oi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tt(this)}},ee=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=de(this.parameters),this._parameterMap}toString(){return wn(this)}};function ni(t,n){return te(t,n)&&t.every((e,r)=>_(e.parameters,n[r].parameters))}function te(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function ii(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===g&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==g&&(e=e.concat(n(i,r)))}),e}var ye=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>new fe,providedIn:"root"})}return t})(),fe=class{parse(n){let e=new zt(n);return new V(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${De(n.root,!0)}`,r=ui(n.queryParams),i=typeof n.fragment=="string"?`#${si(n.fragment)}`:"";return`${e}${r}${i}`}},oi=new fe;function tt(t){return t.segments.map(n=>wn(n)).join("/")}function De(t,n){if(!t.hasChildren())return tt(t);if(n){let e=t.children[g]?De(t.children[g],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==g&&r.push(`${i}:${De(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=ii(t,(r,i)=>i===g?[De(t.children[g],!1)]:[`${i}:${De(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${tt(t)}/${e[0]}`:`${tt(t)}/(${e.join("//")})`}}function Rn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(t){return Rn(t).replace(/%3B/gi,";")}function si(t){return encodeURI(t)}function _t(t){return Rn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(t){return decodeURIComponent(t)}function on(t){return rt(t.replace(/\+/g,"%20"))}function wn(t){return`${_t(t.path)}${ai(t.parameters)}`}function ai(t){return Object.entries(t).map(([n,e])=>`;${_t(n)}=${_t(e)}`).join("")}function ui(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${Xe(e)}=${Xe(i)}`).join("&"):`${Xe(e)}=${Xe(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ci=/^[^\/()?;#]+/;function Pt(t){let n=t.match(ci);return n?n[0]:""}var li=/^[^\/()?;=#]+/;function hi(t){let n=t.match(li);return n?n[0]:""}var di=/^[^=?&#]+/;function fi(t){let n=t.match(di);return n?n[0]:""}var pi=/^[^&#]+/;function gi(t){let n=t.match(pi);return n?n[0]:""}var zt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){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[g]=new v(n,e)),r}parseSegment(){let n=Pt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new ee(rt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=hi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Pt(this.remaining);i&&(r=i,this.capture(r))}n[rt(e)]=rt(r)}parseQueryParam(n){let e=fi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=gi(this.remaining);s&&(r=s,this.capture(r))}let i=on(e),o=on(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=Pt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=g);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[g]:new v([],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 b(4011,!1)}};function bn(t){return t.segments.length>0?new v([],{[g]:t}):t}function In(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=In(i);if(r===g&&o.segments.length===0&&o.hasChildren())for(let[s,u]of Object.entries(o.children))n[s]=u;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new v(t.segments,n);return vi(e)}function vi(t){if(t.numberOfChildren===1&&t.children[g]){let n=t.children[g];return new v(t.segments.concat(n.segments),n.children)}return t}function re(t){return t instanceof V}function mi(t,n,e=null,r=null){let i=An(t);return Dn(i,n,e,r)}function An(t){let n;function e(o){let s={};for(let a of o.children){let c=e(a);s[a.outlet]=c}let u=new v(o.url,s);return o===t&&(n=u),u}let r=e(t.root),i=bn(r);return n??i}function Dn(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return jt(i,i,i,e,r);let o=yi(n);if(o.toRoot())return jt(i,i,new v([],{}),e,r);let s=Ci(o,i,t),u=s.processChildren?Oe(s.segmentGroup,s.index,o.commands):Tn(s.segmentGroup,s.index,o.commands);return jt(i,s.segmentGroup,u,e,r)}function nt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function xe(t){return typeof t=="object"&&t!=null&&t.outlets}function jt(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([a,c])=>{o[a]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;t===n?s=e:s=Mn(t,n,e);let u=bn(In(s));return new V(u,o,i)}function Mn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Mn(o,n,e)}),new v(t.segments,r)}var it=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&nt(r[0]))throw new b(4003,!1);let i=r.find(xe);if(i&&i!==vn(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function yi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new it(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let u={};return Object.entries(o.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=!0:u===".."?n++:u!=""&&i.push(u))}),i):[...i,o]},[]);return new it(e,n,r)}var ce=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Ci(t,n,e){if(t.isAbsolute)return new ce(n,!0,0);if(!e)return new ce(n,!1,NaN);if(e.parent===null)return new ce(e,!0,0);let r=nt(t.commands[0])?0:1,i=e.segments.length-1+r;return Si(e,i,t.numberOfDoubleDots)}function Si(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new ce(r,!1,i-o)}function Ri(t){return xe(t[0])?t[0].outlets:{[g]:t}}function Tn(t,n,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return Oe(t,n,e);let r=wi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[g]=new v(t.segments.slice(r.pathIndex),t.children),Oe(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?Ft(t,n,e):r.match?Oe(t,0,i):Ft(t,n,e)}function Oe(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=Ri(e),i={};if(Object.keys(r).some(o=>o!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let o=Oe(t.children[g],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Tn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function wi(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],u=e[r];if(xe(u))break;let a=`${u}`,c=r<e.length-1?e[r+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!an(a,c,s))return o;r+=2}else{if(!an(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Ft(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(xe(o)){let a=bi(o.outlets);return new v(r,a)}if(i===0&&nt(e[0])){let a=t.segments[n];r.push(new ee(a.path,sn(e[0]))),i++;continue}let s=xe(o)?o.outlets[g]:`${o}`,u=i<e.length-1?e[i+1]:null;s&&u&&nt(u)?(r.push(new ee(s,sn(u))),i+=2):(r.push(new ee(s,{})),i++)}return new v(r,{})}function bi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Ft(new v([],{}),0,r))}),n}function sn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function an(t,n,e){return t==e.path&&_(n,e.parameters)}var Ee="imperative",S=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}(S||{}),U=class{id;url;constructor(n,e){this.id=n,this.url=e}},pe=class extends U{type=S.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}')`}},L=class extends U{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},O=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(O||{}),ot=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(ot||{}),B=class extends U{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},K=class extends U{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},Pe=class extends U{error;target;type=S.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})`}},st=class extends U{urlAfterRedirects;state;type=S.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})`}},qt=class extends U{urlAfterRedirects;state;type=S.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})`}},Bt=class extends U{urlAfterRedirects;state;shouldActivate;type=S.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})`}},Vt=class extends U{urlAfterRedirects;state;type=S.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})`}},Ht=class extends U{urlAfterRedirects;state;type=S.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})`}},Wt=class{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Gt=class{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Qt=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kt=class{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Zt=class{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yt=class{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},at=class{routerEvent;position;anchor;type=S.Scroll;constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},je=class{},ge=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Ii(t,n){return t.providers&&!t._injector&&(t._injector=Tt(t.providers,n,`Route: ${t.path}`)),t._injector??n}function N(t){return t.outlet||g}function Ai(t,n){let e=t.filter(r=>N(r)===n);return e.push(...t.filter(r=>N(r)!==n)),e}function ze(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 Xt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ze(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Fe(this.rootInjector)}},Fe=(()=>{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 Xt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(q(Ie))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ut=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=Jt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Jt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=er(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return er(n,this._root).map(e=>e.value)}};function Jt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Jt(t,e);if(r)return r}return null}function er(t,n){if(t===n.value)return[n];for(let e of n.children){let r=er(t,e);if(r.length)return r.unshift(n),r}return[]}var T=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ue(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ct=class extends ut{snapshot;constructor(n,e){super(n),this.snapshot=e,cr(this,n)}toString(){return this.snapshot.toString()}};function On(t){let n=Di(t),e=new E([new ee("",{})]),r=new E({}),i=new E({}),o=new E({}),s=new E(""),u=new Z(e,r,o,s,i,g,t,n.root);return u.snapshot=n.root,new ct(new T(u,[]),n)}function Di(t){let n={},e={},r={},i="",o=new le([],n,r,i,e,g,t,null,{});return new ht("",new T(o,[]))}var Z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,u,a){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[_e]))??f(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(m(n=>de(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(n=>de(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function lt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i?.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&Un(i)&&(r.resolve[_e]=i.title),r}var le=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[_e]}constructor(n,e,r,i,o,s,u,a,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this.routeConfig=a,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??=de(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=de(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}')`}},ht=class extends ut{url;constructor(n,e){super(e),this.url=n,cr(this,e)}toString(){return En(this._root)}};function cr(t,n){n.value._routerState=t,n.children.forEach(e=>cr(t,e))}function En(t){let n=t.children.length>0?` { ${t.children.map(En).join(", ")} } `:"";return`${t.value}${n}`}function Nt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,_(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),_(n.params,e.params)||t.paramsSubject.next(e.params),Jn(n.url,e.url)||t.urlSubject.next(e.url),_(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function tr(t,n){let e=_(t.params,n.params)&&ni(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||tr(t.parent,n.parent))}function Un(t){return typeof t.title=="string"||t.title===null}var Mi=new A(""),Ti=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g;activateEvents=new oe;deactivateEvents=new oe;attachEvents=new oe;detachEvents=new oe;routerOutletData=Pr(void 0);parentContexts=l(Fe);location=l($r);changeDetector=l(Ze);inputBinder=l(gt,{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 b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(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 b(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new rr(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,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=Qe({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[We]})}return t})(),rr=class t{route;childContexts;parent;outletData;__ngOutletInjector(n){return new t(this.route,this.childContexts,n,this.outletData)}constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===Z?this.route:n===Fe?this.childContexts:n===Mi?this.outletData:this.parent.get(n,e)}},gt=new A(""),un=(()=>{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=Ve([r.queryParams,r.params,r.data]).pipe(P(([o,s,u],a)=>(u=h(h(h({},o),s),u),a===0?f(u):Promise.resolve(u)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=Xr(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of s.inputs)e.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function Oi(t,n,e){let r=Ne(t,n._root,e?e._root:void 0);return new ct(r,n)}function Ne(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Ei(t,n,e);return new T(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(u=>Ne(t,u)),s}}let r=Ui(n.value),i=n.children.map(o=>Ne(t,o));return new T(r,i)}}function Ei(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Ne(t,r,i);return Ne(t,r)})}function Ui(t){return new Z(new E(t.url),new E(t.params),new E(t.queryParams),new E(t.fragment),new E(t.data),t.outlet,t.component,t)}var Le=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},xn="ngNavigationCancelingError";function dt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=re(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Pn(!1,O.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Pn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[xn]=!0,e.cancellationCode=n,e}function xi(t){return jn(t)&&re(t.url)}function jn(t){return!!t&&t[xn]}var Pi=(t,n,e,r)=>m(i=>(new nr(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),nr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Nt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ue(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=ue(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),u=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:u})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ue(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=ue(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 Kt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Nt(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 u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(u.contexts),s.attachRef=u.componentRef,s.route=u.route.value,s.outlet&&s.outlet.attach(u.componentRef,u.route.value),Nt(u.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)}},ft=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},he=class{component;route;constructor(n,e){this.component=n,this.route=e}};function ji(t,n,e){let r=t._root,i=n?n._root:null;return Me(r,i,e,[r.value])}function Ni(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"&&!Mr(t)?t:n.get(t):r}function Me(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ue(n);return t.children.forEach(s=>{Li(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,u])=>Ue(u,e.getContext(s),i)),i}function Li(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,u=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=$i(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new ft(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Me(t,n,u?u.children:null,r,i):Me(t,n,e,r,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new he(u.outlet.component,s))}else s&&Ue(n,u,i),i.canActivateChecks.push(new ft(r)),o.component?Me(t,null,u?u.children:null,r,i):Me(t,null,e,r,i);return i}function $i(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!te(t.url,n.url);case"pathParamsOrQueryParamsChange":return!te(t.url,n.url)||!_(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tr(t,n)||!_(t.queryParams,n.queryParams);case"paramsChange":default:return!tr(t,n)}}function Ue(t,n,e){let r=ue(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Ue(s,n.children.getContext(o),e):Ue(s,null,e):Ue(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new he(n.outlet.component,i)):e.canDeactivateChecks.push(new he(null,i)):e.canDeactivateChecks.push(new he(null,i))}function qe(t){return typeof t=="function"}function ki(t){return typeof t=="boolean"}function _i(t){return t&&qe(t.canLoad)}function zi(t){return t&&qe(t.canActivate)}function Fi(t){return t&&qe(t.canActivateChild)}function qi(t){return t&&qe(t.canDeactivate)}function Bi(t){return t&&qe(t.canMatch)}function Nn(t){return t instanceof Cr||t?.name==="EmptyError"}var Je=Symbol("INITIAL_VALUE");function ve(){return P(t=>Ve(t.map(n=>n.pipe(ie(1),Ir(Je)))).pipe(m(n=>{for(let e of n)if(e!==!0){if(e===Je)return Je;if(e===!1||Vi(e))return e}return!0}),X(n=>n!==Je),ie(1)))}function Vi(t){return re(t)||t instanceof Le}function Hi(t,n){return M(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f(D(h({},e),{guardsResult:!0})):Wi(s,r,i,t).pipe(M(u=>u&&ki(u)?Gi(r,o,t,n):f(u)),m(u=>D(h({},e),{guardsResult:u})))})}function Wi(t,n,e,r){return I(t).pipe(M(i=>Xi(i.component,i.route,e,n,r)),Q(i=>i!==!0,!0))}function Gi(t,n,e,r){return I(n).pipe(ne(i=>Sr(Ki(i.route.parent,r),Qi(i.route,r),Yi(t,i.path,e),Zi(t,i.route,e))),Q(i=>i!==!0,!0))}function Qi(t,n){return t!==null&&n&&n(new Zt(t)),f(!0)}function Ki(t,n){return t!==null&&n&&n(new Qt(t)),f(!0)}function Zi(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return f(!0);let i=r.map(o=>St(()=>{let s=ze(n)??e,u=Ce(o,s),a=zi(u)?u.canActivate(n,t):k(s,()=>u(n,t));return Y(a).pipe(Q())}));return f(i).pipe(ve())}function Yi(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>Ni(s)).filter(s=>s!==null).map(s=>St(()=>{let u=s.guards.map(a=>{let c=ze(s.node)??e,d=Ce(a,c),p=Fi(d)?d.canActivateChild(r,t):k(c,()=>d(r,t));return Y(p).pipe(Q())});return f(u).pipe(ve())}));return f(o).pipe(ve())}function Xi(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(u=>{let a=ze(n)??i,c=Ce(u,a),d=qi(c)?c.canDeactivate(t,n,e,r):k(a,()=>c(t,n,e,r));return Y(d).pipe(Q())});return f(s).pipe(ve())}function Ji(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let u=Ce(s,t),a=_i(u)?u.canLoad(n,e):k(t,()=>u(n,e));return Y(a)});return f(o).pipe(ve(),Ln(r))}function Ln(t){return mr(R(n=>{if(typeof n!="boolean")throw dt(t,n)}),m(n=>n===!0))}function eo(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let u=Ce(s,t),a=Bi(u)?u.canMatch(n,e):k(t,()=>u(n,e));return Y(a)});return f(o).pipe(ve(),Ln(r))}var $e=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},ke=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ae(t){return we(new $e(t))}function to(t){return we(new b(4e3,!1))}function ro(t){return we(Pn(!1,O.GuardRejected))}var ir=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 f(r);if(i.numberOfChildren>1||!i.children[g])return to(`${n.redirectTo}`);i=i.children[g]}}applyRedirectCommands(n,e,r,i,o){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:d,url:p,outlet:y,params:$,data:w,title:H}=i,x=k(o,()=>u({params:$,data:w,queryParams:a,fragment:c,routeConfig:d,url:p,outlet:y,title:H}));if(x instanceof V)throw new ke(x);e=x}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new ke(s);return s}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new V(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 u=o.substring(1);r[i]=e[u]}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(([u,a])=>{s[u]=this.createSegmentGroup(n,a,r,i)}),new v(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 b(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}},or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function no(t,n,e,r,i){let o=$n(t,n,e);return o.matched?(r=Ii(n,r),eo(r,n,e,i).pipe(m(s=>s===!0?o:h({},or)))):f(o)}function $n(t,n,e){if(n.path==="**")return io(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},or):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Xn)(e,t,n);if(!i)return h({},or);let o={};Object.entries(i.posParams??{}).forEach(([u,a])=>{o[u]=a.path});let s=i.consumed.length>0?h(h({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function io(t){return{matched:!0,parameters:t.length>0?vn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function cn(t,n,e,r){return e.length>0&&ao(t,e,r)?{segmentGroup:new v(n,so(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&uo(t,e,r)?{segmentGroup:new v(t.segments,oo(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function oo(t,n,e,r){let i={};for(let o of e)if(vt(t,n,o)&&!r[N(o)]){let s=new v([],{});i[N(o)]=s}return h(h({},r),i)}function so(t,n){let e={};e[g]=n;for(let r of t)if(r.path===""&&N(r)!==g){let i=new v([],{});e[N(r)]=i}return e}function ao(t,n,e){return e.some(r=>vt(t,n,r)&&N(r)!==g)}function uo(t,n,e){return e.some(r=>vt(t,n,r))}function vt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function co(t,n,e){return n.length===0&&!t.children[e]}var sr=class{};function lo(t,n,e,r,i,o,s="emptyOnly"){return new ar(t,n,e,r,i,s,o).recognize()}var ho=31,ar=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,u){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=u,this.applyRedirects=new ir(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){let n=cn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(m(({children:e,rootSnapshot:r})=>{let i=new T(r,e),o=new ht("",i),s=mi(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 le([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,g,e).pipe(m(r=>({children:r,rootSnapshot:e})),J(r=>{if(r instanceof ke)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(m(s=>s instanceof T?[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 I(o).pipe(ne(s=>{let u=r.children[s],a=Ai(e,s);return this.processSegmentGroup(n,a,u,s,i)}),br((s,u)=>(s.push(...u),s)),Rt(null),wr(),M(s=>{if(s===null)return ae(r);let u=kn(s);return fo(u),f(u)}))}processSegment(n,e,r,i,o,s,u){return I(e).pipe(ne(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,r,i,o,s,u).pipe(J(c=>{if(c instanceof $e)return f(null);throw c}))),Q(a=>!!a),J(a=>{if(Nn(a))return co(r,i,o)?f(new sr):ae(r);throw a}))}processSegmentAgainstRoute(n,e,r,i,o,s,u,a){return N(r)!==s&&(s===g||!vt(i,o,r))?ae(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,a):ae(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,u){let{matched:a,parameters:c,consumedSegments:d,positionalParamSegments:p,remainingSegments:y}=$n(e,i,o);if(!a)return ae(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ho&&(this.allowRedirects=!1));let $=new le(o,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(i),N(i),i.component??i._loadedComponent??null,i,hn(i)),w=lt($,u,this.paramsInheritanceStrategy);$.params=Object.freeze(w.params),$.data=Object.freeze(w.data);let H=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,p,$,n);return this.applyRedirects.lineralizeSegments(i,H).pipe(M(x=>this.processSegment(n,r,e,x.concat(y),s,!1,u)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let u=no(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),u.pipe(P(a=>a.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(P(({routes:c})=>{let d=r._loadedInjector??n,{parameters:p,consumedSegments:y,remainingSegments:$}=a,w=new le(y,p,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(r),N(r),r.component??r._loadedComponent??null,r,hn(r)),H=lt(w,s,this.paramsInheritanceStrategy);w.params=Object.freeze(H.params),w.data=Object.freeze(H.data);let{segmentGroup:x,slicedSegments:Re}=cn(e,y,$,c);if(Re.length===0&&x.hasChildren())return this.processChildren(d,c,x,w).pipe(m(Be=>new T(w,Be)));if(c.length===0&&Re.length===0)return f(new T(w,[]));let Yn=N(r)===o;return this.processSegment(d,c,x,Re,Yn?g:o,!0,w).pipe(m(Be=>new T(w,Be instanceof T?[Be]:[])))}))):ae(e)))}getChildConfig(n,e,r){return e.children?f({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):Ji(n,e,r,this.urlSerializer).pipe(M(i=>i?this.configLoader.loadChildren(n,e).pipe(R(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):ro(e))):f({routes:[],injector:n})}};function fo(t){t.sort((n,e)=>n.value.outlet===g?-1:e.value.outlet===g?1:n.value.outlet.localeCompare(e.value.outlet))}function po(t){let n=t.value.routeConfig;return n&&n.path===""}function kn(t){let n=[],e=new Set;for(let r of t){if(!po(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=kn(r.children);n.push(new T(r.value,i))}return n.filter(r=>!e.has(r))}function ln(t){return t.data||{}}function hn(t){return t.resolve||{}}function go(t,n,e,r,i,o){return M(s=>lo(t,n,e,r,s.extractedUrl,i,o).pipe(m(({state:u,tree:a})=>D(h({},s),{targetSnapshot:u,urlAfterRedirects:a}))))}function vo(t,n){return M(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let o=new Set(i.map(a=>a.route)),s=new Set;for(let a of o)if(!s.has(a))for(let c of _n(a))s.add(c);let u=0;return I(s).pipe(ne(a=>o.has(a)?mo(a,r,t,n):(a.data=lt(a,a.parent,t).resolve,f(void 0))),R(()=>u++),wt(1),M(a=>u===s.size?f(e):G))})}function _n(t){let n=t.children.map(e=>_n(e)).flat();return[t,...n]}function mo(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!Un(i)&&(o[_e]=i.title),yo(o,t,n,r).pipe(m(s=>(t._resolvedData=s,t.data=lt(t,t.parent,e).resolve,null)))}function yo(t,n,e,r){let i=kt(t);if(i.length===0)return f({});let o={};return I(i).pipe(M(s=>Co(t[s],n,e,r).pipe(Q(),R(u=>{if(u instanceof Le)throw dt(new fe,u);o[s]=u}))),wt(1),Rr(o),J(s=>Nn(s)?G:we(s)))}function Co(t,n,e,r){let i=ze(n)??r,o=Ce(t,i),s=o.resolve?o.resolve(n,e):k(i,()=>o(n,e));return Y(s)}function Lt(t){return P(n=>{let e=t(n);return e?I(e).pipe(m(()=>n)):f(n)})}var zn=(()=>{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===g);return r}getResolvedTitleForRoute(e){return e.data[_e]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(So),providedIn:"root"})}return t})(),So=(()=>{class t extends zn{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)(q(rn))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Se=new A("",{providedIn:"root",factory:()=>({})}),Ro=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=_r({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(r,i){r&1&&Wr(0,"router-outlet")},dependencies:[Ti],encapsulation:2})}return t})();function lr(t){let n=t.children&&t.children.map(lr),e=n?D(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=Ro),e}var me=new A(""),hr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(Ke);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=Y(e.loadComponent()).pipe(m(Fn),R(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),He(()=>{this.componentLoaders.delete(e)})),i=new Ct(r,()=>new W).pipe(yt());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return f({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=wo(r,this.compiler,e,this.onLoadEndListener).pipe(He(()=>{this.childrenLoaders.delete(r)})),s=new Ct(o,()=>new W).pipe(yt());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wo(t,n,e,r){return Y(t.loadChildren()).pipe(m(Fn),M(i=>i instanceof kr||Array.isArray(i)?f(i):I(n.compileModuleAsync(i))),m(i=>{r&&r(t);let o,s,u=!1;return Array.isArray(i)?(s=i,u=!0):(o=i.create(e).injector,s=o.get(me,[],{optional:!0,self:!0}).flat()),{routes:s.map(lr),injector:o}}))}function bo(t){return t&&typeof t=="object"&&"default"in t}function Fn(t){return bo(t)?t.default:t}var dr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Io),providedIn:"root"})}return t})(),Io=(()=>{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=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qn=new A(""),Bn=new A("");function Ao(t,n,e){let r=t.get(Bn),i=t.get(Jr);return t.get(Ge).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),u=i.startViewTransition(()=>(o(),Do(t))),{onViewTransitionCreated:a}=r;return a&&k(t,()=>a({transition:u,from:n,to:e})),s})}function Do(t){return new Promise(n=>{jr({read:()=>setTimeout(n)},{injector:t})})}var fr=new A(""),mt=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new W;transitionAbortSubject=new W;configLoader=l(hr);environmentInjector=l(Ie);urlSerializer=l(ye);rootContexts=l(Fe);location=l(Ae);inputBindingEnabled=l(gt,{optional:!0})!==null;titleStrategy=l(zn);options=l(Se,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(dr);createViewTransition=l(qn,{optional:!0});navigationErrorHandler=l(fr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;constructor(){let e=i=>this.events.next(new Wt(i)),r=i=>this.events.next(new Gt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(D(h(h({},this.transitions.value),e),{id:r}))}setupNavigations(e,r,i){return this.transitions=new E({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Ee,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(o=>o.id!==0),m(o=>D(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),P(o=>{let s=!1,u=!1;return f(o).pipe(P(a=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",O.SupersededByNewNavigation),G;this.currentTransition=o,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?D(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&d!=="reload"){let p="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.rawUrl),p,ot.IgnoredSameUrlNavigation)),a.resolve(!1),G}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return f(a).pipe(P(p=>{let y=this.transitions?.getValue();return this.events.next(new pe(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),y!==this.transitions?.getValue()?G:Promise.resolve(p)}),go(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),R(p=>{o.targetSnapshot=p.targetSnapshot,o.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=D(h({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let y=new st(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(y)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:p,extractedUrl:y,source:$,restoredState:w,extras:H}=a,x=new pe(p,this.urlSerializer.serialize(y),$,w);this.events.next(x);let Re=On(this.rootComponentType).snapshot;return this.currentTransition=o=D(h({},a),{targetSnapshot:Re,urlAfterRedirects:y,extras:D(h({},H),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,f(o)}else{let p="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.extractedUrl),p,ot.IgnoredByUrlHandlingStrategy)),a.resolve(!1),G}}),R(a=>{let c=new qt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=o=D(h({},a),{guards:ji(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),o)),Hi(this.environmentInjector,a=>this.events.next(a)),R(a=>{if(o.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw dt(this.urlSerializer,a.guardsResult);let c=new Bt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(c)}),X(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",O.GuardRejected),!1)),Lt(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(R(c=>{let d=new Vt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),P(c=>{let d=!1;return f(c).pipe(vo(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",O.NoDataFromResolver)}}))}),R(c=>{let d=new Ht(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),Lt(a=>{let c=d=>{let p=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(d.routeConfig).pipe(R(y=>{d.component=y}),m(()=>{})));for(let y of d.children)p.push(...c(y));return p};return Ve(c(a.targetSnapshot.root)).pipe(Rt(null),ie(1))}),Lt(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:a,targetSnapshot:c}=o,d=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return d?I(d).pipe(m(()=>o)):f(o)}),m(a=>{let c=Oi(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=o=D(h({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),R(()=>{this.events.next(new je)}),Pi(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ie(1),R({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new L(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),Ar(this.transitionAbortSubject.pipe(R(a=>{throw a}))),He(()=>{!s&&!u&&this.cancelNavigationTransition(o,"",O.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(u=!0,jn(a))this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),a.message,a.cancellationCode)),xi(a)?this.events.next(new ge(a.url,a.navigationBehaviorOptions)):o.resolve(!1);else{let c=new Pe(o.id,this.urlSerializer.serialize(o.extractedUrl),a,o.targetSnapshot??void 0);try{let d=k(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof Le){let{message:p,cancellationCode:y}=dt(this.urlSerializer,d);this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),p,y)),this.events.next(new ge(d.redirectTo,d.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return G}))}))}cancelNavigationTransition(e,r,i){let o=new B(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=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Mo(t){return t!==Ee}var To=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Oo),providedIn:"root"})}return t})(),ur=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},Oo=(()=>{class t extends ur{static \u0275fac=(()=>{let e;return function(i){return(e||(e=It(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Eo),providedIn:"root"})}return t})(),Eo=(()=>{class t extends Vn{location=l(Ae);urlSerializer=l(ye);options=l(Se,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=l(dr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new V;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=On(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&e(r.url,r.state)})}handleRouterEvent(e,r){if(e instanceof pe)this.stateMemento=this.createStateMemento();else if(e instanceof K)this.rawUrlTree=r.initialUrl;else if(e instanceof st){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else e instanceof je?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):e instanceof B&&(e.code===O.GuardRejected||e.code===O.NoDataFromResolver)?this.restoreHistory(r):e instanceof Pe?this.restoreHistory(r,!0):e instanceof L&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let i=e instanceof V?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=h(h({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=h(h({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",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=It(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Te=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Te||{});function Hn(t,n){t.events.pipe(X(e=>e instanceof L||e instanceof B||e instanceof Pe||e instanceof K),m(e=>e instanceof L||e instanceof K?Te.COMPLETE:(e instanceof B?e.code===O.Redirect||e.code===O.SupersededByNewNavigation:!1)?Te.REDIRECTING:Te.FAILED),X(e=>e!==Te.REDIRECTING),ie(1)).subscribe(()=>{n()})}var Uo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},z=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(qr);stateManager=l(Vn);options=l(Se,{optional:!0})||{};pendingTasks=l(xr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(mt);urlSerializer=l(ye);location=l(Ae);urlHandlingStrategy=l(dr);_events=new W;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(To);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(me,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(gt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new vr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof B&&r.code!==O.Redirect&&r.code!==O.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof L)this.navigated=!0;else if(r instanceof ge){let s=r.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),a=h({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Mo(i.source)},s);this.scheduleNavigation(u,Ee,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}jo(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.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),Ee,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",r)},0)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let a=h({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(o.state=a)}let u=this.parseUrl(e);this.scheduleNavigation(u,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(lr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){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:u,preserveFragment:a}=r,c=a?this.currentUrlTree.fragment:s,d=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let y=i?i.snapshot:this.routerState.snapshot.root;p=An(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),p=this.currentUrlTree.root}return Dn(p,e,d,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=re(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ee,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=h({},Uo):r===!1?i=h({},xo):i=r,re(e))return nn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return nn(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 u,a,c;s?(u=s.resolve,a=s.reject,c=s.promise):c=new Promise((p,y)=>{u=p,a=y});let d=this.pendingTasks.add();return Hn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({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 b(4008,!1)}function jo(t){return!(t instanceof je)&&!(t instanceof ge)}var dn=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new W;constructor(e,r,i,o,s,u){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=u;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof L&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(re(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:Nr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}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:re(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)(j(z),j(Z),Ur("tabindex"),j(Mt),j(Dt),j(se))};static \u0275dir=Qe({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Gr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Hr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ye],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ye],replaceUrl:[2,"replaceUrl","replaceUrl",Ye],routerLink:"routerLink"},features:[Fr,We]})}return t})(),ms=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new oe;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(u=>{u instanceof L&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(be()).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=I(e).pipe(be()).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=No(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)(j(z),j(Dt),j(Mt),j(Ze),j(dn,8))};static \u0275dir=Qe({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Qr(o,dn,5),r&2){let s;Kr(s=Zr())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[We]})}return t})();function No(t){return!!t.paths}var pt=class{},ys=(()=>{class t{preload(e,r){return r().pipe(J(()=>f(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cs=(()=>{class t{preload(e,r){return f(null)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lo=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o,s){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(X(e=>e instanceof L),ne(()=>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=Tt(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,u=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(u,o.children??o._loadedRoutes))}return I(i).pipe(be())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=f(null);let o=i.pipe(M(s=>s===null?f(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(r);return I([o,s]).pipe(be())}else return o})}static \u0275fac=function(r){return new(r||t)(q(z),q(Ke),q(Ie),q(pt),q(hr))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pr=new A(""),Wn=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,r,i,o,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof pe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof L?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof K&&e.code===ot.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof at&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new at(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Lr()};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function Ss(t,...n){return Er([{provide:me,multi:!0,useValue:t},[],{provide:Z,useFactory:Gn,deps:[z]},{provide:Et,multi:!0,useFactory:Qn},n.map(e=>e.\u0275providers)])}function Gn(t){return t.routerState.root}function F(t,n){return{\u0275kind:t,\u0275providers:n}}function Rs(t){return[{provide:me,multi:!0,useValue:t},[]]}function ws(t={}){return F(4,[{provide:pr,useFactory:()=>{let e=l(xt),r=l(Ge),i=l(mt),o=l(ye);return new Wn(o,i,e,r,t)}}])}function Qn(){let t=l(At);return n=>{let e=t.get(Vr);if(n!==e.components[0])return;let r=t.get(z),i=t.get(Kn);t.get(gr)===1&&r.initialNavigation(),t.get(Zn,null,bt.Optional)?.setUpPreloading(),t.get(pr,null,bt.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Kn=new A("",{factory:()=>new W}),gr=new A("",{providedIn:"root",factory:()=>1});function $o(){return F(2,[{provide:gr,useValue:0},{provide:Ot,multi:!0,deps:[At],useFactory:n=>{let e=n.get(en,Promise.resolve());return()=>e.then(()=>new Promise(r=>{let i=n.get(z),o=n.get(Kn);Hn(i,()=>{r(!0)}),n.get(mt).afterPreactivation=()=>(r(!0),o.closed?f(void 0):o),i.initialNavigation()}))}}])}function ko(){return F(3,[{provide:Ot,multi:!0,useFactory:()=>{let n=l(z);return()=>{n.setUpLocationChangeListener()}}},{provide:gr,useValue:2}])}function bs(){let t=[];return t=[],F(1,t)}var Zn=new A("");function _o(t){return F(0,[{provide:Zn,useExisting:Lo},{provide:pt,useExisting:t}])}function Is(t){return F(5,[{provide:Se,useValue:t}])}function As(){return F(6,[{provide:se,useClass:Ut}])}function Ds(t){return F(7,[{provide:fr,useValue:t}])}function zo(){return F(8,[un,{provide:gt,useExisting:un}])}function Fo(t){let n=[{provide:qn,useValue:Ao},{provide:Bn,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return F(9,n)}var fn=new A("ROUTER_FORROOT_GUARD"),qo=[Ae,{provide:ye,useClass:fe},z,Fe,{provide:Z,useFactory:Gn,deps:[z]},hr,[]],Ms=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[qo,[],{provide:me,multi:!0,useValue:e},{provide:fn,useFactory:Wo,deps:[[z,new Tr,new Or]]},r?.errorHandler?{provide:fr,useValue:r.errorHandler}:[],{provide:Se,useValue:r||{}},r?.useHash?Vo():Ho(),Bo(),r?.preloadingStrategy?_o(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Go(r):[],r?.bindToComponentInputs?zo().\u0275providers:[],r?.enableViewTransitions?Fo().\u0275providers:[],Qo()]}}static forChild(e){return{ngModule:t,providers:[{provide:me,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)(q(fn,8))};static \u0275mod=zr({type:t});static \u0275inj=Dr({})}return t})();function Bo(){return{provide:pr,useFactory:()=>{let t=l(xt),n=l(Ge),e=l(Se),r=l(mt),i=l(ye);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Wn(i,r,t,n,e)}}}function Vo(){return{provide:se,useClass:Ut}}function Ho(){return{provide:se,useClass:tn}}function Wo(t){return"guarded"}function Go(t){return[t.initialNavigation==="disabled"?ko().\u0275providers:[],t.initialNavigation==="enabledBlocking"?$o().\u0275providers:[]]}var pn=new A("");function Qo(){return[{provide:pn,useFactory:Qn},{provide:Et,multi:!0,useExisting:pn}]}function Ts(t){return t.map(n=>(...e)=>l(n).canMatch(...e))}function Os(t){return t.map(n=>(...e)=>l(n).canActivate(...e))}function Es(t){return t.map(n=>(...e)=>l(n).canActivateChild(...e))}function Us(t){return t.map(n=>(...e)=>l(n).canDeactivate(...e))}function xs(t){return(...n)=>l(t).resolve(...n)}var Ps=new Yr("19.0.1");export{g as a,de as b,Xn as c,V as d,v as e,ee as f,ye as g,fe as h,mi as i,S as j,U as k,pe as l,L as m,O as n,ot as o,B as p,K as q,Pe as r,st as s,qt as t,Bt as u,Vt as v,Ht as w,Wt as x,Gt as y,Qt as z,Kt as A,Zt as B,Yt as C,at as D,Xt as E,Fe as F,ct as G,Z as H,le as I,ht as J,Mi as K,Ti as L,Le as M,zn as N,So as O,Se as P,Ro as Q,me as R,wo as S,dr as T,To as U,ur as V,Hn as W,z as X,dn as Y,ms as Z,pt as _,ys as $,Cs as aa,Lo as ba,Ss as ca,Rs as da,ws as ea,$o as fa,ko as ga,bs as ha,_o as ia,Is as ja,As as ka,Ds as la,zo as ma,Fo as na,qo as oa,Ms as pa,pn as qa,Ts as ra,Os as sa,Es as ta,Us as ua,xs as va,Ps as wa};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$a as oe,$b as M,Ab as T,Bb as le,Cb as ae,Db as ce,Dc as D,Eb as r,Fb as l,Fc as O,Gb as P,Gc as Z,Kb as w,Qb as g,R as U,Ra as k,Rb as m,Sb as v,Tb as a,Wa as ne,X as F,Ya as N,Za as h,_a as x,_b as pe,ab as R,ac as j,bc as de,cc as _,dc as ue,ea as d,ec as X,fa as u,fb as f,gc as z,hb as se,hc as G,ic as K,kc as J,lb as V,pa as Q,qa as H,ra as p,rb as re,sa as B,vb as $,wb as A,xb as L,yb as Y,zb as q}from"./chunk-RJDP2FPE.js";import{a as I,b as W,c as ie}from"./chunk-7CGTOI24.js";var b=["*"],Ce=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],_e=["[icon]","[title]","*","[content]"];function Se(n,C){n&1&&(r(0,"spk-icon",3),_(1,"info"),l())}function ye(n,C){n&1&&(r(0,"spk-icon",3),_(1,"info"),l())}function ke(n,C){n&1&&(r(0,"spk-icon",3),_(1,"check-circle"),l())}function De(n,C){n&1&&(r(0,"spk-icon",3),_(1,"warning-octagon"),l())}function be(n,C){n&1&&(r(0,"spk-icon",3),_(1,"warning"),l())}function we(n,C){n&1&&(r(0,"spk-icon",3),_(1,"question"),l())}function Oe(n,C){if(n&1){let e=w();r(0,"spk-icon",7),g("click",function(){d(e);let i=m();return u(i.removeAlert())}),_(1,"plus"),l()}}var Ee=["dialogRef"];function xe(n,C){if(n&1){let e=w();r(0,"div",4),g("click",function(){d(e);let i=m();return u(i.isOpen.set(!1))}),l()}}var Te=["spk-button",""],Me=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],Ie=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],he=["triggerRef"],Ve=["popoverRef"],Ae=[[["","trigger",""]],"*"],Fe=["[trigger]","*"];var Re=["inputWrap"];var Pe=()=>({closeOnButton:!1,closeOnEsc:!0});var je=["option"],He=["*",[["","menu",""]]],Be=["*","[menu]"];var Le=["optionsRef"],We=["formFieldWrapper"],qe=[[["label"]],[["input"]],"*",[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]]],Ue=["label","input","*","[deselect-indicator]","[search-indicator]","[open-indicator]"],Qe=()=>({closeOnButton:!1,closeOnEsc:!1});function Ne(n,C){if(n&1){let e=w();r(0,"spk-chip",12),g("click",function(i){let o=d(e).$implicit,s=m(3);return u(s.toggleOption(o,i))}),_(1),r(2,"spk-icon"),_(3,"x-circle"),l()()}if(n&2){let e,t=C.$implicit,i=m(3);q(i.chipClass()),k(),X(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function $e(n,C){if(n&1&&ae(0,Ne,4,3,"spk-chip",11,le),n&2){let e=m(2);ce(e.inputValue().split(","))}}function Ye(n,C){if(n&1&&(r(0,"div",6),V(1,$e,2,0),l()),n&2){let e=m();k(),T(e.inputValue().length>0?1:-1)}}function Xe(n,C){if(n&1&&(r(0,"div",6),_(1),l()),n&2){let e=m();k(),ue(e._displayValue())}}function ze(n,C){if(n&1){let e=w();r(0,"div",13),g("click",function(i){d(e);let o=m();return u(o.deselect(i))}),a(1,3),r(2,"spk-icon",14),_(3,"x-circle"),l()()}}function Ge(n,C){n&1&&(r(0,"div",8),a(1,4),r(2,"spk-icon",14),_(3,"magnifying-glass"),l()())}function Ke(n,C){if(n&1&&(r(0,"div",15),a(1,5),r(2,"spk-icon",14),_(3,"caret-down"),l()()),n&2){let e=m();L("open",e.isOpen())}}var Je=["dragImageElement"],Ze=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],et=["[sidenav]","[sidenav-closed-topbar]","*"];function tt(n,C){n&1&&P(0,"div",1,0)}function it(n,C){if(n&1){let e=w();r(0,"div",7),g("drop",function(i){d(e);let o=m();return u(o.drop(i))})("dragover",function(i){d(e);let o=m();return u(o.dragOver(i))})("dragenter",function(){d(e);let i=m();return u(i.dragEnter())})("dragleave",function(){d(e);let i=m();return u(i.dragLeave())}),l()}}function nt(n,C){if(n&1){let e=w();r(0,"div",8),g("dragstart",function(i){d(e);let o=m();return u(o.dragStart(i))})("dragend",function(i){d(e);let o=m();return u(o.dragEnd(i))})("drag",function(i){d(e);let o=m();return u(o.drag(i))})("touchstart",function(i){d(e);let o=m();return u(o.touchStart(i))})("touchmove",function(i){d(e);let o=m();return u(o.touchMove(i))})("touchend",function(i){d(e);let o=m();return u(o.touchEnd(i))})("touchcancel",function(i){d(e);let o=m();return u(o.touchCancel(i))}),l()}}var ot=["tooltipRef"],ee=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-icon"]],ngContentSelectors:b,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Tt=(()=>{class n{constructor(){this._el=F(B),this.alertService=p(null),this.type=p("error"),this.id=p(null)}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-alert"]],hostVars:2,hostBindings:function(t,i){t&2&&q(i.type())},inputs:{alertService:[1,"alertService"],type:[1,"type"],id:[1,"id"]},ngContentSelectors:_e,decls:17,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(t,i){if(t&1&&(v(Ce),r(0,"div",1)(1,"div",2,0),a(3),l(),r(4,"div",2),V(5,Se,2,0,"spk-icon",3)(6,ye,2,0,"spk-icon",3)(7,ke,2,0,"spk-icon",3)(8,De,2,0,"spk-icon",3)(9,be,2,0,"spk-icon",3)(10,we,2,0,"spk-icon",3),l(),r(11,"div",4),a(12,1),a(13,2),l(),V(14,Oe,2,0,"spk-icon",5),r(15,"div",6),a(16,3),l()()),t&2){let o,s=de(2);k(),A("display",s.children.length?"block":"none"),k(4),T((o=i.type())==="primary"?5:o==="accent"?6:o==="success"?7:o==="error"?8:o==="warning"?9:10),k(9),T(i.id()?14:-1)}},dependencies:[ee],encapsulation:2,changeDetection:0})}}return n})();var Mt=(()=>{class n{constructor(){this.alertHistory=h([]),this.alertHistoryIsOpen=h(!1),this.alertHistoryIsHidden=h(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warning",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=crypto.randomUUID();this.alertHistory.update(i=>[W(I({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>W(I({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>W(I({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>W(I({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),st={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},rt=(()=>{class n{constructor(){this.dialogRef=x("dialogRef"),this.isOpen=R(!1),this.options=p(),this.closed=H(),this.defaultOptionMerge=D(()=>I(I({},st),this.options())),this.abortController=null,this.isOpenEffect=O(()=>{let e=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e?.showModal(),e?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),e?.close())})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-dialog"]],viewQuery:function(t,i){t&1&&M(i.dialogRef,Ee,5),t&2&&j()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:b,decls:5,vars:9,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(t,i){if(t&1&&(v(),r(0,"dialog",1,0)(2,"div",2),a(3),l(),V(4,xe,1,0,"div",3),l()),t&2){let o,s,c,S;A("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(c=i.defaultOptionMerge().maxHeight)!==null&&c!==void 0?c:"")("height",(S=i.defaultOptionMerge().height)!==null&&S!==void 0?S:""),k(4),T(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),It=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#n=F(re),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#n;open(e,t){let i=this.#n.injector,o=this.#c(),te=t||{},{data:s,closed:c}=te,S=ie(te,["data","closed"]);this.compRef&&this.#r(),this.insertedCompRef=Z(e,{environmentInjector:i}),this.compRef=Z(rt,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let E=this.insertedCompRef.instance?.data,y=this.insertedCompRef.instance?.closed;if(s){if(N(E))this.insertedCompRef.setInput("data",s);else if(!N(E))throw new Error("data is not an input signal on the passed component")}y instanceof Q&&(this.closedFieldSub=y.subscribe((...ve)=>{c?.(...ve),this.#r()})),this.#n.attachView(this.insertedCompRef.hostView),this.#n.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",S),this.compRef.instance.closed.subscribe(()=>ge());let me=this;function ge(){y&&y instanceof Q?y.emit(!1):c?.(void 0),me.#r()}return this.insertedCompRef.instance}#c(){let e=document.createElement("spk-dialog-ref");return e.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(e),document.getElementById("spk-dialog-ref")}#r(){this.insertedCompRef&&(this.#n.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#n.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#r()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Vt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-button-group"]],ngContentSelectors:b,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),lt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["","spk-button",""]],attrs:Te,ngContentSelectors:b,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),At=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-card"]],ngContentSelectors:b,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Ft=(()=>{class n{#e=F(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-checkbox"]],hostBindings:function(t,i){t&1&&g("click",function(){return i.onClick()})},ngContentSelectors:b,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(t,i){t&1&&(v(),r(0,"div",0)(1,"spk-icon",1),_(2,"check"),l(),r(3,"spk-icon",2),_(4,"minus"),l()(),a(5))},dependencies:[ee],encapsulation:2,changeDetection:0})}}return n})(),at=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-chip"]],ngContentSelectors:b,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),ct=(()=>{class n{#e=F(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let e=CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let c=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},S=function(){window.setTimeout(c,0)};var i=c,o=S;let s=this.#e.nativeElement.querySelector("textarea");s.addEventListener("change",c),s.addEventListener("cut",S),s.addEventListener("paste",S),s.addEventListener("drop",S),s.addEventListener("keydown",S),s.focus(),s.select(),c()}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-form-field"]],hostBindings:function(t,i){t&1&&g("click",function(){return i.onClick()})},ngContentSelectors:Ie,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(t,i){t&1&&(v(Me),a(0),r(1,"div",0)(2,"div",1),a(3,1),a(4,2),l(),P(5,"div",2),a(6,3),a(7,4),a(8,5),P(9,"div",3),a(10,6),l(),r(11,"div",4)(12,"div",5),a(13,7),l(),r(14,"div",6),a(15,8),l()())},encapsulation:2,changeDetection:0})}}return n})(),pt={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},fe=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=p(!1),this.right=p(!1),this._above=h(this.above()),this._right=h(this.right()),this.disableOpenByClick=p(!1),this.isOpen=R(!1),this.options=p(),this.closed=H(),this.defaultOptionMerge=D(()=>I(I({},pt),this.options())),this.triggerRef=x.required("triggerRef"),this.popoverRef=x.required("popoverRef"),this.id=h("--"+crypto.randomUUID()),this.menuStyle=h(null),this.openAbort=null,this.isCalculatingPosition=D(()=>{let e=this.popoverRef()?.nativeElement;return this.isOpen()?(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,e?.showPopover(),document.addEventListener("keydown",i=>{i.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&i.preventDefault(),i.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{capture:!0,signal:this.abortController?.signal}),!0):(e.hidePopover(),this.abortController?.abort(),this.openAbort?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=O(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#n(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}#n(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,c=o+this.#e,S=s+t.width>window.innerWidth,E=c+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(E),this._right.set(S);else{if(this.above()){let y=e.top-t.height-this.#e;y>=0&&(c=y)}else E&&(c=e.top-t.height-this.#e);if(this.right()){let y=e.right-t.width;y>=0&&(s=y)}else S&&(c=E?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:c+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-popover"]],viewQuery:function(t,i){t&1&&(M(i.triggerRef,he,5),M(i.popoverRef,Ve,5)),t&2&&j(2)},hostVars:4,hostBindings:function(t,i){t&2&&L("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Fe,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(t,i){if(t&1){let o=w();v(Ae),r(0,"div",2,0),g("click",function(c){return d(o),u(i.toggleIsOpen(c))}),r(2,"div",3),a(3),l(),r(4,"button",4),_(5,"Open popover"),l()(),r(6,"div",5,1)(8,"div",6),g("click",function(c){return d(o),u(i.isOpen()&&i.eventClose(c))}),l(),a(9,1),l()}t&2&&(A("anchor-name",i.id()),k(6),Y(i.menuStyle()),A("position-anchor",i.id()))},dependencies:[lt],encapsulation:2,changeDetection:0})}}return n})();var Rt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-list"]],ngContentSelectors:b,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Pt=(()=>{class n{constructor(){this.above=p(!1),this.right=p(!1),this.keepClickedOptionActive=p(!1),this.isOpen=R(!1),this.closed=H(),this.activeOptionIndex=h(-1),this.options=oe("option"),this.optionsEl=D(()=>Array.from(this.options()).map(e=>e.nativeElement).filter(e=>e.disabled!==!0)),this.optionsEffect=O(()=>{if(!this.isOpen())return;let e=this.activeOptionIndex(),t=this.optionsEl();if(e>-1)for(let i=0;i<t.length;i++){if(i===e){t[i].scrollIntoView({block:"center"}),t[i].classList.add("active");continue}t[i].classList.remove("active")}})}onKeyDown(e){if(!this.isOpen())return;e.preventDefault();let t=this.optionsEl(),i=this.activeOptionIndex();e.key==="ArrowDown"?i===-1||i===t.length-1?this.activeOptionIndex.set(0):this.activeOptionIndex.set(i+1):e.key==="ArrowUp"?i===-1||i===0?this.activeOptionIndex.set(t.length-1):this.activeOptionIndex.set(i-1):e.key==="Enter"?i>-1&&(t[i].click(),setTimeout(()=>this.close("active"))):e.key==="Tab"?this.close("closed"):this.activeOptionIndex.set(-1)}close(e="closed",t){(!this.keepClickedOptionActive()||e==="closed")&&this.#e(),this.isOpen.set(!1),this.closed.emit(e==="active")}#e(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-menu"]],contentQueries:function(t,i,o){t&1&&pe(o,i.options,je,4),t&2&&j()},hostBindings:function(t,i){t&1&&g("keydown",function(s){return i.onKeyDown(s)})},inputs:{above:[1,"above"],right:[1,"right"],keepClickedOptionActive:[1,"keepClickedOptionActive"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Be,decls:6,vars:6,consts:[["formFieldWrapper",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"options",3,"click"]],template:function(t,i){if(t&1){let o=w();v(He),r(0,"spk-popover",1,0),K("isOpenChange",function(c){return d(o),G(i.isOpen,c)||(i.isOpen=c),u(c)}),g("closed",function(){return d(o),u(i.close("fromPopover"))}),r(2,"div",2),g("click",function(){return d(o),u(i.isOpen.set(!0))}),a(3),l(),r(4,"div",3),g("click",function(){return d(o),u(i.close("active"))}),a(5,1),l()()}t&2&&(z("isOpen",i.isOpen),$("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",J(5,Pe)))},dependencies:[fe],encapsulation:2,changeDetection:0})}}return n})(),jt=(()=>{class n{constructor(){this.value=p(void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,i){t&1&&P(0,"div",0),t&2&&A("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),Ht=(()=>{class n{#e=F(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-radio"]],hostBindings:function(t,i){t&1&&g("click",function(){return i.onClick()})},ngContentSelectors:b,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(v(),P(0,"div",0),a(1))},encapsulation:2,changeDetection:0})}}return n})();var Bt=(()=>{class n{constructor(){this.value=p(null)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-option"]],inputs:{value:[1,"value"]},ngContentSelectors:b,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),dt=["primary","accent","tertiary","warn","success"],Lt=(()=>{class n{constructor(){this.#e=F(ne),this.#n=F(B),this.#c=new MutationObserver(e=>{for(let t of e)if(t.type==="childList"&&t.target instanceof HTMLElement){let i=[...Array.from(t.addedNodes),...Array.from(t.removedNodes)];for(let o=0;o<i.length;o++){let s=i[o];(s.nodeName==="OPTION"||s.nodeName==="SPK-OPTION")&&this.#s.set(!this.#s())}}}),this.optionsRef=x("optionsRef"),this.formFieldWrapperRef=x.required("formFieldWrapper"),this.inputWrapRef=x.required("inputWrap"),this.inputValue=R(""),this.readonly=p(!1),this.isFreeText=p(!1),this.selectMultiple=p(!1),this.hideClearButton=p(!1),this.displayValue=p(""),this.displayFn=p(e=>`${e}`),this.above=p(!1),this.right=p(!1),this.#r=h(!1),this.#s=h(!1),this.#t=h(null),this.#l=h(null),this.#a=h(!1),this.#i=h(-1),this.isOpen=h(!1),this._isOpen=h(!1),this.#h=O(()=>{this._isOpen.set(this.isOpen()&&this.#o().length>0)}),this.isSearchInput=D(()=>this.#t()?.type==="search"),this.optionsEl=D(()=>this.optionsRef()?.nativeElement),this.#o=D(()=>{this.#s();let e=this.optionsRef()?.nativeElement.querySelectorAll("option"),t=this.optionsRef()?.nativeElement.querySelectorAll("spk-option");return e?.length?Array.from(e):t?.length?Array.from(t):[]}),this.chipClass=D(()=>Array.from(this.#n.nativeElement.classList).filter(e=>dt.includes(e)).join(" ")),this._displayValue=D(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=D(()=>this.#l()?this.#o().find(e=>(e.getAttribute("value")||e.getAttribute("ng-reflect-value"))===this.#l()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#f=O(()=>{this.#r();let e=this.#n.nativeElement.querySelector("input");e&&(this.#y(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#d()}),this.#t.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))}),this.#m=O(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#t();e&&e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput()&&!this.isFreeText())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#i()===null||this.#i()<0||this.#i()===this.#o().length-1?this.#i.set(this.#u()):this.#i.set(this.#i()+1):t.key==="ArrowUp"?this.#i()===null||this.#i()<0||this.#i()===0?this.#i.set(this.#o().length-1):this.#i.set(this.#i()-1):t.key==="Enter"?(this.isFreeText()&&this.close(!0),this.#i()>-1&&this.selected(this.getOptionElement(this.#i()))):t.key==="Tab"?this.close(!0):(this.#i.set(-1),this.isFreeText()&&this.calculateSelectedOptions())},{signal:this.inputController?.signal})}),this.#g=O(()=>{this.isOpen()&&this.#S()}),this.#v=O(()=>{let e=this.inputValue();this.#t()&&(this.#t().value=e??"",this.#t().dispatchEvent(new Event("input")))}),this.#p=new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#r.set(!this.#r())})}#e;#n;#c;#r;#s;#t;#l;#a;#i;#h;#o;#f;#m;#g;#v;ngOnInit(){this.#p.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.#o()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#t()&&(this.#t().value="",this.#t().dispatchEvent(new Event("input"))),this.#i.set(this.#u()),this.#a.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#t()?.blur())}selected(e){if(!e)return;let t=(e.getAttribute("value")||e.getAttribute("ng-reflect-value"))??"",i=this.#o().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#i.set(i),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.#o().length;o++){let s=this.#o()[o];(s.getAttribute("value")||s.getAttribute("ng-reflect-value"))===t?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#e.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#e.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#a.set(!1),this.#l.set(null),this.selectMultiple()?this.#t()?.focus():(this.isOpen.set(!1),this.#t()?.blur())}calculateSelectedOptions(){setTimeout(()=>{let e=this.#o(),i=this.#t()?.value;for(let o=0;o<e.length;o++){let s=e[o];(s.getAttribute("value")||s.getAttribute("ng-reflect-value"))===i?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}})}toggleOption(e,t){t&&(t.preventDefault(),t.stopPropagation()),this.inputValue.set(this.inputValue().startsWith(e+",")?this.inputValue().replace(e+",",""):this.inputValue().includes(","+e)?this.inputValue().replace(","+e,""):this.inputValue().replace(e,""))}close(e=!1){this.#s.set(!this.#s());let t=this.#l();this.isSearchInput()&&!this.isFreeText()&&t&&setTimeout(()=>this.inputValue.set(t)),this.isOpen.set(!1),this.#a.set(!1),e||this.#t()?.blur(),this.#c.disconnect(),this.#_()}open(e){e.preventDefault(),!this.isOpen()&&(this.#c.observe(this.optionsEl(),{childList:!0,subtree:!0}),this.isSearchInput()&&!this.#a()&&!this.isFreeText()?(this.#l.set(this.inputValue()),this.inputValue.set(""),this.#t().focus(),this.#t().value="",this.#t().dispatchEvent(new Event("input")),this.#i.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#t().focus(),this.#s.set(!this.#s()),this.isOpen.set(!0),this.#a.set(!0),this.#C(),this.#d())}#C(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,this.optionsEl()?.addEventListener("click",e=>{if(!e.target)return;this.#s.set(!this.#s());let t=e.target.closest("option"),i=e.target.closest("spk-option"),o=t||i;this.#o().indexOf(o)>-1&&this.selected(o)},{signal:this.clickController?.signal})}#_(){this.clickController&&this.clickController.abort()}#S(){for(let e=0;e<this.#o().length;e++){let t=this.#o()[e];this.#e.removeClass(t,"focused"),this.#i()===e&&(this.#e.addClass(t,"focused"),t.scrollIntoView({block:"center"}))}}#d(){let e=this.#t();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let i=this.#o();for(let o=0;o<i.length;o++){let s=i[o].getAttribute("ng-reflect-value");s&&t.includes(s)?this.#e.setAttribute(i[o],"selected","selected"):this.#e.removeAttribute(i[o],"selected")}})}#u(){let e=this.#o();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#p;#y(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}}),e}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),this.#p.disconnect()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-select"]],viewQuery:function(t,i){t&1&&(M(i.optionsRef,Le,5),M(i.formFieldWrapperRef,We,5),M(i.inputWrapRef,Re,5)),t&2&&j(3)},inputs:{inputValue:[1,"inputValue"],readonly:[1,"readonly"],isFreeText:[1,"isFreeText"],selectMultiple:[1,"selectMultiple"],hideClearButton:[1,"hideClearButton"],displayValue:[1,"displayValue"],displayFn:[1,"displayFn"],above:[1,"above"],right:[1,"right"]},outputs:{inputValue:"inputValueChange"},ngContentSelectors:Ue,decls:15,vars:8,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"display-value"],["suffix","",1,"deselect-indicator"],["suffix","",1,"search-indicator"],["suffix","",1,"select-open-indicator",3,"open"],[1,"sparkle-options"],[1,"small","simple",3,"class"],[1,"small","simple",3,"click"],["suffix","",1,"deselect-indicator",3,"click"],[1,"default-indicator"],["suffix","",1,"select-open-indicator"]],template:function(t,i){if(t&1){let o=w();v(qe),r(0,"spk-popover",3,0),K("isOpenChange",function(c){return d(o),G(i.isOpen,c)||(i.isOpen=c),u(c)}),g("closed",function(){return d(o),u(i.close())}),r(2,"spk-form-field",4),g("click",function(c){return d(o),u(i.open(c))}),a(3,0,["ngProjectAs","label",5,["label"]]),r(4,"div",5,1),V(6,Ye,2,1,"div",6)(7,Xe,2,1,"div",6),a(8,1),l(),V(9,ze,4,0,"div",7)(10,Ge,4,0,"div",8)(11,Ke,4,2,"div",9),l(),r(12,"div",10,2),a(14,2),l()()}t&2&&(z("isOpen",i.isOpen),$("disableOpenByClick",!0)("options",J(7,Qe)),k(2),q(i.readonly()?"readonly":""),k(4),T(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),k(3),T((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11))},dependencies:[ct,ee,at,fe],encapsulation:2,changeDetection:0})}}return n})(),Wt=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=p(!1),this.isOpen=R(!1),this.type=p(""),this.dragImageElement=x.required("dragImageElement"),this.dragIsEnding=h(!1),this.dragIsOnScreen=h(!0),this.isDragging=h(!1),this.dragPositionX=h(0),this.dragActualPositionX=D(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=D(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=O(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(e){e.stopPropagation(),this.#e(e.clientX)}#e(e){this.isDragging.set(!1),e<=0?this.isOpen.set(!1):e>this.openWidthTreshold?this.isOpen.set(!0):e<this.openWidthTreshold&&(!this.isOpen()&&e<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(e){(e.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(e){e.preventDefault(),this.#n(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#n(e)}#n(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#n(e)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0)}touchMove(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.touches[0].clientX)})}touchEnd(e){e.stopPropagation(),this.#e(e.changedTouches[0].clientX)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-sidenav"]],viewQuery:function(t,i){t&1&&M(i.dragImageElement,Je,5),t&2&&j()},hostVars:10,hostBindings:function(t,i){t&2&&L("open",i.isOpen())("closed",!i.isOpen())("overlay",i.type()==="overlay")("simple",i.type()==="simple")("is-dragging",i.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:et,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","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,i){t&1&&(v(Ze),V(0,tt,2,0,"div",1)(1,it,1,0,"div",2),r(2,"div",3),a(3),l(),r(4,"div",4),V(5,nt,1,0,"div",5),r(6,"div",6),a(7,1),l(),r(8,"main"),a(9,2),l()()),t&2&&(T(i.type()==="overlay"?0:-1),k(),T(i.type()==="overlay"&&i.isDragging()?1:-1),k(3),A("transform",i.draggingStyle()),k(),T(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var qt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-stepper"]],ngContentSelectors:b,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})();var Ut=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-toggle"]],ngContentSelectors:b,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,i){t&1&&(v(),r(0,"div",0),P(1,"div",1),l(),a(2))},encapsulation:2,changeDetection:0})}}return n})(),Qt=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=p(!1),this.above=p(!1),this.right=p(!1),this._above=h(this.above()),this._right=h(this.right()),this.message=p.required(),this.isOpen=R(!1),this.closed=H(),this.triggerRef=x.required("triggerRef"),this.tooltipRef=x.required("tooltipRef"),this.id=h("--"+crypto.randomUUID()),this.menuStyle=h(null),this.isCalculatingPosition=D(()=>{let e=this.tooltipRef()?.nativeElement;return this.isOpen()?(e?.showPopover(),!0):(e.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=O(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#n(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;#n(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,c=o+this.#e,S=s+t.width>window.innerWidth,E=c+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(E),this._right.set(S);else{if(this.above()){let y=e.top-t.height-this.#e;y>=0&&(c=y)}else E&&(c=e.top-t.height-this.#e);if(this.right()){let y=e.right-t.width;y>=0&&(s=y)}else S&&(c=E?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:c+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-tooltip"]],viewQuery:function(t,i){t&1&&(M(i.triggerRef,he,5),M(i.tooltipRef,ot,5)),t&2&&j(2)},hostVars:6,hostBindings:function(t,i){t&2&&L("above",i._above())("right",i._right())("disabled",i.disabled())},inputs:{disabled:[1,"disabled"],above:[1,"above"],right:[1,"right"],message:[1,"message"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:b,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(t,i){if(t&1){let o=w();v(),r(0,"div",2,0),g("mouseover",function(){return d(o),u(i.isOpen.set(!0))})("mouseout",function(){return d(o),u(i.isOpen.set(!1))}),a(2),l(),r(3,"div",3,1),_(5),l()}t&2&&(A("anchor-name",i.id()),k(3),Y(i.menuStyle()),A("position-anchor",i.id()),k(2),X(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})(),Nt=(()=>{class n{constructor(){this.filesOver=h(!1),this.filesDropped=H()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=se({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&g("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),t&2&&L("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{ee as a,Tt as b,Mt as c,rt as d,It as e,Vt as f,lt as g,At as h,Ft as i,at as j,ct as k,Rt as l,Pt as m,jt as n,Ht as o,Bt as p,Lt as q,Wt as r,qt as s,Ut as t,Qt as u,Nt as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c}from"./chunk-C5O62M3L.js";import"./chunk-2PUTRWRI.js";import"./chunk-DNHLTHLR.js";import"./chunk-TLFDZKKI.js";import"./chunk-ZVT4YXH5.js";import"./chunk-6TFXXYVK.js";import"./chunk-BVTTY2FQ.js";import"./chunk-QL753AWG.js";import"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
|