@duplicati/ngclient 0.0.12 → 0.0.13
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-2LTGXEZS.js +1 -0
- package/{chunk-V7LHB36E.js → chunk-3B6RZWP4.js} +1 -1
- package/chunk-3DBUGAIF.js +1 -0
- package/chunk-3SP3MQEU.js +1 -0
- package/chunk-4OR2MBXM.js +1 -0
- package/{chunk-P4AWKIXG.js → chunk-6PJU5W5X.js} +1 -1
- package/chunk-74EYKZJR.js +1 -0
- package/chunk-7CGTOI24.js +1 -0
- package/chunk-7ROMUYYO.js +1 -0
- package/chunk-7YI4IDWY.js +1 -0
- package/chunk-7YM6RN2G.js +1 -0
- package/chunk-A2PI66LB.js +1 -0
- package/chunk-AVWHS36O.js +1 -0
- package/chunk-B42N6RQ3.js +1 -0
- package/{chunk-K4KGTWQK.js → chunk-BDBR5EDG.js} +1 -1
- package/{chunk-K3HFPUKT.js → chunk-BRVLVIBB.js} +1 -1
- package/chunk-CWAAKGM6.js +1 -0
- package/chunk-ER25OIRY.js +1 -0
- package/chunk-HAOKXZHF.js +1 -0
- package/{chunk-TIGGJ4KF.js → chunk-ICCENBZO.js} +1 -1
- package/chunk-KLPRJO2S.js +1 -0
- package/chunk-MYQPVSUP.js +1 -0
- package/chunk-NGPWOMCW.js +8 -0
- package/chunk-NSHVJHI5.js +1 -0
- package/chunk-NVFX5EQI.js +1 -0
- package/{chunk-OYQELNXA.js → chunk-OI46JH74.js} +2 -2
- package/{chunk-5Y47Y3RB.js → chunk-Q3B3QVNE.js} +1 -1
- package/chunk-QROBYUJD.js +2 -0
- package/{chunk-JDCFQ6PF.js → chunk-QVTIOQU4.js} +1 -1
- package/{chunk-G3ZRG5MJ.js → chunk-RH5CENQ7.js} +1 -1
- package/chunk-RIVCLGIC.js +1 -0
- package/chunk-RK3NUMZK.js +1 -0
- package/chunk-RL7JYJ4S.js +1 -0
- package/chunk-S4UXVQU2.js +1 -0
- package/chunk-SS4RWMEQ.js +1 -0
- package/chunk-SWUZR64I.js +1 -0
- package/chunk-TXPM7OPP.js +1 -0
- package/chunk-VJK4WSMT.js +1 -0
- package/chunk-WH7DPJOS.js +1 -0
- package/chunk-WQPTWFXA.js +1 -0
- package/chunk-XYN4OGS4.js +1 -0
- package/chunk-ZBL4ZWSP.js +1 -0
- package/chunk-ZUISIMKR.js +1 -0
- package/chunk-ZUVMWAQY.js +1 -0
- package/index.html +1 -1
- package/main-RMFQXRTZ.js +1 -0
- package/package.json +1 -1
- package/chunk-2AXNYUNT.js +0 -2
- package/chunk-3E64B4PC.js +0 -1
- package/chunk-4RT7DNKB.js +0 -1
- package/chunk-5SGHSZAK.js +0 -1
- package/chunk-76OEVFIM.js +0 -1
- package/chunk-AFUS3PYG.js +0 -1
- package/chunk-C52YH32J.js +0 -1
- package/chunk-CQGUEKNU.js +0 -1
- package/chunk-DCCSCFRQ.js +0 -1
- package/chunk-DJSNG6NF.js +0 -1
- package/chunk-E66JBJTH.js +0 -1
- package/chunk-H2IAZHJK.js +0 -1
- package/chunk-IDQOMEFA.js +0 -1
- package/chunk-L4EVZZOM.js +0 -1
- package/chunk-LNCAETYE.js +0 -1
- package/chunk-LSGSCARA.js +0 -1
- package/chunk-M7I5RH5L.js +0 -1
- package/chunk-MFISBPKS.js +0 -1
- package/chunk-MWB5FR2K.js +0 -1
- package/chunk-OM6QOR75.js +0 -1
- package/chunk-RBNO3K72.js +0 -8
- package/chunk-SQQXOHJO.js +0 -1
- package/chunk-SYBUINNV.js +0 -1
- package/chunk-UDWDXUOB.js +0 -1
- package/chunk-VOMOARSI.js +0 -1
- package/chunk-VSPW7AWV.js +0 -1
- package/chunk-WGKAMO4L.js +0 -1
- package/chunk-WU4K3UNC.js +0 -1
- package/chunk-YJ2MWFHK.js +0 -1
- package/chunk-YQDGW52C.js +0 -1
- package/chunk-ZE33Q6DJ.js +0 -1
- package/chunk-ZXOEQDPM.js +0 -1
- package/chunk-ZYCMR5VM.js +0 -1
- package/main-XRAHISLJ.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as me}from"./chunk-Q3B3QVNE.js";import{a as le}from"./chunk-BRVLVIBB.js";import{a as re}from"./chunk-ICCENBZO.js";import"./chunk-QVTIOQU4.js";import{a as ae}from"./chunk-74EYKZJR.js";import"./chunk-3B6RZWP4.js";import{b as se}from"./chunk-6PJU5W5X.js";import{b as $,d as W,e as q,f as z,h as j,i as H,j as J,l as K,m as Q,n as X,o as Y,p as Z,q as ee}from"./chunk-ER25OIRY.js";import"./chunk-WQPTWFXA.js";import{e as te,i as ne,m as ie,o as oe}from"./chunk-3SP3MQEU.js";import{a as L}from"./chunk-ZUVMWAQY.js";import{$b as B,Bb as r,Cb as E,Db as b,Hb as A,I as v,Ia as D,La as s,Ra as h,U as y,W as I,Ya as O,Zb as G,_a as S,ab as M,c as F,db as C,ea as u,eb as x,fa as d,fb as T,gb as k,hb as n,ib as o,jb as p,kb as R,lb as w,nb as _,ob as m,p as U,pb as c,sb as N}from"./chunk-NGPWOMCW.js";import"./chunk-7CGTOI24.js";function ue(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 de(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(),D),s(),E(t.remoteControlClaimUrl())}}function ge(a,e){a&1&&(n(0,"div",26)(1,"label"),r(2,"Registering, please wait..."),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.cancelRemoteRegistration())}),r(1," Cancel registration "),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.disableRemoteControl())}),r(1," Disable remote control "),o()}}function fe(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 Se(a,e){if(a&1&&(n(0,"div",5),O(1,ue,4,0)(2,de,5,2,"div",26)(3,ge,3,0,"div",26)(4,Ce,2,0,"button",27)(5,_e,2,0,"button",27)(6,fe,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 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.timeType.setValue(l.value))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t.value),s(),b(" ",t.label," ")}}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.pauseSettings.controls.time.setValue(l))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t),s(),E(t)}}function ve(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 Y,pe=[{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"}],ce=[{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(re);#e=y(L);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=B(()=>{this.settingsForm.controls.remoteControlRegisterUrl.patchValue(this.sysinfo()?.RemoteControlRegistrationUrl??"")},{allowSignalWrites:!0});get pauseSettings(){return this.settingsForm.controls.pauseSettings}langSignal=se(this.settingsForm.controls.language.valueChanges);timeTypeOptions=h(pe);timeOptions=me([this.pauseSettings.controls.timeType.valueChanges.pipe(v("s")),this.pauseSettings.controls.time.valueChanges.pipe(v(null))],F(U(([e,t])=>{let i=this.#r(e);return t!==null?i.filter(l=>l.toString().includes(t.toString())):i}),v([])));languageOptions=G(()=>this.langSignal()?V.filter(e=>e.value===this.langSignal()):V);usageStatisticsOptions=h(ce);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:pe.find(t=>t.value===e)?.label??null}usageDisplay(e){return typeof e!="string"?null:ce.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=I({type:a,selectors:[["app-settings"]],standalone:!0,features:[A],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,Se,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,he,2,2,"option",11,x),w(),o(),n(31,"spk-select"),p(32,"input",12),R(33,10),T(34,be,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,"Lorem ipsum dolor sit amet, consectetur adipiscing elit."),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,ve,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:[Z,z,Q,X,$,j,W,q,ee,H,K,J,ae,te,ie,ne,oe],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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as it}from"./chunk-RBNO3K72.js";var at=60,ot=at*60,ut=ot*24,yt=ut*7,_=1e3,Y=at*_,x=ot*_,H=ut*_,z=yt*_,b="millisecond",g="second",E="minute",N="hour",y="day",k="week",S="month",V="quarter",p="year",w="date",ct="YYYY-MM-DDTHH:mm:ssZ",tt="Invalid Date",ft=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ht={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}};var et=function(t,r,e){var s=String(t);return!s||s.length>=r?t:""+Array(r+1-s.length).join(e)+t},pt=function(t){var r=-t.utcOffset(),e=Math.abs(r),s=Math.floor(e/60),n=e%60;return(r<=0?"+":"-")+et(s,2,"0")+":"+et(n,2,"0")},_t=function u(t,r){if(t.date()<r.date())return-u(r,t);var e=(r.year()-t.year())*12+(r.month()-t.month()),s=t.clone().add(e,S),n=r-s<0,i=t.clone().add(e+(n?-1:1),S);return+(-(e+(r-s)/(n?s-i:i-s))||0)},Ot=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},It=function(t){var r={M:S,y:p,w:k,d:y,D:w,h:N,m:E,s:g,ms:b,Q:V};return r[t]||String(t||"").toLowerCase().replace(/s$/,"")},gt=function(t){return t===void 0},dt={s:et,z:pt,m:_t,a:Ot,p:It,u:gt};var P="en",U={};U[P]=ht;var lt="$isDayjsObject",st=function(t){return t instanceof B||!!(t&&t[lt])},X=function u(t,r,e){var s;if(!t)return P;if(typeof t=="string"){var n=t.toLowerCase();U[n]&&(s=n),r&&(U[n]=r,s=n);var i=t.split("-");if(!s&&i.length>1)return u(i[0])}else{var a=t.name;U[a]=t,s=a}return!e&&s&&(P=s),s||!e&&P},v=function(t,r){if(st(t))return t.clone();var e=typeof r=="object"?r:{};return e.date=t,e.args=arguments,new B(e)},Et=function(t,r){return v(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})},h=dt;h.l=X;h.i=st;h.w=Et;var Nt=function(t){var r=t.date,e=t.utc;if(r===null)return new Date(NaN);if(h.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var s=r.match(ft);if(s){var n=s[2]-1||0,i=(s[7]||"0").substring(0,3);return e?new Date(Date.UTC(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)):new Date(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)}}return new Date(r)},B=function(){function u(r){this.$L=X(r.locale,null,!0),this.parse(r),this.$x=this.$x||r.x||{},this[lt]=!0}var t=u.prototype;return t.parse=function(e){this.$d=Nt(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return h},t.isValid=function(){return this.$d.toString()!==tt},t.isSame=function(e,s){var n=v(e);return this.startOf(s)<=n&&n<=this.endOf(s)},t.isAfter=function(e,s){return v(e)<this.startOf(s)},t.isBefore=function(e,s){return this.endOf(s)<v(e)},t.$g=function(e,s,n){return h.u(e)?this[s]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,s){var n=this,i=h.u(s)?!0:s,a=h.p(e),o=function(I,m){var l=h.w(n.$u?Date.UTC(n.$y,m,I):new Date(n.$y,m,I),n);return i?l:l.endOf(y)},c=function(I,m){var l=[0,0,0,0],D=[23,59,59,999];return h.w(n.toDate()[I].apply(n.toDate("s"),(i?l:D).slice(m)),n)},f=this.$W,$=this.$M,d=this.$D,M="set"+(this.$u?"UTC":"");switch(a){case p:return i?o(1,0):o(31,11);case S:return i?o(1,$):o(0,$+1);case k:{var C=this.$locale().weekStart||0,L=(f<C?f+7:f)-C;return o(i?d-L:d+(6-L),$)}case y:case w:return c(M+"Hours",0);case N:return c(M+"Minutes",1);case E:return c(M+"Seconds",2);case g:return c(M+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,s){var n,i=h.p(e),a="set"+(this.$u?"UTC":""),o=(n={},n[y]=a+"Date",n[w]=a+"Date",n[S]=a+"Month",n[p]=a+"FullYear",n[N]=a+"Hours",n[E]=a+"Minutes",n[g]=a+"Seconds",n[b]=a+"Milliseconds",n)[i],c=i===y?this.$D+(s-this.$W):s;if(i===S||i===p){var f=this.clone().set(w,1);f.$d[o](c),f.init(),this.$d=f.set(w,Math.min(this.$D,f.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},t.set=function(e,s){return this.clone().$set(e,s)},t.get=function(e){return this[h.p(e)]()},t.add=function(e,s){var n=this,i;e=Number(e);var a=h.p(s),o=function(d){var M=v(n);return h.w(M.date(M.date()+Math.round(d*e)),n)};if(a===S)return this.set(S,this.$M+e);if(a===p)return this.set(p,this.$y+e);if(a===y)return o(1);if(a===k)return o(7);var c=(i={},i[E]=Y,i[N]=x,i[g]=_,i)[a]||1,f=this.$d.getTime()+e*c;return h.w(f,this)},t.subtract=function(e,s){return this.add(e*-1,s)},t.format=function(e){var s=this,n=this.$locale();if(!this.isValid())return n.invalidDate||tt;var i=e||ct,a=h.z(this),o=this.$H,c=this.$m,f=this.$M,$=n.weekdays,d=n.months,M=n.meridiem,C=function(l,D,T,W){return l&&(l[D]||l(s,i))||T[D].slice(0,W)},L=function(l){return h.s(o%12||12,l,"0")},O=M||function(m,l,D){var T=m<12?"AM":"PM";return D?T.toLowerCase():T},I=function(l){switch(l){case"YY":return String(s.$y).slice(-2);case"YYYY":return h.s(s.$y,4,"0");case"M":return f+1;case"MM":return h.s(f+1,2,"0");case"MMM":return C(n.monthsShort,f,d,3);case"MMMM":return C(d,f);case"D":return s.$D;case"DD":return h.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return C(n.weekdaysMin,s.$W,$,2);case"ddd":return C(n.weekdaysShort,s.$W,$,3);case"dddd":return $[s.$W];case"H":return String(o);case"HH":return h.s(o,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return O(o,c,!0);case"A":return O(o,c,!1);case"m":return String(c);case"mm":return h.s(c,2,"0");case"s":return String(s.$s);case"ss":return h.s(s.$s,2,"0");case"SSS":return h.s(s.$ms,3,"0");case"Z":return a;default:break}return null};return i.replace(Z,function(m,l){return l||I(m)||a.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(e,s,n){var i=this,a=h.p(s),o=v(e),c=(o.utcOffset()-this.utcOffset())*Y,f=this-o,$=function(){return h.m(i,o)},d;switch(a){case p:d=$()/12;break;case S:d=$();break;case V:d=$()/3;break;case k:d=(f-c)/z;break;case y:d=(f-c)/H;break;case N:d=f/x;break;case E:d=f/Y;break;case g:d=f/_;break;default:d=f;break}return n?d:h.a(d)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return U[this.$L]},t.locale=function(e,s){if(!e)return this.$L;var n=this.clone(),i=X(e,s,!0);return i&&(n.$L=i),n},t.clone=function(){return h.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},u}(),vt=B.prototype;v.prototype=vt;[["$ms",b],["$s",g],["$m",E],["$H",N],["$W",y],["$M",S],["$y",p],["$D",w]].forEach(function(u){vt[u[1]]=function(t){return this.$g(t,u[0],u[1])}});v.extend=function(u,t){return u.$i||(u(t,B,v),u.$i=!0),v};v.locale=X;v.isDayjs=st;v.unix=function(u){return v(u*1e3)};v.en=U[P];v.Ls=U;v.p={};var K=v;var q=H*365,nt=q/12,At=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,j={years:q,months:nt,days:H,hours:x,minutes:Y,seconds:_,milliseconds:1,weeks:z},Q=function(t){return t instanceof St},mt,A,G=function(t,r,e){return new St(t,e,r.$l)},J=function(t){return A.p(t)+"s"},Mt=function(t){return t<0},F=function(t){return Mt(t)?Math.ceil(t):Math.floor(t)},Lt=function(t){return Math.abs(t)},R=function(t,r){return t?Mt(t)?{negative:!0,format:""+Lt(t)+r}:{negative:!1,format:""+t+r}:{negative:!1,format:""}},St=function(){function u(r,e,s){var n=this;if(this.$d={},this.$l=s,r===void 0&&(this.$ms=0,this.parseFromMilliseconds()),e)return G(r*j[J(e)],this);if(typeof r=="number")return this.$ms=r,this.parseFromMilliseconds(),this;if(typeof r=="object")return Object.keys(r).forEach(function(c){n.$d[J(c)]=r[c]}),this.calMilliseconds(),this;if(typeof r=="string"){var i=r.match(At);if(i){var a=i.slice(2),o=a.map(function(c){return c!=null?Number(c):0});return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var t=u.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(s,n){return s+(e.$d[n]||0)*j[n]},0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=F(e/q),e%=q,this.$d.months=F(e/nt),e%=nt,this.$d.days=F(e/H),e%=H,this.$d.hours=F(e/x),e%=x,this.$d.minutes=F(e/Y),e%=Y,this.$d.seconds=F(e/_),e%=_,this.$d.milliseconds=e},t.toISOString=function(){var e=R(this.$d.years,"Y"),s=R(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=this.$d.weeks*7);var i=R(n,"D"),a=R(this.$d.hours,"H"),o=R(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(c*1e3)/1e3);var f=R(c,"S"),$=e.negative||s.negative||i.negative||a.negative||o.negative||f.negative,d=a.format||o.format||f.format?"T":"",M=$?"-":"",C=M+"P"+e.format+s.format+i.format+d+a.format+o.format+f.format;return C==="P"||C==="-P"?"P0D":C},t.toJSON=function(){return this.toISOString()},t.format=function(e){var s=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:A.s(this.$d.years,2,"0"),YYYY:A.s(this.$d.years,4,"0"),M:this.$d.months,MM:A.s(this.$d.months,2,"0"),D:this.$d.days,DD:A.s(this.$d.days,2,"0"),H:this.$d.hours,HH:A.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:A.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:A.s(this.$d.seconds,2,"0"),SSS:A.s(this.$d.milliseconds,3,"0")};return s.replace(Z,function(i,a){return a||String(n[i])})},t.as=function(e){return this.$ms/j[J(e)]},t.get=function(e){var s=this.$ms,n=J(e);return n==="milliseconds"?s%=1e3:n==="weeks"?s=F(s/j[n]):s=this.$d[n],s||0},t.add=function(e,s,n){var i;return s?i=e*j[J(s)]:Q(e)?i=e.$ms:i=G(e,this).$ms,G(this.$ms+i*(n?-1:1),this)},t.subtract=function(e,s){return this.add(e,s,!0)},t.locale=function(e){var s=this.clone();return s.$l=e,s},t.clone=function(){return G(this.$ms,this)},t.humanize=function(e){return mt().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},u}(),$t=function(t,r,e){return t.add(r.years()*e,"y").add(r.months()*e,"M").add(r.days()*e,"d").add(r.hours()*e,"h").add(r.minutes()*e,"m").add(r.seconds()*e,"s").add(r.milliseconds()*e,"ms")},Ct=function(u,t,r){mt=r,A=r().$utils(),r.duration=function(n,i){var a=r.locale();return G(n,{$l:a},i)},r.isDuration=Q;var e=t.prototype.add,s=t.prototype.subtract;t.prototype.add=function(n,i){return Q(n)?$t(this,n,1):e.bind(this)(n,i)},t.prototype.subtract=function(n,i){return Q(n)?$t(this,n,-1):s.bind(this)(n,i)}};var Dt=function(u,t,r){u=u||{};var e=t.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};r.en.relativeTime=s,e.fromToBase=function(a,o,c,f,$){for(var d=c.$locale().relativeTime||s,M=u.thresholds||[{l:"s",r:44,d:g},{l:"m",r:89},{l:"mm",r:44,d:E},{l:"h",r:89},{l:"hh",r:21,d:N},{l:"d",r:35},{l:"dd",r:25,d:y},{l:"M",r:45},{l:"MM",r:10,d:S},{l:"y",r:17},{l:"yy",d:p}],C=M.length,L,O,I,m=0;m<C;m+=1){var l=M[m];l.d&&(L=f?r(a).diff(c,l.d,!0):c.diff(a,l.d,!0));var D=(u.rounding||Math.round)(Math.abs(L));if(I=L>0,D<=l.r||!l.r){D<=1&&m>0&&(l=M[m-1]);var T=d[l.l];$&&(D=$(""+D)),typeof T=="string"?O=T.replace("%d",D):O=T(D,o,l.l,I);break}}if(o)return O;var W=I?d.future:d.past;return typeof W=="function"?W(O):W.replace("%s",O)};function n(a,o,c,f){return e.fromToBase(a,o,c,f)}e.to=function(a,o){return n(a,o,this,!0)},e.from=function(a,o){return n(a,o,this)};var i=function(o){return o.$u?r.utc():r()};e.toNow=function(a){return this.to(i(this),a)},e.fromNow=function(a){return this.from(i(this),a)}};var Tt=new it("Dayjs"),Gt={provide:Tt,useFactory:()=>(K.extend(Dt),K.extend(Ct),K)};export{Tt as a,Gt as b};
|
|
1
|
+
import{R as it}from"./chunk-NGPWOMCW.js";var at=60,ot=at*60,ut=ot*24,yt=ut*7,_=1e3,Y=at*_,x=ot*_,H=ut*_,z=yt*_,b="millisecond",g="second",E="minute",N="hour",y="day",k="week",S="month",V="quarter",p="year",w="date",ct="YYYY-MM-DDTHH:mm:ssZ",tt="Invalid Date",ft=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ht={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}};var et=function(t,r,e){var s=String(t);return!s||s.length>=r?t:""+Array(r+1-s.length).join(e)+t},pt=function(t){var r=-t.utcOffset(),e=Math.abs(r),s=Math.floor(e/60),n=e%60;return(r<=0?"+":"-")+et(s,2,"0")+":"+et(n,2,"0")},_t=function u(t,r){if(t.date()<r.date())return-u(r,t);var e=(r.year()-t.year())*12+(r.month()-t.month()),s=t.clone().add(e,S),n=r-s<0,i=t.clone().add(e+(n?-1:1),S);return+(-(e+(r-s)/(n?s-i:i-s))||0)},Ot=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},It=function(t){var r={M:S,y:p,w:k,d:y,D:w,h:N,m:E,s:g,ms:b,Q:V};return r[t]||String(t||"").toLowerCase().replace(/s$/,"")},gt=function(t){return t===void 0},dt={s:et,z:pt,m:_t,a:Ot,p:It,u:gt};var P="en",U={};U[P]=ht;var lt="$isDayjsObject",st=function(t){return t instanceof B||!!(t&&t[lt])},X=function u(t,r,e){var s;if(!t)return P;if(typeof t=="string"){var n=t.toLowerCase();U[n]&&(s=n),r&&(U[n]=r,s=n);var i=t.split("-");if(!s&&i.length>1)return u(i[0])}else{var a=t.name;U[a]=t,s=a}return!e&&s&&(P=s),s||!e&&P},v=function(t,r){if(st(t))return t.clone();var e=typeof r=="object"?r:{};return e.date=t,e.args=arguments,new B(e)},Et=function(t,r){return v(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})},h=dt;h.l=X;h.i=st;h.w=Et;var Nt=function(t){var r=t.date,e=t.utc;if(r===null)return new Date(NaN);if(h.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var s=r.match(ft);if(s){var n=s[2]-1||0,i=(s[7]||"0").substring(0,3);return e?new Date(Date.UTC(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)):new Date(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)}}return new Date(r)},B=function(){function u(r){this.$L=X(r.locale,null,!0),this.parse(r),this.$x=this.$x||r.x||{},this[lt]=!0}var t=u.prototype;return t.parse=function(e){this.$d=Nt(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return h},t.isValid=function(){return this.$d.toString()!==tt},t.isSame=function(e,s){var n=v(e);return this.startOf(s)<=n&&n<=this.endOf(s)},t.isAfter=function(e,s){return v(e)<this.startOf(s)},t.isBefore=function(e,s){return this.endOf(s)<v(e)},t.$g=function(e,s,n){return h.u(e)?this[s]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,s){var n=this,i=h.u(s)?!0:s,a=h.p(e),o=function(I,m){var l=h.w(n.$u?Date.UTC(n.$y,m,I):new Date(n.$y,m,I),n);return i?l:l.endOf(y)},c=function(I,m){var l=[0,0,0,0],D=[23,59,59,999];return h.w(n.toDate()[I].apply(n.toDate("s"),(i?l:D).slice(m)),n)},f=this.$W,$=this.$M,d=this.$D,M="set"+(this.$u?"UTC":"");switch(a){case p:return i?o(1,0):o(31,11);case S:return i?o(1,$):o(0,$+1);case k:{var C=this.$locale().weekStart||0,L=(f<C?f+7:f)-C;return o(i?d-L:d+(6-L),$)}case y:case w:return c(M+"Hours",0);case N:return c(M+"Minutes",1);case E:return c(M+"Seconds",2);case g:return c(M+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,s){var n,i=h.p(e),a="set"+(this.$u?"UTC":""),o=(n={},n[y]=a+"Date",n[w]=a+"Date",n[S]=a+"Month",n[p]=a+"FullYear",n[N]=a+"Hours",n[E]=a+"Minutes",n[g]=a+"Seconds",n[b]=a+"Milliseconds",n)[i],c=i===y?this.$D+(s-this.$W):s;if(i===S||i===p){var f=this.clone().set(w,1);f.$d[o](c),f.init(),this.$d=f.set(w,Math.min(this.$D,f.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},t.set=function(e,s){return this.clone().$set(e,s)},t.get=function(e){return this[h.p(e)]()},t.add=function(e,s){var n=this,i;e=Number(e);var a=h.p(s),o=function(d){var M=v(n);return h.w(M.date(M.date()+Math.round(d*e)),n)};if(a===S)return this.set(S,this.$M+e);if(a===p)return this.set(p,this.$y+e);if(a===y)return o(1);if(a===k)return o(7);var c=(i={},i[E]=Y,i[N]=x,i[g]=_,i)[a]||1,f=this.$d.getTime()+e*c;return h.w(f,this)},t.subtract=function(e,s){return this.add(e*-1,s)},t.format=function(e){var s=this,n=this.$locale();if(!this.isValid())return n.invalidDate||tt;var i=e||ct,a=h.z(this),o=this.$H,c=this.$m,f=this.$M,$=n.weekdays,d=n.months,M=n.meridiem,C=function(l,D,T,W){return l&&(l[D]||l(s,i))||T[D].slice(0,W)},L=function(l){return h.s(o%12||12,l,"0")},O=M||function(m,l,D){var T=m<12?"AM":"PM";return D?T.toLowerCase():T},I=function(l){switch(l){case"YY":return String(s.$y).slice(-2);case"YYYY":return h.s(s.$y,4,"0");case"M":return f+1;case"MM":return h.s(f+1,2,"0");case"MMM":return C(n.monthsShort,f,d,3);case"MMMM":return C(d,f);case"D":return s.$D;case"DD":return h.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return C(n.weekdaysMin,s.$W,$,2);case"ddd":return C(n.weekdaysShort,s.$W,$,3);case"dddd":return $[s.$W];case"H":return String(o);case"HH":return h.s(o,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return O(o,c,!0);case"A":return O(o,c,!1);case"m":return String(c);case"mm":return h.s(c,2,"0");case"s":return String(s.$s);case"ss":return h.s(s.$s,2,"0");case"SSS":return h.s(s.$ms,3,"0");case"Z":return a;default:break}return null};return i.replace(Z,function(m,l){return l||I(m)||a.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(e,s,n){var i=this,a=h.p(s),o=v(e),c=(o.utcOffset()-this.utcOffset())*Y,f=this-o,$=function(){return h.m(i,o)},d;switch(a){case p:d=$()/12;break;case S:d=$();break;case V:d=$()/3;break;case k:d=(f-c)/z;break;case y:d=(f-c)/H;break;case N:d=f/x;break;case E:d=f/Y;break;case g:d=f/_;break;default:d=f;break}return n?d:h.a(d)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return U[this.$L]},t.locale=function(e,s){if(!e)return this.$L;var n=this.clone(),i=X(e,s,!0);return i&&(n.$L=i),n},t.clone=function(){return h.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},u}(),vt=B.prototype;v.prototype=vt;[["$ms",b],["$s",g],["$m",E],["$H",N],["$W",y],["$M",S],["$y",p],["$D",w]].forEach(function(u){vt[u[1]]=function(t){return this.$g(t,u[0],u[1])}});v.extend=function(u,t){return u.$i||(u(t,B,v),u.$i=!0),v};v.locale=X;v.isDayjs=st;v.unix=function(u){return v(u*1e3)};v.en=U[P];v.Ls=U;v.p={};var K=v;var q=H*365,nt=q/12,At=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,j={years:q,months:nt,days:H,hours:x,minutes:Y,seconds:_,milliseconds:1,weeks:z},Q=function(t){return t instanceof St},mt,A,G=function(t,r,e){return new St(t,e,r.$l)},J=function(t){return A.p(t)+"s"},Mt=function(t){return t<0},F=function(t){return Mt(t)?Math.ceil(t):Math.floor(t)},Lt=function(t){return Math.abs(t)},R=function(t,r){return t?Mt(t)?{negative:!0,format:""+Lt(t)+r}:{negative:!1,format:""+t+r}:{negative:!1,format:""}},St=function(){function u(r,e,s){var n=this;if(this.$d={},this.$l=s,r===void 0&&(this.$ms=0,this.parseFromMilliseconds()),e)return G(r*j[J(e)],this);if(typeof r=="number")return this.$ms=r,this.parseFromMilliseconds(),this;if(typeof r=="object")return Object.keys(r).forEach(function(c){n.$d[J(c)]=r[c]}),this.calMilliseconds(),this;if(typeof r=="string"){var i=r.match(At);if(i){var a=i.slice(2),o=a.map(function(c){return c!=null?Number(c):0});return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var t=u.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(s,n){return s+(e.$d[n]||0)*j[n]},0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=F(e/q),e%=q,this.$d.months=F(e/nt),e%=nt,this.$d.days=F(e/H),e%=H,this.$d.hours=F(e/x),e%=x,this.$d.minutes=F(e/Y),e%=Y,this.$d.seconds=F(e/_),e%=_,this.$d.milliseconds=e},t.toISOString=function(){var e=R(this.$d.years,"Y"),s=R(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=this.$d.weeks*7);var i=R(n,"D"),a=R(this.$d.hours,"H"),o=R(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(c*1e3)/1e3);var f=R(c,"S"),$=e.negative||s.negative||i.negative||a.negative||o.negative||f.negative,d=a.format||o.format||f.format?"T":"",M=$?"-":"",C=M+"P"+e.format+s.format+i.format+d+a.format+o.format+f.format;return C==="P"||C==="-P"?"P0D":C},t.toJSON=function(){return this.toISOString()},t.format=function(e){var s=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:A.s(this.$d.years,2,"0"),YYYY:A.s(this.$d.years,4,"0"),M:this.$d.months,MM:A.s(this.$d.months,2,"0"),D:this.$d.days,DD:A.s(this.$d.days,2,"0"),H:this.$d.hours,HH:A.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:A.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:A.s(this.$d.seconds,2,"0"),SSS:A.s(this.$d.milliseconds,3,"0")};return s.replace(Z,function(i,a){return a||String(n[i])})},t.as=function(e){return this.$ms/j[J(e)]},t.get=function(e){var s=this.$ms,n=J(e);return n==="milliseconds"?s%=1e3:n==="weeks"?s=F(s/j[n]):s=this.$d[n],s||0},t.add=function(e,s,n){var i;return s?i=e*j[J(s)]:Q(e)?i=e.$ms:i=G(e,this).$ms,G(this.$ms+i*(n?-1:1),this)},t.subtract=function(e,s){return this.add(e,s,!0)},t.locale=function(e){var s=this.clone();return s.$l=e,s},t.clone=function(){return G(this.$ms,this)},t.humanize=function(e){return mt().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},u}(),$t=function(t,r,e){return t.add(r.years()*e,"y").add(r.months()*e,"M").add(r.days()*e,"d").add(r.hours()*e,"h").add(r.minutes()*e,"m").add(r.seconds()*e,"s").add(r.milliseconds()*e,"ms")},Ct=function(u,t,r){mt=r,A=r().$utils(),r.duration=function(n,i){var a=r.locale();return G(n,{$l:a},i)},r.isDuration=Q;var e=t.prototype.add,s=t.prototype.subtract;t.prototype.add=function(n,i){return Q(n)?$t(this,n,1):e.bind(this)(n,i)},t.prototype.subtract=function(n,i){return Q(n)?$t(this,n,-1):s.bind(this)(n,i)}};var Dt=function(u,t,r){u=u||{};var e=t.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};r.en.relativeTime=s,e.fromToBase=function(a,o,c,f,$){for(var d=c.$locale().relativeTime||s,M=u.thresholds||[{l:"s",r:44,d:g},{l:"m",r:89},{l:"mm",r:44,d:E},{l:"h",r:89},{l:"hh",r:21,d:N},{l:"d",r:35},{l:"dd",r:25,d:y},{l:"M",r:45},{l:"MM",r:10,d:S},{l:"y",r:17},{l:"yy",d:p}],C=M.length,L,O,I,m=0;m<C;m+=1){var l=M[m];l.d&&(L=f?r(a).diff(c,l.d,!0):c.diff(a,l.d,!0));var D=(u.rounding||Math.round)(Math.abs(L));if(I=L>0,D<=l.r||!l.r){D<=1&&m>0&&(l=M[m-1]);var T=d[l.l];$&&(D=$(""+D)),typeof T=="string"?O=T.replace("%d",D):O=T(D,o,l.l,I);break}}if(o)return O;var W=I?d.future:d.past;return typeof W=="function"?W(O):W.replace("%s",O)};function n(a,o,c,f){return e.fromToBase(a,o,c,f)}e.to=function(a,o){return n(a,o,this,!0)},e.from=function(a,o){return n(a,o,this)};var i=function(o){return o.$u?r.utc():r()};e.toNow=function(a){return this.to(i(this),a)},e.fromNow=function(a){return this.from(i(this),a)}};var Tt=new it("Dayjs"),Gt={provide:Tt,useFactory:()=>(K.extend(Dt),K.extend(Ct),K)};export{Tt as a,Gt as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as a,k as b}from"./chunk-NVFX5EQI.js";import"./chunk-MYQPVSUP.js";import"./chunk-ICCENBZO.js";import"./chunk-DNHLTHLR.js";import"./chunk-6PJU5W5X.js";import"./chunk-ER25OIRY.js";import"./chunk-WQPTWFXA.js";import"./chunk-3SP3MQEU.js";import"./chunk-4OR2MBXM.js";import"./chunk-KLPRJO2S.js";import"./chunk-ZUVMWAQY.js";import"./chunk-NGPWOMCW.js";import"./chunk-7CGTOI24.js";export{a as createScheduleForm,b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$a as L,$b as I,Ab as Z,Bb as _,Cb as ee,Db as te,Hb as g,La as C,O as Q,Oa as X,Ra as p,Sa as A,Ta as F,U as T,W as m,Ya as D,Zb as x,_a as z,ab as j,bb as q,cb as G,db as E,ea as d,eb as Y,fa as u,fb as J,gb as K,hb as s,ib as r,ic as ie,ja as N,jb as M,nb as O,ob as k,pa as U,pb as c,qa as S,qb as v,ra as H,rb as l,yb as V,zb as W}from"./chunk-NGPWOMCW.js";import{a as R,b as P}from"./chunk-7CGTOI24.js";var w=["*"],ne=[[["","spk-alert-icon",""]],[["","spk-alert-title",""]],"*",[["","spk-alert-content",""]]],oe=["[spk-alert-icon]","[spk-alert-title]","*","[spk-alert-content]"];function se(i,h){i&1&&(s(0,"spk-icon",6),_(1,"info"),r())}function re(i,h){i&1&&(s(0,"spk-icon",6),_(1,"info"),r())}function le(i,h){i&1&&(s(0,"spk-icon",6),_(1,"check-circle"),r())}function ae(i,h){i&1&&(s(0,"spk-icon",6),_(1,"warning-octagon"),r())}function ce(i,h){i&1&&(s(0,"spk-icon",6),_(1,"warning"),r())}function pe(i,h){i&1&&(s(0,"spk-icon",6),_(1,"question"),r())}function de(i,h){if(i&1&&(s(0,"div",2),D(1,se,2,0,"spk-icon",6)(2,re,2,0,"spk-icon",6)(3,le,2,0,"spk-icon",6)(4,ae,2,0,"spk-icon",6)(5,ce,2,0,"spk-icon",6)(6,pe,2,0,"spk-icon",6),r()),i&2){let e,t=c();C(),E((e=t.type())==="primary"?1:e==="accent"?2:e==="success"?3:e==="error"?4:e==="warning"?5:6)}}function ue(i,h){if(i&1){let e=O();s(0,"spk-icon",7),k("click",function(){d(e);let n=c();return u(n.removeAlert())}),_(1,"plus"),r()}}var he=["spk-button",""],fe=["inputWrap"];var me=[[["label"]],[["","spkPrefix",""]],[["","spkTextPrefix",""]],[["input"]],[["textarea"]],[["","spkTextSuffix",""]],[["","spkSuffix",""]],[["","spkError",""]],[["","spkHint",""]]],ge=["label","[spkPrefix]","[spkTextPrefix]","input","textarea","[spkTextSuffix]","[spkSuffix]","[spkError]","[spkHint]"],ve=["actionRef"],Se=["menuRef"],Ce=["*",[["","menu",""]]],_e=["*","[menu]"];var ke=["optionsRef"],ye=["formFieldWrapper"],xe=[[["label"]],[["input"]],[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]],[["","placeholder-text",""]],[["","options",""]]],we=["label","input","[deselect-indicator]","[search-indicator]","[open-indicator]","[placeholder-text]","[options]"];function De(i,h){if(i&1){let e=O();s(0,"spk-chip",11),k("click",function(n){let o=d(e).$implicit,a=c(3);return u(a.toggleOption(o,n))}),_(1),s(2,"spk-icon"),_(3,"x-circle"),r()()}if(i&2){let e,t=h.$implicit,n=c(3);z("ngClass",n.chipClass()),C(),te(" ",(e=(e=n.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function Ee(i,h){if(i&1&&J(0,De,4,2,"spk-chip",10,Y),i&2){let e=c(2);K(e.inputValue().split(","))}}function be(i,h){if(i&1&&(s(0,"div",5),D(1,Ee,2,0),r()),i&2){let e=c();C(),E(e.inputValue().length>0?1:-1)}}function Oe(i,h){if(i&1&&(s(0,"div",5),_(1),r()),i&2){let e=c();C(),ee(e._displayValue())}}function Te(i,h){if(i&1){let e=O();s(0,"div",12),k("click",function(n){d(e);let o=c();return u(o.deselect(n))}),l(1,2),s(2,"spk-icon",13),_(3,"x-circle"),r()()}}function Fe(i,h){i&1&&(s(0,"div",7),l(1,3),s(2,"spk-icon",13),_(3,"magnifying-glass"),r()())}function Ie(i,h){if(i&1&&(s(0,"div",14),l(1,4),s(2,"spk-icon",13),_(3,"caret-down"),r()()),i&2){let e=c();j("open",e.isOpen())}}function Ae(i,h){if(i&1){let e=O();s(0,"div",15,2)(2,"div",16),k("click",function(){d(e);let n=c();return u(n.close())}),r(),s(3,"div",17)(4,"div",18),l(5,5),r(),l(6,6),r()()}if(i&2){let e=c();q(e.optionsStyle()),j("active",e.delayedIsOpen())}}var Me=["dragImageElement"],Ve=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],He=["[sidenav]","[sidenav-closed-topbar]","*"];function je(i,h){if(i&1){let e=O();s(0,"div",7),k("drop",function(n){d(e);let o=c();return u(o.drop(n))})("dragover",function(n){d(e);let o=c();return u(o.dragOver(n))})("dragenter",function(){d(e);let n=c();return u(n.dragEnter())})("dragleave",function(){d(e);let n=c();return u(n.dragLeave())}),r()}}function Be(i,h){if(i&1){let e=O();s(0,"div",8),k("dragstart",function(n){d(e);let o=c();return u(o.dragStart(n))})("dragend",function(n){d(e);let o=c();return u(o.dragEnd(n))})("drag",function(n){d(e);let o=c();return u(o.drag(n))})("touchstart",function(n){d(e);let o=c();return u(o.touchStart(n))})("touchmove",function(n){d(e);let o=c();return u(o.touchMove(n))})("touchend",function(n){d(e);let o=c();return u(o.touchEnd(n))})("touchcancel",function(n){d(e);let o=c();return u(o.touchCancel(n))}),r()}}var $=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-icon"]],standalone:!0,features:[g],ngContentSelectors:w,decls:1,vars:0,template:function(t,n){t&1&&(v(),l(0))},encapsulation:2,changeDetection:0})}}return i})(),rt=(()=>{class i{constructor(){this._el=T(H),this.alertService=S(null),this.type=S("error"),this.id=S(null)}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-alert"]],hostVars:2,hostBindings:function(t,n){t&2&&G(n.type())},inputs:{alertService:[1,"alertService"],type:[1,"type"],id:[1,"id"]},standalone:!0,features:[g],ngContentSelectors:oe,decls:11,vars:4,consts:[["ref",""],[1,"spk-alert-item"],[1,"spk-alert-icon"],[1,"spk-alert-title"],[1,"spk-alert-close-icon"],[1,"spk-alert-content"],[1,"spk-alert-state-icon"],[1,"spk-alert-close-icon",3,"click"]],template:function(t,n){if(t&1&&(v(ne),s(0,"div",1)(1,"div",2,0),l(3),r(),D(4,de,7,1,"div",2),s(5,"div",3),l(6,1),l(7,2),r(),D(8,ue,2,0,"spk-icon",4),s(9,"div",5),l(10,3),r()()),t&2){let o=Z(2);C(),L("display",o.children.length?"block":"none"),C(3),E(o.children.length?-1:4),C(4),E(n.id()?8:-1)}},dependencies:[$],encapsulation:2,changeDetection:0})}}return i})();var lt=(()=>{class i{constructor(){this.alertHistory=p([]),this.alertHistoryIsOpen=p(!1),this.alertHistoryIsHidden=p(!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(n=>[P(R({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...n]),setTimeout(()=>{this.alertHistory.update(n=>n.map(o=>P(R({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(n=>P(R({},n),{animateOut:n.id===e?!1:n.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(n=>n.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(n=>P(R({},n),{isOpen:n.id===e?!1:n.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=Q({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),at=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-button-group"]],standalone:!0,features:[g],ngContentSelectors:w,decls:1,vars:0,template:function(t,n){t&1&&(v(),l(0))},encapsulation:2,changeDetection:0})}}return i})(),ct=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["","spk-button",""]],standalone:!0,features:[g],attrs:he,ngContentSelectors:w,decls:1,vars:0,template:function(t,n){t&1&&(v(),l(0))},encapsulation:2,changeDetection:0})}}return i})(),pt=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-card"]],standalone:!0,features:[g],ngContentSelectors:w,decls:1,vars:0,template:function(t,n){t&1&&(v(),l(0))},encapsulation:2,changeDetection:0})}}return i})(),dt=(()=>{class i{#e=T(H);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-checkbox"]],hostBindings:function(t,n){t&1&&k("click",function(){return n.onClick()})},standalone:!0,features:[g],ngContentSelectors:w,decls:4,vars:0,consts:[[1,"box"],[1,"inherit"]],template:function(t,n){t&1&&(v(),s(0,"div",0)(1,"spk-icon",1),_(2,"check"),r()(),l(3))},dependencies:[$],encapsulation:2,changeDetection:0})}}return i})(),Re=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-chip"]],standalone:!0,features:[g],ngContentSelectors:w,decls:1,vars:0,template:function(t,n){t&1&&(v(),l(0))},encapsulation:2,changeDetection:0})}}return i})();var Pe=(()=>{class i{#e=T(H);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 f=function(){a.style.height="auto",a.style.height=a.scrollHeight+"px"},b=function(){window.setTimeout(f,0)};var n=f,o=b;let a=this.#e.nativeElement.querySelector("textarea");a.addEventListener("change",f),a.addEventListener("cut",b),a.addEventListener("paste",b),a.addEventListener("drop",b),a.addEventListener("keydown",b),a.focus(),a.select(),f()}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-form-field"]],hostBindings:function(t,n){t&1&&k("click",function(){return n.onClick()})},standalone:!0,features:[g],ngContentSelectors:ge,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-spacer"],[1,"suffix-spacer"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(t,n){t&1&&(v(me),l(0),s(1,"div",0)(2,"div",1),l(3,1),l(4,2),r(),M(5,"div",2),l(6,3),l(7,4),l(8,5),M(9,"div",3),l(10,6),r(),s(11,"div",4)(12,"div",5),l(13,7),r(),s(14,"div",6),l(15,8),r()())},encapsulation:2,changeDetection:0})}}return i})(),ut=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-list"]],standalone:!0,features:[g],ngContentSelectors:w,decls:1,vars:0,template:function(t,n){t&1&&(v(),l(0))},encapsulation:2,changeDetection:0})}}return i})(),ht=(()=>{class i{constructor(){this.injector=T(N),this.#e=8,this.above=S(!1),this.right=S(!1),this.closeAction=U(),this.isActive=F(!1),this.optionInFocus=F(null),this.actionRef=A.required("actionRef"),this.menuRef=A.required("menuRef"),this.menuEl=x(()=>this.menuRef()?.nativeElement),this.menuStyle=p({left:"0px",top:"0px"}),this.optionsElTrigger=p(!1),this.options=x(()=>{let e=this.menuEl().querySelectorAll("[option]:not([disabled])");return this.optionsElTrigger(),this.isActive(),Array.from(e)}),this.#t=p(null),this.optionElementInFocus=F(null),this.#l=p(null),this.selectedOption=F(null),this.selectedOptionIndex=F(null),this.#r=document.getElementsByTagName("body")[0],this.optionInFocusEffect=I(()=>{if(this.optionInFocus()===null&&this.#t()){this.#t()?.classList.remove("focused");return}if(this.options().length===0||this.optionInFocus()===null)return;let e=this.options().at(this.optionInFocus());this.#t()&&this.#t()?.classList.remove("focused"),e?(e.classList.add("focused"),e.scrollIntoView({block:"nearest"}),this.#t.set(e),this.optionElementInFocus.set(e)):this.optionElementInFocus.set(null)},{allowSignalWrites:!0,injector:this.injector}),this.controller=null,this.whenActive=I(()=>{this.isActive()?(this.setNewController(),this.#a(),this.calculateMenuPosition(),setTimeout(()=>{let e=this.options().findIndex(t=>t.getAttribute("value")===this.selectedOption()?.getAttribute("value"));this.optionInFocus()===null&&this.optionInFocus.set(e>-1?e:0)},0),window.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:this.controller?.signal}),window.addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:this.controller?.signal}),window.addEventListener("keydown",e=>{e.key==="ArrowDown"?this.optionInFocus()===null||this.optionInFocus()===this.options().length-1?this.optionInFocus.set(0):this.optionInFocus.set(this.optionInFocus()+1):e.key==="ArrowUp"?this.optionInFocus()===null||this.optionInFocus()===0?this.optionInFocus.set(this.options().length-1):this.optionInFocus.set(this.optionInFocus()-1):e.key==="Enter"?(this.optionElementInFocus()&&this.selectOption(this.optionElementInFocus()),this.close("selected")):e.key==="Escape"?this.close("closed"):setTimeout(()=>{this.optionInFocus.set(0),this.optionsElTrigger.set(!this.optionsElTrigger())},0)},{signal:this.controller?.signal})):this.#s()},{allowSignalWrites:!0,injector:this.injector})}#e;#t;#l;#r;setNewController(){this.controller?.abort(),this.controller=new AbortController}deselectOption(){this.#l.set(null),this.selectedOption.set(null),this.selectedOptionIndex.set(null)}setSelectedOption(e){let t=this.options().find(n=>n.hasAttribute("value")&&n.getAttribute("value")===e);t&&this.selectOption(t)}selectOption(e){this.selectedOption()&&this.#l.set(this.selectedOption()),this.selectedOption.set(e),this.selectedOptionIndex.set(this.options().indexOf(e)),e.dispatchEvent(new Event("click",{bubbles:!0,cancelable:!0}))}selectCurrentOption(){let e=this.selectedOptionIndex(),t=this.options().at(e);t&&this.selectOption(t)}#a(){this.#r.appendChild(this.menuEl())}#s(){this.#r.removeChild(this.menuEl())}ngOnInit(){this.#a()}toggle(){this.isActive.set(!this.isActive())}close(e="closed"){this.controller?.abort(),this.isActive.set(!1),this.closeAction.emit(e)}calculateMenuPosition(){if(this.isActive()){let e=this.actionRef()?.nativeElement.getBoundingClientRect(),t=this.menuEl().getBoundingClientRect(),n=e.left,o=e.bottom,a=n,f=o+this.#e,b=a+t.width>window.innerWidth,B=f+t.height>window.innerHeight;if(this.above()){let y=e.top-t.height-this.#e;y>=0&&(f=y)}else B&&(f=e.top-t.height-this.#e);if(this.right()){let y=e.right-t.width;y>=0&&(a=y)}else b&&(f=B?e.top+e.height-t.height:e.top,a=e.left-t.width-this.#e);this.menuStyle.set({left:a+"px",top:f+"px"})}}ngOnDestroy(){this.#r.contains(this.menuEl())&&this.#s()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-menu"]],viewQuery:function(t,n){t&1&&(V(n.actionRef,ve,5),V(n.menuRef,Se,5)),t&2&&W(2)},hostVars:2,hostBindings:function(t,n){t&2&&j("active",n.isActive())},inputs:{above:[1,"above"],right:[1,"right"],isActive:[1,"isActive"],optionInFocus:[1,"optionInFocus"],optionElementInFocus:[1,"optionElementInFocus"],selectedOption:[1,"selectedOption"],selectedOptionIndex:[1,"selectedOptionIndex"]},outputs:{closeAction:"closeAction",isActive:"isActiveChange",optionInFocus:"optionInFocusChange",optionElementInFocus:"optionElementInFocusChange",selectedOption:"selectedOptionChange",selectedOptionIndex:"selectedOptionIndexChange"},standalone:!0,features:[g],ngContentSelectors:_e,decls:8,vars:8,consts:[["actionRef",""],["menuRef",""],[1,"action",3,"click"],[1,"sparkle-popup-menu"],[1,"sparkle-menu-backdrop",3,"click"],[1,"sparkle-options",3,"click"]],template:function(t,n){if(t&1){let o=O();v(Ce),s(0,"div",2,0),k("click",function(){return d(o),u(n.toggle())}),l(2),r(),s(3,"div",3,1)(5,"div",4),k("click",function(){return d(o),u(n.close("closed"))}),r(),s(6,"div",5),k("click",function(){return d(o),u(n.close("selected"))}),l(7,1),r()()}t&2&&(C(3),q(n.menuStyle()),j("right",n.right())("above",n.above())("active",n.isActive()))},encapsulation:2,changeDetection:0})}}return i})(),ft=(()=>{class i{constructor(){this.value=S(void 0)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},standalone:!0,features:[g],decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,n){t&1&&M(0,"div",0),t&2&&L("width",n.value(),"%")},encapsulation:2,changeDetection:0})}}return i})(),mt=(()=>{class i{#e=T(H);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-radio"]],hostBindings:function(t,n){t&1&&k("click",function(){return n.onClick()})},standalone:!0,features:[g],ngContentSelectors:w,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,n){t&1&&(v(),M(0,"div",0),l(1))},encapsulation:2,changeDetection:0})}}return i})();var gt=(()=>{class i{constructor(){this.value=S(null)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-option"]],inputs:{value:[1,"value"]},standalone:!0,features:[g],ngContentSelectors:w,decls:1,vars:0,template:function(t,n){t&1&&(v(),l(0))},encapsulation:2,changeDetection:0})}}return i})(),Le=["primary","accent","tertiary","warn","success"],vt=(()=>{class i{constructor(){this.#e=8,this.#t=T(X),this.#l=document.getElementsByTagName("body")[0],this.#r=T(H),this.optionsRef=A("optionsRef"),this.formFieldWrapperRef=A.required("formFieldWrapper"),this.inputWrapRef=A.required("inputWrap"),this.inputValue=F(""),this.selectMultiple=S(!1),this.hideClearButton=S(!1),this.displayValue=S(""),this.displayFn=S(null),this.above=S(!1),this.right=S(!1),this.#a=p(!1),this.#s=p(!1),this.#i=p(null),this.#c=p(""),this.#d=p(-1),this.#p=p(!1),this.#n=p(-1),this.isOpen=p(!1),this.delayedIsOpen=p(!1),this.optionsStyle=p({left:"0px",top:"0px"}),this.isSearchInput=x(()=>this.#i()?.type==="search"),this.optionsEl=x(()=>this.optionsRef()?.nativeElement),this.#o=x(()=>{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=x(()=>Array.from(this.#r.nativeElement.classList).filter(e=>Le.includes(e)).join(" ")),this._displayValue=x(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=x(()=>this.#c()?this.#o().find(e=>e.getAttribute("value")===this.#c()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#g=I(()=>{this.#a();let e=this.#r.nativeElement.querySelector("input");e&&(this.#D(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#f()}),this.#i.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))},{allowSignalWrites:!0}),this.#v=I(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#i();e&&(e.addEventListener("focus",t=>this.open(t),{signal:this.inputController?.signal}),e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#n()===null||this.#n()<0||this.#n()===this.#o().length-1?this.#n.set(this.#d()):this.#n.set(this.#n()+1):t.key==="ArrowUp"?this.#n()===null||this.#n()<0||this.#n()===0?this.#n.set(this.#o().length-1):this.#n.set(this.#n()-1):t.key==="Enter"?this.#n()>-1&&this.selected(this.getOptionElement(this.#n())):t.key==="Tab"&&this.close(!0)},{signal:this.inputController?.signal}))}),this.#S=I(()=>{this.isOpen()&&this.#y(),setTimeout(()=>{this.delayedIsOpen.set(this.isOpen())},0)}),this.#C=I(()=>{let e=this.inputValue();this.#i()&&(this.#i().value=e??"",this.#i().dispatchEvent(new Event("input")))},{allowSignalWrites:!0}),this.#u=new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#a.set(!this.#a()),t.type==="attributes"&&t.attributeName})}#e;#t;#l;#r;#a;#s;#i;#c;#d;#p;#n;#o;#g;#v;#S;#C;ngOnInit(){this.#m(),this.#u.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.#o()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#i()&&(this.#i().value="",this.#i().dispatchEvent(new Event("input"))),this.#n.set(this.#d()),this.#p.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#i()?.blur())}selected(e){if(!e)return;let t=(e.getAttribute("value")||e.getAttribute("ng-reflect-value"))??"",n=this.#o().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#n.set(n),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.#o().length;o++){let a=this.#o()[o];a.getAttribute("value")===t?this.#t.setAttribute(a,"selected","selected"):this.#t.removeAttribute(a,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#t.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#t.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#p.set(!1),this.selectMultiple()?setTimeout(()=>this.#i()?.focus()):(this.isOpen.set(!1),this.#i()?.blur())}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.isSearchInput()&&this.#c()&&setTimeout(()=>this.inputValue.set(this.#c())),this.#w(),this.isOpen.set(!1),this.#p.set(!1),e||this.#i()?.blur(),this.#b(),this.#k()}open(e){e.preventDefault(),this.isOpen.set(!0),this.#m(),this.isSearchInput()&&!this.#p()?(this.#c.set(this.inputValue()),this.inputValue.set(""),this.#i().focus(),this.#i().value="",this.#i().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#i().focus(),this.#p.set(!0),this.#E(),this.#_(),this.#s.set(!this.#s()),this.#f()}#_(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,window.addEventListener("click",e=>{if(!e.target)return;let t=e.target.closest("option"),n=e.target.closest("spk-option"),o=t||n;this.#o().indexOf(o)>-1&&this.selected(o)},{signal:this.clickController?.signal})}#k(){this.clickController&&this.clickController.abort()}#y(){for(let e=0;e<this.#o().length;e++){let t=this.#o()[e];this.#t.removeClass(t,"focused"),this.#n()===e&&(this.#t.addClass(t,"focused"),t.scrollIntoView({block:"center"}))}}#f(){let e=this.#i();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let n=this.#o();for(let o=0;o<n.length;o++){let a=n[o].getAttribute("ng-reflect-value");a&&t.includes(a)?this.#t.setAttribute(n[o],"selected","selected"):this.#t.removeAttribute(n[o],"selected")}})}#m(){setTimeout(()=>{this.optionsEl()&&(this.#t.appendChild(this.#l,this.optionsEl()),this.#d.set(this.#x()),this.#s.set(!this.#s()))})}#x(){let e=this.#o();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#w(){setTimeout(()=>{this.optionsEl()&&(this.#t.removeChild(this.#l,this.optionsEl()),this.#s.set(!this.#s()))})}#u;#D(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}#E(){this.optionsOpenController=new AbortController,setTimeout(()=>this.#h()),window.addEventListener("resize",()=>this.#h(),{signal:this.optionsOpenController?.signal}),window.addEventListener("scroll",()=>this.#h(),{signal:this.optionsOpenController?.signal})}#b(){this.optionsOpenController&&this.optionsOpenController.abort()}#h(){if(this.optionsEl()){let e=this.formFieldWrapperRef()?.nativeElement.getBoundingClientRect(),t=this.optionsEl().getBoundingClientRect(),n=e.left,o=e.bottom,a=n,f=o+this.#e,b=a+t.width>window.innerWidth,B=f+t.height>window.innerHeight;if(this.above()){let y=e.top-t.height-this.#e;y>=0&&(f=y)}else B&&(f=e.top-t.height-this.#e);if(this.right()){let y=e.right-t.width;y>=0&&(a=y)}else b&&(f=B?e.top+e.height-t.height:e.top,a=e.left-t.width-this.#e);this.optionsStyle.set({left:a+"px",top:f+"px"})}}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),this.#u.disconnect()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-select"]],viewQuery:function(t,n){t&1&&(V(n.optionsRef,ke,5),V(n.formFieldWrapperRef,ye,5),V(n.inputWrapRef,fe,5)),t&2&&W(3)},inputs:{inputValue:[1,"inputValue"],selectMultiple:[1,"selectMultiple"],hideClearButton:[1,"hideClearButton"],displayValue:[1,"displayValue"],displayFn:[1,"displayFn"],above:[1,"above"],right:[1,"right"]},outputs:{inputValue:"inputValueChange"},standalone:!0,features:[g],ngContentSelectors:we,decls:13,vars:3,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsRef",""],[3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"display-value"],["spkSuffix","",1,"deselect-indicator"],["spkSuffix","",1,"search-indicator"],["spkSuffix","",1,"select-open-indicator",3,"open"],[1,"sparkle-popup-menu",3,"active","style"],[1,"small","simple",3,"ngClass"],[1,"small","simple",3,"click","ngClass"],["spkSuffix","",1,"deselect-indicator",3,"click"],[1,"default-indicator"],["spkSuffix","",1,"select-open-indicator"],[1,"sparkle-popup-menu"],[1,"sparkle-options-backdrop",3,"click"],[1,"sparkle-options"],[1,"sparkle-options-placerholder"]],template:function(t,n){if(t&1){let o=O();v(xe),s(0,"div",null,0)(2,"spk-form-field",3),k("click",function(f){return d(o),u(n.open(f))}),l(3,0,["ngProjectAs","label",5,["label"]]),s(4,"div",4,1),D(6,be,2,1,"div",5)(7,Oe,2,1,"div",5),l(8,1),r(),D(9,Te,4,0,"div",6)(10,Fe,4,0,"div",7)(11,Ie,4,2,"div",8),r()(),D(12,Ae,7,4,"div",9)}t&2&&(C(6),E(n.selectMultiple()?6:n._displayValue()&&n.isSearchInput()&&!n.isOpen()||n._displayValue()&&!n.isSearchInput()?7:-1),C(3),E((n.inputValue()&&!n.isOpen()&&n.inputValue().length>0||n.selectedOption())&&!n.hideClearButton()?9:n.isSearchInput()&&!n.selectedOption()?10:11),C(3),E(n.isOpen()?12:-1))},dependencies:[Pe,$,Re,ie],encapsulation:2,changeDetection:0})}}return i})(),St=(()=>{class i{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=S(!1),this.isOpen=F(!1),this.type=S(""),this.dragImageElement=A.required("dragImageElement"),this.dragIsEnding=p(!1),this.dragIsOnScreen=p(!0),this.isDragging=p(!1),this.dragPositionX=p(0),this.dragActualPositionX=x(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=x(()=>this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()&&this.type()==="overlay"?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=I(()=>{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.#t(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#t(e)}#t(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#t(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||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-sidenav"]],viewQuery:function(t,n){t&1&&V(n.dragImageElement,Me,5),t&2&&W()},hostVars:10,hostBindings:function(t,n){t&2&&j("open",n.isOpen())("closed",!n.isOpen())("overlay",n.type()==="overlay")("simple",n.type()==="simple")("is-dragging",n.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},standalone:!0,features:[g],ngContentSelectors:He,decls:11,vars:4,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,n){t&1&&(v(Ve),M(0,"div",1,0),D(2,je,1,0,"div",2),s(3,"div",3),l(4),r(),s(5,"div",4),D(6,Be,1,0,"div",5),s(7,"div",6),l(8,1),r(),s(9,"main"),l(10,2),r()()),t&2&&(C(2),E(n.isDragging()?2:-1),C(3),L("transform",n.draggingStyle()),C(),E(n.disableDrag()?-1:6))},encapsulation:2,changeDetection:0})}}return i})();var Ct=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-stepper"]],standalone:!0,features:[g],ngContentSelectors:w,decls:1,vars:0,template:function(t,n){t&1&&(v(),l(0))},encapsulation:2,changeDetection:0})}}return i})();var _t=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=m({type:i,selectors:[["spk-toggle"]],standalone:!0,features:[g],ngContentSelectors:w,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,n){t&1&&(v(),s(0,"div",0),M(1,"div",1),r(),l(2))},encapsulation:2,changeDetection:0})}}return i})();export{$ as a,rt as b,lt as c,at as d,ct as e,pt as f,dt as g,Re as h,Pe as i,ut as j,ht as k,ft as l,mt as m,gt as n,vt as o,St as p,Ct as q,_t as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as Nr}from"./chunk-KLPRJO2S.js";import{A as tt,B as or,D as Nt,E as H,F as le,G as ar,H as ur,Hb as Tr,I as cr,J as x,Ja as mr,K as lr,L as R,M as w,Ma as P,O as b,Oa as ge,Pa as yr,Q as hr,Qb as Or,R as $,Rb as Er,S as he,Sb as Ur,T as de,Tb as xr,U as g,Ub as ve,Va as Cr,W as dr,Wa as Rr,Wb as kt,Xa as Sr,Y as jt,Yb as _t,Za as wr,_ as fr,a as er,aa as $t,ac as Pr,ba as k,c as rr,da as Lt,e as se,f as oe,fc as me,g as B,gc as zt,h as D,ha as fe,ia as pr,j as V,ja as gr,jb as br,k as T,l as f,la as vr,m as dt,ma as et,n as nr,o as ir,ob as Ir,p as m,q as Pt,r as O,ra as pe,s as ae,t as sr,u as ue,vb as Ar,w as X,wb as Mr,x as J,xb as Dr,y as ft,z as ce}from"./chunk-NGPWOMCW.js";import{a as l,b as I}from"./chunk-7CGTOI24.js";var p="primary",Ot=Symbol("RouteTitle"),we=class{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t[0]:t}return null}getAll(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function at(e){return new we(e)}function Rn(e,r,t){let n=t.path.split("/");if(n.length>e.length||t.pathMatch==="full"&&(r.hasChildren()||n.length<e.length))return null;let i={};for(let s=0;s<n.length;s++){let o=n[s],u=e[s];if(o[0]===":")i[o.substring(1)]=u;else if(o!==u.path)return null}return{consumed:e.slice(0,n.length),posParams:i}}function Sn(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;++t)if(!L(e[t],r[t]))return!1;return!0}function L(e,r){let t=e?be(e):void 0,n=r?be(r):void 0;if(!t||!n||t.length!=n.length)return!1;let i;for(let s=0;s<t.length;s++)if(i=t[s],!Vr(e[i],r[i]))return!1;return!0}function be(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Vr(e,r){if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;let t=[...e].sort(),n=[...r].sort();return t.every((i,s)=>n[s]===i)}else return e===r}function Hr(e){return e.length>0?e[e.length-1]:null}function W(e){return nr(e)?e:Er(e)?T(Promise.resolve(e)):f(e)}var wn={exact:Gr,subset:Qr},Wr={exact:bn,subset:In,ignored:()=>!0};function jr(e,r,t){return wn[t.paths](e.root,r.root,t.matrixParams)&&Wr[t.queryParams](e.queryParams,r.queryParams)&&!(t.fragment==="exact"&&e.fragment!==r.fragment)}function bn(e,r){return L(e,r)}function Gr(e,r,t){if(!Q(e.segments,r.segments)||!Bt(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!e.children[n]||!Gr(e.children[n],r.children[n],t))return!1;return!0}function In(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(t=>Vr(e[t],r[t]))}function Qr(e,r,t){return Kr(e,r,r.segments,t)}function Kr(e,r,t,n){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!Q(i,t)||r.hasChildren()||!Bt(i,t,n))}else if(e.segments.length===t.length){if(!Q(e.segments,t)||!Bt(e.segments,t,n))return!1;for(let i in r.children)if(!e.children[i]||!Qr(e.children[i],r.children[i],n))return!1;return!0}else{let i=t.slice(0,e.segments.length),s=t.slice(e.segments.length);return!Q(e.segments,i)||!Bt(e.segments,i,n)||!e.children[p]?!1:Kr(e.children[p],r,s,n)}}function Bt(e,r,t){return r.every((n,i)=>Wr[t](e[i].parameters,n.parameters))}var z=class{constructor(r=new v([],{}),t={},n=null){this.root=r,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=at(this.queryParams),this._queryParamMap}toString(){return Dn.serialize(this)}},v=class{constructor(r,t){this.segments=r,this.children=t,this.parent=null,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vt(this)}},G=class{constructor(r,t){this.path=r,this.parameters=t}get parameterMap(){return this._parameterMap??=at(this.parameters),this._parameterMap}toString(){return Yr(this)}};function An(e,r){return Q(e,r)&&e.every((t,n)=>L(t.parameters,r[n].parameters))}function Q(e,r){return e.length!==r.length?!1:e.every((t,n)=>t.path===r[n].path)}function Mn(e,r){let t=[];return Object.entries(e.children).forEach(([n,i])=>{n===p&&(t=t.concat(r(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==p&&(t=t.concat(r(i,n)))}),t}var Ke=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>new Rt,providedIn:"root"})}}return e})(),Rt=class{parse(r){let t=new Ae(r);return new z(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(r){let t=`/${pt(r.root,!0)}`,n=En(r.queryParams),i=typeof r.fragment=="string"?`#${Tn(r.fragment)}`:"";return`${t}${n}${i}`}},Dn=new Rt;function Vt(e){return e.segments.map(r=>Yr(r)).join("/")}function pt(e,r){if(!e.hasChildren())return Vt(e);if(r){let t=e.children[p]?pt(e.children[p],!1):"",n=[];return Object.entries(e.children).forEach(([i,s])=>{i!==p&&n.push(`${i}:${pt(s,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=Mn(e,(n,i)=>i===p?[pt(e.children[p],!1)]:[`${i}:${pt(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[p]!=null?`${Vt(e)}/${t[0]}`:`${Vt(e)}/(${t.join("//")})`}}function Zr(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ft(e){return Zr(e).replace(/%3B/gi,";")}function Tn(e){return encodeURI(e)}function Ie(e){return Zr(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ht(e){return decodeURIComponent(e)}function $r(e){return Ht(e.replace(/\+/g,"%20"))}function Yr(e){return`${Ie(e.path)}${On(e.parameters)}`}function On(e){return Object.entries(e).map(([r,t])=>`;${Ie(r)}=${Ie(t)}`).join("")}function En(e){let r=Object.entries(e).map(([t,n])=>Array.isArray(n)?n.map(i=>`${Ft(t)}=${Ft(i)}`).join("&"):`${Ft(t)}=${Ft(n)}`).filter(t=>t);return r.length?`?${r.join("&")}`:""}var Un=/^[^\/()?;#]+/;function ye(e){let r=e.match(Un);return r?r[0]:""}var xn=/^[^\/()?;=#]+/;function Pn(e){let r=e.match(xn);return r?r[0]:""}var Nn=/^[^=?&#]+/;function jn(e){let r=e.match(Nn);return r?r[0]:""}var $n=/^[^&#]+/;function Ln(e){let r=e.match($n);return r?r[0]:""}var Ae=class{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(t).length>0)&&(n[p]=new v(r,t)),n}parseSegment(){let r=ye(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(r),new G(Ht(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let t=Pn(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let i=ye(this.remaining);i&&(n=i,this.capture(n))}r[Ht(t)]=Ht(n)}parseQueryParam(r){let t=jn(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let o=Ln(this.remaining);o&&(n=o,this.capture(n))}let i=$r(t),s=$r(n);if(r.hasOwnProperty(i)){let o=r[i];Array.isArray(o)||(o=[o],r[i]=o),o.push(s)}else r[i]=s}parseParens(r){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=ye(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=p);let o=this.parseChildren();t[s]=Object.keys(o).length===1?o[p]:new v([],o),this.consumeOptional("//")}return t}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new w(4011,!1)}};function Xr(e){return e.segments.length>0?new v([],{[p]:e}):e}function Jr(e){let r={};for(let[n,i]of Object.entries(e.children)){let s=Jr(i);if(n===p&&s.segments.length===0&&s.hasChildren())for(let[o,u]of Object.entries(s.children))r[o]=u;else(s.segments.length>0||s.hasChildren())&&(r[n]=s)}let t=new v(e.segments,r);return kn(t)}function kn(e){if(e.numberOfChildren===1&&e.children[p]){let r=e.children[p];return new v(e.segments.concat(r.segments),r.children)}return e}function K(e){return e instanceof z}function _n(e,r,t=null,n=null){let i=tn(e);return en(i,r,t,n)}function tn(e){let r;function t(s){let o={};for(let a of s.children){let c=t(a);o[a.outlet]=c}let u=new v(s.url,o);return s===e&&(r=u),u}let n=t(e.root),i=Xr(n);return r??i}function en(e,r,t,n){let i=e;for(;i.parent;)i=i.parent;if(r.length===0)return Ce(i,i,i,t,n);let s=zn(r);if(s.toRoot())return Ce(i,i,new v([],{}),t,n);let o=Fn(s,i,e),u=o.processChildren?mt(o.segmentGroup,o.index,s.commands):nn(o.segmentGroup,o.index,s.commands);return Ce(i,o.segmentGroup,u,t,n)}function Wt(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function St(e){return typeof e=="object"&&e!=null&&e.outlets}function Ce(e,r,t,n,i){let s={};n&&Object.entries(n).forEach(([a,c])=>{s[a]=Array.isArray(c)?c.map(h=>`${h}`):`${c}`});let o;e===r?o=t:o=rn(e,r,t);let u=Xr(Jr(o));return new z(u,s,i)}function rn(e,r,t){let n={};return Object.entries(e.children).forEach(([i,s])=>{s===r?n[i]=t:n[i]=rn(s,r,t)}),new v(e.segments,n)}var Gt=class{constructor(r,t,n){if(this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&Wt(n[0]))throw new w(4003,!1);let i=n.find(St);if(i&&i!==Hr(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function zn(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Gt(!0,0,e);let r=0,t=!1,n=e.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let u={};return Object.entries(s.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?t=!0:u===".."?r++:u!=""&&i.push(u))}),i):[...i,s]},[]);return new Gt(t,r,n)}var it=class{constructor(r,t,n){this.segmentGroup=r,this.processChildren=t,this.index=n}};function Fn(e,r,t){if(e.isAbsolute)return new it(r,!0,0);if(!t)return new it(r,!1,NaN);if(t.parent===null)return new it(t,!0,0);let n=Wt(e.commands[0])?0:1,i=t.segments.length-1+n;return qn(t,i,e.numberOfDoubleDots)}function qn(e,r,t){let n=e,i=r,s=t;for(;s>i;){if(s-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new it(n,!1,i-s)}function Bn(e){return St(e[0])?e[0].outlets:{[p]:e}}function nn(e,r,t){if(e??=new v([],{}),e.segments.length===0&&e.hasChildren())return mt(e,r,t);let n=Vn(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){let s=new v(e.segments.slice(0,n.pathIndex),{});return s.children[p]=new v(e.segments.slice(n.pathIndex),e.children),mt(s,0,i)}else return n.match&&i.length===0?new v(e.segments,{}):n.match&&!e.hasChildren()?Me(e,r,t):n.match?mt(e,0,i):Me(e,r,t)}function mt(e,r,t){if(t.length===0)return new v(e.segments,{});{let n=Bn(t),i={};if(Object.keys(n).some(s=>s!==p)&&e.children[p]&&e.numberOfChildren===1&&e.children[p].segments.length===0){let s=mt(e.children[p],r,t);return new v(e.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=nn(e.children[s],r,o))}),Object.entries(e.children).forEach(([s,o])=>{n[s]===void 0&&(i[s]=o)}),new v(e.segments,i)}}function Vn(e,r,t){let n=0,i=r,s={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(n>=t.length)return s;let o=e.segments[i],u=t[n];if(St(u))break;let a=`${u}`,c=n<t.length-1?t[n+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!kr(a,c,o))return s;n+=2}else{if(!kr(a,{},o))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Me(e,r,t){let n=e.segments.slice(0,r),i=0;for(;i<t.length;){let s=t[i];if(St(s)){let a=Hn(s.outlets);return new v(n,a)}if(i===0&&Wt(t[0])){let a=e.segments[r];n.push(new G(a.path,Lr(t[0]))),i++;continue}let o=St(s)?s.outlets[p]:`${s}`,u=i<t.length-1?t[i+1]:null;o&&u&&Wt(u)?(n.push(new G(o,Lr(u))),i+=2):(n.push(new G(o,{})),i++)}return new v(n,{})}function Hn(e){let r={};return Object.entries(e).forEach(([t,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[t]=Me(new v([],{}),0,n))}),r}function Lr(e){let r={};return Object.entries(e).forEach(([t,n])=>r[t]=`${n}`),r}function kr(e,r,t){return e==t.path&&L(r,t.parameters)}var yt="imperative",C=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(C||{}),E=class{constructor(r,t){this.id=r,this.url=t}},wt=class extends E{constructor(r,t,n="imperative",i=null){super(r,t),this.type=C.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},F=class extends E{constructor(r,t,n){super(r,t),this.urlAfterRedirects=n,this.type=C.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},M=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(M||{}),De=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(De||{}),_=class extends E{constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i,this.type=C.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Z=class extends E{constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i,this.type=C.NavigationSkipped}},bt=class extends E{constructor(r,t,n,i){super(r,t),this.error=n,this.target=i,this.type=C.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Qt=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Te=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Oe=class extends E{constructor(r,t,n,i,s){super(r,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s,this.type=C.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ee=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ue=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xe=class{constructor(r){this.route=r,this.type=C.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Pe=class{constructor(r){this.route=r,this.type=C.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ne=class{constructor(r){this.snapshot=r,this.type=C.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},je=class{constructor(r){this.snapshot=r,this.type=C.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$e=class{constructor(r){this.snapshot=r,this.type=C.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Le=class{constructor(r){this.snapshot=r,this.type=C.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var It=class{},ut=class{constructor(r,t){this.url=r,this.navigationBehaviorOptions=t}};function Wn(e,r){return e.providers&&!e._injector&&(e._injector=Sr(e.providers,r,`Route: ${e.path}`)),e._injector??r}function N(e){return e.outlet||p}function Gn(e,r){let t=e.filter(n=>N(n)===r);return t.push(...e.filter(n=>N(n)!==r)),t}function Et(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let r=e.parent;r;r=r.parent){let t=r.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}var ke=class{get injector(){return Et(this.route?.snapshot)??this.rootInjector}set injector(r){}constructor(r){this.rootInjector=r,this.outlet=null,this.route=null,this.children=new ee(this.rootInjector),this.attachRef=null}},ee=(()=>{class e{constructor(t){this.rootInjector=t,this.contexts=new Map}onChildOutletCreated(t,n){let i=this.getOrCreateContext(t);i.outlet=n,this.contexts.set(t,i)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new ke(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}static{this.\u0275fac=function(n){return new(n||e)(de($t))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Kt=class{constructor(r){this._root=r}get root(){return this._root.value}parent(r){let t=this.pathFromRoot(r);return t.length>1?t[t.length-2]:null}children(r){let t=_e(r,this._root);return t?t.children.map(n=>n.value):[]}firstChild(r){let t=_e(r,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(r){let t=ze(r,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return ze(r,this._root).map(t=>t.value)}};function _e(e,r){if(e===r.value)return r;for(let t of r.children){let n=_e(e,t);if(n)return n}return null}function ze(e,r){if(e===r.value)return[r];for(let t of r.children){let n=ze(e,t);if(n.length)return n.unshift(r),n}return[]}var A=class{constructor(r,t){this.value=r,this.children=t}toString(){return`TreeNode(${this.value})`}};function nt(e){let r={};return e&&e.children.forEach(t=>r[t.value.outlet]=t),r}var Zt=class extends Kt{constructor(r,t){super(r),this.snapshot=t,Ze(this,r)}toString(){return this.snapshot.toString()}};function sn(e){let r=Qn(e),t=new D([new G("",{})]),n=new D({}),i=new D({}),s=new D({}),o=new D(""),u=new Y(t,n,s,o,i,p,e,r.root);return u.snapshot=r.root,new Zt(new A(u,[]),r)}function Qn(e){let r={},t={},n={},i="",s=new st([],r,n,i,t,p,e,null,{});return new Xt("",new A(s,[]))}var Y=class{constructor(r,t,n,i,s,o,u,a){this.urlSubject=r,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[Ot]))??f(void 0),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=s}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(r=>at(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(r=>at(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Yt(e,r,t="emptyOnly"){let n,{routeConfig:i}=e;return r!==null&&(t==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:l(l({},r.params),e.params),data:l(l({},r.data),e.data),resolve:l(l(l(l({},e.data),r.data),i?.data),e._resolvedData)}:n={params:l({},e.params),data:l({},e.data),resolve:l(l({},e.data),e._resolvedData??{})},i&&an(i)&&(n.resolve[Ot]=i.title),n}var st=class{get title(){return this.data?.[Ot]}constructor(r,t,n,i,s,o,u,a,c){this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=o,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??=at(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=at(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${t}')`}},Xt=class extends Kt{constructor(r,t){super(t),this.url=r,Ze(this,t)}toString(){return on(this._root)}};function Ze(e,r){r.value._routerState=e,r.children.forEach(t=>Ze(e,t))}function on(e){let r=e.children.length>0?` { ${e.children.map(on).join(", ")} } `:"";return`${e.value}${r}`}function Re(e){if(e.snapshot){let r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,L(r.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),r.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),L(r.params,t.params)||e.paramsSubject.next(t.params),Sn(r.url,t.url)||e.urlSubject.next(t.url),L(r.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Fe(e,r){let t=L(e.params,r.params)&&An(e.url,r.url),n=!e.parent!=!r.parent;return t&&!n&&(!e.parent||Fe(e.parent,r.parent))}function an(e){return typeof e.title=="string"||e.title===null}var Kn=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=p,this.activateEvents=new et,this.deactivateEvents=new et,this.attachEvents=new et,this.detachEvents=new et,this.parentContexts=g(ee),this.location=g(yr),this.changeDetector=g(kt),this.inputBinder=g(re,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:i}=t.name;if(n)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(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=t;let i=this.location,o=t.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new qe(t,u,i.injector);this.activated=i.createComponent(o,{index:i.length,injector:a,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=jt({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Lt]})}}return e})(),qe=class e{__ngOutletInjector(r){return new e(this.route,this.childContexts,r)}constructor(r,t,n){this.route=r,this.childContexts=t,this.parent=n}get(r,t){return r===Y?this.route:r===ee?this.childContexts:this.parent.get(r,t)}},re=new $(""),_r=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,i=Pt([n.queryParams,n.params,n.data]).pipe(x(([s,o,u],a)=>(u=l(l(l({},s),o),u),a===0?f(u):Promise.resolve(u)))).subscribe(s=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let o=Pr(n.component);if(!o){this.unsubscribeFromRouteData(t);return}for(let{templateName:u}of o.inputs)t.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(t,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})();function Zn(e,r,t){let n=At(e,r._root,t?t._root:void 0);return new Zt(n,r)}function At(e,r,t){if(t&&e.shouldReuseRoute(r.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=r.value;let i=Yn(e,r,t);return new A(n,i)}else{if(e.shouldAttach(r.value)){let s=e.retrieve(r.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=r.value,o.children=r.children.map(u=>At(e,u)),o}}let n=Xn(r.value),i=r.children.map(s=>At(e,s));return new A(n,i)}}function Yn(e,r,t){return r.children.map(n=>{for(let i of t.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return At(e,n,i);return At(e,n)})}function Xn(e){return new Y(new D(e.url),new D(e.params),new D(e.queryParams),new D(e.fragment),new D(e.data),e.outlet,e.component,e)}var Mt=class{constructor(r,t){this.redirectTo=r,this.navigationBehaviorOptions=t}},un="ngNavigationCancelingError";function Jt(e,r){let{redirectTo:t,navigationBehaviorOptions:n}=K(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=cn(!1,M.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function cn(e,r){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[un]=!0,t.cancellationCode=r,t}function Jn(e){return ln(e)&&K(e.url)}function ln(e){return!!e&&e[un]}var ti=(e,r,t,n)=>m(i=>(new Be(r,i.targetRouterState,i.currentRouterState,t,n).activate(e),i)),Be=class{constructor(r,t,n,i,s){this.routeReuseStrategy=r,this.futureState=t,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=s}activate(r){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,r),Re(this.futureState.root),this.activateChildRoutes(t,n,r)}deactivateChildRoutes(r,t,n){let i=nt(t);r.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],n),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(r,t,n){let i=r.value,s=t?t.value:null;if(i===s)if(i.component){let o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(r,t,o.children)}else this.deactivateChildRoutes(r,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(r,t){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,t):this.deactivateRouteAndOutlet(r,t)}detachAndStoreRouteSubtree(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,s=nt(r);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(n&&n.outlet){let o=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:o,route:r,contexts:u})}}deactivateRouteAndOutlet(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,s=nt(r);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,t,n){let i=nt(t);r.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],n),this.forwardEvent(new Le(s.value.snapshot))}),r.children.length&&this.forwardEvent(new je(r.value.snapshot))}activateRoutes(r,t,n){let i=r.value,s=t?t.value:null;if(Re(i),i===s)if(i.component){let o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,t,o.children)}else this.activateChildRoutes(r,t,n);else if(i.component){let o=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(u.contexts),o.attachRef=u.componentRef,o.route=u.route.value,o.outlet&&o.outlet.attach(u.componentRef,u.route.value),Re(u.route.value),this.activateChildRoutes(r,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(r,null,o.children)}else this.activateChildRoutes(r,null,n)}},te=class{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},ot=class{constructor(r,t){this.component=r,this.route=t}};function ei(e,r,t){let n=e._root,i=r?r._root:null;return gt(n,i,t,[n.value])}function ri(e){let r=e.routeConfig?e.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:e,guards:r}}function lt(e,r){let t=Symbol(),n=r.get(e,t);return n===t?typeof e=="function"&&!hr(e)?e:r.get(e):n}function gt(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=nt(r);return e.children.forEach(o=>{ni(o,s[o.value.outlet],t,n.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,u])=>Ct(u,t.getContext(o),i)),i}function ni(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=e.value,o=r?r.value:null,u=t?t.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let a=ii(o,s,s.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new te(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?gt(e,r,u?u.children:null,n,i):gt(e,r,t,n,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new ot(u.outlet.component,o))}else o&&Ct(r,u,i),i.canActivateChecks.push(new te(n)),s.component?gt(e,null,u?u.children:null,n,i):gt(e,null,t,n,i);return i}function ii(e,r,t){if(typeof t=="function")return t(e,r);switch(t){case"pathParamsChange":return!Q(e.url,r.url);case"pathParamsOrQueryParamsChange":return!Q(e.url,r.url)||!L(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fe(e,r)||!L(e.queryParams,r.queryParams);case"paramsChange":default:return!Fe(e,r)}}function Ct(e,r,t){let n=nt(e),i=e.value;Object.entries(n).forEach(([s,o])=>{i.component?r?Ct(o,r.children.getContext(s),t):Ct(o,null,t):Ct(o,r,t)}),i.component?r&&r.outlet&&r.outlet.isActivated?t.canDeactivateChecks.push(new ot(r.outlet.component,i)):t.canDeactivateChecks.push(new ot(null,i)):t.canDeactivateChecks.push(new ot(null,i))}function Ut(e){return typeof e=="function"}function si(e){return typeof e=="boolean"}function oi(e){return e&&Ut(e.canLoad)}function ai(e){return e&&Ut(e.canActivate)}function ui(e){return e&&Ut(e.canActivateChild)}function ci(e){return e&&Ut(e.canDeactivate)}function li(e){return e&&Ut(e.canMatch)}function hn(e){return e instanceof ir||e?.name==="EmptyError"}var qt=Symbol("INITIAL_VALUE");function ct(){return x(e=>Pt(e.map(r=>r.pipe(tt(1),cr(qt)))).pipe(m(r=>{for(let t of r)if(t!==!0){if(t===qt)return qt;if(t===!1||hi(t))return t}return!0}),X(r=>r!==qt),tt(1)))}function hi(e){return K(e)||e instanceof Mt}function di(e,r){return O(t=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=t;return o.length===0&&s.length===0?f(I(l({},t),{guardsResult:!0})):fi(o,n,i,e).pipe(O(u=>u&&si(u)?pi(n,s,e,r):f(u)),m(u=>I(l({},t),{guardsResult:u})))})}function fi(e,r,t,n){return T(e).pipe(O(i=>Ci(i.component,i.route,t,r,n)),H(i=>i!==!0,!0))}function pi(e,r,t,n){return T(r).pipe(ft(i=>sr(vi(i.route.parent,n),gi(i.route,n),yi(e,i.path,t),mi(e,i.route,t))),H(i=>i!==!0,!0))}function gi(e,r){return e!==null&&r&&r(new $e(e)),f(!0)}function vi(e,r){return e!==null&&r&&r(new Ne(e)),f(!0)}function mi(e,r,t){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return f(!0);let i=n.map(s=>ue(()=>{let o=Et(r)??t,u=lt(s,o),a=ai(u)?u.canActivate(r,e):k(o,()=>u(r,e));return W(a).pipe(H())}));return f(i).pipe(ct())}function yi(e,r,t){let n=r[r.length-1],s=r.slice(0,r.length-1).reverse().map(o=>ri(o)).filter(o=>o!==null).map(o=>ue(()=>{let u=o.guards.map(a=>{let c=Et(o.node)??t,h=lt(a,c),d=ui(h)?h.canActivateChild(n,e):k(c,()=>h(n,e));return W(d).pipe(H())});return f(u).pipe(ct())}));return f(s).pipe(ct())}function Ci(e,r,t,n,i){let s=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let o=s.map(u=>{let a=Et(r)??i,c=lt(u,a),h=ci(c)?c.canDeactivate(e,r,t,n):k(a,()=>c(e,r,t,n));return W(h).pipe(H())});return f(o).pipe(ct())}function Ri(e,r,t,n){let i=r.canLoad;if(i===void 0||i.length===0)return f(!0);let s=i.map(o=>{let u=lt(o,e),a=oi(u)?u.canLoad(r,t):k(e,()=>u(r,t));return W(a)});return f(s).pipe(ct(),dn(n))}function dn(e){return rr(R(r=>{if(typeof r!="boolean")throw Jt(e,r)}),m(r=>r===!0))}function Si(e,r,t,n){let i=r.canMatch;if(!i||i.length===0)return f(!0);let s=i.map(o=>{let u=lt(o,e),a=li(u)?u.canMatch(r,t):k(e,()=>u(r,t));return W(a)});return f(s).pipe(ct(),dn(n))}var Dt=class{constructor(r){this.segmentGroup=r||null}},Tt=class extends Error{constructor(r){super(),this.urlTree=r}};function rt(e){return dt(new Dt(e))}function wi(e){return dt(new w(4e3,!1))}function bi(e){return dt(cn(!1,M.GuardRejected))}var Ve=class{constructor(r,t){this.urlSerializer=r,this.urlTree=t}lineralizeSegments(r,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return f(n);if(i.numberOfChildren>1||!i.children[p])return wi(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,t,n,i,s){if(typeof t!="string"){let u=t,{queryParams:a,fragment:c,routeConfig:h,url:d,outlet:y,params:j,data:S,title:q}=i,U=k(s,()=>u({params:j,data:S,queryParams:a,fragment:c,routeConfig:h,url:d,outlet:y,title:q}));if(U instanceof z)throw new Tt(U);t=U}let o=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),r,n);if(t[0]==="/")throw new Tt(o);return o}applyRedirectCreateUrlTree(r,t,n,i){let s=this.createSegmentGroup(r,t.root,n,i);return new z(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(r,t){let n={};return Object.entries(r).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let u=s.substring(1);n[i]=t[u]}else n[i]=s}),n}createSegmentGroup(r,t,n,i){let s=this.createSegments(r,t.segments,n,i),o={};return Object.entries(t.children).forEach(([u,a])=>{o[u]=this.createSegmentGroup(r,a,n,i)}),new v(s,o)}createSegments(r,t,n,i){return t.map(s=>s.path[0]===":"?this.findPosParam(r,s,i):this.findOrReturn(s,n))}findPosParam(r,t,n){let i=n[t.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(r,t){let n=0;for(let i of t){if(i.path===r.path)return t.splice(n),i;n++}return r}},He={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ii(e,r,t,n,i){let s=fn(e,r,t);return s.matched?(n=Wn(r,n),Si(n,r,t,i).pipe(m(o=>o===!0?s:l({},He)))):f(s)}function fn(e,r,t){if(r.path==="**")return Ai(t);if(r.path==="")return r.pathMatch==="full"&&(e.hasChildren()||t.length>0)?l({},He):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Rn)(t,e,r);if(!i)return l({},He);let s={};Object.entries(i.posParams??{}).forEach(([u,a])=>{s[u]=a.path});let o=i.consumed.length>0?l(l({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function Ai(e){return{matched:!0,parameters:e.length>0?Hr(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function zr(e,r,t,n){return t.length>0&&Ti(e,t,n)?{segmentGroup:new v(r,Di(n,new v(t,e.children))),slicedSegments:[]}:t.length===0&&Oi(e,t,n)?{segmentGroup:new v(e.segments,Mi(e,t,n,e.children)),slicedSegments:t}:{segmentGroup:new v(e.segments,e.children),slicedSegments:t}}function Mi(e,r,t,n){let i={};for(let s of t)if(ne(e,r,s)&&!n[N(s)]){let o=new v([],{});i[N(s)]=o}return l(l({},n),i)}function Di(e,r){let t={};t[p]=r;for(let n of e)if(n.path===""&&N(n)!==p){let i=new v([],{});t[N(n)]=i}return t}function Ti(e,r,t){return t.some(n=>ne(e,r,n)&&N(n)!==p)}function Oi(e,r,t){return t.some(n=>ne(e,r,n))}function ne(e,r,t){return(e.hasChildren()||r.length>0)&&t.pathMatch==="full"?!1:t.path===""}function Ei(e,r,t){return r.length===0&&!e.children[t]}var We=class{};function Ui(e,r,t,n,i,s,o="emptyOnly"){return new Ge(e,r,t,n,i,o,s).recognize()}var xi=31,Ge=class{constructor(r,t,n,i,s,o,u){this.injector=r,this.configLoader=t,this.rootComponentType=n,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=u,this.applyRedirects=new Ve(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(r){return new w(4002,`'${r.segmentGroup}'`)}recognize(){let r=zr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(m(({children:t,rootSnapshot:n})=>{let i=new A(n,t),s=new Xt("",i),o=_n(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(r){let t=new st([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,p,t).pipe(m(n=>({children:n,rootSnapshot:t})),J(n=>{if(n instanceof Tt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Dt?this.noMatchError(n):n}))}processSegmentGroup(r,t,n,i,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,t,n,s):this.processSegment(r,t,n,n.segments,i,!0,s).pipe(m(o=>o instanceof A?[o]:[]))}processChildren(r,t,n,i){let s=[];for(let o of Object.keys(n.children))o==="primary"?s.unshift(o):s.push(o);return T(s).pipe(ft(o=>{let u=n.children[o],a=Gn(t,o);return this.processSegmentGroup(r,a,u,o,i)}),ur((o,u)=>(o.push(...u),o)),ce(null),ar(),O(o=>{if(o===null)return rt(n);let u=pn(o);return Pi(u),f(u)}))}processSegment(r,t,n,i,s,o,u){return T(t).pipe(ft(a=>this.processSegmentAgainstRoute(a._injector??r,t,a,n,i,s,o,u).pipe(J(c=>{if(c instanceof Dt)return f(null);throw c}))),H(a=>!!a),J(a=>{if(hn(a))return Ei(n,i,s)?f(new We):rt(n);throw a}))}processSegmentAgainstRoute(r,t,n,i,s,o,u,a){return N(n)!==o&&(o===p||!ne(i,s,n))?rt(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,s,o,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(r,i,t,n,s,o,a):rt(i)}expandSegmentAgainstRouteUsingRedirect(r,t,n,i,s,o,u){let{matched:a,parameters:c,consumedSegments:h,positionalParamSegments:d,remainingSegments:y}=fn(t,i,s);if(!a)return rt(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xi&&(this.allowRedirects=!1));let j=new st(s,c,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Fr(i),N(i),i.component??i._loadedComponent??null,i,qr(i)),S=Yt(j,u,this.paramsInheritanceStrategy);j.params=Object.freeze(S.params),j.data=Object.freeze(S.data);let q=this.applyRedirects.applyRedirectCommands(h,i.redirectTo,d,j,r);return this.applyRedirects.lineralizeSegments(i,q).pipe(O(U=>this.processSegment(r,n,t,U.concat(y),o,!1,u)))}matchSegmentAgainstRoute(r,t,n,i,s,o){let u=Ii(t,n,i,r,this.urlSerializer);return n.path==="**"&&(t.children={}),u.pipe(x(a=>a.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(x(({routes:c})=>{let h=n._loadedInjector??r,{parameters:d,consumedSegments:y,remainingSegments:j}=a,S=new st(y,d,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Fr(n),N(n),n.component??n._loadedComponent??null,n,qr(n)),q=Yt(S,o,this.paramsInheritanceStrategy);S.params=Object.freeze(q.params),S.data=Object.freeze(q.data);let{segmentGroup:U,slicedSegments:ht}=zr(t,y,j,c);if(ht.length===0&&U.hasChildren())return this.processChildren(h,c,U,S).pipe(m(xt=>new A(S,xt)));if(c.length===0&&ht.length===0)return f(new A(S,[]));let Cn=N(n)===s;return this.processSegment(h,c,U,ht,Cn?p:s,!0,S).pipe(m(xt=>new A(S,xt instanceof A?[xt]:[])))}))):rt(t)))}getChildConfig(r,t,n){return t.children?f({routes:t.children,injector:r}):t.loadChildren?t._loadedRoutes!==void 0?f({routes:t._loadedRoutes,injector:t._loadedInjector}):Ri(r,t,n,this.urlSerializer).pipe(O(i=>i?this.configLoader.loadChildren(r,t).pipe(R(s=>{t._loadedRoutes=s.routes,t._loadedInjector=s.injector})):bi(t))):f({routes:[],injector:r})}};function Pi(e){e.sort((r,t)=>r.value.outlet===p?-1:t.value.outlet===p?1:r.value.outlet.localeCompare(t.value.outlet))}function Ni(e){let r=e.value.routeConfig;return r&&r.path===""}function pn(e){let r=[],t=new Set;for(let n of e){if(!Ni(n)){r.push(n);continue}let i=r.find(s=>n.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...n.children),t.add(i)):r.push(n)}for(let n of t){let i=pn(n.children);r.push(new A(n.value,i))}return r.filter(n=>!t.has(n))}function Fr(e){return e.data||{}}function qr(e){return e.resolve||{}}function ji(e,r,t,n,i,s){return O(o=>Ui(e,r,t,n,o.extractedUrl,i,s).pipe(m(({state:u,tree:a})=>I(l({},o),{targetSnapshot:u,urlAfterRedirects:a}))))}function $i(e,r){return O(t=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=t;if(!i.length)return f(t);let s=new Set(i.map(a=>a.route)),o=new Set;for(let a of s)if(!o.has(a))for(let c of gn(a))o.add(c);let u=0;return T(o).pipe(ft(a=>s.has(a)?Li(a,n,e,r):(a.data=Yt(a,a.parent,e).resolve,f(void 0))),R(()=>u++),le(1),O(a=>u===o.size?f(t):V))})}function gn(e){let r=e.children.map(t=>gn(t)).flat();return[e,...r]}function Li(e,r,t,n){let i=e.routeConfig,s=e._resolve;return i?.title!==void 0&&!an(i)&&(s[Ot]=i.title),ki(s,e,r,n).pipe(m(o=>(e._resolvedData=o,e.data=Yt(e,e.parent,t).resolve,null)))}function ki(e,r,t,n){let i=be(e);if(i.length===0)return f({});let s={};return T(i).pipe(O(o=>_i(e[o],r,t,n).pipe(H(),R(u=>{if(u instanceof Mt)throw Jt(new Rt,u);s[o]=u}))),le(1),or(s),J(o=>hn(o)?V:dt(o)))}function _i(e,r,t,n){let i=Et(r)??n,s=lt(e,i),o=s.resolve?s.resolve(r,t):k(i,()=>s(r,t));return W(o)}function Se(e){return x(r=>{let t=e(r);return t?T(t).pipe(m(()=>r)):f(r)})}var vn=(()=>{class e{buildTitle(t){let n,i=t.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(s=>s.outlet===p);return n}getResolvedTitleForRoute(t){return t.data[Ot]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(zi),providedIn:"root"})}}return e})(),zi=(()=>{class e extends vn{constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}static{this.\u0275fac=function(n){return new(n||e)(de(Nr))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ye=new $("",{providedIn:"root",factory:()=>({})}),Fi=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=dr({type:e,selectors:[["ng-component"]],standalone:!0,features:[Tr],decls:1,vars:0,template:function(n,i){n&1&&br(0,"router-outlet")},dependencies:[Kn],encapsulation:2})}}return e})();function Xe(e){let r=e.children&&e.children.map(Xe),t=r?I(l({},e),{children:r}):l({},e);return!t.component&&!t.loadComponent&&(r||t.loadChildren)&&t.outlet&&t.outlet!==p&&(t.component=Fi),t}var Je=new $(""),qi=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(ve)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return f(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let n=W(t.loadComponent()).pipe(m(mn),R(s=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=s}),Nt(()=>{this.componentLoaders.delete(t)})),i=new oe(n,()=>new B).pipe(se());return this.componentLoaders.set(t,i),i}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let s=Bi(n,this.compiler,t,this.onLoadEndListener).pipe(Nt(()=>{this.childrenLoaders.delete(n)})),o=new oe(s,()=>new B).pipe(se());return this.childrenLoaders.set(n,o),o}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Bi(e,r,t,n){return W(e.loadChildren()).pipe(m(mn),O(i=>i instanceof Rr||Array.isArray(i)?f(i):T(r.compileModuleAsync(i))),m(i=>{n&&n(e);let s,o,u=!1;return Array.isArray(i)?(o=i,u=!0):(s=i.create(t).injector,o=s.get(Je,[],{optional:!0,self:!0}).flat()),{routes:o.map(Xe),injector:s}}))}function Vi(e){return e&&typeof e=="object"&&"default"in e}function mn(e){return Vi(e)?e.default:e}var tr=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(Hi),providedIn:"root"})}}return e})(),Hi=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Wi=new $("");var Gi=new $(""),Qi=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new B,this.transitionAbortSubject=new B,this.configLoader=g(qi),this.environmentInjector=g($t),this.urlSerializer=g(Ke),this.rootContexts=g(ee),this.location=g(zt),this.inputBindingEnabled=g(re,{optional:!0})!==null,this.titleStrategy=g(vn),this.options=g(Ye,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(tr),this.createViewTransition=g(Wi,{optional:!0}),this.navigationErrorHandler=g(Gi,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let t=i=>this.events.next(new xe(i)),n=i=>this.events.next(new Pe(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;this.transitions?.next(I(l(l({},this.transitions.value),t),{id:n}))}setupNavigations(t,n,i){return this.transitions=new D({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:yt,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(s=>s.id!==0),m(s=>I(l({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),x(s=>{let o=!1,u=!1;return f(s).pipe(x(a=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",M.SupersededByNewNavigation),V;this.currentTransition=s,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?I(l({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!c&&h!=="reload"){let d="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.rawUrl),d,De.IgnoredSameUrlNavigation)),a.resolve(!1),V}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return f(a).pipe(x(d=>{let y=this.transitions?.getValue();return this.events.next(new wt(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),y!==this.transitions?.getValue()?V:Promise.resolve(d)}),ji(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),R(d=>{s.targetSnapshot=d.targetSnapshot,s.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=I(l({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let y=new Qt(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(y)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:y,source:j,restoredState:S,extras:q}=a,U=new wt(d,this.urlSerializer.serialize(y),j,S);this.events.next(U);let ht=sn(this.rootComponentType).snapshot;return this.currentTransition=s=I(l({},a),{targetSnapshot:ht,urlAfterRedirects:y,extras:I(l({},q),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,f(s)}else{let d="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.extractedUrl),d,De.IgnoredByUrlHandlingStrategy)),a.resolve(!1),V}}),R(a=>{let c=new Te(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=s=I(l({},a),{guards:ei(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),s)),di(this.environmentInjector,a=>this.events.next(a)),R(a=>{if(s.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Jt(this.urlSerializer,a.guardsResult);let c=new Oe(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,"",M.GuardRejected),!1)),Se(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(R(c=>{let h=new Ee(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}),x(c=>{let h=!1;return f(c).pipe($i(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(c,"",M.NoDataFromResolver)}}))}),R(c=>{let h=new Ue(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}))}),Se(a=>{let c=h=>{let d=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(h.routeConfig).pipe(R(y=>{h.component=y}),m(()=>{})));for(let y of h.children)d.push(...c(y));return d};return Pt(c(a.targetSnapshot.root)).pipe(ce(null),tt(1))}),Se(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:a,targetSnapshot:c}=s,h=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return h?T(h).pipe(m(()=>s)):f(s)}),m(a=>{let c=Zn(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=s=I(l({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),R(()=>{this.events.next(new It)}),ti(this.rootContexts,t.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),tt(1),R({next:a=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new F(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),lr(this.transitionAbortSubject.pipe(R(a=>{throw a}))),Nt(()=>{!o&&!u&&this.cancelNavigationTransition(s,"",M.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(u=!0,ln(a))this.events.next(new _(s.id,this.urlSerializer.serialize(s.extractedUrl),a.message,a.cancellationCode)),Jn(a)?this.events.next(new ut(a.url,a.navigationBehaviorOptions)):s.resolve(!1);else{let c=new bt(s.id,this.urlSerializer.serialize(s.extractedUrl),a,s.targetSnapshot??void 0);try{let h=k(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(h instanceof Mt){let{message:d,cancellationCode:y}=Jt(this.urlSerializer,h);this.events.next(new _(s.id,this.urlSerializer.serialize(s.extractedUrl),d,y)),this.events.next(new ut(h.redirectTo,h.navigationBehaviorOptions))}else{this.events.next(c);let d=t.errorHandler(a);s.resolve(!!d)}}catch(h){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(h)}}return V}))}))}cancelNavigationTransition(t,n,i){let s=new _(t.id,this.urlSerializer.serialize(t.extractedUrl),n,i);this.events.next(s),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ki(e){return e!==yt}var Zi=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(Yi),providedIn:"root"})}}return e})(),Qe=class{shouldDetach(r){return!1}store(r,t){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,t){return r.routeConfig===t.routeConfig}},Yi=(()=>{class e extends Qe{static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=fe(e)))(i||e)}})()}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),yn=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(Xi),providedIn:"root"})}}return e})(),Xi=(()=>{class e extends yn{constructor(){super(...arguments),this.location=g(zt),this.urlSerializer=g(Ke),this.options=g(Ye,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(tr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new z,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=sn(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&t(n.url,n.state)})}handleRouterEvent(t,n){if(t instanceof wt)this.stateMemento=this.createStateMemento();else if(t instanceof Z)this.rawUrlTree=n.initialUrl;else if(t instanceof Qt){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??i,n)}}else t instanceof It?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):t instanceof _&&(t.code===M.GuardRejected||t.code===M.NoDataFromResolver)?this.restoreHistory(n):t instanceof bt?this.restoreHistory(n,!0):t instanceof F&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,n){let i=t instanceof z?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl){let s=this.browserPageId,o=l(l({},n.extras.state),this.generateNgRouterState(n.id,s));this.location.replaceState(i,"",o)}else{let s=l(l({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===t.finalUrl&&s===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=fe(e)))(i||e)}})()}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),vt=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(vt||{});function Ji(e,r){e.events.pipe(X(t=>t instanceof F||t instanceof _||t instanceof bt||t instanceof Z),m(t=>t instanceof F||t instanceof Z?vt.COMPLETE:(t instanceof _?t.code===M.Redirect||t.code===M.SupersededByNewNavigation:!1)?vt.REDIRECTING:vt.FAILED),X(t=>t!==vt.REDIRECTING),tt(1)).subscribe(()=>{r()})}function ts(e){throw e}var es={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},rs={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ie=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=g(Or),this.stateManager=g(yn),this.options=g(Ye,{optional:!0})||{},this.pendingTasks=g(vr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(Qi),this.urlSerializer=g(Ke),this.location=g(zt),this.urlHandlingStrategy=g(tr),this._events=new B,this.errorHandler=this.options.errorHandler||ts,this.navigated=!1,this.routeReuseStrategy=g(Zi),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(Je,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(re,{optional:!0}),this.eventsSubscription=new er,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(n,s),n instanceof _&&n.code!==M.Redirect&&n.code!==M.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof F)this.navigated=!0;else if(n instanceof ut){let o=n.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),a=l({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Ki(i.source)},o);this.scheduleNavigation(u,yt,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}is(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),yt,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",n)},0)})}navigateToSyncWithBrowser(t,n,i){let s={replaceUrl:!0},o=i?.navigationId?i:null;if(i){let a=l({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(s.state=a)}let u=this.parseUrl(t);this.scheduleNavigation(u,n,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Xe),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(t,n={}){let{relativeTo:i,queryParams:s,fragment:o,queryParamsHandling:u,preserveFragment:a}=n,c=a?this.currentUrlTree.fragment:o,h=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":h=l(l({},this.currentUrlTree.queryParams),s);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=s||null}h!==null&&(h=this.removeEmptyProps(h));let d;try{let y=i?i.snapshot:this.routerState.snapshot.root;d=tn(y)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),d=this.currentUrlTree.root}return en(d,t,h,c??null)}navigateByUrl(t,n={skipLocationChange:!1}){let i=K(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,yt,null,n)}navigate(t,n={skipLocationChange:!1}){return ns(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,n){let i;if(n===!0?i=l({},es):n===!1?i=l({},rs):i=n,K(t))return jr(this.currentUrlTree,t,i);let s=this.parseUrl(t);return jr(this.currentUrlTree,s,i)}removeEmptyProps(t){return Object.entries(t).reduce((n,[i,s])=>(s!=null&&(n[i]=s),n),{})}scheduleNavigation(t,n,i,s,o){if(this.disposed)return Promise.resolve(!1);let u,a,c;o?(u=o.resolve,a=o.reject,c=o.promise):c=new Promise((d,y)=>{u=d,a=y});let h=this.pendingTasks.add();return Ji(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:s,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ns(e){for(let r=0;r<e.length;r++)if(e[r]==null)throw new w(4008,!1)}function is(e){return!(e instanceof It)&&!(e instanceof ut)}var Br=(()=>{class e{constructor(t,n,i,s,o,u){this.router=t,this.route=n,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=u,this.href=null,this.onChanges=new B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let a=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof F&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(K(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,i,s,o){let u=this.urlTree;if(u===null||this.isAnchorElement&&(t!==0||n||i||s||o||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 t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let n=this.href===null?null:mr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(t,n){let i=this.renderer,s=this.el.nativeElement;n!==null?i.setAttribute(s,t,n):i.removeAttribute(s,t)}get urlTree(){return this.routerLinkInput===null?null:K(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{this.\u0275fac=function(n){return new(n||e)(P(ie),P(Y),pr("tabindex"),P(ge),P(pe),P(me))}}static{this.\u0275dir=jt({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&Ir("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),n&2&&wr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",_t],skipLocationChange:[2,"skipLocationChange","skipLocationChange",_t],replaceUrl:[2,"replaceUrl","replaceUrl",_t],routerLink:"routerLink"},standalone:!0,features:[Cr,Lt]})}}return e})(),Qs=(()=>{class e{get isActive(){return this._isActive}constructor(t,n,i,s,o){this.router=t,this.element=n,this.renderer=i,this.cdr=s,this.link=o,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new et,this.routerEventsSubscription=t.events.subscribe(u=>{u instanceof F&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(ae()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=T(t).pipe(ae()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(t){let n=Array.isArray(t)?t:t.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(n=>{t?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),t&&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!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let n=ss(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?t.isActive(s,n):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static{this.\u0275fac=function(n){return new(n||e)(P(ie),P(pe),P(ge),P(kt),P(Br,8))}}static{this.\u0275dir=jt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,s){if(n&1&&Ar(s,Br,5),n&2){let o;Mr(o=Dr())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Lt]})}}return e})();function ss(e){return!!e.paths}var os=new $("");function Ks(e,...r){return fr([{provide:Je,multi:!0,useValue:e},[],{provide:Y,useFactory:as,deps:[ie]},{provide:Ur,multi:!0,useFactory:cs},r.map(t=>t.\u0275providers)])}function as(e){return e.routerState.root}function us(e,r){return{\u0275kind:e,\u0275providers:r}}function cs(){let e=g(gr);return r=>{let t=e.get(xr);if(r!==t.components[0])return;let n=e.get(ie),i=e.get(ls);e.get(hs)===1&&n.initialNavigation(),e.get(ds,null,he.Optional)?.setUpPreloading(),e.get(os,null,he.Optional)?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ls=new $("",{factory:()=>new B}),hs=new $("",{providedIn:"root",factory:()=>1});var ds=new $("");function Zs(){return us(8,[_r,{provide:re,useExisting:_r}])}export{Y as a,Kn as b,ie as c,Br as d,Qs as e,Ks as f,Zs as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$b as
|
|
1
|
+
import{$b as h,M as a,Ra as b,U as d,Zb as g,_b as y,ca as l,i as f,ja as v,ka as c}from"./chunk-NGPWOMCW.js";function p(s,e){!e?.injector&&l(p);let n=e?.injector??d(v),o=new f(1),i=h(()=>{let t;try{t=s()}catch(u){y(()=>o.error(u));return}y(()=>o.next(t))},{injector:n,manualCleanup:!0});return n.get(c).onDestroy(()=>{i.destroy(),o.complete()}),o.asObservable()}function m(s,e){let n=!e?.manualCleanup;n&&!e?.injector&&l(m);let o=n?e?.injector?.get(c)??d(c):null,i=w(e?.equal),t;e?.requireSync?t=b({kind:0},{equal:i}):t=b({kind:1,value:e?.initialValue},{equal:i});let u=s.subscribe({next:r=>t.set({kind:1,value:r}),error:r=>{if(e?.rejectErrors)throw r;t.set({kind:2,error:r})}});if(e?.requireSync&&t().kind===0)throw new a(601,!1);return o?.onDestroy(u.unsubscribe.bind(u)),g(()=>{let r=t();switch(r.kind){case 1:return r.value;case 2:throw r.error;case 0:throw new a(601,!1)}},{equal:e?.equal})}function w(s=Object.is){return(e,n)=>e.kind===1&&n.kind===1&&s(e.value,n.value)}export{p as a,m as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as N}from"./chunk-3B6RZWP4.js";import{a as M}from"./chunk-WQPTWFXA.js";import{l as L}from"./chunk-3SP3MQEU.js";import{a as V,b as O}from"./chunk-ZUVMWAQY.js";import{$b as P,Bb as m,D as h,Eb as b,Hb as A,J as I,La as l,Mb as E,Nb as R,O as C,Ra as i,U as r,W as _,Ya as T,Z as x,Zb as d,_a as p,db as w,hb as o,ib as u,jb as c,l as B,p as D,pb as v}from"./chunk-NGPWOMCW.js";import{a as k,b as S}from"./chunk-7CGTOI24.js";var f=class a{#t=r(N);transform(e,...t){return this.#t(e).fromNow()}static \u0275fac=function(t){return new(t||a)};static \u0275pipe=x({name:"appRelativeTime",type:a,pure:!0,standalone:!0})};var g=class a{#t=1e3;#d=r(O);#o=r(V);#n=r(M);#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=d(()=>{let e=this.#a();return e?(e.ProposedSchedule=e?.ProposedSchedule?.map(t=>{let s=t.Item1?this.#n.getBackupById(t.Item1):null;return S(k({},t),{backup:s})}),e):null});isFetching=this.#i.asReadonly();#l=null;#g=P(()=>{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=P(()=>{if(this.#f()){this.stopPollingProgress();return}!this.#s()&&this.#r()?setTimeout(()=>{this.startPollingProgress(),this.#c()},1e3):this.stopPollingProgress()},{allowSignalWrites:!0});#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(I(e=>{let t=e.TaskID??null;return t===null?B(e):this.#o.getApiV1TaskByTaskid({taskid:t}).pipe(D(s=>S(k({},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=C({token:a,factory:a.\u0275fac,providedIn:"root"})};function G(a,e){if(a&1&&(o(0,"div",2),m(1),u(),c(2,"spk-progress-bar",3)),a&2){let t,s,n=v();l(),b("",(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,""),l(),p("value",(s=n.statusData())!=null&&s.OverallProgress?((s=n.statusData())==null?null:s.OverallProgress)*100:3)}}function F(a,e){if(a&1&&(o(0,"div",2),m(1),E(2,"appRelativeTime"),u(),c(3,"spk-progress-bar",4)),a&2){let t,s=v();l(),b("",(t=s.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",R(2,3,s.nextBackup().time),""),l(2),p("value",3)}}function J(a,e){a&1&&(o(0,"div",2),m(1,"No scheduled tasks"),u(),c(2,"spk-progress-bar",4)),a&2&&(l(2),p("value",3))}function U(a,e){a&1&&(o(0,"div",2),m(1,"Loading..."),u(),c(2,"spk-progress-bar",4)),a&2&&(l(2),p("value",3))}var y=class a{#t=r(g);statusData=this.#t.statusData;serverState=this.#t.serverState;nextBackup=d(()=>({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=_({type:a,selectors:[["app-status-bar"]],standalone:!0,features:[A],decls:6,vars:1,consts:[[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"raised","primary",3,"value"],[1,"raised",3,"value"]],template:function(t,s){if(t&1&&(o(0,"div",0)(1,"div",1),T(2,G,3,3)(3,F,4,5)(4,J,3,1)(5,U,3,1),u()()),t&2){let n;l(2),w(!((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:[L,f],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;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{y as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=Object.defineProperty,j=Object.defineProperties;var k=Object.getOwnPropertyDescriptors;var e=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var f=(a,b,c)=>b in a?i(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c,l=(a,b)=>{for(var c in b||={})g.call(b,c)&&f(a,c,b[c]);if(e)for(var c of e(b))h.call(b,c)&&f(a,c,b[c]);return a},m=(a,b)=>j(a,k(b));var n=(a,b)=>{var c={};for(var d in a)g.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&e)for(var d of e(a))b.indexOf(d)<0&&h.call(a,d)&&(c[d]=a[d]);return c};export{l as a,m as b,n as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b}from"./chunk-6PJU5W5X.js";import{a as u}from"./chunk-ZUVMWAQY.js";import{Bb as n,Cb as l,Hb as c,La as p,Mb as m,Nb as d,U as a,W as s,hb as t,ib as i,lc as f}from"./chunk-NGPWOMCW.js";import"./chunk-7CGTOI24.js";var r=class o{#e=a(u);licenses=b(this.#e.getApiV1Licenses());static \u0275fac=function(e){return new(e||o)};static \u0275cmp=s({type:o,selectors:[["app-libraries"]],standalone:!0,features:[c],decls:5,vars:3,template:function(e,C){e&1&&(t(0,"h3"),n(1,"Libraries"),i(),t(2,"pre"),n(3),m(4,"json"),i()),e&2&&(p(3),l(d(4,1,C.licenses())))},dependencies:[f],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as S}from"./chunk-RH5CENQ7.js";import"./chunk-Q3B3QVNE.js";import"./chunk-MYQPVSUP.js";import"./chunk-6PJU5W5X.js";import"./chunk-ER25OIRY.js";import{m as C,q as v}from"./chunk-3SP3MQEU.js";import{a as f,b as k,d as w,e as g}from"./chunk-4OR2MBXM.js";import"./chunk-KLPRJO2S.js";import"./chunk-ZUVMWAQY.js";import{Bb as p,Hb as d,Jb as l,La as s,U as r,W as u,_a as a,hb as o,ib as n,jb as i}from"./chunk-NGPWOMCW.js";import"./chunk-7CGTOI24.js";var F=e=>["/restore-flow",e,"select-files"],R=e=>["/restore-flow",e,"options"],c=class e{#t=r(f);#e=r(S);backupId=this.#e.backupId;ngOnInit(){this.#e.init(this.#t.snapshot.params.id)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=u({type:e,selectors:[["app-restore-flow"]],standalone:!0,features:[d],decls:9,vars:6,consts:[["spk-step","","routerLinkActive","active",3,"routerLink"]],template:function(t,m){t&1&&(o(0,"spk-stepper")(1,"div",0),i(2,"spk-radio"),p(3," Select files "),n(),o(4,"div",0),i(5,"spk-radio"),p(6," Options "),n()(),o(7,"section"),i(8,"router-outlet"),n()),t&2&&(s(),a("routerLink",l(2,F,m.backupId())),s(3),a("routerLink",l(4,R,m.backupId())))},dependencies:[v,C,k,w,g],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as S}from"./chunk-6PJU5W5X.js";import{a as h}from"./chunk-ZUVMWAQY.js";import{Bb as p,Cb as d,Hb as f,La as n,Mb as u,Nb as C,U as s,W as l,eb as c,fb as m,gb as g,hb as i,ib as a,lc as v}from"./chunk-NGPWOMCW.js";import"./chunk-7CGTOI24.js";function L(t,o){if(t&1&&(i(0,"pre",0),p(1),u(2,"json"),a()),t&2){let e=o.$implicit;n(),d(C(2,1,e))}}var r=class t{#e=s(h);logs=S(this.#e.getApiV1LogdataLog());static \u0275fac=function(e){return new(e||t)};static \u0275cmp=l({type:t,selectors:[["app-logs"]],standalone:!0,features:[f],decls:4,vars:0,consts:[[2,"white-space","wrap"]],template:function(e,y){e&1&&(i(0,"h3"),p(1,"Logs"),a(),m(2,L,3,3,"pre",0,c)),e&2&&(n(2),g(y.logs()))},dependencies:[v],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as d}from"./chunk-ICCENBZO.js";import"./chunk-ZUVMWAQY.js";import{Bb as o,Cb as f,Hb as r,La as p,Mb as c,Nb as l,U as a,W as m,hb as t,ib as n,lc as y}from"./chunk-NGPWOMCW.js";import"./chunk-7CGTOI24.js";var s=class i{#e=a(d);systemInfo=this.#e.systemInfo;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=m({type:i,selectors:[["app-system-info"]],standalone:!0,features:[r],decls:5,vars:3,template:function(e,S){e&1&&(t(0,"h3"),o(1,"System info"),n(),t(2,"pre"),o(3),c(4,"json"),n()),e&2&&(p(3),f(l(4,1,S.systemInfo())))},dependencies:[y],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c}from"./chunk-NVFX5EQI.js";import"./chunk-MYQPVSUP.js";import"./chunk-ICCENBZO.js";import"./chunk-DNHLTHLR.js";import"./chunk-6PJU5W5X.js";import"./chunk-ER25OIRY.js";import"./chunk-WQPTWFXA.js";import"./chunk-3SP3MQEU.js";import"./chunk-4OR2MBXM.js";import"./chunk-KLPRJO2S.js";import"./chunk-ZUVMWAQY.js";import"./chunk-NGPWOMCW.js";import"./chunk-7CGTOI24.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as a,h as b,i as c}from"./chunk-NVFX5EQI.js";import"./chunk-MYQPVSUP.js";import"./chunk-ICCENBZO.js";import"./chunk-DNHLTHLR.js";import"./chunk-6PJU5W5X.js";import"./chunk-ER25OIRY.js";import"./chunk-WQPTWFXA.js";import"./chunk-3SP3MQEU.js";import"./chunk-4OR2MBXM.js";import"./chunk-KLPRJO2S.js";import"./chunk-ZUVMWAQY.js";import"./chunk-NGPWOMCW.js";import"./chunk-7CGTOI24.js";export{b as createAdvancedOption,a as createOptionsForm,c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-QVTIOQU4.js";import{c as h}from"./chunk-4OR2MBXM.js";import{a as u}from"./chunk-ZUVMWAQY.js";import{$b as a,A as t,L as i,O as l,Ra as n,U as s}from"./chunk-NGPWOMCW.js";var m=class r{#t=s(c);#i=s(h);#s=s(u);#e=n(this.#t.getItemParsed("token")??null);#r=n(this.#t.getItemParsed("tokenSetTime")??null);tokenSetTime=this.#r.asReadonly();token=this.#e.asReadonly();#o=a(()=>{if(!this.#e()){this.#t.clearAll(),this.#i.navigate(["/login"]);return}let e=Date.now();this.#t.setItemParsed("tokenSetTime",e),this.#t.setItemParsed("token",this.#e()),this.#r.set(this.#e()?e:null)},{allowSignalWrites:!0});login(e="helloworld"){return this.#s.postApiV1AuthLogin({requestBody:{Password:e,RememberMe:!0}}).pipe(t(1),i(o=>this.#e.set(o.AccessToken??null)))}refreshToken(){return this.#s.postApiV1AuthRefresh().pipe(t(1),i(e=>this.#e.set(e.AccessToken??null)))}logout(){this.#s.postApiV1AuthRefreshLogout().pipe(t(1),i(e=>{this.#e.set(null),this.#t.clearAll(),this.#i.navigate(["/login"])})).subscribe({error:e=>{this.#e.set(null),this.#t.clearAll(),this.#i.navigate(["/login"])}})}static \u0275fac=function(o){return new(o||r)};static \u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})};export{m as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-QVTIOQU4.js";import{$b as r,O as s,Ra as e,U as i}from"./chunk-NGPWOMCW.js";var o=class t{#t=i(a);#a=this.#t.getItemParsed("darkTheme",!0);#e=e(!1);#s=e(window?.innerWidth<=768);#i=e(!1);isDarkMode=this.#e.asReadonly();isMobile=this.#s.asReadonly();isNavOpen=this.#i.asReadonly();constructor(){window.matchMedia("(prefers-color-scheme:dark)").matches&&this.#a&&this.setDarkMode(),r(()=>{this.#e()?document.body.classList.add("dark"):document.body.classList.remove("dark")})}ngOnInit(){window.addEventListener("resize",this.#r)}toggleNav(){this.#i.set(!this.isNavOpen())}toggleBodyClass(){this.#t.setItemParsed("darkTheme",!this.isDarkMode(),!0),this.#e.set(!this.isDarkMode())}setDarkMode(){this.#t.setItemParsed("darkTheme",!0,!0),this.#e.set(!0)}setLightMode(){this.#t.setItemParsed("darkTheme",!1,!0),this.#e.set(!1)}#r(){this.#s.set(window.innerWidth<=768)}ngOnDestroy(){window.removeEventListener("resize",this.#r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as a,e as b,f as c}from"./chunk-NVFX5EQI.js";import"./chunk-MYQPVSUP.js";import"./chunk-ICCENBZO.js";import"./chunk-DNHLTHLR.js";import"./chunk-6PJU5W5X.js";import"./chunk-ER25OIRY.js";import"./chunk-WQPTWFXA.js";import"./chunk-3SP3MQEU.js";import"./chunk-4OR2MBXM.js";import"./chunk-KLPRJO2S.js";import"./chunk-ZUVMWAQY.js";import"./chunk-NGPWOMCW.js";import"./chunk-7CGTOI24.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Gb as p,M as j,Ma as o,N as f,O as ie,Oa as A,P as B,R as C,Ra as N,Rb as Ve,U as ye,Ua as u,X as U,Y as l,Zb as O,_b as m,ab as re,bc as se,da as ne,g as ge,ha as V,ja as Ce,k as me,ma as S,ob as g,p as _e,ra as b,v as ve}from"./chunk-NGPWOMCW.js";import{a as c,b as h}from"./chunk-7CGTOI24.js";var Oe=(()=>{class i{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(n){return new(n||i)(o(A),o(b))}}static{this.\u0275dir=l({type:i})}}return i})(),I=(()=>{class i extends Oe{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=V(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,features:[u]})}}return i})(),D=new C(""),st={provide:D,useExisting:f(()=>ot),multi:!0},ot=(()=>{class i extends I{writeValue(e){this.setProperty("checked",e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=V(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[p([st]),u]})}}return i})(),at={provide:D,useExisting:f(()=>xe),multi:!0};function lt(){let i=se()?se().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var ut=new C(""),xe=(()=>{class i extends Oe{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!lt())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(n){return new(n||i)(o(A),o(b),o(ut,8))}}static{this.\u0275dir=l({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&g("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[p([at]),u]})}}return i})();function _(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function Pe(i){return i!=null&&typeof i.length=="number"}var K=new C(""),J=new C(""),ct=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,De=class{static min(t){return dt(t)}static max(t){return ht(t)}static required(t){return ft(t)}static requiredTrue(t){return pt(t)}static email(t){return gt(t)}static minLength(t){return mt(t)}static maxLength(t){return _t(t)}static pattern(t){return vt(t)}static nullValidator(t){return ke(t)}static compose(t){return Ue(t)}static composeAsync(t){return Le(t)}};function dt(i){return t=>{if(_(t.value)||_(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e<i?{min:{min:i,actual:t.value}}:null}}function ht(i){return t=>{if(_(t.value)||_(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}function ft(i){return _(i.value)?{required:!0}:null}function pt(i){return i.value===!0?null:{required:!0}}function gt(i){return _(i.value)||ct.test(i.value)?null:{email:!0}}function mt(i){return t=>_(t.value)||!Pe(t.value)?null:t.value.length<i?{minlength:{requiredLength:i,actualLength:t.value.length}}:null}function _t(i){return t=>Pe(t.value)&&t.value.length>i?{maxlength:{requiredLength:i,actualLength:t.value.length}}:null}function vt(i){if(!i)return ke;let t,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=i.toString(),t=i),n=>{if(_(n.value))return null;let r=n.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function ke(i){return null}function Ge(i){return i!=null}function Re(i){return Ve(i)?me(i):i}function Te(i){let t={};return i.forEach(e=>{t=e!=null?c(c({},t),e):t}),Object.keys(t).length===0?null:t}function je(i,t){return t.map(e=>e(i))}function yt(i){return!i.validate}function Be(i){return i.map(t=>yt(t)?t:e=>t.validate(e))}function Ue(i){if(!i)return null;let t=i.filter(Ge);return t.length==0?null:function(e){return Te(je(e,t))}}function He(i){return i!=null?Ue(Be(i)):null}function Le(i){if(!i)return null;let t=i.filter(Ge);return t.length==0?null:function(e){let n=je(e,t).map(Re);return ve(n).pipe(_e(Te))}}function $e(i){return i!=null?Le(Be(i)):null}function be(i,t){return i===null?[t]:Array.isArray(i)?[...i,t]:[i,t]}function We(i){return i._rawValidators}function qe(i){return i._rawAsyncValidators}function oe(i){return i?Array.isArray(i)?i:[i]:[]}function $(i,t){return Array.isArray(i)?i.includes(t):i===t}function Ae(i,t){let e=oe(t);return oe(i).forEach(r=>{$(e,r)||e.push(r)}),e}function Me(i,t){return oe(t).filter(e=>!$(i,e))}var W=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=He(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=$e(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},d=class extends W{get formDirective(){return null}get path(){return null}},F=class extends W{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},q=class{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Ct={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},mi=h(c({},Ct),{"[class.ng-submitted]":"isSubmitted"}),_i=(()=>{class i extends q{constructor(e){super(e)}static{this.\u0275fac=function(n){return new(n||i)(o(F,2))}}static{this.\u0275dir=l({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&re("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[u]})}}return i})(),vi=(()=>{class i extends q{constructor(e){super(e)}static{this.\u0275fac=function(n){return new(n||i)(o(d,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&re("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[u]})}}return i})();var x="VALID",H="INVALID",M="PENDING",P="DISABLED",v=class{},z=class extends v{constructor(t,e){super(),this.value=t,this.source=e}},k=class extends v{constructor(t,e){super(),this.pristine=t,this.source=e}},G=class extends v{constructor(t,e){super(),this.touched=t,this.source=e}},E=class extends v{constructor(t,e){super(),this.status=t,this.source=e}},ae=class extends v{constructor(t){super(),this.source=t}},le=class extends v{constructor(t){super(),this.source=t}};function de(i){return(Q(i)?i.validators:i)||null}function Vt(i){return Array.isArray(i)?He(i):i||null}function he(i,t){return(Q(t)?t.asyncValidators:i)||null}function Dt(i){return Array.isArray(i)?$e(i):i||null}function Q(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function ze(i,t,e){let n=i.controls;if(!(t?Object.keys(n):n).length)throw new j(1e3,"");if(!n[e])throw new j(1001,"")}function Ze(i,t,e){i._forEachChild((n,r)=>{if(e[r]===void 0)throw new j(1002,"")})}var w=class{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=O(()=>this.statusReactive()),this.statusReactive=N(void 0),this._pristine=O(()=>this.pristineReactive()),this.pristineReactive=N(!0),this._touched=O(()=>this.touchedReactive()),this.touchedReactive=N(!1),this._events=new ge,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return m(this.statusReactive)}set status(t){m(()=>this.statusReactive.set(t))}get valid(){return this.status===x}get invalid(){return this.status===H}get pending(){return this.status==M}get disabled(){return this.status===P}get enabled(){return this.status!==P}get pristine(){return m(this.pristineReactive)}set pristine(t){m(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return m(this.touchedReactive)}set touched(t){m(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Ae(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ae(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Me(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Me(t,this._rawAsyncValidators))}hasValidator(t){return $(this._rawValidators,t)}hasAsyncValidator(t){return $(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(h(c({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new G(!0,n))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:n})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n),e&&t.emitEvent!==!1&&this._events.next(new G(!1,n))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(h(c({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new k(!1,n))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),e&&t.emitEvent!==!1&&this._events.next(new k(!0,n))}markAsPending(t={}){this.status=M;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new E(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(h(c({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=P,this.errors=null,this._forEachChild(r=>{r.disable(h(c({},t),{onlySelf:!0}))}),this._updateValue();let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new z(this.value,n)),this._events.next(new E(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(h(c({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=x,this._forEachChild(n=>{n.enable(h(c({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(h(c({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===x||this.status===M)&&this._runAsyncValidator(n,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new z(this.value,e)),this._events.next(new E(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(h(c({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?P:x}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=M,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=Re(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(t,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,n){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||n)&&this._events.next(new E(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,n)}_initObservables(){this.valueChanges=new S,this.statusChanges=new S}_calculateStatus(){return this._allControlsDisabled()?P:this.errors?H:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(M)?M:this._anyControlsHaveStatus(H)?H:x}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new k(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new G(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Q(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Vt(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Dt(this._rawAsyncValidators)}},Z=class extends w{constructor(t,e,n){super(de(e),he(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Ze(this,!0,t),Object.keys(t).forEach(n=>{ze(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(n=>{let r=this.controls[n];r&&r.patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&t(n))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(t,e){let n=t;return this._forEachChild((r,s)=>{n=e(n,r,s)}),n}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var ue=class extends Z{};var ee=new C("CallSetDisabledState",{providedIn:"root",factory:()=>R}),R="always";function fe(i,t){return[...t.path,i]}function Ee(i,t,e=R){pe(i,t),t.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(i.disabled),At(i,t),Et(i,t),Mt(i,t),bt(i,t)}function Fe(i,t,e=!0){let n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Y(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function X(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function bt(i,t){if(t.valueAccessor.setDisabledState){let e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function pe(i,t){let e=We(i);t.validator!==null?i.setValidators(be(e,t.validator)):typeof e=="function"&&i.setValidators([e]);let n=qe(i);t.asyncValidator!==null?i.setAsyncValidators(be(n,t.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let r=()=>i.updateValueAndValidity();X(t._rawValidators,r),X(t._rawAsyncValidators,r)}function Y(i,t){let e=!1;if(i!==null){if(t.validator!==null){let r=We(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=!0,i.setValidators(s))}}if(t.asyncValidator!==null){let r=qe(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=!0,i.setAsyncValidators(s))}}}let n=()=>{};return X(t._rawValidators,n),X(t._rawAsyncValidators,n),e}function At(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Xe(i,t)})}function Mt(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Xe(i,t),i.updateOn!=="submit"&&i.markAsTouched()})}function Xe(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Et(i,t){let e=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function Ft(i,t){i==null,pe(i,t)}function wt(i,t){return Y(i,t)}function It(i,t){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function St(i){return Object.getPrototypeOf(i.constructor)===I}function Nt(i,t){i._syncPendingControls(),t.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Ot(i,t){if(!t)return null;Array.isArray(t);let e,n,r;return t.forEach(s=>{s.constructor===xe?e=s:St(s)?n=s:r=s}),r||n||e||null}function xt(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function we(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function Ie(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var L=class extends w{constructor(t=null,e,n){super(de(e),he(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Q(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ie(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){we(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){we(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Ie(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Pt=i=>i instanceof L,kt=(()=>{class i extends d{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return fe(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=V(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,features:[u]})}}return i})();var Ci=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=l({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return i})(),Gt={provide:D,useExisting:f(()=>Rt),multi:!0},Rt=(()=>{class i extends I{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=V(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&g("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[p([Gt]),u]})}}return i})(),Tt={provide:D,useExisting:f(()=>Bt),multi:!0};var jt=(()=>{class i{constructor(){this._accessors=[]}add(e,n){this._accessors.push([e,n])}remove(e){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===e){this._accessors.splice(n,1);return}}select(e){this._accessors.forEach(n=>{this._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}_isSameGroup(e,n){return e[0].control?e[0]._parent===n._control._parent&&e[1].name===n.name:!1}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=ie({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Bt=(()=>{class i extends I{constructor(e,n,r,s){super(e,n),this._registry=r,this._injector=s,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=ye(ee,{optional:!0})??R}ngOnInit(){this._control=this._injector.get(F),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static{this.\u0275fac=function(n){return new(n||i)(o(A),o(b),o(jt),o(Ce))}}static{this.\u0275dir=l({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[p([Tt]),u]})}}return i})();var Ye=new C("");var Ut={provide:d,useExisting:f(()=>Ke)},Ke=(()=>{class i extends d{get submitted(){return m(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}constructor(e,n,r){super(),this.callSetDisabledState=r,this._submitted=O(()=>this._submittedReactive()),this._submittedReactive=N(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new S,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Y(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Ee(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Fe(e.control||null,e,!1),xt(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),Nt(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new ae(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new le(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(Fe(n||null,e),Pt(r)&&(Ee(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);Ft(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&wt(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){pe(this.form,this),this._oldForm&&Y(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(n){return new(n||i)(o(K,10),o(J,10),o(ee,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&g("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p([Ut]),u,ne]})}}return i})(),Ht={provide:d,useExisting:f(()=>Je)},Je=(()=>{class i extends kt{constructor(e,n,r){super(),this.name=null,this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){et(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(d,13),o(K,10),o(J,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[p([Ht]),u]})}}return i})(),Lt={provide:d,useExisting:f(()=>Qe)},Qe=(()=>{class i extends d{constructor(e,n,r){super(),this.name=null,this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return fe(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){et(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(d,13),o(K,10),o(J,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[p([Lt]),u]})}}return i})();function et(i){return!(i instanceof Je)&&!(i instanceof Ke)&&!(i instanceof Qe)}var $t={provide:F,useExisting:f(()=>Wt)},Wt=(()=>{class i extends F{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,n,r,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new S,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=Ot(this,s)}ngOnChanges(e){this._added||this._setUpControl(),It(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return fe(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(n){return new(n||i)(o(d,13),o(K,10),o(J,10),o(D,10),o(Ye,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[p([$t]),u,ne]})}}return i})(),qt={provide:D,useExisting:f(()=>it),multi:!0};function tt(i,t){return i==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${i}: ${t}`.slice(0,50))}function zt(i){return i.split(":")[0]}var it=(()=>{class i extends I{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let n=this._getOptionId(e),r=tt(n,e);this.setProperty("value",r)}registerOnChange(e){this.onChange=n=>{this.value=this._getOptionValue(n),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),e))return n;return null}_getOptionValue(e){let n=zt(e);return this._optionMap.has(n)?this._optionMap.get(n):e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=V(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[p([qt]),u]})}}return i})(),Vi=(()=>{class i{constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(tt(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(n){return new(n||i)(o(b),o(A),o(it,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})(),Zt={provide:D,useExisting:f(()=>nt),multi:!0};function Se(i,t){return i==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${i}: ${t}`.slice(0,50))}function Xt(i){return i.split(":")[0]}var nt=(()=>{class i extends I{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let n;if(Array.isArray(e)){let r=e.map(s=>this._getOptionId(s));n=(s,a)=>{s._setSelected(r.indexOf(a.toString())>-1)}}else n=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(e){this.onChange=n=>{let r=[],s=n.selectedOptions;if(s!==void 0){let a=s;for(let y=0;y<a.length;y++){let T=a[y],te=this._getOptionValue(T.value);r.push(te)}}else{let a=n.options;for(let y=0;y<a.length;y++){let T=a[y];if(T.selected){let te=this._getOptionValue(T.value);r.push(te)}}}this.value=r,e(r)}}_registerOption(e){let n=(this._idCounter++).toString();return this._optionMap.set(n,e),n}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n)._value,e))return n;return null}_getOptionValue(e){let n=Xt(e);return this._optionMap.has(n)?this._optionMap.get(n)._value:e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=V(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[p([Zt]),u]})}}return i})(),Di=(()=>{class i{constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(Se(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Se(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(n){return new(n||i)(o(b),o(A),o(nt,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})();var rt=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=U({type:i})}static{this.\u0275inj=B({})}}return i})(),ce=class extends w{constructor(t,e,n){super(de(e),he(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){let n=this._adjustIndex(t);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Ze(this,!1,t),t.forEach((n,r)=>{ze(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function Ne(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var bi=(()=>{class i{constructor(){this.useNonNullable=!1}get nonNullable(){let e=new i;return e.useNonNullable=!0,e}group(e,n=null){let r=this._reduceControls(e),s={};return Ne(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new Z(r,s)}record(e,n=null){let r=this._reduceControls(e);return new ue(r,n)}control(e,n,r){let s={};return this.useNonNullable?(Ne(n)?s=n:(s.validators=n,s.asyncValidators=r),new L(e,h(c({},s),{nonNullable:!0}))):new L(e,n,r)}array(e,n,r){let s=e.map(a=>this._createControl(a));return new ce(s,n,r)}_reduceControls(e){let n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){if(e instanceof L)return e;if(e instanceof w)return e;if(Array.isArray(e)){let n=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(n,r,s)}else return this.control(e)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=ie({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ai=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:ee,useValue:e.callSetDisabledState??R}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=U({type:i})}static{this.\u0275inj=B({imports:[rt]})}}return i})(),Mi=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Ye,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:ee,useValue:e.callSetDisabledState??R}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=U({type:i})}static{this.\u0275inj=B({imports:[rt]})}}return i})();export{ot as a,xe as b,De as c,_i as d,vi as e,Ci as f,Rt as g,Bt as h,Ke as i,Je as j,Qe as k,Wt as l,Vi as m,Di as n,bi as o,Ai as p,Mi as q};
|