| Current Path : /var/www/pms.test.indaco.store/www/ |
| Current File : /var/www/pms.test.indaco.store/www/main.js |
(self.webpackChunkpms_frontend=self.webpackChunkpms_frontend||[]).push([[179],{6:(vn,_t,y)=>{"use strict";y.d(_t,{q:()=>p});var d=y(5412),i=y(4650),A=y(4859);let p=(()=>{class k{constructor(b,J){this.dialogRef=b,this.data=J,this.title=J.title,this.message=J.message}onConfirm(){this.dialogRef.close(!0)}onDismiss(){this.dialogRef.close(!1)}}return k.\u0275fac=function(b){return new(b||k)(i.Y36(d.so),i.Y36(d.WI))},k.\u0275cmp=i.Xpm({type:k,selectors:[["app-generic-confirmation-modal"]],decls:10,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(b,J){1&b&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1)(3,"p"),i._uU(4),i.qZA()(),i.TgZ(5,"div",2)(6,"button",3),i.NdJ("click",function(){return J.onDismiss()}),i._uU(7,"No"),i.qZA(),i.TgZ(8,"button",4),i.NdJ("click",function(){return J.onConfirm()}),i._uU(9,"Yes"),i.qZA()()),2&b&&(i.xp6(1),i.hij(" ",J.title," "),i.xp6(3),i.Oqu(J.message))},dependencies:[A.lW,d.uh,d.xY,d.H8]}),k})()},1041:(vn,_t,y)=>{"use strict";y.d(_t,{J:()=>se});var d=y(5861),i=y(4650),A=y(5412),p=y(220),v=y(7556),k=y(6895),f=y(4006),b=y(4859),J=y(9549),Y=y(4144),W=y(4385),B=y(3238),Z=y(1266);function G(S,F){if(1&S&&(i.TgZ(0,"mat-option",18),i._uU(1),i.qZA()),2&S){const V=F.$implicit;i.s9C("value",V._id),i.xp6(1),i.Oqu(V.companyName)}}let ie=(()=>{class S{constructor(V,ne,De){this.dialogRef=V,this.partnerService=ne,this.auth=De,this.data={_id:"",name:"",type:"",prefix:"",instanceId:"",websiteId:"",imsAddress:"",parentStore:"",managerId:"",storeName:""},this.partners=[],this.authData=De.currentAuthData,De.currentAuth.subscribe(wt=>{wt&&(this.authData=wt)})}ngOnInit(){this.partnerService.getAllPartners().subscribe(V=>this.partners=V)}onCancel(){this.dialogRef.close()}onSubmit(V){this.dialogRef.close(V)}}return S.\u0275fac=function(V){return new(V||S)(i.Y36(A.so),i.Y36(p.b),i.Y36(v.e8))},S.\u0275cmp=i.Xpm({type:S,selectors:[["app-add-channel-modal"]],decls:73,vars:41,consts:[[1,"full-width"],["novalidate","",3,"ngSubmit"],["matInput","","name","title","required","",3,"ngModel","ngModelChange"],["title","ngModel"],[3,"value","valueChange"],["value","SHOPIFY"],["value","MAGENTO"],["matInput","","name","prefix","required","",3,"ngModel","ngModelChange"],["matInput","","name","parentStore","required","",3,"ngModel","ngModelChange"],["matInput","","name","storeName","required","",3,"ngModel","ngModelChange"],["matInput","","name","imsAddress","required","",3,"ngModel","ngModelChange"],["matInput","","name","instanceId","required","",3,"ngModel","ngModelChange"],["matInput","","name","websiteId","required","",3,"ngModel","ngModelChange"],[1,"full-width","mt-3"],["required","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["mat-button","","type","button",3,"click"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(V,ne){1&V&&(i.TgZ(0,"div",0)(1,"form",1),i.NdJ("ngSubmit",function(){return ne.onSubmit(ne.data)}),i.TgZ(2,"mat-dialog-content")(3,"mat-form-field",0)(4,"mat-label"),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"input",2,3),i.NdJ("ngModelChange",function(wt){return ne.data.name=wt}),i.qZA()(),i._UZ(9,"br"),i.TgZ(10,"mat-form-field",0)(11,"mat-label"),i._uU(12,"Tipo di canale"),i.qZA(),i.TgZ(13,"mat-select",4),i.NdJ("valueChange",function(wt){return ne.data.type=wt}),i.TgZ(14,"mat-option",5),i._uU(15,"SHOPIFY"),i.qZA(),i.TgZ(16,"mat-option",6),i._uU(17,"MAGENTO"),i.qZA()()(),i._UZ(18,"br"),i.TgZ(19,"mat-form-field",0)(20,"mat-label"),i._uU(21),i.ALo(22,"translate"),i.qZA(),i.TgZ(23,"input",7,3),i.NdJ("ngModelChange",function(wt){return ne.data.prefix=wt}),i.qZA()(),i._UZ(25,"br"),i.TgZ(26,"mat-form-field",0)(27,"mat-label"),i._uU(28),i.ALo(29,"translate"),i.qZA(),i.TgZ(30,"input",8,3),i.NdJ("ngModelChange",function(wt){return ne.data.parentStore=wt}),i.qZA()(),i._UZ(32,"br"),i.TgZ(33,"mat-form-field",0)(34,"mat-label"),i._uU(35),i.ALo(36,"translate"),i.qZA(),i.TgZ(37,"input",9,3),i.NdJ("ngModelChange",function(wt){return ne.data.storeName=wt}),i.qZA()(),i._UZ(39,"br"),i.TgZ(40,"mat-form-field",0)(41,"mat-label"),i._uU(42),i.ALo(43,"translate"),i.qZA(),i.TgZ(44,"input",10,3),i.NdJ("ngModelChange",function(wt){return ne.data.imsAddress=wt}),i.qZA()(),i._UZ(46,"br"),i.TgZ(47,"mat-form-field",0)(48,"mat-label"),i._uU(49),i.ALo(50,"translate"),i.qZA(),i.TgZ(51,"input",11,3),i.NdJ("ngModelChange",function(wt){return ne.data.instanceId=wt}),i.qZA()(),i.TgZ(53,"mat-form-field",0)(54,"mat-label"),i._uU(55),i.ALo(56,"translate"),i.qZA(),i.TgZ(57,"input",12,3),i.NdJ("ngModelChange",function(wt){return ne.data.websiteId=wt}),i.qZA()(),i._UZ(59,"br"),i.TgZ(60,"mat-form-field",13)(61,"mat-label"),i._uU(62),i.ALo(63,"translate"),i.qZA(),i.TgZ(64,"mat-select",14),i.NdJ("valueChange",function(wt){return ne.data.managerId=wt}),i.YNc(65,G,2,2,"mat-option",15),i.qZA()()(),i.TgZ(66,"mat-dialog-actions")(67,"button",16),i.NdJ("click",function(){return ne.onCancel()}),i._uU(68),i.ALo(69,"translate"),i.qZA(),i.TgZ(70,"button",17),i._uU(71),i.ALo(72,"translate"),i.qZA()()()()),2&V&&(i.xp6(5),i.Oqu(i.lcZ(6,21,"app.channels.name")),i.xp6(2),i.Q6J("ngModel",ne.data.name),i.xp6(6),i.Q6J("value",ne.data.type),i.xp6(8),i.Oqu(i.lcZ(22,23,"app.channels.prefix")),i.xp6(2),i.Q6J("ngModel",ne.data.prefix),i.xp6(5),i.Oqu(i.lcZ(29,25,"app.channels.parentStore")),i.xp6(2),i.Q6J("ngModel",ne.data.parentStore),i.xp6(5),i.Oqu(i.lcZ(36,27,"app.channels.storeName")),i.xp6(2),i.Q6J("ngModel",ne.data.storeName),i.xp6(5),i.Oqu(i.lcZ(43,29,"app.channels.imsAddress")),i.xp6(2),i.Q6J("ngModel",ne.data.imsAddress),i.xp6(5),i.Oqu(i.lcZ(50,31,"app.channels.instanceId")),i.xp6(2),i.Q6J("ngModel",ne.data.instanceId),i.xp6(4),i.Oqu(i.lcZ(56,33,"app.channels.websiteId")),i.xp6(2),i.Q6J("ngModel",ne.data.websiteId),i.xp6(5),i.Oqu(i.lcZ(63,35,"app.channels.manager")),i.xp6(2),i.Q6J("value",ne.data.managerId),i.xp6(1),i.Q6J("ngForOf",ne.partners),i.xp6(3),i.Oqu(i.lcZ(69,37,"shared.buttons.cancel")),i.xp6(2),i.Q6J("disabled",""===ne.data.name),i.xp6(1),i.Oqu(i.lcZ(72,39,"shared.buttons.add")))},dependencies:[k.sg,f._Y,f.Fj,f.JJ,f.JL,f.Q7,f.On,f.F,b.lW,A.xY,A.H8,J.KE,J.hX,Y.Nt,W.gD,B.ey,Z.X$]}),S})();var Ee=y(7198);function ue(S,F){if(1&S&&(i.TgZ(0,"mat-option",7),i._uU(1),i.qZA()),2&S){const V=F.$implicit;i.s9C("value",V._id),i.xp6(1),i.Oqu(V.name)}}let Ze=(()=>{class S{constructor(V,ne){this.dialogRef=V,this.chanService=ne,this.channelId="",this.channels=[]}ngOnInit(){var V=this;return(0,d.Z)(function*(){V.channels=yield V.chanService.getChannels()})()}onCancel(){this.dialogRef.close()}onSubmit(){this.dialogRef.close(this.channelId)}}return S.\u0275fac=function(V){return new(V||S)(i.Y36(A.so),i.Y36(Ee.T))},S.\u0275cmp=i.Xpm({type:S,selectors:[["app-add-channel-entity-modal"]],decls:15,vars:8,consts:[[1,"full-width"],["novalidate","",3,"ngSubmit"],["appearance","fill"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["mat-button","","type","button",3,"click"],["mat-raised-button","","color","primary"],[3,"value"]],template:function(V,ne){1&V&&(i.TgZ(0,"div",0)(1,"form",1),i.NdJ("ngSubmit",function(){return ne.onSubmit()}),i.TgZ(2,"mat-dialog-content")(3,"mat-form-field",2)(4,"mat-label"),i._uU(5,"Scegli un canale da associare"),i.qZA(),i.TgZ(6,"mat-select",3),i.NdJ("valueChange",function(wt){return ne.channelId=wt}),i.YNc(7,ue,2,2,"mat-option",4),i.qZA()()(),i.TgZ(8,"mat-dialog-actions")(9,"button",5),i.NdJ("click",function(){return ne.onCancel()}),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"button",6),i._uU(13),i.ALo(14,"translate"),i.qZA()()()()),2&V&&(i.xp6(6),i.Q6J("value",ne.channelId),i.xp6(1),i.Q6J("ngForOf",ne.channels),i.xp6(3),i.Oqu(i.lcZ(11,4,"shared.buttons.cancel")),i.xp6(3),i.Oqu(i.lcZ(14,6,"shared.buttons.add")))},dependencies:[k.sg,f._Y,f.JL,f.F,b.lW,A.xY,A.H8,J.KE,J.hX,W.gD,B.ey,Z.X$]}),S})();var Qe=y(7646),vt=y(7009),$e=y(6630),Ge=y(7084),Ce=y(7392),ke=y(671),me=y(3683);function re(S,F){if(1&S){const V=i.EpF();i.TgZ(0,"button",5),i.NdJ("click",function(){i.CHM(V);const De=i.oxw();return i.KtG(De.onAdd())}),i.TgZ(1,"mat-icon"),i._uU(2,"add"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i.qZA()}2&S&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"shared.buttons.add")," "))}function ye(S,F){if(1&S){const V=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(V);const De=i.oxw();return i.KtG(De.addToPartner())}),i.TgZ(1,"mat-icon"),i._uU(2,"person_add"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i.qZA()}2&S&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"app.channels.add-partner")," "))}function Oe(S,F){1&S&&(i.TgZ(0,"th",19),i._uU(1," Nome "),i.qZA())}function Ae(S,F){if(1&S&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&S){const V=F.$implicit;i.xp6(1),i.hij(" ",V.name," ")}}function tt(S,F){1&S&&(i.TgZ(0,"th",19),i._uU(1," Name "),i.qZA())}function ot(S,F){if(1&S&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&S){const V=F.$implicit;i.xp6(1),i.hij(" ",null==V.fullPartner?null:V.fullPartner.companyName," ")}}function at(S,F){1&S&&(i.TgZ(0,"th",19),i._uU(1," Magazzino di Spedizione "),i.qZA())}function pt(S,F){1&S&&(i.TgZ(0,"mat-icon"),i._uU(1,"close"),i.qZA())}function ft(S,F){1&S&&(i.TgZ(0,"mat-icon"),i._uU(1,"done"),i.qZA())}function Et(S,F){if(1&S&&(i.TgZ(0,"td",20),i.YNc(1,pt,2,0,"mat-icon",18),i.YNc(2,ft,2,0,"mat-icon",18),i.qZA()),2&S){const V=F.$implicit,ne=i.oxw().$implicit,De=i.oxw();i.xp6(1),i.Q6J("ngIf",!De.checkWarehouseType(V,ne,!0)),i.xp6(1),i.Q6J("ngIf",De.checkWarehouseType(V,ne,!0))}}function be(S,F){1&S&&(i.TgZ(0,"th",19),i._uU(1," Magazzino di stoccaggio "),i.qZA())}function Pe(S,F){1&S&&(i.TgZ(0,"mat-icon"),i._uU(1,"close"),i.qZA())}function je(S,F){1&S&&(i.TgZ(0,"mat-icon"),i._uU(1,"done"),i.qZA())}function dt(S,F){if(1&S&&(i.TgZ(0,"td",20),i.YNc(1,Pe,2,0,"mat-icon",18),i.YNc(2,je,2,0,"mat-icon",18),i.qZA()),2&S){const V=F.$implicit,ne=i.oxw().$implicit,De=i.oxw();i.xp6(1),i.Q6J("ngIf",!De.checkWarehouseType(V,ne,!1)),i.xp6(1),i.Q6J("ngIf",De.checkWarehouseType(V,ne,!1))}}function et(S,F){1&S&&i._UZ(0,"tr",21)}function gt(S,F){1&S&&i._UZ(0,"tr",22)}function Re(S,F){if(1&S&&(i.TgZ(0,"p"),i._uU(1),i.qZA()),2&S){const V=F.$implicit;i.xp6(1),i.Oqu(null==V?null:V.companyName)}}function we(S,F){if(1&S&&(i.TgZ(0,"p"),i._uU(1),i.qZA()),2&S){const V=i.oxw().$implicit;i.xp6(1),i.Oqu(V.categories.name)}}function ce(S,F){if(1&S&&(i.TgZ(0,"p"),i._uU(1),i.qZA()),2&S){const V=F.$implicit;i.xp6(1),i.AsE("",V.attribute_set_name," ",V.attribute_set_id,"")}}function ve(S,F){if(1&S&&(i.TgZ(0,"mat-expansion-panel",7)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.TgZ(4,"mat-expansion-panel",7)(5,"mat-expansion-panel-header")(6,"mat-panel-title"),i._uU(7,"Dettagli canale"),i.qZA()(),i._uU(8),i._UZ(9,"br"),i._uU(10),i._UZ(11,"br"),i._uU(12),i._UZ(13,"br"),i._uU(14),i._UZ(15,"br"),i._uU(16),i._UZ(17,"br"),i._uU(18),i._UZ(19,"br"),i.qZA(),i.TgZ(20,"mat-expansion-panel",7)(21,"mat-expansion-panel-header")(22,"mat-panel-title"),i._uU(23,"Magazzini collegati"),i.qZA()(),i.TgZ(24,"table",8),i.ynx(25,9),i.YNc(26,Oe,2,0,"th",10),i.YNc(27,Ae,2,1,"td",11),i.BQk(),i.ynx(28,12),i.YNc(29,tt,2,0,"th",10),i.YNc(30,ot,2,1,"td",11),i.BQk(),i.ynx(31,13),i.YNc(32,at,2,0,"th",10),i.YNc(33,Et,3,2,"td",11),i.BQk(),i.ynx(34,14),i.YNc(35,be,2,0,"th",10),i.YNc(36,dt,3,2,"td",11),i.BQk(),i.YNc(37,et,1,0,"tr",15),i.YNc(38,gt,1,0,"tr",16),i.qZA()(),i.TgZ(39,"mat-expansion-panel",7)(40,"mat-expansion-panel-header")(41,"mat-panel-title"),i._uU(42,"Partner abilitati"),i.qZA()(),i.YNc(43,Re,2,1,"p",17),i.qZA(),i.TgZ(44,"mat-expansion-panel",7)(45,"mat-expansion-panel-header")(46,"mat-panel-title"),i._uU(47,"Categorie"),i.qZA()(),i.YNc(48,we,2,1,"p",18),i.qZA(),i.TgZ(49,"mat-expansion-panel",7)(50,"mat-expansion-panel-header")(51,"mat-panel-title"),i._uU(52,"Attributi"),i.qZA()(),i.YNc(53,ce,2,2,"p",17),i.qZA()()),2&S){const V=F.$implicit,ne=i.oxw();i.Q6J("disabled",!V.categories&&!V.attributes),i.xp6(3),i.Oqu(V.channel.name),i.xp6(1),i.Q6J("disabled",!V.categories&&!V.attributes),i.xp6(4),i.hij(" Gestore: ",null==V.manager?null:V.manager.companyName,""),i.xp6(2),i.hij(" Indirizzo: ",V.channel.imsAddress,""),i.xp6(2),i.hij(" Store: ",V.channel.storeName,""),i.xp6(2),i.hij(" InstanceId: ",V.channel.instanceId,""),i.xp6(2),i.hij(" WebsiteId: ",V.channel.websiteId,""),i.xp6(2),i.hij(" Parent Store: ",V.channel.parentStore,""),i.xp6(2),i.Q6J("disabled",!V.categories&&!V.attributes),i.xp6(4),i.Q6J("dataSource",V.warehouses),i.xp6(13),i.Q6J("matHeaderRowDef",ne.warehousesDisplayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",ne.warehousesDisplayedColumns),i.xp6(1),i.Q6J("disabled",!V.categories&&!V.attributes),i.xp6(4),i.Q6J("ngForOf",V.partners),i.xp6(1),i.Q6J("disabled",!V.categories&&!V.attributes),i.xp6(4),i.Q6J("ngIf",V.categories),i.xp6(1),i.Q6J("disabled",!V.categories&&!V.attributes),i.xp6(4),i.Q6J("ngForOf",V.attributes)}}let se=(()=>{class S{constructor(V,ne,De,wt,nn,Jt,un,Zt){this.chanService=V,this.partnerService=ne,this.warehouseService=De,this.dialog=wt,this.snackbar=nn,this.translate=Jt,this.route=un,this.auth=Zt,this.warehousesDisplayedColumns=["warehouse","partner","shipmentWarehouse","storageWarehouse"],this.channels=[],this.fullChannels=[],this.authData=Zt.currentAuthData,Zt.currentAuth.subscribe(zt=>{zt&&(this.authData=zt)})}ngOnInit(){var V=this;return(0,d.Z)(function*(){V.partnerId?(yield V.updatePartnerChannels(),V.addDetailsToChannels()):V.warehouseId?(yield V.updateWarehouseChannels(),V.addDetailsToChannels()):(V.channels=yield V.chanService.getChannels(),V.addDetailsToChannels())})()}updatePartnerChannels(){var V=this;return(0,d.Z)(function*(){V.partnerId?V.chanService.getUserChannels(V.partnerId).subscribe({next:ne=>{V.channels=ne.data,V.addDetailsToChannels()}}):(V.channels=yield V.chanService.getChannels(),V.addDetailsToChannels())})()}updateWarehouseChannels(){var V=this;return(0,d.Z)(function*(){V.warehouseId?V.chanService.getWarehouseChannels(V.warehouseId).subscribe({next:ne=>{V.channels=ne.data,V.addDetailsToChannels()}}):(V.channels=yield V.chanService.getChannels(),V.addDetailsToChannels())})()}onAdd(){var V=this;this.dialog.open(ie).afterClosed().subscribe(function(){var ne=(0,d.Z)(function*(De){var nn;De&&V.chanService.createChannel(De).subscribe({next:(nn=(0,d.Z)(function*(Jt){V.snackbar.open(V.translate.instant("app.channels.snackbar.addChannel"),void 0,{duration:3e3}),V.channels=yield V.chanService.getChannels(),V.addDetailsToChannels()}),function(un){return nn.apply(this,arguments)}),error:nn=>{console.error(nn)}})});return function(De){return ne.apply(this,arguments)}}(),ne=>{this.error=ne})}addToPartner(){var V=this;this.dialog.open(Ze).afterClosed().subscribe(function(){var ne=(0,d.Z)(function*(De){if(De){const nn=V.route.snapshot.paramMap.get("id");nn&&V.chanService.addPartnerToChannel(nn,De).subscribe({next:(Jt=(0,d.Z)(function*(un){V.snackbar.open(V.translate.instant("app.partner.snackbar.addChannel"),void 0,{duration:3e3}),yield V.updatePartnerChannels(),V.addDetailsToChannels()}),function(Zt){return Jt.apply(this,arguments)}),error:Jt=>{console.error(Jt)}})}var Jt});return function(De){return ne.apply(this,arguments)}}())}addDetailsToChannels(){var V=this;return(0,d.Z)(function*(){V.fullChannels=[];for(let ne=0;ne<V.channels.length;ne++){let De=V.fullChannels.push({channel:V.channels[ne]});V.channels[ne].storeName&&(V.chanService.getAttributeSets(V.channels[ne].storeName,V.channels[ne]._id).subscribe(wt=>{wt.success&&(V.fullChannels[De-1].attributes=wt.data.items)}),V.chanService.getCategories(V.channels[ne].storeName,V.channels[ne]._id).subscribe(wt=>{wt.success&&(V.fullChannels[De-1].categories=wt.data)}),V.warehouseService.getWarehousesByChannelRest(V.channels[ne]._id).subscribe(function(){var wt=(0,d.Z)(function*(nn){nn.success&&(V.fullChannels[De-1].warehouses=nn.data);for(let Jt=0;Jt<V.fullChannels[De-1].warehouses.length;Jt++)V.fullChannels[De-1].warehouses[Jt].fullPartner=yield V.partnerService.getPartner(V.fullChannels[De-1].warehouses[Jt].partnerId)});return function(nn){return wt.apply(this,arguments)}}()),V.chanService.getChannelPartners(V.channels[ne]._id).subscribe(wt=>{wt.success&&(V.fullChannels[De-1].partners=wt.data)}),console.log(V.channels[ne]),V.fullChannels[De-1].manager=yield V.partnerService.getPartner(V.channels[ne].managerId),console.log(V.fullChannels[De-1].manager))}})()}checkWarehouseType(V,ne,De){let wt=!1;for(let nn=0;nn<V.channelAssignments.length&&!wt;nn++)V.channelAssignments[nn].channelId===ne.channel._id&&(wt=De?V.channelAssignments[nn].shipmentWarehouse:V.channelAssignments[nn].storageWarehouse);return wt}}return S.\u0275fac=function(V){return new(V||S)(i.Y36(Ee.T),i.Y36(p.b),i.Y36(Qe.c),i.Y36(A.uw),i.Y36(vt.ux),i.Y36(Z.sK),i.Y36($e.gz),i.Y36(v.e8))},S.\u0275cmp=i.Xpm({type:S,selectors:[["app-channels"]],inputs:{partnerId:"partnerId",warehouseId:"warehouseId",readonly:"readonly"},decls:10,vars:6,consts:[[1,"mat-18"],[1,"fill-space"],["mat-raised-button","",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],[3,"disabled",4,"ngFor","ngForOf"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"disabled"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","warehouse"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","partner"],["matColumnDef","shipmentWarehouse"],["matColumnDef","storageWarehouse"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[4,"ngFor","ngForOf"],[4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(V,ne){1&V&&(i.TgZ(0,"mat-toolbar")(1,"mat-icon",0),i._uU(2,"signpost"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i._UZ(5,"span",1),i.YNc(6,re,5,3,"button",2),i.YNc(7,ye,5,3,"button",3),i.qZA(),i.TgZ(8,"mat-accordion"),i.YNc(9,ve,54,19,"mat-expansion-panel",4),i.qZA()),2&V&&(i.xp6(3),i.hij(" ",i.lcZ(4,4,"app.channels.title")," "),i.xp6(3),i.Q6J("ngIf",!ne.partnerId&&!ne.readonly),i.xp6(1),i.Q6J("ngIf",ne.partnerId&&!ne.readonly),i.xp6(2),i.Q6J("ngForOf",ne.fullChannels))},dependencies:[k.sg,k.O5,b.lW,Ge.pp,Ge.ib,Ge.yz,Ge.yK,Ce.Hw,ke.BZ,ke.fO,ke.as,ke.w1,ke.Dz,ke.nj,ke.ge,ke.ev,ke.XQ,ke.Gk,me.Ye,Z.X$]}),S})()},2109:(vn,_t,y)=>{"use strict";y.d(_t,{Y:()=>ce});var d=y(5861),i=y(671),A=y(396),p=y(5412),v=y(4650),k=y(5998),f=y(7556),b=y(6895),J=y(4006),Y=y(4859),W=y(6709),B=y(9602),Z=y(9549),G=y(4144),ie=y(1266);function Ee(ve,se){if(1&ve){const S=v.EpF();v.TgZ(0,"div")(1,"input",8),v.NdJ("ngModelChange",function(V){v.CHM(S);const ne=v.oxw();return v.KtG(ne.data.discountValidFrom=V)}),v.qZA(),v._UZ(2,"mat-datepicker-toggle",9)(3,"mat-datepicker",null,10)(5,"br"),v.qZA()}if(2&ve){const S=v.MAs(4),F=v.oxw();v.xp6(1),v.Q6J("matDatepicker",S)("ngModel",F.data.discountValidFrom),v.xp6(1),v.Q6J("for",S)}}function ue(ve,se){if(1&ve){const S=v.EpF();v.TgZ(0,"div")(1,"input",11),v.NdJ("ngModelChange",function(V){v.CHM(S);const ne=v.oxw();return v.KtG(ne.data.discountValidUntil=V)}),v.qZA(),v._UZ(2,"mat-datepicker-toggle",9)(3,"mat-datepicker",null,12),v.qZA()}if(2&ve){const S=v.MAs(4),F=v.oxw();v.xp6(1),v.Q6J("matDatepicker",S)("ngModel",F.data.discountValidUntil),v.xp6(1),v.Q6J("for",S)}}let Ze=(()=>{class ve{constructor(S,F,V,ne){this.dialogRef=S,this.input=F,this.listingService=V,this.auth=ne,this.data=this.listingService.newListing()}ngOnInit(){var S=this;return(0,d.Z)(function*(){S.data=yield S.listingService.getListingData(S.input.id)})()}onCancel(){this.dialogRef.close()}onSubmit(){this.dialogRef.close(this.data)}}return ve.\u0275fac=function(S){return new(S||ve)(v.Y36(p.so),v.Y36(p.WI),v.Y36(k.o),v.Y36(f.e8))},ve.\u0275cmp=v.Xpm({type:ve,selectors:[["app-set-discount-modal"]],decls:26,vars:20,consts:[[1,"full-width"],["novalidate","",3,"ngSubmit"],["type","boolean","name","isActive",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","isValidFrom",1,"form-control",3,"ngModel","ngModelChange"],[4,"ngIf"],["type","boolean","name","isValidUntil",1,"form-control",3,"ngModel","ngModelChange"],["mat-button","","type","button",3,"click"],["mat-raised-button","","color","primary"],["matInput","","name","validFrom",3,"matDatepicker","ngModel","ngModelChange"],["matIconSuffix","",3,"for"],["fromPicker",""],["matInput","","name","validUntil",3,"matDatepicker","ngModel","ngModelChange"],["untilPicker",""]],template:function(S,F){1&S&&(v.TgZ(0,"div",0)(1,"h2"),v._uU(2,"Imposta Sconto"),v.qZA(),v.TgZ(3,"form",1),v.NdJ("ngSubmit",function(){return F.onSubmit()}),v.TgZ(4,"mat-dialog-content")(5,"mat-checkbox",2),v.NdJ("ngModelChange",function(ne){return F.data.isDiscountActive=ne}),v._uU(6),v.ALo(7,"translate"),v.qZA(),v._UZ(8,"br"),v.TgZ(9,"mat-checkbox",3),v.NdJ("ngModelChange",function(ne){return F.data.isDiscountValidFrom=ne}),v._uU(10),v.ALo(11,"translate"),v.qZA(),v._UZ(12,"br"),v.YNc(13,Ee,6,3,"div",4),v.TgZ(14,"mat-checkbox",5),v.NdJ("ngModelChange",function(ne){return F.data.isDiscountValidUntil=ne}),v._uU(15),v.ALo(16,"translate"),v.qZA(),v._UZ(17,"br"),v.YNc(18,ue,5,3,"div",4),v.qZA(),v.TgZ(19,"mat-dialog-actions")(20,"button",6),v.NdJ("click",function(){return F.onCancel()}),v._uU(21),v.ALo(22,"translate"),v.qZA(),v.TgZ(23,"button",7),v._uU(24),v.ALo(25,"translate"),v.qZA()()()()),2&S&&(v.xp6(5),v.Q6J("ngModel",F.data.isDiscountActive),v.xp6(1),v.hij(" ",v.lcZ(7,10,"app.listings.listing.isActive")," "),v.xp6(3),v.Q6J("ngModel",F.data.isDiscountValidFrom),v.xp6(1),v.hij(" ",v.lcZ(11,12,"app.listings.listing.isValidFrom")," "),v.xp6(3),v.Q6J("ngIf",F.data.isDiscountValidFrom),v.xp6(1),v.Q6J("ngModel",F.data.isDiscountValidUntil),v.xp6(1),v.hij(" ",v.lcZ(16,14,"app.listings.listing.isValidUntil")," "),v.xp6(3),v.Q6J("ngIf",F.data.isDiscountValidUntil),v.xp6(3),v.Oqu(v.lcZ(22,16,"shared.buttons.cancel")),v.xp6(3),v.Oqu(v.lcZ(25,18,"shared.buttons.confirm")))},dependencies:[b.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,Y.lW,W.oG,B.Mq,B.hl,B.nW,p.xY,p.H8,Z.R9,G.Nt,ie.X$]}),ve})();var Qe=y(4911),vt=y(6630),$e=y(7009),Ge=y(7392),Ce=y(3217),ke=y(8739),me=y(6308),re=y(3683);const ye=["listingProductsSort"],Oe=["listingProductsPaginator"];function Ae(ve,se){1&ve&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ve&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"app.listings.listing.name")," "))}function tt(ve,se){if(1&ve&&(v.TgZ(0,"td",24),v._uU(1),v.qZA()),2&ve){const S=se.$implicit;v.xp6(1),v.hij(" ",S.product.title," ")}}function ot(ve,se){1&ve&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ve&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"app.listings.listing.description")," "))}function at(ve,se){if(1&ve&&(v.TgZ(0,"td",24),v._uU(1),v.qZA()),2&ve){const S=se.$implicit;v.xp6(1),v.hij(" ",S.product.description," ")}}function pt(ve,se){1&ve&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ve&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"app.listings.listing.currentPrice")," "))}function ft(ve,se){if(1&ve&&(v.TgZ(0,"td",24),v._uU(1),v.qZA()),2&ve){const S=se.$implicit;v.xp6(1),v.hij(" ",S.product.price," ")}}function Et(ve,se){1&ve&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ve&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"app.listings.listing.originalPrice")," "))}function be(ve,se){if(1&ve&&(v.TgZ(0,"td",24),v._uU(1),v.qZA()),2&ve){const S=se.$implicit;v.xp6(1),v.hij(" ",S.product.originalPrice," ")}}function Pe(ve,se){1&ve&&(v.TgZ(0,"th",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ve&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"app.listings.listing.price")," "))}function je(ve,se){if(1&ve){const S=v.EpF();v.TgZ(0,"td",24)(1,"input",25),v.NdJ("ngModelChange",function(V){const De=v.CHM(S).$implicit;return v.KtG(De.price=V)}),v.qZA()()}if(2&ve){const S=se.$implicit;v.xp6(1),v.MGl("name","amount",S.product._id,""),v.Q6J("ngModel",S.price)}}function dt(ve,se){1&ve&&(v.TgZ(0,"th",26),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ve&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"shared.buttons.actions")," "))}function et(ve,se){if(1&ve){const S=v.EpF();v.TgZ(0,"td",24)(1,"button",27),v.NdJ("click",function(){const ne=v.CHM(S).$implicit,De=v.oxw();return v.KtG(De.deleteListingProduct(ne.product._id))}),v.TgZ(2,"mat-icon"),v._uU(3,"delete"),v.qZA()()()}}function gt(ve,se){1&ve&&v._UZ(0,"tr",28)}function Re(ve,se){1&ve&&v._UZ(0,"tr",29)}const we=function(){return[5,10,20]};let ce=(()=>{class ve{constructor(S,F,V,ne,De,wt,nn){this.catService=S,this.listService=F,this.route=V,this.router=ne,this.dialog=De,this.snackbar=wt,this.translate=nn,this.listingProducts=[],this.listingEditableProducts=[],this.listingProductsDataSource=new i.by(this.listingProducts),this.listingProductsDisplayedColumns=["title","description","currentPrice","originalPrice","price","actions"]}ngOnInit(){var S=this;return(0,d.Z)(function*(){yield S.retrieveListingProductsFromParams(),S.listingProductsDataSource.sort=S.listingProductsSort})()}getListingProducts(S){var F=this;return(0,d.Z)(function*(){F.listing&&F.listService.getListingOffersRest(F.listing._id).subscribe(V=>{F.listingProducts=V.data,F.listingEditableProducts=(0,A.X)(F.listingProducts),F.listingProductsDataSource.data=F.listingEditableProducts,F.listingProductsDataSource.paginator=F.listingProductsPaginator,F.listingProductsDataSource.sort=F.listingProductsSort})})()}deleteListingProduct(S){var F=this;return(0,d.Z)(function*(){yield F.listService.removeProductFromListing(S,F.listing._id),yield F.retrieveListingProductsFromParams(),F.listingProductsDataSource.data=yield F.listService.getListingProducts(F.listing._id),F.listingProductsDataSource.paginator=F.listingProductsPaginator})()}getListingById(S){var F=this;return(0,d.Z)(function*(){var V=yield F.listService.getListingById(S);F.listing=V,F.editableListing=(0,A.X)(V)})()}retrieveListingProductsFromParams(){var S=this;return(0,d.Z)(function*(){S.route.paramMap.subscribe(function(){var F=(0,d.Z)(function*(V){const ne=V.get("id");ne?(yield S.getListingById(ne),yield S.getListingProducts(ne)):S.router.navigate(["/catalogue"])});return function(V){return F.apply(this,arguments)}}())})()}back(){this.router.navigate(["/catalogue"])}onSave(){var S=this;return(0,d.Z)(function*(){S.editableListing&&(S.editableListing?.isDiscountActive&&S.snackbar.open(S.translate.instant("Esiste uno sconto attivo per questa promozione. Disattivalo prima di eseguire modifiche!"),void 0,{duration:3e3}),S.editableListing.entries=S.prepareEntries(S.listingEditableProducts,!0),yield S.listService.updateListing(S.editableListing),S.retrieveListingProductsFromParams())})()}onDiscount(){var S=this;return(0,d.Z)(function*(){S.dialog.open(Ze,{data:{id:S.listing?._id}}).afterClosed().subscribe(function(){var F=(0,d.Z)(function*(V){let ne=!0;if(S.restoreIfNeeded(V),V.isDiscountActive){const De=new Date;V.isDiscountValidFrom&&V.discountValidFrom&&new Date(V.discountValidFrom)>De&&(ne=!1,S.snackbar.open(S.translate.instant("Sconto salvato: verr\xe0 attivato nella data prevista"),void 0,{duration:3e3})),V.isDiscountValidUntil&&V.discountValidUntil&&new Date(V.discountValidUntil)<De&&(ne=!1,S.snackbar.open(S.translate.instant("Sconto non valido: data di fine superata"),void 0,{duration:3e3}))}V.entries=S.prepareEntries(S.listingEditableProducts,!0),yield S.listService.updateListing(V),V.isDiscountActive&&ne&&(S.listService.updateListingProductsRest(S.listingEditableProducts,!0).subscribe(),S.retrieveListingProductsFromParams())});return function(V){return F.apply(this,arguments)}}(),F=>{console.log(F)})})()}onApply(S){var F=this;return(0,d.Z)(function*(){let V=!0;S&&(V=yield F.isDiscountable()),V&&(F.onSave(),F.listService.updateListingProductsRest(F.listingEditableProducts,S).subscribe(),F.snackbar.open(F.translate.instant(S?"app.listings.snackbar.discountApplied":"app.listings.snackbar.priceUpdated"),void 0,{duration:3e3}))})()}isDiscountable(){var S=this;return(0,d.Z)(function*(){for(const F of S.listingEditableProducts)if(F.product&&F.product.price&&F.product.price<F.price)return S.snackbar.open(S.translate.instant("app.listings.snackbar.wrongPrices"),void 0,{duration:3e3}),!1;return!0})()}restoreIfNeeded(S){var F=this;return(0,d.Z)(function*(){let V=!1;const ne=new Date;if(!S.isDiscountActive&&S.isDiscountActive!==F.editableListing?.isDiscountActive&&(V=!0,F.snackbar.open(F.translate.instant("Promozione disattivata, ripristino i prezzi originali..."),void 0,{duration:3e3})),S.isDiscountActive&&F.editableListing?.isDiscountActive){if(!S.isDiscountValidFrom&&F.editableListing.isDiscountValidFrom)return console.log("restoring because discount valid from has been deselected"),void(yield F.onRestore());if(S.isDiscountValidUntil&&F.editableListing.discountValidUntil&&S.discountValidUntil){const De=new Date(F.editableListing.discountValidUntil),wt=new Date(S.discountValidUntil);De>ne&&!(wt>ne)&&(V=!0)}if(S.isDiscountValidFrom&&F.editableListing.discountValidFrom&&S.discountValidFrom){const De=new Date(F.editableListing.discountValidFrom),wt=new Date(S.discountValidFrom);De<ne&&!(wt<ne)&&(V=!0)}}V&&(yield F.onRestore())})()}onRestore(){var S=this;return(0,d.Z)(function*(){S.listService.restoreListingProductsRest(S.listingEditableProducts).subscribe(),S.editableListing&&(S.editableListing.entries=S.prepareEntries(S.listingEditableProducts,!1),S.editableListing.isDiscountActive=!1,S.listService.updateListing(S.editableListing),S.retrieveListingProductsFromParams()),S.snackbar.open(S.translate.instant("app.listings.snackbar.priceUpdated"),void 0,{duration:3e3})})()}updatePrices(S){if(this.editableListing)for(const V of this.listingEditableProducts){var F=this.editableListing.entries.filter(function(ne){return ne.productId===V.product._id});F&&(F[0].price=V.price)}}prepareEntries(S,F){const V=new Array;for(const ne of S)V.push({productId:ne.product._id,price:F?ne.price:ne.product.originalPrice});return V}applyFilter(S){S.value&&(this.listingProductsDataSource.filter=S.value.trim().toLowerCase())}}return ve.\u0275fac=function(S){return new(S||ve)(v.Y36(Qe.av),v.Y36(k.o),v.Y36(vt.gz),v.Y36(vt.F0),v.Y36(p.uw),v.Y36($e.ux),v.Y36(ie.sK))},ve.\u0275cmp=v.Xpm({type:ve,selectors:[["app-listing"]],viewQuery:function(S,F){if(1&S&&(v.Gf(ye,5),v.Gf(Oe,5)),2&S){let V;v.iGM(V=v.CRH())&&(F.listingProductsSort=V.first),v.iGM(V=v.CRH())&&(F.listingProductsPaginator=V.first)}},decls:65,vars:27,consts:[["mat-button","","color","primary",3,"click"],[1,"mat-18"],[1,"fill-space"],["id","search","matInput","",3,"placeholder","keyup"],["mat-button","","color","primary","mat-button","",3,"matMenuTriggerFor"],["applyMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["listingProductsSort","matSort"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","currentPrice"],["matColumnDef","originalPrice"],["matColumnDef","price"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page of listing products",3,"pageSizeOptions"],["listingProductsPaginator",""],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matInput","","type","number","required","","ng-pattern","/^[0-9]+(\\.[0-9]{1,2})?$/","step","0.01",1,"form-control",3,"name","ngModel","ngModelChange"],["mat-header-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(S,F){if(1&S&&(v.TgZ(0,"mat-toolbar")(1,"button",0),v.NdJ("click",function(){return F.back()}),v.TgZ(2,"mat-icon"),v._uU(3,"arrow_back"),v.qZA()(),v.TgZ(4,"mat-icon",1),v._uU(5,"format_list_bulleted"),v.qZA(),v._uU(6),v.ALo(7,"translate"),v._UZ(8,"span",2),v.TgZ(9,"mat-form-field")(10,"input",3),v.NdJ("keyup",function(ne){return F.applyFilter(ne.target)}),v.ALo(11,"translate"),v.qZA()(),v.TgZ(12,"button",0),v.NdJ("click",function(){return F.onSave()}),v._uU(13),v.ALo(14,"translate"),v.TgZ(15,"mat-icon"),v._uU(16,"save"),v.qZA()(),v.TgZ(17,"button",4),v._uU(18),v.ALo(19,"translate"),v.TgZ(20,"mat-icon"),v._uU(21,"checklist"),v.qZA()(),v.TgZ(22,"mat-menu",null,5)(24,"button",6),v.NdJ("click",function(){return F.onDiscount()}),v.TgZ(25,"mat-icon"),v._uU(26,"discount"),v.qZA(),v._uU(27),v.ALo(28,"translate"),v.qZA(),v.TgZ(29,"button",6),v.NdJ("click",function(){return F.onApply(!1)}),v.TgZ(30,"mat-icon"),v._uU(31,"price_change"),v.qZA(),v._uU(32),v.ALo(33,"translate"),v.qZA(),v.TgZ(34,"button",6),v.NdJ("click",function(){return F.onRestore()}),v.TgZ(35,"mat-icon"),v._uU(36,"settings_backup_restore"),v.qZA(),v._uU(37),v.ALo(38,"translate"),v.qZA()()(),v.TgZ(39,"div",7)(40,"table",8,9),v.ynx(42,10),v.YNc(43,Ae,3,3,"th",11),v.YNc(44,tt,2,1,"td",12),v.BQk(),v._uU(45," Description Column "),v.ynx(46,13),v.YNc(47,ot,3,3,"th",11),v.YNc(48,at,2,1,"td",12),v.BQk(),v.ynx(49,14),v.YNc(50,pt,3,3,"th",11),v.YNc(51,ft,2,1,"td",12),v.BQk(),v.ynx(52,15),v.YNc(53,Et,3,3,"th",11),v.YNc(54,be,2,1,"td",12),v.BQk(),v.ynx(55,16),v.YNc(56,Pe,3,3,"th",11),v.YNc(57,je,2,2,"td",12),v.BQk(),v.ynx(58,17),v.YNc(59,dt,3,3,"th",18),v.YNc(60,et,4,0,"td",12),v.BQk(),v.YNc(61,gt,1,0,"tr",19),v.YNc(62,Re,1,0,"tr",20),v.qZA(),v._UZ(63,"mat-paginator",21,22),v.qZA()),2&S){const V=v.MAs(23);v.xp6(6),v.hij(" ",v.lcZ(7,12,"app.listings.listing.title")," "),v.xp6(4),v.s9C("placeholder",v.lcZ(11,14,"shared.search.title")),v.xp6(3),v.hij(" ",v.lcZ(14,16,"shared.buttons.save")," "),v.xp6(4),v.Q6J("matMenuTriggerFor",V),v.xp6(1),v.hij(" ",v.lcZ(19,18,"shared.buttons.apply")," "),v.xp6(9),v.hij(" ",v.lcZ(28,20,"app.listings.listing.buttons.discount")," "),v.xp6(5),v.hij(" ",v.lcZ(33,22,"app.listings.listing.buttons.prices")," "),v.xp6(5),v.hij(" ",v.lcZ(38,24,"app.listings.listing.buttons.restore")," "),v.xp6(3),v.Q6J("dataSource",F.listingProductsDataSource),v.xp6(21),v.Q6J("matHeaderRowDef",F.listingProductsDisplayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",F.listingProductsDisplayedColumns),v.xp6(1),v.Q6J("pageSizeOptions",v.DdM(26,we))}},dependencies:[J.Fj,J.wV,J.JJ,J.Q7,J.On,Y.lW,Y.RK,Z.KE,Ge.Hw,G.Nt,Ce.VK,Ce.OP,Ce.p6,ke.NW,me.YE,me.nU,i.BZ,i.fO,i.as,i.w1,i.Dz,i.nj,i.ge,i.ev,i.XQ,i.Gk,re.Ye,ie.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center}table[_ngcontent-%COMP%]{width:100%}"]}),ve})()},2306:(vn,_t,y)=>{"use strict";y.d(_t,{b:()=>S});var d=y(5861),i=y(671),A=(()=>{return(F=A||(A={})).PRODUCT="PRODUCT",F.COLLECTION="COLLECTION",A;var F})(),p=y(4650),v=y(5412),k=y(5998),f=y(4006),b=y(4859),J=y(9549),Y=y(4144),W=y(1266);let B=(()=>{class F{constructor(ne,De){this.dialogRef=ne,this.listingService=De,this.data=this.listingService.newListing()}ngOnInit(){}onCancel(){this.dialogRef.close()}onSubmit(ne){this.dialogRef.close(ne)}}return F.\u0275fac=function(ne){return new(ne||F)(p.Y36(v.so),p.Y36(k.o))},F.\u0275cmp=p.Xpm({type:F,selectors:[["app-add-listing-modal"]],decls:16,vars:11,consts:[[1,"full-width"],["novalidate","",3,"ngSubmit"],["matInput","","name","title","required","",3,"ngModel","ngModelChange"],["title","ngModel"],["mat-button","","type","button",3,"click"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(ne,De){1&ne&&(p.TgZ(0,"div",0)(1,"form",1),p.NdJ("ngSubmit",function(){return De.onSubmit(De.data)}),p.TgZ(2,"mat-dialog-content")(3,"mat-form-field",0)(4,"mat-label"),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"input",2,3),p.NdJ("ngModelChange",function(nn){return De.data.name=nn}),p.qZA()()(),p.TgZ(9,"mat-dialog-actions")(10,"button",4),p.NdJ("click",function(){return De.onCancel()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.TgZ(13,"button",5),p._uU(14),p.ALo(15,"translate"),p.qZA()()()()),2&ne&&(p.xp6(5),p.Oqu(p.lcZ(6,5,"app.listings.listing.name")),p.xp6(2),p.Q6J("ngModel",De.data.name),p.xp6(4),p.Oqu(p.lcZ(12,7,"shared.buttons.cancel")),p.xp6(2),p.Q6J("disabled",""===De.data.handle&&""===De.data.name),p.xp6(1),p.Oqu(p.lcZ(15,9,"shared.buttons.add")))},dependencies:[f._Y,f.Fj,f.JJ,f.JL,f.Q7,f.On,f.F,b.lW,v.xY,v.H8,J.KE,J.hX,Y.Nt,W.X$]}),F})();var Z=y(396),G=y(8739),ie=y(4911),Ee=y(7198),ue=y(7009),Ze=y(6895),Qe=y(6709),vt=y(6338),$e=y(8729),Ge=y(4385),Ce=y(3238);function ke(F,V){if(1&F&&(p.TgZ(0,"mat-option",9),p._uU(1),p.qZA()),2&F){const ne=V.$implicit;p.s9C("value",ne._id),p.xp6(1),p.Oqu(ne.name)}}function me(F,V){if(1&F){const ne=p.EpF();p.TgZ(0,"mat-list-item")(1,"mat-checkbox",10),p.NdJ("change",function(){const nn=p.CHM(ne).$implicit,Jt=p.oxw();return p.KtG(Jt.checkFlip(nn))}),p._uU(2),p.qZA(),p._UZ(3,"mat-divider"),p.qZA()}if(2&F){const ne=V.$implicit,De=p.oxw();p.xp6(1),p.Q6J("checked",De.checkSelected(ne)),p.xp6(1),p.hij(" ",ne.title," ")}}let re=(()=>{class F{constructor(ne,De,wt,nn,Jt,un,Zt){this.dialogRef=ne,this.data=De,this.catService=wt,this.chanService=nn,this.listService=Jt,this.translate=un,this.snackbar=Zt,this.userCatalog=[],this.availableOffers=[],this.offersToAdd=new Set,this.userChannels=[],this.channelId="",this.length=1e3,this.pageSize=10,this.currentPage=0,this.totalSize=0,this.pageSizeOptions=[10],this.lowValue=0,this.highValue=10}ngOnInit(){this.chanService.getUserChannels(this.data.partnerId).subscribe({next:ne=>{this.userChannels=ne.data,this.userChannels.length>0&&(this.channelId=ne.data[0]._id,this.catService.getUserReferencesByChannel(this.data.partnerId,this.channelId).subscribe({next:De=>{this.userCatalog=De.data,this.availableOffers=this.catService.getOffersFromCatalog((0,Z.X)(this.userCatalog),this.channelId)},error:De=>{console.error(De)}}))}}),this.totalSize=this.availableOffers.length,this.highValue=Math.min(this.totalSize,10)}checkFlip(ne){this.offersToAdd.has(ne)?this.offersToAdd.delete(ne):this.offersToAdd.add(ne)}checkSelected(ne){return this.offersToAdd.has(ne)}onCancel(){this.dialogRef.close()}onSubmit(){for(let ne of this.offersToAdd)this.listService.addToListingRest(ne,this.data.listingHandle).subscribe(),this.snackbar.open(this.translate.instant("app.listings.snackbar.addToListing"),void 0,{duration:3e3});this.dialogRef.close()}getPaginatorData(ne){return this.lowValue=ne.pageIndex*ne.pageSize,this.highValue=this.lowValue+ne.pageSize,ne}loadReferences(ne){this.userCatalog=[],this.catService.getUserReferencesByChannel(this.data.partnerId,ne.value).subscribe({next:De=>{this.userCatalog=De.data,this.availableOffers=this.catService.getOffersFromCatalog((0,Z.X)(this.userCatalog),ne.value)},error:De=>{console.error(De)}})}}return F.\u0275fac=function(ne){return new(ne||F)(p.Y36(v.so),p.Y36(v.WI),p.Y36(ie.av),p.Y36(Ee.T),p.Y36(k.o),p.Y36(W.sK),p.Y36(ue.ux))},F.\u0275cmp=p.Xpm({type:F,selectors:[["app-add-to-listing-modal"]],viewQuery:function(ne,De){if(1&ne&&p.Gf(G.NW,5),2&ne){let wt;p.iGM(wt=p.CRH())&&(De.paginator=wt.first)}},decls:22,vars:19,consts:[[1,"full-width"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["novalidate","",3,"ngSubmit"],[4,"ngFor","ngForOf"],[3,"pageSize","pageSizeOptions","showFirstLastButtons","length","pageIndex","page"],["paginator",""],["mat-button","","type","button",3,"click"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["mat-button","","color","primary",3,"checked","change"]],template:function(ne,De){1&ne&&(p.TgZ(0,"div",0)(1,"h2"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-select",1),p.NdJ("valueChange",function(nn){return De.channelId=nn})("selectionChange",function(nn){return De.loadReferences(nn)}),p.YNc(5,ke,2,2,"mat-option",2),p.qZA(),p.TgZ(6,"form",3),p.NdJ("ngSubmit",function(){return De.onSubmit()}),p.TgZ(7,"mat-list"),p.YNc(8,me,4,2,"mat-list-item",4),p.qZA(),p._UZ(9,"mat-divider"),p._uU(10),p._UZ(11,"mat-divider"),p.TgZ(12,"mat-paginator",5,6),p.NdJ("page",function(nn){return De.getPaginatorData(nn)}),p.qZA(),p._UZ(14,"mat-divider"),p.TgZ(15,"mat-dialog-actions")(16,"button",7),p.NdJ("click",function(){return De.onCancel()}),p._uU(17),p.ALo(18,"translate"),p.qZA(),p.TgZ(19,"button",8),p._uU(20),p.ALo(21,"translate"),p.qZA()()()()),2&ne&&(p.xp6(2),p.Oqu(p.lcZ(3,13,"app.listings.addProducts")),p.xp6(2),p.Q6J("value",De.channelId),p.xp6(1),p.Q6J("ngForOf",De.userChannels),p.xp6(3),p.Q6J("ngForOf",De.availableOffers),p.xp6(2),p.hij(" Prodotti aggiunti: ",De.offersToAdd.size," "),p.xp6(2),p.Q6J("pageSize",De.pageSize)("pageSizeOptions",De.pageSizeOptions)("showFirstLastButtons",!0)("length",De.totalSize)("pageIndex",De.currentPage),p.xp6(5),p.Oqu(p.lcZ(18,15,"shared.buttons.cancel")),p.xp6(2),p.Q6J("disabled",0===De.offersToAdd.size),p.xp6(1),p.Oqu(p.lcZ(21,17,"shared.buttons.add")))},dependencies:[Ze.sg,f._Y,f.JL,f.F,b.lW,Qe.oG,v.H8,vt.i$,vt.Tg,$e.d,G.NW,Ge.gD,Ce.ey,W.X$]}),F})();var ye=y(7556);let Oe=(()=>{class F{constructor(ne,De,wt,nn){this.input=ne,this.dialogRef=De,this.listingService=wt,this.auth=nn,this.data=this.listingService.newListing()}ngOnInit(){var ne=this;return(0,d.Z)(function*(){ne.data=yield ne.listingService.getListingData(ne.input.id)})()}onCancel(){this.dialogRef.close()}onSubmit(ne){this.dialogRef.close(ne)}}return F.\u0275fac=function(ne){return new(ne||F)(p.Y36(v.WI),p.Y36(v.so),p.Y36(k.o),p.Y36(ye.e8))},F.\u0275cmp=p.Xpm({type:F,selectors:[["app-edit-listing-modal"]],decls:16,vars:11,consts:[[1,"full-width"],["novalidate","",3,"ngSubmit"],["matInput","","name","title","required","",3,"ngModel","ngModelChange"],["title","ngModel"],["mat-button","","type","button",3,"click"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(ne,De){1&ne&&(p.TgZ(0,"div",0)(1,"form",1),p.NdJ("ngSubmit",function(){return De.onSubmit(De.data)}),p.TgZ(2,"mat-dialog-content")(3,"mat-form-field",0)(4,"mat-label"),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"input",2,3),p.NdJ("ngModelChange",function(nn){return De.data.name=nn}),p.qZA()()(),p.TgZ(9,"mat-dialog-actions")(10,"button",4),p.NdJ("click",function(){return De.onCancel()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.TgZ(13,"button",5),p._uU(14),p.ALo(15,"translate"),p.qZA()()()()),2&ne&&(p.xp6(5),p.Oqu(p.lcZ(6,5,"app.listings.listing.name")),p.xp6(2),p.Q6J("ngModel",De.data.name),p.xp6(4),p.Oqu(p.lcZ(12,7,"shared.buttons.cancel")),p.xp6(2),p.Q6J("disabled",""===De.data.handle&&""===De.data.name),p.xp6(1),p.Oqu(p.lcZ(15,9,"shared.buttons.edit")))},dependencies:[f._Y,f.Fj,f.JJ,f.JL,f.Q7,f.On,f.F,b.lW,v.xY,v.H8,J.KE,J.hX,Y.Nt,W.X$]}),F})();var Ae=y(6),tt=y(6234),ot=y(6466),at=y(6630),pt=y(7392),ft=y(6308),Et=y(3683);const be=["listingsPaginator"],Pe=["listingsSort"];function je(F,V){1&F&&(p.TgZ(0,"th",16),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&F&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.listings.listing.name")," "))}function dt(F,V){if(1&F&&(p.TgZ(0,"td",17),p._uU(1),p.qZA()),2&F){const ne=V.$implicit;p.xp6(1),p.hij(" ",ne.name," ")}}function et(F,V){1&F&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&F&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.listings.listing.count")," "))}function gt(F,V){if(1&F&&(p.TgZ(0,"td",17),p._uU(1),p.qZA()),2&F){const ne=V.$implicit;p.xp6(1),p.hij(" ",ne.entries?ne.entries.length:0," ")}}function Re(F,V){1&F&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&F&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"shared.buttons.actions")," "))}function we(F,V){if(1&F){const ne=p.EpF();p.TgZ(0,"td",17)(1,"button",19),p.NdJ("click",function(){const nn=p.CHM(ne).$implicit,Jt=p.oxw();return p.KtG(Jt.onListingEdit(nn))}),p.TgZ(2,"mat-icon"),p._uU(3,"edit"),p.qZA()(),p.TgZ(4,"button",19),p.NdJ("click",function(){const nn=p.CHM(ne).$implicit,Jt=p.oxw();return p.KtG(Jt.addProductListing(nn._id))}),p.TgZ(5,"mat-icon"),p._uU(6,"add"),p.qZA()(),p.TgZ(7,"button",19),p.NdJ("click",function(){const nn=p.CHM(ne).$implicit,Jt=p.oxw();return p.KtG(Jt.deleteListing(nn._id))}),p.TgZ(8,"mat-icon"),p._uU(9,"delete"),p.qZA()(),p.TgZ(10,"button",19),p.NdJ("click",function(){const nn=p.CHM(ne).$implicit,Jt=p.oxw();return p.KtG(Jt.createListingBuyButton(nn))}),p.TgZ(11,"mat-icon"),p._uU(12,"touch_app"),p.qZA()(),p.TgZ(13,"button",19),p.NdJ("click",function(){const nn=p.CHM(ne).$implicit,Jt=p.oxw();return p.KtG(Jt.showListingDetails(nn._id))}),p.TgZ(14,"mat-icon"),p._uU(15,"info"),p.qZA()()()}}function ce(F,V){1&F&&p._UZ(0,"tr",20)}function ve(F,V){1&F&&p._UZ(0,"tr",21)}const se=function(){return[5,10,20]};let S=(()=>{class F{constructor(ne,De,wt,nn,Jt,un,Zt,zt,fe,Te){this.catService=ne,this.listService=De,this.pimService=wt,this.buyButtonNavigationService=nn,this.dialog=Jt,this.auth=un,this.router=Zt,this.changeDetectorRefs=zt,this.translate=fe,this.snackbar=Te,this.tabIndex=0,this.userCatalog=[],this.userListings=[],this.selectedId=[],this.listingsDataSource=new i.by(this.userListings),this.listingDisplayedColumns=["name","count","actions"],this.authData=un.currentAuthData,un.currentAuth.subscribe(lt=>{lt&&(this.authData=lt)})}ngOnInit(){var ne=this;return(0,d.Z)(function*(){ne.userCatalog=[],ne.catService.getUserReferences(ne.partnerId?ne.partnerId:ne.authData.partnerId).subscribe(De=>{const wt=De.data;for(var nn of wt)ne.userCatalog.push(nn),ne.selectedId.push("")}),ne.userListings=yield ne.listService.getUserListings(ne.partnerId?ne.partnerId:ne.authData.partnerId),ne.listingsDataSource.data=ne.userListings,ne.listingsDataSource.paginator=ne.listingsPaginator,ne.listingsDataSource.sort=ne.listingsSort,ne.listingsSort.direction="desc",ne.listingsSort.active="name"})()}onAdd(){var ne=this;this.dialog.open(B).afterClosed().subscribe(function(){var De=(0,d.Z)(function*(wt){wt&&(ne.partnerId||ne.authData.partnerId)&&(wt.partnerId=ne.partnerId?ne.partnerId:ne.authData.partnerId,yield ne.listService.addNewListing(wt),ne.userListings=yield ne.listService.getUserListings(ne.partnerId?ne.partnerId:ne.authData.partnerId),ne.listingsDataSource.data=ne.userListings,ne.snackbar.open(ne.translate.instant("app.listings.snackbar.addListing"),void 0,{duration:3e3}))});return function(wt){return De.apply(this,arguments)}}(),De=>{this.error=De})}onListingEdit(ne){var De=this;this.dialog.open(Oe,{data:{id:ne._id}}).afterClosed().subscribe(function(){var wt=(0,d.Z)(function*(nn){yield De.listService.updateListing(nn),De.userListings=yield De.listService.getUserListings(De.partnerId?De.partnerId:De.authData.partnerId),De.listingsDataSource.data=De.userListings,De.snackbar.open(De.translate.instant("app.listings.snackbar.editListing"),void 0,{duration:3e3})});return function(nn){return wt.apply(this,arguments)}}(),wt=>{this.error=wt})}addProductListing(ne){var De=this;return(0,d.Z)(function*(){De.dialog.open(re,{data:{catalog:De.userCatalog,listingHandle:ne,partnerId:De.partnerId?De.partnerId:De.authData.partnerId}}).afterClosed().subscribe((0,d.Z)(function*(){De.userListings=yield De.listService.getUserListings(De.partnerId?De.partnerId:De.authData.partnerId),De.listingsDataSource.data=De.userListings}),wt=>{De.error=wt})})()}deleteListing(ne){var De=this;const wt=this.translate.instant("app.listings.modals.delete.message"),nn=this.translate.instant("app.listings.modals.delete.title");this.dialog.open(Ae.q,{maxWidth:"400px",data:{message:wt,title:nn}}).afterClosed().subscribe(function(){var Jt=(0,d.Z)(function*(un){un&&(yield De.listService.deleteListing(ne),De.userListings=yield De.listService.getUserListings(De.partnerId?De.partnerId:De.authData.partnerId),De.listingsDataSource.data=De.userListings,De.tabIndex=1,De.snackbar.open(De.translate.instant("shared.snackbar.deleteConfirmation"),void 0,{duration:3e3}))});return function(un){return Jt.apply(this,arguments)}}())}getListingProducts(ne){var De=this;return(0,d.Z)(function*(){return yield De.catService.getReferencesFromListing(ne)})()}showListingDetails(ne){var De=this;return(0,d.Z)(function*(){De.router.navigate([De.partnerId?"/admin/listing":"/listing",{id:ne}])})()}createListingBuyButton(ne){this.goToBuyButtonCreation(A.COLLECTION,ne.imsgid)}goToBuyButtonCreation(ne,De){this.buyButtonNavigationService.goToCustomization(ne,De.split("/").slice(-1)[0])}applyFilter(ne){ne.value&&(this.listingsDataSource.filter=ne.value.trim().toLowerCase())}}return F.\u0275fac=function(ne){return new(ne||F)(p.Y36(ie.av),p.Y36(k.o),p.Y36(tt.O),p.Y36(ot.i),p.Y36(v.uw),p.Y36(ye.e8),p.Y36(at.F0),p.Y36(p.sBO),p.Y36(W.sK),p.Y36(ue.ux))},F.\u0275cmp=p.Xpm({type:F,selectors:[["app-listings"]],viewQuery:function(ne,De){if(1&ne&&(p.Gf(be,5),p.Gf(Pe,5)),2&ne){let wt;p.iGM(wt=p.CRH())&&(De.listingsPaginator=wt.first),p.iGM(wt=p.CRH())&&(De.listingsSort=wt.first)}},inputs:{partnerId:"partnerId"},decls:29,vars:12,consts:[[1,"mat-18"],[1,"fill-space"],["id","search","matInput","",3,"placeholder","keyup"],["mat-button","","color","primary",3,"click"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["listingsSort","matSort"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","count"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page of listings",3,"pageSize","pageSizeOptions"],["listingsPaginator",""],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","","mat-sort-header",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(ne,De){1&ne&&(p.TgZ(0,"mat-toolbar")(1,"mat-icon",0),p._uU(2,"sell"),p.qZA(),p._uU(3," Collezioni "),p._UZ(4,"span",1),p.TgZ(5,"mat-form-field")(6,"input",2),p.NdJ("keyup",function(nn){return De.applyFilter(nn.target)}),p.ALo(7,"translate"),p.qZA()(),p.TgZ(8,"button",3),p.NdJ("click",function(){return De.onAdd()}),p._uU(9),p.ALo(10,"translate"),p.TgZ(11,"mat-icon"),p._uU(12,"add"),p.qZA()()(),p.TgZ(13,"table",4,5),p.ynx(15,6),p.YNc(16,je,3,3,"th",7),p.YNc(17,dt,2,1,"td",8),p.BQk(),p.ynx(18,9),p.YNc(19,et,3,3,"th",10),p.YNc(20,gt,2,1,"td",8),p.BQk(),p.ynx(21,11),p.YNc(22,Re,3,3,"th",10),p.YNc(23,we,16,0,"td",8),p.BQk(),p.YNc(24,ce,1,0,"tr",12),p.YNc(25,ve,1,0,"tr",13),p.qZA(),p._UZ(26,"mat-divider")(27,"mat-paginator",14,15)),2&ne&&(p.xp6(6),p.s9C("placeholder",p.lcZ(7,7,"shared.search.title")),p.xp6(3),p.hij(" ",p.lcZ(10,9,"shared.buttons.add")," "),p.xp6(4),p.Q6J("dataSource",De.listingsDataSource),p.xp6(11),p.Q6J("matHeaderRowDef",De.listingDisplayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",De.listingDisplayedColumns),p.xp6(2),p.Q6J("pageSize",20)("pageSizeOptions",p.DdM(11,se)))},dependencies:[b.lW,b.RK,J.KE,pt.Hw,Y.Nt,$e.d,G.NW,ft.YE,ft.nU,i.BZ,i.fO,i.as,i.w1,i.Dz,i.nj,i.ge,i.ev,i.XQ,i.Gk,Et.Ye,W.X$],styles:["table[_ngcontent-%COMP%]{width:100%;overflow:auto;max-height:300px}"]}),F})()},1447:(vn,_t,y)=>{"use strict";y.d(_t,{K:()=>at});var d=y(5861),i=y(4650),A=y(8929),p=y(13),v=y(7198),k=y(7556),f=y(6895),b=y(4006),J=y(6709),Y=y(9602),W=y(7084),B=y(9549),Z=y(7392),G=y(4144),ie=y(4385),Ee=y(3238),ue=y(1572),Ze=y(1266);const Qe=["attrOfferName"];function vt(pt,ft){if(1&pt&&(i.TgZ(0,"mat-option",16),i._uU(1),i.qZA()),2&pt){const Et=ft.$implicit;i.s9C("value",Et._id),i.xp6(1),i.Oqu(Et.name)}}function $e(pt,ft){1&pt&&i._UZ(0,"mat-spinner",19)}function Ge(pt,ft){if(1&pt&&(i.TgZ(0,"mat-option",16),i._uU(1),i.qZA()),2&pt){const Et=ft.$implicit;i.s9C("value",Et.id),i.xp6(1),i.Oqu(Et.name)}}function Ce(pt,ft){if(1&pt){const Et=i.EpF();i.TgZ(0,"mat-form-field",0),i.YNc(1,$e,1,0,"mat-spinner",17),i.TgZ(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"mat-select",18),i.NdJ("valueChange",function(Pe){i.CHM(Et);const je=i.oxw();return i.KtG(je.offer.imsCategories=Pe)}),i.YNc(6,Ge,2,2,"mat-option",2),i.qZA()()}if(2&pt){const Et=i.oxw();i.xp6(1),i.Q6J("ngIf",Et.loadCategories),i.xp6(2),i.Oqu(i.lcZ(4,4,"app.products.product.ims-category")),i.xp6(2),i.Q6J("value",Et.offer.imsCategories),i.xp6(1),i.Q6J("ngForOf",Et.offer.userCategories)}}function ke(pt,ft){if(1&pt){const Et=i.EpF();i.TgZ(0,"div")(1,"label"),i._uU(2),i.qZA(),i._UZ(3,"br"),i.TgZ(4,"input",20,21),i.NdJ("keyup",function(){i.CHM(Et);const Pe=i.oxw(2);return i.KtG(Pe.keyUpFilter.next())}),i.qZA()()}if(2&pt){const Et=i.oxw().$implicit,be=i.oxw();i.xp6(2),i.hij("",Et.default_frontend_label,":"),i.xp6(2),i.Q6J("id",be.offer._id+Et.attribute_code)("required",Et.is_required)}}function me(pt,ft){if(1&pt){const Et=i.EpF();i.TgZ(0,"div")(1,"label"),i._uU(2),i.qZA(),i._UZ(3,"br"),i.TgZ(4,"textarea",20,21),i.NdJ("keyup",function(){i.CHM(Et);const Pe=i.oxw(2);return i.KtG(Pe.keyUpFilter.next())}),i.qZA()()}if(2&pt){const Et=i.oxw().$implicit,be=i.oxw();i.xp6(2),i.hij("",Et.default_frontend_label,":"),i.xp6(2),i.Q6J("id",be.offer._id+Et.attribute_code)("required",Et.is_required)}}function re(pt,ft){if(1&pt){const Et=i.EpF();i.TgZ(0,"div")(1,"label"),i._uU(2),i.qZA(),i.TgZ(3,"input",22,21),i.NdJ("change",function(){i.CHM(Et);const Pe=i.oxw(2);return i.KtG(Pe.onDataChange())}),i.qZA()()}if(2&pt){const Et=i.oxw().$implicit,be=i.oxw();i.xp6(2),i.hij("",Et.default_frontend_label,":"),i.xp6(1),i.Q6J("id",be.offer._id+Et.attribute_code)("required",Et.is_required)}}function ye(pt,ft){if(1&pt&&(i.TgZ(0,"option",16),i._uU(1),i.qZA()),2&pt){const Et=ft.$implicit;i.Q6J("value",Et.value),i.xp6(1),i.Oqu(Et.label)}}function Oe(pt,ft){if(1&pt){const Et=i.EpF();i.TgZ(0,"div")(1,"label"),i._uU(2),i.qZA(),i._UZ(3,"br"),i.TgZ(4,"select",23,21),i.NdJ("change",function(){i.CHM(Et);const Pe=i.oxw(2);return i.KtG(Pe.onDataChange())}),i.YNc(6,ye,2,2,"option",2),i.qZA()()}if(2&pt){const Et=i.oxw().$implicit,be=i.oxw();i.xp6(2),i.hij("",Et.default_frontend_label,":"),i.xp6(2),i.Q6J("id",be.offer._id+Et.attribute_code)("required",Et.is_required),i.xp6(2),i.Q6J("ngForOf",Et.options)}}function Ae(pt,ft){if(1&pt&&(i.TgZ(0,"div"),i.YNc(1,ke,6,3,"div",14),i.YNc(2,me,6,3,"div",14),i.YNc(3,re,5,3,"div",14),i.YNc(4,Oe,7,4,"div",14),i.qZA()),2&pt){const Et=ft.$implicit;i.xp6(1),i.Q6J("ngIf","text"===Et.frontend_input),i.xp6(1),i.Q6J("ngIf","textarea"===Et.frontend_input),i.xp6(1),i.Q6J("ngIf","boolean"===Et.frontend_input),i.xp6(1),i.Q6J("ngIf","select"===Et.frontend_input)}}function tt(pt,ft){if(1&pt){const Et=i.EpF();i.TgZ(0,"div")(1,"input",24),i.NdJ("ngModelChange",function(Pe){i.CHM(Et);const je=i.oxw();return i.KtG(je.offer.validFrom=Pe)}),i.qZA(),i._UZ(2,"mat-datepicker-toggle",25)(3,"mat-datepicker",null,26)(5,"br"),i.qZA()}if(2&pt){const Et=i.MAs(4),be=i.oxw();i.xp6(1),i.Q6J("matDatepicker",Et)("ngModel",be.offer.validFrom),i.xp6(1),i.Q6J("for",Et)}}function ot(pt,ft){if(1&pt){const Et=i.EpF();i.TgZ(0,"div")(1,"input",27),i.NdJ("ngModelChange",function(Pe){i.CHM(Et);const je=i.oxw();return i.KtG(je.offer.validUntil=Pe)}),i.qZA(),i._UZ(2,"mat-datepicker-toggle",25)(3,"mat-datepicker",null,28),i.qZA()}if(2&pt){const Et=i.MAs(4),be=i.oxw();i.xp6(1),i.Q6J("matDatepicker",Et)("ngModel",be.offer.validUntil),i.xp6(1),i.Q6J("for",Et)}}let at=(()=>{class pt{constructor(Et,be){this.chanService=Et,this.auth=be,this.offerChange=new i.vpe,this.loadCategories=!1,this.userCategories=[],this.keyUpFilter=new A.xQ,this.authData=be.currentAuthData,be.currentAuth.subscribe(Pe=>{Pe&&(this.authData=Pe)})}ngOnInit(){var Et=this;return(0,d.Z)(function*(){var be;Et.chanService.getUserChannels(Et.partnerId?Et.partnerId:Et.authData.partnerId).subscribe({next:(be=(0,d.Z)(function*(Pe){Et.userChannels=Pe.data;const je=yield Et.loadIMSCategories(Et.offer.channelId);Et.offer.userCategories=je}),function(je){return be.apply(this,arguments)})})})()}ngAfterViewInit(){if(this.fillData(),this.offer&&this.offer.attributes)for(let Et=0;Et<this.offer.attributes.length;Et++){const be=document.getElementById(this.offer._id+this.offer.attributes[Et].attribute.name);be&&("checkbox"===be.type&&(be.checked=1===this.offer.attributes[Et].value),be&&this.offer.attributes[Et].value&&"checkbox"!==be.type&&(be.value=this.offer.attributes[Et].value.toString()))}this.keyUpFilter.pipe((0,p.b)(1e3)).subscribe(()=>{this.offer.attributes=this.retrieveAttributesFromHTML(this.offer._id)})}ngOnChanges(){this.offerChange.emit(this.offer)}fillData(){this.attrOfferNamesRef.changes.subscribe(()=>{if(this.offer&&this.offer.attributes)for(let Et=0;Et<this.offer.attributes.length;Et++){const be=document.getElementById(this.offer._id+this.offer.attributes[Et].attribute.name);be&&("checkbox"===be.type&&(be.checked=1===this.offer.attributes[Et].value),be&&this.offer.attributes[Et].value&&"checkbox"!==be.type&&(be.value=this.offer.attributes[Et].value.toString()))}})}onDataChange(){this.offer.attributes=this.retrieveAttributesFromHTML(this.offer._id)}onOfferClick(){this.offer.attributes=this.retrieveAttributesFromHTML(this.offer._id)}retrieveAttributesFromHTML(Et=""){console.log("entro a trovare gli attributi per offerta");const be=[];for(let Pe=0;Pe<this.categoryAttributes.length;Pe++){let je=this.attrOfferNamesRef.find(dt=>dt.nativeElement.id===Et+this.categoryAttributes[Pe].attribute_code);if(console.log("searching value for "+Et+this.categoryAttributes[Pe].attribute_code),je||(console.log("fallback searching value for "+Et+this.categoryAttributes[Pe].attribute_code),je=this.attrOfferNamesRef.find(dt=>dt.nativeElement.id==="undefined"+this.categoryAttributes[Pe].attribute_code)),je){let dt=""===je.nativeElement.value?null:je.nativeElement.value;"boolean"===this.categoryAttributes[Pe].frontend_input&&(dt=je.nativeElement.checked?1:0),be.push({attribute:{name:this.categoryAttributes[Pe].attribute_code,type:this.categoryAttributes[Pe].backend_type,required:this.categoryAttributes[Pe].is_required},value:dt})}}return be.slice()}onOfferChannelChange(Et){var be=this;return(0,d.Z)(function*(){const Pe=yield be.loadIMSCategories(Et.channelId);be.offer.userCategories=Pe})()}loadIMSCategories(Et){var be=this;return(0,d.Z)(function*(){be.loadCategories=!0,be.userCategories=[];const Pe=[];for(let je=0;je<be.userChannels.length;je++)be.userChannels[je]._id===Et&&be.chanService.getCategories(be.userChannels[je].storeName,be.userChannels[je]._id).subscribe(dt=>{let et="";Pe.push({id:dt.data.id,name:et+dt.data.name}),et+=dt.data.name+" > ";let gt=[];for(let Re=0;Re<dt.data.children_data.length;Re++)dt.data.children_data[Re].prefix=et,gt.push(dt.data.children_data[Re]);for(;gt.length>0;){let Re=gt.shift();for(let we=0;we<Re.children_data.length;we++)Re.children_data[we].prefix=Re.prefix+Re.name+" > ",gt.push(Re.children_data[we]);Pe.push({id:Re.id,name:Re.prefix+Re.name})}Pe.sort(function(we,ce){return we.name===ce.name?0:we.name>ce.name?1:-1}),be.loadCategories=!1});return Pe})()}}return pt.\u0275fac=function(Et){return new(Et||pt)(i.Y36(v.T),i.Y36(k.e8))},pt.\u0275cmp=i.Xpm({type:pt,selectors:[["app-offer"]],viewQuery:function(Et,be){if(1&Et&&i.Gf(Qe,5),2&Et){let Pe;i.iGM(Pe=i.CRH())&&(be.attrOfferNamesRef=Pe)}},inputs:{partnerId:"partnerId",offer:"offer",categoryAttributes:"categoryAttributes"},outputs:{offerChange:"offerChange"},features:[i.TTD],decls:69,vars:46,consts:[[1,"full-width","mt-3"],["required","",3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","full-width mt-3",4,"ngIf"],[1,"full-width"],["matInput","","name","title","type","text","id","title","required","",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","rows","5","name","description","type","text",1,"form-control",3,"id","ngModel","ngModelChange"],["matInput","","type","number","name","offer-price","required","",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","offer-sku","required","",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","offer-urlKey",1,"form-control",3,"ngModel","ngModelChange"],["multi","",1,"example-headers-align"],[4,"ngFor","ngForOf"],["type","boolean","name","imsEnabled",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","validFrom",1,"form-control",3,"ngModel","ngModelChange"],[4,"ngIf"],["type","boolean","name","validUntil",1,"form-control",3,"ngModel","ngModelChange"],[3,"value"],["matSuffix","","diameter","16","style","display: inline-flex",4,"ngIf"],["multiple","","required","",3,"value","valueChange"],["matSuffix","","diameter","16",2,"display","inline-flex"],[1,"full-width",3,"id","required","keyup"],["attrOfferName",""],["type","checkbox","value","1",1,"full-width",3,"id","required","change"],[1,"full-width",3,"id","required","change"],["matInput","","name","validFrom",3,"matDatepicker","ngModel","ngModelChange"],["matIconSuffix","",3,"for"],["fromPicker",""],["matInput","","name","validUntil",3,"matDatepicker","ngModel","ngModelChange"],["untilPicker",""]],template:function(Et,be){1&Et&&(i.TgZ(0,"mat-form-field",0)(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-select",1),i.NdJ("valueChange",function(je){return be.offer.channelId=je})("selectionChange",function(){return be.onOfferChannelChange(be.offer)}),i.YNc(5,vt,2,2,"mat-option",2),i.qZA()(),i._UZ(6,"br"),i.YNc(7,Ce,7,6,"mat-form-field",3),i._UZ(8,"br"),i.TgZ(9,"mat-form-field",4)(10,"mat-label"),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"input",5),i.NdJ("ngModelChange",function(je){return be.offer.title=je}),i.qZA()(),i._UZ(14,"br"),i.TgZ(15,"mat-form-field",0)(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i.TgZ(19,"textarea",6),i.NdJ("ngModelChange",function(je){return be.offer.description=je}),i.qZA()(),i._UZ(20,"br"),i.TgZ(21,"mat-form-field",4)(22,"mat-label"),i._uU(23),i.ALo(24,"translate"),i.qZA(),i.TgZ(25,"input",7),i.NdJ("ngModelChange",function(je){return be.offer.price=je}),i.qZA()(),i._UZ(26,"br"),i.TgZ(27,"mat-form-field",4)(28,"mat-label"),i._uU(29),i.ALo(30,"translate"),i.qZA(),i.TgZ(31,"input",8),i.NdJ("ngModelChange",function(je){return be.offer.sku=je}),i.qZA()(),i._UZ(32,"br"),i.TgZ(33,"mat-form-field",4)(34,"mat-label"),i._uU(35),i.ALo(36,"translate"),i.qZA(),i.TgZ(37,"input",9),i.NdJ("ngModelChange",function(je){return be.offer.urlKey=je}),i.qZA()(),i.TgZ(38,"mat-accordion",10)(39,"mat-expansion-panel")(40,"mat-expansion-panel-header")(41,"mat-panel-title"),i._uU(42),i.qZA(),i.TgZ(43,"mat-panel-description"),i._uU(44," Attributi del prodotto "),i.qZA()(),i.YNc(45,Ae,5,4,"div",11),i.qZA(),i.TgZ(46,"mat-expansion-panel")(47,"mat-expansion-panel-header")(48,"mat-panel-title")(49,"mat-icon"),i._uU(50,"visibility"),i.qZA(),i._uU(51),i.ALo(52,"translate"),i.qZA(),i.TgZ(53,"mat-panel-description"),i._uU(54," Visibilit\xe0 "),i.qZA()(),i.TgZ(55,"mat-checkbox",12),i.NdJ("ngModelChange",function(je){return be.offer.imsEnabled=je}),i._uU(56),i.ALo(57,"translate"),i.qZA(),i._UZ(58,"br"),i.TgZ(59,"mat-checkbox",13),i.NdJ("ngModelChange",function(je){return be.offer.isValidFrom=je}),i._uU(60),i.ALo(61,"translate"),i.qZA(),i._UZ(62,"br"),i.YNc(63,tt,6,3,"div",14),i.TgZ(64,"mat-checkbox",15),i.NdJ("ngModelChange",function(je){return be.offer.isValidUntil=je}),i._uU(65),i.ALo(66,"translate"),i.qZA(),i._UZ(67,"br"),i.YNc(68,ot,5,3,"div",14),i.qZA()()),2&Et&&(i.xp6(2),i.Oqu(i.lcZ(3,26,"app.channels.fields.selectChannel")),i.xp6(2),i.Q6J("value",be.offer.channelId),i.xp6(1),i.Q6J("ngForOf",be.userChannels),i.xp6(2),i.Q6J("ngIf",be.offer.channelId),i.xp6(4),i.Oqu(i.lcZ(12,28,"app.products.product.title")),i.xp6(2),i.Q6J("ngModel",be.offer.title),i.xp6(4),i.Oqu(i.lcZ(18,30,"app.products.product.custom-description")),i.xp6(2),i.Q6J("id","description")("ngModel",be.offer.description),i.xp6(4),i.Oqu(i.lcZ(24,32,"app.products.product.price")),i.xp6(2),i.Q6J("ngModel",be.offer.price),i.xp6(4),i.Oqu(i.lcZ(30,34,"app.products.product.sku")),i.xp6(2),i.Q6J("ngModel",be.offer.sku),i.xp6(4),i.Oqu(i.lcZ(36,36,"app.products.product.urlKey")),i.xp6(2),i.Q6J("ngModel",be.offer.urlKey),i.xp6(5),i.hij(" Attributi (",be.categoryAttributes?be.categoryAttributes.length:0,") "),i.xp6(3),i.Q6J("ngForOf",be.categoryAttributes),i.xp6(6),i.hij(" ",i.lcZ(52,38,"app.products.product.visibility")," "),i.xp6(4),i.Q6J("ngModel",be.offer.imsEnabled),i.xp6(1),i.hij(" ",i.lcZ(57,40,"app.products.product.imsEnabled")," "),i.xp6(3),i.Q6J("ngModel",be.offer.isValidFrom),i.xp6(1),i.hij(" ",i.lcZ(61,42,"app.products.product.isValidFrom")," "),i.xp6(3),i.Q6J("ngIf",be.offer.isValidFrom),i.xp6(1),i.Q6J("ngModel",be.offer.isValidUntil),i.xp6(1),i.hij(" ",i.lcZ(66,44,"app.products.product.isValidUntil")," "),i.xp6(3),i.Q6J("ngIf",be.offer.isValidUntil))},dependencies:[f.sg,f.O5,b.YN,b.Kr,b.Fj,b.wV,b.JJ,b.Q7,b.On,J.oG,Y.Mq,Y.hl,Y.nW,W.pp,W.ib,W.yz,W.yK,W.u4,B.KE,B.hX,B.R9,Z.Hw,G.Nt,ie.gD,Ee.ey,ue.Ou,Ze.X$]}),pt})()},38:(vn,_t,y)=>{"use strict";y.d(_t,{b:()=>nn});var d=y(5861),i=y(671),A=y(7556),p=y(4650),v=y(2331),k=y(7198),f=y(7646),b=y(6630),J=y(7009),Y=y(1266),W=y(6895),B=y(4859),Z=y(9549),G=y(7392),ie=y(8739),Ee=y(6308),ue=y(3683),Ze=y(1572);const Qe=["ordersPaginator"],vt=["ordersSort"];function $e(Jt,un){1&Jt&&p._UZ(0,"mat-spinner",27),2&Jt&&p.Q6J("diameter",25)}function Ge(Jt,un){1&Jt&&(p.TgZ(0,"mat-icon"),p._uU(1,"replay"),p.qZA())}function Ce(Jt,un){1&Jt&&(p.TgZ(0,"th",28),p._uU(1," Data "),p.qZA())}function ke(Jt,un){if(1&Jt&&(p.TgZ(0,"td",29),p._uU(1),p.ALo(2,"date"),p.qZA()),2&Jt){const Zt=un.$implicit;p.xp6(1),p.hij(" ",p.xi3(2,1,Zt.createdAt,"dd/MM/yyyy")," ")}}function me(Jt,un){1&Jt&&(p.TgZ(0,"th",28),p._uU(1," Nome "),p.qZA())}function re(Jt,un){if(1&Jt&&(p.TgZ(0,"td",29),p._uU(1),p.qZA()),2&Jt){const Zt=un.$implicit;p.xp6(1),p.hij(" ",Zt.name," ")}}function ye(Jt,un){1&Jt&&(p.TgZ(0,"th",28),p._uU(1," Status "),p.qZA())}function Oe(Jt,un){if(1&Jt&&(p.TgZ(0,"td",29),p._uU(1),p.qZA()),2&Jt){const Zt=un.$implicit;p.xp6(1),p.hij(" ",Zt.status," ")}}function Ae(Jt,un){1&Jt&&(p.TgZ(0,"th",28),p._uU(1," Canale "),p.qZA())}function tt(Jt,un){if(1&Jt&&(p.TgZ(0,"td",29),p._uU(1),p.qZA()),2&Jt){const Zt=un.$implicit,zt=p.oxw();p.xp6(1),p.hij(" ",zt.getChannelName(Zt.instanceId,Zt.storeName)," ")}}function ot(Jt,un){1&Jt&&(p.TgZ(0,"th",28),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Jt&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.orders.order.customer")," "))}function at(Jt,un){if(1&Jt&&(p.TgZ(0,"td",29),p._uU(1),p.qZA()),2&Jt){const Zt=un.$implicit;p.xp6(1),p.hij(" ",null==Zt.customer?null:Zt.customer.displayName," ")}}function pt(Jt,un){1&Jt&&(p.TgZ(0,"th",28),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Jt&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.orders.order.address")," "))}function ft(Jt,un){if(1&Jt&&(p.TgZ(0,"td",29),p._uU(1),p.qZA()),2&Jt){const Zt=un.$implicit;p.xp6(1),p.HOy(" ",null==Zt.shippingAddress?null:Zt.shippingAddress.address1," ",null==Zt.shippingAddress?null:Zt.shippingAddress.address2," ",null==Zt.shippingAddress?null:Zt.shippingAddress.city," ",null==Zt.shippingAddress?null:Zt.shippingAddress.province," ")}}function Et(Jt,un){1&Jt&&(p.TgZ(0,"th",28),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Jt&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.orders.order.total")," "))}function be(Jt,un){if(1&Jt&&(p.TgZ(0,"td",29),p._uU(1),p.qZA()),2&Jt){const Zt=un.$implicit;p.xp6(1),p.AsE(" ",null==Zt.totalPriceSet?null:Zt.totalPriceSet.amount," ",null==Zt.totalPriceSet?null:Zt.totalPriceSet.currencyCode," ")}}function Pe(Jt,un){1&Jt&&(p.TgZ(0,"th",28),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Jt&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.orders.order.items")," "))}function je(Jt,un){if(1&Jt&&(p.TgZ(0,"td",29),p._uU(1),p.qZA()),2&Jt){const Zt=un.$implicit;p.xp6(1),p.hij(" ",null==Zt.items?null:Zt.items.length," ")}}function dt(Jt,un){1&Jt&&(p.TgZ(0,"th",28),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Jt&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.orders.order.fulfilled")," "))}function et(Jt,un){1&Jt&&(p.TgZ(0,"mat-icon"),p._uU(1,"done"),p.qZA())}function gt(Jt,un){1&Jt&&(p.TgZ(0,"mat-icon"),p._uU(1,"close"),p.qZA())}function Re(Jt,un){if(1&Jt&&(p.TgZ(0,"td",29),p.YNc(1,et,2,0,"mat-icon",3),p.YNc(2,gt,2,0,"mat-icon",3),p.qZA()),2&Jt){const Zt=un.$implicit;p.xp6(1),p.Q6J("ngIf",Zt.fulfilled),p.xp6(1),p.Q6J("ngIf",!Zt.fulfilled)}}function we(Jt,un){1&Jt&&(p.TgZ(0,"th",28),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Jt&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.shipments.shipment.title")," "))}function ce(Jt,un){if(1&Jt){const Zt=p.EpF();p.TgZ(0,"button",31),p.NdJ("click",function(){p.CHM(Zt);const fe=p.oxw().$implicit,Te=p.oxw();return p.KtG(Te.showShipmentDetails(fe.shipment.smsid))}),p.TgZ(1,"mat-icon"),p._uU(2,"local_shipping"),p.qZA()()}}function ve(Jt,un){if(1&Jt&&(p.TgZ(0,"td",29),p._uU(1),p.YNc(2,ce,3,0,"button",30),p.qZA()),2&Jt){const Zt=un.$implicit;p.xp6(1),p.AsE(" ",null==Zt.shipment?null:Zt.shipment.status," ",null==Zt.shipment?null:Zt.shipment.smsid," "),p.xp6(1),p.Q6J("ngIf",Zt.shipment)}}function se(Jt,un){1&Jt&&(p.TgZ(0,"th",32),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Jt&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"shared.buttons.actions")," "))}function S(Jt,un){if(1&Jt){const Zt=p.EpF();p.TgZ(0,"button",31),p.NdJ("click",function(){p.CHM(Zt);const fe=p.oxw().$implicit,Te=p.oxw();return p.KtG(Te.shipOrder(fe))}),p.TgZ(1,"mat-icon"),p._uU(2,"fast_forward"),p.qZA()()}}function F(Jt,un){1&Jt&&p._UZ(0,"mat-spinner",34)}function V(Jt,un){if(1&Jt){const Zt=p.EpF();p.TgZ(0,"td",29)(1,"button",31),p.NdJ("click",function(){const Te=p.CHM(Zt).$implicit,lt=p.oxw();return p.KtG(lt.showOrderDetails(Te.omsgid))}),p.TgZ(2,"mat-icon"),p._uU(3,"info"),p.qZA()(),p.YNc(4,S,3,0,"button",30),p.YNc(5,F,1,0,"mat-spinner",33),p.qZA()}if(2&Jt){const Zt=un.$implicit,zt=p.oxw();p.xp6(4),p.Q6J("ngIf",!Zt.fulfilled&&zt.isFulfillable(Zt)&&zt.loadedElement!==Zt.omsgid),p.xp6(1),p.Q6J("ngIf",zt.loading&&zt.loadedElement===Zt.omsgid)}}function ne(Jt,un){1&Jt&&p._UZ(0,"tr",35)}function De(Jt,un){1&Jt&&p._UZ(0,"tr",36)}const wt=function(){return[5,10,20]};let nn=(()=>{class Jt extends A.Mf{constructor(Zt,zt,fe,Te,lt,Je,Lt){super(Zt),this.ordersService=zt,this.chanService=fe,this.warehousesService=Te,this.router=lt,this.snackbar=Je,this.translate=Lt,this.orders=[],this.unfulfilledTransactions=[],this.syncing=!1,this.channels=new Array,this.loading=!1,this.loadedElement="",this.ordersDataSource=new i.by(this.orders),this.ordersDisplayedColumns=["date","name","status","channelId","displayName","address","total","items","fulfilled","shipments","actions"]}ngOnInit(){var Zt=this;return(0,d.Z)(function*(){yield Zt.getOrders(Zt.partnerId?Zt.partnerId:Zt.authData?.partnerId),yield Zt.getChannels(),yield Zt.getUnfulfilledTransactions(Zt.partnerId?Zt.partnerId:Zt.authData?.partnerId),Zt.ordersDataSource.sort=Zt.ordersSort,Zt.ordersSort.direction="desc",Zt.ordersSort.active="name",Zt.ordersDataSource.paginator=Zt.ordersPaginator})()}onSyncOrders(){var Zt=this;return(0,d.Z)(function*(){(Zt.partnerId?Zt.partnerId:Zt.authData?.partnerId)&&(Zt.syncing=!0,Zt.ordersService.updateOrders(Zt.partnerId?Zt.partnerId:Zt.authData?.partnerId).subscribe(function(){var fe=(0,d.Z)(function*(Te){console.log(Te),yield Zt.getOrders(Zt.partnerId?Zt.partnerId:Zt.authData?.partnerId)});return function(Te){return fe.apply(this,arguments)}}()),Zt.syncing=!1,Zt.snackbar.open(Zt.translate.instant("app.orders.snackbar.sync"),void 0,{duration:3e3}))})()}getChannels(){var Zt=this;return(0,d.Z)(function*(){Zt.channels=yield Zt.chanService.getChannels()})()}getOrders(Zt){var zt=this;return(0,d.Z)(function*(){return zt.ordersService.getOrdersByPartnerId(Zt).subscribe(fe=>{zt.orders=fe.data,zt.ordersDataSource.data=zt.orders}),zt.orders})()}getUnfulfilledTransactions(Zt){var zt=this;return(0,d.Z)(function*(){zt.warehousesService.getUnfulfilledTransactions(Zt).subscribe(function(){var fe=(0,d.Z)(function*(Te){zt.unfulfilledTransactions=Te.data});return function(Te){return fe.apply(this,arguments)}}())})()}showOrderDetails(Zt){var zt=this;return(0,d.Z)(function*(){zt.router.navigate(["/order",{id:Zt}])})()}showShipmentDetails(Zt){var zt=this;return(0,d.Z)(function*(){zt.router.navigate(["/shipment",{id:Zt}])})()}shipOrder(Zt){this.loading=!0,this.loadedElement=Zt.omsgid,this.ordersService.retryOrderFulfillmentByOrderId(Zt).subscribe(zt=>{this.loading=!1,this.loadedElement=""})}isFulfillable(Zt){for(let zt=0;zt<this.unfulfilledTransactions.length;zt++)if(this.unfulfilledTransactions[zt].omsgid===Zt.omsgid)return!1;return!0}getChannelName(Zt,zt){for(let fe=0;fe<this.channels.length;fe++)if(Zt===this.channels[fe].instanceId&&zt===this.channels[fe].storeName)return this.channels[fe].name;return"Errore. contattare assistenza."}}return Jt.\u0275fac=function(Zt){return new(Zt||Jt)(p.Y36(A.e8),p.Y36(v.Nz),p.Y36(k.T),p.Y36(f.c),p.Y36(b.F0),p.Y36(J.ux),p.Y36(Y.sK))},Jt.\u0275cmp=p.Xpm({type:Jt,selectors:[["app-orders"]],viewQuery:function(Zt,zt){if(1&Zt&&(p.Gf(Qe,5),p.Gf(vt,5)),2&Zt){let fe;p.iGM(fe=p.CRH())&&(zt.ordersPaginator=fe.first),p.iGM(fe=p.CRH())&&(zt.ordersSort=fe.first)}},inputs:{partnerId:"partnerId"},features:[p.qOj],decls:53,vars:15,consts:[[1,"fill-space"],[3,"diameter",4,"ngIf"],["mat-button","",3,"disabled","click"],[4,"ngIf"],[1,"container"],[1,"text-center"],[1,"mat-typography"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["ordersSort","matSort"],["matColumnDef","date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","status"],["matColumnDef","channelId"],["matColumnDef","displayName"],["matColumnDef","address"],["matColumnDef","total"],["matColumnDef","items"],["matColumnDef","fulfilled"],["matColumnDef","shipments"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page of orders",3,"pageSize","pageSizeOptions"],["ordersPaginator",""],[3,"diameter"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-cell",""],["matSuffix","","diameter","16","style","display: inline-flex",4,"ngIf"],["matSuffix","","diameter","16",2,"display","inline-flex"],["mat-header-row",""],["mat-row",""]],template:function(Zt,zt){1&Zt&&(p.TgZ(0,"mat-toolbar")(1,"mat-icon"),p._uU(2,"inventory_2"),p.qZA(),p._uU(3),p.ALo(4,"translate"),p._UZ(5,"span",0),p.YNc(6,$e,1,1,"mat-spinner",1),p.TgZ(7,"button",2),p.NdJ("click",function(){return zt.onSyncOrders()}),p.YNc(8,Ge,2,0,"mat-icon",3),p._uU(9),p.ALo(10,"translate"),p.qZA()(),p.TgZ(11,"div",4)(12,"div",5),p._UZ(13,"section",6),p.qZA(),p.TgZ(14,"table",7,8),p.ynx(16,9),p.YNc(17,Ce,2,0,"th",10),p.YNc(18,ke,3,4,"td",11),p.BQk(),p.ynx(19,12),p.YNc(20,me,2,0,"th",10),p.YNc(21,re,2,1,"td",11),p.BQk(),p.ynx(22,13),p.YNc(23,ye,2,0,"th",10),p.YNc(24,Oe,2,1,"td",11),p.BQk(),p.ynx(25,14),p.YNc(26,Ae,2,0,"th",10),p.YNc(27,tt,2,1,"td",11),p.BQk(),p.ynx(28,15),p.YNc(29,ot,3,3,"th",10),p.YNc(30,at,2,1,"td",11),p.BQk(),p.ynx(31,16),p.YNc(32,pt,3,3,"th",10),p.YNc(33,ft,2,4,"td",11),p.BQk(),p.ynx(34,17),p.YNc(35,Et,3,3,"th",10),p.YNc(36,be,2,2,"td",11),p.BQk(),p.ynx(37,18),p.YNc(38,Pe,3,3,"th",10),p.YNc(39,je,2,1,"td",11),p.BQk(),p.ynx(40,19),p.YNc(41,dt,3,3,"th",10),p.YNc(42,Re,3,2,"td",11),p.BQk(),p.ynx(43,20),p.YNc(44,we,3,3,"th",10),p.YNc(45,ve,3,3,"td",11),p.BQk(),p.ynx(46,21),p.YNc(47,se,3,3,"th",22),p.YNc(48,V,6,2,"td",11),p.BQk(),p.YNc(49,ne,1,0,"tr",23),p.YNc(50,De,1,0,"tr",24),p.qZA(),p._UZ(51,"mat-paginator",25,26),p.qZA()),2&Zt&&(p.xp6(3),p.hij(" ",p.lcZ(4,10,"app.orders.title")," "),p.xp6(3),p.Q6J("ngIf",zt.syncing),p.xp6(1),p.Q6J("disabled",zt.syncing),p.xp6(1),p.Q6J("ngIf",!zt.syncing),p.xp6(1),p.hij(" ",p.lcZ(10,12,"shared.reload")," "),p.xp6(5),p.Q6J("dataSource",zt.ordersDataSource),p.xp6(35),p.Q6J("matHeaderRowDef",zt.ordersDisplayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",zt.ordersDisplayedColumns),p.xp6(1),p.Q6J("pageSize",20)("pageSizeOptions",p.DdM(14,wt)))},dependencies:[W.O5,B.lW,B.RK,Z.R9,G.Hw,ie.NW,Ee.YE,Ee.nU,i.BZ,i.fO,i.as,i.w1,i.Dz,i.nj,i.ge,i.ev,i.XQ,i.Gk,ue.Ye,Ze.Ou,W.uU,Y.X$],styles:[".container[_ngcontent-%COMP%]{display:block;justify-content:center}table[_ngcontent-%COMP%]{width:100%}"]}),Jt})()},9350:(vn,_t,y)=>{"use strict";y.d(_t,{D:()=>pt});var d=y(5861),i=y(671),A=y(396),p=y(4650),v=y(4911),k=y(7556),f=y(1266),b=y(7009),J=y(7198),Y=y(6895),W=y(4006),B=y(4859),Z=y(9549),G=y(7392),ie=y(4144),Ee=y(8739),ue=y(4385),Ze=y(3238),Qe=y(6308),vt=y(3683);const $e=["productsPaginator"],Ge=["productsSort"];function Ce(ft,Et){if(1&ft&&(p.TgZ(0,"mat-option",18),p._uU(1),p.qZA()),2&ft){const be=Et.$implicit;p.s9C("value",be._id),p.xp6(1),p.Oqu(be.name)}}function ke(ft,Et){1&ft&&(p.TgZ(0,"th",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&ft&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.products.product.denomination")," "))}function me(ft,Et){if(1&ft&&(p.TgZ(0,"td",20),p._uU(1),p.qZA()),2&ft){const be=Et.$implicit;p.xp6(1),p.hij(" ",be.title," ")}}function re(ft,Et){1&ft&&(p.TgZ(0,"th",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&ft&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.products.product.sku")," "))}function ye(ft,Et){if(1&ft&&(p.TgZ(0,"td",20),p._uU(1),p.qZA()),2&ft){const be=Et.$implicit;p.xp6(1),p.hij(" ",be.sku," ")}}function Oe(ft,Et){1&ft&&(p.TgZ(0,"th",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&ft&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.products.product.price")," "))}function Ae(ft,Et){if(1&ft){const be=p.EpF();p.TgZ(0,"td",20)(1,"input",21),p.NdJ("ngModelChange",function(je){const et=p.CHM(be).$implicit;return p.KtG(et.price=je)}),p.qZA()()}if(2&ft){const be=Et.$implicit;p.xp6(1),p.MGl("name","amount",be._id,""),p.Q6J("ngModel",be.price)}}function tt(ft,Et){1&ft&&p._UZ(0,"tr",22)}function ot(ft,Et){1&ft&&p._UZ(0,"tr",23)}const at=function(){return[5,10,20]};let pt=(()=>{class ft{constructor(be,Pe,je,dt,et){this.catService=be,this.auth=Pe,this.translate=je,this.snackbar=dt,this.chanService=et,this.tabIndex=0,this.userChannels=[],this.channelId="",this.userCatalog=[],this.editableOfferCatalog=[],this.userListings=[],this.selectedId=[],this.productsDataSource=new i.by(this.editableOfferCatalog),this.productsDisplayedColumns=["title","sku","price"],this.authData=Pe.currentAuthData,Pe.currentAuth.subscribe(gt=>{gt&&(this.authData=gt)})}ngOnInit(){var be=this;return(0,d.Z)(function*(){be.chanService.getUserChannels(be.partnerId?be.partnerId:be.authData.partnerId).subscribe({next:Pe=>{be.userChannels=Pe.data,be.userChannels.length>0&&(be.channelId=Pe.data[0]._id,be.catService.getUserReferencesByChannel(be.partnerId?be.partnerId:be.authData.partnerId,be.channelId).subscribe({next:je=>{be.userCatalog=je.data,be.editableOfferCatalog=be.catService.getOffersFromCatalog((0,A.X)(be.userCatalog),be.channelId),be.productsDataSource.data=be.editableOfferCatalog,be.productsDataSource.paginator=be.productsPaginator,be.productsDataSource.sort=be.productsSort,be.productsSort.direction="desc",be.productsSort.active="title"},error:je=>{console.error(je)}}))}})})()}onSave(){var be=this;return(0,d.Z)(function*(){be.catService.updateUserOffers(be.editableOfferCatalog,be.partnerId?be.partnerId:be.authData.partnerId,be.channelId).subscribe({next:je=>{be.snackbar.open(be.translate.instant("app.price-list.snackbar.updated",{updatedRows:je.data}),void 0,{duration:3e3})},error:je=>{console.error(je)}})})()}applyFilter(be){be.value&&(this.productsDataSource.filter=be.value.trim().toLowerCase())}loadReferences(be){this.userCatalog=[],this.catService.getUserReferencesByChannel(this.partnerId?this.partnerId:this.authData.partnerId,be.value).subscribe({next:Pe=>{this.userCatalog=Pe.data,this.editableOfferCatalog=this.catService.getOffersFromCatalog((0,A.X)(this.userCatalog),be.value),this.productsDataSource.data=this.editableOfferCatalog,this.productsDataSource.paginator=this.productsPaginator,this.productsDataSource.sort=this.productsSort,this.productsSort.direction="desc",this.productsSort.active="title"},error:Pe=>{console.error(Pe)}})}showQuantity(be){let Pe=0;for(let je=0;je<be.inventoryLevels.length;je++)Pe+=parseFloat(be.inventoryLevels[je].amount);return Pe}}return ft.\u0275fac=function(be){return new(be||ft)(p.Y36(v.av),p.Y36(k.e8),p.Y36(f.sK),p.Y36(b.ux),p.Y36(J.T))},ft.\u0275cmp=p.Xpm({type:ft,selectors:[["app-price-list"]],viewQuery:function(be,Pe){if(1&be&&(p.Gf($e,5),p.Gf(Ge,5)),2&be){let je;p.iGM(je=p.CRH())&&(Pe.productsPaginator=je.first),p.iGM(je=p.CRH())&&(Pe.productsSort=je.first)}},inputs:{partnerId:"partnerId"},decls:34,vars:17,consts:[[1,"fill-space"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["id","search","matInput","",3,"placeholder","keyup"],["mat-button","","color","primary",3,"click"],[1,"container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["productsSort","matSort"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sku"],["matColumnDef","price"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"footerPaginator"],["showFirstLastButtons","","aria-label","Select page of products",3,"pageSize","pageSizeOptions"],["productsPaginator",""],[3,"value"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matInput","","type","number","required","","ng-pattern","/^[0-9]+(\\.[0-9]{1,2})?$/","step","0.01",1,"form-control",3,"name","ngModel","ngModelChange"],["mat-header-row",""],["mat-row",""]],template:function(be,Pe){1&be&&(p.TgZ(0,"mat-toolbar")(1,"mat-icon"),p._uU(2,"price_check"),p.qZA(),p._uU(3),p.ALo(4,"translate"),p._UZ(5,"span",0),p.TgZ(6,"mat-form-field")(7,"mat-select",1),p.NdJ("valueChange",function(dt){return Pe.channelId=dt})("selectionChange",function(dt){return Pe.loadReferences(dt)}),p.YNc(8,Ce,2,2,"mat-option",2),p.qZA()(),p.TgZ(9,"mat-form-field")(10,"input",3),p.NdJ("keyup",function(dt){return Pe.applyFilter(dt.target)}),p.ALo(11,"translate"),p.qZA()(),p.TgZ(12,"button",4),p.NdJ("click",function(){return Pe.onSave()}),p._uU(13),p.ALo(14,"translate"),p.TgZ(15,"mat-icon"),p._uU(16,"save"),p.qZA()()(),p.TgZ(17,"div",5)(18,"table",6,7),p.ynx(20,8),p.YNc(21,ke,3,3,"th",9),p.YNc(22,me,2,1,"td",10),p.BQk(),p.ynx(23,11),p.YNc(24,re,3,3,"th",9),p.YNc(25,ye,2,1,"td",10),p.BQk(),p.ynx(26,12),p.YNc(27,Oe,3,3,"th",9),p.YNc(28,Ae,2,2,"td",10),p.BQk(),p.YNc(29,tt,1,0,"tr",13),p.YNc(30,ot,1,0,"tr",14),p.qZA(),p.TgZ(31,"div",15),p._UZ(32,"mat-paginator",16,17),p.qZA()()),2&be&&(p.xp6(3),p.hij(" ",p.lcZ(4,10,"app.price-list.title")," "),p.xp6(4),p.Q6J("value",Pe.channelId),p.xp6(1),p.Q6J("ngForOf",Pe.userChannels),p.xp6(2),p.s9C("placeholder",p.lcZ(11,12,"shared.search.title")),p.xp6(3),p.hij(" ",p.lcZ(14,14,"shared.buttons.save")," "),p.xp6(5),p.Q6J("dataSource",Pe.productsDataSource),p.xp6(11),p.Q6J("matHeaderRowDef",Pe.productsDisplayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",Pe.productsDisplayedColumns),p.xp6(2),p.Q6J("pageSize",20)("pageSizeOptions",p.DdM(16,at)))},dependencies:[Y.sg,W.Fj,W.wV,W.JJ,W.Q7,W.On,B.lW,Z.KE,G.Hw,ie.Nt,Ee.NW,ue.gD,Ze.ey,Qe.YE,Qe.nU,i.BZ,i.fO,i.as,i.w1,i.Dz,i.nj,i.ge,i.ev,i.XQ,i.Gk,vt.Ye,f.X$],styles:["table[_ngcontent-%COMP%]{width:100%;overflow:auto;max-height:300px}"]}),ft})()},4866:(vn,_t,y)=>{"use strict";y.d(_t,{l:()=>un});var d=y(5861),i=y(4911),A=y(8929),p=y(13),v=y(3254),k=y(2340),f=y(4650),b=y(4655),J=y(7556),Y=y(6630),W=y(6234),B=y(7009),Z=y(1266),G=y(7198),ie=y(220),Ee=y(6895),ue=y(4006),Ze=y(4859),Qe=y(3546),vt=y(6709),$e=y(9602),Ge=y(7084),Ce=y(9549),ke=y(7392),me=y(4144),re=y(8729),ye=y(4385),Oe=y(3238),Ae=y(3683),tt=y(1572),ot=y(1447);const at=["attrName"];function pt(Zt,zt){1&Zt&&f._UZ(0,"div",43)}function ft(Zt,zt){1&Zt&&(f.TgZ(0,"div",44),f._UZ(1,"mat-spinner",45),f.qZA())}function Et(Zt,zt){if(1&Zt&&(f.TgZ(0,"p",46)(1,"span",47),f._uU(2),f.qZA()()),2&Zt){const fe=f.oxw();f.xp6(2),f.Oqu(fe.error)}}function be(Zt,zt){if(1&Zt&&(f.TgZ(0,"p",48)(1,"span",47),f._uU(2),f.qZA()()),2&Zt){const fe=f.oxw();f.xp6(2),f.Oqu(fe.message)}}function Pe(Zt,zt){if(1&Zt&&(f.TgZ(0,"mat-option",49),f._uU(1),f.qZA()),2&Zt){const fe=zt.$implicit;f.s9C("value",fe._id),f.xp6(1),f.Oqu(fe.title)}}function je(Zt,zt){if(1&Zt){const fe=f.EpF();f.TgZ(0,"button",50),f.NdJ("click",function(){f.CHM(fe);const lt=f.oxw();return f.KtG(lt.voidMasterFields())}),f.TgZ(1,"mat-icon"),f._uU(2,"close"),f.qZA()()}}function dt(Zt,zt){if(1&Zt){const fe=f.EpF();f.TgZ(0,"mat-option",54),f.NdJ("click",function(){f.CHM(fe),f.oxw();const lt=f.MAs(5);return f.oxw().goBackToParentCategory(),f.KtG(lt.open())}),f.TgZ(1,"mat-icon"),f._uU(2,"arrow_back"),f.qZA(),f.TgZ(3,"span",55),f._uU(4),f.qZA()()}if(2&Zt){const fe=f.oxw(2);f.xp6(4),f.hij(" ",fe.getParentName()," ")}}function et(Zt,zt){if(1&Zt){const fe=f.EpF();f.TgZ(0,"button",57),f.NdJ("click",function(lt){f.CHM(fe);const Je=f.oxw().$implicit;f.oxw();const Lt=f.MAs(5),Ke=f.oxw();return f.KtG(Ke.selectCategory(Je,!0,lt)&&Lt.open())}),f.TgZ(1,"span",58),f._uU(2," arrow_forward "),f.qZA()()}}function gt(Zt,zt){if(1&Zt&&(f.TgZ(0,"mat-option",49)(1,"span",55),f._uU(2),f.qZA(),f.YNc(3,et,3,0,"button",56),f.qZA()),2&Zt){const fe=zt.$implicit,Te=f.oxw(2);f.Q6J("value",fe._id),f.xp6(2),f.hij(" ",Te.categoryService.getCategoryName(fe)," "),f.xp6(1),f.Q6J("ngIf",!fe.isLeaf)}}function Re(Zt,zt){if(1&Zt){const fe=f.EpF();f.TgZ(0,"mat-form-field",11)(1,"mat-label"),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"mat-select",51,52),f.NdJ("ngModelChange",function(lt){f.CHM(fe);const Je=f.oxw();return f.KtG(Je.protoReference.categoryId=lt)})("selectionChange",function(lt){f.CHM(fe);const Je=f.oxw();return f.KtG(Je.selectGeneralCategory(lt))}),f.YNc(6,dt,5,1,"mat-option",53),f._UZ(7,"mat-divider"),f.YNc(8,gt,4,3,"mat-option",15),f.qZA()()}if(2&Zt){const fe=f.oxw();f.xp6(2),f.Oqu(f.lcZ(3,5,"app.products.product.category")),f.xp6(2),f.Q6J("ngModel",fe.protoReference.categoryId)("disableOptionCentering",!0),f.xp6(2),f.Q6J("ngIf",fe.selectedCategory._id),f.xp6(2),f.Q6J("ngForOf",fe.categoryChildren)}}function we(Zt,zt){if(1&Zt&&(f.TgZ(0,"div")(1,"label"),f._uU(2),f.qZA(),f._UZ(3,"br")(4,"input",59,60),f.qZA()),2&Zt){const fe=f.oxw().$implicit;f.xp6(2),f.hij("",fe.default_frontend_label,":"),f.xp6(2),f.Q6J("id",fe.attribute_code)("required",fe.is_required)}}function ce(Zt,zt){if(1&Zt&&(f.TgZ(0,"div")(1,"label"),f._uU(2),f.qZA(),f._UZ(3,"br")(4,"textarea",59,60),f.qZA()),2&Zt){const fe=f.oxw().$implicit;f.xp6(2),f.hij("",fe.default_frontend_label,":"),f.xp6(2),f.Q6J("id",fe.attribute_code)("required",fe.is_required)}}function ve(Zt,zt){if(1&Zt&&(f.TgZ(0,"div")(1,"label"),f._uU(2),f.qZA(),f._UZ(3,"br")(4,"input",61,60),f.qZA()),2&Zt){const fe=f.oxw().$implicit;f.xp6(2),f.hij("",fe.default_frontend_label,":"),f.xp6(2),f.Q6J("id",fe.attribute_code)("required",fe.is_required)}}function se(Zt,zt){if(1&Zt&&(f.TgZ(0,"option",49),f._uU(1),f.qZA()),2&Zt){const fe=zt.$implicit;f.Q6J("value",fe.value),f.xp6(1),f.Oqu(fe.label)}}function S(Zt,zt){if(1&Zt&&(f.TgZ(0,"div")(1,"label"),f._uU(2),f.qZA(),f._UZ(3,"br"),f.TgZ(4,"select",59,60),f.YNc(6,se,2,2,"option",15),f.qZA()()),2&Zt){const fe=f.oxw().$implicit;f.xp6(2),f.hij("",fe.default_frontend_label,":"),f.xp6(2),f.Q6J("id",fe.attribute_code)("required",fe.is_required),f.xp6(2),f.Q6J("ngForOf",fe.options)}}function F(Zt,zt){if(1&Zt&&(f.TgZ(0,"div"),f.YNc(1,we,6,3,"div",34),f.YNc(2,ce,6,3,"div",34),f.YNc(3,ve,6,3,"div",34),f.YNc(4,S,7,4,"div",34),f.qZA()),2&Zt){const fe=zt.$implicit;f.xp6(1),f.Q6J("ngIf","text"===fe.frontend_input),f.xp6(1),f.Q6J("ngIf","textarea"===fe.frontend_input),f.xp6(1),f.Q6J("ngIf","boolean"===fe.frontend_input),f.xp6(1),f.Q6J("ngIf","select"===fe.frontend_input)}}function V(Zt,zt){if(1&Zt&&(f.TgZ(0,"mat-option",49),f._uU(1),f.qZA()),2&Zt){const fe=zt.$implicit;f.s9C("value",fe.class_id),f.xp6(1),f.AsE("",fe.class_name," (",fe.class_id,") ")}}function ne(Zt,zt){if(1&Zt){const fe=f.EpF();f.TgZ(0,"div")(1,"mat-checkbox",62),f.NdJ("ngModelChange",function(lt){f.CHM(fe);const Je=f.oxw();return f.KtG(Je.protoReference.fragile=lt)}),f._uU(2),f.ALo(3,"translate"),f.qZA(),f._UZ(4,"br"),f.TgZ(5,"mat-checkbox",63),f.NdJ("ngModelChange",function(lt){f.CHM(fe);const Je=f.oxw();return f.KtG(Je.protoReference.bottle=lt)}),f._uU(6),f.ALo(7,"translate"),f.qZA(),f._UZ(8,"br"),f.TgZ(9,"mat-form-field",11)(10,"mat-label"),f._uU(11),f.ALo(12,"translate"),f.qZA(),f.TgZ(13,"input",64),f.NdJ("ngModelChange",function(lt){f.CHM(fe);const Je=f.oxw();return f.KtG(Je.protoReference.weight=lt)}),f.qZA()(),f.TgZ(14,"label"),f._uU(15),f.ALo(16,"translate"),f.qZA(),f.TgZ(17,"mat-form-field",11)(18,"mat-label"),f._uU(19),f.ALo(20,"translate"),f.qZA(),f.TgZ(21,"input",65),f.NdJ("ngModelChange",function(lt){f.CHM(fe);const Je=f.oxw();return f.KtG(Je.protoReference.size.height=lt)}),f.qZA()(),f.TgZ(22,"mat-form-field",11)(23,"mat-label"),f._uU(24),f.ALo(25,"translate"),f.qZA(),f.TgZ(26,"input",66),f.NdJ("ngModelChange",function(lt){f.CHM(fe);const Je=f.oxw();return f.KtG(Je.protoReference.size.length=lt)}),f.qZA()(),f.TgZ(27,"mat-form-field",11)(28,"mat-label"),f._uU(29),f.ALo(30,"translate"),f.qZA(),f.TgZ(31,"input",67),f.NdJ("ngModelChange",function(lt){f.CHM(fe);const Je=f.oxw();return f.KtG(Je.protoReference.size.width=lt)}),f.qZA()()()}if(2&Zt){const fe=f.oxw();f.xp6(1),f.Q6J("ngModel",fe.protoReference.fragile),f.xp6(1),f.hij(" ",f.lcZ(3,13,"app.products.product.fragile")," "),f.xp6(3),f.Q6J("ngModel",fe.protoReference.bottle),f.xp6(1),f.hij(" ",f.lcZ(7,15,"app.products.product.bottle")," "),f.xp6(5),f.Oqu(f.lcZ(12,17,"app.products.product.weight")),f.xp6(2),f.Q6J("ngModel",fe.protoReference.weight),f.xp6(2),f.hij("",f.lcZ(16,19,"app.products.product.size")," "),f.xp6(4),f.Oqu(f.lcZ(20,21,"app.products.product.height")),f.xp6(2),f.Q6J("ngModel",fe.protoReference.size.height),f.xp6(3),f.Oqu(f.lcZ(25,23,"app.products.product.length")),f.xp6(2),f.Q6J("ngModel",fe.protoReference.size.length),f.xp6(3),f.Oqu(f.lcZ(30,25,"app.products.product.width")),f.xp6(2),f.Q6J("ngModel",fe.protoReference.size.width)}}function De(Zt,zt){if(1&Zt){const fe=f.EpF();f.TgZ(0,"div")(1,"input",68),f.NdJ("ngModelChange",function(lt){f.CHM(fe);const Je=f.oxw();return f.KtG(Je.protoReference.validFrom=lt)}),f.qZA(),f._UZ(2,"mat-datepicker-toggle",69)(3,"mat-datepicker",null,70)(5,"br"),f.qZA()}if(2&Zt){const fe=f.MAs(4),Te=f.oxw();f.xp6(1),f.Q6J("matDatepicker",fe)("ngModel",Te.protoReference.validFrom),f.xp6(1),f.Q6J("for",fe)}}function wt(Zt,zt){if(1&Zt){const fe=f.EpF();f.TgZ(0,"div")(1,"input",71),f.NdJ("ngModelChange",function(lt){f.CHM(fe);const Je=f.oxw();return f.KtG(Je.protoReference.validUntil=lt)}),f.qZA(),f._UZ(2,"mat-datepicker-toggle",69)(3,"mat-datepicker",null,72),f.qZA()}if(2&Zt){const fe=f.MAs(4),Te=f.oxw();f.xp6(1),f.Q6J("matDatepicker",fe)("ngModel",Te.protoReference.validUntil),f.xp6(1),f.Q6J("for",fe)}}function nn(Zt,zt){if(1&Zt){const fe=f.EpF();f.TgZ(0,"mat-card",73)(1,"app-offer",74),f.NdJ("offerChange",function(lt){const Lt=f.CHM(fe).index,Ke=f.oxw();return f.KtG(Ke.protoReference.offers[Lt]=lt)}),f.qZA(),f.TgZ(2,"button",75),f.NdJ("click",function(){const Je=f.CHM(fe).$implicit,Lt=f.oxw();return f.KtG(Lt.onRemoveOffer(Je))}),f.TgZ(3,"mat-icon"),f._uU(4,"remove"),f.qZA(),f._uU(5," Rimuovi offerta "),f.qZA()()}if(2&Zt){const fe=zt.index,Te=f.oxw();f.xp6(1),f.Q6J("categoryAttributes",Te.categoryAttributes)("offer",Te.protoReference.offers[fe])}}function Jt(Zt,zt){1&Zt&&f._UZ(0,"mat-spinner",76)}let un=(()=>{class Zt{constructor(fe,Te,lt,Je,Lt,Ke,ge,Me,_e,it){var dn,ct=this;this.catalogService=fe,this.categoryService=Te,this.auth=lt,this.router=Je,this.pimService=Lt,this.snackbar=Ke,this.translate=ge,this.route=Me,this.chanService=_e,this.partnerService=it,this.loading=!1,this.defaultChannelId=k.N.defaultChannel,this.userChannels=[],this.channelId="",this.loadCategories=!1,this.userCategories=[],this.imsCategoryIds="",this.masters=[],this.categoryChildren=[],this.selectedCategory={},this.categoryAttributes=[],this.keyUpFilter=new A.xQ,this.attributeSetId="",this.taxRates=[],this.authData=lt.currentAuthData,lt.currentAuth.subscribe(dn=>{dn&&(this.authData=dn)}),this.pimImported=!1,this.error="",this.message="",this.protoReference=new i.s3("","",""),this.chanService.getChannel(this.defaultChannelId).subscribe({next:(dn=(0,d.Z)(function*(Rn){ct.protoReference.channelId=ct.defaultChannelId,ct.defaultChannel=Rn.data,yield ct.onChannelChange()}),function(An){return dn.apply(this,arguments)})})}ngOnInit(){var fe=this;this.categoryService.getCategoryRoots().subscribe(Te=>{this.categoryChildren=Te.data.categoryRoots}),this.route.paramMap.subscribe(function(){var Te=(0,d.Z)(function*(lt){const Je=lt.get("partnerId");Je&&(fe.partnerId=Je)});return function(lt){return Te.apply(this,arguments)}}()),this.chanService.getUserChannels(this.partnerId?this.partnerId:this.authData.partnerId).subscribe({next:Te=>{this.userChannels=Te.data}}),this.chanService.getTaxCodes("all",this.defaultChannelId).subscribe({next:Te=>{this.taxRates=Te.data.items}}),this.catalogService.getMasters().subscribe({next:Te=>{this.masters=Te.data}})}ngAfterViewInit(){this.keyUpFilter.pipe((0,p.b)(1e3)).subscribe(()=>{this.protoReference.sku=this.protoReference.sku.replace(/\s+/g,"")})}onCancel(){this.router.navigate(["/catalogue"])}onSubmit(){var fe=this;return(0,d.Z)(function*(){fe.protoReference.attributes=fe.retrieveAttributesFromHTML(),fe.protoReference.attributeSetId=fe.attributeSetId.toString(),fe.protoReference.categoryId=fe.checkCategoryLeaf(fe.protoReference.categoryId),(fe.authData.partnerId||fe.partnerId)&&(fe.loading=!0,fe.protoReference.partnerId=fe.partnerId?fe.partnerId:fe.authData.partnerId,fe.catalogService.createReference(fe.protoReference).subscribe({next:Te=>{fe.snackbar.open(fe.translate.instant("app.products.snackbar.add"),void 0,{duration:3e3}),fe.router.navigate(["/catalogue"]),fe.loading=!1},error:Te=>{fe.snackbar.open(fe.translate.instant("app.products.snackbar.addError"),void 0,{duration:3e3}),console.error(Te),fe.router.navigate(["/catalogue"]),fe.loading=!1}}))})()}retrieveAttributesFromHTML(fe=""){const Te=[];for(let lt=0;lt<this.categoryAttributes.length;lt++){const Je=this.attrNamesRef.find(Lt=>Lt.nativeElement.id===fe+this.categoryAttributes[lt].attribute_code);if(Je){let Lt=""===Je.nativeElement.value?null:Je.nativeElement.value;"boolean"===this.categoryAttributes[lt].frontend_input&&(Lt=Je.nativeElement.checked?1:0),Te.push({attribute:{name:this.categoryAttributes[lt].attribute_code,type:this.categoryAttributes[lt].backend_type,required:this.categoryAttributes[lt].is_required},value:Lt})}}return Te.slice()}onReset(){this.protoReference=new i.s3("","",""),this.pimImported=!1,this.error="",this.message=""}onChannelChange(){var fe=this;return(0,d.Z)(function*(){fe.userCategories=yield fe.loadIMSCategories(fe.protoReference.channelId)})()}onMasterChange(){var fe=this;return(0,d.Z)(function*(){fe.catalogService.getMaster(fe.protoReference.masterId).subscribe({next:lt=>{fe.protoReference.title=lt.data.title,fe.protoReference.description=lt.data.description,fe.protoReference.msrp=lt.data.msrp}})})()}voidMasterFields(){this.protoReference.masterId="",this.protoReference.title="",this.protoReference.description="",this.protoReference.msrp=0}onOfferChannelChange(fe){var Te=this;return(0,d.Z)(function*(){fe.userCategories=yield Te.loadIMSCategories(fe.channelId)})()}loadIMSCategories(fe){var Te=this;return(0,d.Z)(function*(){Te.loadCategories=!0,Te.userCategories=[];const lt=[];return Te.chanService.getCategories(Te.defaultChannel.storeName,Te.defaultChannel._id).subscribe(Je=>{let Lt="";lt.push({id:Je.data.id,name:Lt+Je.data.name}),Lt+=Je.data.name+" > ";let Ke=[];for(let ge=0;ge<Je.data.children_data.length;ge++)Je.data.children_data[ge].prefix=Lt,Ke.push(Je.data.children_data[ge]);for(;Ke.length>0;){let ge=Ke.shift();for(let Me=0;Me<ge.children_data.length;Me++)ge.children_data[Me].prefix=ge.prefix+ge.name+" > ",Ke.push(ge.children_data[Me]);lt.push({id:ge.id,name:ge.prefix+ge.name})}lt.sort(function(Me,_e){return Me.name===_e.name?0:Me.name>_e.name?1:-1}),Te.loadCategories=!1}),lt})()}onBarcodeChange(){var fe=this;return(0,d.Z)(function*(){if(0==fe.protoReference.barcode.length)return fe.pimImported=!1,fe.error="",void(fe.message="");try{const Te=yield fe.pimService.getReferenceDetails(fe.protoReference.barcode);if(!Te)return fe.error="app.products.product.pim-imported.error",fe.message="",void(fe.pimImported=!1);fe.protoReference.title=Te.title,fe.protoReference.description=Te.description,fe.error="",fe.message="app.products.product.pim-imported.message",fe.pimImported=!0}catch{fe.error="app.products.product.pim-imported.error",fe.message="",fe.pimImported=!1}})()}selectGeneralCategory(fe){let Te={};Te._id=fe.value,this.selectCategory(Te,!1,null)}selectCategory(fe,Te,lt){lt&<.stopPropagation();for(let Je=0;Je<this.categoryChildren.length;Je++)this.categoryChildren[Je]._id===fe._id&&(this.selectedCategory=this.categoryChildren[Je]);return this.selectedCategory._id&&!Te&&this.retrieveAttributes(),Te&&this.selectedCategory&&this.selectedCategory._id&&!this.selectedCategory.isLeaf&&this.categoryService.getChildren(this.selectedCategory._id).subscribe(Je=>{this.categoryChildren=Je.data.categoryMany}),Te}retrieveAttributes(){const fe=this.defaultChannel;let Te;this.selectedCategory&&this.selectedCategory.name&&(Te=this.selectedCategory.name.find(lt=>"it-IT"===lt.code)),this.chanService.getAttributeSetByName(fe.storeName,Te.label,fe._id).subscribe(lt=>{this.categoryAttributes=this.pruneAttributes(lt.data.attributes),this.attributeSetId=lt.data.id})}pruneAttributes(fe){const Te=[];for(let lt=0;lt<fe.length;lt++)"indaco_seller"!==fe[lt].attribute_code&&"indaco_brand"!==fe[lt].attribute_code&&"indaco_partner"!==fe[lt].attribute_code?Te.push(fe[lt]):console.log(`campo indaco interno ${fe[lt].attribute_code}, salto la visualizzazione`);return Te}getParentName(){let fe="";return this.selectedCategory&&!this.selectedCategory.isLeaf?(fe=this.categoryService.getCategoryName(this.selectedCategory),fe):(this.selectedCategory&&this.selectedCategory.parent&&this.selectedCategory.isLeaf&&(fe=this.categoryService.getCategoryName(this.selectedCategory.parent)),fe)}goBackToParentCategory(){this.selectedCategory&&this.selectedCategory.parentId&&!this.selectedCategory.isRoot&&!this.selectedCategory.isLeaf?this.categoryService.getCategoryOneById(this.selectedCategory.parentId).subscribe(fe=>{this.selectedCategory=fe.data.categoryOne,this.selectedCategory&&this.selectedCategory._id&&this.categoryService.getChildren(this.selectedCategory._id).subscribe(Te=>{this.categoryChildren=Te.data.categoryMany})}):this.selectedCategory&&this.selectedCategory.parent&&this.selectedCategory.parent.parentId&&!this.selectedCategory.isRoot&&this.selectedCategory.isLeaf?this.categoryService.getCategoryOneById(this.selectedCategory.parent.parentId).subscribe(fe=>{this.selectedCategory=fe.data.categoryOne,this.selectedCategory&&this.selectedCategory._id&&this.categoryService.getChildren(this.selectedCategory._id).subscribe(Te=>{this.categoryChildren=Te.data.categoryMany})}):this.selectedCategory.isRoot?this.categoryService.getCategoryRoots().subscribe(fe=>{setTimeout(()=>{this.categoryChildren=fe.data.categoryRoots,this.selectedCategory={}},0)}):this.selectedCategory.parentId&&this.categoryService.getCategoryOneById(this.selectedCategory.parentId).subscribe(fe=>{this.selectedCategory=fe.data.categoryOne,this.categoryService.getCategoryRoots().subscribe(Te=>{setTimeout(()=>{this.categoryChildren=Te.data.categoryRoots,this.selectedCategory={}},0)})})}onAddOffer(){this.protoReference.attributes=this.retrieveAttributesFromHTML();let fe=new v.V(this.protoReference.sku,0);fe.attributes=this.protoReference.attributes,fe.title=this.protoReference.title,fe.description=this.protoReference.customDescription,fe.sku=this.protoReference.sku,this.protoReference.offers.push(fe)}onRemoveOffer(fe){this.protoReference.offers.splice(this.protoReference.offers.indexOf(fe),1)}checkCategoryLeaf(fe){if(fe===this.selectedCategory._id)return fe}back(){this.router.navigate(["/catalogue"])}}return Zt.\u0275fac=function(fe){return new(fe||Zt)(f.Y36(i.av),f.Y36(b.H),f.Y36(J.e8),f.Y36(Y.F0),f.Y36(W.O),f.Y36(B.ux),f.Y36(Z.sK),f.Y36(Y.gz),f.Y36(G.T),f.Y36(ie.b))},Zt.\u0275cmp=f.Xpm({type:Zt,selectors:[["app-reference-creation"]],viewQuery:function(fe,Te){if(1&fe&&f.Gf(at,5),2&fe){let lt;f.iGM(lt=f.CRH())&&(Te.attrNamesRef=lt)}},decls:167,vars:112,consts:[["class","spinner_overlay",4,"ngIf"],["id","loading-container",4,"ngIf"],["mat-button","","color","primary",3,"click"],[1,"mat-18"],[1,"fill-space"],[1,"container"],["class","error",4,"ngIf"],["class","message",4,"ngIf"],[3,"ngSubmit"],["prodForm","ngForm"],["appearance","outlined",1,"zone","zone-picker"],[1,"full-width"],["matInput","","name","barcode",1,"form-control",3,"ngModel","ngModelChange","change"],[1,"full-width","mt-3"],["required","",3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["matInput","","name","title","type","text","id","title","required","",1,"form-control",3,"readonly","ngModel","ngModelChange"],["matInput","","rows","5","name","description","type","text",1,"form-control",3,"readonly","ngModel","ngModelChange"],["matInput","","rows","5","name","customDescription","type","text",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","customerSku","required","",1,"form-control",3,"ngModel","ngModelChange","keyup"],["matInput","","name","brand",1,"form-control",3,"ngModel","ngModelChange"],["class","full-width",4,"ngIf"],["id","category-attributes"],["myDiv",""],[4,"ngFor","ngForOf"],["matInput","","type","number","name","msrp","required","",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","showMsrp",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","type","number","name","price","required","",1,"form-control",3,"ngModel","ngModelChange"],["required","",3,"value","valueChange"],["type","boolean","name","trackInventory",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","refrigerated",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","sellBelowZero",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","requiresShipping",1,"form-control",3,"ngModel","ngModelChange"],[4,"ngIf"],["type","boolean","name","imsEnabled",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","validFrom",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","validUntil",1,"form-control",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary","type","button",1,"full-width","mt-3","button",3,"click"],["appearance","outlined",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","primary","type","submit",1,"full-width","mt-3","button",2,"float","right",3,"disabled"],["matSuffix","","diameter","16","style","display: inline-flex",4,"ngIf"],[1,"spinner_overlay"],["id","loading-container"],["id","loading-spinner"],[1,"error"],["translate",""],[1,"message"],[3,"value"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["panelClass","matRole","name","categoryId",1,"full-width",3,"ngModel","disableOptionCentering","ngModelChange","selectionChange"],["selector",""],[3,"click",4,"ngIf"],[3,"click"],[1,"category-text","fill-space"],["mat-button","",3,"click",4,"ngIf"],["mat-button","",3,"click"],[1,"material-icons"],[1,"full-width",3,"id","required"],["attrName",""],["type","checkbox",1,"full-width",3,"id","required"],["type","boolean","name","fragile",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","bottle",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","type","number","name","weight",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","type","number","name","height",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","type","number","name","length",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","type","number","name","width",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","validFrom",3,"matDatepicker","ngModel","ngModelChange"],["matIconSuffix","",3,"for"],["fromPicker",""],["matInput","","name","validUntil",3,"matDatepicker","ngModel","ngModelChange"],["untilPicker",""],["appearance","outlined"],[3,"categoryAttributes","offer","offerChange"],["mat-raised-button","","color","warning","type","button",1,"full-width","mt-3","button",3,"click"],["matSuffix","","diameter","16",2,"display","inline-flex"]],template:function(fe,Te){if(1&fe&&(f.YNc(0,pt,1,0,"div",0),f.YNc(1,ft,2,0,"div",1),f.TgZ(2,"mat-toolbar")(3,"button",2),f.NdJ("click",function(){return Te.back()}),f.TgZ(4,"mat-icon"),f._uU(5,"arrow_back"),f.qZA()(),f.TgZ(6,"mat-icon",3),f._uU(7,"sell"),f.qZA(),f._uU(8),f.ALo(9,"translate"),f._UZ(10,"span",4),f.qZA(),f.TgZ(11,"div",5),f.YNc(12,Et,3,1,"p",6),f.YNc(13,be,3,1,"p",7),f.TgZ(14,"form",8,9),f.NdJ("ngSubmit",function(){return Te.onSubmit()}),f.TgZ(16,"mat-card",10)(17,"h3")(18,"mat-icon"),f._uU(19,"description"),f.qZA(),f._uU(20),f.ALo(21,"translate"),f.qZA(),f.TgZ(22,"mat-form-field",11)(23,"mat-label"),f._uU(24),f.ALo(25,"translate"),f.qZA(),f.TgZ(26,"input",12),f.NdJ("ngModelChange",function(Je){return Te.protoReference.barcode=Je})("change",function(){return Te.onBarcodeChange()}),f.qZA()(),f.TgZ(27,"mat-form-field",13)(28,"mat-label"),f._uU(29,"Seleziona un prodotto da cui ereditare i dati"),f.qZA(),f.TgZ(30,"mat-select",14),f.NdJ("valueChange",function(Je){return Te.protoReference.masterId=Je})("selectionChange",function(){return Te.onMasterChange()}),f.YNc(31,Pe,2,2,"mat-option",15),f.qZA(),f.YNc(32,je,3,0,"button",16),f.qZA(),f.TgZ(33,"mat-form-field",11)(34,"mat-label"),f._uU(35),f.ALo(36,"translate"),f.qZA(),f.TgZ(37,"input",17),f.NdJ("ngModelChange",function(Je){return Te.protoReference.title=Je}),f.qZA()(),f.TgZ(38,"mat-form-field",13)(39,"mat-label"),f._uU(40),f.ALo(41,"translate"),f.qZA(),f.TgZ(42,"textarea",18),f.NdJ("ngModelChange",function(Je){return Te.protoReference.description=Je}),f._uU(43," "),f.qZA()(),f.TgZ(44,"mat-form-field",13)(45,"mat-label"),f._uU(46),f.ALo(47,"translate"),f.qZA(),f.TgZ(48,"textarea",19),f.NdJ("ngModelChange",function(Je){return Te.protoReference.customDescription=Je}),f._uU(49," "),f.qZA()(),f.TgZ(50,"mat-form-field",11)(51,"mat-label"),f._uU(52),f.ALo(53,"translate"),f.qZA(),f.TgZ(54,"input",20),f.NdJ("ngModelChange",function(Je){return Te.protoReference.customerSku=Je})("keyup",function(){return Te.keyUpFilter.next()}),f.qZA()(),f.TgZ(55,"mat-form-field",11)(56,"mat-label"),f._uU(57),f.ALo(58,"translate"),f.qZA(),f.TgZ(59,"input",21),f.NdJ("ngModelChange",function(Je){return Te.protoReference.brand=Je}),f.qZA()(),f.YNc(60,Re,9,7,"mat-form-field",22),f.TgZ(61,"mat-expansion-panel")(62,"mat-expansion-panel-header")(63,"mat-panel-title"),f._uU(64),f.qZA(),f.TgZ(65,"mat-panel-description"),f._uU(66," Attributi del prodotto "),f.qZA()(),f.TgZ(67,"div",23,24),f.YNc(69,F,5,4,"div",25),f.qZA()(),f.TgZ(70,"mat-form-field",11)(71,"mat-label"),f._uU(72),f.ALo(73,"translate"),f.qZA(),f.TgZ(74,"input",26),f.NdJ("ngModelChange",function(Je){return Te.protoReference.msrp=Je}),f.qZA()(),f._UZ(75,"br"),f.TgZ(76,"mat-checkbox",27),f.NdJ("ngModelChange",function(Je){return Te.protoReference.showMsrp=Je}),f._uU(77),f.ALo(78,"translate"),f.qZA(),f.TgZ(79,"mat-form-field",11)(80,"mat-label"),f._uU(81),f.ALo(82,"translate"),f.qZA(),f.TgZ(83,"input",28),f.NdJ("ngModelChange",function(Je){return Te.protoReference.price=Je}),f.qZA()(),f.TgZ(84,"mat-form-field",13)(85,"mat-label"),f._uU(86),f.ALo(87,"translate"),f.qZA(),f.TgZ(88,"mat-select",29),f.NdJ("valueChange",function(Je){return Te.protoReference.imsTaxCode=Je}),f.YNc(89,V,2,3,"mat-option",15),f.qZA()()(),f.TgZ(90,"mat-card",10)(91,"h3")(92,"mat-icon"),f._uU(93,"inventory_2"),f.qZA(),f._uU(94),f.ALo(95,"translate"),f.qZA(),f.TgZ(96,"mat-checkbox",30),f.NdJ("ngModelChange",function(Je){return Te.protoReference.trackInventory=Je}),f._uU(97),f.ALo(98,"translate"),f.qZA(),f._UZ(99,"br"),f.TgZ(100,"mat-checkbox",31),f.NdJ("ngModelChange",function(Je){return Te.protoReference.refrigerated=Je}),f._uU(101),f.ALo(102,"translate"),f.qZA(),f._UZ(103,"br"),f.TgZ(104,"mat-checkbox",32),f.NdJ("ngModelChange",function(Je){return Te.protoReference.sellBelowZero=Je}),f._uU(105),f.ALo(106,"translate"),f.qZA(),f._UZ(107,"br"),f.qZA(),f._UZ(108,"br"),f.TgZ(109,"mat-card",10)(110,"h3")(111,"mat-icon"),f._uU(112,"local_shipping"),f.qZA(),f._uU(113),f.ALo(114,"translate"),f.qZA(),f.TgZ(115,"mat-checkbox",33),f.NdJ("ngModelChange",function(Je){return Te.protoReference.requiresShipping=Je}),f._uU(116),f.ALo(117,"translate"),f.qZA(),f.YNc(118,ne,32,27,"div",34),f.qZA(),f._UZ(119,"br"),f.TgZ(120,"mat-card",10)(121,"h3")(122,"mat-icon"),f._uU(123,"visibility"),f.qZA(),f._uU(124),f.ALo(125,"translate"),f.qZA(),f.TgZ(126,"mat-checkbox",35),f.NdJ("ngModelChange",function(Je){return Te.protoReference.imsEnabled=Je}),f._uU(127),f.ALo(128,"translate"),f.qZA(),f._UZ(129,"br"),f.TgZ(130,"mat-checkbox",36),f.NdJ("ngModelChange",function(Je){return Te.protoReference.isValidFrom=Je}),f._uU(131),f.ALo(132,"translate"),f.qZA(),f._UZ(133,"br"),f.YNc(134,De,6,3,"div",34),f.TgZ(135,"mat-checkbox",37),f.NdJ("ngModelChange",function(Je){return Te.protoReference.isValidUntil=Je}),f._uU(136),f.ALo(137,"translate"),f.qZA(),f._UZ(138,"br"),f.YNc(139,wt,5,3,"div",34),f.qZA(),f.TgZ(140,"mat-card",10)(141,"h3")(142,"mat-icon"),f._uU(143,"local_offer"),f.qZA(),f._uU(144),f.qZA(),f.TgZ(145,"button",38),f.NdJ("click",function(){return Te.onAddOffer()}),f.TgZ(146,"mat-icon"),f._uU(147,"add"),f.qZA(),f._uU(148," Aggiungi offerta "),f.qZA(),f.YNc(149,nn,6,2,"mat-card",39),f.qZA(),f.TgZ(150,"p",40)(151,"button",38),f.NdJ("click",function(){return Te.onCancel()}),f.TgZ(152,"mat-icon"),f._uU(153,"cancel"),f.qZA(),f._uU(154),f.ALo(155,"translate"),f.qZA(),f.TgZ(156,"button",38),f.NdJ("click",function(){return Te.onReset()}),f.TgZ(157,"mat-icon"),f._uU(158,"restore"),f.qZA(),f._uU(159),f.ALo(160,"translate"),f.qZA(),f.TgZ(161,"button",41)(162,"mat-icon"),f._uU(163,"add"),f.qZA(),f._uU(164),f.ALo(165,"translate"),f.qZA(),f.YNc(166,Jt,1,0,"mat-spinner",42),f.qZA()()()),2&fe){const lt=f.MAs(15);f.Q6J("ngIf",Te.loading),f.xp6(1),f.Q6J("ngIf",Te.loading),f.xp6(7),f.hij(" ",f.lcZ(9,62,"app.products.product.create.title")," "),f.xp6(4),f.Q6J("ngIf",Te.error),f.xp6(1),f.Q6J("ngIf",Te.message),f.xp6(7),f.hij(" ",f.lcZ(21,64,"app.products.product.basic-information")," "),f.xp6(4),f.Oqu(f.lcZ(25,66,"app.products.product.ean")),f.xp6(2),f.Q6J("ngModel",Te.protoReference.barcode),f.xp6(4),f.Q6J("value",Te.protoReference.masterId),f.xp6(1),f.Q6J("ngForOf",Te.masters),f.xp6(1),f.Q6J("ngIf",Te.protoReference.masterId),f.xp6(3),f.Oqu(f.lcZ(36,68,"app.products.product.title")),f.xp6(2),f.Q6J("readonly",Te.pimImported)("ngModel",Te.protoReference.title),f.xp6(3),f.Oqu(f.lcZ(41,70,"app.products.product.description")),f.xp6(2),f.Q6J("readonly",Te.pimImported)("ngModel",Te.protoReference.description),f.xp6(4),f.Oqu(f.lcZ(47,72,"app.products.product.custom-description")),f.xp6(2),f.Q6J("ngModel",Te.protoReference.customDescription),f.xp6(4),f.Oqu(f.lcZ(53,74,"app.products.product.sku")),f.xp6(2),f.Q6J("ngModel",Te.protoReference.customerSku),f.xp6(3),f.Oqu(f.lcZ(58,76,"app.products.product.brand")),f.xp6(2),f.Q6J("ngModel",Te.protoReference.brand),f.xp6(1),f.Q6J("ngIf",Te.protoReference.channelId),f.xp6(4),f.hij(" Attributi (",Te.categoryAttributes?Te.categoryAttributes.length:0,") "),f.xp6(5),f.Q6J("ngForOf",Te.categoryAttributes),f.xp6(3),f.Oqu(f.lcZ(73,78,"app.products.product.msrp")),f.xp6(2),f.Q6J("ngModel",Te.protoReference.msrp),f.xp6(2),f.Q6J("ngModel",Te.protoReference.showMsrp),f.xp6(1),f.hij(" ",f.lcZ(78,80,"app.products.product.show-msrp")," "),f.xp6(4),f.Oqu(f.lcZ(82,82,"app.products.product.price")),f.xp6(2),f.Q6J("ngModel",Te.protoReference.price),f.xp6(3),f.Oqu(f.lcZ(87,84,"app.products.product.tax-code")),f.xp6(2),f.Q6J("value",Te.protoReference.imsTaxCode),f.xp6(1),f.Q6J("ngForOf",Te.taxRates),f.xp6(5),f.hij(" ",f.lcZ(95,86,"app.products.product.storage")," "),f.xp6(2),f.Q6J("ngModel",Te.protoReference.trackInventory),f.xp6(1),f.hij(" ",f.lcZ(98,88,"app.products.product.track-inventory")," "),f.xp6(3),f.Q6J("ngModel",Te.protoReference.refrigerated),f.xp6(1),f.hij(" ",f.lcZ(102,90,"app.products.product.refrigerated")," "),f.xp6(3),f.Q6J("ngModel",Te.protoReference.sellBelowZero),f.xp6(1),f.hij(" ",f.lcZ(106,92,"app.products.product.sell-below-zero")," "),f.xp6(8),f.hij(" ",f.lcZ(114,94,"app.products.product.shipping")," "),f.xp6(2),f.Q6J("ngModel",Te.protoReference.requiresShipping),f.xp6(1),f.hij(" ",f.lcZ(117,96,"app.products.product.requires-shipping")," "),f.xp6(2),f.Q6J("ngIf",Te.protoReference.requiresShipping),f.xp6(6),f.hij(" ",f.lcZ(125,98,"app.products.product.visibility")," "),f.xp6(2),f.Q6J("ngModel",Te.protoReference.imsEnabled),f.xp6(1),f.hij(" ",f.lcZ(128,100,"app.products.product.imsEnabled")," "),f.xp6(3),f.Q6J("ngModel",Te.protoReference.isValidFrom),f.xp6(1),f.hij(" ",f.lcZ(132,102,"app.products.product.isValidFrom")," "),f.xp6(3),f.Q6J("ngIf",Te.protoReference.isValidFrom),f.xp6(1),f.Q6J("ngModel",Te.protoReference.isValidUntil),f.xp6(1),f.hij(" ",f.lcZ(137,104,"app.products.product.isValidUntil")," "),f.xp6(3),f.Q6J("ngIf",Te.protoReference.isValidUntil),f.xp6(5),f.hij(" Offerte disponibili (",Te.protoReference&&Te.protoReference.offers?Te.protoReference.offers.length:0,") "),f.xp6(5),f.Q6J("ngForOf",Te.protoReference.offers),f.xp6(5),f.hij(" ",f.lcZ(155,106,"shared.buttons.cancel")," "),f.xp6(5),f.hij(" ",f.lcZ(160,108,"shared.buttons.reset")," "),f.xp6(2),f.Q6J("disabled",!lt.form.valid),f.xp6(3),f.hij(" ",f.lcZ(165,110,"shared.buttons.create")," "),f.xp6(2),f.Q6J("ngIf",Te.loading)}},dependencies:[Ee.sg,Ee.O5,ue._Y,ue.YN,ue.Kr,ue.Fj,ue.wV,ue.JJ,ue.JL,ue.Q7,ue.On,ue.F,Ze.lW,Ze.RK,Qe.a8,vt.oG,$e.Mq,$e.hl,$e.nW,Ge.ib,Ge.yz,Ge.yK,Ge.u4,Ce.KE,Ce.hX,Ce.R9,ke.Hw,me.Nt,re.d,ye.gD,Oe.ey,Ae.Ye,tt.Ou,Z.Pi,ot.K,Z.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center;width:50%;margin:20px auto auto}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%;min-width:300px;margin:5px}.error[_ngcontent-%COMP%]{padding:16px;color:#fff;background-color:#a94442;border-radius:10px}.message[_ngcontent-%COMP%]{padding:16px;color:#000;background-color:#93f3ff;border-radius:10px}.button[_ngcontent-%COMP%]{margin:20px} .mat-mdc-form-field .mat-mdc-input-element{color:#708090} .mat-mdc-form-field .mat-form-field-label{color:#708090} .mat-mdc-form-field .mat-form-field-underline{background-color:#708090} .mat-mdc-form-field .mat-form-field-ripple{background-color:#708090} .mat-mdc-form-field .mat-form-field-required-marker{color:#708090} .mat-mdc-form-field.mat-focused .mat-form-field-label{color:#000} .mat-mdc-form-field.mat-focused .mat-form-field-ripple{background-color:#000} .mat-mdc-form-field.mat-focused .mat-form-field-required-marker{color:#000} .mat-mdc-form-field.mat-focused .mat-mdc-input-element{color:#000} .mat-mdc-form-field.mat-form-field-invalid .mat-mdc-input-element{color:#a94442} .mat-mdc-form-field.mat-form-field-invalid .mat-form-field-label{color:#a94442} .mat-mdc-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#a94442} .mat-mdc-form-field.mat-form-field-invalid .mat-form-field-ripple{background-color:#a94442}#loading-container[_ngcontent-%COMP%]{width:100%;padding:30px;margin:auto}#loading-spinner[_ngcontent-%COMP%]{margin:auto;position:absolute;top:50%;left:50%}.spinner_overlay[_ngcontent-%COMP%]{position:fixed;left:0;top:0;width:100%;height:100%;background-color:#fff;opacity:.2;z-index:1000}.category-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}"]}),Zt})()},2156:(vn,_t,y)=>{"use strict";y.d(_t,{T:()=>ht});var d=y(5861),i=y(4006),A=y(396),p=y(7556),v=y(3977),k=y(3254),f=y(2340),b=y(4650),J=y(4911),Y=y(6234),W=y(7646),B=y(4655),Z=y(1266),G=y(6630),ie=y(7009),Ee=y(7198),ue=y(6895),Ze=y(4859),Qe=y(3546),vt=y(6709),$e=y(9602),Ge=y(7084),Ce=y(9549),ke=y(7392),me=y(4144),re=y(8729),ye=y(4385),Oe=y(3238),Ae=y(6308),tt=y(671),ot=y(3683),at=y(1572),pt=y(1447);const ft=["file"],Et=["attrName"];function be(le,pe){if(1&le&&(b.TgZ(0,"mat-card",42)(1,"p",43)(2,"span",44),b._uU(3),b.qZA()()()),2&le){const Q=b.oxw();b.xp6(3),b.Oqu(Q.error)}}function Pe(le,pe){if(1&le&&(b.TgZ(0,"mat-card",42)(1,"p",45)(2,"span",44),b._uU(3),b.qZA()()()),2&le){const Q=b.oxw();b.xp6(3),b.Oqu(Q.message)}}function je(le,pe){if(1&le&&(b.TgZ(0,"mat-option",46),b._uU(1),b.qZA()),2&le){const Q=pe.$implicit;b.s9C("value",Q.class_id),b.xp6(1),b.AsE("",Q.class_name," (",Q.class_id,") ")}}function dt(le,pe){if(1&le){const Q=b.EpF();b.TgZ(0,"mat-option",50),b.NdJ("click",function(){b.CHM(Q),b.oxw();const xt=b.MAs(5);return b.oxw().goBackToParentCategory(),b.KtG(xt.open())}),b.TgZ(1,"mat-icon"),b._uU(2,"arrow_back"),b.qZA(),b.TgZ(3,"span",51),b._uU(4),b.qZA()()}if(2&le){const Q=b.oxw(2);b.xp6(4),b.hij(" ",Q.getParentName()," ")}}function et(le,pe){if(1&le){const Q=b.EpF();b.TgZ(0,"button",53),b.NdJ("click",function(xt){b.CHM(Q);const nt=b.oxw().$implicit;b.oxw();const Ct=b.MAs(5),qe=b.oxw();return b.KtG(qe.selectCategory(nt,!0,xt)&&Ct.open())}),b.TgZ(1,"span",54),b._uU(2," arrow_forward "),b.qZA()()}}function gt(le,pe){if(1&le&&(b.TgZ(0,"mat-option",46)(1,"span",51),b._uU(2),b.qZA(),b.YNc(3,et,3,0,"button",52),b.qZA()),2&le){const Q=pe.$implicit,Fe=b.oxw(2);b.Q6J("value",Q._id),b.xp6(2),b.hij(" ",Fe.categoryService.getCategoryName(Q)," "),b.xp6(1),b.Q6J("ngIf",!Q.isLeaf)}}function Re(le,pe){if(1&le){const Q=b.EpF();b.TgZ(0,"mat-form-field",8)(1,"mat-label"),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"mat-select",47,48),b.NdJ("ngModelChange",function(xt){b.CHM(Q);const nt=b.oxw();return b.KtG(nt.reference.categoryId=xt)})("selectionChange",function(xt){b.CHM(Q);const nt=b.oxw();return b.KtG(nt.selectGeneralCategory(xt))}),b.YNc(6,dt,5,1,"mat-option",49),b._UZ(7,"mat-divider"),b.YNc(8,gt,4,3,"mat-option",16),b.qZA()()}if(2&le){const Q=b.oxw();b.xp6(2),b.Oqu(b.lcZ(3,5,"app.products.product.category")),b.xp6(2),b.Q6J("ngModel",Q.reference.categoryId)("disableOptionCentering",!0),b.xp6(2),b.Q6J("ngIf",Q.selectedCategory._id),b.xp6(2),b.Q6J("ngForOf",Q.categoryChildren)}}function we(le,pe){if(1&le&&(b.TgZ(0,"div")(1,"label"),b._uU(2),b.qZA(),b._UZ(3,"br")(4,"input",55,56),b.qZA()),2&le){const Q=b.oxw().$implicit;b.xp6(2),b.hij("",Q.default_frontend_label,":"),b.xp6(2),b.Q6J("id",Q.attribute_code)("required",Q.is_required)}}function ce(le,pe){if(1&le&&(b.TgZ(0,"div")(1,"label"),b._uU(2),b.qZA(),b._UZ(3,"br")(4,"textarea",55,56),b.qZA()),2&le){const Q=b.oxw().$implicit;b.xp6(2),b.hij("",Q.default_frontend_label,":"),b.xp6(2),b.Q6J("id",Q.attribute_code)("required",Q.is_required)}}function ve(le,pe){if(1&le&&(b.TgZ(0,"div")(1,"label"),b._uU(2),b.qZA(),b._UZ(3,"input",57,56),b.qZA()),2&le){const Q=b.oxw().$implicit;b.xp6(2),b.hij("",Q.default_frontend_label,":"),b.xp6(1),b.Q6J("id",Q.attribute_code)("required",Q.is_required)}}function se(le,pe){if(1&le&&(b.TgZ(0,"option",46),b._uU(1),b.qZA()),2&le){const Q=pe.$implicit;b.Q6J("value",Q.value),b.xp6(1),b.Oqu(Q.label)}}function S(le,pe){if(1&le&&(b.TgZ(0,"div")(1,"label"),b._uU(2),b.qZA(),b._UZ(3,"br"),b.TgZ(4,"select",55,56),b.YNc(6,se,2,2,"option",16),b.qZA()()),2&le){const Q=b.oxw().$implicit;b.xp6(2),b.hij("",Q.default_frontend_label,":"),b.xp6(2),b.Q6J("id",Q.attribute_code)("required",Q.is_required),b.xp6(2),b.Q6J("ngForOf",Q.options)}}function F(le,pe){if(1&le&&(b.TgZ(0,"div"),b.YNc(1,we,6,3,"div",30),b.YNc(2,ce,6,3,"div",30),b.YNc(3,ve,5,3,"div",30),b.YNc(4,S,7,4,"div",30),b.qZA()),2&le){const Q=pe.$implicit;b.xp6(1),b.Q6J("ngIf","text"===Q.frontend_input),b.xp6(1),b.Q6J("ngIf","textarea"===Q.frontend_input),b.xp6(1),b.Q6J("ngIf","boolean"===Q.frontend_input),b.xp6(1),b.Q6J("ngIf","select"===Q.frontend_input)}}function V(le,pe){1&le&&(b.TgZ(0,"span",54),b._uU(1," star_border "),b.qZA())}function ne(le,pe){if(1&le){const Q=b.EpF();b.TgZ(0,"div",58),b.YNc(1,V,2,0,"span",59),b._UZ(2,"img",60),b.TgZ(3,"button",26),b.NdJ("click",function(){const nt=b.CHM(Q).index,Ct=b.oxw();return b.KtG(Ct.onMediaRemove(nt))}),b.TgZ(4,"mat-icon"),b._uU(5,"delete"),b.qZA()(),b._UZ(6,"br")(7,"br"),b.qZA()}if(2&le){const Q=pe.$implicit,Fe=pe.index;b.xp6(1),b.Q6J("ngIf",0===Fe),b.xp6(1),b.Q6J("src",Q.showPath,b.LSH)("alt",Q.name)("title",Q.name)}}function De(le,pe){if(1&le){const Q=b.EpF();b.TgZ(0,"div")(1,"mat-checkbox",61),b.NdJ("ngModelChange",function(xt){b.CHM(Q);const nt=b.oxw();return b.KtG(nt.reference.fragile=xt)}),b._uU(2),b.ALo(3,"translate"),b.qZA(),b._UZ(4,"br"),b.TgZ(5,"mat-checkbox",62),b.NdJ("ngModelChange",function(xt){b.CHM(Q);const nt=b.oxw();return b.KtG(nt.reference.bottle=xt)}),b._uU(6),b.ALo(7,"translate"),b.qZA(),b._UZ(8,"br"),b.TgZ(9,"mat-form-field",8)(10,"mat-label"),b._uU(11),b.ALo(12,"translate"),b.qZA(),b.TgZ(13,"input",63),b.NdJ("ngModelChange",function(xt){b.CHM(Q);const nt=b.oxw();return b.KtG(nt.reference.weight=xt)}),b.qZA()(),b.TgZ(14,"label"),b._uU(15),b.ALo(16,"translate"),b.qZA(),b.TgZ(17,"mat-form-field")(18,"mat-label"),b._uU(19),b.ALo(20,"translate"),b.qZA(),b.TgZ(21,"input",64),b.NdJ("ngModelChange",function(xt){b.CHM(Q);const nt=b.oxw();return b.KtG(nt.reference.size.height=xt)}),b.qZA()(),b.TgZ(22,"mat-form-field")(23,"mat-label"),b._uU(24),b.ALo(25,"translate"),b.qZA(),b.TgZ(26,"input",65),b.NdJ("ngModelChange",function(xt){b.CHM(Q);const nt=b.oxw();return b.KtG(nt.reference.size.length=xt)}),b.qZA()(),b.TgZ(27,"mat-form-field")(28,"mat-label"),b._uU(29),b.ALo(30,"translate"),b.qZA(),b.TgZ(31,"input",66),b.NdJ("ngModelChange",function(xt){b.CHM(Q);const nt=b.oxw();return b.KtG(nt.reference.size.width=xt)}),b.qZA()()()}if(2&le){const Q=b.oxw();b.xp6(1),b.Q6J("ngModel",Q.reference.fragile),b.xp6(1),b.hij(" ",b.lcZ(3,13,"app.products.product.fragile")," "),b.xp6(3),b.Q6J("ngModel",Q.reference.bottle),b.xp6(1),b.hij(" ",b.lcZ(7,15,"app.products.product.bottle")," "),b.xp6(5),b.Oqu(b.lcZ(12,17,"app.products.product.weight")),b.xp6(2),b.Q6J("ngModel",Q.reference.weight),b.xp6(2),b.Oqu(b.lcZ(16,19,"app.products.product.size")),b.xp6(4),b.Oqu(b.lcZ(20,21,"app.products.product.height")),b.xp6(2),b.Q6J("ngModel",Q.reference.size.height),b.xp6(3),b.Oqu(b.lcZ(25,23,"app.products.product.length")),b.xp6(2),b.Q6J("ngModel",Q.reference.size.length),b.xp6(3),b.Oqu(b.lcZ(30,25,"app.products.product.width")),b.xp6(2),b.Q6J("ngModel",Q.reference.size.width)}}function wt(le,pe){if(1&le){const Q=b.EpF();b.TgZ(0,"mat-checkbox",67),b.NdJ("ngModelChange",function(xt){b.CHM(Q);const nt=b.oxw();return b.KtG(nt.reference.sellBelowZero=xt)}),b._uU(1),b.ALo(2,"translate"),b.qZA()}if(2&le){const Q=b.oxw();b.Q6J("ngModel",Q.reference.sellBelowZero),b.xp6(1),b.hij(" ",b.lcZ(2,2,"app.products.product.sell-below-zero")," ")}}function nn(le,pe){1&le&&(b.TgZ(0,"th",80),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&le&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"app.products.product.warehouse.name")," "))}function Jt(le,pe){1&le&&(b.TgZ(0,"span",54),b._uU(1," ac_unit "),b.qZA())}function un(le,pe){if(1&le&&(b.TgZ(0,"td",81),b._uU(1),b.YNc(2,Jt,2,0,"span",59),b.qZA()),2&le){const Q=pe.$implicit;b.xp6(1),b.hij(" ",null==Q.warehouse?null:Q.warehouse.name," "),b.xp6(1),b.Q6J("ngIf",null==Q.warehouse?null:Q.warehouse.refrigerated)}}function Zt(le,pe){1&le&&(b.TgZ(0,"th",80),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&le&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"app.products.product.originalQuantity")," "))}function zt(le,pe){if(1&le&&(b.TgZ(0,"td",81),b._uU(1),b.qZA()),2&le){const Q=pe.$implicit,Fe=b.oxw(2);b.xp6(1),b.hij(" ",Fe.getOriginalAmount(Q)," ")}}function fe(le,pe){1&le&&(b.TgZ(0,"th",80),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&le&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"app.products.product.newQuantity")," "))}function Te(le,pe){if(1&le){const Q=b.EpF();b.TgZ(0,"input",83),b.NdJ("ngModelChange",function(xt){b.CHM(Q);const nt=b.oxw().$implicit;return b.KtG(nt.amount=xt)}),b.qZA()}if(2&le){const Q=b.oxw().$implicit;b.MGl("name","amount",Q.warehouseId,""),b.Q6J("ngModel",Q.amount)}}function lt(le,pe){if(1&le&&(b.TgZ(0,"td",81),b.YNc(1,Te,1,2,"input",82),b.qZA()),2&le){const Q=pe.$implicit,Fe=b.oxw(2);b.xp6(1),b.Q6J("ngIf",Fe.showWarehouse(null==Q.warehouse?null:Q.warehouse._id))}}function Je(le,pe){1&le&&(b.TgZ(0,"th",80),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&le&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"app.products.product.pendingQuantity")," "))}function Lt(le,pe){if(1&le&&(b.TgZ(0,"td",81),b._uU(1),b.qZA()),2&le){const Q=pe.$implicit,Fe=b.oxw(2);b.xp6(1),b.hij(" ",Fe.getWarehousePendingData(Q)," ")}}function Ke(le,pe){1&le&&(b.TgZ(0,"th",80),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&le&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"shared.buttons.remove")," "))}function ge(le,pe){if(1&le){const Q=b.EpF();b.TgZ(0,"button",26),b.NdJ("click",function(){b.CHM(Q);const xt=b.oxw().$implicit,nt=b.oxw(2);return b.KtG(nt.onWarehouseRemove(xt.warehouseId))}),b.TgZ(1,"mat-icon"),b._uU(2,"delete"),b.qZA()()}}function Me(le,pe){if(1&le&&(b.TgZ(0,"td",81),b.YNc(1,ge,3,0,"button",84),b.qZA()),2&le){const Q=pe.$implicit,Fe=b.oxw(2);b.xp6(1),b.Q6J("ngIf",0==Fe.getOriginalAmount(Q))}}function _e(le,pe){1&le&&b._UZ(0,"tr",85)}function it(le,pe){1&le&&b._UZ(0,"tr",86)}function ct(le,pe){1&le&&(b.TgZ(0,"p"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&le&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"app.products.product.no-warehouses")))}function dn(le,pe){1&le&&(b.TgZ(0,"th",80),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&le&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"app.products.product.warehouse.name")," "))}function Rn(le,pe){1&le&&(b.TgZ(0,"span",54),b._uU(1," ac_unit "),b.qZA())}function An(le,pe){if(1&le&&(b.TgZ(0,"td",81),b._uU(1),b.YNc(2,Rn,2,0,"span",59),b.qZA()),2&le){const Q=pe.$implicit;b.xp6(1),b.hij(" ",Q.name," "),b.xp6(1),b.Q6J("ngIf",Q.refrigerated)}}function Gt(le,pe){1&le&&(b.TgZ(0,"th",80),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&le&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"app.products.product.warehouse.add")," "))}function gn(le,pe){if(1&le){const Q=b.EpF();b.TgZ(0,"td",81)(1,"button",37),b.NdJ("click",function(){const nt=b.CHM(Q).$implicit,Ct=b.oxw(3);return b.KtG(Ct.onWarehouseAdd(nt._id))}),b.TgZ(2,"mat-icon"),b._uU(3,"add"),b.qZA()()()}}function St(le,pe){1&le&&b._UZ(0,"tr",85)}function cn(le,pe){1&le&&b._UZ(0,"tr",86)}function Qn(le,pe){if(1&le&&(b.TgZ(0,"table",68,69),b.ynx(2,87),b.YNc(3,dn,3,3,"th",71),b.YNc(4,An,3,2,"td",72),b.BQk(),b.ynx(5,88),b.YNc(6,Gt,3,3,"th",71),b.YNc(7,gn,4,0,"td",72),b.BQk(),b.YNc(8,St,1,0,"tr",77),b.YNc(9,cn,1,0,"tr",78),b.qZA()),2&le){const Q=b.oxw(2);b.Q6J("dataSource",Q.warehouses),b.xp6(8),b.Q6J("matHeaderRowDef",Q.warehouseDisplayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",Q.warehouseDisplayedColumns)}}function ai(le,pe){if(1&le&&(b.TgZ(0,"div")(1,"h3")(2,"mat-icon"),b._uU(3,"warehouse"),b.qZA(),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"table",68,69),b.ynx(8,70),b.YNc(9,nn,3,3,"th",71),b.YNc(10,un,3,2,"td",72),b.BQk(),b.ynx(11,73),b.YNc(12,Zt,3,3,"th",71),b.YNc(13,zt,2,1,"td",72),b.BQk(),b.ynx(14,74),b.YNc(15,fe,3,3,"th",71),b.YNc(16,lt,2,1,"td",72),b.BQk(),b.ynx(17,75),b.YNc(18,Je,3,3,"th",71),b.YNc(19,Lt,2,1,"td",72),b.BQk(),b.ynx(20,76),b.YNc(21,Ke,3,3,"th",71),b.YNc(22,Me,2,1,"td",72),b.BQk(),b.YNc(23,_e,1,0,"tr",77),b.YNc(24,it,1,0,"tr",78),b.qZA(),b._UZ(25,"br"),b.TgZ(26,"mat-expansion-panel")(27,"mat-expansion-panel-header")(28,"mat-panel-title")(29,"h3")(30,"mat-icon"),b._uU(31,"place"),b.qZA(),b._uU(32),b.ALo(33,"translate"),b.qZA()(),b.TgZ(34,"mat-panel-description"),b._uU(35," Magazzini disponibili "),b.qZA()(),b.YNc(36,ct,3,3,"p",30),b.YNc(37,Qn,10,3,"table",79),b.qZA()()),2&le){const Q=b.oxw();b.xp6(4),b.AsE(" ",b.lcZ(5,8,"app.products.product.inventory-levels")," (",Q.reference.quantity,") "),b.xp6(2),b.Q6J("dataSource",Q.reference.inventoryLevels),b.xp6(17),b.Q6J("matHeaderRowDef",Q.inventoryDisplayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",Q.inventoryDisplayedColumns),b.xp6(8),b.hij(" ",b.lcZ(33,10,"app.products.product.available-warehouses")," "),b.xp6(4),b.Q6J("ngIf",0==Q.warehouses.length),b.xp6(1),b.Q6J("ngIf",Q.warehouses.length>0)}}function ze(le,pe){if(1&le){const Q=b.EpF();b.TgZ(0,"div")(1,"input",89),b.NdJ("ngModelChange",function(xt){b.CHM(Q);const nt=b.oxw();return b.KtG(nt.reference.validFrom=xt)}),b.qZA(),b._UZ(2,"mat-datepicker-toggle",90)(3,"mat-datepicker",null,91),b.qZA()}if(2&le){const Q=b.MAs(4),Fe=b.oxw();b.xp6(1),b.Q6J("matDatepicker",Q)("ngModel",Fe.reference.validFrom),b.xp6(1),b.Q6J("for",Q)}}function de(le,pe){if(1&le){const Q=b.EpF();b.TgZ(0,"div")(1,"input",92),b.NdJ("ngModelChange",function(xt){b.CHM(Q);const nt=b.oxw();return b.KtG(nt.reference.validUntil=xt)}),b.qZA(),b._UZ(2,"mat-datepicker-toggle",90)(3,"mat-datepicker",null,93),b.qZA()}if(2&le){const Q=b.MAs(4),Fe=b.oxw();b.xp6(1),b.Q6J("matDatepicker",Q)("ngModel",Fe.reference.validUntil),b.xp6(1),b.Q6J("for",Q)}}function q(le,pe){if(1&le){const Q=b.EpF();b.TgZ(0,"mat-card",42)(1,"app-offer",94),b.NdJ("offerChange",function(xt){b.CHM(Q);const nt=b.oxw().index,Ct=b.oxw();return b.KtG(Ct.reference.offers[nt]=xt)}),b.qZA(),b.TgZ(2,"button",95),b.NdJ("click",function(){b.CHM(Q);const xt=b.oxw().$implicit,nt=b.oxw();return b.KtG(nt.onRemoveOffer(xt))}),b.TgZ(3,"mat-icon"),b._uU(4,"remove"),b.qZA(),b._uU(5," Rimuovi offerta "),b.qZA()()}if(2&le){const Q=b.oxw().index,Fe=b.oxw();b.xp6(1),b.Q6J("categoryAttributes",Fe.categoryAttributes)("offer",Fe.reference.offers[Q])("partnerId",Fe.partnerId)}}function He(le,pe){if(1&le&&(b.TgZ(0,"div"),b.YNc(1,q,6,3,"mat-card",4),b.qZA()),2&le){const Q=pe.$implicit;b.xp6(1),b.Q6J("ngIf",!Q.deleted)}}function yt(le,pe){1&le&&b._UZ(0,"mat-spinner",96)}let ht=(()=>{class le extends p.Mf{constructor(Q,Fe,xt,nt,Ct,qe,We,Rt,Ve,At,fn){var Ln,Ti;super(Q),Ln=this,this.catalogService=Fe,this.pimService=xt,this.warehouseService=nt,this.categoryService=Ct,this.translateService=qe,this.router=We,this.route=Rt,this.translate=Ve,this.snackbar=At,this.chanService=fn,this.loading=!1,this.userCategories=[],this.defaultChannelId=f.N.defaultChannel,this.userChannels=[],this.linkedRecommendations=[],this.userWarehouses=[],this.inventoryDisplayedColumns=["name","quantity","newquantity","pendingQuantity","remove"],this.warehouseDisplayedColumns=["warehouse-name","warehouse-id"],this.categoryChildren=[],this.selectedCategory={},this.categoryAttributes=[],this.attributeSetId="",this.loadCategories=!1,this.taxRates=[],this.pendingQuantities={},this.authData=Q.currentAuthData,Q.currentAuth.subscribe(Ti=>{Ti&&(this.authData=Ti,this.getUserChannels())}),this.pimImported=!1,this.error="",this.message="",this.reference={},this.originalReference={},this.warehouses=new Array,this.images=new Array,this.imageMaxSize=51200,this.imageMultiple=!0,this.imageAccept="image/*",this.imageControl=new i.p4(this.images,[]),this.chanService.getChannel(this.defaultChannelId).subscribe({next:(Ti=(0,d.Z)(function*(Oi){Ln.defaultChannel=Oi.data}),function(zi){return Ti.apply(this,arguments)})})}ngAfterViewInit(){this.attrNamesRef.changes.subscribe(()=>{if(this.reference&&this.reference.attributes)for(let Q=0;Q<this.reference.attributes.length;Q++){const Fe=document.getElementById(this.reference.attributes[Q].attribute.name);"checkbox"===Fe.type&&(Fe.checked=1===this.reference.attributes[Q].value),Fe&&this.reference.attributes[Q].value&&"checkbox"!==Fe.type&&(Fe.value=this.reference.attributes[Q].value.toString())}})}ngOnInit(){var Q=this;return(0,d.Z)(function*(){Q.route.paramMap.subscribe(function(){var Fe=(0,d.Z)(function*(xt){const nt=xt.get("partnerId");nt&&(Q.partnerId=nt);const Ct=xt.get("referenceId");Ct?(Q.originalReference=yield Q.catalogService.getReference(Ct),Q.reference=(0,A.X)(Q.originalReference),yield Q.getUserChannels(),Q.getLinkedReferences(Q.originalReference),Q.reference.categoryId?Q.categoryService.getCategoryOneById(Q.reference.categoryId).subscribe(function(){var qe=(0,d.Z)(function*(We){Q.selectedCategory=We.data.categoryOne,yield Q.getCategoryAttributes(),Q.selectedCategory&&Q.selectedCategory.parentId?Q.categoryService.getChildren(Q.selectedCategory.parentId).subscribe(Rt=>{Q.categoryChildren=Rt.data.categoryMany}):(Q.selectedCategory={},Q.categoryService.getCategoryRoots().subscribe(Rt=>{Q.categoryChildren=Rt.data.categoryRoots}))});return function(We){return qe.apply(this,arguments)}}()):Q.categoryService.getCategoryRoots().subscribe(qe=>{Q.categoryChildren=qe.data.categoryRoots}),Q.reference.attributeSetId&&(Q.attributeSetId=Q.reference.attributeSetId),Q.updateAvailableWarehouses()):Q.router.navigate(["/catalogue"]),Q.warehouseService.getAllPartnerAvailableWarehousesRest(Q.partnerId?Q.partnerId:Q.authData.partnerId).subscribe(qe=>{Q.userWarehouses=qe.data}),Q.imageControl.valueChanges.subscribe(function(){var qe=(0,d.Z)(function*(We){Q.images=We._files;const Rt=Q.images.map(Ve=>Q.loadImagePromise(Ve));yield Promise.all(Rt),console.log(`finished loading ${Q.images.length} media`)});return function(We){return qe.apply(this,arguments)}}());for(let qe=0;qe<Q.reference.offers.length;qe++)console.log("loading categories"),Q.reference.offers[qe].userCategories=Q.getIMSCategories(Q.reference.offers[qe].channelId);Q.getPendingAmount()});return function(xt){return Fe.apply(this,arguments)}}())})()}getLinkedReferences(Q){this.catalogService.getLinkedReferences(Q._id).subscribe(Fe=>{this.linkedRecommendations=Fe.data})}getUserChannels(){var Q=this;return(0,d.Z)(function*(){Q.chanService.getUserChannels(Q.partnerId?Q.partnerId:Q.authData.partnerId).subscribe({next:Fe=>{Q.userChannels=Fe.data,Q.userCategories=Q.getIMSCategories(Q.reference.channelId),Q.chanService.getTaxCodes("all",Q.reference.channelId??Q.userChannels[0]._id).subscribe({next:xt=>{Q.taxRates=xt.data.items}})}})})()}getIMSCategories(Q){this.loadCategories=!0;const Fe=[];return this.chanService.getCategories(this.defaultChannel.storeName,this.defaultChannel._id).subscribe(xt=>{let nt="";Fe.push({id:xt.data.id,name:nt+xt.data.name}),nt+=xt.data.name+" > ";let Ct=[];for(let qe=0;qe<xt.data.children_data.length;qe++)xt.data.children_data[qe].prefix=nt,Ct.push(xt.data.children_data[qe]);for(;Ct.length>0;){let qe=Ct.shift();for(let We=0;We<qe.children_data.length;We++)qe.children_data[We].prefix=qe.prefix+qe.name+" > ",Ct.push(qe.children_data[We]);Fe.push({id:qe.id,name:qe.prefix+qe.name})}Fe.sort(function(We,Rt){return We.name===Rt.name?0:We.name>Rt.name?1:-1}),this.loadCategories=!1}),Fe}onCancel(){this.router.navigate(["/catalogue"])}onSubmit(){var Q=this;return(0,d.Z)(function*(){Q.loading=!0,Q.reference.trackInventory?Q.catalogService.setReferenceInventoryLevelByReferenceIDRest({partnerId:Q.partnerId?Q.partnerId:Q.authData.partnerId,reference:Q.reference}).subscribe({next:xt=>{console.log("finito aggiornamento giacenza"),Q.snackbar.open("Giacenza aggiornata con successo!",void 0,{duration:3e3}),Q.reference=xt.data,Q.updateReference()},error:xt=>{console.error(xt)}}):yield Q.updateReference()})()}updateReference(){var Q=this;return(0,d.Z)(function*(){Q.reference.attributes=Q.retrieveAttributesFromHTML(),Q.reference.attributeSetId=Q.attributeSetId.toString(),Q.reference.categoryId=Q.checkCategoryLeaf(Q.reference.categoryId),Q.catalogService.updateUserReference(Q.reference).subscribe({next:Fe=>{Q.snackbar.open("Prodotto salvato con successo!",void 0,{duration:3e3}),Q.router.navigate(["/catalogue"]),Q.loading=!1},error:Fe=>{console.error(Fe),Q.snackbar.open("Errore nel salvataggio del prodotto",void 0,{duration:3e3}),Q.router.navigate(["/catalogue"]),Q.loading=!1}})})()}retrieveAttributesFromHTML(Q=""){const Fe=[];for(let xt=0;xt<this.categoryAttributes.length;xt++){const nt=Q+this.categoryAttributes[xt].attribute_code,Ct=this.attrNamesRef.find(qe=>qe.nativeElement.id===nt);if(Ct){let qe=""===Ct.nativeElement.value?null:Ct.nativeElement.value;"boolean"===this.categoryAttributes[xt].frontend_input&&(qe=Ct.nativeElement.checked?1:0),Fe.push({attribute:{name:this.categoryAttributes[xt].attribute_code,type:this.categoryAttributes[xt].backend_type,required:this.categoryAttributes[xt].is_required},value:qe})}}return Fe}onWarehouseAdd(Q){var Fe=this;return(0,d.Z)(function*(){if(!Q)return;Fe.reference.inventoryLevels||(Fe.reference.inventoryLevels=[]);const xt=yield Fe.warehouseService.getWarehouse(Q);if(!xt)throw new Error(`No such warehouse ${Q}`);const nt={};nt.warehouseId=Q,nt.warehouse=xt,nt.amount=0,Fe.reference.inventoryLevels=Fe.reference.inventoryLevels.concat(nt),Fe.updateAvailableWarehouses(),Fe.snackbar.open(Fe.translate.instant("app.warehouses.snackbar.add"),void 0,{duration:3e3})})()}onWarehouseRemove(Q){var Fe=this;return(0,d.Z)(function*(){Q&&(Fe.reference.inventoryLevels||(Fe.reference.inventoryLevels=[]),Fe.reference.inventoryLevels=Fe.reference.inventoryLevels.filter(xt=>xt.warehouseId!==Q),Fe.updateAvailableWarehouses(),Fe.snackbar.open(Fe.translate.instant("app.warehouses.snackbar.add"),void 0,{duration:3e3}))})()}onMediaRemove(Q){this.reference.media.splice(Q,1),this.snackbar.open("Immagine rimossa. Salva il prodotto per confermare!",void 0,{duration:3e3})}onReset(){this.reference=(0,A.X)(this.originalReference),this.pimImported=!1,this.error="",this.message=""}onBarcodeChange(){var Q=this;return(0,d.Z)(function*(){if(0==Q.reference.barcode.length)return Q.pimImported=!1,Q.error="",void(Q.message="");try{const Fe=yield Q.pimService.getReferenceDetails(Q.reference.barcode);if(!Fe)return Q.error="app.products.product.pim-imported.error",Q.message="",void(Q.pimImported=!1);Q.reference.title=Fe.title,Q.reference.description=Fe.description,Q.error="",Q.message="app.products.product.pim-imported.message",Q.pimImported=!0}catch{Q.error="app.products.product.pim-imported.error",Q.message="",Q.pimImported=!1}})()}back(){this.router.navigate(["/catalogue"])}getOriginalAmount(Q){return this.originalReference.inventoryLevels.find(Ct=>Ct.warehouseId==Q.warehouseId)?.amount??0}getPendingAmount(){this.warehouseService.getPendingAmountByProduct(this.reference._id,this.partnerId?this.partnerId:this.authData.partnerId).subscribe(Q=>{this.pendingQuantities=Q.data})}getWarehousePendingData(Q){return this.pendingQuantities[Q.warehouseId]}updateAvailableWarehouses(){var Q=this;return(0,d.Z)(function*(){Q.warehouses=[],Q.warehouseService.getWarehousesByReferenceRest(Q.reference._id,Q.partnerId?Q.partnerId:Q.authData.partnerId,!0).subscribe({next:Fe=>{Q.warehouses.push(...Fe.data),Q.filterUsedWarehouses()}})})()}filterUsedWarehouses(){if(this.reference.inventoryLevels)for(const Q of this.reference.inventoryLevels)this.warehouses=this.warehouses.filter(Fe=>Fe._id!==Q.warehouseId)}addFile(){this.file.nativeElement.click()}onFilesAdded(){this.uploadImage(this.file.nativeElement.files[0]),this.file.nativeElement.value=""}uploadImage(Q){Q&&Q.size>=1e7?this.snackbar.open(this.translate.instant("app.products.snackbar.mediaMaxSize"),void 0,{duration:3e3}):(console.log("immagine della dimensione corretta, carico..."),Q&&this.catalogService.uploadReferenceImage(this.reference._id,{name:Q.name,type:Q.type},Q).subscribe(xt=>{this.reference.media&&(this.reference.media.push(xt.data),this.snackbar.open(this.translate.instant("app.products.snackbar.uploadImage"),void 0,{duration:3e3}))}))}loadImagePromise(Q){var Fe=this;return(0,d.Z)(function*(){return new Promise((xt,nt)=>{const Ct=new FileReader;Ct.onload=(0,d.Z)(function*(){if(Ct.result){const qe=Ct.result.split(",")[1],We={name:Q.name,type:Q.type,data:qe};Fe.reference.media&&Fe.reference.media.push(We),console.log(`loaded media ${Q.name}`),xt(We)}else nt(`cannot load ${Q.name}`)}),Ct.onerror=qe=>{nt(qe)},Ct.readAsDataURL(Q)})})()}selectGeneralCategory(Q){let Fe={};Fe._id=Q.value,this.selectCategory(Fe,!1,null)}selectCategory(Q,Fe,xt){xt&&xt.stopPropagation();for(let nt=0;nt<this.categoryChildren.length;nt++)this.categoryChildren[nt]._id===Q._id&&(this.selectedCategory=this.categoryChildren[nt]);return this.selectedCategory._id&&!Fe&&this.retrieveAttributes(),Fe&&this.selectedCategory&&this.selectedCategory._id&&!this.selectedCategory.isLeaf&&this.categoryService.getChildren(this.selectedCategory._id).subscribe(nt=>{this.categoryChildren=nt.data.categoryMany}),Fe}retrieveAttributes(){const Q=this.defaultChannel;let Fe;this.selectedCategory&&this.selectedCategory.name&&(Fe=this.selectedCategory.name.find(xt=>"it-IT"===xt.code)),this.chanService.getAttributeSetByName(Q.storeName,Fe.label,Q._id).subscribe(xt=>{this.categoryAttributes=this.pruneAttributes(xt.data.attributes),this.attributeSetId=xt.data.id})}getParentName(){let Q="";return this.selectedCategory&&!this.selectedCategory.isLeaf?(Q=this.categoryService.getCategoryName(this.selectedCategory),Q):(this.selectedCategory&&this.selectedCategory.parent&&this.selectedCategory.isLeaf&&(Q=this.categoryService.getCategoryName(this.selectedCategory.parent)),Q)}goBackToParentCategory(){this.selectedCategory&&this.selectedCategory.parentId&&!this.selectedCategory.isRoot&&!this.selectedCategory.isLeaf?this.categoryService.getCategoryOneById(this.selectedCategory.parentId).subscribe(Q=>{this.selectedCategory=Q.data.categoryOne,this.selectedCategory&&this.selectedCategory._id&&this.categoryService.getChildren(this.selectedCategory._id).subscribe(Fe=>{this.categoryChildren=Fe.data.categoryMany})}):this.selectedCategory&&this.selectedCategory.parent&&this.selectedCategory.parent.parentId&&!this.selectedCategory.isRoot&&this.selectedCategory.isLeaf?this.categoryService.getCategoryOneById(this.selectedCategory.parent.parentId).subscribe(Q=>{this.selectedCategory=Q.data.categoryOne,this.selectedCategory&&this.selectedCategory._id&&this.categoryService.getChildren(this.selectedCategory._id).subscribe(Fe=>{this.categoryChildren=Fe.data.categoryMany})}):this.selectedCategory.isRoot?this.categoryService.getCategoryRoots().subscribe(Q=>{setTimeout(()=>{this.categoryChildren=Q.data.categoryRoots,this.selectedCategory={}},0)}):this.selectedCategory.parentId&&this.categoryService.getCategoryOneById(this.selectedCategory.parentId).subscribe(Q=>{this.selectedCategory=Q.data.categoryOne,this.categoryService.getCategoryRoots().subscribe(Fe=>{setTimeout(()=>{this.categoryChildren=Fe.data.categoryRoots,this.selectedCategory={}},0)})})}getCategoryAttributes(){var Q=this;return(0,d.Z)(function*(){if(Q.selectedCategory._id){Q.userChannels||(yield Q.getUserChannels());const Fe=Q.defaultChannel;let xt;Q.selectedCategory&&Q.selectedCategory.name&&(xt=Q.selectedCategory.name.find(nt=>"it-IT"===nt.code)),Q.chanService.getAttributeSetByName(Fe.storeName,xt.label,Fe._id).subscribe(nt=>{Q.categoryAttributes=Q.pruneAttributes(nt.data.attributes),Q.attributeSetId=nt.data.id})}})()}pruneAttributes(Q){const Fe=[];for(let xt=0;xt<Q.length;xt++)"indaco_seller"!==Q[xt].attribute_code&&"indaco_brand"!==Q[xt].attribute_code&&"indaco_partner"!==Q[xt].attribute_code?Fe.push(Q[xt]):console.log(`campo indaco interno ${Q[xt].attribute_code}, salto la visualizzazione`);return Fe}checkCategoryLeaf(Q){if(Q===this.selectedCategory._id)return Q}showWarehouse(Q){for(let Fe=0;Fe<this.userWarehouses.length;Fe++)if(Q===this.userWarehouses[Fe]._id)return!0;return!1}onAddOffer(){this.reference.attributes=this.retrieveAttributesFromHTML();let Q=new k.V(this.reference.sku,0);Q.attributes=this.reference.attributes,Q.title=this.reference.title,Q.description=this.reference.customDescription,Q.sku=this.reference.sku,this.reference.offers.push(Q)}onRemoveOffer(Q){this.reference.offers.indexOf(Q)<this.originalReference.offers.length-1?Q.deleted=!0:this.reference.offers.splice(this.reference.offers.indexOf(Q),1)}onChannelChange(Q){var Fe=this;return(0,d.Z)(function*(){Q.userCategories=Fe.getIMSCategories(Q.channelId)})()}drop(Q){(0,v.bA)(this.reference.media,Q.previousIndex,Q.currentIndex),this.snackbar.open("Modifiche registrate! Salva il prodotto per confermare",void 0,{duration:3e3})}}return le.\u0275fac=function(Q){return new(Q||le)(b.Y36(p.e8),b.Y36(J.av),b.Y36(Y.O),b.Y36(W.c),b.Y36(B.H),b.Y36(Z.sK),b.Y36(G.F0),b.Y36(G.gz),b.Y36(Z.sK),b.Y36(ie.ux),b.Y36(Ee.T))},le.\u0275cmp=b.Xpm({type:le,selectors:[["app-reference-edit"]],viewQuery:function(Q,Fe){if(1&Q&&(b.Gf(ft,5),b.Gf(Et,5)),2&Q){let xt;b.iGM(xt=b.CRH())&&(Fe.file=xt.first),b.iGM(xt=b.CRH())&&(Fe.attrNamesRef=xt)}},features:[b.qOj],decls:162,vars:106,consts:[["mat-button","","color","primary",3,"click"],[1,"mat-18"],[1,"fill-space"],[1,"container"],["appearance","outlined",4,"ngIf"],[3,"ngSubmit"],["prodForm","ngForm"],["appearance","outlined",1,"zone","zone-picker"],[1,"full-width"],["matInput","","name","barcode",1,"form-control",3,"ngModel","ngModelChange","change"],["matInput","","name","title","type","text","id","title","required","",1,"form-control",3,"readonly","ngModel","ngModelChange"],[1,"full-width","mt-3"],["matInput","","rows","5","name","description","type","text",1,"form-control",3,"readonly","ngModel","ngModelChange"],["matInput","","rows","5","name","customDescription","type","text",1,"form-control",3,"id","ngModel","ngModelChange"],["matInput","","name","brand",1,"form-control",3,"ngModel","ngModelChange"],["required","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["class","full-width",4,"ngIf"],["id","category-attributes"],["myDiv",""],[4,"ngFor","ngForOf"],["matInput","","type","number","name","msrp","required","",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","showMsrp",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","type","number","name","price","required","",1,"form-control",3,"ngModel","ngModelChange"],["cdkDropList","",3,"cdkDropListDropped"],["cdkDrag","",4,"ngFor","ngForOf"],["mat-raised-button","","color","primary","type","button",3,"click"],["type","file","accept","image/jpeg,image/png",2,"display","none",3,"change"],["file",""],["name","requiresShipping",1,"form-control",3,"ngModel","ngModelChange"],[4,"ngIf"],["type","boolean","name","trackInventory",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","refrigerated",1,"form-control",3,"ngModel","ngModelChange"],["class","full-width","type","boolean","name","sellBelowZero","class","form-control",3,"ngModel","ngModelChange",4,"ngIf"],["type","boolean","name","imsEnabled",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","validFrom",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","validUntil",1,"form-control",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary","type","button",1,"full-width","mt-3","button",3,"click"],[1,"offersDiv"],[1,"buttons"],["mat-raised-button","","color","primary","type","submit",1,"full-width","mt-3","button",2,"float","right",3,"disabled"],["matSuffix","","diameter","16","style","display: inline-flex",4,"ngIf"],["appearance","outlined"],[1,"error"],["translate",""],[1,"message"],[3,"value"],["panelClass","matRole","name","categoryId",1,"full-width",3,"ngModel","disableOptionCentering","ngModelChange","selectionChange"],["selector",""],[3,"click",4,"ngIf"],[3,"click"],[1,"category-text","fill-space"],["mat-button","",3,"click",4,"ngIf"],["mat-button","",3,"click"],[1,"material-icons"],[1,"full-width",3,"id","required"],["attrName",""],["type","checkbox","value","1",1,"full-width",3,"id","required"],["cdkDrag",""],["class","material-icons",4,"ngIf"],[1,"product-image",3,"src","alt","title"],["type","boolean","name","fragile",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","bottle",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","type","number","name","weight",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","type","number","name","height",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","type","number","name","length",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","type","number","name","width",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","sellBelowZero",1,"form-control",3,"ngModel","ngModelChange"],["mat-table","","matSort","",3,"dataSource"],["listingsSort","matSort"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","quantity"],["matColumnDef","newquantity"],["matColumnDef","pendingQuantity"],["matColumnDef","remove"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-table","","matSort","",3,"dataSource",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["matInput","","type","number","class","form-control","required","",3,"name","ngModel","ngModelChange",4,"ngIf"],["matInput","","type","number","required","",1,"form-control",3,"name","ngModel","ngModelChange"],["mat-raised-button","","color","primary","type","button",3,"click",4,"ngIf"],["mat-header-row",""],["mat-row",""],["matColumnDef","warehouse-name"],["matColumnDef","warehouse-id"],["matInput","","name","validFrom",3,"matDatepicker","ngModel","ngModelChange"],["matIconSuffix","",3,"for"],["fromPicker",""],["matInput","","name","validUntil",3,"matDatepicker","ngModel","ngModelChange"],["untilPicker",""],[3,"categoryAttributes","offer","partnerId","offerChange"],["mat-raised-button","","color","warning","type","button",1,"full-width","mt-3","button",3,"click"],["matSuffix","","diameter","16",2,"display","inline-flex"]],template:function(Q,Fe){if(1&Q&&(b.TgZ(0,"mat-toolbar")(1,"button",0),b.NdJ("click",function(){return Fe.back()}),b.TgZ(2,"mat-icon"),b._uU(3,"arrow_back"),b.qZA()(),b.TgZ(4,"mat-icon",1),b._uU(5,"sell"),b.qZA(),b._uU(6),b.ALo(7,"translate"),b._UZ(8,"span",2),b.qZA(),b.TgZ(9,"div",3),b.YNc(10,be,4,1,"mat-card",4),b.YNc(11,Pe,4,1,"mat-card",4),b.TgZ(12,"form",5,6),b.NdJ("ngSubmit",function(){return Fe.onSubmit()}),b.TgZ(14,"mat-card",7)(15,"h3")(16,"mat-icon"),b._uU(17,"description"),b.qZA(),b._uU(18),b.ALo(19,"translate"),b.qZA(),b.TgZ(20,"mat-form-field",8)(21,"mat-label"),b._uU(22),b.ALo(23,"translate"),b.qZA(),b.TgZ(24,"input",9),b.NdJ("ngModelChange",function(nt){return Fe.reference.barcode=nt})("change",function(){return Fe.onBarcodeChange()}),b.qZA()(),b.TgZ(25,"mat-form-field",8)(26,"mat-label"),b._uU(27),b.ALo(28,"translate"),b.qZA(),b.TgZ(29,"input",10),b.NdJ("ngModelChange",function(nt){return Fe.reference.title=nt}),b.qZA()(),b.TgZ(30,"mat-form-field",11)(31,"mat-label"),b._uU(32),b.ALo(33,"translate"),b.qZA(),b.TgZ(34,"textarea",12),b.NdJ("ngModelChange",function(nt){return Fe.reference.description=nt}),b._uU(35," "),b.qZA()(),b.TgZ(36,"mat-form-field",11)(37,"mat-label"),b._uU(38),b.ALo(39,"translate"),b.qZA(),b.TgZ(40,"textarea",13),b.NdJ("ngModelChange",function(nt){return Fe.reference.customDescription=nt}),b._uU(41," "),b.qZA()(),b.TgZ(42,"mat-form-field",8)(43,"mat-label"),b._uU(44),b.ALo(45,"translate"),b.qZA(),b.TgZ(46,"input",14),b.NdJ("ngModelChange",function(nt){return Fe.reference.brand=nt}),b.qZA()(),b.TgZ(47,"mat-form-field",11)(48,"mat-label"),b._uU(49),b.ALo(50,"translate"),b.qZA(),b.TgZ(51,"mat-select",15),b.NdJ("valueChange",function(nt){return Fe.reference.imsTaxCode=nt}),b.YNc(52,je,2,3,"mat-option",16),b.qZA()(),b.YNc(53,Re,9,7,"mat-form-field",17),b.TgZ(54,"mat-expansion-panel")(55,"mat-expansion-panel-header")(56,"mat-panel-title"),b._uU(57),b.qZA(),b.TgZ(58,"mat-panel-description"),b._uU(59," Attributi del prodotto "),b.qZA()(),b.TgZ(60,"div",18,19),b.YNc(62,F,5,4,"div",20),b.qZA()(),b.TgZ(63,"mat-form-field",8)(64,"mat-label"),b._uU(65),b.ALo(66,"translate"),b.qZA(),b.TgZ(67,"input",21),b.NdJ("ngModelChange",function(nt){return Fe.reference.msrp=nt}),b.qZA()(),b.TgZ(68,"mat-checkbox",22),b.NdJ("ngModelChange",function(nt){return Fe.reference.showMsrp=nt}),b._uU(69),b.ALo(70,"translate"),b.qZA(),b._UZ(71,"br"),b.TgZ(72,"mat-form-field",8)(73,"mat-label"),b._uU(74),b.ALo(75,"translate"),b.qZA(),b.TgZ(76,"input",23),b.NdJ("ngModelChange",function(nt){return Fe.reference.price=nt}),b.qZA()()(),b.TgZ(77,"mat-card",7)(78,"h3")(79,"mat-icon"),b._uU(80,"image"),b.qZA(),b._uU(81),b.ALo(82,"translate"),b.qZA(),b.TgZ(83,"div",24),b.NdJ("cdkDropListDropped",function(nt){return Fe.drop(nt)}),b.YNc(84,ne,8,4,"div",25),b.qZA(),b.TgZ(85,"button",26),b.NdJ("click",function(){return Fe.addFile()}),b.TgZ(86,"mat-icon"),b._uU(87,"add"),b.qZA()(),b.TgZ(88,"input",27,28),b.NdJ("change",function(){return Fe.onFilesAdded()}),b.qZA()(),b.TgZ(90,"mat-card",7)(91,"h3")(92,"mat-icon"),b._uU(93,"local_shipping"),b.qZA(),b._uU(94),b.ALo(95,"translate"),b.qZA(),b.TgZ(96,"mat-checkbox",29),b.NdJ("ngModelChange",function(nt){return Fe.reference.requiresShipping=nt}),b._uU(97),b.ALo(98,"translate"),b.qZA(),b.YNc(99,De,32,27,"div",30),b.qZA(),b.TgZ(100,"mat-card",7)(101,"h3")(102,"mat-icon"),b._uU(103,"inventory_2"),b.qZA(),b._uU(104),b.ALo(105,"translate"),b.qZA(),b.TgZ(106,"mat-checkbox",31),b.NdJ("ngModelChange",function(nt){return Fe.reference.trackInventory=nt}),b._uU(107),b.ALo(108,"translate"),b.qZA(),b._UZ(109,"br"),b.TgZ(110,"mat-checkbox",32),b.NdJ("ngModelChange",function(nt){return Fe.reference.refrigerated=nt}),b._uU(111),b.ALo(112,"translate"),b.qZA(),b._UZ(113,"br"),b.YNc(114,wt,3,4,"mat-checkbox",33),b._UZ(115,"br"),b.YNc(116,ai,38,12,"div",30),b.qZA(),b.TgZ(117,"mat-card",7)(118,"h3")(119,"mat-icon"),b._uU(120,"visibility"),b.qZA(),b._uU(121),b.ALo(122,"translate"),b.qZA(),b.TgZ(123,"mat-checkbox",34),b.NdJ("ngModelChange",function(nt){return Fe.reference.imsEnabled=nt}),b._uU(124),b.ALo(125,"translate"),b.qZA(),b.TgZ(126,"mat-checkbox",35),b.NdJ("ngModelChange",function(nt){return Fe.reference.isValidFrom=nt}),b._uU(127),b.ALo(128,"translate"),b.qZA(),b.YNc(129,ze,5,3,"div",30),b.TgZ(130,"mat-checkbox",36),b.NdJ("ngModelChange",function(nt){return Fe.reference.isValidUntil=nt}),b._uU(131),b.ALo(132,"translate"),b.qZA(),b.YNc(133,de,5,3,"div",30),b.qZA(),b.TgZ(134,"mat-card",7)(135,"h3")(136,"mat-icon"),b._uU(137,"local_offer"),b.qZA(),b._uU(138),b.qZA(),b.TgZ(139,"button",37),b.NdJ("click",function(){return Fe.onAddOffer()}),b.TgZ(140,"mat-icon"),b._uU(141,"add"),b.qZA(),b._uU(142," Aggiungi offerta "),b.qZA(),b.TgZ(143,"div",38),b.YNc(144,He,2,1,"div",20),b.qZA()(),b.TgZ(145,"p",39)(146,"button",37),b.NdJ("click",function(){return Fe.onCancel()}),b.TgZ(147,"mat-icon"),b._uU(148,"cancel"),b.qZA(),b._uU(149),b.ALo(150,"translate"),b.qZA(),b.TgZ(151,"button",37),b.NdJ("click",function(){return Fe.onReset()}),b.TgZ(152,"mat-icon"),b._uU(153,"restore"),b.qZA(),b._uU(154),b.ALo(155,"translate"),b.qZA(),b.TgZ(156,"button",40)(157,"mat-icon"),b._uU(158,"save"),b.qZA(),b._uU(159),b.ALo(160,"translate"),b.qZA(),b.YNc(161,yt,1,0,"mat-spinner",41),b.qZA()()()),2&Q){const xt=b.MAs(13);b.xp6(6),b.hij(" ",b.lcZ(7,58,"app.products.product.edit.title")," "),b.xp6(4),b.Q6J("ngIf",Fe.error),b.xp6(1),b.Q6J("ngIf",Fe.message),b.xp6(7),b.hij(" ",b.lcZ(19,60,"app.products.product.basic-information")," "),b.xp6(4),b.Oqu(b.lcZ(23,62,"app.products.product.ean")),b.xp6(2),b.Q6J("ngModel",Fe.reference.barcode),b.xp6(3),b.Oqu(b.lcZ(28,64,"app.products.product.title")),b.xp6(2),b.Q6J("readonly",Fe.pimImported)("ngModel",Fe.reference.title),b.xp6(3),b.Oqu(b.lcZ(33,66,"app.products.product.description")),b.xp6(2),b.Q6J("readonly",Fe.pimImported)("ngModel",Fe.reference.description),b.xp6(4),b.Oqu(b.lcZ(39,68,"app.products.product.custom-description")),b.xp6(2),b.Q6J("id","description")("ngModel",Fe.reference.customDescription),b.xp6(4),b.Oqu(b.lcZ(45,70,"app.products.product.brand")),b.xp6(2),b.Q6J("ngModel",Fe.reference.brand),b.xp6(3),b.Oqu(b.lcZ(50,72,"app.products.product.tax-code")),b.xp6(2),b.Q6J("value",Fe.reference.imsTaxCode),b.xp6(1),b.Q6J("ngForOf",Fe.taxRates),b.xp6(1),b.Q6J("ngIf",Fe.reference.channelId),b.xp6(4),b.hij(" Attributi (",Fe.categoryAttributes?Fe.categoryAttributes.length:0,") "),b.xp6(5),b.Q6J("ngForOf",Fe.categoryAttributes),b.xp6(3),b.Oqu(b.lcZ(66,74,"app.products.product.msrp")),b.xp6(2),b.Q6J("ngModel",Fe.reference.msrp),b.xp6(1),b.Q6J("ngModel",Fe.reference.showMsrp),b.xp6(1),b.hij(" ",b.lcZ(70,76,"app.products.product.show-msrp")," "),b.xp6(5),b.Oqu(b.lcZ(75,78,"app.products.product.price")),b.xp6(2),b.Q6J("ngModel",Fe.reference.price),b.xp6(5),b.hij(" ",b.lcZ(82,80,"app.products.product.images")," "),b.xp6(3),b.Q6J("ngForOf",Fe.reference.media),b.xp6(10),b.hij(" ",b.lcZ(95,82,"app.products.product.shipping")," "),b.xp6(2),b.Q6J("ngModel",Fe.reference.requiresShipping),b.xp6(1),b.hij(" ",b.lcZ(98,84,"app.products.product.requires-shipping")," "),b.xp6(2),b.Q6J("ngIf",Fe.reference.requiresShipping),b.xp6(5),b.hij(" ",b.lcZ(105,86,"app.products.product.storage")," "),b.xp6(2),b.Q6J("ngModel",Fe.reference.trackInventory),b.xp6(1),b.hij(" ",b.lcZ(108,88,"app.products.product.track-inventory")," "),b.xp6(3),b.Q6J("ngModel",Fe.reference.refrigerated),b.xp6(1),b.hij(" ",b.lcZ(112,90,"app.products.product.refrigerated")," "),b.xp6(3),b.Q6J("ngIf",Fe.reference.trackInventory),b.xp6(2),b.Q6J("ngIf",Fe.reference.trackInventory),b.xp6(5),b.hij(" ",b.lcZ(122,92,"app.products.product.visibility")," "),b.xp6(2),b.Q6J("ngModel",Fe.reference.imsEnabled),b.xp6(1),b.hij(" ",b.lcZ(125,94,"app.products.product.imsEnabled")," "),b.xp6(2),b.Q6J("ngModel",Fe.reference.isValidFrom),b.xp6(1),b.hij(" ",b.lcZ(128,96,"app.products.product.isValidFrom")," "),b.xp6(2),b.Q6J("ngIf",Fe.reference.isValidFrom),b.xp6(1),b.Q6J("ngModel",Fe.reference.isValidUntil),b.xp6(1),b.hij(" ",b.lcZ(132,98,"app.products.product.isValidUntil")," "),b.xp6(2),b.Q6J("ngIf",Fe.reference.isValidUntil),b.xp6(5),b.hij(" Offerte disponibili (",Fe.reference&&Fe.reference.offers?Fe.reference.offers.length:0,") "),b.xp6(6),b.Q6J("ngForOf",Fe.reference.offers),b.xp6(5),b.hij(" ",b.lcZ(150,100,"shared.buttons.cancel")," "),b.xp6(5),b.hij(" ",b.lcZ(155,102,"shared.buttons.reset")," "),b.xp6(2),b.Q6J("disabled",!xt.form.valid),b.xp6(3),b.hij(" ",b.lcZ(160,104,"shared.buttons.save")," "),b.xp6(2),b.Q6J("ngIf",Fe.loading)}},dependencies:[ue.sg,ue.O5,v.Wj,v.Zt,i._Y,i.YN,i.Kr,i.Fj,i.wV,i.JJ,i.JL,i.Q7,i.On,i.F,Ze.lW,Qe.a8,vt.oG,$e.Mq,$e.hl,$e.nW,Ge.ib,Ge.yz,Ge.yK,Ge.u4,Ce.KE,Ce.hX,Ce.R9,ke.Hw,me.Nt,re.d,ye.gD,Oe.ey,Ae.YE,tt.BZ,tt.fO,tt.as,tt.w1,tt.Dz,tt.nj,tt.ge,tt.ev,tt.XQ,tt.Gk,ot.Ye,at.Ou,Z.Pi,pt.K,Z.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center;width:50%;margin:20px auto auto}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%;min-width:300px;margin:5px}.mat-mdc-card[_ngcontent-%COMP%]{margin:15px}.error[_ngcontent-%COMP%]{padding:16px;color:#fff;background-color:#a94442;border-radius:10px}.message[_ngcontent-%COMP%]{padding:16px;color:#000;background-color:#93f3ff;border-radius:10px}.button[_ngcontent-%COMP%]{margin:20px}.subsection[_ngcontent-%COMP%]{margin:16px;width:100%;border-radius:5px;border:1px grey} .mat-mdc-form-field .mat-mdc-input-element{color:#708090} .mat-mdc-form-field .mat-form-field-label{color:#708090} .mat-mdc-form-field .mat-form-field-underline{background-color:#708090} .mat-mdc-form-field .mat-form-field-ripple{background-color:#708090} .mat-mdc-form-field .mat-form-field-required-marker{color:#708090} .mat-mdc-form-field.mat-focused .mat-form-field-label{color:#000} .mat-mdc-form-field.mat-focused .mat-form-field-ripple{background-color:#000} .mat-mdc-form-field.mat-focused .mat-form-field-required-marker{color:#000} .mat-mdc-form-field.mat-focused .mat-mdc-input-element{color:#000} .mat-mdc-form-field.mat-form-field-invalid .mat-mdc-input-element{color:#a94442} .mat-mdc-form-field.mat-form-field-invalid .mat-form-field-label{color:#a94442} .mat-mdc-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#a94442} .mat-mdc-form-field.mat-form-field-invalid .mat-form-field-ripple{background-color:#a94442}table[_ngcontent-%COMP%]{width:100%}#loading-container[_ngcontent-%COMP%]{width:100%;padding:30px;margin:auto}#loading-spinner[_ngcontent-%COMP%]{margin:auto;position:absolute;top:50%;left:50%}.spinner_overlay[_ngcontent-%COMP%]{position:fixed;left:0;top:0;width:100%;height:100%;background-color:#fff;opacity:.2;z-index:1000}.category-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}mat-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{object-fit:cover;width:100%;height:80%}.product-image[_ngcontent-%COMP%]{max-height:100px;max-width:200px}.offersDiv[_ngcontent-%COMP%]{display:inline}"]}),le})()},874:(vn,_t,y)=>{"use strict";y.d(_t,{C:()=>vt});var d=y(5861),i=y(4650),A=y(7556),p=y(4911),v=y(6630),k=y(6895),f=y(4859),b=y(7084),J=y(7392),Y=y(6338),W=y(3683),B=y(3238),Z=y(1266);function G($e,Ge){if(1&$e&&(i.TgZ(0,"mat-list-item")(1,"strong"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._uU(4),i.qZA()),2&$e){const Ce=i.oxw();i.xp6(2),i.hij("",i.lcZ(3,2,"app.products.product.weight"),": "),i.xp6(2),i.hij("",Ce.reference.weight," kg ")}}function ie($e,Ge){if(1&$e&&(i.TgZ(0,"mat-list-item")(1,"strong"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._uU(4),i.qZA()),2&$e){const Ce=i.oxw();i.xp6(2),i.hij("",i.lcZ(3,4,"app.products.product.size"),": "),i.xp6(2),i.lnq("",Ce.reference.size.height," x ",Ce.reference.size.length," x ",Ce.reference.size.width," cm ")}}function Ee($e,Ge){if(1&$e&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&$e){const Ce=i.oxw().$implicit;i.xp6(1),i.AsE(" ",Ce.attribute.name," : ",Ce.value," ")}}function ue($e,Ge){if(1&$e&&(i.TgZ(0,"div",11),i.YNc(1,Ee,2,2,"li",6),i.qZA()),2&$e){const Ce=Ge.$implicit;i.xp6(1),i.Q6J("ngIf",Ce.value)}}function Ze($e,Ge){if(1&$e&&i._UZ(0,"img",12),2&$e){const Ce=Ge.$implicit;i.Q6J("src","data:"+Ce.type+";base64,"+Ce.data,i.LSH)("alt",Ce.name)("title",Ce.name)}}function Qe($e,Ge){if(1&$e){const Ce=i.EpF();i.TgZ(0,"mat-list-item")(1,"mat-icon",13),i._uU(2,"place"),i.qZA(),i.TgZ(3,"div",14)(4,"strong"),i._uU(5),i.qZA()(),i.TgZ(6,"div",14),i._uU(7),i.qZA(),i.TgZ(8,"button",15),i.NdJ("click",function(){const re=i.CHM(Ce).$implicit,ye=i.oxw();return i.KtG(ye.goToWarehouse(re.warehouse._id))}),i._uU(9),i.ALo(10,"translate"),i.qZA()()}if(2&$e){const Ce=Ge.$implicit;i.xp6(5),i.Oqu(Ce.warehouse.name),i.xp6(2),i.Oqu(Ce.amount),i.xp6(2),i.Oqu(i.lcZ(10,3,"app.products.product.go-to-warehouse"))}}let vt=(()=>{class $e{constructor(Ce,ke,me,re){this.authService=Ce,this.catalogService=ke,this.route=me,this.router=re,this.reference={},this.authData=Ce.currentAuthData,Ce.currentAuth.subscribe(ye=>{ye&&(this.authData=ye)})}ngOnInit(){this.route.paramMap.subscribe(Ce=>{const ke=Ce.get("id"),me=Ce.get("imsgid");ke?this.getReference(ke):me?this.getReferenceByImsgid(me):this.router.navigate(["/catalogue"])})}getReference(Ce){var ke=this;return(0,d.Z)(function*(){return ke.reference=yield ke.catalogService.getReference(Ce),ke.reference})()}getReferenceByImsgid(Ce){var ke=this;return(0,d.Z)(function*(){return ke.reference=yield ke.catalogService.getReferenceByImsgid(Ce),ke.reference})()}back(){this.router.navigate(["/catalogue"])}goToWarehouse(Ce){this.router.navigate(["/warehouse-details",{id:Ce}])}getCategoryName(){let ke="";const me=localStorage.getItem("indaco-lang")?.replace(/_/g,"-").toLowerCase();if(this.reference&&this.reference.category&&this.reference.category.name)for(let re=0;re<this.reference.category.name.length;re++){if(this.reference.category.name[re].code.toLowerCase()===me)return this.reference.category.name[re].label;const ye=this.reference.category.name[re].code.toLowerCase().split("-"),Oe=me.split("-");(ye[0]===Oe[0]||ye[0]!==Oe[0]&&""===ke)&&(ke=this.reference.category.name[re].label)}return ke}}return $e.\u0275fac=function(Ce){return new(Ce||$e)(i.Y36(A.e8),i.Y36(p.av),i.Y36(v.gz),i.Y36(v.F0))},$e.\u0275cmp=i.Xpm({type:$e,selectors:[["app-reference"]],decls:89,vars:59,consts:[["mat-button","","color","primary",3,"click"],[1,"mat-18"],[1,"fill-space"],[1,"container"],["multi","true"],[3,"expanded"],[4,"ngIf"],["style","white-space: pre-line",4,"ngFor","ngForOf"],[3,"src","alt","title",4,"ngFor","ngForOf"],[1,"material-icons"],[4,"ngFor","ngForOf"],[2,"white-space","pre-line"],[3,"src","alt","title"],["mat-list-icon",""],["mat-line",""],["mat-raised-button","",3,"click"]],template:function(Ce,ke){1&Ce&&(i.TgZ(0,"mat-toolbar")(1,"button",0),i.NdJ("click",function(){return ke.back()}),i.TgZ(2,"mat-icon"),i._uU(3,"arrow_back"),i.qZA()(),i.TgZ(4,"mat-icon",1),i._uU(5,"sell"),i.qZA(),i._uU(6),i.ALo(7,"translate"),i._UZ(8,"span",2),i.qZA(),i.TgZ(9,"div",3)(10,"mat-accordion",4)(11,"mat-expansion-panel",5)(12,"mat-expansion-panel-header")(13,"mat-panel-title")(14,"strong"),i._uU(15),i.ALo(16,"translate"),i.qZA()()(),i.TgZ(17,"mat-list")(18,"mat-list-item")(19,"strong"),i._uU(20),i.ALo(21,"translate"),i.qZA(),i._uU(22),i.qZA(),i.TgZ(23,"mat-list-item")(24,"strong"),i._uU(25),i.ALo(26,"translate"),i.qZA(),i._uU(27),i.qZA(),i.TgZ(28,"mat-list-item")(29,"strong"),i._uU(30),i.ALo(31,"translate"),i.qZA(),i._uU(32),i.qZA(),i.TgZ(33,"mat-list-item")(34,"strong"),i._uU(35),i.ALo(36,"translate"),i.qZA(),i._uU(37),i.qZA(),i.TgZ(38,"mat-list-item")(39,"strong"),i._uU(40),i.ALo(41,"translate"),i.qZA(),i._uU(42),i.qZA(),i.YNc(43,G,5,4,"mat-list-item",6),i.YNc(44,ie,5,6,"mat-list-item",6),i.TgZ(45,"mat-list-item")(46,"strong"),i._uU(47),i.ALo(48,"translate"),i.qZA(),i._uU(49),i.qZA(),i.TgZ(50,"mat-list-item")(51,"strong"),i._uU(52),i.ALo(53,"translate"),i.qZA(),i._uU(54),i.qZA()()(),i.TgZ(55,"mat-expansion-panel")(56,"mat-expansion-panel-header")(57,"mat-panel-title")(58,"strong"),i._uU(59),i.ALo(60,"translate"),i.qZA()()(),i.TgZ(61,"mat-list")(62,"mat-list-item")(63,"strong"),i._uU(64),i.ALo(65,"translate"),i.qZA(),i._uU(66),i.qZA(),i.TgZ(67,"mat-list-item")(68,"strong"),i._uU(69),i.ALo(70,"translate"),i.qZA()(),i.TgZ(71,"ul"),i.YNc(72,ue,2,1,"div",7),i.qZA()()(),i.TgZ(73,"mat-expansion-panel")(74,"mat-expansion-panel-header")(75,"mat-icon"),i._uU(76,"image"),i.qZA(),i._uU(77),i.ALo(78,"translate"),i.qZA(),i.YNc(79,Ze,1,3,"img",8),i.qZA(),i.TgZ(80,"mat-expansion-panel")(81,"mat-expansion-panel-header")(82,"mat-panel-title")(83,"span",9),i._uU(84," inventory_2 "),i.qZA(),i._uU(85),i.ALo(86,"translate"),i.qZA()(),i.TgZ(87,"mat-list"),i.YNc(88,Qe,11,5,"mat-list-item",10),i.qZA()()()()),2&Ce&&(i.xp6(6),i.AsE(" ",i.lcZ(7,31,"app.products.product.title")," ",ke.reference.title," "),i.xp6(5),i.Q6J("expanded",!0),i.xp6(4),i.Oqu(i.lcZ(16,33,"app.products.product.accordion.header")),i.xp6(5),i.hij("",i.lcZ(21,35,"app.products.product.denomination"),":"),i.xp6(2),i.hij(" ",ke.reference.description," "),i.xp6(3),i.hij("",i.lcZ(26,37,"app.products.product.price"),":"),i.xp6(2),i.hij(" ",ke.reference.price," "),i.xp6(3),i.hij("",i.lcZ(31,39,"app.products.product.sku"),":"),i.xp6(2),i.hij(" ",ke.reference.sku,""),i.xp6(3),i.hij("",i.lcZ(36,41,"app.products.product.barcode"),":"),i.xp6(2),i.hij(" ",ke.reference.barcode," "),i.xp6(3),i.hij("",i.lcZ(41,43,"app.products.product.requires-shipping"),":"),i.xp6(2),i.hij(" ",ke.reference.requiresShipping," "),i.xp6(1),i.Q6J("ngIf",ke.reference.weight&&ke.reference.requiresShipping),i.xp6(1),i.Q6J("ngIf",ke.reference.size&&ke.reference.requiresShipping),i.xp6(3),i.hij("",i.lcZ(48,45,"app.products.product.createdAt"),":"),i.xp6(2),i.hij(" ",ke.reference.createdAt," "),i.xp6(3),i.hij("",i.lcZ(53,47,"app.products.product.updatedAt"),": "),i.xp6(2),i.hij("",ke.reference.updatedAt," "),i.xp6(5),i.Oqu(i.lcZ(60,49,"app.products.product.accordion.category")),i.xp6(5),i.hij("",i.lcZ(65,51,"app.products.product.category"),":"),i.xp6(2),i.hij(" ",ke.getCategoryName()," "),i.xp6(3),i.hij("",i.lcZ(70,53,"app.products.product.attributes"),":"),i.xp6(3),i.Q6J("ngForOf",ke.reference.attributes),i.xp6(5),i.AsE(" ",i.lcZ(78,55,"app.products.product.images")," (",ke.reference.media?ke.reference.media.length:0,") "),i.xp6(2),i.Q6J("ngForOf",ke.reference.media),i.xp6(6),i.AsE(" ",i.lcZ(86,57,"app.products.product.accordion.inventory")," (",ke.reference.inventoryLevels?ke.reference.inventoryLevels.length:0,") "),i.xp6(3),i.Q6J("ngForOf",ke.reference.inventoryLevels))},dependencies:[k.sg,k.O5,f.lW,b.pp,b.ib,b.yz,b.yK,J.Hw,Y.i$,Y.Tg,W.Ye,B.X2,Z.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center}"]}),$e})()},8192:(vn,_t,y)=>{"use strict";y.d(_t,{x:()=>fe});var d=y(5861),i=y(671),A=y(6),p=y(4650),v=y(4911),k=y(7198),f=y(5998),b=y(6234),J=y(6466),Y=y(5412),W=y(7556),B=y(6630),Z=y(1266),G=y(7009),ie=y(6895),Ee=y(4859),ue=y(9549),Ze=y(7392),Qe=y(4144),vt=y(8739),$e=y(4385),Ge=y(3238),Ce=y(6308),ke=y(3848),me=y(3683);const re=["referencesPaginator"],ye=["referencesSort"];function Oe(Te,lt){if(1&Te&&(p.TgZ(0,"mat-option",29),p._uU(1),p.qZA()),2&Te){const Je=lt.$implicit;p.s9C("value",Je._id),p.xp6(1),p.Oqu(Je.name)}}function Ae(Te,lt){if(1&Te){const Je=p.EpF();p.TgZ(0,"mat-form-field")(1,"mat-select",27),p.NdJ("valueChange",function(Ke){p.CHM(Je);const ge=p.oxw();return p.KtG(ge.channelId=Ke)})("selectionChange",function(Ke){p.CHM(Je);const ge=p.oxw();return p.KtG(ge.loadReferences(Ke))}),p.YNc(2,Oe,2,2,"mat-option",28),p.qZA()()}if(2&Te){const Je=p.oxw();p.xp6(1),p.Q6J("value",Je.channelId),p.xp6(1),p.Q6J("ngForOf",Je.userChannels)}}function tt(Te,lt){1&Te&&(p.TgZ(0,"mat-icon",30),p._uU(1,"assignment"),p.qZA(),p._uU(2),p.ALo(3,"translate")),2&Te&&(p.xp6(2),p.hij(" ",p.lcZ(3,1,"app.products.catalog.title")," "))}function ot(Te,lt){1&Te&&(p.TgZ(0,"th",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Te&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.products.product.denomination")," "))}function at(Te,lt){if(1&Te&&(p.TgZ(0,"td",32),p._uU(1),p.qZA()),2&Te){const Je=lt.$implicit;p.xp6(1),p.hij(" ",Je.title," ")}}function pt(Te,lt){1&Te&&(p.TgZ(0,"th",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Te&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.products.product.description")," "))}function ft(Te,lt){if(1&Te&&(p.TgZ(0,"td",32),p._uU(1),p.qZA()),2&Te){const Je=lt.$implicit;p.xp6(1),p.hij(" ",Je.description," ")}}function Et(Te,lt){1&Te&&(p.TgZ(0,"th",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Te&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.products.product.brand")," "))}function be(Te,lt){if(1&Te&&(p.TgZ(0,"td",32),p._uU(1),p.qZA()),2&Te){const Je=lt.$implicit;p.xp6(1),p.hij(" ",Je.brand," ")}}function Pe(Te,lt){1&Te&&(p.TgZ(0,"th",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Te&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.products.product.refrigerated")," "))}function je(Te,lt){1&Te&&(p.TgZ(0,"span",34),p._uU(1," ac_unit "),p.qZA())}function dt(Te,lt){if(1&Te&&(p.TgZ(0,"td",32),p.YNc(1,je,2,0,"span",33),p.qZA()),2&Te){const Je=lt.$implicit;p.xp6(1),p.Q6J("ngIf",Je.refrigerated)}}function et(Te,lt){1&Te&&(p.TgZ(0,"th",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Te&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.products.product.sku")," "))}function gt(Te,lt){if(1&Te&&(p.TgZ(0,"td",32),p._uU(1),p.qZA()),2&Te){const Je=lt.$implicit;p.xp6(1),p.hij(" ",Je.sku," ")}}function Re(Te,lt){1&Te&&(p.TgZ(0,"th",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Te&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.products.product.barcode")," "))}function we(Te,lt){if(1&Te&&(p.TgZ(0,"td",32),p._uU(1),p.qZA()),2&Te){const Je=lt.$implicit;p.xp6(1),p.hij(" ",Je.barcode," ")}}function ce(Te,lt){1&Te&&(p.TgZ(0,"th",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Te&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.products.product.msrp")," "))}function ve(Te,lt){if(1&Te&&(p.TgZ(0,"td",32),p._uU(1),p.qZA()),2&Te){const Je=lt.$implicit;p.xp6(1),p.hij(" ",Je.msrp," ")}}function se(Te,lt){1&Te&&(p.TgZ(0,"th",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Te&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.products.product.weight")," "))}function S(Te,lt){if(1&Te&&(p.TgZ(0,"td",32),p._uU(1),p.qZA()),2&Te){const Je=lt.$implicit;p.xp6(1),p.hij(" ",Je.weight," ")}}function F(Te,lt){1&Te&&(p.TgZ(0,"th",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Te&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.products.product.quantity")," "))}function V(Te,lt){if(1&Te&&(p.TgZ(0,"td",32),p._uU(1),p.qZA()),2&Te){const Je=lt.$implicit,Lt=p.oxw();p.xp6(1),p.hij(" ",Lt.showQuantity(Je)," ")}}function ne(Te,lt){1&Te&&(p.TgZ(0,"th",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Te&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.products.product.imsEnabled")," "))}function De(Te,lt){1&Te&&(p.TgZ(0,"span",34),p._uU(1," visibility_off "),p.qZA())}function wt(Te,lt){if(1&Te&&(p.TgZ(0,"td",32),p.YNc(1,De,2,0,"span",33),p.qZA()),2&Te){const Je=lt.$implicit;p.xp6(1),p.Q6J("ngIf",!Je.imsEnabled)}}function nn(Te,lt){1&Te&&(p.TgZ(0,"th",35),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&Te&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"shared.buttons.actions")," "))}function Jt(Te,lt){if(1&Te){const Je=p.EpF();p.TgZ(0,"td",32)(1,"button",36),p.NdJ("click",function(){const ge=p.CHM(Je).$implicit,Me=p.oxw();return p.KtG(Me.onReferenceEdit(ge))}),p.TgZ(2,"mat-icon"),p._uU(3,"edit"),p.qZA()(),p.TgZ(4,"button",36),p.NdJ("click",function(){const ge=p.CHM(Je).$implicit,Me=p.oxw();return p.KtG(Me.showReferenceDetails(ge._id))}),p.TgZ(5,"mat-icon"),p._uU(6,"info"),p.qZA()(),p.TgZ(7,"button",36),p.NdJ("click",function(){const ge=p.CHM(Je).$implicit,Me=p.oxw();return p.KtG(Me.onDeleteReference(ge))}),p.TgZ(8,"mat-icon"),p._uU(9,"delete"),p.qZA()()()}}function un(Te,lt){1&Te&&p._UZ(0,"tr",37)}function Zt(Te,lt){1&Te&&p._UZ(0,"tr",38)}const zt=function(){return[5,10,20]};let fe=(()=>{class Te{constructor(Je,Lt,Ke,ge,Me,_e,it,ct,dn,Rn,An){this.catalogService=Je,this.channelService=Lt,this.listService=Ke,this.pimService=ge,this.buyButtonNavigationService=Me,this.dialog=_e,this.auth=it,this.router=ct,this.changeDetectorRefs=dn,this.translate=Rn,this.snackbar=An,this.tabIndex=0,this.channelId="",this.userChannels=[],this.userCatalog=[],this.userListings=[],this.selectedId=[],this.referencesDataSource=new i.by(this.userCatalog),this.referencesDisplayedColumns=["title","description","brand","refrigerated","sku","price","weight","quantity","visible","actions"],this.authData=it.currentAuthData,it.currentAuth.subscribe(Gt=>{Gt&&(this.authData=Gt)})}ngOnInit(){var Je=this;return(0,d.Z)(function*(){Je.userCatalog=[],Je.channel?Je.channelService.getUserOwnedChannels(Je.partnerId?Je.partnerId:Je.authData.partnerId).subscribe({next:Lt=>{Je.userChannels=Lt.data,Lt.data&&Lt.data.length>0&&(Je.channelId=Lt.data[0]._id,Je.catalogService.getReferencesByChannel(Lt.data[0]._id).subscribe({next:Ke=>{Je.userCatalog=Ke.data,Je.referencesDataSource.data=Je.userCatalog,Je.referencesDataSource.paginator=Je.referencesPaginator,Je.referencesDataSource.sort=Je.referencesSort,Je.referencesSort.direction="desc",Je.referencesSort.active="title"},error:Ke=>{console.error(Ke)}}))}}):Je.catalogService.getUserReferences(Je.partnerId?Je.partnerId:Je.authData.partnerId).subscribe({next:Lt=>{for(let Ke=0;Ke<Lt.data.length;Ke++)Je.userCatalog.push(Lt.data[Ke]),Je.selectedId.push(""),Je.referencesDataSource.data=Je.userCatalog,Je.referencesDataSource.paginator=Je.referencesPaginator,Je.referencesDataSource.sort=Je.referencesSort,Je.referencesSort.direction="desc",Je.referencesSort.active="title"},error:Lt=>{console.error(Lt)}})})()}onAdd(){this.router.navigate([this.partnerId?"/admin/createReference":"/createReference",this.partnerId?{partnerId:this.partnerId}:{}])}onReferenceEdit(Je){this.router.navigate([this.partnerId?"/admin/editReference":"/editReference",this.partnerId?{referenceId:Je._id,partnerId:this.partnerId}:{referenceId:Je._id}])}onDetails(Je){try{this.pimService.getReferenceDetails(Je).then(({data:Lt})=>{if(-1==Lt.reference.sku)this.error="No reference found with the specified ID";else{var Ke=this.userCatalog.find(ge=>ge.sku===Lt.reference.sku);Ke&&(Ke.title=Lt.reference.title,Ke.description=Lt.reference.description)}},({})=>{this.error="Something went wrong contacting the service"})}catch(Lt){this.error=`Something went wrong contacting the service. ${Lt}`}}onDeleteReference(Je){var Lt=this;if(0===this.tabIndex){const Ke=this.translate.instant("app.products.modals.delete.message"),ge=this.translate.instant("app.products.modals.delete.title");this.dialog.open(A.q,{maxWidth:"400px",data:{message:Ke,title:ge}}).afterClosed().subscribe(function(){var Me=(0,d.Z)(function*(_e){var it;_e&&Lt.catalogService.deleteUserReference(Je).subscribe({next:(it=(0,d.Z)(function*(ct){const dn=Lt.userCatalog.findIndex(Rn=>Rn._id===Je._id);Lt.userCatalog.splice(dn,1),Lt.referencesDataSource.data=Lt.userCatalog,Lt.snackbar.open(Lt.translate.instant("shared.snackbar.deleteConfirmation"),void 0,{duration:3e3})}),function(dn){return it.apply(this,arguments)}),error:it=>{console.error(it),Lt.error=`Something went wrong deleting the reference. ${it}`}})});return function(_e){return Me.apply(this,arguments)}}())}}showReferenceDetails(Je){var Lt=this;return(0,d.Z)(function*(){Lt.router.navigate([Lt.partnerId?"/admin/reference":"/reference",{id:Je}])})()}createReferenceBuyButton(Je){this.router.navigate(["/buy-button",{sku:Je.sku,channel:Je.channelId}])}goToBuyButtonCreation(Je,Lt){this.buyButtonNavigationService.goToCustomization(Je,Lt.split("/").slice(-1)[0])}applyFilter(Je){Je.value&&(this.referencesDataSource.filter=Je.value.trim().toLowerCase())}loadReferences(Je){this.userCatalog=[],this.catalogService.getReferencesByChannel(Je.value).subscribe({next:Lt=>{this.userCatalog=Lt.data,this.referencesDataSource.data=this.userCatalog,this.referencesDataSource.paginator=this.referencesPaginator,this.referencesDataSource.sort=this.referencesSort,this.referencesSort.direction="desc",this.referencesSort.active="title"},error:Lt=>{console.error(Lt)}})}showQuantity(Je){let Lt=0;for(let Ke=0;Ke<Je.inventoryLevels.length;Ke++)Lt+=parseFloat(Je.inventoryLevels[Ke].amount);return Lt}}return Te.\u0275fac=function(Je){return new(Je||Te)(p.Y36(v.av),p.Y36(k.T),p.Y36(f.o),p.Y36(b.O),p.Y36(J.i),p.Y36(Y.uw),p.Y36(W.e8),p.Y36(B.F0),p.Y36(p.sBO),p.Y36(Z.sK),p.Y36(G.ux))},Te.\u0275cmp=p.Xpm({type:Te,selectors:[["app-references"]],viewQuery:function(Je,Lt){if(1&Je&&(p.Gf(re,5),p.Gf(ye,5)),2&Je){let Ke;p.iGM(Ke=p.CRH())&&(Lt.referencesPaginator=Ke.first),p.iGM(Ke=p.CRH())&&(Lt.referencesSort=Ke.first)}},inputs:{partnerId:"partnerId",channel:"channel"},decls:57,vars:16,consts:[[1,"fill-space"],[4,"ngIf"],["id","search","matInput","",3,"placeholder","keyup"],["mat-button","","color","primary",3,"click"],[1,"container"],["mat-tab-label",""],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["referencesSort","matSort"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","brand"],["matColumnDef","refrigerated"],["matColumnDef","sku"],["matColumnDef","barcode"],["matColumnDef","price"],["matColumnDef","weight"],["matColumnDef","quantity"],["matColumnDef","visible"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"footerPaginator"],["showFirstLastButtons","","aria-label","Select page of products",3,"pageSize","pageSizeOptions"],["referencesPaginator",""],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-18"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","material-icons",4,"ngIf"],[1,"material-icons"],["mat-header-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(Je,Lt){1&Je&&(p.TgZ(0,"mat-toolbar")(1,"mat-icon"),p._uU(2,"sell"),p.qZA(),p._uU(3),p.ALo(4,"translate"),p._UZ(5,"span",0),p.YNc(6,Ae,3,2,"mat-form-field",1),p.TgZ(7,"mat-form-field")(8,"input",2),p.NdJ("keyup",function(ge){return Lt.applyFilter(ge.target)}),p.ALo(9,"translate"),p.qZA()(),p.TgZ(10,"button",3),p.NdJ("click",function(){return Lt.onAdd()}),p._uU(11),p.ALo(12,"translate"),p.TgZ(13,"mat-icon"),p._uU(14,"add"),p.qZA()()(),p.TgZ(15,"div",4),p.YNc(16,tt,4,3,"ng-template",5),p.TgZ(17,"table",6,7),p.ynx(19,8),p.YNc(20,ot,3,3,"th",9),p.YNc(21,at,2,1,"td",10),p.BQk(),p.ynx(22,11),p.YNc(23,pt,3,3,"th",9),p.YNc(24,ft,2,1,"td",10),p.BQk(),p.ynx(25,12),p.YNc(26,Et,3,3,"th",9),p.YNc(27,be,2,1,"td",10),p.BQk(),p.ynx(28,13),p.YNc(29,Pe,3,3,"th",9),p.YNc(30,dt,2,1,"td",10),p.BQk(),p.ynx(31,14),p.YNc(32,et,3,3,"th",9),p.YNc(33,gt,2,1,"td",10),p.BQk(),p.ynx(34,15),p.YNc(35,Re,3,3,"th",9),p.YNc(36,we,2,1,"td",10),p.BQk(),p.ynx(37,16),p.YNc(38,ce,3,3,"th",9),p.YNc(39,ve,2,1,"td",10),p.BQk(),p.ynx(40,17),p.YNc(41,se,3,3,"th",9),p.YNc(42,S,2,1,"td",10),p.BQk(),p.ynx(43,18),p.YNc(44,F,3,3,"th",9),p.YNc(45,V,2,1,"td",10),p.BQk(),p.ynx(46,19),p.YNc(47,ne,3,3,"th",9),p.YNc(48,wt,2,1,"td",10),p.BQk(),p.ynx(49,20),p.YNc(50,nn,3,3,"th",21),p.YNc(51,Jt,10,0,"td",10),p.BQk(),p.YNc(52,un,1,0,"tr",22),p.YNc(53,Zt,1,0,"tr",23),p.qZA(),p.TgZ(54,"div",24),p._UZ(55,"mat-paginator",25,26),p.qZA()()),2&Je&&(p.xp6(3),p.hij(" ",p.lcZ(4,9,"app.products.title")," "),p.xp6(3),p.Q6J("ngIf",Lt.channel),p.xp6(2),p.s9C("placeholder",p.lcZ(9,11,"shared.search.title")),p.xp6(3),p.hij(" ",p.lcZ(12,13,"shared.buttons.add")," "),p.xp6(6),p.Q6J("dataSource",Lt.referencesDataSource),p.xp6(35),p.Q6J("matHeaderRowDef",Lt.referencesDisplayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",Lt.referencesDisplayedColumns),p.xp6(2),p.Q6J("pageSize",20)("pageSizeOptions",p.DdM(15,zt)))},dependencies:[ie.sg,ie.O5,Ee.lW,Ee.RK,ue.KE,Ze.Hw,Qe.Nt,vt.NW,$e.gD,Ge.ey,Ce.YE,Ce.nU,i.BZ,i.fO,i.as,i.w1,i.Dz,i.nj,i.ge,i.ev,i.XQ,i.Gk,ke.uD,me.Ye,Z.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center}mat-card-title[_ngcontent-%COMP%], mat-card-content[_ngcontent-%COMP%]{display:flex;justify-content:center}mat-card[_ngcontent-%COMP%]{margin-bottom:.2em}.error[_ngcontent-%COMP%]{padding:16px;width:300px;color:#fff;background-color:red}.button[_ngcontent-%COMP%]{display:flex;justify-content:center}.product[_ngcontent-%COMP%]{display:block}.mat-list-test[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap}.mat-mdc-list-base[_ngcontent-%COMP%] .mat-mdc-list-item.mat-list-item-test[_ngcontent-%COMP%]{display:initial;width:auto}table[_ngcontent-%COMP%]{width:100%;overflow:auto;max-height:300px;table-layout:fixed}.footer[_ngcontent-%COMP%]{position:fixed;left:0;bottom:0;width:100%;background-color:red;color:#fff;text-align:center}"]}),Te})()},3267:(vn,_t,y)=>{"use strict";y.d(_t,{k:()=>Hn});var d=y(5861),i=y(671),A=y(396),p=y(7556),v=y(5412),k=y(7646),f=y(4650),b=y(220),J=y(6895),Y=y(4006),W=y(4859),B=y(6709),Z=y(9549),G=y(4144),ie=y(1948),Ee=y(4385),ue=y(3238),Ze=y(1266);function Qe(Ot,Sn){1&Ot&&(f.TgZ(0,"div",5),f._uU(1," Nessun partner disponibile da aggiungere\n"),f.qZA())}function vt(Ot,Sn){if(1&Ot&&(f.TgZ(0,"mat-option",20),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit;f.Q6J("value",Ht._id),f.xp6(1),f.hij(" ",Ht.companyName," ")}}function $e(Ot,Sn){if(1&Ot){const Ht=f.EpF();f.TgZ(0,"mat-checkbox",21),f.NdJ("ngModelChange",function(rt){f.CHM(Ht);const Nt=f.oxw(2);return f.KtG(Nt.warehouseAssignment.refrigerated=rt)}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&Ot){const Ht=f.oxw(2);f.Q6J("ngModel",Ht.warehouseAssignment.refrigerated),f.xp6(1),f.hij(" ",f.lcZ(2,2,"app.warehouses.assignment.refrigerated")," ")}}function Ge(Ot,Sn){if(1&Ot){const Ht=f.EpF();f.TgZ(0,"div",5)(1,"mat-form-field",6)(2,"mat-label"),f._uU(3),f.ALo(4,"translate"),f.qZA(),f.TgZ(5,"mat-select",7),f.NdJ("ngModelChange",function(rt){f.CHM(Ht);const Nt=f.oxw();return f.KtG(Nt.partnerId=rt)}),f.YNc(6,vt,2,2,"mat-option",8),f.qZA()(),f._UZ(7,"br")(8,"br"),f.TgZ(9,"mat-form-field",6)(10,"mat-label"),f._uU(11),f.ALo(12,"translate"),f.qZA(),f.TgZ(13,"input",9,10),f.NdJ("ngModelChange",function(rt){f.CHM(Ht);const Nt=f.oxw();return f.KtG(Nt.warehouseAssignment.inboundRate=rt)}),f.qZA()(),f._UZ(15,"br")(16,"br"),f.TgZ(17,"mat-form-field",6)(18,"mat-label"),f._uU(19),f.ALo(20,"translate"),f.qZA(),f.TgZ(21,"input",11,10),f.NdJ("ngModelChange",function(rt){f.CHM(Ht);const Nt=f.oxw();return f.KtG(Nt.warehouseAssignment.storageRate=rt)}),f.qZA()(),f._UZ(23,"br")(24,"br"),f.TgZ(25,"mat-form-field",6)(26,"mat-label"),f._uU(27),f.ALo(28,"translate"),f.qZA(),f.TgZ(29,"input",12),f.NdJ("ngModelChange",function(rt){f.CHM(Ht);const Nt=f.oxw();return f.KtG(Nt.warehouseAssignment.minimumStorage=rt)}),f.qZA()(),f._UZ(30,"br")(31,"br"),f.TgZ(32,"label",13),f._uU(33),f.ALo(34,"translate"),f.qZA(),f.TgZ(35,"mat-radio-group",14),f.NdJ("ngModelChange",function(rt){f.CHM(Ht);const Nt=f.oxw();return f.KtG(Nt.warehouseAssignment.storageMode=rt)}),f.TgZ(36,"mat-radio-button",15),f._uU(37),f.ALo(38,"translate"),f.qZA(),f.TgZ(39,"mat-radio-button",16),f._uU(40),f.ALo(41,"translate"),f.qZA()(),f._UZ(42,"br")(43,"br"),f.TgZ(44,"mat-form-field",6)(45,"mat-label"),f._uU(46),f.ALo(47,"translate"),f.qZA(),f.TgZ(48,"input",17,10),f.NdJ("ngModelChange",function(rt){f.CHM(Ht);const Nt=f.oxw();return f.KtG(Nt.warehouseAssignment.orderRate=rt)}),f.qZA()(),f._UZ(50,"br")(51,"br"),f.TgZ(52,"mat-form-field",6)(53,"mat-label"),f._uU(54),f.ALo(55,"translate"),f.qZA(),f.TgZ(56,"input",18,10),f.NdJ("ngModelChange",function(rt){f.CHM(Ht);const Nt=f.oxw();return f.KtG(Nt.warehouseAssignment.returnRate=rt)}),f.qZA()(),f._UZ(58,"br")(59,"br"),f.YNc(60,$e,3,4,"mat-checkbox",19),f.qZA()}if(2&Ot){const Ht=f.oxw();f.xp6(3),f.Oqu(f.lcZ(4,18,"app.warehouses.assignment.choosePartner")),f.xp6(2),f.Q6J("ngModel",Ht.partnerId),f.xp6(1),f.Q6J("ngForOf",Ht.partners),f.xp6(5),f.Oqu(f.lcZ(12,20,"app.warehouses.assignment.inboundRate")),f.xp6(2),f.Q6J("ngModel",Ht.warehouseAssignment.inboundRate),f.xp6(6),f.Oqu(f.lcZ(20,22,"app.warehouses.assignment.storageRate")),f.xp6(2),f.Q6J("ngModel",Ht.warehouseAssignment.storageRate),f.xp6(6),f.Oqu(f.lcZ(28,24,"app.warehouses.assignment.minimumStorage")),f.xp6(2),f.Q6J("ngModel",Ht.warehouseAssignment.minimumStorage),f.xp6(4),f.Oqu(f.lcZ(34,26,"app.warehouses.assignment.storageMode")),f.xp6(2),f.Q6J("ngModel",Ht.warehouseAssignment.storageMode),f.xp6(2),f.Oqu(f.lcZ(38,28,"app.warehouses.assignment.storageModes.linear")),f.xp6(3),f.Oqu(f.lcZ(41,30,"app.warehouses.assignment.storageModes.cubic")),f.xp6(6),f.Oqu(f.lcZ(47,32,"app.warehouses.assignment.orderRate")),f.xp6(2),f.Q6J("ngModel",Ht.warehouseAssignment.orderRate),f.xp6(6),f.Oqu(f.lcZ(55,34,"app.warehouses.assignment.returnRate")),f.xp6(2),f.Q6J("ngModel",Ht.warehouseAssignment.returnRate),f.xp6(4),f.Q6J("ngIf",Ht.data.warehouse.refrigerated)}}function Ce(Ot,Sn){if(1&Ot){const Ht=f.EpF();f.TgZ(0,"button",22),f.NdJ("click",function(){f.CHM(Ht);const rt=f.oxw();return f.KtG(rt.onConfirm())}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&Ot&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"shared.buttons.save")))}let ke=(()=>{class Ot{constructor(Ht,wn,rt,Nt){this.dialogRef=Ht,this.data=wn,this.partnerService=rt,this.warehouseService=Nt,this.partners=[],this.partnerId="",this.warehouseAssignment=new k.gX}ngOnInit(){var Ht=this;return(0,d.Z)(function*(){yield Ht.getAllAvailablePartners()})()}onConfirm(){var Ht=this;return(0,d.Z)(function*(){Ht.warehouseAssignment.partnerId=Ht.partnerId;var rt=(0,A.X)(Ht.data.warehouse);rt.assignments.push(Ht.warehouseAssignment),Ht.warehouseService.updateWarehouse(rt),Ht.dialogRef.close(rt)})()}onDismiss(){this.dialogRef.close(this.data.warehouse)}getAllAvailablePartners(){var Ht=this;return(0,d.Z)(function*(){Ht.partnerService.getAllPartners().subscribe(wn=>{Ht.partners=wn})})()}}return Ot.\u0275fac=function(Ht){return new(Ht||Ot)(f.Y36(v.so),f.Y36(v.WI),f.Y36(b.b),f.Y36(k.c))},Ot.\u0275cmp=f.Xpm({type:Ot,selectors:[["app-add-user-to-warehouse-modal"]],decls:9,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-dialog-content",""],[1,"full-width"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","name","inboundRate","required","","min","1",3,"ngModel","ngModelChange"],["title","ngModel"],["matInput","","type","number","name","storageRate","required","","min","1",3,"ngModel","ngModelChange"],["matInput","","type","number","name","amount","required","",1,"form-control",3,"ngModel","ngModelChange"],["id","linear-cubic-label"],["aria-labelledby","linear-cubic-label","required","",3,"ngModel","ngModelChange"],["value","LINEAR"],["value","CUBIC"],["matInput","","type","number","name","orderRate","required","","min","1",3,"ngModel","ngModelChange"],["matInput","","type","number","name","returnRate","required","","min","1",3,"ngModel","ngModelChange"],["class","full-width","type","boolean","name","refrigerated","class","form-control",3,"ngModel","ngModelChange",4,"ngIf"],[3,"value"],["type","boolean","name","refrigerated",1,"form-control",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary",3,"click"]],template:function(Ht,wn){1&Ht&&(f.TgZ(0,"h1",0),f._uU(1," Concedi accesso\n"),f.qZA(),f.YNc(2,Qe,2,0,"div",1),f.YNc(3,Ge,61,36,"div",1),f.TgZ(4,"div",2)(5,"button",3),f.NdJ("click",function(){return wn.onDismiss()}),f._uU(6),f.ALo(7,"translate"),f.qZA(),f.YNc(8,Ce,3,3,"button",4),f.qZA()),2&Ht&&(f.xp6(2),f.Q6J("ngIf",0==wn.partners.length),f.xp6(1),f.Q6J("ngIf",wn.partners.length>0),f.xp6(3),f.Oqu(f.lcZ(7,4,"shared.buttons.cancel")),f.xp6(2),f.Q6J("ngIf",wn.partners.length>0))},dependencies:[J.sg,J.O5,Y.Fj,Y.wV,Y.JJ,Y.Q7,Y.qQ,Y.On,W.lW,B.oG,v.uh,v.xY,v.H8,Z.KE,Z.hX,G.Nt,ie.VQ,ie.U0,Ee.gD,ue.ey,Ze.X$],styles:[".full-width[_ngcontent-%COMP%]{padding-left:30px;padding-right:30px}"]}),Ot})();var me=y(7198);function re(Ot,Sn){if(1&Ot&&(f.TgZ(0,"mat-option",9),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit;f.s9C("value",Ht._id),f.xp6(1),f.Oqu(Ht.name)}}let ye=(()=>{class Ot{constructor(Ht,wn,rt){this.dialogRef=Ht,this.chanService=wn,this.data=rt,this.channelId="",this.channels=[],this.isShipmentWarehouse=!1,this.isStorageWarehouse=!0}ngOnInit(){var Ht=this;return(0,d.Z)(function*(){var wn;Ht.data.partnerId?Ht.chanService.getUserChannels(Ht.data.partnerId).subscribe({next:(wn=(0,d.Z)(function*(rt){Ht.channels=rt.data}),function(Nt){return wn.apply(this,arguments)})}):Ht.channels=yield Ht.chanService.getChannels()})()}onCancel(){this.dialogRef.close()}onSubmit(){this.dialogRef.close({channelId:this.channelId,storage:this.isStorageWarehouse,shipment:this.isShipmentWarehouse})}}return Ot.\u0275fac=function(Ht){return new(Ht||Ot)(f.Y36(v.so),f.Y36(me.T),f.Y36(v.WI))},Ot.\u0275cmp=f.Xpm({type:Ot,selectors:[["app-add-channel-warehouse-modal"]],decls:23,vars:16,consts:[[1,"full-width"],["novalidate","",3,"ngSubmit"],["appearance","fill"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["type","boolean","name","isStorageWarehouse",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","isShipmentWarehouse",1,"form-control",3,"ngModel","ngModelChange"],["mat-button","","type","button",3,"click"],["mat-raised-button","","color","primary"],[3,"value"]],template:function(Ht,wn){1&Ht&&(f.TgZ(0,"div",0)(1,"form",1),f.NdJ("ngSubmit",function(){return wn.onSubmit()}),f.TgZ(2,"mat-dialog-content")(3,"mat-form-field",2)(4,"mat-label"),f._uU(5,"Scegli un canale da associare"),f.qZA(),f.TgZ(6,"mat-select",3),f.NdJ("valueChange",function(Nt){return wn.channelId=Nt}),f.YNc(7,re,2,2,"mat-option",4),f.qZA()(),f._UZ(8,"br"),f.TgZ(9,"mat-checkbox",5),f.NdJ("ngModelChange",function(Nt){return wn.isStorageWarehouse=Nt}),f._uU(10),f.ALo(11,"translate"),f.qZA(),f._UZ(12,"br"),f.TgZ(13,"mat-checkbox",6),f.NdJ("ngModelChange",function(Nt){return wn.isShipmentWarehouse=Nt}),f._uU(14),f.ALo(15,"translate"),f.qZA()(),f.TgZ(16,"mat-dialog-actions")(17,"button",7),f.NdJ("click",function(){return wn.onCancel()}),f._uU(18),f.ALo(19,"translate"),f.qZA(),f.TgZ(20,"button",8),f._uU(21),f.ALo(22,"translate"),f.qZA()()()()),2&Ht&&(f.xp6(6),f.Q6J("value",wn.channelId),f.xp6(1),f.Q6J("ngForOf",wn.channels),f.xp6(2),f.Q6J("ngModel",wn.isStorageWarehouse),f.xp6(1),f.hij(" ",f.lcZ(11,8,"app.warehouses.storageWarehouse")," "),f.xp6(3),f.Q6J("ngModel",wn.isShipmentWarehouse),f.xp6(1),f.hij(" ",f.lcZ(15,10,"app.warehouses.shipmentWarehouse")," "),f.xp6(4),f.Oqu(f.lcZ(19,12,"shared.buttons.cancel")),f.xp6(3),f.Oqu(f.lcZ(22,14,"shared.buttons.add")))},dependencies:[J.sg,Y._Y,Y.JJ,Y.JL,Y.On,Y.F,W.lW,B.oG,v.xY,v.H8,Z.KE,Z.hX,Ee.gD,ue.ey,Ze.X$]}),Ot})();var Oe=y(4911),Ae=y(6630),tt=y(7009),ot=y(7084),at=y(7392),pt=y(8739),ft=y(6308),Et=y(3683);const be=["productsWarehouseSort"],Pe=["productsPaginator"],je=["assignmentsSort"],dt=["assignmentsPaginator"],et=["pendingSort"],gt=["channelAssignments"];function Re(Ot,Sn){if(1&Ot){const Ht=f.EpF();f.TgZ(0,"button",0),f.NdJ("click",function(){f.CHM(Ht);const rt=f.oxw();return f.KtG(rt.onGrant())}),f._uU(1),f.ALo(2,"translate"),f.TgZ(3,"mat-icon"),f._uU(4,"key"),f.qZA()()}2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"shared.buttons.grant")," "))}function we(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouse-journal.partner")," "))}function ce(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit;f.xp6(1),f.hij(" ",Ht.partner.companyName," ")}}function ve(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouses.title")," "))}function se(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit,wn=f.oxw(2);f.xp6(1),f.hij(" ",wn.getWarehouseOrigin(Ht.warehouseOrigin)," ")}}function S(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouse-journal.product")," "))}function F(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit;f.xp6(1),f.hij(" ",Ht.product.title," ")}}function V(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouse-journal.variation")," "))}function ne(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit;f.xp6(1),f.hij(" ",Ht.variation," ")}}function De(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouse-journal.omsgid")," "))}function wt(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit;f.xp6(1),f.hij(" ",Ht.omsgid," ")}}function nn(Ot,Sn){1&Ot&&(f.TgZ(0,"th",31),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"shared.buttons.actions")," "))}function Jt(Ot,Sn){if(1&Ot){const Ht=f.EpF();f.TgZ(0,"td",30)(1,"button",32),f.NdJ("click",function(){const Nt=f.CHM(Ht).$implicit,P=f.oxw(2);return f.KtG(P.confirmTransaction(Nt._id))}),f.TgZ(2,"mat-icon"),f._uU(3,"done"),f.qZA()(),f.TgZ(4,"button",32),f.NdJ("click",function(){const Nt=f.CHM(Ht).$implicit,P=f.oxw(2);return f.KtG(P.cancelTransaction(Nt._id))}),f.TgZ(5,"mat-icon"),f._uU(6,"close"),f.qZA()()()}}function un(Ot,Sn){1&Ot&&f._UZ(0,"tr",33)}function Zt(Ot,Sn){1&Ot&&f._UZ(0,"tr",34)}function zt(Ot,Sn){if(1&Ot&&(f.TgZ(0,"mat-expansion-panel",7)(1,"mat-expansion-panel-header")(2,"mat-icon"),f._uU(3,"arrow_downward"),f.qZA(),f._uU(4," Trasferimenti in sospeso "),f.qZA(),f.TgZ(5,"table",10,24),f.ynx(7,25),f.YNc(8,we,3,3,"th",13),f.YNc(9,ce,2,1,"td",14),f.BQk(),f.ynx(10,26),f.YNc(11,ve,3,3,"th",13),f.YNc(12,se,2,1,"td",14),f.BQk(),f.ynx(13,12),f.YNc(14,S,3,3,"th",13),f.YNc(15,F,2,1,"td",14),f.BQk(),f.ynx(16,27),f.YNc(17,V,3,3,"th",13),f.YNc(18,ne,2,1,"td",14),f.BQk(),f.ynx(19,28),f.YNc(20,De,3,3,"th",13),f.YNc(21,wt,2,1,"td",14),f.BQk(),f.ynx(22,18),f.YNc(23,nn,3,3,"th",19),f.YNc(24,Jt,7,0,"td",14),f.BQk(),f.YNc(25,un,1,0,"tr",20),f.YNc(26,Zt,1,0,"tr",21),f.qZA()()),2&Ot){const Ht=f.oxw();f.Q6J("expanded",!0),f.xp6(5),f.Q6J("dataSource",Ht.pendingTransactionsDataSource),f.xp6(20),f.Q6J("matHeaderRowDef",Ht.pendingTransactionsDisplayedColumns),f.xp6(1),f.Q6J("matRowDefColumns",Ht.pendingTransactionsDisplayedColumns)}}function fe(Ot,Sn){if(1&Ot&&(f.TgZ(0,"div")(1,"div",8),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",8),f._uU(5),f.ALo(6,"translate"),f.qZA(),f.TgZ(7,"div",8),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"div",8),f._uU(11),f.ALo(12,"translate"),f.qZA(),f.TgZ(13,"div",8),f._uU(14),f.ALo(15,"translate"),f.qZA(),f.TgZ(16,"div",8),f._uU(17),f.ALo(18,"translate"),f.qZA(),f.TgZ(19,"div",8),f._uU(20),f.ALo(21,"translate"),f.qZA(),f.TgZ(22,"div",8),f._uU(23),f.ALo(24,"translate"),f.qZA()()),2&Ot){const Ht=f.oxw();f.xp6(2),f.AsE("",f.lcZ(3,16,"app.warehouses.warehouse.address.name")," : ",Ht.warehouse.address.name," "),f.xp6(3),f.AsE("",f.lcZ(6,18,"app.warehouses.warehouse.address.street1"),": ",Ht.warehouse.address.street1," "),f.xp6(3),f.AsE("",f.lcZ(9,20,"app.warehouses.warehouse.address.street2"),": ",Ht.warehouse.address.street2," "),f.xp6(3),f.AsE("",f.lcZ(12,22,"app.warehouses.warehouse.address.city")," : ",Ht.warehouse.address.city," "),f.xp6(3),f.AsE("",f.lcZ(15,24,"app.warehouses.warehouse.address.zip")," : ",Ht.warehouse.address.zip," "),f.xp6(3),f.AsE("",f.lcZ(18,26,"app.warehouses.warehouse.address.country"),": ",Ht.warehouse.address.country," "),f.xp6(3),f.AsE("",f.lcZ(21,28,"app.warehouses.warehouse.address.phone")," : ",Ht.warehouse.address.phone," "),f.xp6(3),f.AsE("",f.lcZ(24,30,"app.warehouses.warehouse.address.email")," : ",Ht.warehouse.address.email," ")}}function Te(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouses.warehouse.title")," "))}function lt(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit;f.xp6(1),f.hij(" ",Ht.title," ")}}function Je(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouses.warehouse.inventoryLevel")," "))}function Lt(Ot,Sn){if(1&Ot&&(f.TgZ(0,"div",8),f._uU(1),f.qZA()),2&Ot){const Ht=f.oxw().$implicit,wn=f.oxw();f.xp6(1),f.hij(" ",wn.filterInventoryByWarehouseId(Ht.inventoryLevels,wn.warehouse._id)[0].amount," ")}}function Ke(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f.YNc(1,Lt,2,1,"div",35),f.qZA()),2&Ot){const Ht=Sn.$implicit,wn=f.oxw();f.xp6(1),f.Q6J("ngForOf",wn.filterInventoryByWarehouseId(Ht.inventoryLevels,wn.warehouse._id))}}function ge(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouses.warehouse.inventoryLevel")," "))}function Me(Ot,Sn){if(1&Ot){const Ht=f.EpF();f.TgZ(0,"div",8)(1,"input",36),f.NdJ("ngModelChange",function(rt){const P=f.CHM(Ht).$implicit;return f.KtG(P.amount=rt)}),f.qZA()()}if(2&Ot){const Ht=Sn.$implicit;f.xp6(1),f.MGl("name","amount",Ht.warehouseId,""),f.Q6J("ngModel",Ht.amount)}}function _e(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f.YNc(1,Me,2,2,"div",35),f.qZA()),2&Ot){const Ht=Sn.$implicit,wn=f.oxw();f.xp6(1),f.Q6J("ngForOf",wn.filterInventoryByWarehouseId(Ht.inventoryLevels,wn.warehouse._id))}}function it(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouses.warehouse.bookedQuantity")," "))}function ct(Ot,Sn){if(1&Ot&&(f.TgZ(0,"div",8),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit,wn=f.oxw(2);f.xp6(1),f.hij(" ",wn.getBookedQuantity(Ht)," ")}}function dn(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f.YNc(1,ct,2,1,"div",35),f.qZA()),2&Ot){const Ht=Sn.$implicit,wn=f.oxw();f.xp6(1),f.Q6J("ngForOf",wn.filterInventoryByWarehouseId(Ht.inventoryLevels,wn.warehouse._id))}}function Rn(Ot,Sn){1&Ot&&(f.TgZ(0,"th",31),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"shared.buttons.actions")," "))}function An(Ot,Sn){if(1&Ot){const Ht=f.EpF();f.TgZ(0,"td",30)(1,"button",32),f.NdJ("click",function(){const Nt=f.CHM(Ht).$implicit,P=f.oxw();return f.KtG(P.updateProductQuantity(Nt,P.warehouse._id))}),f.TgZ(2,"mat-icon"),f._uU(3,"edit"),f.qZA()(),f.TgZ(4,"button",37),f.NdJ("click",function(){const Nt=f.CHM(Ht).$implicit,P=f.oxw();return f.KtG(P.showProductDetails(Nt._id))}),f.TgZ(5,"mat-icon"),f._uU(6,"sell"),f.qZA()()()}}function Gt(Ot,Sn){1&Ot&&f._UZ(0,"tr",33)}function gn(Ot,Sn){1&Ot&&f._UZ(0,"tr",34)}function St(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouses.assignment.partner")," "))}function cn(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit,wn=f.oxw(2);f.xp6(1),f.hij(" ",wn.getPartnerName(Ht.partnerId)," ")}}function Qn(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouses.assignment.inboundRate")," "))}function ai(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit;f.xp6(1),f.hij(" ",Ht.inboundRate," ")}}function ze(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouses.assignment.storageRate")," "))}function de(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit;f.xp6(1),f.hij(" ",Ht.storageRate," ")}}function q(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouses.assignment.minimumStorage")," "))}function He(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit;f.xp6(1),f.hij(" ",Ht.inboundRate," ")}}function yt(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouses.assignment.orderRate")," "))}function ht(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit;f.xp6(1),f.hij(" ",Ht.orderRate," ")}}function le(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouses.assignment.returnRate")," "))}function pe(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit;f.xp6(1),f.hij(" ",Ht.inboundRate," ")}}function Q(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouses.assignment.refrigerated")," "))}function Fe(Ot,Sn){1&Ot&&(f.TgZ(0,"span",48),f._uU(1," ac_unit "),f.qZA())}function xt(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f.YNc(1,Fe,2,0,"span",47),f.qZA()),2&Ot){const Ht=Sn.$implicit;f.xp6(1),f.Q6J("ngIf",Ht.refrigerated)}}function nt(Ot,Sn){1&Ot&&(f.TgZ(0,"th",31),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"shared.buttons.actions")," "))}function Ct(Ot,Sn){if(1&Ot){const Ht=f.EpF();f.TgZ(0,"td",30)(1,"button",32),f.NdJ("click",function(){const Nt=f.CHM(Ht).$implicit,P=f.oxw(2);return f.KtG(P.deleteAssignment(Nt,Nt.partnerId))}),f.TgZ(2,"mat-icon"),f._uU(3,"delete"),f.qZA()()()}}function qe(Ot,Sn){1&Ot&&f._UZ(0,"tr",33)}function We(Ot,Sn){1&Ot&&f._UZ(0,"tr",34)}const Rt=function(){return[5,10,20]};function Ve(Ot,Sn){if(1&Ot&&(f.TgZ(0,"mat-expansion-panel",7)(1,"mat-expansion-panel-header")(2,"mat-icon"),f._uU(3,"people"),f.qZA(),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"table",10,38),f.ynx(8,25),f.YNc(9,St,3,3,"th",13),f.YNc(10,cn,2,1,"td",14),f.BQk(),f.ynx(11,39),f.YNc(12,Qn,3,3,"th",13),f.YNc(13,ai,2,1,"td",14),f.BQk(),f.ynx(14,40),f.YNc(15,ze,3,3,"th",13),f.YNc(16,de,2,1,"td",14),f.BQk(),f.ynx(17,41),f.YNc(18,q,3,3,"th",13),f.YNc(19,He,2,1,"td",14),f.BQk(),f.ynx(20,42),f.YNc(21,yt,3,3,"th",13),f.YNc(22,ht,2,1,"td",14),f.BQk(),f.ynx(23,43),f.YNc(24,le,3,3,"th",13),f.YNc(25,pe,2,1,"td",14),f.BQk(),f.ynx(26,44),f.YNc(27,Q,3,3,"th",13),f.YNc(28,xt,2,1,"td",14),f.BQk(),f.ynx(29,18),f.YNc(30,nt,3,3,"th",19),f.YNc(31,Ct,4,0,"td",14),f.BQk(),f.YNc(32,qe,1,0,"tr",20),f.YNc(33,We,1,0,"tr",21),f.qZA(),f._UZ(34,"mat-paginator",45,46),f.qZA()),2&Ot){const Ht=f.oxw();f.Q6J("expanded",!0),f.xp6(4),f.AsE(" ",f.lcZ(5,8,"app.warehouses.warehouse.sharedWith")," (",Ht.warehouse.assignments.length,") "),f.xp6(2),f.Q6J("dataSource",Ht.assignmentsDataSource),f.xp6(26),f.Q6J("matHeaderRowDef",Ht.assignmentsDisplayedColumns),f.xp6(1),f.Q6J("matRowDefColumns",Ht.assignmentsDisplayedColumns),f.xp6(1),f.Q6J("pageSize",20)("pageSizeOptions",f.DdM(10,Rt))}}function At(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.channels.title")," "))}function fn(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f._uU(1),f.qZA()),2&Ot){const Ht=Sn.$implicit,wn=f.oxw(2);f.xp6(1),f.hij(" ",wn.getChannelName(Ht.channelId)," ")}}function Ln(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouses.shipmentWarehouse")," "))}function Ti(Ot,Sn){1&Ot&&(f.TgZ(0,"mat-icon"),f._uU(1,"close"),f.qZA())}function Oi(Ot,Sn){1&Ot&&(f.TgZ(0,"mat-icon"),f._uU(1,"done"),f.qZA())}function zi(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f.YNc(1,Ti,2,0,"mat-icon",9),f.YNc(2,Oi,2,0,"mat-icon",9),f.qZA()),2&Ot){const Ht=Sn.$implicit;f.xp6(1),f.Q6J("ngIf",!Ht.shipmentWarehouse),f.xp6(1),f.Q6J("ngIf",Ht.shipmentWarehouse)}}function ur(Ot,Sn){1&Ot&&(f.TgZ(0,"th",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&Ot&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"app.warehouses.storageWarehouse")," "))}function Mt(Ot,Sn){1&Ot&&(f.TgZ(0,"mat-icon"),f._uU(1,"close"),f.qZA())}function an(Ot,Sn){1&Ot&&(f.TgZ(0,"mat-icon"),f._uU(1,"done"),f.qZA())}function ut(Ot,Sn){if(1&Ot&&(f.TgZ(0,"td",30),f.YNc(1,Mt,2,0,"mat-icon",9),f.YNc(2,an,2,0,"mat-icon",9),f.qZA()),2&Ot){const Ht=Sn.$implicit;f.xp6(1),f.Q6J("ngIf",!Ht.storageWarehouse),f.xp6(1),f.Q6J("ngIf",Ht.storageWarehouse)}}function Ft(Ot,Sn){1&Ot&&f._UZ(0,"tr",33)}function ln(Ot,Sn){1&Ot&&f._UZ(0,"tr",34)}function Tn(Ot,Sn){if(1&Ot&&(f.TgZ(0,"mat-expansion-panel",7)(1,"mat-expansion-panel-header")(2,"mat-icon"),f._uU(3,"signpost"),f.qZA(),f._uU(4," Canali "),f.qZA(),f.TgZ(5,"table",10,49),f.ynx(7,50),f.YNc(8,At,3,3,"th",13),f.YNc(9,fn,2,1,"td",14),f.BQk(),f.ynx(10,51),f.YNc(11,Ln,3,3,"th",13),f.YNc(12,zi,3,2,"td",14),f.BQk(),f.ynx(13,52),f.YNc(14,ur,3,3,"th",13),f.YNc(15,ut,3,2,"td",14),f.BQk(),f.YNc(16,Ft,1,0,"tr",20),f.YNc(17,ln,1,0,"tr",21),f.qZA()()),2&Ot){const Ht=f.oxw();f.Q6J("expanded",!0),f.xp6(5),f.Q6J("dataSource",Ht.channelAssignmentsDataSource),f.xp6(11),f.Q6J("matHeaderRowDef",Ht.channelAssignmentsDisplayedColumns),f.xp6(1),f.Q6J("matRowDefColumns",Ht.channelAssignmentsDisplayedColumns)}}let Hn=(()=>{class Ot extends p.Mf{constructor(Ht,wn,rt,Nt,P,xe,st,It,Mn,Ei){super(Ht),this.warehousesService=wn,this.catalogService=rt,this.partnerService=Nt,this.route=P,this.router=xe,this.snackBar=st,this.translate=It,this.dialog=Mn,this.chanService=Ei,this.warehouse={},this.assignments=new Array,this.channels=new Array,this.channelAssignments=new Array,this.partners=new Array,this.originalReferences=new Array,this.references=new Array,this.partnersCompanyName=new Map,this.partnerId=void 0,this.pendingTransactions=[],this.productsDataSource=new i.by(this.references),this.productsDisplayedColumns=["title","amount","adjustAmount","bookedQuantity","actions"],this.assignmentsDataSource=new i.by(this.assignments),this.assignmentsDisplayedColumns=["partner","inbound","storage","minimumStorage","order","return","refrigerated","actions"],this.pendingTransactionsDataSource=new i.by(this.pendingTransactions),this.pendingTransactionsDisplayedColumns=["partner","warehouseOrigin","title","variation","omsgid","actions"],this.channelAssignmentsDataSource=new i.by(this.warehouse.channelAssignments),this.channelAssignmentsDisplayedColumns=["channel","shipmentWarehouse","storageWarehouse"]}ngOnInit(){var Ht=this;return(0,d.Z)(function*(){Ht.route.paramMap.subscribe(function(){var wn=(0,d.Z)(function*(rt){const Nt=rt.get("id");Ht.partnerId=rt.get("partnerId"),Nt?(yield Ht.getWarehouse(Nt),yield Ht.getPartners(),yield Ht.getChannels(),yield Ht.setAssignments(),yield Ht.setChannelAssignments(),yield Ht.getProducts(Nt),yield Ht.getWarehousePendingTransactions(Nt),Ht.productsDataSource.data=Ht.references,Ht.productsDataSource.paginator=Ht.productsPaginator,Ht.productsDataSource.sort=Ht.productsWarehouseSort):Ht.router.navigate(["/warehouses"])});return function(rt){return wn.apply(this,arguments)}}())})()}getWarehouse(Ht){var wn=this;return(0,d.Z)(function*(){return wn.warehouse=yield wn.warehousesService.getWarehouse(Ht),wn.warehouse})()}getProducts(Ht){var wn=this;return(0,d.Z)(function*(){return wn.originalReferences=yield wn.catalogService.getWarehouseReferences(Ht),wn.references=(0,A.X)(wn.originalReferences),wn.references})()}getPartners(){var Ht=this;return(0,d.Z)(function*(){Ht.partnerService.getAllPartners().subscribe(wn=>{Ht.partners=wn,wn.forEach(rt=>{Ht.partnersCompanyName.set(rt._id,rt.companyName)})})})()}getWarehouseOrigin(Ht){return Ht?Ht.name:"-"}getChannels(){var Ht=this;return(0,d.Z)(function*(){Ht.channels=yield Ht.chanService.getChannels()})()}getPartnerName(Ht){return this.partnersCompanyName.get(Ht)}setAssignments(){var Ht=this;return(0,d.Z)(function*(){Ht.assignments=Ht.warehouse.assignments,Ht.assignmentsDataSource.data=Ht.assignments,Ht.assignmentsDataSource.sort=Ht.assignmentsSort,Ht.assignmentsDataSource.paginator=Ht.assignmentsPaginator})()}setChannelAssignments(){var Ht=this;return(0,d.Z)(function*(){Ht.channelAssignments=Ht.warehouse.channelAssignments,Ht.channelAssignmentsDataSource.data=Ht.channelAssignments,Ht.assignmentsDataSource.sort=Ht.channelAssignmentsSort})()}deleteAssignment(Ht,wn){var rt=this;return(0,d.Z)(function*(){for(var Nt=(0,A.X)(rt.warehouse),P=0;P<Nt.assignments.length;P++)if(Nt.assignments[P].partnerId==Ht.partnerId){Nt.assignments.splice(P,1),yield rt.warehousesService.updateWarehouse(Nt);break}rt.assignmentsDataSource.data=Nt.assignments,rt.warehouse=Nt})()}showProductDetails(Ht){var wn=this;return(0,d.Z)(function*(){wn.router.navigate([wn.partnerId?"/admin/reference":"/reference",{id:Ht}])})()}updateProductQuantity(Ht,wn){var rt=this;return(0,d.Z)(function*(){if(Ht.trackInventory)for(let Nt=0;Nt<Ht.inventoryLevels.length;Nt++)Ht.inventoryLevels[Nt].warehouseId===wn&&(rt.catalogService.setReferenceInventoryLevelByReferenceIDRest({partnerId:rt.authData.partnerId,reference:Ht}).subscribe({next:xe=>{rt.snackBar.open("aggiornata la giacenza",void 0,{duration:3e3})},error:xe=>{console.error(xe)}}),rt.catalogService.updateUserReference(Ht).subscribe({next:xe=>{rt.snackBar.open("aggiornato il prodotto",void 0,{duration:3e3})},error:xe=>{console.error(xe),rt.snackBar.open("errore",void 0,{duration:3e3})}}));rt.snackBar.open(rt.translate.instant("app.warehouses.warehouse.snackbar.updatedProduct"),void 0,{duration:3e3})})()}checkOwnership(){return this.authData.partnerId===this.warehouse.partnerId||this.partnerId===this.warehouse.partnerId}filterInventoryByWarehouseId(Ht,wn){return Ht.filter(rt=>rt.warehouseId===wn)}loadWarehousereferences(Ht){var wn=this;return(0,d.Z)(function*(){yield wn.catalogService.getWarehouseReferences(Ht)})()}onGrant(){var Ht=this;this.dialog.open(ke,{data:{warehouse:this.warehouse}}).afterClosed().subscribe(function(){var wn=(0,d.Z)(function*(rt){Ht.assignmentsDataSource.data=Ht.warehouse.assignments});return function(rt){return wn.apply(this,arguments)}}())}back(){this.router.navigate(["/warehouses"])}addChannelToWarehouse(){var Ht=this;this.dialog.open(ye,{data:{partnerId:this.partnerId?this.partnerId:this.authData.partnerId}}).afterClosed().subscribe(function(){var wn=(0,d.Z)(function*(rt){if(rt){const P=Ht.route.snapshot.paramMap.get("id");P&&Ht.chanService.addWarehouseToChannel(P,rt.channelId,rt.storage,rt.shipment).subscribe({next:(xe=(0,d.Z)(function*(st){Ht.snackBar.open(Ht.translate.instant("app.partner.snackbar.addChannel"),void 0,{duration:3e3})}),function(It){return xe.apply(this,arguments)}),error:xe=>{console.error(xe)}})}var xe});return function(rt){return wn.apply(this,arguments)}}())}getWarehousePendingTransactions(Ht){var wn=this;return(0,d.Z)(function*(){wn.warehousesService.getAllWarehouseJournalEntriesbyWarehouse(Ht,!1).subscribe(rt=>{wn.pendingTransactions=rt.data,wn.pendingTransactionsDataSource.data=wn.pendingTransactions,wn.pendingTransactionsDataSource.sort=wn.pendingSort})})()}confirmTransaction(Ht){var wn=this;this.warehousesService.processWarehousePendingTransaction(Ht,!0).subscribe(function(){var rt=(0,d.Z)(function*(Nt){wn.snackBar.open("confermato!",void 0,{duration:3e3}),yield wn.getWarehousePendingTransactions(wn.warehouse._id)});return function(Nt){return rt.apply(this,arguments)}}())}cancelTransaction(Ht){var wn=this;this.warehousesService.processWarehousePendingTransaction(Ht,!1).subscribe(function(){var rt=(0,d.Z)(function*(Nt){wn.snackBar.open("annullato!",void 0,{duration:3e3}),yield wn.getWarehousePendingTransactions(wn.warehouse._id)});return function(Nt){return rt.apply(this,arguments)}}())}getBookedQuantity(Ht){let wn=0;for(let rt=0;rt<Ht.bookings.length;rt++)wn+=Ht.bookings[rt].amount;return wn}getChannelName(Ht){for(let wn=0;wn<this.channels.length;wn++)if(Ht===this.channels[wn]._id)return this.channels[wn].name;return"Errore. contattare assistenza."}}return Ot.\u0275fac=function(Ht){return new(Ht||Ot)(f.Y36(p.e8),f.Y36(k.c),f.Y36(Oe.av),f.Y36(b.b),f.Y36(Ae.gz),f.Y36(Ae.F0),f.Y36(tt.ux),f.Y36(Ze.sK),f.Y36(v.uw),f.Y36(me.T))},Ot.\u0275cmp=f.Xpm({type:Ot,selectors:[["app-warehouse-details"]],viewQuery:function(Ht,wn){if(1&Ht&&(f.Gf(be,5),f.Gf(Pe,5),f.Gf(je,5),f.Gf(dt,5),f.Gf(et,5),f.Gf(gt,5)),2&Ht){let rt;f.iGM(rt=f.CRH())&&(wn.productsWarehouseSort=rt.first),f.iGM(rt=f.CRH())&&(wn.productsPaginator=rt.first),f.iGM(rt=f.CRH())&&(wn.assignmentsSort=rt.first),f.iGM(rt=f.CRH())&&(wn.assignmentsPaginator=rt.first),f.iGM(rt=f.CRH())&&(wn.pendingSort=rt.first),f.iGM(rt=f.CRH())&&(wn.channelAssignmentsSort=rt.first)}},features:[f.qOj],decls:62,vars:36,consts:[["mat-button","","color","primary",3,"click"],[1,"mat-18"],[1,"fill-space"],["mat-button","","color","primary",3,"click",4,"ngIf"],[1,"container"],["multi","true"],[3,"expanded",4,"ngIf"],[3,"expanded"],["mat-line",""],[4,"ngIf"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["productsWarehouseSort","matSort"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount"],["matColumnDef","adjustAmount"],["matColumnDef","bookedQuantity"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page of products",3,"pageSize","pageSizeOptions"],["productsPaginator",""],["pendingSort","matSort"],["matColumnDef","partner"],["matColumnDef","warehouseOrigin"],["matColumnDef","variation"],["matColumnDef","omsgid"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","",3,"disabled","click"],["mat-header-row",""],["mat-row",""],["mat-line","",4,"ngFor","ngForOf"],["matInput","","type","number","required","",1,"form-control",3,"name","ngModel","ngModelChange"],["mat-icon-button","",3,"click"],["assignmentsSort","matSort"],["matColumnDef","inbound"],["matColumnDef","storage"],["matColumnDef","minimumStorage"],["matColumnDef","order"],["matColumnDef","return"],["matColumnDef","refrigerated"],["showFirstLastButtons","","aria-label","Select page of assignments",3,"pageSize","pageSizeOptions"],["assignmentsPaginator",""],["class","material-icons",4,"ngIf"],[1,"material-icons"],["channelAssignmentsSort","matSort"],["matColumnDef","channel"],["matColumnDef","shipmentWarehouse"],["matColumnDef","storageWarehouse"]],template:function(Ht,wn){1&Ht&&(f.TgZ(0,"mat-toolbar")(1,"button",0),f.NdJ("click",function(){return wn.back()}),f.TgZ(2,"mat-icon"),f._uU(3,"arrow_back"),f.qZA()(),f.TgZ(4,"mat-icon",1),f._uU(5,"warehouse"),f.qZA(),f._uU(6),f.ALo(7,"translate"),f._UZ(8,"span",2),f.YNc(9,Re,5,3,"button",3),f.TgZ(10,"button",0),f.NdJ("click",function(){return wn.addChannelToWarehouse()}),f._uU(11),f.ALo(12,"translate"),f.TgZ(13,"mat-icon"),f._uU(14,"key"),f.qZA()()(),f.TgZ(15,"div",4)(16,"mat-accordion",5),f.YNc(17,zt,27,4,"mat-expansion-panel",6),f.TgZ(18,"mat-expansion-panel",7)(19,"mat-expansion-panel-header")(20,"mat-icon"),f._uU(21,"place"),f.qZA(),f._uU(22," Anagrafica Magazzino "),f.qZA(),f.TgZ(23,"div",8),f._uU(24),f.ALo(25,"translate"),f.qZA(),f.YNc(26,fe,25,32,"div",9),f.TgZ(27,"div",8),f._uU(28),f.ALo(29,"translate"),f.qZA(),f.TgZ(30,"div",8),f._uU(31),f.ALo(32,"translate"),f.qZA()(),f.TgZ(33,"mat-expansion-panel",7)(34,"mat-expansion-panel-header")(35,"mat-icon"),f._uU(36,"inventory_2"),f.qZA(),f._uU(37),f.ALo(38,"translate"),f.qZA(),f.TgZ(39,"table",10,11),f.ynx(41,12),f.YNc(42,Te,3,3,"th",13),f.YNc(43,lt,2,1,"td",14),f.BQk(),f.ynx(44,15),f.YNc(45,Je,3,3,"th",13),f.YNc(46,Ke,2,1,"td",14),f.BQk(),f.ynx(47,16),f.YNc(48,ge,3,3,"th",13),f.YNc(49,_e,2,1,"td",14),f.BQk(),f.ynx(50,17),f.YNc(51,it,3,3,"th",13),f.YNc(52,dn,2,1,"td",14),f.BQk(),f.ynx(53,18),f.YNc(54,Rn,3,3,"th",19),f.YNc(55,An,7,0,"td",14),f.BQk(),f.YNc(56,Gt,1,0,"tr",20),f.YNc(57,gn,1,0,"tr",21),f.qZA(),f._UZ(58,"mat-paginator",22,23),f.qZA(),f.YNc(60,Ve,36,11,"mat-expansion-panel",6),f.YNc(61,Tn,18,4,"mat-expansion-panel",6),f.qZA()()),2&Ht&&(f.xp6(6),f.AsE(" ",f.lcZ(7,23,"app.warehouses.warehouse.title")," - ",wn.warehouse.name," "),f.xp6(3),f.Q6J("ngIf",wn.warehouse.isShared),f.xp6(2),f.hij(" ",f.lcZ(12,25,"shared.buttons.add-channel")," "),f.xp6(6),f.Q6J("ngIf",wn.checkOwnership()),f.xp6(1),f.Q6J("expanded",!0),f.xp6(6),f.AsE("",f.lcZ(25,27,"app.warehouses.warehouse.name")," : ",wn.warehouse.name,""),f.xp6(2),f.Q6J("ngIf",wn.warehouse.address),f.xp6(2),f.AsE("",f.lcZ(29,29,"app.warehouses.warehouse.email")," : ",wn.warehouse.email,""),f.xp6(3),f.AsE("",f.lcZ(32,31,"app.warehouses.warehouse.phone")," : ",wn.warehouse.phone,""),f.xp6(2),f.Q6J("expanded",!0),f.xp6(4),f.AsE(" ",f.lcZ(38,33,"app.warehouses.warehouse.stock")," (",wn.references.length,") "),f.xp6(2),f.Q6J("dataSource",wn.productsDataSource),f.xp6(17),f.Q6J("matHeaderRowDef",wn.productsDisplayedColumns),f.xp6(1),f.Q6J("matRowDefColumns",wn.productsDisplayedColumns),f.xp6(1),f.Q6J("pageSize",20)("pageSizeOptions",f.DdM(35,Rt)),f.xp6(2),f.Q6J("ngIf",wn.checkOwnership()),f.xp6(1),f.Q6J("ngIf",wn.checkOwnership()))},dependencies:[J.sg,J.O5,Y.Fj,Y.wV,Y.JJ,Y.Q7,Y.On,W.lW,W.RK,ot.pp,ot.ib,ot.yz,at.Hw,G.Nt,pt.NW,ft.YE,ft.nU,i.BZ,i.fO,i.as,i.w1,i.Dz,i.nj,i.ge,i.ev,i.XQ,i.Gk,Et.Ye,ue.X2,Ze.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center}table[_ngcontent-%COMP%]{width:100%}"]}),Ot})()},9468:(vn,_t,y)=>{"use strict";y.d(_t,{d:()=>Ge});var d=y(5861),i=y(7556),A=y(7646),p=y(396),v=y(4650),k=y(1266),f=y(6630),b=y(7009),J=y(6895),Y=y(4006),W=y(4859),B=y(6709),Z=y(9549),G=y(7392),ie=y(4144),Ee=y(8729),ue=y(3683);function Ze(Ce,ke){1&Ce&&(v.TgZ(0,"div"),v._uU(1," Nessuna email salvata"),v.qZA())}function Qe(Ce,ke){if(1&Ce){const me=v.EpF();v.TgZ(0,"div",30)(1,"span",31),v._uU(2," alternate_email "),v.qZA(),v._uU(3),v.TgZ(4,"button",32),v.NdJ("click",function(){const Oe=v.CHM(me).$implicit,Ae=v.oxw();return v.KtG(Ae.removeEmail(Oe))}),v.TgZ(5,"span",31),v._uU(6," delete "),v.qZA()()()}if(2&Ce){const me=ke.$implicit;v.xp6(3),v.hij(" ",me," ")}}function vt(Ce,ke){if(1&Ce&&(v.TgZ(0,"button",33)(1,"mat-icon"),v._uU(2,"add"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()),2&Ce){const me=v.oxw(),re=v.MAs(11);v.Q6J("disabled",!re.form.valid||0==me.warehouse.email.length),v.xp6(3),v.hij(" ",v.lcZ(4,2,"shared.buttons.create")," ")}}function $e(Ce,ke){if(1&Ce&&(v.TgZ(0,"button",33)(1,"mat-icon"),v._uU(2,"save"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()),2&Ce){const me=v.oxw(),re=v.MAs(11);v.Q6J("disabled",!re.form.valid||0==me.warehouse.email.length),v.xp6(3),v.hij(" ",v.lcZ(4,2,"shared.buttons.save")," ")}}let Ge=(()=>{class Ce extends i.Mf{constructor(me,re,ye,Oe,Ae,tt){super(me),this.warehouseService=re,this.translate=ye,this.router=Oe,this.route=Ae,this.snackbar=tt,this.singleEmail="",this.newWarehouse=!1,this.error="",this.message="",this.warehouse={},this.protoWarehouse={},this.partnerId=void 0}ngOnInit(){var me=this;this.warehouse=new A.Cr,this.route.paramMap.subscribe(function(){var re=(0,d.Z)(function*(ye){const Oe=ye.get("id");me.partnerId=ye.get("partnerId"),Oe?(me.protoWarehouse=yield me.warehouseService.getWarehouse(Oe),me.warehouse=(0,p.X)(me.protoWarehouse)):me.newWarehouse=!0});return function(ye){return re.apply(this,arguments)}}())}onSubmit(){var me=this;return(0,d.Z)(function*(){me.newWarehouse?(me.partnerId||me.authData.partnerId)&&(me.warehouse.partnerId=me.partnerId?me.partnerId:me.authData.partnerId,yield me.warehouseService.addWarehouse(me.warehouse),me.snackbar.open(me.translate.instant("app.warehouses.snackbar.add"),void 0,{duration:3e3})):(yield me.warehouseService.updateWarehouse(me.warehouse),me.snackbar.open(me.translate.instant("app.warehouses.snackbar.edit"),void 0,{duration:3e3})),me.router.navigate(["/warehouses"])})()}onCancel(){this.router.navigate(["/warehouses"])}onReset(){this.warehouse=this.newWarehouse?{}:(0,p.X)(this.protoWarehouse)}back(){this.router.navigate(["/warehouses"])}addEmail(){this.warehouse.email.push(this.singleEmail),this.singleEmail=""}removeEmail(me){this.warehouse.email.splice(this.warehouse.email.indexOf(me),1)}}return Ce.\u0275fac=function(me){return new(me||Ce)(v.Y36(i.e8),v.Y36(A.c),v.Y36(k.sK),v.Y36(f.F0),v.Y36(f.gz),v.Y36(b.ux))},Ce.\u0275cmp=v.Xpm({type:Ce,selectors:[["app-warehouse"]],features:[v.qOj],decls:111,vars:84,consts:[["mat-button","","color","primary",3,"click"],[1,"mat-18"],[1,"fill-space"],[1,"container"],[3,"ngSubmit"],["prodForm","ngForm"],[1,"full-width"],["matInput","","name","name",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","add_company","required","",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","add_name",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","add_street1","required","",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","add_street2",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","add_city","required","",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","add_province","required","",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","add_zip","required","",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","add_country","required","",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","add_phone","required","",1,"form-control",3,"ngModel","ngModelChange"],[4,"ngIf"],["class","email-list",4,"ngFor","ngForOf"],["matInput","","type","email","name","email",1,"form-control",3,"ngModel","ngModelChange"],["mat-raised-button","","type","button",3,"click"],["matInput","","name","phone",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","type",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","type","number","name","size",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","isIndaco",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","isShared",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","refrigerated",1,"form-control",3,"ngModel","ngModelChange"],[1,"buttons"],["mat-raised-button","","color","primary","type","button",1,"full-width","mt-3","button",3,"click"],["class","full-width mt-3 button","mat-raised-button","","color","primary","type","submit","style","float: right;",3,"disabled",4,"ngIf"],[1,"email-list"],[1,"material-icons"],["mat-button","","type","button",3,"click"],["mat-raised-button","","color","primary","type","submit",1,"full-width","mt-3","button",2,"float","right",3,"disabled"]],template:function(me,re){1&me&&(v.TgZ(0,"mat-toolbar")(1,"button",0),v.NdJ("click",function(){return re.back()}),v.TgZ(2,"mat-icon"),v._uU(3,"arrow_back"),v.qZA()(),v.TgZ(4,"mat-icon",1),v._uU(5,"place"),v.qZA(),v._uU(6),v.ALo(7,"translate"),v._UZ(8,"span",2),v.qZA(),v.TgZ(9,"div",3)(10,"form",4,5),v.NdJ("ngSubmit",function(){return re.onSubmit()}),v.TgZ(12,"mat-form-field",6)(13,"mat-label"),v._uU(14),v.ALo(15,"translate"),v.qZA(),v.TgZ(16,"input",7),v.NdJ("ngModelChange",function(Oe){return re.warehouse.name=Oe}),v.qZA()(),v.TgZ(17,"mat-form-field",6)(18,"mat-label"),v._uU(19),v.ALo(20,"translate"),v.qZA(),v.TgZ(21,"input",8),v.NdJ("ngModelChange",function(Oe){return re.warehouse.address.company=Oe}),v.qZA()(),v.TgZ(22,"mat-form-field",6)(23,"mat-label"),v._uU(24),v.ALo(25,"translate"),v.qZA(),v.TgZ(26,"input",9),v.NdJ("ngModelChange",function(Oe){return re.warehouse.address.name=Oe}),v.qZA()(),v.TgZ(27,"mat-form-field",6)(28,"mat-label"),v._uU(29),v.ALo(30,"translate"),v.qZA(),v.TgZ(31,"input",10),v.NdJ("ngModelChange",function(Oe){return re.warehouse.address.street1=Oe}),v.qZA()(),v.TgZ(32,"mat-form-field",6)(33,"mat-label"),v._uU(34),v.ALo(35,"translate"),v.qZA(),v.TgZ(36,"input",11),v.NdJ("ngModelChange",function(Oe){return re.warehouse.address.street2=Oe}),v.qZA()(),v.TgZ(37,"mat-form-field",6)(38,"mat-label"),v._uU(39),v.ALo(40,"translate"),v.qZA(),v.TgZ(41,"input",12),v.NdJ("ngModelChange",function(Oe){return re.warehouse.address.city=Oe}),v.qZA()(),v.TgZ(42,"mat-form-field",6)(43,"mat-label"),v._uU(44),v.ALo(45,"translate"),v.qZA(),v.TgZ(46,"input",13),v.NdJ("ngModelChange",function(Oe){return re.warehouse.address.province=Oe}),v.qZA()(),v.TgZ(47,"mat-form-field",6)(48,"mat-label"),v._uU(49),v.ALo(50,"translate"),v.qZA(),v.TgZ(51,"input",14),v.NdJ("ngModelChange",function(Oe){return re.warehouse.address.zip=Oe}),v.qZA()(),v.TgZ(52,"mat-form-field",6)(53,"mat-label"),v._uU(54),v.ALo(55,"translate"),v.qZA(),v.TgZ(56,"input",15),v.NdJ("ngModelChange",function(Oe){return re.warehouse.address.country=Oe}),v.qZA()(),v.TgZ(57,"mat-form-field",6)(58,"mat-label"),v._uU(59),v.ALo(60,"translate"),v.qZA(),v.TgZ(61,"input",16),v.NdJ("ngModelChange",function(Oe){return re.warehouse.address.phone=Oe}),v.qZA()(),v._UZ(62,"mat-divider"),v.YNc(63,Ze,2,0,"div",17),v.YNc(64,Qe,7,1,"div",18),v.TgZ(65,"mat-form-field",6)(66,"mat-label"),v._uU(67),v.ALo(68,"translate"),v.qZA(),v.TgZ(69,"input",19),v.NdJ("ngModelChange",function(Oe){return re.singleEmail=Oe}),v.qZA()(),v.TgZ(70,"button",20),v.NdJ("click",function(){return re.addEmail()}),v._uU(71),v.ALo(72,"translate"),v.qZA(),v._UZ(73,"mat-divider"),v.TgZ(74,"mat-form-field",6)(75,"mat-label"),v._uU(76),v.ALo(77,"translate"),v.qZA(),v.TgZ(78,"input",21),v.NdJ("ngModelChange",function(Oe){return re.warehouse.phone=Oe}),v.qZA()(),v.TgZ(79,"mat-form-field",6)(80,"mat-label"),v._uU(81),v.ALo(82,"translate"),v.qZA(),v.TgZ(83,"input",22),v.NdJ("ngModelChange",function(Oe){return re.warehouse.type=Oe}),v.qZA()(),v.TgZ(84,"mat-form-field",6)(85,"mat-label"),v._uU(86),v.ALo(87,"translate"),v.qZA(),v.TgZ(88,"input",23),v.NdJ("ngModelChange",function(Oe){return re.warehouse.size=Oe}),v.qZA()(),v.TgZ(89,"mat-checkbox",24),v.NdJ("ngModelChange",function(Oe){return re.warehouse.isIndaco=Oe}),v._uU(90),v.ALo(91,"translate"),v.qZA(),v.TgZ(92,"mat-checkbox",25),v.NdJ("ngModelChange",function(Oe){return re.warehouse.isShared=Oe}),v._uU(93),v.ALo(94,"translate"),v.qZA(),v.TgZ(95,"mat-checkbox",26),v.NdJ("ngModelChange",function(Oe){return re.warehouse.refrigerated=Oe}),v._uU(96),v.ALo(97,"translate"),v.qZA(),v.TgZ(98,"p",27)(99,"button",28),v.NdJ("click",function(){return re.onCancel()}),v.TgZ(100,"mat-icon"),v._uU(101,"cancel"),v.qZA(),v._uU(102),v.ALo(103,"translate"),v.qZA(),v.TgZ(104,"button",28),v.NdJ("click",function(){return re.onReset()}),v.TgZ(105,"mat-icon"),v._uU(106,"restore"),v.qZA(),v._uU(107),v.ALo(108,"translate"),v.qZA(),v.YNc(109,vt,5,4,"button",29),v.YNc(110,$e,5,4,"button",29),v.qZA()()()),2&me&&(v.xp6(6),v.hij(" ",v.lcZ(7,42,"app.warehouses.warehouse.title")," "),v.xp6(8),v.Oqu(v.lcZ(15,44,"app.warehouses.warehouse.name")),v.xp6(2),v.Q6J("ngModel",re.warehouse.name),v.xp6(3),v.Oqu(v.lcZ(20,46,"app.warehouses.warehouse.address.company")),v.xp6(2),v.Q6J("ngModel",re.warehouse.address.company),v.xp6(3),v.Oqu(v.lcZ(25,48,"app.warehouses.warehouse.address.name")),v.xp6(2),v.Q6J("ngModel",re.warehouse.address.name),v.xp6(3),v.Oqu(v.lcZ(30,50,"app.warehouses.warehouse.address.street1")),v.xp6(2),v.Q6J("ngModel",re.warehouse.address.street1),v.xp6(3),v.Oqu(v.lcZ(35,52,"app.warehouses.warehouse.address.street2")),v.xp6(2),v.Q6J("ngModel",re.warehouse.address.street2),v.xp6(3),v.Oqu(v.lcZ(40,54,"app.warehouses.warehouse.address.city")),v.xp6(2),v.Q6J("ngModel",re.warehouse.address.city),v.xp6(3),v.Oqu(v.lcZ(45,56,"app.warehouses.warehouse.address.province")),v.xp6(2),v.Q6J("ngModel",re.warehouse.address.province),v.xp6(3),v.Oqu(v.lcZ(50,58,"app.warehouses.warehouse.address.zip")),v.xp6(2),v.Q6J("ngModel",re.warehouse.address.zip),v.xp6(3),v.Oqu(v.lcZ(55,60,"app.warehouses.warehouse.address.country")),v.xp6(2),v.Q6J("ngModel",re.warehouse.address.country),v.xp6(3),v.Oqu(v.lcZ(60,62,"app.warehouses.warehouse.address.phone")),v.xp6(2),v.Q6J("ngModel",re.warehouse.address.phone),v.xp6(2),v.Q6J("ngIf",0==re.warehouse.email.length),v.xp6(1),v.Q6J("ngForOf",re.warehouse.email),v.xp6(3),v.Oqu(v.lcZ(68,64,"app.warehouses.warehouse.email")),v.xp6(2),v.Q6J("ngModel",re.singleEmail),v.xp6(2),v.Oqu(v.lcZ(72,66,"app.warehouses.warehouse.emails.addEmail")),v.xp6(5),v.Oqu(v.lcZ(77,68,"app.warehouses.warehouse.phone")),v.xp6(2),v.Q6J("ngModel",re.warehouse.phone),v.xp6(3),v.Oqu(v.lcZ(82,70,"app.warehouses.warehouse.type")),v.xp6(2),v.Q6J("ngModel",re.warehouse.type),v.xp6(3),v.Oqu(v.lcZ(87,72,"app.warehouses.warehouse.size")),v.xp6(2),v.Q6J("ngModel",re.warehouse.size),v.xp6(1),v.Q6J("ngModel",re.warehouse.isIndaco),v.xp6(1),v.hij(" ",v.lcZ(91,74,"app.warehouses.warehouse.isIndaco")," "),v.xp6(2),v.Q6J("ngModel",re.warehouse.isShared),v.xp6(1),v.hij(" ",v.lcZ(94,76,"app.warehouses.warehouse.isShared")," "),v.xp6(2),v.Q6J("ngModel",re.warehouse.refrigerated),v.xp6(1),v.hij(" ",v.lcZ(97,78,"app.warehouses.warehouse.refrigerated")," "),v.xp6(6),v.hij(" ",v.lcZ(103,80,"shared.buttons.cancel")," "),v.xp6(5),v.hij(" ",v.lcZ(108,82,"shared.buttons.reset")," "),v.xp6(2),v.Q6J("ngIf",re.newWarehouse),v.xp6(1),v.Q6J("ngIf",!re.newWarehouse))},dependencies:[J.sg,J.O5,Y._Y,Y.Fj,Y.wV,Y.JJ,Y.JL,Y.Q7,Y.On,Y.F,W.lW,B.oG,Z.KE,Z.hX,G.Hw,ie.Nt,Ee.d,ue.Ye,k.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center;width:50%;margin:auto}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%;min-width:300px;margin:5px}.error[_ngcontent-%COMP%]{padding:16px;color:#fff;background-color:#a94442;border-radius:10px}.message[_ngcontent-%COMP%]{padding:16px;color:#000;background-color:#93f3ff;border-radius:10px}.button[_ngcontent-%COMP%]{margin:20px} .mat-mdc-form-field .mat-mdc-input-element{color:#708090} .mat-mdc-form-field .mat-form-field-label{color:#708090} .mat-mdc-form-field .mat-form-field-underline{background-color:#708090} .mat-mdc-form-field .mat-form-field-ripple{background-color:#708090} .mat-mdc-form-field .mat-form-field-required-marker{color:#708090} .mat-mdc-form-field.mat-focused .mat-form-field-label{color:#000} .mat-mdc-form-field.mat-focused .mat-form-field-ripple{background-color:#000} .mat-mdc-form-field.mat-focused .mat-form-field-required-marker{color:#000} .mat-mdc-form-field.mat-focused .mat-mdc-input-element{color:#000} .mat-mdc-form-field.mat-form-field-invalid .mat-mdc-input-element{color:#a94442} .mat-mdc-form-field.mat-form-field-invalid .mat-form-field-label{color:#a94442} .mat-mdc-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#a94442} .mat-mdc-form-field.mat-form-field-invalid .mat-form-field-ripple{background-color:#a94442}"]}),Ce})()},7712:(vn,_t,y)=>{"use strict";y.d(_t,{O:()=>ve});var d=y(5861),i=y(671),A=y(7556),p=y(4650),v=y(7646),k=y(6630),f=y(6895),b=y(4859),J=y(2673),Y=y(7392),W=y(8739),B=y(6308),Z=y(3683),G=y(266),ie=y(1266);const Ee=["warehousesPaginator"],ue=["warehousesSort"];function Ze(se,S){if(1&se){const F=p.EpF();p.TgZ(0,"button",20),p.NdJ("click",function(){p.CHM(F);const ne=p.oxw();return p.KtG(ne.onAdd())}),p._uU(1),p.ALo(2,"translate"),p.TgZ(3,"mat-icon"),p._uU(4,"add"),p.qZA()()}2&se&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"shared.buttons.add")," "))}function Qe(se,S){1&se&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&se&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.warehouses.symbols")," "))}function vt(se,S){1&se&&(p.TgZ(0,"mat-icon",26),p._uU(1,"ac_unit"),p.qZA())}function $e(se,S){1&se&&(p.TgZ(0,"mat-icon",27),p._uU(1,"share"),p.qZA())}function Ge(se,S){1&se&&(p.TgZ(0,"mat-icon",28),p._uU(1,"groups"),p.qZA())}function Ce(se,S){if(1&se&&(p.TgZ(0,"td",22),p.YNc(1,vt,2,0,"mat-icon",23),p.YNc(2,$e,2,0,"mat-icon",24),p.YNc(3,Ge,2,0,"mat-icon",25),p.qZA()),2&se){const F=S.$implicit,V=p.oxw();p.xp6(1),p.Q6J("ngIf",F.refrigerated),p.xp6(1),p.Q6J("ngIf",F.isShared),p.xp6(1),p.Q6J("ngIf",F.partnerId!==V.filterPartner)}}function ke(se,S){1&se&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&se&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.warehouses.name")," "))}function me(se,S){if(1&se&&(p.TgZ(0,"td",22),p._uU(1),p.qZA()),2&se){const F=S.$implicit;p.xp6(1),p.hij(" ",F.name,"")}}function re(se,S){1&se&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&se&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.warehouses.address")," "))}function ye(se,S){if(1&se&&(p.TgZ(0,"td",22),p._uU(1),p.qZA()),2&se){const F=S.$implicit;p.xp6(1),p.xDo(" ",F.address.street1," - ",F.address.city," - ",F.address.zip," - ",F.address.street1," - ",F.address.country,"")}}function Oe(se,S){1&se&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&se&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.warehouses.email")," "))}function Ae(se,S){if(1&se&&(p.TgZ(0,"td",22),p._uU(1),p.qZA()),2&se){const F=S.$implicit;p.xp6(1),p.hij(" ",F.address.email,"")}}function tt(se,S){1&se&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&se&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.warehouses.phone")," "))}function ot(se,S){if(1&se&&(p.TgZ(0,"td",22),p._uU(1),p.qZA()),2&se){const F=S.$implicit;p.xp6(1),p.hij(" ",F.phone," ")}}function at(se,S){1&se&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&se&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.warehouses.email")," "))}function pt(se,S){if(1&se&&(p.TgZ(0,"td",22),p._uU(1),p.qZA()),2&se){const F=S.$implicit;p.xp6(1),p.hij(" ",F.email," ")}}function ft(se,S){1&se&&(p.TgZ(0,"th",21),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&se&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"app.warehouses.pending")," "))}function Et(se,S){if(1&se&&(p.TgZ(0,"mat-icon",30),p._uU(1,"notification_important"),p.qZA()),2&se){const F=p.oxw().$implicit,V=p.oxw();p.Q6J("matBadge",V.getPendingTransactionsByWarehouse(F._id))}}function be(se,S){if(1&se&&(p.TgZ(0,"td",22),p.YNc(1,Et,2,1,"mat-icon",29),p.qZA()),2&se){const F=S.$implicit,V=p.oxw();p.xp6(1),p.Q6J("ngIf",F.partnerId===V.filterPartner&&V.getPendingTransactionsByWarehouse(F._id)>0)}}function Pe(se,S){1&se&&(p.TgZ(0,"th",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&se&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"shared.buttons.actions")," "))}function je(se,S){if(1&se){const F=p.EpF();p.TgZ(0,"button",33),p.NdJ("click",function(){p.CHM(F);const ne=p.oxw().$implicit,De=p.oxw();return p.KtG(De.onWarehouseEdit(ne._id))}),p.TgZ(1,"mat-icon"),p._uU(2,"edit"),p.qZA()()}}function dt(se,S){if(1&se){const F=p.EpF();p.TgZ(0,"button",33),p.NdJ("click",function(){p.CHM(F);const ne=p.oxw().$implicit,De=p.oxw();return p.KtG(De.showDetails(ne._id))}),p.TgZ(1,"mat-icon"),p._uU(2,"info"),p.qZA()()}}function et(se,S){if(1&se){const F=p.EpF();p.TgZ(0,"button",33),p.NdJ("click",function(){p.CHM(F);const ne=p.oxw().$implicit,De=p.oxw();return p.KtG(De.removeWarehouse(ne._id))}),p.TgZ(1,"mat-icon"),p._uU(2,"delete"),p.qZA()()}}function gt(se,S){if(1&se&&(p.TgZ(0,"td",22),p.YNc(1,je,3,0,"button",32),p.YNc(2,dt,3,0,"button",32),p.YNc(3,et,3,0,"button",32),p.qZA()),2&se){const F=S.$implicit,V=p.oxw();p.xp6(1),p.Q6J("ngIf",F.partnerId===V.filterPartner),p.xp6(1),p.Q6J("ngIf",F.partnerId===V.filterPartner),p.xp6(1),p.Q6J("ngIf",F.partnerId===V.filterPartner)}}function Re(se,S){1&se&&p._UZ(0,"tr",34)}function we(se,S){1&se&&p._UZ(0,"tr",35)}const ce=function(){return[10,20,30]};let ve=(()=>{class se extends A.Mf{constructor(F,V,ne){super(F),this.warehousesService=V,this.router=ne,this.warehouses=[],this.filterPartner="",this.pendingTransactions={},this.warehousesDataSource=new i.by(this.warehouses),this.warehousesDisplayedColumns=["symbols","name","address","email","phone","warehouse-email","pending","actions"]}ngOnInit(){var F=this;return(0,d.Z)(function*(){F.filterPartner=F.partnerId?F.partnerId:F.authData.partnerId,F.getWarehouses(F.authData?.partnerId),F.getAllPendingTransactions()})()}getWarehouses(F){var V=this;return(0,d.Z)(function*(){V.warehousesService.getAllPartnerAvailableWarehousesRest(V.partnerId?V.partnerId:F).subscribe(ne=>{V.warehouses=ne.data,V.warehousesDataSource.data=V.warehouses,V.warehousesDataSource.paginator=V.warehousesPaginator,V.warehousesDataSource.sort=V.warehousesSort})})()}onAdd(){var F=this;return(0,d.Z)(function*(){F.router.navigate([F.partnerId?"/admin/warehouse":"/warehouse",{partnerId:F.partnerId?F.partnerId:""}])})()}onWarehouseEdit(F){this.router.navigate([this.partnerId?"/admin/warehouse":"/warehouse",{id:F,partnerId:this.partnerId?this.partnerId:""}])}showDetails(F){this.router.navigate([this.partnerId?"/admin/warehouse-details":"/warehouse-details",{id:F,partnerId:this.partnerId?this.partnerId:""}])}removeWarehouse(F){const V=this.authData?.partnerId;this.warehousesService.removeWarehouse(F).then(ne=>{this.getWarehouses(this.partnerId?this.partnerId:V)}).catch(ne=>{console.log(ne.message)})}getAllPendingTransactions(){this.warehousesService.getPendingTransactionsNumber().subscribe(F=>{this.pendingTransactions=F.data})}getPendingTransactionsByWarehouse(F){return this.pendingTransactions[F]}}return se.\u0275fac=function(F){return new(F||se)(p.Y36(A.e8),p.Y36(v.c),p.Y36(k.F0))},se.\u0275cmp=p.Xpm({type:se,selectors:[["app-warehouses"]],viewQuery:function(F,V){if(1&F&&(p.Gf(Ee,5),p.Gf(ue,5)),2&F){let ne;p.iGM(ne=p.CRH())&&(V.warehousesPaginator=ne.first),p.iGM(ne=p.CRH())&&(V.warehousesSort=ne.first)}},inputs:{partnerId:"partnerId"},features:[p.qOj],decls:38,vars:9,consts:[[1,"container"],[1,"fill-space"],["mat-button","","color","primary",3,"click",4,"ngIf"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["warehousesSort","matSort"],["matColumnDef","symbols"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","address"],["matColumnDef","email"],["matColumnDef","phone"],["matColumnDef","warehouse-email"],["matColumnDef","pending"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page of listing products",3,"pageSizeOptions"],["warehousesPaginator",""],["mat-button","","color","primary",3,"click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltip","Refrigerato","mat-list-icon","",4,"ngIf"],["mat-list-icon","","matTooltip","Condiviso con altri partner",4,"ngIf"],["mat-list-icon","","matTooltip","Di propriet\xe0 di terzi",4,"ngIf"],["matTooltip","Refrigerato","mat-list-icon",""],["mat-list-icon","","matTooltip","Condiviso con altri partner"],["mat-list-icon","","matTooltip","Di propriet\xe0 di terzi"],["matBadgeColor","warn",3,"matBadge",4,"ngIf"],["matBadgeColor","warn",3,"matBadge"],["mat-header-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(F,V){1&F&&(p.TgZ(0,"div",0)(1,"mat-toolbar")(2,"mat-icon"),p._uU(3,"warehouse"),p.qZA(),p._uU(4),p.ALo(5,"translate"),p._UZ(6,"span",1),p.YNc(7,Ze,5,3,"button",2),p.qZA(),p.TgZ(8,"table",3,4),p.ynx(10,5),p.YNc(11,Qe,3,3,"th",6),p.YNc(12,Ce,4,3,"td",7),p.BQk(),p.ynx(13,8),p.YNc(14,ke,3,3,"th",6),p.YNc(15,me,2,1,"td",7),p.BQk(),p.ynx(16,9),p.YNc(17,re,3,3,"th",6),p.YNc(18,ye,2,5,"td",7),p.BQk(),p.ynx(19,10),p.YNc(20,Oe,3,3,"th",6),p.YNc(21,Ae,2,1,"td",7),p.BQk(),p.ynx(22,11),p.YNc(23,tt,3,3,"th",6),p.YNc(24,ot,2,1,"td",7),p.BQk(),p.ynx(25,12),p.YNc(26,at,3,3,"th",6),p.YNc(27,pt,2,1,"td",7),p.BQk(),p.ynx(28,13),p.YNc(29,ft,3,3,"th",6),p.YNc(30,be,2,1,"td",7),p.BQk(),p.ynx(31,14),p.YNc(32,Pe,3,3,"th",15),p.YNc(33,gt,4,3,"td",7),p.BQk(),p.YNc(34,Re,1,0,"tr",16),p.YNc(35,we,1,0,"tr",17),p.qZA(),p._UZ(36,"mat-paginator",18,19),p.qZA()),2&F&&(p.xp6(4),p.hij(" ",p.lcZ(5,6,"app.warehouses.title")," "),p.xp6(3),p.Q6J("ngIf",V.partnerId),p.xp6(1),p.Q6J("dataSource",V.warehousesDataSource),p.xp6(26),p.Q6J("matHeaderRowDef",V.warehousesDisplayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",V.warehousesDisplayedColumns),p.xp6(1),p.Q6J("pageSizeOptions",p.DdM(8,ce)))},dependencies:[f.O5,b.lW,b.RK,J.k,Y.Hw,W.NW,B.YE,B.nU,i.BZ,i.fO,i.as,i.w1,i.Dz,i.nj,i.ge,i.ev,i.XQ,i.Gk,Z.Ye,G.gM,ie.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center}table[_ngcontent-%COMP%]{width:100%}"]}),se})()},6466:(vn,_t,y)=>{"use strict";y.d(_t,{i:()=>v});var d=y(6630),i=y(2198),A=y(4650);let p=(()=>{class k{}return k.buyButton="buy-button",k.buyButtonType="type",k.buyButtonItemSelection="item-selection",k.buyButtonCustomization="customization",k.buyButtonCopyCode="copy-code",k})(),v=(()=>{class k{constructor(b){this.router=b,this.currentChildState="",this.statesSequence=[p.buyButtonType,p.buyButtonItemSelection,p.buyButtonCustomization,p.buyButtonCopyCode],this.router.events.pipe((0,i.h)(J=>J instanceof d.m2)).subscribe(()=>this.routeChanged())}goToItemSelection(b){this.navigateTo(p.buyButtonItemSelection,`${b}`)}goToCustomization(b,J){this.navigateTo(p.buyButtonCustomization,`${b}`,J)}goToCopyCode(){this.navigateTo(p.buyButtonCopyCode)}goToBuyButtonHome(){this.navigateTo(p.buyButtonType)}navigateTo(b,...J){let Y="";J?.length>0&&J.forEach(W=>Y=Y.concat(`/${W}`)),this.router.navigate([`/${p.buyButton}/${b}${Y}`])}routeChanged(){this.currentChildState=this.router.parseUrl(this.router.url).root.children.primary.segments[1]?.path??""}}return k.\u0275fac=function(b){return new(b||k)(A.LFG(d.F0))},k.\u0275prov=A.Yz7({token:k,factory:k.\u0275fac,providedIn:"any"}),k})()},7556:(vn,_t,y)=>{"use strict";y.d(_t,{Mf:()=>k,e8:()=>W});var d=y(5861),i=y(6438),A=y(4850),p=y(3078),v=y(4650);class k{constructor(Z){this.authService=Z,this.authData=Z.currentAuthData,Z.currentAuth.subscribe(G=>{G&&(this.authData=G)})}}const b=p.Ps`
mutation login ($username: String!, $password: String! ){
login (username: $username, password: $password) {
userId,
token,
partnerId
}
}
`,J="currentAuth",Y=new class f{constructor(){this.userId="",this.token="",this.partnerId=""}};let W=(()=>{class B{constructor(G){this.apollo=G;const ie=localStorage.getItem(J),Ee=ie?JSON.parse(ie):Y;this.currentAuthSubject=new i.X(Ee),this.currentAuth=this.currentAuthSubject.asObservable()}setSession(G){localStorage.setItem(J,JSON.stringify(G)),this.currentAuthSubject.next(G)}get currentAuthData(){return this.currentAuthSubject.value}isLogged(){return this.currentAuthSubject.value.token.length>0}logout(){localStorage.removeItem(J),this.currentAuthSubject.next(Y)}login(G,ie){var Ee=this;return(0,d.Z)(function*(){const ue=yield Ee.apollo.mutate({mutation:b,variables:{username:G,password:ie}}).toPromise();if(ue.errors)throw console.log(ue.errors),new Error(ue.errors.toString());if(ue.data)return Ee.setSession(ue.data.login),ue.data.login;throw new Error("Uknown error")})()}getUserType(){const G=p.Ps`
query {
userById (_id: "${this.currentAuthData.userId}") {
userType
}
}`;return this.apollo.query({query:G,fetchPolicy:"network-only"}).pipe((0,A.U)(ie=>ie.data.userById.userType))}checkAccessibleFeatureAvailability(G,ie,Ee){return!!G?.userModuleAccessibleFeatures?.find(ue=>ue[0]===ie&&ue[1]===Ee)}}return B.\u0275fac=function(G){return new(G||B)(v.LFG(p._M))},B.\u0275prov=v.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})()},4911:(vn,_t,y)=>{"use strict";y.d(_t,{av:()=>J,s3:()=>f});var d=y(5861),i=y(529),A=y(3078),p=y(2340),v=y(4650);class f{constructor(W,B,Z,G="",ie="",Ee=[],ue=!0,Ze=!1,Qe=!0,vt=!1,$e=!1,Ge="",Ce=[],ke="",me="",re=[],ye="",Oe=!1,Ae=!1,tt=!0,ot=!1,at=!1,pt=new Date,ft=new Date,Et=[],be="",Pe=""){this.title=W,this.description=B,this.customDescription="",this.partnerId=Z,this.media=Ee,this.customerSku=Pe,this.sku=G,this.barcode=ie,this.quantity=0,this.requiresShipping=!0,this.inventoryLevels=[],this.size={height:null,length:null,width:null},this.bookedQuantity=0,this.trackInventory=ue,this.sellBelowZero=Ze,this.showMsrp=Qe,this.refrigerated=vt,this.deleted=$e,this.category={},this.attributes=[],this.channelId=Ge,this.imsCategories=Ce,this.imsTaxCode=ke,this.brand=me,this.linkedProducts=re,this.recomExplanation=ye,this.fragile=Oe,this.bottle=Ae,this.imsEnabled=tt,this.isValidFrom=ot,this.isValidUntil=at,this.validFrom=pt,this.validUntil=ft,this.offers=Et,this.masterId=be}}class b{constructor(W){this.title=W.title,this.description=W.description,this.customDescription=W.customDescription,this.inventoryLevels=[];for(const B of W.inventoryLevels)this.inventoryLevels.push({warehouseId:B.warehouseId,amount:B.amount,bookings:B.bookings});if(this.partnerId=W.partnerId,this.price=W.price,this.originalPrice=W.originalPrice,this.msrp=W.msrp,this.customerSku=W.customerSku,this.sku=W.sku,this.barcode=W.barcode,this.categoryId=W.categoryId,this.attributes=W.attributes,this.requiresShipping=W.requiresShipping,this.weight=W.weight,this.size={height:void 0,length:void 0,width:void 0},W.requiresShipping&&(this.size={length:W.size.length,width:W.size.width,height:W.size.height}),this.updatedAt=W.updatedAt,this.createdAt=W.createdAt,this.imsgid=W.imsgid,this.media=[],W.media)for(const B of W.media)this.media.push({name:B.name,url:B.url,type:B.type,data:B.data,imsgid:B.imsgid,filePath:B.filePath,showPath:B.showPath});this.bookedQuantity=W.bookedQuantity,this.trackInventory=W.trackInventory,this.sellBelowZero=W.sellBelowZero,this.showMsrp=W.showMsrp,this.refrigerated=W.refrigerated,this.deleted=W.deleted,this.channelId=W.channelId,this.imsCategories=W.imsCategories,this.imsTaxCode=W.imsTaxCode,this.attributeSetId=W.attributeSetId,this.brand=W.brand,this.linkedProducts=W.linkedProducts,this.recomExplanation=W.recomExplanation,this.fragile=W.fragile,this.bottle=W.bottle,this.imsEnabled=W.imsEnabled,this.isValidFrom=W.isValidFrom,this.isValidUntil=W.isValidUntil,this.validFrom=W.validFrom,this.validUntil=W.validUntil,this.offers=W.offers,this.masterId=W.masterId}}let J=(()=>{class Y{constructor(B,Z){this.apolloCLient=B,this.http=Z,this.serverApi=p.N.restUrl,this.productOneById=A.Ps`
query ($productId: MongoID!){
productOne( filter: {_id: $productId} ){
_id,
title,
description,
customDescription,
brand,
partnerId,
imsgid,
media{
name,
url,
type,
data,
imsgid,
filePath,
showPath,
},
price,
originalPrice,
msrp,
customerSku,
sku,
barcode,
quantity,
bookedQuantity,
trackInventory,
sellBelowZero,
showMsrp,
channelId,
refrigerated,
imsCategories,
imsTaxCode,
deleted,
requiresShipping,
inventoryLevels {
warehouseId,
warehouse {
_id,
name,
partnerId,
},
amount,
bookings {
amount,
omsgid,
fulfilled,
channelId,
}
},
categoryId,
category {
name {
code
label
},
isLeaf,
isRoot,
googleId,
childrenId,
parentId
},
attributes {
attribute {
name,
type,
required
}
value
},
weight,
size {
height,
length,
width
},
updatedAt,
createdAt,
fragile,
bottle,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
recomExplanation,
linkedProducts {
productId,
similarProducts
},
offers {
_id,
sku,
title,
description,
price,
channelId,
deleted,
imsCategories,
urlKey,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
attributes {
attribute {
name,
type,
required
}
value
},
}
}
}
`,this.productOneByImsgid=A.Ps`
query ($imsgid: String!){
productOne( filter: {imsgid: $imsgid} ){
_id,
title,
description,
customDescription,
brand,
partnerId,
imsgid,
media{
name,
url,
type,
data,
imsgid,
filePath,
showPath,
},
price,
originalPrice,
msrp,
customerSku,
sku,
barcode,
quantity,
bookedQuantity,
trackInventory,
sellBelowZero,
showMsrp,
channelId,
refrigerated,
imsCategories,
imsTaxCode,
deleted,
requiresShipping,
inventoryLevels {
warehouseId,
warehouse {
_id,
name,
partnerId,
},
amount,
bookings {
amount,
omsgid,
fulfilled,
channelId,
}
},
weight,
size {
height,
length,
width
},
updatedAt,
createdAt,
recomExplanation,
fragile,
bottle,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
linkedProducts {
productId,
similarProducts
},
offers {
_id,
sku,
title,
description,
price,
channelId,
deleted,
imsCategories,
urlKey,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
attributes {
attribute {
name,
type,
required
}
value
},
}
}
}
`,this.warehouseProductManyFetch=A.Ps`
query ($warehouseId: MongoID!){
productMany( filter: { inventoryLevels : { warehouseId: $warehouseId } } ){
_id,
title,
description,
customDescription,
brand,
partnerId,
imsgid,
media{
name,
url,
type,
data,
imsgid,
filePath,
showPath,
},
price,
originalPrice,
msrp,
customerSku,
sku,
barcode,
quantity,
bookedQuantity,
trackInventory,
sellBelowZero,
showMsrp,
channelId,
refrigerated,
imsCategories,
imsTaxCode,
deleted,
requiresShipping,
inventoryLevels {
warehouseId,
warehouse {
_id,
name,
partnerId,
}
amount,
bookings {
amount,
omsgid,
fulfilled,
channelId,
}
},
weight,
size {
height,
length,
width
},
updatedAt,
createdAt,
recomExplanation,
fragile,
bottle,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
linkedProducts {
productId,
similarProducts
},
offers {
_id,
sku,
title,
description,
price,
channelId,
deleted,
imsCategories,
urlKey,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
attributes {
attribute {
name,
type,
required
}
value
},
}
}
}
`,this.productManyFetch=A.Ps`
query ($partnerId: MongoID!){
productMany( filter: {partnerId:$partnerId} ){
_id,
title,
description,
customDescription,
brand,
partnerId,
imsgid,
media{
name,
url,
type,
data,
imsgid,
filePath,
showPath,
},
price,
originalPrice,
msrp,
customerSku,
sku,
barcode,
quantity,
bookedQuantity,
trackInventory,
sellBelowZero,
showMsrp,
channelId,
refrigerated,
imsCategories,
imsTaxCode,
deleted,
requiresShipping,
inventoryLevels {
amount,
bookings {
amount,
omsgid,
fulfilled,
channelId,
}
},
weight,
size {
height,
length,
width
},
updatedAt,
createdAt,
recomExplanation,
fragile,
bottle,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
linkedProducts {
productId,
similarProducts
},
offers {
_id,
sku,
title,
description,
price,
channelId,
deleted,
imsCategories,
urlKey,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
attributes {
attribute {
name,
type,
required
}
value
},
}
}
}
`,this.productMutationAdd=A.Ps`
mutation ($product: CreateOneProductInput!){
productCreateOne(record: $product ){
record{
_id,
title,
description,
customDescription,
brand,
partnerId,
imsgid,
media{
name,
url,
type,
data,
imsgid,
filePath,
showPath,
},
price,
originalPrice,
msrp,
sku,
customerSku,
barcode,
categoryId,
bookedQuantity,
trackInventory,
sellBelowZero,
showMsrp,
channelId,
refrigerated,
imsCategories,
imsTaxCode,
deleted,
requiresShipping,
weight,
size {
height,
length,
width
},
updatedAt,
createdAt,
recomExplanation,
fragile,
bottle,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
linkedProducts {
productId,
similarProducts
},
offers {
_id,
sku,
title,
description,
price,
channelId,
deleted,
imsCategories,
urlKey,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
attributes {
attribute {
name,
type,
required
}
value
},
}
}
}
}
`,this.productMutationUpdate=A.Ps`
mutation ($id: MongoID!, $product: UpdateByIdProductInput!){
productUpdateById(_id: $id, record: $product ){
recordId
}
}
`,this.productMutationDelete=A.Ps`
mutation ($id: MongoID!){
productRemoveById(_id: $id){
recordId
}
}
`,this.getReferencesByListingID=A.Ps`
query($listings:[MongoID]) {
getProductsByListingsID(listings:$listings) {
_id,
title,
description,
customDescription,
brand,
partnerId,
imsgid,
price,
originalPrice,
msrp,
sku,
customerSku,
barcode,
quantity,
bookedQuantity,
trackInventory,
sellBelowZero,
showMsrp,
channelId,
refrigerated,
imsCategories,
imsTaxCode,
deleted,
requiresShipping,
inventoryLevels {
amount,
bookings {
amount,
omsgid,
fulfilled,
channelId,
}
},
weight,
size {
height,
length,
width
},
media{
name,
url,
type,
data,
imsgid,
filePath,
showPath,
},
updatedAt,
createdAt,
recomExplanation,
fragile,
bottle,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
linkedProducts {
productId,
similarProducts
},
offers {
_id,
sku,
title,
description,
price,
channelId,
deleted,
imsCategories,
urlKey,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
attributes {
attribute {
name,
type,
required
}
value
},
}
}
}
`,this.getAvailableReferencesByListingID=A.Ps`
query($listings:[MongoID]) {
getAvailableProductsByListingsID(listings:$listings) {
_id,
title,
description,
customDescription,
brand,
partnerId,
imsgid,
price,
originalPrice,
msrp,
sku,
customerSku,
barcode,
quantity,
bookedQuantity,
trackInventory,
sellBelowZero,
showMsrp,
channelId,
refrigerated,
imsCategories,
imsTaxCode,
deleted,
requiresShipping,
inventoryLevels {
amount,
bookings {
amount,
omsgid,
fulfilled,
channelId,
}
},
weight,
size {
height,
length,
width
},
media{
name,
url,
type,
data,
imsgid,
filePath,
showPath,
},
updatedAt,
createdAt,
recomExplanation,
fragile,
bottle,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
linkedProducts {
productId,
similarProducts
},
offers {
_id,
sku,
title,
description,
price,
channelId,
deleted,
imsCategories,
urlKey,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
attributes {
attribute {
name,
type,
required
}
value
},
}
}
}
`,this.setInventoryLevelByReferenceID=A.Ps`
mutation ($user: MongoID!, $warehouse: MongoID!, $product: MongoID!, $quantity: Float){
setInventoryLevelByProductID(user:$user, warehouse:$warehouse, product:$product, quantity:$quantity){
_id,
title,
description,
customDescription,
brand,
partnerId,
imsgid,
price,
originalPrice,
msrp,
sku,
customerSku,
barcode,
quantity,
bookedQuantity,
trackInventory,
sellBelowZero,
showMsrp,
channelId,
refrigerated,
imsCategories,
imsTaxCode,
deleted,
requiresShipping,
inventoryLevels {
amount,
bookings {
amount,
omsgid,
fulfilled,
channelId,
}
},
weight,
size {
height,
length,
width
},
media{
name,
url,
type,
data,
imsgid,
filePath,
showPath,
},
inventoryLevels {
amount,
bookings {
amount,
omsgid,
fulfilled,
channelId,
}
},
recomExplanation,
fragile,
bottle,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
linkedProducts {
productId,
similarProducts
},
offers {
_id,
sku,
title,
description,s
price,
channelId,
deleted,
imsCategories,
urlKey,
imsEnabled,
isValidFrom,
isValidUntil,
validFrom,
validUntil,
attributes {
attribute {
name,
type,
required
}
value
},
}
}
}
`}getUserCatalog(B){var Z=this;return(0,d.Z)(function*(){return(yield Z.apolloCLient.query({query:Z.productManyFetch,fetchPolicy:"network-only",variables:{partnerId:B}}).toPromise().catch(ie=>{throw new Error(ie)})).data.productMany})()}getReference(B){var Z=this;return(0,d.Z)(function*(){return(yield Z.apolloCLient.query({query:Z.productOneById,fetchPolicy:"network-only",variables:{productId:B}}).toPromise().catch(ie=>{throw new Error(ie)})).data.productOne})()}getReferenceByImsgid(B){var Z=this;return(0,d.Z)(function*(){return(yield Z.apolloCLient.query({query:Z.productOneByImsgid,fetchPolicy:"network-only",variables:{imsgid:B}}).toPromise().catch(ie=>{throw new Error(ie)})).data.productOne})()}addNewReference(B){var Z=this;return(0,d.Z)(function*(){const G=new b(B),ie=yield Z.apolloCLient.mutate({mutation:Z.productMutationAdd,variables:{product:G}}).toPromise().catch(Ee=>{throw new Error(Ee)});if(ie.data?.productCreateOne.error)throw new Error(ie.data?.productCreateOne.error.message.toString());return ie.data?.productCreateOne.record})()}updateReference(B){var Z=this;return(0,d.Z)(function*(){const G=new b(B),ie=yield Z.apolloCLient.mutate({mutation:Z.productMutationUpdate,variables:{id:B._id,product:G}}).toPromise().catch(Ee=>{throw console.log(`product ${B._id} update error: ${Ee}`),new Error(Ee)});if(ie.data?.productUpdateById.error)throw new Error(ie.data?.productUpdateById.error.message.toString());return ie.data?.productUpdateById.recordId})()}deleteReference(B){var Z=this;return(0,d.Z)(function*(){const G=yield Z.apolloCLient.mutate({mutation:Z.productMutationDelete,variables:{id:B._id}}).toPromise().catch(ie=>{throw console.log("Error in query: "+ie),new Error(ie)});if(G.data?.productRemoveById.error)throw new Error(G.data?.productRemoveById.error.message.toString());return G.data?.productRemoveById.recordId})()}getWarehouseReferences(B){var Z=this;return(0,d.Z)(function*(){return(yield Z.apolloCLient.query({query:Z.warehouseProductManyFetch,fetchPolicy:"network-only",variables:{warehouseId:B}}).toPromise().catch(ie=>{throw new Error(ie)})).data.productMany})()}getReferencesFromListing(B){var Z=this;return(0,d.Z)(function*(){return(yield Z.apolloCLient.mutate({mutation:Z.getReferencesByListingID,fetchPolicy:"network-only",variables:{listings:B}}).toPromise().catch(ie=>{throw new Error(ie)})).data?.getReferencesByListingsID})()}getAvailableReferencesToAdd(B){var Z=this;return(0,d.Z)(function*(){return(yield Z.apolloCLient.mutate({mutation:Z.getAvailableReferencesByListingID,fetchPolicy:"network-only",variables:{listings:B}}).toPromise().catch(ie=>{throw new Error(ie)})).data?.getAvailableReferencesByListingsID})()}setProductInventoryLevelByProductID(B,Z,G,ie){var Ee=this;return(0,d.Z)(function*(){return(yield Ee.apolloCLient.mutate({mutation:Ee.setInventoryLevelByReferenceID,fetchPolicy:"network-only",variables:{user:B,product:Z,warehouse:G,quantity:ie}}).toPromise().catch(Ze=>{throw new Error(Ze)})).data?.setInventoryLevelByReferenceID})()}getUserReferences(B){return this.http.get(`${this.serverApi}/partners/${B}/productsSearch`)}getUserReferencesByChannel(B,Z){return this.http.get(`${this.serverApi}/partners/${B}/productSearch/${Z}`)}updateAllReferences(){return this.http.get(`${this.serverApi}/partners/updateProducts/`)}getReferencesByChannel(B){return this.http.get(`${this.serverApi}/partners/productSearch/${B}`)}createReference(B){const Z=new b(B);return this.http.post(`${this.serverApi}/partners/${B.partnerId}/products/`,Z)}updateUserReference(B){const Z=new b(B);return this.http.put(`${this.serverApi}/partners/${B.partnerId}/products/${B._id}`,Z)}setReferenceInventoryLevelByReferenceIDRest(B){return this.http.put(`${this.serverApi}/partners/${B.reference.partnerId}/products/updateInventory/`,B)}updateUserReferences(B){return this.http.put(`${this.serverApi}/partners/${B[0].partnerId}/products/`,B)}updateUserOffers(B,Z,G){return this.http.put(`${this.serverApi}/partners/${Z}/products/updateOffersPriceList`,{offerList:B,partnerId:Z,channelId:G})}deleteUserReference(B){const Z=new b(B);Z.deleted=!0;for(let G=0;G<Z.offers.length;G++)console.log("loading categories"),Z.offers[G].deleted=!0;return this.http.put(`${this.serverApi}/partners/${B.partnerId}/products/delete/${B._id}`,Z)}uploadReferenceImage(B,Z,G){console.log("carico immagine...");const ie=new FormData;return ie.append("image",G),ie.append("data",JSON.stringify(Z)),new i.WM({enctype:"multipart/form-data"}),console.log("lancio immagine..."),this.http.post(`${this.serverApi}/media/${B}`,ie)}deleteReferenceImage(B,Z){return this.http.delete(`${this.serverApi}/media/${Z}/products/${B}`)}getLinkedReferences(B){return this.http.get(`${this.serverApi}/partners/productSearch/linked/${B}`)}getMasters(){return this.http.get(`${this.serverApi}/masters/`)}getMaster(B){return this.http.get(`${this.serverApi}/masters/${B}`)}createMaster(B){return this.http.post(`${this.serverApi}/masters`,B)}getOffersFromCatalog(B,Z){const G=[];for(let ie=0;ie<B.length;ie++){const Ee=B[ie];for(let ue=0;ue<Ee.offers.length;ue++)Ee.offers[ue].channelId===Z&&G.push(Ee.offers[ue])}return G}}return Y.\u0275fac=function(B){return new(B||Y)(v.LFG(A._M),v.LFG(i.eN))},Y.\u0275prov=v.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})()},4655:(vn,_t,y)=>{"use strict";y.d(_t,{H:()=>A});var d=y(3078),i=y(4650);let A=(()=>{class p{constructor(k){this.apollo=k,this.categoryOneById=d.Ps`
query ($categoryId: MongoID!) {
categoryOne(filter: { _id: $categoryId }) {
_id,
name {
code
label
},
googleId,
parentId,
childrenId,
isRoot,
isLeaf,
parent {
_id
name {
code
label
}
parentId
}
}
}`,this.categoryManyByParentId=d.Ps`
query ($parentId: MongoID!) {
categoryMany(filter: { parentId: $parentId }) {
_id,
name {
code
label
},
googleId,
parentId,
childrenId,
isRoot,
isLeaf,
parent {
_id
name {
code
label
}
parentId
}
}
}`,this.categoryRoots=d.Ps`
query {
categoryRoots {
_id,
name {
code
label
},
googleId,
parentId,
childrenId,
isRoot,
isLeaf,
parent {
_id
name {
code
label
}
parentId
}
}
}`,this.categoryAttributes=d.Ps`
query ($categoryId: MongoID!) {
categoryAttributes(categoryId: $categoryId) {
name,
type,
required,
enum
}
}`}getCategoryOneById(k){return this.apollo.query({query:this.categoryOneById,fetchPolicy:"network-only",variables:{categoryId:k}})}getChildren(k){return this.apollo.watchQuery({query:this.categoryManyByParentId,fetchPolicy:"network-only",variables:{parentId:k}}).valueChanges}getCategoryRoots(){return this.apollo.watchQuery({query:this.categoryRoots,fetchPolicy:"network-only"}).valueChanges}getCategoryAttributes(k){return this.apollo.watchQuery({query:this.categoryAttributes,fetchPolicy:"network-only",variables:{categoryId:k}}).valueChanges}getCategoryName(k){const f=k.name;let J="";const Y=localStorage.getItem("indaco-lang")?.replace(/_/g,"-").toLowerCase();for(let W=0;W<f.length;W++){if(f[W].code.toLowerCase()===Y)return f[W].label;const B=f[W].code.toLowerCase().split("-"),Z=Y.split("-");(B[0]===Z[0]||B[0]!==Z[0]&&""===J)&&(J=f[W].label)}return J}}return p.\u0275fac=function(k){return new(k||p)(i.LFG(d._M))},p.\u0275prov=i.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})()},7198:(vn,_t,y)=>{"use strict";y.d(_t,{T:()=>b});var d=y(5861),i=y(3078),A=y(2340),p=y(4650),v=y(529);class f{constructor(Y){this.name=Y.name,this.prefix=Y.prefix,this.type=Y.type,this.imsAddress=Y.imsAddress,this.instanceId=Y.instanceId,this.websiteId=Y.websiteId,this.managerId=Y.managerId,this.storeName=Y.storeName,this.parentStore=Y.parentStore}}let b=(()=>{class J{constructor(W,B){this.apollo=W,this.http=B,this.serverApi=A.N.restUrl,this.channelsQuery=i.Ps`
query {
channelMany {
_id,
name,
storeName,
instanceId,
imsAddress,
websiteId,
managerId,
parentStore,
prefix
}
}
`}getChannels(){var W=this;return(0,d.Z)(function*(){return(yield W.apollo.query({query:W.channelsQuery,fetchPolicy:"network-only",variables:{}}).toPromise().catch(Z=>{throw new Error(Z)})).data.channelMany})()}createChannel(W){const B=new f(W);return this.http.post(`${this.serverApi}/channels/`,B)}getChannel(W){return this.http.get(`${this.serverApi}/channels/single/${W}`)}getUserChannels(W){return this.http.get(`${this.serverApi}/channels/partners/${W}`)}getUserOwnedChannels(W){return this.http.get(`${this.serverApi}/channels/partners/owned/${W}`)}getWarehouseChannels(W){return this.http.get(`${this.serverApi}/channels/warehouses/${W}`)}addPartnerToChannel(W,B){return this.http.post(`${this.serverApi}/channels/add/`,{channelId:B,entityId:W,entityType:"PARTNER"})}addWarehouseToChannel(W,B,Z,G){return this.http.post(`${this.serverApi}/channels/add/`,{channelId:B,entityId:W,entityType:"WAREHOUSE",isStorageWarehouse:Z,isShipmentWarehouse:G})}getAttributeSets(W,B){return this.http.get(`${this.serverApi}/attribute-sets/${W}/${B}`)}getAttributeSetByName(W,B,Z){return this.http.get(`${this.serverApi}/attribute-sets/${W}/${B}/${Z}`)}getCategories(W,B){return this.http.get(`${this.serverApi}/categories/${W}/${B}`)}getCategoryById(W,B,Z){return this.http.get(`${this.serverApi}/categories/${W}/${B}/${Z}`)}getTaxCodes(W="all",B){return this.http.get(`${this.serverApi}/tax/${W}/${B}`)}getChannelPartners(W){return this.http.get(`${this.serverApi}/channels/channelDetails/partners/${W}`)}}return J.\u0275fac=function(W){return new(W||J)(p.LFG(i._M),p.LFG(v.eN))},J.\u0275prov=p.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()},5998:(vn,_t,y)=>{"use strict";y.d(_t,{o:()=>b});var d=y(5861),i=y(3078),A=y(2340),p=y(4650),v=y(529);class k{constructor(Y){this.name=Y.name,this.handle=Y.handle,this.partnerId=Y.partnerId}}class f{constructor(Y){this.name=Y.name,this.handle=Y.handle,this.partnerId=Y.partnerId,this.imsgid=Y.imsgid,this.entries=Y.entries,this.isDiscountActive=Y.isDiscountActive,this.discountValidFrom=Y.discountValidFrom,this.discountValidUntil=Y.discountValidUntil,this.isDiscountValidFrom=Y.isDiscountValidFrom,this.isDiscountValidUntil=Y.isDiscountValidUntil}}let b=(()=>{class J{constructor(W,B){this.apolloClient=W,this.http=B,this.serverApi=A.N.restUrl,this.fetchListingsMany=i.Ps`
query ($partnerId: MongoID!){
listingMany(filter:{ partnerId: $partnerId}){
_id,
name,
handle,
imsgid,
entries{
productId,
price
}
}
}
`,this.listingQuery=i.Ps`
query ($listingId: MongoID!) {
listingById (_id: $listingId) {
_id,
name,
handle,
imsgid,
partnerId,
entries{
productId,
price
},
isDiscountActive,
isDiscountValidFrom,
isDiscountValidUntil,
discountValidFrom,
discountValidUntil,
}
}
`,this.createListingMutation=i.Ps`
mutation ($listing: CreateOneListingInput!){
listingCreateOne(record: $listing){
record{
_id,
name,
handle,
isDiscountActive,
isDiscountValidFrom,
isDiscountValidUntil,
discountValidFrom,
discountValidUntil,
}
}
}`,this.deleteListingMutation=i.Ps`
mutation ($id: MongoID!){
listingRemoveById(_id: $id){
record{
_id
imsgid
}
}
}`,this.listingUpdateMutation=i.Ps`
mutation ($id: MongoID!, $record: UpdateByIdListingInput!){
listingUpdateById(_id: $id, record: $record ){
record{
imsgid,
name,
handle,
partnerId,
isDiscountActive,
isDiscountValidFrom,
isDiscountValidUntil,
discountValidFrom,
discountValidUntil,
entries{
productId,
price
}
}
}
}
`,this.listingUpdateProductsMutation=i.Ps`
mutation ($entries: [ListingEntryProductInput], $isDiscount: Boolean){
updateListingProducts(entries: $entries, isDiscount: $isDiscount){
imsgid,
}
}
`,this.removeProductsFromListingMutation=i.Ps`
mutation removeProductsFromListing($listingIds:[MongoID], $productId:MongoID) {
removeProductsFromListing(listingIds:$listingIds, productId:$productId) {
name
}
}`,this.addProductToListingsMutation=i.Ps`
mutation addProductToListings($listingIds:[MongoID], $productId:MongoID) {
addProductToListings(listingIds:$listingIds, productId:$productId) {
name
}
}`,this.listingProductsQuery=i.Ps`
query ($listingId: MongoID!) {
getListingProducts (listingId: $listingId) {
product {
_id,
title,
description,
partnerId,
price,
originalPrice,
msrp,
sku,
},
price
}
}
`}getUserListings(W){var B=this;return(0,d.Z)(function*(){return(yield B.apolloClient.query({query:B.fetchListingsMany,fetchPolicy:"network-only",variables:{partnerId:W}}).toPromise().catch(G=>{throw new Error(G)})).data.listingMany})()}addNewListing(W){var B=this;return(0,d.Z)(function*(){const Z=new k(W);var G=yield B.apolloClient.mutate({mutation:B.createListingMutation,variables:{listing:Z}}).toPromise().catch(ie=>{throw new Error(ie)});if(G.data?.listingCreateOne.error)throw new Error(G.data?.listingCreateOne.error.message.toString());return G.data?.listingCreateOne.record})()}deleteListing(W){var B=this;return(0,d.Z)(function*(){return(yield B.apolloClient.mutate({mutation:B.deleteListingMutation,fetchPolicy:"network-only",variables:{id:W}}).toPromise().catch(G=>{throw new Error(G)})).data?.listingRemoveById.record})()}removeProductFromListing(W,B){var Z=this;return(0,d.Z)(function*(){return(yield Z.apolloClient.mutate({mutation:Z.removeProductsFromListingMutation,fetchPolicy:"network-only",variables:{listingIds:B,productId:W}}).toPromise().catch(ie=>{throw new Error(ie)})).data?.removeProductsFromListing.name})()}addProductToListing(W,B){var Z=this;return(0,d.Z)(function*(){return(yield Z.apolloClient.mutate({mutation:Z.addProductToListingsMutation,fetchPolicy:"network-only",variables:{listingIds:B,productId:W}}).toPromise().catch(ie=>{throw new Error(ie)})).data?.addProductToListings.name})()}getListingById(W){var B=this;return(0,d.Z)(function*(){return(yield B.apolloClient.query({query:B.listingQuery,fetchPolicy:"network-only",variables:{listingId:W}}).toPromise().catch(G=>{throw new Error(G)})).data.listingById})()}getListingProducts(W){var B=this;return(0,d.Z)(function*(){return(yield B.apolloClient.query({query:B.listingProductsQuery,fetchPolicy:"network-only",variables:{listingId:W}}).toPromise().catch(G=>{throw new Error(G)})).data.getListingProducts})()}updateListing(W){var B=this;return(0,d.Z)(function*(){const Z=new f(W),G=yield B.apolloClient.mutate({mutation:B.listingUpdateMutation,variables:{id:W._id,record:Z}}).toPromise().catch(ie=>{throw new Error(ie)});if(G.data?.listingUpdateById.error)throw new Error(G.data?.listingUpdateById.error.message.toString());return G.data?.listingUpdateById.recordId})()}updateListingProducts(W,B){var Z=this;return(0,d.Z)(function*(){return(yield Z.apolloClient.mutate({mutation:Z.listingUpdateProductsMutation,variables:{entries:W,isDiscount:B}}).toPromise().catch(ie=>{throw new Error(ie)})).data?.updateListingProducts.imsgid})()}updateListingProductsRest(W,B){return this.http.post(`${this.serverApi}/listings/updateProducts`,{entries:W,isDiscount:B})}restoreListingProductsRest(W){return this.http.post(`${this.serverApi}/listings/restoreProducts`,{entries:W})}addToListingRest(W,B){return this.http.post(`${this.serverApi}/listings/addOffer`,{offer:W,listingId:B})}getListingOffersRest(W){return this.http.get(`${this.serverApi}/listings/getOffers/${W}`)}getListingData(W){var B=this;return(0,d.Z)(function*(){const Z=yield B.getListingById(W),G=B.newListing();return Z&&(G._id=Z._id,G.handle=Z.handle,G.imsgid=Z.imsgid,G.name=Z.name,G.partnerId=Z.partnerId,G.entries=Z.entries,G.isDiscountActive=Z.isDiscountActive,G.isDiscountValidFrom=Z.isDiscountValidFrom,G.isDiscountValidUntil=Z.isDiscountValidUntil,G.discountValidFrom=Z.discountValidFrom,G.discountValidUntil=Z.discountValidUntil),G})()}newListing(){return{_id:"",name:"",handle:"",imsgid:"",partnerId:"",entries:[],isDiscountActive:!1,isDiscountValidFrom:!1,isDiscountValidUntil:!1,discountValidFrom:null,discountValidUntil:null}}}return J.\u0275fac=function(W){return new(W||J)(p.LFG(i._M),p.LFG(v.eN))},J.\u0275prov=p.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()},3254:(vn,_t,y)=>{"use strict";y.d(_t,{V:()=>i});class i{constructor(p,v,k="",f="",b="",J=[],Y=!1,W="",B=!0,Z=!1,G=!1,ie=new Date,Ee=new Date,ue=[],Ze=0){this.userCategories=[],this._id="TEMPXXXX"+Math.floor(9999*Math.random()).toString(),this.channelId=b,this.sku=p,this.title=k,this.description=f,this.price=v,this.imsCategories=J,this.deleted=Y,this.urlKey=W,this.imsEnabled=B,this.isValidFrom=Z,this.isValidUntil=G,this.validFrom=ie,this.validUntil=Ee,this.attributes=[],this.originalPrice=Ze}}},2331:(vn,_t,y)=>{"use strict";y.d(_t,{KM:()=>Y,Nz:()=>W});var d=y(5861),i=y(3078),A=y(2340),p=y(4650),v=y(529);class k{constructor(){this.name="",this.address1="",this.address2="",this.city="",this.province="",this.zip="",this.country=""}}class b{constructor(){this.amount=0,this.currencyCode=""}}class J{constructor(){this.displayName="",this.email="",this.phone=""}}class Y{constructor(){this.omsgid="",this.name="",this.instanceId="",this.storeName="",this.createdAt=new Date,this.customer=new J,this.shippingAddress=new k,this.totalPriceSet=new b,this.status="",this.fullyPaid=!1,this.cashOnDelivery=!1,this.warehouseId="",this.partnerId="",this.items=[],this.shipmentId="",this.shipment={},this.fulfilled=!1}}let W=(()=>{class B{constructor(G,ie){this.apollo=G,this.http=ie,this.serverApi=A.N.restUrl,this.orderQuery=i.Ps`
query ($orderId: String!) {
orderOne (filter:{omsgid:$orderId}) {
omsgid,
instanceId,
storeName,
name,
createdAt,
customer {
displayName,
email,
phone
},
shippingAddress {
name,
address1,
address2,
city,
province,
zip,
country
},
totalPriceSet {
amount,
currencyCode
},
status,
fullyPaid,
fullyPicked,
fulfilled,
cashOnDelivery,
warehouseId,
partnerId,
shipmentId,
shipment {
smsid,
status,
trackingCarrier,
trackingNumber
},
items {
imsgid,
name,
sku
quantity,
totalPriceSet{
amount,
currencyCode
},
unitPriceSet{
amount,
currencyCode
}
}
}
}
`,this.ordersRefreshMutation=i.Ps`
mutation ($partnerId: String!) {
ordersRefresh (partnerId: $partnerId) {
omsgid
}
}
`,this.ordersQuery=i.Ps`
query ($partnerId: MongoID!) {
orderMany (filter: {partnerId: $partnerId}, first:500) {
omsgid,
instanceId,
storeName,
name,
createdAt,
customer {
displayName,
email,
phone
},
shippingAddress {
name,
address1,
address2,
city,
province,
zip,
country
},
totalPriceSet {
amount,
currencyCode
},
status,
fullyPaid,
fullyPicked,
fulfilled,
cashOnDelivery,
warehouseId,
partnerId,
shipmentId,
shipment {
smsid,
status
}
items {
imsgid
}
}
}
`}getOrder(G){var ie=this;return(0,d.Z)(function*(){return(yield ie.apollo.query({query:ie.orderQuery,fetchPolicy:"network-only",variables:{orderId:G}}).toPromise().catch(ue=>{throw new Error(ue)})).data.orderOne})()}getOrders(G){var ie=this;return(0,d.Z)(function*(){return(yield ie.apollo.query({query:ie.ordersQuery,fetchPolicy:"network-only",variables:{partnerId:G}}).toPromise().catch(ue=>{throw new Error(ue)})).data.orderMany})()}syncOrders(G){var ie=this;return(0,d.Z)(function*(){const Ee=yield ie.apollo.mutate({mutation:ie.ordersRefreshMutation,fetchPolicy:"network-only",variables:{partnerId:G}}).toPromise().catch(ue=>{throw new Error(ue)});return Ee&&Ee.data?Ee.data.ordersRefresh:[]})()}getFullOrderSummaryByPartnerId(G,ie){return this.http.get(`${this.serverApi}/orders/summary/${G}/${ie}/`)}getOrderSummaryByPartnerId(G,ie,Ee,ue){return this.http.get(`${this.serverApi}/orders/summary/${G}/${ie}/${ue}/${Ee}/1/`)}getAdminOrderSummaryByPartnerId(G,ie,Ee,ue){return this.http.get(`${this.serverApi}/orders/summary/admin/${G}/${ie}/${ue}/${Ee}/1/`)}getAdminOrderDetailsByPartnerId(G,ie,Ee,ue){return this.http.get(`${this.serverApi}/orders/summary/details/admin/${G}/${ie}/${ue}/${Ee}/1/`)}getOrdersByPartnerId(G){return this.http.get(`${this.serverApi}/orders/all/${G}`)}getOpenOrdersByPartnerId(G){return this.http.get(`${this.serverApi}/orders/open/${G}`)}retryOrderFulfillmentByOrderId(G){return this.http.post(`${this.serverApi}/orders/retry`,G)}updateOrders(G){return this.http.get(`${this.serverApi}/orders/update/${G}/`)}}return B.\u0275fac=function(G){return new(G||B)(p.LFG(i._M),p.LFG(v.eN))},B.\u0275prov=p.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})()},220:(vn,_t,y)=>{"use strict";y.d(_t,{b:()=>b,k:()=>f});var d=y(5861),i=y(3078),A=y(4850),p=y(529),v=y(2340),k=y(4650);class f{constructor(){this._id="",this.companyName="",this.seller="",this.email="",this.address="",this.phone="",this.active=!1,this.enabled=!1,this.forcePasswordChange=!0,this.subscriptionPlanId="",this.vatNumber=""}}let b=(()=>{class J{constructor(W,B){this.apollo=W,this.http=B,this.serverApi=v.N.restUrl,this.partnerQuery=i.Ps`
query ($partnerId: MongoID!) {
partnerById (_id: $partnerId) {
_id,
companyName,
seller,
email,
address,
phone,
active,
enabled,
forcePasswordChange,
vatNumber,
subscriptionPlanId,
subscriptionPlan {
_id
name,
indacoModulesIds,
indacoModules {
_id,
code,
}
},
}
}
`}getPartner(W){var B=this;return(0,d.Z)(function*(){return(yield B.apollo.query({query:B.partnerQuery,fetchPolicy:"network-only",variables:{partnerId:W}}).toPromise().catch(G=>{throw new Error(G)})).data.partnerById})()}getAllPartners(){const W=i.Ps`
query {
partnerMany {
_id,
companyName,
seller,
email,
address,
phone,
active,
enabled,
forcePasswordChange,
vatNumber,
subscriptionPlan {
_id
name,
indacoModulesIds,
indacoModules {
_id,
}
},
}
}
`;return this.apollo.query({query:W,fetchPolicy:"network-only"}).pipe((0,A.U)(B=>B.data.partnerMany))}savePartner(W){const B=this.getSaveMutation(W),Z={...W};for(const G in Z)Object.prototype.hasOwnProperty.call(Z,G)&&G.startsWith("_")&&delete Z[G];return delete Z.subscriptionPlan,this.apollo.mutate({mutation:B,fetchPolicy:"network-only",variables:{partnerId:W._id,partnerRecord:Z}}).pipe((0,A.U)(G=>(W._id?G.data?.partnerUpdateById.recordId:G.data?.partnerCreateOne.recordId)??""))}getSaveMutation(W){return W._id?i.Ps`
mutation ($partnerId: MongoID!, $partnerRecord: UpdateByIdPartnerInput!) {
partnerUpdateById (_id: $partnerId, record: $partnerRecord) {
recordId
}
}
`:i.Ps`
mutation ($partnerRecord: CreateOnePartnerInput!) {
partnerCreateOne (record: $partnerRecord) {
recordId
}
}
`}getSells(W,B){let Z=new p.LE;return B&&(Z=Z.append("year",B)),this.http.get(`${this.serverApi}/charts/sells/${W}`,{params:Z})}readBestSellers(W,B,Z){let G=new p.LE;return B&&(G=G.append("year",B)),Z&&(G=G.append("firstN",Z)),this.http.get(`${this.serverApi}/charts/products/${W}`,{params:G})}getCustomerArea(W,B,Z){let G=new p.LE;return B&&(G=G.append("year",B)),Z&&(G=G.append("firstN",Z)),this.http.get(`${this.serverApi}/charts/customerLocation/${W}`,{params:G})}getNSales(W,B){let Z=new p.LE;return B&&(Z=Z.append("year",B)),this.http.get(`${this.serverApi}/charts/nSells/${W}`,{params:Z})}getCategoriesSold(W,B,Z){let G=new p.LE;return B&&(G=G.append("year",B)),Z&&(G=G.append("firstN",Z)),this.http.get(`${this.serverApi}/charts/nCategories/${W}`,{params:G})}getBrandsSold(W,B,Z){let G=new p.LE;return B&&(G=G.append("year",B)),Z&&(G=G.append("firstN",Z)),this.http.get(`${this.serverApi}/charts/nBrands/${W}`,{params:G})}}return J.\u0275fac=function(W){return new(W||J)(k.LFG(i._M),k.LFG(p.eN))},J.\u0275prov=k.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()},6234:(vn,_t,y)=>{"use strict";y.d(_t,{O:()=>p});var d=y(5861),i=y(3078),A=y(4650);let p=(()=>{class v{constructor(f){this.apolloClient=f,this.prodQuery=i.Ps`
query ($prodID: String!){
fetchDetails(prodId: $prodID) {
sku
title
description
}
}
`,this.suggestionQuery=i.Ps`
query ($searchHint: String!, $hintType: String!){
fetchSuggestions(hint: $searchHint, type: $hintType){
sku,
barcode,
title,
description
}
}
`}getReferenceDetails(f){var b=this;return(0,d.Z)(function*(){const J=yield b.apolloClient.use("pim").query({query:b.prodQuery,fetchPolicy:"network-only",variables:{prodID:f}}).toPromise();if(!J.data?.fetchDetails)throw new Error(`Cannot fetch details for product ${f}`);return J.data?.fetchDetails})()}getSuggestedProducts(f,b){var J=this;return(0,d.Z)(function*(){const Y=yield J.apolloClient.use("pim").query({query:J.suggestionQuery,fetchPolicy:"network-only",variables:{searchHint:f,hintType:b}}).toPromise();if(!Y.data?.fetchSuggestions)throw new Error(`Cannot fetch suggested products for ${f} ${b}`);return Y.data?.fetchSuggestions})()}}return v.\u0275fac=function(f){return new(f||v)(A.LFG(i._M))},v.\u0275prov=A.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},4961:(vn,_t,y)=>{"use strict";y.d(_t,{f:()=>v});var d=y(5861),i=y(3078),A=y(4850),p=y(4650);let v=(()=>{class k{constructor(b){this.apollo=b,this.userMany=[],this.loading=!0,this.usersQuery=i.Ps`
query {
userMany {
_id,
username,
email,
userType,
partner {
companyName
},
}
}
`,this.addUserMutation=i.Ps`
mutation ($username: String!, $email: String!, $password: String!, $partnerId: MongoID!) {
userCreateOne (record: {
username: $username,
email: $email,
password: $password,
partnerId: $partnerId
}){
recordId,
record {
username,
email
},
error {
message
},
}
}
`}getAllUsers(){var b=this;return(0,d.Z)(function*(){return(yield b.apollo.query({query:b.usersQuery,fetchPolicy:"network-only"}).toPromise().catch(Y=>{throw new Error(Y)})).data.userMany})()}addUser(){var b=this;return(0,d.Z)(function*(){const J=yield b.apollo.mutate({mutation:b.addUserMutation,variables:{username:"testUser2",email:"test@test.it",password:"password",partnerId:"6125199597b1612d8071eafd"}}).toPromise().catch(Y=>{throw new Error(Y)});if(J.data?.userCreateOne.error)throw new Error(J.data?.userCreateOne.error.message.toString());return J.data?.userCreateOne.recordId})()}getUser(b){const J=i.Ps`
query ($userId: MongoID!) {
userById (_id: $userId) {
_id,
username,
email,
userType,
partner {
_id,
companyName,
subscriptionPlanId,
subscriptionPlan {
indacoModulesIds,
indacoModules {
_id,
code,
name,
moduleAccessibleFeatures {
code,
name,
}
}
},
},
userModuleAccessibleFeatures,
}
}
`;return this.apollo.query({query:J,fetchPolicy:"network-only",variables:{userId:b}}).pipe((0,A.U)(Y=>Y.data.userById))}saveUser(b,J,Y=null){const W=this.getSaveMutation(b);return this.apollo.mutate({mutation:W,fetchPolicy:"network-only",variables:{userId:b._id,userRecord:{username:b.username,email:b.email,userType:b.userType,partnerId:J,password:Y,userModuleAccessibleFeatures:b.userModuleAccessibleFeatures}}}).pipe((0,A.U)(Z=>(b._id?Z.data?.userUpdateById.recordId:Z.data?.userCreateOne.recordId)??""))}getAllSuperAdmins(){const b=i.Ps`
query {
userMany (filter: {userType: ADMIN}) {
_id,
username,
email,
userType,
partner {
companyName
},
}
}
`;return this.apollo.query({query:b,fetchPolicy:"network-only"}).pipe((0,A.U)(J=>J.data.userMany))}getMyPartnerUsers(){const b=i.Ps`
query {
myPartnerUsers {
_id,
username,
email,
userType,
partner {
companyName
}
}
}
`;return this.apollo.query({query:b,fetchPolicy:"network-only"}).pipe((0,A.U)(J=>J.data.myPartnerUsers))}getPartnerUsers(b){const J=i.Ps`
query ($partnerId: MongoID!) {
userMany (filter: {partnerId: $partnerId, OR:[{userType: PARTNER_ADMIN}, {userType: STD}] }) {
_id,
username,
email,
userType,
partner {
companyName
}
}
}
`;return this.apollo.query({query:J,fetchPolicy:"network-only",variables:{partnerId:b}}).pipe((0,A.U)(Y=>Y.data.userMany))}deleteUser(b){const J=i.Ps`
mutation ($userId: MongoID!) {
userRemoveById (_id: $userId) {
recordId
}
}
`;return this.apollo.mutate({mutation:J,fetchPolicy:"network-only",variables:{userId:b}}).pipe((0,A.U)(()=>{}))}resetPassword(b,J,Y,W){const B=i.Ps`
mutation ($userId: String!, $newPassword: String!, $passwordConfirm: String!, $partnerId: String, $oldPassword: String) {
userResetPassword (userId: $userId, newPassword: $newPassword, passwordConfirm: $passwordConfirm, partnerId: $partnerId, oldPassword: $oldPassword) {
_id
}
}
`;return this.apollo.mutate({mutation:B,fetchPolicy:"network-only",variables:{userId:b._id,newPassword:J,passwordConfirm:Y,oldPassword:W,partnerId:b.partner?._id}}).pipe((0,A.U)(()=>{}))}getSaveMutation(b){return b._id?i.Ps`
mutation ($userId: MongoID!, $userRecord: UpdateByIdUserInput!) {
userUpdateById (_id: $userId, record: $userRecord) {
recordId
}
}
`:i.Ps`
mutation ($userRecord: CreateOneUserInput!) {
userCreateOne (record: $userRecord) {
recordId
}
}
`}}return k.\u0275fac=function(b){return new(b||k)(p.LFG(i._M))},k.\u0275prov=p.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})()},7646:(vn,_t,y)=>{"use strict";y.d(_t,{Cr:()=>Y,c:()=>ie,gX:()=>B});var d=y(5861),i=y(3078),A=y(2340),k=(y(4911),y(220),y(4650)),f=y(529);class b{constructor(){this.name="",this.latitude=0,this.longitude=0,this.company="",this.street1="",this.street2="",this.city="",this.province="",this.state="",this.zip="",this.country="",this.phone="",this.email=""}}class J{constructor(ue){this.name="",this.address=new b,this.phone="",this.isIndaco=!1,this.isShared=!1,this.refrigerated=!1,this.assignments=[],this.name=ue.name,this.email=ue.email,this.phone=ue.phone,this.isIndaco=ue.isIndaco,this.isShared=ue.isShared,this.refrigerated=ue.refrigerated,this.address.name=ue.address.name,this.address.latitude=ue.address.latitude,this.address.longitude=ue.address.longitude,this.address.company=ue.address.company,this.address.street1=ue.address.street1,this.address.street2=ue.address.street2,this.address.city=ue.address.city,this.address.province=ue.address.province,this.address.state=ue.address.state,this.address.zip=ue.address.zip,this.address.country=ue.address.country,this.address.phone=ue.address.phone,this.address.email=ue.address.email,this.assignments=ue.assignments}}class Y{constructor(){this._id="",this.name="",this.address=new b,this.email=[],this.phone="",this.isIndaco=!1,this.isShared=!1,this.refrigerated=!1,this.partnerId="",this.size=0,this.type="",this.assignments=[],this.channels=[],this.channelAssignments=[]}}class B{constructor(){this.name="Warehouse",this.partnerId="",this.inboundRate=0,this.storageRate=0,this.storageMode="LINEAR",this.minimumStorage=0,this.orderRate=0,this.returnRate=0,this.refrigerated=!1,this.initialDate=new Date,this.endDate=new Date(864e13)}}class G{constructor(ue){this.name=ue.name,this.address=ue.address,this.email=ue.email,this.phone=ue.phone,this.isIndaco=ue.isIndaco,this.partnerId=ue.partnerId,this.isShared=ue.isShared,this.refrigerated=ue.refrigerated,this.size=ue.size,this.type=ue.type,this.assignments=ue.assignments,this.channelAssignments=ue.channelAssignments}}let ie=(()=>{class Ee{constructor(Ze,Qe){this.apollo=Ze,this.http=Qe,this.serverApi=A.N.restUrl,this.warehouseQuery=i.Ps`
query ($warehouseId: MongoID!) {
warehouseById (_id: $warehouseId) {
_id,
name,
partnerId,
address {
name,
latitude,
longitude,
company,
street1,
street2,
city,
province,
zip,
state,
country,
phone,
email
}
assignments {
name,
partnerId,
inboundRate,
storageRate,
storageMode,
minimumStorage,
orderRate,
returnRate,
refrigerated,
initialDate,
endDate,
},
channelAssignments {
channelId,
shipmentWarehouse,
storageWarehouse
},
isShared,
isIndaco,
refrigerated,
email,
phone
}
}
`,this.channelWarehousesQuery=i.Ps`
query ($partnerId: MongoID, $channelId: MongoID, $isShared: Boolean) {
getChannelAvailableWarehouses (partnerId: $partnerId, channelId: $channelId, isShared: $isShared ) {
_id,
name,
partnerId,
address {
name,
latitude,
longitude,
company,
street1,
street2,
city,
province,
zip,
state,
country,
phone,
email
}
assignments {
name,
partnerId,
inboundRate,
storageRate,
storageMode,
minimumStorage,
orderRate,
returnRate,
refrigerated,
initialDate,
endDate,
},
channelAssignments {
channelId,
shipmentWarehouse,
storageWarehouse
},
isShared,
isIndaco,
refrigerated,
email,
phone
}
}
`,this.warehousesQuery=i.Ps`
query ($partnerId: MongoID!) {
warehouseMany ( filter: { partnerId: $partnerId } ) {
_id,
name,
partnerId,
address {
name,
latitude,
longitude,
company,
street1,
street2,
city,
province,
zip,
state,
country,
phone,
email
}
assignments {
name,
partnerId,
inboundRate,
storageRate,
storageMode,
minimumStorage,
orderRate,
returnRate,
refrigerated,
initialDate,
endDate,
},
channelAssignments {
channelId,
shipmentWarehouse,
storageWarehouse
},
isShared,
isIndaco,
refrigerated,
email,
phone
}
}
`,this.sharedWarehousesQuery=i.Ps`
query {
warehouseMany ( filter: { isShared: true } ) {
_id,
name,
partnerId,
address {
name,
latitude,
longitude,
company,
street1,
street2,
city,
province,
zip,
state,
country,
phone,
email
}
assignments {
name,
partnerId,
inboundRate,
storageRate,
storageMode,
minimumStorage,
orderRate,
returnRate,
refrigerated,
initialDate,
endDate,
},
channelAssignments {
channelId,
shipmentWarehouse,
storageWarehouse
},
isShared,
isIndaco,
refrigerated,
email,
phone
}
}
`,this.fullWarehouseJournalQuery=i.Ps`
query {
warehouseJournalMany {
_id,
date,
warehouseId,
warehouse {
name,
}
warehouseOriginId,
warehouseOrigin {
name,
}
partnerId,
partner{
companyName
}
productId,
product {
title
}
variation,
totalQuantity,
reason,
transfer,
refrigerated
}
}
`,this.addWarehouseMutation=i.Ps`
mutation ($warehouse: CreateOneWarehouseInput!) {
warehouseCreateOne (record: $warehouse){
recordId,
record {
name
},
error {
message
},
}
}
`,this.updateWarehouseMutation=i.Ps`
mutation ($warehouseId: MongoID!, $warehouse: UpdateByIdWarehouseInput!) {
warehouseUpdateById (_id: $warehouseId, record: $warehouse){
recordId,
error {
message
},
}
}
`,this.removeWarehouseMutation=i.Ps`
mutation ($warehouseId: MongoID!) {
warehouseRemoveOne (filter: {
_id: $warehouseId
}){
recordId,
error {
message
},
}
}
`}getWarehouse(Ze){var Qe=this;return(0,d.Z)(function*(){return(yield Qe.apollo.query({query:Qe.warehouseQuery,fetchPolicy:"network-only",variables:{warehouseId:Ze}}).toPromise().catch($e=>{throw new Error($e)})).data.warehouseById})()}getWarehouses(Ze){var Qe=this;return(0,d.Z)(function*(){return(yield Qe.apollo.query({query:Qe.channelWarehousesQuery,fetchPolicy:"network-only",variables:{partnerId:Ze}}).toPromise().catch($e=>{throw new Error($e)})).data.getChannelAvailableWarehouses})()}getSharedWarehouses(){var Ze=this;return(0,d.Z)(function*(){return(yield Ze.apollo.query({query:Ze.channelWarehousesQuery,fetchPolicy:"network-only"}).toPromise().catch(vt=>{throw new Error(vt)})).data.getChannelAvailableWarehouses})()}getWarehousesByReferenceRest(Ze,Qe,vt){return this.http.get(`${this.serverApi}/warehouses/product/${Ze}/partner/${Qe}/shared/${vt}`)}getPartnerWarehousesByChannelRest(Ze,Qe,vt){return this.http.get(`${this.serverApi}/warehouses/channel/${Ze}/partner/${Qe}/shared/${vt}`)}getWarehousesByChannelRest(Ze){return this.http.get(`${this.serverApi}/warehouses/channel/${Ze}`)}getAllPartnerAvailableWarehousesRest(Ze){return this.http.get(`${this.serverApi}/warehouses/partner/${Ze}`)}getAllWarehouseJournalByPartner(Ze){return this.http.get(`${this.serverApi}/warehouses/journal/partner/${Ze}`)}getAllWarehouseJournal(){return this.http.get(`${this.serverApi}/warehouses/journal/all/`)}getAllWarehouseJournalEntriesbyWarehouse(Ze,Qe){return this.http.get(`${this.serverApi}/warehouses/journal/warehouse/${Ze}/${Qe}`)}getAllWarehouseJournalEntriesbyWarehouseList(Ze,Qe){return this.http.post(`${this.serverApi}/warehouses/journal/warehouses/${Qe}`,{warehouses:Ze})}getPendingAmountByProduct(Ze,Qe){return this.http.get(`${this.serverApi}/warehouses/journal/pending/${Ze}/${Qe}`)}getPendingTransactionsNumber(){return this.http.get(`${this.serverApi}/warehouses/journal/pending/`)}processWarehousePendingTransaction(Ze,Qe){return this.http.post(`${this.serverApi}/warehouses/journal/process`,{journalId:Ze,approved:Qe})}getUnfulfilledTransactions(Ze){return this.http.get(`${this.serverApi}/warehouses/journal/notFulfilled/${Ze}`)}removeWarehouse(Ze){var Qe=this;return(0,d.Z)(function*(){const vt=yield Qe.apollo.mutate({mutation:Qe.removeWarehouseMutation,variables:{warehouseId:Ze}}).toPromise().catch($e=>{throw new Error($e)});if(vt.data?.warehouseRemoveOne.error)throw new Error(vt.data?.warehouseRemoveOne.error.message.toString());return vt.data?.warehouseRemoveOne.recordId})()}updateWarehouse(Ze){var Qe=this;return(0,d.Z)(function*(){const vt=new J(Ze),$e=yield Qe.apollo.mutate({mutation:Qe.updateWarehouseMutation,variables:{warehouseId:Ze._id,warehouse:vt}}).toPromise().catch(Ge=>{throw new Error(Ge)});if($e.data?.warehouseUpdateById.error)throw new Error($e.data?.warehouseUpdateById.error.message.toString());return $e.data?.warehouseUpdateById.recordId})()}addWarehouse(Ze){var Qe=this;return(0,d.Z)(function*(){const vt=new G(Ze),$e=yield Qe.apollo.mutate({mutation:Qe.addWarehouseMutation,variables:{warehouse:vt}}).toPromise().catch(Ge=>{throw console.log(Ge),new Error(Ge)});if($e.data?.warehouseCreateOne.error)throw new Error($e.data?.warehouseCreateOne.error.message.toString());return $e.data?.warehouseCreateOne.record})()}getFullWarehouseJournal(){var Ze=this;return(0,d.Z)(function*(){return(yield Ze.apollo.query({query:Ze.fullWarehouseJournalQuery,fetchPolicy:"network-only"}).toPromise().catch(vt=>{throw new Error(vt)})).data.warehouseJournalMany})()}}return Ee.\u0275fac=function(Ze){return new(Ze||Ee)(k.LFG(i._M),k.LFG(f.eN))},Ee.\u0275prov=k.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})()},8029:(vn,_t,y)=>{"use strict";y.d(_t,{u:()=>ie});var d=y(5412),i=y(4650),A=y(1266),p=y(6895),v=y(4006),k=y(4859),f=y(9549),b=y(7392),J=y(4144);function Y(Ee,ue){if(1&Ee){const Ze=i.EpF();i.TgZ(0,"button",10),i.NdJ("click",function(){i.CHM(Ze);const vt=i.oxw(2);return i.KtG(vt.oldPassword="")}),i.TgZ(1,"mat-icon"),i._uU(2,"close"),i.qZA()()}}function W(Ee,ue){if(1&Ee){const Ze=i.EpF();i.TgZ(0,"mat-form-field",3)(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"input",4),i.NdJ("ngModelChange",function(vt){i.CHM(Ze);const $e=i.oxw();return i.KtG($e.oldPassword=vt)}),i.qZA(),i.YNc(5,Y,3,0,"button",5),i.qZA()}if(2&Ee){const Ze=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,"app.users.oldPassword")),i.xp6(2),i.Q6J("ngModel",Ze.oldPassword),i.xp6(1),i.Q6J("ngIf",Ze.oldPassword)}}function B(Ee,ue){if(1&Ee){const Ze=i.EpF();i.TgZ(0,"button",10),i.NdJ("click",function(){i.CHM(Ze);const vt=i.oxw();return i.KtG(vt.newPassword="")}),i.TgZ(1,"mat-icon"),i._uU(2,"close"),i.qZA()()}}function Z(Ee,ue){if(1&Ee){const Ze=i.EpF();i.TgZ(0,"button",10),i.NdJ("click",function(){i.CHM(Ze);const vt=i.oxw();return i.KtG(vt.passwordConfirm="")}),i.TgZ(1,"mat-icon"),i._uU(2,"close"),i.qZA()()}}function G(Ee,ue){if(1&Ee&&(i.TgZ(0,"div",11)(1,"span"),i._uU(2),i.qZA()()),2&Ee){const Ze=i.oxw();i.xp6(2),i.Oqu(Ze.isPasswordValid())}}let ie=(()=>{class Ee{constructor(Ze,Qe,vt){this.dialogRef=Ze,this.translate=Qe,this.data=vt}ngOnInit(){}isPasswordValid(){return this.newPassword&&""!==this.newPassword?-1!==this.newPassword.search(/[^a-zA-Z0-9\ \!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~]/)?this.translate.instant("app.users.passwordInvalidCharacter"):0===this.newPassword.length?this.translate.instant("app.users.passwordRequired"):this.newPassword.length<12?this.translate.instant("app.users.passwordMinLength"):this.newPassword.length>50?this.translate.instant("app.users.passwordMaxLength"):-1===this.newPassword.search(/\d/)?this.translate.instant("app.users.passwordNumber"):-1===this.newPassword.search(/[a-z]/)?this.translate.instant("app.users.passwordLowercase"):-1===this.newPassword.search(/[A-Z]/)?this.translate.instant("app.users.passwordUppercase"):-1===this.newPassword.search(/[\ \!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~]/)?this.translate.instant("app.users.passwordSpecialCharacter"):this.newPassword!==this.passwordConfirm?this.translate.instant("app.users.PasswordsMustMatch"):null:this.translate.instant("app.users.passwordRequired")}isFormValid(){return!(null!==this.isPasswordValid()||this.data.isMyUser&&(!this.oldPassword||""===this.oldPassword))}confirm(){this.isFormValid()&&this.dialogRef.close({newPassword:this.newPassword,passwordConfirm:this.passwordConfirm,oldPassword:this.oldPassword})}cancel(){this.dialogRef.close(null)}}return Ee.\u0275fac=function(Ze){return new(Ze||Ee)(i.Y36(d.so),i.Y36(A.sK),i.Y36(d.WI))},Ee.\u0275cmp=i.Xpm({type:Ee,selectors:[["app-reset-password-modal"]],decls:25,vars:22,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["class","full-width","appearance","fill",4,"ngIf"],["appearance","fill",1,"full-width"],["matInput","","required","","required","","type","password",3,"ngModel","ngModelChange"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["style","color: red",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"disabled","click"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[2,"color","red"]],template:function(Ze,Qe){1&Ze&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.YNc(4,W,6,5,"mat-form-field",2),i.TgZ(5,"mat-form-field",3)(6,"mat-label"),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"input",4),i.NdJ("ngModelChange",function($e){return Qe.newPassword=$e}),i.qZA(),i.YNc(10,B,3,0,"button",5),i.qZA(),i.TgZ(11,"mat-form-field",3)(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"input",4),i.NdJ("ngModelChange",function($e){return Qe.passwordConfirm=$e}),i.qZA(),i.YNc(16,Z,3,0,"button",5),i.qZA(),i.YNc(17,G,3,1,"div",6),i.qZA(),i.TgZ(18,"div",7)(19,"button",8),i.NdJ("click",function(){return Qe.cancel()}),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"button",9),i.NdJ("click",function(){return Qe.confirm()}),i._uU(23),i.ALo(24,"translate"),i.qZA()()),2&Ze&&(i.xp6(1),i.hij(" ",i.lcZ(2,12,"app.users.passwordChange"),"\n"),i.xp6(3),i.Q6J("ngIf",Qe.data.isMyUser),i.xp6(3),i.Oqu(i.lcZ(8,14,"app.users.newPassword")),i.xp6(2),i.Q6J("ngModel",Qe.newPassword),i.xp6(1),i.Q6J("ngIf",Qe.newPassword),i.xp6(3),i.Oqu(i.lcZ(14,16,"app.users.confirmPassword")),i.xp6(2),i.Q6J("ngModel",Qe.passwordConfirm),i.xp6(1),i.Q6J("ngIf",Qe.passwordConfirm),i.xp6(1),i.Q6J("ngIf",null!==Qe.isPasswordValid()),i.xp6(3),i.Oqu(i.lcZ(21,18,"shared.buttons.cancel")),i.xp6(2),i.Q6J("disabled",!Qe.isFormValid()),i.xp6(1),i.Oqu(i.lcZ(24,20,"shared.buttons.save")))},dependencies:[p.O5,v.Fj,v.JJ,v.Q7,v.On,k.lW,k.RK,d.uh,d.xY,d.H8,f.KE,f.hX,f.R9,b.Hw,J.Nt,A.X$]}),Ee})()},8732:(vn,_t,y)=>{"use strict";y.d(_t,{Y:()=>Ce});var d=y(4650),i=y(671),A=y(6),p=y(8029),v=y(5412),k=y(1266),f=y(7556),b=y(4859),J=y(7392),Y=y(8739),W=y(6308);const B=["usersPaginator"],Z=["usersSort"];function G(ke,me){1&ke&&(d.TgZ(0,"th",14),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&ke&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"app.users.username")," "))}function ie(ke,me){if(1&ke&&(d.TgZ(0,"td",15),d._uU(1),d.qZA()),2&ke){const re=me.$implicit;d.xp6(1),d.hij(" ",re.username," ")}}function Ee(ke,me){1&ke&&(d.TgZ(0,"th",14),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&ke&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"app.users.email")," "))}function ue(ke,me){if(1&ke&&(d.TgZ(0,"td",15),d._uU(1),d.qZA()),2&ke){const re=me.$implicit;d.xp6(1),d.hij(" ",re.email," ")}}function Ze(ke,me){1&ke&&(d.TgZ(0,"th",16),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&ke&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"shared.buttons.actions")," "))}function Qe(ke,me){if(1&ke){const re=d.EpF();d.TgZ(0,"td",15)(1,"button",17),d.NdJ("click",function(){const Ae=d.CHM(re).$implicit,tt=d.oxw();return d.KtG(tt.openUserDetail(Ae))}),d.TgZ(2,"mat-icon"),d._uU(3,"info"),d.qZA()(),d.TgZ(4,"button",17),d.NdJ("click",function(){const Ae=d.CHM(re).$implicit,tt=d.oxw();return d.KtG(tt.passwordReset(Ae))}),d.TgZ(5,"mat-icon"),d._uU(6,"vpn_key"),d.qZA()(),d.TgZ(7,"button",17),d.NdJ("click",function(){const Ae=d.CHM(re).$implicit,tt=d.oxw();return d.KtG(tt.deleteUser(Ae))}),d.TgZ(8,"mat-icon"),d._uU(9,"delete"),d.qZA()()()}}function vt(ke,me){1&ke&&d._UZ(0,"tr",18)}function $e(ke,me){1&ke&&d._UZ(0,"tr",19)}const Ge=function(){return[5,10,20]};let Ce=(()=>{class ke{constructor(re,ye,Oe){this.dialog=re,this.translateService=ye,this.authService=Oe,this._users=[],this.openClicked=new d.vpe,this.deleteUserClicked=new d.vpe,this.resetPasswordClicked=new d.vpe,this.usersDataSource=new i.by(this._users),this.usersDisplayedColumns=["username","email","actions"],this.authData=Oe.currentAuthData,Oe.currentAuth.subscribe(Ae=>{Ae&&(this.authData=Ae)})}set users(re){this._users=re,this.updateUsersDataSource()}ngOnInit(){}openUserDetail(re){this.openClicked.emit(re)}deleteUser(re){const ye=this.translateService.instant("shared.modals.delete.message"),Oe=this.translateService.instant("shared.modals.delete.title");this.dialog.open(A.q,{maxWidth:"400px",data:{message:ye,title:Oe}}).afterClosed().subscribe(Ae=>{Ae&&this.deleteUserClicked.emit(re)})}passwordReset(re){this.dialog.open(p.u,{maxWidth:"400px",data:{newPassword:null,passwordConfirm:null,oldPassword:null,isMyUser:re._id==this.authData.userId}}).afterClosed().subscribe(ye=>{ye.newPassword&&ye.passwordConfirm&&this.resetPasswordClicked.emit({user:re,newPassword:ye.newPassword,passwordConfirm:ye.passwordConfirm,oldPassword:ye.oldPassword})})}updateUsersDataSource(){this.usersDataSource=new i.by(this._users),setTimeout(()=>{this.usersDataSource.sort=this.usersSort,this.usersDataSource.paginator=this.usersPaginator})}}return ke.\u0275fac=function(re){return new(re||ke)(d.Y36(v.uw),d.Y36(k.sK),d.Y36(f.e8))},ke.\u0275cmp=d.Xpm({type:ke,selectors:[["users-grid"]],viewQuery:function(re,ye){if(1&re&&(d.Gf(B,5),d.Gf(Z,5)),2&re){let Oe;d.iGM(Oe=d.CRH())&&(ye.usersPaginator=Oe.first),d.iGM(Oe=d.CRH())&&(ye.usersSort=Oe.first)}},inputs:{users:"users",titleLabel:"titleLabel"},outputs:{openClicked:"openClicked",deleteUserClicked:"deleteUserClicked",resetPasswordClicked:"resetPasswordClicked"},decls:17,vars:5,consts:[[1,"container"],[1,"text-center"],["mat-table","","matSort","",1,"mat-elevation-z8","full-width",3,"dataSource"],["usersSort","matSort"],["matColumnDef","username"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","email"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["usersPaginator",""],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(re,ye){1&re&&(d.TgZ(0,"div",0)(1,"div",1)(2,"table",2,3),d.ynx(4,4),d.YNc(5,G,3,3,"th",5),d.YNc(6,ie,2,1,"td",6),d.BQk(),d.ynx(7,7),d.YNc(8,Ee,3,3,"th",5),d.YNc(9,ue,2,1,"td",6),d.BQk(),d.ynx(10,8),d.YNc(11,Ze,3,3,"th",9),d.YNc(12,Qe,10,0,"td",6),d.BQk(),d.YNc(13,vt,1,0,"tr",10),d.YNc(14,$e,1,0,"tr",11),d.qZA(),d._UZ(15,"mat-paginator",12,13),d.qZA()()),2&re&&(d.xp6(2),d.Q6J("dataSource",ye.usersDataSource),d.xp6(11),d.Q6J("matHeaderRowDef",ye.usersDisplayedColumns),d.xp6(1),d.Q6J("matRowDefColumns",ye.usersDisplayedColumns),d.xp6(1),d.Q6J("pageSizeOptions",d.DdM(4,Ge)))},dependencies:[b.RK,J.Hw,Y.NW,W.YE,W.nU,i.BZ,i.fO,i.as,i.w1,i.Dz,i.nj,i.ge,i.ev,i.XQ,i.Gk,k.X$],styles:[".full-width[_ngcontent-%COMP%], #loading-container[_ngcontent-%COMP%]{width:100%}#loading-container[_ngcontent-%COMP%]{padding:30px;margin:auto}"]}),ke})()},8790:(vn,_t,y)=>{"use strict";y.d(_t,{E:()=>d});var d=(()=>{return(i=d||(d={})).Admin="ADMIN",i.PartnerAdmin="PARTNER_ADMIN",i.Standard="STD",d;var i})()},1942:(vn,_t,y)=>{"use strict";y.d(_t,{M:()=>p});var d=y(4850),i=y(3078),A=y(4650);let p=(()=>{class v{constructor(f){this.apollo=f}getAllModules(){const f=i.Ps`
query {
indacoModuleMany {
_id,
code,
name,
moduleAccessibleFeatures {
code,
name
},
}
}
`;return this.apollo.query({query:f,fetchPolicy:"network-only"}).pipe((0,d.U)(b=>b.data.indacoModuleMany))}getModule(f){const b=i.Ps`
query ($moduleId: MongoID!) {
indacoModuleById (_id: $moduleId) {
_id,
code,
name,
moduleAccessibleFeatures {
code,
name
},
}
}
`;return this.apollo.query({query:b,fetchPolicy:"network-only",variables:{moduleId:f}}).pipe((0,d.U)(J=>J.data.indacoModuleById))}}return v.\u0275fac=function(f){return new(f||v)(A.LFG(i._M))},v.\u0275prov=A.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},4466:(vn,_t,y)=>{"use strict";y.d(_t,{m:()=>be});var d=y(6895),i=y(4006),A=y(529),p=y(3078),v=y(2673),k=y(4859),f=y(3546),b=y(6709),J=y(9602),Y=y(9549),W=y(7392),B=y(4144),Z=y(6338),G=y(3217),ie=y(8739),Ee=y(4385),ue=y(8785),Ze=y(455),Qe=y(6308),vt=y(6257),$e=y(671),Ge=y(3848),Ce=y(1570),ke=y(3683),me=y(782),re=y(7009),ye=y(1572),Oe=y(266),Ae=y(1266),tt=y(3977),ot=y(7084),at=y(3170),pt=y(5412),ft=y(3238),Et=y(4650);let be=(()=>{class Pe{}return Pe.\u0275fac=function(dt){return new(dt||Pe)},Pe.\u0275mod=Et.oAB({type:Pe}),Pe.\u0275inj=Et.cJS({providers:[{provide:ft.Ad,useValue:"it-IT"},{provide:Y.o2,useValue:{appearance:"outline",floatLabel:"always"}}],imports:[p.VG,d.ez,tt._t,i.u5,A.JF,k.ot,v.g,f.QW,b.p9,J.FA,pt.Is,ot.To,at.Ad,Y.lN,W.Ps,B.c,G.Tx,Z.ie,ie.TU,Ee.LD,ue.SJ,Ze.rP,Qe.JX,vt.T5,$e.p0,Ge.Nh,Ce.dp,ke.g0,Oe.AV,me.N6,re.ZX,ye.Cq,i.UX,Ae.aw]}),Pe})()},2340:(vn,_t,y)=>{"use strict";y.d(_t,{N:()=>d});const d={production:!1,environmentName:"Staging env",backendUri:"/backend",pimUri:"http://37.186.153.126/pim",omsUri:"http://37.186.153.126/oms/orders",buyButtonUri:"http://37.186.153.126/bubu",restUrl:"/rest",defaultChannel:"62ed13d02477d328814c66ed"}},4471:(vn,_t,y)=>{"use strict";var d=y(1481),i=y(4650),A=y(4006),p=y(529),v=y(484),k=y(7582),f=y(7509),b=y(4763),J=y(3735),Y=y(9661),W=function(){function t(){this.getFragmentDoc=(0,b.re)(Y.Yk)}return t.prototype.batch=function(n){var a,e=this;return this.performTransaction(function(){return a=n.update(e)},"string"==typeof n.optimistic?n.optimistic:!1===n.optimistic?null:void 0),a},t.prototype.recordOptimisticTransaction=function(n,e){this.performTransaction(n,e)},t.prototype.transformDocument=function(n){return n},t.prototype.transformForLink=function(n){return n},t.prototype.identify=function(n){},t.prototype.gc=function(){return[]},t.prototype.modify=function(n){return!1},t.prototype.readQuery=function(n,e){return void 0===e&&(e=!!n.optimistic),this.read((0,k.pi)((0,k.pi)({},n),{rootId:n.id||"ROOT_QUERY",optimistic:e}))},t.prototype.readFragment=function(n,e){return void 0===e&&(e=!!n.optimistic),this.read((0,k.pi)((0,k.pi)({},n),{query:this.getFragmentDoc(n.fragment,n.fragmentName),rootId:n.id,optimistic:e}))},t.prototype.writeQuery=function(n){var e=n.id,r=n.data,a=(0,k._T)(n,["id","data"]);return this.write(Object.assign(a,{dataId:e||"ROOT_QUERY",result:r}))},t.prototype.writeFragment=function(n){var e=n.id,r=n.data,a=n.fragment,o=n.fragmentName,l=(0,k._T)(n,["id","data","fragment","fragmentName"]);return this.write(Object.assign(l,{query:this.getFragmentDoc(a,o),dataId:e,result:r}))},t.prototype.updateQuery=function(n,e){return this.batch({update:function(r){var a=r.readQuery(n),o=e(a);return null==o?a:(r.writeQuery((0,k.pi)((0,k.pi)({},n),{data:o})),o)}})},t.prototype.updateFragment=function(n,e){return this.batch({update:function(r){var a=r.readFragment(n),o=e(a);return null==o?a:(r.writeFragment((0,k.pi)((0,k.pi)({},n),{data:o})),o)}})},t}(),B=function(t){function n(e,r,a,o){var l,u=t.call(this,e)||this;if(u.message=e,u.path=r,u.query=a,u.variables=o,Array.isArray(u.path)){u.missing=u.message;for(var m=u.path.length-1;m>=0;--m)u.missing=((l={})[u.path[m]]=u.missing,l)}else u.missing=u.path;return u.__proto__=n.prototype,u}return(0,k.ZT)(n,t),n}(Error),Z=y(7634),G=y(3690),ie=y(2289),Ee=y(9545),ue=y(3950),Ze=y(591),Qe=y(7773),vt=y(9722),$e=y(7062);function ke(t){return __DEV__&&function Ge(t){var n=new Set([t]);return n.forEach(function(e){(0,$e.s)(e)&&function Ce(t){if(__DEV__&&!Object.isFrozen(t))try{Object.freeze(t)}catch(n){if(n instanceof TypeError)return null;throw n}return t}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){(0,$e.s)(e[r])&&n.add(e[r])})}),t}(t),t}var me=y(5216),re=y(5355),ye=Object.prototype.hasOwnProperty;function Oe(t){return null==t}function Ae(t,n){var e=t.__typename,r=t.id,a=t._id;if("string"==typeof e&&(n&&(n.keyObject=Oe(r)?Oe(a)?void 0:{_id:a}:{id:r}),Oe(r)&&!Oe(a)&&(r=a),!Oe(r)))return"".concat(e,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var tt={dataIdFromObject:Ae,addTypename:!0,resultCaching:!0,canonizeResults:!1};function at(t){var n=t.canonizeResults;return void 0===n?tt.canonizeResults:n}var ft=/^[_a-z][_0-9a-z]*/i;function Et(t){var n=t.match(ft);return n?n[0]:t}function be(t,n,e){return!!(0,$e.s)(n)&&((0,re.k)(n)?n.every(function(r){return be(t,r,e)}):t.selections.every(function(r){if((0,Z.My)(r)&&(0,vt.LZ)(r,e)){var a=(0,Z.u2)(r);return ye.call(n,a)&&(!r.selectionSet||be(r.selectionSet,n[a],e))}return!0}))}function Pe(t){return(0,$e.s)(t)&&!(0,Z.Yk)(t)&&!(0,re.k)(t)}function dt(t,n){var e=(0,Y.F)((0,Ze.kU)(t));return{fragmentMap:e,lookupFragment:function(r){var a=e[r];return!a&&n&&(a=n.lookup(r)),a||null}}}var t,n,et=Object.create(null),gt=function(){return et},Re=Object.create(null),we=function(){function t(n,e){var r=this;this.policies=n,this.group=e,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(a,o){return ke((0,Z.Yk)(a)?r.get(a.__ref,o):a&&a[o])},this.canRead=function(a){return(0,Z.Yk)(a)?r.has(a.__ref):"object"==typeof a},this.toReference=function(a,o){if("string"==typeof a)return(0,Z.kQ)(a);if((0,Z.Yk)(a))return a;var l=r.policies.identify(a)[0];if(l){var u=(0,Z.kQ)(l);return o&&r.merge(l,a),u}}}return t.prototype.toObject=function(){return(0,k.pi)({},this.data)},t.prototype.has=function(n){return void 0!==this.lookup(n,!0)},t.prototype.get=function(n,e){if(this.group.depend(n,e),ye.call(this.data,n)){var r=this.data[n];if(r&&ye.call(r,e))return r[e]}return"__typename"===e&&ye.call(this.policies.rootTypenamesById,n)?this.policies.rootTypenamesById[n]:this instanceof S?this.parent.get(n,e):void 0},t.prototype.lookup=function(n,e){return e&&this.group.depend(n,"__exists"),ye.call(this.data,n)?this.data[n]:this instanceof S?this.parent.lookup(n,e):this.policies.rootTypenamesById[n]?Object.create(null):void 0},t.prototype.merge=function(n,e){var a,r=this;(0,Z.Yk)(n)&&(n=n.__ref),(0,Z.Yk)(e)&&(e=e.__ref);var o="string"==typeof n?this.lookup(a=n):n,l="string"==typeof e?this.lookup(a=e):e;if(l){__DEV__?(0,f.kG)("string"==typeof a,"store.merge expects a string ID"):(0,f.kG)("string"==typeof a,1);var u=new Qe.w0(V).merge(o,l);if(this.data[a]=u,u!==o&&(delete this.refs[a],this.group.caching)){var m=Object.create(null);o||(m.__exists=1),Object.keys(l).forEach(function(_){if(!o||o[_]!==u[_]){m[_]=1;var w=Et(_);w!==_&&!r.policies.hasKeyArgs(u.__typename,w)&&(m[w]=1),void 0===u[_]&&!(r instanceof S)&&delete u[_]}}),m.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[a]===u.__typename&&delete m.__typename,Object.keys(m).forEach(function(_){return r.group.dirty(a,_)})}}},t.prototype.modify=function(n,e){var r=this,a=this.lookup(n);if(a){var o=Object.create(null),l=!1,u=!0,m={DELETE:et,INVALIDATE:Re,isReference:Z.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(_,w){return r.policies.readField("string"==typeof _?{fieldName:_,from:w||(0,Z.kQ)(n)}:_,{store:r})}};if(Object.keys(a).forEach(function(_){var w=Et(_),M=a[_];if(void 0!==M){var O="function"==typeof e?e:e[_]||e[w];if(O){var N=O===gt?et:O(ke(M),(0,k.pi)((0,k.pi)({},m),{fieldName:w,storeFieldName:_,storage:r.getStorage(n,_)}));N===Re?r.group.dirty(n,_):(N===et&&(N=void 0),N!==M&&(o[_]=N,l=!0,M=N))}void 0!==M&&(u=!1)}}),l)return this.merge(n,o),u&&(this instanceof S?this.data[n]=void 0:delete this.data[n],this.group.dirty(n,"__exists")),!0}return!1},t.prototype.delete=function(n,e,r){var a,o=this.lookup(n);if(o){var l=this.getFieldValue(o,"__typename"),u=e&&r?this.policies.getStoreFieldName({typename:l,fieldName:e,args:r}):e;return this.modify(n,u?((a={})[u]=gt,a):gt)}return!1},t.prototype.evict=function(n,e){var r=!1;return n.id&&(ye.call(this.data,n.id)&&(r=this.delete(n.id,n.fieldName,n.args)),this instanceof S&&this!==e&&(r=this.parent.evict(n,e)||r),(n.fieldName||r)&&this.group.dirty(n.id,n.fieldName||"__exists")),r},t.prototype.clear=function(){this.replace(null)},t.prototype.extract=function(){var n=this,e=this.toObject(),r=[];return this.getRootIdSet().forEach(function(a){ye.call(n.policies.rootTypenamesById,a)||r.push(a)}),r.length&&(e.__META={extraRootIds:r.sort()}),e},t.prototype.replace=function(n){var e=this;if(Object.keys(this.data).forEach(function(o){n&&ye.call(n,o)||e.delete(o)}),n){var r=n.__META,a=(0,k._T)(n,["__META"]);Object.keys(a).forEach(function(o){e.merge(o,a[o])}),r&&r.extraRootIds.forEach(this.retain,this)}},t.prototype.retain=function(n){return this.rootIds[n]=(this.rootIds[n]||0)+1},t.prototype.release=function(n){if(this.rootIds[n]>0){var e=--this.rootIds[n];return e||delete this.rootIds[n],e}return 0},t.prototype.getRootIdSet=function(n){return void 0===n&&(n=new Set),Object.keys(this.rootIds).forEach(n.add,n),this instanceof S?this.parent.getRootIdSet(n):Object.keys(this.policies.rootTypenamesById).forEach(n.add,n),n},t.prototype.gc=function(){var n=this,e=this.getRootIdSet(),r=this.toObject();e.forEach(function(l){ye.call(r,l)&&(Object.keys(n.findChildRefIds(l)).forEach(e.add,e),delete r[l])});var a=Object.keys(r);if(a.length){for(var o=this;o instanceof S;)o=o.parent;a.forEach(function(l){return o.delete(l)})}return a},t.prototype.findChildRefIds=function(n){if(!ye.call(this.refs,n)){var e=this.refs[n]=Object.create(null),r=this.data[n];if(!r)return e;var a=new Set([r]);a.forEach(function(o){(0,Z.Yk)(o)&&(e[o.__ref]=!0),(0,$e.s)(o)&&Object.keys(o).forEach(function(l){var u=o[l];(0,$e.s)(u)&&a.add(u)})})}return this.refs[n]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t}(),ce=function(){function t(n,e){void 0===e&&(e=null),this.caching=n,this.parent=e,this.d=null,this.resetCaching()}return t.prototype.resetCaching=function(){this.d=this.caching?(0,b.dP)():null,this.keyMaker=new me.B(Ee.mr)},t.prototype.depend=function(n,e){if(this.d){this.d(ve(n,e));var r=Et(e);r!==e&&this.d(ve(n,r)),this.parent&&this.parent.depend(n,e)}},t.prototype.dirty=function(n,e){this.d&&this.d.dirty(ve(n,e),"__exists"===e?"forget":"setDirty")},t}();function ve(t,n){return n+"#"+t}function se(t,n){ne(t)&&t.group.depend(n,"__exists")}n=function(e){function r(a){var l=a.resultCaching,m=a.seed,_=e.call(this,a.policies,new ce(void 0===l||l))||this;return _.stump=new F(_),_.storageTrie=new me.B(Ee.mr),m&&_.replace(m),_}return(0,k.ZT)(r,e),r.prototype.addLayer=function(a,o){return this.stump.addLayer(a,o)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(t=we||(we={})),t.Root=n;var S=function(t){function n(e,r,a,o){var l=t.call(this,r.policies,o)||this;return l.id=e,l.parent=r,l.replay=a,l.group=o,a(l),l}return(0,k.ZT)(n,t),n.prototype.addLayer=function(e,r){return new n(e,this,r,this.group)},n.prototype.removeLayer=function(e){var r=this,a=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var l=r.data[o],u=a.lookup(o);u?l?l!==u&&Object.keys(l).forEach(function(m){(0,J.D)(l[m],u[m])||r.group.dirty(o,m)}):(r.group.dirty(o,"__exists"),Object.keys(u).forEach(function(m){r.group.dirty(o,m)})):r.delete(o)}),a):a===this.parent?this:a.addLayer(this.id,this.replay)},n.prototype.toObject=function(){return(0,k.pi)((0,k.pi)({},this.parent.toObject()),this.data)},n.prototype.findChildRefIds=function(e){var r=this.parent.findChildRefIds(e);return ye.call(this.data,e)?(0,k.pi)((0,k.pi)({},r),t.prototype.findChildRefIds.call(this,e)):r},n.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},n}(we),F=function(t){function n(e){return t.call(this,"EntityStore.Stump",e,function(){},new ce(e.group.caching,e.group))||this}return(0,k.ZT)(n,t),n.prototype.removeLayer=function(){return this},n.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},n}(S);function V(t,n,e){var r=t[e],a=n[e];return(0,J.D)(r,a)?r:a}function ne(t){return!!(t instanceof we&&t.group.caching)}var De=y(3750);function wt(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var nn=function(){function t(n){var e=this;this.knownResults=new(Ee.mr?WeakMap:Map),this.config=(0,ue.o)(n,{addTypename:!1!==n.addTypename,canonizeResults:at(n)}),this.canon=n.canon||new De.h,this.executeSelectionSet=(0,b.re)(function(r){var a,o=r.context.canonizeResults,l=wt(r);l[3]=!o;var u=(a=e.executeSelectionSet).peek.apply(a,l);return u?o?(0,k.pi)((0,k.pi)({},u),{result:e.canon.admit(u.result)}):u:(se(r.context.store,r.enclosingRef.__ref),e.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize,keyArgs:wt,makeCacheKey:function(r,a,o,l){if(ne(o.store))return o.store.makeCacheKey(r,(0,Z.Yk)(a)?a.__ref:a,o.varString,l)}}),this.executeSubSelectedArray=(0,b.re)(function(r){return se(r.context.store,r.enclosingRef.__ref),e.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(r){var a=r.field,o=r.array,l=r.context;if(ne(l.store))return l.store.makeCacheKey(a,o,l.varString)}})}return t.prototype.resetCanon=function(){this.canon=new De.h},t.prototype.diffQueryAgainstStore=function(n){var e=n.store,r=n.query,a=n.rootId,o=void 0===a?"ROOT_QUERY":a,l=n.variables,u=n.returnPartialData,m=void 0===u||u,_=n.canonizeResults,w=void 0===_?this.config.canonizeResults:_,M=this.config.cache.policies;l=(0,k.pi)((0,k.pi)({},(0,Ze.O4)((0,Ze.iW)(r))),l);var z,O=(0,Z.kQ)(o),N=this.executeSelectionSet({selectionSet:(0,Ze.p$)(r).selectionSet,objectOrReference:O,enclosingRef:O,context:(0,k.pi)({store:e,query:r,policies:M,variables:l,varString:(0,De.B)(l),canonizeResults:w},dt(r,this.config.fragments))});if(N.missing&&(z=[new B(Jt(N.missing),N.missing,r,l)],!m))throw z[0];return{result:N.result,complete:!z,missing:z}},t.prototype.isFresh=function(n,e,r,a){if(ne(a.store)&&this.knownResults.get(n)===r){var o=this.executeSelectionSet.peek(r,e,a,this.canon.isKnown(n));if(o&&n===o.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(n){var e=this,r=n.selectionSet,a=n.objectOrReference,o=n.enclosingRef,l=n.context;if((0,Z.Yk)(a)&&!l.policies.rootTypenamesById[a.__ref]&&!l.store.has(a.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(a.__ref," object")};var O,u=l.variables,m=l.policies,w=l.store.getFieldValue(a,"__typename"),M=[],N=new Qe.w0;function z(Ye,Pt){var Ut;return Ye.missing&&(O=N.merge(O,((Ut={})[Pt]=Ye.missing,Ut))),Ye.result}this.config.addTypename&&"string"==typeof w&&!m.rootIdsByTypename[w]&&M.push({__typename:w});var j=new Set(r.selections);j.forEach(function(Ye){var Pt,Ut;if((0,vt.LZ)(Ye,u))if((0,Z.My)(Ye)){var rn=m.readField({fieldName:Ye.name.value,field:Ye,variables:l.variables,from:a},l),kt=(0,Z.u2)(Ye);void 0===rn?G.Gw.added(Ye)||(O=N.merge(O,((Pt={})[kt]="Can't find field '".concat(Ye.name.value,"' on ").concat((0,Z.Yk)(a)?a.__ref+" object":"object "+JSON.stringify(a,null,2)),Pt))):(0,re.k)(rn)?rn=z(e.executeSubSelectedArray({field:Ye,array:rn,enclosingRef:o,context:l}),kt):Ye.selectionSet?null!=rn&&(rn=z(e.executeSelectionSet({selectionSet:Ye.selectionSet,objectOrReference:rn,enclosingRef:(0,Z.Yk)(rn)?rn:o,context:l}),kt)):l.canonizeResults&&(rn=e.canon.pass(rn)),void 0!==rn&&M.push(((Ut={})[kt]=rn,Ut))}else{var en=(0,Y.hi)(Ye,l.lookupFragment);if(!en&&Ye.kind===ie.h.FRAGMENT_SPREAD)throw __DEV__?new f.ej("No fragment named ".concat(Ye.name.value)):new f.ej(5);en&&m.fragmentMatches(en,w)&&en.selectionSet.selections.forEach(j.add,j)}});var Ne={result:(0,Qe.bw)(M),missing:O},Ie=l.canonizeResults?this.canon.admit(Ne):ke(Ne);return Ie.result&&this.knownResults.set(Ie.result,r),Ie},t.prototype.execSubSelectedArrayImpl=function(n){var u,e=this,r=n.field,a=n.array,o=n.enclosingRef,l=n.context,m=new Qe.w0;function _(w,M){var O;return w.missing&&(u=m.merge(u,((O={})[M]=w.missing,O))),w.result}return r.selectionSet&&(a=a.filter(l.store.canRead)),a=a.map(function(w,M){return null===w?null:(0,re.k)(w)?_(e.executeSubSelectedArray({field:r,array:w,enclosingRef:o,context:l}),M):r.selectionSet?_(e.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:w,enclosingRef:(0,Z.Yk)(w)?w:o,context:l}),M):(__DEV__&&function un(t,n,e){if(!n.selectionSet){var r=new Set([e]);r.forEach(function(a){(0,$e.s)(a)&&(__DEV__?(0,f.kG)(!(0,Z.Yk)(a),"Missing selection set for object of type ".concat(function pt(t,n){return(0,Z.Yk)(n)?t.get(n.__ref,"__typename"):n&&n.__typename}(t,a)," returned for query field ").concat(n.name.value)):(0,f.kG)(!(0,Z.Yk)(a),6),Object.values(a).forEach(r.add,r))})}}(l.store,r,w),w)}),{result:l.canonizeResults?this.canon.admit(a):a,missing:u}},t}();function Jt(t){try{JSON.stringify(t,function(n,e){if("string"==typeof e)throw e;return e})}catch(n){return n}}var Zt=y(396),zt=y(8561),Te=y(6430),lt=Object.create(null);function Je(t){var n=JSON.stringify(t);return lt[n]||(lt[n]=Object.create(null))}function Lt(t){var n=Je(t);return n.keyFieldsFn||(n.keyFieldsFn=function(e,r){var a=function(l,u){return r.readField(u,l)},o=r.keyObject=ge(t,function(l){var u=it(r.storeObject,l,a);return void 0===u&&e!==r.storeObject&&ye.call(e,l[0])&&(u=it(e,l,_e)),__DEV__?(0,f.kG)(void 0!==u,"Missing field '".concat(l.join("."),"' while extracting keyFields from ").concat(JSON.stringify(e))):(0,f.kG)(void 0!==u,2),u});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function Ke(t){var n=Je(t);return n.keyArgsFn||(n.keyArgsFn=function(e,r){var a=r.field,o=r.variables,l=r.fieldName,u=ge(t,function(_){var w=_[0],M=w.charAt(0);if("@"!==M)if("$"!==M){if(e)return it(e,_)}else{var j=w.slice(1);if(o&&ye.call(o,j)){var oe=_.slice(0);return oe[0]=j,it(o,oe)}}else if(a&&(0,re.O)(a.directives)){var O=w.slice(1),N=a.directives.find(function(Ne){return Ne.name.value===O}),z=N&&(0,Z.NC)(N,o);return z&&it(z,_.slice(1))}}),m=JSON.stringify(u);return(e||"{}"!==m)&&(l+=":"+m),l})}function ge(t,n){var e=new Qe.w0;return Me(t).reduce(function(r,a){var o,l=n(a);if(void 0!==l){for(var u=a.length-1;u>=0;--u)(o={})[a[u]]=l,l=o;r=e.merge(r,l)}return r},Object.create(null))}function Me(t){var n=Je(t);if(!n.paths){var e=n.paths=[],r=[];t.forEach(function(a,o){(0,re.k)(a)?(Me(a).forEach(function(l){return e.push(r.concat(l))}),r.length=0):(r.push(a),(0,re.k)(t[o+1])||(e.push(r.slice(0)),r.length=0))})}return n.paths}function _e(t,n){return t[n]}function it(t,n,e){return e=e||_e,ct(n.reduce(function r(a,o){return(0,re.k)(a)?a.map(function(l){return r(l,o)}):a&&e(a,o)},t))}function ct(t){return(0,$e.s)(t)?(0,re.k)(t)?t.map(ct):ge(Object.keys(t).sort(),function(n){return it(t,n)}):t}function dn(t){return void 0!==t.args?t.args:t.field?(0,Z.NC)(t.field,t.variables):null}Z.PT.setStringify(De.B);var Rn=function(){},An=function(t,n){return n.fieldName},Gt=function(t,n,e){return(0,e.mergeObjects)(t,n)},gn=function(t,n){return n},St=function(){function t(n){this.config=n,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,k.pi)({dataIdFromObject:Ae},n),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),n.possibleTypes&&this.addPossibleTypes(n.possibleTypes),n.typePolicies&&this.addTypePolicies(n.typePolicies)}return t.prototype.identify=function(n,e){var r,a=this,o=e&&(e.typename||(null===(r=e.storeObject)||void 0===r?void 0:r.__typename))||n.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var m,l=e&&e.storeObject||n,u=(0,k.pi)((0,k.pi)({},e),{typename:o,storeObject:l,readField:e&&e.readField||function(){var O=Qn(arguments,l);return a.readField(O,{store:a.cache.data,variables:O.variables})}}),_=o&&this.getTypePolicy(o),w=_&&_.keyFn||this.config.dataIdFromObject;w;){var M=w((0,k.pi)((0,k.pi)({},n),l),u);if(!(0,re.k)(M)){m=M;break}w=Lt(M)}return m=m?String(m):void 0,u.keyObject?[m,u.keyObject]:[m]},t.prototype.addTypePolicies=function(n){var e=this;Object.keys(n).forEach(function(r){var a=n[r],o=a.queryType,l=a.mutationType,u=a.subscriptionType,m=(0,k._T)(a,["queryType","mutationType","subscriptionType"]);o&&e.setRootTypename("Query",r),l&&e.setRootTypename("Mutation",r),u&&e.setRootTypename("Subscription",r),ye.call(e.toBeAdded,r)?e.toBeAdded[r].push(m):e.toBeAdded[r]=[m]})},t.prototype.updateTypePolicy=function(n,e){var r=this,a=this.getTypePolicy(n),o=e.keyFields,l=e.fields;function u(m,_){m.merge="function"==typeof _?_:!0===_?Gt:!1===_?gn:m.merge}u(a,e.merge),a.keyFn=!1===o?Rn:(0,re.k)(o)?Lt(o):"function"==typeof o?o:a.keyFn,l&&Object.keys(l).forEach(function(m){var _=r.getFieldPolicy(n,m,!0),w=l[m];if("function"==typeof w)_.read=w;else{var M=w.keyArgs,O=w.read,N=w.merge;_.keyFn=!1===M?An:(0,re.k)(M)?Ke(M):"function"==typeof M?M:_.keyFn,"function"==typeof O&&(_.read=O),u(_,N)}_.read&&_.merge&&(_.keyFn=_.keyFn||An)})},t.prototype.setRootTypename=function(n,e){void 0===e&&(e=n);var r="ROOT_"+n.toUpperCase(),a=this.rootTypenamesById[r];e!==a&&(__DEV__?(0,f.kG)(!a||a===n,"Cannot change root ".concat(n," __typename more than once")):(0,f.kG)(!a||a===n,3),a&&delete this.rootIdsByTypename[a],this.rootIdsByTypename[e]=r,this.rootTypenamesById[r]=e)},t.prototype.addPossibleTypes=function(n){var e=this;this.usingPossibleTypes=!0,Object.keys(n).forEach(function(r){e.getSupertypeSet(r,!0),n[r].forEach(function(a){e.getSupertypeSet(a,!0).add(r);var o=a.match(ft);(!o||o[0]!==a)&&e.fuzzySubtypes.set(a,new RegExp(a))})})},t.prototype.getTypePolicy=function(n){var e=this;if(!ye.call(this.typePolicies,n)){var r=this.typePolicies[n]=Object.create(null);r.fields=Object.create(null);var a=this.supertypeMap.get(n);a&&a.size&&a.forEach(function(l){var u=e.getTypePolicy(l),m=u.fields,_=(0,k._T)(u,["fields"]);Object.assign(r,_),Object.assign(r.fields,m)})}var o=this.toBeAdded[n];return o&&o.length&&o.splice(0).forEach(function(l){e.updateTypePolicy(n,l)}),this.typePolicies[n]},t.prototype.getFieldPolicy=function(n,e,r){if(n){var a=this.getTypePolicy(n).fields;return a[e]||r&&(a[e]=Object.create(null))}},t.prototype.getSupertypeSet=function(n,e){var r=this.supertypeMap.get(n);return!r&&e&&this.supertypeMap.set(n,r=new Set),r},t.prototype.fragmentMatches=function(n,e,r,a){var o=this;if(!n.typeCondition)return!0;if(!e)return!1;var l=n.typeCondition.name.value;if(e===l)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(l))for(var u=this.getSupertypeSet(e,!0),m=[u],_=function(z){var j=o.getSupertypeSet(z,!1);j&&j.size&&m.indexOf(j)<0&&m.push(j)},w=!(!r||!this.fuzzySubtypes.size),M=!1,O=0;O<m.length;++O){var N=m[O];if(N.has(l))return u.has(l)||(M&&__DEV__&&f.kG.warn("Inferring subtype ".concat(e," of supertype ").concat(l)),u.add(l)),!0;N.forEach(_),w&&O===m.length-1&&be(n.selectionSet,r,a)&&(w=!1,M=!0,this.fuzzySubtypes.forEach(function(z,j){var oe=e.match(z);oe&&oe[0]===e&&_(j)}))}return!1},t.prototype.hasKeyArgs=function(n,e){var r=this.getFieldPolicy(n,e,!1);return!(!r||!r.keyFn)},t.prototype.getStoreFieldName=function(n){var o,e=n.typename,r=n.fieldName,a=this.getFieldPolicy(e,r,!1),l=a&&a.keyFn;if(l&&e)for(var u={typename:e,fieldName:r,field:n.field||null,variables:n.variables},m=dn(n);l;){var _=l(m,u);if(!(0,re.k)(_)){o=_||r;break}l=Ke(_)}return void 0===o&&(o=n.field?(0,Z.vf)(n.field,n.variables):(0,Z.PT)(r,dn(n))),!1===o?r:r===Et(o)?o:r+":"+o},t.prototype.readField=function(n,e){var r=n.from;if(r&&(n.field||n.fieldName)){if(void 0===n.typename){var o=e.store.getFieldValue(r,"__typename");o&&(n.typename=o)}var l=this.getStoreFieldName(n),u=Et(l),m=e.store.getFieldValue(r,l),_=this.getFieldPolicy(n.typename,u,!1),w=_&&_.read;if(w){var M=cn(this,r,n,e,e.store.getStorage((0,Z.Yk)(r)?r.__ref:r,l));return Te.ab.withValue(this.cache,w,[m,M])}return m}},t.prototype.getReadFunction=function(n,e){var r=this.getFieldPolicy(n,e,!1);return r&&r.read},t.prototype.getMergeFunction=function(n,e,r){var a=this.getFieldPolicy(n,e,!1),o=a&&a.merge;return!o&&r&&(o=(a=this.getTypePolicy(r))&&a.merge),o},t.prototype.runMergeFunction=function(n,e,r,a,o){var l=r.field,u=r.typename,m=r.merge;return m===Gt?ai(a.store)(n,e):m===gn?e:(a.overwrite&&(n=void 0),m(n,e,cn(this,void 0,{typename:u,fieldName:l.name.value,field:l,variables:a.variables},a,o||Object.create(null))))},t}();function cn(t,n,e,r,a){var o=t.getStoreFieldName(e),l=Et(o),u=e.variables||r.variables,m=r.store,_=m.toReference,w=m.canRead;return{args:dn(e),field:e.field||null,fieldName:l,storeFieldName:o,variables:u,isReference:Z.Yk,toReference:_,storage:a,cache:t.cache,canRead:w,readField:function(){return t.readField(Qn(arguments,n,u),r)},mergeObjects:ai(r.store)}}function Qn(t,n,e){var l,r=t[0];return"string"==typeof r?l={fieldName:r,from:t.length>1?t[1]:n}:(l=(0,k.pi)({},r),ye.call(l,"from")||(l.from=n)),__DEV__&&void 0===l.from&&__DEV__&&f.kG.warn("Undefined 'from' passed to readField with arguments ".concat(function fe(t){var n=(0,zt.X)("stringifyForDisplay");return JSON.stringify(t,function(e,r){return void 0===r?n:r}).split(JSON.stringify(n)).join("<undefined>")}(Array.from(t)))),void 0===l.variables&&(l.variables=e),l}function ai(t){return function(e,r){if((0,re.k)(e)||(0,re.k)(r))throw __DEV__?new f.ej("Cannot automatically merge arrays"):new f.ej(4);if((0,$e.s)(e)&&(0,$e.s)(r)){var a=t.getFieldValue(e,"__typename"),o=t.getFieldValue(r,"__typename");if(a&&o&&a!==o)return r;if((0,Z.Yk)(e)&&Pe(r))return t.merge(e.__ref,r),e;if(Pe(e)&&(0,Z.Yk)(r))return t.merge(e,r.__ref),r;if(Pe(e)&&Pe(r))return(0,k.pi)((0,k.pi)({},e),r)}return r}}function ze(t,n,e){var r="".concat(n).concat(e),a=t.flavors.get(r);return a||t.flavors.set(r,a=t.clientOnly===n&&t.deferred===e?t:(0,k.pi)((0,k.pi)({},t),{clientOnly:n,deferred:e})),a}var de=function(){function t(n,e,r){this.cache=n,this.reader=e,this.fragments=r}return t.prototype.writeToStore=function(n,e){var r=this,a=e.query,o=e.result,l=e.dataId,u=e.variables,m=e.overwrite,_=(0,Ze.$H)(a),w=function je(){return new Qe.w0}();u=(0,k.pi)((0,k.pi)({},(0,Ze.O4)(_)),u);var M=(0,k.pi)((0,k.pi)({store:n,written:Object.create(null),merge:function(N,z){return w.merge(N,z)},variables:u,varString:(0,De.B)(u)},dt(a,this.fragments)),{overwrite:!!m,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),O=this.processSelectionSet({result:o||Object.create(null),dataId:l,selectionSet:_.selectionSet,mergeTree:{map:new Map},context:M});if(!(0,Z.Yk)(O))throw __DEV__?new f.ej("Could not identify object ".concat(JSON.stringify(o))):new f.ej(7);return M.incomingById.forEach(function(N,z){var j=N.storeObject,oe=N.mergeTree,Ne=N.fieldNodeSet,Ie=(0,Z.kQ)(z);if(oe&&oe.map.size){var Ye=r.applyMerges(oe,Ie,j,M);if((0,Z.Yk)(Ye))return;j=Ye}if(__DEV__&&!M.overwrite){var Pt=Object.create(null);Ne.forEach(function(kt){kt.selectionSet&&(Pt[kt.name.value]=!0)}),Object.keys(j).forEach(function(kt){(function(kt){return!0===Pt[Et(kt)]})(kt)&&!function(kt){var en=oe&&oe.map.get(kt);return Boolean(en&&en.info&&en.info.merge)}(kt)&&function Q(t,n,e,r){var a=function(M){var O=r.getFieldValue(M,e);return"object"==typeof O&&O},o=a(t);if(o){var l=a(n);if(l&&!(0,Z.Yk)(o)&&!(0,J.D)(o,l)&&!Object.keys(o).every(function(M){return void 0!==r.getFieldValue(l,M)})){var u=r.getFieldValue(t,"__typename")||r.getFieldValue(n,"__typename"),m=Et(e),_="".concat(u,".").concat(m);if(!pe.has(_)){pe.add(_);var w=[];!(0,re.k)(o)&&!(0,re.k)(l)&&[o,l].forEach(function(M){var O=r.getFieldValue(M,"__typename");"string"==typeof O&&!w.includes(O)&&w.push(O)}),__DEV__&&f.kG.warn("Cache data may be lost when replacing the ".concat(m," field of a ").concat(u," object.\n\nThis could cause additional (usually avoidable) network requests to fetch data that were otherwise cached.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(w.length?"either ensure all objects of type "+w.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(_," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(l).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(Ie,j,kt,M.store)})}n.merge(z,j)}),n.retain(O.__ref),O},t.prototype.processSelectionSet=function(n){var e=this,r=n.dataId,a=n.result,o=n.selectionSet,l=n.context,u=n.mergeTree,m=this.cache.policies,_=Object.create(null),w=r&&m.rootTypenamesById[r]||(0,Z.qw)(a,o,l.fragmentMap)||r&&l.store.get(r,"__typename");"string"==typeof w&&(_.__typename=w);var M=function(){var Ye=Qn(arguments,_,l.variables);if((0,Z.Yk)(Ye.from)){var Pt=l.incomingById.get(Ye.from.__ref);if(Pt){var Ut=m.readField((0,k.pi)((0,k.pi)({},Ye),{from:Pt.storeObject}),l);if(void 0!==Ut)return Ut}}return m.readField(Ye,l)},O=new Set;this.flattenFields(o,a,l,w).forEach(function(Ye,Pt){var Ut,rn=(0,Z.u2)(Pt),kt=a[rn];if(O.add(Pt),void 0!==kt){var en=m.getStoreFieldName({typename:w,fieldName:Pt.name.value,field:Pt,variables:Ye.variables}),tn=He(u,en),xn=e.processFieldValue(kt,Pt,Pt.selectionSet?ze(Ye,!1,!1):Ye,tn),Cn=void 0;Pt.selectionSet&&((0,Z.Yk)(xn)||Pe(xn))&&(Cn=M("__typename",xn));var mn=m.getMergeFunction(w,Pt.name.value,Cn);mn?tn.info={field:Pt,typename:w,merge:mn}:le(u,en),_=Ye.merge(_,((Ut={})[en]=xn,Ut))}else __DEV__&&!Ye.clientOnly&&!Ye.deferred&&!G.Gw.added(Pt)&&!m.getReadFunction(w,Pt.name.value)&&__DEV__&&f.kG.error("Missing field '".concat((0,Z.u2)(Pt),"' while writing result ").concat(JSON.stringify(a,null,2)).substring(0,1e3))});try{var N=m.identify(a,{typename:w,selectionSet:o,fragmentMap:l.fragmentMap,storeObject:_,readField:M}),j=N[1];r=r||N[0],j&&(_=l.merge(_,j))}catch(Ye){if(!r)throw Ye}if("string"==typeof r){var oe=(0,Z.kQ)(r),Ne=l.written[r]||(l.written[r]=[]);if(Ne.indexOf(o)>=0||(Ne.push(o),this.reader&&this.reader.isFresh(a,oe,o,l)))return oe;var Ie=l.incomingById.get(r);return Ie?(Ie.storeObject=l.merge(Ie.storeObject,_),Ie.mergeTree=yt(Ie.mergeTree,u),O.forEach(function(Ye){return Ie.fieldNodeSet.add(Ye)})):l.incomingById.set(r,{storeObject:_,mergeTree:ht(u)?void 0:u,fieldNodeSet:O}),oe}return _},t.prototype.processFieldValue=function(n,e,r,a){var o=this;return e.selectionSet&&null!==n?(0,re.k)(n)?n.map(function(l,u){var m=o.processFieldValue(l,e,r,He(a,u));return le(a,u),m}):this.processSelectionSet({result:n,selectionSet:e.selectionSet,context:r,mergeTree:a}):__DEV__?(0,Zt.X)(n):n},t.prototype.flattenFields=function(n,e,r,a){void 0===a&&(a=(0,Z.qw)(e,n,r.fragmentMap));var o=new Map,l=this.cache.policies,u=new me.B(!1);return function m(_,w){var M=u.lookup(_,w.clientOnly,w.deferred);M.visited||(M.visited=!0,_.selections.forEach(function(O){if((0,vt.LZ)(O,r.variables)){var N=w.clientOnly,z=w.deferred;if(!(N&&z)&&(0,re.O)(O.directives)&&O.directives.forEach(function(Ne){var Ie=Ne.name.value;if("client"===Ie&&(N=!0),"defer"===Ie){var Ye=(0,Z.NC)(Ne,r.variables);(!Ye||!1!==Ye.if)&&(z=!0)}}),(0,Z.My)(O)){var j=o.get(O);j&&(N=N&&j.clientOnly,z=z&&j.deferred),o.set(O,ze(r,N,z))}else{var oe=(0,Y.hi)(O,r.lookupFragment);if(!oe&&O.kind===ie.h.FRAGMENT_SPREAD)throw __DEV__?new f.ej("No fragment named ".concat(O.name.value)):new f.ej(8);oe&&l.fragmentMatches(oe,a,e,r.variables)&&m(oe.selectionSet,ze(r,N,z))}}}))}(n,r),o},t.prototype.applyMerges=function(n,e,r,a,o){var l,u=this;if(n.map.size&&!(0,Z.Yk)(r)){var m=(0,re.k)(r)||!(0,Z.Yk)(e)&&!Pe(e)?void 0:e,_=r;m&&!o&&(o=[(0,Z.Yk)(m)?m.__ref:m]);var w,M=function(O,N){return(0,re.k)(O)?"number"==typeof N?O[N]:void 0:a.store.getFieldValue(O,String(N))};n.map.forEach(function(O,N){var z=M(m,N),j=M(_,N);if(void 0!==j){o&&o.push(N);var oe=u.applyMerges(O,z,j,a,o);oe!==j&&(w=w||new Map).set(N,oe),o&&(0,f.kG)(o.pop()===N)}}),w&&(r=(0,re.k)(_)?_.slice(0):(0,k.pi)({},_),w.forEach(function(O,N){r[N]=O}))}return n.info?this.cache.policies.runMergeFunction(e,r,n.info,a,o&&(l=a.store).getStorage.apply(l,o)):r},t}(),q=[];function He(t,n){var e=t.map;return e.has(n)||e.set(n,q.pop()||{map:new Map}),e.get(n)}function yt(t,n){if(t===n||!n||ht(n))return t;if(!t||ht(t))return n;var e=t.info&&n.info?(0,k.pi)((0,k.pi)({},t.info),n.info):t.info||n.info,r=t.map.size&&n.map.size,o={info:e,map:r?new Map:t.map.size?t.map:n.map};if(r){var l=new Set(n.map.keys());t.map.forEach(function(u,m){o.map.set(m,yt(u,n.map.get(m))),l.delete(m)}),l.forEach(function(u){o.map.set(u,yt(n.map.get(u),t.map.get(u)))})}return o}function ht(t){return!t||!(t.info||t.map.size)}function le(t,n){var e=t.map,r=e.get(n);r&&ht(r)&&(q.push(r),e.delete(n))}var pe=new Set,Fe=function(t){function n(e){void 0===e&&(e={});var r=t.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=Te.QS,r.txCount=0,r.config=function ot(t){return(0,ue.o)(tt,t)}(e),r.addTypename=!!r.config.addTypename,r.policies=new St({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,k.ZT)(n,t),n.prototype.init=function(){var e=this.data=new we.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},n.prototype.resetResultCache=function(e){var r=this,a=this.storeReader,o=this.config.fragments;this.storeWriter=new de(this,this.storeReader=new nn({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:at(this.config),canon:e?void 0:a&&a.canon,fragments:o}),o),this.maybeBroadcastWatch=(0,b.re)(function(l,u){return r.broadcastWatch(l,u)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(l){var u=l.optimistic?r.optimisticData:r.data;if(ne(u))return u.makeCacheKey(l.query,l.callback,(0,De.B)({optimistic:l.optimistic,id:l.id,variables:l.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(l){return l.resetCaching()})},n.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},n.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},n.prototype.read=function(e){var r=e.returnPartialData,a=void 0!==r&&r;try{return this.storeReader.diffQueryAgainstStore((0,k.pi)((0,k.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:a})).result||null}catch(o){if(o instanceof B)return null;throw o}},n.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{!--this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},n.prototype.modify=function(e){if(ye.call(e,"id")&&!e.id)return!1;var r=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(e.id||"ROOT_QUERY",e.fields)}finally{!--this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},n.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,k.pi)((0,k.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},n.prototype.watch=function(e){var r=this;return this.watches.size||(0,Te._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){r.watches.delete(e)&&!r.watches.size&&(0,Te.li)(r),r.maybeBroadcastWatch.forget(e)}},n.prototype.gc=function(e){De.B.reset();var r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},n.prototype.retain=function(e,r){return(r?this.optimisticData:this.data).retain(e)},n.prototype.release=function(e,r){return(r?this.optimisticData:this.data).release(e)},n.prototype.identify=function(e){if((0,Z.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(r){__DEV__&&f.kG.warn(r)}},n.prototype.evict=function(e){if(!e.id){if(ye.call(e,"id"))return!1;e=(0,k.pi)((0,k.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{!--this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},n.prototype.reset=function(e){var r=this;return this.init(),De.B.reset(),e&&e.discardWatches?(this.watches.forEach(function(a){return r.maybeBroadcastWatch.forget(a)}),this.watches.clear(),(0,Te.li)(this)):this.broadcastWatches(),Promise.resolve()},n.prototype.removeOptimistic=function(e){var r=this.optimisticData.removeLayer(e);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},n.prototype.batch=function(e){var _,r=this,a=e.update,o=e.optimistic,l=void 0===o||o,u=e.removeOptimistic,m=e.onWatchUpdated,w=function(O){var z=r.data,j=r.optimisticData;++r.txCount,O&&(r.data=r.optimisticData=O);try{return _=a(r)}finally{--r.txCount,r.data=z,r.optimisticData=j}},M=new Set;return m&&!this.txCount&&this.broadcastWatches((0,k.pi)((0,k.pi)({},e),{onWatchUpdated:function(O){return M.add(O),!1}})),"string"==typeof l?this.optimisticData=this.optimisticData.addLayer(l,w):!1===l?w(this.data):w(),"string"==typeof u&&(this.optimisticData=this.optimisticData.removeLayer(u)),m&&M.size?(this.broadcastWatches((0,k.pi)((0,k.pi)({},e),{onWatchUpdated:function(O,N){var z=m.call(this,O,N);return!1!==z&&M.delete(O),z}})),M.size&&M.forEach(function(O){return r.maybeBroadcastWatch.dirty(O)})):this.broadcastWatches(e),_},n.prototype.performTransaction=function(e,r){return this.batch({update:e,optimistic:r||null!==r})},n.prototype.transformDocument=function(e){if(this.addTypename){var r=this.typenameDocumentCache.get(e);return r||(r=(0,G.Gw)(e),this.typenameDocumentCache.set(e,r),this.typenameDocumentCache.set(r,r)),r}return e},n.prototype.transformForLink=function(e){var r=this.config.fragments;return r?r.transform(e):e},n.prototype.broadcastWatches=function(e){var r=this;this.txCount||this.watches.forEach(function(a){return r.maybeBroadcastWatch(a,e)})},n.prototype.broadcastWatch=function(e,r){var a=e.lastDiff,o=this.diff(e);r&&(e.optimistic&&"string"==typeof r.optimistic&&(o.fromOptimisticTransaction=!0),r.onWatchUpdated&&!1===r.onWatchUpdated.call(this,e,o,a))||(!a||!(0,J.D)(a.result,o.result))&&e.callback(e.lastDiff=o,a)},n}(W),xt=y(4302);function Ct(t){return new v.i(function(n,e){return new xt.y(function(r){var a,o,l;try{a=e(n).subscribe({next:function(u){u.errors&&(l=t({graphQLErrors:u.errors,response:u,operation:n,forward:e}))?o=l.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.next(u)},error:function(u){(l=t({operation:n,networkError:u,graphQLErrors:u&&u.result&&u.result.errors,forward:e}))?o=l.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.error(u)},complete:function(){l||r.complete.bind(r)()}})}catch(u){t({networkError:u,operation:n,forward:e}),r.error(u)}return function(){a&&a.unsubscribe(),o&&a.unsubscribe()}})})}!function(t){function n(e){var r=t.call(this)||this;return r.link=Ct(e),r}(0,k.ZT)(n,t),n.prototype.request=function(e,r){return this.link.request(e,r)}}(v.i);var We=y(2340),Rt=y(3078),Ve=y(2465),At=y(6498);class zi extends v.i{constructor(n,e){super(),this.httpClient=n,this.options=e,this.print=Ve.S,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=r=>new xt.y(a=>{const o=r.getContext(),l=(Ie,Ye)=>function Ti(...t){const n=t.find(e=>typeof e<"u");return typeof n>"u"?t[t.length-1]:n}(o[Ie],this.options[Ie],Ye);let u=l("method","POST");const m=l("includeQuery",!0),_=l("includeExtensions",!1),w=l("uri","graphql"),M=l("withCredentials"),O=l("useMultipart"),N=!0===this.options.useGETForQueries,z=r.query.definitions.some(Ie=>"OperationDefinition"===Ie.kind&&"query"===Ie.operation);N&&z&&(u="GET");const j={method:u,url:"function"==typeof w?w(r):w,body:{operationName:r.operationName,variables:r.variables},options:{withCredentials:M,useMultipart:O,headers:this.options.headers}};_&&(j.body.extensions=r.extensions),m&&(j.body.query=this.print(r.query));const oe=function Oi(t){let n=t.headers&&t.headers instanceof p.WM?t.headers:new p.WM(t.headers);if(t.clientAwareness){const{name:e,version:r}=t.clientAwareness;e&&!n.has("apollographql-client-name")&&(n=n.set("apollographql-client-name",e)),r&&!n.has("apollographql-client-version")&&(n=n.set("apollographql-client-version",r))}return n}(o);j.options.headers=((t,n)=>t&&n?n.keys().reduce((r,a)=>r.set(a,n.getAll(a)),t):n||t)(j.options.headers,oe);const Ne=((t,n,e)=>{const r=-1!==["POST","PUT","PATCH"].indexOf(t.method.toUpperCase()),o=t.body.length;let u,l=t.options&&t.options.useMultipart;if(l){if(o)return new At.y(_=>_.error(new Error("File upload is not available when combined with Batching")));if(!r)return new At.y(_=>_.error(new Error("File upload is not available when GET is used")));if(!e)return new At.y(_=>_.error(new Error('To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink\'s options')));u=e(t.body),l=!!u.files.size}let m={};if(o){if(!r)return new At.y(_=>_.error(new Error("Batching is not available for GET requests")));m={body:t.body}}else m=r?{body:l?u.clone:t.body}:{params:Object.keys(t.body).reduce((M,O)=>{const N=t.body[O];return M[O]=-1!==["variables","extensions"].indexOf(O.toLowerCase())?JSON.stringify(N):N,M},{})};if(l&&r){const _=new FormData;_.append("operations",JSON.stringify(m.body));const w={},M=u.files;let O=0;M.forEach(N=>{w[++O]=N}),_.append("map",JSON.stringify(w)),O=0,M.forEach((N,z)=>{_.append(++O+"",z,z.name)}),m.body=_}return n.request(t.method,t.url,{observe:"response",responseType:"json",reportProgress:!1,...m,...t.options})})(j,this.httpClient,this.options.extractFiles).subscribe({next:Ie=>{r.setContext({response:Ie}),a.next(Ie.body)},error:Ie=>a.error(Ie),complete:()=>a.complete()});return()=>{Ne.closed||Ne.unsubscribe()}})}request(n){return this.requester(n)}}let ur=(()=>{class t{constructor(e){this.httpClient=e}create(e){return new zi(this.httpClient,e)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(p.eN))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Ft=y(6630),ln=y(7556);class Tn{constructor(n,e,r,a){this.router=r,this.authService=a,n.create(this.createAuthApollo(e,Tn.backendUri)),n.create(this.createDefaultApollo(e,Tn.pimUri),Tn.pimName),n.create(this.createDefaultApollo(e,Tn.omsUri),Tn.omsName),n.create(this.createDefaultApollo(e,Tn.buyButtonUri),Tn.buyButtonName)}createAuthApollo(n,e){const r=function nt(t){return new v.i(function(n,e){var r=(0,k._T)(n,[]);return new xt.y(function(a){var o,l=!1;return Promise.resolve(r).then(function(u){return t(u,n.getContext())}).then(n.setContext).then(function(){l||(o=e(n).subscribe({next:a.next.bind(a),error:a.error.bind(a),complete:a.complete.bind(a)}))}).catch(a.error.bind(a)),function(){l=!0,o&&o.unsubscribe()}})})}((u,m)=>{const _=localStorage.getItem("currentAuth");return _?{headers:{"x-access-token":JSON.parse(_)?.token}}:{}}),a=Ct(({graphQLErrors:u,response:m})=>{u&&u.forEach(_=>{"Invalid token."===_.message&&(this.authService.logout(),this.router.navigate(["login"]),m&&(m.errors=void 0))})});return{link:v.i.from([a,r,n.create({uri:e})]),cache:new Fe({addTypename:!1})}}createDefaultApollo(n,e){return{link:n.create({uri:e}),cache:new Fe({addTypename:!1})}}}Tn.backendUri=We.N.backendUri,Tn.pimUri=We.N.pimUri,Tn.omsUri=We.N.omsUri,Tn.buyButtonUri=We.N.buyButtonUri,Tn.backendName="backend",Tn.pimName="pim",Tn.omsName="oms",Tn.buyButtonName="buy-button",Tn.\u0275fac=function(n){return new(n||Tn)(i.LFG(Rt._M),i.LFG(ur),i.LFG(Ft.F0),i.LFG(ln.e8))},Tn.\u0275mod=i.oAB({type:Tn}),Tn.\u0275inj=i.cJS({});var Hn=y(6895),Ot=y(1266);class Sn{constructor(n,e="/assets/i18n/",r=".json"){this.http=n,this.prefix=e,this.suffix=r}getTranslation(n){return this.http.get(`${this.prefix}${n}${this.suffix}`)}}var Ht=y(7340);function rt(t){return new i.vHH(3e3,!1)}function Yc(){return typeof window<"u"&&typeof window.document<"u"}function Xs(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Da(t){switch(t.length){case 0:return new Ht.ZN;case 1:return t[0];default:return new Ht.ZE(t)}}function fo(t,n,e,r,a=new Map,o=new Map){const l=[],u=[];let m=-1,_=null;if(r.forEach(w=>{const M=w.get("offset"),O=M==m,N=O&&_||new Map;w.forEach((z,j)=>{let oe=j,Ne=z;if("offset"!==j)switch(oe=n.normalizePropertyName(oe,l),Ne){case Ht.k1:Ne=a.get(j);break;case Ht.l3:Ne=o.get(j);break;default:Ne=n.normalizeStyleValue(j,oe,Ne,l)}N.set(oe,Ne)}),O||u.push(N),_=N,m=M}),l.length)throw function Os(t){return new i.vHH(3502,!1)}();return u}function Ra(t,n,e,r){switch(n){case"start":t.onStart(()=>r(e&&ja(e,"start",t)));break;case"done":t.onDone(()=>r(e&&ja(e,"done",t)));break;case"destroy":t.onDestroy(()=>r(e&&ja(e,"destroy",t)))}}function ja(t,n,e){const o=Ao(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),l=t._data;return null!=l&&(o._data=l),o}function Ao(t,n,e,r,a="",o=0,l){return{element:t,triggerName:n,fromState:e,toState:r,phaseName:a,totalTime:o,disabled:!!l}}function ya(t,n,e){let r=t.get(n);return r||t.set(n,r=e),r}function Rs(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let mo=(t,n)=>!1,ls=(t,n,e)=>[],el=null;function tl(t){const n=t.parentNode||t.host;return n===el?null:n}(Xs()||typeof Element<"u")&&(Yc()?(el=(()=>document.documentElement)(),mo=(t,n)=>{for(;n;){if(n===t)return!0;n=tl(n)}return!1}):mo=(t,n)=>t.contains(n),ls=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const r=t.querySelector(n);return r?[r]:[]});let Wo=null,Go=!1;const Ls=mo,So=ls;let nl=(()=>{class t{validateStyleProperty(e){return function Fs(t){Wo||(Wo=function po(){return typeof document<"u"?document.body:null}()||{},Go=!!Wo.style&&"WebkitAppearance"in Wo.style);let n=!0;return Wo.style&&!function zo(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Wo.style,!n&&Go&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Wo.style)),n}(e)}matchesElement(e,r){return!1}containsElement(e,r){return Ls(e,r)}getParentElement(e){return tl(e)}query(e,r,a){return So(e,r,a)}computeStyle(e,r,a){return a||""}animate(e,r,a,o,l,u=[],m){return new Ht.ZN(a,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),ko=(()=>{class t{}return t.NOOP=new nl,t})();const vl=1e3,to="ng-enter",$o="ng-leave",go="ng-trigger",qo=".ng-trigger",xa="ng-animating",Qo=".ng-animating";function Fa(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:qr(parseFloat(n[1]),n[2])}function qr(t,n){return"s"===n?t*vl:t}function Ko(t,n,e){return t.hasOwnProperty("duration")?t:function Yl(t,n,e){let a,o=0,l="";if("string"==typeof t){const u=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===u)return n.push(rt()),{duration:0,delay:0,easing:""};a=qr(parseFloat(u[1]),u[2]);const m=u[3];null!=m&&(o=qr(parseFloat(m),u[4]));const _=u[5];_&&(l=_)}else a=t;if(!e){let u=!1,m=n.length;a<0&&(n.push(function Nt(){return new i.vHH(3100,!1)}()),u=!0),o<0&&(n.push(function P(){return new i.vHH(3101,!1)}()),u=!0),u&&n.splice(m,0,rt())}return{duration:a,delay:o,easing:l}}(t,n,e)}function Qr(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function rl(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Nr(t,n=new Map,e){if(e)for(let[r,a]of e)n.set(r,a);for(let[r,a]of t)n.set(r,a);return n}function bl(t,n,e){return e?n+":"+e+";":""}function na(t){let n="";for(let e=0;e<t.style.length;e++){const r=t.style.item(e);n+=bl(0,r,t.style.getPropertyValue(r))}for(const e in t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(n+=bl(0,Be(e),t.style[e]));t.setAttribute("style",n)}function no(t,n,e){t.style&&(n.forEach((r,a)=>{const o=U(a);e&&!e.has(a)&&e.set(a,t.style[o]),t.style[o]=r}),Xs()&&na(t))}function sa(t,n){t.style&&(n.forEach((e,r)=>{const a=U(r);t.style[a]=""}),Xs()&&na(t))}function cs(t){return Array.isArray(t)?1==t.length?t[0]:(0,Ht.vP)(t):t}const Ni=new RegExp("{{\\s*(.+?)\\s*}}","g");function te(t){let n=[];if("string"==typeof t){let e;for(;e=Ni.exec(t);)n.push(e[1]);Ni.lastIndex=0}return n}function C(t,n,e){const r=t.toString(),a=r.replace(Ni,(o,l)=>{let u=n[l];return null==u&&(e.push(function st(t){return new i.vHH(3003,!1)}()),u=""),u.toString()});return a==r?t:a}function D(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const E=/-+([a-z0-9])/g;function U(t){return t.replace(E,(...n)=>n[1].toUpperCase())}function Be(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Bt(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function It(t){return new i.vHH(3004,!1)}()}}function bn(t,n){return window.getComputedStyle(t)[n]}const Si="*";function Xi(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(r=>function Bi(t,n,e){if(":"==t[0]){const m=function er(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,r)=>parseFloat(r)>parseFloat(e);case":decrement":return(e,r)=>parseFloat(r)<parseFloat(e);default:return n.push(function ga(t){return new i.vHH(3016,!1)}()),"* => *"}}(t,e);if("function"==typeof m)return void n.push(m);t=m}const r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return e.push(function pa(t){return new i.vHH(3015,!1)}()),n;const a=r[1],o=r[2],l=r[3];n.push(lr(a,l));"<"==o[0]&&!(a==Si&&l==Si)&&n.push(lr(l,a))}(r,e,n)):e.push(t),e}const Vi=new Set(["true","1"]),qi=new Set(["false","0"]);function lr(t,n){const e=Vi.has(t)||qi.has(t),r=Vi.has(n)||qi.has(n);return(a,o)=>{let l=t==Si||t==a,u=n==Si||n==o;return!l&&e&&"boolean"==typeof a&&(l=a?Vi.has(t):qi.has(t)),!u&&r&&"boolean"==typeof o&&(u=o?Vi.has(n):qi.has(n)),l&&u}}const hr=new RegExp("s*:selfs*,?","g");function tr(t,n,e,r){return new ol(t).build(n,e,r)}class ol{constructor(n){this._driver=n}build(n,e,r){const a=new ds(e);return this._resetContextStyleTimingState(a),Bt(this,cs(n),a)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let r=e.queryCount=0,a=e.depCount=0;const o=[],l=[];return"@"==n.name.charAt(0)&&e.errors.push(function Ei(){return new i.vHH(3006,!1)}()),n.definitions.forEach(u=>{if(this._resetContextStyleTimingState(e),0==u.type){const m=u,_=m.name;_.toString().split(/\s*,\s*/).forEach(w=>{m.name=w,o.push(this.visitState(m,e))}),m.name=_}else if(1==u.type){const m=this.visitTransition(u,e);r+=m.queryCount,a+=m.depCount,l.push(m)}else e.errors.push(function Ai(){return new i.vHH(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:l,queryCount:r,depCount:a,options:null}}visitState(n,e){const r=this.visitStyle(n.styles,e),a=n.options&&n.options.params||null;if(r.containsDynamicStyles){const o=new Set,l=a||{};r.styles.forEach(u=>{u instanceof Map&&u.forEach(m=>{te(m).forEach(_=>{l.hasOwnProperty(_)||o.add(_)})})}),o.size&&(D(o.values()),e.errors.push(function sr(t,n){return new i.vHH(3008,!1)}()))}return{type:0,name:n.name,style:r,options:a?{params:a}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const r=Bt(this,cs(n.animation),e);return{type:1,matchers:Xi(n.expr,e.errors),animation:r,queryCount:e.queryCount,depCount:e.depCount,options:vo(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(r=>Bt(this,r,e)),options:vo(n.options)}}visitGroup(n,e){const r=e.currentTime;let a=0;const o=n.steps.map(l=>{e.currentTime=r;const u=Bt(this,l,e);return a=Math.max(a,e.currentTime),u});return e.currentTime=a,{type:3,steps:o,options:vo(n.options)}}visitAnimate(n,e){const r=function sl(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Gl(Ko(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Gl(0,0,"");return o.dynamic=!0,o.strValue=e,o}const a=Ko(e,n);return Gl(a.duration,a.delay,a.easing)}(n.timings,e.errors);e.currentAnimateTimings=r;let a,o=n.styles?n.styles:(0,Ht.oB)({});if(5==o.type)a=this.visitKeyframes(o,e);else{let l=n.styles,u=!1;if(!l){u=!0;const _={};r.easing&&(_.easing=r.easing),l=(0,Ht.oB)(_)}e.currentTime+=r.duration+r.delay;const m=this.visitStyle(l,e);m.isEmptyStep=u,a=m}return e.currentAnimateTimings=null,{type:4,timings:r,style:a,options:null}}visitStyle(n,e){const r=this._makeStyleAst(n,e);return this._validateStyleAst(r,e),r}_makeStyleAst(n,e){const r=[],a=Array.isArray(n.styles)?n.styles:[n.styles];for(let u of a)"string"==typeof u?u===Ht.l3?r.push(u):e.errors.push(new i.vHH(3002,!1)):r.push(rl(u));let o=!1,l=null;return r.forEach(u=>{if(u instanceof Map&&(u.has("easing")&&(l=u.get("easing"),u.delete("easing")),!o))for(let m of u.values())if(m.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:r,easing:l,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const r=e.currentAnimateTimings;let a=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),n.styles.forEach(l=>{"string"!=typeof l&&l.forEach((u,m)=>{const _=e.collectedStyles.get(e.currentQuerySelector),w=_.get(m);let M=!0;w&&(o!=a&&o>=w.startTime&&a<=w.endTime&&(e.errors.push(function Lr(t,n,e,r,a){return new i.vHH(3010,!1)}()),M=!1),o=w.startTime),M&&_.set(m,{startTime:o,endTime:a}),e.options&&function zl(t,n,e){const r=n.params||{},a=te(t);a.length&&a.forEach(o=>{r.hasOwnProperty(o)||e.push(function xe(t){return new i.vHH(3001,!1)}())})}(u,e.options,e.errors)})})}visitKeyframes(n,e){const r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Zn(){return new i.vHH(3011,!1)}()),r;let o=0;const l=[];let u=!1,m=!1,_=0;const w=n.steps.map(Ne=>{const Ie=this._makeStyleAst(Ne,e);let Ye=null!=Ie.offset?Ie.offset:function Wl(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const r=e;n=parseFloat(r.get("offset")),r.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(Ie.styles),Pt=0;return null!=Ye&&(o++,Pt=Ie.offset=Ye),m=m||Pt<0||Pt>1,u=u||Pt<_,_=Pt,l.push(Pt),Ie});m&&e.errors.push(function Mo(){return new i.vHH(3012,!1)}()),u&&e.errors.push(function oa(){return new i.vHH(3200,!1)}());const M=n.steps.length;let O=0;o>0&&o<M?e.errors.push(function Mr(){return new i.vHH(3202,!1)}()):0==o&&(O=1/(M-1));const N=M-1,z=e.currentTime,j=e.currentAnimateTimings,oe=j.duration;return w.forEach((Ne,Ie)=>{const Ye=O>0?Ie==N?1:O*Ie:l[Ie],Pt=Ye*oe;e.currentTime=z+j.delay+Pt,j.duration=Pt,this._validateStyleAst(Ne,e),Ne.offset=Ye,r.styles.push(Ne)}),r}visitReference(n,e){return{type:8,animation:Bt(this,cs(n.animation),e),options:vo(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:vo(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:vo(n.options)}}visitQuery(n,e){const r=e.currentQuerySelector,a=n.options||{};e.queryCount++,e.currentQuery=n;const[o,l]=function ia(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(hr,"")),t=t.replace(/@\*/g,qo).replace(/@\w+/g,e=>qo+"-"+e.slice(1)).replace(/:animating/g,Qo),[t,n]}(n.selector);e.currentQuerySelector=r.length?r+" "+o:o,ya(e.collectedStyles,e.currentQuerySelector,new Map);const u=Bt(this,cs(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=r,{type:11,selector:o,limit:a.limit||0,optional:!!a.optional,includeSelf:l,animation:u,originalSelector:n.selector,options:vo(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function ma(){return new i.vHH(3013,!1)}());const r="full"===n.timings?{duration:0,delay:0,easing:"full"}:Ko(n.timings,e.errors,!0);return{type:12,animation:Bt(this,cs(n.animation),e),timings:r,options:null}}}class ds{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function vo(t){return t?(t=Qr(t)).params&&(t.params=function io(t){return t?Qr(t):null}(t.params)):t={},t}function Gl(t,n,e){return{duration:t,delay:n,easing:e}}function $l(t,n,e,r,a,o,l=null,u=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:r,duration:a,delay:o,totalTime:a+o,easing:l,subTimeline:u}}class yl{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let r=this._map.get(n);r||this._map.set(n,r=[]),r.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const Io=new RegExp(":enter","g"),Cl=new RegExp(":leave","g");function vc(t,n,e,r,a,o=new Map,l=new Map,u,m,_=[]){return(new La).buildKeyframes(t,n,e,r,a,o,l,u,m,_)}class La{buildKeyframes(n,e,r,a,o,l,u,m,_,w=[]){_=_||new yl;const M=new Ir(n,e,_,a,o,w,[]);M.options=m;const O=m.delay?Fa(m.delay):0;M.currentTimeline.delayNextStep(O),M.currentTimeline.setStyles([l],null,M.errors,m),Bt(this,r,M);const N=M.timelines.filter(z=>z.containsAnimation());if(N.length&&u.size){let z;for(let j=N.length-1;j>=0;j--){const oe=N[j];if(oe.element===e){z=oe;break}}z&&!z.allowOnlyTimelineStyles()&&z.setStyles([u],null,M.errors,m)}return N.length?N.map(z=>z.buildKeyframes()):[$l(e,[],[],[],0,O,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const r=e.subInstructions.get(e.element);if(r){const a=e.createSubContext(n.options),o=e.currentTimeline.currentTime,l=this._visitSubInstructions(r,a,a.options);o!=l&&e.transformIntoNewTimeline(l)}e.previousNode=n}visitAnimateRef(n,e){const r=e.createSubContext(n.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,r),this.visitReference(n.animation,r),e.transformIntoNewTimeline(r.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,r){for(const a of n){const o=a?.delay;if(o){const l="number"==typeof o?o:Fa(C(o,a?.params??{},e.errors));r.delayNextStep(l)}}}_visitSubInstructions(n,e,r){let o=e.currentTimeline.currentTime;const l=null!=r.duration?Fa(r.duration):null,u=null!=r.delay?Fa(r.delay):null;return 0!==l&&n.forEach(m=>{const _=e.appendInstructionToTimeline(m,l,u);o=Math.max(o,_.duration+_.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),Bt(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const r=e.subContextCount;let a=e;const o=n.options;if(o&&(o.params||o.delay)&&(a=e.createSubContext(o),a.transformIntoNewTimeline(),null!=o.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=ro);const l=Fa(o.delay);a.delayNextStep(l)}n.steps.length&&(n.steps.forEach(l=>Bt(this,l,a)),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>r&&a.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const r=[];let a=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Fa(n.options.delay):0;n.steps.forEach(l=>{const u=e.createSubContext(n.options);o&&u.delayNextStep(o),Bt(this,l,u),a=Math.max(a,u.currentTimeline.currentTime),r.push(u.currentTimeline)}),r.forEach(l=>e.currentTimeline.mergeTimelineCollectedStyles(l)),e.transformIntoNewTimeline(a),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const r=n.strValue;return Ko(e.params?C(r,e.params,e.errors):r,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const r=e.currentAnimateTimings=this._visitTiming(n.timings,e),a=e.currentTimeline;r.delay&&(e.incrementTime(r.delay),a.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(r.duration),this.visitStyle(o,e),a.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const r=e.currentTimeline,a=e.currentAnimateTimings;!a&&r.hasCurrentStyleProperties()&&r.forwardFrame();const o=a&&a.easing||n.easing;n.isEmptyStep?r.applyEmptyStep(o):r.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const r=e.currentAnimateTimings,a=e.currentTimeline.duration,o=r.duration,u=e.createSubContext().currentTimeline;u.easing=r.easing,n.styles.forEach(m=>{u.forwardTime((m.offset||0)*o),u.setStyles(m.styles,m.easing,e.errors,e.options),u.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(u),e.transformIntoNewTimeline(a+o),e.previousNode=n}visitQuery(n,e){const r=e.currentTimeline.currentTime,a=n.options||{},o=a.delay?Fa(a.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ro);let l=r;const u=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!a.optional,e.errors);e.currentQueryTotal=u.length;let m=null;u.forEach((_,w)=>{e.currentQueryIndex=w;const M=e.createSubContext(n.options,_);o&&M.delayNextStep(o),_===e.element&&(m=M.currentTimeline),Bt(this,n.animation,M),M.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,M.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(l),m&&(e.currentTimeline.mergeTimelineCollectedStyles(m),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const r=e.parentContext,a=e.currentTimeline,o=n.timings,l=Math.abs(o.duration),u=l*(e.currentQueryTotal-1);let m=l*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":m=u-m;break;case"full":m=r.currentStaggerTime}const w=e.currentTimeline;m&&w.delayNextStep(m);const M=w.currentTime;Bt(this,n.animation,e),e.previousNode=n,r.currentStaggerTime=a.currentTime-M+(a.startTime-r.currentTimeline.startTime)}}const ro={};class Ir{constructor(n,e,r,a,o,l,u,m){this._driver=n,this.element=e,this.subInstructions=r,this._enterClassName=a,this._leaveClassName=o,this.errors=l,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ro,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=m||new Gc(this._driver,e,0),u.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const r=n;let a=this.options;null!=r.duration&&(a.duration=Fa(r.duration)),null!=r.delay&&(a.delay=Fa(r.delay));const o=r.params;if(o){let l=a.params;l||(l=this.options.params={}),Object.keys(o).forEach(u=>{(!e||!l.hasOwnProperty(u))&&(l[u]=C(o[u],l,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const r=n.params={};Object.keys(e).forEach(a=>{r[a]=e[a]})}}return n}createSubContext(n=null,e,r){const a=e||this.element,o=new Ir(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=ro,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,r){const a={duration:e??n.duration,delay:this.currentTimeline.currentTime+(r??0)+n.delay,easing:""},o=new Wf(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,a,n.stretchStartingKeyframe);return this.timelines.push(o),a}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,r,a,o,l){let u=[];if(a&&u.push(this.element),n.length>0){n=(n=n.replace(Io,"."+this._enterClassName)).replace(Cl,"."+this._leaveClassName);let _=this._driver.query(this.element,n,1!=r);0!==r&&(_=r<0?_.slice(_.length+r,_.length):_.slice(0,r)),u.push(..._)}return!o&&0==u.length&&l.push(function Pa(t){return new i.vHH(3014,!1)}()),u}}class Gc{constructor(n,e,r,a){this._driver=n,this.element=e,this.startTime=r,this._elementTimelineStylesLookup=a,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Gc(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,r]of this._globalTimelineStyles)this._backFill.set(e,r||Ht.l3),this._currentKeyframe.set(e,Ht.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,r,a){e&&this._previousKeyframe.set("easing",e);const o=a&&a.params||{},l=function Gf(t,n){const e=new Map;let r;return t.forEach(a=>{if("*"===a){r=r||n.keys();for(let o of r)e.set(o,Ht.l3)}else Nr(a,e)}),e}(n,this._globalTimelineStyles);for(let[u,m]of l){const _=C(m,o,r);this._pendingStyles.set(u,_),this._localTimelineStyles.has(u)||this._backFill.set(u,this._globalTimelineStyles.get(u)??Ht.l3),this._updateStyle(u,_)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,r)=>{const a=this._styleSummary.get(r);(!a||e.time>a.time)&&this._updateStyle(r,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,r=1===this._keyframes.size&&0===this.duration;let a=[];this._keyframes.forEach((u,m)=>{const _=Nr(u,new Map,this._backFill);_.forEach((w,M)=>{w===Ht.k1?n.add(M):w===Ht.l3&&e.add(M)}),r||_.set("offset",m/this.duration),a.push(_)});const o=n.size?D(n.values()):[],l=e.size?D(e.values()):[];if(r){const u=a[0],m=new Map(u);u.set("offset",0),m.set("offset",1),a=[u,m]}return $l(this.element,a,o,l,this.duration,this.startTime,this.easing,!1)}}class Wf extends Gc{constructor(n,e,r,a,o,l,u=!1){super(n,e,l.delay),this.keyframes=r,this.preStyleProps=a,this.postStyleProps=o,this._stretchStartingKeyframe=u,this.timings={duration:l.duration,delay:l.delay,easing:l.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:r,easing:a}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],l=r+e,u=e/l,m=Nr(n[0]);m.set("offset",0),o.push(m);const _=Nr(n[0]);_.set("offset",au(u)),o.push(_);const w=n.length-1;for(let M=1;M<=w;M++){let O=Nr(n[M]);const N=O.get("offset");O.set("offset",au((e+N*r)/l)),o.push(O)}r=l,e=0,a="",n=o}return $l(this.element,n,this.preStyleProps,this.postStyleProps,r,e,a,!0)}}function au(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class xd{}const wd=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Cd extends xd{normalizePropertyName(n,e){return U(n)}normalizeStyleValue(n,e,r,a){let o="";const l=r.toString().trim();if(wd.has(e)&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const u=r.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&0==u[1].length&&a.push(function Mn(t,n){return new i.vHH(3005,!1)}())}return l+o}}function ee(t,n,e,r,a,o,l,u,m,_,w,M,O){return{type:0,element:t,triggerName:n,isRemovalTransition:a,fromState:e,fromStyles:o,toState:r,toStyles:l,timelines:u,queriedElements:m,preStyleProps:_,postStyleProps:w,totalTime:M,errors:O}}const Ue={};class he{constructor(n,e,r){this._triggerName=n,this.ast=e,this._stateStyles=r}match(n,e,r,a){return function Qt(t,n,e,r,a){return t.some(o=>o(n,e,r,a))}(this.ast.matchers,n,e,r,a)}buildStyles(n,e,r){let a=this._stateStyles.get("*");return void 0!==n&&(a=this._stateStyles.get(n?.toString())||a),a?a.buildStyles(e,r):new Map}build(n,e,r,a,o,l,u,m,_,w){const M=[],O=this.ast.options&&this.ast.options.params||Ue,z=this.buildStyles(r,u&&u.params||Ue,M),j=m&&m.params||Ue,oe=this.buildStyles(a,j,M),Ne=new Set,Ie=new Map,Ye=new Map,Pt="void"===a,Ut={params:kn(j,O),delay:this.ast.options?.delay},rn=w?[]:vc(n,e,this.ast.animation,o,l,z,oe,Ut,_,M);let kt=0;if(rn.forEach(tn=>{kt=Math.max(tn.duration+tn.delay,kt)}),M.length)return ee(e,this._triggerName,r,a,Pt,z,oe,[],[],Ie,Ye,kt,M);rn.forEach(tn=>{const xn=tn.element,Cn=ya(Ie,xn,new Set);tn.preStyleProps.forEach(Xn=>Cn.add(Xn));const mn=ya(Ye,xn,new Set);tn.postStyleProps.forEach(Xn=>mn.add(Xn)),xn!==e&&Ne.add(xn)});const en=D(Ne.values());return ee(e,this._triggerName,r,a,Pt,z,oe,rn,en,Ie,Ye,kt)}}function kn(t,n){const e=Qr(n);for(const r in t)t.hasOwnProperty(r)&&null!=t[r]&&(e[r]=t[r]);return e}class Gn{constructor(n,e,r){this.styles=n,this.defaultParams=e,this.normalizer=r}buildStyles(n,e){const r=new Map,a=Qr(this.defaultParams);return Object.keys(n).forEach(o=>{const l=n[o];null!==l&&(a[o]=l)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((l,u)=>{l&&(l=C(l,a,e));const m=this.normalizer.normalizePropertyName(u,e);l=this.normalizer.normalizeStyleValue(u,m,l,e),r.set(u,l)})}),r}}class Or{constructor(n,e,r){this.name=n,this.ast=e,this._normalizer=r,this.transitionFactories=[],this.states=new Map,e.states.forEach(a=>{this.states.set(a.name,new Gn(a.style,a.options&&a.options.params||{},r))}),gr(this.states,"true","1"),gr(this.states,"false","0"),e.transitions.forEach(a=>{this.transitionFactories.push(new he(n,a,this.states))}),this.fallbackTransition=function Tr(t,n,e){return new he(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(l,u)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,r,a){return this.transitionFactories.find(l=>l.match(n,e,r,a))||null}matchStyles(n,e,r){return this.fallbackTransition.buildStyles(n,e,r)}}function gr(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const nr=new yl;class ra{constructor(n,e,r){this.bodyNode=n,this._driver=e,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const r=[],a=[],o=tr(this._driver,e,r,a);if(r.length)throw function Qs(t){return new i.vHH(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,r){const a=n.element,o=fo(0,this._normalizer,0,n.keyframes,e,r);return this._driver.animate(a,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,r={}){const a=[],o=this._animations.get(n);let l;const u=new Map;if(o?(l=vc(this._driver,e,o,to,$o,new Map,new Map,r,nr,a),l.forEach(w=>{const M=ya(u,w.element,new Map);w.postStyleProps.forEach(O=>M.set(O,null))})):(a.push(function pl(){return new i.vHH(3300,!1)}()),l=[]),a.length)throw function Ps(t){return new i.vHH(3504,!1)}();u.forEach((w,M)=>{w.forEach((O,N)=>{w.set(N,this._driver.computeStyle(M,N,Ht.l3))})});const _=Da(l.map(w=>{const M=u.get(w.element);return this._buildPlayer(w,new Map,M)}));return this._playersById.set(n,_),_.onDestroy(()=>this.destroy(n)),this.players.push(_),_}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const r=this.players.indexOf(e);r>=0&&this.players.splice(r,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function ss(t){return new i.vHH(3301,!1)}();return e}listen(n,e,r,a){const o=Ao(e,"","","");return Ra(this._getPlayer(n),r,o,a),()=>{}}command(n,e,r,a){if("register"==r)return void this.register(n,a[0]);if("create"==r)return void this.create(n,e,a[0]||{});const o=this._getPlayer(n);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(n)}}}const wr="ng-animate-queued",Jo="ng-animate-disabled",Xo=[],yo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},es={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Oo="__ng_removed";class bc{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const r=n&&n.hasOwnProperty("value");if(this.value=function su(t){return t??null}(r?n.value:n),r){const o=Qr(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const r=this.options.params;Object.keys(e).forEach(a=>{null==r[a]&&(r[a]=e[a])})}}}const yc="void",xc=new bc(yc);class bh{constructor(n,e,r){this.id=n,this.hostElement=e,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,xo(e,this._hostClassName)}listen(n,e,r,a){if(!this._triggers.has(e))throw function Xr(t,n){return new i.vHH(3302,!1)}();if(null==r||0==r.length)throw function Ks(t){return new i.vHH(3303,!1)}();if(!function qf(t){return"start"==t||"done"==t}(r))throw function _a(t,n){return new i.vHH(3400,!1)}();const o=ya(this._elementListeners,n,[]),l={name:e,phase:r,callback:a};o.push(l);const u=ya(this._engine.statesByElement,n,new Map);return u.has(e)||(xo(n,go),xo(n,go+"-"+e),u.set(e,xc)),()=>{this._engine.afterFlush(()=>{const m=o.indexOf(l);m>=0&&o.splice(m,1),this._triggers.has(e)||u.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function va(t){return new i.vHH(3401,!1)}();return e}trigger(n,e,r,a=!0){const o=this._getTrigger(e),l=new us(this.id,e,n);let u=this._engine.statesByElement.get(n);u||(xo(n,go),xo(n,go+"-"+e),this._engine.statesByElement.set(n,u=new Map));let m=u.get(e);const _=new bc(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&m&&_.absorbOptions(m.options),u.set(e,_),m||(m=xc),_.value!==yc&&m.value===_.value){if(!function Ya(t,n){const e=Object.keys(t),r=Object.keys(n);if(e.length!=r.length)return!1;for(let a=0;a<e.length;a++){const o=e[a];if(!n.hasOwnProperty(o)||t[o]!==n[o])return!1}return!0}(m.params,_.params)){const j=[],oe=o.matchStyles(m.value,m.params,j),Ne=o.matchStyles(_.value,_.params,j);j.length?this._engine.reportError(j):this._engine.afterFlush(()=>{sa(n,oe),no(n,Ne)})}return}const O=ya(this._engine.playersByElement,n,[]);O.forEach(j=>{j.namespaceId==this.id&&j.triggerName==e&&j.queued&&j.destroy()});let N=o.matchTransition(m.value,_.value,n,_.params),z=!1;if(!N){if(!a)return;N=o.fallbackTransition,z=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:N,fromState:m,toState:_,player:l,isFallbackTransition:z}),z||(xo(n,wr),l.onStart(()=>{Cc(n,wr)})),l.onDone(()=>{let j=this.players.indexOf(l);j>=0&&this.players.splice(j,1);const oe=this._engine.playersByElement.get(n);if(oe){let Ne=oe.indexOf(l);Ne>=0&&oe.splice(Ne,1)}}),this.players.push(l),O.push(l),l}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,r)=>{this._elementListeners.set(r,e.filter(a=>a.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(r=>r.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const r=this._engine.driver.query(n,qo,!0);r.forEach(a=>{if(a[Oo])return;const o=this._engine.fetchNamespacesByElement(a);o.size?o.forEach(l=>l.triggerLeaveAnimation(a,e,!1,!0)):this.clearElementCache(a)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(a=>this.clearElementCache(a)))}triggerLeaveAnimation(n,e,r,a){const o=this._engine.statesByElement.get(n),l=new Map;if(o){const u=[];if(o.forEach((m,_)=>{if(l.set(_,m.value),this._triggers.has(_)){const w=this.trigger(n,_,yc,a);w&&u.push(w)}}),u.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,l),r&&Da(u).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),r=this._engine.statesByElement.get(n);if(e&&r){const a=new Set;e.forEach(o=>{const l=o.name;if(a.has(l))return;a.add(l);const m=this._triggers.get(l).fallbackTransition,_=r.get(l)||xc,w=new bc(yc),M=new us(this.id,l,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:l,transition:m,fromState:_,toState:w,player:M,isFallbackTransition:!0})})}}removeNode(n,e){const r=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let a=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(n):[];if(o&&o.length)a=!0;else{let l=n;for(;l=l.parentNode;)if(r.statesByElement.get(l)){a=!0;break}}}if(this.prepareLeaveAnimationListeners(n),a)r.markElementAsRemoved(this.id,n,!1,e);else{const o=n[Oo];(!o||o===yo)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,e))}}insertNode(n,e){xo(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(r=>{const a=r.player;if(a.destroyed)return;const o=r.element,l=this._elementListeners.get(o);l&&l.forEach(u=>{if(u.name==r.triggerName){const m=Ao(o,r.triggerName,r.fromState.value,r.toState.value);m._data=n,Ra(r.player,u.phase,m,u.callback)}}),a.markedForDestroy?this._engine.afterFlush(()=>{a.destroy()}):e.push(r)}),this._queue=[],e.sort((r,a)=>{const o=r.transition.ast.depCount,l=a.transition.ast.depCount;return 0==o||0==l?o-l:this._engine.driver.containsElement(r.element,a.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(r=>r.element===n)||e,e}}class $f{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,r){this.bodyNode=n,this.driver=e,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(a,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(r=>{r.queued&&n.push(r)})}),n}createNamespace(n,e){const r=new bh(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(r,e):(this.newHostElements.set(e,r),this.collectEnterElement(e)),this._namespaceLookup[n]=r}_balanceNamespaceList(n,e){const r=this._namespaceList,a=this.namespacesByHostElement;if(r.length-1>=0){let l=!1,u=this.driver.getParentElement(e);for(;u;){const m=a.get(u);if(m){const _=r.indexOf(m);r.splice(_+1,0,n),l=!0;break}u=this.driver.getParentElement(u)}l||r.unshift(n)}else r.push(n);return a.set(e,n),n}register(n,e){let r=this._namespaceLookup[n];return r||(r=this.createNamespace(n,e)),r}registerTrigger(n,e,r){let a=this._namespaceLookup[n];a&&a.register(e,r)&&this.totalAnimations++}destroy(n,e){if(!n)return;const r=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[n];const a=this._namespaceList.indexOf(r);a>=0&&this._namespaceList.splice(a,1)}),this.afterFlushAnimationsDone(()=>r.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,r=this.statesByElement.get(n);if(r)for(let a of r.values())if(a.namespaceId){const o=this._fetchNamespace(a.namespaceId);o&&e.add(o)}return e}trigger(n,e,r,a){if($c(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,r,a),!0}return!1}insertNode(n,e,r,a){if(!$c(e))return;const o=e[Oo];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const l=this.collectedLeaveElements.indexOf(e);l>=0&&this.collectedLeaveElements.splice(l,1)}if(n){const l=this._fetchNamespace(n);l&&l.insertNode(e,r)}a&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),xo(n,Jo)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Cc(n,Jo))}removeNode(n,e,r,a){if($c(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,a):this.markElementAsRemoved(n,e,!1,a),r){const l=this.namespacesByHostElement.get(e);l&&l.id!==n&&l.removeNode(e,a)}}else this._onRemovalComplete(e,a)}markElementAsRemoved(n,e,r,a,o){this.collectedLeaveElements.push(e),e[Oo]={namespaceId:n,setForRemoval:a,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,r,a,o){return $c(e)?this._fetchNamespace(n).listen(e,r,a,o):()=>{}}_buildInstruction(n,e,r,a,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,r,a,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,qo,!0);e.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,Qo,!0),e.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Da(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Oo];if(e&&e.setForRemoval){if(n[Oo]=yo,e.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(e.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(Jo)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,a)=>this._balanceNamespaceList(r,a)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)xo(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{e=this._flushAnimations(r,n)}finally{for(let a=0;a<r.length;a++)r[a]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],e.length?Da(e).onDone(()=>{r.forEach(a=>a())}):r.forEach(a=>a())}}reportError(n){throw function gl(t){return new i.vHH(3402,!1)}()}_flushAnimations(n,e){const r=new yl,a=[],o=new Map,l=[],u=new Map,m=new Map,_=new Map,w=new Set;this.disabledNodes.forEach(Un=>{w.add(Un);const Bn=this.driver.query(Un,".ng-animate-queued",!0);for(let li=0;li<Bn.length;li++)w.add(Bn[li])});const M=this.bodyNode,O=Array.from(this.statesByElement.keys()),N=Qf(O,this.collectedEnterElements),z=new Map;let j=0;N.forEach((Un,Bn)=>{const li=to+j++;z.set(Bn,li),Un.forEach(ti=>xo(ti,li))});const oe=[],Ne=new Set,Ie=new Set;for(let Un=0;Un<this.collectedLeaveElements.length;Un++){const Bn=this.collectedLeaveElements[Un],li=Bn[Oo];li&&li.setForRemoval&&(oe.push(Bn),Ne.add(Bn),li.hasAnimation?this.driver.query(Bn,".ng-star-inserted",!0).forEach(ti=>Ne.add(ti)):Ie.add(Bn))}const Ye=new Map,Pt=Qf(O,Array.from(Ne));Pt.forEach((Un,Bn)=>{const li=$o+j++;Ye.set(Bn,li),Un.forEach(ti=>xo(ti,li))}),n.push(()=>{N.forEach((Un,Bn)=>{const li=z.get(Bn);Un.forEach(ti=>Cc(ti,li))}),Pt.forEach((Un,Bn)=>{const li=Ye.get(Bn);Un.forEach(ti=>Cc(ti,li))}),oe.forEach(Un=>{this.processLeaveNode(Un)})});const Ut=[],rn=[];for(let Un=this._namespaceList.length-1;Un>=0;Un--)this._namespaceList[Un].drainQueuedTransitions(e).forEach(li=>{const ti=li.player,ki=li.element;if(Ut.push(ti),this.collectedEnterElements.length){const di=ki[Oo];if(di&&di.setForMove){if(di.previousTriggersValues&&di.previousTriggersValues.has(li.triggerName)){const ui=di.previousTriggersValues.get(li.triggerName),oi=this.statesByElement.get(li.element);if(oi&&oi.has(li.triggerName)){const ei=oi.get(li.triggerName);ei.value=ui,oi.set(li.triggerName,ei)}}return void ti.destroy()}}const qn=!M||!this.driver.containsElement(M,ki),Xt=Ye.get(ki),En=z.get(ki),on=this._buildInstruction(li,r,En,Xt,qn);if(on.errors&&on.errors.length)return void rn.push(on);if(qn)return ti.onStart(()=>sa(ki,on.fromStyles)),ti.onDestroy(()=>no(ki,on.toStyles)),void a.push(ti);if(li.isFallbackTransition)return ti.onStart(()=>sa(ki,on.fromStyles)),ti.onDestroy(()=>no(ki,on.toStyles)),void a.push(ti);const hn=[];on.timelines.forEach(di=>{di.stretchStartingKeyframe=!0,this.disabledNodes.has(di.element)||hn.push(di)}),on.timelines=hn,r.append(ki,on.timelines),l.push({instruction:on,player:ti,element:ki}),on.queriedElements.forEach(di=>ya(u,di,[]).push(ti)),on.preStyleProps.forEach((di,ui)=>{if(di.size){let oi=m.get(ui);oi||m.set(ui,oi=new Set),di.forEach((ei,Ki)=>oi.add(Ki))}}),on.postStyleProps.forEach((di,ui)=>{let oi=_.get(ui);oi||_.set(ui,oi=new Set),di.forEach((ei,Ki)=>oi.add(Ki))})});if(rn.length){const Un=[];rn.forEach(Bn=>{Un.push(function Js(t,n){return new i.vHH(3505,!1)}())}),Ut.forEach(Bn=>Bn.destroy()),this.reportError(Un)}const kt=new Map,en=new Map;l.forEach(Un=>{const Bn=Un.element;r.has(Bn)&&(en.set(Bn,Bn),this._beforeAnimationBuild(Un.player.namespaceId,Un.instruction,kt))}),a.forEach(Un=>{const Bn=Un.element;this._getPreviousPlayers(Bn,!1,Un.namespaceId,Un.triggerName,null).forEach(ti=>{ya(kt,Bn,[]).push(ti),ti.destroy()})});const tn=oe.filter(Un=>ql(Un,m,_)),xn=new Map;lu(xn,this.driver,Ie,_,Ht.l3).forEach(Un=>{ql(Un,m,_)&&tn.push(Un)});const mn=new Map;N.forEach((Un,Bn)=>{lu(mn,this.driver,new Set(Un),m,Ht.k1)}),tn.forEach(Un=>{const Bn=xn.get(Un),li=mn.get(Un);xn.set(Un,new Map([...Array.from(Bn?.entries()??[]),...Array.from(li?.entries()??[])]))});const Xn=[],gi=[],$n={};l.forEach(Un=>{const{element:Bn,player:li,instruction:ti}=Un;if(r.has(Bn)){if(w.has(Bn))return li.onDestroy(()=>no(Bn,ti.toStyles)),li.disabled=!0,li.overrideTotalTime(ti.totalTime),void a.push(li);let ki=$n;if(en.size>1){let Xt=Bn;const En=[];for(;Xt=Xt.parentNode;){const on=en.get(Xt);if(on){ki=on;break}En.push(Xt)}En.forEach(on=>en.set(on,ki))}const qn=this._buildAnimation(li.namespaceId,ti,kt,o,mn,xn);if(li.setRealPlayer(qn),ki===$n)Xn.push(li);else{const Xt=this.playersByElement.get(ki);Xt&&Xt.length&&(li.parentPlayer=Da(Xt)),a.push(li)}}else sa(Bn,ti.fromStyles),li.onDestroy(()=>no(Bn,ti.toStyles)),gi.push(li),w.has(Bn)&&a.push(li)}),gi.forEach(Un=>{const Bn=o.get(Un.element);if(Bn&&Bn.length){const li=Da(Bn);Un.setRealPlayer(li)}}),a.forEach(Un=>{Un.parentPlayer?Un.syncPlayerEvents(Un.parentPlayer):Un.destroy()});for(let Un=0;Un<oe.length;Un++){const Bn=oe[Un],li=Bn[Oo];if(Cc(Bn,$o),li&&li.hasAnimation)continue;let ti=[];if(u.size){let qn=u.get(Bn);qn&&qn.length&&ti.push(...qn);let Xt=this.driver.query(Bn,Qo,!0);for(let En=0;En<Xt.length;En++){let on=u.get(Xt[En]);on&&on.length&&ti.push(...on)}}const ki=ti.filter(qn=>!qn.destroyed);ki.length?Kf(this,Bn,ki):this.processLeaveNode(Bn)}return oe.length=0,Xn.forEach(Un=>{this.players.push(Un),Un.onDone(()=>{Un.destroy();const Bn=this.players.indexOf(Un);this.players.splice(Bn,1)}),Un.play()}),Xn}elementContainsData(n,e){let r=!1;const a=e[Oo];return a&&a.setForRemoval&&(r=!0),this.playersByElement.has(e)&&(r=!0),this.playersByQueriedElement.has(e)&&(r=!0),this.statesByElement.has(e)&&(r=!0),this._fetchNamespace(n).elementContainsData(e)||r}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,r,a,o){let l=[];if(e){const u=this.playersByQueriedElement.get(n);u&&(l=u)}else{const u=this.playersByElement.get(n);if(u){const m=!o||o==yc;u.forEach(_=>{_.queued||!m&&_.triggerName!=a||l.push(_)})}}return(r||a)&&(l=l.filter(u=>!(r&&r!=u.namespaceId||a&&a!=u.triggerName))),l}_beforeAnimationBuild(n,e,r){const o=e.element,l=e.isRemovalTransition?void 0:n,u=e.isRemovalTransition?void 0:e.triggerName;for(const m of e.timelines){const _=m.element,w=_!==o,M=ya(r,_,[]);this._getPreviousPlayers(_,w,l,u,e.toState).forEach(N=>{const z=N.getRealPlayer();z.beforeDestroy&&z.beforeDestroy(),N.destroy(),M.push(N)})}sa(o,e.fromStyles)}_buildAnimation(n,e,r,a,o,l){const u=e.triggerName,m=e.element,_=[],w=new Set,M=new Set,O=e.timelines.map(z=>{const j=z.element;w.add(j);const oe=j[Oo];if(oe&&oe.removedBeforeQueried)return new Ht.ZN(z.duration,z.delay);const Ne=j!==m,Ie=function Jf(t){const n=[];return Xf(t,n),n}((r.get(j)||Xo).map(kt=>kt.getRealPlayer())).filter(kt=>!!kt.element&&kt.element===j),Ye=o.get(j),Pt=l.get(j),Ut=fo(0,this._normalizer,0,z.keyframes,Ye,Pt),rn=this._buildPlayer(z,Ut,Ie);if(z.subTimeline&&a&&M.add(j),Ne){const kt=new us(n,u,j);kt.setRealPlayer(rn),_.push(kt)}return rn});_.forEach(z=>{ya(this.playersByQueriedElement,z.element,[]).push(z),z.onDone(()=>function hg(t,n,e){let r=t.get(n);if(r){if(r.length){const a=r.indexOf(e);r.splice(a,1)}0==r.length&&t.delete(n)}return r}(this.playersByQueriedElement,z.element,z))}),w.forEach(z=>xo(z,xa));const N=Da(O);return N.onDestroy(()=>{w.forEach(z=>Cc(z,xa)),no(m,e.toStyles)}),M.forEach(z=>{ya(a,z,[]).push(N)}),N}_buildPlayer(n,e,r){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,r):new Ht.ZN(n.duration,n.delay)}}class us{constructor(n,e,r){this.namespaceId=n,this.triggerName=e,this.element=r,this._player=new Ht.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,r)=>{e.forEach(a=>Ra(n,r,void 0,a))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){ya(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function $c(t){return t&&1===t.nodeType}function wc(t,n){const e=t.style.display;return t.style.display=n??"none",e}function lu(t,n,e,r,a){const o=[];e.forEach(m=>o.push(wc(m)));const l=[];r.forEach((m,_)=>{const w=new Map;m.forEach(M=>{const O=n.computeStyle(_,M,a);w.set(M,O),(!O||0==O.length)&&(_[Oo]=es,l.push(_))}),t.set(_,w)});let u=0;return e.forEach(m=>wc(m,o[u++])),l}function Qf(t,n){const e=new Map;if(t.forEach(u=>e.set(u,[])),0==n.length)return e;const r=1,a=new Set(n),o=new Map;function l(u){if(!u)return r;let m=o.get(u);if(m)return m;const _=u.parentNode;return m=e.has(_)?_:a.has(_)?r:l(_),o.set(u,m),m}return n.forEach(u=>{const m=l(u);m!==r&&e.get(m).push(u)}),e}function xo(t,n){t.classList?.add(n)}function Cc(t,n){t.classList?.remove(n)}function Kf(t,n,e){Da(e).onDone(()=>t.processLeaveNode(n))}function Xf(t,n){for(let e=0;e<t.length;e++){const r=t[e];r instanceof Ht.ZE?Xf(r.players,n):n.push(r)}}function ql(t,n,e){const r=e.get(t);if(!r)return!1;let a=n.get(t);return a?r.forEach(o=>a.add(o)):n.set(t,r),e.delete(t),!0}class Dc{constructor(n,e,r){this.bodyNode=n,this._driver=e,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(a,o)=>{},this._transitionEngine=new $f(n,e,r),this._timelineEngine=new ra(n,e,r),this._transitionEngine.onRemovalComplete=(a,o)=>this.onRemovalComplete(a,o)}registerTrigger(n,e,r,a,o){const l=n+"-"+a;let u=this._triggerCache[l];if(!u){const m=[],_=[],w=tr(this._driver,o,m,_);if(m.length)throw function eo(t,n){return new i.vHH(3404,!1)}();u=function Pi(t,n,e){return new Or(t,n,e)}(a,w,this._normalizer),this._triggerCache[l]=u}this._transitionEngine.registerTrigger(e,a,u)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,r,a){this._transitionEngine.insertNode(n,e,r,a)}onRemove(n,e,r,a){this._transitionEngine.removeNode(n,e,a||!1,r)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,r,a){if("@"==r.charAt(0)){const[o,l]=Rs(r);this._timelineEngine.command(o,e,l,a)}else this._transitionEngine.trigger(n,e,r,a)}listen(n,e,r,a,o){if("@"==r.charAt(0)){const[l,u]=Rs(r);return this._timelineEngine.listen(l,e,u,o)}return this._transitionEngine.listen(n,e,r,a,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let em=(()=>{class t{constructor(e,r,a){this._element=e,this._startStyles=r,this._endStyles=a,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&no(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(no(this._element,this._initialStyles),this._endStyles&&(no(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(sa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(sa(this._element,this._endStyles),this._endStyles=null),no(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Dl(t){let n=null;return t.forEach((e,r)=>{(function Mv(t){return"display"===t||"position"===t})(r)&&(n=n||new Map,n.set(r,e))}),n}class tm{constructor(n,e,r,a){this.element=n,this.keyframes=e,this.options=r,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(r=>{e.push(Object.fromEntries(r))}),e}_triggerWebAnimation(n,e,r){return n.animate(this._convertKeyframesToObject(e),r)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,a)=>{"offset"!==a&&n.set(a,this._finished?r:bn(this.element,a))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class xh{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return Ls(n,e)}getParentElement(n){return tl(n)}query(n,e,r){return So(n,e,r)}computeStyle(n,e,r){return window.getComputedStyle(n)[e]}animate(n,e,r,a,o,l=[]){const m={duration:r,delay:a,fill:0==a?"both":"forwards"};o&&(m.easing=o);const _=new Map,w=l.filter(N=>N instanceof tm);(function jt(t,n){return 0===t||0===n})(r,a)&&w.forEach(N=>{N.currentSnapshot.forEach((z,j)=>_.set(j,z))});let M=function al(t){return t.length?t[0]instanceof Map?t:t.map(n=>rl(n)):[]}(e).map(N=>Nr(N));M=function yn(t,n,e){if(e.size&&n.length){let r=n[0],a=[];if(e.forEach((o,l)=>{r.has(l)||a.push(l),r.set(l,o)}),a.length)for(let o=1;o<n.length;o++){let l=n[o];a.forEach(u=>l.set(u,bn(t,u)))}}return n}(n,M,_);const O=function yh(t,n){let e=null,r=null;return Array.isArray(n)&&n.length?(e=Dl(n[0]),n.length>1&&(r=Dl(n[n.length-1]))):n instanceof Map&&(e=Dl(n)),e||r?new em(t,e,r):null}(n,M);return new tm(n,M,m,O)}}let wh=(()=>{class t extends Ht._j{constructor(e,r){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(r.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(e){const r=this._nextAnimationId.toString();this._nextAnimationId++;const a=Array.isArray(e)?(0,Ht.vP)(e):e;return Tc(this._renderer,null,r,"register",[a]),new Ch(r,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(Hn.K0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Ch extends Ht.LC{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new wo(this._id,n,e||{},this._renderer)}}class wo{constructor(n,e,r,a){this.id=n,this.element=e,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return Tc(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Tc(t,n,e,r,a){return t.setProperty(n,`@@${e}:${r}`,a)}const qc="@.disabled";let Dh=(()=>{class t{constructor(e,r,a){this.delegate=e,this.engine=r,this._zone=a,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(o,l)=>{const u=l?.parentNode(o);u&&l.removeChild(u,o)}}createRenderer(e,r){const o=this.delegate.createRenderer(e,r);if(!(e&&r&&r.data&&r.data.animation)){let w=this._rendererCache.get(o);return w||(w=new Bs("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,w)),w}const l=r.id,u=r.id+"-"+this._currentId;this._currentId++,this.engine.register(u,e);const m=w=>{Array.isArray(w)?w.forEach(m):this.engine.registerTrigger(l,u,e,w.name,w)};return r.data.animation.forEach(m),new Ql(this,u,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,a){e>=0&&e<this._microtaskId?this._zone.run(()=>r(a)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[l,u]=o;l(u)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,a]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(Dc),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Bs{constructor(n,e,r,a){this.namespaceId=n,this.delegate=e,this.engine=r,this._onDestroy=a,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,r,a=!0){this.delegate.insertBefore(n,e,r),this.engine.onInsert(this.namespaceId,e,n,a)}removeChild(n,e,r){this.engine.onRemove(this.namespaceId,e,this.delegate,r)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,r,a){this.delegate.setAttribute(n,e,r,a)}removeAttribute(n,e,r){this.delegate.removeAttribute(n,e,r)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,r,a){this.delegate.setStyle(n,e,r,a)}removeStyle(n,e,r){this.delegate.removeStyle(n,e,r)}setProperty(n,e,r){"@"==e.charAt(0)&&e==qc?this.disableAnimations(n,!!r):this.delegate.setProperty(n,e,r)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,r){return this.delegate.listen(n,e,r)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class Ql extends Bs{constructor(n,e,r,a,o){super(e,r,a,o),this.factory=n,this.namespaceId=e}setProperty(n,e,r){"@"==e.charAt(0)?"."==e.charAt(1)&&e==qc?this.disableAnimations(n,r=void 0===r||!!r):this.engine.process(this.namespaceId,n,e.slice(1),r):this.delegate.setProperty(n,e,r)}listen(n,e,r){if("@"==e.charAt(0)){const a=function Av(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),l="";return"@"!=o.charAt(0)&&([o,l]=function Sv(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,a,o,l,u=>{this.factory.scheduleListenerCallback(u._data||-1,r,u)})}return this.delegate.listen(n,e,r)}}let jr=(()=>{class t extends Dc{constructor(e,r,a,o){super(e.body,r,a)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Hn.K0),i.LFG(ko),i.LFG(xd),i.LFG(i.z2F))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const Th=[{provide:Ht._j,useClass:wh},{provide:xd,useFactory:function fg(){return new Cd}},{provide:Dc,useClass:jr},{provide:i.FYo,useFactory:function mg(t,n,e){return new Dh(t,n,e)},deps:[d.se,Dc,i.R0b]}],nm=[{provide:ko,useFactory:()=>new xh},{provide:i.QbO,useValue:"BrowserAnimations"},...Th],pg=[{provide:ko,useClass:nl},{provide:i.QbO,useValue:"NoopAnimations"},...Th];let kv=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?pg:nm}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:nm,imports:[d.b2]}),t})();var oo=y(7084),Ui=y(4859),Pr=(y(2687),y(1281),y(5017),y(3238));let L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[Pr.BQ,Pr.si,Pr.BQ]}),t})();var H=y(3546),I=y(6709),X=y(5412),Se=y(3170),Xe=y(9549),Dt=y(7392),_n=y(4144),jn=y(6338),yi=y(3217),xi=y(8739),fr=y(1948),Rr=y(4385),hs=y(8785),Ro=y(455),Ma=y(6308),za=y(6257),fi=y(671),Co=y(3848),sm=y(1570),ca=y(3683),Td=y(782),Wa=y(7009),Tl=y(1572);function Ac(){}const E2=function(){let t=0;return function(){return t++}}();function cr(t){return null===t||typeof t>"u"}function Kr(t){if(Array.isArray&&Array.isArray(t))return!0;const n=Object.prototype.toString.call(t);return"[object"===n.slice(0,7)&&"Array]"===n.slice(-6)}function _r(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const Aa=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function cl(t,n){return Aa(t)?t:n}function Qi(t,n){return typeof t>"u"?n:t}const bg=(t,n)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*n:+t;function Br(t,n,e){if(t&&"function"==typeof t.call)return t.apply(e,n)}function Ar(t,n,e,r){let a,o,l;if(Kr(t))if(o=t.length,r)for(a=o-1;a>=0;a--)n.call(e,t[a],a);else for(a=0;a<o;a++)n.call(e,t[a],a);else if(_r(t))for(l=Object.keys(t),o=l.length,a=0;a<o;a++)n.call(e,t[l[a]],l[a])}function yg(t,n){let e,r,a,o;if(!t||!n||t.length!==n.length)return!1;for(e=0,r=t.length;e<r;++e)if(a=t[e],o=n[e],a.datasetIndex!==o.datasetIndex||a.index!==o.index)return!1;return!0}function Eh(t){if(Kr(t))return t.map(Eh);if(_r(t)){const n=Object.create(null),e=Object.keys(t),r=e.length;let a=0;for(;a<r;++a)n[e[a]]=Eh(t[e[a]]);return n}return t}function Mw(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Aw(t,n,e,r){if(!Mw(t))return;const a=n[t],o=e[t];_r(a)&&_r(o)?Jl(a,o,r):n[t]=Eh(o)}function Jl(t,n,e){const r=Kr(n)?n:[n],a=r.length;if(!_r(t))return t;const o=(e=e||{}).merger||Aw;for(let l=0;l<a;++l){if(!_r(n=r[l]))continue;const u=Object.keys(n);for(let m=0,_=u.length;m<_;++m)o(u[m],t,n,e)}return t}function Ed(t,n){return Jl(t,n,{merger:M2})}function M2(t,n,e){if(!Mw(t))return;const r=n[t],a=e[t];_r(r)&&_r(a)?Ed(r,a):Object.prototype.hasOwnProperty.call(n,t)||(n[t]=Eh(a))}const cm={"":t=>t,x:t=>t.x,y:t=>t.y};function Md(t,n){return(cm[n]||(cm[n]=function A2(t){const n=function S2(t){const n=t.split("."),e=[];let r="";for(const a of n)r+=a,r.endsWith("\\")?r=r.slice(0,-1)+".":(e.push(r),r="");return e}(t);return e=>{for(const r of n){if(""===r)break;e=e&&e[r]}return e}}(n)))(t)}function Ov(t){return t.charAt(0).toUpperCase()+t.slice(1)}const El=t=>typeof t<"u",Kc=t=>"function"==typeof t,xg=(t,n)=>{if(t.size!==n.size)return!1;for(const e of t)if(!n.has(e))return!1;return!0},ea=Math.PI,Fr=2*ea,Pv=Fr+ea,Us=Number.POSITIVE_INFINITY,Sw=ea/180,wa=ea/2,Mh=ea/4,Cg=2*ea/3,fs=Math.log10,Xl=Math.sign;function Rv(t){const n=Math.round(t);t=Ah(t,n,t/1e3)?n:t;const e=Math.pow(10,Math.floor(fs(t))),r=t/e;return(r<=1?1:r<=2?2:r<=5?5:10)*e}function Ad(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Ah(t,n,e){return Math.abs(t-n)<e}function ns(t,n,e){let r,a,o;for(r=0,a=t.length;r<a;r++)o=t[r][e],isNaN(o)||(n.min=Math.min(n.min,o),n.max=Math.max(n.max,o))}function Zs(t){return t*(ea/180)}function dm(t){return t*(180/ea)}function um(t){if(!Aa(t))return;let n=1,e=0;for(;Math.round(t*n)/n!==t;)n*=10,e++;return e}function Do(t,n){const e=n.x-t.x,r=n.y-t.y,a=Math.sqrt(e*e+r*r);let o=Math.atan2(r,e);return o<-.5*ea&&(o+=Fr),{angle:o,distance:a}}function Sd(t,n){return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))}function Fv(t,n){return(t-n+Pv)%Fr-ea}function ms(t){return(t%Fr+Fr)%Fr}function Sh(t,n,e,r){const a=ms(t),o=ms(n),l=ms(e),u=ms(o-a),m=ms(l-a),_=ms(a-o),w=ms(a-l);return a===o||a===l||r&&o===l||u>m&&_<w}function Ga(t,n,e){return Math.max(n,Math.min(e,t))}function ec(t,n,e,r=1e-6){return t>=Math.min(n,e)-r&&t<=Math.max(n,e)+r}function Dg(t,n,e){e=e||(l=>t[l]<n);let o,r=t.length-1,a=0;for(;r-a>1;)o=a+r>>1,e(o)?a=o:r=o;return{lo:a,hi:r}}const tc=(t,n,e,r)=>Dg(t,e,r?a=>t[a][n]<=e:a=>t[a][n]<e),Pw=(t,n,e)=>Dg(t,e,r=>t[r][n]>=e),hm=["push","pop","shift","splice","unshift"];function Lv(t,n){const e=t._chartjs;if(!e)return;const r=e.listeners,a=r.indexOf(n);-1!==a&&r.splice(a,1),!(r.length>0)&&(hm.forEach(o=>{delete t[o]}),delete t._chartjs)}function du(t){const n=new Set;let e,r;for(e=0,r=t.length;e<r;++e)n.add(t[e]);return n.size===r?t:Array.from(n)}const Nv=typeof window>"u"?function(t){return t()}:window.requestAnimationFrame;function fm(t,n,e){const r=e||(l=>Array.prototype.slice.call(l));let a=!1,o=[];return function(...l){o=r(l),a||(a=!0,Nv.call(window,()=>{a=!1,t.apply(n,o)}))}}const mm=t=>"start"===t?"left":"end"===t?"right":"center",Sa=(t,n,e)=>"start"===t?n:"end"===t?e:(n+e)/2;function Ag(t,n,e){const r=n.length;let a=0,o=r;if(t._sorted){const{iScale:l,_parsed:u}=t,m=l.axis,{min:_,max:w,minDefined:M,maxDefined:O}=l.getUserBounds();M&&(a=Ga(Math.min(tc(u,l.axis,_).lo,e?r:tc(n,m,l.getPixelForValue(_)).lo),0,r-1)),o=O?Ga(Math.max(tc(u,l.axis,w,!0).hi+1,e?0:tc(n,m,l.getPixelForValue(w),!0).hi+1),a,r)-a:r-a}return{start:a,count:o}}function Bv(t){const{xScale:n,yScale:e,_scaleRanges:r}=t,a={xmin:n.min,xmax:n.max,ymin:e.min,ymax:e.max};if(!r)return t._scaleRanges=a,!0;const o=r.xmin!==n.min||r.xmax!==n.max||r.ymin!==e.min||r.ymax!==e.max;return Object.assign(r,a),o}const uu=t=>0===t||1===t,Uv=(t,n,e)=>-Math.pow(2,10*(t-=1))*Math.sin((t-n)*Fr/e),Zv=(t,n,e)=>Math.pow(2,-10*t)*Math.sin((t-n)*Fr/e)+1,kh={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*wa),easeOutSine:t=>Math.sin(t*wa),easeInOutSine:t=>-.5*(Math.cos(ea*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>uu(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>uu(t)?t:Uv(t,.075,.3),easeOutElastic:t=>uu(t)?t:Zv(t,.075,.3),easeInOutElastic:t=>uu(t)?t:t<.5?.5*Uv(2*t,.1125,.45):.5+.5*Zv(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let n=1.70158;return(t/=.5)<1?t*t*((1+(n*=1.525))*t-n)*.5:.5*((t-=2)*t*((1+(n*=1.525))*t+n)+2)},easeInBounce:t=>1-kh.easeOutBounce(1-t),easeOutBounce:t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,easeInOutBounce:t=>t<.5?.5*kh.easeInBounce(2*t):.5*kh.easeOutBounce(2*t-1)+.5};function Ih(t){return t+.5|0}const Jc=(t,n,e)=>Math.max(Math.min(t,e),n);function Oh(t){return Jc(Ih(2.55*t),0,255)}function Sc(t){return Jc(Ih(255*t),0,255)}function Ml(t){return Jc(Ih(t/2.55)/100,0,1)}function Sg(t){return Jc(Ih(100*t),0,100)}const ps={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},kg=[..."0123456789ABCDEF"],Fw=t=>kg[15&t],Vv=t=>kg[(240&t)>>4]+kg[15&t],Ph=t=>(240&t)>>4==(15&t),I2=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Rh(t,n,e){const r=n*Math.min(e,1-e),a=(o,l=(o+t/30)%12)=>e-r*Math.max(Math.min(l-3,9-l,1),-1);return[a(0),a(8),a(4)]}function Nw(t,n,e){const r=(a,o=(a+t/60)%6)=>e-e*n*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function Yv(t,n,e){const r=Rh(t,1,.5);let a;for(n+e>1&&(a=1/(n+e),n*=a,e*=a),a=0;a<3;a++)r[a]*=1-n-e,r[a]+=n;return r}function pm(t){const e=t.r/255,r=t.g/255,a=t.b/255,o=Math.max(e,r,a),l=Math.min(e,r,a),u=(o+l)/2;let m,_,w;return o!==l&&(w=o-l,_=u>.5?w/(2-o-l):w/(o+l),m=function zv(t,n,e,r,a){return t===a?(n-e)/r+(n<e?6:0):n===a?(e-t)/r+2:(t-n)/r+4}(e,r,a,w,o),m=60*m+.5),[0|m,_||0,u]}function Fh(t,n,e,r){return(Array.isArray(n)?t(n[0],n[1],n[2]):t(n,e,r)).map(Sc)}function gm(t,n,e){return Fh(Rh,t,n,e)}function Ig(t){return(t%360+360)%360}const hu={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Wv={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let bm;const Uw=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,fu=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Xc=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function ym(t,n,e){if(t){let r=pm(t);r[n]=Math.max(0,Math.min(r[n]+r[n]*e,0===n?360:1)),r=gm(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Qv(t,n){return t&&Object.assign(n||{},t)}function Zw(t){var n={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(n={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(n.a=Sc(t[3]))):(n=Qv(t,{r:0,g:0,b:0,a:1})).a=Sc(n.a),n}function Vw(t){return"r"===t.charAt(0)?function $v(t){const n=Uw.exec(t);let r,a,o,e=255;if(n){if(n[7]!==r){const l=+n[7];e=n[8]?Oh(l):Jc(255*l,0,255)}return r=+n[1],a=+n[3],o=+n[5],r=255&(n[2]?Oh(r):Jc(r,0,255)),a=255&(n[4]?Oh(a):Jc(a,0,255)),o=255&(n[6]?Oh(o):Jc(o,0,255)),{r,g:a,b:o,a:e}}}(t):function Og(t){const n=I2.exec(t);let r,e=255;if(!n)return;n[5]!==r&&(e=n[6]?Oh(+n[5]):Sc(+n[5]));const a=Ig(+n[2]),o=+n[3]/100,l=+n[4]/100;return r="hwb"===n[1]?function _m(t,n,e){return Fh(Yv,t,n,e)}(a,o,l):"hsv"===n[1]?function vm(t,n,e){return Fh(Nw,t,n,e)}(a,o,l):gm(a,o,l),{r:r[0],g:r[1],b:r[2],a:e}}(t)}class pu{constructor(n){if(n instanceof pu)return n;const e=typeof n;let r;"object"===e?r=Zw(n):"string"===e&&(r=function Hv(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*ps[t[1]],g:255&17*ps[t[2]],b:255&17*ps[t[3]],a:5===n?17*ps[t[4]]:255}:(7===n||9===n)&&(e={r:ps[t[1]]<<4|ps[t[2]],g:ps[t[3]]<<4|ps[t[4]],b:ps[t[5]]<<4|ps[t[6]],a:9===n?ps[t[7]]<<4|ps[t[8]]:255})),e}(n)||function Bw(t){bm||(bm=function Gv(){const t={},n=Object.keys(Wv),e=Object.keys(hu);let r,a,o,l,u;for(r=0;r<n.length;r++){for(l=u=n[r],a=0;a<e.length;a++)o=e[a],u=u.replace(o,hu[o]);o=parseInt(Wv[l],16),t[u]=[o>>16&255,o>>8&255,255&o]}return t}(),bm.transparent=[0,0,0,0]);const n=bm[t.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:4===n.length?n[3]:255}}(n)||Vw(n)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var n=Qv(this._rgb);return n&&(n.a=Ml(n.a)),n}set rgb(n){this._rgb=Zw(n)}rgbString(){return this._valid?function qv(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ml(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?function Lw(t){var n=(t=>Ph(t.r)&&Ph(t.g)&&Ph(t.b)&&Ph(t.a))(t)?Fw:Vv;return t?"#"+n(t.r)+n(t.g)+n(t.b)+((t,n)=>t<255?n(t):"")(t.a,n):void 0}(this._rgb):void 0}hslString(){return this._valid?function Rg(t){if(!t)return;const n=pm(t),e=n[0],r=Sg(n[1]),a=Sg(n[2]);return t.a<255?`hsla(${e}, ${r}%, ${a}%, ${Ml(t.a)})`:`hsl(${e}, ${r}%, ${a}%)`}(this._rgb):void 0}mix(n,e){if(n){const r=this.rgb,a=n.rgb;let o;const l=e===o?.5:e,u=2*l-1,m=r.a-a.a,_=((u*m==-1?u:(u+m)/(1+u*m))+1)/2;o=1-_,r.r=255&_*r.r+o*a.r+.5,r.g=255&_*r.g+o*a.g+.5,r.b=255&_*r.b+o*a.b+.5,r.a=l*r.a+(1-l)*a.a,this.rgb=r}return this}interpolate(n,e){return n&&(this._rgb=function mu(t,n,e){const r=Xc(Ml(t.r)),a=Xc(Ml(t.g)),o=Xc(Ml(t.b));return{r:Sc(fu(r+e*(Xc(Ml(n.r))-r))),g:Sc(fu(a+e*(Xc(Ml(n.g))-a))),b:Sc(fu(o+e*(Xc(Ml(n.b))-o))),a:t.a+e*(n.a-t.a)}}(this._rgb,n._rgb,e)),this}clone(){return new pu(this.rgb)}alpha(n){return this._rgb.a=Sc(n),this}clearer(n){return this._rgb.a*=1-n,this}greyscale(){const n=this._rgb,e=Ih(.3*n.r+.59*n.g+.11*n.b);return n.r=n.g=n.b=e,this}opaquer(n){return this._rgb.a*=1+n,this}negate(){const n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return ym(this._rgb,2,n),this}darken(n){return ym(this._rgb,2,-n),this}saturate(n){return ym(this._rgb,1,n),this}desaturate(n){return ym(this._rgb,1,-n),this}rotate(n){return function Pg(t,n){var e=pm(t);e[0]=Ig(e[0]+n),e=gm(e),t.r=e[0],t.g=e[1],t.b=e[2]}(this._rgb,n),this}}function Kv(t){return new pu(t)}function Fg(t){if(t&&"object"==typeof t){const n=t.toString();return"[object CanvasPattern]"===n||"[object CanvasGradient]"===n}return!1}function Lh(t){return Fg(t)?t:Kv(t)}function Nh(t){return Fg(t)?t:Kv(t).saturate(.5).darken(.1).hexString()}const ed=Object.create(null),xm=Object.create(null);function gu(t,n){if(!n)return t;const e=n.split(".");for(let r=0,a=e.length;r<a;++r){const o=e[r];t=t[o]||(t[o]=Object.create(null))}return t}function kc(t,n,e){return"string"==typeof n?Jl(gu(t,n),e):Jl(gu(t,""),n)}var mr=new class Hw{constructor(n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,r)=>Nh(r.backgroundColor),this.hoverBorderColor=(e,r)=>Nh(r.borderColor),this.hoverColor=(e,r)=>Nh(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n)}set(n,e){return kc(this,n,e)}get(n){return gu(this,n)}describe(n,e){return kc(xm,n,e)}override(n,e){return kc(ed,n,e)}route(n,e,r,a){const o=gu(this,n),l=gu(this,r),u="_"+e;Object.defineProperties(o,{[u]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const m=this[u],_=l[a];return _r(m)?Object.assign({},_,m):Qi(m,_)},set(m){this[u]=m}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function wm(t,n,e,r,a){let o=n[a];return o||(o=n[a]=t.measureText(a).width,e.push(a)),o>r&&(r=o),r}function Yw(t,n,e,r){let a=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==n&&(a=r.data={},o=r.garbageCollect=[],r.font=n),t.save(),t.font=n;let l=0;const u=e.length;let m,_,w,M,O;for(m=0;m<u;m++)if(M=e[m],null!=M&&!0!==Kr(M))l=wm(t,a,o,l,M);else if(Kr(M))for(_=0,w=M.length;_<w;_++)O=M[_],null!=O&&!Kr(O)&&(l=wm(t,a,o,l,O));t.restore();const N=o.length/2;if(N>e.length){for(m=0;m<N;m++)delete a[o[m]];o.splice(0,N)}return l}function is(t,n,e){const r=t.currentDevicePixelRatio,a=0!==e?Math.max(e/2,.5):0;return Math.round((n-a)*r)/r+a}function Id(t,n){(n=n||t.getContext("2d")).save(),n.resetTransform(),n.clearRect(0,0,t.width,t.height),n.restore()}function Lg(t,n,e,r){Jv(t,n,e,r,null)}function Jv(t,n,e,r,a){let o,l,u,m,_,w;const M=n.pointStyle,O=n.rotation,N=n.radius;let z=(O||0)*Sw;if(M&&"object"==typeof M&&(o=M.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(e,r),t.rotate(z),t.drawImage(M,-M.width/2,-M.height/2,M.width,M.height),void t.restore();if(!(isNaN(N)||N<=0)){switch(t.beginPath(),M){default:a?t.ellipse(e,r,a/2,N,0,0,Fr):t.arc(e,r,N,0,Fr),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(z)*N,r-Math.cos(z)*N),z+=Cg,t.lineTo(e+Math.sin(z)*N,r-Math.cos(z)*N),z+=Cg,t.lineTo(e+Math.sin(z)*N,r-Math.cos(z)*N),t.closePath();break;case"rectRounded":_=.516*N,m=N-_,l=Math.cos(z+Mh)*m,u=Math.sin(z+Mh)*m,t.arc(e-l,r-u,_,z-ea,z-wa),t.arc(e+u,r-l,_,z-wa,z),t.arc(e+l,r+u,_,z,z+wa),t.arc(e-u,r+l,_,z+wa,z+ea),t.closePath();break;case"rect":if(!O){m=Math.SQRT1_2*N,w=a?a/2:m,t.rect(e-w,r-m,2*w,2*m);break}z+=Mh;case"rectRot":l=Math.cos(z)*N,u=Math.sin(z)*N,t.moveTo(e-l,r-u),t.lineTo(e+u,r-l),t.lineTo(e+l,r+u),t.lineTo(e-u,r+l),t.closePath();break;case"crossRot":z+=Mh;case"cross":l=Math.cos(z)*N,u=Math.sin(z)*N,t.moveTo(e-l,r-u),t.lineTo(e+l,r+u),t.moveTo(e+u,r-l),t.lineTo(e-u,r+l);break;case"star":l=Math.cos(z)*N,u=Math.sin(z)*N,t.moveTo(e-l,r-u),t.lineTo(e+l,r+u),t.moveTo(e+u,r-l),t.lineTo(e-u,r+l),z+=Mh,l=Math.cos(z)*N,u=Math.sin(z)*N,t.moveTo(e-l,r-u),t.lineTo(e+l,r+u),t.moveTo(e+u,r-l),t.lineTo(e-u,r+l);break;case"line":l=a?a/2:Math.cos(z)*N,u=Math.sin(z)*N,t.moveTo(e-l,r-u),t.lineTo(e+l,r+u);break;case"dash":t.moveTo(e,r),t.lineTo(e+Math.cos(z)*N,r+Math.sin(z)*N)}t.fill(),n.borderWidth>0&&t.stroke()}}function Bh(t,n,e){return e=e||.5,!n||t&&t.x>n.left-e&&t.x<n.right+e&&t.y>n.top-e&&t.y<n.bottom+e}function Cm(t,n){t.save(),t.beginPath(),t.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),t.clip()}function Dm(t){t.restore()}function zw(t,n,e,r,a){if(!n)return t.lineTo(e.x,e.y);if("middle"===a){const o=(n.x+e.x)/2;t.lineTo(o,n.y),t.lineTo(o,e.y)}else"after"===a!=!!r?t.lineTo(n.x,e.y):t.lineTo(e.x,n.y);t.lineTo(e.x,e.y)}function Xv(t,n,e,r){if(!n)return t.lineTo(e.x,e.y);t.bezierCurveTo(r?n.cp1x:n.cp2x,r?n.cp1y:n.cp2y,r?e.cp2x:e.cp1x,r?e.cp2y:e.cp1y,e.x,e.y)}function Od(t,n,e,r,a,o={}){const l=Kr(n)?n:[n],u=o.strokeWidth>0&&""!==o.strokeColor;let m,_;for(t.save(),t.font=a.string,function Ww(t,n){n.translation&&t.translate(n.translation[0],n.translation[1]),cr(n.rotation)||t.rotate(n.rotation),n.color&&(t.fillStyle=n.color),n.textAlign&&(t.textAlign=n.textAlign),n.textBaseline&&(t.textBaseline=n.textBaseline)}(t,o),m=0;m<l.length;++m)_=l[m],u&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),cr(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(_,e,r,o.maxWidth)),t.fillText(_,e,r,o.maxWidth),Gw(t,e,r,_,o),r+=a.lineHeight;t.restore()}function Gw(t,n,e,r,a){if(a.strikethrough||a.underline){const o=t.measureText(r),l=n-o.actualBoundingBoxLeft,u=n+o.actualBoundingBoxRight,_=e+o.actualBoundingBoxDescent,w=a.strikethrough?(e-o.actualBoundingBoxAscent+_)/2:_;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=a.decorationWidth||2,t.moveTo(l,w),t.lineTo(u,w),t.stroke()}}function Uh(t,n){const{x:e,y:r,w:a,h:o,radius:l}=n;t.arc(e+l.topLeft,r+l.topLeft,l.topLeft,-wa,ea,!0),t.lineTo(e,r+o-l.bottomLeft),t.arc(e+l.bottomLeft,r+o-l.bottomLeft,l.bottomLeft,ea,wa,!0),t.lineTo(e+a-l.bottomRight,r+o),t.arc(e+a-l.bottomRight,r+o-l.bottomRight,l.bottomRight,wa,0,!0),t.lineTo(e+a,r+l.topRight),t.arc(e+a-l.topRight,r+l.topRight,l.topRight,0,-wa,!0),t.lineTo(e+l.topLeft,r)}const Tm=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Ic=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function Zh(t,n){const e=(""+t).match(Tm);if(!e||"normal"===e[1])return 1.2*n;switch(t=+e[2],e[3]){case"px":return t;case"%":t/=100}return n*t}const eb=t=>+t||0;function Em(t,n){const e={},r=_r(n),a=r?Object.keys(n):n,o=_r(t)?r?l=>Qi(t[l],t[n[l]]):l=>t[l]:()=>t;for(const l of a)e[l]=eb(o(l));return e}function Ng(t){return Em(t,{top:"y",right:"x",bottom:"y",left:"x"})}function _u(t){return Em(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Fo(t){const n=Ng(t);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function $a(t,n){let e=Qi((t=t||{}).size,(n=n||mr.font).size);"string"==typeof e&&(e=parseInt(e,10));let r=Qi(t.style,n.style);r&&!(""+r).match(Ic)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const a={family:Qi(t.family,n.family),lineHeight:Zh(Qi(t.lineHeight,n.lineHeight),e),size:e,style:r,weight:Qi(t.weight,n.weight),string:""};return a.string=function jw(t){return!t||cr(t.size)||cr(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(a),a}function Yr(t,n,e,r){let o,l,u,a=!0;for(o=0,l=t.length;o<l;++o)if(u=t[o],void 0!==u&&(void 0!==n&&"function"==typeof u&&(u=u(n),a=!1),void 0!==e&&Kr(u)&&(u=u[e%u.length],a=!1),void 0!==u))return r&&!a&&(r.cacheable=!1),u}function Pd(t,n){return Object.assign(Object.create(t),n)}function tb(t,n=[""],e=t,r,a=(()=>t[0])){El(r)||(r=lb("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:e,_fallback:r,_getTarget:a,override:l=>tb([l,...t],n,e,r)};return new Proxy(o,{deleteProperty:(l,u)=>(delete l[u],delete l._keys,delete t[0][u],!0),get:(l,u)=>ib(l,u,()=>function sb(t,n,e,r){let a;for(const o of n)if(a=lb($w(o,t),e),El(a))return Ug(t,a)?Zg(e,r,t,a):a}(u,n,t,l)),getOwnPropertyDescriptor:(l,u)=>Reflect.getOwnPropertyDescriptor(l._scopes[0],u),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(l,u)=>cb(l).includes(u),ownKeys:l=>cb(l),set(l,u,m){const _=l._storage||(l._storage=a());return l[u]=_[u]=m,delete l._keys,!0}})}function Rd(t,n,e,r){const a={_cacheable:!1,_proxy:t,_context:n,_subProxy:e,_stack:new Set,_descriptors:nb(t,r),setContext:o=>Rd(t,o,e,r),override:o=>Rd(t.override(o),n,e,r)};return new Proxy(a,{deleteProperty:(o,l)=>(delete o[l],delete t[l],!0),get:(o,l,u)=>ib(o,l,()=>function rb(t,n,e){const{_proxy:r,_context:a,_subProxy:o,_descriptors:l}=t;let u=r[n];return Kc(u)&&l.isScriptable(n)&&(u=function Mm(t,n,e,r){const{_proxy:a,_context:o,_subProxy:l,_stack:u}=e;if(u.has(t))throw new Error("Recursion detected: "+Array.from(u).join("->")+"->"+t);return u.add(t),n=n(o,l||r),u.delete(t),Ug(t,n)&&(n=Zg(a._scopes,a,t,n)),n}(n,u,t,e)),Kr(u)&&u.length&&(u=function ab(t,n,e,r){const{_proxy:a,_context:o,_subProxy:l,_descriptors:u}=e;if(El(o.index)&&r(t))n=n[o.index%n.length];else if(_r(n[0])){const m=n,_=a._scopes.filter(w=>w!==m);n=[];for(const w of m){const M=Zg(_,a,t,w);n.push(Rd(M,o,l&&l[t],u))}}return n}(n,u,t,l.isIndexable)),Ug(n,u)&&(u=Rd(u,a,o&&o[n],l)),u}(o,l,u)),getOwnPropertyDescriptor:(o,l)=>o._descriptors.allKeys?Reflect.has(t,l)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,l),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(o,l)=>Reflect.has(t,l),ownKeys:()=>Reflect.ownKeys(t),set:(o,l,u)=>(t[l]=u,delete o[l],!0)})}function nb(t,n={scriptable:!0,indexable:!0}){const{_scriptable:e=n.scriptable,_indexable:r=n.indexable,_allKeys:a=n.allKeys}=t;return{allKeys:a,scriptable:e,indexable:r,isScriptable:Kc(e)?e:()=>e,isIndexable:Kc(r)?r:()=>r}}const $w=(t,n)=>t?t+Ov(n):n,Ug=(t,n)=>_r(n)&&"adapters"!==t&&(null===Object.getPrototypeOf(n)||n.constructor===Object);function ib(t,n,e){if(Object.prototype.hasOwnProperty.call(t,n))return t[n];const r=e();return t[n]=r,r}function Am(t,n,e){return Kc(t)?t(n,e):t}const qw=(t,n)=>!0===t?n:"string"==typeof t?Md(n,t):void 0;function ka(t,n,e,r,a){for(const o of n){const l=qw(e,o);if(l){t.add(l);const u=Am(l._fallback,e,a);if(El(u)&&u!==e&&u!==r)return u}else if(!1===l&&El(r)&&e!==r)return null}return!1}function Zg(t,n,e,r){const a=n._rootScopes,o=Am(n._fallback,e,r),l=[...t,...a],u=new Set;u.add(r);let m=ob(u,l,e,o||e,r);return!(null===m||El(o)&&o!==e&&(m=ob(u,l,o,m,r),null===m))&&tb(Array.from(u),[""],a,o,()=>function Vg(t,n,e){const r=t._getTarget();n in r||(r[n]={});const a=r[n];return Kr(a)&&_r(e)?e:a}(n,e,r))}function ob(t,n,e,r,a){for(;e;)e=ka(t,n,e,r,a);return e}function lb(t,n){for(const e of n){if(!e)continue;const r=e[t];if(El(r))return r}}function cb(t){let n=t._keys;return n||(n=t._keys=function Qw(t){const n=new Set;for(const e of t)for(const r of Object.keys(e).filter(a=>!a.startsWith("_")))n.add(r);return Array.from(n)}(t._scopes)),n}function db(t,n,e,r){const{iScale:a}=t,{key:o="r"}=this._parsing,l=new Array(r);let u,m,_,w;for(u=0,m=r;u<m;++u)_=u+e,w=n[_],l[u]={r:a.parse(Md(w,o),_)};return l}const ub=Number.EPSILON||1e-14,Vh=(t,n)=>n<t.length&&!t[n].skip&&t[n],Kw=t=>"x"===t?"y":"x";function Hh(t,n,e,r){const a=t.skip?n:t,o=n,l=e.skip?n:e,u=Sd(o,a),m=Sd(l,o);let _=u/(u+m),w=m/(u+m);_=isNaN(_)?0:_,w=isNaN(w)?0:w;const M=r*_,O=r*w;return{previous:{x:o.x-M*(l.x-a.x),y:o.y-M*(l.y-a.y)},next:{x:o.x+O*(l.x-a.x),y:o.y+O*(l.y-a.y)}}}function jh(t,n,e){return Math.max(Math.min(t,e),n)}function Xw(t,n,e,r,a){let o,l,u,m;if(n.spanGaps&&(t=t.filter(_=>!_.skip)),"monotone"===n.cubicInterpolationMode)!function fb(t,n="x"){const e=Kw(n),r=t.length,a=Array(r).fill(0),o=Array(r);let l,u,m,_=Vh(t,0);for(l=0;l<r;++l)if(u=m,m=_,_=Vh(t,l+1),m){if(_){const w=_[n]-m[n];a[l]=0!==w?(_[e]-m[e])/w:0}o[l]=u?_?Xl(a[l-1])!==Xl(a[l])?0:(a[l-1]+a[l])/2:a[l-1]:a[l]}(function Hg(t,n,e){const r=t.length;let a,o,l,u,m,_=Vh(t,0);for(let w=0;w<r-1;++w)if(m=_,_=Vh(t,w+1),m&&_){if(Ah(n[w],0,ub)){e[w]=e[w+1]=0;continue}a=e[w]/n[w],o=e[w+1]/n[w],u=Math.pow(a,2)+Math.pow(o,2),!(u<=9)&&(l=3/Math.sqrt(u),e[w]=a*l*n[w],e[w+1]=o*l*n[w])}})(t,a,o),function hb(t,n,e="x"){const r=Kw(e),a=t.length;let o,l,u,m=Vh(t,0);for(let _=0;_<a;++_){if(l=u,u=m,m=Vh(t,_+1),!u)continue;const w=u[e],M=u[r];l&&(o=(w-l[e])/3,u[`cp1${e}`]=w-o,u[`cp1${r}`]=M-o*n[_]),m&&(o=(m[e]-w)/3,u[`cp2${e}`]=w+o,u[`cp2${r}`]=M+o*n[_])}}(t,o,n)}(t,a);else{let _=r?t[t.length-1]:t[0];for(o=0,l=t.length;o<l;++o)u=t[o],m=Hh(_,u,t[Math.min(o+1,l-(r?0:1))%l],n.tension),u.cp1x=m.previous.x,u.cp1y=m.previous.y,u.cp2x=m.next.x,u.cp2y=m.next.y,_=u}n.capBezierPoints&&function Jw(t,n){let e,r,a,o,l,u=Bh(t[0],n);for(e=0,r=t.length;e<r;++e)l=o,o=u,u=e<r-1&&Bh(t[e+1],n),o&&(a=t[e],l&&(a.cp1x=jh(a.cp1x,n.left,n.right),a.cp1y=jh(a.cp1y,n.top,n.bottom)),u&&(a.cp2x=jh(a.cp2x,n.left,n.right),a.cp2y=jh(a.cp2y,n.top,n.bottom)))}(t,e)}function jg(){return typeof window<"u"&&typeof document<"u"}function Sm(t){let n=t.parentNode;return n&&"[object ShadowRoot]"===n.toString()&&(n=n.host),n}function vu(t,n,e){let r;return"string"==typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*n.parentNode[e])):r=t,r}const Yg=t=>window.getComputedStyle(t,null),eC=["top","right","bottom","left"];function Oc(t,n,e){const r={};e=e?"-"+e:"";for(let a=0;a<4;a++){const o=eC[a];r[o]=parseFloat(t[n+"-"+o+e])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const mb=(t,n,e)=>(t>0||n>0)&&(!e||!e.shadowRoot);function Vs(t,n){if("native"in t)return t;const{canvas:e,currentDevicePixelRatio:r}=n,a=Yg(e),o="border-box"===a.boxSizing,l=Oc(a,"padding"),u=Oc(a,"border","width"),{x:m,y:_,box:w}=function pb(t,n){const e=t.touches,r=e&&e.length?e[0]:t,{offsetX:a,offsetY:o}=r;let u,m,l=!1;if(mb(a,o,t.target))u=a,m=o;else{const _=n.getBoundingClientRect();u=r.clientX-_.left,m=r.clientY-_.top,l=!0}return{x:u,y:m,box:l}}(t,e),M=l.left+(w&&u.left),O=l.top+(w&&u.top);let{width:N,height:z}=n;return o&&(N-=l.width+u.width,z-=l.height+u.height),{x:Math.round((m-M)/N*e.width/r),y:Math.round((_-O)/z*e.height/r)}}const Yh=t=>Math.round(10*t)/10;function gb(t,n,e){const r=n||1,a=Math.floor(t.height*r),o=Math.floor(t.width*r);t.height=a/r,t.width=o/r;const l=t.canvas;return l.style&&(e||!l.style.height&&!l.style.width)&&(l.style.height=`${t.height}px`,l.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||l.height!==a||l.width!==o)&&(t.currentDevicePixelRatio=r,l.height=a,l.width=o,t.ctx.setTransform(r,0,0,r,0,0),!0)}const Wg=function(){let t=!1;try{const n={get passive(){return t=!0,!1}};window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch{}return t}();function zh(t,n){const e=function zg(t,n){return Yg(t).getPropertyValue(n)}(t,n),r=e&&e.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Hs(t,n,e,r){return{x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)}}function _b(t,n,e,r){return{x:t.x+e*(n.x-t.x),y:"middle"===r?e<.5?t.y:n.y:"after"===r?e<1?t.y:n.y:e>0?n.y:t.y}}function Gg(t,n,e,r){const a={x:t.cp2x,y:t.cp2y},o={x:n.cp1x,y:n.cp1y},l=Hs(t,a,e),u=Hs(a,o,e),m=Hs(o,n,e),_=Hs(l,u,e),w=Hs(u,m,e);return Hs(_,w,e)}const vb=new Map;function bu(t,n,e){return function nC(t,n){n=n||{};const e=t+JSON.stringify(n);let r=vb.get(e);return r||(r=new Intl.NumberFormat(t,n),vb.set(e,r)),r}(n,e).format(t)}const yu=function(t,n){return{x:e=>t+t+n-e,setWidth(e){n=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,r)=>e-r,leftForLtr:(e,r)=>e-r}},iC=function(){return{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,n)=>t+n,leftForLtr:(t,n)=>t}};function xu(t,n,e){return t?yu(n,e):iC()}function bb(t,n){let e,r;("ltr"===n||"rtl"===n)&&(e=t.canvas.style,r=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",n,"important"),t.prevTextDirection=r)}function Im(t,n){void 0!==n&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",n[0],n[1]))}function yb(t){return"angle"===t?{between:Sh,compare:Fv,normalize:ms}:{between:ec,compare:(n,e)=>n-e,normalize:n=>n}}function $g({start:t,end:n,count:e,loop:r,style:a}){return{start:t%e,end:n%e,loop:r&&(n-t+1)%e==0,style:a}}function qg(t,n,e){if(!e)return[t];const{property:r,start:a,end:o}=e,l=n.length,{compare:u,between:m,normalize:_}=yb(r),{start:w,end:M,loop:O,style:N}=function rC(t,n,e){const{property:r,start:a,end:o}=e,{between:l,normalize:u}=yb(r),m=n.length;let O,N,{start:_,end:w,loop:M}=t;if(M){for(_+=m,w+=m,O=0,N=m;O<N&&l(u(n[_%m][r]),a,o);++O)_--,w--;_%=m,w%=m}return w<_&&(w+=m),{start:_,end:w,loop:M,style:t.style}}(t,n,e),z=[];let Ne,Ie,Ye,j=!1,oe=null;for(let en=w,tn=w;en<=M;++en)Ie=n[en%l],!Ie.skip&&(Ne=_(Ie[r]),Ne!==Ye&&(j=m(Ne,a,o),null===oe&&(j||m(a,Ye,Ne)&&0!==u(a,Ye))&&(oe=0===u(Ne,a)?en:tn),null!==oe&&(!j||0===u(o,Ne)||m(o,Ye,Ne))&&(z.push($g({start:oe,end:en,loop:O,count:l,style:N})),oe=null),tn=en,Ye=Ne));return null!==oe&&z.push($g({start:oe,end:M,loop:O,count:l,style:N})),z}function aC(t,n){const e=[],r=t.segments;for(let a=0;a<r.length;a++){const o=qg(r[a],t.points,n);o.length&&e.push(...o)}return e}function xb(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function wb(t,n){return n&&JSON.stringify(t)!==JSON.stringify(n)}var Pc=new class lC{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(n,e,r,a){const l=e.duration;e.listeners[a].forEach(u=>u({chart:n,initial:e.initial,numSteps:l,currentStep:Math.min(r-e.start,l)}))}_refresh(){this._request||(this._running=!0,this._request=Nv.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let e=0;this._charts.forEach((r,a)=>{if(!r.running||!r.items.length)return;const o=r.items;let m,l=o.length-1,u=!1;for(;l>=0;--l)m=o[l],m._active?(m._total>r.duration&&(r.duration=m._total),m.tick(n),u=!0):(o[l]=o[o.length-1],o.pop());u&&(a.draw(),this._notify(a,r,n,"progress")),o.length||(r.running=!1,this._notify(a,r,n,"complete"),r.initial=!1),e+=o.length}),this._lastDate=n,0===e&&(this._running=!1)}_getAnims(n){const e=this._charts;let r=e.get(n);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(n,r)),r}listen(n,e,r){this._getAnims(n).listeners[e].push(r)}add(n,e){!e||!e.length||this._getAnims(n).items.push(...e)}has(n){return this._getAnims(n).items.length>0}start(n){const e=this._charts.get(n);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((r,a)=>Math.max(r,a._duration),0),this._refresh())}running(n){if(!this._running)return!1;const e=this._charts.get(n);return!(!e||!e.running||!e.items.length)}stop(n){const e=this._charts.get(n);if(!e||!e.items.length)return;const r=e.items;let a=r.length-1;for(;a>=0;--a)r[a].cancel();e.items=[],this._notify(n,e,Date.now(),"complete")}remove(n){return this._charts.delete(n)}};const Cb="transparent",Db={boolean:(t,n,e)=>e>.5?n:t,color(t,n,e){const r=Lh(t||Cb),a=r.valid&&Lh(n||Cb);return a&&a.valid?a.mix(r,e).hexString():n},number:(t,n,e)=>t+(n-t)*e};class cC{constructor(n,e,r,a){const o=e[r];a=Yr([n.to,a,o,n.from]);const l=Yr([n.from,o,a]);this._active=!0,this._fn=n.fn||Db[n.type||typeof l],this._easing=kh[n.easing]||kh.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=e,this._prop=r,this._from=l,this._to=a,this._promises=void 0}active(){return this._active}update(n,e,r){if(this._active){this._notify(!1);const a=this._target[this._prop],o=r-this._start,l=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(l,n.duration)),this._total+=o,this._loop=!!n.loop,this._to=Yr([n.to,e,a,n.from]),this._from=Yr([n.from,a,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){const e=n-this._start,r=this._duration,a=this._prop,o=this._from,l=this._loop,u=this._to;let m;if(this._active=o!==u&&(l||e<r),!this._active)return this._target[a]=u,void this._notify(!0);e<0?this._target[a]=o:(m=e/r%2,m=l&&m>1?2-m:m,m=this._easing(Math.min(1,Math.max(0,m))),this._target[a]=this._fn(o,u,m))}wait(){const n=this._promises||(this._promises=[]);return new Promise((e,r)=>{n.push({res:e,rej:r})})}_notify(n){const e=n?"res":"rej",r=this._promises||[];for(let a=0;a<r.length;a++)r[a][e]()}}mr.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const dC=Object.keys(mr.animation);mr.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),mr.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),mr.describe("animations",{_fallback:"animation"}),mr.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class Om{constructor(n,e){this._chart=n,this._properties=new Map,this.configure(e)}configure(n){if(!_r(n))return;const e=this._properties;Object.getOwnPropertyNames(n).forEach(r=>{const a=n[r];if(!_r(a))return;const o={};for(const l of dC)o[l]=a[l];(Kr(a.properties)&&a.properties||[r]).forEach(l=>{(l===r||!e.has(l))&&e.set(l,o)})})}_animateOptions(n,e){const r=e.options,a=function uC(t,n){if(!n)return;let e=t.options;if(e)return e.$shared&&(t.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e;t.options=n}(n,r);if(!a)return[];const o=this._createAnimations(a,r);return r.$shared&&function $h(t,n){const e=[],r=Object.keys(n);for(let a=0;a<r.length;a++){const o=t[r[a]];o&&o.active()&&e.push(o.wait())}return Promise.all(e)}(n.options.$animations,r).then(()=>{n.options=r},()=>{}),o}_createAnimations(n,e){const r=this._properties,a=[],o=n.$animations||(n.$animations={}),l=Object.keys(e),u=Date.now();let m;for(m=l.length-1;m>=0;--m){const _=l[m];if("$"===_.charAt(0))continue;if("options"===_){a.push(...this._animateOptions(n,e));continue}const w=e[_];let M=o[_];const O=r.get(_);if(M){if(O&&M.active()){M.update(O,w,u);continue}M.cancel()}O&&O.duration?(o[_]=M=new cC(O,n,_,w),a.push(M)):n[_]=w}return a}update(n,e){if(0===this._properties.size)return void Object.assign(n,e);const r=this._createAnimations(n,e);return r.length?(Pc.add(this._chart,r),!0):void 0}}function Tb(t,n){const e=t&&t.options||{},r=e.reverse,a=void 0===e.min?n:0,o=void 0===e.max?n:0;return{start:r?o:a,end:r?a:o}}function Eb(t,n){const e=[],r=t._getSortedDatasetMetas(n);let a,o;for(a=0,o=r.length;a<o;++a)e.push(r[a].index);return e}function Mb(t,n,e,r={}){const a=t.keys,o="single"===r.mode;let l,u,m,_;if(null!==n){for(l=0,u=a.length;l<u;++l){if(m=+a[l],m===e){if(r.all)continue;break}_=t.values[m],Aa(_)&&(o||0===n||Xl(n)===Xl(_))&&(n+=_)}return n}}function Ld(t,n){const e=t&&t.options.stacked;return e||void 0===e&&void 0!==n.stack}function gC(t,n,e){const r=t[n]||(t[n]={});return r[e]||(r[e]={})}function _C(t,n,e,r){for(const a of n.getMatchingVisibleMetas(r).reverse()){const o=t[a.index];if(e&&o>0||!e&&o<0)return a.index}return null}function vC(t,n){const{chart:e,_cachedMeta:r}=t,a=e._stacks||(e._stacks={}),{iScale:o,vScale:l,index:u}=r,m=o.axis,_=l.axis,w=function Rc(t,n,e){return`${t.id}.${n.id}.${e.stack||e.type}`}(o,l,r),M=n.length;let O;for(let N=0;N<M;++N){const z=n[N],{[m]:j,[_]:oe}=z;O=(z._stacks||(z._stacks={}))[_]=gC(a,w,j),O[u]=oe,O._top=_C(O,l,!0,r.type),O._bottom=_C(O,l,!1,r.type)}}function Pm(t,n){const e=t.scales;return Object.keys(e).filter(r=>e[r].axis===n).shift()}function wu(t,n){const e=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){n=n||t._parsed;for(const a of n){const o=a._stacks;if(!o||void 0===o[r]||void 0===o[r][e])return;delete o[r][e]}}}const Jg=t=>"reset"===t||"none"===t,Xg=(t,n)=>n?t:Object.assign({},t);let nc=(()=>{class t{constructor(e,r){this.chart=e,this._ctx=e.ctx,this.index=r,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Ld(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&wu(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,r=this._cachedMeta,a=this.getDataset(),o=(O,N,z,j)=>"x"===O?N:"r"===O?j:z,l=r.xAxisID=Qi(a.xAxisID,Pm(e,"x")),u=r.yAxisID=Qi(a.yAxisID,Pm(e,"y")),m=r.rAxisID=Qi(a.rAxisID,Pm(e,"r")),_=r.indexAxis,w=r.iAxisID=o(_,l,u,m),M=r.vAxisID=o(_,u,l,m);r.xScale=this.getScaleForId(l),r.yScale=this.getScaleForId(u),r.rScale=this.getScaleForId(m),r.iScale=this.getScaleForId(w),r.vScale=this.getScaleForId(M)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const r=this._cachedMeta;return e===r.iScale?r.vScale:r.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Lv(this._data,this),e._stacked&&wu(e)}_dataCheck(){const e=this.getDataset(),r=e.data||(e.data=[]),a=this._data;if(_r(r))this._data=function mC(t){const n=Object.keys(t),e=new Array(n.length);let r,a,o;for(r=0,a=n.length;r<a;++r)o=n[r],e[r]={x:o,y:t[o]};return e}(r);else if(a!==r){if(a){Lv(a,this);const o=this._cachedMeta;wu(o),o._parsed=[]}r&&Object.isExtensible(r)&&function Tg(t,n){t._chartjs?t._chartjs.listeners.push(n):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[n]}}),hm.forEach(e=>{const r="_onData"+Ov(e),a=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...o){const l=a.apply(this,o);return t._chartjs.listeners.forEach(u=>{"function"==typeof u[r]&&u[r](...o)}),l}})}))}(r,this),this._syncList=[],this._data=r}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const r=this._cachedMeta,a=this.getDataset();let o=!1;this._dataCheck();const l=r._stacked;r._stacked=Ld(r.vScale,r),r.stack!==a.stack&&(o=!0,wu(r),r.stack=a.stack),this._resyncElements(e),(o||l!==r._stacked)&&vC(this,r._parsed)}configure(){const e=this.chart.config,r=e.datasetScopeKeys(this._type),a=e.getOptionScopes(this.getDataset(),r,!0);this.options=e.createResolver(a,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,r){const{_cachedMeta:a,_data:o}=this,{iScale:l,_stacked:u}=a,m=l.axis;let M,O,N,_=0===e&&r===o.length||a._sorted,w=e>0&&a._parsed[e-1];if(!1===this._parsing)a._parsed=o,a._sorted=!0,N=o;else{N=Kr(o[e])?this.parseArrayData(a,o,e,r):_r(o[e])?this.parseObjectData(a,o,e,r):this.parsePrimitiveData(a,o,e,r);const z=()=>null===O[m]||w&&O[m]<w[m];for(M=0;M<r;++M)a._parsed[M+e]=O=N[M],_&&(z()&&(_=!1),w=O);a._sorted=_}u&&vC(this,N)}parsePrimitiveData(e,r,a,o){const{iScale:l,vScale:u}=e,m=l.axis,_=u.axis,w=l.getLabels(),M=l===u,O=new Array(o);let N,z,j;for(N=0,z=o;N<z;++N)j=N+a,O[N]={[m]:M||l.parse(w[j],j),[_]:u.parse(r[j],j)};return O}parseArrayData(e,r,a,o){const{xScale:l,yScale:u}=e,m=new Array(o);let _,w,M,O;for(_=0,w=o;_<w;++_)M=_+a,O=r[M],m[_]={x:l.parse(O[0],M),y:u.parse(O[1],M)};return m}parseObjectData(e,r,a,o){const{xScale:l,yScale:u}=e,{xAxisKey:m="x",yAxisKey:_="y"}=this._parsing,w=new Array(o);let M,O,N,z;for(M=0,O=o;M<O;++M)N=M+a,z=r[N],w[M]={x:l.parse(Md(z,m),N),y:u.parse(Md(z,_),N)};return w}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,r,a){const l=this._cachedMeta,u=r[e.axis];return Mb({keys:Eb(this.chart,!0),values:r._stacks[e.axis]},u,l.index,{mode:a})}updateRangeFromParsed(e,r,a,o){const l=a[r.axis];let u=null===l?NaN:l;const m=o&&a._stacks[r.axis];o&&m&&(o.values=m,u=Mb(o,l,this._cachedMeta.index)),e.min=Math.min(e.min,u),e.max=Math.max(e.max,u)}getMinMax(e,r){const a=this._cachedMeta,o=a._parsed,l=a._sorted&&e===a.iScale,u=o.length,m=this._getOtherScale(e),_=((t,n,e)=>t&&!n.hidden&&n._stacked&&{keys:Eb(this.chart,!0),values:null})(r,a),w={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:M,max:O}=function pC(t){const{min:n,max:e,minDefined:r,maxDefined:a}=t.getUserBounds();return{min:r?n:Number.NEGATIVE_INFINITY,max:a?e:Number.POSITIVE_INFINITY}}(m);let N,z;function j(){z=o[N];const oe=z[m.axis];return!Aa(z[e.axis])||M>oe||O<oe}for(N=0;N<u&&(j()||(this.updateRangeFromParsed(w,e,z,_),!l));++N);if(l)for(N=u-1;N>=0;--N)if(!j()){this.updateRangeFromParsed(w,e,z,_);break}return w}getAllParsedValues(e){const r=this._cachedMeta._parsed,a=[];let o,l,u;for(o=0,l=r.length;o<l;++o)u=r[o][e.axis],Aa(u)&&a.push(u);return a}getMaxOverflow(){return!1}getLabelAndValue(e){const r=this._cachedMeta,a=r.iScale,o=r.vScale,l=this.getParsed(e);return{label:a?""+a.getLabelForValue(l[a.axis]):"",value:o?""+o.getLabelForValue(l[o.axis]):""}}_update(e){const r=this._cachedMeta;this.update(e||"default"),r._clip=function fC(t){let n,e,r,a;return _r(t)?(n=t.top,e=t.right,r=t.bottom,a=t.left):n=e=r=a=t,{top:n,right:e,bottom:r,left:a,disabled:!1===t}}(Qi(this.options.clip,function hC(t,n,e){if(!1===e)return!1;const r=Tb(t,e),a=Tb(n,e);return{top:a.end,right:r.end,bottom:a.start,left:r.start}}(r.xScale,r.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,a=this._cachedMeta,o=a.data||[],l=this.chart.chartArea,u=[],m=this._drawStart||0,_=this._drawCount||o.length-m,w=this.options.drawActiveElementsOnTop;let M;for(a.dataset&&a.dataset.draw(e,l,m,_),M=m;M<m+_;++M){const O=o[M];O.hidden||(O.active&&w?u.push(O):O.draw(e,l))}for(M=0;M<u.length;++M)u[M].draw(e,l)}getStyle(e,r){const a=r?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(a):this.resolveDataElementOptions(e||0,a)}getContext(e,r,a){const o=this.getDataset();let l;if(e>=0&&e<this._cachedMeta.data.length){const u=this._cachedMeta.data[e];l=u.$context||(u.$context=function Ab(t,n,e){return Pd(t,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:e,index:n,mode:"default",type:"data"})}(this.getContext(),e,u)),l.parsed=this.getParsed(e),l.raw=o.data[e],l.index=l.dataIndex=e}else l=this.$context||(this.$context=function O2(t,n){return Pd(t,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),l.dataset=o,l.index=l.datasetIndex=this.index;return l.active=!!r,l.mode=a,l}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,r){return this._resolveElementOptions(this.dataElementType.id,r,e)}_resolveElementOptions(e,r="default",a){const o="active"===r,l=this._cachedDataOpts,u=e+"-"+r,m=l[u],_=this.enableOptionSharing&&El(a);if(m)return Xg(m,_);const w=this.chart.config,M=w.datasetElementScopeKeys(this._type,e),O=o?[`${e}Hover`,"hover",e,""]:[e,""],N=w.getOptionScopes(this.getDataset(),M),z=Object.keys(mr.elements[e]),oe=w.resolveNamedOptions(N,z,()=>this.getContext(a,o),O);return oe.$shared&&(oe.$shared=_,l[u]=Object.freeze(Xg(oe,_))),oe}_resolveAnimations(e,r,a){const o=this.chart,l=this._cachedDataOpts,u=`animation-${r}`,m=l[u];if(m)return m;let _;if(!1!==o.options.animation){const M=this.chart.config,O=M.datasetAnimationScopeKeys(this._type,r),N=M.getOptionScopes(this.getDataset(),O);_=M.createResolver(N,this.getContext(e,a,r))}const w=new Om(o,_&&_.animations);return _&&_._cacheable&&(l[u]=Object.freeze(w)),w}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,r){return!r||Jg(e)||this.chart._animationsDisabled}_getSharedOptions(e,r){const a=this.resolveDataElementOptions(e,r),o=this._sharedOptions,l=this.getSharedOptions(a),u=this.includeOptions(r,l)||l!==o;return this.updateSharedOptions(l,r,a),{sharedOptions:l,includeOptions:u}}updateElement(e,r,a,o){Jg(o)?Object.assign(e,a):this._resolveAnimations(r,o).update(e,a)}updateSharedOptions(e,r,a){e&&!Jg(r)&&this._resolveAnimations(void 0,r).update(e,a)}_setStyle(e,r,a,o){e.active=o;const l=this.getStyle(r,o);this._resolveAnimations(r,a,o).update(e,{options:!o&&this.getSharedOptions(l)||l})}removeHoverStyle(e,r,a){this._setStyle(e,a,"active",!1)}setHoverStyle(e,r,a){this._setStyle(e,a,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const r=this._data,a=this._cachedMeta.data;for(const[m,_,w]of this._syncList)this[m](_,w);this._syncList=[];const o=a.length,l=r.length,u=Math.min(l,o);u&&this.parse(0,u),l>o?this._insertElements(o,l-o,e):l<o&&this._removeElements(l,o-l)}_insertElements(e,r,a=!0){const o=this._cachedMeta,l=o.data,u=e+r;let m;const _=w=>{for(w.length+=r,m=w.length-1;m>=u;m--)w[m]=w[m-r]};for(_(l),m=e;m<u;++m)l[m]=new this.dataElementType;this._parsing&&_(o._parsed),this.parse(e,r),a&&this.updateElements(l,e,r,"reset")}updateElements(e,r,a,o){}_removeElements(e,r){const a=this._cachedMeta;if(this._parsing){const o=a._parsed.splice(e,r);a._stacked&&wu(a,o)}a.data.splice(e,r)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[r,a,o]=e;this[r](a,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,r){r&&this._sync(["_removeElements",e,r]);const a=arguments.length-2;a&&this._sync(["_insertElements",e,a])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}return t.defaults={},t})();function yC(t){const n=t.iScale,e=function Al(t,n){if(!t._cache.$bar){const e=t.getMatchingVisibleMetas(n);let r=[];for(let a=0,o=e.length;a<o;a++)r=r.concat(e[a].controller.getAllParsedValues(t));t._cache.$bar=du(r.sort((a,o)=>a-o))}return t._cache.$bar}(n,t.type);let a,o,l,u,r=n._length;const m=()=>{32767===l||-32768===l||(El(u)&&(r=Math.min(r,Math.abs(l-u)||r)),u=l)};for(a=0,o=e.length;a<o;++a)l=n.getPixelForValue(e[a]),m();for(u=void 0,a=0,o=n.ticks.length;a<o;++a)l=n.getPixelForTick(a),m();return r}function kb(t,n,e,r){return Kr(t)?function wC(t,n,e,r){const a=e.parse(t[0],r),o=e.parse(t[1],r),l=Math.min(a,o),u=Math.max(a,o);let m=l,_=u;Math.abs(l)>Math.abs(u)&&(m=u,_=l),n[e.axis]=_,n._custom={barStart:m,barEnd:_,start:a,end:o,min:l,max:u}}(t,n,e,r):n[e.axis]=e.parse(t,r),n}function Ib(t,n,e,r){const a=t.iScale,o=t.vScale,l=a.getLabels(),u=a===o,m=[];let _,w,M,O;for(_=e,w=e+r;_<w;++_)O=n[_],M={},M[a.axis]=u||a.parse(l[_],_),m.push(kb(O,M,o,_));return m}function Rm(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function TC(t,n,e,r){let a=n.borderSkipped;const o={};if(!a)return void(t.borderSkipped=o);if(!0===a)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:l,end:u,reverse:m,top:_,bottom:w}=function DC(t){let n,e,r,a,o;return t.horizontal?(n=t.base>t.x,e="left",r="right"):(n=t.base<t.y,e="bottom",r="top"),n?(a="end",o="start"):(a="start",o="end"),{start:e,end:r,reverse:n,top:a,bottom:o}}(t);"middle"===a&&e&&(t.enableBorderRadius=!0,(e._top||0)===r?a=_:(e._bottom||0)===r?a=w:(o[Gi(w,l,u,m)]=!0,a=_)),o[Gi(a,l,u,m)]=!0,t.borderSkipped=o}function Gi(t,n,e,r){return r?(t=function Ob(t,n,e){return t===n?e:t===e?n:t}(t,n,e),t=e_(t,e,n)):t=e_(t,n,e),t}function e_(t,n,e){return"start"===t?n:"end"===t?e:t}function Pb(t,{inflateAmount:n},e){t.inflateAmount="auto"===n?1===e?.33:0:n}nc.prototype.datasetElementType=null,nc.prototype.dataElementType=null;let EC=(()=>{class t extends nc{parsePrimitiveData(e,r,a,o){return Ib(e,r,a,o)}parseArrayData(e,r,a,o){return Ib(e,r,a,o)}parseObjectData(e,r,a,o){const{iScale:l,vScale:u}=e,{xAxisKey:m="x",yAxisKey:_="y"}=this._parsing,w="x"===l.axis?m:_,M="x"===u.axis?m:_,O=[];let N,z,j,oe;for(N=a,z=a+o;N<z;++N)oe=r[N],j={},j[l.axis]=l.parse(Md(oe,w),N),O.push(kb(Md(oe,M),j,u,N));return O}updateRangeFromParsed(e,r,a,o){super.updateRangeFromParsed(e,r,a,o);const l=a._custom;l&&r===this._cachedMeta.vScale&&(e.min=Math.min(e.min,l.min),e.max=Math.max(e.max,l.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const r=this._cachedMeta,{iScale:a,vScale:o}=r,l=this.getParsed(e),u=l._custom,m=Rm(u)?"["+u.start+", "+u.end+"]":""+o.getLabelForValue(l[o.axis]);return{label:""+a.getLabelForValue(l[a.axis]),value:m}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(e){const r=this._cachedMeta;this.updateElements(r.data,0,r.data.length,e)}updateElements(e,r,a,o){const l="reset"===o,{index:u,_cachedMeta:{vScale:m}}=this,_=m.getBasePixel(),w=m.isHorizontal(),M=this._getRuler(),{sharedOptions:O,includeOptions:N}=this._getSharedOptions(r,o);for(let z=r;z<r+a;z++){const j=this.getParsed(z),oe=l||cr(j[m.axis])?{base:_,head:_}:this._calculateBarValuePixels(z),Ne=this._calculateBarIndexPixels(z,M),Ie=(j._stacks||{})[m.axis],Ye={horizontal:w,base:oe.base,enableBorderRadius:!Ie||Rm(j._custom)||u===Ie._top||u===Ie._bottom,x:w?oe.head:Ne.center,y:w?Ne.center:oe.head,height:w?Ne.size:Math.abs(oe.size),width:w?Math.abs(oe.size):Ne.size};N&&(Ye.options=O||this.resolveDataElementOptions(z,e[z].active?"active":o));const Pt=Ye.options||e[z].options;TC(Ye,Pt,Ie,u),Pb(Ye,Pt,M.ratio),this.updateElement(e[z],z,Ye,o)}}_getStacks(e,r){const{iScale:a}=this._cachedMeta,o=a.getMatchingVisibleMetas(this._type).filter(_=>_.controller.options.grouped),l=a.options.stacked,u=[],m=_=>{const w=_.controller.getParsed(r),M=w&&w[_.vScale.axis];if(cr(M)||isNaN(M))return!0};for(const _ of o)if((void 0===r||!m(_))&&((!1===l||-1===u.indexOf(_.stack)||void 0===l&&void 0===_.stack)&&u.push(_.stack),_.index===e))break;return u.length||u.push(void 0),u}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,r,a){const o=this._getStacks(e,a),l=void 0!==r?o.indexOf(r):-1;return-1===l?o.length-1:l}_getRuler(){const e=this.options,r=this._cachedMeta,a=r.iScale,o=[];let l,u;for(l=0,u=r.data.length;l<u;++l)o.push(a.getPixelForValue(this.getParsed(l)[a.axis],l));const m=e.barThickness;return{min:m||yC(r),pixels:o,start:a._startPixel,end:a._endPixel,stackCount:this._getStackCount(),scale:a,grouped:e.grouped,ratio:m?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:r,_stacked:a},options:{base:o,minBarLength:l}}=this,u=o||0,m=this.getParsed(e),_=m._custom,w=Rm(_);let z,j,M=m[r.axis],O=0,N=a?this.applyStack(r,m,a):M;N!==M&&(O=N-M,N=M),w&&(M=_.barStart,N=_.barEnd-_.barStart,0!==M&&Xl(M)!==Xl(_.barEnd)&&(O=0),O+=M);const oe=cr(o)||w?O:o;let Ne=r.getPixelForValue(oe);if(z=this.chart.getDataVisibility(e)?r.getPixelForValue(O+N):Ne,j=z-Ne,Math.abs(j)<l){j=function CC(t,n,e){return 0!==t?Xl(t):(n.isHorizontal()?1:-1)*(n.min>=e?1:-1)}(j,r,u)*l,M===u&&(Ne-=j/2);const Ie=r.getPixelForDecimal(0),Ye=r.getPixelForDecimal(1),Pt=Math.min(Ie,Ye),Ut=Math.max(Ie,Ye);Ne=Math.max(Math.min(Ne,Ut),Pt),z=Ne+j}if(Ne===r.getPixelForValue(u)){const Ie=Xl(j)*r.getLineWidthForValue(u)/2;Ne+=Ie,j-=Ie}return{size:j,base:Ne,head:z,center:z+j/2}}_calculateBarIndexPixels(e,r){const a=r.scale,o=this.options,l=o.skipNull,u=Qi(o.maxBarThickness,1/0);let m,_;if(r.grouped){const w=l?this._getStackCount(e):r.stackCount,M="flex"===o.barThickness?function xC(t,n,e,r){const a=n.pixels,o=a[t];let l=t>0?a[t-1]:null,u=t<a.length-1?a[t+1]:null;const m=e.categoryPercentage;null===l&&(l=o-(null===u?n.end-n.start:u-o)),null===u&&(u=o+o-l);const _=o-(o-Math.min(l,u))/2*m;return{chunk:Math.abs(u-l)/2*m/r,ratio:e.barPercentage,start:_}}(e,r,o,w):function Sb(t,n,e,r){const a=e.barThickness;let o,l;return cr(a)?(o=n.min*e.categoryPercentage,l=e.barPercentage):(o=a*r,l=1),{chunk:o/r,ratio:l,start:n.pixels[t]-o/2}}(e,r,o,w),O=this._getStackIndex(this.index,this._cachedMeta.stack,l?e:void 0);m=M.start+M.chunk*O+M.chunk/2,_=Math.min(u,M.chunk*M.ratio)}else m=a.getPixelForValue(this.getParsed(e)[a.axis],e),_=Math.min(u,r.min*r.ratio);return{base:m-_/2,head:m+_/2,center:m,size:_}}draw(){const e=this._cachedMeta,r=e.vScale,a=e.data,o=a.length;let l=0;for(;l<o;++l)null!==this.getParsed(l)[r.axis]&&a[l].draw(this._ctx)}}return t.id="bar",t.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},t.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}},t})(),MC=(()=>{class t extends nc{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,r,a,o){const l=super.parsePrimitiveData(e,r,a,o);for(let u=0;u<l.length;u++)l[u]._custom=this.resolveDataElementOptions(u+a).radius;return l}parseArrayData(e,r,a,o){const l=super.parseArrayData(e,r,a,o);for(let u=0;u<l.length;u++)l[u]._custom=Qi(r[a+u][2],this.resolveDataElementOptions(u+a).radius);return l}parseObjectData(e,r,a,o){const l=super.parseObjectData(e,r,a,o);for(let u=0;u<l.length;u++){const m=r[a+u];l[u]._custom=Qi(m&&m.r&&+m.r,this.resolveDataElementOptions(u+a).radius)}return l}getMaxOverflow(){const e=this._cachedMeta.data;let r=0;for(let a=e.length-1;a>=0;--a)r=Math.max(r,e[a].size(this.resolveDataElementOptions(a))/2);return r>0&&r}getLabelAndValue(e){const r=this._cachedMeta,{xScale:a,yScale:o}=r,l=this.getParsed(e),u=a.getLabelForValue(l.x),m=o.getLabelForValue(l.y),_=l._custom;return{label:r.label,value:"("+u+", "+m+(_?", "+_:"")+")"}}update(e){const r=this._cachedMeta.data;this.updateElements(r,0,r.length,e)}updateElements(e,r,a,o){const l="reset"===o,{iScale:u,vScale:m}=this._cachedMeta,{sharedOptions:_,includeOptions:w}=this._getSharedOptions(r,o),M=u.axis,O=m.axis;for(let N=r;N<r+a;N++){const z=e[N],j=!l&&this.getParsed(N),oe={},Ne=oe[M]=l?u.getPixelForDecimal(.5):u.getPixelForValue(j[M]),Ie=oe[O]=l?m.getBasePixel():m.getPixelForValue(j[O]);oe.skip=isNaN(Ne)||isNaN(Ie),w&&(oe.options=_||this.resolveDataElementOptions(N,z.active?"active":o),l&&(oe.options.radius=0)),this.updateElement(z,N,oe,o)}}resolveDataElementOptions(e,r){const a=this.getParsed(e);let o=super.resolveDataElementOptions(e,r);o.$shared&&(o=Object.assign({},o,{$shared:!1}));const l=o.radius;return"active"!==r&&(o.radius=0),o.radius+=Qi(a&&a._custom,l),o}}return t.id="bubble",t.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},t.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}},t})(),Fb=(()=>{class t extends nc{constructor(e,r){super(e,r),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,r){const a=this.getDataset().data,o=this._cachedMeta;if(!1===this._parsing)o._parsed=a;else{let u,m,l=_=>+a[_];if(_r(a[e])){const{key:_="value"}=this._parsing;l=w=>+Md(a[w],_)}for(u=e,m=e+r;u<m;++u)o._parsed[u]=l(u)}}_getRotation(){return Zs(this.options.rotation-90)}_getCircumference(){return Zs(this.options.circumference)}_getRotationExtents(){let e=Fr,r=-Fr;for(let a=0;a<this.chart.data.datasets.length;++a)if(this.chart.isDatasetVisible(a)){const o=this.chart.getDatasetMeta(a).controller,l=o._getRotation(),u=o._getCircumference();e=Math.min(e,l),r=Math.max(r,l+u)}return{rotation:e,circumference:r-e}}update(e){const r=this.chart,{chartArea:a}=r,o=this._cachedMeta,l=o.data,u=this.getMaxBorderWidth()+this.getMaxOffset(l)+this.options.spacing,m=Math.max((Math.min(a.width,a.height)-u)/2,0),_=Math.min(((t,n)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/n)(this.options.cutout,m),1),w=this._getRingWeight(this.index),{circumference:M,rotation:O}=this._getRotationExtents(),{ratioX:N,ratioY:z,offsetX:j,offsetY:oe}=function Rb(t,n,e){let r=1,a=1,o=0,l=0;if(n<Fr){const u=t,m=u+n,_=Math.cos(u),w=Math.sin(u),M=Math.cos(m),O=Math.sin(m),N=(Ye,Pt,Ut)=>Sh(Ye,u,m,!0)?1:Math.max(Pt,Pt*e,Ut,Ut*e),z=(Ye,Pt,Ut)=>Sh(Ye,u,m,!0)?-1:Math.min(Pt,Pt*e,Ut,Ut*e),j=N(0,_,M),oe=N(wa,w,O),Ne=z(ea,_,M),Ie=z(ea+wa,w,O);r=(j-Ne)/2,a=(oe-Ie)/2,o=-(j+Ne)/2,l=-(oe+Ie)/2}return{ratioX:r,ratioY:a,offsetX:o,offsetY:l}}(O,M,_),Ye=Math.max(Math.min((a.width-u)/N,(a.height-u)/z)/2,0),Pt=bg(this.options.radius,Ye),rn=(Pt-Math.max(Pt*_,0))/this._getVisibleDatasetWeightTotal();this.offsetX=j*Pt,this.offsetY=oe*Pt,o.total=this.calculateTotal(),this.outerRadius=Pt-rn*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-rn*w,0),this.updateElements(l,0,l.length,e)}_circumference(e,r){const a=this.options,o=this._cachedMeta,l=this._getCircumference();return r&&a.animation.animateRotate||!this.chart.getDataVisibility(e)||null===o._parsed[e]||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*l/Fr)}updateElements(e,r,a,o){const l="reset"===o,u=this.chart,m=u.chartArea,M=(m.left+m.right)/2,O=(m.top+m.bottom)/2,N=l&&u.options.animation.animateScale,z=N?0:this.innerRadius,j=N?0:this.outerRadius,{sharedOptions:oe,includeOptions:Ne}=this._getSharedOptions(r,o);let Ye,Ie=this._getRotation();for(Ye=0;Ye<r;++Ye)Ie+=this._circumference(Ye,l);for(Ye=r;Ye<r+a;++Ye){const Pt=this._circumference(Ye,l),Ut=e[Ye],rn={x:M+this.offsetX,y:O+this.offsetY,startAngle:Ie,endAngle:Ie+Pt,circumference:Pt,outerRadius:j,innerRadius:z};Ne&&(rn.options=oe||this.resolveDataElementOptions(Ye,Ut.active?"active":o)),Ie+=Pt,this.updateElement(Ut,Ye,rn,o)}}calculateTotal(){const e=this._cachedMeta,r=e.data;let o,a=0;for(o=0;o<r.length;o++){const l=e._parsed[o];null!==l&&!isNaN(l)&&this.chart.getDataVisibility(o)&&!r[o].hidden&&(a+=Math.abs(l))}return a}calculateCircumference(e){const r=this._cachedMeta.total;return r>0&&!isNaN(e)?Fr*(Math.abs(e)/r):0}getLabelAndValue(e){const a=this.chart,o=a.data.labels||[],l=bu(this._cachedMeta._parsed[e],a.options.locale);return{label:o[e]||"",value:l}}getMaxBorderWidth(e){let r=0;const a=this.chart;let o,l,u,m,_;if(!e)for(o=0,l=a.data.datasets.length;o<l;++o)if(a.isDatasetVisible(o)){u=a.getDatasetMeta(o),e=u.data,m=u.controller;break}if(!e)return 0;for(o=0,l=e.length;o<l;++o)_=m.resolveDataElementOptions(o),"inner"!==_.borderAlign&&(r=Math.max(r,_.borderWidth||0,_.hoverBorderWidth||0));return r}getMaxOffset(e){let r=0;for(let a=0,o=e.length;a<o;++a){const l=this.resolveDataElementOptions(a);r=Math.max(r,l.offset||0,l.hoverOffset||0)}return r}_getRingWeightOffset(e){let r=0;for(let a=0;a<e;++a)this.chart.isDatasetVisible(a)&&(r+=this._getRingWeight(a));return r}_getRingWeight(e){return Math.max(Qi(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}return t.id="doughnut",t.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},t.descriptors={_scriptable:n=>"spacing"!==n,_indexable:n=>"spacing"!==n},t.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(n){const e=n.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:r}}=n.legend.options;return e.labels.map((a,o)=>{const u=n.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,lineWidth:u.borderWidth,pointStyle:r,hidden:!n.getDataVisibility(o),index:o}})}return[]}},onClick(n,e,r){r.chart.toggleDataVisibility(e.index),r.chart.update()}},tooltip:{callbacks:{title:()=>"",label(n){let e=n.label;const r=": "+n.formattedValue;return Kr(e)?(e=e.slice(),e[0]+=r):e+=r,e}}}}},t})(),Lb=(()=>{class t extends nc{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const r=this._cachedMeta,{dataset:a,data:o=[],_dataset:l}=r,u=this.chart._animationsDisabled;let{start:m,count:_}=Ag(r,o,u);this._drawStart=m,this._drawCount=_,Bv(r)&&(m=0,_=o.length),a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=o;const w=this.resolveDatasetElementOptions(e);this.options.showLine||(w.borderWidth=0),w.segment=this.options.segment,this.updateElement(a,void 0,{animated:!u,options:w},e),this.updateElements(o,m,_,e)}updateElements(e,r,a,o){const l="reset"===o,{iScale:u,vScale:m,_stacked:_,_dataset:w}=this._cachedMeta,{sharedOptions:M,includeOptions:O}=this._getSharedOptions(r,o),N=u.axis,z=m.axis,{spanGaps:j,segment:oe}=this.options,Ne=Ad(j)?j:Number.POSITIVE_INFINITY,Ie=this.chart._animationsDisabled||l||"none"===o;let Ye=r>0&&this.getParsed(r-1);for(let Pt=r;Pt<r+a;++Pt){const Ut=e[Pt],rn=this.getParsed(Pt),kt=Ie?Ut:{},en=cr(rn[z]),tn=kt[N]=u.getPixelForValue(rn[N],Pt),xn=kt[z]=l||en?m.getBasePixel():m.getPixelForValue(_?this.applyStack(m,rn,_):rn[z],Pt);kt.skip=isNaN(tn)||isNaN(xn)||en,kt.stop=Pt>0&&Math.abs(rn[N]-Ye[N])>Ne,oe&&(kt.parsed=rn,kt.raw=w.data[Pt]),O&&(kt.options=M||this.resolveDataElementOptions(Pt,Ut.active?"active":o)),Ie||this.updateElement(Ut,Pt,kt,o),Ye=rn}}getMaxOverflow(){const e=this._cachedMeta,r=e.dataset,a=r.options&&r.options.borderWidth||0,o=e.data||[];if(!o.length)return a;const l=o[0].size(this.resolveDataElementOptions(0)),u=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(a,l,u)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t.id="line",t.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},t.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}},t})(),AC=(()=>{class t extends nc{constructor(e,r){super(e,r),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const a=this.chart,o=a.data.labels||[],l=bu(this._cachedMeta._parsed[e].r,a.options.locale);return{label:o[e]||"",value:l}}parseObjectData(e,r,a,o){return db.bind(this)(e,r,a,o)}update(e){const r=this._cachedMeta.data;this._updateRadius(),this.updateElements(r,0,r.length,e)}getMinMax(){const r={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((a,o)=>{const l=this.getParsed(o).r;!isNaN(l)&&this.chart.getDataVisibility(o)&&(l<r.min&&(r.min=l),l>r.max&&(r.max=l))}),r}_updateRadius(){const e=this.chart,r=e.chartArea,a=e.options,o=Math.min(r.right-r.left,r.bottom-r.top),l=Math.max(o/2,0),m=(l-Math.max(a.cutoutPercentage?l/100*a.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=l-m*this.index,this.innerRadius=this.outerRadius-m}updateElements(e,r,a,o){const l="reset"===o,u=this.chart,_=u.options.animation,w=this._cachedMeta.rScale,M=w.xCenter,O=w.yCenter,N=w.getIndexAngle(0)-.5*ea;let j,z=N;const oe=360/this.countVisibleElements();for(j=0;j<r;++j)z+=this._computeAngle(j,o,oe);for(j=r;j<r+a;j++){const Ne=e[j];let Ie=z,Ye=z+this._computeAngle(j,o,oe),Pt=u.getDataVisibility(j)?w.getDistanceFromCenterForValue(this.getParsed(j).r):0;z=Ye,l&&(_.animateScale&&(Pt=0),_.animateRotate&&(Ie=Ye=N));const Ut={x:M,y:O,innerRadius:0,outerRadius:Pt,startAngle:Ie,endAngle:Ye,options:this.resolveDataElementOptions(j,Ne.active?"active":o)};this.updateElement(Ne,j,Ut,o)}}countVisibleElements(){let r=0;return this._cachedMeta.data.forEach((a,o)=>{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&r++}),r}_computeAngle(e,r,a){return this.chart.getDataVisibility(e)?Zs(this.resolveDataElementOptions(e,r).angle||a):0}}return t.id="polarArea",t.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},t.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(n){const e=n.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:r}}=n.legend.options;return e.labels.map((a,o)=>{const u=n.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,lineWidth:u.borderWidth,pointStyle:r,hidden:!n.getDataVisibility(o),index:o}})}return[]}},onClick(n,e,r){r.chart.toggleDataVisibility(e.index),r.chart.update()}},tooltip:{callbacks:{title:()=>"",label:n=>n.chart.data.labels[n.dataIndex]+": "+n.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}},t})(),SC=(()=>{class t extends Fb{}return t.id="pie",t.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"},t})(),P2=(()=>{class t extends nc{getLabelAndValue(e){const r=this._cachedMeta.vScale,a=this.getParsed(e);return{label:r.getLabels()[e],value:""+r.getLabelForValue(a[r.axis])}}parseObjectData(e,r,a,o){return db.bind(this)(e,r,a,o)}update(e){const r=this._cachedMeta,a=r.dataset,o=r.data||[],l=r.iScale.getLabels();if(a.points=o,"resize"!==e){const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),this.updateElement(a,void 0,{_loop:!0,_fullLoop:l.length===o.length,options:u},e)}this.updateElements(o,0,o.length,e)}updateElements(e,r,a,o){const l=this._cachedMeta.rScale,u="reset"===o;for(let m=r;m<r+a;m++){const _=e[m],w=this.resolveDataElementOptions(m,_.active?"active":o),M=l.getPointPositionForValue(m,this.getParsed(m).r),O=u?l.xCenter:M.x,N=u?l.yCenter:M.y,z={x:O,y:N,angle:M.angle,skip:isNaN(O)||isNaN(N),options:w};this.updateElement(_,m,z,o)}}}return t.id="radar",t.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},t.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}},t})();class dl{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(n){const{x:e,y:r}=this.getProps(["x","y"],n);return{x:e,y:r}}hasValue(){return Ad(this.x)&&Ad(this.y)}getProps(n,e){const r=this.$animations;if(!e||!r)return this;const a={};return n.forEach(o=>{a[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),a}}dl.defaults={},dl.defaultRoutes=void 0;const t_={values:t=>Kr(t)?t:""+t,numeric(t,n,e){if(0===t)return"0";const r=this.chart.options.locale;let a,o=t;if(e.length>1){const _=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(_<1e-4||_>1e15)&&(a="scientific"),o=function Nd(t,n){let e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}(t,e)}const l=fs(Math.abs(o)),u=Math.max(Math.min(-1*Math.floor(l),20),0),m={notation:a,minimumFractionDigits:u,maximumFractionDigits:u};return Object.assign(m,this.options.ticks.format),bu(t,r,m)},logarithmic(t,n,e){if(0===t)return"0";const r=t/Math.pow(10,Math.floor(fs(t)));return 1===r||2===r||5===r?t_.numeric.call(this,t,n,e):""}};var Fm={formatters:t_};function r_(t,n,e,r,a){const o=Qi(r,0),l=Math.min(Qi(a,t.length),t.length);let m,_,w,u=0;for(e=Math.ceil(e),a&&(m=a-r,e=m/Math.floor(m/e)),w=o;w<0;)u++,w=Math.round(o+u*e);for(_=Math.max(o,0);_<l;_++)_===w&&(n.push(t[_]),u++,w=Math.round(o+u*e))}mr.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Fm.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),mr.route("scale.ticks","color","","color"),mr.route("scale.grid","color","","borderColor"),mr.route("scale.grid","borderColor","","borderColor"),mr.route("scale.title","color","","color"),mr.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),mr.describe("scales",{_fallback:"scale"}),mr.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const Nb=t=>"left"===t?"right":"right"===t?"left":t,OC=(t,n,e)=>"top"===n||"left"===n?t[n]+e:t[n]-e;function Bb(t,n){const e=[],r=t.length/n,a=t.length;let o=0;for(;o<a;o+=r)e.push(t[Math.floor(o)]);return e}function Cu(t,n,e){const r=t.ticks.length,a=Math.min(n,r-1),o=t._startPixel,l=t._endPixel,u=1e-6;let _,m=t.getPixelForTick(a);if(!(e&&(_=1===r?Math.max(m-o,l-m):0===n?(t.getPixelForTick(1)-m)/2:(m-t.getPixelForTick(a-1))/2,m+=a<n?_:-_,m<o-u||m>l+u)))return m}function Du(t){return t.drawTicks?t.tickLength:0}function qh(t,n){if(!t.display)return 0;const e=$a(t.font,n),r=Fo(t.padding);return(Kr(t.text)?t.text.length:1)*e.lineHeight+r.height}function FC(t,n,e){let r=mm(t);return(e&&"right"!==n||!e&&"right"===n)&&(r=Nb(r)),r}class Bd extends dl{constructor(n){super(),this.id=n.id,this.type=n.type,this.options=void 0,this.ctx=n.ctx,this.chart=n.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(n){this.options=n.setContext(this.getContext()),this.axis=n.axis,this._userMin=this.parse(n.min),this._userMax=this.parse(n.max),this._suggestedMin=this.parse(n.suggestedMin),this._suggestedMax=this.parse(n.suggestedMax)}parse(n,e){return n}getUserBounds(){let{_userMin:n,_userMax:e,_suggestedMin:r,_suggestedMax:a}=this;return n=cl(n,Number.POSITIVE_INFINITY),e=cl(e,Number.NEGATIVE_INFINITY),r=cl(r,Number.POSITIVE_INFINITY),a=cl(a,Number.NEGATIVE_INFINITY),{min:cl(n,r),max:cl(e,a),minDefined:Aa(n),maxDefined:Aa(e)}}getMinMax(n){let l,{min:e,max:r,minDefined:a,maxDefined:o}=this.getUserBounds();if(a&&o)return{min:e,max:r};const u=this.getMatchingVisibleMetas();for(let m=0,_=u.length;m<_;++m)l=u[m].controller.getMinMax(this,n),a||(e=Math.min(e,l.min)),o||(r=Math.max(r,l.max));return e=o&&e>r?r:e,r=a&&e>r?e:r,{min:cl(e,cl(r,e)),max:cl(r,cl(e,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Br(this.options.beforeUpdate,[this])}update(n,e,r){const{beginAtZero:a,grace:o,ticks:l}=this.options,u=l.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=e,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function Bg(t,n,e){const{min:r,max:a}=t,o=bg(n,(a-r)/2),l=(u,m)=>e&&0===u?0:u+m;return{min:l(r,-Math.abs(o)),max:l(a,o)}}(this,o,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const m=u<this.ticks.length;this._convertTicksToLabels(m?Bb(this.ticks,u):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),l.display&&(l.autoSkip||"auto"===l.source)&&(this.ticks=function n_(t,n){const e=t.options.ticks,r=e.maxTicksLimit||function i_(t){const n=t.options.offset,e=t._tickSize();return Math.floor(Math.min(t._length/e+(n?0:1),t._maxLength/e))}(t),a=e.major.enabled?function R2(t){const n=[];let e,r;for(e=0,r=t.length;e<r;e++)t[e].major&&n.push(e);return n}(n):[],o=a.length,l=a[0],u=a[o-1],m=[];if(o>r)return function F2(t,n,e,r){let l,a=0,o=e[0];for(r=Math.ceil(r),l=0;l<t.length;l++)l===o&&(n.push(t[l]),a++,o=e[a*r])}(n,m,a,o/r),m;const _=function kC(t,n,e){const r=function IC(t){const n=t.length;let e,r;if(n<2)return!1;for(r=t[0],e=1;e<n;++e)if(t[e]-t[e-1]!==r)return!1;return r}(t),a=n.length/e;if(!r)return Math.max(a,1);const o=function kw(t){const n=[],e=Math.sqrt(t);let r;for(r=1;r<e;r++)t%r==0&&(n.push(r),n.push(t/r));return e===(0|e)&&n.push(e),n.sort((a,o)=>a-o).pop(),n}(r);for(let l=0,u=o.length-1;l<u;l++){const m=o[l];if(m>a)return m}return Math.max(a,1)}(a,n,r);if(o>0){let w,M;const O=o>1?Math.round((u-l)/(o-1)):null;for(r_(n,m,_,cr(O)?0:l-O,l),w=0,M=o-1;w<M;w++)r_(n,m,_,a[w],a[w+1]);return r_(n,m,_,u,cr(O)?n.length:u+O),m}return r_(n,m,_),m}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),m&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,r,n=this.options.reverse;this.isHorizontal()?(e=this.left,r=this.right):(e=this.top,r=this.bottom,n=!n),this._startPixel=e,this._endPixel=r,this._reversePixels=n,this._length=r-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Br(this.options.afterUpdate,[this])}beforeSetDimensions(){Br(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Br(this.options.afterSetDimensions,[this])}_callHooks(n){this.chart.notifyPlugins(n,this.getContext()),Br(this.options[n],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Br(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(n){const e=this.options.ticks;let r,a,o;for(r=0,a=n.length;r<a;r++)o=n[r],o.label=Br(e.callback,[o.value,r,n],this)}afterTickToLabelConversion(){Br(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Br(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const n=this.options,e=n.ticks,r=this.ticks.length,a=e.minRotation||0,o=e.maxRotation;let u,m,_,l=a;if(!this._isVisible()||!e.display||a>=o||r<=1||!this.isHorizontal())return void(this.labelRotation=a);const w=this._getLabelSizes(),M=w.widest.width,O=w.highest.height,N=Ga(this.chart.width-M,0,this.maxWidth);u=n.offset?this.maxWidth/r:N/(r-1),M+6>u&&(u=N/(r-(n.offset?.5:1)),m=this.maxHeight-Du(n.grid)-e.padding-qh(n.title,this.chart.options.font),_=Math.sqrt(M*M+O*O),l=dm(Math.min(Math.asin(Ga((w.highest.height+6)/u,-1,1)),Math.asin(Ga(m/_,-1,1))-Math.asin(Ga(O/_,-1,1)))),l=Math.max(a,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){Br(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Br(this.options.beforeFit,[this])}fit(){const n={width:0,height:0},{chart:e,options:{ticks:r,title:a,grid:o}}=this,l=this._isVisible(),u=this.isHorizontal();if(l){const m=qh(a,e.options.font);if(u?(n.width=this.maxWidth,n.height=Du(o)+m):(n.height=this.maxHeight,n.width=Du(o)+m),r.display&&this.ticks.length){const{first:_,last:w,widest:M,highest:O}=this._getLabelSizes(),N=2*r.padding,z=Zs(this.labelRotation),j=Math.cos(z),oe=Math.sin(z);u?n.height=Math.min(this.maxHeight,n.height+(r.mirror?0:oe*M.width+j*O.height)+N):n.width=Math.min(this.maxWidth,n.width+(r.mirror?0:j*M.width+oe*O.height)+N),this._calculatePadding(_,w,oe,j)}}this._handleMargins(),u?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,e,r,a){const{ticks:{align:o,padding:l},position:u}=this.options,m=0!==this.labelRotation,_="top"!==u&&"x"===this.axis;if(this.isHorizontal()){const w=this.getPixelForTick(0)-this.left,M=this.right-this.getPixelForTick(this.ticks.length-1);let O=0,N=0;m?_?(O=a*n.width,N=r*e.height):(O=r*n.height,N=a*e.width):"start"===o?N=e.width:"end"===o?O=n.width:"inner"!==o&&(O=n.width/2,N=e.width/2),this.paddingLeft=Math.max((O-w+l)*this.width/(this.width-w),0),this.paddingRight=Math.max((N-M+l)*this.width/(this.width-M),0)}else{let w=e.height/2,M=n.height/2;"start"===o?(w=0,M=n.height):"end"===o&&(w=e.height,M=0),this.paddingTop=w+l,this.paddingBottom=M+l}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Br(this.options.afterFit,[this])}isHorizontal(){const{axis:n,position:e}=this.options;return"top"===e||"bottom"===e||"x"===n}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){let e,r;for(this.beforeTickToLabelConversion(),this.generateTickLabels(n),e=0,r=n.length;e<r;e++)cr(n[e].label)&&(n.splice(e,1),r--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let n=this._labelSizes;if(!n){const e=this.options.ticks.sampleSize;let r=this.ticks;e<r.length&&(r=Bb(r,e)),this._labelSizes=n=this._computeLabelSizes(r,r.length)}return n}_computeLabelSizes(n,e){const{ctx:r,_longestTextCache:a}=this,o=[],l=[];let _,w,M,O,N,z,j,oe,Ne,Ie,Ye,u=0,m=0;for(_=0;_<e;++_){if(O=n[_].label,N=this._resolveTickFontOptions(_),r.font=z=N.string,j=a[z]=a[z]||{data:{},gc:[]},oe=N.lineHeight,Ne=Ie=0,cr(O)||Kr(O)){if(Kr(O))for(w=0,M=O.length;w<M;++w)Ye=O[w],!cr(Ye)&&!Kr(Ye)&&(Ne=wm(r,j.data,j.gc,Ne,Ye),Ie+=oe)}else Ne=wm(r,j.data,j.gc,Ne,O),Ie=oe;o.push(Ne),l.push(Ie),u=Math.max(Ne,u),m=Math.max(Ie,m)}!function PC(t,n){Ar(t,e=>{const r=e.gc,a=r.length/2;let o;if(a>n){for(o=0;o<a;++o)delete e.data[r[o]];r.splice(0,a)}})}(a,e);const Pt=o.indexOf(u),Ut=l.indexOf(m),rn=kt=>({width:o[kt]||0,height:l[kt]||0});return{first:rn(0),last:rn(e-1),widest:rn(Pt),highest:rn(Ut),widths:o,heights:l}}getLabelForValue(n){return n}getPixelForValue(n,e){return NaN}getValueForPixel(n){}getPixelForTick(n){const e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);const e=this._startPixel+n*this._length;return function Ow(t){return Ga(t,-32768,32767)}(this._alignToPixels?is(this.chart,e,0):e)}getDecimalForPixel(n){const e=(n-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:n,max:e}=this;return n<0&&e<0?e:n>0&&e>0?n:0}getContext(n){const e=this.ticks||[];if(n>=0&&n<e.length){const r=e[n];return r.$context||(r.$context=function Ub(t,n,e){return Pd(t,{tick:e,index:n,type:"tick"})}(this.getContext(),n,r))}return this.$context||(this.$context=function RC(t,n){return Pd(t,{scale:n,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const n=this.options.ticks,e=Zs(this.labelRotation),r=Math.abs(Math.cos(e)),a=Math.abs(Math.sin(e)),o=this._getLabelSizes(),l=n.autoSkipPadding||0,u=o?o.widest.width+l:0,m=o?o.highest.height+l:0;return this.isHorizontal()?m*r>u*a?u/r:m/a:m*a<u*r?m/r:u/a}_isVisible(){const n=this.options.display;return"auto"!==n?!!n:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(n){const e=this.axis,r=this.chart,a=this.options,{grid:o,position:l}=a,u=o.offset,m=this.isHorizontal(),w=this.ticks.length+(u?1:0),M=Du(o),O=[],N=o.setContext(this.getContext()),z=N.drawBorder?N.borderWidth:0,j=z/2,oe=function($n){return is(r,$n,z)};let Ne,Ie,Ye,Pt,Ut,rn,kt,en,tn,xn,Cn,mn;if("top"===l)Ne=oe(this.bottom),rn=this.bottom-M,en=Ne-j,xn=oe(n.top)+j,mn=n.bottom;else if("bottom"===l)Ne=oe(this.top),xn=n.top,mn=oe(n.bottom)-j,rn=Ne+j,en=this.top+M;else if("left"===l)Ne=oe(this.right),Ut=this.right-M,kt=Ne-j,tn=oe(n.left)+j,Cn=n.right;else if("right"===l)Ne=oe(this.left),tn=n.left,Cn=oe(n.right)-j,Ut=Ne+j,kt=this.left+M;else if("x"===e){if("center"===l)Ne=oe((n.top+n.bottom)/2+.5);else if(_r(l)){const $n=Object.keys(l)[0];Ne=oe(this.chart.scales[$n].getPixelForValue(l[$n]))}xn=n.top,mn=n.bottom,rn=Ne+j,en=rn+M}else if("y"===e){if("center"===l)Ne=oe((n.left+n.right)/2);else if(_r(l)){const $n=Object.keys(l)[0];Ne=oe(this.chart.scales[$n].getPixelForValue(l[$n]))}Ut=Ne-j,kt=Ut-M,tn=n.left,Cn=n.right}const Xn=Qi(a.ticks.maxTicksLimit,w),gi=Math.max(1,Math.ceil(w/Xn));for(Ie=0;Ie<w;Ie+=gi){const $n=o.setContext(this.getContext(Ie)),Un=$n.lineWidth,Bn=$n.color,li=$n.borderDash||[],ti=$n.borderDashOffset,ki=$n.tickWidth,qn=$n.tickColor,Xt=$n.tickBorderDash||[],En=$n.tickBorderDashOffset;Ye=Cu(this,Ie,u),void 0!==Ye&&(Pt=is(r,Ye,Un),m?Ut=kt=tn=Cn=Pt:rn=en=xn=mn=Pt,O.push({tx1:Ut,ty1:rn,tx2:kt,ty2:en,x1:tn,y1:xn,x2:Cn,y2:mn,width:Un,color:Bn,borderDash:li,borderDashOffset:ti,tickWidth:ki,tickColor:qn,tickBorderDash:Xt,tickBorderDashOffset:En}))}return this._ticksLength=w,this._borderValue=Ne,O}_computeLabelItems(n){const e=this.axis,r=this.options,{position:a,ticks:o}=r,l=this.isHorizontal(),u=this.ticks,{align:m,crossAlign:_,padding:w,mirror:M}=o,O=Du(r.grid),N=O+w,z=M?-w:N,j=-Zs(this.labelRotation),oe=[];let Ne,Ie,Ye,Pt,Ut,rn,kt,en,tn,xn,Cn,mn,Xn="middle";if("top"===a)rn=this.bottom-z,kt=this._getXAxisLabelAlignment();else if("bottom"===a)rn=this.top+z,kt=this._getXAxisLabelAlignment();else if("left"===a){const $n=this._getYAxisLabelAlignment(O);kt=$n.textAlign,Ut=$n.x}else if("right"===a){const $n=this._getYAxisLabelAlignment(O);kt=$n.textAlign,Ut=$n.x}else if("x"===e){if("center"===a)rn=(n.top+n.bottom)/2+N;else if(_r(a)){const $n=Object.keys(a)[0];rn=this.chart.scales[$n].getPixelForValue(a[$n])+N}kt=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===a)Ut=(n.left+n.right)/2-N;else if(_r(a)){const $n=Object.keys(a)[0];Ut=this.chart.scales[$n].getPixelForValue(a[$n])}kt=this._getYAxisLabelAlignment(O).textAlign}"y"===e&&("start"===m?Xn="top":"end"===m&&(Xn="bottom"));const gi=this._getLabelSizes();for(Ne=0,Ie=u.length;Ne<Ie;++Ne){Ye=u[Ne],Pt=Ye.label;const $n=o.setContext(this.getContext(Ne));en=this.getPixelForTick(Ne)+o.labelOffset,tn=this._resolveTickFontOptions(Ne),xn=tn.lineHeight,Cn=Kr(Pt)?Pt.length:1;const Un=Cn/2,Bn=$n.color,li=$n.textStrokeColor,ti=$n.textStrokeWidth;let qn,ki=kt;if(l?(Ut=en,"inner"===kt&&(ki=Ne===Ie-1?this.options.reverse?"left":"right":0===Ne?this.options.reverse?"right":"left":"center"),mn="top"===a?"near"===_||0!==j?-Cn*xn+xn/2:"center"===_?-gi.highest.height/2-Un*xn+xn:xn/2-gi.highest.height:"near"===_||0!==j?xn/2:"center"===_?gi.highest.height/2-Un*xn:gi.highest.height-Cn*xn,M&&(mn*=-1)):(rn=en,mn=(1-Cn)*xn/2),$n.showLabelBackdrop){const Xt=Fo($n.backdropPadding),En=gi.heights[Ne],on=gi.widths[Ne];let hn=rn+mn-Xt.top,zn=Ut-Xt.left;switch(Xn){case"middle":hn-=En/2;break;case"bottom":hn-=En}switch(kt){case"center":zn-=on/2;break;case"right":zn-=on}qn={left:zn,top:hn,width:on+Xt.width,height:En+Xt.height,color:$n.backdropColor}}oe.push({rotation:j,label:Pt,font:tn,color:Bn,strokeColor:li,strokeWidth:ti,textOffset:mn,textAlign:ki,textBaseline:Xn,translation:[Ut,rn],backdrop:qn})}return oe}_getXAxisLabelAlignment(){const{position:n,ticks:e}=this.options;if(-Zs(this.labelRotation))return"top"===n?"left":"right";let a="center";return"start"===e.align?a="left":"end"===e.align?a="right":"inner"===e.align&&(a="inner"),a}_getYAxisLabelAlignment(n){const{position:e,ticks:{crossAlign:r,mirror:a,padding:o}}=this.options,u=n+o,m=this._getLabelSizes().widest.width;let _,w;return"left"===e?a?(w=this.right+o,"near"===r?_="left":"center"===r?(_="center",w+=m/2):(_="right",w+=m)):(w=this.right-u,"near"===r?_="right":"center"===r?(_="center",w-=m/2):(_="left",w=this.left)):"right"===e?a?(w=this.left+o,"near"===r?_="right":"center"===r?(_="center",w-=m/2):(_="left",w-=m)):(w=this.left+u,"near"===r?_="left":"center"===r?(_="center",w+=m/2):(_="right",w=this.right)):_="right",{textAlign:_,x:w}}_computeLabelArea(){if(this.options.ticks.mirror)return;const n=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:n.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:n.width}:void 0}drawBackground(){const{ctx:n,options:{backgroundColor:e},left:r,top:a,width:o,height:l}=this;e&&(n.save(),n.fillStyle=e,n.fillRect(r,a,o,l),n.restore())}getLineWidthForValue(n){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const a=this.ticks.findIndex(o=>o.value===n);return a>=0?e.setContext(this.getContext(a)).lineWidth:0}drawGrid(n){const e=this.options.grid,r=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n));let o,l;const u=(m,_,w)=>{!w.width||!w.color||(r.save(),r.lineWidth=w.width,r.strokeStyle=w.color,r.setLineDash(w.borderDash||[]),r.lineDashOffset=w.borderDashOffset,r.beginPath(),r.moveTo(m.x,m.y),r.lineTo(_.x,_.y),r.stroke(),r.restore())};if(e.display)for(o=0,l=a.length;o<l;++o){const m=a[o];e.drawOnChartArea&&u({x:m.x1,y:m.y1},{x:m.x2,y:m.y2},m),e.drawTicks&&u({x:m.tx1,y:m.ty1},{x:m.tx2,y:m.ty2},{color:m.tickColor,width:m.tickWidth,borderDash:m.tickBorderDash,borderDashOffset:m.tickBorderDashOffset})}}drawBorder(){const{chart:n,ctx:e,options:{grid:r}}=this,a=r.setContext(this.getContext()),o=r.drawBorder?a.borderWidth:0;if(!o)return;const l=r.setContext(this.getContext(0)).lineWidth,u=this._borderValue;let m,_,w,M;this.isHorizontal()?(m=is(n,this.left,o)-o/2,_=is(n,this.right,l)+l/2,w=M=u):(w=is(n,this.top,o)-o/2,M=is(n,this.bottom,l)+l/2,m=_=u),e.save(),e.lineWidth=a.borderWidth,e.strokeStyle=a.borderColor,e.beginPath(),e.moveTo(m,w),e.lineTo(_,M),e.stroke(),e.restore()}drawLabels(n){if(!this.options.ticks.display)return;const r=this.ctx,a=this._computeLabelArea();a&&Cm(r,a);const o=this._labelItems||(this._labelItems=this._computeLabelItems(n));let l,u;for(l=0,u=o.length;l<u;++l){const m=o[l],_=m.font,w=m.label;m.backdrop&&(r.fillStyle=m.backdrop.color,r.fillRect(m.backdrop.left,m.backdrop.top,m.backdrop.width,m.backdrop.height)),Od(r,w,0,m.textOffset,_,m)}a&&Dm(r)}drawTitle(){const{ctx:n,options:{position:e,title:r,reverse:a}}=this;if(!r.display)return;const o=$a(r.font),l=Fo(r.padding),u=r.align;let m=o.lineHeight/2;"bottom"===e||"center"===e||_r(e)?(m+=l.bottom,Kr(r.text)&&(m+=o.lineHeight*(r.text.length-1))):m+=l.top;const{titleX:_,titleY:w,maxWidth:M,rotation:O}=function LC(t,n,e,r){const{top:a,left:o,bottom:l,right:u,chart:m}=t,{chartArea:_,scales:w}=m;let O,N,z,M=0;const j=l-a,oe=u-o;if(t.isHorizontal()){if(N=Sa(r,o,u),_r(e)){const Ne=Object.keys(e)[0];z=w[Ne].getPixelForValue(e[Ne])+j-n}else z="center"===e?(_.bottom+_.top)/2+j-n:OC(t,e,n);O=u-o}else{if(_r(e)){const Ne=Object.keys(e)[0];N=w[Ne].getPixelForValue(e[Ne])-oe+n}else N="center"===e?(_.left+_.right)/2-oe+n:OC(t,e,n);z=Sa(r,l,a),M="left"===e?-wa:wa}return{titleX:N,titleY:z,maxWidth:O,rotation:M}}(this,m,e,u);Od(n,r.text,0,0,o,{color:r.color,maxWidth:M,rotation:O,textAlign:FC(u,e,a),textBaseline:"middle",translation:[_,w]})}draw(n){this._isVisible()&&(this.drawBackground(),this.drawGrid(n),this.drawBorder(),this.drawTitle(),this.drawLabels(n))}_layers(){const n=this.options,e=n.ticks&&n.ticks.z||0,r=Qi(n.grid&&n.grid.z,-1);return this._isVisible()&&this.draw===Bd.prototype.draw?[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:r+1,draw:()=>{this.drawBorder()}},{z:e,draw:a=>{this.drawLabels(a)}}]:[{z:e,draw:a=>{this.draw(a)}}]}getMatchingVisibleMetas(n){const e=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",a=[];let o,l;for(o=0,l=e.length;o<l;++o){const u=e[o];u[r]===this.id&&(!n||u.type===n)&&a.push(u)}return a}_resolveTickFontOptions(n){return $a(this.options.ticks.setContext(this.getContext(n)).font)}_maxDigits(){const n=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/n}}class Lm{constructor(n,e,r){this.type=n,this.scope=e,this.override=r,this.items=Object.create(null)}isForType(n){return Object.prototype.isPrototypeOf.call(this.type.prototype,n.prototype)}register(n){const e=Object.getPrototypeOf(n);let r;(function BC(t){return"id"in t&&"defaults"in t})(e)&&(r=this.register(e));const a=this.items,o=n.id,l=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+n);return o in a||(a[o]=n,function NC(t,n,e){const r=Jl(Object.create(null),[e?mr.get(e):{},mr.get(n),t.defaults]);mr.set(n,r),t.defaultRoutes&&function Zb(t,n){Object.keys(n).forEach(e=>{const r=e.split("."),a=r.pop(),o=[t].concat(r).join("."),l=n[e].split("."),u=l.pop(),m=l.join(".");mr.route(o,a,m,u)})}(n,t.defaultRoutes),t.descriptors&&mr.describe(n,t.descriptors)}(n,l,r),this.override&&mr.override(n.id,n.overrides)),l}get(n){return this.items[n]}unregister(n){const e=this.items,r=n.id,a=this.scope;r in e&&delete e[r],a&&r in mr[a]&&(delete mr[a][r],this.override&&delete ed[r])}}var Sl=new class Vb{constructor(){this.controllers=new Lm(nc,"datasets",!0),this.elements=new Lm(dl,"elements"),this.plugins=new Lm(Object,"plugins"),this.scales=new Lm(Bd,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,e,r){[...e].forEach(a=>{const o=r||this._getRegistryForType(a);r||o.isForType(a)||o===this.plugins&&a.id?this._exec(n,o,a):Ar(a,l=>{const u=r||this._getRegistryForType(l);this._exec(n,u,l)})})}_exec(n,e,r){const a=Ov(n);Br(r["before"+a],[],r),e[n](r),Br(r["after"+a],[],r)}_getRegistryForType(n){for(let e=0;e<this._typedRegistries.length;e++){const r=this._typedRegistries[e];if(r.isForType(n))return r}return this.plugins}_get(n,e,r){const a=e.get(n);if(void 0===a)throw new Error('"'+n+'" is not a registered '+r+".");return a}},L2=Object.freeze({__proto__:null,BarController:EC,BubbleController:MC,DoughnutController:Fb,LineController:Lb,PolarAreaController:AC,PieController:SC,RadarController:P2,ScatterController:(()=>{class t extends nc{update(e){const r=this._cachedMeta,{data:a=[]}=r,o=this.chart._animationsDisabled;let{start:l,count:u}=Ag(r,a,o);if(this._drawStart=l,this._drawCount=u,Bv(r)&&(l=0,u=a.length),this.options.showLine){const{dataset:m,_dataset:_}=r;m._chart=this.chart,m._datasetIndex=this.index,m._decimated=!!_._decimated,m.points=a;const w=this.resolveDatasetElementOptions(e);w.segment=this.options.segment,this.updateElement(m,void 0,{animated:!o,options:w},e)}this.updateElements(a,l,u,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=Sl.getElement("line")),super.addElements()}updateElements(e,r,a,o){const l="reset"===o,{iScale:u,vScale:m,_stacked:_,_dataset:w}=this._cachedMeta,M=this.resolveDataElementOptions(r,o),O=this.getSharedOptions(M),N=this.includeOptions(o,O),z=u.axis,j=m.axis,{spanGaps:oe,segment:Ne}=this.options,Ie=Ad(oe)?oe:Number.POSITIVE_INFINITY,Ye=this.chart._animationsDisabled||l||"none"===o;let Pt=r>0&&this.getParsed(r-1);for(let Ut=r;Ut<r+a;++Ut){const rn=e[Ut],kt=this.getParsed(Ut),en=Ye?rn:{},tn=cr(kt[j]),xn=en[z]=u.getPixelForValue(kt[z],Ut),Cn=en[j]=l||tn?m.getBasePixel():m.getPixelForValue(_?this.applyStack(m,kt,_):kt[j],Ut);en.skip=isNaN(xn)||isNaN(Cn)||tn,en.stop=Ut>0&&Math.abs(kt[z]-Pt[z])>Ie,Ne&&(en.parsed=kt,en.raw=w.data[Ut]),N&&(en.options=O||this.resolveDataElementOptions(Ut,rn.active?"active":o)),Ye||this.updateElement(rn,Ut,en,o),Pt=kt}this.updateSharedOptions(O,o,M)}getMaxOverflow(){const e=this._cachedMeta,r=e.data||[];if(!this.options.showLine){let m=0;for(let _=r.length-1;_>=0;--_)m=Math.max(m,r[_].size(this.resolveDataElementOptions(_))/2);return m>0&&m}const a=e.dataset,o=a.options&&a.options.borderWidth||0;if(!r.length)return o;const l=r[0].size(this.resolveDataElementOptions(0)),u=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(o,l,u)/2}}return t.id="scatter",t.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},t.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:n=>"("+n.label+", "+n.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}},t})()});function Fc(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var B2={_date:(()=>{class t{constructor(e){this.options=e||{}}init(e){}formats(){return Fc()}parse(e,r){return Fc()}format(e,r){return Fc()}add(e,r,a){return Fc()}diff(e,r,a){return Fc()}startOf(e,r,a){return Fc()}endOf(e,r){return Fc()}}return t.override=function(n){Object.assign(t.prototype,n)},t})()};function Tu(t,n,e,r){const{controller:a,data:o,_sorted:l}=t,u=a._cachedMeta.iScale;if(u&&n===u.axis&&"r"!==n&&l&&o.length){const m=u._reversePixels?Pw:tc;if(!r)return m(o,n,e);if(a._sharedOptions){const _=o[0],w="function"==typeof _.getRange&&_.getRange(n);if(w){const M=m(o,n,e-w),O=m(o,n,e+w);return{lo:M.lo,hi:O.hi}}}}return{lo:0,hi:o.length-1}}function Eu(t,n,e,r,a){const o=t.getSortedVisibleDatasetMetas(),l=e[n];for(let u=0,m=o.length;u<m;++u){const{index:_,data:w}=o[u],{lo:M,hi:O}=Tu(o[u],n,l,a);for(let N=M;N<=O;++N){const z=w[N];z.skip||r(z,_,N)}}}function Nm(t,n,e,r,a){const o=[];return!a&&!t.isPointInArea(n)||Eu(t,e,n,function(u,m,_){!a&&!Bh(u,t.chartArea,0)||u.inRange(n.x,n.y,r)&&o.push({element:u,datasetIndex:m,index:_})},!0),o}function Mu(t,n,e,r,a,o){return o||t.isPointInArea(n)?"r"!==e||r?function VC(t,n,e,r,a,o){let l=[];const u=function UC(t){const n=-1!==t.indexOf("x"),e=-1!==t.indexOf("y");return function(r,a){const o=n?Math.abs(r.x-a.x):0,l=e?Math.abs(r.y-a.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(l,2))}}(e);let m=Number.POSITIVE_INFINITY;return Eu(t,e,n,function _(w,M,O){const N=w.inRange(n.x,n.y,a);if(r&&!N)return;const z=w.getCenterPoint(a);if(!o&&!t.isPointInArea(z)&&!N)return;const oe=u(n,z);oe<m?(l=[{element:w,datasetIndex:M,index:O}],m=oe):oe===m&&l.push({element:w,datasetIndex:M,index:O})}),l}(t,n,e,r,a,o):function ZC(t,n,e,r){let a=[];return Eu(t,e,n,function o(l,u,m){const{startAngle:_,endAngle:w}=l.getProps(["startAngle","endAngle"],r),{angle:M}=Do(l,{x:n.x,y:n.y});Sh(M,_,w)&&a.push({element:l,datasetIndex:u,index:m})}),a}(t,n,e,a):[]}function Ud(t,n,e,r,a){const o=[],l="x"===e?"inXRange":"inYRange";let u=!1;return Eu(t,e,n,(m,_,w)=>{m[l](n[e],a)&&(o.push({element:m,datasetIndex:_,index:w}),u=u||m.inRange(n.x,n.y,a))}),r&&!u?[]:o}var a_={evaluateInteractionItems:Eu,modes:{index(t,n,e,r){const a=Vs(n,t),o=e.axis||"x",l=e.includeInvisible||!1,u=e.intersect?Nm(t,a,o,r,l):Mu(t,a,o,!1,r,l),m=[];return u.length?(t.getSortedVisibleDatasetMetas().forEach(_=>{const w=u[0].index,M=_.data[w];M&&!M.skip&&m.push({element:M,datasetIndex:_.index,index:w})}),m):[]},dataset(t,n,e,r){const a=Vs(n,t),o=e.axis||"xy",l=e.includeInvisible||!1;let u=e.intersect?Nm(t,a,o,r,l):Mu(t,a,o,!1,r,l);if(u.length>0){const m=u[0].datasetIndex,_=t.getDatasetMeta(m).data;u=[];for(let w=0;w<_.length;++w)u.push({element:_[w],datasetIndex:m,index:w})}return u},point:(t,n,e,r)=>Nm(t,Vs(n,t),e.axis||"xy",r,e.includeInvisible||!1),nearest:(t,n,e,r)=>Mu(t,Vs(n,t),e.axis||"xy",e.intersect,r,e.includeInvisible||!1),x:(t,n,e,r)=>Ud(t,Vs(n,t),"x",e.intersect,r),y:(t,n,e,r)=>Ud(t,Vs(n,t),"y",e.intersect,r)}};const Au=["left","top","right","bottom"];function Zd(t,n){return t.filter(e=>e.pos===n)}function Qh(t,n){return t.filter(e=>-1===Au.indexOf(e.pos)&&e.box.axis===n)}function Su(t,n){return t.sort((e,r)=>{const a=n?r:e,o=n?e:r;return a.weight===o.weight?a.index-o.index:a.weight-o.weight})}function Bm(t,n,e,r){return Math.max(t[e],n[e])+Math.max(t[r],n[r])}function Yb(t,n){t.top=Math.max(t.top,n.top),t.left=Math.max(t.left,n.left),t.bottom=Math.max(t.bottom,n.bottom),t.right=Math.max(t.right,n.right)}function HC(t,n,e,r){const{pos:a,box:o}=e,l=t.maxPadding;if(!_r(a)){e.size&&(t[a]-=e.size);const M=r[e.stack]||{size:0,count:1};M.size=Math.max(M.size,e.horizontal?o.height:o.width),e.size=M.size/M.count,t[a]+=e.size}o.getPadding&&Yb(l,o.getPadding());const u=Math.max(0,n.outerWidth-Bm(l,t,"left","right")),m=Math.max(0,n.outerHeight-Bm(l,t,"top","bottom")),_=u!==t.w,w=m!==t.h;return t.w=u,t.h=m,e.horizontal?{same:_,other:w}:{same:w,other:_}}function jC(t,n){const e=n.maxPadding;return function r(a){const o={left:0,top:0,right:0,bottom:0};return a.forEach(l=>{o[l]=Math.max(n[l],e[l])}),o}(t?["left","right"]:["top","bottom"])}function ku(t,n,e,r){const a=[];let o,l,u,m,_,w;for(o=0,l=t.length,_=0;o<l;++o){u=t[o],m=u.box,m.update(u.width||n.w,u.height||n.h,jC(u.horizontal,n));const{same:M,other:O}=HC(n,e,u,r);_|=M&&a.length,w=w||O,m.fullSize||a.push(u)}return _&&ku(a,n,e,r)||w}function Kh(t,n,e,r,a){t.top=e,t.left=n,t.right=n+r,t.bottom=e+a,t.width=r,t.height=a}function Wb(t,n,e,r){const a=e.padding;let{x:o,y:l}=n;for(const u of t){const m=u.box,_=r[u.stack]||{count:1,placed:0,weight:1},w=u.stackWeight/_.weight||1;if(u.horizontal){const M=n.w*w,O=_.size||m.height;El(_.start)&&(l=_.start),m.fullSize?Kh(m,a.left,l,e.outerWidth-a.right-a.left,O):Kh(m,n.left+_.placed,l,M,O),_.start=l,_.placed+=M,l=m.bottom}else{const M=n.h*w,O=_.size||m.width;El(_.start)&&(o=_.start),m.fullSize?Kh(m,o,a.top,O,e.outerHeight-a.bottom-a.top):Kh(m,o,n.top+_.placed,O,M),_.start=o,_.placed+=M,o=m.right}}n.x=o,n.y=l}mr.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Lo={addBox(t,n){t.boxes||(t.boxes=[]),n.fullSize=n.fullSize||!1,n.position=n.position||"top",n.weight=n.weight||0,n._layers=n._layers||function(){return[{z:0,draw(e){n.draw(e)}}]},t.boxes.push(n)},removeBox(t,n){const e=t.boxes?t.boxes.indexOf(n):-1;-1!==e&&t.boxes.splice(e,1)},configure(t,n,e){n.fullSize=e.fullSize,n.position=e.position,n.weight=e.weight},update(t,n,e,r){if(!t)return;const a=Fo(t.options.layout.padding),o=Math.max(n-a.width,0),l=Math.max(e-a.height,0),u=function jb(t){const n=function o_(t){const n=[];let e,r,a,o,l,u;for(e=0,r=(t||[]).length;e<r;++e)a=t[e],({position:o,options:{stack:l,stackWeight:u=1}}=a),n.push({index:e,box:a,pos:o,horizontal:a.isHorizontal(),weight:a.weight,stack:l&&o+l,stackWeight:u});return n}(t),e=Su(n.filter(_=>_.box.fullSize),!0),r=Su(Zd(n,"left"),!0),a=Su(Zd(n,"right")),o=Su(Zd(n,"top"),!0),l=Su(Zd(n,"bottom")),u=Qh(n,"x"),m=Qh(n,"y");return{fullSize:e,leftAndTop:r.concat(o),rightAndBottom:a.concat(m).concat(l).concat(u),chartArea:Zd(n,"chartArea"),vertical:r.concat(a).concat(m),horizontal:o.concat(l).concat(u)}}(t.boxes),m=u.vertical,_=u.horizontal;Ar(t.boxes,j=>{"function"==typeof j.beforeLayout&&j.beforeLayout()});const w=m.reduce((j,oe)=>oe.box.options&&!1===oe.box.options.display?j:j+1,0)||1,M=Object.freeze({outerWidth:n,outerHeight:e,padding:a,availableWidth:o,availableHeight:l,vBoxMaxWidth:o/2/w,hBoxMaxHeight:l/2}),O=Object.assign({},a);Yb(O,Fo(r));const N=Object.assign({maxPadding:O,w:o,h:l,x:a.left,y:a.top},a),z=function l_(t,n){const e=function s_(t){const n={};for(const e of t){const{stack:r,pos:a,stackWeight:o}=e;if(!r||!Au.includes(a))continue;const l=n[r]||(n[r]={count:0,placed:0,weight:0,size:0});l.count++,l.weight+=o}return n}(t),{vBoxMaxWidth:r,hBoxMaxHeight:a}=n;let o,l,u;for(o=0,l=t.length;o<l;++o){u=t[o];const{fullSize:m}=u.box,_=e[u.stack],w=_&&u.stackWeight/_.weight;u.horizontal?(u.width=w?w*r:m&&n.availableWidth,u.height=a):(u.width=r,u.height=w?w*a:m&&n.availableHeight)}return e}(m.concat(_),M);ku(u.fullSize,N,M,z),ku(m,N,M,z),ku(_,N,M,z)&&ku(m,N,M,z),function zb(t){const n=t.maxPadding;function e(r){const a=Math.max(n[r]-t[r],0);return t[r]+=a,a}t.y+=e("top"),t.x+=e("left"),e("right"),e("bottom")}(N),Wb(u.leftAndTop,N,M,z),N.x+=N.w,N.y+=N.h,Wb(u.rightAndBottom,N,M,z),t.chartArea={left:N.left,top:N.top,right:N.left+N.w,bottom:N.top+N.h,height:N.h,width:N.w},Ar(u.chartArea,j=>{const oe=j.box;Object.assign(oe,t.chartArea),oe.update(N.w,N.h,{left:0,top:0,right:0,bottom:0})})}};class gs{acquireContext(n,e){}releaseContext(n){return!1}addEventListener(n,e,r){}removeEventListener(n,e,r){}getDevicePixelRatio(){return 1}getMaximumSize(n,e,r,a){return e=Math.max(0,e||n.width),r=r||n.height,{width:e,height:Math.max(0,a?Math.floor(e/a):r)}}isAttached(n){return!0}updateConfig(n){}}class YC extends gs{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}}const Um="$chartjs",U2={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Zm=t=>null===t||""===t,$b=!!Wg&&{passive:!0};function WC(t,n,e){t.canvas.removeEventListener(n,e,$b)}function Vm(t,n){for(const e of t)if(e===n||e.contains(n))return!0}function GC(t,n,e){const r=t.canvas,a=new MutationObserver(o=>{let l=!1;for(const u of o)l=l||Vm(u.addedNodes,r),l=l&&!Vm(u.removedNodes,r);l&&e()});return a.observe(document,{childList:!0,subtree:!0}),a}function c_(t,n,e){const r=t.canvas,a=new MutationObserver(o=>{let l=!1;for(const u of o)l=l||Vm(u.removedNodes,r),l=l&&!Vm(u.addedNodes,r);l&&e()});return a.observe(document,{childList:!0,subtree:!0}),a}const Jh=new Map;let Qb=0;function Kb(){const t=window.devicePixelRatio;t!==Qb&&(Qb=t,Jh.forEach((n,e)=>{e.currentDevicePixelRatio!==t&&n()}))}function ic(t,n,e){const r=t.canvas,a=r&&Sm(r);if(!a)return;const o=fm((u,m)=>{const _=a.clientWidth;e(u,m),_<a.clientWidth&&e()},window),l=new ResizeObserver(u=>{const m=u[0],_=m.contentRect.width,w=m.contentRect.height;0===_&&0===w||o(_,w)});return l.observe(a),function $C(t,n){Jh.size||window.addEventListener("resize",Kb),Jh.set(t,n)}(t,o),l}function Xh(t,n,e){e&&e.disconnect(),"resize"===n&&function qC(t){Jh.delete(t),Jh.size||window.removeEventListener("resize",Kb)}(t)}function QC(t,n,e){const r=t.canvas,a=fm(o=>{null!==t.ctx&&e(function qb(t,n){const e=U2[t.type]||t.type,{x:r,y:a}=Vs(t,n);return{type:e,chart:n,native:t,x:void 0!==r?r:null,y:void 0!==a?a:null}}(o,t))},t,o=>{const l=o[0];return[l,l.offsetX,l.offsetY]});return function zC(t,n,e){t.addEventListener(n,e,$b)}(r,n,a),a}class KC extends gs{acquireContext(n,e){const r=n&&n.getContext&&n.getContext("2d");return r&&r.canvas===n?(function Gb(t,n){const e=t.style,r=t.getAttribute("height"),a=t.getAttribute("width");if(t[Um]={initial:{height:r,width:a,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",Zm(a)){const o=zh(t,"width");void 0!==o&&(t.width=o)}if(Zm(r))if(""===t.style.height)t.height=t.width/(n||2);else{const o=zh(t,"height");void 0!==o&&(t.height=o)}}(n,e),r):null}releaseContext(n){const e=n.canvas;if(!e[Um])return!1;const r=e[Um].initial;["height","width"].forEach(o=>{const l=r[o];cr(l)?e.removeAttribute(o):e.setAttribute(o,l)});const a=r.style||{};return Object.keys(a).forEach(o=>{e.style[o]=a[o]}),e.width=e.width,delete e[Um],!0}addEventListener(n,e,r){this.removeEventListener(n,e),(n.$proxies||(n.$proxies={}))[e]=({attach:GC,detach:c_,resize:ic}[e]||QC)(n,e,r)}removeEventListener(n,e){const r=n.$proxies||(n.$proxies={}),a=r[e];a&&(({attach:Xh,detach:Xh,resize:Xh}[e]||WC)(n,e,a),r[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,e,r,a){return function km(t,n,e,r){const a=Yg(t),o=Oc(a,"margin"),l=vu(a.maxWidth,t,"clientWidth")||Us,u=vu(a.maxHeight,t,"clientHeight")||Us,m=function tC(t,n,e){let r,a;if(void 0===n||void 0===e){const o=Sm(t);if(o){const l=o.getBoundingClientRect(),u=Yg(o),m=Oc(u,"border","width"),_=Oc(u,"padding");n=l.width-_.width-m.width,e=l.height-_.height-m.height,r=vu(u.maxWidth,o,"clientWidth"),a=vu(u.maxHeight,o,"clientHeight")}else n=t.clientWidth,e=t.clientHeight}return{width:n,height:e,maxWidth:r||Us,maxHeight:a||Us}}(t,n,e);let{width:_,height:w}=m;if("content-box"===a.boxSizing){const M=Oc(a,"border","width"),O=Oc(a,"padding");_-=O.width+M.width,w-=O.height+M.height}return _=Math.max(0,_-o.width),w=Math.max(0,r?Math.floor(_/r):w-o.height),_=Yh(Math.min(_,l,m.maxWidth)),w=Yh(Math.min(w,u,m.maxHeight)),_&&!w&&(w=Yh(_/2)),{width:_,height:w}}(n,e,r,a)}isAttached(n){const e=Sm(n);return!(!e||!e.isConnected)}}class JC{constructor(){this._init=[]}notify(n,e,r,a){"beforeInit"===e&&(this._init=this._createDescriptors(n,!0),this._notify(this._init,n,"install"));const o=a?this._descriptors(n).filter(a):this._descriptors(n),l=this._notify(o,n,e,r);return"afterDestroy"===e&&(this._notify(o,n,"stop"),this._notify(this._init,n,"uninstall")),l}_notify(n,e,r,a){a=a||{};for(const o of n){const l=o.plugin;if(!1===Br(l[r],[e,a,o.options],l)&&a.cancelable)return!1}return!0}invalidate(){cr(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(n){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(n);return this._notifyStateChanges(n),e}_createDescriptors(n,e){const r=n&&n.config,a=Qi(r.options&&r.options.plugins,{}),o=function XC(t){const n={},e=[],r=Object.keys(Sl.plugins.items);for(let o=0;o<r.length;o++)e.push(Sl.getPlugin(r[o]));const a=t.plugins||[];for(let o=0;o<a.length;o++){const l=a[o];-1===e.indexOf(l)&&(e.push(l),n[l.id]=!0)}return{plugins:e,localIds:n}}(r);return!1!==a||e?function d_(t,{plugins:n,localIds:e},r,a){const o=[],l=t.getContext();for(const u of n){const m=u.id,_=eD(r[m],a);null!==_&&o.push({plugin:u,options:tD(t.config,{plugin:u,local:e[m]},_,l)})}return o}(n,o,a,e):[]}_notifyStateChanges(n){const e=this._oldCache||[],r=this._cache,a=(o,l)=>o.filter(u=>!l.some(m=>u.plugin.id===m.plugin.id));this._notify(a(e,r),n,"stop"),this._notify(a(r,e),n,"start")}}function eD(t,n){return n||!1!==t?!0===t?{}:t:null}function tD(t,{plugin:n,local:e},r,a){const o=t.pluginScopeKeys(n),l=t.getOptionScopes(r,o);return e&&n.defaults&&l.push(n.defaults),t.createResolver(l,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function u_(t,n){return((n.datasets||{})[t]||{}).indexAxis||n.indexAxis||(mr.datasets[t]||{}).indexAxis||"x"}function Xb(t,n){return"x"===t||"y"===t?t:n.axis||function Ym(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}(n.position)||t.charAt(0).toLowerCase()}function nD(t){const n=t.options||(t.options={});n.plugins=Qi(n.plugins,{}),n.scales=function h_(t,n){const e=ed[t.type]||{scales:{}},r=n.scales||{},a=u_(t.type,n),o=Object.create(null),l=Object.create(null);return Object.keys(r).forEach(u=>{const m=r[u];if(!_r(m))return console.error(`Invalid scale configuration for scale: ${u}`);if(m._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${u}`);const _=Xb(u,m),w=function jm(t,n){return t===n?"_index_":"_value_"}(_,a),M=e.scales||{};o[_]=o[_]||u,l[u]=Ed(Object.create(null),[{axis:_},m,M[_],M[w]])}),t.data.datasets.forEach(u=>{const m=u.type||t.type,_=u.indexAxis||u_(m,n),M=(ed[m]||{}).scales||{};Object.keys(M).forEach(O=>{const N=function Hm(t,n){let e=t;return"_index_"===t?e=n:"_value_"===t&&(e="x"===n?"y":"x"),e}(O,_),z=u[N+"AxisID"]||o[N]||N;l[z]=l[z]||Object.create(null),Ed(l[z],[{axis:N},r[z],M[O]])})}),Object.keys(l).forEach(u=>{const m=l[u];Ed(m,[mr.scales[m.type],mr.scale])}),l}(t,n)}function f_(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const m_=new Map,p_=new Set;function Iu(t,n){let e=m_.get(t);return e||(e=n(),m_.set(t,e),p_.add(e)),e}const js=(t,n,e)=>{const r=Md(n,e);void 0!==r&&t.add(r)};class zm{constructor(n){this._config=function ey(t){return(t=t||{}).data=f_(t.data),nD(t),t}(n),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=f_(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){const n=this._config;this.clearCache(),nD(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return Iu(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,e){return Iu(`${n}.transition.${e}`,()=>[[`datasets.${n}.transitions.${e}`,`transitions.${e}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,e){return Iu(`${n}-${e}`,()=>[[`datasets.${n}.elements.${e}`,`datasets.${n}`,`elements.${e}`,""]])}pluginScopeKeys(n){const e=n.id;return Iu(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,e){const r=this._scopeCache;let a=r.get(n);return(!a||e)&&(a=new Map,r.set(n,a)),a}getOptionScopes(n,e,r){const{options:a,type:o}=this,l=this._cachedScopes(n,r),u=l.get(e);if(u)return u;const m=new Set;e.forEach(w=>{n&&(m.add(n),w.forEach(M=>js(m,n,M))),w.forEach(M=>js(m,a,M)),w.forEach(M=>js(m,ed[o]||{},M)),w.forEach(M=>js(m,mr,M)),w.forEach(M=>js(m,xm,M))});const _=Array.from(m);return 0===_.length&&_.push(Object.create(null)),p_.has(e)&&l.set(e,_),_}chartOptionScopes(){const{options:n,type:e}=this;return[n,ed[e]||{},mr.datasets[e]||{},{type:e},mr,xm]}resolveNamedOptions(n,e,r,a=[""]){const o={$shared:!0},{resolver:l,subPrefixes:u}=ef(this._resolverCache,n,a);let m=l;(function iD(t,n){const{isScriptable:e,isIndexable:r}=nb(t);for(const a of n){const o=e(a),l=r(a),u=(l||o)&&t[a];if(o&&(Kc(u)||tf(u))||l&&Kr(u))return!0}return!1})(l,e)&&(o.$shared=!1,m=Rd(l,r=Kc(r)?r():r,this.createResolver(n,r,u)));for(const _ of e)o[_]=m[_];return o}createResolver(n,e,r=[""],a){const{resolver:o}=ef(this._resolverCache,n,r);return _r(e)?Rd(o,e,void 0,a):o}}function ef(t,n,e){let r=t.get(n);r||(r=new Map,t.set(n,r));const a=e.join();let o=r.get(a);return o||(o={resolver:tb(n,e),subPrefixes:e.filter(u=>!u.toLowerCase().includes("hover"))},r.set(a,o)),o}const tf=t=>_r(t)&&Object.getOwnPropertyNames(t).reduce((n,e)=>n||Kc(t[e]),!1),ny=["top","bottom","left","right","chartArea"];function iy(t,n){return"top"===t||"bottom"===t||-1===ny.indexOf(t)&&"x"===n}function ry(t,n){return function(e,r){return e[t]===r[t]?e[n]-r[n]:e[t]-r[t]}}function Ou(t){const n=t.chart,e=n.options.animation;n.notifyPlugins("afterRender"),Br(e&&e.onComplete,[t],n)}function rD(t){const n=t.chart,e=n.options.animation;Br(e&&e.onProgress,[t],n)}function aD(t){return jg()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Wm={},ay=t=>{const n=aD(t);return Object.values(Wm).filter(e=>e.canvas===n).pop()};function oD(t,n,e){const r=Object.keys(t);for(const a of r){const o=+a;if(o>=n){const l=t[a];delete t[a],(e>0||o>n)&&(t[o+e]=l)}}}class Vd{constructor(n,e){const r=this.config=new zm(e),a=aD(n),o=ay(a);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const l=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||function Jb(t){return!jg()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?YC:KC}(a)),this.platform.updateConfig(r);const u=this.platform.acquireContext(a,l.aspectRatio),m=u&&u.canvas,_=m&&m.height,w=m&&m.width;this.id=E2(),this.ctx=u,this.canvas=m,this.width=w,this.height=_,this._options=l,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new JC,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function Eg(t,n){let e;return function(...r){return n?(clearTimeout(e),e=setTimeout(t,n,r)):t.apply(this,r),n}}(M=>this.update(M),l.resizeDelay||0),this._dataChanges=[],Wm[this.id]=this,u&&m?(Pc.listen(this,"complete",Ou),Pc.listen(this,"progress",rD),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:n,maintainAspectRatio:e},width:r,height:a,_aspectRatio:o}=this;return cr(n)?e&&o?o:a?r/a:null:n}get data(){return this.config.data}set data(n){this.config.data=n}get options(){return this._options}set options(n){this.config.options=n}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():gb(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Id(this.canvas,this.ctx),this}stop(){return Pc.stop(this),this}resize(n,e){Pc.running(this)?this._resizeBeforeDraw={width:n,height:e}:this._resize(n,e)}_resize(n,e){const r=this.options,l=this.platform.getMaximumSize(this.canvas,n,e,r.maintainAspectRatio&&this.aspectRatio),u=r.devicePixelRatio||this.platform.getDevicePixelRatio(),m=this.width?"resize":"attach";this.width=l.width,this.height=l.height,this._aspectRatio=this.aspectRatio,gb(this,u,!0)&&(this.notifyPlugins("resize",{size:l}),Br(r.onResize,[this,l],this),this.attached&&this._doResize(m)&&this.render())}ensureScalesHaveIDs(){Ar(this.options.scales||{},(r,a)=>{r.id=a})}buildOrUpdateScales(){const n=this.options,e=n.scales,r=this.scales,a=Object.keys(r).reduce((l,u)=>(l[u]=!1,l),{});let o=[];e&&(o=o.concat(Object.keys(e).map(l=>{const u=e[l],m=Xb(l,u),_="r"===m,w="x"===m;return{options:u,dposition:_?"chartArea":w?"bottom":"left",dtype:_?"radialLinear":w?"category":"linear"}}))),Ar(o,l=>{const u=l.options,m=u.id,_=Xb(m,u),w=Qi(u.type,l.dtype);(void 0===u.position||iy(u.position,_)!==iy(l.dposition))&&(u.position=l.dposition),a[m]=!0;let M=null;m in r&&r[m].type===w?M=r[m]:(M=new(Sl.getScale(w))({id:m,type:w,ctx:this.ctx,chart:this}),r[M.id]=M),M.init(u,n)}),Ar(a,(l,u)=>{l||delete r[u]}),Ar(r,l=>{Lo.configure(this,l,l.options),Lo.addBox(this,l)})}_updateMetasets(){const n=this._metasets,e=this.data.datasets.length,r=n.length;if(n.sort((a,o)=>a.index-o.index),r>e){for(let a=e;a<r;++a)this._destroyDatasetMeta(a);n.splice(e,r-e)}this._sortedMetasets=n.slice(0).sort(ry("order","index"))}_removeUnreferencedMetasets(){const{_metasets:n,data:{datasets:e}}=this;n.length>e.length&&delete this._stacks,n.forEach((r,a)=>{0===e.filter(o=>o===r._dataset).length&&this._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const n=[],e=this.data.datasets;let r,a;for(this._removeUnreferencedMetasets(),r=0,a=e.length;r<a;r++){const o=e[r];let l=this.getDatasetMeta(r);const u=o.type||this.config.type;if(l.type&&l.type!==u&&(this._destroyDatasetMeta(r),l=this.getDatasetMeta(r)),l.type=u,l.indexAxis=o.indexAxis||u_(u,this.options),l.order=o.order||0,l.index=r,l.label=""+o.label,l.visible=this.isDatasetVisible(r),l.controller)l.controller.updateIndex(r),l.controller.linkScales();else{const m=Sl.getController(u),{datasetElementType:_,dataElementType:w}=mr.datasets[u];Object.assign(m.prototype,{dataElementType:Sl.getElement(w),datasetElementType:_&&Sl.getElement(_)}),l.controller=new m(this,r),n.push(l.controller)}}return this._updateMetasets(),n}_resetElements(){Ar(this.data.datasets,(n,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(n){const e=this.config;e.update();const r=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:n,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let l=0;for(let _=0,w=this.data.datasets.length;_<w;_++){const{controller:M}=this.getDatasetMeta(_),O=!a&&-1===o.indexOf(M);M.buildOrUpdateElements(O),l=Math.max(+M.getMaxOverflow(),l)}l=this._minPadding=r.layout.autoPadding?l:0,this._updateLayout(l),a||Ar(o,_=>{_.reset()}),this._updateDatasets(n),this.notifyPlugins("afterUpdate",{mode:n}),this._layers.sort(ry("z","_idx"));const{_active:u,_lastEvent:m}=this;m?this._eventHandler(m,!0):u.length&&this._updateHoverStyles(u,u,!0),this.render()}_updateScales(){Ar(this.scales,n=>{Lo.removeBox(this,n)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const n=this.options,e=new Set(Object.keys(this._listeners)),r=new Set(n.events);(!xg(e,r)||!!this._responsiveListeners!==n.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:n}=this,e=this._getUniformDataChanges()||[];for(const{method:r,start:a,count:o}of e)oD(n,a,"_removeElements"===r?-o:o)}_getUniformDataChanges(){const n=this._dataChanges;if(!n||!n.length)return;this._dataChanges=[];const e=this.data.datasets.length,r=o=>new Set(n.filter(l=>l[0]===o).map((l,u)=>u+","+l.splice(1).join(","))),a=r(0);for(let o=1;o<e;o++)if(!xg(a,r(o)))return;return Array.from(a).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(n){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Lo.update(this,this.width,this.height,n);const e=this.chartArea,r=e.width<=0||e.height<=0;this._layers=[],Ar(this.boxes,a=>{r&&"chartArea"===a.position||(a.configure&&a.configure(),this._layers.push(...a._layers()))},this),this._layers.forEach((a,o)=>{a._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(n){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:n,cancelable:!0})){for(let e=0,r=this.data.datasets.length;e<r;++e)this.getDatasetMeta(e).controller.configure();for(let e=0,r=this.data.datasets.length;e<r;++e)this._updateDataset(e,Kc(n)?n({datasetIndex:e}):n);this.notifyPlugins("afterDatasetsUpdate",{mode:n})}}_updateDataset(n,e){const r=this.getDatasetMeta(n),a={meta:r,index:n,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",a)&&(r.controller._update(e),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Pc.has(this)?this.attached&&!Pc.running(this)&&Pc.start(this):(this.draw(),Ou({chart:this})))}draw(){let n;if(this._resizeBeforeDraw){const{width:r,height:a}=this._resizeBeforeDraw;this._resize(r,a),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(n=0;n<e.length&&e[n].z<=0;++n)e[n].draw(this.chartArea);for(this._drawDatasets();n<e.length;++n)e[n].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(n){const e=this._sortedMetasets,r=[];let a,o;for(a=0,o=e.length;a<o;++a){const l=e[a];(!n||l.visible)&&r.push(l)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const n=this.getSortedVisibleDatasetMetas();for(let e=n.length-1;e>=0;--e)this._drawDataset(n[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(n){const e=this.ctx,r=n._clip,a=!r.disabled,o=this.chartArea,l={meta:n,index:n.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",l)&&(a&&Cm(e,{left:!1===r.left?0:o.left-r.left,right:!1===r.right?this.width:o.right+r.right,top:!1===r.top?0:o.top-r.top,bottom:!1===r.bottom?this.height:o.bottom+r.bottom}),n.controller.draw(),a&&Dm(e),l.cancelable=!1,this.notifyPlugins("afterDatasetDraw",l))}isPointInArea(n){return Bh(n,this.chartArea,this._minPadding)}getElementsAtEventForMode(n,e,r,a){const o=a_.modes[e];return"function"==typeof o?o(this,n,r,a):[]}getDatasetMeta(n){const e=this.data.datasets[n],r=this._metasets;let a=r.filter(o=>o&&o._dataset===e).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:n,_dataset:e,_parsed:[],_sorted:!1},r.push(a)),a}getContext(){return this.$context||(this.$context=Pd(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(n){const e=this.data.datasets[n];if(!e)return!1;const r=this.getDatasetMeta(n);return"boolean"==typeof r.hidden?!r.hidden:!e.hidden}setDatasetVisibility(n,e){this.getDatasetMeta(n).hidden=!e}toggleDataVisibility(n){this._hiddenIndices[n]=!this._hiddenIndices[n]}getDataVisibility(n){return!this._hiddenIndices[n]}_updateVisibility(n,e,r){const a=r?"show":"hide",o=this.getDatasetMeta(n),l=o.controller._resolveAnimations(void 0,a);El(e)?(o.data[e].hidden=!r,this.update()):(this.setDatasetVisibility(n,r),l.update(o,{visible:r}),this.update(u=>u.datasetIndex===n?a:void 0))}hide(n,e){this._updateVisibility(n,e,!1)}show(n,e){this._updateVisibility(n,e,!0)}_destroyDatasetMeta(n){const e=this._metasets[n];e&&e.controller&&e.controller._destroy(),delete this._metasets[n]}_stop(){let n,e;for(this.stop(),Pc.remove(this),n=0,e=this.data.datasets.length;n<e;++n)this._destroyDatasetMeta(n)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:n,ctx:e}=this;this._stop(),this.config.clearCache(),n&&(this.unbindEvents(),Id(n,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete Wm[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...n){return this.canvas.toDataURL(...n)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const n=this._listeners,e=this.platform,r=(o,l)=>{e.addEventListener(this,o,l),n[o]=l},a=(o,l,u)=>{o.offsetX=l,o.offsetY=u,this._eventHandler(o)};Ar(this.options.events,o=>r(o,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const n=this._responsiveListeners,e=this.platform,r=(m,_)=>{e.addEventListener(this,m,_),n[m]=_},a=(m,_)=>{n[m]&&(e.removeEventListener(this,m,_),delete n[m])},o=(m,_)=>{this.canvas&&this.resize(m,_)};let l;const u=()=>{a("attach",u),this.attached=!0,this.resize(),r("resize",o),r("detach",l)};l=()=>{this.attached=!1,a("resize",o),this._stop(),this._resize(0,0),r("attach",u)},e.isAttached(this.canvas)?u():l()}unbindEvents(){Ar(this._listeners,(n,e)=>{this.platform.removeEventListener(this,e,n)}),this._listeners={},Ar(this._responsiveListeners,(n,e)=>{this.platform.removeEventListener(this,e,n)}),this._responsiveListeners=void 0}updateHoverStyle(n,e,r){const a=r?"set":"remove";let o,l,u,m;for("dataset"===e&&(o=this.getDatasetMeta(n[0].datasetIndex),o.controller["_"+a+"DatasetHoverStyle"]()),u=0,m=n.length;u<m;++u){l=n[u];const _=l&&this.getDatasetMeta(l.datasetIndex).controller;_&&_[a+"HoverStyle"](l.element,l.datasetIndex,l.index)}}getActiveElements(){return this._active||[]}setActiveElements(n){const e=this._active||[],r=n.map(({datasetIndex:o,index:l})=>{const u=this.getDatasetMeta(o);if(!u)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:u.data[l],index:l}});!yg(r,e)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,e))}notifyPlugins(n,e,r){return this._plugins.notify(this,n,e,r)}_updateHoverStyles(n,e,r){const a=this.options.hover,o=(m,_)=>m.filter(w=>!_.some(M=>w.datasetIndex===M.datasetIndex&&w.index===M.index)),l=o(e,n),u=r?n:o(n,e);l.length&&this.updateHoverStyle(l,a.mode,!1),u.length&&a.mode&&this.updateHoverStyle(u,a.mode,!0)}_eventHandler(n,e){const r={event:n,replay:e,cancelable:!0,inChartArea:this.isPointInArea(n)},a=l=>(l.options.events||this.options.events).includes(n.native.type);if(!1===this.notifyPlugins("beforeEvent",r,a))return;const o=this._handleEvent(n,e,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,a),(o||r.changed)&&this.render(),this}_handleEvent(n,e,r){const{_active:a=[],options:o}=this,u=this._getActiveElements(n,a,r,e),m=function wg(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(n),_=function sD(t,n,e,r){return e&&"mouseout"!==t.type?r?n:t:null}(n,this._lastEvent,r,m);r&&(this._lastEvent=null,Br(o.onHover,[n,u,this],this),m&&Br(o.onClick,[n,u,this],this));const w=!yg(u,a);return(w||e)&&(this._active=u,this._updateHoverStyles(u,a,e)),this._lastEvent=_,w}_getActiveElements(n,e,r,a){if("mouseout"===n.type)return[];if(!r)return e;const o=this.options.hover;return this.getElementsAtEventForMode(n,o.mode,o,a)}}const oy=()=>Ar(Vd.instances,t=>t._plugins.invalidate()),td=!0;function g_(t,n,e){const{startAngle:r,pixelMargin:a,x:o,y:l,outerRadius:u,innerRadius:m}=n;let _=a/u;t.beginPath(),t.arc(o,l,u,r-_,e+_),m>a?(_=a/m,t.arc(o,l,m,e+_,r-_,!0)):t.arc(o,l,a,e+wa,r-wa),t.closePath(),t.clip()}function nd(t,n,e,r){return{x:e+t*Math.cos(n),y:r+t*Math.sin(n)}}function v_(t,n,e,r,a,o){const{x:l,y:u,startAngle:m,pixelMargin:_,innerRadius:w}=n,M=Math.max(n.outerRadius+r+e-_,0),O=w>0?w+r+e+_:0;let N=0;const z=a-m;if(r){const Bn=((w>0?w-r:0)+(M>0?M-r:0))/2;N=(z-(0!==Bn?z*Bn/(Bn+r):z))/2}const oe=(z-Math.max(.001,z*M-e/ea)/M)/2,Ne=m+oe+N,Ie=a-oe-N,{outerStart:Ye,outerEnd:Pt,innerStart:Ut,innerEnd:rn}=function lD(t,n,e,r){const a=function __(t){return Em(t,["outerStart","outerEnd","innerStart","innerEnd"])}(t.options.borderRadius),o=(e-n)/2,l=Math.min(o,r*n/2),u=m=>{const _=(e-Math.min(o,m))*r/2;return Ga(m,0,Math.min(o,_))};return{outerStart:u(a.outerStart),outerEnd:u(a.outerEnd),innerStart:Ga(a.innerStart,0,l),innerEnd:Ga(a.innerEnd,0,l)}}(n,O,M,Ie-Ne),kt=M-Ye,en=M-Pt,tn=Ne+Ye/kt,xn=Ie-Pt/en,Cn=O+Ut,mn=O+rn,Xn=Ne+Ut/Cn,gi=Ie-rn/mn;if(t.beginPath(),o){if(t.arc(l,u,M,tn,xn),Pt>0){const Bn=nd(en,xn,l,u);t.arc(Bn.x,Bn.y,Pt,xn,Ie+wa)}const $n=nd(mn,Ie,l,u);if(t.lineTo($n.x,$n.y),rn>0){const Bn=nd(mn,gi,l,u);t.arc(Bn.x,Bn.y,rn,Ie+wa,gi+Math.PI)}if(t.arc(l,u,O,Ie-rn/O,Ne+Ut/O,!0),Ut>0){const Bn=nd(Cn,Xn,l,u);t.arc(Bn.x,Bn.y,Ut,Xn+Math.PI,Ne-wa)}const Un=nd(kt,Ne,l,u);if(t.lineTo(Un.x,Un.y),Ye>0){const Bn=nd(kt,tn,l,u);t.arc(Bn.x,Bn.y,Ye,Ne-wa,tn)}}else{t.moveTo(l,u);const $n=Math.cos(tn)*M+l,Un=Math.sin(tn)*M+u;t.lineTo($n,Un);const Bn=Math.cos(xn)*M+l,li=Math.sin(xn)*M+u;t.lineTo(Bn,li)}t.closePath()}Object.defineProperties(Vd,{defaults:{enumerable:td,value:mr},instances:{enumerable:td,value:Wm},overrides:{enumerable:td,value:ed},registry:{enumerable:td,value:Sl},version:{enumerable:td,value:"3.9.1"},getChart:{enumerable:td,value:ay},register:{enumerable:td,value:(...t)=>{Sl.add(...t),oy()}},unregister:{enumerable:td,value:(...t)=>{Sl.remove(...t),oy()}}});class nf extends dl{constructor(n){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,e,r){const a=this.getProps(["x","y"],r),{angle:o,distance:l}=Do(a,{x:n,y:e}),{startAngle:u,endAngle:m,innerRadius:_,outerRadius:w,circumference:M}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),O=this.options.spacing/2,z=Qi(M,m-u)>=Fr||Sh(o,u,m),j=ec(l,_+O,w+O);return z&&j}getCenterPoint(n){const{x:e,y:r,startAngle:a,endAngle:o,innerRadius:l,outerRadius:u}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],n),{offset:m,spacing:_}=this.options,w=(a+o)/2,M=(l+u+_+m)/2;return{x:e+Math.cos(w)*M,y:r+Math.sin(w)*M}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:e,circumference:r}=this,a=(e.offset||0)/2,o=(e.spacing||0)/2,l=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=r>Fr?Math.floor(r/Fr):0,0===r||this.innerRadius<0||this.outerRadius<0)return;n.save();let u=0;if(a){u=a/2;const _=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(_)*u,Math.sin(_)*u),this.circumference>=ea&&(u=a)}n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor;const m=function cD(t,n,e,r,a){const{fullCircles:o,startAngle:l,circumference:u}=n;let m=n.endAngle;if(o){v_(t,n,e,r,l+Fr,a);for(let _=0;_<o;++_)t.fill();isNaN(u)||(m=l+u%Fr,u%Fr==0&&(m+=Fr))}return v_(t,n,e,r,m,a),t.fill(),m}(n,this,u,o,l);(function uD(t,n,e,r,a,o){const{options:l}=n,{borderWidth:u,borderJoinStyle:m}=l,_="inner"===l.borderAlign;u&&(_?(t.lineWidth=2*u,t.lineJoin=m||"round"):(t.lineWidth=u,t.lineJoin=m||"bevel"),n.fullCircles&&function dD(t,n,e){const{x:r,y:a,startAngle:o,pixelMargin:l,fullCircles:u}=n,m=Math.max(n.outerRadius-l,0),_=n.innerRadius+l;let w;for(e&&g_(t,n,o+Fr),t.beginPath(),t.arc(r,a,_,o+Fr,o,!0),w=0;w<u;++w)t.stroke();for(t.beginPath(),t.arc(r,a,m,o,o+Fr),w=0;w<u;++w)t.stroke()}(t,n,_),_&&g_(t,n,a),v_(t,n,e,r,a,o),t.stroke())})(n,this,u,o,m,l),n.restore()}}function sy(t,n,e=n){t.lineCap=Qi(e.borderCapStyle,n.borderCapStyle),t.setLineDash(Qi(e.borderDash,n.borderDash)),t.lineDashOffset=Qi(e.borderDashOffset,n.borderDashOffset),t.lineJoin=Qi(e.borderJoinStyle,n.borderJoinStyle),t.lineWidth=Qi(e.borderWidth,n.borderWidth),t.strokeStyle=Qi(e.borderColor,n.borderColor)}function hD(t,n,e){t.lineTo(e.x,e.y)}function b_(t,n,e={}){const r=t.length,{start:a=0,end:o=r-1}=e,{start:l,end:u}=n,m=Math.max(a,l),_=Math.min(o,u);return{count:r,start:m,loop:n.loop,ilen:_<m&&!(a<l&&o<l||a>u&&o>u)?r+_-m:_-m}}function fD(t,n,e,r){const{points:a,options:o}=n,{count:l,start:u,loop:m,ilen:_}=b_(a,e,r),w=function ly(t){return t.stepped?zw:t.tension||"monotone"===t.cubicInterpolationMode?Xv:hD}(o);let N,z,j,{move:M=!0,reverse:O}=r||{};for(N=0;N<=_;++N)z=a[(u+(O?_-N:N))%l],!z.skip&&(M?(t.moveTo(z.x,z.y),M=!1):w(t,j,z,O,o.stepped),j=z);return m&&(z=a[(u+(O?_:0))%l],w(t,j,z,O,o.stepped)),!!m}function Z2(t,n,e,r){const a=n.points,{count:o,start:l,ilen:u}=b_(a,e,r),{move:m=!0,reverse:_}=r||{};let O,N,z,j,oe,Ne,w=0,M=0;const Ie=Pt=>(l+(_?u-Pt:Pt))%o,Ye=()=>{j!==oe&&(t.lineTo(w,oe),t.lineTo(w,j),t.lineTo(w,Ne))};for(m&&(N=a[Ie(0)],t.moveTo(N.x,N.y)),O=0;O<=u;++O){if(N=a[Ie(O)],N.skip)continue;const Pt=N.x,Ut=N.y,rn=0|Pt;rn===z?(Ut<j?j=Ut:Ut>oe&&(oe=Ut),w=(M*w+Pt)/++M):(Ye(),t.lineTo(Pt,Ut),z=rn,M=0,j=oe=Ut),Ne=Ut}Ye()}function Gm(t){const n=t.options;return t._decimated||t._loop||n.tension||"monotone"===n.cubicInterpolationMode||n.stepped||n.borderDash&&n.borderDash.length?fD:Z2}nf.id="arc",nf.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},nf.defaultRoutes={backgroundColor:"backgroundColor"};const pD="function"==typeof Path2D;let qm=(()=>{class t extends dl{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,r){const a=this.options;!a.tension&&"monotone"!==a.cubicInterpolationMode||a.stepped||this._pointsUpdated||(Xw(this._points,a,e,a.spanGaps?this._loop:this._fullLoop,r),this._pointsUpdated=!0)}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function sC(t,n){const e=t.points,r=t.options.spanGaps,a=e.length;if(!a)return[];const o=!!t._loop,{start:l,end:u}=function oC(t,n,e,r){let a=0,o=n-1;if(e&&!r)for(;a<n&&!t[a].skip;)a++;for(;a<n&&t[a].skip;)a++;for(a%=n,e&&(o+=a);o>a&&t[o%n].skip;)o--;return o%=n,{start:a,end:o}}(e,a,o,r);return function Fd(t,n,e,r){return r&&r.setContext&&e?function Gh(t,n,e,r){const a=t._chart.getContext(),o=xb(t.options),{_datasetIndex:l,options:{spanGaps:u}}=t,m=e.length,_=[];let w=o,M=n[0].start,O=M;function N(z,j,oe,Ne){const Ie=u?-1:1;if(z!==j){for(z+=m;e[z%m].skip;)z-=Ie;for(;e[j%m].skip;)j+=Ie;z%m!=j%m&&(_.push({start:z%m,end:j%m,loop:oe,style:Ne}),w=Ne,M=j%m)}}for(const z of n){M=u?M:z.start;let oe,j=e[M%m];for(O=M+1;O<=z.end;O++){const Ne=e[O%m];oe=xb(r.setContext(Pd(a,{type:"segment",p0:j,p1:Ne,p0DataIndex:(O-1)%m,p1DataIndex:O%m,datasetIndex:l}))),wb(oe,w)&&N(M,O-1,z.loop,w),j=Ne,w=oe}M<O-1&&N(M,O-1,z.loop,w)}return _}(t,n,e,r):n}(t,!0===r?[{start:l,end:u,loop:o}]:function Wh(t,n,e,r){const a=t.length,o=[];let m,l=n,u=t[n];for(m=n+1;m<=e;++m){const _=t[m%a];_.skip||_.stop?u.skip||(o.push({start:n%a,end:(m-1)%a,loop:r=!1}),n=l=_.stop?m:null):(l=m,u.skip&&(n=m)),u=_}return null!==l&&o.push({start:n%a,end:l%a,loop:r}),o}(e,l,u<l?u+a:u,!!t._fullLoop&&0===l&&u===a-1),e,n)}(this,this.options.segment))}first(){const e=this.segments;return e.length&&this.points[e[0].start]}last(){const e=this.segments,a=e.length;return a&&this.points[e[a-1].end]}interpolate(e,r){const a=this.options,o=e[r],l=this.points,u=aC(this,{property:r,start:o,end:o});if(!u.length)return;const m=[],_=function V2(t){return t.stepped?_b:t.tension||"monotone"===t.cubicInterpolationMode?Gg:Hs}(a);let w,M;for(w=0,M=u.length;w<M;++w){const{start:O,end:N}=u[w],z=l[O],j=l[N];if(z===j){m.push(z);continue}const Ne=_(z,j,Math.abs((o-z[r])/(j[r]-z[r])),a.stepped);Ne[r]=e[r],m.push(Ne)}return 1===m.length?m[0]:m}pathSegment(e,r,a){return Gm(this)(e,this,r,a)}path(e,r,a){const o=this.segments,l=Gm(this);let u=this._loop;r=r||0,a=a||this.points.length-r;for(const m of o)u&=l(e,this,m,{start:r,end:r+a-1});return!!u}draw(e,r,a,o){(this.points||[]).length&&(this.options||{}).borderWidth&&(e.save(),function y_(t,n,e,r){pD&&!n.options.segment?function $m(t,n,e,r){let a=n._path;a||(a=n._path=new Path2D,n.path(a,e,r)&&a.closePath()),sy(t,n.options),t.stroke(a)}(t,n,e,r):function mD(t,n,e,r){const{segments:a,options:o}=n,l=Gm(n);for(const u of a)sy(t,o,u.style),t.beginPath(),l(t,n,u,{start:e,end:e+r-1})&&t.closePath(),t.stroke()}(t,n,e,r)}(e,this,a,o),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}return t.id="line",t.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},t.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},t.descriptors={_scriptable:!0,_indexable:n=>"borderDash"!==n&&"fill"!==n},t})();function kl(t,n,e,r){const a=t.options,{[e]:o}=t.getProps([e],r);return Math.abs(n-o)<a.radius+a.hitRadius}let Pu=(()=>{class t extends dl{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,r,a){const o=this.options,{x:l,y:u}=this.getProps(["x","y"],a);return Math.pow(e-l,2)+Math.pow(r-u,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(e,r){return kl(this,e,"x",r)}inYRange(e,r){return kl(this,e,"y",r)}getCenterPoint(e){const{x:r,y:a}=this.getProps(["x","y"],e);return{x:r,y:a}}size(e){let r=(e=e||this.options||{}).radius||0;return r=Math.max(r,r&&e.hoverRadius||0),2*(r+(r&&e.borderWidth||0))}draw(e,r){const a=this.options;this.skip||a.radius<.1||!Bh(this,r,this.size(a)/2)||(e.strokeStyle=a.borderColor,e.lineWidth=a.borderWidth,e.fillStyle=a.backgroundColor,Lg(e,a,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}return t.id="point",t.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},t.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},t})();function To(t,n){const{x:e,y:r,base:a,width:o,height:l}=t.getProps(["x","y","base","width","height"],n);let u,m,_,w,M;return t.horizontal?(M=l/2,u=Math.min(e,a),m=Math.max(e,a),_=r-M,w=r+M):(M=o/2,u=e-M,m=e+M,_=Math.min(r,a),w=Math.max(r,a)),{left:u,top:_,right:m,bottom:w}}function _s(t,n,e,r){return t?0:Ga(n,e,r)}function id(t,n,e,r){const a=null===n,o=null===e,u=t&&!(a&&o)&&To(t,r);return u&&(a||ec(n,u.left,u.right))&&(o||ec(e,u.top,u.bottom))}function Fu(t,n){t.rect(n.x,n.y,n.w,n.h)}function rd(t,n,e={}){const r=t.x!==e.x?-n:0,a=t.y!==e.y?-n:0;return{x:t.x+r,y:t.y+a,w:t.w+((t.x+t.w!==e.x+e.w?n:0)-r),h:t.h+((t.y+t.h!==e.y+e.h?n:0)-a),radius:t.radius}}class rc extends dl{constructor(n){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,n&&Object.assign(this,n)}draw(n){const{inflateAmount:e,options:{borderColor:r,backgroundColor:a}}=this,{inner:o,outer:l}=function x_(t){const n=To(t),e=n.right-n.left,r=n.bottom-n.top,a=function Qm(t,n,e){const a=t.borderSkipped,o=Ng(t.options.borderWidth);return{t:_s(a.top,o.top,0,e),r:_s(a.right,o.right,0,n),b:_s(a.bottom,o.bottom,0,e),l:_s(a.left,o.left,0,n)}}(t,e/2,r/2),o=function ul(t,n,e){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),a=t.options.borderRadius,o=_u(a),l=Math.min(n,e),u=t.borderSkipped,m=r||_r(a);return{topLeft:_s(!m||u.top||u.left,o.topLeft,0,l),topRight:_s(!m||u.top||u.right,o.topRight,0,l),bottomLeft:_s(!m||u.bottom||u.left,o.bottomLeft,0,l),bottomRight:_s(!m||u.bottom||u.right,o.bottomRight,0,l)}}(t,e/2,r/2);return{outer:{x:n.left,y:n.top,w:e,h:r,radius:o},inner:{x:n.left+a.l,y:n.top+a.t,w:e-a.l-a.r,h:r-a.t-a.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,o.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(a.b,a.r))}}}}(this),u=function Ru(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}(l.radius)?Uh:Fu;n.save(),(l.w!==o.w||l.h!==o.h)&&(n.beginPath(),u(n,rd(l,e,o)),n.clip(),u(n,rd(o,-e,l)),n.fillStyle=r,n.fill("evenodd")),n.beginPath(),u(n,rd(o,e)),n.fillStyle=a,n.fill(),n.restore()}inRange(n,e,r){return id(this,n,e,r)}inXRange(n,e){return id(this,n,null,e)}inYRange(n,e){return id(this,null,n,e)}getCenterPoint(n){const{x:e,y:r,base:a,horizontal:o}=this.getProps(["x","y","base","horizontal"],n);return{x:o?(e+a)/2:e,y:o?r:(r+a)/2}}getRange(n){return"x"===n?this.width/2:this.height/2}}rc.id="bar",rc.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},rc.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Lu=Object.freeze({__proto__:null,ArcElement:nf,LineElement:qm,PointElement:Pu,BarElement:rc});function Hd(t){if(t._decimated){const n=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:n})}}function w_(t){t.data.datasets.forEach(n=>{Hd(n)})}var dy={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,n,e)=>{if(!e.enabled)return void w_(t);const r=t.width;t.data.datasets.forEach((a,o)=>{const{_data:l,indexAxis:u}=a,m=t.getDatasetMeta(o),_=l||a.data;if("y"===Yr([u,t.options.indexAxis])||!m.controller.supportsDecimation)return;const w=t.scales[m.xAxisID];if("linear"!==w.type&&"time"!==w.type||t.options.parsing)return;let z,{start:M,count:O}=function cy(t,n){const e=n.length;let a,r=0;const{iScale:o}=t,{min:l,max:u,minDefined:m,maxDefined:_}=o.getUserBounds();return m&&(r=Ga(tc(n,o.axis,l).lo,0,e-1)),a=_?Ga(tc(n,o.axis,u).hi+1,r,e)-r:e-r,{start:r,count:a}}(m,_);if(O<=(e.threshold||4*r))Hd(a);else{switch(cr(l)&&(a._data=_,delete a.data,Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(j){this._data=j}})),e.algorithm){case"lttb":z=function Nu(t,n,e,r,a){const o=a.samples||r;if(o>=e)return t.slice(n,n+e);const l=[],u=(e-2)/(o-2);let m=0;const _=n+e-1;let M,O,N,z,j,w=n;for(l[m++]=t[w],M=0;M<o-2;M++){let Ie,oe=0,Ne=0;const Ye=Math.floor((M+1)*u)+1+n,Pt=Math.min(Math.floor((M+2)*u)+1,e)+n,Ut=Pt-Ye;for(Ie=Ye;Ie<Pt;Ie++)oe+=t[Ie].x,Ne+=t[Ie].y;oe/=Ut,Ne/=Ut;const rn=Math.floor(M*u)+1+n,kt=Math.min(Math.floor((M+1)*u)+1,e)+n,{x:en,y:tn}=t[w];for(N=z=-1,Ie=rn;Ie<kt;Ie++)z=.5*Math.abs((en-oe)*(t[Ie].y-tn)-(en-t[Ie].x)*(Ne-tn)),z>N&&(N=z,O=t[Ie],j=Ie);l[m++]=O,w=j}return l[m++]=t[_],l}(_,M,O,r,e);break;case"min-max":z=function Bu(t,n,e,r){let l,u,m,_,w,M,O,N,z,j,a=0,o=0;const oe=[],Ie=t[n].x,Pt=t[n+e-1].x-Ie;for(l=n;l<n+e;++l){u=t[l],m=(u.x-Ie)/Pt*r,_=u.y;const Ut=0|m;if(Ut===w)_<z?(z=_,M=l):_>j&&(j=_,O=l),a=(o*a+u.x)/++o;else{const rn=l-1;if(!cr(M)&&!cr(O)){const kt=Math.min(M,O),en=Math.max(M,O);kt!==N&&kt!==rn&&oe.push({...t[kt],x:a}),en!==N&&en!==rn&&oe.push({...t[en],x:a})}l>0&&rn!==N&&oe.push(t[rn]),oe.push(u),w=Ut,o=0,z=j=_,M=O=N=l}}return oe}(_,M,O,r);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}a._decimated=z}})},destroy(t){w_(t)}};function Km(t,n,e,r){if(r)return;let a=n[t],o=e[t];return"angle"===t&&(a=ms(a),o=ms(o)),{property:t,start:a,end:o}}function Jm(t,n,e){for(;n>t;n--){const r=e[n];if(!isNaN(r.x)&&!isNaN(r.y))break}return n}function C_(t,n,e,r){return t&&n?r(t[e],n[e]):t?t[e]:n?n[e]:0}function D_(t,n){let e=[],r=!1;return Kr(t)?(r=!0,e=t):e=function hy(t,n){const{x:e=null,y:r=null}=t||{},a=n.points,o=[];return n.segments.forEach(({start:l,end:u})=>{u=Jm(l,u,a);const m=a[l],_=a[u];null!==r?(o.push({x:m.x,y:r}),o.push({x:_.x,y:r})):null!==e&&(o.push({x:e,y:m.y}),o.push({x:e,y:_.y}))}),o}(t,n),e.length?new qm({points:e,options:{tension:0},_loop:r,_fullLoop:r}):null}function fy(t){return t&&!1!==t.fill}function gD(t,n,e){let a=t[n].fill;const o=[n];let l;if(!e)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!Aa(a))return a;if(l=t[a],!l)return!1;if(l.visible)return a;o.push(a),a=l.fill}return!1}function my(t,n,e){const r=function E_(t){const n=t.options,e=n.fill;let r=Qi(e&&e.target,e);return void 0===r&&(r=!!n.backgroundColor),!1!==r&&null!==r&&(!0===r?"origin":r)}(t);if(_r(r))return!isNaN(r.value)&&r;let a=parseFloat(r);return Aa(a)&&Math.floor(a)===a?function _D(t,n,e,r){return("-"===t||"+"===t)&&(e=n+e),!(e===n||e<0||e>=r)&&e}(r[0],n,a,e):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function ep(t,n,e){const r=[];for(let a=0;a<e.length;a++){const o=e[a],{first:l,last:u,point:m}=M_(o,n,"x");if(!(!m||l&&u))if(l)r.unshift(m);else if(t.push(m),!u)break}t.push(...r)}function M_(t,n,e){const r=t.interpolate(n,e);if(!r)return{};const a=r[e],o=t.segments,l=t.points;let u=!1,m=!1;for(let _=0;_<o.length;_++){const w=o[_],M=l[w.start][e],O=l[w.end][e];if(ec(a,M,O)){u=a===M,m=a===O;break}}return{first:u,last:m,point:r}}class gy{constructor(n){this.x=n.x,this.y=n.y,this.radius=n.radius}pathSegment(n,e,r){const{x:a,y:o,radius:l}=this;return n.arc(a,o,l,(e=e||{start:0,end:Fr}).end,e.start,!0),!r.bounds}interpolate(n){const{x:e,y:r,radius:a}=this,o=n.angle;return{x:e+Math.cos(o)*a,y:r+Math.sin(o)*a,angle:o}}}function ip(t,n,e){const r=function tp(t){const{chart:n,fill:e,line:r}=t;if(Aa(e))return function np(t,n){const e=t.getDatasetMeta(n);return e&&t.isDatasetVisible(n)?e.dataset:null}(n,e);if("stack"===e)return function vD(t){const{scale:n,index:e,line:r}=t,a=[],o=r.segments,l=r.points,u=function Xm(t,n){const e=[],r=t.getMatchingVisibleMetas("line");for(let a=0;a<r.length;a++){const o=r[a];if(o.index===n)break;o.hidden||e.unshift(o.dataset)}return e}(n,e);u.push(D_({x:null,y:n.bottom},r));for(let m=0;m<o.length;m++){const _=o[m];for(let w=_.start;w<=_.end;w++)ep(a,l[w],u)}return new qm({points:a,options:{}})}(t);if("shape"===e)return!0;const a=function A_(t){return(t.scale||{}).getPointPositionForValue?function S_(t){const{scale:n,fill:e}=t,r=n.options,a=n.getLabels().length,o=r.reverse?n.max:n.min,l=function T_(t,n,e){let r;return r="start"===t?e:"end"===t?n.options.reverse?n.min:n.max:_r(t)?t.value:n.getBaseValue(),r}(e,n,o),u=[];if(r.grid.circular){const m=n.getPointPositionForValue(0,o);return new gy({x:m.x,y:m.y,radius:n.getDistanceFromCenterForValue(l)})}for(let m=0;m<a;++m)u.push(n.getPointPositionForValue(m,l));return u}(t):function _y(t){const{scale:n={},fill:e}=t,r=function py(t,n){let e=null;return"start"===t?e=n.bottom:"end"===t?e=n.top:_r(t)?e=n.getPixelForValue(t.value):n.getBasePixel&&(e=n.getBasePixel()),e}(e,n);if(Aa(r)){const a=n.isHorizontal();return{x:a?r:null,y:a?null:r}}return null}(t)}(t);return a instanceof gy?a:D_(a,r)}(n),{line:a,scale:o,axis:l}=n,u=a.options,m=u.fill,_=u.backgroundColor,{above:w=_,below:M=_}=m||{};r&&a.points.length&&(Cm(t,e),function vy(t,n){const{line:e,target:r,above:a,below:o,area:l,scale:u}=n,m=e._loop?"angle":n.axis;t.save(),"x"===m&&o!==a&&(rp(t,r,l.top),ap(t,{line:e,target:r,color:a,scale:u,property:m}),t.restore(),t.save(),rp(t,r,l.bottom)),ap(t,{line:e,target:r,color:o,scale:u,property:m}),t.restore()}(t,{line:a,target:r,above:w,below:M,area:e,scale:o,axis:l}),Dm(t))}function rp(t,n,e){const{segments:r,points:a}=n;let o=!0,l=!1;t.beginPath();for(const u of r){const{start:m,end:_}=u,w=a[m],M=a[Jm(m,_,a)];o?(t.moveTo(w.x,w.y),o=!1):(t.lineTo(w.x,e),t.lineTo(w.x,w.y)),l=!!n.pathSegment(t,u,{move:l}),l?t.closePath():t.lineTo(M.x,e)}t.lineTo(n.first().x,e),t.closePath(),t.clip()}function ap(t,n){const{line:e,target:r,property:a,color:o,scale:l}=n,u=function uy(t,n,e){const r=t.segments,a=t.points,o=n.points,l=[];for(const u of r){let{start:m,end:_}=u;_=Jm(m,_,a);const w=Km(e,a[m],a[_],u.loop);if(!n.segments){l.push({source:u,target:w,start:a[m],end:a[_]});continue}const M=aC(n,w);for(const O of M){const N=Km(e,o[O.start],o[O.end],O.loop),z=qg(u,a,N);for(const j of z)l.push({source:j,target:O,start:{[e]:C_(w,N,"start",Math.max)},end:{[e]:C_(w,N,"end",Math.min)}})}}return l}(e,r,a);for(const{source:m,target:_,start:w,end:M}of u){const{style:{backgroundColor:O=o}={}}=m,N=!0!==r;t.save(),t.fillStyle=O,bD(t,l,N&&Km(a,w,M)),t.beginPath();const z=!!e.pathSegment(t,m);let j;if(N){z?t.closePath():k_(t,r,M,a);const oe=!!r.pathSegment(t,_,{move:z,reverse:!0});j=z&&oe,j||k_(t,r,w,a)}t.closePath(),t.fill(j?"evenodd":"nonzero"),t.restore()}}function bD(t,n,e){const{top:r,bottom:a}=n.chart.chartArea,{property:o,start:l,end:u}=e||{};"x"===o&&(t.beginPath(),t.rect(l,r,u-l,a-r),t.clip())}function k_(t,n,e,r){const a=n.interpolate(e,r);a&&t.lineTo(a.x,a.y)}var by={id:"filler",afterDatasetsUpdate(t,n,e){const r=(t.data.datasets||[]).length,a=[];let o,l,u,m;for(l=0;l<r;++l)o=t.getDatasetMeta(l),u=o.dataset,m=null,u&&u.options&&u instanceof qm&&(m={visible:t.isDatasetVisible(l),index:l,fill:my(u,l,r),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:u}),o.$filler=m,a.push(m);for(l=0;l<r;++l)m=a[l],m&&!1!==m.fill&&(m.fill=gD(a,l,e.propagate))},beforeDraw(t,n,e){const r="beforeDraw"===e.drawTime,a=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let l=a.length-1;l>=0;--l){const u=a[l].$filler;u&&(u.line.updateControlPoints(o,u.axis),r&&u.fill&&ip(t.ctx,u,o))}},beforeDatasetsDraw(t,n,e){if("beforeDatasetsDraw"!==e.drawTime)return;const r=t.getSortedVisibleDatasetMetas();for(let a=r.length-1;a>=0;--a){const o=r[a].$filler;fy(o)&&ip(t.ctx,o,t.chartArea)}},beforeDatasetDraw(t,n,e){const r=n.meta.$filler;!fy(r)||"beforeDatasetDraw"!==e.drawTime||ip(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const I_=(t,n)=>{let{boxHeight:e=n,boxWidth:r=n}=t;return t.usePointStyle&&(e=Math.min(e,n),r=t.pointStyleWidth||Math.min(r,n)),{boxWidth:r,boxHeight:e,itemHeight:Math.max(n,e)}};class xy extends dl{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e,r){this.maxWidth=n,this.maxHeight=e,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const n=this.options.labels||{};let e=Br(n.generateLabels,[this.chart],this)||[];n.filter&&(e=e.filter(r=>n.filter(r,this.chart.data))),n.sort&&(e=e.sort((r,a)=>n.sort(r,a,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:n,ctx:e}=this;if(!n.display)return void(this.width=this.height=0);const r=n.labels,a=$a(r.font),o=a.size,l=this._computeTitleHeight(),{boxWidth:u,itemHeight:m}=I_(r,o);let _,w;e.font=a.string,this.isHorizontal()?(_=this.maxWidth,w=this._fitRows(l,o,u,m)+10):(w=this.maxHeight,_=this._fitCols(l,o,u,m)+10),this.width=Math.min(_,n.maxWidth||this.maxWidth),this.height=Math.min(w,n.maxHeight||this.maxHeight)}_fitRows(n,e,r,a){const{ctx:o,maxWidth:l,options:{labels:{padding:u}}}=this,m=this.legendHitBoxes=[],_=this.lineWidths=[0],w=a+u;let M=n;o.textAlign="left",o.textBaseline="middle";let O=-1,N=-w;return this.legendItems.forEach((z,j)=>{const oe=r+e/2+o.measureText(z.text).width;(0===j||_[_.length-1]+oe+2*u>l)&&(M+=w,_[_.length-(j>0?0:1)]=0,N+=w,O++),m[j]={left:0,top:N,row:O,width:oe,height:a},_[_.length-1]+=oe+u}),M}_fitCols(n,e,r,a){const{ctx:o,maxHeight:l,options:{labels:{padding:u}}}=this,m=this.legendHitBoxes=[],_=this.columnSizes=[],w=l-n;let M=u,O=0,N=0,z=0,j=0;return this.legendItems.forEach((oe,Ne)=>{const Ie=r+e/2+o.measureText(oe.text).width;Ne>0&&N+a+2*u>w&&(M+=O+u,_.push({width:O,height:N}),z+=O+u,j++,O=N=0),m[Ne]={left:z,top:N,col:j,width:Ie,height:a},O=Math.max(O,Ie),N+=a+u}),M+=O,_.push({width:O,height:N}),M}adjustHitBoxes(){if(!this.options.display)return;const n=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:r,labels:{padding:a},rtl:o}}=this,l=xu(o,this.left,this.width);if(this.isHorizontal()){let u=0,m=Sa(r,this.left+a,this.right-this.lineWidths[u]);for(const _ of e)u!==_.row&&(u=_.row,m=Sa(r,this.left+a,this.right-this.lineWidths[u])),_.top+=this.top+n+a,_.left=l.leftForLtr(l.x(m),_.width),m+=_.width+a}else{let u=0,m=Sa(r,this.top+n+a,this.bottom-this.columnSizes[u].height);for(const _ of e)_.col!==u&&(u=_.col,m=Sa(r,this.top+n+a,this.bottom-this.columnSizes[u].height)),_.top=m,_.left+=this.left+a,_.left=l.leftForLtr(l.x(_.left),_.width),m+=_.height+a}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const n=this.ctx;Cm(n,this),this._draw(),Dm(n)}}_draw(){const{options:n,columnSizes:e,lineWidths:r,ctx:a}=this,{align:o,labels:l}=n,u=mr.color,m=xu(n.rtl,this.left,this.width),_=$a(l.font),{color:w,padding:M}=l,O=_.size,N=O/2;let z;this.drawTitle(),a.textAlign=m.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=_.string;const{boxWidth:j,boxHeight:oe,itemHeight:Ne}=I_(l,O),Pt=this.isHorizontal(),Ut=this._computeTitleHeight();z=Pt?{x:Sa(o,this.left+M,this.right-r[0]),y:this.top+M+Ut,line:0}:{x:this.left+M,y:Sa(o,this.top+Ut+M,this.bottom-e[0].height),line:0},bb(this.ctx,n.textDirection);const rn=Ne+M;this.legendItems.forEach((kt,en)=>{a.strokeStyle=kt.fontColor||w,a.fillStyle=kt.fontColor||w;const tn=a.measureText(kt.text).width,xn=m.textAlign(kt.textAlign||(kt.textAlign=l.textAlign)),Cn=j+N+tn;let mn=z.x,Xn=z.y;m.setWidth(this.width),Pt?en>0&&mn+Cn+M>this.right&&(Xn=z.y+=rn,z.line++,mn=z.x=Sa(o,this.left+M,this.right-r[z.line])):en>0&&Xn+rn>this.bottom&&(mn=z.x=mn+e[z.line].width+M,z.line++,Xn=z.y=Sa(o,this.top+Ut+M,this.bottom-e[z.line].height)),function(kt,en,tn){if(isNaN(j)||j<=0||isNaN(oe)||oe<0)return;a.save();const xn=Qi(tn.lineWidth,1);if(a.fillStyle=Qi(tn.fillStyle,u),a.lineCap=Qi(tn.lineCap,"butt"),a.lineDashOffset=Qi(tn.lineDashOffset,0),a.lineJoin=Qi(tn.lineJoin,"miter"),a.lineWidth=xn,a.strokeStyle=Qi(tn.strokeStyle,u),a.setLineDash(Qi(tn.lineDash,[])),l.usePointStyle){const Cn={radius:oe*Math.SQRT2/2,pointStyle:tn.pointStyle,rotation:tn.rotation,borderWidth:xn},mn=m.xPlus(kt,j/2);Jv(a,Cn,mn,en+N,l.pointStyleWidth&&j)}else{const Cn=en+Math.max((O-oe)/2,0),mn=m.leftForLtr(kt,j),Xn=_u(tn.borderRadius);a.beginPath(),Object.values(Xn).some(gi=>0!==gi)?Uh(a,{x:mn,y:Cn,w:j,h:oe,radius:Xn}):a.rect(mn,Cn,j,oe),a.fill(),0!==xn&&a.stroke()}a.restore()}(m.x(mn),Xn,kt),mn=((t,n,e,r)=>t===(r?"left":"right")?e:"center"===t?(n+e)/2:n)(xn,mn+j+N,Pt?mn+Cn:this.right,n.rtl),function(kt,en,tn){Od(a,tn.text,kt,en+Ne/2,_,{strikethrough:tn.hidden,textAlign:m.textAlign(tn.textAlign)})}(m.x(mn),Xn,kt),Pt?z.x+=Cn+M:z.y+=rn}),Im(this.ctx,n.textDirection)}drawTitle(){const n=this.options,e=n.title,r=$a(e.font),a=Fo(e.padding);if(!e.display)return;const o=xu(n.rtl,this.left,this.width),l=this.ctx,u=e.position,_=a.top+r.size/2;let w,M=this.left,O=this.width;if(this.isHorizontal())O=Math.max(...this.lineWidths),w=this.top+_,M=Sa(n.align,M,this.right-O);else{const z=this.columnSizes.reduce((j,oe)=>Math.max(j,oe.height),0);w=_+Sa(n.align,this.top,this.bottom-z-n.labels.padding-this._computeTitleHeight())}const N=Sa(u,M,M+O);l.textAlign=o.textAlign(mm(u)),l.textBaseline="middle",l.strokeStyle=e.color,l.fillStyle=e.color,l.font=r.string,Od(l,e.text,N,w,r)}_computeTitleHeight(){const n=this.options.title,e=$a(n.font),r=Fo(n.padding);return n.display?e.lineHeight+r.height:0}_getLegendItemAt(n,e){let r,a,o;if(ec(n,this.left,this.right)&&ec(e,this.top,this.bottom))for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(a=o[r],ec(n,a.left,a.left+a.width)&&ec(e,a.top,a.top+a.height))return this.legendItems[r];return null}handleEvent(n){const e=this.options;if(!function wy(t,n){return!(("mousemove"!==t&&"mouseout"!==t||!n.onHover&&!n.onLeave)&&(!n.onClick||"click"!==t&&"mouseup"!==t))}(n.type,e))return;const r=this._getLegendItemAt(n.x,n.y);if("mousemove"===n.type||"mouseout"===n.type){const a=this._hoveredItem,o=((t,n)=>null!==t&&null!==n&&t.datasetIndex===n.datasetIndex&&t.index===n.index)(a,r);a&&!o&&Br(e.onLeave,[n,a,this],this),this._hoveredItem=r,r&&!o&&Br(e.onHover,[n,r,this],this)}else r&&Br(e.onClick,[n,r,this],this)}}var Cy={id:"legend",_element:xy,start(t,n,e){const r=t.legend=new xy({ctx:t.ctx,options:e,chart:t});Lo.configure(t,r,e),Lo.addBox(t,r)},stop(t){Lo.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,n,e){const r=t.legend;Lo.configure(t,r,e),r.options=e},afterUpdate(t){const n=t.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(t,n){n.replay||t.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,n,e){const r=n.datasetIndex,a=e.chart;a.isDatasetVisible(r)?(a.hide(r),n.hidden=!0):(a.show(r),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const n=t.data.datasets,{labels:{usePointStyle:e,pointStyle:r,textAlign:a,color:o}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(e?0:void 0),m=Fo(u.borderWidth);return{text:n[l.index].label,fillStyle:u.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(m.width+m.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:a||u.textAlign,borderRadius:0,datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class rf extends dl{constructor(n){super(),this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e){const r=this.options;if(this.left=0,this.top=0,!r.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=n,this.height=this.bottom=e;const a=Kr(r.text)?r.text.length:1;this._padding=Fo(r.padding);const o=a*$a(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const n=this.options.position;return"top"===n||"bottom"===n}_drawArgs(n){const{top:e,left:r,bottom:a,right:o,options:l}=this,u=l.align;let _,w,M,m=0;return this.isHorizontal()?(w=Sa(u,r,o),M=e+n,_=o-r):("left"===l.position?(w=r+n,M=Sa(u,a,e),m=-.5*ea):(w=o-n,M=Sa(u,e,a),m=.5*ea),_=a-e),{titleX:w,titleY:M,maxWidth:_,rotation:m}}draw(){const n=this.ctx,e=this.options;if(!e.display)return;const r=$a(e.font),o=r.lineHeight/2+this._padding.top,{titleX:l,titleY:u,maxWidth:m,rotation:_}=this._drawArgs(o);Od(n,e.text,0,0,r,{color:e.color,maxWidth:m,rotation:_,textAlign:mm(e.align),textBaseline:"middle",translation:[l,u]})}}var Dy={id:"title",_element:rf,start(t,n,e){!function op(t,n){const e=new rf({ctx:t.ctx,options:n,chart:t});Lo.configure(t,e,n),Lo.addBox(t,e),t.titleBlock=e}(t,e)},stop(t){Lo.removeBox(t,t.titleBlock),delete t.titleBlock},beforeUpdate(t,n,e){const r=t.titleBlock;Lo.configure(t,r,e),r.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const af=new WeakMap;var Ty={id:"subtitle",start(t,n,e){const r=new rf({ctx:t.ctx,options:e,chart:t});Lo.configure(t,r,e),Lo.addBox(t,r),af.set(t,r)},stop(t){Lo.removeBox(t,af.get(t)),af.delete(t)},beforeUpdate(t,n,e){const r=af.get(t);Lo.configure(t,r,e),r.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Uu={average(t){if(!t.length)return!1;let n,e,r=0,a=0,o=0;for(n=0,e=t.length;n<e;++n){const l=t[n].element;if(l&&l.hasValue()){const u=l.tooltipPosition();r+=u.x,a+=u.y,++o}}return{x:r/o,y:a/o}},nearest(t,n){if(!t.length)return!1;let o,l,u,e=n.x,r=n.y,a=Number.POSITIVE_INFINITY;for(o=0,l=t.length;o<l;++o){const m=t[o].element;if(m&&m.hasValue()){const w=Sd(n,m.getCenterPoint());w<a&&(a=w,u=m)}}if(u){const m=u.tooltipPosition();e=m.x,r=m.y}return{x:e,y:r}}};function Il(t,n){return n&&(Kr(n)?Array.prototype.push.apply(t,n):t.push(n)),t}function ac(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Ey(t,n){const{element:e,datasetIndex:r,index:a}=n,o=t.getDatasetMeta(r).controller,{label:l,value:u}=o.getLabelAndValue(a);return{chart:t,label:l,parsed:o.getParsed(a),raw:t.data.datasets[r].data[a],formattedValue:u,dataset:o.getDataset(),dataIndex:a,datasetIndex:r,element:e}}function O_(t,n){const e=t.chart.ctx,{body:r,footer:a,title:o}=t,{boxWidth:l,boxHeight:u}=n,m=$a(n.bodyFont),_=$a(n.titleFont),w=$a(n.footerFont),M=o.length,O=a.length,N=r.length,z=Fo(n.padding);let j=z.height,oe=0,Ne=r.reduce((Pt,Ut)=>Pt+Ut.before.length+Ut.lines.length+Ut.after.length,0);Ne+=t.beforeBody.length+t.afterBody.length,M&&(j+=M*_.lineHeight+(M-1)*n.titleSpacing+n.titleMarginBottom),Ne&&(j+=N*(n.displayColors?Math.max(u,m.lineHeight):m.lineHeight)+(Ne-N)*m.lineHeight+(Ne-1)*n.bodySpacing),O&&(j+=n.footerMarginTop+O*w.lineHeight+(O-1)*n.footerSpacing);let Ie=0;const Ye=function(Pt){oe=Math.max(oe,e.measureText(Pt).width+Ie)};return e.save(),e.font=_.string,Ar(t.title,Ye),e.font=m.string,Ar(t.beforeBody.concat(t.afterBody),Ye),Ie=n.displayColors?l+2+n.boxPadding:0,Ar(r,Pt=>{Ar(Pt.before,Ye),Ar(Pt.lines,Ye),Ar(Pt.after,Ye)}),Ie=0,e.font=w.string,Ar(t.footer,Ye),e.restore(),oe+=z.width,{width:oe,height:j}}function yD(t,n,e,r){const{x:a,width:o}=e,{width:l,chartArea:{left:u,right:m}}=t;let _="center";return"center"===r?_=a<=(u+m)/2?"left":"right":a<=o/2?_="left":a>=l-o/2&&(_="right"),function ad(t,n,e,r){const{x:a,width:o}=r,l=e.caretSize+e.caretPadding;if("left"===t&&a+o+l>n.width||"right"===t&&a-o-l<0)return!0}(_,t,n,e)&&(_="center"),_}function My(t,n,e){const r=e.yAlign||n.yAlign||function sp(t,n){const{y:e,height:r}=n;return e<r/2?"top":e>t.height-r/2?"bottom":"center"}(t,e);return{xAlign:e.xAlign||n.xAlign||yD(t,n,e,r),yAlign:r}}function lp(t,n,e,r){const{caretSize:a,caretPadding:o,cornerRadius:l}=t,{xAlign:u,yAlign:m}=e,_=a+o,{topLeft:w,topRight:M,bottomLeft:O,bottomRight:N}=_u(l);let z=function P_(t,n){let{x:e,width:r}=t;return"right"===n?e-=r:"center"===n&&(e-=r/2),e}(n,u);const j=function jd(t,n,e){let{y:r,height:a}=t;return"top"===n?r+=e:r-="bottom"===n?a+e:a/2,r}(n,m,_);return"center"===m?"left"===u?z+=_:"right"===u&&(z-=_):"left"===u?z-=Math.max(w,O)+a:"right"===u&&(z+=Math.max(M,N)+a),{x:Ga(z,0,r.width-n.width),y:Ga(j,0,r.height-n.height)}}function cp(t,n,e){const r=Fo(e.padding);return"center"===n?t.x+t.width/2:"right"===n?t.x+t.width-r.right:t.x+r.left}function dp(t){return Il([],ac(t))}function xD(t,n){const e=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return e?t.override(e):t}let Ay=(()=>{class t extends dl{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const r=this.chart,a=this.options.setContext(this.getContext()),o=a.enabled&&r.options.animation&&a.animations,l=new Om(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(l)),l}getContext(){return this.$context||(this.$context=function H2(t,n,e){return Pd(t,{tooltip:n,tooltipItems:e,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,r){const{callbacks:a}=r,o=a.beforeTitle.apply(this,[e]),l=a.title.apply(this,[e]),u=a.afterTitle.apply(this,[e]);let m=[];return m=Il(m,ac(o)),m=Il(m,ac(l)),m=Il(m,ac(u)),m}getBeforeBody(e,r){return dp(r.callbacks.beforeBody.apply(this,[e]))}getBody(e,r){const{callbacks:a}=r,o=[];return Ar(e,l=>{const u={before:[],lines:[],after:[]},m=xD(a,l);Il(u.before,ac(m.beforeLabel.call(this,l))),Il(u.lines,m.label.call(this,l)),Il(u.after,ac(m.afterLabel.call(this,l))),o.push(u)}),o}getAfterBody(e,r){return dp(r.callbacks.afterBody.apply(this,[e]))}getFooter(e,r){const{callbacks:a}=r,o=a.beforeFooter.apply(this,[e]),l=a.footer.apply(this,[e]),u=a.afterFooter.apply(this,[e]);let m=[];return m=Il(m,ac(o)),m=Il(m,ac(l)),m=Il(m,ac(u)),m}_createItems(e){const r=this._active,a=this.chart.data,o=[],l=[],u=[];let _,w,m=[];for(_=0,w=r.length;_<w;++_)m.push(Ey(this.chart,r[_]));return e.filter&&(m=m.filter((M,O,N)=>e.filter(M,O,N,a))),e.itemSort&&(m=m.sort((M,O)=>e.itemSort(M,O,a))),Ar(m,M=>{const O=xD(e.callbacks,M);o.push(O.labelColor.call(this,M)),l.push(O.labelPointStyle.call(this,M)),u.push(O.labelTextColor.call(this,M))}),this.labelColors=o,this.labelPointStyles=l,this.labelTextColors=u,this.dataPoints=m,m}update(e,r){const a=this.options.setContext(this.getContext()),o=this._active;let l,u=[];if(o.length){const m=Uu[a.position].call(this,o,this._eventPosition);u=this._createItems(a),this.title=this.getTitle(u,a),this.beforeBody=this.getBeforeBody(u,a),this.body=this.getBody(u,a),this.afterBody=this.getAfterBody(u,a),this.footer=this.getFooter(u,a);const _=this._size=O_(this,a),w=Object.assign({},m,_),M=My(this.chart,a,w),O=lp(a,w,M,this.chart);this.xAlign=M.xAlign,this.yAlign=M.yAlign,l={opacity:1,x:O.x,y:O.y,width:_.width,height:_.height,caretX:m.x,caretY:m.y}}else 0!==this.opacity&&(l={opacity:0});this._tooltipItems=u,this.$context=void 0,l&&this._resolveAnimations().update(this,l),e&&a.external&&a.external.call(this,{chart:this.chart,tooltip:this,replay:r})}drawCaret(e,r,a,o){const l=this.getCaretPosition(e,a,o);r.lineTo(l.x1,l.y1),r.lineTo(l.x2,l.y2),r.lineTo(l.x3,l.y3)}getCaretPosition(e,r,a){const{xAlign:o,yAlign:l}=this,{caretSize:u,cornerRadius:m}=a,{topLeft:_,topRight:w,bottomLeft:M,bottomRight:O}=_u(m),{x:N,y:z}=e,{width:j,height:oe}=r;let Ne,Ie,Ye,Pt,Ut,rn;return"center"===l?(Ut=z+oe/2,"left"===o?(Ne=N,Ie=Ne-u,Pt=Ut+u,rn=Ut-u):(Ne=N+j,Ie=Ne+u,Pt=Ut-u,rn=Ut+u),Ye=Ne):(Ie="left"===o?N+Math.max(_,M)+u:"right"===o?N+j-Math.max(w,O)-u:this.caretX,"top"===l?(Pt=z,Ut=Pt-u,Ne=Ie-u,Ye=Ie+u):(Pt=z+oe,Ut=Pt+u,Ne=Ie+u,Ye=Ie-u),rn=Pt),{x1:Ne,x2:Ie,x3:Ye,y1:Pt,y2:Ut,y3:rn}}drawTitle(e,r,a){const o=this.title,l=o.length;let u,m,_;if(l){const w=xu(a.rtl,this.x,this.width);for(e.x=cp(this,a.titleAlign,a),r.textAlign=w.textAlign(a.titleAlign),r.textBaseline="middle",u=$a(a.titleFont),m=a.titleSpacing,r.fillStyle=a.titleColor,r.font=u.string,_=0;_<l;++_)r.fillText(o[_],w.x(e.x),e.y+u.lineHeight/2),e.y+=u.lineHeight+m,_+1===l&&(e.y+=a.titleMarginBottom-m)}}_drawColorBox(e,r,a,o,l){const u=this.labelColors[a],m=this.labelPointStyles[a],{boxHeight:_,boxWidth:w,boxPadding:M}=l,O=$a(l.bodyFont),N=cp(this,"left",l),z=o.x(N),oe=r.y+(_<O.lineHeight?(O.lineHeight-_)/2:0);if(l.usePointStyle){const Ne={radius:Math.min(w,_)/2,pointStyle:m.pointStyle,rotation:m.rotation,borderWidth:1},Ie=o.leftForLtr(z,w)+w/2,Ye=oe+_/2;e.strokeStyle=l.multiKeyBackground,e.fillStyle=l.multiKeyBackground,Lg(e,Ne,Ie,Ye),e.strokeStyle=u.borderColor,e.fillStyle=u.backgroundColor,Lg(e,Ne,Ie,Ye)}else{e.lineWidth=_r(u.borderWidth)?Math.max(...Object.values(u.borderWidth)):u.borderWidth||1,e.strokeStyle=u.borderColor,e.setLineDash(u.borderDash||[]),e.lineDashOffset=u.borderDashOffset||0;const Ne=o.leftForLtr(z,w-M),Ie=o.leftForLtr(o.xPlus(z,1),w-M-2),Ye=_u(u.borderRadius);Object.values(Ye).some(Pt=>0!==Pt)?(e.beginPath(),e.fillStyle=l.multiKeyBackground,Uh(e,{x:Ne,y:oe,w,h:_,radius:Ye}),e.fill(),e.stroke(),e.fillStyle=u.backgroundColor,e.beginPath(),Uh(e,{x:Ie,y:oe+1,w:w-2,h:_-2,radius:Ye}),e.fill()):(e.fillStyle=l.multiKeyBackground,e.fillRect(Ne,oe,w,_),e.strokeRect(Ne,oe,w,_),e.fillStyle=u.backgroundColor,e.fillRect(Ie,oe+1,w-2,_-2))}e.fillStyle=this.labelTextColors[a]}drawBody(e,r,a){const{body:o}=this,{bodySpacing:l,bodyAlign:u,displayColors:m,boxHeight:_,boxWidth:w,boxPadding:M}=a,O=$a(a.bodyFont);let N=O.lineHeight,z=0;const j=xu(a.rtl,this.x,this.width),oe=function(tn){r.fillText(tn,j.x(e.x+z),e.y+N/2),e.y+=N+l},Ne=j.textAlign(u);let Ie,Ye,Pt,Ut,rn,kt,en;for(r.textAlign=u,r.textBaseline="middle",r.font=O.string,e.x=cp(this,Ne,a),r.fillStyle=a.bodyColor,Ar(this.beforeBody,oe),z=m&&"right"!==Ne?"center"===u?w/2+M:w+2+M:0,Ut=0,kt=o.length;Ut<kt;++Ut){for(Ie=o[Ut],Ye=this.labelTextColors[Ut],r.fillStyle=Ye,Ar(Ie.before,oe),Pt=Ie.lines,m&&Pt.length&&(this._drawColorBox(r,e,Ut,j,a),N=Math.max(O.lineHeight,_)),rn=0,en=Pt.length;rn<en;++rn)oe(Pt[rn]),N=O.lineHeight;Ar(Ie.after,oe)}z=0,N=O.lineHeight,Ar(this.afterBody,oe),e.y-=l}drawFooter(e,r,a){const o=this.footer,l=o.length;let u,m;if(l){const _=xu(a.rtl,this.x,this.width);for(e.x=cp(this,a.footerAlign,a),e.y+=a.footerMarginTop,r.textAlign=_.textAlign(a.footerAlign),r.textBaseline="middle",u=$a(a.footerFont),r.fillStyle=a.footerColor,r.font=u.string,m=0;m<l;++m)r.fillText(o[m],_.x(e.x),e.y+u.lineHeight/2),e.y+=u.lineHeight+a.footerSpacing}}drawBackground(e,r,a,o){const{xAlign:l,yAlign:u}=this,{x:m,y:_}=e,{width:w,height:M}=a,{topLeft:O,topRight:N,bottomLeft:z,bottomRight:j}=_u(o.cornerRadius);r.fillStyle=o.backgroundColor,r.strokeStyle=o.borderColor,r.lineWidth=o.borderWidth,r.beginPath(),r.moveTo(m+O,_),"top"===u&&this.drawCaret(e,r,a,o),r.lineTo(m+w-N,_),r.quadraticCurveTo(m+w,_,m+w,_+N),"center"===u&&"right"===l&&this.drawCaret(e,r,a,o),r.lineTo(m+w,_+M-j),r.quadraticCurveTo(m+w,_+M,m+w-j,_+M),"bottom"===u&&this.drawCaret(e,r,a,o),r.lineTo(m+z,_+M),r.quadraticCurveTo(m,_+M,m,_+M-z),"center"===u&&"left"===l&&this.drawCaret(e,r,a,o),r.lineTo(m,_+O),r.quadraticCurveTo(m,_,m+O,_),r.closePath(),r.fill(),o.borderWidth>0&&r.stroke()}_updateAnimationTarget(e){const r=this.chart,a=this.$animations,o=a&&a.x,l=a&&a.y;if(o||l){const u=Uu[e.position].call(this,this._active,this._eventPosition);if(!u)return;const m=this._size=O_(this,e),_=Object.assign({},u,this._size),w=My(r,e,_),M=lp(e,_,w,r);(o._to!==M.x||l._to!==M.y)&&(this.xAlign=w.xAlign,this.yAlign=w.yAlign,this.width=m.width,this.height=m.height,this.caretX=u.x,this.caretY=u.y,this._resolveAnimations().update(this,M))}}_willRender(){return!!this.opacity}draw(e){const r=this.options.setContext(this.getContext());let a=this.opacity;if(!a)return;this._updateAnimationTarget(r);const o={width:this.width,height:this.height},l={x:this.x,y:this.y};a=Math.abs(a)<.001?0:a;const u=Fo(r.padding);r.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(e.save(),e.globalAlpha=a,this.drawBackground(l,e,o,r),bb(e,r.textDirection),l.y+=u.top,this.drawTitle(l,e,r),this.drawBody(l,e,r),this.drawFooter(l,e,r),Im(e,r.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,r){const a=this._active,o=e.map(({datasetIndex:m,index:_})=>{const w=this.chart.getDatasetMeta(m);if(!w)throw new Error("Cannot find a dataset at index "+m);return{datasetIndex:m,element:w.data[_],index:_}}),l=!yg(a,o),u=this._positionChanged(o,r);(l||u)&&(this._active=o,this._eventPosition=r,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,r,a=!0){if(r&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,l=this._active||[],u=this._getActiveElements(e,l,r,a),m=this._positionChanged(u,e),_=r||!yg(u,l)||m;return _&&(this._active=u,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,r))),_}_getActiveElements(e,r,a,o){const l=this.options;if("mouseout"===e.type)return[];if(!o)return r;const u=this.chart.getElementsAtEventForMode(e,l.mode,l,a);return l.reverse&&u.reverse(),u}_positionChanged(e,r){const{caretX:a,caretY:o,options:l}=this,u=Uu[l.position].call(this,e,r);return!1!==u&&(a!==u.x||o!==u.y)}}return t.positioners=Uu,t})();var wD={id:"tooltip",_element:Ay,positioners:Uu,afterInit(t,n,e){e&&(t.tooltip=new Ay({chart:t,options:e}))},beforeUpdate(t,n,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,n,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){const n=t.tooltip;if(n&&n._willRender()){const e={tooltip:n};if(!1===t.notifyPlugins("beforeTooltipDraw",e))return;n.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,n){t.tooltip&&t.tooltip.handleEvent(n.event,n.replay,n.inChartArea)&&(n.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,n)=>n.bodyFont.size,boxWidth:(t,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Ac,title(t){if(t.length>0){const n=t[0],e=n.chart.data.labels,r=e?e.length:0;if(this&&this.options&&"dataset"===this.options.mode)return n.dataset.label||"";if(n.label)return n.label;if(r>0&&n.dataIndex<r)return e[n.dataIndex]}return""},afterTitle:Ac,beforeBody:Ac,beforeLabel:Ac,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let n=t.dataset.label||"";n&&(n+=": ");const e=t.formattedValue;return cr(e)||(n+=e),n},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Ac,afterBody:Ac,beforeFooter:Ac,footer:Ac,afterFooter:Ac}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Sy=Object.freeze({__proto__:null,Decimation:dy,Filler:by,Legend:Cy,SubTitle:Ty,Title:Dy,Tooltip:wD});class up extends Bd{constructor(n){super(n),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(n){const e=this._addedLabels;if(e.length){const r=this.getLabels();for(const{index:a,label:o}of e)r[a]===o&&r.splice(a,1);this._addedLabels=[]}super.init(n)}parse(n,e){if(cr(n))return null;const r=this.getLabels();return e=isFinite(e)&&r[e]===n?e:function qa(t,n,e,r){const a=t.indexOf(n);return-1===a?((t,n,e,r)=>("string"==typeof n?(e=t.push(n)-1,r.unshift({index:e,label:n})):isNaN(n)&&(e=null),e))(t,n,e,r):a!==t.lastIndexOf(n)?e:a}(r,n,Qi(e,n),this._addedLabels),((t,n)=>null===t?null:Ga(Math.round(t),0,n))(e,r.length-1)}determineDataLimits(){const{minDefined:n,maxDefined:e}=this.getUserBounds();let{min:r,max:a}=this.getMinMax(!0);"ticks"===this.options.bounds&&(n||(r=0),e||(a=this.getLabels().length-1)),this.min=r,this.max=a}buildTicks(){const n=this.min,e=this.max,r=this.options.offset,a=[];let o=this.getLabels();o=0===n&&e===o.length-1?o:o.slice(n,e+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let l=n;l<=e;l++)a.push({value:l});return a}getLabelForValue(n){const e=this.getLabels();return n>=0&&n<e.length?e[n]:n}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(n){return"number"!=typeof n&&(n=this.parse(n)),null===n?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getPixelForTick(n){const e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getValueForPixel(n){return Math.round(this._startValue+this.getDecimalForPixel(n)*this._valueRange)}getBasePixel(){return this.bottom}}function R_(t,n,{horizontal:e,minRotation:r}){const a=Zs(r),o=(e?Math.sin(a):Math.cos(a))||.001;return Math.min(n/o,.75*n*(""+t).length)}up.id="category",up.defaults={ticks:{callback:up.prototype.getLabelForValue}};class hp extends Bd{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(n,e){return cr(n)||("number"==typeof n||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){const{beginAtZero:n}=this.options,{minDefined:e,maxDefined:r}=this.getUserBounds();let{min:a,max:o}=this;const l=m=>a=e?a:m,u=m=>o=r?o:m;if(n){const m=Xl(a),_=Xl(o);m<0&&_<0?u(0):m>0&&_>0&&l(0)}if(a===o){let m=1;(o>=Number.MAX_SAFE_INTEGER||a<=Number.MIN_SAFE_INTEGER)&&(m=Math.abs(.05*o)),u(o+m),n||l(a-m)}this.min=a,this.max=o}getTickLimit(){const n=this.options.ticks;let a,{maxTicksLimit:e,stepSize:r}=n;return r?(a=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,a>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${a} ticks. Limiting to 1000.`),a=1e3)):(a=this.computeTickLimit(),e=e||11),e&&(a=Math.min(e,a)),a}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const n=this.options,e=n.ticks;let r=this.getTickLimit();r=Math.max(2,r);const l=function DD(t,n){const e=[],{bounds:a,step:o,min:l,max:u,precision:m,count:_,maxTicks:w,maxDigits:M,includeBounds:O}=t,N=o||1,z=w-1,{min:j,max:oe}=n,Ne=!cr(l),Ie=!cr(u),Ye=!cr(_),Pt=(oe-j)/(M+1);let rn,kt,en,tn,Ut=Rv((oe-j)/z/N)*N;if(Ut<1e-14&&!Ne&&!Ie)return[{value:j},{value:oe}];tn=Math.ceil(oe/Ut)-Math.floor(j/Ut),tn>z&&(Ut=Rv(tn*Ut/z/N)*N),cr(m)||(rn=Math.pow(10,m),Ut=Math.ceil(Ut*rn)/rn),"ticks"===a?(kt=Math.floor(j/Ut)*Ut,en=Math.ceil(oe/Ut)*Ut):(kt=j,en=oe),Ne&&Ie&&o&&function Iw(t,n){const e=Math.round(t);return e-n<=t&&e+n>=t}((u-l)/o,Ut/1e3)?(tn=Math.round(Math.min((u-l)/Ut,w)),Ut=(u-l)/tn,kt=l,en=u):Ye?(kt=Ne?l:kt,en=Ie?u:en,tn=_-1,Ut=(en-kt)/tn):(tn=(en-kt)/Ut,tn=Ah(tn,Math.round(tn),Ut/1e3)?Math.round(tn):Math.ceil(tn));const xn=Math.max(um(Ut),um(kt));rn=Math.pow(10,cr(m)?xn:m),kt=Math.round(kt*rn)/rn,en=Math.round(en*rn)/rn;let Cn=0;for(Ne&&(O&&kt!==l?(e.push({value:l}),kt<l&&Cn++,Ah(Math.round((kt+Cn*Ut)*rn)/rn,l,R_(l,Pt,t))&&Cn++):kt<l&&Cn++);Cn<tn;++Cn)e.push({value:Math.round((kt+Cn*Ut)*rn)/rn});return Ie&&O&&en!==u?e.length&&Ah(e[e.length-1].value,u,R_(u,Pt,t))?e[e.length-1].value=u:e.push({value:u}):(!Ie||en===u)&&e.push({value:en}),e}({maxTicks:r,bounds:n.bounds,min:n.min,max:n.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===n.bounds&&ns(l,this,"value"),n.reverse?(l.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),l}configure(){const n=this.ticks;let e=this.min,r=this.max;if(super.configure(),this.options.offset&&n.length){const a=(r-e)/Math.max(n.length-1,1)/2;e-=a,r+=a}this._startValue=e,this._endValue=r,this._valueRange=r-e}getLabelForValue(n){return bu(n,this.chart.options.locale,this.options.ticks.format)}}class fp extends hp{determineDataLimits(){const{min:n,max:e}=this.getMinMax(!0);this.min=Aa(n)?n:0,this.max=Aa(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const n=this.isHorizontal(),e=n?this.width:this.height,r=Zs(this.options.ticks.minRotation),a=(n?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/a))}getPixelForValue(n){return null===n?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}}function F_(t){return t/Math.pow(10,Math.floor(fs(t)))==1}fp.id="linear",fp.defaults={ticks:{callback:Fm.formatters.numeric}};class L_ extends Bd{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(n,e){const r=hp.prototype.parse.apply(this,[n,e]);if(0!==r)return Aa(r)&&r>0?r:null;this._zero=!0}determineDataLimits(){const{min:n,max:e}=this.getMinMax(!0);this.min=Aa(n)?Math.max(0,n):null,this.max=Aa(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:n,maxDefined:e}=this.getUserBounds();let r=this.min,a=this.max;const o=m=>r=n?r:m,l=m=>a=e?a:m,u=(m,_)=>Math.pow(10,Math.floor(fs(m))+_);r===a&&(r<=0?(o(1),l(10)):(o(u(r,-1)),l(u(a,1)))),r<=0&&o(u(a,-1)),a<=0&&l(u(r,1)),this._zero&&this.min!==this._suggestedMin&&r===u(this.min,0)&&o(u(r,-1)),this.min=r,this.max=a}buildTicks(){const n=this.options,r=function Zu(t,n){const e=Math.floor(fs(n.max)),r=Math.ceil(n.max/Math.pow(10,e)),a=[];let o=cl(t.min,Math.pow(10,Math.floor(fs(n.min)))),l=Math.floor(fs(o)),u=Math.floor(o/Math.pow(10,l)),m=l<0?Math.pow(10,Math.abs(l)):1;do{a.push({value:o,major:F_(o)}),++u,10===u&&(u=1,++l,m=l>=0?1:m),o=Math.round(u*Math.pow(10,l)*m)/m}while(l<e||l===e&&u<r);const _=cl(t.max,o);return a.push({value:_,major:F_(o)}),a}({min:this._userMin,max:this._userMax},this);return"ticks"===n.bounds&&ns(r,this,"value"),n.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(n){return void 0===n?"0":bu(n,this.chart.options.locale,this.options.ticks.format)}configure(){const n=this.min;super.configure(),this._startValue=fs(n),this._valueRange=fs(this.max)-fs(n)}getPixelForValue(n){return(void 0===n||0===n)&&(n=this.min),null===n||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(fs(n)-this._startValue)/this._valueRange)}getValueForPixel(n){const e=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+e*this._valueRange)}}function N_(t){const n=t.ticks;if(n.display&&t.display){const e=Fo(n.backdropPadding);return Qi(n.font&&n.font.size,mr.font.size)+e.height}return 0}function Iy(t,n,e){return e=Kr(e)?e:[e],{w:Yw(t,n.string,e),h:e.length*n.lineHeight}}function Oy(t,n,e,r,a){return t===r||t===a?{start:n-e/2,end:n+e/2}:t<r||t>a?{start:n-e,end:n}:{start:n,end:n+e}}function j2(t,n,e,r,a){const o=Math.abs(Math.sin(e)),l=Math.abs(Math.cos(e));let u=0,m=0;r.start<n.l?(u=(n.l-r.start)/o,t.l=Math.min(t.l,n.l-u)):r.end>n.r&&(u=(r.end-n.r)/o,t.r=Math.max(t.r,n.r+u)),a.start<n.t?(m=(n.t-a.start)/l,t.t=Math.min(t.t,n.t-m)):a.end>n.b&&(m=(a.end-n.b)/l,t.b=Math.max(t.b,n.b+m))}function U_(t){return 0===t||180===t?"center":t<180?"left":"right"}function oc(t,n,e){return"right"===e?t-=n:"center"===e&&(t-=n/2),t}function TD(t,n,e){return 90===e||270===e?t-=n/2:(e>270||e<90)&&(t-=n),t}function Ol(t,n,e,r){const{ctx:a}=t;if(e)a.arc(t.xCenter,t.yCenter,n,0,Fr);else{let o=t.getPointPosition(0,n);a.moveTo(o.x,o.y);for(let l=1;l<r;l++)o=t.getPointPosition(l,n),a.lineTo(o.x,o.y)}}L_.id="logarithmic",L_.defaults={ticks:{callback:Fm.formatters.logarithmic,major:{enabled:!0}}};class Vu extends hp{constructor(n){super(n),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const n=this._padding=Fo(N_(this.options)/2),e=this.width=this.maxWidth-n.width,r=this.height=this.maxHeight-n.height;this.xCenter=Math.floor(this.left+e/2+n.left),this.yCenter=Math.floor(this.top+r/2+n.top),this.drawingArea=Math.floor(Math.min(e,r)/2)}determineDataLimits(){const{min:n,max:e}=this.getMinMax(!1);this.min=Aa(n)&&!isNaN(n)?n:0,this.max=Aa(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/N_(this.options))}generateTickLabels(n){hp.prototype.generateTickLabels.call(this,n),this._pointLabels=this.getLabels().map((e,r)=>{const a=Br(this.options.pointLabels.callback,[e,r],this);return a||0===a?a:""}).filter((e,r)=>this.chart.getDataVisibility(r))}fit(){const n=this.options;n.display&&n.pointLabels.display?function Py(t){const n={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},n),r=[],a=[],o=t._pointLabels.length,l=t.options.pointLabels,u=l.centerPointLabels?ea/o:0;for(let m=0;m<o;m++){const _=l.setContext(t.getPointLabelContext(m));a[m]=_.padding;const w=t.getPointPosition(m,t.drawingArea+a[m],u),M=$a(_.font),O=Iy(t.ctx,M,t._pointLabels[m]);r[m]=O;const N=ms(t.getIndexAngle(m)+u),z=Math.round(dm(N));j2(e,n,N,Oy(z,w.x,O.w,0,180),Oy(z,w.y,O.h,90,270))}t.setCenterPoint(n.l-e.l,e.r-n.r,n.t-e.t,e.b-n.b),t._pointLabelItems=function B_(t,n,e){const r=[],a=t._pointLabels.length,o=t.options,l=N_(o)/2,u=t.drawingArea,m=o.pointLabels.centerPointLabels?ea/a:0;for(let _=0;_<a;_++){const w=t.getPointPosition(_,u+l+e[_],m),M=Math.round(dm(ms(w.angle+wa))),O=n[_],N=TD(w.y,O.h,M),z=U_(M),j=oc(w.x,O.w,z);r.push({x:w.x,y:N,textAlign:z,left:j,top:N,right:j+O.w,bottom:N+O.h})}return r}(t,r,a)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,e,r,a){this.xCenter+=Math.floor((n-e)/2),this.yCenter+=Math.floor((r-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,e,r,a))}getIndexAngle(n){return ms(n*(Fr/(this._pointLabels.length||1))+Zs(this.options.startAngle||0))}getDistanceFromCenterForValue(n){if(cr(n))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*e:(n-this.min)*e}getValueForDistanceFromCenter(n){if(cr(n))return NaN;const e=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(n){const e=this._pointLabels||[];if(n>=0&&n<e.length){const r=e[n];return function Rl(t,n,e){return Pd(t,{label:e,index:n,type:"pointLabel"})}(this.getContext(),n,r)}}getPointPosition(n,e,r=0){const a=this.getIndexAngle(n)-wa+r;return{x:Math.cos(a)*e+this.xCenter,y:Math.sin(a)*e+this.yCenter,angle:a}}getPointPositionForValue(n,e){return this.getPointPosition(n,this.getDistanceFromCenterForValue(e))}getBasePosition(n){return this.getPointPositionForValue(n||0,this.getBaseValue())}getPointLabelPosition(n){const{left:e,top:r,right:a,bottom:o}=this._pointLabelItems[n];return{left:e,top:r,right:a,bottom:o}}drawBackground(){const{backgroundColor:n,grid:{circular:e}}=this.options;if(n){const r=this.ctx;r.save(),r.beginPath(),Ol(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),r.closePath(),r.fillStyle=n,r.fill(),r.restore()}}drawGrid(){const n=this.ctx,e=this.options,{angleLines:r,grid:a}=e,o=this._pointLabels.length;let l,u,m;if(e.pointLabels.display&&function Ry(t,n){const{ctx:e,options:{pointLabels:r}}=t;for(let a=n-1;a>=0;a--){const o=r.setContext(t.getPointLabelContext(a)),l=$a(o.font),{x:u,y:m,textAlign:_,left:w,top:M,right:O,bottom:N}=t._pointLabelItems[a],{backdropColor:z}=o;if(!cr(z)){const j=_u(o.borderRadius),oe=Fo(o.backdropPadding);e.fillStyle=z;const Ne=w-oe.left,Ie=M-oe.top,Ye=O-w+oe.width,Pt=N-M+oe.height;Object.values(j).some(Ut=>0!==Ut)?(e.beginPath(),Uh(e,{x:Ne,y:Ie,w:Ye,h:Pt,radius:j}),e.fill()):e.fillRect(Ne,Ie,Ye,Pt)}Od(e,t._pointLabels[a],u,m+l.lineHeight/2,l,{color:o.color,textAlign:_,textBaseline:"middle"})}}(this,o),a.display&&this.ticks.forEach((_,w)=>{0!==w&&(u=this.getDistanceFromCenterForValue(_.value),function Pl(t,n,e,r){const a=t.ctx,o=n.circular,{color:l,lineWidth:u}=n;!o&&!r||!l||!u||e<0||(a.save(),a.strokeStyle=l,a.lineWidth=u,a.setLineDash(n.borderDash),a.lineDashOffset=n.borderDashOffset,a.beginPath(),Ol(t,e,o,r),a.closePath(),a.stroke(),a.restore())}(this,a.setContext(this.getContext(w-1)),u,o))}),r.display){for(n.save(),l=o-1;l>=0;l--){const _=r.setContext(this.getPointLabelContext(l)),{color:w,lineWidth:M}=_;!M||!w||(n.lineWidth=M,n.strokeStyle=w,n.setLineDash(_.borderDash),n.lineDashOffset=_.borderDashOffset,u=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),m=this.getPointPosition(l,u),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(m.x,m.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){const n=this.ctx,e=this.options,r=e.ticks;if(!r.display)return;const a=this.getIndexAngle(0);let o,l;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(a),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((u,m)=>{if(0===m&&!e.reverse)return;const _=r.setContext(this.getContext(m)),w=$a(_.font);if(o=this.getDistanceFromCenterForValue(this.ticks[m].value),_.showLabelBackdrop){n.font=w.string,l=n.measureText(u.label).width,n.fillStyle=_.backdropColor;const M=Fo(_.backdropPadding);n.fillRect(-l/2-M.left,-o-w.size/2-M.top,l+M.width,w.size+M.height)}Od(n,u.label,0,-o,w,{color:_.color})}),n.restore()}drawTitle(){}}Vu.id="radialLinear",Vu.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Fm.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Vu.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Vu.descriptors={angleLines:{_fallback:"grid"}};const sf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},vs=Object.keys(sf);function ED(t,n){return t-n}function Fy(t,n){if(cr(n))return null;const e=t._adapter,{parser:r,round:a,isoWeekday:o}=t._parseOpts;let l=n;return"function"==typeof r&&(l=r(l)),Aa(l)||(l="string"==typeof r?e.parse(l,r):e.parse(l)),null===l?null:(a&&(l="week"!==a||!Ad(o)&&!0!==o?e.startOf(l,a):e.startOf(l,"isoWeek",o)),+l)}function Ly(t,n,e,r){const a=vs.length;for(let o=vs.indexOf(t);o<a-1;++o){const l=sf[vs[o]];if(l.common&&Math.ceil((e-n)/((l.steps?l.steps:Number.MAX_SAFE_INTEGER)*l.size))<=r)return vs[o]}return vs[a-1]}function Ny(t,n,e){if(e){if(e.length){const{lo:r,hi:a}=Dg(e,n);t[e[r]>=n?e[r]:e[a]]=!0}}else t[n]=!0}function Uy(t,n,e){const r=[],a={},o=n.length;let l,u;for(l=0;l<o;++l)u=n[l],a[u]=l,r.push({value:u,major:!1});return 0!==o&&e?function By(t,n,e,r){const a=t._adapter,o=+a.startOf(n[0].value,r),l=n[n.length-1].value;let u,m;for(u=o;u<=l;u=+a.add(u,1,r))m=e[u],m>=0&&(n[m].major=!0);return n}(t,r,a,e):r}let V_=(()=>{class t extends Bd{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,r){const a=e.time||(e.time={}),o=this._adapter=new B2._date(e.adapters.date);o.init(r),Ed(a.displayFormats,o.formats()),this._parseOpts={parser:a.parser,round:a.round,isoWeekday:a.isoWeekday},super.init(e),this._normalized=r.normalized}parse(e,r){return void 0===e?null:Fy(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,r=this._adapter,a=e.time.unit||"day";let{min:o,max:l,minDefined:u,maxDefined:m}=this.getUserBounds();function _(w){!u&&!isNaN(w.min)&&(o=Math.min(o,w.min)),!m&&!isNaN(w.max)&&(l=Math.max(l,w.max))}(!u||!m)&&(_(this._getLabelBounds()),("ticks"!==e.bounds||"labels"!==e.ticks.source)&&_(this.getMinMax(!1))),o=Aa(o)&&!isNaN(o)?o:+r.startOf(Date.now(),a),l=Aa(l)&&!isNaN(l)?l:+r.endOf(Date.now(),a)+1,this.min=Math.min(o,l-1),this.max=Math.max(o+1,l)}_getLabelBounds(){const e=this.getLabelTimestamps();let r=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;return e.length&&(r=e[0],a=e[e.length-1]),{min:r,max:a}}buildTicks(){const e=this.options,r=e.time,a=e.ticks,o="labels"===a.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const l=this.min,m=function Rw(t,n,e){let r=0,a=t.length;for(;r<a&&t[r]<n;)r++;for(;a>r&&t[a-1]>e;)a--;return r>0||a<t.length?t.slice(r,a):t}(o,l,this.max);return this._unit=r.unit||(a.autoSkip?Ly(r.minUnit,this.min,this.max,this._getLabelCapacity(l)):function Z_(t,n,e,r,a){for(let o=vs.length-1;o>=vs.indexOf(e);o--){const l=vs[o];if(sf[l].common&&t._adapter.diff(a,r,l)>=n-1)return l}return vs[e?vs.indexOf(e):0]}(this,m.length,r.minUnit,this.min,this.max)),this._majorUnit=a.major.enabled&&"year"!==this._unit?function lf(t){for(let n=vs.indexOf(t)+1,e=vs.length;n<e;++n)if(sf[vs[n]].common)return vs[n]}(this._unit):void 0,this.initOffsets(o),e.reverse&&m.reverse(),Uy(this,m,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e){let o,l,r=0,a=0;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),r=1===e.length?1-o:(this.getDecimalForValue(e[1])-o)/2,l=this.getDecimalForValue(e[e.length-1]),a=1===e.length?l:(l-this.getDecimalForValue(e[e.length-2]))/2);const u=e.length<3?.5:.25;r=Ga(r,0,u),a=Ga(a,0,u),this._offsets={start:r,end:a,factor:1/(r+1+a)}}_generate(){const e=this._adapter,r=this.min,a=this.max,o=this.options,l=o.time,u=l.unit||Ly(l.minUnit,r,a,this._getLabelCapacity(r)),m=Qi(l.stepSize,1),_="week"===u&&l.isoWeekday,w=Ad(_)||!0===_,M={};let N,z,O=r;if(w&&(O=+e.startOf(O,"isoWeek",_)),O=+e.startOf(O,w?"day":u),e.diff(a,r,u)>1e5*m)throw new Error(r+" and "+a+" are too far apart with stepSize of "+m+" "+u);const j="data"===o.ticks.source&&this.getDataTimestamps();for(N=O,z=0;N<a;N=+e.add(N,m,u),z++)Ny(M,N,j);return(N===a||"ticks"===o.bounds||1===z)&&Ny(M,N,j),Object.keys(M).sort((oe,Ne)=>oe-Ne).map(oe=>+oe)}getLabelForValue(e){const a=this.options.time;return this._adapter.format(e,a.tooltipFormat?a.tooltipFormat:a.displayFormats.datetime)}_tickFormatFunction(e,r,a,o){const l=this.options,u=l.time.displayFormats,m=this._unit,_=this._majorUnit,M=_&&u[_],O=a[r],z=this._adapter.format(e,o||(_&&M&&O&&O.major?M:m&&u[m])),j=l.ticks.callback;return j?Br(j,[z,r,a],this):z}generateTickLabels(e){let r,a,o;for(r=0,a=e.length;r<a;++r)o=e[r],o.label=this._tickFormatFunction(o.value,r,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const r=this._offsets,a=this.getDecimalForValue(e);return this.getPixelForDecimal((r.start+a)*r.factor)}getValueForPixel(e){const r=this._offsets,a=this.getDecimalForPixel(e)/r.factor-r.end;return this.min+a*(this.max-this.min)}_getLabelSize(e){const r=this.options.ticks,a=this.ctx.measureText(e).width,o=Zs(this.isHorizontal()?r.maxRotation:r.minRotation),l=Math.cos(o),u=Math.sin(o),m=this._resolveTickFontOptions(0).size;return{w:a*l+m*u,h:a*u+m*l}}_getLabelCapacity(e){const r=this.options.time,a=r.displayFormats,o=a[r.unit]||a.millisecond,l=this._tickFormatFunction(e,0,Uy(this,[e],this._majorUnit),o),u=this._getLabelSize(l),m=Math.floor(this.isHorizontal()?this.width/u.w:this.height/u.h)-1;return m>0?m:1}getDataTimestamps(){let r,a,e=this._cache.data||[];if(e.length)return e;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(r=0,a=o.length;r<a;++r)e=e.concat(o[r].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let r,a;if(e.length)return e;const o=this.getLabels();for(r=0,a=o.length;r<a;++r)e.push(Fy(this,o[r]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return du(e.sort(ED))}}return t.id="time",t.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}},t})();function cf(t,n,e){let o,l,u,m,r=0,a=t.length-1;e?(n>=t[r].pos&&n<=t[a].pos&&({lo:r,hi:a}=tc(t,"pos",n)),({pos:o,time:u}=t[r]),({pos:l,time:m}=t[a])):(n>=t[r].time&&n<=t[a].time&&({lo:r,hi:a}=tc(t,"time",n)),({time:o,pos:u}=t[r]),({time:l,pos:m}=t[a]));const _=l-o;return _?u+(m-u)*(n-o)/_:u}class mp extends V_{constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const n=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(n);this._minPos=cf(e,this.min),this._tableRange=cf(e,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){const{min:e,max:r}=this,a=[],o=[];let l,u,m,_,w;for(l=0,u=n.length;l<u;++l)_=n[l],_>=e&&_<=r&&a.push(_);if(a.length<2)return[{time:e,pos:0},{time:r,pos:1}];for(l=0,u=a.length;l<u;++l)w=a[l+1],m=a[l-1],_=a[l],Math.round((w+m)/2)!==_&&o.push({time:_,pos:l/(u-1)});return o}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;const e=this.getDataTimestamps(),r=this.getLabelTimestamps();return n=e.length&&r.length?this.normalize(e.concat(r)):e.length?e:r,n=this._cache.all=n,n}getDecimalForValue(n){return(cf(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){const e=this._offsets,r=this.getDecimalForPixel(n)/e.factor-e.end;return cf(this._table,r*this._tableRange+this._minPos,!0)}}mp.id="timeseries",mp.defaults=V_.defaults;const MD=[L2,Lu,Sy,Object.freeze({__proto__:null,CategoryScale:up,LinearScale:fp,LogarithmicScale:L_,RadialLinearScale:Vu,TimeScale:V_,TimeSeriesScale:mp})];var Zy=y(5778);const Hu=function gp(t,n){return t===n||t!=t&&n!=n},ju=function j_(t,n){for(var e=t.length;e--;)if(Hu(t[e][0],n))return e;return-1};var z_=Array.prototype.splice;function Yu(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}Yu.prototype.clear=function Vy(){this.__data__=[],this.size=0},Yu.prototype.delete=function Hy(t){var n=this.__data__,e=ju(n,t);return!(e<0||(e==n.length-1?n.pop():z_.call(n,e,1),--this.size,0))},Yu.prototype.get=function Yy(t){var n=this.__data__,e=ju(n,t);return e<0?void 0:n[e][1]},Yu.prototype.has=function AD(t){return ju(this.__data__,t)>-1},Yu.prototype.set=function kD(t,n){var e=this.__data__,r=ju(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this};const _p=Yu,Wy="object"==typeof global&&global&&global.Object===Object&&global;var VD="object"==typeof self&&self&&self.Object===Object&&self;const Yd=Wy||VD||Function("return this")();var $y=Yd.Symbol,W_=Object.prototype,qy=W_.hasOwnProperty,Qy=W_.toString,zu=$y?$y.toStringTag:void 0;var zd=Object.prototype.toString;var vp=$y?$y.toStringTag:void 0;const uf=function z2(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":vp&&vp in Object(t)?function Ky(t){var n=qy.call(t,zu),e=t[zu];try{t[zu]=void 0;var r=!0}catch{}var a=Qy.call(t);return r&&(n?t[zu]=e:delete t[zu]),a}(t):function HD(t){return zd.call(t)}(t)},Gu=function Jy(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)};const q_=function $u(t){if(!Gu(t))return!1;var n=uf(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n},qu=Yd["__core-js_shared__"];var da=function(){var t=/[^.]+$/.exec(qu&&qu.keys&&qu.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var GD=Function.prototype.toString;var rx=/^\[object .+?Constructor\]$/,KD=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const XD=function JD(t){return!(!Gu(t)||function W2(t){return!!da&&da in t}(t))&&(q_(t)?KD:rx).test(function tx(t){if(null!=t){try{return GD.call(t)}catch{}try{return t+""}catch{}}return""}(t))},xp=function ox(t,n){var e=function yp(t,n){return t?.[n]}(t,n);return XD(e)?e:void 0},Qu=xp(Yd,"Map"),mf=xp(Object,"create");var dx=Object.prototype.hasOwnProperty;var $2=Object.prototype.hasOwnProperty;function Ku(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}Ku.prototype.clear=function tT(){this.__data__=mf?mf(null):{},this.size=0},Ku.prototype.delete=function sx(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},Ku.prototype.get=function rT(t){var n=this.__data__;if(mf){var e=n[t];return"__lodash_hash_undefined__"===e?void 0:e}return dx.call(n,t)?n[t]:void 0},Ku.prototype.has=function q2(t){var n=this.__data__;return mf?void 0!==n[t]:$2.call(n,t)},Ku.prototype.set=function wp(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=mf&&void 0===n?"__lodash_hash_undefined__":n,this};const Q_=Ku,K_=function dT(t,n){var e=t.__data__;return function lT(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}(n)?e["string"==typeof n?"string":"hash"]:e.map};function Wd(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}Wd.prototype.clear=function pf(){this.size=0,this.__data__={hash:new Q_,map:new(Qu||_p),string:new Q_}},Wd.prototype.delete=function uT(t){var n=K_(this,t).delete(t);return this.size-=n?1:0,n},Wd.prototype.get=function hT(t){return K_(this,t).get(t)},Wd.prototype.has=function gf(t){return K_(this,t).has(t)},Wd.prototype.set=function fx(t,n){var e=K_(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this};const gT=Wd;function Ju(t){var n=this.__data__=new _p(t);this.size=n.size}Ju.prototype.clear=function OD(){this.__data__=new _p,this.size=0},Ju.prototype.delete=function RD(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Ju.prototype.get=function LD(t){return this.__data__.get(t)},Ju.prototype.has=function BD(t){return this.__data__.has(t)},Ju.prototype.set=function _T(t,n){var e=this.__data__;if(e instanceof _p){var r=e.__data__;if(!Qu||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new gT(r)}return e.set(t,n),this.size=e.size,this};const px=Ju;var gx=function(){try{var t=xp(Object,"defineProperty");return t({},"",{}),t}catch{}}();const Cp=gx,X_=function vT(t,n,e){"__proto__"==n&&Cp?Cp(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e},t0=function e0(t,n,e){(void 0!==e&&!Hu(t[n],e)||void 0===e&&!(n in t))&&X_(t,n,e)};var bT=function _x(t){return function(n,e,r){for(var a=-1,o=Object(n),l=r(n),u=l.length;u--;){var m=l[t?u:++a];if(!1===e(o[m],m,o))break}return n}}();const yT=bT;var vx="object"==typeof exports&&exports&&!exports.nodeType&&exports,bx=vx&&"object"==typeof module&&module&&!module.nodeType&&module,yx=bx&&bx.exports===vx?Yd.Buffer:void 0,xx=yx?yx.allocUnsafe:void 0;const Dx=Yd.Uint8Array,TT=function DT(t,n){var e=n?function Tx(t){var n=new t.constructor(t.byteLength);return new Dx(n).set(new Dx(t)),n}(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)};var a0=Object.create,o0=function(){function t(){}return function(n){if(!Gu(n))return{};if(a0)return a0(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();const ET=o0;var AT=function MT(t,n){return function(e){return t(n(e))}}(Object.getPrototypeOf,Object);const s0=AT;var Xu=Object.prototype;const Ax=function Mx(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||Xu)},_f=function l0(t){return null!=t&&"object"==typeof t};const d0=function ST(t){return _f(t)&&"[object Arguments]"==uf(t)};var Dp=Object.prototype,kx=Dp.hasOwnProperty,Ix=Dp.propertyIsEnumerable,Ox=d0(function(){return arguments}())?d0:function(t){return _f(t)&&kx.call(t,"callee")&&!Ix.call(t,"callee")};const Tp=Ox,u0=Array.isArray;const h0=function OT(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Ep=function X2(t){return null!=t&&h0(t.length)&&!q_(t)};var Px="object"==typeof exports&&exports&&!exports.nodeType&&exports,f0=Px&&"object"==typeof module&&module&&!module.nodeType&&module,m0=f0&&f0.exports===Px?Yd.Buffer:void 0;const Fx=(m0?m0.isBuffer:void 0)||function eA(){return!1};var Lx=Function.prototype.toString,vf=Object.prototype.hasOwnProperty,Nx=Lx.call(Object);var Jr={};Jr["[object Float32Array]"]=Jr["[object Float64Array]"]=Jr["[object Int8Array]"]=Jr["[object Int16Array]"]=Jr["[object Int32Array]"]=Jr["[object Uint8Array]"]=Jr["[object Uint8ClampedArray]"]=Jr["[object Uint16Array]"]=Jr["[object Uint32Array]"]=!0,Jr["[object Arguments]"]=Jr["[object Array]"]=Jr["[object ArrayBuffer]"]=Jr["[object Boolean]"]=Jr["[object DataView]"]=Jr["[object Date]"]=Jr["[object Error]"]=Jr["[object Function]"]=Jr["[object Map]"]=Jr["[object Number]"]=Jr["[object Object]"]=Jr["[object RegExp]"]=Jr["[object Set]"]=Jr["[object String]"]=Jr["[object WeakMap]"]=!1;var kp="object"==typeof exports&&exports&&!exports.nodeType&&exports,eh=kp&&"object"==typeof module&&module&&!module.nodeType&&module,xf=eh&&eh.exports===kp&&Wy.process,JT=function(){try{return eh&&eh.require&&eh.require("util").types||xf&&xf.binding&&xf.binding("util")}catch{}}(),$x=JT&&JT.isTypedArray;const b0=$x?function Wx(t){return function(n){return t(n)}}($x):function zx(t){return _f(t)&&h0(t.length)&&!!Jr[uf(t)]},Ip=function y0(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]};var Qx=Object.prototype.hasOwnProperty;const eE=function Kx(t,n,e){var r=t[n];(!Qx.call(t,n)||!Hu(r,e)||void 0===e&&!(n in t))&&X_(t,n,e)};var rs=/^(?:0|[1-9]\d*)$/;const n1=function th(t,n){var e=typeof t;return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&rs.test(t))&&t>-1&&t%1==0&&t<n};var nA=Object.prototype.hasOwnProperty;const r1=function iA(t,n){var e=u0(t),r=!e&&Tp(t),a=!e&&!r&&Fx(t),o=!e&&!r&&!a&&b0(t),l=e||r||a||o,u=l?function tE(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}(t.length,String):[],m=u.length;for(var _ in t)(n||nA.call(t,_))&&(!l||!("length"==_||a&&("offset"==_||"parent"==_)||o&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||n1(_,m)))&&u.push(_);return u};var w0=Object.prototype.hasOwnProperty;const a1=function rE(t){if(!Gu(t))return function x0(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}(t);var n=Ax(t),e=[];for(var r in t)"constructor"==r&&(n||!w0.call(t,r))||e.push(r);return e},o1=function aE(t){return Ep(t)?r1(t,!0):a1(t)},C0=function oE(t){return function Jx(t,n,e,r){var a=!e;e||(e={});for(var o=-1,l=n.length;++o<l;){var u=n[o],m=r?r(e[u],t[u],u,e,t):void 0;void 0===m&&(m=t[u]),a?X_(e,u,m):eE(e,u,m)}return e}(t,o1(t))},l1=function s1(t,n,e,r,a,o,l){var u=Ip(t,e),m=Ip(n,e),_=l.get(m);if(_)t0(t,e,_);else{var w=o?o(u,m,e+"",t,n,l):void 0,M=void 0===w;if(M){var O=u0(m),N=!O&&Fx(m),z=!O&&!N&&b0(m);w=m,O||N||z?u0(u)?w=u:function PT(t){return _f(t)&&Ep(t)}(u)?w=function n0(t,n){var e=-1,r=t.length;for(n||(n=Array(r));++e<r;)n[e]=t[e];return n}(u):N?(M=!1,w=function wx(t,n){if(n)return t.slice();var e=t.length,r=xx?xx(e):new t.constructor(e);return t.copy(r),r}(m,!0)):z?(M=!1,w=TT(m,!0)):w=[]:function Bx(t){if(!_f(t)||"[object Object]"!=uf(t))return!1;var n=s0(t);if(null===n)return!0;var e=vf.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Lx.call(e)==Nx}(m)||Tp(m)?(w=u,Tp(u)?w=C0(u):(!Gu(u)||q_(u))&&(w=function J2(t){return"function"!=typeof t.constructor||Ax(t)?{}:ET(s0(t))}(m))):M=!1}M&&(l.set(m,w),a(w,m,r,o,l),l.delete(m)),t0(t,e,w)}},D0=function Cf(t,n,e,r,a){t!==n&&yT(n,function(o,l){if(a||(a=new px),Gu(o))l1(t,n,l,e,Cf,r,a);else{var u=r?r(Ip(t,l),o,l+"",t,n,a):void 0;void 0===u&&(u=o),t0(t,l,u)}},o1)},T0=function rA(t){return t},c1=function sE(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)};var Gd=Math.max;const aA=function E0(t){return function(){return t}};var cE=Cp?function(t,n){return Cp(t,"toString",{configurable:!0,enumerable:!1,value:aA(n),writable:!0})}:T0,dE=800,uE=16,hE=Date.now,mE=function u1(t){var n=0,e=0;return function(){var r=hE(),a=uE-(r-e);if(e=r,a>0){if(++n>=dE)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}(cE);const h1=mE,pE=function f1(t,n){return h1(function lE(t,n,e){return n=Gd(void 0===n?t.length-1:n,0),function(){for(var r=arguments,a=-1,o=Gd(r.length-n,0),l=Array(o);++a<o;)l[a]=r[n+a];a=-1;for(var u=Array(n+1);++a<n;)u[a]=r[a];return u[n]=e(l),c1(t,this,u)}}(t,n,T0),t+"")};var p1=function _E(t){return pE(function(n,e){var r=-1,a=e.length,o=a>1?e[a-1]:void 0,l=a>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(a--,o):void 0,l&&function gE(t,n,e){if(!Gu(e))return!1;var r=typeof n;return!!("number"==r?Ep(e)&&n1(n,e.length):"string"==r&&n in e)&&Hu(e[n],t)}(e[0],e[1],l)&&(o=a<3?void 0:o,a=1),n=Object(n);++r<a;){var u=e[r];u&&t(n,u,r,o)}return n})}(function(t,n,e){D0(t,n,e)});const M0=p1;var g1=y(6438);let bE=(()=>{class t{constructor(){this.colorschemesOptions=new g1.X(void 0)}setColorschemesOptions(e){this.pColorschemesOptions=e,this.colorschemesOptions.next(e)}getColorschemesOptions(){return this.pColorschemesOptions}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),nh=(()=>{class t{constructor(e,r,a){this.zone=r,this.themeService=a,this.type="bar",this.plugins=[],this.chartClick=new i.vpe,this.chartHover=new i.vpe,this.subs=[],this.ctx=e.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe((0,Zy.x)()).subscribe(o=>this.themeChanged(o)))}ngOnChanges(e){const r=["type"],a=Object.getOwnPropertyNames(e);if(a.some(o=>r.includes(o))||a.every(o=>e[o].isFirstChange()))this.render();else{const o=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,o.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,o.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,o.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(e=>e.unsubscribe())}render(){return this.chart&&this.chart.destroy(),Vd.register(...this.plugins),this.zone.runOutsideAngular(()=>this.chart=new Vd(this.ctx,this.getChartConfiguration()))}update(e){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(e))}hideDataset(e,r){this.chart&&(this.chart.getDatasetMeta(e).hidden=r,this.update())}isDatasetHidden(e){return this.chart?.getDatasetMeta(e)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(e){this.themeOverrides=e,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return M0({onHover:(e,r)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:e,active:r}))},onClick:(e,r)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:e,active:r}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions()}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(bE))},t.\u0275dir=i.lG2({type:t,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[i.TTD]}),t})();const sA=[[255,99,132],[54,162,235],[255,206,86],[231,233,237],[75,192,192],[151,187,205],[220,220,220],[247,70,74],[70,191,189],[253,180,92],[148,159,177],[77,83,96]],_1={datasets:{line:{backgroundColor:t=>bs(ys(t.datasetIndex),.4),borderColor:t=>bs(ys(t.datasetIndex),1),pointBackgroundColor:t=>bs(ys(t.datasetIndex),1),pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:t=>bs(ys(t.datasetIndex),.8)},bar:{backgroundColor:t=>bs(ys(t.datasetIndex),.6),borderColor:t=>bs(ys(t.datasetIndex),1),hoverBackgroundColor:t=>bs(ys(t.datasetIndex),.8),hoverBorderColor:t=>bs(ys(t.datasetIndex),1)},get radar(){return this.line},doughnut:{backgroundColor:t=>bs(ys(t.dataIndex),.6),borderColor:"#fff",hoverBackgroundColor:t=>bs(ys(t.dataIndex),1),hoverBorderColor:t=>bs(ys(t.dataIndex),1)},get pie(){return this.doughnut},polarArea:{backgroundColor:t=>bs(ys(t.dataIndex),.6),borderColor:t=>bs(ys(t.dataIndex),1),hoverBackgroundColor:t=>bs(ys(t.dataIndex),.8),hoverBorderColor:t=>bs(ys(t.dataIndex),1)},get bubble(){return this.doughnut},get scatter(){return this.doughnut},get area(){return this.polarArea}}};function bs(t,n){return"rgba("+t.concat(n).join(",")+")"}function v1(t,n){return Math.floor(Math.random()*(n-t+1))+t}function ys(t=0){return sA[t]||function lA(){return[v1(0,255),v1(0,255),v1(0,255)]}()}let yE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();Vd.register(...MD);let xE=(()=>{class t{constructor(e){e?.plugins&&Vd.register(...e?.plugins);const r=M0(_1,e?.defaults||{});mr.set(r)}static forRoot(e){return{ngModule:t,providers:[{provide:yE,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(yE,8))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[]]}),t})();var Lc=y(9602),wi=y(5861),Df=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),Op_textSize=function(t,n,e){var u,r=[].concat(n),a=r.length,o=t.font,l=0;for(t.font=e.string,u=0;u<a;++u)l=Math.max(t.measureText(r[u]).width,l);return t.font=o,{height:a*e.lineHeight,width:l}};function Pp(t,n){var e=n.x,r=n.y;if(null===e)return{x:0,y:-1};if(null===r)return{x:1,y:0};var a=t.x-e,o=t.y-r,l=Math.sqrt(a*a+o*o);return{x:l?a/l:0,y:l?o/l:-1}}var b1=0,A0=1,wE=2,Fp=4,S0=8;function Lp(t,n,e){var r=b1;return t<e.left?r|=A0:t>e.right&&(r|=wE),n<e.top?r|=S0:n>e.bottom&&(r|=Fp),r}function Np(t,n){var a,o,e=n.anchor,r=t;return n.clamp&&(r=function cA(t,n){for(var m,_,w,e=t.x0,r=t.y0,a=t.x1,o=t.y1,l=Lp(e,r,n),u=Lp(a,o,n);l|u&&!(l&u);)(m=l||u)&S0?(_=e+(a-e)*(n.top-r)/(o-r),w=n.top):m&Fp?(_=e+(a-e)*(n.bottom-r)/(o-r),w=n.bottom):m&wE?(w=r+(o-r)*(n.right-e)/(a-e),_=n.right):m&A0&&(w=r+(o-r)*(n.left-e)/(a-e),_=n.left),m===l?l=Lp(e=_,r=w,n):u=Lp(a=_,o=w,n);return{x0:e,x1:a,y0:r,y1:o}}(r,n.area)),"start"===e?(a=r.x0,o=r.y0):"end"===e?(a=r.x1,o=r.y1):(a=(r.x0+r.x1)/2,o=(r.y0+r.y1)/2),function Rp(t,n,e,r,a){switch(a){case"center":e=r=0;break;case"bottom":e=0,r=1;break;case"right":e=1,r=0;break;case"left":e=-1,r=0;break;case"top":e=0,r=-1;break;case"start":e=-e,r=-r;break;case"end":break;default:a*=Math.PI/180,e=Math.cos(a),r=Math.sin(a)}return{x:t,y:n,vx:e,vy:r}}(a,o,t.vx,t.vy,n.align)}var Bp={arc:function(t,n){var e=(t.startAngle+t.endAngle)/2,r=Math.cos(e),a=Math.sin(e),o=t.innerRadius,l=t.outerRadius;return Np({x0:t.x+r*o,y0:t.y+a*o,x1:t.x+r*l,y1:t.y+a*l,vx:r,vy:a},n)},point:function(t,n){var e=Pp(t,n.origin),r=e.x*t.options.radius,a=e.y*t.options.radius;return Np({x0:t.x-r,y0:t.y-a,x1:t.x+r,y1:t.y+a,vx:e.x,vy:e.y},n)},bar:function(t,n){var e=Pp(t,n.origin),r=t.x,a=t.y,o=0,l=0;return t.horizontal?(r=Math.min(t.x,t.base),o=Math.abs(t.base-t.x)):(a=Math.min(t.y,t.base),l=Math.abs(t.base-t.y)),Np({x0:r,y0:a+l,x1:r+o,y1:a,vx:e.x,vy:e.y},n)},fallback:function(t,n){var e=Pp(t,n.origin);return Np({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:e.x,vy:e.y},n)}},Nc=function(t){return Math.round(t*Df)/Df};function CE(t,n){var e=n.chart.getDatasetMeta(n.datasetIndex).vScale;if(!e)return null;if(void 0!==e.xCenter&&void 0!==e.yCenter)return{x:e.xCenter,y:e.yCenter};var r=e.getBasePixel();return t.horizontal?{x:r,y:null}:{x:null,y:r}}function dA(t){return t instanceof nf?Bp.arc:t instanceof Pu?Bp.point:t instanceof rc?Bp.bar:Bp.fallback}function TE(t,n,e){var r=t.shadowBlur,a=e.stroked,o=Nc(e.x),l=Nc(e.y),u=Nc(e.w);a&&t.strokeText(n,o,l,u),e.filled&&(r&&a&&(t.shadowBlur=0),t.fillText(n,o,l,u),r&&a&&(t.shadowBlur=r))}var ME=function(t,n,e,r){var a=this;a._config=t,a._index=r,a._model=null,a._rects=null,a._ctx=n,a._el=e};Jl(ME.prototype,{_modelize:function(t,n,e,r){var a=this,o=a._index,l=$a(Yr([e.font,{}],r,o)),u=Yr([e.color,mr.color],r,o);return{align:Yr([e.align,"center"],r,o),anchor:Yr([e.anchor,"center"],r,o),area:r.chart.chartArea,backgroundColor:Yr([e.backgroundColor,null],r,o),borderColor:Yr([e.borderColor,null],r,o),borderRadius:Yr([e.borderRadius,0],r,o),borderWidth:Yr([e.borderWidth,0],r,o),clamp:Yr([e.clamp,!1],r,o),clip:Yr([e.clip,!1],r,o),color:u,display:t,font:l,lines:n,offset:Yr([e.offset,4],r,o),opacity:Yr([e.opacity,1],r,o),origin:CE(a._el,r),padding:Fo(Yr([e.padding,4],r,o)),positioner:dA(a._el),rotation:Yr([e.rotation,0],r,o)*(Math.PI/180),size:Op_textSize(a._ctx,n,l),textAlign:Yr([e.textAlign,"start"],r,o),textShadowBlur:Yr([e.textShadowBlur,0],r,o),textShadowColor:Yr([e.textShadowColor,u],r,o),textStrokeColor:Yr([e.textStrokeColor,u],r,o),textStrokeWidth:Yr([e.textStrokeWidth,0],r,o)}},update:function(t){var l,u,m,n=this,e=null,r=null,a=n._index,o=n._config,_=Yr([o.display,!0],t,a);_&&(m=cr(u=Qi(Br(o.formatter,[l=t.dataset.data[a],t]),l))?[]:function(t){var e,n=[];for(t=[].concat(t);t.length;)"string"==typeof(e=t.pop())?n.unshift.apply(n,e.split("\n")):Array.isArray(e)?t.push.apply(t,e):cr(t)||n.unshift(""+e);return n}(u)).length&&(r=function Up(t){var n=t.borderWidth||0,e=t.padding,r=t.size.height,a=t.size.width,o=-a/2,l=-r/2;return{frame:{x:o-e.left-n,y:l-e.top-n,w:a+e.width+2*n,h:r+e.height+2*n},text:{x:o,y:l,w:a,h:r}}}(e=n._modelize(_,m,o,t))),n._model=e,n._rects=r},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(t,n){var l,r=t.ctx,a=this._model,o=this._rects;this.visible()&&(r.save(),a.clip&&(l=a.area,r.beginPath(),r.rect(l.left,l.top,l.right-l.left,l.bottom-l.top),r.clip()),r.globalAlpha=function(t,n,e){return Math.max(t,Math.min(n,e))}(0,a.opacity,1),r.translate(Nc(n.x),Nc(n.y)),r.rotate(a.rotation),function hA(t,n,e){var r=e.backgroundColor,a=e.borderColor,o=e.borderWidth;!r&&(!a||!o)||(t.beginPath(),function uA(t,n,e,r,a,o){var l=Math.PI/2;if(o){var u=Math.min(o,a/2,r/2),m=n+u,_=e+u,w=n+r-u,M=e+a-u;t.moveTo(n,_),m<w&&_<M?(t.arc(m,_,u,-Math.PI,-l),t.arc(w,_,u,-l,0),t.arc(w,M,u,0,l),t.arc(m,M,u,l,Math.PI)):m<w?(t.moveTo(m,e),t.arc(w,_,u,-l,l),t.arc(m,_,u,l,Math.PI+l)):_<M?(t.arc(m,_,u,-Math.PI,0),t.arc(m,M,u,0,Math.PI)):t.arc(m,_,u,-Math.PI,Math.PI),t.closePath(),t.moveTo(n,e)}else t.rect(n,e,r,a)}(t,Nc(n.x)+o/2,Nc(n.y)+o/2,Nc(n.w)-o,Nc(n.h)-o,e.borderRadius),t.closePath(),r&&(t.fillStyle=r,t.fill()),a&&o&&(t.strokeStyle=a,t.lineWidth=o,t.lineJoin="miter",t.stroke()))}(r,o.frame,a),function EE(t,n,e,r){var O,a=r.textAlign,o=r.color,l=!!o,u=r.font,m=n.length,_=r.textStrokeColor,w=r.textStrokeWidth,M=_&&w;if(m&&(l||M))for(e=function DE(t,n,e){var r=e.lineHeight,a=t.w,o=t.x;return"center"===n?o+=a/2:("end"===n||"right"===n)&&(o+=a),{h:r,w:a,x:o,y:t.y+r/2}}(e,a,u),t.font=u.string,t.textAlign=a,t.textBaseline="middle",t.shadowBlur=r.textShadowBlur,t.shadowColor=r.textShadowColor,l&&(t.fillStyle=o),M&&(t.lineJoin="round",t.lineWidth=w,t.strokeStyle=_),O=0,m=n.length;O<m;++O)TE(t,n[O],{stroked:M,filled:l,w:e.w,x:e.x,y:e.y+e.h*O})}(r,a.lines,o.text,a),r.restore())}});var AE=Number.MIN_SAFE_INTEGER||-9007199254740991,y1=Number.MAX_SAFE_INTEGER||9007199254740991;function ih(t,n,e){var r=Math.cos(e),a=Math.sin(e),o=n.x,l=n.y;return{x:o+r*(t.x-o)-a*(t.y-l),y:l+a*(t.x-o)+r*(t.y-l)}}function SE(t,n){var o,l,_,e=y1,r=AE,a=n.origin;for(o=0;o<t.length;++o)_=n.vx*((l=t[o]).x-a.x)+n.vy*(l.y-a.y),e=Math.min(e,_),r=Math.max(r,_);return{min:e,max:r}}function xs(t,n){var e=n.x-t.x,r=n.y-t.y,a=Math.sqrt(e*e+r*r);return{vx:(n.x-t.x)/a,vy:(n.y-t.y)/a,origin:t,ln:a}}var x1=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function Zp(t,n,e){var r=n.positioner(t,n),a=r.vx,o=r.vy;if(!a&&!o)return{x:r.x,y:r.y};var l=e.w,u=e.h,m=n.rotation,_=Math.abs(l/2*Math.cos(m))+Math.abs(u/2*Math.sin(m)),w=Math.abs(l/2*Math.sin(m))+Math.abs(u/2*Math.cos(m)),M=1/Math.max(Math.abs(a),Math.abs(o));return _*=a*M,w*=o*M,{x:r.x+(_+=n.offset*a),y:r.y+(w+=n.offset*o)}}Jl(x1.prototype,{center:function(){var t=this._rect;return{x:t.x+t.w/2,y:t.y+t.h/2}},update:function(t,n,e){this._rotation=e,this._rect={x:n.x+t.x,y:n.y+t.y,w:n.w,h:n.h}},contains:function(t){var n=this,r=n._rect;return!((t=ih(t,n.center(),-n._rotation)).x<r.x-1||t.y<r.y-1||t.x>r.x+r.w+2||t.y>r.y+r.h+2)},intersects:function(t){var a,o,l,n=this._points(),e=t._points(),r=[xs(n[0],n[1]),xs(n[0],n[3])];for(this._rotation!==t._rotation&&r.push(xs(e[0],e[1]),xs(e[0],e[3])),a=0;a<r.length;++a)if(o=SE(n,r[a]),l=SE(e,r[a]),o.max<l.min||l.max<o.min)return!1;return!0},_points:function(){var t=this,n=t._rect,e=t._rotation,r=t.center();return[ih({x:n.x,y:n.y},r,e),ih({x:n.x+n.w,y:n.y},r,e),ih({x:n.x+n.w,y:n.y+n.h},r,e),ih({x:n.x,y:n.y+n.h},r,e)]}});var No={prepare:function(t){var e,r,a,o,l,n=[];for(e=0,a=t.length;e<a;++e)for(r=0,o=t[e].length;r<o;++r)n.push(l=t[e][r]),l.$layout={_box:new x1,_hidable:!1,_visible:!0,_set:e,_idx:l._index};return n.sort(function(u,m){var _=u.$layout,w=m.$layout;return _._idx===w._idx?w._set-_._set:w._idx-_._idx}),this.update(n),n},update:function(t){var e,r,a,o,l,n=!1;for(e=0,r=t.length;e<r;++e)o=(a=t[e]).model(),(l=a.$layout)._hidable=o&&"auto"===o.display,l._visible=a.visible(),n|=l._hidable;n&&function fA(t){var n,e,r,a,o,l,u;for(n=0,e=t.length;n<e;++n)(a=(r=t[n]).$layout)._visible&&(u=new Proxy(r._el,{get:(m,_)=>m.getProps([_],!0)[_]}),o=r.geometry(),l=Zp(u,r.model(),o),a._box.update(l,o,r.rotation()));(function kE(t,n){var e,r,a,o;for(e=t.length-1;e>=0;--e)for(a=t[e].$layout,r=e-1;r>=0&&a._visible;--r)(o=t[r].$layout)._visible&&a._box.intersects(o._box)&&n(a,o)})(t,function(m,_){var w=m._hidable,M=_._hidable;w&&M||M?_._visible=!1:w&&(m._visible=!1)})}(t)},lookup:function(t,n){var e,r;for(e=t.length-1;e>=0;--e)if((r=t[e].$layout)&&r._visible&&r._box.contains(n))return t[e];return null},draw:function(t,n){var e,r,a,o,l,u;for(e=0,r=n.length;e<r;++e)(o=(a=n[e]).$layout)._visible&&(l=a.geometry(),u=Zp(a._el,a.model(),l),o._box.update(u,l,a.rotation()),a.draw(t,u))}},k0={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(t){if(cr(t))return null;var e,r,a,n=t;if(_r(t))if(cr(t.label))if(cr(t.r))for(n="",a=0,r=(e=Object.keys(t)).length;a<r;++a)n+=(0!==a?", ":"")+e[a]+": "+t[e[a]];else n=t.r;else n=t.label;return""+n},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},ws="$datalabels",w1="$default";function Vp(t,n,e,r){if(n){var l,a=e.$context,o=e.$groups;n[o._set]&&(l=n[o._set][o._key])&&!0===Br(l,[a,r])&&(t[ws]._dirty=!0,e.update(a))}}var od={id:"datalabels",defaults:k0,beforeInit:function(t){t[ws]={_actives:[]}},beforeUpdate:function(t){var n=t[ws];n._listened=!1,n._listeners={},n._datasets=[],n._labels=[]},afterDatasetUpdate:function(t,n,e){var M,O,N,z,j,oe,Ne,Ie,r=n.index,a=t[ws],o=a._datasets[r]=[],l=t.isDatasetVisible(r),u=t.data.datasets[r],m=function I0(t,n){var o,l,e=t.datalabels,r={},a=[];return!1===e?null:(!0===e&&(e={}),n=Jl({},[n,e]),o=n.labels||{},l=Object.keys(o),delete n.labels,l.length?l.forEach(function(u){o[u]&&a.push(Jl({},[n,o[u],{_key:u}]))}):a.push(n),r=a.reduce(function(u,m){return Ar(m.listeners||{},function(_,w){u[w]=u[w]||{},u[w][m._key||w1]=_}),delete m.listeners,u},{}),{labels:a,listeners:r})}(u,e),_=n.meta.data||[],w=t.ctx;for(w.save(),M=0,N=_.length;M<N;++M)if((Ne=_[M])[ws]=[],l&&Ne&&t.getDataVisibility(M)&&!Ne.skip)for(O=0,z=m.labels.length;O<z;++O)oe=(j=m.labels[O])._key,(Ie=new ME(j,w,Ne,M)).$groups={_set:r,_key:oe||w1},Ie.$context={active:!1,chart:t,dataIndex:M,dataset:u,datasetIndex:r},Ie.update(Ie.$context),Ne[ws].push(Ie),o.push(Ie);w.restore(),Jl(a._listeners,m.listeners,{merger:function(Ye,Pt,Ut){Pt[Ye]=Pt[Ye]||{},Pt[Ye][n.index]=Ut[Ye],a._listened=!0}})},afterUpdate:function(t){t[ws]._labels=No.prepare(t[ws]._datasets)},afterDatasetsDraw:function(t){No.draw(t,t[ws]._labels)},beforeEvent:function(t,n){if(t[ws]._listened){var e=n.event;switch(e.type){case"mousemove":case"mouseout":!function OE(t,n){var a,o,e=t[ws],r=e._listeners;if(r.enter||r.leave){if("mousemove"===n.type)o=No.lookup(e._labels,n);else if("mouseout"!==n.type)return;a=e._hovered,e._hovered=o,function C1(t,n,e,r,a){var o,l;!e&&!r||(e?r?e!==r&&(l=o=!0):l=!0:o=!0,l&&Vp(t,n.leave,e,a),o&&Vp(t,n.enter,r,a))}(t,r,a,o,n)}}(t,e);break;case"click":!function D1(t,n){var e=t[ws],r=e._listeners.click,a=r&&No.lookup(e._labels,n);a&&Vp(t,r,a,n)}(t,e)}}},afterEvent:function(t){var o,l,u,m,_,w,M,n=t[ws],a=function(t,n){var a,o,l,u,e=t.slice(),r=[];for(a=0,l=n.length;a<l;++a)-1===(o=e.indexOf(u=n[a]))?r.push([u,1]):e.splice(o,1);for(a=0,l=e.length;a<l;++a)r.push([e[a],-1]);return r}(n._actives,n._actives=t.getActiveElements());for(o=0,l=a.length;o<l;++o)if((_=a[o])[1])for(u=0,m=(M=_[0].element[ws]||[]).length;u<m;++u)(w=M[u]).$context.active=1===_[1],w.update(w.$context);(n._dirty||a.length)&&(No.update(n._labels),t.render()),delete n._dirty}},Ys=y(220);let Hp=(()=>{class t{constructor(e){this.apollo=e,this.ordersQuery=Rt.Ps`
query ($partnerId: MongoID!) {
orderMany (filter: {partnerId: $partnerId, fullyPaid:true}) {
omsgid,
name,
createdAt,
instanceId,
storeName,
totalPriceSet {
amount,
currencyCode
}
}
}
`,this.invoiceGenerateQuery=Rt.Ps`
mutation ($partnerId: MongoID!, $startDate: Date!, $endDate: Date!){
invoiceGenerate (partnerId: $partnerId, startDate: $startDate, endDate: $endDate) {
_id,
partnerId,
partnerVatNumber,
companyName,
companyAddress,
indacoCompanyName,
indacoVatNumber,
indacoAddress,
orders{
name,
customer{
displayName,
email,
phone
},
shippingAddress{
address1,
address2,
city,
province,
country
},
shipment{
warehouse{
name,
address{
street1,
street2,
city,
country,
},
phone,
},
trackingCarrier,
carrierId,
},
items{
name,
sku,
},
totalPriceSet{
amount,
currencyCode,
},
},
ordersTotal,
royalties{
orderId,
royaltyAmount,
currency,
},
royaltiesTotal,
services{
name,
moduleCost,
},
warehouseTotal,
warehouseCosts {
warehouseId,
warehouseName,
costObject,
total,
}
servicesTotal,
startDate,
endDate
}
}
`,this.invoiceGetManyQuery=Rt.Ps`
query ($partnerId: MongoID!, $startDate: Date!, $endDate: Date!){
invoicesPeriod (partnerId: $partnerId, startDate: $startDate, endDate: $endDate) {
_id,
partnerId,
partnerVatNumber,
companyName,
companyAddress,
indacoCompanyName,
indacoVatNumber,
indacoAddress,
orders{
name,
customer{
displayName,
email,
phone
},
shippingAddress{
address1,
address2,
city,
province,
country
},
shipment{
warehouse{
name,
address{
street1,
street2,
city,
country,
},
phone,
},
trackingCarrier,
carrierId,
},
items{
name,
sku,
},
totalPriceSet{
amount,
currencyCode,
},
},
ordersTotal,
royalties{
orderId,
royaltyAmount,
currency,
},
royaltiesTotal,
services{
name,
moduleCost,
},
servicesTotal,
warehouseTotal,
warehouseCosts {
warehouseId,
warehouseName,
costObject,
total,
}
startDate,
endDate,
createdAt,
}
}
`,this.invoiceGetOneIdQuery=Rt.Ps`
query ($invoiceId: MongoID!){
invoiceById (_id: $invoiceId) {
_id,
partnerId,
partnerVatNumber,
companyName,
companyAddress,
indacoCompanyName,
indacoVatNumber,
indacoAddress,
orders{
omsgid,
instanceId,
storeName,
name,
customer{
displayName,
email,
phone
},
shippingAddress{
address1,
address2,
city,
province,
country
},
shipment{
warehouse{
name,
address{
street1,
street2,
city,
country,
},
phone,
},
trackingCarrier,
carrierId,
},
items{
name,
sku,
},
totalPriceSet{
amount,
currencyCode,
},
},
ordersTotal,
royalties{
orderId,
royaltyAmount,
currency,
},
royaltiesTotal,
services{
name,
moduleCost,
},
servicesTotal,
warehouseTotal,
warehouseCosts {
warehouseId,
warehouseName,
costObject,
total,
}
startDate,
endDate,
createdAt,
}
}
`,this.subPlanQuery=Rt.Ps`
query ($partnerId: MongoID!){
partnerOne(filter: {_id: $partnerId}){
subscriptionPlan{
name,
royaltyRate,
indacoModules{
name,
moduleCost,
moduleAccessibleFeatures{
name
}
}
}
}
}
`}generateSalesReport(e,r){}getPartnerBillings(e,r,a){return(0,wi.Z)(function*(){return null})()}getPeriodSales(e,r,a){var o=this;return(0,wi.Z)(function*(){const l=yield o.apollo.query({query:o.ordersQuery,fetchPolicy:"network-only",variables:{partnerId:e}}).toPromise().catch(w=>{throw new Error(w)}),u=new Array;r.setMonth(0),r.setDate(1),a.setMonth(11),a.setDate(31);const _=(yield o.getPlanDetails(e))?.royaltyRate;return l.data.orderMany.forEach(w=>{new Date(w.createdAt)>=r&&new Date(w.createdAt)<=a&&_&&u.push({id:w.omsgid,name:w.name,amount:w.totalPriceSet.amount.valueOf(),currency:w.totalPriceSet.currencyCode,month:new Date(w.createdAt).getMonth(),orderRoyalty:parseFloat((w.totalPriceSet.amount.valueOf()*_/100).toFixed(2))})}),u})()}getPlanDetails(e){var r=this;return(0,wi.Z)(function*(){return(yield r.apollo.query({query:r.subPlanQuery,fetchPolicy:"network-only",variables:{partnerId:e}}).toPromise().catch(o=>{throw new Error(o)})).data.partnerOne.subscriptionPlan})()}getINDACOInvoices(e,r,a){var o=this;return(0,wi.Z)(function*(){return(yield o.apollo.query({query:o.invoiceGetManyQuery,fetchPolicy:"network-only",variables:{partnerId:e,startDate:r,endDate:a}}).toPromise().catch(u=>{throw new Error(u)})).data.invoicesPeriod})()}getINDACOInvoice(e){var r=this;return(0,wi.Z)(function*(){return(yield r.apollo.query({query:r.invoiceGetOneIdQuery,fetchPolicy:"network-only",variables:{invoiceId:e}}).toPromise().catch(o=>{throw new Error(o)})).data.invoiceById})()}getAllPartnersBillings(e,r,a){var o=this;return(0,wi.Z)(function*(){const l=new Array;return e.forEach(function(){var u=(0,wi.Z)(function*(m){const _=yield o.getPartnerBillings(m,r,a);l.push(_)});return function(m){return u.apply(this,arguments)}}()),l})()}generateInvoice(e,r,a){var o=this;return(0,wi.Z)(function*(){return yield o.apollo.mutate({mutation:o.invoiceGenerateQuery,fetchPolicy:"network-only",variables:{partnerId:e,startDate:r,endDate:a}}).toPromise().catch(u=>{throw new Error(u)})})()}generateAllInvoices(e,r,a){var o=this;return(0,wi.Z)(function*(){const l=new Array;return e.forEach(function(){var u=(0,wi.Z)(function*(m){const _=yield o.generateInvoice(m,r,a);l.push(_)});return function(m){return u.apply(this,arguments)}}()),l})()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Rt._M))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Tf=y(7646);function O0(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",1),i.NdJ("click",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.changeYear(!0))}),i._uU(1," Anno Precedente "),i.qZA()}}function Bc(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",1),i.NdJ("click",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.changeYear(!1))}),i._uU(1," Anno Successivo "),i.qZA()}}let sd=(()=>{class t{constructor(e,r,a,o,l,u){this.billService=e,this.auth=r,this.partnerService=a,this.warehouseService=o,this.router=l,this.locale=u,this.partner=new Ys.k,this.orderGrossRaw=[0,0,0,0,0,0,0,0,0,0,0,0],this.orderNetRaw=[0,0,0,0,0,0,0,0,0,0,0,0],this.orderRoyaltyRaw=[0,0,0,0,0,0,0,0,0,0,0,0],this.warehouseCostsRaw=[0,0,0,0,0,0,0,0,0,0,0,0],this.ordersCurrency="\u20ac",this.startDate=new Date,this.endDate=new Date,this.pivotYear=this.startDate.getFullYear(),this.barChartOptions={responsive:!0,scales:{x:{stacked:!1},y:{stacked:!1}},plugins:{legend:{display:!0},datalabels:{anchor:"end",align:"end"}}},this.barChartType="bar",this.barChartPlugins=[od],this.barChartData={labels:this.getMonthList((0,Hn.wM)(this.locale)),datasets:[{data:this.orderGrossRaw,label:"Total order gross"},{data:this.orderNetRaw,label:"Net order revenue"},{data:this.orderRoyaltyRaw,label:"INDACO order royalty"},{data:this.warehouseCostsRaw,label:"INDACO warehouses cost"}]},this.lineChartConfig={responsive:!0,plugins:{legend:{display:!0,position:"top"}}},this.lineChartType="line",this.lineChartPlugins=[od],this.lineChartData={labels:this.getMonthList((0,Hn.wM)(this.locale)),datasets:[{label:"Total gross sales ("+this.ordersCurrency+")",data:this.orderGrossRaw,fill:!0,backgroundColor:"rgb(153, 0, 255)",borderColor:"rgb(75, 0, 130)",pointBackgroundColor:"rgb(153, 0, 255)",tension:.4}]},this.authData=r.currentAuthData,r.currentAuth.subscribe(m=>{m&&(this.authData=m)})}ngOnInit(){var e=this;return(0,wi.Z)(function*(){e.partner=yield e.partnerService.getPartner(e.authData?.partnerId),e.startDate.setFullYear(2022),e.startDate.setMonth(0),e.startDate.setDate(1),e.endDate.setFullYear(2022),e.endDate.setMonth(11),e.endDate.setDate(31),yield e.getBillingData(),e.updateCharts()})()}getBillingData(){var e=this;return(0,wi.Z)(function*(){const r=yield e.billService.getPeriodSales(e.partner._id,e.startDate,e.endDate);e.ordersCurrency=r[0]?.currency.toString(),r.forEach(o=>{e.orderGrossRaw[o.month]+=o.amount,e.orderNetRaw[o.month]+=o.amount-o.orderRoyalty,e.orderRoyaltyRaw[o.month]+=o.orderRoyalty}),(yield e.billService.getINDACOInvoices(e.partner._id,e.startDate,e.endDate)).forEach(o=>{const l=new Date(o.startDate);e.warehouseCostsRaw[l.getMonth()]+=o.warehouseTotal})})()}updateCharts(){if(this.charts)for(var e of this.charts)e.update()}resetChartsData(){for(let e=0;e<12;e++)this.orderGrossRaw[e]=0,this.orderNetRaw[e]=0,this.orderRoyaltyRaw[e]=0,this.warehouseCostsRaw[e]=0}changeYear(e){var r=this;return(0,wi.Z)(function*(){r.pivotYear+=e?-1:1,r.startDate.setFullYear(r.pivotYear),r.startDate.setMonth(0),r.startDate.setDate(1),r.endDate.setFullYear(r.pivotYear),r.endDate.setMonth(11),r.endDate.setDate(31),r.resetChartsData(),yield r.getBillingData(),r.updateCharts()})()}validYear(e){const r=new Date;return e?r.getFullYear()-this.pivotYear-1<=10:this.pivotYear+1<=r.getFullYear()}getMonthList(e,r="long"){const a=(new Date).getFullYear(),o=[...Array(12).keys()],l=new Intl.DateTimeFormat(e,{month:r});return o.map(m=>l.format(new Date(a,m)))}toInvoices(){this.router.navigate(["/invoices"])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Hp),i.Y36(ln.e8),i.Y36(Ys.b),i.Y36(Tf.c),i.Y36(Ft.F0),i.Y36(i.soG))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-billing-dashboard"]],viewQuery:function(e,r){if(1&e&&i.Gf(nh,5),2&e){let a;i.iGM(a=i.CRH())&&(r.charts=a)}},decls:28,vars:18,consts:[[1,"fill-space"],["mat-button","",3,"click"],[1,"container"],["mat-button","",3,"click",4,"ngIf"],[1,"text-center"],[1,"mat-typography"],["cols","2","rowHeight","1:0.5"],[1,"chart",2,"display","block"],["baseChart","",3,"data","type","options","plugins"],["lineChart",""],["barChart",""]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"mat-icon"),i._uU(2,"attach_money"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i._UZ(5,"span",0),i.TgZ(6,"button",1),i.NdJ("click",function(){return r.toInvoices()}),i._uU(7),i.ALo(8,"translate"),i.TgZ(9,"mat-icon"),i._uU(10,"receipt"),i.qZA()()(),i.TgZ(11,"div",2),i.YNc(12,O0,2,0,"button",3),i._uU(13),i.YNc(14,Bc,2,0,"button",3),i.TgZ(15,"div",4)(16,"section",5)(17,"h1"),i._uU(18),i.qZA()(),i.TgZ(19,"mat-grid-list",6)(20,"mat-grid-tile")(21,"div",7),i._UZ(22,"canvas",8,9),i.qZA()(),i.TgZ(24,"mat-grid-tile")(25,"div",7),i._UZ(26,"canvas",8,10),i.qZA()()()()()),2&e&&(i.xp6(3),i.hij(" ",i.lcZ(4,14,"app.billing.title")," "),i.xp6(4),i.hij(" ",i.lcZ(8,16,"app.billing.invoices.title")," "),i.xp6(5),i.Q6J("ngIf",r.validYear(!0)),i.xp6(1),i.hij(" ",r.pivotYear," "),i.xp6(1),i.Q6J("ngIf",r.validYear(!1)),i.xp6(4),i.Oqu(r.partner.companyName),i.xp6(4),i.Q6J("data",r.lineChartData)("type",r.lineChartType)("options",r.lineChartConfig)("plugins",r.lineChartPlugins),i.xp6(4),i.Q6J("data",r.barChartData)("type",r.barChartType)("options",r.barChartOptions)("plugins",r.barChartPlugins))},dependencies:[Hn.O5,nh,Ui.lW,Dt.Hw,ca.Ye,Td.Il,Td.DX,Ot.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center}.chart[_ngcontent-%COMP%]{display:block;width:100%}"]}),t})(),P0=(()=>{class t{constructor(e){this.apollo=e,this.carriers=[],this.carriersQuery=Rt.Ps`
query ($partnerId: MongoID!) {
carrierMany ( filter : { partnerId: $partnerId }) {
_id,
name,
description,
refrigerated,
smsid,
channels,
service
}
}
`,this.carrierQuery=Rt.Ps`
query ($id: MongoID!) {
carrierById (_id: $id) {
_id,
name,
description,
refrigerated,
smsid,
service,
channels
}
}
`,this.addCarrierMutation=Rt.Ps`
mutation (
$name: String!,
$description: String,
$smsid: String,
$service: String,
$partnerId: MongoID!,
$refrigerated: Boolean,
) {
carrierCreateOne (record: {
name: $name,
description: $description,
refrigerated: $refrigerated,
smsid: $smsid,
service: $service,
partnerId: $partnerId
}){
recordId,
record {
name
},
error {
message
},
}
}
`,this.updateCarrierMutation=Rt.Ps`
mutation ($carrierId: MongoID!, $carrier: UpdateByIdCarrierInput!) {
carrierUpdateById (_id: $carrierId, record: $carrier){
recordId,
error {
message
},
}
}
`,this.removeCarrierMutation=Rt.Ps`
mutation ($carrierId: MongoID!) {
carrierRemoveOne (filter: {
_id: $carrierId
}){
recordId,
error {
message
},
}
}
`}getCarriers(e){var r=this;return(0,wi.Z)(function*(){return(yield r.apollo.query({query:r.carriersQuery,fetchPolicy:"network-only",variables:{partnerId:e}}).toPromise().catch(o=>{throw new Error(o)})).data.carrierMany})()}addCarrier(e){var r=this;return(0,wi.Z)(function*(){return yield r.createCarrier(e,void 0)})()}createCarrier(e,r){var a=this;return(0,wi.Z)(function*(){const o=yield a.apollo.mutate({mutation:a.addCarrierMutation,variables:{smsid:r?r.smsid:"2861",name:r?r.name:"Default Carrier",service:r?r.service:"Standard",description:r?r.description:"Default carrier",partnerId:e,refrigerated:!!r&&r.refrigerated,channels:r?r.channels:[]}}).toPromise().catch(l=>{throw new Error(l)});if(o.data?.carrierCreateOne.error)throw new Error(o.data?.carrierCreateOne.error.message.toString());return o.data?.carrierCreateOne.recordId})()}updateCarrier(e){var r=this;return(0,wi.Z)(function*(){const a={};a.name=e.name,a.description=e.description,a.refrigerated=e.refrigerated,a.smsid=e.smsid,a.service=e.service,a.channels=e.channels;const o=yield r.apollo.mutate({mutation:r.updateCarrierMutation,variables:{carrierId:e._id,carrier:a}}).toPromise().catch(l=>{throw new Error(l)});if(o.data?.carrierUpdateById.error)throw new Error(o.data?.carrierUpdateById.error.message.toString());return o.data?.carrierUpdateById.recordId})()}removeCarrier(e){var r=this;return(0,wi.Z)(function*(){const a=yield r.apollo.mutate({mutation:r.removeCarrierMutation,variables:{carrierId:e}}).toPromise().catch(o=>{throw new Error(o)});if(a.data?.carrierRemoveOne.error)throw new Error(a.data?.carrierRemoveOne.error.message.toString());return a.data?.carrierRemoveOne.recordId})()}getCarrier(e){var r=this;return(0,wi.Z)(function*(){return(yield r.apollo.query({query:r.carrierQuery,fetchPolicy:"network-only",variables:{id:e}}).toPromise().catch(o=>{throw new Error(o)})).data.carrierById})()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Rt._M))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var ld=y(7198),cd=y(8729);function PE(t,n){1&t&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"app.carriers.carrier.edit.title")))}function mA(t,n){1&t&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"app.carriers.carrier.create.title")))}function RE(t,n){1&t&&(i.TgZ(0,"div"),i._uU(1," Nessun canale salvato"),i.qZA())}function FE(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"div",19)(1,"span",20),i._uU(2," shopping_cart "),i.qZA(),i._uU(3),i.TgZ(4,"button",21),i.NdJ("click",function(){const o=i.CHM(e).$implicit,l=i.oxw();return i.KtG(l.removeChannel(o))}),i.TgZ(5,"span",20),i._uU(6," delete "),i.qZA()()()}if(2&t){const e=n.$implicit,r=i.oxw();i.xp6(3),i.hij(" ",r.getChannelName(e)," ")}}function LE(t,n){if(1&t&&(i.TgZ(0,"mat-option",22),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.s9C("value",e._id),i.xp6(1),i.Oqu(e.name)}}function NE(t,n){if(1&t&&(i.TgZ(0,"button",23)(1,"mat-icon"),i._uU(2,"edit"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i.qZA()),2&t){i.oxw();const e=i.MAs(10);i.Q6J("disabled",!e.form.valid),i.xp6(3),i.hij(" ",i.lcZ(4,2,"shared.buttons.edit")," ")}}function T1(t,n){if(1&t&&(i.TgZ(0,"button",23)(1,"mat-icon"),i._uU(2,"save"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i.qZA()),2&t){i.oxw();const e=i.MAs(10);i.Q6J("disabled",!e.form.valid),i.xp6(3),i.hij(" ",i.lcZ(4,2,"shared.buttons.save")," ")}}let pA=(()=>{class t extends ln.Mf{constructor(e,r,a,o,l,u,m){super(e),this.router=r,this.route=a,this.carriersService=o,this.chanService=l,this.snackbar=u,this.translate=m,this.singleChannel="",this.newCarrier=!1,this.channels=[],this.carrier={},this.originalCarrier={}}ngOnInit(){var e=this;return(0,wi.Z)(function*(){e.route.paramMap.subscribe(function(){var r=(0,wi.Z)(function*(a){const o=a.get("id");o?(e.originalCarrier=yield e.carriersService.getCarrier(o),e.carrier=(0,Zt.X)(e.originalCarrier)):e.newCarrier=!0});return function(a){return r.apply(this,arguments)}}()),e.channels=yield e.chanService.getChannels()})()}onCancel(){this.router.navigate(["/carriers"])}onSubmit(){var e=this;return(0,wi.Z)(function*(){e.newCarrier?(yield e.carriersService.createCarrier(e.authData.partnerId,e.carrier),e.snackbar.open(e.translate.instant("app.carriers.snackbar.add"),void 0,{duration:3e3})):(yield e.carriersService.updateCarrier(e.carrier),e.snackbar.open(e.translate.instant("app.carriers.snackbar.edit"),void 0,{duration:3e3})),e.router.navigate(["/carriers"])})()}onReset(){this.carrier=this.newCarrier?{}:(0,Zt.X)(this.originalCarrier)}back(){this.router.navigate(["/carriers"])}addChannel(){this.singleChannel&&this.carrier.channels.push(this.singleChannel),this.singleChannel=""}removeChannel(e){this.carrier.channels.splice(this.carrier.channels.indexOf(e),1)}getChannelName(e){for(let r=0;r<this.channels.length;r++)if(e===this.channels[r]._id.toString())return this.channels[r].name;return"Errore. contattare assistenza."}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(Ft.F0),i.Y36(Ft.gz),i.Y36(P0),i.Y36(ld.T),i.Y36(Wa.ux),i.Y36(Ot.sK))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-carrier"]],features:[i.qOj],decls:58,vars:34,consts:[["mat-button","","color","primary",3,"click"],[4,"ngIf"],[1,"fill-space"],[3,"ngSubmit"],["prodForm","ngForm"],[1,"full-width"],["matInput","","name","name","type","text","id","name","required","",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","service","type","text","id","service",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","description","type","text","id","description","required","",1,"form-control",3,"ngModel","ngModelChange"],["type","boolean","name","refrigerated",1,"form-control",3,"ngModel","ngModelChange"],["matInput","","name","smsid","type","text","id","smsid",1,"form-control",3,"ngModel","ngModelChange"],["class","email-list",4,"ngFor","ngForOf"],["appearance","fill"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","type","button",3,"click"],[1,"buttons"],["mat-raised-button","","color","primary","type","button",1,"full-width","mt-3","button",3,"click"],["class","full-width mt-3 button","mat-raised-button","","color","primary","type","submit","style","float: right;",3,"disabled",4,"ngIf"],[1,"email-list"],[1,"material-icons"],["mat-button","","type","button",3,"click"],[3,"value"],["mat-raised-button","","color","primary","type","submit",1,"full-width","mt-3","button",2,"float","right",3,"disabled"]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"button",0),i.NdJ("click",function(){return r.back()}),i.TgZ(2,"mat-icon"),i._uU(3,"arrow_back"),i.qZA()(),i.TgZ(4,"mat-icon"),i._uU(5,"sell"),i.qZA(),i.YNc(6,PE,3,3,"div",1),i.YNc(7,mA,3,3,"div",1),i._UZ(8,"span",2),i.qZA(),i.TgZ(9,"form",3,4),i.NdJ("ngSubmit",function(){return r.onSubmit()}),i.TgZ(11,"mat-form-field",5)(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"input",6),i.NdJ("ngModelChange",function(o){return r.carrier.name=o}),i.qZA()(),i.TgZ(16,"mat-form-field",5)(17,"mat-label"),i._uU(18),i.ALo(19,"translate"),i.qZA(),i.TgZ(20,"input",7),i.NdJ("ngModelChange",function(o){return r.carrier.service=o}),i.qZA()(),i.TgZ(21,"mat-form-field",5)(22,"mat-label"),i._uU(23),i.ALo(24,"translate"),i.qZA(),i.TgZ(25,"input",8),i.NdJ("ngModelChange",function(o){return r.carrier.description=o}),i.qZA()(),i.TgZ(26,"mat-checkbox",9),i.NdJ("ngModelChange",function(o){return r.carrier.refrigerated=o}),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.TgZ(29,"mat-form-field",5)(30,"mat-label"),i._uU(31),i.ALo(32,"translate"),i.qZA(),i.TgZ(33,"input",10),i.NdJ("ngModelChange",function(o){return r.carrier.smsid=o}),i.qZA()(),i._UZ(34,"mat-divider"),i.YNc(35,RE,2,0,"div",1),i.YNc(36,FE,7,1,"div",11),i.TgZ(37,"mat-form-field",12)(38,"mat-label"),i._uU(39,"Scegli un canale da associare"),i.qZA(),i.TgZ(40,"mat-select",13),i.NdJ("valueChange",function(o){return r.singleChannel=o}),i.YNc(41,LE,2,2,"mat-option",14),i.qZA()(),i.TgZ(42,"button",15),i.NdJ("click",function(){return r.addChannel()}),i._uU(43,"Aggiungi Canale"),i.qZA(),i._UZ(44,"mat-divider"),i.TgZ(45,"p",16)(46,"button",17),i.NdJ("click",function(){return r.onCancel()}),i.TgZ(47,"mat-icon"),i._uU(48,"cancel"),i.qZA(),i._uU(49),i.ALo(50,"translate"),i.qZA(),i.TgZ(51,"button",17),i.NdJ("click",function(){return r.onReset()}),i.TgZ(52,"mat-icon"),i._uU(53,"restore"),i.qZA(),i._uU(54),i.ALo(55,"translate"),i.qZA(),i.YNc(56,NE,5,4,"button",18),i.YNc(57,T1,5,4,"button",18),i.qZA()()),2&e&&(i.xp6(6),i.Q6J("ngIf",!r.newCarrier),i.xp6(1),i.Q6J("ngIf",r.newCarrier),i.xp6(6),i.Oqu(i.lcZ(14,20,"app.carriers.carrier.name")),i.xp6(2),i.Q6J("ngModel",r.carrier.name),i.xp6(3),i.Oqu(i.lcZ(19,22,"app.carriers.carrier.service")),i.xp6(2),i.Q6J("ngModel",r.carrier.service),i.xp6(3),i.Oqu(i.lcZ(24,24,"app.carriers.carrier.description")),i.xp6(2),i.Q6J("ngModel",r.carrier.description),i.xp6(1),i.Q6J("ngModel",r.carrier.refrigerated),i.xp6(1),i.hij(" ",i.lcZ(28,26,"app.carriers.carrier.refrigerated")," "),i.xp6(4),i.Oqu(i.lcZ(32,28,"app.carriers.carrier.smsid")),i.xp6(2),i.Q6J("ngModel",r.carrier.smsid),i.xp6(2),i.Q6J("ngIf",0==r.carrier.channels.length),i.xp6(1),i.Q6J("ngForOf",r.carrier.channels),i.xp6(4),i.Q6J("value",r.singleChannel),i.xp6(1),i.Q6J("ngForOf",r.channels),i.xp6(8),i.hij(" ",i.lcZ(50,30,"shared.buttons.cancel")," "),i.xp6(5),i.hij(" ",i.lcZ(55,32,"shared.buttons.reset")," "),i.xp6(2),i.Q6J("ngIf",!r.newCarrier),i.xp6(1),i.Q6J("ngIf",r.newCarrier))},dependencies:[Hn.sg,Hn.O5,A._Y,A.Fj,A.JJ,A.JL,A.Q7,A.On,A.F,Ui.lW,I.oG,Xe.KE,Xe.hX,Dt.Hw,_n.Nt,cd.d,Rr.gD,Pr.ey,ca.Ye,Ot.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center;width:50%;margin:auto}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%;min-width:300px;margin:5px}"]}),t})();var R0=y(8192),E1=y(9350),M1=y(2306);function gA(t,n){1&t&&(i.TgZ(0,"mat-icon",4),i._uU(1,"assignment"),i.qZA(),i._uU(2),i.ALo(3,"translate")),2&t&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"app.products.catalog.title")," "))}function F0(t,n){1&t&&(i.TgZ(0,"mat-icon",4),i._uU(1,"price_check"),i.qZA(),i._uU(2),i.ALo(3,"translate")),2&t&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"app.price-list.title")," "))}function A1(t,n){1&t&&(i.TgZ(0,"mat-icon",4),i._uU(1,"format_list_bulleted"),i.qZA(),i._uU(2),i.ALo(3,"translate")),2&t&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"app.listings.title")," "))}function S1(t,n){1&t&&(i.TgZ(0,"mat-icon",4),i._uU(1,"format_list_bulleted"),i.qZA(),i._uU(2," Lista prodotti per canale "))}let k1=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-catalogue"]],decls:20,vars:4,consts:[[1,"fill-space"],[1,"container"],["mat-tab-label",""],[3,"channel"],[1,"mat-18"]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"mat-icon"),i._uU(2,"format_list_bulleted"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i._UZ(5,"span",0),i.qZA(),i.TgZ(6,"div",1)(7,"mat-tab-group")(8,"mat-tab"),i.YNc(9,gA,4,3,"ng-template",2),i._UZ(10,"app-references"),i.qZA(),i.TgZ(11,"mat-tab"),i.YNc(12,F0,4,3,"ng-template",2),i._UZ(13,"app-price-list"),i.qZA(),i.TgZ(14,"mat-tab"),i.YNc(15,A1,4,3,"ng-template",2),i._UZ(16,"app-listings"),i.qZA(),i.TgZ(17,"mat-tab"),i.YNc(18,S1,3,0,"ng-template",2),i._UZ(19,"app-references",3),i.qZA()()()),2&e&&(i.xp6(3),i.hij(" ",i.lcZ(4,2,"app.catalogue.title")," "),i.xp6(16),i.Q6J("channel",!0))},dependencies:[Dt.Hw,Co.uD,Co.uX,Co.SP,ca.Ye,R0.x,E1.D,M1.b,Ot.X$]}),t})();var I1=y(7712);const O1=["carriersPaginator"];function jp(t,n){1&t&&i._UZ(0,"th",17)}function Yp(t,n){1&t&&(i.TgZ(0,"mat-icon"),i._uU(1,"ac_unit"),i.qZA())}function P1(t,n){if(1&t&&(i.TgZ(0,"td",18)(1,"mat-icon"),i._uU(2,"local_shipping"),i.qZA(),i.YNc(3,Yp,2,0,"mat-icon",19),i.qZA()),2&t){const e=n.$implicit;i.xp6(3),i.Q6J("ngIf",e.refrigerated)}}function BE(t,n){1&t&&(i.TgZ(0,"th",17),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.carriers.carrier.name")," "))}function _A(t,n){if(1&t&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.name," ")}}function UE(t,n){1&t&&(i.TgZ(0,"th",17),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.carriers.carrier.service")," "))}function vA(t,n){if(1&t&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.description," ")}}function bA(t,n){1&t&&(i.TgZ(0,"th",17),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.carriers.carrier.description")," "))}function R1(t,n){if(1&t&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.service," ")}}function ZE(t,n){1&t&&(i.TgZ(0,"th",17),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.carriers.carrier.smsid")," "))}function VE(t,n){if(1&t&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.smsid," ")}}function HE(t,n){1&t&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"shared.buttons.actions")," "))}function yA(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"td",18)(1,"button",21),i.NdJ("click",function(){const o=i.CHM(e).$implicit,l=i.oxw();return i.KtG(l.onCarrierEdit(o))}),i.TgZ(2,"mat-icon"),i._uU(3,"edit"),i.qZA()(),i.TgZ(4,"button",21),i.NdJ("click",function(){const o=i.CHM(e).$implicit,l=i.oxw();return i.KtG(l.onCarrierDelete(o._id))}),i.TgZ(5,"mat-icon"),i._uU(6,"delete"),i.qZA()()()}}function xA(t,n){1&t&&i._UZ(0,"tr",22)}function wA(t,n){1&t&&i._UZ(0,"tr",23)}const CA=function(){return[5,10,20]};let DA=(()=>{class t extends ln.Mf{constructor(e,r,a,o,l){super(e),this.carriersService=r,this.router=a,this.translate=o,this.snackbar=l,this.carriers=[],this.carriersDataSource=new fi.by(this.carriers),this.carriersDisplayedColumns=["icons","name","service","description","smsid","actions"]}ngOnInit(){this.getCarriers(this.authData?.partnerId)}getCarriers(e){var r=this;return(0,wi.Z)(function*(){return r.carriers=yield r.carriersService.getCarriers(e),r.carriersDataSource.data=r.carriers,r.carriers})()}onCarrierEdit(e){this.router.navigate(["/carrier",{id:e._id}])}onCarrierDelete(e){this.carriersService.removeCarrier(e).then(r=>{const a=this.authData?.partnerId;this.getCarriers(a)}).catch(r=>{console.log(r.message)})}onAdd(){var e=this;return(0,wi.Z)(function*(){e.router.navigate(["/carrier"])})()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(P0),i.Y36(Ft.F0),i.Y36(Ot.sK),i.Y36(Wa.ux))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-carriers"]],viewQuery:function(e,r){if(1&e&&i.Gf(O1,5),2&e){let a;i.iGM(a=i.CRH())&&(r.carriersPaginator=a.first)}},features:[i.qOj],decls:36,vars:12,consts:[[1,"container"],[1,"fill-space"],["mat-button","","color","primary",3,"click"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","icons"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","service"],["matColumnDef","description"],["matColumnDef","smsid"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page of carriers",3,"pageSize","pageSizeOptions"],["carriersPaginator",""],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[4,"ngIf"],["mat-header-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,r){1&e&&(i.TgZ(0,"div",0)(1,"mat-toolbar")(2,"mat-icon"),i._uU(3,"local_shipping"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i._UZ(6,"span",1),i.TgZ(7,"button",2),i.NdJ("click",function(){return r.onAdd()}),i._uU(8),i.ALo(9,"translate"),i.TgZ(10,"mat-icon"),i._uU(11,"add"),i.qZA()()(),i.TgZ(12,"table",3),i.ynx(13,4),i.YNc(14,jp,1,0,"th",5),i.YNc(15,P1,4,1,"td",6),i.BQk(),i.ynx(16,7),i.YNc(17,BE,3,3,"th",5),i.YNc(18,_A,2,1,"td",6),i.BQk(),i.ynx(19,8),i.YNc(20,UE,3,3,"th",5),i.YNc(21,vA,2,1,"td",6),i.BQk(),i.ynx(22,9),i.YNc(23,bA,3,3,"th",5),i.YNc(24,R1,2,1,"td",6),i.BQk(),i.ynx(25,10),i.YNc(26,ZE,3,3,"th",5),i.YNc(27,VE,2,1,"td",6),i.BQk(),i.ynx(28,11),i.YNc(29,HE,3,3,"th",12),i.YNc(30,yA,7,0,"td",6),i.BQk(),i.YNc(31,xA,1,0,"tr",13),i.YNc(32,wA,1,0,"tr",14),i.qZA(),i._UZ(33,"mat-divider")(34,"mat-paginator",15,16),i.qZA()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,7,"app.carriers.title")," "),i.xp6(4),i.hij(" ",i.lcZ(9,9,"shared.buttons.add")," "),i.xp6(4),i.Q6J("dataSource",r.carriersDataSource),i.xp6(19),i.Q6J("matHeaderRowDef",r.carriersDisplayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",r.carriersDisplayedColumns),i.xp6(2),i.Q6J("pageSize",20)("pageSizeOptions",i.DdM(11,CA)))},dependencies:[Hn.O5,Ui.lW,Ui.RK,Dt.Hw,cd.d,xi.NW,Ma.YE,Ma.nU,fi.BZ,fi.fO,fi.as,fi.w1,fi.Dz,fi.nj,fi.ge,fi.ev,fi.XQ,fi.Gk,ca.Ye,Ot.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center}table[_ngcontent-%COMP%]{width:100%}"]}),t})();var Ef=y(2331),dd=y(4911),jE=y(5998);let L0=(()=>{class t{constructor(e){this.apollo=e,this.shipmentQuery=Rt.Ps`
query ($shipmentId: String!) {
shipmentOne (filter:{smsid:$shipmentId}) {
smsid,
createdAt,
status,
labelUrl,
trackingCarrier,
trackingNumber,
orderId,
order {
omsgid
}
}
}
`,this.shipmentsQuery=Rt.Ps`
query ($partnerId: MongoID!) {
shipmentMany (filter: {partnerId: $partnerId}) {
smsid,
createdAt,
status,
labelUrl,
trackingCarrier,
trackingNumber,
orderId,
order {
omsgid
}
}
}
`}getShipment(e){var r=this;return(0,wi.Z)(function*(){return(yield r.apollo.query({query:r.shipmentQuery,fetchPolicy:"network-only",variables:{shipmentId:e}}).toPromise().catch(o=>{throw new Error(o)})).data.shipmentOne})()}getShipments(e){var r=this;return(0,wi.Z)(function*(){return(yield r.apollo.query({query:r.shipmentsQuery,fetchPolicy:"network-only",variables:{partnerId:e}}).toPromise().catch(o=>{throw new Error(o)})).data.shipmentMany})()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Rt._M))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),F1=(()=>{class t{constructor(e,r,a,o,l,u,m,_){this.authService=e,this.partnerService=r,this.chanService=a,this.orderService=o,this.catService=l,this.listService=u,this.shipmentsService=m,this.router=_,this.partner=new Ys.k,this.channelId="",this.referenceList=new Array,this.userListings=new Array,this.shipments=new Array,this.dataArray=[0,0,0],this.sells=[],this.months=["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],this.productBestSellers=[],this.labelBestSellers=[],this.doughnutChartLabels=["Prodotti inseriti","Listini disponibili","Ordini raccolti"],this.doughnutChartData={labels:this.doughnutChartLabels,datasets:[{data:this.dataArray}]},this.doughnutChartType="doughnut",this.pieChartOptions={responsive:!0,plugins:{legend:{display:!0,position:"top"}}},this.pieChartPlugins=[od],this.pieChartData={labels:this.labelBestSellers,datasets:[{data:this.productBestSellers}]},this.pieChartType="pie",this.barChartOptions={responsive:!0,scales:{x:{},y:{min:10}},plugins:{legend:{display:!1},datalabels:{anchor:"end",align:"end"}}},this.barChartType="bar",this.barChartPlugins=[od],this.barChartData={labels:this.months,datasets:[{label:"Ricavi \u20ac",data:this.sells}]},this.authData=e.currentAuthData,e.currentAuth.subscribe(w=>{w&&(this.authData=w)}),Vd.register(od)}ngOnInit(){var e=this;return(0,wi.Z)(function*(){e.getPartner(e.authData?.partnerId),e.referenceList=yield e.catService.getUserCatalog(e.authData.partnerId),e.dataArray[0]+=e.referenceList.length,e.userListings=yield e.listService.getUserListings(e.authData.partnerId),e.dataArray[1]+=e.userListings.length,e.shipments=yield e.shipmentsService.getShipments(e.authData.partnerId),e.dataArray[2]+=e.shipments.length,e.updateCharts(),e.chanService.getUserChannels(e.authData.partnerId).subscribe({next:r=>{r.data.length>0&&(e.channelId=r.data[0]._id),e.orderService.getFullOrderSummaryByPartnerId(e.authData.partnerId,e.channelId).subscribe(a=>{})}}),e.partnerService.getSells(e.authData?.partnerId,(new Date).getFullYear()).subscribe(r=>{for(let a=0;a<12;a++)e.sells[a]=r.data[a]?r.data[a]:0;e.updateCharts()}),e.partnerService.readBestSellers(e.authData?.partnerId).subscribe(r=>{for(const[a,o]of Object.entries(r.data))e.productBestSellers.push(o),e.labelBestSellers.push(a);e.updateCharts()})})()}getPartner(e){var r=this;return(0,wi.Z)(function*(){return r.partner=e?yield r.partnerService.getPartner(e):new Ys.k,r.partner})()}editPartner(){this.router.navigate(["/partner-edit"])}updateCharts(){if(this.charts)for(var e of this.charts)e.update()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(Ys.b),i.Y36(ld.T),i.Y36(Ef.Nz),i.Y36(dd.av),i.Y36(jE.o),i.Y36(L0),i.Y36(Ft.F0))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-partner"]],viewQuery:function(e,r){if(1&e&&i.Gf(nh,5),2&e){let a;i.iGM(a=i.CRH())&&(r.charts=a)}},decls:52,vars:22,consts:[[1,"fill-space"],[1,"container"],[1,"header"],[1,"material-icons"],["mat-raised-button","","color","primary",3,"click"],[1,"text-center"],["cols","3","rowHeight","1:1"],[1,"chart",2,"display","block"],["baseChart","",3,"data","type"],["donutChart",""],["baseChart","",3,"data","type","options","plugins"],["barChart",""],["pieChart",""]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"mat-icon"),i._uU(2,"dashboard"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i._UZ(5,"span",0),i.qZA(),i.TgZ(6,"div",1)(7,"div",2)(8,"mat-accordion")(9,"mat-expansion-panel")(10,"mat-expansion-panel-header")(11,"mat-panel-title")(12,"strong"),i._uU(13),i.qZA()(),i.TgZ(14,"mat-panel-description"),i._uU(15),i.qZA()(),i.TgZ(16,"mat-list")(17,"mat-list-item")(18,"span",3),i._uU(19," cart "),i.qZA(),i._uU(20),i.qZA(),i.TgZ(21,"mat-list-item")(22,"span",3),i._uU(23," email "),i.qZA(),i._uU(24),i.qZA(),i.TgZ(25,"mat-list-item")(26,"span",3),i._uU(27," home "),i.qZA(),i._uU(28),i.qZA(),i.TgZ(29,"mat-list-item")(30,"span",3),i._uU(31," phone "),i.qZA(),i._uU(32),i.qZA()(),i.TgZ(33,"button",4),i.NdJ("click",function(){return r.editPartner()}),i._uU(34),i.ALo(35,"translate"),i.TgZ(36,"mat-icon"),i._uU(37,"edit"),i.qZA()()()()(),i.TgZ(38,"div",5)(39,"mat-grid-list",6)(40,"mat-grid-tile")(41,"div",7),i._UZ(42,"canvas",8,9),i.qZA()(),i.TgZ(44,"mat-grid-tile")(45,"div",7),i._UZ(46,"canvas",10,11),i.qZA()(),i.TgZ(48,"mat-grid-tile")(49,"div",7),i._UZ(50,"canvas",10,12),i.qZA()()()()()),2&e&&(i.xp6(3),i.hij(" ",i.lcZ(4,18,"app.dashboard.title")," "),i.xp6(10),i.Oqu(r.partner.companyName),i.xp6(2),i.hij(" ",r.partner.vatNumber," "),i.xp6(5),i.hij("",r.partner.seller," "),i.xp6(4),i.hij("",r.partner.email," "),i.xp6(4),i.hij("",r.partner.address," "),i.xp6(4),i.hij("",r.partner.phone," "),i.xp6(2),i.hij(" ",i.lcZ(35,20,"shared.buttons.edit")," "),i.xp6(8),i.Q6J("data",r.doughnutChartData)("type",r.doughnutChartType),i.xp6(4),i.Q6J("data",r.barChartData)("type",r.barChartType)("options",r.barChartOptions)("plugins",r.barChartPlugins),i.xp6(4),i.Q6J("data",r.pieChartData)("type",r.pieChartType)("options",r.pieChartOptions)("plugins",r.pieChartPlugins))},dependencies:[nh,Ui.lW,oo.pp,oo.ib,oo.yz,oo.yK,oo.u4,Dt.Hw,jn.i$,jn.Tg,ca.Ye,Td.Il,Td.DX,Ot.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center}.chart[_ngcontent-%COMP%]{display:block;width:70%}.header[_ngcontent-%COMP%]{width:100%}"]}),t})();var $d=y(1041);function L1(t,n){1&t&&(i.TgZ(0,"mat-icon",2),i._uU(1,"signpost"),i.qZA(),i.TgZ(2,"span"),i._uU(3),i.ALo(4,"translate"),i.qZA()),2&t&&(i.xp6(3),i.Oqu(i.lcZ(4,1,"app.home.channels.title")))}let N0=(()=>{class t{constructor(e,r){this.authService=e,this.translate=r,this.authData=e.currentAuthData,e.currentAuth.subscribe(a=>{a&&(this.authData=a)})}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(Ot.sK))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-partner-data"]],decls:4,vars:2,consts:[["mat-tab-label",""],[3,"partnerId","readonly"],[1,"mat-18"]],template:function(e,r){1&e&&(i.TgZ(0,"mat-tab-group")(1,"mat-tab"),i.YNc(2,L1,5,3,"ng-template",0),i._UZ(3,"app-channels",1),i.qZA()()),2&e&&(i.xp6(3),i.Q6J("partnerId",r.authData.partnerId)("readonly",!0))},dependencies:[Dt.Hw,Co.uD,Co.uX,Co.SP,$d.J,Ot.X$]}),t})();function B0(t,n){1&t&&(i.TgZ(0,"div",2)(1,"div",3)(2,"p"),i._uU(3,"Devi registrarti per poter accedere ai servizi"),i.qZA(),i.TgZ(4,"div",4)(5,"button",5),i._uU(6," Login "),i.qZA()()()())}function YE(t,n){1&t&&(i.TgZ(0,"mat-toolbar")(1,"mat-icon"),i._uU(2,"home"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i.qZA()),2&t&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"app.home.title"),"\n"))}function U0(t,n){1&t&&(i.TgZ(0,"mat-icon",7),i._uU(1,"dashboard"),i.qZA(),i._uU(2),i.ALo(3,"translate")),2&t&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"app.home.dashboard.title")," "))}function Z0(t,n){1&t&&(i.TgZ(0,"mat-icon",7),i._uU(1,"warehouse"),i.qZA(),i._uU(2),i.ALo(3,"translate")),2&t&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"app.home.warehouses.title")," "))}function zp(t,n){1&t&&(i.TgZ(0,"mat-icon",7),i._uU(1,"local_shipping"),i.qZA(),i.TgZ(2,"span"),i._uU(3),i.ALo(4,"translate"),i.qZA()),2&t&&(i.xp6(3),i.Oqu(i.lcZ(4,1,"app.home.carriers.title")))}function TA(t,n){1&t&&(i.TgZ(0,"mat-icon",7),i._uU(1,"details"),i.qZA(),i.TgZ(2,"span"),i._uU(3,"Dati partner"),i.qZA())}function EA(t,n){1&t&&(i.TgZ(0,"mat-tab-group")(1,"mat-tab"),i.YNc(2,U0,4,3,"ng-template",6),i._UZ(3,"app-partner"),i.qZA(),i.TgZ(4,"mat-tab"),i.YNc(5,Z0,4,3,"ng-template",6),i._UZ(6,"app-warehouses"),i.qZA(),i.TgZ(7,"mat-tab"),i.YNc(8,zp,5,3,"ng-template",6),i._UZ(9,"app-carriers"),i.qZA(),i.TgZ(10,"mat-tab"),i.YNc(11,TA,4,0,"ng-template",6),i._UZ(12,"app-partner-data"),i.qZA()())}let MA=(()=>{class t{constructor(e,r,a){this.authService=e,this.translate=r,this.router=a,this.authData=e.currentAuthData,e.currentAuth.subscribe(o=>{o&&(this.authData=o),o.token||this.router.navigate(["/login"])})}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(Ot.sK),i.Y36(Ft.F0))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-home"]],decls:3,vars:3,consts:[["class","container",4,"ngIf"],[4,"ngIf"],[1,"container"],[1,"text-center"],[1,"button"],["mat-raised-button","","color","primary","routerLink","/login",1,"full-width","mt-3"],["mat-tab-label",""],[1,"mat-18"]],template:function(e,r){1&e&&(i.YNc(0,B0,7,0,"div",0),i.YNc(1,YE,5,3,"mat-toolbar",1),i.YNc(2,EA,13,0,"mat-tab-group",1)),2&e&&(i.Q6J("ngIf",!(null!=r.authData&&r.authData.token)),i.xp6(1),i.Q6J("ngIf",null==r.authData?null:r.authData.token),i.xp6(1),i.Q6J("ngIf",null==r.authData?null:r.authData.token))},dependencies:[Ft.rH,Hn.O5,Ui.lW,Dt.Hw,Co.uD,Co.uX,Co.SP,ca.Ye,I1.O,DA,F1,N0,Ot.X$],styles:[".text-center[_ngcontent-%COMP%]{display:block;text-align:center;margin-top:20px}.button[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:20px}"]}),t})();function AA(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"li",6)(1,"strong"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._uU(4),i.TgZ(5,"button",10),i.NdJ("click",function(){const o=i.CHM(e).$implicit,l=i.oxw(2);return i.KtG(l.productDetails(o.imsgid.toString()))}),i.TgZ(6,"mat-icon"),i._uU(7,"info"),i.qZA()(),i._UZ(8,"br"),i.qZA()}if(2&t){const e=n.$implicit;i.xp6(2),i.hij("",i.lcZ(3,2,"app.products.product.title"),":"),i.xp6(2),i.hij(" ",e.name," ")}}function N1(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"li",6)(1,"strong"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._uU(4),i.TgZ(5,"button",10),i.NdJ("click",function(){const o=i.CHM(e).$implicit,l=i.oxw();return i.KtG(l.orderDetails(o.omsgid.toString()))}),i.TgZ(6,"mat-icon"),i._uU(7,"info"),i.qZA()(),i.TgZ(8,"ul"),i.YNc(9,AA,9,4,"li",9),i.qZA()()}if(2&t){const e=n.$implicit;i.xp6(2),i.hij("",i.lcZ(3,3,"app.orders.order.title"),":"),i.xp6(2),i.hij(" ",e.omsgid," "),i.xp6(5),i.Q6J("ngForOf",e.items)}}function zE(t,n){if(1&t&&(i.TgZ(0,"li",6),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.lnq(" ",e.costObject," - ",e.total," - ",e.warehouseName," ")}}function WE(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"li",6)(1,"strong"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._uU(4),i.TgZ(5,"button",10),i.NdJ("click",function(){const o=i.CHM(e).$implicit,l=i.oxw();return i.KtG(l.orderDetails(o.orderId.toString()))}),i.TgZ(6,"mat-icon"),i._uU(7,"info"),i.qZA()(),i._UZ(8,"br"),i.TgZ(9,"strong"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._uU(12),i.qZA()}if(2&t){const e=n.$implicit;i.xp6(2),i.hij("",i.lcZ(3,5,"app.orders.order.title"),":"),i.xp6(2),i.hij(" ",e.orderId," "),i.xp6(6),i.hij("",i.lcZ(11,7,"app.billing.royaltyAmount"),":"),i.xp6(2),i.AsE(" ",e.royaltyAmount," ",e.currency," ")}}function GE(t,n){if(1&t&&(i.TgZ(0,"li",6),i._uU(1),i.TgZ(2,"button",11)(3,"mat-icon"),i._uU(4,"info"),i.qZA()()()),2&t){const e=n.$implicit;i.xp6(1),i.AsE(" ",e.name," ",e.moduleCost," \u20ac ")}}let $E=(()=>{class t{constructor(e,r,a,o,l){this.authService=e,this.route=r,this.router=a,this.billingService=o,this.warehouseService=l,this.invoice={},this.authData=e.currentAuthData,e.currentAuth.subscribe(u=>{u&&(this.authData=u)})}ngOnInit(){this.route.paramMap.subscribe(e=>{const r=e.get("id");e.get("imsgid"),r?this.getInvoice(r):this.router.navigate(["/invoices"])})}getInvoice(e){var r=this;return(0,wi.Z)(function*(){return r.invoice=yield r.billingService.getINDACOInvoice(e),r.invoice})()}formatDate(e){return e?new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"}):"-"}returnList(){this.router.navigate(["/invoices"])}orderDetails(e){this.router.navigate(["/order",{id:e}])}productDetails(e){this.router.navigate(["/reference",{id:e}])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(Ft.gz),i.Y36(Ft.F0),i.Y36(Hp),i.Y36(Tf.c))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-invoice"]],decls:94,vars:70,consts:[["mat-list-icon",""],[1,"fill-space"],["mat-button","","color","primary",3,"click"],[1,"container"],[1,"text-center"],[1,"mat-typography"],["mat-line",""],["multi","true"],[3,"disabled"],["mat-line","",4,"ngFor","ngForOf"],["mat-icon-button","",3,"click"],["mat-icon-button",""]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"h1")(2,"mat-icon",0),i._uU(3,"receipt"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i._UZ(6,"span",1),i.TgZ(7,"button",2),i.NdJ("click",function(){return r.returnList()}),i.TgZ(8,"mat-icon"),i._uU(9,"arrow_back"),i.qZA()()(),i.TgZ(10,"div",3)(11,"div",4)(12,"section",5)(13,"h3"),i._uU(14),i.ALo(15,"translate"),i.qZA()()(),i.TgZ(16,"div",6)(17,"strong"),i._uU(18),i.ALo(19,"translate"),i.qZA(),i._uU(20),i.qZA(),i.TgZ(21,"div",6)(22,"strong"),i._uU(23),i.ALo(24,"translate"),i.qZA(),i._uU(25),i.qZA(),i.TgZ(26,"div",6)(27,"strong"),i._uU(28),i.ALo(29,"translate"),i.qZA(),i._uU(30),i.qZA(),i.TgZ(31,"div",6)(32,"strong"),i._uU(33),i.ALo(34,"translate"),i.qZA(),i._uU(35),i.qZA(),i.TgZ(36,"div",6)(37,"strong"),i._uU(38),i.ALo(39,"translate"),i.qZA(),i._uU(40),i.qZA(),i.TgZ(41,"mat-accordion",7)(42,"mat-expansion-panel",8)(43,"mat-expansion-panel-header")(44,"strong"),i._uU(45),i.ALo(46,"translate"),i.qZA()(),i.TgZ(47,"ul"),i.YNc(48,N1,10,5,"li",9),i.qZA(),i.TgZ(49,"div",6)(50,"strong"),i._uU(51),i.ALo(52,"translate"),i.qZA(),i._uU(53),i.qZA()(),i.TgZ(54,"mat-expansion-panel",8)(55,"mat-expansion-panel-header")(56,"strong"),i._uU(57),i.ALo(58,"translate"),i.qZA()(),i.TgZ(59,"ul"),i.YNc(60,zE,2,3,"li",9),i.qZA(),i.TgZ(61,"div",6)(62,"strong"),i._uU(63),i.ALo(64,"translate"),i.qZA(),i._uU(65),i.qZA()(),i.TgZ(66,"mat-expansion-panel",8)(67,"mat-expansion-panel-header")(68,"strong"),i._uU(69),i.ALo(70,"translate"),i.qZA()(),i.TgZ(71,"ul"),i.YNc(72,WE,13,9,"li",9),i.qZA(),i.TgZ(73,"div",6)(74,"strong"),i._uU(75),i.ALo(76,"translate"),i.qZA(),i._uU(77),i.qZA()(),i.TgZ(78,"mat-expansion-panel",8)(79,"mat-expansion-panel-header")(80,"strong"),i._uU(81),i.ALo(82,"translate"),i.qZA()(),i.TgZ(83,"div",6)(84,"strong"),i._uU(85),i.ALo(86,"translate"),i.qZA(),i.TgZ(87,"ul"),i.YNc(88,GE,5,2,"li",9),i.qZA()(),i.TgZ(89,"div",6)(90,"strong"),i._uU(91),i.ALo(92,"translate"),i.qZA(),i._uU(93),i.qZA()()()()),2&e&&(i.xp6(4),i.AsE(" ",i.lcZ(5,38,"app.billing.invoice.title")," ",r.invoice._id," "),i.xp6(10),i.Oqu(i.lcZ(15,40,"app.billing.invoice.details.description")),i.xp6(4),i.hij("",i.lcZ(19,42,"app.billing.invoice.company"),":"),i.xp6(2),i.hij(" ",r.invoice.companyName,""),i.xp6(3),i.hij("",i.lcZ(24,44,"app.billing.invoice.companyAddress"),":"),i.xp6(2),i.hij(" ",r.invoice.companyAddress," "),i.xp6(3),i.hij("",i.lcZ(29,46,"app.billing.invoice.periodStartDate"),":"),i.xp6(2),i.hij(" ",r.formatDate(r.invoice.startDate),""),i.xp6(3),i.hij("",i.lcZ(34,48,"app.billing.invoice.periodEndDate"),":"),i.xp6(2),i.hij(" ",r.formatDate(r.invoice.endDate)," "),i.xp6(3),i.hij("",i.lcZ(39,50,"app.billing.invoice.creationDate"),":"),i.xp6(2),i.hij(" ",r.formatDate(r.invoice.createdAt)," "),i.xp6(2),i.Q6J("disabled",r.invoice.ordersTotal<=0),i.xp6(3),i.AsE("",i.lcZ(46,52,"app.billing.invoice.orders")," (",r.invoice.ordersTotal," \u20ac)"),i.xp6(3),i.Q6J("ngForOf",r.invoice.orders),i.xp6(3),i.hij("",i.lcZ(52,54,"app.billing.invoice.ordersTotal"),":"),i.xp6(2),i.hij(" ",r.invoice.ordersTotal," \u20ac "),i.xp6(1),i.Q6J("disabled",r.invoice.warehouseTotal<=0),i.xp6(3),i.AsE("",i.lcZ(58,56,"app.billing.invoice.warehouseTotal")," (",r.invoice.warehouseTotal," \u20ac)"),i.xp6(3),i.Q6J("ngForOf",r.invoice.warehouseCosts),i.xp6(3),i.hij("",i.lcZ(64,58,"app.billing.invoice.warehouseTotal"),":"),i.xp6(2),i.hij(" ",r.invoice.warehouseTotal," \u20ac "),i.xp6(1),i.Q6J("disabled",r.invoice.royaltiesTotal<=0),i.xp6(3),i.AsE("",i.lcZ(70,60,"app.billing.invoice.royalties")," (",r.invoice.royaltiesTotal," \u20ac)"),i.xp6(3),i.Q6J("ngForOf",r.invoice.royalties),i.xp6(3),i.hij("",i.lcZ(76,62,"app.billing.invoice.royaltiesTotal"),":"),i.xp6(2),i.hij(" ",r.invoice.royaltiesTotal," \u20ac "),i.xp6(1),i.Q6J("disabled",r.invoice.servicesTotal<=0),i.xp6(3),i.AsE("",i.lcZ(82,64,"app.billing.invoice.services")," (",r.invoice.servicesTotal," \u20ac)"),i.xp6(4),i.hij("",i.lcZ(86,66,"app.billing.invoice.services"),":"),i.xp6(3),i.Q6J("ngForOf",r.invoice.services),i.xp6(3),i.hij("",i.lcZ(92,68,"app.billing.invoice.servicesTotal"),":"),i.xp6(2),i.hij(" ",r.invoice.servicesTotal," \u20ac "))},dependencies:[Hn.sg,Ui.lW,Ui.RK,oo.pp,oo.ib,oo.yz,Dt.Hw,ca.Ye,Pr.X2,Ot.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center;margin:20px 50px}"]}),t})(),B1=(()=>{class t{constructor(e,r,a){this.dialogRef=e,this.data=r,this._dateAdapter=a,this.invoicePeriod=new A.nJ({start:new A.p4(new Date),end:new A.p4(new Date)})}selectionFinished(e){return this._createRange(e)}createPreview(e){return this._createRange(e)}_createRange(e){if(e){const r=this._dateAdapter.addCalendarDays(e,0),a=this._dateAdapter.addCalendarDays(e,29);return new Lc.C0(r,a)}return new Lc.C0(null,null)}onGenerate(){this.invoicePeriod.value.start.getTime()!==this.invoicePeriod.value.end.getTime()?this.dialogRef.close({startDate:this.invoicePeriod.value.start,endDate:this.invoicePeriod.value.end}):this.onDismiss()}onDismiss(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(X.so),i.Y36(X.WI),i.Y36(Pr._A))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-invoice-generation-modal"]],features:[i._Bn([{provide:Lc.q_,useClass:t}])],decls:19,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","fill",1,"example-form-field"],[3,"formGroup","rangePicker"],["matStartDate","","placeholder","Start date","formControlName","start"],["matEndDate","","placeholder","End date","formControlName","end"],["matSuffix","",3,"for"],["periodSelector",""],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,r){if(1&e&&(i.TgZ(0,"h2",0),i._uU(1," New invoice generation\n"),i.qZA(),i.TgZ(2,"p"),i._uU(3,"Select the invoice reference period"),i.qZA(),i.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"mat-label"),i._uU(7,"30 Days period"),i.qZA(),i.TgZ(8,"mat-date-range-input",3),i._UZ(9,"input",4)(10,"input",5),i.qZA(),i._UZ(11,"mat-datepicker-toggle",6)(12,"mat-date-range-picker",null,7),i.qZA()(),i.TgZ(14,"div",8)(15,"button",9),i.NdJ("click",function(){return r.onDismiss()}),i._uU(16,"Cancel"),i.qZA(),i.TgZ(17,"button",10),i.NdJ("click",function(){return r.onGenerate()}),i._uU(18,"Generate"),i.qZA()()),2&e){const a=i.MAs(13);i.xp6(8),i.Q6J("formGroup",r.invoicePeriod)("rangePicker",a),i.xp6(3),i.Q6J("for",a)}},dependencies:[A.Fj,A.JJ,A.JL,Ui.lW,Lc.nW,Lc.wx,Lc.zY,Lc.By,Lc._g,X.uh,X.xY,X.H8,Xe.KE,Xe.hX,Xe.R9,A.sg,A.u]}),t})();const U1=["invoicesPaginator"],Z1=["invoicesSort"];function qE(t,n){1&t&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.billing.orders")," "))}function QE(t,n){if(1&t&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw();i.xp6(1),i.hij(" ",r.ordersList(e.orders)," ")}}function V1(t,n){1&t&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.billing.ordersTotal")," "))}function V0(t,n){if(1&t&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.ordersTotal," \u20ac ")}}function SA(t,n){1&t&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.billing.royaltiesTotal")," "))}function H1(t,n){if(1&t&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.royaltiesTotal," \u20ac ")}}function H0(t,n){1&t&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.billing.warehouseTotal")," "))}function KE(t,n){if(1&t&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.warehouseTotal," \u20ac ")}}function JE(t,n){1&t&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.billing.services")," "))}function kA(t,n){if(1&t&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw();i.xp6(1),i.hij(" ",r.servicesList(e.services)," ")}}function IA(t,n){1&t&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.billing.servicesTotal")," "))}function XE(t,n){if(1&t&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.servicesTotal," \u20ac")}}function eM(t,n){1&t&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.billing.referencePeriod")," "))}function tM(t,n){if(1&t&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw();i.xp6(1),i.AsE(" ",r.formatDate(e.startDate.toString())," - ",r.formatDate(e.endDate.toString())," ")}}function OA(t,n){1&t&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.billing.createdOn")," "))}function PA(t,n){if(1&t&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw();i.xp6(1),i.hij(" ",r.formatDate(e.createdAt.toString())," ")}}function RA(t,n){1&t&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"shared.buttons.actions")," "))}function FA(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"td",22)(1,"button",24),i.NdJ("click",function(){const o=i.CHM(e).$implicit,l=i.oxw();return i.KtG(l.showInvoiceDetails(o._id))}),i.TgZ(2,"mat-icon"),i._uU(3,"info"),i.qZA()()()}}function nM(t,n){1&t&&i._UZ(0,"tr",25)}function LA(t,n){1&t&&i._UZ(0,"tr",26)}const NA=function(){return[5,10,20]};let BA=(()=>{class t{constructor(e,r,a,o,l,u){this.billService=e,this.auth=r,this.router=a,this.dialog=o,this.snackbar=l,this.translate=u,this.tabIndex=0,this.selPeriodStart=new Date,this.selPeriodEnd=new Date,this.invoices=[],this.invoicesDataSource=new fi.by(this.invoices),this.invoiceDisplayedColumns=["orders","ordersTotal","royaltiesTotal","warehouseTotal","services","servicesTotal","referencePeriod","createdOn","actions"],this.authData=r.currentAuthData,r.currentAuth.subscribe(m=>{m&&(this.authData=m)})}ngOnInit(){var e=this;return(0,wi.Z)(function*(){e.selPeriodEnd=new Date,e.selPeriodStart=new Date,e.selPeriodStart.setMonth(e.selPeriodStart.getMonth()-6),yield e.refreshInvoices(),e.invoicesDataSource.data=e.invoices,e.invoicesDataSource.paginator=e.invoicesPaginator,e.invoicesDataSource.sort=e.invoicesSort})()}formatDate(e){return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}generateNewInvoice(){var e=this;this.dialog.open(B1).afterClosed().subscribe(function(){var r=(0,wi.Z)(function*({startDate:a,endDate:o}){a&&o&&e.authData.partnerId&&(yield e.billService.generateInvoice(e.authData.partnerId,a,o),e.refreshInvoices(),e.snackbar.open(e.translate.instant("app.billing.invoices.snackbar.create"),void 0,{duration:3e3}))});return function(a){return r.apply(this,arguments)}}(),r=>{throw console.log(r),new Error(r)})}returnDashboard(){this.router.navigate(["/billing"])}showInvoiceDetails(e){this.router.navigate(["/invoice",{id:e}])}ordersList(e){let r="";return e.forEach(a=>{r=r+a.name+", "}),r}servicesList(e){let r="";return e.forEach(a=>{r=r+a.name+", "}),r}refreshInvoices(){var e=this;return(0,wi.Z)(function*(){e.invoices=yield e.billService.getINDACOInvoices(e.authData.partnerId,e.selPeriodStart,e.selPeriodEnd),e.invoicesDataSource.data=e.invoices})()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Hp),i.Y36(ln.e8),i.Y36(Ft.F0),i.Y36(X.uw),i.Y36(Wa.ux),i.Y36(Ot.sK))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-invoices"]],viewQuery:function(e,r){if(1&e&&(i.Gf(U1,5),i.Gf(Z1,5)),2&e){let a;i.iGM(a=i.CRH())&&(r.invoicesPaginator=a.first),i.iGM(a=i.CRH())&&(r.invoicesSort=a.first)}},decls:49,vars:12,consts:[["mat-button","","color","primary",3,"click"],[1,"fill-space"],[1,"container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["invoicesSort","matSort"],["matColumnDef","orders"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","ordersTotal"],["matColumnDef","royaltiesTotal"],["matColumnDef","warehouseTotal"],["matColumnDef","services"],["matColumnDef","servicesTotal"],["matColumnDef","referencePeriod"],["matColumnDef","createdOn"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-detail-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page of products",3,"pageSize","pageSizeOptions"],["invoicesPaginator",""],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-detail-row"]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"button",0),i.NdJ("click",function(){return r.returnDashboard()}),i.TgZ(2,"mat-icon"),i._uU(3,"arrow_back"),i.qZA()(),i.TgZ(4,"mat-icon"),i._uU(5,"receipt"),i.qZA(),i._uU(6),i.ALo(7,"translate"),i._UZ(8,"span",1),i.TgZ(9,"button",0),i.NdJ("click",function(){return r.generateNewInvoice()}),i._uU(10),i.ALo(11,"translate"),i.TgZ(12,"mat-icon"),i._uU(13,"add"),i.qZA()()(),i.TgZ(14,"div",2)(15,"table",3,4),i.ynx(17,5),i.YNc(18,qE,3,3,"th",6),i.YNc(19,QE,2,1,"td",7),i.BQk(),i.ynx(20,8),i.YNc(21,V1,3,3,"th",6),i.YNc(22,V0,2,1,"td",7),i.BQk(),i.ynx(23,9),i.YNc(24,SA,3,3,"th",6),i.YNc(25,H1,2,1,"td",7),i.BQk(),i.ynx(26,10),i.YNc(27,H0,3,3,"th",6),i.YNc(28,KE,2,1,"td",7),i.BQk(),i.ynx(29,11),i.YNc(30,JE,3,3,"th",6),i.YNc(31,kA,2,1,"td",7),i.BQk(),i.ynx(32,12),i.YNc(33,IA,3,3,"th",6),i.YNc(34,XE,2,1,"td",7),i.BQk(),i.ynx(35,13),i.YNc(36,eM,3,3,"th",6),i.YNc(37,tM,2,2,"td",7),i.BQk(),i.ynx(38,14),i.YNc(39,OA,3,3,"th",6),i.YNc(40,PA,2,1,"td",7),i.BQk(),i.ynx(41,15),i.YNc(42,RA,3,3,"th",16),i.YNc(43,FA,4,0,"td",7),i.BQk(),i.YNc(44,nM,1,0,"tr",17),i.YNc(45,LA,1,0,"tr",18),i.qZA(),i._UZ(46,"mat-divider")(47,"mat-paginator",19,20),i.qZA()),2&e&&(i.xp6(6),i.hij(" ",i.lcZ(7,7,"app.billing.invoices.title")," "),i.xp6(4),i.hij(" ",i.lcZ(11,9,"app.billing.generate")," "),i.xp6(5),i.Q6J("dataSource",r.invoicesDataSource),i.xp6(29),i.Q6J("matHeaderRowDef",r.invoiceDisplayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",r.invoiceDisplayedColumns),i.xp6(2),i.Q6J("pageSize",20)("pageSizeOptions",i.DdM(11,NA)))},dependencies:[Ui.lW,Ui.RK,Dt.Hw,cd.d,xi.NW,Ma.YE,Ma.nU,fi.BZ,fi.fO,fi.as,fi.w1,fi.Dz,fi.nj,fi.ge,fi.ev,fi.XQ,fi.Gk,ca.Ye,Ot.X$],styles:["td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{text-align:right!important;vertical-align:middle!important}.mat-sort-header-container[_ngcontent-%COMP%]{justify-content:right!important}.mat-mdc-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}table[_ngcontent-%COMP%]{width:100%}tr.example-detail-row[_ngcontent-%COMP%]{height:0}tr.example-element-row[_ngcontent-%COMP%]:not(.example-expanded-row):hover{background:whitesmoke}tr.example-element-row[_ngcontent-%COMP%]:not(.example-expanded-row):active{background:#efefef}.example-element-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom-width:0}.example-element-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex}.example-element-diagram[_ngcontent-%COMP%]{min-width:80px;border:2px solid black;padding:8px;font-weight:lighter;margin:8px 0;height:104px}.example-element-symbol[_ngcontent-%COMP%]{font-weight:700;font-size:40px;line-height:normal}.example-element-description[_ngcontent-%COMP%]{padding:16px}.example-element-description-attribution[_ngcontent-%COMP%]{opacity:.5}#add-btn[_ngcontent-%COMP%]{align-items:right}"]}),t})();var UA=y(2109),Uc=y(8790);function ZA(t,n){if(1&t&&(i.TgZ(0,"p",13),i._uU(1),i.qZA()),2&t){const e=i.oxw();i.xp6(1),i.hij(" ",e.error," ")}}const s=function(){return["/login"]};let c=(()=>{class t{constructor(e,r){this.router=e,this.authService=r,this.loginForm=new A.nJ({email:new A.p4("",A.kI.required),password:new A.p4("",A.kI.required)}),this.error="",this.authData=r.currentAuthData,r.currentAuth.subscribe(a=>{a&&(this.authData=a)}),this.authData?.token&&this.navigateToApplication()}onSubmit(){this.loginForm.valid?this.authService.login(this.loginForm.controls.email.value,this.loginForm.controls.password.value).then(r=>{console.log("User logged in successfully"),this.navigateToApplication()}).catch(r=>{console.log(r),this.authService.logout(),this.error=r}):this.error="Invalid form"}navigateToApplication(){this.authService.getUserType().subscribe(e=>this.router.navigate(e===Uc.E.Admin?["admin"]:["home"]))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Ft.F0),i.Y36(ln.e8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-login"]],inputs:{error:"error"},decls:33,vars:15,consts:[[1,"container"],["appearance","outlined"],[1,"text-center","logo-wrapper"],[3,"routerLink"],["src","./assets/logo/indaco_logo.png","alt","INDACO",1,"mb-4","logo"],[1,"login-form",3,"formGroup","ngSubmit"],["type","email","matInput","","formControlName","email","autofocus",""],["type","password","matInput","","formControlName","password"],["class","error",4,"ngIf"],[1,"button"],["mat-raised-button","","color","primary",1,"full-width","mt-3"],[1,"pat-div"],["src","./assets/logo/pat_logo.png","alt","INDACO",1,"mb-4","logo","pat-logo"],[1,"error"]],template:function(e,r){1&e&&(i.TgZ(0,"div",0)(1,"mat-card",1)(2,"div",2),i._UZ(3,"br"),i.TgZ(4,"a",3),i._UZ(5,"img",4),i.qZA()(),i.TgZ(6,"mat-card-title"),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"mat-card-content")(10,"form",5),i.NdJ("ngSubmit",function(){return r.onSubmit()}),i.TgZ(11,"p")(12,"mat-form-field")(13,"mat-label"),i._uU(14),i.ALo(15,"translate"),i.qZA(),i._UZ(16,"input",6),i.qZA()(),i.TgZ(17,"p")(18,"mat-form-field")(19,"mat-label"),i._uU(20),i.ALo(21,"translate"),i.qZA(),i._UZ(22,"input",7),i.qZA()(),i.YNc(23,ZA,2,1,"p",8),i.TgZ(24,"div",9)(25,"button",10),i._uU(26," Login "),i.qZA()()()()(),i.TgZ(27,"mat-card",1)(28,"div",11)(29,"a",3),i._UZ(30,"img",12),i.qZA(),i.TgZ(31,"div"),i._uU(32,"Progetto realizzato con il sostegno economico della Provincia autonoma di Trento tramite la legge 6/99"),i.qZA()()()()),2&e&&(i.xp6(4),i.Q6J("routerLink",i.DdM(13,s)),i.xp6(3),i.Oqu(i.lcZ(8,7,"app.login.title")),i.xp6(3),i.Q6J("formGroup",r.loginForm),i.xp6(4),i.Oqu(i.lcZ(15,9,"app.login.username")),i.xp6(6),i.Oqu(i.lcZ(21,11,"app.login.password")),i.xp6(3),i.Q6J("ngIf",r.error),i.xp6(6),i.Q6J("routerLink",i.DdM(14,s)))},dependencies:[Ft.rH,Hn.O5,A._Y,A.Fj,A.JJ,A.JL,Ui.lW,H.a8,H.dn,H.n5,Xe.KE,Xe.hX,_n.Nt,A.sg,A.u,Ot.X$],styles:["[_nghost-%COMP%]{display:flex;justify-content:center;margin:100px 0}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%;min-width:300px}mat-card-title[_ngcontent-%COMP%], mat-card-content[_ngcontent-%COMP%]{display:flex;justify-content:center}.error[_ngcontent-%COMP%]{padding:16px;width:300px;color:#fff;background-color:red}.button[_ngcontent-%COMP%]{display:flex;justify-content:center}.logo[_ngcontent-%COMP%]{max-height:150px;max-width:100%;padding-left:75px}footer[_ngcontent-%COMP%]{position:fixed;bottom:0;width:100%;height:150px;margin-left:100px;text-align:center;justify-content:center}.pat-logo[_ngcontent-%COMP%]{padding-left:250px}"]}),t})();function h(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.partner.companyName="")}),i.TgZ(1,"mat-icon"),i._uU(2,"close"),i.qZA()()}}function g(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.partner.seller="")}),i.TgZ(1,"mat-icon"),i._uU(2,"close"),i.qZA()()}}function x(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.partner.email="")}),i.TgZ(1,"mat-icon"),i._uU(2,"close"),i.qZA()()}}function T(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.partner.address="")}),i.TgZ(1,"mat-icon"),i._uU(2,"close"),i.qZA()()}}function R(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.partner.phone="")}),i.TgZ(1,"mat-icon"),i._uU(2,"close"),i.qZA()()}}function K(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.partner.vatNumber="")}),i.TgZ(1,"mat-icon"),i._uU(2,"close"),i.qZA()()}}let ae=(()=>{class t{constructor(e,r,a,o,l){this.authService=e,this.partnerService=r,this.snackbar=a,this.translate=o,this.router=l,this.partner=new Ys.k,this.authData=e.currentAuthData,e.currentAuth.subscribe(u=>{u&&(this.authData=u)})}ngOnInit(){this.getPartner(this.authData?.partnerId)}getPartner(e){var r=this;return(0,wi.Z)(function*(){const a=e?yield r.partnerService.getPartner(e):new Ys.k;return r.partner=(0,Zt.X)(a),r.partner})()}savePartner(){this.partnerService.savePartner(this.partner).subscribe(e=>{this.snackbar.open(this.translate.instant("app.partner.snackbar.edit"),void 0,{duration:3e3}),this.router.navigate(["/home"])},e=>{this.snackbar.open(e.message,"OK",{panelClass:["error-snackbar"]})})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(Ys.b),i.Y36(Wa.ux),i.Y36(Ot.sK),i.Y36(Ft.F0))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-partner-edit"]],decls:47,vars:33,consts:[[1,"fill-space"],["mat-raised-button","","color","primary",3,"click"],["id","container"],["appearance","fill",1,"full-width"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["matInput","","type","text",3,"ngModel","ngModelChange"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"mat-icon"),i._uU(2,"edit"),i.qZA(),i._uU(3," Modifica Partner "),i._UZ(4,"span",0),i.TgZ(5,"button",1),i.NdJ("click",function(){return r.savePartner()}),i._uU(6),i.ALo(7,"translate"),i.TgZ(8,"mat-icon"),i._uU(9,"save"),i.qZA()()(),i.TgZ(10,"div",2)(11,"mat-form-field",3)(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"input",4),i.NdJ("ngModelChange",function(o){return r.partner.companyName=o}),i.qZA(),i.YNc(16,h,3,0,"button",5),i.qZA(),i.TgZ(17,"mat-form-field",3)(18,"mat-label"),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.TgZ(21,"input",6),i.NdJ("ngModelChange",function(o){return r.partner.seller=o}),i.qZA(),i.YNc(22,g,3,0,"button",5),i.qZA(),i.TgZ(23,"mat-form-field",3)(24,"mat-label"),i._uU(25),i.ALo(26,"translate"),i.qZA(),i.TgZ(27,"input",6),i.NdJ("ngModelChange",function(o){return r.partner.email=o}),i.qZA(),i.YNc(28,x,3,0,"button",5),i.qZA(),i.TgZ(29,"mat-form-field",3)(30,"mat-label"),i._uU(31),i.ALo(32,"translate"),i.qZA(),i.TgZ(33,"input",6),i.NdJ("ngModelChange",function(o){return r.partner.address=o}),i.qZA(),i.YNc(34,T,3,0,"button",5),i.qZA(),i.TgZ(35,"mat-form-field",3)(36,"mat-label"),i._uU(37),i.ALo(38,"translate"),i.qZA(),i.TgZ(39,"input",6),i.NdJ("ngModelChange",function(o){return r.partner.phone=o}),i.qZA(),i.YNc(40,R,3,0,"button",5),i.qZA(),i.TgZ(41,"mat-form-field",3)(42,"mat-label"),i._uU(43),i.ALo(44,"translate"),i.qZA(),i.TgZ(45,"input",4),i.NdJ("ngModelChange",function(o){return r.partner.vatNumber=o}),i.qZA(),i.YNc(46,K,3,0,"button",5),i.qZA()()),2&e&&(i.xp6(6),i.hij(" ",i.lcZ(7,19,"shared.buttons.save")," "),i.xp6(7),i.Oqu(i.lcZ(14,21,"app.partner.companyName")),i.xp6(2),i.Q6J("ngModel",r.partner.companyName),i.xp6(1),i.Q6J("ngIf",r.partner.companyName),i.xp6(3),i.Oqu(i.lcZ(20,23,"app.partner.seller")),i.xp6(2),i.Q6J("ngModel",r.partner.seller),i.xp6(1),i.Q6J("ngIf",r.partner.seller),i.xp6(3),i.Oqu(i.lcZ(26,25,"app.partner.email")),i.xp6(2),i.Q6J("ngModel",r.partner.email),i.xp6(1),i.Q6J("ngIf",r.partner.email),i.xp6(3),i.Oqu(i.lcZ(32,27,"app.partner.address")),i.xp6(2),i.Q6J("ngModel",r.partner.address),i.xp6(1),i.Q6J("ngIf",r.partner.address),i.xp6(3),i.Oqu(i.lcZ(38,29,"app.partner.phone")),i.xp6(2),i.Q6J("ngModel",r.partner.phone),i.xp6(1),i.Q6J("ngIf",r.partner.phone),i.xp6(3),i.Oqu(i.lcZ(44,31,"app.partner.vatNumber")),i.xp6(2),i.Q6J("ngModel",r.partner.vatNumber),i.xp6(1),i.Q6J("ngIf",r.partner.vatNumber))},dependencies:[Hn.O5,A.Fj,A.JJ,A.Q7,A.On,Ui.lW,Ui.RK,Xe.KE,Xe.hX,Xe.R9,Dt.Hw,_n.Nt,ca.Ye,Ot.X$],styles:[".full-width[_ngcontent-%COMP%]{width:90%;padding-left:30px;padding-right:30px}"]}),t})();var Le=y(874),bt=y(4866),Wt=y(2156);function pn(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.showShipmentDetails(a.order.shipment.smsid))}),i.TgZ(1,"mat-icon"),i._uU(2,"local_shipping"),i.qZA()()}}function Dn(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"li",5),i._uU(1),i.TgZ(2,"button",9),i.NdJ("click",function(){const o=i.CHM(e).$implicit,l=i.oxw();return i.KtG(l.showProductDetails(o.imsgid))}),i.TgZ(3,"mat-icon"),i._uU(4,"info"),i.qZA()()()}if(2&t){const e=n.$implicit;i.xp6(1),i.gL8(" ",e.name," ",e.quantity," x ",e.unitPriceSet.amount," ",e.unitPriceSet.currencyCode," = ",e.totalPriceSet.amount," ",e.totalPriceSet.currencyCode," ")}}let Yn=(()=>{class t extends ln.Mf{constructor(e,r,a,o){super(e),this.ordersService=r,this.route=a,this.router=o,this.order=new Ef.KM}ngOnInit(){this.route.paramMap.subscribe(e=>{const r=e.get("id");r?this.getOrder(r):this.router.navigate(["/orders"])})}getOrder(e){var r=this;return(0,wi.Z)(function*(){return r.order=yield r.ordersService.getOrder(e),r.order})()}showProductDetails(e){var r=this;return(0,wi.Z)(function*(){r.router.navigate(["/reference",{imsgid:e}])})()}showShipmentDetails(e){var r=this;return(0,wi.Z)(function*(){r.router.navigate(["/shipment",{id:e}])})()}back(){this.router.navigate(["/orders"])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(Ef.Nz),i.Y36(Ft.gz),i.Y36(Ft.F0))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-order"]],features:[i.qOj],decls:46,vars:42,consts:[["mat-button","","color","primary",3,"click"],[1,"mat-18"],[1,"fill-space"],[1,"container"],[3,"expanded"],["mat-line",""],["mat-lin",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-line","",4,"ngFor","ngForOf"],["mat-icon-button","",3,"click"]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"button",0),i.NdJ("click",function(){return r.back()}),i.TgZ(2,"mat-icon"),i._uU(3,"arrow_back"),i.qZA()(),i.TgZ(4,"mat-icon",1),i._uU(5,"inventory_2"),i.qZA(),i._uU(6),i.ALo(7,"translate"),i._UZ(8,"span",2),i.qZA(),i.TgZ(9,"div",3)(10,"mat-accordion")(11,"mat-expansion-panel",4)(12,"mat-expansion-panel-header")(13,"mat-panel-title")(14,"strong"),i._uU(15),i.ALo(16,"translate"),i.qZA()()(),i.TgZ(17,"div",5),i._uU(18),i.qZA(),i.TgZ(19,"div",5),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"div",5),i._uU(23),i.ALo(24,"translate"),i.qZA(),i.TgZ(25,"div",5),i._uU(26),i.ALo(27,"translate"),i.qZA(),i.TgZ(28,"div",6),i._uU(29),i.ALo(30,"translate"),i.qZA(),i.TgZ(31,"div",5),i._uU(32),i.ALo(33,"translate"),i.YNc(34,pn,3,0,"button",7),i.qZA()(),i.TgZ(35,"mat-expansion-panel")(36,"mat-expansion-panel-header")(37,"mat-panel-title"),i._uU(38),i.ALo(39,"translate"),i.qZA()(),i.TgZ(40,"div",5)(41,"strong"),i._uU(42),i.ALo(43,"translate"),i.qZA(),i.TgZ(44,"ol"),i.YNc(45,Dn,5,6,"li",8),i.qZA()()()()()),2&e&&(i.xp6(6),i.AsE(" ",i.lcZ(7,24,"app.orders.order.title")," ",r.order.name," "),i.xp6(5),i.Q6J("expanded",!0),i.xp6(4),i.Oqu(i.lcZ(16,26,"app.orders.order.accordion.header")),i.xp6(3),i.Oqu(r.order.status),i.xp6(2),i.lnq("",i.lcZ(21,28,"app.orders.order.customer"),": ",r.order.customer.displayName," (",r.order.customer.email,") "),i.xp6(3),i.xDo("",i.lcZ(24,30,"app.orders.order.address"),": ",r.order.shippingAddress.address1," ",r.order.shippingAddress.address2," ",r.order.shippingAddress.city," ",r.order.shippingAddress.province," "),i.xp6(3),i.lnq("",i.lcZ(27,32,"app.orders.order.total"),": ",r.order.totalPriceSet.amount," ",r.order.totalPriceSet.currencyCode," "),i.xp6(3),i.AsE("",i.lcZ(30,34,"app.orders.order.cashOnDelivery")," ",r.order.cashOnDelivery," "),i.xp6(3),i.AsE("",i.lcZ(33,36,"app.shipments.shipment.title"),": ",null==r.order.shipment?null:r.order.shipment.status," "),i.xp6(2),i.Q6J("ngIf",r.order.shipment),i.xp6(4),i.hij(" ",i.lcZ(39,38,"app.orders.order.accordion.details")," "),i.xp6(4),i.hij("",i.lcZ(43,40,"app.orders.order.items"),":"),i.xp6(3),i.Q6J("ngForOf",r.order.items))},dependencies:[Hn.sg,Hn.O5,Ui.lW,Ui.RK,oo.pp,oo.ib,oo.yz,oo.yK,Dt.Hw,ca.Ye,Pr.X2,Ot.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center}"]}),t})();var ci=y(38);function Di(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.showOrder(a.shipment.order.omsgid))}),i.TgZ(1,"mat-icon",8),i._uU(2,"inventory_2"),i.qZA()()}}let Ri=(()=>{class t extends ln.Mf{constructor(e,r,a,o){super(e),this.shipmentsService=r,this.route=a,this.router=o,this.shipment={}}ngOnInit(){this.route.paramMap.subscribe(e=>{const r=e.get("id");r?this.getShipment(r):this.router.navigate(["/shipments"])})}getShipment(e){var r=this;return(0,wi.Z)(function*(){return r.shipment=yield r.shipmentsService.getShipment(e),r.shipment})()}showOrder(e){var r=this;return(0,wi.Z)(function*(){r.router.navigate(["/order",{id:e}])})()}back(){this.router.navigate(["/shipments"])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(L0),i.Y36(Ft.gz),i.Y36(Ft.F0))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-shipment"]],features:[i.qOj],decls:23,vars:11,consts:[["mat-button","","color","primary",3,"click"],[1,"mat-18"],[1,"fill-space"],[1,"container"],["mat-line",""],["download","","target","_blank",3,"href"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-list-icon",""]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"button",0),i.NdJ("click",function(){return r.back()}),i.TgZ(2,"mat-icon"),i._uU(3,"arrow_back"),i.qZA()(),i.TgZ(4,"mat-icon",1),i._uU(5,"local_shipping"),i.qZA(),i._uU(6),i.ALo(7,"translate"),i._UZ(8,"span",2),i.qZA(),i.TgZ(9,"div",3)(10,"div",4),i._uU(11),i.qZA(),i.TgZ(12,"div",4),i._uU(13),i.qZA(),i.TgZ(14,"div",4),i._uU(15,"Label: "),i.TgZ(16,"a",5),i._uU(17,"Download"),i.qZA()(),i.TgZ(18,"div",4),i._uU(19),i.qZA(),i.TgZ(20,"div",4),i._uU(21),i.qZA(),i.YNc(22,Di,3,0,"button",6),i.qZA()),2&e&&(i.xp6(6),i.AsE(" ",i.lcZ(7,9,"app.shipments.shipment.title")," ",r.shipment.smsid," "),i.xp6(5),i.hij("Status: ",r.shipment.status,""),i.xp6(2),i.hij("CreatedAt: ",r.shipment.createdAt,""),i.xp6(3),i.s9C("href",r.shipment.labelUrl,i.LSH),i.xp6(3),i.AsE("Tracking: ",r.shipment.trackingCarrier," ",r.shipment.trackingNumber,""),i.xp6(2),i.hij("Order: ",r.shipment.order?r.shipment.order.omsgid:"No such order"," "),i.xp6(1),i.Q6J("ngIf",r.shipment.order))},dependencies:[Hn.O5,Ui.lW,Ui.RK,Dt.Hw,ca.Ye,Pr.X2,Ot.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center}"]}),t})();const ji=["shipmentsPaginator"],ii=["shipmentsSort"];function $i(t,n){1&t&&(i.TgZ(0,"th",15),i._uU(1," ID "),i.qZA())}function aa(t,n){if(1&t&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.smsid," ")}}function Ia(t,n){1&t&&(i.TgZ(0,"th",15),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.carriers.carrier.status")," "))}function VA(t,n){if(1&t&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.status||"-"," ")}}function xO(t,n){1&t&&(i.TgZ(0,"th",15),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.carriers.carrier.title")," "))}function wO(t,n){if(1&t&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.trackingCarrier||"-","")}}function CO(t,n){1&t&&(i.TgZ(0,"th",15),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.carriers.carrier.tracking-id")," "))}function DO(t,n){if(1&t&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.trackingNumber||"-"," ")}}function TO(t,n){1&t&&(i.TgZ(0,"th",17),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"shared.buttons.actions")," "))}function EO(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"td",16)(1,"button",18),i.NdJ("click",function(){const o=i.CHM(e).$implicit,l=i.oxw();return i.KtG(l.showShipmentDetails(o.smsid))}),i.TgZ(2,"mat-icon"),i._uU(3,"info"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA()()}2&t&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"shared.details")," "))}function MO(t,n){1&t&&i._UZ(0,"tr",19)}function AO(t,n){1&t&&i._UZ(0,"tr",20)}const SO=function(){return[5,10,20]};let kO=(()=>{class t extends ln.Mf{constructor(e,r,a){super(e),this.shipmentsService=r,this.router=a,this.shipments=[],this.shipmentsDataSource=new fi.by(this.shipments),this.shipmentsDisplayedColumns=["id","status","tracking-carrier","tracking-number","actions"]}ngOnInit(){var e=this;return(0,wi.Z)(function*(){yield e.getShipments(e.authData?.partnerId),e.shipmentsDataSource.sort=e.shipmentsSort,e.shipmentsDataSource.paginator=e.shipmentsPaginator})()}getShipments(e){var r=this;return(0,wi.Z)(function*(){return r.shipments=yield r.shipmentsService.getShipments(e),r.shipmentsDataSource.data=r.shipments,r.shipments})()}showShipmentDetails(e){var r=this;return(0,wi.Z)(function*(){r.router.navigate(["/shipment",{id:e}])})()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(L0),i.Y36(Ft.F0))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-shipments"]],viewQuery:function(e,r){if(1&e&&(i.Gf(ji,5),i.Gf(ii,5)),2&e){let a;i.iGM(a=i.CRH())&&(r.shipmentsPaginator=a.first),i.iGM(a=i.CRH())&&(r.shipmentsSort=a.first)}},features:[i.qOj],decls:28,vars:9,consts:[[1,"container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["shipmentsSort","matSort"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","tracking-carrier"],["matColumnDef","tracking-number"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page of storefronts",3,"pageSize","pageSizeOptions"],["shipmentsPaginator",""],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"mat-icon"),i._uU(2,"local_shipping"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"div",0)(6,"table",1,2),i.ynx(8,3),i.YNc(9,$i,2,0,"th",4),i.YNc(10,aa,2,1,"td",5),i.BQk(),i.ynx(11,6),i.YNc(12,Ia,3,3,"th",4),i.YNc(13,VA,2,1,"td",5),i.BQk(),i.ynx(14,7),i.YNc(15,xO,3,3,"th",4),i.YNc(16,wO,2,1,"td",5),i.BQk(),i.ynx(17,8),i.YNc(18,CO,3,3,"th",4),i.YNc(19,DO,2,1,"td",5),i.BQk(),i.ynx(20,9),i.YNc(21,TO,3,3,"th",10),i.YNc(22,EO,6,3,"td",5),i.BQk(),i.YNc(23,MO,1,0,"tr",11),i.YNc(24,AO,1,0,"tr",12),i.qZA(),i._UZ(25,"mat-divider")(26,"mat-paginator",13,14),i.qZA()),2&e&&(i.xp6(3),i.hij(" ",i.lcZ(4,6,"app.shipments.title"),"\n"),i.xp6(3),i.Q6J("dataSource",r.shipmentsDataSource),i.xp6(17),i.Q6J("matHeaderRowDef",r.shipmentsDisplayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",r.shipmentsDisplayedColumns),i.xp6(2),i.Q6J("pageSize",20)("pageSizeOptions",i.DdM(8,SO)))},dependencies:[Ui.RK,Dt.Hw,cd.d,xi.NW,Ma.YE,Ma.nU,fi.BZ,fi.fO,fi.as,fi.w1,fi.Dz,fi.nj,fi.ge,fi.ev,fi.XQ,fi.Gk,ca.Ye,Ot.X$],styles:[".container[_ngcontent-%COMP%]{display:block;justify-content:center}table[_ngcontent-%COMP%]{width:100%}"]}),t})();var IO=y(8613);class j1{constructor(){this.username="",this.surname="",this.description="",this.company="",this.whatsapp="",this.facebook="",this.instagram="",this.phone="",this.email="",this.address="",this.website="",this.colour="",this.bgcolour="",this.buybutton=""}}class HA{constructor(n){this.storefrontData=new j1,this.name=n.name,this.url=n.url,this.partnerId=n.partnerId,this.location=n.location}}let jA=(()=>{class t{constructor(e,r){this.apolloClient=e,this.http=r,this.storefrontRenderedHtml="",this.storefrontTemplate="",this.fetchStorefrontById=Rt.Ps`
query ($id:MongoID!){
storefrontById(_id:$id) {
name
location
url
partnerId
storefrontData {
username
surname
description
company
whatsapp
facebook
instagram
phone
email
address
website
colour
bgcolour
buybutton
}
}
}
`,this.fetchStorefrontsMany=Rt.Ps`
query ($partnerId: MongoID!){
storefrontMany(filter:{ partnerId: $partnerId}){
_id,
name,
url,
location,
}
}
`,this.createStorefront=Rt.Ps`
mutation ($storefront:CreateOneStorefrontInput!){
storefrontCreateOne(record:$storefront){
recordId
record {
name
url
location
storefrontData {
username
surname
description
company
whatsapp
facebook
instagram
phone
email
address
website
colour
bgcolour
buybutton
}
}
}
}`,this.deleteStorefrontQuery=Rt.Ps`
mutation ($id: MongoID!){
storefrontRemoveById(_id: $id){
record{
_id
name
}
}
}`,this.updateStorefrontQuery=Rt.Ps`
mutation storefrontUpdateById(
$id: MongoID!
$record: UpdateByIdStorefrontInput!
) {
storefrontUpdateById(_id: $id, record: $record) {
record {
name
url
location
storefrontData {
username
surname
description
company
whatsapp
facebook
instagram
phone
email
address
website
colour
bgcolour
buybutton
}
}
}
}
`,this.generateStorefrontQuery=Rt.Ps`
mutation ($record:StorefrontUpdateInput, $html:String){
storefrontGenerate(record:$record, html:$html) {
name
}
}
`}getUserStorefronts(e){var r=this;return(0,wi.Z)(function*(){return(yield r.apolloClient.query({query:r.fetchStorefrontsMany,fetchPolicy:"network-only",variables:{partnerId:e}}).toPromise().catch(o=>{throw new Error(o)})).data.storefrontMany})()}getStorefrontById(e){var r=this;return(0,wi.Z)(function*(){return(yield r.apolloClient.query({query:r.fetchStorefrontById,fetchPolicy:"network-only",variables:{id:e}}).toPromise().catch(o=>{throw console.log(o),new Error(o)})).data.storefrontById})()}addNewStorefront(e){var r=this;return(0,wi.Z)(function*(){const a=new HA(e);var o=yield r.apolloClient.mutate({mutation:r.createStorefront,variables:{storefront:a}}).toPromise().catch(l=>{throw new Error(l)});if(o.data?.storefrontCreateOne.error)throw new Error(o.data?.storefrontCreateOne.error.message.toString());return o.data?.storefrontCreateOne.record})()}deleteStorefront(e){var r=this;return(0,wi.Z)(function*(){return(yield r.apolloClient.mutate({mutation:r.deleteStorefrontQuery,fetchPolicy:"network-only",variables:{id:e}}).toPromise().catch(o=>{throw new Error(o)})).data?.storefrontRemoveById.record})()}generateStorefront(e,r){var a=this;return(0,wi.Z)(function*(){const o=yield a.getStorefrontById(e),l=new HA(o);l.storefrontData=r,yield a.generateTemplate(r),yield a.apolloClient.mutate({mutation:a.updateStorefrontQuery,variables:{id:e,record:l}}).toPromise().catch(_=>{throw console.log(_),new Error(_)}),yield a.apolloClient.mutate({mutation:a.generateStorefrontQuery,variables:{record:{storefront:l},html:a.storefrontRenderedHtml}}).toPromise().catch(_=>{throw console.log(_),new Error(_)})})()}loadTemplate(){var e=this;return(0,wi.Z)(function*(){e.storefrontTemplate="<html>",e.storefrontTemplate+=(yield e.http.get("assets/storefront-generator/templates/header-classic.html",{responseType:"text"}).toPromise()),e.storefrontTemplate+="<body>",e.storefrontTemplate+=(yield e.http.get("assets/storefront-generator/templates/navbar-classic.html",{responseType:"text"}).toPromise()),e.storefrontTemplate+=(yield e.http.get("assets/storefront-generator/templates/buybutton-classic.html",{responseType:"text"}).toPromise()),e.storefrontTemplate+=(yield e.http.get("assets/storefront-generator/templates/footer-classic.html",{responseType:"text"}).toPromise()),e.storefrontTemplate+="</body></html>"})()}generateTemplate(e){var r=this;return(0,wi.Z)(function*(){yield r.loadTemplate().then(()=>r.storefrontRenderedHtml=IO.render(r.storefrontTemplate,e))})()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Rt._M),i.LFG(p.eN))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),OO=(()=>{class t{constructor(e){this.dialogRef=e,this.data={_id:"",name:"",url:"",location:"",partnerId:"",storefrontData:new j1}}ngOnInit(){}onCancel(){this.dialogRef.close()}onSubmit(e){this.dialogRef.close(e)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(X.so))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-add-storefront-modal"]],decls:16,vars:14,consts:[[1,"full-width"],["novalidate","",3,"ngSubmit"],[1,"full-width","mt-3"],["matInput","","name","url",3,"ngModel","placeholder","ngModelChange"],["mat-button","","type","button",3,"click"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(e,r){1&e&&(i.TgZ(0,"div",0)(1,"form",1),i.NdJ("ngSubmit",function(){return r.onSubmit(r.data)}),i.TgZ(2,"mat-dialog-content")(3,"mat-form-field",2)(4,"mat-label"),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"input",3),i.NdJ("ngModelChange",function(o){return r.data.name=o}),i.ALo(8,"translate"),i.qZA()()(),i.TgZ(9,"mat-dialog-actions")(10,"button",4),i.NdJ("click",function(){return r.onCancel()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"button",5),i._uU(14),i.ALo(15,"translate"),i.qZA()()()()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,6,"app.storefronts.storefront.name")),i.xp6(2),i.s9C("placeholder",i.lcZ(8,8,"app.storefronts.storefront.name")),i.Q6J("ngModel",r.data.name),i.xp6(4),i.Oqu(i.lcZ(12,10,"shared.buttons.cancel")),i.xp6(2),i.Q6J("disabled",""===r.data.name),i.xp6(1),i.Oqu(i.lcZ(15,12,"shared.buttons.add")))},dependencies:[A._Y,A.Fj,A.JJ,A.JL,A.On,A.F,Ui.lW,X.xY,X.H8,Xe.KE,Xe.hX,_n.Nt,Ot.X$]}),t})();function PO(t,n){1&t&&(i._uU(0),i.ALo(1,"translate")),2&t&&i.hij("",i.lcZ(1,1,"app.storefronts.generator.headers.basic")," ")}function RO(t,n){1&t&&(i._uU(0),i.ALo(1,"translate")),2&t&&i.hij("",i.lcZ(1,1,"app.storefronts.generator.headers.social")," ")}function FO(t,n){1&t&&(i._uU(0),i.ALo(1,"translate")),2&t&&i.hij("",i.lcZ(1,1,"app.storefronts.generator.headers.contacts")," ")}function LO(t,n){1&t&&(i._uU(0),i.ALo(1,"translate")),2&t&&i.hij("",i.lcZ(1,1,"app.storefronts.generator.headers.formatting")," ")}function NO(t,n){1&t&&(i._uU(0),i.ALo(1,"translate")),2&t&&i.hij("",i.lcZ(1,1,"app.storefronts.generator.headers.buybutton")," ")}let YA=(()=>{class t{constructor(e,r,a,o,l){this.http=e,this._formBuilder=r,this.dialogRef=a,this.input=o,this.storefrontService=l,this.renderedHtml="",this.isLinear=!0,this.data={username:"INDACO",surname:"",description:"",company:"",whatsapp:"",facebook:"",instagram:"",phone:"",email:"",address:"",website:"",colour:"#000000",bgcolour:"#ffffff",buybutton:""}}ngOnInit(){var e=this;return(0,wi.Z)(function*(){yield e.getStorefrontData(e.input.id)})()}onCancel(){this.dialogRef.close()}onSubmit(e){this.dialogRef.close(e)}getStorefrontData(e){var r=this;return(0,wi.Z)(function*(){const a=yield r.storefrontService.getStorefrontById(e);a&&(r.data.username=a.storefrontData.username,r.data.surname=a.storefrontData.surname,r.data.description=a.storefrontData.description,r.data.company=a.storefrontData.company,r.data.whatsapp=a.storefrontData.whatsapp,r.data.facebook=a.storefrontData.facebook,r.data.instagram=a.storefrontData.instagram,r.data.phone=a.storefrontData.phone,r.data.email=a.storefrontData.email,r.data.address=a.storefrontData.address,r.data.website=a.storefrontData.website,r.data.colour=a.storefrontData.colour,r.data.bgcolour=a.storefrontData.bgcolour,r.data.buybutton=a.storefrontData.buybutton)})()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(p.eN),i.Y36(A.QS),i.Y36(X.so),i.Y36(X.WI),i.Y36(jA))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-storefront-generator-modal"]],decls:132,vars:87,consts:[["id","#dialog-container"],["novalidate","",3,"ngSubmit"],[3,"linear"],["stepper",""],["id","stepper-content"],["matStepLabel",""],["matInput","","name","title",3,"ngModel","ngModelChange"],["matInput","","name","surname",3,"ngModel","ngModelChange"],["matInput","","name","description",3,"ngModel","ngModelChange"],["matInput","","name","company",3,"ngModel","ngModelChange"],["color","accent","type","button","mat-stroked-button","","matStepperNext",""],["matInput","","name","whatsapp",3,"ngModel","ngModelChange"],["matInput","","name","facebook",3,"ngModel","ngModelChange"],["matInput","","name","instagram",3,"ngModel","ngModelChange"],["color","accent","type","button","mat-stroked-button","","matStepperPrevious",""],["matInput","","name","website",3,"ngModel","ngModelChange"],["matInput","","name","phone",3,"ngModel","ngModelChange"],["matInput","","name","email",3,"ngModel","ngModelChange"],["matInput","","name","address",3,"ngModel","ngModelChange"],["type","color","matInput","","name","colour",3,"ngModel","ngModelChange"],["type","color","matInput","","name","bgcolour",3,"ngModel","ngModelChange"],["type","textarea","matInput","","name","buybutton",3,"ngModel","ngModelChange"],["id","mat-actions"],["type","button","mat-stroked-button","","type","button",3,"click"],["mat-raised-button","","type","submit","color","primary"]],template:function(e,r){1&e&&(i.TgZ(0,"div",0)(1,"form",1),i.NdJ("ngSubmit",function(){return r.onSubmit(r.data)}),i.TgZ(2,"mat-dialog-content")(3,"mat-horizontal-stepper",2,3)(5,"div",4)(6,"mat-step"),i.YNc(7,PO,2,3,"ng-template",5),i.TgZ(8,"mat-form-field")(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"input",6),i.NdJ("ngModelChange",function(o){return r.data.username=o}),i.qZA()(),i._UZ(13,"br"),i.TgZ(14,"mat-form-field")(15,"mat-label"),i._uU(16),i.ALo(17,"translate"),i.qZA(),i.TgZ(18,"input",7),i.NdJ("ngModelChange",function(o){return r.data.surname=o}),i.qZA()(),i._UZ(19,"br"),i.TgZ(20,"mat-form-field")(21,"mat-label"),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.TgZ(24,"input",8),i.NdJ("ngModelChange",function(o){return r.data.description=o}),i.qZA()(),i._UZ(25,"br"),i.TgZ(26,"mat-form-field")(27,"mat-label"),i._uU(28),i.ALo(29,"translate"),i.qZA(),i.TgZ(30,"input",9),i.NdJ("ngModelChange",function(o){return r.data.company=o}),i.qZA()(),i.TgZ(31,"div")(32,"button",10),i._uU(33),i.ALo(34,"translate"),i.qZA()()(),i.TgZ(35,"mat-step"),i.YNc(36,RO,2,3,"ng-template",5),i.TgZ(37,"mat-form-field")(38,"mat-label"),i._uU(39),i.ALo(40,"translate"),i.qZA(),i.TgZ(41,"input",11),i.NdJ("ngModelChange",function(o){return r.data.whatsapp=o}),i.qZA()(),i._UZ(42,"br"),i.TgZ(43,"mat-form-field")(44,"mat-label"),i._uU(45),i.ALo(46,"translate"),i.qZA(),i.TgZ(47,"input",12),i.NdJ("ngModelChange",function(o){return r.data.facebook=o}),i.qZA()(),i._UZ(48,"br"),i.TgZ(49,"mat-form-field")(50,"mat-label"),i._uU(51),i.ALo(52,"translate"),i.qZA(),i.TgZ(53,"input",13),i.NdJ("ngModelChange",function(o){return r.data.instagram=o}),i.qZA()(),i.TgZ(54,"div")(55,"button",14),i._uU(56),i.ALo(57,"translate"),i.qZA(),i.TgZ(58,"button",10),i._uU(59),i.ALo(60,"translate"),i.qZA()()(),i.TgZ(61,"mat-step"),i.YNc(62,FO,2,3,"ng-template",5),i.TgZ(63,"mat-form-field")(64,"mat-label"),i._uU(65),i.ALo(66,"translate"),i.qZA(),i.TgZ(67,"input",15),i.NdJ("ngModelChange",function(o){return r.data.website=o}),i.qZA()(),i._UZ(68,"br"),i.TgZ(69,"mat-form-field")(70,"mat-label"),i._uU(71),i.ALo(72,"translate"),i.qZA(),i.TgZ(73,"input",16),i.NdJ("ngModelChange",function(o){return r.data.phone=o}),i.qZA()(),i._UZ(74,"br"),i.TgZ(75,"mat-form-field")(76,"mat-label"),i._uU(77),i.ALo(78,"translate"),i.qZA(),i.TgZ(79,"input",17),i.NdJ("ngModelChange",function(o){return r.data.email=o}),i.qZA()(),i._UZ(80,"br"),i.TgZ(81,"mat-form-field")(82,"mat-label"),i._uU(83),i.ALo(84,"translate"),i.qZA(),i.TgZ(85,"input",18),i.NdJ("ngModelChange",function(o){return r.data.address=o}),i.qZA()(),i.TgZ(86,"div")(87,"button",14),i._uU(88),i.ALo(89,"translate"),i.qZA(),i.TgZ(90,"button",10),i._uU(91),i.ALo(92,"translate"),i.qZA()()(),i.TgZ(93,"mat-step"),i.YNc(94,LO,2,3,"ng-template",5),i.TgZ(95,"mat-form-field")(96,"mat-label"),i._uU(97),i.ALo(98,"translate"),i.qZA(),i.TgZ(99,"input",19),i.NdJ("ngModelChange",function(o){return r.data.colour=o}),i.qZA()(),i._UZ(100,"br"),i.TgZ(101,"mat-form-field")(102,"mat-label"),i._uU(103),i.ALo(104,"translate"),i.qZA(),i.TgZ(105,"input",20),i.NdJ("ngModelChange",function(o){return r.data.bgcolour=o}),i.qZA()(),i.TgZ(106,"div")(107,"button",14),i._uU(108),i.ALo(109,"translate"),i.qZA(),i.TgZ(110,"button",10),i._uU(111),i.ALo(112,"translate"),i.qZA()()(),i.TgZ(113,"mat-step"),i.YNc(114,NO,2,3,"ng-template",5),i.TgZ(115,"mat-form-field")(116,"mat-label"),i._uU(117),i.ALo(118,"translate"),i.qZA(),i.TgZ(119,"input",21),i.NdJ("ngModelChange",function(o){return r.data.buybutton=o}),i.qZA()(),i.TgZ(120,"div")(121,"button",14),i._uU(122),i.ALo(123,"translate"),i.qZA()()()()()(),i.TgZ(124,"mat-dialog-actions")(125,"div",22)(126,"button",23),i.NdJ("click",function(){return r.onCancel()}),i._uU(127),i.ALo(128,"translate"),i.qZA(),i.TgZ(129,"button",24),i._uU(130),i.ALo(131,"translate"),i.qZA()()()()()),2&e&&(i.xp6(3),i.Q6J("linear",!1),i.xp6(7),i.Oqu(i.lcZ(11,39,"app.storefronts.generator.name")),i.xp6(2),i.Q6J("ngModel",r.data.username),i.xp6(4),i.Oqu(i.lcZ(17,41,"app.storefronts.generator.surname")),i.xp6(2),i.Q6J("ngModel",r.data.surname),i.xp6(4),i.Oqu(i.lcZ(23,43,"app.storefronts.generator.description")),i.xp6(2),i.Q6J("ngModel",r.data.description),i.xp6(4),i.Oqu(i.lcZ(29,45,"app.storefronts.generator.company")),i.xp6(2),i.Q6J("ngModel",r.data.company),i.xp6(3),i.Oqu(i.lcZ(34,47,"shared.buttons.next")),i.xp6(6),i.Oqu(i.lcZ(40,49,"app.storefronts.generator.whatsapp")),i.xp6(2),i.Q6J("ngModel",r.data.whatsapp),i.xp6(4),i.Oqu(i.lcZ(46,51,"app.storefronts.generator.facebook")),i.xp6(2),i.Q6J("ngModel",r.data.facebook),i.xp6(4),i.Oqu(i.lcZ(52,53,"app.storefronts.generator.instagram")),i.xp6(2),i.Q6J("ngModel",r.data.instagram),i.xp6(3),i.Oqu(i.lcZ(57,55,"shared.buttons.previous")),i.xp6(3),i.Oqu(i.lcZ(60,57,"shared.buttons.next")),i.xp6(6),i.Oqu(i.lcZ(66,59,"app.storefronts.generator.phone")),i.xp6(2),i.Q6J("ngModel",r.data.website),i.xp6(4),i.Oqu(i.lcZ(72,61,"app.storefronts.generator.phone")),i.xp6(2),i.Q6J("ngModel",r.data.phone),i.xp6(4),i.Oqu(i.lcZ(78,63,"app.storefronts.generator.email")),i.xp6(2),i.Q6J("ngModel",r.data.email),i.xp6(4),i.Oqu(i.lcZ(84,65,"app.storefronts.generator.address")),i.xp6(2),i.Q6J("ngModel",r.data.address),i.xp6(3),i.Oqu(i.lcZ(89,67,"shared.buttons.previous")),i.xp6(3),i.Oqu(i.lcZ(92,69,"shared.buttons.next")),i.xp6(6),i.Oqu(i.lcZ(98,71,"app.storefronts.generator.colour")),i.xp6(2),i.Q6J("ngModel",r.data.colour),i.xp6(4),i.Oqu(i.lcZ(104,73,"app.storefronts.generator.bgColour")),i.xp6(2),i.Q6J("ngModel",r.data.bgcolour),i.xp6(3),i.Oqu(i.lcZ(109,75,"shared.buttons.previous")),i.xp6(3),i.Oqu(i.lcZ(112,77,"shared.buttons.next")),i.xp6(6),i.Oqu(i.lcZ(118,79,"app.storefronts.generator.buybutton")),i.xp6(2),i.Q6J("ngModel",r.data.buybutton),i.xp6(3),i.Oqu(i.lcZ(123,81,"shared.buttons.previous")),i.xp6(5),i.Oqu(i.lcZ(128,83,"shared.buttons.cancel")),i.xp6(3),i.Oqu(i.lcZ(131,85,"shared.buttons.add")))},dependencies:[A._Y,A.Fj,A.JJ,A.JL,A.On,A.F,Ui.lW,X.xY,X.H8,Xe.KE,Xe.hX,_n.Nt,za.C0,za.VY,za.Vq,za.Ic,za.fd,Ot.X$],styles:["#stepper-content[_ngcontent-%COMP%]{align-self:center}"]}),t})();var BO=y(6),Wp=y(4961);const UO=["storefrontsPaginator"];function ZO(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",15),i.NdJ("click",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.onAdd())}),i._uU(1),i.ALo(2,"translate"),i.TgZ(3,"mat-icon"),i._uU(4,"add"),i.qZA()()}2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"shared.buttons.add")," "))}function VO(t,n){1&t&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.storefronts.storefront.name")," "))}function HO(t,n){if(1&t&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.name," ")}}function jO(t,n){1&t&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.storefronts.storefront.url")," "))}function YO(t,n){if(1&t&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.url," ")}}function zO(t,n){1&t&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.storefronts.storefront.location")," "))}function WO(t,n){if(1&t&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.location," ")}}function GO(t,n){1&t&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"shared.buttons.actions")," "))}function $O(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){i.CHM(e);const a=i.oxw().$implicit,o=i.oxw();return i.KtG(o.onGenerate(a._id))}),i.TgZ(1,"mat-icon"),i._uU(2,"brush"),i.qZA()()}}function qO(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){i.CHM(e);const a=i.oxw().$implicit,o=i.oxw();return i.KtG(o.deleteStorefront(a._id))}),i.TgZ(1,"mat-icon")(2,"span",22),i._uU(3," delete_outline "),i.qZA()()()}}function QO(t,n){if(1&t&&(i.TgZ(0,"td",17)(1,"a",19)(2,"mat-icon"),i._uU(3,"open_in_browser"),i.qZA()(),i.YNc(4,$O,3,0,"button",20),i.YNc(5,qO,4,0,"button",20),i.qZA()),2&t){const e=n.$implicit,r=i.oxw();i.xp6(1),i.s9C("href",e.url,i.LSH),i.xp6(3),i.Q6J("ngIf",r.isAccessibleFeatureAvailable("SFG-G")),i.xp6(1),i.Q6J("ngIf",r.isAccessibleFeatureAvailable("SFG-D"))}}function KO(t,n){1&t&&i._UZ(0,"tr",23)}function JO(t,n){1&t&&i._UZ(0,"tr",24)}const XO=function(){return[5,10,20]};let eP=(()=>{class t{constructor(e,r,a,o,l,u){this.authService=e,this.dialog=r,this.snackbar=a,this.storefrontService=o,this.translate=l,this.userService=u,this.partner=new Ys.k,this.userStorefronts=[],this.selectedId=[],this.template="nulla",this.renderedHtml="",this.storefrontsDataSource=new fi.by(this.userStorefronts),this.storefrontsDisplayedColumns=["name","url","location","actions"],this.protoStorefront={name:"test store",url:"",location:"",partnerId:"",_id:"",storefrontData:new j1},this.authData=e.currentAuthData,e.currentAuth.subscribe(m=>{m&&(this.authData=m),this.getCurrentUser()})}ngOnInit(){var e=this;return(0,wi.Z)(function*(){e.protoStorefront.partnerId=e.authData?.partnerId,e.userStorefronts=[];const r=yield e.storefrontService.getUserStorefronts(e.authData.partnerId);for(var a of r)e.userStorefronts.push(a),e.selectedId.push("");e.storefrontsDataSource=new fi.by(e.userStorefronts),e.storefrontsDataSource.paginator=e.storefrontsPaginator})()}insertStorefront(e){var r=this;return(0,wi.Z)(function*(){r.storefrontService.addNewStorefront(e),r.userStorefronts=yield r.storefrontService.getUserStorefronts(r.authData.partnerId),r.storefrontsDataSource.data=r.userStorefronts})()}deleteStorefront(e){var r=this;return(0,wi.Z)(function*(){const a=r.translate.instant("app.storefronts.modals.delete.message"),o=r.translate.instant("app.storefronts.modals.delete.title");r.dialog.open(BO.q,{maxWidth:"400px",data:{message:a,title:o}}).afterClosed().subscribe(function(){var l=(0,wi.Z)(function*(u){u&&(yield r.storefrontService.deleteStorefront(e),r.userStorefronts=yield r.storefrontService.getUserStorefronts(r.authData.partnerId),r.storefrontsDataSource.data=r.userStorefronts,r.snackbar.open(r.translate.instant("shared.snackbar.deleteConfirmation"),void 0,{duration:3e3}))});return function(u){return l.apply(this,arguments)}}())})()}onSubmit(e){var r=this;return(0,wi.Z)(function*(){e.location=e.name,e.url=e.name,yield r.insertStorefront(e)})()}onAdd(){var e=this;this.dialog.open(OO).afterClosed().subscribe(function(){var r=(0,wi.Z)(function*(a){if(a&&e.authData.partnerId){a.partnerId=e.authData.partnerId;const u=new RegExp(" ","g");a.name=a.name.replace(u,"-"),yield e.storefrontService.addNewStorefront(a),e.userStorefronts=yield e.storefrontService.getUserStorefronts(e.authData.partnerId),e.storefrontsDataSource.data=e.userStorefronts,e.snackbar.open(e.translate.instant("app.storefronts.snackbar.add"),void 0,{duration:3e3})}});return function(a){return r.apply(this,arguments)}}())}onGenerate(e){var r=this;this.dialog.open(YA,{data:{id:e}}).afterClosed().subscribe(function(){var a=(0,wi.Z)(function*(o){o&&r.authData.partnerId&&(yield r.storefrontService.generateStorefront(e,o),r.snackbar.open(r.translate.instant("app.storefronts.snackbar.generate"),void 0,{duration:3e3}))});return function(o){return a.apply(this,arguments)}}())}isAccessibleFeatureAvailable(e){return this.authService.checkAccessibleFeatureAvailability(this.currentUser,"SFG",e)}getCurrentUser(){""!==this.authData?.userId?this.userService.getUser(this.authData.userId).subscribe(e=>this.currentUser=e):this.currentUser=void 0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(X.uw),i.Y36(Wa.ux),i.Y36(jA),i.Y36(Ot.sK),i.Y36(Wp.f))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-storefront"]],viewQuery:function(e,r){if(1&e&&i.Gf(UO,5),2&e){let a;i.iGM(a=i.CRH())&&(r.storefrontsPaginator=a.first)}},decls:25,vars:10,consts:[[1,"fill-space"],["mat-button","","color","primary","class","add-button",3,"click",4,"ngIf"],[1,"container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","url"],["matColumnDef","location"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page of storefronts",3,"pageSize","pageSizeOptions"],["storefrontsPaginator",""],["mat-button","","color","primary",1,"add-button",3,"click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","","target","_blank",3,"href"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[1,"material-icons"],["mat-header-row",""],["mat-row",""]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"mat-icon"),i._uU(2,"shopping_basket"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i._UZ(5,"span",0),i.YNc(6,ZO,5,3,"button",1),i.qZA(),i.TgZ(7,"div",2)(8,"table",3),i.ynx(9,4),i.YNc(10,VO,3,3,"th",5),i.YNc(11,HO,2,1,"td",6),i.BQk(),i.ynx(12,7),i.YNc(13,jO,3,3,"th",5),i.YNc(14,YO,2,1,"td",6),i.BQk(),i.ynx(15,8),i.YNc(16,zO,3,3,"th",5),i.YNc(17,WO,2,1,"td",6),i.BQk(),i.ynx(18,9),i.YNc(19,GO,3,3,"th",10),i.YNc(20,QO,6,3,"td",6),i.BQk(),i.YNc(21,KO,1,0,"tr",11),i.YNc(22,JO,1,0,"tr",12),i.qZA(),i._UZ(23,"mat-paginator",13,14),i.qZA()),2&e&&(i.xp6(3),i.hij(" ",i.lcZ(4,7,"app.storefronts.title")," "),i.xp6(3),i.Q6J("ngIf",r.isAccessibleFeatureAvailable("SFG-A")),i.xp6(2),i.Q6J("dataSource",r.storefrontsDataSource),i.xp6(13),i.Q6J("matHeaderRowDef",r.storefrontsDisplayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",r.storefrontsDisplayedColumns),i.xp6(1),i.Q6J("pageSize",20)("pageSizeOptions",i.DdM(9,XO)))},dependencies:[Hn.O5,Ui.lW,Ui.o6,Ui.RK,Dt.Hw,xi.NW,Ma.YE,Ma.nU,fi.BZ,fi.fO,fi.as,fi.w1,fi.Dz,fi.nj,fi.ge,fi.ev,fi.XQ,fi.Gk,ca.Ye,Ot.X$],styles:["table[_ngcontent-%COMP%]{width:100%}"]}),t})();var tP=y(8732);function nP(t,n){1&t&&(i.TgZ(0,"div",4),i._UZ(1,"mat-spinner",5),i.qZA())}function iP(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"users-grid",6),i.NdJ("openClicked",function(a){i.CHM(e);const o=i.oxw();return i.KtG(o.openUserDetail(a))})("deleteUserClicked",function(a){i.CHM(e);const o=i.oxw();return i.KtG(o.deleteUser(a))})("resetPasswordClicked",function(a){i.CHM(e);const o=i.oxw();return i.KtG(o.resetPassword(a))}),i.qZA()}if(2&t){const e=i.oxw();i.Q6J("users",e.users)}}let rP=(()=>{class t{constructor(e,r,a,o){this.router=e,this.snackbar=r,this.translate=a,this.usersService=o,this.users=[],this.loading=!1}ngOnInit(){this.getUsers()}createNewUser(){var e=this;return(0,wi.Z)(function*(){e.router.navigate(["user-detail"])})()}openUserDetail(e){this.router.navigate([`user-detail/${e._id}`])}deleteUser(e){e._id&&(this.loading=!0,this.usersService.deleteUser(e._id).subscribe(()=>this.getUsers(),r=>{this.snackbar.open(r.message,"OK",{panelClass:["error-snackbar"]})}).add(()=>this.loading=!1))}resetPassword(e){this.loading=!0,this.usersService.resetPassword(e.user,e.newPassword,e.passwordConfirm,e.oldPassword).subscribe(()=>{this.getUsers()},r=>{this.snackbar.open(r.message,"OK",{panelClass:["error-snackbar"]})}).add(()=>this.loading=!1)}getUsers(){this.loading=!0,this.usersService.getMyPartnerUsers().subscribe(e=>{this.users=e},e=>{this.snackbar.open(e.message,"OK",{panelClass:["error-snackbar"]})}).add(()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Ft.F0),i.Y36(Wa.ux),i.Y36(Ot.sK),i.Y36(Wp.f))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-users"]],features:[i._Bn([Wp.f])],decls:13,vars:8,consts:[[1,"fill-space"],["mat-raised-button","",3,"click"],["id","loading-container",4,"ngIf"],[3,"users","openClicked","deleteUserClicked","resetPasswordClicked",4,"ngIf"],["id","loading-container"],["id","loading-spinner"],[3,"users","openClicked","deleteUserClicked","resetPasswordClicked"]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"mat-icon"),i._uU(2,"person"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i._UZ(5,"span",0),i.TgZ(6,"button",1),i.NdJ("click",function(){return r.createNewUser()}),i.TgZ(7,"mat-icon"),i._uU(8,"add"),i.qZA(),i._uU(9),i.ALo(10,"translate"),i.qZA()(),i.YNc(11,nP,2,0,"div",2),i.YNc(12,iP,1,1,"users-grid",3)),2&e&&(i.xp6(3),i.hij(" ",i.lcZ(4,4,"app.users.title")," "),i.xp6(6),i.hij(" ",i.lcZ(10,6,"shared.buttons.add")," "),i.xp6(2),i.Q6J("ngIf",r.loading),i.xp6(1),i.Q6J("ngIf",!r.loading))},dependencies:[Hn.O5,Ui.lW,Dt.Hw,ca.Ye,Tl.Ou,tP.Y,Ot.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center}#loading-spinner[_ngcontent-%COMP%]{margin:auto}#detail-container[_ngcontent-%COMP%]{padding:30px} snack-bar-container.error-snackbar{background-color:red;color:#fff} .mat-mdc-snack-bar-action{color:#fff}"]}),t})();var aP=y(1942);function oP(t,n){1&t&&(i.TgZ(0,"div",5),i._UZ(1,"mat-spinner",6),i.qZA())}function sP(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",17),i.NdJ("click",function(){i.CHM(e);const a=i.oxw(2);return i.KtG(a.user.username="")}),i.TgZ(1,"mat-icon"),i._uU(2,"close"),i.qZA()()}}function lP(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",17),i.NdJ("click",function(){i.CHM(e);const a=i.oxw(2);return i.KtG(a.user.email="")}),i.TgZ(1,"mat-icon"),i._uU(2,"close"),i.qZA()()}}function cP(t,n){if(1&t&&(i.TgZ(0,"div",18)(1,"span"),i._uU(2),i.qZA()()),2&t){const e=i.oxw(2);i.xp6(2),i.Oqu(e.isPasswordValid())}}function dP(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",17),i.NdJ("click",function(){i.CHM(e);const a=i.oxw(3);return i.KtG(a.user.password="")}),i.TgZ(1,"mat-icon"),i._uU(2,"close"),i.qZA()()}}function uP(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"mat-form-field",8)(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"input",19),i.NdJ("ngModelChange",function(a){i.CHM(e);const o=i.oxw(2);return i.KtG(o.user.password=a)}),i.qZA(),i.YNc(5,dP,3,0,"button",10),i.qZA()}if(2&t){const e=i.oxw(2);i.xp6(2),i.Oqu(i.lcZ(3,3,"app.users.password")),i.xp6(2),i.Q6J("ngModel",e.user.password),i.xp6(1),i.Q6J("ngIf",e.user.password)}}function hP(t,n){if(1&t&&(i.TgZ(0,"mat-option",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t){const e=n.$implicit;i.Q6J("value",e.value),i.xp6(1),i.Oqu(i.lcZ(2,2,"app.users."+e.key.toLowerCase()))}}function fP(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"div")(1,"mat-checkbox",23),i.NdJ("change",function(a){const l=i.CHM(e).$implicit,u=i.oxw().$implicit,m=i.oxw(2);return i.KtG(m.featureActiveChanged(a,u,l))}),i._uU(2),i.qZA()()}if(2&t){const e=n.$implicit,r=i.oxw().$implicit,a=i.oxw(2);i.xp6(1),i.Q6J("disabled",a.isModuleDisabled(r))("checked",a.isFeatureActive(r,e)),i.xp6(1),i.hij(" ",e.name," ")}}function mP(t,n){if(1&t&&(i.TgZ(0,"div",21)(1,"h3"),i._uU(2),i.qZA(),i.YNc(3,fP,3,3,"div",22),i.qZA()),2&t){const e=n.$implicit;i.xp6(2),i.Oqu(e.name),i.xp6(1),i.Q6J("ngForOf",e.moduleAccessibleFeatures)}}function pP(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"div",7)(1,"mat-form-field",8)(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9),i.NdJ("ngModelChange",function(a){i.CHM(e);const o=i.oxw();return i.KtG(o.user.username=a)}),i.qZA(),i.YNc(6,sP,3,0,"button",10),i.qZA(),i.TgZ(7,"mat-form-field",8)(8,"mat-label"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"input",11),i.NdJ("ngModelChange",function(a){i.CHM(e);const o=i.oxw();return i.KtG(o.user.email=a)}),i.qZA(),i.YNc(12,lP,3,0,"button",10),i.qZA(),i.YNc(13,cP,3,1,"div",12),i.YNc(14,uP,6,5,"mat-form-field",13),i.TgZ(15,"mat-form-field",8)(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i.TgZ(19,"mat-select",14),i.NdJ("valueChange",function(a){i.CHM(e);const o=i.oxw();return i.KtG(o.user.userType=a)}),i.YNc(20,hP,3,4,"mat-option",15),i.qZA()(),i.TgZ(21,"h2"),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.YNc(24,mP,4,2,"div",16),i.qZA()}if(2&t){const e=i.oxw();i.xp6(3),i.Oqu(i.lcZ(4,13,"app.users.username")),i.xp6(2),i.Q6J("ngModel",e.user.username),i.xp6(1),i.Q6J("ngIf",e.user.username),i.xp6(3),i.Oqu(i.lcZ(10,15,"app.users.email")),i.xp6(2),i.Q6J("ngModel",e.user.email),i.xp6(1),i.Q6J("ngIf",e.user.email),i.xp6(1),i.Q6J("ngIf",null!==e.isPasswordValid()&&e.isNewUser),i.xp6(1),i.Q6J("ngIf",e.isNewUser),i.xp6(3),i.Oqu(i.lcZ(18,17,"app.users.userType")),i.xp6(2),i.Q6J("value",e.user.userType),i.xp6(1),i.Q6J("ngForOf",e.userTypes),i.xp6(2),i.Oqu(i.lcZ(23,19,"app.admin.users.features")),i.xp6(2),i.Q6J("ngForOf",e.modules)}}let zA=(()=>{class t extends ln.Mf{constructor(e,r,a,o,l,u,m,_,w,M){super(e),this.keyValuePipe=r,this.indacoModuleService=a,this.partnerService=o,this.route=l,this.router=u,this.snackBar=m,this.translateService=_,this.userService=w,this.translate=M,this.loading=!1,this.modules=[]}get user(){return this._user??{}}get isNewUser(){return!this._user?._id}get userTypes(){return this.keyValuePipe.transform(Uc.E).filter(e=>e.value!==Uc.E.Admin)}ngOnInit(){var e=this;return(0,wi.Z)(function*(){e.partner=yield e.partnerService.getPartner(e.authData?.partnerId),e.fetchAllModules().add(()=>e.initUser())})()}isPasswordValid(){return this.user.password&&""!==this.user.password?-1!==this.user.password.search(/[^a-zA-Z0-9\ \!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~]/)?this.translate.instant("app.users.passwordInvalidCharacter"):0===this.user.password.length?this.translate.instant("app.users.passwordRequired"):this.user.password.length<12?this.translate.instant("app.users.passwordMinLength"):this.user.password.length>50?this.translate.instant("app.users.passwordMaxLength"):-1===this.user.password.search(/\d/)?this.translate.instant("app.users.passwordNumber"):-1===this.user.password.search(/[a-z]/)?this.translate.instant("app.users.passwordLowercase"):-1===this.user.password.search(/[A-Z]/)?this.translate.instant("app.users.passwordUppercase"):-1===this.user.password.search(/[\ \!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~]/)?this.translate.instant("app.users.passwordSpecialCharacter"):null:this.translate.instant("app.users.passwordRequired")}refresh(){this.initUser()}back(){this.router.navigate(["users"])}save(){if(!this.validateInput())return;const e={_id:this.user._id,username:this.user.username,email:this.user.email,userType:this.user.userType,partner:{_id:this.partner?._id??"",companyName:"",subscriptionPlan:this.partner?.subscriptionPlan??{}},userModuleAccessibleFeatures:this.user.userModuleAccessibleFeatures};this.loading=!0,this.userService.saveUser(e,this.partner?._id??"",this.isNewUser?this.user.password:null).subscribe(r=>{this.snackBar.open(this.translateService.instant("app.admin.shared.dataSuccessfullySaved"),void 0,{duration:3e3}),this.fetchUser(r)},r=>{this.snackBar.open(r.message,"OK",{panelClass:["error-snackbar"]})}).add(()=>this.loading=!1)}isFeatureActive(e,r){return!!this.user.userModuleAccessibleFeatures?.find(a=>a[0]==e.code&&a[1]==r.code)}featureActiveChanged(e,r,a){e.checked?this.user.userModuleAccessibleFeatures.push([r.code,a.code]):this.user.userModuleAccessibleFeatures=this.user.userModuleAccessibleFeatures?.filter(o=>o[0]!=r.code||o[1]!=a.code)}isModuleDisabled(e){return!this.partner?.subscriptionPlan?.indacoModules?.find(r=>r._id==e._id)}initUser(){const e=this.route.snapshot.paramMap.get("id");return e?this.fetchUser(e):this.emtpyUser()}emtpyUser(){this._user={},this._user.userModuleAccessibleFeatures=[],this._user.userType=Uc.E.Standard}fetchUser(e){this.userService.getUser(e).subscribe(r=>{const a=JSON.parse(JSON.stringify(r));this._user={_id:a._id,username:a.username,email:a.email,userType:a.userType,password:"",userModuleAccessibleFeatures:a.userModuleAccessibleFeatures}})}fetchAllModules(){return this.indacoModuleService.getAllModules().subscribe(e=>this.modules=e.filter(r=>r.moduleAccessibleFeatures.length>0))}validateInput(){return""!==this.user.username&&""!==this.user.email&&/\S+@\S+\.\S+/.test(this.user.email)&&(""!==this.user.password||!this.isNewUser)&&""!==this.user.userType}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(Hn.Nd),i.Y36(aP.M),i.Y36(Ys.b),i.Y36(Ft.gz),i.Y36(Ft.F0),i.Y36(Wa.ux),i.Y36(Ot.sK),i.Y36(Wp.f),i.Y36(Ot.sK))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-user-detail"]],features:[i.qOj],decls:22,vars:14,consts:[[1,"fill-space"],["mat-raised-button","",1,"detail-button",3,"click"],["mat-raised-button","","color","primary",1,"detail-button",3,"click"],["id","loading-container",4,"ngIf"],["id","detail-container",4,"ngIf"],["id","loading-container"],["id","loading-spinner"],["id","detail-container"],["appearance","fill",1,"full-width"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["matInput","","required","","type","email","email","",3,"ngModel","ngModelChange"],["style","color: red",4,"ngIf"],["class","full-width","appearance","fill",4,"ngIf"],["required","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["class","service-feature-container",4,"ngFor","ngForOf"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[2,"color","red"],["matInput","","required","","required","","type","password",3,"ngModel","ngModelChange"],[3,"value"],[1,"service-feature-container"],[4,"ngFor","ngForOf"],[3,"disabled","checked","change"]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"span"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"span",0),i.TgZ(5,"button",1),i.NdJ("click",function(){return r.refresh()}),i.TgZ(6,"mat-icon"),i._uU(7,"refresh"),i.qZA(),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",2),i.NdJ("click",function(){return r.back()}),i.TgZ(11,"mat-icon"),i._uU(12,"cancel"),i.qZA(),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"button",2),i.NdJ("click",function(){return r.save()}),i.TgZ(16,"mat-icon"),i._uU(17,"save"),i.qZA(),i._uU(18),i.ALo(19,"translate"),i.qZA()(),i.YNc(20,oP,2,0,"div",3),i.YNc(21,pP,25,21,"div",4)),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,6,"app.users.user")),i.xp6(6),i.hij(" ",i.lcZ(9,8,"shared.buttons.reset")," "),i.xp6(5),i.hij(" ",i.lcZ(14,10,"shared.buttons.close")," "),i.xp6(5),i.hij(" ",i.lcZ(19,12,"shared.buttons.save")," "),i.xp6(2),i.Q6J("ngIf",r.loading),i.xp6(1),i.Q6J("ngIf",!r.loading))},dependencies:[Hn.sg,Hn.O5,A.Fj,A.JJ,A.Q7,A.on,A.On,Ui.lW,Ui.RK,I.oG,Xe.KE,Xe.hX,Xe.R9,Dt.Hw,_n.Nt,Rr.gD,Pr.ey,ca.Ye,Tl.Ou,Ot.X$],styles:[".full-width[_ngcontent-%COMP%], #loading-container[_ngcontent-%COMP%]{width:100%}#loading-container[_ngcontent-%COMP%]{padding:30px;margin:auto}#loading-spinner[_ngcontent-%COMP%]{margin:auto}.service-feature-container[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:0}#detail-container[_ngcontent-%COMP%]{padding:30px}.detail-button[_ngcontent-%COMP%]{margin-left:5px} snack-bar-container.error-snackbar{background-color:red;color:#fff} .mat-mdc-snack-bar-action{color:#fff}"]}),t})();var gP=y(3267),_P=y(9468),iM=y(4850);let rM=(()=>{class t{constructor(e,r,a){this.authService=e,this.snackBar=r,this.translateService=a}canActivate(){return this.authService.getUserType().pipe((0,iM.U)(e=>{const r=e==Uc.E.PartnerAdmin;return r||this.snackBar.open(this.translateService.instant("shared.userUnauthorized"),void 0,{duration:3e3}),r}))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(ln.e8),i.LFG(Wa.ux),i.LFG(Ot.sK))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vP=(()=>{class t{constructor(e,r,a){this.authService=e,this.snackBar=r,this.translateService=a}canActivate(){return this.authService.getUserType().pipe((0,iM.U)(e=>{const r=e==Uc.E.Admin;return r||this.snackBar.open(this.translateService.instant("shared.userUnauthorized"),void 0,{duration:3e3}),r}))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(ln.e8),i.LFG(Wa.ux),i.LFG(Ot.sK))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ur=(()=>{class t{constructor(e,r){this.authService=e,this.router=r}canActivate(){return this.authService.getUserType().pipe((0,iM.U)(e=>{const r=e!==Uc.E.Admin;return r||this.router.navigate(["admin"]),r}))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(ln.e8),i.LFG(Ft.F0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bP=(()=>{class t extends ln.Mf{constructor(e,r){super(e),this.nonSuperAdminAuthGuardService=r}canActivate(){return""===this.authData?.token||!this.authData?.token||this.nonSuperAdminAuthGuardService.canActivate()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(ln.e8),i.LFG(Ur))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Zr=(()=>{class t extends ln.Mf{constructor(e,r){super(e),this.router=r}canActivate(){const e=""!==this.authData?.token&&!!this.authData?.token;return e||this.router.navigate(["login"]),e}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(ln.e8),i.LFG(Ft.F0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),WA=(()=>{class t extends ln.Mf{constructor(e,r){super(e),this.partnerService=r}canActivate(e,r){var a=this;return(0,wi.Z)(function*(){return!(""===a.authData?.token||!a.authData?.token||""===a.authData.partnerId||!a.authData.partnerId||!(yield a.partnerService.getPartner(a.authData.partnerId)).subscriptionPlan?.indacoModules.find(u=>u.code==e.data.moduleCode))})()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(ln.e8),i.LFG(Ys.b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const yP=["warehouseJournalPaginator"],xP=["warehouseJournalSort"];function wP(t,n){1&t&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.warehouse-journal.date")," "))}function CP(t,n){if(1&t&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.date," ")}}function DP(t,n){1&t&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.warehouse-journal.product")," "))}function TP(t,n){if(1&t&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.product.title," ")}}function EP(t,n){1&t&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.warehouse-journal.warehouse")," "))}function MP(t,n){if(1&t&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw();i.xp6(1),i.hij(" ",r.getWarehouseOrigin(e.warehouseOrigin)," ")}}function AP(t,n){1&t&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.warehouse-journal.warehouse")," "))}function SP(t,n){if(1&t&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.warehouse.name," ")}}function kP(t,n){1&t&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.warehouse-journal.partner")," "))}function IP(t,n){if(1&t&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.partner.companyName," ")}}function OP(t,n){1&t&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.warehouse-journal.reason")," "))}function PP(t,n){if(1&t&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw();i.xp6(1),i.hij(" ",r.getReason(e.reason)," ")}}function RP(t,n){1&t&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.warehouse-journal.refrigerated")," "))}function FP(t,n){1&t&&(i.TgZ(0,"span",26),i._uU(1," ac_unit "),i.qZA())}function LP(t,n){if(1&t&&(i.TgZ(0,"td",24),i.YNc(1,FP,2,0,"span",25),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.Q6J("ngIf",e.refrigerated)}}function NP(t,n){1&t&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.warehouse-journal.variation")," "))}function BP(t,n){if(1&t&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.variation," ")}}function UP(t,n){1&t&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.warehouse-journal.total-quantity")," "))}function ZP(t,n){if(1&t&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.totalQuantity," ")}}function VP(t,n){1&t&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.warehouse-journal.total-quantity")," "))}function HP(t,n){1&t&&(i.TgZ(0,"mat-icon"),i._uU(1,"done"),i.qZA())}function jP(t,n){1&t&&(i.TgZ(0,"mat-icon"),i._uU(1,"close"),i.qZA())}function YP(t,n){if(1&t&&(i.TgZ(0,"td",24),i.YNc(1,HP,2,0,"mat-icon",27),i.YNc(2,jP,2,0,"mat-icon",27),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.Q6J("ngIf",e.confirmed),i.xp6(1),i.Q6J("ngIf",!e.confirmed)}}function zP(t,n){1&t&&i._UZ(0,"tr",28)}function WP(t,n){1&t&&i._UZ(0,"tr",29)}const GP=function(){return[10,20,30]};let $P=(()=>{class t{constructor(e,r,a,o,l,u){this.router=e,this.warehouseService=r,this.catService=a,this.auth=o,this.translate=l,this.snackbar=u,this.warehouseJournal=[],this.warehouseJournalDataSource=new fi.by(this.warehouseJournal),this.warehouseJournalDisplayedColumns=["date","warehouseOrigin","warehouse","product","partner","reason","refrigerated","variation","totalQuantity","confirmed"],this.authData=o.currentAuthData,o.currentAuth.subscribe(m=>{m&&(this.authData=m)})}ngOnInit(){var e=this;return(0,wi.Z)(function*(){e.warehouseService.getAllWarehouseJournal().subscribe(r=>{e.warehouseJournal=r.data;const a=e.warehouseJournal.filter(o=>null!==o.product&&null!==o.warehouse&&null!==o.partner);e.warehouseJournalDataSource.data=a,e.warehouseJournalDataSource.paginator=e.warehouseJournalPaginator,e.warehouseJournalDataSource.sort=e.warehouseJournalSort,e.warehouseJournalSort.direction="desc",e.warehouseJournalSort.active="title"})})()}back(){this.router.navigate(["/home"])}applyFilter(e){e.value&&(this.warehouseJournalDataSource.filter=e.value.trim().toLowerCase())}getReason(e){switch(e){case"INITIAL":return this.translate.instant("app.warehouse-journal.reasons.initial");case"INCREASE":return this.translate.instant("app.warehouse-journal.reasons.increase");case"DECREASE":return this.translate.instant("app.warehouse-journal.reasons.decrease");case"ORDER":return this.translate.instant("app.warehouse-journal.reasons.order");case"RETURN":return this.translate.instant("app.warehouse-journal.reasons.return");default:return e}}getWarehouseOrigin(e){return e?e.name:"-"}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Ft.F0),i.Y36(Tf.c),i.Y36(dd.av),i.Y36(ln.e8),i.Y36(Ot.sK),i.Y36(Wa.ux))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-warehouse-journal"]],viewQuery:function(e,r){if(1&e&&(i.Gf(yP,5),i.Gf(xP,5)),2&e){let a;i.iGM(a=i.CRH())&&(r.warehouseJournalPaginator=a.first),i.iGM(a=i.CRH())&&(r.warehouseJournalSort=a.first)}},decls:49,vars:11,consts:[["mat-button","","color","primary",3,"click"],[1,"mat-18"],[1,"fill-space"],["id","search","matInput","",3,"placeholder","keyup"],[1,"container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["warehouseJournalSort","matSort"],["matColumnDef","date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","product"],["matColumnDef","warehouseOrigin"],["matColumnDef","warehouse"],["matColumnDef","partner"],["matColumnDef","reason"],["matColumnDef","refrigerated"],["matColumnDef","variation"],["matColumnDef","totalQuantity"],["matColumnDef","confirmed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page of listing products",3,"pageSizeOptions"],["warehouseJournalPaginator",""],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","material-icons",4,"ngIf"],[1,"material-icons"],[4,"ngIf"],["mat-header-row",""],["mat-row",""]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"button",0),i.NdJ("click",function(){return r.back()}),i.TgZ(2,"mat-icon"),i._uU(3,"arrow_back"),i.qZA()(),i.TgZ(4,"mat-icon",1),i._uU(5,"format_list_bulleted"),i.qZA(),i._uU(6),i.ALo(7,"translate"),i._UZ(8,"span",2),i.TgZ(9,"mat-form-field")(10,"input",3),i.NdJ("keyup",function(o){return r.applyFilter(o.target)}),i.ALo(11,"translate"),i.qZA()()(),i.TgZ(12,"div",4)(13,"table",5,6),i.ynx(15,7),i.YNc(16,wP,3,3,"th",8),i.YNc(17,CP,2,1,"td",9),i.BQk(),i.ynx(18,10),i.YNc(19,DP,3,3,"th",8),i.YNc(20,TP,2,1,"td",9),i.BQk(),i.ynx(21,11),i.YNc(22,EP,3,3,"th",8),i.YNc(23,MP,2,1,"td",9),i.BQk(),i.ynx(24,12),i.YNc(25,AP,3,3,"th",8),i.YNc(26,SP,2,1,"td",9),i.BQk(),i.ynx(27,13),i.YNc(28,kP,3,3,"th",8),i.YNc(29,IP,2,1,"td",9),i.BQk(),i.ynx(30,14),i.YNc(31,OP,3,3,"th",8),i.YNc(32,PP,2,1,"td",9),i.BQk(),i.ynx(33,15),i.YNc(34,RP,3,3,"th",8),i.YNc(35,LP,2,1,"td",9),i.BQk(),i.ynx(36,16),i.YNc(37,NP,3,3,"th",8),i.YNc(38,BP,2,1,"td",9),i.BQk(),i.ynx(39,17),i.YNc(40,UP,3,3,"th",8),i.YNc(41,ZP,2,1,"td",9),i.BQk(),i.ynx(42,18),i.YNc(43,VP,3,3,"th",8),i.YNc(44,YP,3,2,"td",9),i.BQk(),i.YNc(45,zP,1,0,"tr",19),i.YNc(46,WP,1,0,"tr",20),i.qZA(),i._UZ(47,"mat-paginator",21,22),i.qZA()),2&e&&(i.xp6(6),i.hij(" ",i.lcZ(7,6,"app.warehouse-journal.title")," "),i.xp6(4),i.s9C("placeholder",i.lcZ(11,8,"shared.search.title")),i.xp6(3),i.Q6J("dataSource",r.warehouseJournalDataSource),i.xp6(32),i.Q6J("matHeaderRowDef",r.warehouseJournalDisplayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",r.warehouseJournalDisplayedColumns),i.xp6(1),i.Q6J("pageSizeOptions",i.DdM(10,GP)))},dependencies:[Hn.O5,Ui.lW,Xe.KE,Dt.Hw,_n.Nt,xi.NW,Ma.YE,Ma.nU,fi.BZ,fi.fO,fi.as,fi.w1,fi.Dz,fi.nj,fi.ge,fi.ev,fi.XQ,fi.Gk,ca.Ye,Ot.X$],styles:["table[_ngcontent-%COMP%]{width:100%}"]}),t})();var qP=y(8929);let QP=(()=>{class t{constructor(e){this.http=e,this.serverApi=We.N.restUrl}importProductsFromCSV(e){return this.http.post(`${this.serverApi}/partners/${e.partnerId}/products/import`,e)}uploadProductsZipFile(e,r,a,o,l){console.log("entro in import");const u=new FormData;return new p.WM({enctype:"multipart/form-data"}),u.append("zip",e),u.append("partnerId",r),u.append("channelId",a),u.append("warehouseId",o),u.append("categoryId",l),this.http.post(`${this.serverApi}/partners/${r}/products/import`,u)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(p.eN))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var KP=y(4655);const JP=["fileInput"];function XP(t,n){if(1&t&&(i.TgZ(0,"mat-option",18),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.s9C("value",e._id),i.xp6(1),i.Oqu(e.name)}}function eR(t,n){if(1&t&&(i.TgZ(0,"mat-option",18),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.s9C("value",e._id),i.xp6(1),i.Oqu(e.name)}}function tR(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"mat-option",19),i.NdJ("click",function(){i.CHM(e);const a=i.oxw(),o=i.MAs(31);return a.goBackToParentCategory(),i.KtG(o.open())}),i.TgZ(1,"mat-icon"),i._uU(2,"arrow_back"),i.qZA(),i.TgZ(3,"span",20),i._uU(4),i.qZA()()}if(2&t){const e=i.oxw();i.xp6(4),i.hij(" ",e.getParentName()," ")}}function nR(t,n){1&t&&(i.TgZ(0,"mat-icon",23),i._uU(1,"navigate_next"),i.qZA())}function iR(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"mat-option",21),i.NdJ("click",function(){const o=i.CHM(e).$implicit;i.oxw();const l=i.MAs(31);return i.KtG(!o.isLeaf&&l.open())}),i.TgZ(1,"span",20),i._uU(2),i.qZA(),i.YNc(3,nR,2,0,"mat-icon",22),i.qZA()}if(2&t){const e=n.$implicit,r=i.oxw();i.Q6J("value",e._id),i.xp6(2),i.hij(" ",r.categoryService.getCategoryName(e)," "),i.xp6(1),i.Q6J("ngIf",!e.isLeaf)}}function rR(t,n){1&t&&i._UZ(0,"mat-spinner",24)}let aR=(()=>{class t{constructor(e,r,a,o,l,u,m,_,w,M){this.authService=e,this.catalogService=r,this.importService=a,this.route=o,this.router=l,this.snackbar=u,this.translate=m,this.warehouseService=_,this.chanService=w,this.categoryService=M,this.title="Angular7-readCSV",this.warehouses=new Array,this.userChannels=new Array,this.channelId="",this.warehouseId="",this.categoryChildren=[],this.selectedCategory={},this.categoryAttributes=[],this.keyUpFilter=new qP.xQ,this.attributeSetId="",this.categoryId="",this.file=null,this.loading=!1,this.records=[],this.authData=e.currentAuthData,e.currentAuth.subscribe(O=>{O&&(this.authData=O)})}ngOnInit(){var e=this;this.categoryService.getCategoryRoots().subscribe(r=>{this.categoryChildren=r.data.categoryRoots}),this.route.paramMap.subscribe(function(){var r=(0,wi.Z)(function*(a){const o=a.get("partnerId");o&&(e.partnerId=o)});return function(a){return r.apply(this,arguments)}}()),this.chanService.getUserChannels(this.partnerId?this.partnerId:this.authData.partnerId).subscribe({next:r=>{this.userChannels=r.data}})}onChannelChange(){this.warehouseService.getPartnerWarehousesByChannelRest(this.channelId,this.partnerId?this.partnerId:this.authData.partnerId,!0).subscribe({next:e=>{this.warehouses.push(...e.data)}}),this.warehouseService.getPartnerWarehousesByChannelRest(this.channelId,this.partnerId?this.partnerId:this.authData.partnerId,!1).subscribe({next:e=>{this.warehouses.push(...e.data)}})}onFileInput(e){e&&(this.file=e[0])}fileReset(){this.fileInput.nativeElement.value="",this.records=[]}onSubmit(){this.file&&(this.loading=!0,this.subscription=this.importService.uploadProductsZipFile(this.file,this.partnerId?this.partnerId:this.authData.partnerId,this.channelId,this.warehouseId,this.categoryId).subscribe(e=>{this.loading=!1,this.snackbar.open(`Caricamento completato. Sono stati aggiunti ${e.data} prodotti`,void 0,{duration:3e3})}))}ngOnDestroy(){this.subscription?.unsubscribe()}selectCategory(e){for(let r=0;r<this.categoryChildren.length;r++)this.categoryChildren[r]._id===e.value&&(this.selectedCategory=this.categoryChildren[r]);if(this.selectedCategory.isLeaf&&this.selectedCategory._id){const r=this.userChannels.find(o=>o._id===this.channelId);let a;this.selectedCategory&&this.selectedCategory.name&&(a=this.selectedCategory.name.find(o=>"it-IT"===o.code)),this.chanService.getAttributeSetByName(r.storeName,a.label,r._id).subscribe(o=>{this.categoryAttributes=o.data.attributes,this.attributeSetId=o.data.id})}this.selectedCategory&&this.selectedCategory._id&&!this.selectedCategory.isLeaf&&this.categoryService.getChildren(this.selectedCategory._id).subscribe(r=>{this.categoryChildren=r.data.categoryMany})}getParentName(){let e="";return this.selectedCategory&&!this.selectedCategory.isLeaf?(e=this.categoryService.getCategoryName(this.selectedCategory),e):(this.selectedCategory&&this.selectedCategory.parent&&this.selectedCategory.isLeaf&&(e=this.categoryService.getCategoryName(this.selectedCategory.parent)),e)}goBackToParentCategory(){this.selectedCategory&&this.selectedCategory.parentId&&!this.selectedCategory.isRoot&&!this.selectedCategory.isLeaf?this.categoryService.getCategoryOneById(this.selectedCategory.parentId).subscribe(e=>{this.selectedCategory=e.data.categoryOne,this.selectedCategory&&this.selectedCategory._id&&this.categoryService.getChildren(this.selectedCategory._id).subscribe(r=>{this.categoryChildren=r.data.categoryMany})}):this.selectedCategory&&this.selectedCategory.parent&&this.selectedCategory.parent.parentId&&!this.selectedCategory.isRoot&&this.selectedCategory.isLeaf?this.categoryService.getCategoryOneById(this.selectedCategory.parent.parentId).subscribe(e=>{this.selectedCategory=e.data.categoryOne,this.selectedCategory&&this.selectedCategory._id&&this.categoryService.getChildren(this.selectedCategory._id).subscribe(r=>{this.categoryChildren=r.data.categoryMany})}):this.selectedCategory.isRoot?this.categoryService.getCategoryRoots().subscribe(e=>{setTimeout(()=>{this.categoryChildren=e.data.categoryRoots,this.selectedCategory={}},0)}):this.selectedCategory.parentId&&this.categoryService.getCategoryOneById(this.selectedCategory.parentId).subscribe(e=>{this.selectedCategory=e.data.categoryOne,this.categoryService.getCategoryRoots().subscribe(r=>{setTimeout(()=>{this.categoryChildren=r.data.categoryRoots,this.selectedCategory={}},0)})})}checkCategoryLeaf(e){if(e===this.selectedCategory._id&&this.selectedCategory.isLeaf)return e}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(dd.av),i.Y36(QP),i.Y36(Ft.gz),i.Y36(Ft.F0),i.Y36(Wa.ux),i.Y36(Ot.sK),i.Y36(Tf.c),i.Y36(ld.T),i.Y36(KP.H))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-csv-import"]],viewQuery:function(e,r){if(1&e&&i.Gf(JP,5),2&e){let a;i.iGM(a=i.CRH())&&(r.fileInput=a.first)}},decls:41,vars:26,consts:[[3,"ngSubmit"],["prodForm","ngForm"],[1,"mat-18"],[1,"fill-space"],["mat-raised-button","",3,"click"],["hidden","","type","file","name","Upload CSV","id","txtFileUpload","accept",".zip",3,"change"],["fileInput",""],[1,"full-width","mt-3"],["required","",3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["required","",3,"value","valueChange"],[1,"full-width"],["panelClass","matRole","name","categoryId",1,"full-width",3,"ngModel","disableOptionCentering","ngModelChange","selectionChange"],["selector",""],[3,"click",4,"ngIf"],[3,"value","click",4,"ngFor","ngForOf"],["mat-raised-button","","color","primary","type","submit",1,"full-width","mt-3",2,"float","right",3,"disabled"],["matSuffix","","diameter","16","style","display: inline-flex",4,"ngIf"],[3,"value"],[3,"click"],[1,"category-text","fill-space"],[3,"value","click"],["style","margin-right: 0px;",4,"ngIf"],[2,"margin-right","0px"],["matSuffix","","diameter","16",2,"display","inline-flex"]],template:function(e,r){if(1&e){const a=i.EpF();i.TgZ(0,"form",0,1),i.NdJ("ngSubmit",function(){return r.onSubmit()}),i.TgZ(2,"mat-toolbar")(3,"mat-icon",2),i._uU(4,"signpost"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i._UZ(7,"span",3),i.qZA(),i.TgZ(8,"mat-label"),i._uU(9,"File"),i.qZA(),i.TgZ(10,"button",4),i.NdJ("click",function(){i.CHM(a);const l=i.MAs(13);return i.KtG(l.click())}),i._uU(11),i.qZA(),i.TgZ(12,"input",5,6),i.NdJ("change",function(){i.CHM(a);const l=i.MAs(13);return i.KtG(r.onFileInput(l.files))}),i.qZA(),i.TgZ(14,"mat-form-field",7)(15,"mat-label"),i._uU(16),i.ALo(17,"translate"),i.qZA(),i.TgZ(18,"mat-select",8),i.NdJ("valueChange",function(l){return r.channelId=l})("selectionChange",function(){return r.onChannelChange()}),i.YNc(19,XP,2,2,"mat-option",9),i.qZA()(),i.TgZ(20,"mat-form-field",7)(21,"mat-label"),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.TgZ(24,"mat-select",10),i.NdJ("valueChange",function(l){return r.warehouseId=l}),i.YNc(25,eR,2,2,"mat-option",9),i.qZA()(),i.TgZ(26,"mat-form-field",11)(27,"mat-label"),i._uU(28),i.ALo(29,"translate"),i.qZA(),i.TgZ(30,"mat-select",12,13),i.NdJ("ngModelChange",function(l){return r.categoryId=l})("selectionChange",function(l){return r.selectCategory(l)}),i.YNc(32,tR,5,1,"mat-option",14),i._UZ(33,"mat-divider"),i.YNc(34,iR,4,3,"mat-option",15),i.qZA()(),i.TgZ(35,"button",16)(36,"mat-icon"),i._uU(37,"file_upload"),i.qZA(),i._uU(38),i.ALo(39,"translate"),i.qZA(),i.YNc(40,rR,1,0,"mat-spinner",17),i.qZA()}if(2&e){const a=i.MAs(1);i.xp6(5),i.hij(" ",i.lcZ(6,16,"app.csv-import.title")," "),i.xp6(6),i.hij(" ",r.file?r.file.name:"Select"," "),i.xp6(5),i.Oqu(i.lcZ(17,18,"app.channels.fields.selectChannel")),i.xp6(2),i.Q6J("value",r.channelId),i.xp6(1),i.Q6J("ngForOf",r.userChannels),i.xp6(3),i.Oqu(i.lcZ(23,20,"app.warehouses.select-warehouse")),i.xp6(2),i.Q6J("value",r.warehouseId),i.xp6(1),i.Q6J("ngForOf",r.warehouses),i.xp6(3),i.Oqu(i.lcZ(29,22,"app.products.product.category")),i.xp6(2),i.Q6J("ngModel",r.categoryId)("disableOptionCentering",!0),i.xp6(2),i.Q6J("ngIf",r.selectedCategory._id),i.xp6(2),i.Q6J("ngForOf",r.categoryChildren),i.xp6(1),i.Q6J("disabled",!a.form.valid||r.loading),i.xp6(3),i.hij(" ",i.lcZ(39,24,"shared.buttons.load")," "),i.xp6(2),i.Q6J("ngIf",r.loading)}},dependencies:[Hn.sg,Hn.O5,A._Y,A.JJ,A.JL,A.On,A.F,Ui.lW,Xe.KE,Xe.hX,Xe.R9,Dt.Hw,cd.d,Rr.gD,Pr.ey,ca.Ye,Tl.Ou,Ot.X$],styles:["[_nghost-%COMP%]{display:block;justify-content:center;width:50%;margin:20px auto auto}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%;min-width:300px;margin:5px}.error[_ngcontent-%COMP%]{padding:16px;color:#fff;background-color:#a94442;border-radius:10px}.message[_ngcontent-%COMP%]{padding:16px;color:#000;background-color:#93f3ff;border-radius:10px}.button[_ngcontent-%COMP%]{margin:20px} .mat-mdc-form-field .mat-mdc-input-element{color:#708090} .mat-mdc-form-field .mat-form-field-label{color:#708090} .mat-mdc-form-field .mat-form-field-underline{background-color:#708090} .mat-mdc-form-field .mat-form-field-ripple{background-color:#708090} .mat-mdc-form-field .mat-form-field-required-marker{color:#708090} .mat-mdc-form-field.mat-focused .mat-form-field-label{color:#000} .mat-mdc-form-field.mat-focused .mat-form-field-ripple{background-color:#000} .mat-mdc-form-field.mat-focused .mat-form-field-required-marker{color:#000} .mat-mdc-form-field.mat-focused .mat-mdc-input-element{color:#000} .mat-mdc-form-field.mat-form-field-invalid .mat-mdc-input-element{color:#a94442} .mat-mdc-form-field.mat-form-field-invalid .mat-form-field-label{color:#a94442} .mat-mdc-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#a94442} .mat-mdc-form-field.mat-form-field-invalid .mat-form-field-ripple{background-color:#a94442}#loading-container[_ngcontent-%COMP%]{width:100%;padding:30px;margin:auto}#loading-spinner[_ngcontent-%COMP%]{margin:auto;position:absolute;top:50%;left:50%}.spinner_overlay[_ngcontent-%COMP%]{position:fixed;left:0;top:0;width:100%;height:100%;background-color:#fff;opacity:.2;z-index:1000}.category-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}"]}),t})(),oR=(()=>{class t{constructor(e,r){this.apolloClient=e,this.http=r,this.buybuttonTemplate="",this.serverApi=We.N.restUrl}getBuyButton(e,r){return console.log("invio"),this.http.post(`${this.serverApi}/buybutton/`,{productSKUs:e,channelId:r})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Rt._M),i.LFG(p.eN))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function sR(t,n){if(1&t&&(i.TgZ(0,"mat-option",12),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.s9C("value",e._id),i.xp6(1),i.Oqu(e.name)}}function lR(t,n){1&t&&i._UZ(0,"mat-spinner",13)}function cR(t,n){if(1&t&&(i.TgZ(0,"mat-option",12),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.s9C("value",e.sku),i.xp6(1),i.Oqu(e.title)}}function dR(t,n){if(1&t&&(i.TgZ(0,"textarea",14),i._uU(1),i.qZA()),2&t){const e=i.oxw();i.xp6(1),i.hij(" ",e.buybutton," ")}}let uR=(()=>{class t{constructor(e,r,a,o,l,u){this.catService=e,this.authService=r,this.chanService=a,this.buyButtonService=o,this.router=l,this.route=u,this.channelId="",this.productSkus=[],this.buybutton=null,this.loadProducts=!1,this.userChannels=[],this.userCatalog=[],this.editableUserCatalog=[],this.authData=r.currentAuthData,r.currentAuth.subscribe(m=>{m&&(this.authData=m)})}ngOnInit(){this.chanService.getUserChannels(this.partnerId?this.partnerId:this.authData.partnerId).subscribe({next:e=>{this.userChannels=e.data,this.userChannels.length>0&&(this.channelId=e.data[0]._id,this.catService.getUserReferencesByChannel(this.partnerId?this.partnerId:this.authData.partnerId,e.data[0]._id).subscribe({next:r=>{this.userCatalog=r.data,this.editableUserCatalog=(0,Zt.X)(this.userCatalog)},error:r=>{console.error(r)}}),this.route.paramMap.subscribe(r=>{const a=r.get("sku"),o=r.get("channel");a&&this.productSkus.push(a),o&&(this.channelId=o,this.onChannelChange())}))}})}onChannelChange(){var e=this;return(0,wi.Z)(function*(){e.loadProducts=!0,e.catService.getUserReferencesByChannel(e.partnerId?e.partnerId:e.authData.partnerId,e.channelId).subscribe({next:r=>{e.userCatalog=r.data,e.editableUserCatalog=(0,Zt.X)(e.userCatalog),e.loadProducts=!1},error:r=>{console.error(r)}})})()}onSubmit(){this.buyButtonService.getBuyButton(this.productSkus,this.channelId).subscribe(r=>this.buybutton=r.data.data)}back(){this.router.navigate(["/home"])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(dd.av),i.Y36(ln.e8),i.Y36(ld.T),i.Y36(oR),i.Y36(Ft.F0),i.Y36(Ft.gz))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-buybutton-generator"]],inputs:{partnerId:"partnerId"},decls:30,vars:18,consts:[["mat-button","","color","primary",3,"click"],[1,"mat-18"],[1,"fill-space"],[1,"container"],["novalidate","",3,"ngSubmit"],["appearance","fill",1,"full-width","mt-3"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matSuffix","","diameter","16","style","display: inline-flex",4,"ngIf"],["multiple","",3,"value","valueChange"],["mat-raised-button","","color","primary","type","submit",1,"full-width","mt-3"],["class","full-width mt-3",4,"ngIf"],[3,"value"],["matSuffix","","diameter","16",2,"display","inline-flex"],[1,"full-width","mt-3"]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"button",0),i.NdJ("click",function(){return r.back()}),i.TgZ(2,"mat-icon"),i._uU(3,"arrow_back"),i.qZA()(),i.TgZ(4,"mat-icon",1),i._uU(5,"sell"),i.qZA(),i._uU(6),i.ALo(7,"translate"),i._UZ(8,"span",2),i.qZA(),i.TgZ(9,"div",3)(10,"form",4),i.NdJ("ngSubmit",function(){return r.onSubmit()}),i.TgZ(11,"mat-form-field",5)(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"mat-select",6),i.NdJ("valueChange",function(o){return r.channelId=o})("selectionChange",function(){return r.onChannelChange()}),i.YNc(16,sR,2,2,"mat-option",7),i.qZA()(),i.TgZ(17,"mat-form-field",5),i.YNc(18,lR,1,0,"mat-spinner",8),i.TgZ(19,"mat-label"),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"mat-select",9),i.NdJ("valueChange",function(o){return r.productSkus=o}),i.YNc(23,cR,2,2,"mat-option",7),i.qZA()(),i.TgZ(24,"button",10)(25,"mat-icon"),i._uU(26,"add"),i.qZA(),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.YNc(29,dR,2,1,"textarea",11),i.qZA()()),2&e&&(i.xp6(6),i.hij(" ",i.lcZ(7,10,"app.buybutton.title")," "),i.xp6(7),i.Oqu(i.lcZ(14,12,"app.buybutton.channel")),i.xp6(2),i.Q6J("value",r.channelId),i.xp6(1),i.Q6J("ngForOf",r.userChannels),i.xp6(2),i.Q6J("ngIf",r.loadProducts),i.xp6(2),i.Oqu(i.lcZ(21,14,"app.buybutton.products")),i.xp6(2),i.Q6J("value",r.productSkus),i.xp6(1),i.Q6J("ngForOf",r.editableUserCatalog),i.xp6(4),i.hij(" ",i.lcZ(28,16,"app.buybutton.generate")," "),i.xp6(2),i.Q6J("ngIf",r.buybutton))},dependencies:[Hn.sg,Hn.O5,A._Y,A.JL,A.F,Ui.lW,Xe.KE,Xe.hX,Xe.R9,Dt.Hw,Rr.gD,Pr.ey,ca.Ye,Tl.Ou,Ot.X$],styles:[".full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}textarea[_ngcontent-%COMP%]{height:100px}"]}),t})();var hR=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,fR=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,mR=/[^-+\dA-Z]/g;function Y1(t,n,e,r){if(1===arguments.length&&"string"==typeof t&&!/\d/.test(t)&&(n=t,t=void 0),(t=t||0===t?t:new Date)instanceof Date||(t=new Date(t)),isNaN(t))throw TypeError("Invalid date");var a=(n=String(GA[n]||n||GA.default)).slice(0,4);("UTC:"===a||"GMT:"===a)&&(n=n.slice(4),e=!0,"GMT:"===a&&(r=!0));var o=function(){return e?"getUTC":"get"},l=function(){return t[o()+"Date"]()},u=function(){return t[o()+"Day"]()},m=function(){return t[o()+"Month"]()},_=function(){return t[o()+"FullYear"]()},w=function(){return t[o()+"Hours"]()},M=function(){return t[o()+"Minutes"]()},O=function(){return t[o()+"Seconds"]()},N=function(){return t[o()+"Milliseconds"]()},z=function(){return e?0:t.getTimezoneOffset()},j=function(){return pR(t)},Ne={d:function(){return l()},dd:function(){return Fl(l())},ddd:function(){return hl.dayNames[u()]},DDD:function(){return $A({y:_(),m:m(),d:l(),_:o(),dayName:hl.dayNames[u()],short:!0})},dddd:function(){return hl.dayNames[u()+7]},DDDD:function(){return $A({y:_(),m:m(),d:l(),_:o(),dayName:hl.dayNames[u()+7]})},m:function(){return m()+1},mm:function(){return Fl(m()+1)},mmm:function(){return hl.monthNames[m()]},mmmm:function(){return hl.monthNames[m()+12]},yy:function(){return String(_()).slice(2)},yyyy:function(){return Fl(_(),4)},h:function(){return w()%12||12},hh:function(){return Fl(w()%12||12)},H:function(){return w()},HH:function(){return Fl(w())},M:function(){return M()},MM:function(){return Fl(M())},s:function(){return O()},ss:function(){return Fl(O())},l:function(){return Fl(N(),3)},L:function(){return Fl(Math.floor(N()/10))},t:function(){return w()<12?hl.timeNames[0]:hl.timeNames[1]},tt:function(){return w()<12?hl.timeNames[2]:hl.timeNames[3]},T:function(){return w()<12?hl.timeNames[4]:hl.timeNames[5]},TT:function(){return w()<12?hl.timeNames[6]:hl.timeNames[7]},Z:function(){return r?"GMT":e?"UTC":_R(t)},o:function(){return(z()>0?"-":"+")+Fl(100*Math.floor(Math.abs(z())/60)+Math.abs(z())%60,4)},p:function(){return(z()>0?"-":"+")+Fl(Math.floor(Math.abs(z())/60),2)+":"+Fl(Math.floor(Math.abs(z())%60),2)},S:function(){return["th","st","nd","rd"][l()%10>3?0:(l()%100-l()%10!=10)*l()%10]},W:function(){return j()},WW:function(){return Fl(j())},N:function(){return gR(t)}};return n.replace(hR,function(Ie){return Ie in Ne?Ne[Ie]():Ie.slice(1,Ie.length-1)})}var GA={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},hl={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},Fl=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return String(n).padStart(e,"0")},$A=function(n){var e=n.y,r=n.m,a=n.d,o=n._,l=n.dayName,u=n.short,m=void 0!==u&&u,_=new Date,w=new Date;w.setDate(w[o+"Date"]()-1);var M=new Date;return M.setDate(M[o+"Date"]()+1),_[o+"FullYear"]()===e&&_[o+"Month"]()===r&&_[o+"Date"]()===a?m?"Tdy":"Today":w[o+"FullYear"]()===e&&w[o+"Month"]()===r&&w[o+"Date"]()===a?m?"Ysd":"Yesterday":M[o+"FullYear"]()===e&&M[o+"Month"]()===r&&M[o+"Date"]()===a?m?"Tmw":"Tomorrow":l},pR=function(n){var e=new Date(n.getFullYear(),n.getMonth(),n.getDate());e.setDate(e.getDate()-(e.getDay()+6)%7+3);var r=new Date(e.getFullYear(),0,4);r.setDate(r.getDate()-(r.getDay()+6)%7+3);var a=e.getTimezoneOffset()-r.getTimezoneOffset();return e.setHours(e.getHours()-a),1+Math.floor((e-r)/6048e5)},gR=function(n){var e=n.getDay();return 0===e&&(e=7),e},_R=function(n){return(String(n).match(fR)||[""]).pop().replace(mR,"").replace(/GMT\+0000/g,"UTC")},j0={version:"0.18.5"},Ll=1200,Mf=1252,vR=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],aM={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},z1=function(t){-1!=vR.indexOf(t)&&(Mf=aM[0]=t)},lc=function(t){Ll=t,z1(t)};var Er,Y0=function(n){return String.fromCharCode(n)},oM=function(n){return String.fromCharCode(n)},Na=null,z0=!0,rh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function W0(t){for(var n="",e=0,r=0,a=0,o=0,l=0,u=0,m=0,_=0;_<t.length;)o=(e=t.charCodeAt(_++))>>2,l=(3&e)<<4|(r=t.charCodeAt(_++))>>4,u=(15&r)<<2|(a=t.charCodeAt(_++))>>6,m=63&a,isNaN(r)?u=m=64:isNaN(a)&&(m=64),n+=rh.charAt(o)+rh.charAt(l)+rh.charAt(u)+rh.charAt(m);return n}function Nl(t){var n="",o=0,l=0,u=0,m=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var _=0;_<t.length;)o=rh.indexOf(t.charAt(_++)),l=rh.indexOf(t.charAt(_++)),n+=String.fromCharCode(o<<2|l>>4),64!==(u=rh.indexOf(t.charAt(_++)))&&(n+=String.fromCharCode((15&l)<<4|u>>2)),64!==(m=rh.indexOf(t.charAt(_++)))&&(n+=String.fromCharCode((3&u)<<6|m));return n}var pr=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),qd=function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(n,e){return e?new Buffer(n,e):new Buffer(n)}:Buffer.from.bind(Buffer)}return function(){}}();function ah(t){return pr?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function QA(t){return pr?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var Bl=function(n){return pr?qd(n,"binary"):n.split("").map(function(e){return 255&e.charCodeAt(0)})};function G0(t){if(typeof ArrayBuffer>"u")return Bl(t);for(var n=new ArrayBuffer(t.length),e=new Uint8Array(n),r=0;r!=t.length;++r)e[r]=255&t.charCodeAt(r);return n}function oh(t){if(Array.isArray(t))return t.map(function(r){return String.fromCharCode(r)}).join("");for(var n=[],e=0;e<t.length;++e)n[e]=String.fromCharCode(t[e]);return n.join("")}var Bo=pr?function(t){return Buffer.concat(t.map(function(n){return Buffer.isBuffer(n)?n:qd(n)}))}:function(t){if(typeof Uint8Array<"u"){var n=0,e=0;for(n=0;n<t.length;++n)e+=t[n].length;var r=new Uint8Array(e),a=0;for(n=0,e=0;n<t.length;e+=a,++n)if(a=t[n].length,t[n]instanceof Uint8Array)r.set(t[n],e);else{if("string"==typeof t[n])throw"wtf";r.set(new Uint8Array(t[n]),e)}return r}return[].concat.apply([],t.map(function(o){return Array.isArray(o)?o:[].slice.call(o)}))},Cs=/\u0000/g,$0=/[\u0001-\u0006]/g;function $p(t){for(var n="",e=t.length-1;e>=0;)n+=t.charAt(e--);return n}function Zc(t,n){var e=""+t;return e.length>=n?e:Ua("0",n-e.length)+e}function lM(t,n){var e=""+t;return e.length>=n?e:Ua(" ",n-e.length)+e}function $1(t,n){var e=""+t;return e.length>=n?e:e+Ua(" ",n-e.length)}var KA=Math.pow(2,32);function qp(t,n){return t>KA||t<-KA?function CR(t,n){var e=""+Math.round(t);return e.length>=n?e:Ua("0",n-e.length)+e}(t,n):function DR(t,n){var e=""+t;return e.length>=n?e:Ua("0",n-e.length)+e}(Math.round(t),n)}function q1(t,n){return t.length>=7+(n=n||0)&&103==(32|t.charCodeAt(n))&&101==(32|t.charCodeAt(n+1))&&110==(32|t.charCodeAt(n+2))&&101==(32|t.charCodeAt(n+3))&&114==(32|t.charCodeAt(n+4))&&97==(32|t.charCodeAt(n+5))&&108==(32|t.charCodeAt(n+6))}var JA=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],cM=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],Yi={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "'},XA={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},ER={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Q1(t,n,e){for(var r=t<0?-1:1,a=t*r,o=0,l=1,u=0,m=1,_=0,w=0,M=Math.floor(a);_<n&&(u=(M=Math.floor(a))*l+o,w=M*_+m,!(a-M<5e-8));)a=1/(a-M),o=l,l=u,m=_,_=w;if(w>n&&(_>n?(w=m,u=o):(w=_,u=l)),!e)return[0,r*u,w];var O=Math.floor(r*u/w);return[O,r*u-O*w,w]}function sh(t,n,e){if(t>2958465||t<0)return null;var r=0|t,a=Math.floor(86400*(t-r)),o=0,l=[],u={D:r,T:a,u:86400*(t-r)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(u.u)<1e-6&&(u.u=0),n&&n.date1904&&(r+=1462),u.u>.9999&&(u.u=0,86400==++a&&(u.T=a=0,++r,++u.D)),60===r)l=e?[1317,10,29]:[1900,2,29],o=3;else if(0===r)l=e?[1317,8,29]:[1900,1,0],o=6;else{r>60&&--r;var m=new Date(1900,0,1);m.setDate(m.getDate()+r-1),l=[m.getFullYear(),m.getMonth()+1,m.getDate()],o=m.getDay(),r<60&&(o=(o+6)%7),e&&(o=function OR(t,n){n[0]-=581;var e=t.getDay();return t<60&&(e=(e+6)%7),e}(m,l))}return u.y=l[0],u.m=l[1],u.d=l[2],u.S=a%60,a=Math.floor(a/60),u.M=a%60,a=Math.floor(a/60),u.H=a,u.q=o,u}var eS=new Date(1899,11,31,0,0,0),MR=eS.getTime(),AR=new Date(1900,2,1,0,0,0);function tS(t,n){var e=t.getTime();return n?e-=1262304e5:t>=AR&&(e+=864e5),(e-(MR+6e4*(t.getTimezoneOffset()-eS.getTimezoneOffset())))/864e5}function dM(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Af(t,n){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):function q0(t){var e,n=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return e=n>=-4&&n<=-1?t.toPrecision(10+n):Math.abs(n)<=9?function kR(t){var n=t<0?12:11,e=dM(t.toFixed(12));return e.length<=n||(e=t.toPrecision(10)).length<=n?e:t.toExponential(5)}(t):10===n?t.toFixed(10).substr(0,12):function IR(t){var n=dM(t.toFixed(11));return n.length>(t<0?12:11)||"0"===n||"-0"===n?t.toPrecision(6):n}(t),dM(function SR(t){return-1==t.indexOf("E")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(e.toUpperCase()))}(t);case"undefined":return"";case"object":if(null==t)return"";if(t instanceof Date)return Ul(14,tS(t,n&&n.date1904),n)}throw new Error("unsupported value in General format: "+t)}function PR(t,n,e,r){var m,a="",o=0,l=0,u=e.y,_=0;switch(t){case 98:u=e.y+543;case 121:switch(n.length){case 1:case 2:m=u%100,_=2;break;default:m=u%1e4,_=4}break;case 109:switch(n.length){case 1:case 2:m=e.m,_=n.length;break;case 3:return cM[e.m-1][1];case 5:return cM[e.m-1][0];default:return cM[e.m-1][2]}break;case 100:switch(n.length){case 1:case 2:m=e.d,_=n.length;break;case 3:return JA[e.q][0];default:return JA[e.q][1]}break;case 104:switch(n.length){case 1:case 2:m=1+(e.H+11)%12,_=n.length;break;default:throw"bad hour format: "+n}break;case 72:switch(n.length){case 1:case 2:m=e.H,_=n.length;break;default:throw"bad hour format: "+n}break;case 77:switch(n.length){case 1:case 2:m=e.M,_=n.length;break;default:throw"bad minute format: "+n}break;case 115:if("s"!=n&&"ss"!=n&&".0"!=n&&".00"!=n&&".000"!=n)throw"bad second format: "+n;return 0!==e.u||"s"!=n&&"ss"!=n?(l=r>=2?3===r?1e3:100:1===r?10:1,(o=Math.round(l*(e.S+e.u)))>=60*l&&(o=0),"s"===n?0===o?"0":""+o/l:(a=Zc(o,2+r),"ss"===n?a.substr(0,2):"."+a.substr(2,n.length-1))):Zc(e.S,n.length);case 90:switch(n){case"[h]":case"[hh]":m=24*e.D+e.H;break;case"[m]":case"[mm]":m=60*(24*e.D+e.H)+e.M;break;case"[s]":case"[ss]":m=60*(60*(24*e.D+e.H)+e.M)+Math.round(e.S+e.u);break;default:throw"bad abstime format: "+n}_=3===n.length?1:2;break;case 101:m=u,_=1}return _>0?Zc(m,_):""}function lh(t){if(t.length<=3)return t;for(var e=t.length%3,r=t.substr(0,e);e!=t.length;e+=3)r+=(r.length>0?",":"")+t.substr(e,3);return r}var nS=/%/g;function iS(t,n){var e,r=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+iS(t,-n);var a=t.indexOf(".");-1===a&&(a=t.indexOf("E"));var o=Math.floor(Math.log(n)*Math.LOG10E)%a;if(o<0&&(o+=a),-1===(e=(n/Math.pow(10,o)).toPrecision(r+1+(a+o)%a)).indexOf("e")){var l=Math.floor(Math.log(n)*Math.LOG10E);for(-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(l-e.length+o):e+="E+"+(l-o);"0."===e.substr(0,2);)e=(e=e.charAt(0)+e.substr(2,a)+"."+e.substr(2+a)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(u,m,_,w){return m+_+w.substr(0,(a+o)%a)+"."+w.substr(o)+"E"})}else e=n.toExponential(r);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}var rS=/# (\?+)( ?)\/( ?)(\d+)/,aS=/^#*0*\.([0#]+)/,oS=/\).*[0#]/,sS=/\(###\) ###\\?-####/;function zs(t){for(var e,n="",r=0;r!=t.length;++r)switch(e=t.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(e)}return n}function lS(t,n){var e=Math.pow(10,n);return""+Math.round(t*e)/e}function cS(t,n){var e=t-Math.floor(t),r=Math.pow(10,n);return n<(""+Math.round(e*r)).length?0:Math.round(e*r)}function cc(t,n,e){if(40===t.charCodeAt(0)&&!n.match(oS)){var r=n.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?cc("n",r,e):"("+cc("n",r,-e)+")"}if(44===n.charCodeAt(n.length-1))return function FR(t,n,e){for(var r=n.length-1;44===n.charCodeAt(r-1);)--r;return Qd(t,n.substr(0,r),e/Math.pow(10,3*(n.length-r)))}(t,n,e);if(-1!==n.indexOf("%"))return function RR(t,n,e){var r=n.replace(nS,""),a=n.length-r.length;return Qd(t,r,e*Math.pow(10,2*a))+Ua("%",a)}(t,n,e);if(-1!==n.indexOf("E"))return iS(n,e);if(36===n.charCodeAt(0))return"$"+cc(t,n.substr(" "==n.charAt(1)?2:1),e);var a,o,l,u,m=Math.abs(e),_=e<0?"-":"";if(n.match(/^00+$/))return _+qp(m,n.length);if(n.match(/^[#?]+$/))return"0"===(a=qp(e,0))&&(a=""),a.length>n.length?a:zs(n.substr(0,n.length-a.length))+a;if(o=n.match(rS))return function LR(t,n,e){var r=parseInt(t[4],10),a=Math.round(n*r),o=Math.floor(a/r),l=a-o*r,u=r;return e+(0===o?"":""+o)+" "+(0===l?Ua(" ",t[1].length+1+t[4].length):lM(l,t[1].length)+t[2]+"/"+t[3]+Zc(u,t[4].length))}(o,m,_);if(n.match(/^#+0+$/))return _+qp(m,n.length-n.indexOf("0"));if(o=n.match(aS))return a=lS(e,o[1].length).replace(/^([^\.]+)$/,"$1."+zs(o[1])).replace(/\.$/,"."+zs(o[1])).replace(/\.(\d*)$/,function(z,j){return"."+j+Ua("0",zs(o[1]).length-j.length)}),-1!==n.indexOf("0.")?a:a.replace(/^0\./,".");if(n=n.replace(/^#+([0.])/,"$1"),o=n.match(/^(0*)\.(#*)$/))return _+lS(m,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=n.match(/^#{1,3},##0(\.?)$/))return _+lh(qp(m,0));if(o=n.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+cc(t,n,-e):lh(""+(Math.floor(e)+function BR(t,n){return n<(""+Math.round((t-Math.floor(t))*Math.pow(10,n))).length?1:0}(e,o[1].length)))+"."+Zc(cS(e,o[1].length),o[1].length);if(o=n.match(/^#,#*,#0/))return cc(t,n.replace(/^#,#*,/,""),e);if(o=n.match(/^([0#]+)(\\?-([0#]+))+$/))return a=$p(cc(t,n.replace(/[\\-]/g,""),e)),l=0,$p($p(n.replace(/\\/g,"")).replace(/[0#]/g,function(z){return l<a.length?a.charAt(l++):"0"===z?"0":""}));if(n.match(sS))return"("+(a=cc(t,"##########",e)).substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var w="";if(o=n.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return l=Math.min(o[4].length,7),u=Q1(m,Math.pow(10,l)-1,!1),a=""+_," "==(w=Qd("n",o[1],u[1])).charAt(w.length-1)&&(w=w.substr(0,w.length-1)+"0"),a+=w+o[2]+"/"+o[3],(w=$1(u[2],l)).length<o[4].length&&(w=zs(o[4].substr(o[4].length-w.length))+w),a+=w;if(o=n.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return l=Math.min(Math.max(o[1].length,o[4].length),7),_+((u=Q1(m,Math.pow(10,l)-1,!0))[0]||(u[1]?"":"0"))+" "+(u[1]?lM(u[1],l)+o[2]+"/"+o[3]+$1(u[2],l):Ua(" ",2*l+1+o[2].length+o[3].length));if(o=n.match(/^[#0?]+$/))return a=qp(e,0),n.length<=a.length?a:zs(n.substr(0,n.length-a.length))+a;if(o=n.match(/^([#0?]+)\.([#0]+)$/)){a=""+e.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),l=a.indexOf(".");var M=n.indexOf(".")-l,O=n.length-a.length-M;return zs(n.substr(0,M)+a+n.substr(n.length-O))}if(o=n.match(/^00,000\.([#0]*0)$/))return l=cS(e,o[1].length),e<0?"-"+cc(t,n,-e):lh(function UR(t){return t<2147483647&&t>-2147483648?""+(t>=0?0|t:t-1|0):""+Math.floor(t)}(e)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(z){return"00,"+(z.length<3?Zc(0,3-z.length):"")+z})+"."+Zc(l,o[1].length);switch(n){case"###,##0.00":return cc(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var N=lh(qp(m,0));return"0"!==N?_+N:"";case"###,###.00":return cc(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return cc(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+n+"|")}function dS(t,n){var e,r=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+dS(t,-n);var a=t.indexOf(".");-1===a&&(a=t.indexOf("E"));var o=Math.floor(Math.log(n)*Math.LOG10E)%a;if(o<0&&(o+=a),!(e=(n/Math.pow(10,o)).toPrecision(r+1+(a+o)%a)).match(/[Ee]/)){var l=Math.floor(Math.log(n)*Math.LOG10E);-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(l-e.length+o):e+="E+"+(l-o),e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(u,m,_,w){return m+_+w.substr(0,(a+o)%a)+"."+w.substr(o)+"E"})}else e=n.toExponential(r);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}function ud(t,n,e){if(40===t.charCodeAt(0)&&!n.match(oS)){var r=n.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?ud("n",r,e):"("+ud("n",r,-e)+")"}if(44===n.charCodeAt(n.length-1))return function ZR(t,n,e){for(var r=n.length-1;44===n.charCodeAt(r-1);)--r;return Qd(t,n.substr(0,r),e/Math.pow(10,3*(n.length-r)))}(t,n,e);if(-1!==n.indexOf("%"))return function VR(t,n,e){var r=n.replace(nS,""),a=n.length-r.length;return Qd(t,r,e*Math.pow(10,2*a))+Ua("%",a)}(t,n,e);if(-1!==n.indexOf("E"))return dS(n,e);if(36===n.charCodeAt(0))return"$"+ud(t,n.substr(" "==n.charAt(1)?2:1),e);var a,o,l,u,m=Math.abs(e),_=e<0?"-":"";if(n.match(/^00+$/))return _+Zc(m,n.length);if(n.match(/^[#?]+$/))return a=""+e,0===e&&(a=""),a.length>n.length?a:zs(n.substr(0,n.length-a.length))+a;if(o=n.match(rS))return function NR(t,n,e){return e+(0===n?"":""+n)+Ua(" ",t[1].length+2+t[4].length)}(o,m,_);if(n.match(/^#+0+$/))return _+Zc(m,n.length-n.indexOf("0"));if(o=n.match(aS))return a=(a=(""+e).replace(/^([^\.]+)$/,"$1."+zs(o[1])).replace(/\.$/,"."+zs(o[1]))).replace(/\.(\d*)$/,function(z,j){return"."+j+Ua("0",zs(o[1]).length-j.length)}),-1!==n.indexOf("0.")?a:a.replace(/^0\./,".");if(n=n.replace(/^#+([0.])/,"$1"),o=n.match(/^(0*)\.(#*)$/))return _+(""+m).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=n.match(/^#{1,3},##0(\.?)$/))return _+lh(""+m);if(o=n.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+ud(t,n,-e):lh(""+e)+"."+Ua("0",o[1].length);if(o=n.match(/^#,#*,#0/))return ud(t,n.replace(/^#,#*,/,""),e);if(o=n.match(/^([0#]+)(\\?-([0#]+))+$/))return a=$p(ud(t,n.replace(/[\\-]/g,""),e)),l=0,$p($p(n.replace(/\\/g,"")).replace(/[0#]/g,function(z){return l<a.length?a.charAt(l++):"0"===z?"0":""}));if(n.match(sS))return"("+(a=ud(t,"##########",e)).substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var w="";if(o=n.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return l=Math.min(o[4].length,7),u=Q1(m,Math.pow(10,l)-1,!1),a=""+_," "==(w=Qd("n",o[1],u[1])).charAt(w.length-1)&&(w=w.substr(0,w.length-1)+"0"),a+=w+o[2]+"/"+o[3],(w=$1(u[2],l)).length<o[4].length&&(w=zs(o[4].substr(o[4].length-w.length))+w),a+=w;if(o=n.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return l=Math.min(Math.max(o[1].length,o[4].length),7),_+((u=Q1(m,Math.pow(10,l)-1,!0))[0]||(u[1]?"":"0"))+" "+(u[1]?lM(u[1],l)+o[2]+"/"+o[3]+$1(u[2],l):Ua(" ",2*l+1+o[2].length+o[3].length));if(o=n.match(/^[#0?]+$/))return n.length<=(a=""+e).length?a:zs(n.substr(0,n.length-a.length))+a;if(o=n.match(/^([#0]+)\.([#0]+)$/)){a=""+e.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),l=a.indexOf(".");var M=n.indexOf(".")-l,O=n.length-a.length-M;return zs(n.substr(0,M)+a+n.substr(n.length-O))}if(o=n.match(/^00,000\.([#0]*0)$/))return e<0?"-"+ud(t,n,-e):lh(""+e).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(z){return"00,"+(z.length<3?Zc(0,3-z.length):"")+z})+"."+Zc(0,o[1].length);switch(n){case"###,###":case"##,###":case"#,###":var N=lh(""+m);return"0"!==N?_+N:"";default:if(n.match(/\.[0#?]*$/))return ud(t,n.slice(0,n.lastIndexOf(".")),e)+zs(n.slice(n.lastIndexOf(".")))}throw new Error("unsupported format |"+n+"|")}function Qd(t,n,e){return(0|e)===e?ud(t,n,e):cc(t,n,e)}var uS=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Qp(t){for(var n=0,e="",r="";n<t.length;)switch(e=t.charAt(n)){case"G":q1(t,n)&&(n+=6),n++;break;case'"':for(;34!==t.charCodeAt(++n)&&n<t.length;);++n;break;case"\\":case"_":n+=2;break;case"@":++n;break;case"B":case"b":if("1"===t.charAt(n+1)||"2"===t.charAt(n+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"\u4e0a":if("A/P"===t.substr(n,3).toUpperCase()||"AM/PM"===t.substr(n,5).toUpperCase()||"\u4e0a\u5348/\u4e0b\u5348"===t.substr(n,5).toUpperCase())return!0;++n;break;case"[":for(r=e;"]"!==t.charAt(n++)&&n<t.length;)r+=t.charAt(n);if(r.match(uS))return!0;break;case".":case"0":case"#":for(;n<t.length&&("0#?.,E+-%".indexOf(e=t.charAt(++n))>-1||"\\"==e&&"-"==t.charAt(n+1)&&"0#".indexOf(t.charAt(n+2))>-1););break;case"?":for(;t.charAt(++n)===e;);break;case"*":++n,(" "==t.charAt(n)||"*"==t.charAt(n))&&++n;break;case"(":case")":++n;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;n<t.length&&"0123456789".indexOf(t.charAt(++n))>-1;);break;default:++n}return!1}var hS=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function fS(t,n){if(null==n)return!1;var e=parseFloat(n[2]);switch(n[1]){case"=":if(t==e)return!0;break;case">":if(t>e)return!0;break;case"<":if(t<e)return!0;break;case"<>":if(t!=e)return!0;break;case">=":if(t>=e)return!0;break;case"<=":if(t<=e)return!0}return!1}function Ul(t,n,e){null==e&&(e={});var r="";switch(typeof t){case"string":r="m/d/yy"==t&&e.dateNF?e.dateNF:t;break;case"number":null==(r=14==t&&e.dateNF?e.dateNF:(null!=e.table?e.table:Yi)[t])&&(r=e.table&&e.table[XA[t]]||Yi[XA[t]]),null==r&&(r=ER[t]||"General")}if(q1(r,0))return Af(n,e);n instanceof Date&&(n=tS(n,e.date1904));var a=function YR(t,n){var e=function HR(t){for(var n=[],e=!1,r=0,a=0;r<t.length;++r)switch(t.charCodeAt(r)){case 34:e=!e;break;case 95:case 42:case 92:++r;break;case 59:n[n.length]=t.substr(a,r-a),a=r+1}if(n[n.length]=t.substr(a),!0===e)throw new Error("Format |"+t+"| unterminated string ");return n}(t),r=e.length,a=e[r-1].indexOf("@");if(r<4&&a>-1&&--r,e.length>4)throw new Error("cannot find right format for |"+e.join("|")+"|");if("number"!=typeof n)return[4,4===e.length||a>-1?e[e.length-1]:"@"];switch(e.length){case 1:e=a>-1?["General","General","General",e[0]]:[e[0],e[0],e[0],"@"];break;case 2:e=a>-1?[e[0],e[0],e[0],e[1]]:[e[0],e[1],e[0],"@"];break;case 3:e=a>-1?[e[0],e[1],e[0],e[2]]:[e[0],e[1],e[2],"@"]}var o=n>0?e[0]:n<0?e[1]:e[2];if(-1===e[0].indexOf("[")&&-1===e[1].indexOf("["))return[r,o];if(null!=e[0].match(/\[[=<>]/)||null!=e[1].match(/\[[=<>]/)){var l=e[0].match(hS),u=e[1].match(hS);return fS(n,l)?[r,e[0]]:fS(n,u)?[r,e[1]]:[r,e[null!=l&&null!=u?2:1]]}return[r,o]}(r,n);if(q1(a[1]))return Af(n,e);if(!0===n)n="TRUE";else if(!1===n)n="FALSE";else if(""===n||null==n)return"";return function jR(t,n,e,r){for(var _,w,M,a=[],o="",l=0,u="",m="t",O="H";l<t.length;)switch(u=t.charAt(l)){case"G":if(!q1(t,l))throw new Error("unrecognized character "+u+" in "+t);a[a.length]={t:"G",v:"General"},l+=7;break;case'"':for(o="";34!==(M=t.charCodeAt(++l))&&l<t.length;)o+=String.fromCharCode(M);a[a.length]={t:"t",v:o},++l;break;case"\\":var N=t.charAt(++l);a[a.length]={t:"("===N||")"===N?N:"t",v:N},++l;break;case"_":a[a.length]={t:"t",v:" "},l+=2;break;case"@":a[a.length]={t:"T",v:n},++l;break;case"B":case"b":if("1"===t.charAt(l+1)||"2"===t.charAt(l+1)){if(null==_&&null==(_=sh(n,e,"2"===t.charAt(l+1))))return"";a[a.length]={t:"X",v:t.substr(l,2)},m=u,l+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":u=u.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(n<0||null==_&&null==(_=sh(n,e)))return"";for(o=u;++l<t.length&&t.charAt(l).toLowerCase()===u;)o+=u;"m"===u&&"h"===m.toLowerCase()&&(u="M"),"h"===u&&(u=O),a[a.length]={t:u,v:o},m=u;break;case"A":case"a":case"\u4e0a":var j={t:u,v:u};if(null==_&&(_=sh(n,e)),"A/P"===t.substr(l,3).toUpperCase()?(null!=_&&(j.v=_.H>=12?"P":"A"),j.t="T",O="h",l+=3):"AM/PM"===t.substr(l,5).toUpperCase()?(null!=_&&(j.v=_.H>=12?"PM":"AM"),j.t="T",l+=5,O="h"):"\u4e0a\u5348/\u4e0b\u5348"===t.substr(l,5).toUpperCase()?(null!=_&&(j.v=_.H>=12?"\u4e0b\u5348":"\u4e0a\u5348"),j.t="T",l+=5,O="h"):(j.t="t",++l),null==_&&"T"===j.t)return"";a[a.length]=j,m=u;break;case"[":for(o=u;"]"!==t.charAt(l++)&&l<t.length;)o+=t.charAt(l);if("]"!==o.slice(-1))throw'unterminated "[" block: |'+o+"|";if(o.match(uS)){if(null==_&&null==(_=sh(n,e)))return"";a[a.length]={t:"Z",v:o.toLowerCase()},m=o.charAt(1)}else o.indexOf("$")>-1&&(o=(o.match(/\$([^-\[\]]*)/)||[])[1]||"$",Qp(t)||(a[a.length]={t:"t",v:o}));break;case".":if(null!=_){for(o=u;++l<t.length&&"0"===(u=t.charAt(l));)o+=u;a[a.length]={t:"s",v:o};break}case"0":case"#":for(o=u;++l<t.length&&"0#?.,E+-%".indexOf(u=t.charAt(l))>-1;)o+=u;a[a.length]={t:"n",v:o};break;case"?":for(o=u;t.charAt(++l)===u;)o+=u;a[a.length]={t:u,v:o},m=u;break;case"*":++l,(" "==t.charAt(l)||"*"==t.charAt(l))&&++l;break;case"(":case")":a[a.length]={t:1===r?"t":u,v:u},++l;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(o=u;l<t.length&&"0123456789".indexOf(t.charAt(++l))>-1;)o+=t.charAt(l);a[a.length]={t:"D",v:o};break;case" ":a[a.length]={t:u,v:u},++l;break;case"$":a[a.length]={t:"t",v:"$"},++l;break;default:if(-1===",$-+/():!^&'~{}<>=\u20acacfijklopqrtuvwxzP".indexOf(u))throw new Error("unrecognized character "+u+" in "+t);a[a.length]={t:"t",v:u},++l}var Ie,oe=0,Ne=0;for(l=a.length-1,m="t";l>=0;--l)switch(a[l].t){case"h":case"H":a[l].t=O,m="h",oe<1&&(oe=1);break;case"s":(Ie=a[l].v.match(/\.0+$/))&&(Ne=Math.max(Ne,Ie[0].length-1)),oe<3&&(oe=3);case"d":case"y":case"M":case"e":m=a[l].t;break;case"m":"s"===m&&(a[l].t="M",oe<2&&(oe=2));break;case"X":break;case"Z":oe<1&&a[l].v.match(/[Hh]/)&&(oe=1),oe<2&&a[l].v.match(/[Mm]/)&&(oe=2),oe<3&&a[l].v.match(/[Ss]/)&&(oe=3)}switch(oe){case 0:break;case 1:_.u>=.5&&(_.u=0,++_.S),_.S>=60&&(_.S=0,++_.M),_.M>=60&&(_.M=0,++_.H);break;case 2:_.u>=.5&&(_.u=0,++_.S),_.S>=60&&(_.S=0,++_.M)}var Pt,Ye="";for(l=0;l<a.length;++l)switch(a[l].t){case"t":case"T":case" ":case"D":break;case"X":a[l].v="",a[l].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[l].v=PR(a[l].t.charCodeAt(0),a[l].v,_,Ne),a[l].t="t";break;case"n":case"?":for(Pt=l+1;null!=a[Pt]&&("?"===(u=a[Pt].t)||"D"===u||(" "===u||"t"===u)&&null!=a[Pt+1]&&("?"===a[Pt+1].t||"t"===a[Pt+1].t&&"/"===a[Pt+1].v)||"("===a[l].t&&(" "===u||"n"===u||")"===u)||"t"===u&&("/"===a[Pt].v||" "===a[Pt].v&&null!=a[Pt+1]&&"?"==a[Pt+1].t));)a[l].v+=a[Pt].v,a[Pt]={v:"",t:";"},++Pt;Ye+=a[l].v,l=Pt-1;break;case"G":a[l].t="t",a[l].v=Af(n,e)}var rn,kt,Ut="";if(Ye.length>0){40==Ye.charCodeAt(0)?(rn=n<0&&45===Ye.charCodeAt(0)?-n:n,kt=Qd("n",Ye,rn)):(kt=Qd("n",Ye,rn=n<0&&r>1?-n:n),rn<0&&a[0]&&"t"==a[0].t&&(kt=kt.substr(1),a[0].v="-"+a[0].v)),Pt=kt.length-1;var en=a.length;for(l=0;l<a.length;++l)if(null!=a[l]&&"t"!=a[l].t&&a[l].v.indexOf(".")>-1){en=l;break}var tn=a.length;if(en===a.length&&-1===kt.indexOf("E")){for(l=a.length-1;l>=0;--l)null==a[l]||-1==="n?".indexOf(a[l].t)||(Pt>=a[l].v.length-1?a[l].v=kt.substr(1+(Pt-=a[l].v.length),a[l].v.length):Pt<0?a[l].v="":(a[l].v=kt.substr(0,Pt+1),Pt=-1),a[l].t="t",tn=l);Pt>=0&&tn<a.length&&(a[tn].v=kt.substr(0,Pt+1)+a[tn].v)}else if(en!==a.length&&-1===kt.indexOf("E")){for(Pt=kt.indexOf(".")-1,l=en;l>=0;--l)if(null!=a[l]&&-1!=="n?".indexOf(a[l].t)){for(w=a[l].v.indexOf(".")>-1&&l===en?a[l].v.indexOf(".")-1:a[l].v.length-1,Ut=a[l].v.substr(w+1);w>=0;--w)Pt>=0&&("0"===a[l].v.charAt(w)||"#"===a[l].v.charAt(w))&&(Ut=kt.charAt(Pt--)+Ut);a[l].v=Ut,a[l].t="t",tn=l}for(Pt>=0&&tn<a.length&&(a[tn].v=kt.substr(0,Pt+1)+a[tn].v),Pt=kt.indexOf(".")+1,l=en;l<a.length;++l)if(null!=a[l]&&(-1!=="n?(".indexOf(a[l].t)||l===en)){for(w=a[l].v.indexOf(".")>-1&&l===en?a[l].v.indexOf(".")+1:0,Ut=a[l].v.substr(0,w);w<a[l].v.length;++w)Pt<kt.length&&(Ut+=kt.charAt(Pt++));a[l].v=Ut,a[l].t="t",tn=l}}}for(l=0;l<a.length;++l)null!=a[l]&&"n?".indexOf(a[l].t)>-1&&(a[l].v=Qd(a[l].t,a[l].v,rn=r>1&&n<0&&l>0&&"-"===a[l-1].v?-n:n),a[l].t="t");var xn="";for(l=0;l!==a.length;++l)null!=a[l]&&(xn+=a[l].v);return xn}(a[1],n,e,a[0])}function hd(t,n){if("number"!=typeof n){n=+n||-1;for(var e=0;e<392;++e)if(null!=Yi[e]){if(Yi[e]==t){n=e;break}}else n<0&&(n=e);n<0&&(n=391)}return Yi[n]=t,n}function Q0(t){for(var n=0;392!=n;++n)void 0!==t[n]&&hd(t[n],n)}function Kp(){Yi=function TR(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "',t}()}var mS=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,qR=function(){var t={version:"1.2.0"},e=function n(){for(var kt=0,en=new Array(256),tn=0;256!=tn;++tn)en[tn]=kt=1&(kt=1&(kt=1&(kt=1&(kt=1&(kt=1&(kt=1&(kt=1&(kt=tn)?-306674912^kt>>>1:kt>>>1)?-306674912^kt>>>1:kt>>>1)?-306674912^kt>>>1:kt>>>1)?-306674912^kt>>>1:kt>>>1)?-306674912^kt>>>1:kt>>>1)?-306674912^kt>>>1:kt>>>1)?-306674912^kt>>>1:kt>>>1)?-306674912^kt>>>1:kt>>>1;return typeof Int32Array<"u"?new Int32Array(en):en}(),a=function r(kt){var en=0,tn=0,xn=0,Cn=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(xn=0;256!=xn;++xn)Cn[xn]=kt[xn];for(xn=0;256!=xn;++xn)for(tn=kt[xn],en=256+xn;en<4096;en+=256)tn=Cn[en]=tn>>>8^kt[255&tn];var mn=[];for(xn=1;16!=xn;++xn)mn[xn-1]=typeof Int32Array<"u"?Cn.subarray(256*xn,256*xn+256):Cn.slice(256*xn,256*xn+256);return mn}(e),o=a[0],l=a[1],u=a[2],m=a[3],_=a[4],w=a[5],M=a[6],O=a[7],N=a[8],z=a[9],j=a[10],oe=a[11],Ne=a[12],Ie=a[13],Ye=a[14];return t.table=e,t.bstr=function Pt(kt,en){for(var tn=-1^en,xn=0,Cn=kt.length;xn<Cn;)tn=tn>>>8^e[255&(tn^kt.charCodeAt(xn++))];return~tn},t.buf=function Ut(kt,en){for(var tn=-1^en,xn=kt.length-15,Cn=0;Cn<xn;)tn=Ye[kt[Cn++]^255&tn]^Ie[kt[Cn++]^tn>>8&255]^Ne[kt[Cn++]^tn>>16&255]^oe[kt[Cn++]^tn>>>24]^j[kt[Cn++]]^z[kt[Cn++]]^N[kt[Cn++]]^O[kt[Cn++]]^M[kt[Cn++]]^w[kt[Cn++]]^_[kt[Cn++]]^m[kt[Cn++]]^u[kt[Cn++]]^l[kt[Cn++]]^o[kt[Cn++]]^e[kt[Cn++]];for(xn+=15;Cn<xn;)tn=tn>>>8^e[255&(tn^kt[Cn++])];return~tn},t.str=function rn(kt,en){for(var tn=-1^en,xn=0,Cn=kt.length,mn=0,Xn=0;xn<Cn;)(mn=kt.charCodeAt(xn++))<128?tn=tn>>>8^e[255&(tn^mn)]:mn<2048?tn=(tn=tn>>>8^e[255&(tn^(192|mn>>6&31))])>>>8^e[255&(tn^(128|63&mn))]:mn>=55296&&mn<57344?(mn=64+(1023&mn),Xn=1023&kt.charCodeAt(xn++),tn=(tn=(tn=(tn=tn>>>8^e[255&(tn^(240|mn>>8&7))])>>>8^e[255&(tn^(128|mn>>2&63))])>>>8^e[255&(tn^(128|Xn>>6&15|(3&mn)<<4))])>>>8^e[255&(tn^(128|63&Xn))]):tn=(tn=(tn=tn>>>8^e[255&(tn^(224|mn>>12&15))])>>>8^e[255&(tn^(128|mn>>6&63))])>>>8^e[255&(tn^(128|63&mn))];return~tn},t}(),Zi=function(){var m,n={};function r(Tt){if("/"==Tt.charAt(Tt.length-1))return-1===Tt.slice(0,-1).indexOf("/")?Tt:r(Tt.slice(0,-1));var $t=Tt.lastIndexOf("/");return-1===$t?Tt:Tt.slice(0,$t+1)}function a(Tt){if("/"==Tt.charAt(Tt.length-1))return a(Tt.slice(0,-1));var $t=Tt.lastIndexOf("/");return-1===$t?Tt:Tt.slice($t+1)}function o(Tt,$t){"string"==typeof $t&&($t=new Date($t));var Vt=$t.getHours();Vt=(Vt=Vt<<6|$t.getMinutes())<<5|$t.getSeconds()>>>1,Tt.write_shift(2,Vt);var Yt=$t.getFullYear()-1980;Yt=(Yt=Yt<<4|$t.getMonth()+1)<<5|$t.getDate(),Tt.write_shift(2,Yt)}function u(Tt){os(Tt,0);for(var $t={},Vt=0;Tt.l<=Tt.length-4;){var Yt=Tt.read_shift(2),qt=Tt.read_shift(2),Kt=Tt.l+qt,In={};21589===Yt&&(1&(Vt=Tt.read_shift(1))&&(In.mtime=Tt.read_shift(4)),qt>5&&(2&Vt&&(In.atime=Tt.read_shift(4)),4&Vt&&(In.ctime=Tt.read_shift(4))),In.mtime&&(In.mt=new Date(1e3*In.mtime))),Tt.l=Kt,$t[Yt]=In}return $t}function _(){return m||(m={})}function w(Tt,$t){if(80==Tt[0]&&75==Tt[1])return bO(Tt,$t);if(109==(32|Tt[0])&&105==(32|Tt[1]))return function Lj(Tt,$t){if("mime-version:"!=ti(Tt.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var Vt=$t&&$t.root||"",Yt=(pr&&Buffer.isBuffer(Tt)?Tt.toString("binary"):ti(Tt)).split("\r\n"),qt=0,Kt="";for(qt=0;qt<Yt.length;++qt)if(/^Content-Location:/i.test(Kt=Yt[qt])&&(Kt=Kt.slice(Kt.indexOf("file")),Vt||(Vt=Kt.slice(0,Kt.lastIndexOf("/")+1)),Kt.slice(0,Vt.length)!=Vt))for(;Vt.length>0&&(Vt=(Vt=Vt.slice(0,Vt.length-1)).slice(0,Vt.lastIndexOf("/")+1),Kt.slice(0,Vt.length)!=Vt););var In=(Yt[1]||"").match(/boundary="(.*?)"/);if(!In)throw new Error("MAD cannot find boundary");var Wn="--"+(In[1]||""),Fn={FileIndex:[],FullPaths:[]};kt(Fn);var hi,vi=0;for(qt=0;qt<Yt.length;++qt){var Fi=Yt[qt];Fi!==Wn&&Fi!==Wn+"--"||(vi++&&Fj(Fn,Yt.slice(hi,qt),Vt),hi=qt)}return Fn}(Tt,$t);if(Tt.length<512)throw new Error("CFB file size "+Tt.length+" < 512");var Vt,qt,Kt,In,Wn,Pn,Yt=512,On=[],Fn=Tt.slice(0,512);os(Fn,0);var hi=function M(Tt){if(80==Tt[Tt.l]&&75==Tt[Tt.l+1])return[0,0];Tt.chk(gi,"Header Signature: "),Tt.l+=16;var $t=Tt.read_shift(2,"u");return[Tt.read_shift(2,"u"),$t]}(Fn);switch(Vt=hi[0]){case 3:Yt=512;break;case 4:Yt=4096;break;case 0:if(0==hi[1])return bO(Tt,$t);default:throw new Error("Major Version: Expected 3 or 4 saw "+Vt)}512!==Yt&&os(Fn=Tt.slice(0,Yt),28);var vi=Tt.slice(0,Yt);!function O(Tt,$t){var Vt;switch(Tt.l+=2,Vt=Tt.read_shift(2)){case 9:if(3!=$t)throw new Error("Sector Shift: Expected 9 saw "+Vt);break;case 12:if(4!=$t)throw new Error("Sector Shift: Expected 12 saw "+Vt);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+Vt)}Tt.chk("0600","Mini Sector Shift: "),Tt.chk("000000000000","Reserved: ")}(Fn,Vt);var Fi=Fn.read_shift(4,"i");if(3===Vt&&0!==Fi)throw new Error("# Directory Sectors: Expected 0 saw "+Fi);Fn.l+=4,In=Fn.read_shift(4,"i"),Fn.l+=4,Fn.chk("00100000","Mini Stream Cutoff Size: "),Wn=Fn.read_shift(4,"i"),qt=Fn.read_shift(4,"i"),Pn=Fn.read_shift(4,"i"),Kt=Fn.read_shift(4,"i");for(var bi=-1,Mi=0;Mi<109&&!((bi=Fn.read_shift(4,"i"))<0);++Mi)On[Mi]=bi;var Ji=function N(Tt,$t){for(var Vt=Math.ceil(Tt.length/$t)-1,Yt=[],qt=1;qt<Vt;++qt)Yt[qt-1]=Tt.slice(qt*$t,(qt+1)*$t);return Yt[Vt-1]=Tt.slice(Vt*$t),Yt}(Tt,Yt);oe(Pn,Kt,Ji,Yt,On);var fa=function Ie(Tt,$t,Vt,Yt){var qt=Tt.length,Kt=[],In=[],Wn=[],Pn=[],On=Yt-1,Fn=0,hi=0,vi=0,Fi=0;for(Fn=0;Fn<qt;++Fn)if(Wn=[],(vi=Fn+$t)>=qt&&(vi-=qt),!In[vi]){Pn=[];var bi=[];for(hi=vi;hi>=0;){bi[hi]=!0,In[hi]=!0,Wn[Wn.length]=hi,Pn.push(Tt[hi]);var Mi=Vt[Math.floor(4*hi/Yt)];if(Yt<4+(Fi=4*hi&On))throw new Error("FAT boundary crossed: "+hi+" 4 "+Yt);if(!Tt[Mi]||bi[hi=kf(Tt[Mi],Fi)])break}Kt[vi]={nodes:Wn,data:LS([Pn])}}return Kt}(Ji,In,On,Yt);fa[In].name="!Directory",qt>0&&Wn!==Xn&&(fa[Wn].name="!MiniFAT"),fa[On[0]].name="!FAT",fa.fat_addrs=On,fa.ssz=Yt;var ho=[],jl=[],Tv=[];(function Ye(Tt,$t,Vt,Yt,qt,Kt,In,Wn){for(var Fi,Pn=0,On=Yt.length?2:0,Fn=$t[Tt].data,hi=0,vi=0;hi<Fn.length;hi+=128){var bi=Fn.slice(hi,hi+128);os(bi,64),vi=bi.read_shift(2),Fi=tw(bi,0,vi-On),Yt.push(Fi);var Mi={name:Fi,type:bi.read_shift(1),color:bi.read_shift(1),L:bi.read_shift(4,"i"),R:bi.read_shift(4,"i"),C:bi.read_shift(4,"i"),clsid:bi.read_shift(16),state:bi.read_shift(4,"i"),start:0,size:0};0!==bi.read_shift(2)+bi.read_shift(2)+bi.read_shift(2)+bi.read_shift(2)&&(Mi.ct=Pt(bi,bi.l-8)),0!==bi.read_shift(2)+bi.read_shift(2)+bi.read_shift(2)+bi.read_shift(2)&&(Mi.mt=Pt(bi,bi.l-8)),Mi.start=bi.read_shift(4,"i"),Mi.size=bi.read_shift(4,"i"),Mi.size<0&&Mi.start<0&&(Mi.size=Mi.type=0,Mi.start=Xn,Mi.name=""),5===Mi.type?(Pn=Mi.start,qt>0&&Pn!==Xn&&($t[Pn].name="!StreamData")):Mi.size>=4096?(Mi.storage="fat",void 0===$t[Mi.start]&&($t[Mi.start]=Ne(Vt,Mi.start,$t.fat_addrs,$t.ssz)),$t[Mi.start].name=Mi.name,Mi.content=$t[Mi.start].data.slice(0,Mi.size)):(Mi.storage="minifat",Mi.size<0?Mi.size=0:Pn!==Xn&&Mi.start!==Xn&&$t[Pn]&&(Mi.content=j(Mi,$t[Pn].data,($t[Wn]||{}).data))),Mi.content&&os(Mi.content,0),Kt[Fi]=Mi,In.push(Mi)}})(In,fa,Ji,ho,qt,{},jl,Wn),function z(Tt,$t,Vt){for(var Yt=0,qt=0,Kt=0,In=0,Wn=0,Pn=Vt.length,On=[],Fn=[];Yt<Pn;++Yt)On[Yt]=Fn[Yt]=Yt,$t[Yt]=Vt[Yt];for(;Wn<Fn.length;++Wn)qt=Tt[Yt=Fn[Wn]].L,Kt=Tt[Yt].R,In=Tt[Yt].C,On[Yt]===Yt&&(-1!==qt&&On[qt]!==qt&&(On[Yt]=On[qt]),-1!==Kt&&On[Kt]!==Kt&&(On[Yt]=On[Kt])),-1!==In&&(On[In]=Yt),-1!==qt&&Yt!=On[Yt]&&(On[qt]=On[Yt],Fn.lastIndexOf(qt)<Wn&&Fn.push(qt)),-1!==Kt&&Yt!=On[Yt]&&(On[Kt]=On[Yt],Fn.lastIndexOf(Kt)<Wn&&Fn.push(Kt));for(Yt=1;Yt<Pn;++Yt)On[Yt]===Yt&&(-1!==Kt&&On[Kt]!==Kt?On[Yt]=On[Kt]:-1!==qt&&On[qt]!==qt&&(On[Yt]=On[qt]));for(Yt=1;Yt<Pn;++Yt)if(0!==Tt[Yt].type){if((Wn=Yt)!=On[Wn])do{$t[Yt]=$t[Wn=On[Wn]]+"/"+$t[Yt]}while(0!==Wn&&-1!==On[Wn]&&Wn!=On[Wn]);On[Yt]=-1}for($t[0]+="/",Yt=1;Yt<Pn;++Yt)2!==Tt[Yt].type&&($t[Yt]+="/")}(jl,Tv,ho),ho.shift();var Ev={FileIndex:jl,FullPaths:Tv};return $t&&$t.raw&&(Ev.raw={header:vi,sectors:Ji}),Ev}function j(Tt,$t,Vt){for(var qt=Tt.size,Kt=[],In=Tt.start;Vt&&qt>0&&In>=0;)Kt.push($t.slice(In*mn,In*mn+mn)),qt-=mn,In=kf(Vt,4*In);return 0===Kt.length?Vn(0):Bo(Kt).slice(0,Tt.size)}function oe(Tt,$t,Vt,Yt,qt){var Kt=Xn;if(Tt===Xn){if(0!==$t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==Tt){var In=Vt[Tt],Wn=(Yt>>>2)-1;if(!In)return;for(var Pn=0;Pn<Wn&&(Kt=kf(In,4*Pn))!==Xn;++Pn)qt.push(Kt);oe(kf(In,Yt-4),$t-1,Vt,Yt,qt)}}function Ne(Tt,$t,Vt,Yt,qt){var Kt=[],In=[];qt||(qt=[]);var Wn=Yt-1,Pn=0,On=0;for(Pn=$t;Pn>=0;){qt[Pn]=!0,Kt[Kt.length]=Pn,In.push(Tt[Pn]);var Fn=Vt[Math.floor(4*Pn/Yt)];if(Yt<4+(On=4*Pn&Wn))throw new Error("FAT boundary crossed: "+Pn+" 4 "+Yt);if(!Tt[Fn])break;Pn=kf(Tt[Fn],On)}return{nodes:Kt,data:LS([In])}}function Pt(Tt,$t){return new Date(1e3*(Zo(Tt,$t+4)/1e7*Math.pow(2,32)+Zo(Tt,$t)/1e7-11644473600))}function kt(Tt,$t){var Vt=$t||{},Yt=Vt.root||"Root Entry";if(Tt.FullPaths||(Tt.FullPaths=[]),Tt.FileIndex||(Tt.FileIndex=[]),Tt.FullPaths.length!==Tt.FileIndex.length)throw new Error("inconsistent CFB structure");0===Tt.FullPaths.length&&(Tt.FullPaths[0]=Yt+"/",Tt.FileIndex[0]={name:Yt,type:5}),Vt.CLSID&&(Tt.FileIndex[0].clsid=Vt.CLSID),function en(Tt){var $t="\x01Sh33tJ5";if(!Zi.find(Tt,"/"+$t)){var Vt=Vn(4);Vt[0]=55,Vt[1]=Vt[3]=50,Vt[2]=54,Tt.FileIndex.push({name:$t,type:2,content:Vt,size:4,L:69,R:69,C:69}),Tt.FullPaths.push(Tt.FullPaths[0]+$t),tn(Tt)}}(Tt)}function tn(Tt,$t){kt(Tt);for(var Vt=!1,Yt=!1,qt=Tt.FullPaths.length-1;qt>=0;--qt){var Kt=Tt.FileIndex[qt];switch(Kt.type){case 0:Yt?Vt=!0:(Tt.FileIndex.pop(),Tt.FullPaths.pop());break;case 1:case 2:case 5:Yt=!0,isNaN(Kt.R*Kt.L*Kt.C)&&(Vt=!0),Kt.R>-1&&Kt.L>-1&&Kt.R==Kt.L&&(Vt=!0);break;default:Vt=!0}}if(Vt||$t){var In=new Date(1987,1,19),Wn=0,Pn=Object.create?Object.create(null):{},On=[];for(qt=0;qt<Tt.FullPaths.length;++qt)Pn[Tt.FullPaths[qt]]=!0,0!==Tt.FileIndex[qt].type&&On.push([Tt.FullPaths[qt],Tt.FileIndex[qt]]);for(qt=0;qt<On.length;++qt){var Fn=r(On[qt][0]);(Yt=Pn[Fn])||(On.push([Fn,{name:a(Fn).replace("/",""),type:1,clsid:Un,ct:In,mt:In,content:null}]),Pn[Fn]=!0)}for(On.sort(function(Fi,bi){return function e(Tt,$t){for(var Vt=Tt.split("/"),Yt=$t.split("/"),qt=0,Kt=0,In=Math.min(Vt.length,Yt.length);qt<In;++qt){if(Kt=Vt[qt].length-Yt[qt].length)return Kt;if(Vt[qt]!=Yt[qt])return Vt[qt]<Yt[qt]?-1:1}return Vt.length-Yt.length}(Fi[0],bi[0])}),Tt.FullPaths=[],Tt.FileIndex=[],qt=0;qt<On.length;++qt)Tt.FullPaths[qt]=On[qt][0],Tt.FileIndex[qt]=On[qt][1];for(qt=0;qt<On.length;++qt){var hi=Tt.FileIndex[qt],vi=Tt.FullPaths[qt];if(hi.name=a(vi).replace("/",""),hi.L=hi.R=hi.C=-(hi.color=1),hi.size=hi.content?hi.content.length:0,hi.start=0,hi.clsid=hi.clsid||Un,0===qt)hi.C=On.length>1?1:-1,hi.size=0,hi.type=5;else if("/"==vi.slice(-1)){for(Wn=qt+1;Wn<On.length&&r(Tt.FullPaths[Wn])!=vi;++Wn);for(hi.C=Wn>=On.length?-1:Wn,Wn=qt+1;Wn<On.length&&r(Tt.FullPaths[Wn])!=r(vi);++Wn);hi.R=Wn>=On.length?-1:Wn,hi.type=1}else r(Tt.FullPaths[qt+1]||"")==r(vi)&&(hi.R=qt+1),hi.type=2}}}function xn(Tt,$t){var Vt=$t||{};if("mad"==Vt.fileType)return function Nj(Tt,$t){for(var Vt=$t||{},Yt=Vt.boundary||"SheetJS",qt=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(Yt="------="+Yt).slice(2)+'"',"","",""],Kt=Tt.FullPaths[0],In=Kt,Wn=Tt.FileIndex[0],Pn=1;Pn<Tt.FullPaths.length;++Pn)if(In=Tt.FullPaths[Pn].slice(Kt.length),(Wn=Tt.FileIndex[Pn]).size&&Wn.content&&"\x01Sh33tJ5"!=In){In=In.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Ji){return"_x"+Ji.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Ji){return"_u"+Ji.charCodeAt(0).toString(16)+"_"});for(var On=Wn.content,Fn=pr&&Buffer.isBuffer(On)?On.toString("binary"):ti(On),hi=0,vi=Math.min(1024,Fn.length),Fi=0,bi=0;bi<=vi;++bi)(Fi=Fn.charCodeAt(bi))>=32&&Fi<128&&++hi;var Mi=hi>=4*vi/5;qt.push(Yt),qt.push("Content-Location: "+(Vt.root||"file:///C:/SheetJS/")+In),qt.push("Content-Transfer-Encoding: "+(Mi?"quoted-printable":"base64")),qt.push("Content-Type: "+Ij(Wn,In)),qt.push(""),qt.push(Mi?Pj(Fn):Oj(Fn))}return qt.push(Yt+"--\r\n"),qt.join("\r\n")}(Tt,Vt);if("zip"===(tn(Tt),Vt.fileType))return function kj(Tt,$t){var Vt=$t||{},Yt=[],qt=[],Kt=Vn(1),In=Vt.compression?8:0,Wn=0,On=0,Fn=0,hi=0,vi=0,Fi=Tt.FullPaths[0],bi=Fi,Mi=Tt.FileIndex[0],Ji=[],fa=0;for(On=1;On<Tt.FullPaths.length;++On)if(bi=Tt.FullPaths[On].slice(Fi.length),(Mi=Tt.FileIndex[On]).size&&Mi.content&&"\x01Sh33tJ5"!=bi){var ml=hi,ho=Vn(bi.length);for(Fn=0;Fn<bi.length;++Fn)ho.write_shift(1,127&bi.charCodeAt(Fn));ho=ho.slice(0,ho.l),Ji[vi]=qR.buf(Mi.content,0);var jl=Mi.content;8==In&&(jl=on(jl)),(Kt=Vn(30)).write_shift(4,67324752),Kt.write_shift(2,20),Kt.write_shift(2,Wn),Kt.write_shift(2,In),Mi.mt?o(Kt,Mi.mt):Kt.write_shift(4,0),Kt.write_shift(-4,8&Wn?0:Ji[vi]),Kt.write_shift(4,8&Wn?0:jl.length),Kt.write_shift(4,8&Wn?0:Mi.content.length),Kt.write_shift(2,ho.length),Kt.write_shift(2,0),hi+=Kt.length,Yt.push(Kt),hi+=ho.length,Yt.push(ho),hi+=jl.length,Yt.push(jl),8&Wn&&((Kt=Vn(12)).write_shift(-4,Ji[vi]),Kt.write_shift(4,jl.length),Kt.write_shift(4,Mi.content.length),hi+=Kt.l,Yt.push(Kt)),(Kt=Vn(46)).write_shift(4,33639248),Kt.write_shift(2,0),Kt.write_shift(2,20),Kt.write_shift(2,Wn),Kt.write_shift(2,In),Kt.write_shift(4,0),Kt.write_shift(-4,Ji[vi]),Kt.write_shift(4,jl.length),Kt.write_shift(4,Mi.content.length),Kt.write_shift(2,ho.length),Kt.write_shift(2,0),Kt.write_shift(2,0),Kt.write_shift(2,0),Kt.write_shift(2,0),Kt.write_shift(4,0),Kt.write_shift(4,ml),fa+=Kt.l,qt.push(Kt),fa+=ho.length,qt.push(ho),++vi}return(Kt=Vn(22)).write_shift(4,101010256),Kt.write_shift(2,0),Kt.write_shift(2,0),Kt.write_shift(2,vi),Kt.write_shift(2,vi),Kt.write_shift(4,fa),Kt.write_shift(4,hi),Kt.write_shift(2,0),Bo([Bo(Yt),Bo(qt),Kt])}(Tt,Vt);var Yt=function(Fi){for(var bi=0,Mi=0,Ji=0;Ji<Fi.FileIndex.length;++Ji){var fa=Fi.FileIndex[Ji];if(fa.content){var ml=fa.content.length;ml>0&&(ml<4096?bi+=ml+63>>6:Mi+=ml+511>>9)}}for(var ho=Fi.FullPaths.length+3>>2,Tv=bi+127>>7,Ev=(bi+7>>3)+Mi+ho+Tv,zf=Ev+127>>7,D2=zf<=109?0:Math.ceil((zf-109)/127);Ev+zf+D2+127>>7>zf;)D2=++zf<=109?0:Math.ceil((zf-109)/127);var ru=[1,D2,zf,Tv,ho,Mi,bi,0];return Fi.FileIndex[0].size=bi<<6,ru[7]=(Fi.FileIndex[0].start=ru[0]+ru[1]+ru[2]+ru[3]+ru[4]+ru[5])+(ru[6]+7>>3),ru}(Tt),qt=Vn(Yt[7]<<9),Kt=0,In=0;for(Kt=0;Kt<8;++Kt)qt.write_shift(1,$n[Kt]);for(Kt=0;Kt<8;++Kt)qt.write_shift(2,0);for(qt.write_shift(2,62),qt.write_shift(2,3),qt.write_shift(2,65534),qt.write_shift(2,9),qt.write_shift(2,6),Kt=0;Kt<3;++Kt)qt.write_shift(2,0);for(qt.write_shift(4,0),qt.write_shift(4,Yt[2]),qt.write_shift(4,Yt[0]+Yt[1]+Yt[2]+Yt[3]-1),qt.write_shift(4,0),qt.write_shift(4,4096),qt.write_shift(4,Yt[3]?Yt[0]+Yt[1]+Yt[2]-1:Xn),qt.write_shift(4,Yt[3]),qt.write_shift(-4,Yt[1]?Yt[0]-1:Xn),qt.write_shift(4,Yt[1]),Kt=0;Kt<109;++Kt)qt.write_shift(-4,Kt<Yt[2]?Yt[1]+Kt:-1);if(Yt[1])for(In=0;In<Yt[1];++In){for(;Kt<236+127*In;++Kt)qt.write_shift(-4,Kt<Yt[2]?Yt[1]+Kt:-1);qt.write_shift(-4,In===Yt[1]-1?Xn:In+1)}var Wn=function(Fi){for(In+=Fi;Kt<In-1;++Kt)qt.write_shift(-4,Kt+1);Fi&&(++Kt,qt.write_shift(-4,Xn))};for(In=Kt=0,In+=Yt[1];Kt<In;++Kt)qt.write_shift(-4,Bn.DIFSECT);for(In+=Yt[2];Kt<In;++Kt)qt.write_shift(-4,Bn.FATSECT);Wn(Yt[3]),Wn(Yt[4]);for(var Pn=0,On=0,Fn=Tt.FileIndex[0];Pn<Tt.FileIndex.length;++Pn)(Fn=Tt.FileIndex[Pn]).content&&!((On=Fn.content.length)<4096)&&(Fn.start=In,Wn(On+511>>9));for(Wn(Yt[6]+7>>3);511&qt.l;)qt.write_shift(-4,Bn.ENDOFCHAIN);for(In=Kt=0,Pn=0;Pn<Tt.FileIndex.length;++Pn)(Fn=Tt.FileIndex[Pn]).content&&(On=Fn.content.length)&&!(On>=4096)&&(Fn.start=In,Wn(On+63>>6));for(;511&qt.l;)qt.write_shift(-4,Bn.ENDOFCHAIN);for(Kt=0;Kt<Yt[4]<<2;++Kt){var hi=Tt.FullPaths[Kt];if(hi&&0!==hi.length){Fn=Tt.FileIndex[Kt],0===Kt&&(Fn.start=Fn.size?Fn.start-1:Xn);var vi=0===Kt&&Vt.root||Fn.name;if(On=2*(vi.length+1),qt.write_shift(64,vi,"utf16le"),qt.write_shift(2,On),qt.write_shift(1,Fn.type),qt.write_shift(1,Fn.color),qt.write_shift(-4,Fn.L),qt.write_shift(-4,Fn.R),qt.write_shift(-4,Fn.C),Fn.clsid)qt.write_shift(16,Fn.clsid,"hex");else for(Pn=0;Pn<4;++Pn)qt.write_shift(4,0);qt.write_shift(4,Fn.state||0),qt.write_shift(4,0),qt.write_shift(4,0),qt.write_shift(4,0),qt.write_shift(4,0),qt.write_shift(4,Fn.start),qt.write_shift(4,Fn.size),qt.write_shift(4,0)}else{for(Pn=0;Pn<17;++Pn)qt.write_shift(4,0);for(Pn=0;Pn<3;++Pn)qt.write_shift(4,-1);for(Pn=0;Pn<12;++Pn)qt.write_shift(4,0)}}for(Kt=1;Kt<Tt.FileIndex.length;++Kt)if((Fn=Tt.FileIndex[Kt]).size>=4096)if(qt.l=Fn.start+1<<9,pr&&Buffer.isBuffer(Fn.content))Fn.content.copy(qt,qt.l,0,Fn.size),qt.l+=Fn.size+511&-512;else{for(Pn=0;Pn<Fn.size;++Pn)qt.write_shift(1,Fn.content[Pn]);for(;511&Pn;++Pn)qt.write_shift(1,0)}for(Kt=1;Kt<Tt.FileIndex.length;++Kt)if((Fn=Tt.FileIndex[Kt]).size>0&&Fn.size<4096)if(pr&&Buffer.isBuffer(Fn.content))Fn.content.copy(qt,qt.l,0,Fn.size),qt.l+=Fn.size+63&-64;else{for(Pn=0;Pn<Fn.size;++Pn)qt.write_shift(1,Fn.content[Pn]);for(;63&Pn;++Pn)qt.write_shift(1,0)}if(pr)qt.l=qt.length;else for(;qt.l<qt.length;)qt.write_shift(1,0);return qt}n.version="1.2.1";var qn,mn=64,Xn=-2,gi="d0cf11e0a1b11ae1",$n=[208,207,17,224,161,177,26,225],Un="00000000000000000000000000000000",Bn={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:Xn,FREESECT:-1,HEADER_SIGNATURE:gi,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:Un,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function ti(Tt){for(var $t=new Array(Tt.length),Vt=0;Vt<Tt.length;++Vt)$t[Vt]=String.fromCharCode(Tt[Vt]);return $t.join("")}function on(Tt){return qn?qn.deflateRawSync(Tt):vr(Tt)}for(var Tt,$t,hn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],zn=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],di=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],oi=typeof Uint8Array<"u",ei=oi?new Uint8Array(256):[],Ki=0;Ki<256;++Ki)ei[Ki]=(void 0,255&(($t=139536&((Tt=Ki)<<1|Tt<<11)|558144&(Tt<<5|Tt<<15))>>16|$t>>8|$t));function sn(Tt,$t){var Vt=ei[255&Tt];return $t<=8?Vt>>>8-$t:(Vt=Vt<<8|ei[Tt>>8&255],$t<=16?Vt>>>16-$t:(Vt=Vt<<8|ei[Tt>>16&255])>>>24-$t)}function Gr(Tt,$t){var Vt=7&$t,Yt=$t>>>3;return(Tt[Yt]|(Vt<=6?0:Tt[Yt+1]<<8))>>>Vt&3}function br(Tt,$t){var Vt=7&$t,Yt=$t>>>3;return(Tt[Yt]|(Vt<=5?0:Tt[Yt+1]<<8))>>>Vt&7}function yr(Tt,$t){var Vt=7&$t,Yt=$t>>>3;return(Tt[Yt]|(Vt<=3?0:Tt[Yt+1]<<8))>>>Vt&31}function Ii(Tt,$t){var Vt=7&$t,Yt=$t>>>3;return(Tt[Yt]|(Vt<=1?0:Tt[Yt+1]<<8))>>>Vt&127}function Ja(Tt,$t,Vt){var Yt=7&$t,qt=$t>>>3,In=Tt[qt]>>>Yt;return Vt<8-Yt||(In|=Tt[qt+1]<<8-Yt,Vt<16-Yt)||(In|=Tt[qt+2]<<16-Yt,Vt<24-Yt)||(In|=Tt[qt+3]<<24-Yt),In&(1<<Vt)-1}function gc(Tt,$t,Vt){var Yt=7&$t,qt=$t>>>3;return Yt<=5?Tt[qt]|=(7&Vt)<<Yt:(Tt[qt]|=Vt<<Yt&255,Tt[qt+1]=(7&Vt)>>8-Yt),$t+3}function bd(Tt,$t,Vt){return Tt[$t>>>3]|=Vt=(1&Vt)<<(7&$t),$t+1}function nu(Tt,$t,Vt){var qt=$t>>>3;return Tt[qt]|=255&(Vt<<=7&$t),Tt[qt+1]=Vt>>>=8,$t+8}function Cv(Tt,$t,Vt){var qt=$t>>>3;return Tt[qt]|=255&(Vt<<=7&$t),Tt[qt+1]=255&(Vt>>>=8),Tt[qt+2]=Vt>>>8,$t+16}function _h(Tt,$t){var Vt=Tt.length,Yt=2*Vt>$t?2*Vt:$t+5,qt=0;if(Vt>=$t)return Tt;if(pr){var Kt=QA(Yt);if(Tt.copy)Tt.copy(Kt);else for(;qt<Tt.length;++qt)Kt[qt]=Tt[qt];return Kt}if(oi){var In=new Uint8Array(Yt);if(In.set)In.set(Tt);else for(;qt<Vt;++qt)In[qt]=Tt[qt];return In}return Tt.length=Yt,Tt}function Hl(Tt){for(var $t=new Array(Tt),Vt=0;Vt<Tt;++Vt)$t[Vt]=0;return $t}function iu(Tt,$t,Vt){var Yt=1,qt=0,Kt=0,In=0,Wn=0,Pn=Tt.length,On=oi?new Uint16Array(32):Hl(32);for(Kt=0;Kt<32;++Kt)On[Kt]=0;for(Kt=Pn;Kt<Vt;++Kt)Tt[Kt]=0;Pn=Tt.length;var Fn=oi?new Uint16Array(Pn):Hl(Pn);for(Kt=0;Kt<Pn;++Kt)On[qt=Tt[Kt]]++,Yt<qt&&(Yt=qt),Fn[Kt]=0;for(On[0]=0,Kt=1;Kt<=Yt;++Kt)On[Kt+16]=Wn=Wn+On[Kt-1]<<1;for(Kt=0;Kt<Pn;++Kt)0!=(Wn=Tt[Kt])&&(Fn[Kt]=On[Wn+16]++);var hi=0;for(Kt=0;Kt<Pn;++Kt)if(0!=(hi=Tt[Kt]))for(Wn=sn(Fn[Kt],Yt)>>Yt-hi,In=(1<<Yt+4-hi)-1;In>=0;--In)$t[Wn|In<<hi]=15&hi|Kt<<4;return Yt}var vh=oi?new Uint16Array(512):Hl(512),Dv=oi?new Uint16Array(32):Hl(32);if(!oi){for(var qs=0;qs<512;++qs)vh[qs]=0;for(qs=0;qs<32;++qs)Dv[qs]=0}!function(){for(var Tt=[],$t=0;$t<32;$t++)Tt.push(5);iu(Tt,Dv,32);var Vt=[];for($t=0;$t<=143;$t++)Vt.push(8);for(;$t<=255;$t++)Vt.push(9);for(;$t<=279;$t++)Vt.push(7);for(;$t<=287;$t++)Vt.push(8);iu(Vt,vh,288)}();var yd=function(){for(var $t=oi?new Uint8Array(32768):[],Vt=0,Yt=0;Vt<di.length-1;++Vt)for(;Yt<di[Vt+1];++Yt)$t[Yt]=Vt;for(;Yt<32768;++Yt)$t[Yt]=29;var qt=oi?new Uint8Array(259):[];for(Vt=0,Yt=0;Vt<zn.length-1;++Vt)for(;Yt<zn[Vt+1];++Yt)qt[Yt]=Vt;return function(Pn,On){return Pn.length<8?function Kt(Wn,Pn){for(var On=0;On<Wn.length;){var Fn=Math.min(65535,Wn.length-On);for(Pn.write_shift(1,+(On+Fn==Wn.length)),Pn.write_shift(2,Fn),Pn.write_shift(2,65535&~Fn);Fn-- >0;)Pn[Pn.l++]=Wn[On++]}return Pn.l}(Pn,On):function In(Wn,Pn){for(var On=0,Fn=0,hi=oi?new Uint16Array(32768):[];Fn<Wn.length;){var vi=Math.min(65535,Wn.length-Fn);if(vi<10){for(7&(On=gc(Pn,On,+(Fn+vi==Wn.length)))&&(On+=8-(7&On)),Pn.l=On/8|0,Pn.write_shift(2,vi),Pn.write_shift(2,65535&~vi);vi-- >0;)Pn[Pn.l++]=Wn[Fn++];On=8*Pn.l}else{On=gc(Pn,On,+(Fn+vi==Wn.length)+2);for(var Fi=0;vi-- >0;){var bi=Wn[Fn],Mi=-1,Ji=0;if((Mi=hi[Fi=32767&(Fi<<5^bi)])&&((Mi|=-32768&Fn)>Fn&&(Mi-=32768),Mi<Fn))for(;Wn[Mi+Ji]==Wn[Fn+Ji]&&Ji<250;)++Ji;if(Ji>2){(bi=qt[Ji])<=22?On=nu(Pn,On,ei[bi+1]>>1)-1:(nu(Pn,On,3),nu(Pn,On+=5,ei[bi-23]>>5),On+=3);var fa=bi<8?0:bi-4>>2;fa>0&&(Cv(Pn,On,Ji-zn[bi]),On+=fa),On=nu(Pn,On,ei[bi=$t[Fn-Mi]]>>3),On-=3;var ml=bi<4?0:bi-2>>1;ml>0&&(Cv(Pn,On,Fn-Mi-di[bi]),On+=ml);for(var ho=0;ho<Ji;++ho)hi[Fi]=32767&Fn,Fi=32767&(Fi<<5^Wn[Fn]),++Fn;vi-=Ji-1}else bi<=143?bi+=48:On=bd(Pn,On,1),On=nu(Pn,On,ei[bi]),hi[Fi]=32767&Fn,++Fn}On=nu(Pn,On,0)-1}}return Pn.l=(On+7)/8|0,Pn.l}(Pn,On)}}();function vr(Tt){var $t=Vn(50+Math.floor(1.1*Tt.length)),Vt=yd(Tt,$t);return $t.slice(0,Vt)}var Xa=oi?new Uint16Array(32768):Hl(32768),_c=oi?new Uint16Array(32768):Hl(32768),Eo=oi?new Uint16Array(128):Hl(128),Yf=1,gO=1;function Mj(Tt,$t){var Vt=yr(Tt,$t)+257,Yt=yr(Tt,$t+=5)+1,qt=function $r(Tt,$t){var Vt=7&$t,Yt=$t>>>3;return(Tt[Yt]|(Vt<=4?0:Tt[Yt+1]<<8))>>>Vt&15}(Tt,$t+=5)+4;$t+=4;for(var Kt=0,In=oi?new Uint8Array(19):Hl(19),Wn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Pn=1,On=oi?new Uint8Array(8):Hl(8),Fn=oi?new Uint8Array(8):Hl(8),hi=In.length,vi=0;vi<qt;++vi)In[hn[vi]]=Kt=br(Tt,$t),Pn<Kt&&(Pn=Kt),On[Kt]++,$t+=3;var Fi=0;for(On[0]=0,vi=1;vi<=Pn;++vi)Fn[vi]=Fi=Fi+On[vi-1]<<1;for(vi=0;vi<hi;++vi)0!=(Fi=In[vi])&&(Wn[vi]=Fn[Fi]++);var bi=0;for(vi=0;vi<hi;++vi)if(0!=(bi=In[vi])){Fi=ei[Wn[vi]]>>8-bi;for(var Mi=(1<<7-bi)-1;Mi>=0;--Mi)Eo[Fi|Mi<<bi]=7&bi|vi<<3}var Ji=[];for(Pn=1;Ji.length<Vt+Yt;)switch(Fi=Eo[Ii(Tt,$t)],$t+=7&Fi,Fi>>>=3){case 16:for(Kt=3+Gr(Tt,$t),$t+=2,Fi=Ji[Ji.length-1];Kt-- >0;)Ji.push(Fi);break;case 17:for(Kt=3+br(Tt,$t),$t+=3;Kt-- >0;)Ji.push(0);break;case 18:for(Kt=11+Ii(Tt,$t),$t+=7;Kt-- >0;)Ji.push(0);break;default:Ji.push(Fi),Pn<Fi&&(Pn=Fi)}var fa=Ji.slice(0,Vt),ml=Ji.slice(Vt);for(vi=Vt;vi<286;++vi)fa[vi]=0;for(vi=Yt;vi<30;++vi)ml[vi]=0;return Yf=iu(fa,Xa,286),gO=iu(ml,_c,30),$t}function _O(Tt,$t){var Yt=function Aj(Tt,$t){if(3==Tt[0]&&!(3&Tt[1]))return[ah($t),2];for(var Vt=0,Yt=0,qt=QA($t||1<<18),Kt=0,In=qt.length>>>0,Wn=0,Pn=0;!(1&Yt);)if(Yt=br(Tt,Vt),Vt+=3,Yt>>>1)for(Yt>>1==1?(Wn=9,Pn=5):(Vt=Mj(Tt,Vt),Wn=Yf,Pn=gO);;){!$t&&In<Kt+32767&&(In=(qt=_h(qt,Kt+32767)).length);var Fn=Ja(Tt,Vt,Wn),hi=Yt>>>1==1?vh[Fn]:Xa[Fn];if(Vt+=15&hi,(hi>>>=4)>>>8&255){if(256==hi)break;var vi=(hi-=257)<8?0:hi-4>>2;vi>5&&(vi=0);var Fi=Kt+zn[hi];vi>0&&(Fi+=Ja(Tt,Vt,vi),Vt+=vi),Fn=Ja(Tt,Vt,Pn),Vt+=15&(hi=Yt>>>1==1?Dv[Fn]:_c[Fn]);var bi=(hi>>>=4)<4?0:hi-2>>1,Mi=di[hi];for(bi>0&&(Mi+=Ja(Tt,Vt,bi),Vt+=bi),!$t&&In<Fi&&(In=(qt=_h(qt,Fi+100)).length);Kt<Fi;)qt[Kt]=qt[Kt-Mi],++Kt}else qt[Kt++]=hi}else{7&Vt&&(Vt+=8-(7&Vt));var On=Tt[Vt>>>3]|Tt[1+(Vt>>>3)]<<8;if(Vt+=32,On>0)for(!$t&&In<Kt+On&&(In=(qt=_h(qt,Kt+On)).length);On-- >0;)qt[Kt++]=Tt[Vt>>>3],Vt+=8}return $t?[qt,Vt+7>>>3]:[qt.slice(0,Kt),Vt+7>>>3]}(Tt.slice(Tt.l||0),$t);return Tt.l+=Yt[1],Yt[0]}function vO(Tt,$t){if(!Tt)throw new Error($t);typeof console<"u"&&console.error($t)}function bO(Tt,$t){var Vt=Tt;os(Vt,0);var Kt={FileIndex:[],FullPaths:[]};kt(Kt,{root:$t.root});for(var In=Vt.length-4;(80!=Vt[In]||75!=Vt[In+1]||5!=Vt[In+2]||6!=Vt[In+3])&&In>=0;)--In;Vt.l=In+4,Vt.l+=4;var Wn=Vt.read_shift(2);Vt.l+=6;var Pn=Vt.read_shift(4);for(Vt.l=Pn,In=0;In<Wn;++In){Vt.l+=20;var On=Vt.read_shift(4),Fn=Vt.read_shift(4),hi=Vt.read_shift(2),vi=Vt.read_shift(2),Fi=Vt.read_shift(2);Vt.l+=8;var bi=Vt.read_shift(4),Mi=u(Vt.slice(Vt.l+hi,Vt.l+hi+vi));Vt.l+=hi+vi+Fi;var Ji=Vt.l;Vt.l=bi+4,Sj(Vt,On,Fn,Kt,Mi),Vt.l=Ji}return Kt}function Sj(Tt,$t,Vt,Yt,qt){Tt.l+=2;var Kt=Tt.read_shift(2),In=Tt.read_shift(2),Wn=function l(Tt){var $t=65535&Tt.read_shift(2),Vt=65535&Tt.read_shift(2),Yt=new Date,qt=31&Vt,Kt=15&(Vt>>>=5);Vt>>>=4,Yt.setMilliseconds(0),Yt.setFullYear(Vt+1980),Yt.setMonth(Kt-1),Yt.setDate(qt);var In=31&$t,Wn=63&($t>>>=5);return Yt.setHours($t>>>=6),Yt.setMinutes(Wn),Yt.setSeconds(In<<1),Yt}(Tt);if(8257&Kt)throw new Error("Unsupported ZIP encryption");Tt.read_shift(4);for(var On=Tt.read_shift(4),Fn=Tt.read_shift(4),hi=Tt.read_shift(2),vi=Tt.read_shift(2),Fi="",bi=0;bi<hi;++bi)Fi+=String.fromCharCode(Tt[Tt.l++]);if(vi){var Mi=u(Tt.slice(Tt.l,Tt.l+vi));(Mi[21589]||{}).mt&&(Wn=Mi[21589].mt),((qt||{})[21589]||{}).mt&&(Wn=qt[21589].mt)}Tt.l+=vi;var Ji=Tt.slice(Tt.l,Tt.l+On);switch(In){case 8:Ji=function En(Tt,$t){if(!qn)return _O(Tt,$t);var Yt=new(0,qn.InflateRaw),qt=Yt._processChunk(Tt.slice(Tt.l),Yt._finishFlushFlag);return Tt.l+=Yt.bytesRead,qt}(Tt,Fn);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+In)}var fa=!1;8&Kt&&(134695760==Tt.read_shift(4)&&(Tt.read_shift(4),fa=!0),On=Tt.read_shift(4),Fn=Tt.read_shift(4)),On!=$t&&vO(fa,"Bad compressed size: "+$t+" != "+On),Fn!=Vt&&vO(fa,"Bad uncompressed size: "+Vt+" != "+Fn),C2(Yt,Fi,Ji,{unsafe:!0,mt:Wn})}var Ew={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Ij(Tt,$t){if(Tt.ctype)return Tt.ctype;var Vt=Tt.name||"",Yt=Vt.match(/\.([^\.]+)$/);return Yt&&Ew[Yt[1]]||$t&&(Yt=(Vt=$t).match(/[\.\\]([^\.\\])+$/))&&Ew[Yt[1]]?Ew[Yt[1]]:"application/octet-stream"}function Oj(Tt){for(var $t=W0(Tt),Vt=[],Yt=0;Yt<$t.length;Yt+=76)Vt.push($t.slice(Yt,Yt+76));return Vt.join("\r\n")+"\r\n"}function Pj(Tt){var $t=Tt.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(On){var Fn=On.charCodeAt(0).toString(16).toUpperCase();return"="+(1==Fn.length?"0"+Fn:Fn)});"\n"==($t=$t.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&($t="=0D"+$t.slice(1));for(var Vt=[],Yt=($t=$t.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),qt=0;qt<Yt.length;++qt){var Kt=Yt[qt];if(0!=Kt.length)for(var In=0;In<Kt.length;){var Wn=76,Pn=Kt.slice(In,In+Wn);"="==Pn.charAt(Wn-1)?Wn--:"="==Pn.charAt(Wn-2)?Wn-=2:"="==Pn.charAt(Wn-3)&&(Wn-=3),Pn=Kt.slice(In,In+Wn),(In+=Wn)<Kt.length&&(Pn+="="),Vt.push(Pn)}else Vt.push("")}return Vt.join("\r\n")}function Fj(Tt,$t,Vt){for(var In,Yt="",qt="",Kt="",Wn=0;Wn<10;++Wn){var Pn=$t[Wn];if(!Pn||Pn.match(/^\s*$/))break;var On=Pn.match(/^(.*?):\s*([^\s].*)$/);if(On)switch(On[1].toLowerCase()){case"content-location":Yt=On[2].trim();break;case"content-type":Kt=On[2].trim();break;case"content-transfer-encoding":qt=On[2].trim()}}switch(++Wn,qt.toLowerCase()){case"base64":In=Bl(Nl($t.slice(Wn).join("")));break;case"quoted-printable":In=function Rj(Tt){for(var $t=[],Vt=0;Vt<Tt.length;++Vt){for(var Yt=Tt[Vt];Vt<=Tt.length&&"="==Yt.charAt(Yt.length-1);)Yt=Yt.slice(0,Yt.length-1)+Tt[++Vt];$t.push(Yt)}for(var qt=0;qt<$t.length;++qt)$t[qt]=$t[qt].replace(/[=][0-9A-Fa-f]{2}/g,function(Kt){return String.fromCharCode(parseInt(Kt.slice(1),16))});return Bl($t.join("\r\n"))}($t.slice(Wn));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+qt)}var Fn=C2(Tt,Yt.slice(Vt.length),In,{unsafe:!0});Kt&&(Fn.ctype=Kt)}function C2(Tt,$t,Vt,Yt){var qt=Yt&&Yt.unsafe;qt||kt(Tt);var Kt=!qt&&Zi.find(Tt,$t);if(!Kt){var In=Tt.FullPaths[0];$t.slice(0,In.length)==In?In=$t:("/"!=In.slice(-1)&&(In+="/"),In=(In+$t).replace("//","/")),Kt={name:a($t),type:2},Tt.FileIndex.push(Kt),Tt.FullPaths.push(In),qt||Zi.utils.cfb_gc(Tt)}return Kt.content=Vt,Kt.size=Vt?Vt.length:0,Yt&&(Yt.CLSID&&(Kt.clsid=Yt.CLSID),Yt.mt&&(Kt.mt=Yt.mt),Yt.ct&&(Kt.ct=Yt.ct)),Kt}return n.find=function Cn(Tt,$t){var Vt=Tt.FullPaths.map(function(Pn){return Pn.toUpperCase()}),Yt=Vt.map(function(Pn){var On=Pn.split("/");return On[On.length-("/"==Pn.slice(-1)?2:1)]}),qt=!1;47===$t.charCodeAt(0)?(qt=!0,$t=Vt[0].slice(0,-1)+$t):qt=-1!==$t.indexOf("/");var Kt=$t.toUpperCase(),In=!0===qt?Vt.indexOf(Kt):Yt.indexOf(Kt);if(-1!==In)return Tt.FileIndex[In];var Wn=!Kt.match($0);for(Kt=Kt.replace(Cs,""),Wn&&(Kt=Kt.replace($0,"!")),In=0;In<Vt.length;++In)if((Wn?Vt[In].replace($0,"!"):Vt[In]).replace(Cs,"")==Kt||(Wn?Yt[In].replace($0,"!"):Yt[In]).replace(Cs,"")==Kt)return Tt.FileIndex[In];return null},n.read=function rn(Tt,$t){var Vt=$t&&$t.type;switch(Vt||pr&&Buffer.isBuffer(Tt)&&(Vt="buffer"),Vt||"base64"){case"file":return function Ut(Tt,$t){return _(),w(m.readFileSync(Tt),$t)}(Tt,$t);case"base64":return w(Bl(Nl(Tt)),$t);case"binary":return w(Bl(Tt),$t)}return w(Tt,$t)},n.parse=w,n.write=function ki(Tt,$t){var Vt=xn(Tt,$t);switch($t&&$t.type||"buffer"){case"file":return _(),m.writeFileSync($t.filename,Vt),Vt;case"binary":return"string"==typeof Vt?Vt:ti(Vt);case"base64":return W0("string"==typeof Vt?Vt:ti(Vt));case"buffer":if(pr)return Buffer.isBuffer(Vt)?Vt:qd(Vt);case"array":return"string"==typeof Vt?Bl(Vt):Vt}return Vt},n.writeFile=function li(Tt,$t,Vt){_();var Yt=xn(Tt,Vt);m.writeFileSync($t,Yt)},n.utils={cfb_new:function Bj(Tt){var $t={};return kt($t,Tt),$t},cfb_add:C2,cfb_del:function Uj(Tt,$t){kt(Tt);var Vt=Zi.find(Tt,$t);if(Vt)for(var Yt=0;Yt<Tt.FileIndex.length;++Yt)if(Tt.FileIndex[Yt]==Vt)return Tt.FileIndex.splice(Yt,1),Tt.FullPaths.splice(Yt,1),!0;return!1},cfb_mov:function Zj(Tt,$t,Vt){kt(Tt);var Yt=Zi.find(Tt,$t);if(Yt)for(var qt=0;qt<Tt.FileIndex.length;++qt)if(Tt.FileIndex[qt]==Yt)return Tt.FileIndex[qt].name=a(Vt),Tt.FullPaths[qt]=Vt,!0;return!1},cfb_gc:function Vj(Tt){tn(Tt,!0)},ReadShift:tv,CheckField:$S,prep_blob:os,bconcat:Bo,use_zlib:function Xt(Tt){try{var Vt=new(0,Tt.InflateRaw);if(Vt._processChunk(new Uint8Array([3,0]),Vt._finishFlushFlag),!Vt.bytesRead)throw new Error("zlib does not expose bytesRead");qn=Tt}catch(Yt){console.error("cannot use native zlib: "+(Yt.message||Yt))}},_deflateRaw:vr,_inflateRaw:_O,consts:Bn},n}();let ch;function QR(t){return"string"==typeof t?G0(t):Array.isArray(t)?function xR(t){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(t)}(t):t}function K0(t,n,e){if(typeof ch<"u"&&ch.writeFileSync)return e?ch.writeFileSync(t,n,e):ch.writeFileSync(t,n);if(typeof Deno<"u"){if(e&&"string"==typeof n)switch(e){case"utf8":n=new TextEncoder(e).encode(n);break;case"binary":n=G0(n);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,n)}var r="utf8"==e?md(n):n;if(typeof IE_SaveFile<"u")return IE_SaveFile(r,t);if(typeof Blob<"u"){var a=new Blob([QR(r)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(a,t);if(typeof saveAs<"u")return saveAs(a,t);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(a);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),chrome.downloads.download({url:o,filename:t,saveAs:!0});var l=document.createElement("a");if(null!=l.download)return l.download=t,l.href=o,document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),o}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var u=File(t);return u.open("w"),u.encoding="binary",Array.isArray(n)&&(n=oh(n)),u.write(n),u.close(),n}catch(m){if(!m.message||!m.message.match(/onstruct/))throw m}throw new Error("cannot save file "+t)}function Ba(t){for(var n=Object.keys(t),e=[],r=0;r<n.length;++r)Object.prototype.hasOwnProperty.call(t,n[r])&&e.push(n[r]);return e}function pS(t,n){for(var e=[],r=Ba(t),a=0;a!==r.length;++a)null==e[t[r[a]][n]]&&(e[t[r[a]][n]]=r[a]);return e}function K1(t){for(var n=[],e=Ba(t),r=0;r!==e.length;++r)n[t[e[r]]]=e[r];return n}function J1(t){for(var n=[],e=Ba(t),r=0;r!==e.length;++r)n[t[e[r]]]=parseInt(e[r],10);return n}var X1=new Date(1899,11,30,0,0,0);function Uo(t,n){var e=t.getTime();return n&&(e-=1263168e5),(e-(X1.getTime()+6e4*(t.getTimezoneOffset()-X1.getTimezoneOffset())))/864e5}var gS=new Date,XR=X1.getTime()+6e4*(gS.getTimezoneOffset()-X1.getTimezoneOffset()),_S=gS.getTimezoneOffset();function uM(t){var n=new Date;return n.setTime(24*t*60*60*1e3+XR),n.getTimezoneOffset()!==_S&&n.setTime(n.getTime()+6e4*(n.getTimezoneOffset()-_S)),n}var vS=new Date("2017-02-19T19:06:09.000Z"),bS=isNaN(vS.getFullYear())?new Date("2/19/17"):vS,t3=2017==bS.getFullYear();function Oa(t,n){var e=new Date(t);if(t3)return n>0?e.setTime(e.getTime()+60*e.getTimezoneOffset()*1e3):n<0&&e.setTime(e.getTime()-60*e.getTimezoneOffset()*1e3),e;if(t instanceof Date)return t;if(1917==bS.getFullYear()&&!isNaN(e.getFullYear())){var r=e.getFullYear();return t.indexOf(""+r)>-1||e.setFullYear(e.getFullYear()+100),e}var a=t.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return t.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function Sf(t,n){if(pr&&Buffer.isBuffer(t)){if(n){if(255==t[0]&&254==t[1])return md(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return md(function qA(t){for(var n=[],e=0;e<t.length>>1;++e)n[e]=String.fromCharCode(t.charCodeAt(2*e+1)+(t.charCodeAt(2*e)<<8));return n.join("")}(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder<"u")try{if(n){if(255==t[0]&&254==t[1])return md(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return md(new TextDecoder("utf-16be").decode(t.slice(2)))}var e={"\u20ac":"\x80","\u201a":"\x82",\u0192:"\x83","\u201e":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87",\u02c6:"\x88","\u2030":"\x89",\u0160:"\x8a","\u2039":"\x8b",\u0152:"\x8c",\u017d:"\x8e","\u2018":"\x91","\u2019":"\x92","\u201c":"\x93","\u201d":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02dc":"\x98","\u2122":"\x99",\u0161:"\x9a","\u203a":"\x9b",\u0153:"\x9c",\u017e:"\x9e",\u0178:"\x9f"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\u017d\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\u017e\u0178]/g,function(o){return e[o]||o})}catch{}for(var r=[],a=0;a!=t.length;++a)r.push(String.fromCharCode(t[a]));return r.join("")}function ta(t){if(typeof JSON<"u"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if("object"!=typeof t||null==t)return t;if(t instanceof Date)return new Date(t.getTime());var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=ta(t[e]));return n}function Ua(t,n){for(var e="";e.length<n;)e+=t;return e}function Vc(t){var n=Number(t);if(!isNaN(n))return isFinite(n)?n:NaN;if(!/\d/.test(t))return n;var e=1,r=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return e*=100,""});return isNaN(n=Number(r))&&(r=r.replace(/[(](.*)[)]/,function(a,o){return e=-e,o}),isNaN(n=Number(r)))?n:n/e}var n3=["january","february","march","april","may","june","july","august","september","october","november","december"];function Jp(t){var n=new Date(t),e=new Date(NaN),r=n.getYear(),a=n.getMonth(),o=n.getDate();if(isNaN(o))return e;var l=t.toLowerCase();if(l.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((l=l.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==n3.indexOf(l))return e}else if(l.match(/[a-z]/))return e;return r<0||r>8099?e:(a>0||o>1)&&101!=r?n:t.match(/[^-0-9:,\/\\]/)?e:n}function dr(t,n,e){if(t.FullPaths){var r;if("string"==typeof e)return r=pr?qd(e):function wR(t){for(var n=[],e=0,r=t.length+250,a=ah(t.length+255),o=0;o<t.length;++o){var l=t.charCodeAt(o);if(l<128)a[e++]=l;else if(l<2048)a[e++]=192|l>>6&31,a[e++]=128|63&l;else if(l>=55296&&l<57344){l=64+(1023&l);var u=1023&t.charCodeAt(++o);a[e++]=240|l>>8&7,a[e++]=128|l>>2&63,a[e++]=128|u>>6&15|(3&l)<<4,a[e++]=128|63&u}else a[e++]=224|l>>12&15,a[e++]=128|l>>6&63,a[e++]=128|63&l;e>r&&(n.push(a.slice(0,e)),e=0,a=ah(65535),r=65530)}return n.push(a.slice(0,e)),Bo(n)}(e),Zi.utils.cfb_add(t,n,r);Zi.utils.cfb_add(t,n,e)}else t.file(n,e)}function fM(){return Zi.utils.cfb_new()}var Za='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',mM=K1({""":'"',"'":"'",">":">","<":"<","&":"&"}),pM=/[&<>'"]/g,u3=/[\u0000-\u0008\u000b-\u001f]/g;function Wr(t){return(t+"").replace(pM,function(e){return mM[e]}).replace(u3,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function ES(t){return Wr(t).replace(/ /g,"_x0020_")}var MS=/[\u0000-\u001f]/g;function AS(t){return(t+"").replace(pM,function(e){return mM[e]}).replace(/\n/g,"<br/>").replace(MS,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function gM(t){for(var n="",e=0,r=0,a=0,o=0,l=0,u=0;e<t.length;)(r=t.charCodeAt(e++))<128?n+=String.fromCharCode(r):(a=t.charCodeAt(e++),r>191&&r<224?(l=(31&r)<<6,l|=63&a,n+=String.fromCharCode(l)):(o=t.charCodeAt(e++),r<240?n+=String.fromCharCode((15&r)<<12|(63&a)<<6|63&o):(u=((7&r)<<18|(63&a)<<12|(63&o)<<6|63&(l=t.charCodeAt(e++)))-65536,n+=String.fromCharCode(55296+(u>>>10&1023)),n+=String.fromCharCode(56320+(1023&u)))));return n}function kS(t){var e,r,u,n=ah(2*t.length),a=1,o=0,l=0;for(r=0;r<t.length;r+=a)a=1,(u=t.charCodeAt(r))<128?e=u:u<224?(e=64*(31&u)+(63&t.charCodeAt(r+1)),a=2):u<240?(e=4096*(15&u)+64*(63&t.charCodeAt(r+1))+(63&t.charCodeAt(r+2)),a=3):(a=4,e=262144*(7&u)+4096*(63&t.charCodeAt(r+1))+64*(63&t.charCodeAt(r+2))+(63&t.charCodeAt(r+3)),l=55296+((e-=65536)>>>10&1023),e=56320+(1023&e)),0!==l&&(n[o++]=255&l,n[o++]=l>>>8,l=0),n[o++]=e%256,n[o++]=e>>>8;return n.slice(0,o).toString("ucs2")}function IS(t){return qd(t,"binary").toString("utf8")}var ew="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",ua=pr&&(IS(ew)==gM(ew)&&IS||kS(ew)==gM(ew)&&kS)||gM,md=pr?function(t){return qd(t,"utf8").toString("binary")}:function(t){for(var n=[],e=0,r=0,a=0;e<t.length;)switch(r=t.charCodeAt(e++),!0){case r<128:n.push(String.fromCharCode(r));break;case r<2048:n.push(String.fromCharCode(192+(r>>6))),n.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,a=t.charCodeAt(e++)-56320+(r<<10),n.push(String.fromCharCode(240+(a>>18&7))),n.push(String.fromCharCode(144+(a>>12&63))),n.push(String.fromCharCode(128+(a>>6&63))),n.push(String.fromCharCode(128+(63&a)));break;default:n.push(String.fromCharCode(224+(r>>12))),n.push(String.fromCharCode(128+(r>>6&63))),n.push(String.fromCharCode(128+(63&r)))}return n.join("")},OS=function(){var t=[["nbsp"," "],["middot","\xb7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(n){return[new RegExp("&"+n[0]+";","ig"),n[1]]});return function(e){for(var r=e.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),a=0;a<t.length;++a)r=r.replace(t[a][0],t[a][1]);return r}}(),RS=/(^\s|\s$|\n)/;function as(t,n){return"<"+t+(n.match(RS)?' xml:space="preserve"':"")+">"+n+"</"+t+">"}function X0(t){return Ba(t).map(function(n){return" "+n+'="'+t[n]+'"'}).join("")}function pi(t,n,e){return"<"+t+(null!=e?X0(e):"")+(null!=n?(n.match(RS)?' xml:space="preserve"':"")+">"+n+"</"+t:"/")+">"}function _M(t,n){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(n)throw e}return""}var lo={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},dh=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Vl={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"},FS=function(t){for(var n=[],r=0;r<t[0].length;++r)if(t[0][r])for(var a=0,o=t[0][r].length;a<o;a+=10240)n.push.apply(n,t[0][r].slice(a,a+10240));return n},LS=pr?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(n){return Buffer.isBuffer(n)?n:qd(n)})):FS(t)}:FS,NS=function(t,n,e){for(var r=[],a=n;a<e;a+=2)r.push(String.fromCharCode(Kd(t,a)));return r.join("").replace(Cs,"")},tw=pr?function(t,n,e){return Buffer.isBuffer(t)?t.toString("utf16le",n,e).replace(Cs,""):NS(t,n,e)}:NS,BS=function(t,n,e){for(var r=[],a=n;a<n+e;++a)r.push(("0"+t[a].toString(16)).slice(-2));return r.join("")},US=pr?function(t,n,e){return Buffer.isBuffer(t)?t.toString("hex",n,n+e):BS(t,n,e)}:BS,ZS=function(t,n,e){for(var r=[],a=n;a<e;a++)r.push(String.fromCharCode(eg(t,a)));return r.join("")},Xp=pr?function(n,e,r){return Buffer.isBuffer(n)?n.toString("utf8",e,r):ZS(n,e,r)}:ZS,VS=function(t,n){var e=Zo(t,n);return e>0?Xp(t,n+4,n+4+e-1):""},bM=VS,HS=function(t,n){var e=Zo(t,n);return e>0?Xp(t,n+4,n+4+e-1):""},yM=HS,jS=function(t,n){var e=2*Zo(t,n);return e>0?Xp(t,n+4,n+4+e-1):""},xM=jS,YS=function(n,e){var r=Zo(n,e);return r>0?tw(n,e+4,e+4+r):""},wM=YS,zS=function(t,n){var e=Zo(t,n);return e>0?Xp(t,n+4,n+4+e):""},CM=zS,WS=function(t,n){return function b3(t,n){for(var e=1-2*(t[n+7]>>>7),r=((127&t[n+7])<<4)+(t[n+6]>>>4&15),a=15&t[n+6],o=5;o>=0;--o)a=256*a+t[n+o];return 2047==r?0==a?e*(1/0):NaN:(0==r?r=-1022:(r-=1023,a+=Math.pow(2,52)),e*Math.pow(2,r-52)*a)}(t,n)},nw=WS,DM=function(n){return Array.isArray(n)||typeof Uint8Array<"u"&&n instanceof Uint8Array};pr&&(bM=function(n,e){if(!Buffer.isBuffer(n))return VS(n,e);var r=n.readUInt32LE(e);return r>0?n.toString("utf8",e+4,e+4+r-1):""},yM=function(n,e){if(!Buffer.isBuffer(n))return HS(n,e);var r=n.readUInt32LE(e);return r>0?n.toString("utf8",e+4,e+4+r-1):""},xM=function(n,e){if(!Buffer.isBuffer(n))return jS(n,e);var r=2*n.readUInt32LE(e);return n.toString("utf16le",e+4,e+4+r-1)},wM=function(n,e){if(!Buffer.isBuffer(n))return YS(n,e);var r=n.readUInt32LE(e);return n.toString("utf16le",e+4,e+4+r)},CM=function(n,e){if(!Buffer.isBuffer(n))return zS(n,e);var r=n.readUInt32LE(e);return n.toString("utf8",e+4,e+4+r)},nw=function(n,e){return Buffer.isBuffer(n)?n.readDoubleLE(e):WS(n,e)},DM=function(n){return Buffer.isBuffer(n)||Array.isArray(n)||typeof Uint8Array<"u"&&n instanceof Uint8Array}),typeof Er<"u"&&function GS(){tw=function(t,n,e){return Er.utils.decode(1200,t.slice(n,e)).replace(Cs,"")},Xp=function(t,n,e){return Er.utils.decode(65001,t.slice(n,e))},bM=function(t,n){var e=Zo(t,n);return e>0?Er.utils.decode(Mf,t.slice(n+4,n+4+e-1)):""},yM=function(t,n){var e=Zo(t,n);return e>0?Er.utils.decode(Ll,t.slice(n+4,n+4+e-1)):""},xM=function(t,n){var e=2*Zo(t,n);return e>0?Er.utils.decode(1200,t.slice(n+4,n+4+e-1)):""},wM=function(t,n){var e=Zo(t,n);return e>0?Er.utils.decode(1200,t.slice(n+4,n+4+e)):""},CM=function(t,n){var e=Zo(t,n);return e>0?Er.utils.decode(65001,t.slice(n+4,n+4+e)):""}}();var eg=function(t,n){return t[n]},Kd=function(t,n){return 256*t[n+1]+t[n]},x3=function(t,n){var e=256*t[n+1]+t[n];return e<32768?e:-1*(65535-e+1)},Zo=function(t,n){return t[n+3]*(1<<24)+(t[n+2]<<16)+(t[n+1]<<8)+t[n]},kf=function(t,n){return t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]},w3=function(t,n){return t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]};function tv(t,n){var r,a,l,u,m,_,e="",o=[];switch(n){case"dbcs":if(_=this.l,pr&&Buffer.isBuffer(this))e=this.slice(this.l,this.l+2*t).toString("utf16le");else for(m=0;m<t;++m)e+=String.fromCharCode(Kd(this,_)),_+=2;t*=2;break;case"utf8":e=Xp(this,this.l,this.l+t);break;case"utf16le":e=tw(this,this.l,this.l+(t*=2));break;case"wstr":if(!(typeof Er<"u"))return tv.call(this,t,"dbcs");e=Er.utils.decode(Ll,this.slice(this.l,this.l+2*t)),t*=2;break;case"lpstr-ansi":e=bM(this,this.l),t=4+Zo(this,this.l);break;case"lpstr-cp":e=yM(this,this.l),t=4+Zo(this,this.l);break;case"lpwstr":e=xM(this,this.l),t=4+2*Zo(this,this.l);break;case"lpp4":t=4+Zo(this,this.l),e=wM(this,this.l),2&t&&(t+=2);break;case"8lpp4":t=4+Zo(this,this.l),e=CM(this,this.l),3&t&&(t+=4-(3&t));break;case"cstr":for(t=0,e="";0!==(l=eg(this,this.l+t++));)o.push(Y0(l));e=o.join("");break;case"_wstr":for(t=0,e="";0!==(l=Kd(this,this.l+t));)o.push(Y0(l)),t+=2;t+=2,e=o.join("");break;case"dbcs-cont":for(e="",_=this.l,m=0;m<t;++m){if(this.lens&&-1!==this.lens.indexOf(_))return l=eg(this,_),this.l=_+1,u=tv.call(this,t-m,l?"dbcs-cont":"sbcs-cont"),o.join("")+u;o.push(Y0(Kd(this,_))),_+=2}e=o.join(""),t*=2;break;case"cpstr":if(typeof Er<"u"){e=Er.utils.decode(Ll,this.slice(this.l,this.l+t));break}case"sbcs-cont":for(e="",_=this.l,m=0;m!=t;++m){if(this.lens&&-1!==this.lens.indexOf(_))return l=eg(this,_),this.l=_+1,u=tv.call(this,t-m,l?"dbcs-cont":"sbcs-cont"),o.join("")+u;o.push(Y0(eg(this,_))),_+=1}e=o.join("");break;default:switch(t){case 1:return r=eg(this,this.l),this.l++,r;case 2:return r=("i"===n?x3:Kd)(this,this.l),this.l+=2,r;case 4:case-4:return"i"!==n&&128&this[this.l+3]?(a=Zo(this,this.l),this.l+=4,a):(r=(t>0?kf:w3)(this,this.l),this.l+=4,r);case 8:case-8:if("f"===n)return a=8==t?nw(this,this.l):nw([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;t=8;case 16:e=US(this,this.l,t)}}return this.l+=t,e}var C3=function(t,n,e){t[e]=255&n,t[e+1]=n>>>8&255,t[e+2]=n>>>16&255,t[e+3]=n>>>24&255},D3=function(t,n,e){t[e]=255&n,t[e+1]=n>>8&255,t[e+2]=n>>16&255,t[e+3]=n>>24&255},T3=function(t,n,e){t[e]=255&n,t[e+1]=n>>>8&255};function E3(t,n,e){var r=0,a=0;if("dbcs"===e){for(a=0;a!=n.length;++a)T3(this,n.charCodeAt(a),this.l+2*a);r=2*n.length}else if("sbcs"===e){if(typeof Er<"u"&&874==Mf)for(a=0;a!=n.length;++a){var o=Er.utils.encode(Mf,n.charAt(a));this[this.l+a]=o[0]}else for(n=n.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=n.length;++a)this[this.l+a]=255&n.charCodeAt(a);r=n.length}else{if("hex"===e){for(;a<t;++a)this[this.l++]=parseInt(n.slice(2*a,2*a+2),16)||0;return this}if("utf16le"===e){var l=Math.min(this.l+t,this.length);for(a=0;a<Math.min(n.length,t);++a){var u=n.charCodeAt(a);this[this.l++]=255&u,this[this.l++]=u>>8}for(;this.l<l;)this[this.l++]=0;return this}switch(t){case 1:r=1,this[this.l]=255&n;break;case 2:r=2,this[this.l]=255&n,this[this.l+1]=255&(n>>>=8);break;case 3:r=3,this[this.l]=255&n,this[this.l+1]=255&(n>>>=8),this[this.l+2]=255&(n>>>=8);break;case 4:r=4,C3(this,n,this.l);break;case 8:if(r=8,"f"===e){!function y3(t,n,e){var r=(n<0||1/n==-1/0?1:0)<<7,a=0,o=0,l=r?-n:n;isFinite(l)?0==l?a=o=0:(a=Math.floor(Math.log(l)/Math.LN2),o=l*Math.pow(2,52-a),a<=-1023&&(!isFinite(o)||o<Math.pow(2,52))?a=-1022:(o-=Math.pow(2,52),a+=1023)):(a=2047,o=isNaN(n)?26985:0);for(var u=0;u<=5;++u,o/=256)t[e+u]=255&o;t[e+6]=(15&a)<<4|15&o,t[e+7]=a>>4|r}(this,n,this.l);break}case 16:break;case-4:r=4,D3(this,n,this.l)}}return this.l+=r,this}function $S(t,n){var e=US(this,this.l,t.length>>1);if(e!==t)throw new Error(n+"Expected "+t+" saw "+e);this.l+=t.length>>1}function os(t,n){t.l=n,t.read_shift=tv,t.chk=$S,t.write_shift=E3}function Ts(t,n){t.l+=n}function Vn(t){var n=ah(t);return os(n,0),n}function Ws(){var t=[],n=pr?256:2048,e=function(_){var w=Vn(_);return os(w,0),w},r=e(n),a=function(){r&&(r.length>r.l&&((r=r.slice(0,r.l)).l=r.length),r.length>0&&t.push(r),r=null)},o=function(_){return r&&_<r.length-r.l?r:(a(),r=e(Math.max(_+1,n)))};return{next:o,push:function(_){a(),null==(r=_).l&&(r.l=r.length),o(n)},end:function(){return a(),Bo(t)},_bufs:t}}function ni(t,n,e,r){var o,a=+n;if(!isNaN(a)){r||(r=bv[a].p||(e||[]).length||0),o=1+(a>=128?1:0)+1,r>=128&&++o,r>=16384&&++o,r>=2097152&&++o;var l=t.next(o);a<=127?l.write_shift(1,a):(l.write_shift(1,128+(127&a)),l.write_shift(1,a>>7));for(var u=0;4!=u;++u){if(!(r>=128)){l.write_shift(1,r);break}l.write_shift(1,128+(127&r)),r>>=7}r>0&&DM(e)&&t.push(e)}}function nv(t,n,e){var r=ta(t);if(n.s?(r.cRel&&(r.c+=n.s.c),r.rRel&&(r.r+=n.s.r)):(r.cRel&&(r.c+=n.c),r.rRel&&(r.r+=n.r)),!e||e.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function qS(t,n,e){var r=ta(t);return r.s=nv(r.s,n.s,e),r.e=nv(r.e,n.s,e),r}function iv(t,n){if(t.cRel&&t.c<0)for(t=ta(t);t.c<0;)t.c+=n>8?16384:256;if(t.rRel&&t.r<0)for(t=ta(t);t.r<0;)t.r+=n>8?1048576:n>5?65536:16384;var e=Wi(t);return!t.cRel&&null!=t.cRel&&(e=function S3(t){return t.replace(/^([A-Z])/,"$$$1")}(e)),!t.rRel&&null!=t.rRel&&(e=function M3(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(e)),e}function TM(t,n){return 0!=t.s.r||t.s.rRel||t.e.r!=(n.biff>=12?1048575:n.biff>=8?65536:16384)||t.e.rRel?0!=t.s.c||t.s.cRel||t.e.c!=(n.biff>=12?16383:255)||t.e.cRel?iv(t.s,n.biff)+":"+iv(t.e,n.biff):(t.s.rRel?"":"$")+Va(t.s.r)+":"+(t.e.rRel?"":"$")+Va(t.e.r):(t.s.cRel?"":"$")+ha(t.s.c)+":"+(t.e.cRel?"":"$")+ha(t.e.c)}function EM(t){return parseInt(function A3(t){return t.replace(/\$(\d+)$/,"$1")}(t),10)-1}function Va(t){return""+(t+1)}function MM(t){for(var n=function k3(t){return t.replace(/^\$([A-Z])/,"$1")}(t),e=0,r=0;r!==n.length;++r)e=26*e+n.charCodeAt(r)-64;return e-1}function ha(t){if(t<0)throw new Error("invalid column "+t);var n="";for(++t;t;t=Math.floor((t-1)/26))n=String.fromCharCode((t-1)%26+65)+n;return n}function Qa(t){for(var n=0,e=0,r=0;r<t.length;++r){var a=t.charCodeAt(r);a>=48&&a<=57?n=10*n+(a-48):a>=65&&a<=90&&(e=26*e+(a-64))}return{c:e-1,r:n-1}}function Wi(t){for(var n=t.c+1,e="";n;n=(n-1)/26|0)e=String.fromCharCode((n-1)%26+65)+e;return e+(t.r+1)}function Gs(t){var n=t.indexOf(":");return-1==n?{s:Qa(t),e:Qa(t)}:{s:Qa(t.slice(0,n)),e:Qa(t.slice(n+1))}}function ar(t,n){return typeof n>"u"||"number"==typeof n?ar(t.s,t.e):("string"!=typeof t&&(t=Wi(t)),"string"!=typeof n&&(n=Wi(n)),t==n?t:t+":"+n)}function Cr(t){var n={s:{c:0,r:0},e:{c:0,r:0}},e=0,r=0,a=0,o=t.length;for(e=0;r<o&&!((a=t.charCodeAt(r)-64)<1||a>26);++r)e=26*e+a;for(n.s.c=--e,e=0;r<o&&!((a=t.charCodeAt(r)-48)<0||a>9);++r)e=10*e+a;if(n.s.r=--e,r===o||10!=a)return n.e.c=n.s.c,n.e.r=n.s.r,n;for(++r,e=0;r!=o&&!((a=t.charCodeAt(r)-64)<1||a>26);++r)e=26*e+a;for(n.e.c=--e,e=0;r!=o&&!((a=t.charCodeAt(r)-48)<0||a>9);++r)e=10*e+a;return n.e.r=--e,n}function pd(t,n,e){return null==t||null==t.t||"z"==t.t?"":void 0!==t.w?t.w:("d"==t.t&&!t.z&&e&&e.dateNF&&(t.z=e.dateNF),"e"==t.t?Xd[t.v]||t.v:function QS(t,n){var e="d"==t.t&&n instanceof Date;if(null!=t.z)try{return t.w=Ul(t.z,e?Uo(n):n)}catch{}try{return t.w=Ul((t.XF||{}).numFmtId||(e?14:0),e?Uo(n):n)}catch{return""+n}}(t,null==n?t.v:n))}function uh(t,n){var e=n&&n.sheet?n.sheet:"Sheet1",r={};return r[e]=t,{SheetNames:[e],Sheets:r}}function KS(t,n,e){var r=e||{},a=t?Array.isArray(t):r.dense;null!=Na&&null==a&&(a=Na);var o=t||(a?[]:{}),l=0,u=0;if(o&&null!=r.origin){if("number"==typeof r.origin)l=r.origin;else{var m="string"==typeof r.origin?Qa(r.origin):r.origin;l=m.r,u=m.c}o["!ref"]||(o["!ref"]="A1:A1")}var _={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var w=Cr(o["!ref"]);_.s.c=w.s.c,_.s.r=w.s.r,_.e.c=Math.max(_.e.c,w.e.c),_.e.r=Math.max(_.e.r,w.e.r),-1==l&&(_.e.r=l=w.e.r+1)}for(var M=0;M!=n.length;++M)if(n[M]){if(!Array.isArray(n[M]))throw new Error("aoa_to_sheet expects an array of arrays");for(var O=0;O!=n[M].length;++O)if(!(typeof n[M][O]>"u")){var N={v:n[M][O]},z=l+M,j=u+O;if(_.s.r>z&&(_.s.r=z),_.s.c>j&&(_.s.c=j),_.e.r<z&&(_.e.r=z),_.e.c<j&&(_.e.c=j),!n[M][O]||"object"!=typeof n[M][O]||Array.isArray(n[M][O])||n[M][O]instanceof Date)if(Array.isArray(N.v)&&(N.f=n[M][O][1],N.v=N.v[0]),null===N.v)if(N.f)N.t="n";else if(r.nullError)N.t="e",N.v=0;else{if(!r.sheetStubs)continue;N.t="z"}else"number"==typeof N.v?N.t="n":"boolean"==typeof N.v?N.t="b":N.v instanceof Date?(N.z=r.dateNF||Yi[14],r.cellDates?(N.t="d",N.w=Ul(N.z,Uo(N.v))):(N.t="n",N.v=Uo(N.v),N.w=Ul(N.z,N.v))):N.t="s";else N=n[M][O];if(a)o[z]||(o[z]=[]),o[z][j]&&o[z][j].z&&(N.z=o[z][j].z),o[z][j]=N;else{var oe=Wi({c:j,r:z});o[oe]&&o[oe].z&&(N.z=o[oe].z),o[oe]=N}}}return _.s.c<1e7&&(o["!ref"]=ar(_)),o}function tg(t,n){return KS(null,t,n)}function Hc(t,n){return n||(n=Vn(4)),n.write_shift(4,t),n}function Es(t){var n=t.read_shift(4);return 0===n?"":t.read_shift(n,"dbcs")}function Vo(t,n){var e=!1;return null==n&&(e=!0,n=Vn(4+2*t.length)),n.write_shift(4,t.length),t.length>0&&n.write_shift(0,t,"dbcs"),e?n.slice(0,n.l):n}function P3(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function AM(t,n){var e=t.l,r=t.read_shift(1),a=Es(t),o=[],l={t:a,h:a};if(1&r){for(var u=t.read_shift(4),m=0;m!=u;++m)o.push(P3(t));l.r=o}else l.r=[{ich:0,ifnt:0}];return t.l=e+n,l}var L3=AM;function uc(t){var n=t.read_shift(4),e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:n,iStyleRef:e}}function If(t,n){return null==n&&(n=Vn(8)),n.write_shift(-4,t.c),n.write_shift(3,t.iStyleRef||t.s),n.write_shift(1,0),n}function Of(t){var n=t.read_shift(2);return n+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:n}}function Pf(t,n){return null==n&&(n=Vn(4)),n.write_shift(3,t.iStyleRef||t.s),n.write_shift(1,0),n}var B3=Es,JS=Vo;function SM(t){var n=t.read_shift(4);return 0===n||4294967295===n?"":t.read_shift(n,"dbcs")}function iw(t,n){var e=!1;return null==n&&(e=!0,n=Vn(127)),n.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&n.write_shift(0,t,"dbcs"),e?n.slice(0,n.l):n}var U3=Es,kM=SM,IM=iw;function OM(t){var n=t.slice(t.l,t.l+4),e=1&n[0],r=2&n[0];t.l+=4;var a=0===r?nw([0,0,0,0,252&n[0],n[1],n[2],n[3]],0):kf(n,0)>>2;return e?a/100:a}function XS(t,n){null==n&&(n=Vn(4));var e=0,r=0,a=100*t;if(t==(0|t)&&t>=-(1<<29)&&t<1<<29?r=1:a==(0|a)&&a>=-(1<<29)&&a<1<<29&&(r=1,e=1),!r)throw new Error("unsupported RkNumber "+t);n.write_shift(-4,((e?a:t)<<2)+(e+2))}function ek(t){var n={s:{},e:{}};return n.s.r=t.read_shift(4),n.e.r=t.read_shift(4),n.s.c=t.read_shift(4),n.e.c=t.read_shift(4),n}var Rf=ek,ng=function Z3(t,n){return n||(n=Vn(16)),n.write_shift(4,t.s.r),n.write_shift(4,t.e.r),n.write_shift(4,t.s.c),n.write_shift(4,t.e.c),n};function Ms(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function Ff(t,n){return(n||Vn(8)).write_shift(8,t,"f")}function rw(t,n){if(n||(n=Vn(8)),!t||t.auto)return n.write_shift(4,0),n.write_shift(4,0),n;null!=t.index?(n.write_shift(1,2),n.write_shift(1,t.index)):null!=t.theme?(n.write_shift(1,6),n.write_shift(1,t.theme)):(n.write_shift(1,5),n.write_shift(1,0));var e=t.tint||0;if(e>0?e*=32767:e<0&&(e*=32768),n.write_shift(2,e),t.rgb&&null==t.theme){var r=t.rgb||"FFFFFF";"number"==typeof r&&(r=("000000"+r.toString(16)).slice(-6)),n.write_shift(1,parseInt(r.slice(0,2),16)),n.write_shift(1,parseInt(r.slice(2,4),16)),n.write_shift(1,parseInt(r.slice(4,6),16)),n.write_shift(1,255)}else n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0);return n}var RM={1:{n:"CodePage",t:2},2:{n:"Category",t:80},3:{n:"PresentationFormat",t:80},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:80},15:{n:"Company",t:80},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:80},27:{n:"ContentStatus",t:80},28:{n:"Language",t:80},29:{n:"Version",t:80},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},FM={1:{n:"CodePage",t:2},2:{n:"Title",t:80},3:{n:"Subject",t:80},4:{n:"Author",t:80},5:{n:"Keywords",t:80},6:{n:"Comments",t:80},7:{n:"Template",t:80},8:{n:"LastAuthor",t:80},9:{n:"RevNumber",t:80},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:80},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function J3(t){return t.map(function(n){return[n>>16&255,n>>8&255,255&n]})}var Lf=ta(J3([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Xd={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},LM={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},lw={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function ak(t,n){var a,e=function JR(t){for(var n=[],e=Ba(t),r=0;r!==e.length;++r)null==n[t[e[r]]]&&(n[t[e[r]]]=[]),n[t[e[r]]].push(e[r]);return n}(LM),r=[];r[r.length]=Za,r[r.length]=pi("Types",null,{xmlns:lo.CT,"xmlns:xsd":lo.xsd,"xmlns:xsi":lo.xsi}),r=r.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(m){return pi("Default",null,{Extension:m[0],ContentType:m[1]})}));var o=function(m){t[m]&&t[m].length>0&&(r[r.length]=pi("Override",null,{PartName:("/"==(a=t[m][0])[0]?"":"/")+a,ContentType:lw[m][n.bookType]||lw[m].xlsx}))},l=function(m){(t[m]||[]).forEach(function(_){r[r.length]=pi("Override",null,{PartName:("/"==_[0]?"":"/")+_,ContentType:lw[m][n.bookType]||lw[m].xlsx})})},u=function(m){(t[m]||[]).forEach(function(_){r[r.length]=pi("Override",null,{PartName:("/"==_[0]?"":"/")+_,ContentType:e[m][0]})})};return o("workbooks"),l("sheets"),l("charts"),u("themes"),["strs","styles"].forEach(o),["coreprops","extprops","custprops"].forEach(u),u("vba"),u("comments"),u("threadedcomments"),u("drawings"),l("metadata"),u("people"),r.length>2&&(r[r.length]="</Types>",r[1]=r[1].replace("/>",">")),r.join("")}var or={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function rv(t){var n=t.lastIndexOf("/");return t.slice(0,n+1)+"_rels/"+t.slice(n+1)+".rels"}function ig(t){var n=[Za,pi("Relationships",null,{xmlns:lo.RELS})];return Ba(t["!id"]).forEach(function(e){n[n.length]=pi("Relationship",null,t["!id"][e])}),n.length>2&&(n[n.length]="</Relationships>",n[1]=n[1].replace("/>",">")),n.join("")}function Vr(t,n,e,r,a,o){if(a||(a={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),n<0)for(n=t["!idx"];t["!id"]["rId"+n];++n);if(t["!idx"]=n+1,a.Id="rId"+n,a.Type=r,a.Target=e,o?a.TargetMode=o:[or.HLINK,or.XPATH,or.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),t["!id"][a.Id])throw new Error("Cannot rewrite rId "+n);return t["!id"][a.Id]=a,t[("/"+a.Target).replace("//","/")]=a,n}function ok(t,n,e){return[' <rdf:Description rdf:about="'+t+'">\n',' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(e||"odf")+"#"+n+'"/>\n'," </rdf:Description>\n"].join("")}function aF(t,n){return[' <rdf:Description rdf:about="'+t+'">\n',' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+n+'"/>\n'," </rdf:Description>\n"].join("")}function sk(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+j0.version+"</meta:generator></office:meta></office:document-meta>"}var eu=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function BM(t,n,e,r,a){null!=a[t]||null==n||""===n||(a[t]=n,n=Wr(n),r[r.length]=e?pi(t,n,e):as(t,n))}function ck(t,n){var e=n||{},r=[Za,pi("cp:coreProperties",null,{"xmlns:cp":lo.CORE_PROPS,"xmlns:dc":lo.dc,"xmlns:dcterms":lo.dcterms,"xmlns:dcmitype":lo.dcmitype,"xmlns:xsi":lo.xsi})],a={};if(!t&&!e.Props)return r.join("");t&&(null!=t.CreatedDate&&BM("dcterms:created","string"==typeof t.CreatedDate?t.CreatedDate:_M(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},r,a),null!=t.ModifiedDate&&BM("dcterms:modified","string"==typeof t.ModifiedDate?t.ModifiedDate:_M(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},r,a));for(var o=0;o!=eu.length;++o){var l=eu[o],u=e.Props&&null!=e.Props[l[1]]?e.Props[l[1]]:t?t[l[1]]:null;!0===u?u="1":!1===u?u="0":"number"==typeof u&&(u=String(u)),null!=u&&BM(l[0],u,null,r,a)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var Nf=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],dk=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function hk(t){var n=[],e=pi;return t||(t={}),t.Application="SheetJS",n[n.length]=Za,n[n.length]=pi("Properties",null,{xmlns:lo.EXT_PROPS,"xmlns:vt":lo.vt}),Nf.forEach(function(r){if(void 0!==t[r[1]]){var a;switch(r[2]){case"string":a=Wr(String(t[r[1]]));break;case"bool":a=t[r[1]]?"true":"false"}void 0!==a&&(n[n.length]=e(r[0],a))}}),n[n.length]=e("HeadingPairs",e("vt:vector",e("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+e("vt:variant",e("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),n[n.length]=e("TitlesOfParts",e("vt:vector",t.SheetNames.map(function(r){return"<vt:lpstr>"+Wr(r)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),n.length>2&&(n[n.length]="</Properties>",n[1]=n[1].replace("/>",">")),n.join("")}function fk(t){var n=[Za,pi("Properties",null,{xmlns:lo.CUST_PROPS,"xmlns:vt":lo.vt})];if(!t)return n.join("");var e=1;return Ba(t).forEach(function(a){++e,n[n.length]=pi("property",function v3(t,n){switch(typeof t){case"string":var e=pi("vt:lpwstr",Wr(t));return n&&(e=e.replace(/"/g,"_x0022_")),e;case"number":return pi((0|t)==t?"vt:i4":"vt:r8",Wr(String(t)));case"boolean":return pi("vt:bool",t?"true":"false")}if(t instanceof Date)return pi("vt:filetime",_M(t));throw new Error("Unable to serialize "+t)}(t[a],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:Wr(a)})}),n.length>2&&(n[n.length]="</Properties>",n[1]=n[1].replace("/>",">")),n.join("")}var UM={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function bk(t,n){var e=Vn(4),r=Vn(4);switch(e.write_shift(4,80==t?31:t),t){case 3:r.write_shift(-4,n);break;case 5:(r=Vn(8)).write_shift(8,n,"f");break;case 11:r.write_shift(4,n?1:0);break;case 64:r=function mF(t){var e=("string"==typeof t?new Date(Date.parse(t)):t).getTime()/1e3+11644473600,r=e%Math.pow(2,32),a=(e-r)/Math.pow(2,32);a*=1e7;var o=(r*=1e7)/Math.pow(2,32)|0;o>0&&(r%=Math.pow(2,32),a+=o);var l=Vn(8);return l.write_shift(4,r),l.write_shift(4,a),l}(n);break;case 31:case 80:for((r=Vn(4+2*(n.length+1)+(n.length%2?0:2))).write_shift(4,n.length+1),r.write_shift(0,n,"dbcs");r.l!=r.length;)r.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}return Bo([e,r])}var xk=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function xF(t){switch(typeof t){case"boolean":return 11;case"number":return(0|t)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64}return-1}function wk(t,n,e){var r=Vn(8),a=[],o=[],l=8,u=0,m=Vn(8),_=Vn(8);if(m.write_shift(4,2),m.write_shift(4,1200),_.write_shift(4,1),o.push(m),a.push(_),l+=8+m.length,!n){(_=Vn(8)).write_shift(4,0),a.unshift(_);var w=[Vn(4)];for(w[0].write_shift(4,t.length),u=0;u<t.length;++u){var M=t[u][0];for((m=Vn(8+2*(M.length+1)+(M.length%2?0:2))).write_shift(4,u+2),m.write_shift(4,M.length+1),m.write_shift(0,M,"dbcs");m.l!=m.length;)m.write_shift(1,0);w.push(m)}m=Bo(w),o.unshift(m),l+=8+m.length}for(u=0;u<t.length;++u)if((!n||n[t[u][0]])&&!(xk.indexOf(t[u][0])>-1||dk.indexOf(t[u][0])>-1)&&null!=t[u][1]){var O=t[u][1],N=0;if(n){var z=e[N=+n[t[u][0]]];if("version"==z.p&&"string"==typeof O){var j=O.split(".");O=(+j[0]<<16)+(+j[1]||0)}m=bk(z.t,O)}else{var oe=xF(O);-1==oe&&(oe=31,O=String(O)),m=bk(oe,O)}o.push(m),(_=Vn(8)).write_shift(4,n?N:2+u),a.push(_),l+=8+m.length}var Ne=8*(o.length+1);for(u=0;u<o.length;++u)a[u].write_shift(4,Ne),Ne+=o[u].length;return r.write_shift(4,l),r.write_shift(4,o.length),Bo([r].concat(a).concat(o))}function Dk(t,n,e,r,a,o){var l=Vn(a?68:48),u=[l];l.write_shift(2,65534),l.write_shift(2,0),l.write_shift(4,842412599),l.write_shift(16,Zi.utils.consts.HEADER_CLSID,"hex"),l.write_shift(4,a?2:1),l.write_shift(16,n,"hex"),l.write_shift(4,a?68:48);var m=wk(t,e,r);if(u.push(m),a){var _=wk(a,null,null);l.write_shift(16,o,"hex"),l.write_shift(4,68+m.length),u.push(_)}return Bo(u)}function $s(t,n){return n||(n=Vn(2)),n.write_shift(2,+!!t),n}function co(t){return t.read_shift(2,"u")}function hc(t,n){return n||(n=Vn(2)),n.write_shift(2,t),n}function Ek(t,n,e){return e||(e=Vn(2)),e.write_shift(1,"e"==n?+t:+!!t),e.write_shift(1,"e"==n?1:0),e}function ov(t,n,e){var r=t.read_shift(e&&e.biff>=12?2:1),a="sbcs-cont",o=Ll;e&&e.biff>=8&&(Ll=1200),e&&8!=e.biff?12==e.biff&&(a="wstr"):t.read_shift(1)&&(a="dbcs-cont"),e.biff>=2&&e.biff<=5&&(a="cpstr");var u=r?t.read_shift(r,a):"";return Ll=o,u}function EF(t){var n=t.t||"",r=Vn(3);r.write_shift(2,n.length),r.write_shift(1,1);var a=Vn(2*n.length);return a.write_shift(2*n.length,n,"utf16le"),Bo([r,a])}function Mk(t,n,e){return e||(e=Vn(3+2*t.length)),e.write_shift(2,t.length),e.write_shift(1,1),e.write_shift(31,t,"utf16le"),e}function Ak(t,n){n||(n=Vn(6+2*t.length)),n.write_shift(4,1+t.length);for(var e=0;e<t.length;++e)n.write_shift(2,t.charCodeAt(e));return n.write_shift(2,0),n}function OF(t){var n=Vn(512),e=0,r=t.Target;"file://"==r.slice(0,7)&&(r=r.slice(7));var a=r.indexOf("#"),o=a>-1?31:23;switch(r.charAt(0)){case"#":o=28;break;case".":o&=-3}n.write_shift(4,2),n.write_shift(4,o);var l=[8,6815827,6619237,4849780,83];for(e=0;e<l.length;++e)n.write_shift(4,l[e]);if(28==o)Ak(r=r.slice(1),n);else if(2&o){for(l="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),e=0;e<l.length;++e)n.write_shift(1,parseInt(l[e],16));var u=a>-1?r.slice(0,a):r;for(n.write_shift(4,2*(u.length+1)),e=0;e<u.length;++e)n.write_shift(2,u.charCodeAt(e));n.write_shift(2,0),8&o&&Ak(a>-1?r.slice(a+1):"",n)}else{for(l="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),e=0;e<l.length;++e)n.write_shift(1,parseInt(l[e],16));for(var m=0;"../"==r.slice(3*m,3*m+3)||"..\\"==r.slice(3*m,3*m+3);)++m;for(n.write_shift(2,m),n.write_shift(4,r.length-3*m+1),e=0;e<r.length-3*m;++e)n.write_shift(1,255&r.charCodeAt(e+3*m));for(n.write_shift(1,0),n.write_shift(2,65535),n.write_shift(2,57005),e=0;e<6;++e)n.write_shift(4,0)}return n.slice(0,n.l)}function Zf(t,n,e,r){return r||(r=Vn(6)),r.write_shift(2,t),r.write_shift(2,n),r.write_shift(2,e||0),r}function FF(t,n,e){var r=e.biff>8?4:2;return[t.read_shift(r),t.read_shift(r,"i"),t.read_shift(r,"i")]}function uw(t){var n=t.read_shift(2),e=t.read_shift(2);return{s:{c:t.read_shift(2),r:n},e:{c:t.read_shift(2),r:e}}}function Ok(t,n){return n||(n=Vn(8)),n.write_shift(2,t.s.r),n.write_shift(2,t.e.r),n.write_shift(2,t.s.c),n.write_shift(2,t.e.c),n}function jM(t,n,e){var r=1536,a=16;switch(e.bookType){case"biff8":case"xla":break;case"biff5":r=1280,a=8;break;case"biff4":r=4,a=6;break;case"biff3":r=3,a=6;break;case"biff2":r=2,a=4;break;default:throw new Error("unsupported BIFF version")}var o=Vn(a);return o.write_shift(2,r),o.write_shift(2,n),a>4&&o.write_shift(2,29282),a>6&&o.write_shift(2,1997),a>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function GF(t,n){var e=!n||n.biff>=8?2:1,r=Vn(8+e*t.name.length);r.write_shift(4,t.pos),r.write_shift(1,t.hs||0),r.write_shift(1,t.dt),r.write_shift(1,t.name.length),n.biff>=8&&r.write_shift(1,1),r.write_shift(e*t.name.length,t.name,n.biff<8?"sbcs":"utf16le");var a=r.slice(0,r.l);return a.l=r.l,a}function h6(t,n,e,r){var a=e&&5==e.biff;r||(r=Vn(a?3+n.length:5+2*n.length)),r.write_shift(2,t),r.write_shift(a?1:2,n.length),a||r.write_shift(1,1),r.write_shift((a?1:2)*n.length,n,a?"sbcs":"utf16le");var o=r.length>r.l?r.slice(0,r.l):r;return null==o.l&&(o.l=o.length),o}function Nk(t,n,e,r){var a=e&&5==e.biff;r||(r=Vn(a?16:20)),r.write_shift(2,0),t.style?(r.write_shift(2,t.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,t.numFmtId||0),r.write_shift(2,n<<4));var o=0;return t.numFmtId>0&&a&&(o|=1024),r.write_shift(4,o),r.write_shift(4,0),a||r.write_shift(4,0),r.write_shift(2,0),r}function Z6(t){var n=Vn(24),e=Qa(t[0]);n.write_shift(2,e.r),n.write_shift(2,e.r),n.write_shift(2,e.c),n.write_shift(2,e.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)n.write_shift(1,parseInt(r[a],16));return Bo([n,OF(t[1])])}function H6(t){var n=t[1].Tooltip,e=Vn(10+2*(n.length+1));e.write_shift(2,2048);var r=Qa(t[0]);e.write_shift(2,r.r),e.write_shift(2,r.r),e.write_shift(2,r.c),e.write_shift(2,r.c);for(var a=0;a<n.length;++a)e.write_shift(2,n.charCodeAt(a));return e.write_shift(2,0),e}var YM=function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},n=K1({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(u,m){var _=m||{};_.dateNF||(_.dateNF="yyyymmdd");var w=tg(function e(u,m){var _=[],w=ah(1);switch(m.type){case"base64":w=Bl(Nl(u));break;case"binary":w=Bl(u);break;case"buffer":case"array":w=u}os(w,0);var M=w.read_shift(1),O=!!(136&M),N=!1,z=!1;switch(M){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:N=!0,O=!0;break;case 140:z=!0;break;default:throw new Error("DBF Unsupported Version: "+M.toString(16))}var j=0,oe=521;2==M&&(j=w.read_shift(2)),w.l+=3,2!=M&&(j=w.read_shift(4)),j>1048576&&(j=1e6),2!=M&&(oe=w.read_shift(2));var Ne=w.read_shift(2),Ie=m.codepage||1252;2!=M&&(w.l+=16,w.read_shift(1),0!==w[w.l]&&(Ie=t[w[w.l]]),w.l+=1,w.l+=2),z&&(w.l+=36);for(var Ye=[],Pt={},Ut=Math.min(w.length,2==M?521:oe-10-(N?264:0)),rn=z?32:11;w.l<Ut&&13!=w[w.l];)switch(Pt={},Pt.name=Er.utils.decode(Ie,w.slice(w.l,w.l+rn)).replace(/[\u0000\r\n].*$/g,""),w.l+=rn,Pt.type=String.fromCharCode(w.read_shift(1)),2!=M&&!z&&(Pt.offset=w.read_shift(4)),Pt.len=w.read_shift(1),2==M&&(Pt.offset=w.read_shift(2)),Pt.dec=w.read_shift(1),Pt.name.length&&Ye.push(Pt),2!=M&&(w.l+=z?13:14),Pt.type){case"B":(!N||8!=Pt.len)&&m.WTF&&console.log("Skipping "+Pt.name+":"+Pt.type);break;case"G":case"P":m.WTF&&console.log("Skipping "+Pt.name+":"+Pt.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+Pt.type)}if(13!==w[w.l]&&(w.l=oe-1),13!==w.read_shift(1))throw new Error("DBF Terminator not found "+w.l+" "+w[w.l]);w.l=oe;var kt=0,en=0;for(_[0]=[],en=0;en!=Ye.length;++en)_[0][en]=Ye[en].name;for(;j-- >0;)if(42!==w[w.l])for(++w.l,_[++kt]=[],en=0,en=0;en!=Ye.length;++en){var tn=w.slice(w.l,w.l+Ye[en].len);w.l+=Ye[en].len,os(tn,0);var xn=Er.utils.decode(Ie,tn);switch(Ye[en].type){case"C":xn.trim().length&&(_[kt][en]=xn.replace(/\s+$/,""));break;case"D":_[kt][en]=8===xn.length?new Date(+xn.slice(0,4),+xn.slice(4,6)-1,+xn.slice(6,8)):xn;break;case"F":_[kt][en]=parseFloat(xn.trim());break;case"+":case"I":_[kt][en]=z?2147483648^tn.read_shift(-4,"i"):tn.read_shift(4,"i");break;case"L":switch(xn.trim().toUpperCase()){case"Y":case"T":_[kt][en]=!0;break;case"N":case"F":_[kt][en]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+xn+"|")}break;case"M":if(!O)throw new Error("DBF Unexpected MEMO for type "+M.toString(16));_[kt][en]="##MEMO##"+(z?parseInt(xn.trim(),10):tn.read_shift(4));break;case"N":(xn=xn.replace(/\u0000/g,"").trim())&&"."!=xn&&(_[kt][en]=+xn||0);break;case"@":_[kt][en]=new Date(tn.read_shift(-8,"f")-621356832e5);break;case"T":_[kt][en]=new Date(864e5*(tn.read_shift(4)-2440588)+tn.read_shift(4));break;case"Y":_[kt][en]=tn.read_shift(4,"i")/1e4+tn.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":_[kt][en]=-tn.read_shift(-8,"f");break;case"B":if(N&&8==Ye[en].len){_[kt][en]=tn.read_shift(8,"f");break}case"G":case"P":tn.l+=Ye[en].len;break;case"0":if("_NullFlags"===Ye[en].name)break;default:throw new Error("DBF Unsupported data type "+Ye[en].type)}}else w.l+=Ne;if(2!=M&&w.l<w.length&&26!=w[w.l++])throw new Error("DBF EOF Marker missing "+(w.l-1)+" of "+w.length+" "+w[w.l-1].toString(16));return m&&m.sheetRows&&(_=_.slice(0,m.sheetRows)),m.DBF=Ye,_}(u,_),_);return w["!cols"]=_.DBF.map(function(M){return{wch:M.len,DBF:M}}),delete _.DBF,w}var o={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function a(u,m){try{return uh(r(u,m),m)}catch(_){if(m&&m.WTF)throw _}return{SheetNames:[],Sheets:{}}},to_sheet:r,from_sheet:function l(u,m){var _=m||{};if(+_.codepage>=0&&lc(+_.codepage),"string"==_.type)throw new Error("Cannot write DBF to JS string");var w=Ws(),M=Dw(u,{header:1,raw:!0,cellDates:!0}),O=M[0],N=M.slice(1),z=u["!cols"]||[],j=0,oe=0,Ne=0,Ie=1;for(j=0;j<O.length;++j)if(((z[j]||{}).DBF||{}).name)O[j]=z[j].DBF.name,++Ne;else if(null!=O[j]){if(++Ne,"number"==typeof O[j]&&(O[j]=O[j].toString(10)),"string"!=typeof O[j])throw new Error("DBF Invalid column name "+O[j]+" |"+typeof O[j]+"|");if(O.indexOf(O[j])!==j)for(oe=0;oe<1024;++oe)if(-1==O.indexOf(O[j]+"_"+oe)){O[j]+="_"+oe;break}}var Ye=Cr(u["!ref"]),Pt=[],Ut=[],rn=[];for(j=0;j<=Ye.e.c-Ye.s.c;++j){var kt="",en="",tn=0,xn=[];for(oe=0;oe<N.length;++oe)null!=N[oe][j]&&xn.push(N[oe][j]);if(0!=xn.length&&null!=O[j]){for(oe=0;oe<xn.length;++oe){switch(typeof xn[oe]){case"number":en="B";break;case"string":default:en="C";break;case"boolean":en="L";break;case"object":en=xn[oe]instanceof Date?"D":"C"}tn=Math.max(tn,String(xn[oe]).length),kt=kt&&kt!=en?"C":en}tn>250&&(tn=250),"C"==(en=((z[j]||{}).DBF||{}).type)&&z[j].DBF.len>tn&&(tn=z[j].DBF.len),"B"==kt&&"N"==en&&(kt="N",rn[j]=z[j].DBF.dec,tn=z[j].DBF.len),Ut[j]="C"==kt||"N"==en?tn:o[kt]||0,Ie+=Ut[j],Pt[j]=kt}else Pt[j]="?"}var Cn=w.next(32);for(Cn.write_shift(4,318902576),Cn.write_shift(4,N.length),Cn.write_shift(2,296+32*Ne),Cn.write_shift(2,Ie),j=0;j<4;++j)Cn.write_shift(4,0);for(Cn.write_shift(4,0|(+n[Mf]||3)<<8),j=0,oe=0;j<O.length;++j)if(null!=O[j]){var mn=w.next(32),Xn=(O[j].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);mn.write_shift(1,Xn,"sbcs"),mn.write_shift(1,"?"==Pt[j]?"C":Pt[j],"sbcs"),mn.write_shift(4,oe),mn.write_shift(1,Ut[j]||o[Pt[j]]||0),mn.write_shift(1,rn[j]||0),mn.write_shift(1,2),mn.write_shift(4,0),mn.write_shift(1,0),mn.write_shift(4,0),mn.write_shift(4,0),oe+=Ut[j]||o[Pt[j]]||0}var gi=w.next(264);for(gi.write_shift(4,13),j=0;j<65;++j)gi.write_shift(4,0);for(j=0;j<N.length;++j){var $n=w.next(Ie);for($n.write_shift(1,0),oe=0;oe<O.length;++oe)if(null!=O[oe])switch(Pt[oe]){case"L":$n.write_shift(1,null==N[j][oe]?63:N[j][oe]?84:70);break;case"B":$n.write_shift(8,N[j][oe]||0,"f");break;case"N":var Un="0";for("number"==typeof N[j][oe]&&(Un=N[j][oe].toFixed(rn[oe]||0)),Ne=0;Ne<Ut[oe]-Un.length;++Ne)$n.write_shift(1,32);$n.write_shift(1,Un,"sbcs");break;case"D":N[j][oe]?($n.write_shift(4,("0000"+N[j][oe].getFullYear()).slice(-4),"sbcs"),$n.write_shift(2,("00"+(N[j][oe].getMonth()+1)).slice(-2),"sbcs"),$n.write_shift(2,("00"+N[j][oe].getDate()).slice(-2),"sbcs")):$n.write_shift(8,"00000000","sbcs");break;case"C":var Bn=String(null!=N[j][oe]?N[j][oe]:"").slice(0,Ut[oe]);for($n.write_shift(1,Bn,"sbcs"),Ne=0;Ne<Ut[oe]-Bn.length;++Ne)$n.write_shift(1,32)}}return w.next(1).write_shift(1,26),w.end()}}}(),zk=function(){var t={AA:"\xc0",BA:"\xc1",CA:"\xc2",DA:195,HA:"\xc4",JA:197,AE:"\xc8",BE:"\xc9",CE:"\xca",HE:"\xcb",AI:"\xcc",BI:"\xcd",CI:"\xce",HI:"\xcf",AO:"\xd2",BO:"\xd3",CO:"\xd4",DO:213,HO:"\xd6",AU:"\xd9",BU:"\xda",CU:"\xdb",HU:"\xdc",Aa:"\xe0",Ba:"\xe1",Ca:"\xe2",Da:227,Ha:"\xe4",Ja:229,Ae:"\xe8",Be:"\xe9",Ce:"\xea",He:"\xeb",Ai:"\xec",Bi:"\xed",Ci:"\xee",Hi:"\xef",Ao:"\xf2",Bo:"\xf3",Co:"\xf4",Do:245,Ho:"\xf6",Au:"\xf9",Bu:"\xfa",Cu:"\xfb",Hu:"\xfc",KC:"\xc7",Kc:"\xe7",q:"\xe6",z:"\u0153",a:"\xc6",j:"\u0152",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},n=new RegExp("\x1bN("+Ba(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(O,N){var z=t[N];return"number"==typeof z?oM(z):z},r=function(O,N,z){var j=N.charCodeAt(0)-32<<4|z.charCodeAt(0)-48;return 59==j?O:oM(j)};function o(O,N){var Cn,z=O.split(/[\n\r]+/),j=-1,oe=-1,Ne=0,Ie=0,Ye=[],Pt=[],Ut=null,rn={},kt=[],en=[],tn=[],xn=0;for(+N.codepage>=0&&lc(+N.codepage);Ne!==z.length;++Ne){xn=0;var $n,mn=z[Ne].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(n,e),Xn=mn.replace(/;;/g,"\0").split(";").map(function(hn){return hn.replace(/\u0000/g,";")});if(mn.length>0)switch(Xn[0]){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==Xn[1].charAt(0)&&Pt.push(mn.slice(3).replace(/;;/g,";"));break;case"C":var Un=!1,Bn=!1,li=!1,ti=!1,ki=-1,qn=-1;for(Ie=1;Ie<Xn.length;++Ie)switch(Xn[Ie].charAt(0)){case"A":case"G":break;case"X":oe=parseInt(Xn[Ie].slice(1))-1,Bn=!0;break;case"Y":for(j=parseInt(Xn[Ie].slice(1))-1,Bn||(oe=0),Cn=Ye.length;Cn<=j;++Cn)Ye[Cn]=[];break;case"K":'"'===($n=Xn[Ie].slice(1)).charAt(0)?$n=$n.slice(1,$n.length-1):"TRUE"===$n?$n=!0:"FALSE"===$n?$n=!1:isNaN(Vc($n))?isNaN(Jp($n).getDate())||($n=Oa($n)):($n=Vc($n),null!==Ut&&Qp(Ut)&&($n=uM($n))),typeof Er<"u"&&"string"==typeof $n&&"string"!=(N||{}).type&&(N||{}).codepage&&($n=Er.utils.decode(N.codepage,$n)),Un=!0;break;case"E":ti=!0;var Xt=og(Xn[Ie].slice(1),{r:j,c:oe});Ye[j][oe]=[Ye[j][oe],Xt];break;case"S":li=!0,Ye[j][oe]=[Ye[j][oe],"S5S"];break;case"R":ki=parseInt(Xn[Ie].slice(1))-1;break;case"C":qn=parseInt(Xn[Ie].slice(1))-1;break;default:if(N&&N.WTF)throw new Error("SYLK bad record "+mn)}if(Un&&(Ye[j][oe]&&2==Ye[j][oe].length?Ye[j][oe][0]=$n:Ye[j][oe]=$n,Ut=null),li){if(ti)throw new Error("SYLK shared formula cannot have own formula");var En=ki>-1&&Ye[ki][qn];if(!En||!En[1])throw new Error("SYLK shared formula cannot find base");Ye[j][oe][1]=hI(En[1],{r:j-ki,c:oe-qn})}break;case"F":var on=0;for(Ie=1;Ie<Xn.length;++Ie)switch(Xn[Ie].charAt(0)){case"X":oe=parseInt(Xn[Ie].slice(1))-1,++on;break;case"Y":for(j=parseInt(Xn[Ie].slice(1))-1,Cn=Ye.length;Cn<=j;++Cn)Ye[Cn]=[];break;case"M":xn=parseInt(Xn[Ie].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":Ut=Pt[parseInt(Xn[Ie].slice(1))];break;case"W":for(tn=Xn[Ie].slice(1).split(" "),Cn=parseInt(tn[0],10);Cn<=parseInt(tn[1],10);++Cn)xn=parseInt(tn[2],10),en[Cn-1]=0===xn?{hidden:!0}:{wch:xn},fh(en[Cn-1]);break;case"C":en[oe=parseInt(Xn[Ie].slice(1))-1]||(en[oe]={});break;case"R":kt[j=parseInt(Xn[Ie].slice(1))-1]||(kt[j]={}),xn>0?(kt[j].hpt=xn,kt[j].hpx=pw(xn)):0===xn&&(kt[j].hidden=!0);break;default:if(N&&N.WTF)throw new Error("SYLK bad record "+mn)}on<1&&(Ut=null);break;default:if(N&&N.WTF)throw new Error("SYLK bad record "+mn)}}return kt.length>0&&(rn["!rows"]=kt),en.length>0&&(rn["!cols"]=en),N&&N.sheetRows&&(Ye=Ye.slice(0,N.sheetRows)),[Ye,rn]}function l(O,N){var z=function a(O,N){switch(N.type){case"base64":return o(Nl(O),N);case"binary":return o(O,N);case"buffer":return o(pr&&Buffer.isBuffer(O)?O.toString("binary"):oh(O),N);case"array":return o(Sf(O),N)}throw new Error("Unrecognized type "+N.type)}(O,N),oe=z[1],Ne=tg(z[0],N);return Ba(oe).forEach(function(Ie){Ne[Ie]=oe[Ie]}),Ne}function m(O,N,z,j){var oe="C;Y"+(z+1)+";X"+(j+1)+";K";switch(O.t){case"n":oe+=O.v||0,O.f&&!O.F&&(oe+=";E"+KM(O.f,{r:z,c:j}));break;case"b":oe+=O.v?"TRUE":"FALSE";break;case"e":oe+=O.w||O.v;break;case"d":oe+='"'+(O.w||O.v)+'"';break;case"s":oe+='"'+O.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return oe}return t["|"]=254,{to_workbook:function u(O,N){return uh(l(O,N),N)},to_sheet:l,from_sheet:function M(O,N){var Ne,z=["ID;PWXL;N;E"],j=[],oe=Cr(O["!ref"]),Ie=Array.isArray(O),Ye="\r\n";z.push("P;PGeneral"),z.push("F;P0;DG0G8;M255"),O["!cols"]&&function _(O,N){N.forEach(function(z,j){var oe="F;W"+(j+1)+" "+(j+1)+" ";z.hidden?oe+="0":("number"==typeof z.width&&!z.wpx&&(z.wpx=cv(z.width)),"number"==typeof z.wpx&&!z.wch&&(z.wch=dv(z.wpx)),"number"==typeof z.wch&&(oe+=Math.round(z.wch)))," "!=oe.charAt(oe.length-1)&&O.push(oe)})}(z,O["!cols"]),O["!rows"]&&function w(O,N){N.forEach(function(z,j){var oe="F;";z.hidden?oe+="M0;":z.hpt?oe+="M"+20*z.hpt+";":z.hpx&&(oe+="M"+20*uv(z.hpx)+";"),oe.length>2&&O.push(oe+"R"+(j+1))})}(z,O["!rows"]),z.push("B;Y"+(oe.e.r-oe.s.r+1)+";X"+(oe.e.c-oe.s.c+1)+";D"+[oe.s.c,oe.s.r,oe.e.c,oe.e.r].join(" "));for(var Pt=oe.s.r;Pt<=oe.e.r;++Pt)for(var Ut=oe.s.c;Ut<=oe.e.c;++Ut){var rn=Wi({r:Pt,c:Ut});(Ne=Ie?(O[Pt]||[])[Ut]:O[rn])&&(null!=Ne.v||Ne.f&&!Ne.F)&&j.push(m(Ne,0,Pt,Ut))}return z.join(Ye)+Ye+j.join(Ye)+Ye+"E"+Ye}}}(),Wk=function(){function n(o,l){for(var u=o.split("\n"),m=-1,_=-1,w=0,M=[];w!==u.length;++w)if("BOT"!==u[w].trim()){if(!(m<0)){for(var O=u[w].trim().split(","),N=O[0],z=O[1],j=u[++w]||"";1&(j.match(/["]/g)||[]).length&&w<u.length-1;)j+="\n"+u[++w];switch(j=j.trim(),+N){case-1:if("BOT"===j){M[++m]=[],_=0;continue}if("EOD"!==j)throw new Error("Unrecognized DIF special command "+j);break;case 0:M[m][_]="TRUE"===j||"FALSE"!==j&&(isNaN(Vc(z))?isNaN(Jp(z).getDate())?z:Oa(z):Vc(z)),++_;break;case 1:j=(j=j.slice(1,j.length-1)).replace(/""/g,'"'),z0&&j&&j.match(/^=".*"$/)&&(j=j.slice(2,-1)),M[m][_++]=""!==j?j:null}if("EOD"===j)break}}else M[++m]=[],_=0;return l&&l.sheetRows&&(M=M.slice(0,l.sheetRows)),M}function e(o,l){return tg(function t(o,l){switch(l.type){case"base64":return n(Nl(o),l);case"binary":return n(o,l);case"buffer":return n(pr&&Buffer.isBuffer(o)?o.toString("binary"):oh(o),l);case"array":return n(Sf(o),l)}throw new Error("Unrecognized type "+l.type)}(o,l),l)}return{to_workbook:function r(o,l){return uh(e(o,l),l)},to_sheet:e,from_sheet:function(){var o=function(m,_,w,M,O){m.push(_),m.push(w+","+M),m.push('"'+O.replace(/"/g,'""')+'"')},l=function(m,_,w,M){m.push(_+","+w),m.push(1==_?'"'+M.replace(/"/g,'""')+'"':M)};return function(m){var M,_=[],w=Cr(m["!ref"]),O=Array.isArray(m);o(_,"TABLE",0,1,"sheetjs"),o(_,"VECTORS",0,w.e.r-w.s.r+1,""),o(_,"TUPLES",0,w.e.c-w.s.c+1,""),o(_,"DATA",0,0,"");for(var N=w.s.r;N<=w.e.r;++N){l(_,-1,0,"BOT");for(var z=w.s.c;z<=w.e.c;++z){var j=Wi({r:N,c:z});if(M=O?(m[N]||[])[z]:m[j])switch(M.t){case"n":var oe=z0?M.w:M.v;!oe&&null!=M.v&&(oe=M.v),null==oe?l(_,1,0,z0&&M.f&&!M.F?"="+M.f:""):l(_,0,oe,"V");break;case"b":l(_,0,M.v?1:0,M.v?"TRUE":"FALSE");break;case"s":l(_,1,0,!z0||isNaN(M.v)?M.v:'="'+M.v+'"');break;case"d":M.w||(M.w=Ul(M.z||Yi[14],Uo(Oa(M.v)))),z0?l(_,0,M.w,"V"):l(_,1,0,M.w);break;default:l(_,1,0,"")}else l(_,1,0,"")}}return l(_,-1,0,"EOD"),_.join("\r\n")}}()}}(),Gk=function(){function t(M){return M.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}function n(M){return M.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(M,O){return tg(function e(M,O){for(var N=M.split("\n"),z=-1,j=-1,oe=0,Ne=[];oe!==N.length;++oe){var Ie=N[oe].trim().split(":");if("cell"===Ie[0]){var Ye=Qa(Ie[1]);if(Ne.length<=Ye.r)for(z=Ne.length;z<=Ye.r;++z)Ne[z]||(Ne[z]=[]);switch(z=Ye.r,j=Ye.c,Ie[2]){case"t":Ne[z][j]=t(Ie[3]);break;case"v":Ne[z][j]=+Ie[3];break;case"vtf":var Pt=Ie[Ie.length-1];case"vtc":Ne[z][j]="nl"===Ie[3]?!!+Ie[4]:+Ie[4],"vtf"==Ie[2]&&(Ne[z][j]=[Ne[z][j],Pt])}}}return O&&O.sheetRows&&(Ne=Ne.slice(0,O.sheetRows)),Ne}(M,O),O)}var o=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),l=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",u=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),m="--SocialCalcSpreadsheetControlSave--";function _(M){if(!M||!M["!ref"])return"";for(var z,O=[],N=[],j="",oe=Gs(M["!ref"]),Ne=Array.isArray(M),Ie=oe.s.r;Ie<=oe.e.r;++Ie)for(var Ye=oe.s.c;Ye<=oe.e.c;++Ye)if(j=Wi({r:Ie,c:Ye}),(z=Ne?(M[Ie]||[])[Ye]:M[j])&&null!=z.v&&"z"!==z.t){switch(N=["cell",j,"t"],z.t){case"s":case"str":N.push(n(z.v));break;case"n":z.f?(N[2]="vtf",N[3]="n",N[4]=z.v,N[5]=n(z.f)):(N[2]="v",N[3]=z.v);break;case"b":N[2]="vt"+(z.f?"f":"c"),N[3]="nl",N[4]=z.v?"1":"0",N[5]=n(z.f||(z.v?"TRUE":"FALSE"));break;case"d":var Pt=Uo(Oa(z.v));N[2]="vtc",N[3]="nd",N[4]=""+Pt,N[5]=z.w||Ul(z.z||Yi[14],Pt);break;case"e":continue}O.push(N.join(":"))}return O.push("sheet:c:"+(oe.e.c-oe.s.c+1)+":r:"+(oe.e.r-oe.s.r+1)+":tvf:1"),O.push("valueformat:1:text-wiki"),O.join("\n")}return{to_workbook:function a(M,O){return uh(r(M,O),O)},to_sheet:r,from_sheet:function w(M){return[o,l,u,l,_(M),m].join("\n")}}}(),rg=function(){function t(w,M,O,N,z){z.raw?M[O][N]=w:""===w||(M[O][N]="TRUE"===w||"FALSE"!==w&&(isNaN(Vc(w))?isNaN(Jp(w).getDate())?w:Oa(w):Vc(w)))}var e={44:",",9:"\t",59:";",124:"|"},r={44:3,9:2,59:1,124:0};function a(w){for(var M={},O=!1,N=0,z=0;N<w.length;++N)34==(z=w.charCodeAt(N))?O=!O:!O&&z in e&&(M[z]=(M[z]||0)+1);for(N in z=[],M)Object.prototype.hasOwnProperty.call(M,N)&&z.push([M[N],N]);if(!z.length)for(N in M=r)Object.prototype.hasOwnProperty.call(M,N)&&z.push([M[N],N]);return z.sort(function(j,oe){return j[0]-oe[0]||r[j[1]]-r[oe[1]]}),e[z.pop()[1]]||44}function l(w,M){return!M||!M.PRN||M.FS||"sep="==w.slice(0,4)||w.indexOf("\t")>=0||w.indexOf(",")>=0||w.indexOf(";")>=0?function o(w,M){var O=M||{},N="";null!=Na&&null==O.dense&&(O.dense=Na);var z=O.dense?[]:{},j={s:{c:0,r:0},e:{c:0,r:0}};"sep="==w.slice(0,4)?13==w.charCodeAt(5)&&10==w.charCodeAt(6)?(N=w.charAt(4),w=w.slice(7)):13==w.charCodeAt(5)||10==w.charCodeAt(5)?(N=w.charAt(4),w=w.slice(6)):N=a(w.slice(0,1024)):N=O&&O.FS?O.FS:a(w.slice(0,1024));var oe=0,Ne=0,Ie=0,Ye=0,Pt=0,Ut=N.charCodeAt(0),rn=!1,kt=0,en=w.charCodeAt(0);w=w.replace(/\r\n/gm,"\n");var tn=null!=O.dateNF?function GR(t){var n="number"==typeof t?Yi[t]:t;return n=n.replace(mS,"(\\d+)"),new RegExp("^"+n+"$")}(O.dateNF):null;function xn(){var Cn=w.slice(Ye,Pt),mn={};if('"'==Cn.charAt(0)&&'"'==Cn.charAt(Cn.length-1)&&(Cn=Cn.slice(1,-1).replace(/""/g,'"')),0===Cn.length)mn.t="z";else if(O.raw)mn.t="s",mn.v=Cn;else if(0===Cn.trim().length)mn.t="s",mn.v=Cn;else if(61==Cn.charCodeAt(0))34==Cn.charCodeAt(1)&&34==Cn.charCodeAt(Cn.length-1)?(mn.t="s",mn.v=Cn.slice(2,-1).replace(/""/g,'"')):function v4(t){return 1!=t.length}(Cn)?(mn.t="n",mn.f=Cn.slice(1)):(mn.t="s",mn.v=Cn);else if("TRUE"==Cn)mn.t="b",mn.v=!0;else if("FALSE"==Cn)mn.t="b",mn.v=!1;else if(isNaN(Ie=Vc(Cn)))if(!isNaN(Jp(Cn).getDate())||tn&&Cn.match(tn)){mn.z=O.dateNF||Yi[14];var Xn=0;tn&&Cn.match(tn)&&(Cn=function $R(t,n,e){var r=-1,a=-1,o=-1,l=-1,u=-1,m=-1;(n.match(mS)||[]).forEach(function(M,O){var N=parseInt(e[O+1],10);switch(M.toLowerCase().charAt(0)){case"y":r=N;break;case"d":o=N;break;case"h":l=N;break;case"s":m=N;break;case"m":l>=0?u=N:a=N}}),m>=0&&-1==u&&a>=0&&(u=a,a=-1);var _=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);7==_.length&&(_="0"+_),8==_.length&&(_="20"+_);var w=("00"+(l>=0?l:0)).slice(-2)+":"+("00"+(u>=0?u:0)).slice(-2)+":"+("00"+(m>=0?m:0)).slice(-2);return-1==l&&-1==u&&-1==m?_:-1==r&&-1==a&&-1==o?w:_+"T"+w}(0,O.dateNF,Cn.match(tn)||[]),Xn=1),O.cellDates?(mn.t="d",mn.v=Oa(Cn,Xn)):(mn.t="n",mn.v=Uo(Oa(Cn,Xn))),!1!==O.cellText&&(mn.w=Ul(mn.z,mn.v instanceof Date?Uo(mn.v):mn.v)),O.cellNF||delete mn.z}else mn.t="s",mn.v=Cn;else mn.t="n",!1!==O.cellText&&(mn.w=Cn),mn.v=Ie;if("z"==mn.t||(O.dense?(z[oe]||(z[oe]=[]),z[oe][Ne]=mn):z[Wi({c:Ne,r:oe})]=mn),en=w.charCodeAt(Ye=Pt+1),j.e.c<Ne&&(j.e.c=Ne),j.e.r<oe&&(j.e.r=oe),kt==Ut)++Ne;else if(Ne=0,++oe,O.sheetRows&&O.sheetRows<=oe)return!0}e:for(;Pt<w.length;++Pt)switch(kt=w.charCodeAt(Pt)){case 34:34===en&&(rn=!rn);break;case Ut:case 10:case 13:if(!rn&&xn())break e}return Pt-Ye>0&&xn(),z["!ref"]=ar(j),z}(w,M):tg(function n(w,M){var O=M||{},N=[];if(!w||0===w.length)return N;for(var z=w.split(/[\r\n]/),j=z.length-1;j>=0&&0===z[j].length;)--j;for(var oe=10,Ne=0,Ie=0;Ie<=j;++Ie)-1==(Ne=z[Ie].indexOf(" "))?Ne=z[Ie].length:Ne++,oe=Math.max(oe,Ne);for(Ie=0;Ie<=j;++Ie){N[Ie]=[];var Ye=0;for(t(z[Ie].slice(0,oe).trim(),N,Ie,Ye,O),Ye=1;Ye<=(z[Ie].length-oe)/10+1;++Ye)t(z[Ie].slice(oe+10*(Ye-1),oe+10*Ye).trim(),N,Ie,Ye,O)}return O.sheetRows&&(N=N.slice(0,O.sheetRows)),N}(w,M),M)}function u(w,M){var O="",N="string"==M.type?[0,0,0,0]:function p2(t,n){var e="";switch((n||{}).type||"base64"){case"buffer":case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":e=Nl(t.slice(0,12));break;case"binary":e=t;break;default:throw new Error("Unrecognized type "+(n&&n.type||"undefined"))}return[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3),e.charCodeAt(4),e.charCodeAt(5),e.charCodeAt(6),e.charCodeAt(7)]}(w,M);switch(M.type){case"base64":O=Nl(w);break;case"binary":case"string":O=w;break;case"buffer":O=65001==M.codepage?w.toString("utf8"):M.codepage&&typeof Er<"u"?Er.utils.decode(M.codepage,w):pr&&Buffer.isBuffer(w)?w.toString("binary"):oh(w);break;case"array":O=Sf(w);break;default:throw new Error("Unrecognized type "+M.type)}return 239==N[0]&&187==N[1]&&191==N[2]?O=ua(O.slice(3)):"string"!=M.type&&"buffer"!=M.type&&65001==M.codepage?O=ua(O):"binary"==M.type&&typeof Er<"u"&&M.codepage&&(O=Er.utils.decode(M.codepage,Er.utils.encode(28591,O))),"socialcalc:version:"==O.slice(0,19)?Gk.to_sheet("string"==M.type?O:ua(O),M):l(O,M)}return{to_workbook:function m(w,M){return uh(u(w,M),M)},to_sheet:u,from_sheet:function _(w){for(var N,M=[],O=Cr(w["!ref"]),z=Array.isArray(w),j=O.s.r;j<=O.e.r;++j){for(var oe=[],Ne=O.s.c;Ne<=O.e.c;++Ne){var Ie=Wi({r:j,c:Ne});if((N=z?(w[j]||[])[Ne]:w[Ie])&&null!=N.v){for(var Ye=(N.w||(pd(N),N.w)||"").slice(0,10);Ye.length<10;)Ye+=" ";oe.push(Ye+(0===Ne?" ":""))}else oe.push(" ")}M.push(oe.join(""))}return M.join("\n")}}}(),Vf=function(){function t(Xt,En,on){if(Xt){os(Xt,Xt.l||0);for(var hn=on.Enum||ki;Xt.l<Xt.length;){var zn=Xt.read_shift(2),di=hn[zn]||hn[65535],ui=Xt.read_shift(2),oi=Xt.l+ui,ei=di.f&&di.f(Xt,ui,on);if(Xt.l=oi,En(ei,di,zn))return}}}function e(Xt,En){if(!Xt)return Xt;var on=En||{};null!=Na&&null==on.dense&&(on.dense=Na);var hn=on.dense?[]:{},zn="Sheet1",di="",ui=0,oi={},ei=[],Ki=[],sn={s:{r:0,c:0},e:{r:0,c:0}},Gr=on.sheetRows||0;if(0==Xt[2]&&(8==Xt[3]||9==Xt[3])&&Xt.length>=16&&5==Xt[14]&&108===Xt[15])throw new Error("Unsupported Works 3 for Mac file");if(2==Xt[2])on.Enum=ki,t(Xt,function(Ii,Ja,gc){switch(gc){case 0:on.vers=Ii,Ii>=4096&&(on.qpro=!0);break;case 6:sn=Ii;break;case 204:Ii&&(di=Ii);break;case 222:di=Ii;break;case 15:case 51:on.qpro||(Ii[1].v=Ii[1].v.slice(1));case 13:case 14:case 16:14==gc&&112==(112&Ii[2])&&(15&Ii[2])>1&&(15&Ii[2])<15&&(Ii[1].z=on.dateNF||Yi[14],on.cellDates&&(Ii[1].t="d",Ii[1].v=uM(Ii[1].v))),on.qpro&&Ii[3]>ui&&(hn["!ref"]=ar(sn),oi[zn]=hn,ei.push(zn),hn=on.dense?[]:{},sn={s:{r:0,c:0},e:{r:0,c:0}},ui=Ii[3],zn=di||"Sheet"+(ui+1),di="");var bd=on.dense?(hn[Ii[0].r]||[])[Ii[0].c]:hn[Wi(Ii[0])];if(bd){bd.t=Ii[1].t,bd.v=Ii[1].v,null!=Ii[1].z&&(bd.z=Ii[1].z),null!=Ii[1].f&&(bd.f=Ii[1].f);break}on.dense?(hn[Ii[0].r]||(hn[Ii[0].r]=[]),hn[Ii[0].r][Ii[0].c]=Ii[1]):hn[Wi(Ii[0])]=Ii[1]}},on);else{if(26!=Xt[2]&&14!=Xt[2])throw new Error("Unrecognized LOTUS BOF "+Xt[2]);on.Enum=qn,14==Xt[2]&&(on.qpro=!0,Xt.l=0),t(Xt,function(Ii,Ja,gc){switch(gc){case 204:zn=Ii;break;case 22:Ii[1].v=Ii[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Ii[3]>ui&&(hn["!ref"]=ar(sn),oi[zn]=hn,ei.push(zn),hn=on.dense?[]:{},sn={s:{r:0,c:0},e:{r:0,c:0}},zn="Sheet"+((ui=Ii[3])+1)),Gr>0&&Ii[0].r>=Gr)break;on.dense?(hn[Ii[0].r]||(hn[Ii[0].r]=[]),hn[Ii[0].r][Ii[0].c]=Ii[1]):hn[Wi(Ii[0])]=Ii[1],sn.e.c<Ii[0].c&&(sn.e.c=Ii[0].c),sn.e.r<Ii[0].r&&(sn.e.r=Ii[0].r);break;case 27:Ii[14e3]&&(Ki[Ii[14e3][0]]=Ii[14e3][1]);break;case 1537:Ki[Ii[0]]=Ii[1],Ii[0]==ui&&(zn=Ii[1])}},on)}if(hn["!ref"]=ar(sn),oi[di||zn]=hn,ei.push(di||zn),!Ki.length)return{SheetNames:ei,Sheets:oi};for(var br={},$r=[],yr=0;yr<Ki.length;++yr)oi[ei[yr]]?($r.push(Ki[yr]||ei[yr]),br[Ki[yr]]=oi[Ki[yr]]||oi[ei[yr]]):($r.push(Ki[yr]),br[Ki[yr]]={"!ref":"A1"});return{SheetNames:$r,Sheets:br}}function _(Xt,En,on){var hn=[{c:0,r:0},{t:"n",v:0},0,0];return on.qpro&&20768!=on.vers?(hn[0].c=Xt.read_shift(1),hn[3]=Xt.read_shift(1),hn[0].r=Xt.read_shift(2),Xt.l+=2):(hn[2]=Xt.read_shift(1),hn[0].c=Xt.read_shift(2),hn[0].r=Xt.read_shift(2)),hn}function w(Xt,En,on){var hn=Xt.l+En,zn=_(Xt,0,on);if(zn[1].t="s",20768==on.vers){Xt.l++;var di=Xt.read_shift(1);return zn[1].v=Xt.read_shift(di,"utf8"),zn}return on.qpro&&Xt.l++,zn[1].v=Xt.read_shift(hn-Xt.l,"cstr"),zn}function M(Xt,En,on){var hn=Vn(7+on.length);hn.write_shift(1,255),hn.write_shift(2,En),hn.write_shift(2,Xt),hn.write_shift(1,39);for(var zn=0;zn<hn.length;++zn){var di=on.charCodeAt(zn);hn.write_shift(1,di>=128?95:di)}return hn.write_shift(1,0),hn}function N(Xt,En,on){var hn=Vn(7);return hn.write_shift(1,255),hn.write_shift(2,En),hn.write_shift(2,Xt),hn.write_shift(2,on,"i"),hn}function j(Xt,En,on){var hn=Vn(13);return hn.write_shift(1,255),hn.write_shift(2,En),hn.write_shift(2,Xt),hn.write_shift(8,on,"f"),hn}function Ne(Xt,En,on){var hn=32768&En;return En=(hn?Xt:0)+((En&=-32769)>=8192?En-16384:En),(hn?"":"$")+(on?ha(En):Va(En))}var Ie={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},Ye=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function Ut(Xt){var En=[{c:0,r:0},{t:"n",v:0},0];return En[0].r=Xt.read_shift(2),En[3]=Xt[Xt.l++],En[0].c=Xt[Xt.l++],En}function kt(Xt,En,on,hn){var zn=Vn(6+hn.length);zn.write_shift(2,Xt),zn.write_shift(1,on),zn.write_shift(1,En),zn.write_shift(1,39);for(var di=0;di<hn.length;++di){var ui=hn.charCodeAt(di);zn.write_shift(1,ui>=128?95:ui)}return zn.write_shift(1,0),zn}function tn(Xt,En){var on=Ut(Xt),hn=Xt.read_shift(4),zn=Xt.read_shift(4),di=Xt.read_shift(2);if(65535==di)return 0===hn&&3221225472===zn?(on[1].t="e",on[1].v=15):0===hn&&3489660928===zn?(on[1].t="e",on[1].v=42):on[1].v=0,on;var ui=32768&di;return di=(32767&di)-16446,on[1].v=(1-2*ui)*(zn*Math.pow(2,di+32)+hn*Math.pow(2,di)),on}function xn(Xt,En,on,hn){var zn=Vn(14);if(zn.write_shift(2,Xt),zn.write_shift(1,on),zn.write_shift(1,En),0==hn)return zn.write_shift(4,0),zn.write_shift(4,0),zn.write_shift(2,65535),zn;var di=0,ui=0,ei=0;return hn<0&&(di=1,hn=-hn),ui=0|Math.log2(hn),2147483648&(ei=(hn/=Math.pow(2,ui-31))>>>0)||(++ui,ei=(hn/=2)>>>0),hn-=ei,ei|=2147483648,ei>>>=0,hn*=Math.pow(2,32),zn.write_shift(4,hn>>>0),zn.write_shift(4,ei),zn.write_shift(2,ui+=16383+(di?32768:0)),zn}function Xn(Xt,En){var on=Ut(Xt),hn=Xt.read_shift(8,"f");return on[1].v=hn,on}function $n(Xt,En){return 0==Xt[Xt.l+En-1]?Xt.read_shift(En,"cstr"):""}function ti(Xt,En){var on=Vn(5+Xt.length);on.write_shift(2,14e3),on.write_shift(2,En);for(var hn=0;hn<Xt.length;++hn){var zn=Xt.charCodeAt(hn);on[on.l++]=zn>127?95:zn}return on[on.l++]=0,on}var ki={0:{n:"BOF",f:co},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function u(Xt,En,on){var hn={s:{c:0,r:0},e:{c:0,r:0}};return 8==En&&on.qpro?(hn.s.c=Xt.read_shift(1),Xt.l++,hn.s.r=Xt.read_shift(2),hn.e.c=Xt.read_shift(1),Xt.l++,hn.e.r=Xt.read_shift(2),hn):(hn.s.c=Xt.read_shift(2),hn.s.r=Xt.read_shift(2),12==En&&on.qpro&&(Xt.l+=2),hn.e.c=Xt.read_shift(2),hn.e.r=Xt.read_shift(2),12==En&&on.qpro&&(Xt.l+=2),65535==hn.s.c&&(hn.s.c=hn.e.c=hn.s.r=hn.e.r=0),hn)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function O(Xt,En,on){var hn=_(Xt,0,on);return hn[1].v=Xt.read_shift(2,"i"),hn}},14:{n:"NUMBER",f:function z(Xt,En,on){var hn=_(Xt,0,on);return hn[1].v=Xt.read_shift(8,"f"),hn}},15:{n:"LABEL",f:w},16:{n:"FORMULA",f:function oe(Xt,En,on){var hn=Xt.l+En,zn=_(Xt,0,on);if(zn[1].v=Xt.read_shift(8,"f"),on.qpro)Xt.l=hn;else{var di=Xt.read_shift(2);(function Pt(Xt,En){os(Xt,0);for(var on=[],hn=0,zn="",di="",ui="",oi="";Xt.l<Xt.length;){var ei=Xt[Xt.l++];switch(ei){case 0:on.push(Xt.read_shift(8,"f"));break;case 1:di=Ne(En[0].c,Xt.read_shift(2),!0),zn=Ne(En[0].r,Xt.read_shift(2),!1),on.push(di+zn);break;case 2:var Ki=Ne(En[0].c,Xt.read_shift(2),!0),sn=Ne(En[0].r,Xt.read_shift(2),!1);di=Ne(En[0].c,Xt.read_shift(2),!0),zn=Ne(En[0].r,Xt.read_shift(2),!1),on.push(Ki+sn+":"+di+zn);break;case 3:if(Xt.l<Xt.length)return void console.error("WK1 premature formula end");break;case 4:on.push("("+on.pop()+")");break;case 5:on.push(Xt.read_shift(2));break;case 6:for(var Gr="";ei=Xt[Xt.l++];)Gr+=String.fromCharCode(ei);on.push('"'+Gr.replace(/"/g,'""')+'"');break;case 8:on.push("-"+on.pop());break;case 23:on.push("+"+on.pop());break;case 22:on.push("NOT("+on.pop()+")");break;case 20:case 21:oi=on.pop(),ui=on.pop(),on.push(["AND","OR"][ei-20]+"("+ui+","+oi+")");break;default:if(ei<32&&Ye[ei])oi=on.pop(),ui=on.pop(),on.push(ui+Ye[ei]+oi);else{if(!Ie[ei])return ei<=7?console.error("WK1 invalid opcode "+ei.toString(16)):ei<=24?console.error("WK1 unsupported op "+ei.toString(16)):ei<=30?console.error("WK1 invalid opcode "+ei.toString(16)):ei<=115?console.error("WK1 unsupported function opcode "+ei.toString(16)):console.error("WK1 unrecognized opcode "+ei.toString(16));if(69==(hn=Ie[ei][1])&&(hn=Xt[Xt.l++]),hn>on.length)return void console.error("WK1 bad formula parse 0x"+ei.toString(16)+":|"+on.join("|")+"|");var br=on.slice(-hn);on.length-=hn,on.push(Ie[ei][0]+"("+br.join(",")+")")}}}1==on.length?En[1].f=""+on[0]:console.error("WK1 bad formula parse |"+on.join("|")+"|")})(Xt.slice(Xt.l,Xt.l+di),zn),Xt.l+=di}return zn}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:w},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:$n},222:{n:"SHEETNAMELP",f:function Un(Xt,En){var on=Xt[Xt.l++];on>En-1&&(on=En-1);for(var hn="";hn.length<on;)hn+=String.fromCharCode(Xt[Xt.l++]);return hn}},65535:{n:""}},qn={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function rn(Xt,En){var on=Ut(Xt);return on[1].t="s",on[1].v=Xt.read_shift(En-4,"cstr"),on}},23:{n:"NUMBER17",f:tn},24:{n:"NUMBER18",f:function en(Xt,En){var on=Ut(Xt);on[1].v=Xt.read_shift(2);var hn=on[1].v>>1;if(1&on[1].v)switch(7&hn){case 0:hn=5e3*(hn>>3);break;case 1:hn=500*(hn>>3);break;case 2:hn=(hn>>3)/20;break;case 3:hn=(hn>>3)/200;break;case 4:hn=(hn>>3)/2e3;break;case 5:hn=(hn>>3)/2e4;break;case 6:hn=(hn>>3)/16;break;case 7:hn=(hn>>3)/64}return on[1].v=hn,on}},25:{n:"FORMULA19",f:function Cn(Xt,En){var on=tn(Xt);return Xt.l+=En-14,on}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function li(Xt,En){for(var on={},hn=Xt.l+En;Xt.l<hn;){var zn=Xt.read_shift(2);if(14e3==zn){for(on[zn]=[0,""],on[zn][0]=Xt.read_shift(2);Xt[Xt.l];)on[zn][1]+=String.fromCharCode(Xt[Xt.l]),Xt.l++;Xt.l++}}return on}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function mn(Xt,En){var on=Ut(Xt),hn=Xt.read_shift(4);return on[1].v=hn>>6,on}},38:{n:"??"},39:{n:"NUMBER27",f:Xn},40:{n:"FORMULA28",f:function gi(Xt,En){var on=Xn(Xt);return Xt.l+=En-10,on}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:$n},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function Bn(Xt,En,on){if(on.qpro&&!(En<21)){var hn=Xt.read_shift(1);return Xt.l+=17,Xt.l+=1,Xt.l+=2,[hn,Xt.read_shift(En-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function r(Xt,En){var on=En||{};if(+on.codepage>=0&&lc(+on.codepage),"string"==on.type)throw new Error("Cannot write WK1 to JS string");var hn=Ws(),zn=Cr(Xt["!ref"]),di=Array.isArray(Xt),ui=[];_i(hn,0,function o(Xt){var En=Vn(2);return En.write_shift(2,Xt),En}(1030)),_i(hn,6,function m(Xt){var En=Vn(8);return En.write_shift(2,Xt.s.c),En.write_shift(2,Xt.s.r),En.write_shift(2,Xt.e.c),En.write_shift(2,Xt.e.r),En}(zn));for(var oi=Math.min(zn.e.r,8191),ei=zn.s.r;ei<=oi;++ei)for(var Ki=Va(ei),sn=zn.s.c;sn<=zn.e.c;++sn){ei===zn.s.r&&(ui[sn]=ha(sn));var br=di?(Xt[ei]||[])[sn]:Xt[ui[sn]+Ki];br&&"z"!=br.t&&("n"==br.t?(0|br.v)==br.v&&br.v>=-32768&&br.v<=32767?_i(hn,13,N(ei,sn,br.v)):_i(hn,14,j(ei,sn,br.v)):_i(hn,15,M(ei,sn,pd(br).slice(0,239))))}return _i(hn,1),hn.end()},book_to_wk3:function a(Xt,En){var on=En||{};if(+on.codepage>=0&&lc(+on.codepage),"string"==on.type)throw new Error("Cannot write WK3 to JS string");var hn=Ws();_i(hn,0,function l(Xt){var En=Vn(26);En.write_shift(2,4096),En.write_shift(2,4),En.write_shift(4,0);for(var on=0,hn=0,zn=0,di=0;di<Xt.SheetNames.length;++di){var oi=Xt.Sheets[Xt.SheetNames[di]];if(oi&&oi["!ref"]){++zn;var ei=Gs(oi["!ref"]);on<ei.e.r&&(on=ei.e.r),hn<ei.e.c&&(hn=ei.e.c)}}return on>8191&&(on=8191),En.write_shift(2,on),En.write_shift(1,zn),En.write_shift(1,hn),En.write_shift(2,0),En.write_shift(2,0),En.write_shift(1,1),En.write_shift(1,2),En.write_shift(4,0),En.write_shift(4,0),En}(Xt));for(var zn=0,di=0;zn<Xt.SheetNames.length;++zn)(Xt.Sheets[Xt.SheetNames[zn]]||{})["!ref"]&&_i(hn,27,ti(Xt.SheetNames[zn],di++));var ui=0;for(zn=0;zn<Xt.SheetNames.length;++zn){var oi=Xt.Sheets[Xt.SheetNames[zn]];if(oi&&oi["!ref"]){for(var ei=Cr(oi["!ref"]),Ki=Array.isArray(oi),sn=[],Gr=Math.min(ei.e.r,8191),br=ei.s.r;br<=Gr;++br)for(var $r=Va(br),yr=ei.s.c;yr<=ei.e.c;++yr){br===ei.s.r&&(sn[yr]=ha(yr));var Ja=Ki?(oi[br]||[])[yr]:oi[sn[yr]+$r];Ja&&"z"!=Ja.t&&("n"==Ja.t?_i(hn,23,xn(br,yr,ui,Ja.v)):_i(hn,22,kt(br,yr,ui,pd(Ja).slice(0,239))))}++ui}}return _i(hn,1),hn.end()},to_workbook:function n(Xt,En){switch(En.type){case"base64":return e(Bl(Nl(Xt)),En);case"binary":return e(Bl(Xt),En);case"buffer":case"array":return e(Xt,En)}throw"Unsupported type "+En.type}}}(),xL=/^\s|\s$|[\t\n\r]/;function qk(t,n){if(!n.bookSST)return"";var e=[Za];e[e.length]=pi("sst",null,{xmlns:dh[0],count:t.Count,uniqueCount:t.Unique});for(var r=0;r!=t.length;++r)if(null!=t[r]){var a=t[r],o="<si>";a.r?o+=a.r:(o+="<t",a.t||(a.t=""),a.t.match(xL)&&(o+=' xml:space="preserve"'),o+=">"+Wr(a.t)+"</t>"),e[e.length]=o+="</si>"}return e.length>2&&(e[e.length]="</sst>",e[1]=e[1].replace("/>",">")),e.join("")}var TL=function F3(t,n){var e=!1;return null==n&&(e=!0,n=Vn(15+4*t.t.length)),n.write_shift(1,0),Vo(t.t,n),e?n.slice(0,n.l):n};function EL(t){var n=Ws();ni(n,159,function DL(t,n){return n||(n=Vn(8)),n.write_shift(4,t.Count),n.write_shift(4,t.Unique),n}(t));for(var e=0;e<t.length;++e)ni(n,19,TL(t[e]));return ni(n,160),n.end()}function zM(t){var e,o,n=0,r=function Qk(t){if(typeof Er<"u")return Er.utils.encode(Mf,t);for(var n=[],e=t.split(""),r=0;r<e.length;++r)n[r]=e[r].charCodeAt(0);return n}(t),a=r.length+1;for((e=ah(a))[0]=r.length,o=1;o!=a;++o)e[o]=r[o-1];for(o=a-1;o>=0;--o)n=((16384&n?1:0)|n<<1&32767)^e[o];return 52811^n}var eI=function(){function t(a,o){switch(o.type){case"base64":return n(Nl(a),o);case"binary":return n(a,o);case"buffer":return n(pr&&Buffer.isBuffer(a)?a.toString("binary"):oh(a),o);case"array":return n(Sf(a),o)}throw new Error("Unrecognized type "+o.type)}function n(a,o){var u=(o||{}).dense?[]:{},m=a.match(/\\trowd.*?\\row\b/g);if(!m.length)throw new Error("RTF missing table");var _={s:{c:0,r:0},e:{c:0,r:m.length-1}};return m.forEach(function(w,M){Array.isArray(u)&&(u[M]=[]);for(var z,O=/\\\w+\b/g,N=0,j=-1;z=O.exec(w);){if("\\cell"===z[0]){var oe=w.slice(N,O.lastIndex-z[0].length);if(" "==oe[0]&&(oe=oe.slice(1)),++j,oe.length){var Ne={v:oe,t:"s"};Array.isArray(u)?u[M][j]=Ne:u[Wi({r:M,c:j})]=Ne}}N=O.lastIndex}j>_.e.c&&(_.e.c=j)}),u["!ref"]=ar(_),u}return{to_workbook:function e(a,o){return uh(t(a,o),o)},to_sheet:t,from_sheet:function r(a){for(var u,o=["{\\rtf1\\ansi"],l=Cr(a["!ref"]),m=Array.isArray(a),_=l.s.r;_<=l.e.r;++_){o.push("\\trowd\\trautofit1");for(var w=l.s.c;w<=l.e.c;++w)o.push("\\cellx"+(w+1));for(o.push("\\pard\\intbl"),w=l.s.c;w<=l.e.c;++w){var M=Wi({r:_,c:w});(u=m?(a[_]||[])[w]:a[M])&&(null!=u.v||u.f&&!u.F)&&(o.push(" "+(u.w||(pd(u),u.w))),o.push("\\cell"))}o.push("\\pard\\intbl\\row")}return o.join("")+"}"}}}();function lv(t){for(var n=0,e=1;3!=n;++n)e=256*e+(t[n]>255?255:t[n]<0?0:t[n]);return e.toString(16).toUpperCase().slice(1)}var Ss=6;function cv(t){return Math.floor((t+Math.round(128/Ss)/256)*Ss)}function dv(t){return Math.floor((t-5)/Ss*100+.5)/100}function mw(t){return Math.round((t*Ss+5)/Ss*256)/256}function fh(t){t.width?(t.wpx=cv(t.width),t.wch=dv(t.wpx),t.MDW=Ss):t.wpx?(t.wch=dv(t.wpx),t.width=mw(t.wch),t.MDW=Ss):"number"==typeof t.wch&&(t.width=mw(t.wch),t.wpx=cv(t.width),t.MDW=Ss),t.customWidth&&delete t.customWidth}var nI=96;function uv(t){return 96*t/nI}function pw(t){return t*nI/96}function iI(t,n){var r,e=[Za,pi("styleSheet",null,{xmlns:dh[0],"xmlns:vt":lo.vt})];return t.SSF&&null!=(r=function KL(t){var n=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var r=e[0];r<=e[1];++r)null!=t[r]&&(n[n.length]=pi("numFmt",null,{numFmtId:r,formatCode:Wr(t[r])}))}),1===n.length?"":(n[n.length]="</numFmts>",n[0]=pi("numFmts",null,{count:n.length-2}).replace("/>",">"),n.join(""))}(t.SSF))&&(e[e.length]=r),e[e.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',e[e.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',e[e.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',e[e.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(r=function JL(t){var n=[];return n[n.length]=pi("cellXfs",null),t.forEach(function(e){n[n.length]=pi("xf",null,e)}),n[n.length]="</cellXfs>",2===n.length?"":(n[0]=pi("cellXfs",null,{count:n.length-2}).replace("/>",">"),n.join(""))}(n.cellXfs))&&(e[e.length]=r),e[e.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',e[e.length]='<dxfs count="0"/>',e[e.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',e.length>2&&(e[e.length]="</styleSheet>",e[1]=e[1].replace("/>",">")),e.join("")}function tN(t,n,e){e||(e=Vn(6+4*n.length)),e.write_shift(2,t),Vo(n,e);var r=e.length>e.l?e.slice(0,e.l):e;return null==e.l&&(e.l=e.length),r}var $M,rN=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],aN=Ts;function rI(t,n){n||(n=Vn(84)),$M||($M=K1(rN));var e=$M[t.patternType];null==e&&(e=40),n.write_shift(4,e);var r=0;if(40!=e)for(rw({auto:1},n),rw({auto:1},n);r<12;++r)n.write_shift(4,0);else{for(;r<4;++r)n.write_shift(4,0);for(;r<12;++r)n.write_shift(4,0)}return n.length>n.l?n.slice(0,n.l):n}function aI(t,n,e){return e||(e=Vn(16)),e.write_shift(2,n||0),e.write_shift(2,t.numFmtId||0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e}function hv(t,n){return n||(n=Vn(10)),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(4,0),n}var sN=Ts;function xN(t,n){var e=Ws();return ni(e,278),function hN(t,n){if(n){var e=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var a=r[0];a<=r[1];++a)null!=n[a]&&++e}),0!=e&&(ni(t,615,Hc(e)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var a=r[0];a<=r[1];++a)null!=n[a]&&ni(t,44,tN(a,n[a]))}),ni(t,616))}}(e,t.SSF),function fN(t){ni(t,611,Hc(1)),ni(t,43,function iN(t,n){n||(n=Vn(153)),n.write_shift(2,20*t.sz),function j3(t,n){n||(n=Vn(2)),n.write_shift(1,(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0)),n.write_shift(1,0)}(t,n),n.write_shift(2,t.bold?700:400);var e=0;"superscript"==t.vertAlign?e=1:"subscript"==t.vertAlign&&(e=2),n.write_shift(2,e),n.write_shift(1,t.underline||0),n.write_shift(1,t.family||0),n.write_shift(1,t.charset||0),n.write_shift(1,0),rw(t.color,n);var r=0;return"major"==t.scheme&&(r=1),"minor"==t.scheme&&(r=2),n.write_shift(1,r),Vo(t.name,n),n.length>n.l?n.slice(0,n.l):n}({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),ni(t,612)}(e),function mN(t){ni(t,603,Hc(2)),ni(t,45,rI({patternType:"none"})),ni(t,45,rI({patternType:"gray125"})),ni(t,604)}(e),function pN(t){ni(t,613,Hc(1)),ni(t,46,function lN(t,n){return n||(n=Vn(51)),n.write_shift(1,0),hv(0,n),hv(0,n),hv(0,n),hv(0,n),hv(0,n),n.length>n.l?n.slice(0,n.l):n}()),ni(t,614)}(e),function gN(t){ni(t,626,Hc(1)),ni(t,47,aI({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),ni(t,627)}(e),function _N(t,n){ni(t,617,Hc(n.length)),n.forEach(function(e){ni(t,47,aI(e,0))}),ni(t,618)}(e,n.cellXfs),function vN(t){ni(t,619,Hc(1)),ni(t,48,function cN(t,n){return n||(n=Vn(52)),n.write_shift(4,t.xfId),n.write_shift(2,1),n.write_shift(1,+t.builtinId),n.write_shift(1,0),iw(t.name||"",n),n.length>n.l?n.slice(0,n.l):n}({xfId:0,builtinId:0,name:"Normal"})),ni(t,620)}(e),function bN(t){ni(t,505,Hc(0)),ni(t,506)}(e),function yN(t){ni(t,508,function dN(t,n,e){var r=Vn(2052);return r.write_shift(4,t),iw(n,r),iw(e,r),r.length>r.l?r.slice(0,r.l):r}(0,"TableStyleMedium9","PivotStyleMedium4")),ni(t,509)}(e),ni(e,279),e.end()}function qM(t,n){if(n&&n.themeXLSX)return n.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var e=[Za];return e[e.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',e[e.length]="<a:themeElements>",e[e.length]='<a:clrScheme name="Office">',e[e.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',e[e.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',e[e.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',e[e.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',e[e.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',e[e.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',e[e.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',e[e.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',e[e.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',e[e.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',e[e.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',e[e.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',e[e.length]="</a:clrScheme>",e[e.length]='<a:fontScheme name="Office">',e[e.length]="<a:majorFont>",e[e.length]='<a:latin typeface="Cambria"/>',e[e.length]='<a:ea typeface=""/>',e[e.length]='<a:cs typeface=""/>',e[e.length]='<a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/>',e[e.length]='<a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/>',e[e.length]='<a:font script="Hans" typeface="\u5b8b\u4f53"/>',e[e.length]='<a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/>',e[e.length]='<a:font script="Arab" typeface="Times New Roman"/>',e[e.length]='<a:font script="Hebr" typeface="Times New Roman"/>',e[e.length]='<a:font script="Thai" typeface="Tahoma"/>',e[e.length]='<a:font script="Ethi" typeface="Nyala"/>',e[e.length]='<a:font script="Beng" typeface="Vrinda"/>',e[e.length]='<a:font script="Gujr" typeface="Shruti"/>',e[e.length]='<a:font script="Khmr" typeface="MoolBoran"/>',e[e.length]='<a:font script="Knda" typeface="Tunga"/>',e[e.length]='<a:font script="Guru" typeface="Raavi"/>',e[e.length]='<a:font script="Cans" typeface="Euphemia"/>',e[e.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',e[e.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',e[e.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',e[e.length]='<a:font script="Thaa" typeface="MV Boli"/>',e[e.length]='<a:font script="Deva" typeface="Mangal"/>',e[e.length]='<a:font script="Telu" typeface="Gautami"/>',e[e.length]='<a:font script="Taml" typeface="Latha"/>',e[e.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',e[e.length]='<a:font script="Orya" typeface="Kalinga"/>',e[e.length]='<a:font script="Mlym" typeface="Kartika"/>',e[e.length]='<a:font script="Laoo" typeface="DokChampa"/>',e[e.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',e[e.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',e[e.length]='<a:font script="Viet" typeface="Times New Roman"/>',e[e.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',e[e.length]='<a:font script="Geor" typeface="Sylfaen"/>',e[e.length]="</a:majorFont>",e[e.length]="<a:minorFont>",e[e.length]='<a:latin typeface="Calibri"/>',e[e.length]='<a:ea typeface=""/>',e[e.length]='<a:cs typeface=""/>',e[e.length]='<a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/>',e[e.length]='<a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/>',e[e.length]='<a:font script="Hans" typeface="\u5b8b\u4f53"/>',e[e.length]='<a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/>',e[e.length]='<a:font script="Arab" typeface="Arial"/>',e[e.length]='<a:font script="Hebr" typeface="Arial"/>',e[e.length]='<a:font script="Thai" typeface="Tahoma"/>',e[e.length]='<a:font script="Ethi" typeface="Nyala"/>',e[e.length]='<a:font script="Beng" typeface="Vrinda"/>',e[e.length]='<a:font script="Gujr" typeface="Shruti"/>',e[e.length]='<a:font script="Khmr" typeface="DaunPenh"/>',e[e.length]='<a:font script="Knda" typeface="Tunga"/>',e[e.length]='<a:font script="Guru" typeface="Raavi"/>',e[e.length]='<a:font script="Cans" typeface="Euphemia"/>',e[e.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',e[e.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',e[e.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',e[e.length]='<a:font script="Thaa" typeface="MV Boli"/>',e[e.length]='<a:font script="Deva" typeface="Mangal"/>',e[e.length]='<a:font script="Telu" typeface="Gautami"/>',e[e.length]='<a:font script="Taml" typeface="Latha"/>',e[e.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',e[e.length]='<a:font script="Orya" typeface="Kalinga"/>',e[e.length]='<a:font script="Mlym" typeface="Kartika"/>',e[e.length]='<a:font script="Laoo" typeface="DokChampa"/>',e[e.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',e[e.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',e[e.length]='<a:font script="Viet" typeface="Arial"/>',e[e.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',e[e.length]='<a:font script="Geor" typeface="Sylfaen"/>',e[e.length]="</a:minorFont>",e[e.length]="</a:fontScheme>",e[e.length]='<a:fmtScheme name="Office">',e[e.length]="<a:fillStyleLst>",e[e.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:lin ang="16200000" scaled="1"/>',e[e.length]="</a:gradFill>",e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:lin ang="16200000" scaled="0"/>',e[e.length]="</a:gradFill>",e[e.length]="</a:fillStyleLst>",e[e.length]="<a:lnStyleLst>",e[e.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]="</a:lnStyleLst>",e[e.length]="<a:effectStyleLst>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]="</a:effectStyle>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]="</a:effectStyle>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',e[e.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',e[e.length]="</a:effectStyle>",e[e.length]="</a:effectStyleLst>",e[e.length]="<a:bgFillStyleLst>",e[e.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',e[e.length]="</a:gradFill>",e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',e[e.length]="</a:gradFill>",e[e.length]="</a:bgFillStyleLst>",e[e.length]="</a:fmtScheme>",e[e.length]="</a:themeElements>",e[e.length]="<a:objectDefaults>",e[e.length]="<a:spDef>",e[e.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',e[e.length]="</a:spDef>",e[e.length]="<a:lnDef>",e[e.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',e[e.length]="</a:lnDef>",e[e.length]="</a:objectDefaults>",e[e.length]="<a:extraClrSchemeLst/>",e[e.length]="</a:theme>",e.join("")}function GN(){var t=Ws();return ni(t,332),ni(t,334,Hc(1)),ni(t,335,function ZN(t){var n=Vn(12+2*t.name.length);return n.write_shift(4,t.flags),n.write_shift(4,t.version),Vo(t.name,n),n.slice(0,n.l)}({name:"XLDAPR",version:12e4,flags:3496657072})),ni(t,336),ni(t,339,function jN(t,n){var e=Vn(8+2*n.length);return e.write_shift(4,t),Vo(n,e),e.slice(0,e.l)}(1,"XLDAPR")),ni(t,52),ni(t,35,Hc(514)),ni(t,4096,Hc(0)),ni(t,4097,hc(1)),ni(t,36),ni(t,53),ni(t,340),ni(t,337,function zN(t,n){var e=Vn(8);return e.write_shift(4,t),e.write_shift(4,n?1:0),e}(1,!0)),ni(t,51,function HN(t){var n=Vn(4+8*t.length);n.write_shift(4,t.length);for(var e=0;e<t.length;++e)n.write_shift(4,t[e][0]),n.write_shift(4,t[e][1]);return n}([[1,0]])),ni(t,338),ni(t,333),t.end()}function sI(){var t=[Za];return t.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n <metadataTypes count="1">\n <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n </metadataTypes>\n <futureMetadata name="XLDAPR" count="1">\n <bk>\n <extLst>\n <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n </ext>\n </extLst>\n </bk>\n </futureMetadata>\n <cellMetadata count="1">\n <bk>\n <rc t="1" v="0"/>\n </bk>\n </cellMetadata>\n</metadata>'),t.join("")}var ag=1024;function lI(t,n){for(var e=[21600,21600],r=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),a=[pi("xml",null,{"xmlns:v":Vl.v,"xmlns:o":Vl.o,"xmlns:x":Vl.x,"xmlns:mv":Vl.mv}).replace(/\/>/,">"),pi("o:shapelayout",pi("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),pi("v:shapetype",[pi("v:stroke",null,{joinstyle:"miter"}),pi("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:e.join(","),path:r})];ag<1e3*t;)ag+=1e3;return n.forEach(function(o){var l=Qa(o[0]),u={color2:"#BEFF82",type:"gradient"};"gradient"==u.type&&(u.angle="-180");var m="gradient"==u.type?pi("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,_=pi("v:fill",m,u);++ag,a=a.concat(["<v:shape"+X0({id:"_x0000_s"+ag,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(o[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",_,pi("v:shadow",null,{on:"t",obscured:"t"}),pi("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",as("x:Anchor",[l.c+1,0,l.r+1,0,l.c+3,20,l.r+5,20].join(",")),as("x:AutoFill","False"),as("x:Row",String(l.r)),as("x:Column",String(l.c)),o[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),a.push("</xml>"),a.join("")}function dI(t){var n=[Za,pi("comments",null,{xmlns:dh[0]})],e=[];return n.push("<authors>"),t.forEach(function(r){r[1].forEach(function(a){var o=Wr(a.a);-1==e.indexOf(o)&&(e.push(o),n.push("<author>"+o+"</author>")),a.T&&a.ID&&-1==e.indexOf("tc="+a.ID)&&(e.push("tc="+a.ID),n.push("<author>tc="+a.ID+"</author>"))})}),0==e.length&&(e.push("SheetJ5"),n.push("<author>SheetJ5</author>")),n.push("</authors>"),n.push("<commentList>"),t.forEach(function(r){var a=0,o=[];if(r[1][0]&&r[1][0].T&&r[1][0].ID?a=e.indexOf("tc="+r[1][0].ID):r[1].forEach(function(m){m.a&&(a=e.indexOf(Wr(m.a))),o.push(m.t||"")}),n.push('<comment ref="'+r[0]+'" authorId="'+a+'"><text>'),o.length<=1)n.push(as("t",Wr(o[0]||"")));else{for(var l="Comment:\n "+o[0]+"\n",u=1;u<o.length;++u)l+="Reply:\n "+o[u]+"\n";n.push(as("t",Wr(l)))}n.push("</text></comment>")}),n.push("</commentList>"),n.length>2&&(n[n.length]="</comments>",n[1]=n[1].replace("/>",">")),n.join("")}function n4(t,n,e){var r=[Za,pi("ThreadedComments",null,{xmlns:lo.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(a){var o="";(a[1]||[]).forEach(function(l,u){if(l.T){l.a&&-1==n.indexOf(l.a)&&n.push(l.a);var m={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+e.tcid++).slice(-12)+"}"};0==u?o=m.id:m.parentId=o,l.ID=m.id,l.a&&(m.personId="{54EE7950-7262-4200-6969-"+("000000000000"+n.indexOf(l.a)).slice(-12)+"}"),r.push(pi("threadedComment",as("text",l.t||""),m))}else delete l.ID})}),r.push("</ThreadedComments>"),r.join("")}var s4=Es;function d4(t){var n=Ws(),e=[];return ni(n,628),ni(n,630),t.forEach(function(r){r[1].forEach(function(a){e.indexOf(a.a)>-1||(e.push(a.a.slice(0,54)),ni(n,632,function l4(t){return Vo(t.slice(0,54))}(a.a)))})}),ni(n,631),ni(n,633),t.forEach(function(r){r[1].forEach(function(a){a.iauthor=e.indexOf(a.a);var o={s:Qa(r[0]),e:Qa(r[0])};ni(n,635,function o4(t,n){return null==n&&(n=Vn(36)),n.write_shift(4,t[1].iauthor),ng(t[0],n),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n}([o,a])),a.t&&a.t.length>0&&ni(n,637,function N3(t,n){var e=!1;return null==n&&(e=!0,n=Vn(23+4*t.t.length)),n.write_shift(1,1),Vo(t.t,n),n.write_shift(4,1),function R3(t,n){n||(n=Vn(4)),n.write_shift(2,t.ich||0),n.write_shift(2,t.ifnt||0)}({ich:0,ifnt:0},n),e?n.slice(0,n.l):n}(a)),ni(n,636),delete a.iauthor})}),ni(n,634),ni(n,629),n.end()}var uI=["xlsb","xlsm","xlam","biff8","xla"],og=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,n={r:0,c:0};function e(r,a,o,l){var u=!1,m=!1;0==o.length?m=!0:"["==o.charAt(0)&&(m=!0,o=o.slice(1,-1)),0==l.length?u=!0:"["==l.charAt(0)&&(u=!0,l=l.slice(1,-1));var _=o.length>0?0|parseInt(o,10):0,w=l.length>0?0|parseInt(l,10):0;return u?w+=n.c:--w,m?_+=n.r:--_,a+(u?"":"$")+ha(w)+(m?"":"$")+Va(_)}return function(a,o){return n=o,a.replace(t,e)}}(),QM=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,KM=function(){return function(n,e){return n.replace(QM,function(r,a,o,l,u,m){var _=MM(l)-(o?0:e.c),w=EM(m)-(u?0:e.r);return a+"R"+(0==w?"":u?w+1:"["+w+"]")+"C"+(0==_?"":o?_+1:"["+_+"]")})}}();function hI(t,n){return t.replace(QM,function(e,r,a,o,l,u){return r+("$"==a?a+o:ha(MM(o)+n.c))+("$"==l?l+u:Va(EM(u)+n.r))})}function uo(t){t.l+=1}function mh(t,n){var e=t.read_shift(1==n?1:2);return[16383&e,e>>14&1,e>>15&1]}function fI(t,n,e){var r=2;if(e){if(e.biff>=2&&e.biff<=5)return mI(t);12==e.biff&&(r=4)}var a=t.read_shift(r),o=t.read_shift(r),l=mh(t,2),u=mh(t,2);return{s:{r:a,c:l[0],cRel:l[1],rRel:l[2]},e:{r:o,c:u[0],cRel:u[1],rRel:u[2]}}}function mI(t){var n=mh(t,2),e=mh(t,2),r=t.read_shift(1),a=t.read_shift(1);return{s:{r:n[0],c:r,cRel:n[1],rRel:n[2]},e:{r:e[0],c:a,cRel:e[1],rRel:e[2]}}}function pI(t,n,e){if(e&&e.biff>=2&&e.biff<=5)return function y4(t){var n=mh(t,2),e=t.read_shift(1);return{r:n[0],c:e,cRel:n[1],rRel:n[2]}}(t);var r=t.read_shift(e&&12==e.biff?4:2),a=mh(t,2);return{r,c:a[0],cRel:a[1],rRel:a[2]}}function x4(t){var n=t.read_shift(2),e=t.read_shift(2);return{r:n,c:255&e,fQuoted:!!(16384&e),cRel:e>>15,rRel:e>>15}}function gI(t){var n=1&t[t.l+1];return t.l+=4,[n,1]}function _I(t){return[t.read_shift(1),t.read_shift(1)]}function Q4(t,n){var e=[t.read_shift(1)];if(12==n)switch(e[0]){case 2:e[0]=4;break;case 4:e[0]=16;break;case 0:e[0]=1;break;case 1:e[0]=2}switch(e[0]){case 4:e[1]=function Ka(t,n){return 1===t.read_shift(n)}(t,1)?"TRUE":"FALSE",12!=n&&(t.l+=7);break;case 37:case 16:e[1]=Xd[t[t.l]],t.l+=12==n?4:8;break;case 0:t.l+=8;break;case 1:e[1]=Ms(t);break;case 2:e[1]=function Uf(t,n,e){if(e.biff>5)return function sv(t,n,e){var r=t.read_shift(e&&2==e.biff?1:2);return 0===r?(t.l++,""):function Bf(t,n,e){if(e){if(e.biff>=2&&e.biff<=5)return t.read_shift(n,"cpstr");if(e.biff>=12)return t.read_shift(n,"dbcs-cont")}var a=t.read_shift(1);return t.read_shift(n,0===a?"sbcs-cont":"dbcs-cont")}(t,r,e)}(t,0,e);var r=t.read_shift(1);return 0===r?(t.l++,""):t.read_shift(r,e.biff<=4||!t.lens?"cpstr":"sbcs-cont")}(t,0,{biff:n>0&&n<8?2:n});break;default:throw new Error("Bad SerAr: "+e[0])}return e}function K4(t,n,e){for(var r=t.read_shift(12==e.biff?4:2),a=[],o=0;o!=r;++o)a.push((12==e.biff?Rf:uw)(t,8));return a}function J4(t,n,e){var r=0,a=0;12==e.biff?(r=t.read_shift(4),a=t.read_shift(4)):(a=1+t.read_shift(1),r=1+t.read_shift(2)),e.biff>=2&&e.biff<8&&(--r,0==--a&&(a=256));for(var o=0,l=[];o!=r&&(l[o]=[]);++o)for(var u=0;u!=a;++u)l[o][u]=Q4(t,e.biff);return l}function fv(t,n,e){return t.l+=2,[x4(t)]}function JM(t){return t.l+=6,[]}function vI(t){return t.l+=2,[co(t),1&t.read_shift(2)]}var vB=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],bI={1:{n:"PtgExp",f:function Y4(t,n,e){return t.l++,e&&12==e.biff?[t.read_shift(4,"i"),0]:[t.read_shift(2),t.read_shift(e&&2==e.biff?1:2)]}},2:{n:"PtgTbl",f:Ts},3:{n:"PtgAdd",f:uo},4:{n:"PtgSub",f:uo},5:{n:"PtgMul",f:uo},6:{n:"PtgDiv",f:uo},7:{n:"PtgPower",f:uo},8:{n:"PtgConcat",f:uo},9:{n:"PtgLt",f:uo},10:{n:"PtgLe",f:uo},11:{n:"PtgEq",f:uo},12:{n:"PtgGe",f:uo},13:{n:"PtgGt",f:uo},14:{n:"PtgNe",f:uo},15:{n:"PtgIsect",f:uo},16:{n:"PtgUnion",f:uo},17:{n:"PtgRange",f:uo},18:{n:"PtgUplus",f:uo},19:{n:"PtgUminus",f:uo},20:{n:"PtgPercent",f:uo},21:{n:"PtgParen",f:uo},22:{n:"PtgMissArg",f:uo},23:{n:"PtgStr",f:function q4(t,n,e){return t.l++,ov(t,0,e)}},26:{n:"PtgSheet",f:function xB(t,n,e){return t.l+=5,t.l+=2,t.l+=2==e.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function wB(t,n,e){return t.l+=2==e.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function z4(t){return t.l++,Xd[t.read_shift(1)]}},29:{n:"PtgBool",f:function G4(t){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function W4(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function $4(t){return t.l++,Ms(t)}},32:{n:"PtgArray",f:function S4(t,n,e){var r=(96&t[t.l++])>>5;return t.l+=2==e.biff?6:12==e.biff?14:7,[r]}},33:{n:"PtgFunc",f:function Z4(t,n,e){var r=(96&t[t.l])>>5;t.l+=1;var a=t.read_shift(e&&e.biff<=3?1:2);return[jB[a],wI[a],r]}},34:{n:"PtgFuncVar",f:function V4(t,n,e){var r=t[t.l++],a=t.read_shift(1),o=e&&e.biff<=3?[88==r?-1:0,t.read_shift(1)]:function H4(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}(t);return[a,(0===o[0]?wI:HB)[o[1]]]}},35:{n:"PtgName",f:function X4(t,n,e){var r=t.read_shift(1)>>>5&3,o=t.read_shift(!e||e.biff>=8?4:2);switch(e.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12}return[r,0,o]}},36:{n:"PtgRef",f:function N4(t,n,e){var r=(96&t[t.l])>>5;return t.l+=1,[r,pI(t,0,e)]}},37:{n:"PtgArea",f:function D4(t,n,e){return[(96&t[t.l++])>>5,fI(t,0,e)]}},38:{n:"PtgMemArea",f:function nB(t,n,e){var r=t.read_shift(1)>>>5&3;return t.l+=e&&2==e.biff?3:4,[r,t.read_shift(e&&2==e.biff?1:2)]}},39:{n:"PtgMemErr",f:Ts},40:{n:"PtgMemNoMem",f:Ts},41:{n:"PtgMemFunc",f:function iB(t,n,e){return[t.read_shift(1)>>>5&3,t.read_shift(e&&2==e.biff?1:2)]}},42:{n:"PtgRefErr",f:function rB(t,n,e){var r=t.read_shift(1)>>>5&3;return t.l+=4,e.biff<8&&t.l--,12==e.biff&&(t.l+=2),[r]}},43:{n:"PtgAreaErr",f:function E4(t,n,e){var r=(96&t[t.l++])>>5;return t.l+=e&&e.biff>8?12:e.biff<8?6:8,[r]}},44:{n:"PtgRefN",f:function B4(t,n,e){var r=(96&t[t.l])>>5;t.l+=1;var a=function w4(t,n,e){var r=e&&e.biff?e.biff:8;if(r>=2&&r<=5)return function C4(t){var n=t.read_shift(2),e=t.read_shift(1),r=(32768&n)>>15,a=(16384&n)>>14;return n&=16383,1==r&&n>=8192&&(n-=16384),1==a&&e>=128&&(e-=256),{r:n,c:e,cRel:a,rRel:r}}(t);var a=t.read_shift(r>=12?4:2),o=t.read_shift(2),l=(16384&o)>>14,u=(32768&o)>>15;if(o&=16383,1==u)for(;a>524287;)a-=1048576;if(1==l)for(;o>8191;)o-=16384;return{r:a,c:o,cRel:l,rRel:u}}(t,0,e);return[r,a]}},45:{n:"PtgAreaN",f:function A4(t,n,e){var r=(96&t[t.l++])>>5,a=function b4(t,n,e){if(e.biff<8)return mI(t);var r=t.read_shift(12==e.biff?4:2),a=t.read_shift(12==e.biff?4:2),o=mh(t,2),l=mh(t,2);return{s:{r,c:o[0],cRel:o[1],rRel:o[2]},e:{r:a,c:l[0],cRel:l[1],rRel:l[2]}}}(t,0,e);return[r,a]}},46:{n:"PtgMemAreaN",f:function CB(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function DB(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function eB(t,n,e){return 5==e.biff?function tB(t){var n=t.read_shift(1)>>>5&3,e=t.read_shift(2,"i");t.l+=8;var r=t.read_shift(2);return t.l+=12,[n,e,r]}(t):[t.read_shift(1)>>>5&3,t.read_shift(2),t.read_shift(4)]}},58:{n:"PtgRef3d",f:function U4(t,n,e){var r=(96&t[t.l])>>5;t.l+=1;var a=t.read_shift(2);return e&&5==e.biff&&(t.l+=12),[r,a,pI(t,0,e)]}},59:{n:"PtgArea3d",f:function T4(t,n,e){var r=(96&t[t.l++])>>5,a=t.read_shift(2,"i");if(e&&5===e.biff)t.l+=12;return[r,a,fI(t,0,e)]}},60:{n:"PtgRefErr3d",f:function aB(t,n,e){var r=(96&t[t.l++])>>5,a=t.read_shift(2),o=4;if(e)switch(e.biff){case 5:o=15;break;case 12:o=6}return t.l+=o,[r,a]}},61:{n:"PtgAreaErr3d",f:function M4(t,n,e){var r=(96&t[t.l++])>>5,a=t.read_shift(2),o=8;if(e)switch(e.biff){case 5:t.l+=12,o=6;break;case 12:o=12}return t.l+=o,[r,a]}},255:{}},EB={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},MB={1:{n:"PtgElfLel",f:vI},2:{n:"PtgElfRw",f:fv},3:{n:"PtgElfCol",f:fv},6:{n:"PtgElfRwV",f:fv},7:{n:"PtgElfColV",f:fv},10:{n:"PtgElfRadical",f:fv},11:{n:"PtgElfRadicalS",f:JM},13:{n:"PtgElfColS",f:JM},15:{n:"PtgElfColSV",f:JM},16:{n:"PtgElfRadicalLel",f:vI},25:{n:"PtgList",f:function bB(t){t.l+=2;var n=t.read_shift(2),e=t.read_shift(2),r=t.read_shift(4),a=t.read_shift(2),o=t.read_shift(2);return{ixti:n,coltype:3&e,rt:vB[e>>2&31],idx:r,c:a,C:o}}},29:{n:"PtgSxName",f:function yB(t){return t.l+=2,[t.read_shift(4)]}},255:{}},AB={0:{n:"PtgAttrNoop",f:function TB(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function R4(t,n,e){var r=255&t[t.l+1]?1:0;return t.l+=e&&2==e.biff?3:4,[r]}},2:{n:"PtgAttrIf",f:function O4(t,n,e){var r=255&t[t.l+1]?1:0;return t.l+=2,[r,t.read_shift(e&&2==e.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function k4(t,n,e){t.l+=2;for(var r=t.read_shift(e&&2==e.biff?1:2),a=[],o=0;o<=r;++o)a.push(t.read_shift(e&&2==e.biff?1:2));return a}},8:{n:"PtgAttrGoto",f:function I4(t,n,e){var r=255&t[t.l+1]?1:0;return t.l+=2,[r,t.read_shift(e&&2==e.biff?1:2)]}},16:{n:"PtgAttrSum",f:function j4(t,n,e){t.l+=e&&2==e.biff?3:4}},32:{n:"PtgAttrBaxcel",f:gI},33:{n:"PtgAttrBaxcel",f:gI},64:{n:"PtgAttrSpace",f:function F4(t){return t.read_shift(2),_I(t)}},65:{n:"PtgAttrSpaceSemi",f:function L4(t){return t.read_shift(2),_I(t)}},128:{n:"PtgAttrIfError",f:function P4(t){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(2)]}},255:{}};function mv(t,n,e,r){if(r.biff<8)return Ts(t,n);for(var a=t.l+n,o=[],l=0;l!==e.length;++l)switch(e[l][0]){case"PtgArray":e[l][1]=J4(t,0,r),o.push(e[l][1]);break;case"PtgMemArea":e[l][2]=K4(t,0,r),o.push(e[l][2]);break;case"PtgExp":r&&12==r.biff&&(e[l][1][1]=t.read_shift(4),o.push(e[l][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+e[l][0]}return 0!=(n=a-t.l)&&o.push(Ts(t,n)),o}function SB(t){for(var n=[],e=0;e<t.length;++e){for(var r=t[e],a=[],o=0;o<r.length;++o){var l=r[o];a.push(l?2===l[0]?'"'+l[1].replace(/"/g,'""')+'"':l[1]:"")}n.push(a.join(","))}return n.join(";")}var kB={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function yI(t,n,e){if(!t)return"SH33TJSERR0";if(e.biff>8&&(!t.XTI||!t.XTI[n]))return t.SheetNames[n];if(!t.XTI)return"SH33TJSERR6";var r=t.XTI[n];if(e.biff<8)return n>1e4&&(n-=65536),n<0&&(n=-n),0==n?"":t.XTI[n-1];if(!r)return"SH33TJSERR1";var a="";if(e.biff>8)switch(t[r[0]][0]){case 357:return a=-1==r[1]?"#REF":t.SheetNames[r[1]],r[1]==r[2]?a:a+":"+t.SheetNames[r[2]];case 358:return null!=e.SID?t.SheetNames[e.SID]:"SH33TJSSAME"+t[r[0]][0];default:return"SH33TJSSRC"+t[r[0]][0]}switch(t[r[0]][0][0]){case 1025:return a=-1==r[1]?"#REF":t.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?a:a+":"+t.SheetNames[r[2]];case 14849:return t[r[0]].slice(1).map(function(o){return o.Name}).join(";;");default:return t[r[0]][0][3]?(a=-1==r[1]?"#REF":t[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?a:a+":"+t[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function xI(t,n,e){var r=yI(t,n,e);return"#REF"==r?r:function IB(t,n){if(!(t||n&&n.biff<=5&&n.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t+"'":t}(r,e)}function ks(t,n,e,r,a){var m,_,w,N,o=a&&a.biff||8,l={s:{c:0,r:0},e:{c:0,r:0}},u=[],M=0,O=0,z="";if(!t[0]||!t[0][0])return"";for(var j=-1,oe="",Ne=0,Ie=t[0].length;Ne<Ie;++Ne){var Ye=t[0][Ne];switch(Ye[0]){case"PtgUminus":u.push("-"+u.pop());break;case"PtgUplus":u.push("+"+u.pop());break;case"PtgPercent":u.push(u.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(m=u.pop(),_=u.pop(),j>=0){switch(t[0][j][1][0]){case 0:oe=Ua(" ",t[0][j][1][1]);break;case 1:oe=Ua("\r",t[0][j][1][1]);break;default:if(oe="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][j][1][0])}_+=oe,j=-1}u.push(_+kB[Ye[0]]+m);break;case"PtgIsect":m=u.pop(),_=u.pop(),u.push(_+" "+m);break;case"PtgUnion":m=u.pop(),_=u.pop(),u.push(_+","+m);break;case"PtgRange":m=u.pop(),_=u.pop(),u.push(_+":"+m);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":w=nv(Ye[1][1],l,a),u.push(iv(w,o));break;case"PtgRefN":w=e?nv(Ye[1][1],e,a):Ye[1][1],u.push(iv(w,o));break;case"PtgRef3d":M=Ye[1][1],w=nv(Ye[1][2],l,a),z=xI(r,M,a),u.push(z+"!"+iv(w,o));break;case"PtgFunc":case"PtgFuncVar":var Ut=Ye[1][0],rn=Ye[1][1];Ut||(Ut=0);var kt=0==(Ut&=127)?[]:u.slice(-Ut);u.length-=Ut,"User"===rn&&(rn=kt.shift()),u.push(rn+"("+kt.join(",")+")");break;case"PtgBool":u.push(Ye[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":u.push(Ye[1]);break;case"PtgNum":u.push(String(Ye[1]));break;case"PtgStr":u.push('"'+Ye[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":N=qS(Ye[1][1],e?{s:e}:l,a),u.push(TM(N,a));break;case"PtgArea":N=qS(Ye[1][1],l,a),u.push(TM(N,a));break;case"PtgArea3d":N=Ye[1][2],z=xI(r,M=Ye[1][1],a),u.push(z+"!"+TM(N,a));break;case"PtgAttrSum":u.push("SUM("+u.pop()+")");break;case"PtgName":var en=(r.names||[])[(O=Ye[1][2])-1]||(r[0]||[])[O],tn=en?en.Name:"SH33TJSNAME"+String(O);tn&&"_xlfn."==tn.slice(0,6)&&!a.xlfn&&(tn=tn.slice(6)),u.push(tn);break;case"PtgNameX":var Cn,xn=Ye[1][1];if(O=Ye[1][2],!(a.biff<=5)){var mn="";if(14849==((r[xn]||[])[0]||[])[0]||(1025==((r[xn]||[])[0]||[])[0]?r[xn][O]&&r[xn][O].itab>0&&(mn=r.SheetNames[r[xn][O].itab-1]+"!"):mn=r.SheetNames[O-1]+"!"),r[xn]&&r[xn][O])mn+=r[xn][O].Name;else if(r[0]&&r[0][O])mn+=r[0][O].Name;else{var Xn=(yI(r,xn,a)||"").split(";;");Xn[O-1]?mn=Xn[O-1]:mn+="SH33TJSERRX"}u.push(mn);break}xn<0&&(xn=-xn),r[xn]&&(Cn=r[xn][O]),Cn||(Cn={Name:"SH33TJSERRY"}),u.push(Cn.Name);break;case"PtgParen":var gi="(",$n=")";if(j>=0){switch(oe="",t[0][j][1][0]){case 2:gi=Ua(" ",t[0][j][1][1])+gi;break;case 3:gi=Ua("\r",t[0][j][1][1])+gi;break;case 4:$n=Ua(" ",t[0][j][1][1])+$n;break;case 5:$n=Ua("\r",t[0][j][1][1])+$n;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][j][1][0])}j=-1}u.push(gi+u.pop()+$n);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":u.push("#REF!");break;case"PtgExp":var Un={c:e.c,r:e.r};if(r.sharedf[Wi(w={c:Ye[1][1],r:Ye[1][0]})]){var Bn=r.sharedf[Wi(w)];u.push(ks(Bn,0,Un,r,a))}else{var li=!1;for(m=0;m!=r.arrayf.length;++m)if(!(w.c<(_=r.arrayf[m])[0].s.c||w.c>_[0].e.c||w.r<_[0].s.r||w.r>_[0].e.r)){u.push(ks(_[1],0,Un,r,a)),li=!0;break}li||u.push(Ye[1])}break;case"PtgArray":u.push("{"+SB(Ye[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":j=Ne;break;case"PtgMissArg":u.push("");break;case"PtgList":u.push("Table"+Ye[1].idx+"[#"+Ye[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(Ye))}if(3!=a.biff&&j>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][Ne][0])){var ki=!0;switch((Ye=t[0][j])[1][0]){case 4:ki=!1;case 0:oe=Ua(" ",Ye[1][1]);break;case 5:ki=!1;case 1:oe=Ua("\r",Ye[1][1]);break;default:if(oe="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+Ye[1][0])}u.push((ki?oe:"")+u.pop()+(ki?"":oe)),j=-1}}if(u.length>1&&a.WTF)throw new Error("bad formula stack");return u[0]}function vw(t,n,e){var r=t.read_shift(4),a=function pv(t,n,e){for(var a,o,r=t.l+n,l=[];r!=t.l;)n=r-t.l,a=bI[o=t[t.l]]||bI[EB[o]],(24===o||25===o)&&(a=(24===o?MB:AB)[t[t.l+1]]),a&&a.f?l.push([a.n,a.f(t,n,e)]):Ts(t,n);return l}(t,r,e),o=t.read_shift(4);return[a,o>0?mv(t,o,a,e):null]}var UB=vw,bw=vw,ZB=vw,VB=vw,HB={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},wI={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},jB={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function YB(t){return("of:="+t.replace(QM,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function zB(t){return t.replace(/\./,"!")}var gv=typeof Map<"u";function t2(t,n,e){var r=0,a=t.length;if(e){if(gv?e.has(n):Object.prototype.hasOwnProperty.call(e,n))for(var o=gv?e.get(n):e[n];r<o.length;++r)if(t[o[r]].t===n)return t.Count++,o[r]}else for(;r<a;++r)if(t[r].t===n)return t.Count++,r;return t[a]={t:n},t.Count++,t.Unique++,e&&(gv?(e.has(n)||e.set(n,[]),e.get(n).push(a)):(Object.prototype.hasOwnProperty.call(e,n)||(e[n]=[]),e[n].push(a))),a}function xw(t,n){var e={min:t+1,max:t+1},r=-1;return n.MDW&&(Ss=n.MDW),null!=n.width?e.customWidth=1:null!=n.wpx?r=dv(n.wpx):null!=n.wch&&(r=n.wch),r>-1?(e.width=mw(r),e.customWidth=1):null!=n.width&&(e.width=n.width),n.hidden&&(e.hidden=!0),null!=n.level&&(e.outlineLevel=e.level=n.level),e}function Hf(t,n){if(t){var e=[.7,.7,.75,.75,.3,.3];"xlml"==n&&(e=[1,1,1,1,.5,.5]),null==t.left&&(t.left=e[0]),null==t.right&&(t.right=e[1]),null==t.top&&(t.top=e[2]),null==t.bottom&&(t.bottom=e[3]),null==t.header&&(t.header=e[4]),null==t.footer&&(t.footer=e[5])}}function ph(t,n,e){var r=e.revssf[null!=n.z?n.z:"General"],a=60,o=t.length;if(null==r&&e.ssf)for(;a<392;++a)if(null==e.ssf[a]){hd(n.z,a),e.ssf[a]=n.z,e.revssf[n.z]=r=a;break}for(a=0;a!=o;++a)if(t[a].numFmtId===r)return a;return t[o]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function GB(t,n,e){if(t&&t["!ref"]){var r=Cr(t["!ref"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error("Bad range ("+e+"): "+t["!ref"])}}var l5=["objects","scenarios","selectLockedCells","selectUnlockedCells"],c5=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function x5(t,n,e,r){if(t.c&&e["!comments"].push([n,t.c]),void 0===t.v&&"string"!=typeof t.f||"z"===t.t&&!t.f)return"";var a="",o=t.t,l=t.v;if("z"!==t.t)switch(t.t){case"b":a=t.v?"1":"0";break;case"n":a=""+t.v;break;case"e":a=Xd[t.v];break;case"d":r&&r.cellDates?a=Oa(t.v,-1).toISOString():((t=ta(t)).t="n",a=""+(t.v=Uo(Oa(t.v)))),typeof t.z>"u"&&(t.z=Yi[14]);break;default:a=t.v}var u=as("v",Wr(a)),m={r:n},_=ph(r.cellXfs,t,r);switch(0!==_&&(m.s=_),t.t){case"n":case"z":break;case"d":m.t="d";break;case"b":m.t="b";break;case"e":m.t="e";break;default:if(null==t.v){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){u=as("v",""+t2(r.Strings,t.v,r.revStrings)),m.t="s";break}m.t="str"}if(t.t!=o&&(t.t=o,t.v=l),"string"==typeof t.f&&t.f){var w=t.F&&t.F.slice(0,n.length)==n?{t:"array",ref:t.F}:null;u=pi("f",Wr(t.f),w)+(null!=t.v?u:"")}return t.l&&e["!links"].push([n,t.l]),t.D&&(m.cm=1),pi("c",u,m)}function TI(t,n,e,r){var l,a=[Za,pi("worksheet",null,{xmlns:dh[0],"xmlns:r":lo.r})],u="",m=e.Sheets[e.SheetNames[t]];null==m&&(m={});var _=m["!ref"]||"A1",w=Cr(_);if(w.e.c>16383||w.e.r>1048575){if(n.WTF)throw new Error("Range "+_+" exceeds format limit A1:XFD1048576");w.e.c=Math.min(w.e.c,16383),w.e.r=Math.min(w.e.c,1048575),_=ar(w)}r||(r={}),m["!comments"]=[];var M=[];(function s5(t,n,e,r,a){var o=!1,l={},u=null;if("xlsx"!==r.bookType&&n.vbaraw){var m=n.SheetNames[e];try{n.Workbook&&(m=n.Workbook.Sheets[e].CodeName||m)}catch{}o=!0,l.codeName=md(Wr(m))}if(t&&t["!outline"]){var _={summaryBelow:1,summaryRight:1};t["!outline"].above&&(_.summaryBelow=0),t["!outline"].left&&(_.summaryRight=0),u=(u||"")+pi("outlinePr",null,_)}!o&&!u||(a[a.length]=pi("sheetPr",u,l))})(m,e,t,n,a),a[a.length]=pi("dimension",null,{ref:_}),a[a.length]=function y5(t,n,e,r){var a={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(a.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),pi("sheetViews",pi("sheetView",null,a),{})}(0,0,0,e),n.sheetFormat&&(a[a.length]=pi("sheetFormatPr",null,{defaultRowHeight:n.sheetFormat.defaultRowHeight||"16",baseColWidth:n.sheetFormat.baseColWidth||"10",outlineLevelRow:n.sheetFormat.outlineLevelRow||"7"})),null!=m["!cols"]&&m["!cols"].length>0&&(a[a.length]=function p5(t,n){for(var r,e=["<cols>"],a=0;a!=n.length;++a)(r=n[a])&&(e[e.length]=pi("col",null,xw(a,r)));return e[e.length]="</cols>",e.join("")}(0,m["!cols"])),a[l=a.length]="<sheetData/>",m["!links"]=[],null!=m["!ref"]&&(u=function C5(t,n,e,r){var m,oe,a=[],o=[],l=Cr(t["!ref"]),u="",_="",w=[],M=0,O=0,N=t["!rows"],z=Array.isArray(t),j={r:_},Ne=-1;for(O=l.s.c;O<=l.e.c;++O)w[O]=ha(O);for(M=l.s.r;M<=l.e.r;++M){for(o=[],_=Va(M),O=l.s.c;O<=l.e.c;++O){m=w[O]+_;var Ie=z?(t[M]||[])[O]:t[m];void 0!==Ie&&null!=(u=x5(Ie,m,t,n))&&o.push(u)}(o.length>0||N&&N[M])&&(j={r:_},N&&N[M]&&((oe=N[M]).hidden&&(j.hidden=1),Ne=-1,oe.hpx?Ne=uv(oe.hpx):oe.hpt&&(Ne=oe.hpt),Ne>-1&&(j.ht=Ne,j.customHeight=1),oe.level&&(j.outlineLevel=oe.level)),a[a.length]=pi("row",o.join(""),j))}if(N)for(;M<N.length;++M)N&&N[M]&&(j={r:M+1},(oe=N[M]).hidden&&(j.hidden=1),Ne=-1,oe.hpx?Ne=uv(oe.hpx):oe.hpt&&(Ne=oe.hpt),Ne>-1&&(j.ht=Ne,j.customHeight=1),oe.level&&(j.outlineLevel=oe.level),a[a.length]=pi("row","",j));return a.join("")}(m,n),u.length>0&&(a[a.length]=u)),a.length>l+1&&(a[a.length]="</sheetData>",a[l]=a[l].replace("/>",">")),m["!protect"]&&(a[a.length]=function d5(t){var n={sheet:1};return l5.forEach(function(e){null!=t[e]&&t[e]&&(n[e]="1")}),c5.forEach(function(e){null!=t[e]&&!t[e]&&(n[e]="0")}),t.password&&(n.password=zM(t.password).toString(16).toUpperCase()),pi("sheetProtection",null,n)}(m["!protect"])),null!=m["!autofilter"]&&(a[a.length]=function _5(t,n,e,r){var a="string"==typeof t.ref?t.ref:ar(t.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var o=e.Workbook.Names,l=Gs(a);l.s.r==l.e.r&&(l.e.r=Gs(n["!ref"]).e.r,a=ar(l));for(var u=0;u<o.length;++u){var m=o[u];if("_xlnm._FilterDatabase"==m.Name&&m.Sheet==r){m.Ref="'"+e.SheetNames[r]+"'!"+a;break}}return u==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+e.SheetNames[r]+"'!"+a}),pi("autoFilter",null,{ref:a})}(m["!autofilter"],m,e,t)),null!=m["!merges"]&&m["!merges"].length>0&&(a[a.length]=function a5(t){if(0===t.length)return"";for(var n='<mergeCells count="'+t.length+'">',e=0;e!=t.length;++e)n+='<mergeCell ref="'+ar(t[e])+'"/>';return n+"</mergeCells>"}(m["!merges"]));var N,O=-1,z=-1;return m["!links"].length>0&&(a[a.length]="<hyperlinks>",m["!links"].forEach(function(j){j[1].Target&&(N={ref:j[0]},"#"!=j[1].Target.charAt(0)&&(z=Vr(r,-1,Wr(j[1].Target).replace(/#.*$/,""),or.HLINK),N["r:id"]="rId"+z),(O=j[1].Target.indexOf("#"))>-1&&(N.location=Wr(j[1].Target.slice(O+1))),j[1].Tooltip&&(N.tooltip=Wr(j[1].Tooltip)),a[a.length]=pi("hyperlink",null,N))}),a[a.length]="</hyperlinks>"),delete m["!links"],null!=m["!margins"]&&(a[a.length]=function f5(t){return Hf(t),pi("pageMargins",null,t)}(m["!margins"])),(!n||n.ignoreEC||null==n.ignoreEC)&&(a[a.length]=as("ignoredErrors",pi("ignoredError",null,{numberStoredAsText:1,sqref:_}))),M.length>0&&(z=Vr(r,-1,"../drawings/drawing"+(t+1)+".xml",or.DRAW),a[a.length]=pi("drawing",null,{"r:id":"rId"+z}),m["!drawing"]=M),m["!comments"].length>0&&(z=Vr(r,-1,"../drawings/vmlDrawing"+(t+1)+".vml",or.VML),a[a.length]=pi("legacyDrawing",null,{"r:id":"rId"+z}),m["!legacy"]=z),a.length>1&&(a[a.length]="</worksheet>",a[1]=a[1].replace("/>",">")),a.join("")}function E5(t,n,e,r){var a=function T5(t,n,e){var r=Vn(145),a=(e["!rows"]||[])[t]||{};r.write_shift(4,t),r.write_shift(4,0);var o=320;a.hpx?o=20*uv(a.hpx):a.hpt&&(o=20*a.hpt),r.write_shift(2,o),r.write_shift(1,0);var l=0;a.level&&(l|=a.level),a.hidden&&(l|=16),(a.hpx||a.hpt)&&(l|=32),r.write_shift(1,l),r.write_shift(1,0);var u=0,m=r.l;r.l+=4;for(var _={r:t,c:0},w=0;w<16;++w)if(!(n.s.c>w+1<<10||n.e.c<w<<10)){for(var M=-1,O=-1,N=w<<10;N<w+1<<10;++N)_.c=N,(Array.isArray(e)?(e[_.r]||[])[_.c]:e[Wi(_)])&&(M<0&&(M=N),O=N);M<0||(++u,r.write_shift(4,M),r.write_shift(4,O))}var j=r.l;return r.l=m,r.write_shift(4,u),r.l=j,r.length>r.l?r.slice(0,r.l):r}(r,e,n);(a.length>17||(n["!rows"]||[])[r])&&ni(t,0,a)}var M5=Rf,A5=ng;var d8=Rf,u8=ng,MI=["left","right","top","bottom","header","footer"];function A8(t,n,e,r,a,o,l){if(void 0===n.v)return!1;var u="";switch(n.t){case"b":u=n.v?"1":"0";break;case"d":(n=ta(n)).z=n.z||Yi[14],n.v=Uo(Oa(n.v)),n.t="n";break;case"n":case"e":u=""+n.v;break;default:u=n.v}var m={r:e,c:r};switch(m.s=ph(a.cellXfs,n,a),n.l&&o["!links"].push([Wi(m),n.l]),n.c&&o["!comments"].push([Wi(m),n.c]),n.t){case"s":case"str":return a.bookSST?(u=t2(a.Strings,n.v,a.revStrings),m.t="s",m.v=u,l?ni(t,18,function G5(t,n,e){return null==e&&(e=Vn(8)),Pf(n,e),e.write_shift(4,n.v),e}(0,m)):ni(t,7,function z5(t,n,e){return null==e&&(e=Vn(12)),If(n,e),e.write_shift(4,n.v),e}(0,m))):(m.t="str",l?ni(t,17,function a8(t,n,e){return null==e&&(e=Vn(8+4*t.v.length)),Pf(n,e),Vo(t.v,e),e.length>e.l?e.slice(0,e.l):e}(n,m)):ni(t,6,function i8(t,n,e){return null==e&&(e=Vn(12+4*t.v.length)),If(n,e),Vo(t.v,e),e.length>e.l?e.slice(0,e.l):e}(n,m))),!0;case"n":return n.v==(0|n.v)&&n.v>-1e3&&n.v<1e3?l?ni(t,13,function e8(t,n,e){return null==e&&(e=Vn(8)),Pf(n,e),XS(t.v,e),e}(n,m)):ni(t,2,function J5(t,n,e){return null==e&&(e=Vn(12)),If(n,e),XS(t.v,e),e}(n,m)):l?ni(t,16,function Q5(t,n,e){return null==e&&(e=Vn(12)),Pf(n,e),Ff(t.v,e),e}(n,m)):ni(t,5,function q5(t,n,e){return null==e&&(e=Vn(16)),If(n,e),Ff(t.v,e),e}(n,m)),!0;case"b":return m.t="b",l?ni(t,15,function U5(t,n,e){return null==e&&(e=Vn(5)),Pf(n,e),e.write_shift(1,t.v?1:0),e}(n,m)):ni(t,4,function N5(t,n,e){return null==e&&(e=Vn(9)),If(n,e),e.write_shift(1,t.v?1:0),e}(n,m)),!0;case"e":return m.t="e",l?ni(t,14,function j5(t,n,e){return null==e&&(e=Vn(8)),Pf(n,e),e.write_shift(1,t.v),e.write_shift(2,0),e.write_shift(1,0),e}(n,m)):ni(t,3,function V5(t,n,e){return null==e&&(e=Vn(9)),If(n,e),e.write_shift(1,t.v),e}(n,m)),!0}return l?ni(t,12,function F5(t,n,e){return null==e&&(e=Vn(4)),Pf(n,e)}(0,m)):ni(t,1,function P5(t,n,e){return null==e&&(e=Vn(8)),If(n,e)}(0,m)),!0}function B8(t,n,e,r){var a=Ws(),o=e.SheetNames[t],l=e.Sheets[o]||{},u=o;try{e&&e.Workbook&&(u=e.Workbook.Sheets[t].CodeName||u)}catch{}var m=Cr(l["!ref"]||"A1");if(m.e.c>16383||m.e.r>1048575){if(n.WTF)throw new Error("Range "+(l["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");m.e.c=Math.min(m.e.c,16383),m.e.r=Math.min(m.e.c,1048575)}return l["!links"]=[],l["!comments"]=[],ni(a,129),(e.vbaraw||l["!outline"])&&ni(a,147,function I5(t,n,e){null==e&&(e=Vn(84+4*t.length));var r=192;n&&(n.above&&(r&=-65),n.left&&(r&=-129)),e.write_shift(1,r);for(var a=1;a<3;++a)e.write_shift(1,0);return rw({auto:1},e),e.write_shift(-4,-1),e.write_shift(-4,-1),JS(t,e),e.slice(0,e.l)}(u,l["!outline"])),ni(a,148,A5(m)),function L8(t,n,e){ni(t,133),ni(t,137,function w8(t,n,e){null==e&&(e=Vn(30));var r=924;return(((n||{}).Views||[])[0]||{}).RTL&&(r|=32),e.write_shift(2,r),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,100),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(4,0),e}(0,e)),ni(t,138),ni(t,134)}(a,0,e.Workbook),function I8(t,n){!n||!n["!cols"]||(ni(t,390),n["!cols"].forEach(function(e,r){e&&ni(t,60,function v8(t,n,e){null==e&&(e=Vn(18));var r=xw(t,n);e.write_shift(-4,t),e.write_shift(-4,t),e.write_shift(4,256*(r.width||10)),e.write_shift(4,0);var a=0;return n.hidden&&(a|=1),"number"==typeof r.width&&(a|=2),n.level&&(a|=n.level<<8),e.write_shift(2,a),e}(r,e))}),ni(t,391))}(a,l),function S8(t,n,e,r){var a=Cr(n["!ref"]||"A1"),l="",u=[];ni(t,145);var m=Array.isArray(n),_=a.e.r;n["!rows"]&&(_=Math.max(a.e.r,n["!rows"].length-1));for(var w=a.s.r;w<=_;++w){l=Va(w),E5(t,n,a,w);var M=!1;if(w<=a.e.r)for(var O=a.s.c;O<=a.e.c;++O){w===a.s.r&&(u[O]=ha(O));var N=m?(n[w]||[])[O]:n[u[O]+l];M=!!N&&A8(t,N,w,O,r,n,M)}}ni(t,146)}(a,l,0,n),function N8(t,n){n["!protect"]&&ni(t,535,function D8(t,n){return null==n&&(n=Vn(66)),n.write_shift(2,t.password?zM(t.password):0),n.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(e){n.write_shift(4,e[1]?null==t[e[0]]||t[e[0]]?0:1:null!=t[e[0]]&&t[e[0]]?0:1)}),n}(n["!protect"]))}(a,l),function F8(t,n,e,r){if(n["!autofilter"]){var a=n["!autofilter"],o="string"==typeof a.ref?a.ref:ar(a.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var l=e.Workbook.Names,u=Gs(o);u.s.r==u.e.r&&(u.e.r=Gs(n["!ref"]).e.r,o=ar(u));for(var m=0;m<l.length;++m){var _=l[m];if("_xlnm._FilterDatabase"==_.Name&&_.Sheet==r){_.Ref="'"+e.SheetNames[r]+"'!"+o;break}}m==l.length&&l.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+e.SheetNames[r]+"'!"+o}),ni(t,161,ng(Cr(o))),ni(t,162)}}(a,l,e,t),function k8(t,n){!n||!n["!merges"]||(ni(t,177,function h8(t,n){return null==n&&(n=Vn(4)),n.write_shift(4,t),n}(n["!merges"].length)),n["!merges"].forEach(function(e){ni(t,176,u8(e))}),ni(t,178))}(a,l),function P8(t,n,e){n["!links"].forEach(function(r){if(r[1].Target){var a=Vr(e,-1,r[1].Target.replace(/#.*$/,""),or.HLINK);ni(t,494,function m8(t,n){var e=Vn(50+4*(t[1].Target.length+(t[1].Tooltip||"").length));ng({s:Qa(t[0]),e:Qa(t[0])},e),IM("rId"+n,e);var r=t[1].Target.indexOf("#");return Vo((-1==r?"":t[1].Target.slice(r+1))||"",e),Vo(t[1].Tooltip||"",e),Vo("",e),e.slice(0,e.l)}(r,a))}}),delete n["!links"]}(a,l,r),l["!margins"]&&ni(a,476,function y8(t,n){return null==n&&(n=Vn(48)),Hf(t),MI.forEach(function(e){Ff(t[e],n)}),n}(l["!margins"])),(!n||n.ignoreEC||null==n.ignoreEC)&&function O8(t,n){!n||!n["!ref"]||(ni(t,648),ni(t,649,function C8(t){var n=Vn(24);return n.write_shift(4,4),n.write_shift(4,1),ng(t,n),n}(Cr(n["!ref"]))),ni(t,650))}(a,l),function R8(t,n,e,r){if(n["!comments"].length>0){var a=Vr(r,-1,"../drawings/vmlDrawing"+(e+1)+".vml",or.VML);ni(t,551,IM("rId"+a)),n["!legacy"]=a}}(a,l,t,r),ni(a,130),a.end()}var r2=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],Q8="][*?/\\".split("");function II(t,n){if(t.length>31){if(n)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var e=!0;return Q8.forEach(function(r){if(-1!=t.indexOf(r)){if(!n)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");e=!1}}),e}function PI(t){var n=[Za];n[n.length]=pi("workbook",null,{xmlns:dh[0],"xmlns:r":lo.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(r2.forEach(function(u){null!=t.Workbook.WBProps[u[0]]&&t.Workbook.WBProps[u[0]]!=u[1]&&(r[u[0]]=t.Workbook.WBProps[u[0]])}),t.Workbook.WBProps.CodeName&&(r.codeName=t.Workbook.WBProps.CodeName,delete r.CodeName)),n[n.length]=pi("workbookPr",null,r);var a=t.Workbook&&t.Workbook.Sheets||[],o=0;if(a&&a[0]&&a[0].Hidden){for(n[n.length]="<bookViews>",o=0;o!=t.SheetNames.length&&a[o]&&a[o].Hidden;++o);o==t.SheetNames.length&&(o=0),n[n.length]='<workbookView firstSheet="'+o+'" activeTab="'+o+'"/>',n[n.length]="</bookViews>"}for(n[n.length]="<sheets>",o=0;o!=t.SheetNames.length;++o){var l={name:Wr(t.SheetNames[o].slice(0,31))};if(l.sheetId=""+(o+1),l["r:id"]="rId"+(o+1),a[o])switch(a[o].Hidden){case 1:l.state="hidden";break;case 2:l.state="veryHidden"}n[n.length]=pi("sheet",null,l)}return n[n.length]="</sheets>",e&&(n[n.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(u){var m={name:u.Name};u.Comment&&(m.comment=u.Comment),null!=u.Sheet&&(m.localSheetId=""+u.Sheet),u.Hidden&&(m.hidden="1"),u.Ref&&(n[n.length]=pi("definedName",Wr(u.Ref),m))}),n[n.length]="</definedNames>"),n.length>2&&(n[n.length]="</workbook>",n[1]=n[1].replace("/>",">")),n.join("")}function tU(t,n){return n||(n=Vn(127)),n.write_shift(4,t.Hidden),n.write_shift(4,t.iTabID),IM(t.strRelID,n),Vo(t.name.slice(0,31),n),n.length>n.l?n.slice(0,n.l):n}function uU(t,n){var e=Ws();return ni(e,131),ni(e,128,function lU(t,n){n||(n=Vn(127));for(var e=0;4!=e;++e)n.write_shift(4,0);return Vo("SheetJS",n),Vo(j0.version,n),Vo(j0.version,n),Vo("7262",n),n.length>n.l?n.slice(0,n.l):n}()),ni(e,153,function iU(t,n){n||(n=Vn(72));var e=0;return t&&t.filterPrivacy&&(e|=8),n.write_shift(4,e),n.write_shift(4,0),JS(t&&t.CodeName||"ThisWorkbook",n),n.slice(0,n.l)}(t.Workbook&&t.Workbook.WBProps||null)),function dU(t,n){if(n.Workbook&&n.Workbook.Sheets){for(var e=n.Workbook.Sheets,r=0,a=-1,o=-1;r<e.length;++r)!e[r]||!e[r].Hidden&&-1==a?a=r:1==e[r].Hidden&&-1==o&&(o=r);o>a||(ni(t,135),ni(t,158,function cU(t,n){return n||(n=Vn(29)),n.write_shift(-4,0),n.write_shift(-4,460),n.write_shift(4,28800),n.write_shift(4,17600),n.write_shift(4,500),n.write_shift(4,t),n.write_shift(4,t),n.write_shift(1,120),n.length>n.l?n.slice(0,n.l):n}(a)),ni(t,136))}}(e,t),function sU(t,n){ni(t,143);for(var e=0;e!=n.SheetNames.length;++e)ni(t,156,tU({Hidden:n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[e]&&n.Workbook.Sheets[e].Hidden||0,iTabID:e+1,strRelID:"rId"+(e+1),name:n.SheetNames[e]}));ni(t,144)}(e,t),ni(e,132),e.end()}function TU(t,n,e,r,a){return(".bin"===n.slice(-4)?B8:TI)(t,e,r,a)}function AU(t,n,e){return(".bin"===n.slice(-4)?d4:dI)(t,e)}function LI(t){return pi("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+KM(t.Ref,{r:0,c:0})})}function YU(t,n,e,r,a,o,l){if(!t||null==t.v&&null==t.f)return"";var u={};if(t.f&&(u["ss:Formula"]="="+Wr(KM(t.f,l))),t.F&&t.F.slice(0,n.length)==n){var m=Qa(t.F.slice(n.length+1));u["ss:ArrayRange"]="RC:R"+(m.r==l.r?"":"["+(m.r-l.r)+"]")+"C"+(m.c==l.c?"":"["+(m.c-l.c)+"]")}if(t.l&&t.l.Target&&(u["ss:HRef"]=Wr(t.l.Target),t.l.Tooltip&&(u["x:HRefScreenTip"]=Wr(t.l.Tooltip))),e["!merges"])for(var _=e["!merges"],w=0;w!=_.length;++w)_[w].s.c!=l.c||_[w].s.r!=l.r||(_[w].e.c>_[w].s.c&&(u["ss:MergeAcross"]=_[w].e.c-_[w].s.c),_[w].e.r>_[w].s.r&&(u["ss:MergeDown"]=_[w].e.r-_[w].s.r));var M="",O="";switch(t.t){case"z":if(!r.sheetStubs)return"";break;case"n":M="Number",O=String(t.v);break;case"b":M="Boolean",O=t.v?"1":"0";break;case"e":M="Error",O=Xd[t.v];break;case"d":M="DateTime",O=new Date(t.v).toISOString(),null==t.z&&(t.z=t.z||Yi[14]);break;case"s":M="String",O=function h3(t){return(t+"").replace(pM,function(e){return mM[e]}).replace(MS,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}(t.v||"")}var N=ph(r.cellXfs,t,r);u["ss:StyleID"]="s"+(21+N),u["ss:Index"]=l.c+1;var j="z"==t.t?"":'<Data ss:Type="'+M+'">'+(null!=t.v?O:"")+"</Data>";return(t.c||[]).length>0&&(j+=function jU(t){return t.map(function(n){var e=function f3(t){return t.replace(/(\r\n|[\r\n])/g," ")}(n.t||""),r=pi("ss:Data",e,{xmlns:"http://www.w3.org/TR/REC-html40"});return pi("Comment",r,{"ss:Author":n.a})}).join("")}(t.c)),pi("Cell",j,u)}function zU(t,n){var e='<Row ss:Index="'+(t+1)+'"';return n&&(n.hpt&&!n.hpx&&(n.hpx=pw(n.hpt)),n.hpx&&(e+=' ss:AutoFitHeight="0" ss:Height="'+n.hpx+'"'),n.hidden&&(e+=' ss:Hidden="1"')),e+">"}function GU(t,n,e){var r=[],o=e.Sheets[e.SheetNames[t]],l=o?function VU(t,n,e,r){if(!t||!((r||{}).Workbook||{}).Names)return"";for(var a=r.Workbook.Names,o=[],l=0;l<a.length;++l){var u=a[l];u.Sheet==e&&(u.Name.match(/^_xlfn\./)||o.push(LI(u)))}return o.join("")}(o,0,t,e):"";return l.length>0&&r.push("<Names>"+l+"</Names>"),l=o?function WU(t,n,e,r){if(!t["!ref"])return"";var a=Cr(t["!ref"]),o=t["!merges"]||[],l=0,u=[];t["!cols"]&&t["!cols"].forEach(function(oe,Ne){fh(oe);var Ie=!!oe.width,Ye=xw(Ne,oe),Pt={"ss:Index":Ne+1};Ie&&(Pt["ss:Width"]=cv(Ye.width)),oe.hidden&&(Pt["ss:Hidden"]="1"),u.push(pi("Column",null,Pt))});for(var m=Array.isArray(t),_=a.s.r;_<=a.e.r;++_){for(var w=[zU(_,(t["!rows"]||[])[_])],M=a.s.c;M<=a.e.c;++M){var O=!1;for(l=0;l!=o.length;++l)if(!(o[l].s.c>M||o[l].s.r>_||o[l].e.c<M||o[l].e.r<_)){(o[l].s.c!=M||o[l].s.r!=_)&&(O=!0);break}if(!O){var N={r:_,c:M},z=Wi(N);w.push(YU(m?(t[_]||[])[M]:t[z],z,t,n,0,0,N))}}w.push("</Row>"),w.length>2&&u.push(w.join(""))}return u.join("")}(o,n):"",l.length>0&&r.push("<Table>"+l+"</Table>"),r.push(function HU(t,n,e,r){if(!t)return"";var a=[];if(t["!margins"]&&(a.push("<PageSetup>"),t["!margins"].header&&a.push(pi("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&a.push(pi("Footer",null,{"x:Margin":t["!margins"].footer})),a.push(pi("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),a.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[e])if(r.Workbook.Sheets[e].Hidden)a.push(pi("Visible",1==r.Workbook.Sheets[e].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var o=0;o<e&&(!r.Workbook.Sheets[o]||r.Workbook.Sheets[o].Hidden);++o);o==e&&a.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push("<DisplayRightToLeft/>"),t["!protect"]&&(a.push(as("ProtectContents","True")),t["!protect"].objects&&a.push(as("ProtectObjects","True")),t["!protect"].scenarios&&a.push(as("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null!=t["!protect"].selectUnlockedCells&&!t["!protect"].selectUnlockedCells&&a.push(as("EnableSelection","UnlockedCells")):a.push(as("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(l){t["!protect"][l[0]]&&a.push("<"+l[1]+"/>")})),0==a.length?"":pi("WorksheetOptions",a.join(""),{xmlns:Vl.x})}(o,0,t,e)),r.join("")}function $U(t,n){n||(n={}),t.SSF||(t.SSF=ta(Yi)),t.SSF&&(Kp(),Q0(t.SSF),n.revssf=J1(t.SSF),n.revssf[t.SSF[65535]]=0,n.ssf=t.SSF,n.cellXfs=[],ph(n.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(function NU(t,n){var e=[];return t.Props&&e.push(function hF(t,n){var e=[];return Ba(UM).map(function(r){for(var a=0;a<eu.length;++a)if(eu[a][1]==r)return eu[a];for(a=0;a<Nf.length;++a)if(Nf[a][1]==r)return Nf[a];throw r}).forEach(function(r){if(null!=t[r[1]]){var a=n&&n.Props&&null!=n.Props[r[1]]?n.Props[r[1]]:t[r[1]];"date"===r[2]&&(a=new Date(a).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof a?a=String(a):!0===a||!1===a?a=a?"1":"0":a instanceof Date&&(a=new Date(a).toISOString().replace(/\.\d*Z/,"")),e.push(as(UM[r[1]]||r[1],a))}}),pi("DocumentProperties",e.join(""),{xmlns:Vl.o})}(t.Props,n)),t.Custprops&&e.push(function fF(t,n){var e=["Worksheets","SheetNames"],r="CustomDocumentProperties",a=[];return t&&Ba(t).forEach(function(o){if(Object.prototype.hasOwnProperty.call(t,o)){for(var l=0;l<eu.length;++l)if(o==eu[l][1])return;for(l=0;l<Nf.length;++l)if(o==Nf[l][1])return;for(l=0;l<e.length;++l)if(o==e[l])return;var u=t[o],m="string";"number"==typeof u?(m="float",u=String(u)):!0===u||!1===u?(m="boolean",u=u?"1":"0"):u=String(u),a.push(pi(ES(o),u,{"dt:dt":m}))}}),n&&Ba(n).forEach(function(o){if(Object.prototype.hasOwnProperty.call(n,o)&&(!t||!Object.prototype.hasOwnProperty.call(t,o))){var l=n[o],u="string";"number"==typeof l?(u="float",l=String(l)):!0===l||!1===l?(u="boolean",l=l?"1":"0"):l instanceof Date?(u="dateTime.tz",l=l.toISOString()):l=String(l),a.push(pi(ES(o),l,{"dt:dt":u}))}}),"<"+r+' xmlns="'+Vl.o+'">'+a.join("")+"</"+r+">"}(t.Props,t.Custprops)),e.join("")}(t,n)),e.push(""),e.push(""),e.push("");for(var r=0;r<t.SheetNames.length;++r)e.push(pi("Worksheet",GU(r,n,t),{"ss:Name":Wr(t.SheetNames[r])}));return e[2]=function UU(t,n){var e=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return n.cellXfs.forEach(function(r,a){var o=[];o.push(pi("NumberFormat",null,{"ss:Format":Wr(Yi[r.numFmtId])}));var l={"ss:ID":"s"+(21+a)};e.push(pi("Style",o.join(""),l))}),pi("Styles",e.join(""))}(0,n),e[3]=function ZU(t){if(!((t||{}).Workbook||{}).Names)return"";for(var n=t.Workbook.Names,e=[],r=0;r<n.length;++r){var a=n[r];null==a.Sheet&&(a.Name.match(/^_xlfn\./)||e.push(LI(a)))}return pi("Names",e.join(""))}(t),Za+pi("Workbook",e.join(""),{xmlns:Vl.ss,"xmlns:o":Vl.o,"xmlns:x":Vl.x,"xmlns:ss":Vl.ss,"xmlns:dt":Vl.dt,"xmlns:html":Vl.html})}var vv={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};var bv={0:{f:function D5(t,n){var e={},r=t.l+n;e.r=t.read_shift(4),t.l+=4;var a=t.read_shift(2);t.l+=1;var o=t.read_shift(1);return t.l=r,7&o&&(e.level=7&o),16&o&&(e.hidden=!0),32&o&&(e.hpt=a/20),e}},1:{f:function O5(t){return[uc(t)]}},2:{f:function K5(t){return[uc(t),OM(t),"n"]}},3:{f:function Z5(t){return[uc(t),t.read_shift(1),"e"]}},4:{f:function L5(t){return[uc(t),t.read_shift(1),"b"]}},5:{f:function $5(t){return[uc(t),Ms(t),"n"]}},6:{f:function n8(t){return[uc(t),Es(t),"str"]}},7:{f:function Y5(t){return[uc(t),t.read_shift(4),"s"]}},8:{f:function c8(t,n,e){var r=t.l+n,a=uc(t);a.r=e["!row"];var l=[a,Es(t),"str"];if(e.cellFormula){t.l+=2;var u=bw(t,r-t.l,e);l[3]=ks(u,0,a,e.supbooks,e)}else t.l=r;return l}},9:{f:function l8(t,n,e){var r=t.l+n,a=uc(t);a.r=e["!row"];var l=[a,Ms(t),"n"];if(e.cellFormula){t.l+=2;var u=bw(t,r-t.l,e);l[3]=ks(u,0,a,e.supbooks,e)}else t.l=r;return l}},10:{f:function o8(t,n,e){var r=t.l+n,a=uc(t);a.r=e["!row"];var l=[a,t.read_shift(1),"b"];if(e.cellFormula){t.l+=2;var u=bw(t,r-t.l,e);l[3]=ks(u,0,a,e.supbooks,e)}else t.l=r;return l}},11:{f:function s8(t,n,e){var r=t.l+n,a=uc(t);a.r=e["!row"];var l=[a,t.read_shift(1),"e"];if(e.cellFormula){t.l+=2;var u=bw(t,r-t.l,e);l[3]=ks(u,0,a,e.supbooks,e)}else t.l=r;return l}},12:{f:function R5(t){return[Of(t)]}},13:{f:function X5(t){return[Of(t),OM(t),"n"]}},14:{f:function H5(t){return[Of(t),t.read_shift(1),"e"]}},15:{f:function B5(t){return[Of(t),t.read_shift(1),"b"]}},16:{f:function EI(t){return[Of(t),Ms(t),"n"]}},17:{f:function r8(t){return[Of(t),Es(t),"str"]}},18:{f:function W5(t){return[Of(t),t.read_shift(4),"s"]}},19:{f:AM},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function aU(t,n,e){var r=t.l+n;t.l+=4,t.l+=1;var a=t.read_shift(4),o=U3(t),l=ZB(t,0,e),u=SM(t);t.l=r;var m={Name:o,Ptg:l};return a<268435455&&(m.Sheet=a),u&&(m.Comment=u),m}},40:{},42:{},43:{f:function nN(t,n,e){var r={};r.sz=t.read_shift(2)/20;var a=function H3(t){var n=t.read_shift(1);return t.l++,{fBold:1&n,fItalic:2&n,fUnderline:4&n,fStrikeout:8&n,fOutline:16&n,fShadow:32&n,fCondense:64&n,fExtend:128&n}}(t);switch(a.fItalic&&(r.italic=1),a.fCondense&&(r.condense=1),a.fExtend&&(r.extend=1),a.fShadow&&(r.shadow=1),a.fOutline&&(r.outline=1),a.fStrikeout&&(r.strike=1),700===t.read_shift(2)&&(r.bold=1),t.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript"}var l=t.read_shift(1);0!=l&&(r.underline=l);var u=t.read_shift(1);u>0&&(r.family=u);var m=t.read_shift(1);switch(m>0&&(r.charset=m),t.l++,r.color=function V3(t){var n={},r=t.read_shift(1)>>>1,a=t.read_shift(1),o=t.read_shift(2,"i"),l=t.read_shift(1),u=t.read_shift(1),m=t.read_shift(1);switch(t.l++,r){case 0:n.auto=1;break;case 1:n.index=a;var _=Lf[a];_&&(n.rgb=lv(_));break;case 2:n.rgb=lv([l,u,m]);break;case 3:n.theme=a}return 0!=o&&(n.tint=o>0?o/32767:o/32768),n}(t),t.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor"}return r.name=Es(t),r}},44:{f:function eN(t,n){return[t.read_shift(2),Es(t)]}},45:{f:aN},46:{f:sN},47:{f:function oN(t,n){var e=t.l+n,r=t.read_shift(2),a=t.read_shift(2);return t.l=e,{ixfe:r,numFmtId:a}}},48:{},49:{f:function O3(t){return t.read_shift(4,"i")}},50:{},51:{f:function VN(t){for(var n=[],e=t.read_shift(4);e-- >0;)n.push([t.read_shift(4),t.read_shift(4)]);return n}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:function Yk(t,n,e){if(!e.cellStyles)return Ts(t,n);var r=e&&e.biff>=12?4:2,a=t.read_shift(r),o=t.read_shift(r),l=t.read_shift(r),u=t.read_shift(r),m=t.read_shift(2);2==r&&(t.l+=2);var _={s:a,e:o,w:l,ixfe:u,flags:m};return(e.biff>=5||!e.biff)&&(_.level=m>>8&7),_}},62:{f:function t8(t){return[uc(t),AM(t),"is"]}},63:{f:function QN(t){var n={};n.i=t.read_shift(4);var e={};e.r=t.read_shift(4),e.c=t.read_shift(4),n.r=Wi(e);var r=t.read_shift(1);return 2&r&&(n.l="1"),8&r&&(n.a="1"),n}},64:{f:function T8(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Ts,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function x8(t){var n=t.read_shift(2);return t.l+=28,{RTL:32&n}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function k5(t,n){var e={},r=t[t.l];return++t.l,e.above=!(64&r),e.left=!(128&r),t.l+=18,e.name=B3(t,n-19),e}},148:{f:M5,p:16},151:{f:function p8(){}},152:{},153:{f:function nU(t,n){var e={},r=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var a=n>8?Es(t):"";return a.length>0&&(e.CodeName=a),e.autoCompressPictures=!!(65536&r),e.backupFile=!!(64&r),e.checkCompatibility=!!(4096&r),e.date1904=!!(1&r),e.filterPrivacy=!!(8&r),e.hidePivotFieldList=!!(1024&r),e.promptedSolutions=!!(16&r),e.publishItems=!!(2048&r),e.refreshAllConnections=!!(262144&r),e.saveExternalLinkValues=!!(128&r),e.showBorderUnselectedTables=!!(4&r),e.showInkAnnotation=!!(32&r),e.showObjects=["all","placeholders","none"][r>>13&3],e.showPivotChartFilter=!!(32768&r),e.updateLinks=["userSet","never","always"][r>>8&3],e}},154:{},155:{},156:{f:function eU(t,n){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=kM(t,n-8),e.name=Es(t),e}},157:{},158:{},159:{T:1,f:function wL(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:Rf},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:d8},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function UN(t,n){return{flags:t.read_shift(4),version:t.read_shift(4),name:Es(t)}}},336:{T:-1},337:{f:function YN(t){return t.l+=4,0!=t.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:kM},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function Hk(t,n,e){if(e.biff<8)return function M6(t,n,e){3==t[t.l+1]&&t[t.l]++;var r=ov(t,0,e);return 3==r.charCodeAt(0)?r.slice(1):r}(t,0,e);for(var r=[],a=t.l+n,o=t.read_shift(e.biff>8?4:2);0!=o--;)r.push(FF(t,0,e));if(t.l!=a)throw new Error("Bad ExternSheet: "+t.l+" != "+a);return r}},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function g8(t,n,e){var r=t.l+n,a=ek(t),o=t.read_shift(1),l=[a];if(l[2]=o,e.cellFormula){var u=UB(t,r-t.l,e);l[1]=u}else t.l=r;return l}},427:{f:function _8(t,n,e){var r=t.l+n,o=[Rf(t,16)];if(e.cellFormula){var l=VB(t,r-t.l,e);o[1]=l,t.l=r}else t.l=r;return o}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function b8(t){var n={};return MI.forEach(function(e){n[e]=Ms(t)}),n}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function S5(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function f8(t,n){var e=t.l+n,r=Rf(t,16),a=SM(t),o=Es(t),l=Es(t),u=Es(t);t.l=e;var m={rfx:r,relId:a,loc:o,display:u};return l&&(m.Tooltip=l),m}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:kM},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:s4},633:{T:1},634:{T:-1},635:{T:1,f:function a4(t){var n={};n.iauthor=t.read_shift(4);var e=Rf(t,16);return n.rfx=e.s,n.ref=Wi(e.s),t.l+=16,n}},636:{T:-1},637:{f:L3},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function j8(t,n){return t.l+=10,{name:Es(t)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function E8(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function _i(t,n,e,r){var a=n;if(!isNaN(a)){var o=r||(e||[]).length||0,l=t.next(4);l.write_shift(2,a),l.write_shift(2,o),o>0&&DM(e)&&t.push(e)}}function yv(t,n,e){return t||(t=Vn(7)),t.write_shift(2,n),t.write_shift(2,e),t.write_shift(2,0),t.write_shift(1,0),t}function aZ(t,n,e,r){if(null!=n.v)switch(n.t){case"d":case"n":var a="d"==n.t?Uo(Oa(n.v)):n.v;return void(a==(0|a)&&a>=0&&a<65536?_i(t,2,function oL(t,n,e){var r=Vn(9);return yv(r,t,n),r.write_shift(2,e),r}(e,r,a)):_i(t,3,function rL(t,n,e){var r=Vn(15);return yv(r,t,n),r.write_shift(8,e,"f"),r}(e,r,a)));case"b":case"e":return void _i(t,5,function iZ(t,n,e,r){var a=Vn(9);return yv(a,t,n),Ek(e,r||"b",a),a}(e,r,n.v,n.t));case"s":case"str":return void _i(t,4,function rZ(t,n,e){var r=Vn(8+2*e.length);return yv(r,t,n),r.write_shift(1,e.length),r.write_shift(e.length,e,"sbcs"),r.l<r.length?r.slice(0,r.l):r}(e,r,(n.v||"").slice(0,255)))}_i(t,1,yv(null,e,r))}function mZ(t,n,e,r,a){var o=16+ph(a.cellXfs,n,a);if(null!=n.v||n.bf)if(n.bf)_i(t,6,function BB(t,n,e,r,a){var o=Zf(n,e,a),l=function NB(t){if(null==t){var n=Vn(8);return n.write_shift(1,3),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,65535),n}return Ff("number"==typeof t?t:0)}(t.v),u=Vn(6);u.write_shift(2,33),u.write_shift(4,0);for(var _=Vn(t.bf.length),w=0;w<t.bf.length;++w)_[w]=t.bf[w];return Bo([o,l,u,_])}(n,e,r,0,o));else switch(n.t){case"d":case"n":_i(t,515,function D6(t,n,e,r){var a=Vn(14);return Zf(t,n,r,a),Ff(e,a),a}(e,r,"d"==n.t?Uo(Oa(n.v)):n.v,o));break;case"b":case"e":_i(t,517,function w6(t,n,e,r,a,o){var l=Vn(8);return Zf(t,n,r,l),Ek(e,o,l),l}(e,r,n.v,o,0,n.t));break;case"s":case"str":a.bookSST?_i(t,253,function l6(t,n,e,r){var a=Vn(10);return Zf(t,n,r,a),a.write_shift(4,e),a}(e,r,t2(a.Strings,n.v,a.revStrings),o)):_i(t,516,function d6(t,n,e,r,a){var o=!a||8==a.biff,l=Vn(+o+8+(1+o)*e.length);return Zf(t,n,r,l),l.write_shift(2,e.length),o&&l.write_shift(1,1),l.write_shift((1+o)*e.length,e,o?"utf16le":"sbcs"),l}(e,r,(n.v||"").slice(0,255),o,a));break;default:_i(t,513,Zf(e,r,o))}else _i(t,513,Zf(e,r,o))}function pZ(t,n,e){var w,r=Ws(),a=e.SheetNames[t],o=e.Sheets[a]||{},l=(e||{}).Workbook||{},u=(l.Sheets||[])[t]||{},m=Array.isArray(o),_=8==n.biff,M="",O=[],N=Cr(o["!ref"]||"A1"),z=_?65536:16384;if(N.e.c>255||N.e.r>=z){if(n.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:IV16384");N.e.c=Math.min(N.e.c,255),N.e.r=Math.min(N.e.c,z-1)}_i(r,2057,jM(0,16,n)),_i(r,13,hc(1)),_i(r,12,hc(100)),_i(r,15,$s(!0)),_i(r,17,$s(!1)),_i(r,16,Ff(.001)),_i(r,95,$s(!0)),_i(r,42,$s(!1)),_i(r,43,$s(!1)),_i(r,130,hc(1)),_i(r,128,function x6(t){var n=Vn(8);return n.write_shift(4,0),n.write_shift(2,t[0]?t[0]+1:0),n.write_shift(2,t[1]?t[1]+1:0),n}([0,0])),_i(r,131,$s(!1)),_i(r,132,$s(!1)),_&&function fZ(t,n){if(n){var e=0;n.forEach(function(r,a){++e<=256&&r&&_i(t,125,function $6(t,n){var e=Vn(12);e.write_shift(2,n),e.write_shift(2,n),e.write_shift(2,256*t.width),e.write_shift(2,0);var r=0;return t.hidden&&(r|=1),e.write_shift(1,r),e.write_shift(1,r=t.level||0),e.write_shift(2,0),e}(xw(a,r),a))})}}(r,o["!cols"]),_i(r,512,function m6(t,n){var e=8!=n.biff&&n.biff?2:4,r=Vn(2*e+6);return r.write_shift(e,t.s.r),r.write_shift(e,t.e.r+1),r.write_shift(2,t.s.c),r.write_shift(2,t.e.c+1),r.write_shift(2,0),r}(N,n)),_&&(o["!links"]=[]);for(var j=N.s.r;j<=N.e.r;++j){M=Va(j);for(var oe=N.s.c;oe<=N.e.c;++oe){j===N.s.r&&(O[oe]=ha(oe)),w=O[oe]+M;var Ne=m?(o[j]||[])[oe]:o[w];Ne&&(mZ(r,Ne,j,oe,n),_&&Ne.l&&o["!links"].push([w,Ne.l]))}}var Ie=u.CodeName||u.name||a;return _&&_i(r,574,function i6(t){var n=Vn(18),e=1718;return t&&t.RTL&&(e|=64),n.write_shift(2,e),n.write_shift(4,0),n.write_shift(4,64),n.write_shift(4,0),n.write_shift(4,0),n}((l.Views||[])[0])),_&&(o["!merges"]||[]).length&&_i(r,229,function R6(t){var n=Vn(2+8*t.length);n.write_shift(2,t.length);for(var e=0;e<t.length;++e)Ok(t[e],n);return n}(o["!merges"])),_&&function hZ(t,n){for(var e=0;e<n["!links"].length;++e){var r=n["!links"][e];_i(t,440,Z6(r)),r[1].Tooltip&&_i(t,2048,H6(r))}delete n["!links"]}(r,o),_i(r,442,Mk(Ie)),_&&function dZ(t,n){var e=Vn(19);e.write_shift(4,2151),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(2,3),e.write_shift(1,1),e.write_shift(4,0),_i(t,2151,e),(e=Vn(39)).write_shift(4,2152),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(2,3),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(2,1),e.write_shift(4,4),e.write_shift(2,0),Ok(Cr(n["!ref"]||"A1"),e),e.write_shift(4,4),_i(t,2152,e)}(r,o),_i(r,10),r.end()}function gZ(t,n,e){var r=Ws(),a=(t||{}).Workbook||{},o=a.Sheets||[],l=a.WBProps||{},u=8==e.biff,m=5==e.biff;_i(r,2057,jM(0,5,e)),"xla"==e.bookType&&_i(r,135),_i(r,225,u?hc(1200):null),_i(r,193,function wF(t,n){n||(n=Vn(t));for(var e=0;e<t;++e)n.write_shift(1,0);return n}(2)),m&&_i(r,191),m&&_i(r,192),_i(r,226),_i(r,92,function YF(t,n){var e=!n||8==n.biff,r=Vn(e?112:54);for(r.write_shift(8==n.biff?2:1,7),e&&r.write_shift(1,0),r.write_shift(4,859007059),r.write_shift(4,5458548|(e?0:536870912));r.l<r.length;)r.write_shift(1,e?0:32);return r}(0,e)),_i(r,66,hc(u?1200:1252)),u&&_i(r,353,hc(0)),u&&_i(r,448),_i(r,317,function K6(t){for(var n=Vn(2*t),e=0;e<t;++e)n.write_shift(2,e+1);return n}(t.SheetNames.length)),u&&t.vbaraw&&_i(r,211),u&&t.vbaraw&&_i(r,442,Mk(l.CodeName||"ThisWorkbook")),_i(r,156,hc(17)),_i(r,25,$s(!1)),_i(r,18,$s(!1)),_i(r,19,hc(0)),u&&_i(r,431,$s(!1)),u&&_i(r,444,hc(0)),_i(r,61,function t6(){var t=Vn(18);return t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,29280),t.write_shift(2,17600),t.write_shift(2,56),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,1),t.write_shift(2,500),t}()),_i(r,64,$s(!1)),_i(r,141,hc(0)),_i(r,34,$s("true"==function q8(t){return t.Workbook&&t.Workbook.WBProps&&function Ca(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}(t.Workbook.WBProps.date1904)?"true":"false"}(t))),_i(r,14,$s(!0)),u&&_i(r,439,$s(!1)),_i(r,218,hc(0)),function lZ(t,n,e){_i(t,49,function o6(t,n){var e=t.name||"Arial",r=n&&5==n.biff,o=Vn(r?15+e.length:16+2*e.length);return o.write_shift(2,20*(t.sz||12)),o.write_shift(4,0),o.write_shift(2,400),o.write_shift(4,0),o.write_shift(2,0),o.write_shift(1,e.length),r||o.write_shift(1,1),o.write_shift((r?1:2)*e.length,e,r?"sbcs":"utf16le"),o}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},e))}(r,0,e),function cZ(t,n,e){n&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var a=r[0];a<=r[1];++a)null!=n[a]&&_i(t,1054,h6(a,n[a],e))})}(r,t.SSF,e),function uZ(t,n){for(var e=0;e<16;++e)_i(t,224,Nk({numFmtId:0,style:!0},0,n));n.cellXfs.forEach(function(r){_i(t,224,Nk(r,0,n))})}(r,e),u&&_i(r,352,$s(!1));var w=r.end(),M=Ws();u&&_i(M,140,function Y6(t){return t||(t=Vn(4)),t.write_shift(2,1),t.write_shift(2,1),t}()),u&&e.Strings&&function nZ(t,n,e,r){var a=r||(e||[]).length||0;if(a<=8224)return _i(t,n,e,a);var o=n;if(!isNaN(o)){for(var l=e.parts||[],u=0,m=0,_=0;_+(l[u]||8224)<=8224;)_+=l[u]||8224,u++;var w=t.next(4);for(w.write_shift(2,o),w.write_shift(2,_),t.push(e.slice(m,m+_)),m+=_;m<a;){for((w=t.next(4)).write_shift(2,60),_=0;_+(l[u]||8224)<=8224;)_+=l[u]||8224,u++;w.write_shift(2,_),t.push(e.slice(m,m+_)),m+=_}}}(M,252,function qF(t,n){var e=Vn(8);e.write_shift(4,t.Count),e.write_shift(4,t.Unique);for(var r=[],a=0;a<t.length;++a)r[a]=EF(t[a]);var o=Bo([e].concat(r));return o.parts=[e.length].concat(r.map(function(l){return l.length})),o}(e.Strings)),_i(M,10);var O=M.end(),N=Ws(),z=0,j=0;for(j=0;j<t.SheetNames.length;++j)z+=(u?12:11)+(u?2:1)*t.SheetNames[j].length;var oe=w.length+z+O.length;for(j=0;j<t.SheetNames.length;++j)_i(N,133,GF({pos:oe,hs:(o[j]||{}).Hidden||0,dt:0,name:t.SheetNames[j]},e)),oe+=n[j].length;var Ie=N.end();if(z!=Ie.length)throw new Error("BS8 "+z+" != "+Ie.length);var Ye=[];return w.length&&Ye.push(w),Ie.length&&Ye.push(Ie),O.length&&Ye.push(O),Bo(Ye)}function BI(t,n){for(var e=0;e<=t.SheetNames.length;++e){var r=t.Sheets[t.SheetNames[e]];r&&r["!ref"]&&Gs(r["!ref"]).e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+t.SheetNames[e]+"' extends beyond column IV (255). Data may be lost.")}var o=n||{};switch(o.biff||2){case 8:case 5:return function _Z(t,n){var e=n||{},r=[];t&&!t.SSF&&(t.SSF=ta(Yi)),t&&t.SSF&&(Kp(),Q0(t.SSF),e.revssf=J1(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,m2(e),e.cellXfs=[],ph(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var a=0;a<t.SheetNames.length;++a)r[r.length]=pZ(a,e,t);return r.unshift(gZ(t,r,e)),Bo(r)}(t,n);case 4:case 3:case 2:return function sZ(t,n){var e=n||{};null!=Na&&null==e.dense&&(e.dense=Na);for(var r=Ws(),a=0,o=0;o<t.SheetNames.length;++o)t.SheetNames[o]==e.sheet&&(a=o);if(0==a&&e.sheet&&t.SheetNames[0]!=e.sheet)throw new Error("Sheet not found: "+e.sheet);return _i(r,4==e.biff?1033:3==e.biff?521:9,jM(0,16,e)),function oZ(t,n,e,r){var l,a=Array.isArray(n),o=Cr(n["!ref"]||"A1"),u="",m=[];if(o.e.c>255||o.e.r>16383){if(r.WTF)throw new Error("Range "+(n["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383),l=ar(o)}for(var _=o.s.r;_<=o.e.r;++_){u=Va(_);for(var w=o.s.c;w<=o.e.c;++w){_===o.s.r&&(m[w]=ha(w)),l=m[w]+u;var M=a?(n[_]||[])[w]:n[l];M&&aZ(t,M,_,w)}}}(r,t.Sheets[t.SheetNames[a]],0,e),_i(r,10),r.end()}(t,n)}throw new Error("invalid type "+o.bookType+" for BIFF")}function ZI(t,n,e,r){for(var a=t["!merges"]||[],o=[],l=n.s.c;l<=n.e.c;++l){for(var u=0,m=0,_=0;_<a.length;++_)if(!(a[_].s.r>e||a[_].s.c>l||a[_].e.r<e||a[_].e.c<l)){if(a[_].s.r<e||a[_].s.c<l){u=-1;break}u=a[_].e.r-a[_].s.r+1,m=a[_].e.c-a[_].s.c+1;break}if(!(u<0)){var w=Wi({r:e,c:l}),M=r.dense?(t[e]||[])[l]:t[w],O=M&&null!=M.v&&(M.h||AS(M.w||(pd(M),M.w)||""))||"",N={};u>1&&(N.rowspan=u),m>1&&(N.colspan=m),r.editable?O='<span contenteditable="true">'+O+"</span>":M&&(N["data-t"]=M&&M.t||"z",null!=M.v&&(N["data-v"]=M.v),null!=M.z&&(N["data-z"]=M.z),M.l&&"#"!=(M.l.Target||"#").charAt(0)&&(O='<a href="'+M.l.Target+'">'+O+"</a>")),N.id=(r.id||"sjs")+"-"+w,o.push(pi("td",O,N))}}return"<tr>"+o.join("")+"</tr>"}var VI='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',HI="</body></html>";function YI(t,n){var e=n||{},a=null!=e.footer?e.footer:HI,o=[null!=e.header?e.header:VI],l=Gs(t["!ref"]);e.dense=Array.isArray(t),o.push(function jI(t,n,e){return[].join("")+"<table"+(e&&e.id?' id="'+e.id+'"':"")+">"}(0,0,e));for(var u=l.s.r;u<=l.e.r;++u)o.push(ZI(t,l,u,e));return o.push("</table>"+a),o.join("")}function zI(t,n,e){var r=e||{};null!=Na&&(r.dense=Na);var a=0,o=0;if(null!=r.origin)if("number"==typeof r.origin)a=r.origin;else{var l="string"==typeof r.origin?Qa(r.origin):r.origin;a=l.r,o=l.c}var u=n.getElementsByTagName("tr"),m=Math.min(r.sheetRows||1e7,u.length),_={s:{r:0,c:0},e:{r:a,c:o}};if(t["!ref"]){var w=Gs(t["!ref"]);_.s.r=Math.min(_.s.r,w.s.r),_.s.c=Math.min(_.s.c,w.s.c),_.e.r=Math.max(_.e.r,w.e.r),_.e.c=Math.max(_.e.c,w.e.c),-1==a&&(_.e.r=a=w.e.r+1)}var M=[],O=0,N=t["!rows"]||(t["!rows"]=[]),z=0,j=0,oe=0,Ne=0,Ie=0,Ye=0;for(t["!cols"]||(t["!cols"]=[]);z<u.length&&j<m;++z){var Pt=u[z];if(GI(Pt)){if(r.display)continue;N[j]={hidden:!0}}var Ut=Pt.children;for(oe=Ne=0;oe<Ut.length;++oe){var rn=Ut[oe];if(!r.display||!GI(rn)){var kt=rn.hasAttribute("data-v")?rn.getAttribute("data-v"):rn.hasAttribute("v")?rn.getAttribute("v"):OS(rn.innerHTML),en=rn.getAttribute("data-z")||rn.getAttribute("z");for(O=0;O<M.length;++O){var tn=M[O];tn.s.c==Ne+o&&tn.s.r<j+a&&j+a<=tn.e.r&&(Ne=tn.e.c+1-o,O=-1)}Ye=+rn.getAttribute("colspan")||1,((Ie=+rn.getAttribute("rowspan")||1)>1||Ye>1)&&M.push({s:{r:j+a,c:Ne+o},e:{r:j+a+(Ie||1)-1,c:Ne+o+(Ye||1)-1}});var xn={t:"s",v:kt},Cn=rn.getAttribute("data-t")||rn.getAttribute("t")||"";null!=kt&&(0==kt.length?xn.t=Cn||"z":r.raw||0==kt.trim().length||"s"==Cn||("TRUE"===kt?xn={t:"b",v:!0}:"FALSE"===kt?xn={t:"b",v:!1}:isNaN(Vc(kt))?isNaN(Jp(kt).getDate())||(xn={t:"d",v:Oa(kt)},r.cellDates||(xn={t:"n",v:Uo(xn.v)}),xn.z=r.dateNF||Yi[14]):xn={t:"n",v:Vc(kt)})),void 0===xn.z&&null!=en&&(xn.z=en);var mn="",Xn=rn.getElementsByTagName("A");if(Xn&&Xn.length)for(var gi=0;gi<Xn.length&&(!Xn[gi].hasAttribute("href")||"#"==(mn=Xn[gi].getAttribute("href")).charAt(0));++gi);mn&&"#"!=mn.charAt(0)&&(xn.l={Target:mn}),r.dense?(t[j+a]||(t[j+a]=[]),t[j+a][Ne+o]=xn):t[Wi({c:Ne+o,r:j+a})]=xn,_.e.c<Ne+o&&(_.e.c=Ne+o),Ne+=Ye}}++j}return M.length&&(t["!merges"]=(t["!merges"]||[]).concat(M)),_.e.r=Math.max(_.e.r,j-1+a),t["!ref"]=ar(_),j>=m&&(t["!fullref"]=ar((_.e.r=u.length-z+j-1+a,_))),t}function WI(t,n){return zI((n||{}).dense?[]:{},t,n)}function GI(t){var n="",e=function yZ(t){return t.ownerDocument.defaultView&&"function"==typeof t.ownerDocument.defaultView.getComputedStyle?t.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(t);return e&&(n=e(t).getPropertyValue("display")),n||(n=t.style&&t.style.display),"none"===n}var wZ=function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),n="<office:document-styles "+X0({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return Za+n}}(),JI=function(){var t=function(o){return Wr(o).replace(/ +/g,function(l){return'<text:s text:c="'+l.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},n=" <table:table-cell />\n",r=function(o,l,u){var m=[];m.push(' <table:table table:name="'+Wr(l.SheetNames[u])+'" table:style-name="ta1">\n');var _=0,w=0,M=Gs(o["!ref"]||"A1"),O=o["!merges"]||[],N=0,z=Array.isArray(o);if(o["!cols"])for(w=0;w<=M.e.c;++w)m.push(" <table:table-column"+(o["!cols"][w]?' table:style-name="co'+o["!cols"][w].ods+'"':"")+"></table:table-column>\n");var oe=o["!rows"]||[];for(_=0;_<M.s.r;++_)m.push(" <table:table-row"+(oe[_]?' table:style-name="ro'+oe[_].ods+'"':"")+"></table:table-row>\n");for(;_<=M.e.r;++_){for(m.push(" <table:table-row"+(oe[_]?' table:style-name="ro'+oe[_].ods+'"':"")+">\n"),w=0;w<M.s.c;++w)m.push(n);for(;w<=M.e.c;++w){var Ne=!1,Ie={},Ye="";for(N=0;N!=O.length;++N)if(!(O[N].s.c>w||O[N].s.r>_||O[N].e.c<w||O[N].e.r<_)){(O[N].s.c!=w||O[N].s.r!=_)&&(Ne=!0),Ie["table:number-columns-spanned"]=O[N].e.c-O[N].s.c+1,Ie["table:number-rows-spanned"]=O[N].e.r-O[N].s.r+1;break}if(Ne)m.push(" <table:covered-table-cell/>\n");else{var Pt=Wi({r:_,c:w}),Ut=z?(o[_]||[])[w]:o[Pt];if(Ut&&Ut.f&&(Ie["table:formula"]=Wr(YB(Ut.f)),Ut.F&&Ut.F.slice(0,Pt.length)==Pt)){var rn=Gs(Ut.F);Ie["table:number-matrix-columns-spanned"]=rn.e.c-rn.s.c+1,Ie["table:number-matrix-rows-spanned"]=rn.e.r-rn.s.r+1}if(Ut){switch(Ut.t){case"b":Ye=Ut.v?"TRUE":"FALSE",Ie["office:value-type"]="boolean",Ie["office:boolean-value"]=Ut.v?"true":"false";break;case"n":Ye=Ut.w||String(Ut.v||0),Ie["office:value-type"]="float",Ie["office:value"]=Ut.v||0;break;case"s":case"str":Ye=null==Ut.v?"":Ut.v,Ie["office:value-type"]="string";break;case"d":Ye=Ut.w||Oa(Ut.v).toISOString(),Ie["office:value-type"]="date",Ie["office:date-value"]=Oa(Ut.v).toISOString(),Ie["table:style-name"]="ce1";break;default:m.push(n);continue}var kt=t(Ye);if(Ut.l&&Ut.l.Target){var en=Ut.l.Target;"#"!=(en="#"==en.charAt(0)?"#"+zB(en.slice(1)):en).charAt(0)&&!en.match(/^\w+:/)&&(en="../"+en),kt=pi("text:a",kt,{"xlink:href":en.replace(/&/g,"&")})}m.push(" "+pi("table:table-cell",pi("text:p",kt,{}),Ie)+"\n")}else m.push(n)}}m.push(" </table:table-row>\n")}return m.push(" </table:table>\n"),m.join("")};return function(l,u){var m=[Za],_=X0({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),w=X0({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==u.bookType?(m.push("<office:document"+_+w+">\n"),m.push(sk().replace(/office:document-meta/g,"office:meta"))):m.push("<office:document-content"+_+">\n"),function(o,l){o.push(" <office:automatic-styles>\n"),o.push(' <number:date-style style:name="N37" number:automatic-order="true">\n'),o.push(' <number:month number:style="long"/>\n'),o.push(" <number:text>/</number:text>\n"),o.push(' <number:day number:style="long"/>\n'),o.push(" <number:text>/</number:text>\n"),o.push(" <number:year/>\n"),o.push(" </number:date-style>\n");var u=0;l.SheetNames.map(function(_){return l.Sheets[_]}).forEach(function(_){if(_&&_["!cols"])for(var w=0;w<_["!cols"].length;++w)if(_["!cols"][w]){var M=_["!cols"][w];if(null==M.width&&null==M.wpx&&null==M.wch)continue;fh(M),M.ods=u;var O=_["!cols"][w].wpx+"px";o.push(' <style:style style:name="co'+u+'" style:family="table-column">\n'),o.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+O+'"/>\n'),o.push(" </style:style>\n"),++u}});var m=0;l.SheetNames.map(function(_){return l.Sheets[_]}).forEach(function(_){if(_&&_["!rows"])for(var w=0;w<_["!rows"].length;++w)if(_["!rows"][w]){_["!rows"][w].ods=m;var M=_["!rows"][w].hpx+"px";o.push(' <style:style style:name="ro'+m+'" style:family="table-row">\n'),o.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+M+'"/>\n'),o.push(" </style:style>\n"),++m}}),o.push(' <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),o.push(' <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),o.push(" </style:style>\n"),o.push(' <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),o.push(" </office:automatic-styles>\n")}(m,l),m.push(" <office:body>\n"),m.push(" <office:spreadsheet>\n");for(var M=0;M!=l.SheetNames.length;++M)m.push(r(l.Sheets[l.SheetNames[M]],l,M));return m.push(" </office:spreadsheet>\n"),m.push(" </office:body>\n"),m.push("fods"==u.bookType?"</office:document>":"</office:document-content>"),m.join("")}}();function XI(t,n){if("fods"==n.bookType)return JI(t,n);var e=fM(),r="",a=[],o=[];return dr(e,r="mimetype","application/vnd.oasis.opendocument.spreadsheet"),dr(e,r="content.xml",JI(t,n)),a.push([r,"text/xml"]),o.push([r,"ContentFile"]),dr(e,r="styles.xml",wZ(t,n)),a.push([r,"text/xml"]),o.push([r,"StylesFile"]),dr(e,r="meta.xml",Za+sk()),a.push([r,"text/xml"]),o.push([r,"MetadataFile"]),dr(e,r="manifest.rdf",function oF(t){var n=[Za];n.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var e=0;e!=t.length;++e)n.push(ok(t[e][0],t[e][1])),n.push(aF("",t[e][0]));return n.push(ok("","Document","pkg")),n.push("</rdf:RDF>"),n.join("")}(o)),a.push([r,"application/rdf+xml"]),dr(e,r="META-INF/manifest.xml",function rF(t){var n=[Za];n.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),n.push(' <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var e=0;e<t.length;++e)n.push(' <manifest:file-entry manifest:full-path="'+t[e][0]+'" manifest:media-type="'+t[e][1]+'"/>\n');return n.push("</manifest:manifest>"),n.join("")}(a)),e}function jf(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function CZ(t){return typeof TextEncoder<"u"?(new TextEncoder).encode(t):Bl(md(t))}function gh(t){var n=t.reduce(function(a,o){return a+o.length},0),e=new Uint8Array(n),r=0;return t.forEach(function(a){e.set(a,r),r+=a.length}),e}function xv(t,n){var e=n?n[0]:0,r=127&t[e];e:if(t[e++]>=128&&(r|=(127&t[e])<<7,t[e++]<128||(r|=(127&t[e])<<14,t[e++]<128)||(r|=(127&t[e])<<21,t[e++]<128)||(r+=(127&t[e])*Math.pow(2,28),++e,t[e++]<128)||(r+=(127&t[e])*Math.pow(2,35),++e,t[e++]<128)||(r+=(127&t[e])*Math.pow(2,42),++e,t[e++]<128)))break e;return n&&(n[0]=e),r}function Hr(t){var n=new Uint8Array(7);n[0]=127&t;var e=1;e:if(t>127){if(n[e-1]|=128,n[e]=t>>7&127,++e,t<=16383||(n[e-1]|=128,n[e]=t>>14&127,++e,t<=2097151)||(n[e-1]|=128,n[e]=t>>21&127,++e,t<=268435455)||(n[e-1]|=128,n[e]=t/256>>>21&127,++e,t<=34359738367)||(n[e-1]|=128,n[e]=t/65536>>>21&127,++e,t<=4398046511103))break e;n[e-1]|=128,n[e]=t/16777216>>>21&127,++e}return n.slice(0,e)}function Ha(t){var n=0,e=127&t[n];e:if(t[n++]>=128){if(e|=(127&t[n])<<7,t[n++]<128||(e|=(127&t[n])<<14,t[n++]<128)||(e|=(127&t[n])<<21,t[n++]<128))break e;e|=(127&t[n])<<28}return e}function Sr(t){for(var n=[],e=[0];e[0]<t.length;){var u,r=e[0],a=xv(t,e),o=7&a,l=0;if(0==(a=Math.floor(a/8)))break;switch(o){case 0:for(var m=e[0];t[e[0]++]>=128;);u=t.slice(m,e[0]);break;case 5:u=t.slice(e[0],e[0]+(l=4)),e[0]+=l;break;case 1:u=t.slice(e[0],e[0]+(l=8)),e[0]+=l;break;case 2:l=xv(t,e),u=t.slice(e[0],e[0]+l),e[0]+=l;break;default:throw new Error("PB Type ".concat(o," for Field ").concat(a," at offset ").concat(r))}var _={data:u,type:o};null==n[a]?n[a]=[_]:n[a].push(_)}return n}function jo(t){var n=[];return t.forEach(function(e,r){e.forEach(function(a){a.data&&(n.push(Hr(8*r+a.type)),2==a.type&&n.push(Hr(a.data.length)),n.push(a.data))})}),gh(n)}function fc(t){for(var n,e=[],r=[0];r[0]<t.length;){var a=xv(t,r),o=Sr(t.slice(r[0],r[0]+a));r[0]+=a;var l={id:Ha(o[1][0].data),messages:[]};o[2].forEach(function(u){var m=Sr(u.data),_=Ha(m[3][0].data);l.messages.push({meta:m,data:t.slice(r[0],r[0]+_)}),r[0]+=_}),null!=(n=o[3])&&n[0]&&(l.merge=Ha(o[3][0].data)>>>0>0),e.push(l)}return e}function lg(t){var n=[];return t.forEach(function(e){var r=[];r[1]=[{data:Hr(e.id),type:0}],r[2]=[],null!=e.merge&&(r[3]=[{data:Hr(+!!e.merge),type:0}]);var a=[];e.messages.forEach(function(l){a.push(l.data),l.meta[3]=[{type:0,data:Hr(l.data.length)}],r[2].push({data:jo(l.meta),type:2})});var o=jo(r);n.push(Hr(o.length)),n.push(o),a.forEach(function(l){return n.push(l)})}),gh(n)}function MZ(t,n){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e=[0],r=xv(n,e),a=[];e[0]<n.length;){var o=3&n[e[0]];if(0!=o){var m=0,_=0;if(1==o?(_=4+(n[e[0]]>>2&7),m=(224&n[e[0]++])<<3,m|=n[e[0]++]):(_=1+(n[e[0]++]>>2),2==o?(m=n[e[0]]|n[e[0]+1]<<8,e[0]+=2):(m=(n[e[0]]|n[e[0]+1]<<8|n[e[0]+2]<<16|n[e[0]+3]<<24)>>>0,e[0]+=4)),a=[gh(a)],0==m)throw new Error("Invalid offset 0");if(m>a[0].length)throw new Error("Invalid offset beyond length");if(_>=m)for(a.push(a[0].slice(-m)),_-=m;_>=a[a.length-1].length;)a.push(a[a.length-1]),_-=a[a.length-1].length;a.push(a[0].slice(-m,-m+_))}else{var l=n[e[0]++]>>2;if(l<60)++l;else{var u=l-59;l=n[e[0]],u>1&&(l|=n[e[0]+1]<<8),u>2&&(l|=n[e[0]+2]<<16),u>3&&(l|=n[e[0]+3]<<24),l>>>=0,l++,e[0]+=u}a.push(n.slice(e[0],e[0]+l)),e[0]+=l}}var w=gh(a);if(w.length!=r)throw new Error("Unexpected length: ".concat(w.length," != ").concat(r));return w}function mc(t){for(var n=[],e=0;e<t.length;){var r=t[e++],a=t[e]|t[e+1]<<8|t[e+2]<<16;n.push(MZ(r,t.slice(e+=3,e+a))),e+=a}if(e!==t.length)throw new Error("data is not a valid framed stream!");return gh(n)}function cg(t){for(var n=[],e=0;e<t.length;){var r=Math.min(t.length-e,268435455),a=new Uint8Array(4);n.push(a);var o=Hr(r),l=o.length;n.push(o),r<=60?(l++,n.push(new Uint8Array([r-1<<2]))):r<=256?(l+=2,n.push(new Uint8Array([240,r-1&255]))):r<=65536?(l+=3,n.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(l+=4,n.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(l+=5,n.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),n.push(t.slice(e,e+r)),l+=r,a[0]=0,a[1]=255&l,a[2]=l>>8&255,a[3]=l>>16&255,e+=r}return gh(n)}function d2(t,n){var e=new Uint8Array(32),r=jf(e),a=12,o=0;switch(e[0]=5,t.t){case"n":e[1]=2,function EZ(t,n,e){var r=Math.floor(0==e?0:Math.LOG10E*Math.log(Math.abs(e)))+6176-20,a=e/Math.pow(10,r-6176);t[n+15]|=r>>7,t[n+14]|=(127&r)<<1;for(var o=0;a>=1;++o,a/=256)t[n+o]=255&a;t[n+15]|=e>=0?0:128}(e,a,t.v),o|=1,a+=16;break;case"b":e[1]=6,r.setFloat64(a,t.v?1:0,!0),o|=2,a+=8;break;case"s":if(-1==n.indexOf(t.v))throw new Error("Value ".concat(t.v," missing from SST!"));e[1]=3,r.setUint32(a,n.indexOf(t.v),!0),o|=8,a+=4;break;default:throw"unsupported cell type "+t.t}return r.setUint32(8,o,!0),e.slice(0,a)}function u2(t,n){var e=new Uint8Array(32),r=jf(e),a=12,o=0;switch(e[0]=3,t.t){case"n":e[2]=2,r.setFloat64(a,t.v,!0),o|=32,a+=8;break;case"b":e[2]=6,r.setFloat64(a,t.v?1:0,!0),o|=32,a+=8;break;case"s":if(-1==n.indexOf(t.v))throw new Error("Value ".concat(t.v," missing from SST!"));e[2]=3,r.setUint32(a,n.indexOf(t.v),!0),o|=16,a+=4;break;default:throw"unsupported cell type "+t.t}return r.setUint32(4,o,!0),e.slice(0,a)}function Is(t){return xv(Sr(t)[1][0].data)}function NZ(t,n,e){var r,a,o,l;if(null==(r=t[6])||!r[0]||null==(a=t[7])||!a[0])throw"Mutation only works on post-BNC storages!";if((null==(l=null==(o=t[8])?void 0:o[0])?void 0:l.data)&&Ha(t[8][0].data)>0)throw"Math only works with normal offsets";for(var m=0,_=jf(t[7][0].data),w=0,M=[],O=jf(t[4][0].data),N=0,z=[],j=0;j<n.length;++j)if(null!=n[j]){var oe,Ne;switch(_.setUint16(2*j,w,!0),O.setUint16(2*j,N,!0),typeof n[j]){case"string":oe=d2({t:"s",v:n[j]},e),Ne=u2({t:"s",v:n[j]},e);break;case"number":oe=d2({t:"n",v:n[j]},e),Ne=u2({t:"n",v:n[j]},e);break;case"boolean":oe=d2({t:"b",v:n[j]},e),Ne=u2({t:"b",v:n[j]},e);break;default:throw new Error("Unsupported value "+n[j])}M.push(oe),w+=oe.length,z.push(Ne),N+=Ne.length,++m}else _.setUint16(2*j,65535,!0),O.setUint16(2*j,65535);for(t[2][0].data=Hr(m);j<t[7][0].data.length/2;++j)_.setUint16(2*j,65535,!0),O.setUint16(2*j,65535,!0);return t[6][0].data=gh(M),t[3][0].data=gh(z),m}function m2(t){!function nO(t){return function(e){for(var r=0;r!=t.length;++r){var a=t[r];void 0===e[a[0]]&&(e[a[0]]=a[1]),"n"===a[2]&&(e[a[0]]=Number(e[a[0]]))}}}([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function YZ(t,n){return"ods"==n.bookType?XI(t,n):"numbers"==n.bookType?function BZ(t,n){if(!n||!n.numbers)throw new Error("Must pass a `numbers` option -- check the README");var e=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var r=Gs(e["!ref"]);r.s.r=r.s.c=0;var a=!1;r.e.c>9&&(a=!0,r.e.c=9),r.e.r>49&&(a=!0,r.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(ar(r)));var o=Dw(e,{range:r,header:1}),l=["~Sh33tJ5~"];o.forEach(function(on){return on.forEach(function(hn){"string"==typeof hn&&l.push(hn)})});var u={},m=[],_=Zi.read(n.numbers,{type:"base64"});_.FileIndex.map(function(on,hn){return[on,_.FullPaths[hn]]}).forEach(function(on){var hn=on[0],zn=on[1];2==hn.type&&hn.name.match(/\.iwa/)&&fc(mc(hn.content)).forEach(function(ei){m.push(ei.id),u[ei.id]={deps:[],location:zn,type:Ha(ei.messages[0].meta[1][0].data)}})}),m.sort(function(on,hn){return on-hn});var w=m.filter(function(on){return on>1}).map(function(on){return[on,Hr(on)]});_.FileIndex.map(function(on,hn){return[on,_.FullPaths[hn]]}).forEach(function(on){var hn=on[0];hn.name.match(/\.iwa/)&&fc(mc(hn.content)).forEach(function(ui){ui.messages.forEach(function(oi){w.forEach(function(ei){ui.messages.some(function(Ki){return 11006!=Ha(Ki.meta[1][0].data)&&function DZ(t,n){e:for(var e=0;e<=t.length-n.length;++e){for(var r=0;r<n.length;++r)if(t[e+r]!=n[r])continue e;return!0}return!1}(Ki.data,ei[1])})&&u[ei[0]].deps.push(ui.id)})})})});for(var z,O=Zi.find(_,u[1].location),N=fc(mc(O.content)),j=0;j<N.length;++j){var oe=N[j];1==oe.id&&(z=oe)}var Ne=Is(Sr(z.messages[0].data)[1][0].data);for(N=fc(mc((O=Zi.find(_,u[Ne].location)).content)),j=0;j<N.length;++j)(oe=N[j]).id==Ne&&(z=oe);for(Ne=Is(Sr(z.messages[0].data)[2][0].data),N=fc(mc((O=Zi.find(_,u[Ne].location)).content)),j=0;j<N.length;++j)(oe=N[j]).id==Ne&&(z=oe);for(Ne=Is(Sr(z.messages[0].data)[2][0].data),N=fc(mc((O=Zi.find(_,u[Ne].location)).content)),j=0;j<N.length;++j)(oe=N[j]).id==Ne&&(z=oe);var Ie=Sr(z.messages[0].data);Ie[6][0].data=Hr(r.e.r+1),Ie[7][0].data=Hr(r.e.c+1);for(var Ye=Is(Ie[46][0].data),Pt=Zi.find(_,u[Ye].location),Ut=fc(mc(Pt.content)),rn=0;rn<Ut.length&&Ut[rn].id!=Ye;++rn);if(Ut[rn].id!=Ye)throw"Bad ColumnRowUIDMapArchive";var kt=Sr(Ut[rn].messages[0].data);kt[1]=[],kt[2]=[],kt[3]=[];for(var en=0;en<=r.e.c;++en){var tn=[];tn[1]=tn[2]=[{type:0,data:Hr(en+420690)}],kt[1].push({type:2,data:jo(tn)}),kt[2].push({type:0,data:Hr(en)}),kt[3].push({type:0,data:Hr(en)})}kt[4]=[],kt[5]=[],kt[6]=[];for(var xn=0;xn<=r.e.r;++xn)(tn=[])[1]=tn[2]=[{type:0,data:Hr(xn+726270)}],kt[4].push({type:2,data:jo(tn)}),kt[5].push({type:0,data:Hr(xn)}),kt[6].push({type:0,data:Hr(xn)});Ut[rn].messages[0].data=jo(kt),Pt.content=cg(lg(Ut)),Pt.size=Pt.content.length,delete Ie[46];var Cn=Sr(Ie[4][0].data);Cn[7][0].data=Hr(r.e.r+1);var Xn=Is(Sr(Cn[1][0].data)[2][0].data);if((Ut=fc(mc((Pt=Zi.find(_,u[Xn].location)).content)))[0].id!=Xn)throw"Bad HeaderStorageBucket";var gi=Sr(Ut[0].messages[0].data);for(xn=0;xn<o.length;++xn){var $n=Sr(gi[2][0].data);$n[1][0].data=Hr(xn),$n[4][0].data=Hr(o[xn].length),gi[2][xn]={type:gi[2][0].type,data:jo($n)}}Ut[0].messages[0].data=jo(gi),Pt.content=cg(lg(Ut)),Pt.size=Pt.content.length;var Un=Is(Cn[2][0].data);if((Ut=fc(mc((Pt=Zi.find(_,u[Un].location)).content)))[0].id!=Un)throw"Bad HeaderStorageBucket";for(gi=Sr(Ut[0].messages[0].data),en=0;en<=r.e.c;++en)($n=Sr(gi[2][0].data))[1][0].data=Hr(en),$n[4][0].data=Hr(r.e.r+1),gi[2][en]={type:gi[2][0].type,data:jo($n)};Ut[0].messages[0].data=jo(gi),Pt.content=cg(lg(Ut)),Pt.size=Pt.content.length;var Bn=Is(Cn[4][0].data);!function(){for(var zn,on=Zi.find(_,u[Bn].location),hn=fc(mc(on.content)),di=0;di<hn.length;++di){var ui=hn[di];ui.id==Bn&&(zn=ui)}var oi=Sr(zn.messages[0].data);oi[3]=[];var ei=[];l.forEach(function(Gr,br){ei[1]=[{type:0,data:Hr(br)}],ei[2]=[{type:0,data:Hr(1)}],ei[3]=[{type:2,data:CZ(Gr)}],oi[3].push({type:2,data:jo(ei)})}),zn.messages[0].data=jo(oi);var sn=cg(lg(hn));on.content=sn,on.size=on.content.length}();var li=Sr(Cn[3][0].data),ti=li[1][0];delete li[2];var ki=Sr(ti.data),qn=Is(ki[2][0].data);!function(){for(var zn,on=Zi.find(_,u[qn].location),hn=fc(mc(on.content)),di=0;di<hn.length;++di){var ui=hn[di];ui.id==qn&&(zn=ui)}var oi=Sr(zn.messages[0].data);delete oi[6],delete li[7];var ei=new Uint8Array(oi[5][0].data);oi[5]=[];for(var Ki=0,sn=0;sn<=r.e.r;++sn){var Gr=Sr(ei);Ki+=NZ(Gr,o[sn],l),Gr[1][0].data=Hr(sn),oi[5].push({data:jo(Gr),type:2})}oi[1]=[{type:0,data:Hr(r.e.c+1)}],oi[2]=[{type:0,data:Hr(r.e.r+1)}],oi[3]=[{type:0,data:Hr(Ki)}],oi[4]=[{type:0,data:Hr(r.e.r+1)}],zn.messages[0].data=jo(oi);var $r=cg(lg(hn));on.content=$r,on.size=on.content.length}(),ti.data=jo(ki),Cn[3][0].data=jo(li),Ie[4][0].data=jo(Cn),z.messages[0].data=jo(Ie);var En=cg(lg(N));return O.content=En,O.size=O.content.length,_}(t,n):"xlsb"==n.bookType?function zZ(t,n){ag=1024,t&&!t.SSF&&(t.SSF=ta(Yi)),t&&t.SSF&&(Kp(),Q0(t.SSF),n.revssf=J1(t.SSF),n.revssf[t.SSF[65535]]=0,n.ssf=t.SSF),n.rels={},n.wbrels={},n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,gv?n.revStrings=new Map:(n.revStrings={},n.revStrings.foo=[],delete n.revStrings.foo);var e="xlsb"==n.bookType?"bin":"xml",r=uI.indexOf(n.bookType)>-1,a={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};m2(n=n||{});var o=fM(),l="",u=0;if(n.cellXfs=[],ph(n.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),dr(o,l="docProps/core.xml",ck(t.Props,n)),a.coreprops.push(l),Vr(n.rels,2,l,or.CORE_PROPS),l="docProps/app.xml",!t.Props||!t.Props.SheetNames)if(t.Workbook&&t.Workbook.Sheets){for(var m=[],_=0;_<t.SheetNames.length;++_)2!=(t.Workbook.Sheets[_]||{}).Hidden&&m.push(t.SheetNames[_]);t.Props.SheetNames=m}else t.Props.SheetNames=t.SheetNames;for(t.Props.Worksheets=t.Props.SheetNames.length,dr(o,l,hk(t.Props)),a.extprops.push(l),Vr(n.rels,3,l,or.EXT_PROPS),t.Custprops!==t.Props&&Ba(t.Custprops||{}).length>0&&(dr(o,l="docProps/custom.xml",fk(t.Custprops)),a.custprops.push(l),Vr(n.rels,4,l,or.CUST_PROPS)),u=1;u<=t.SheetNames.length;++u){var w={"!id":{}},M=t.Sheets[t.SheetNames[u-1]];if(dr(o,l="xl/worksheets/sheet"+u+"."+e,TU(u-1,l,n,t,w)),a.sheets.push(l),Vr(n.wbrels,-1,"worksheets/sheet"+u+"."+e,or.WS[0]),M){var N=M["!comments"],z=!1,j="";N&&N.length>0&&(dr(o,j="xl/comments"+u+"."+e,AU(N,j,n)),a.comments.push(j),Vr(w,-1,"../comments"+u+"."+e,or.CMNT),z=!0),M["!legacy"]&&z&&dr(o,"xl/drawings/vmlDrawing"+u+".vml",lI(u,M["!comments"])),delete M["!comments"],delete M["!legacy"]}w["!id"].rId1&&dr(o,rv(l),ig(w))}return null!=n.Strings&&n.Strings.length>0&&(dr(o,l="xl/sharedStrings."+e,function MU(t,n,e){return(".bin"===n.slice(-4)?EL:qk)(t,e)}(n.Strings,l,n)),a.strs.push(l),Vr(n.wbrels,-1,"sharedStrings."+e,or.SST)),dr(o,l="xl/workbook."+e,function DU(t,n,e){return(".bin"===n.slice(-4)?uU:PI)(t,e)}(t,l,n)),a.workbooks.push(l),Vr(n.rels,1,l,or.WB),dr(o,l="xl/theme/theme1.xml",qM(t.Themes,n)),a.themes.push(l),Vr(n.wbrels,-1,"theme/theme1.xml",or.THEME),dr(o,l="xl/styles."+e,function EU(t,n,e){return(".bin"===n.slice(-4)?xN:iI)(t,e)}(t,l,n)),a.styles.push(l),Vr(n.wbrels,-1,"styles."+e,or.STY),t.vbaraw&&r&&(dr(o,l="xl/vbaProject.bin",t.vbaraw),a.vba.push(l),Vr(n.wbrels,-1,"vbaProject.bin",or.VBA)),dr(o,l="xl/metadata."+e,function SU(t){return(".bin"===t.slice(-4)?GN:sI)()}(l)),a.metadata.push(l),Vr(n.wbrels,-1,"metadata."+e,or.XLMETA),dr(o,"[Content_Types].xml",ak(a,n)),dr(o,"_rels/.rels",ig(n.rels)),dr(o,"xl/_rels/workbook."+e+".rels",ig(n.wbrels)),delete n.revssf,delete n.ssf,o}(t,n):function iO(t,n){ag=1024,t&&!t.SSF&&(t.SSF=ta(Yi)),t&&t.SSF&&(Kp(),Q0(t.SSF),n.revssf=J1(t.SSF),n.revssf[t.SSF[65535]]=0,n.ssf=t.SSF),n.rels={},n.wbrels={},n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,gv?n.revStrings=new Map:(n.revStrings={},n.revStrings.foo=[],delete n.revStrings.foo);var e="xml",r=uI.indexOf(n.bookType)>-1,a={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};m2(n=n||{});var o=fM(),l="",u=0;if(n.cellXfs=[],ph(n.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),dr(o,l="docProps/core.xml",ck(t.Props,n)),a.coreprops.push(l),Vr(n.rels,2,l,or.CORE_PROPS),l="docProps/app.xml",!t.Props||!t.Props.SheetNames)if(t.Workbook&&t.Workbook.Sheets){for(var m=[],_=0;_<t.SheetNames.length;++_)2!=(t.Workbook.Sheets[_]||{}).Hidden&&m.push(t.SheetNames[_]);t.Props.SheetNames=m}else t.Props.SheetNames=t.SheetNames;t.Props.Worksheets=t.Props.SheetNames.length,dr(o,l,hk(t.Props)),a.extprops.push(l),Vr(n.rels,3,l,or.EXT_PROPS),t.Custprops!==t.Props&&Ba(t.Custprops||{}).length>0&&(dr(o,l="docProps/custom.xml",fk(t.Custprops)),a.custprops.push(l),Vr(n.rels,4,l,or.CUST_PROPS));var w=["SheetJ5"];for(n.tcid=0,u=1;u<=t.SheetNames.length;++u){var M={"!id":{}},O=t.Sheets[t.SheetNames[u-1]];if(dr(o,l="xl/worksheets/sheet"+u+"."+e,TI(u-1,n,t,M)),a.sheets.push(l),Vr(n.wbrels,-1,"worksheets/sheet"+u+"."+e,or.WS[0]),O){var z=O["!comments"],j=!1,oe="";if(z&&z.length>0){var Ne=!1;z.forEach(function(Ie){Ie[1].forEach(function(Ye){1==Ye.T&&(Ne=!0)})}),Ne&&(dr(o,oe="xl/threadedComments/threadedComment"+u+"."+e,n4(z,w,n)),a.threadedcomments.push(oe),Vr(M,-1,"../threadedComments/threadedComment"+u+"."+e,or.TCMNT)),dr(o,oe="xl/comments"+u+"."+e,dI(z)),a.comments.push(oe),Vr(M,-1,"../comments"+u+"."+e,or.CMNT),j=!0}O["!legacy"]&&j&&dr(o,"xl/drawings/vmlDrawing"+u+".vml",lI(u,O["!comments"])),delete O["!comments"],delete O["!legacy"]}M["!id"].rId1&&dr(o,rv(l),ig(M))}return null!=n.Strings&&n.Strings.length>0&&(dr(o,l="xl/sharedStrings."+e,qk(n.Strings,n)),a.strs.push(l),Vr(n.wbrels,-1,"sharedStrings."+e,or.SST)),dr(o,l="xl/workbook."+e,PI(t)),a.workbooks.push(l),Vr(n.rels,1,l,or.WB),dr(o,l="xl/theme/theme1.xml",qM(t.Themes,n)),a.themes.push(l),Vr(n.wbrels,-1,"theme/theme1.xml",or.THEME),dr(o,l="xl/styles."+e,iI(t,n)),a.styles.push(l),Vr(n.wbrels,-1,"styles."+e,or.STY),t.vbaraw&&r&&(dr(o,l="xl/vbaProject.bin",t.vbaraw),a.vba.push(l),Vr(n.wbrels,-1,"vbaProject.bin",or.VBA)),dr(o,l="xl/metadata."+e,sI()),a.metadata.push(l),Vr(n.wbrels,-1,"metadata."+e,or.XLMETA),w.length>1&&(dr(o,l="xl/persons/person.xml",function r4(t){var n=[Za,pi("personList",null,{xmlns:lo.TCMNT,"xmlns:x":dh[0]}).replace(/[\/]>/,">")];return t.forEach(function(e,r){n.push(pi("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+r).slice(-12)+"}",userId:e,providerId:"None"}))}),n.push("</personList>"),n.join("")}(w)),a.people.push(l),Vr(n.wbrels,-1,"persons/person.xml",or.PEOPLE)),dr(o,"[Content_Types].xml",ak(a,n)),dr(o,"_rels/.rels",ig(n.rels)),dr(o,"xl/_rels/workbook.xml.rels",ig(n.wbrels)),delete n.revssf,delete n.ssf,o}(t,n)}function aO(t,n){switch(n.type){case"base64":case"binary":break;case"buffer":case"array":n.type="";break;case"file":return K0(n.file,Zi.write(t,{type:pr?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+n.bookType+"' files");default:throw new Error("Unrecognized type "+n.type)}return Zi.write(t,n)}function vd(t,n,e){e||(e="");var r=e+t;switch(n.type){case"base64":return W0(md(r));case"binary":return md(r);case"string":return t;case"file":return K0(n.file,r,"utf8");case"buffer":return pr?qd(r,"utf8"):typeof TextEncoder<"u"?(new TextEncoder).encode(r):vd(r,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+n.type)}function Cw(t,n){switch(n.type){case"string":case"base64":case"binary":for(var e="",r=0;r<t.length;++r)e+=String.fromCharCode(t[r]);return"base64"==n.type?W0(e):"string"==n.type?ua(e):e;case"file":return K0(n.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+n.type)}}function v2(t,n){(function W1(){lc(1200),function bR(){z1(1252)}()})(),function OI(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");!function K8(t,n,e){t.forEach(function(r,a){II(r);for(var o=0;o<a;++o)if(r==t[o])throw new Error("Duplicate Sheet Name: "+r);if(e){var l=n&&n[a]&&n[a].CodeName||r;if(95==l.charCodeAt(0)&&l.length>22)throw new Error("Bad Code Name: Worksheet"+l)}})}(t.SheetNames,t.Workbook&&t.Workbook.Sheets||[],!!t.vbaraw);for(var e=0;e<t.SheetNames.length;++e)GB(t.Sheets[t.SheetNames[e]],0,e)}(t);var e=ta(n||{});if(e.cellStyles&&(e.cellNF=!0,e.sheetStubs=!0),"array"==e.type){e.type="binary";var r=v2(t,e);return e.type="array",G0(r)}var a=0;if(e.sheet&&(a="number"==typeof e.sheet?e.sheet:t.SheetNames.indexOf(e.sheet),!t.SheetNames[a]))throw new Error("Sheet not found: "+e.sheet+" : "+typeof e.sheet);switch(e.bookType||"xlsb"){case"xml":case"xlml":return vd($U(t,e),e);case"slk":case"sylk":return vd(zk.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"htm":case"html":return vd(YI(t.Sheets[t.SheetNames[a]],e),e);case"txt":return function eV(t,n){switch(n.type){case"base64":return W0(t);case"binary":case"string":return t;case"file":return K0(n.file,t,"binary");case"buffer":return pr?qd(t,"binary"):t.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+n.type)}(hO(t.Sheets[t.SheetNames[a]],e),e);case"csv":return vd(y2(t.Sheets[t.SheetNames[a]],e),e,"\ufeff");case"dif":return vd(Wk.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"dbf":return Cw(YM.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"prn":return vd(rg.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"rtf":return vd(eI.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"eth":return vd(Gk.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"fods":return vd(XI(t,e),e);case"wk1":return Cw(Vf.sheet_to_wk1(t.Sheets[t.SheetNames[a]],e),e);case"wk3":return Cw(Vf.book_to_wk3(t,e),e);case"biff2":e.biff||(e.biff=2);case"biff3":e.biff||(e.biff=3);case"biff4":return e.biff||(e.biff=4),Cw(BI(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),function XZ(t,n){var e=n||{};return aO(function tZ(t,n){var e=n||{},r=Zi.utils.cfb_new({root:"R"}),a="/Workbook";switch(e.bookType||"xls"){case"xls":e.bookType="biff8";case"xla":e.bookType||(e.bookType="xla");case"biff8":a="/Workbook",e.biff=8;break;case"biff5":a="/Book",e.biff=5;break;default:throw new Error("invalid type "+e.bookType+" for XLS CFB")}return Zi.utils.cfb_add(r,a,BI(t,e)),8==e.biff&&(t.Props||t.Custprops)&&function eZ(t,n){var l,e=[],r=[],a=[],o=0,u=pS(RM,"n"),m=pS(FM,"n");if(t.Props)for(l=Ba(t.Props),o=0;o<l.length;++o)(Object.prototype.hasOwnProperty.call(u,l[o])?e:Object.prototype.hasOwnProperty.call(m,l[o])?r:a).push([l[o],t.Props[l[o]]]);if(t.Custprops)for(l=Ba(t.Custprops),o=0;o<l.length;++o)Object.prototype.hasOwnProperty.call(t.Props||{},l[o])||(Object.prototype.hasOwnProperty.call(u,l[o])?e:Object.prototype.hasOwnProperty.call(m,l[o])?r:a).push([l[o],t.Custprops[l[o]]]);var _=[];for(o=0;o<a.length;++o)xk.indexOf(a[o][0])>-1||dk.indexOf(a[o][0])>-1||null!=a[o][1]&&_.push(a[o]);r.length&&Zi.utils.cfb_add(n,"/\x05SummaryInformation",Dk(r,vv.SI,m,FM)),(e.length||_.length)&&Zi.utils.cfb_add(n,"/\x05DocumentSummaryInformation",Dk(e,vv.DSI,u,RM,_.length?_:null,vv.UDI))}(t,r),8==e.biff&&t.vbaraw&&function f4(t,n){n.FullPaths.forEach(function(e,r){if(0!=r){var a=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==a.slice(-1)&&Zi.utils.cfb_add(t,a,n.FileIndex[r].content)}})}(r,Zi.read(t.vbaraw,{type:"string"==typeof t.vbaraw?"binary":"buffer"})),r}(t,e),e)}(t,e);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function KZ(t,n){var e=ta(n||{});return function oO(t,n){var e={},r=pr?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(n.compression&&(e.compression="DEFLATE"),n.password)e.type=r;else switch(n.type){case"base64":e.type="base64";break;case"binary":e.type="string";break;case"string":throw new Error("'string' output type invalid for '"+n.bookType+"' files");case"buffer":case"file":e.type=r;break;default:throw new Error("Unrecognized type "+n.type)}var a=t.FullPaths?Zi.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[e.type]||e.type,compression:!!n.compression}):t.generate(e);if(typeof Deno<"u"&&"string"==typeof a){if("binary"==n.type||"base64"==n.type)return a;a=new Uint8Array(G0(a))}return n.password&&typeof encrypt_agile<"u"?aO(encrypt_agile(a,n.password),n):"file"===n.type?K0(n.file,a):"string"==n.type?ua(a):a}(YZ(t,e),e)}(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function lO(t,n,e){var r=e||{};return r.type="file",r.file=n,function b2(t){if(!t.bookType){var e=t.file.slice(t.file.lastIndexOf(".")).toLowerCase();e.match(/^\.[a-z]+$/)&&(t.bookType=e.slice(1)),t.bookType={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"}[t.bookType]||t.bookType}}(r),v2(t,r)}function cO(t,n,e,r,a,o,l,u){var m=Va(e),_=u.defval,w=u.raw||!Object.prototype.hasOwnProperty.call(u,"raw"),M=!0,O=1===a?[]:{};if(1!==a)if(Object.defineProperty)try{Object.defineProperty(O,"__rowNum__",{value:e,enumerable:!1})}catch{O.__rowNum__=e}else O.__rowNum__=e;if(!l||t[e])for(var N=n.s.c;N<=n.e.c;++N){var z=l?t[e][N]:t[r[N]+m];if(void 0!==z&&void 0!==z.t){var j=z.v;switch(z.t){case"z":if(null==j)break;continue;case"e":j=0==j?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+z.t)}if(null!=o[N]){if(null==j)if("e"==z.t&&null===j)O[o[N]]=null;else if(void 0!==_)O[o[N]]=_;else{if(!w||null!==j)continue;O[o[N]]=null}else O[o[N]]=w&&("n"!==z.t||"n"===z.t&&!1!==u.rawNumbers)?j:pd(z,j,u);null!=j&&(M=!1)}}else{if(void 0===_)continue;null!=o[N]&&(O[o[N]]=_)}}return{row:O,isempty:M}}function Dw(t,n){if(null==t||null==t["!ref"])return[];var e={t:"n",v:0},r=0,a=1,o=[],l=0,u="",m={s:{r:0,c:0},e:{r:0,c:0}},_=n||{},w=null!=_.range?_.range:t["!ref"];switch(1===_.header?r=1:"A"===_.header?r=2:Array.isArray(_.header)?r=3:null==_.header&&(r=0),typeof w){case"string":m=Cr(w);break;case"number":(m=Cr(t["!ref"])).s.r=w;break;default:m=w}r>0&&(a=0);var M=Va(m.s.r),O=[],N=[],z=0,j=0,oe=Array.isArray(t),Ne=m.s.r,Ie=0,Ye={};oe&&!t[Ne]&&(t[Ne]=[]);var Pt=_.skipHidden&&t["!cols"]||[],Ut=_.skipHidden&&t["!rows"]||[];for(Ie=m.s.c;Ie<=m.e.c;++Ie)if(!(Pt[Ie]||{}).hidden)switch(O[Ie]=ha(Ie),e=oe?t[Ne][Ie]:t[O[Ie]+M],r){case 1:o[Ie]=Ie-m.s.c;break;case 2:o[Ie]=O[Ie];break;case 3:o[Ie]=_.header[Ie-m.s.c];break;default:if(null==e&&(e={w:"__EMPTY",t:"s"}),u=l=pd(e,null,_),j=Ye[l]||0){do{u=l+"_"+j++}while(Ye[u]);Ye[l]=j,Ye[u]=1}else Ye[l]=1;o[Ie]=u}for(Ne=m.s.r+a;Ne<=m.e.r;++Ne)if(!(Ut[Ne]||{}).hidden){var rn=cO(t,m,Ne,O,r,o,oe,_);(!1===rn.isempty||(1===r?!1!==_.blankrows:_.blankrows))&&(N[z++]=rn.row)}return N.length=z,N}var dO=/"/g;function uO(t,n,e,r,a,o,l,u){for(var m=!0,_=[],w="",M=Va(e),O=n.s.c;O<=n.e.c;++O)if(r[O]){var N=u.dense?(t[e]||[])[O]:t[r[O]+M];if(null==N)w="";else if(null!=N.v){m=!1,w=""+(u.rawNumbers&&"n"==N.t?N.v:pd(N,null,u));for(var z=0,j=0;z!==w.length;++z)if((j=w.charCodeAt(z))===a||j===o||34===j||u.forceQuotes){w='"'+w.replace(dO,'""')+'"';break}"ID"==w&&(w='"ID"')}else null==N.f||N.F?w="":(m=!1,(w="="+N.f).indexOf(",")>=0&&(w='"'+w.replace(dO,'""')+'"'));_.push(w)}return!1===u.blankrows&&m?null:_.join(l)}function y2(t,n){var e=[],r=n??{};if(null==t||null==t["!ref"])return"";var a=Cr(t["!ref"]),o=void 0!==r.FS?r.FS:",",l=o.charCodeAt(0),u=void 0!==r.RS?r.RS:"\n",m=u.charCodeAt(0),_=new RegExp(("|"==o?"\\|":o)+"+$"),w="",M=[];r.dense=Array.isArray(t);for(var O=r.skipHidden&&t["!cols"]||[],N=r.skipHidden&&t["!rows"]||[],z=a.s.c;z<=a.e.c;++z)(O[z]||{}).hidden||(M[z]=ha(z));for(var j=0,oe=a.s.r;oe<=a.e.r;++oe)(N[oe]||{}).hidden||null!=(w=uO(t,a,oe,M,l,m,o,r))&&(r.strip&&(w=w.replace(_,"")),(w||!1!==r.blankrows)&&e.push((j++?u:"")+w));return delete r.dense,e.join("")}function hO(t,n){n||(n={}),n.FS="\t",n.RS="\n";var e=y2(t,n);if(typeof Er>"u"||"string"==n.type)return e;var r=Er.utils.encode(1200,e,"str");return String.fromCharCode(255)+String.fromCharCode(254)+r}function fO(t,n,e){var r=e||{},a=+!r.skipHeader,o=t||{},l=0,u=0;if(o&&null!=r.origin)if("number"==typeof r.origin)l=r.origin;else{var m="string"==typeof r.origin?Qa(r.origin):r.origin;l=m.r,u=m.c}var _,w={s:{c:0,r:0},e:{c:u,r:l+n.length-1+a}};if(o["!ref"]){var M=Cr(o["!ref"]);w.e.c=Math.max(w.e.c,M.e.c),w.e.r=Math.max(w.e.r,M.e.r),-1==l&&(w.e.r=(l=M.e.r+1)+n.length-1+a)}else-1==l&&(l=0,w.e.r=n.length-1+a);var O=r.header||[],N=0;n.forEach(function(j,oe){Ba(j).forEach(function(Ne){-1==(N=O.indexOf(Ne))&&(O[N=O.length]=Ne);var Ie=j[Ne],Ye="z",Pt="",Ut=Wi({c:u+N,r:l+oe+a});_=wv(o,Ut),!Ie||"object"!=typeof Ie||Ie instanceof Date?("number"==typeof Ie?Ye="n":"boolean"==typeof Ie?Ye="b":"string"==typeof Ie?Ye="s":Ie instanceof Date?(Ye="d",r.cellDates||(Ye="n",Ie=Uo(Ie)),Pt=r.dateNF||Yi[14]):null===Ie&&r.nullError&&(Ye="e",Ie=0),_?(_.t=Ye,_.v=Ie,delete _.w,delete _.R,Pt&&(_.z=Pt)):o[Ut]=_={t:Ye,v:Ie},Pt&&(_.z=Pt)):o[Ut]=Ie})}),w.e.c=Math.max(w.e.c,u+O.length-1);var z=Va(l);if(a)for(N=0;N<O.length;++N)o[ha(N+u)+z]={t:"s",v:O[N]};return o["!ref"]=ar(w),o}function wv(t,n,e){if("string"==typeof n){if(Array.isArray(t)){var r=Qa(n);return t[r.r]||(t[r.r]=[]),t[r.r][r.c]||(t[r.r][r.c]={t:"z"})}return t[n]||(t[n]={t:"z"})}return wv(t,Wi("number"!=typeof n?n:{r:n,c:e||0}))}function mO(t,n,e){return n?(t.l={Target:n},e&&(t.l.Tooltip=e)):delete t.l,t}var dg={encode_col:ha,encode_row:Va,encode_cell:Wi,encode_range:ar,decode_col:MM,decode_row:EM,split_cell:function I3(t){return t.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:Qa,decode_range:Gs,format_cell:pd,sheet_add_aoa:KS,sheet_add_json:fO,sheet_add_dom:zI,aoa_to_sheet:tg,json_to_sheet:function nV(t,n){return fO(null,t,n)},table_to_sheet:WI,table_to_book:function bZ(t,n){return uh(WI(t,n),n)},sheet_to_csv:y2,sheet_to_txt:hO,sheet_to_json:Dw,sheet_to_html:YI,sheet_to_formulae:function tV(t){var e,n="",r="";if(null==t||null==t["!ref"])return[];var u,a=Cr(t["!ref"]),o="",l=[],m=[],_=Array.isArray(t);for(u=a.s.c;u<=a.e.c;++u)l[u]=ha(u);for(var w=a.s.r;w<=a.e.r;++w)for(o=Va(w),u=a.s.c;u<=a.e.c;++u)if(n=l[u]+o,r="",void 0!==(e=_?(t[w]||[])[u]:t[n])){if(null!=e.F){if(n=e.F,!e.f)continue;r=e.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=e.f)r=e.f;else{if("z"==e.t)continue;if("n"==e.t&&null!=e.v)r=""+e.v;else if("b"==e.t)r=e.v?"TRUE":"FALSE";else if(void 0!==e.w)r="'"+e.w;else{if(void 0===e.v)continue;r="s"==e.t?"'"+e.v:""+e.v}}m[m.length]=n+"="+r}return m},sheet_to_row_object_array:Dw,sheet_get_cell:wv,book_new:function x2(){return{SheetNames:[],Sheets:{}}},book_append_sheet:function w2(t,n,e,r){var a=1;if(!e)for(;a<=65535&&-1!=t.SheetNames.indexOf(e="Sheet"+a);++a,e=void 0);if(!e||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&t.SheetNames.indexOf(e)>=0){var o=e.match(/(^.*?)(\d+)$/);a=o&&+o[2]||0;var l=o&&o[1]||e;for(++a;a<=65535&&-1!=t.SheetNames.indexOf(e=l+a);++a);}if(II(e),t.SheetNames.indexOf(e)>=0)throw new Error("Worksheet with name |"+e+"| already exists!");return t.SheetNames.push(e),t.Sheets[e]=n,e},book_set_sheet_visibility:function rV(t,n,e){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var r=function iV(t,n){if("number"==typeof n){if(n>=0&&t.SheetNames.length>n)return n;throw new Error("Cannot find sheet # "+n)}if("string"==typeof n){var e=t.SheetNames.indexOf(n);if(e>-1)return e;throw new Error("Cannot find sheet name |"+n+"|")}throw new Error("Cannot find sheet |"+n+"|")}(t,n);switch(t.Workbook.Sheets[r]||(t.Workbook.Sheets[r]={}),e){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+e)}t.Workbook.Sheets[r].Hidden=e},cell_set_number_format:function aV(t,n){return t.z=n,t},cell_set_hyperlink:mO,cell_set_internal_link:function oV(t,n,e){return mO(t,"#"+n,e)},cell_add_comment:function sV(t,n,e){t.c||(t.c=[]),t.c.push({t:n,a:e||"SheetJS"})},sheet_set_array_formula:function lV(t,n,e,r){for(var a="string"!=typeof n?n:Cr(n),o="string"==typeof n?n:ar(n),l=a.s.r;l<=a.e.r;++l)for(var u=a.s.c;u<=a.e.c;++u){var m=wv(t,l,u);m.t="n",m.F=o,delete m.v,l==a.s.r&&u==a.s.c&&(m.f=e,r&&(m.D=!0))}return t},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const fV=["salesTable"],mV=["taxTable"];function pV(t,n){if(1&t&&(i.TgZ(0,"mat-option",11),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.s9C("value",e._id),i.xp6(1),i.Oqu(e.name)}}function gV(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"mat-calendar",12),i.NdJ("selectedChange",function(a){i.CHM(e);const o=i.oxw();return i.KtG(o.onSelect(a))}),i.qZA()}if(2&t){const e=i.oxw();i.Q6J("dateClass",e.dateClass())("selected",e.selectedDate)}}function _V(t,n){1&t&&(i.TgZ(0,"p")(1,"i"),i._uU(2," Non ci sono ordini da visualizzare "),i.qZA()())}function vV(t,n){if(1&t&&(i.TgZ(0,"mat-list-item"),i._uU(1),i.ALo(2,"date"),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.lnq(" ",i.xi3(2,3,e.createdAt,"dd/MM/yyyy")," - ",e.product.title," - ",e.quantity," ")}}function bV(t,n){1&t&&(i.TgZ(0,"p")(1,"i"),i._uU(2," Non ci sono ordini da visualizzare "),i.qZA()())}function yV(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.date")," "))}function xV(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"date"),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.createdAt,"dd/MM/yyyy")," ")}}function wV(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.product")," "))}function CV(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.product.title," ")}}function DV(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.quantity")," "))}function TV(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.quantity," ")}}function EV(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.totalValue")," "))}function MV(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw(2);i.xp6(1),i.AsE(" ",e.totalPriceCurrency," ",r.fixDecimals(e.totalPrice,2)," ")}}function AV(t,n){1&t&&i._UZ(0,"tr",26)}function SV(t,n){1&t&&i._UZ(0,"tr",27)}function kV(t,n){if(1&t&&(i.TgZ(0,"div",13,14)(2,"table",15),i.ynx(3,16),i.YNc(4,yV,3,3,"th",17),i.YNc(5,xV,3,4,"td",18),i.BQk(),i.ynx(6,19),i.YNc(7,wV,3,3,"th",17),i.YNc(8,CV,2,1,"td",18),i.BQk(),i.ynx(9,20),i.YNc(10,DV,3,3,"th",17),i.YNc(11,TV,2,1,"td",18),i.BQk(),i.ynx(12,21),i.YNc(13,EV,3,3,"th",17),i.YNc(14,MV,2,2,"td",18),i.BQk(),i.YNc(15,AV,1,0,"tr",22),i.YNc(16,SV,1,0,"tr",23),i.qZA()()),2&t){const e=i.oxw();i.xp6(2),i.Q6J("dataSource",e.orders),i.xp6(13),i.Q6J("matHeaderRowDef",e.monthDisplayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.monthDisplayedColumns)}}function IV(t,n){if(1&t&&(i.TgZ(0,"mat-option",11),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.s9C("value",e._id),i.xp6(1),i.Oqu(e.name)}}function OV(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"mat-form-field")(1,"mat-label"),i._uU(2,"Canale"),i.qZA(),i.TgZ(3,"mat-select",31),i.NdJ("valueChange",function(a){i.CHM(e);const o=i.oxw(2);return i.KtG(o.channelId=a)})("selectionChange",function(a){i.CHM(e);const o=i.oxw(2);return i.KtG(o.load(a.value,o.monthVar,o.year))}),i.YNc(4,IV,2,2,"mat-option",4),i.qZA()()}if(2&t){const e=i.oxw(2);i.xp6(3),i.Q6J("value",e.channelId),i.xp6(1),i.Q6J("ngForOf",e.ownedChannels)}}function PV(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"mat-form-field")(1,"mat-label"),i._uU(2,"Mese"),i.qZA(),i.TgZ(3,"mat-select",31),i.NdJ("valueChange",function(a){i.CHM(e);const o=i.oxw(2);return i.KtG(o.monthVar=a)})("selectionChange",function(){i.CHM(e);const a=i.oxw(2);return i.KtG(a.load(a.channelId,a.monthVar,a.year))}),i.TgZ(4,"mat-option",32),i._uU(5,"Gennaio"),i.qZA(),i.TgZ(6,"mat-option",33),i._uU(7,"Febbraio"),i.qZA(),i.TgZ(8,"mat-option",34),i._uU(9,"Marzo"),i.qZA(),i.TgZ(10,"mat-option",35),i._uU(11,"Aprile"),i.qZA(),i.TgZ(12,"mat-option",36),i._uU(13,"Maggio"),i.qZA(),i.TgZ(14,"mat-option",37),i._uU(15,"Giugno"),i.qZA(),i.TgZ(16,"mat-option",38),i._uU(17,"Luglio"),i.qZA(),i.TgZ(18,"mat-option",39),i._uU(19,"Agosto"),i.qZA(),i.TgZ(20,"mat-option",40),i._uU(21,"Settembre"),i.qZA(),i.TgZ(22,"mat-option",41),i._uU(23,"Ottobre"),i.qZA(),i.TgZ(24,"mat-option",42),i._uU(25,"Novembre"),i.qZA(),i.TgZ(26,"mat-option",43),i._uU(27,"Dicembre"),i.qZA()()()}if(2&t){const e=i.oxw(2);i.xp6(3),i.Q6J("value",e.monthVar)}}function RV(t,n){1&t&&i._UZ(0,"mat-spinner",44)}function FV(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",45),i.NdJ("click",function(){i.CHM(e);const a=i.oxw(2);return i.KtG(a.exportTaxAsExcel())}),i.TgZ(1,"mat-icon"),i._uU(2,"download_file"),i.qZA()()}}function LV(t,n){1&t&&(i.TgZ(0,"p")(1,"i"),i._uU(2," Non ci sono corrispettivi da visualizzare "),i.qZA()())}function NV(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.date")," "))}function BV(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.lnq(" ",e.day," ",e.month," ",e.year," ")}}function UV(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.vat")," "))}function ZV(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.tax," ")}}function VV(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.netValue")," "))}function HV(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw(3);i.xp6(1),i.hij(" ",r.fixDecimals(e.netAmount,2)," ")}}function jV(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.vat")," "))}function YV(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw(3);i.xp6(1),i.hij(" ",r.fixDecimals(e.taxAmount,2)," ")}}function zV(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.totalValue")," "))}function WV(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw(3);i.xp6(1),i.hij(" ",r.fixDecimals(e.taxAmount+e.netAmount,2)," ")}}function GV(t,n){1&t&&i._UZ(0,"tr",26)}function $V(t,n){1&t&&i._UZ(0,"tr",27)}function qV(t,n){if(1&t&&(i.TgZ(0,"div",13,14)(2,"table",15),i.ynx(3,16),i.YNc(4,NV,3,3,"th",17),i.YNc(5,BV,2,3,"td",18),i.BQk(),i.ynx(6,46),i.YNc(7,UV,3,3,"th",17),i.YNc(8,ZV,2,1,"td",18),i.BQk(),i.ynx(9,47),i.YNc(10,VV,3,3,"th",17),i.YNc(11,HV,2,1,"td",18),i.BQk(),i.ynx(12,48),i.YNc(13,jV,3,3,"th",17),i.YNc(14,YV,2,1,"td",18),i.BQk(),i.ynx(15,21),i.YNc(16,zV,3,3,"th",17),i.YNc(17,WV,2,1,"td",18),i.BQk(),i.YNc(18,GV,1,0,"tr",22),i.YNc(19,$V,1,0,"tr",23),i.qZA()()),2&t){const e=i.oxw(2);i.xp6(2),i.Q6J("dataSource",e.salesList),i.xp6(16),i.Q6J("matHeaderRowDef",e.taxDisplayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.taxDisplayedColumns)}}function QV(t,n){1&t&&i._UZ(0,"mat-spinner",44)}function KV(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",45),i.NdJ("click",function(){i.CHM(e);const a=i.oxw(2);return i.KtG(a.exportSalesAsExcel())}),i.TgZ(1,"mat-icon"),i._uU(2,"download_file"),i.qZA()()}}function JV(t,n){1&t&&(i.TgZ(0,"p")(1,"i"),i._uU(2," Non ci sono ordini da visualizzare "),i.qZA()())}function XV(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.number"),""))}function e7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function t7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.date"),""))}function n7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"date"),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.createdAt,"dd/MM/yyyy")," ")}}function i7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.customer")," "))}function r7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.customer," ")}}function a7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.email")," "))}function o7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.customerEmail," ")}}function s7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.item")," "))}function l7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.itemName," ")}}function c7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.sku")," "))}function d7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.sku," ")}}function u7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.vendor")," "))}function h7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.partner," ")}}function f7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.currency")," "))}function m7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.valueCurrency," ")}}function p7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.vat")," "))}function g7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.productTax," ")}}function _7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.quantity")," "))}function v7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.quantity," ")}}function b7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.fragile")," "))}function y7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw(3);i.xp6(1),i.hij(" ",r.fixDecimals(e.fragileRate,2)," ")}}function x7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.bottle")," "))}function w7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw(3);i.xp6(1),i.hij(" ",r.fixDecimals(e.bottleRate,2)," ")}}function C7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.price")," "))}function D7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw(3);i.xp6(1),i.Oqu(r.fixDecimals(e.price,2))}}function T7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.netValue")," "))}function E7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw(3);i.xp6(1),i.Oqu(r.fixDecimals(e.netValue,2))}}function M7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.vat")," "))}function A7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw(3);i.xp6(1),i.Oqu(r.fixDecimals(e.taxValue,2))}}function S7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.rowCost"),""))}function k7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw(3);i.xp6(1),i.Oqu(r.fixDecimals(e.totalRowCost,2))}}function I7(t,n){1&t&&(i.TgZ(0,"th",74),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.vendorCost")," "))}function O7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw(3);i.xp6(1),i.Oqu(r.fixDecimals(e.totalPartnerCost,2))}}function P7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.boxes")," "))}function R7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.boxes,"")}}function F7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.refrigerated")," "))}function L7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.refrigeratedWeight>0?e.refrigeratedWeight:"-"," ")}}function N7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.products")," "))}function B7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.items,"")}}function U7(t,n){1&t&&(i.TgZ(0,"th",75),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.totalValue")," "))}function Z7(t,n){if(1&t&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw(3);i.xp6(1),i.Oqu(r.fixDecimals(e.totalValue,2))}}function V7(t,n){1&t&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.sales-summary.totalCost")," "))}function H7(t,n){if(1&t&&(i.TgZ(0,"td",76),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw(3);i.xp6(1),i.Oqu(r.fixDecimals(e.totalCost,2))}}function j7(t,n){1&t&&i._UZ(0,"tr",26)}function Y7(t,n){1&t&&i._UZ(0,"tr",27)}function z7(t,n){if(1&t&&(i.TgZ(0,"div",13,49)(2,"table",15),i.ynx(3,50),i.YNc(4,XV,3,3,"th",17),i.YNc(5,e7,2,1,"td",18),i.BQk(),i.ynx(6,51),i.YNc(7,t7,3,3,"th",17),i.YNc(8,n7,3,4,"td",18),i.BQk(),i.ynx(9,52),i.YNc(10,i7,3,3,"th",17),i.YNc(11,r7,2,1,"td",18),i.BQk(),i.ynx(12,53),i.YNc(13,a7,3,3,"th",17),i.YNc(14,o7,2,1,"td",18),i.BQk(),i.ynx(15,54),i.YNc(16,s7,3,3,"th",17),i.YNc(17,l7,2,1,"td",18),i.BQk(),i.ynx(18,55),i.YNc(19,c7,3,3,"th",17),i.YNc(20,d7,2,1,"td",18),i.BQk(),i.ynx(21,56),i.YNc(22,u7,3,3,"th",17),i.YNc(23,h7,2,1,"td",18),i.BQk(),i.ynx(24,57),i.YNc(25,f7,3,3,"th",17),i.YNc(26,m7,2,1,"td",18),i.BQk(),i.ynx(27,58),i.YNc(28,p7,3,3,"th",17),i.YNc(29,g7,2,1,"td",18),i.BQk(),i.ynx(30,20),i.YNc(31,_7,3,3,"th",17),i.YNc(32,v7,2,1,"td",18),i.BQk(),i.ynx(33,59),i.YNc(34,b7,3,3,"th",17),i.YNc(35,y7,2,1,"td",18),i.BQk(),i.ynx(36,60),i.YNc(37,x7,3,3,"th",17),i.YNc(38,w7,2,1,"td",18),i.BQk(),i.ynx(39,61),i.YNc(40,C7,3,3,"th",17),i.YNc(41,D7,2,1,"td",18),i.BQk(),i.ynx(42,62),i.YNc(43,T7,3,3,"th",17),i.YNc(44,E7,2,1,"td",18),i.BQk(),i.ynx(45,63),i.YNc(46,M7,3,3,"th",17),i.YNc(47,A7,2,1,"td",18),i.BQk(),i.ynx(48,64),i.YNc(49,S7,3,3,"th",17),i.YNc(50,k7,2,1,"td",18),i.BQk(),i.ynx(51,65),i.YNc(52,I7,3,3,"th",66),i.YNc(53,O7,2,1,"td",18),i.BQk(),i.ynx(54,67),i.YNc(55,P7,3,3,"th",17),i.YNc(56,R7,2,1,"td",18),i.BQk(),i.ynx(57,68),i.YNc(58,F7,3,3,"th",17),i.YNc(59,L7,2,1,"td",18),i.BQk(),i.ynx(60,69),i.YNc(61,N7,3,3,"th",17),i.YNc(62,B7,2,1,"td",18),i.BQk(),i.ynx(63,70),i.YNc(64,U7,3,3,"th",71),i.YNc(65,Z7,2,1,"td",18),i.BQk(),i.ynx(66,72),i.YNc(67,V7,3,3,"th",17),i.YNc(68,H7,2,1,"td",73),i.BQk(),i.YNc(69,j7,1,0,"tr",22),i.YNc(70,Y7,1,0,"tr",23),i.qZA()()),2&t){const e=i.oxw(2);i.xp6(2),i.Q6J("dataSource",e.ordersList),i.xp6(67),i.Q6J("matHeaderRowDef",e.salesDisplayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.salesDisplayedColumns)}}function W7(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"mat-card",6)(1,"mat-card-title"),i._uU(2,"Registro vendite dei canali gestiti"),i.qZA(),i.YNc(3,OV,5,2,"mat-form-field",7),i.YNc(4,PV,28,1,"mat-form-field",7),i.TgZ(5,"mat-form-field")(6,"mat-label"),i._uU(7,"Anno"),i.qZA(),i.TgZ(8,"input",28),i.NdJ("ngModelChange",function(a){i.CHM(e);const o=i.oxw();return i.KtG(o.year=a)})("change",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.load(a.channelId,a.monthVar,a.year))}),i.qZA()(),i.TgZ(9,"h2"),i._uU(10,"Registro Corrispettivi"),i.qZA(),i.YNc(11,RV,1,0,"mat-spinner",29),i.YNc(12,FV,3,0,"button",30),i.YNc(13,LV,3,0,"p",7),i.YNc(14,qV,20,3,"div",9),i._UZ(15,"br")(16,"br"),i.TgZ(17,"h2"),i._uU(18,"Registro Vendite"),i.qZA(),i.YNc(19,QV,1,0,"mat-spinner",29),i.YNc(20,KV,3,0,"button",30),i.YNc(21,JV,3,0,"p",7),i.YNc(22,z7,71,3,"div",9),i.qZA()}if(2&t){const e=i.oxw();i.xp6(3),i.Q6J("ngIf",e.channelId),i.xp6(1),i.Q6J("ngIf",e.channelId),i.xp6(4),i.Q6J("ngModel",e.year),i.xp6(3),i.Q6J("ngIf",e.taxSpinner),i.xp6(1),i.Q6J("ngIf",e.salesList.length>0),i.xp6(1),i.Q6J("ngIf",!e.salesList||0===e.salesList.length),i.xp6(1),i.Q6J("ngIf",e.salesList.length>0),i.xp6(5),i.Q6J("ngIf",e.salesSpinner),i.xp6(1),i.Q6J("ngIf",e.ordersList.length>0),i.xp6(1),i.Q6J("ngIf",!e.ordersList||0===e.ordersList.length),i.xp6(1),i.Q6J("ngIf",e.ordersList.length>0)}}let G7=(()=>{class t{constructor(e,r,a,o,l){this.authService=e,this.orderService=r,this.router=a,this.chanService=o,this.renderer=l,this.userChannels=[],this.ownedChannels=[],this.channelId="",this.orders=[],this.calendarOrders=[],this.selectedDate=new Date,this.calendarDate=new Date,this.salesList=[],this.ordersList=[],this.salesDataSource=new fi.by(this.salesList),this.salesDisplayedColumns=["id","createdAt","sku","item","partner","currency","product-tax","quantity","fragileRate","bottleRate","price","netValue","taxValue","totalRowCost","totalPartnerCost","boxes","refrigeratedWeight","items","totalValue","totalCost"],this.taxDataSource=new fi.by(this.ordersList),this.taxDisplayedColumns=["date","tax","netAmount","taxAmount","total"],this.monthDataSource=new fi.by(this.orders),this.monthDisplayedColumns=["date","product","quantity","total"],this.taxSpinner=!1,this.salesSpinner=!1,this.authData=e.currentAuthData,e.currentAuth.subscribe(u=>{u&&(this.authData=u)}),this.selectedDate=new Date,this.calendarDate=new Date,this.year=this.selectedDate.getFullYear(),this.monthVar=(this.selectedDate.getUTCMonth()+1).toString()}ngOnInit(){this.chanService.getUserChannels(this.partnerId?this.partnerId:this.authData.partnerId).subscribe({next:e=>{this.userChannels=e.data,this.userChannels.length>0&&(this.channelId=e.data[0]._id,this.getMonthlySales(this.monthVar,this.year)),this.orderService.getFullOrderSummaryByPartnerId(this.partnerId?this.partnerId:this.authData.partnerId,this.channelId).subscribe(r=>{this.calendarOrders=r.data})}}),this.chanService.getUserOwnedChannels(this.partnerId?this.partnerId:this.authData.partnerId).subscribe({next:e=>{this.ownedChannels=e.data,this.ownedChannels.length>0&&(this.channelId=e.data[0]._id,this.taxSpinner=!0,this.salesSpinner=!0,this.loadTax(e.data[0]._id,this.monthVar,this.year),this.loadSalesDetail(e.data[0]._id,this.monthVar,this.year))}})}ngAfterViewInit(){const e=document.querySelectorAll(".mat-calendar-previous-button"),r=document.querySelectorAll(".mat-calendar-next-button");e&&Array.from(e).forEach(a=>{this.renderer.listen(a,"click",o=>{this.calendarDate.setMonth(this.calendarDate.getMonth()-1),this.getMonthlySales((this.calendarDate.getUTCMonth()+1).toString(),this.calendarDate.getFullYear())})}),r&&Array.from(r).forEach(a=>{this.renderer.listen(a,"click",o=>{this.calendarDate.setMonth(this.calendarDate.getMonth()+1),this.getMonthlySales((this.calendarDate.getUTCMonth()+1).toString(),this.calendarDate.getFullYear())})})}load(e,r,a){var o=this;return(0,wi.Z)(function*(){o.taxSpinner=!0,o.salesSpinner=!0,yield o.loadTax(e,r,a),yield o.loadSalesDetail(e,r,a)})()}back(){this.router.navigate(["/home"])}dateClass(){return e=>{const r=Y1(e,"dd/mm/yyyy");for(let a=0;a<this.calendarOrders.length;a++)if(r===Y1(this.calendarOrders[a]?.createdAt,"dd/mm/yyyy"))return"special-date";return""}}onSelect(e){this.orderSummary=[],this.selectedDate=e,this.orderService.getOrderSummaryByPartnerId(this.partnerId?this.partnerId:this.authData.partnerId,this.channelId,(this.selectedDate.getUTCMonth()+1).toString(),this.selectedDate.getFullYear()).subscribe(r=>{this.orders=r.data,this.monthDataSource.data=this.orders;for(let a=0;a<this.orders.length;a++){const o=Y1(this.orders[a]?.createdAt,"dd/mm/yyyy");Y1(e,"dd/mm/yyyy")===o&&this.orderSummary.push(this.orders[a])}})}loadTax(e,r,a){var o=this;return(0,wi.Z)(function*(){o.orderService.getAdminOrderSummaryByPartnerId(o.partnerId?o.partnerId:o.authData.partnerId,e,r,a).subscribe({next:l=>{o.salesList=l.data,o.taxDataSource.data=o.salesList,o.taxSpinner=!1},error:l=>{console.error(l)}})})()}loadSalesDetail(e,r,a){var o=this;return(0,wi.Z)(function*(){o.orderService.getAdminOrderDetailsByPartnerId(o.partnerId?o.partnerId:o.authData.partnerId,e,r,a).subscribe({next:l=>{o.ordersList=l.data,o.salesDataSource.data=o.ordersList,o.salesSpinner=!1},error:l=>{console.error(l)}})})()}getMonthlySales(e,r){this.orderService.getOrderSummaryByPartnerId(this.partnerId?this.partnerId:this.authData.partnerId,this.channelId,e,r).subscribe(a=>{this.orders=a.data,this.monthDataSource.data=this.orders})}exportSalesAsExcel(){const e=dg.table_to_sheet(this.salesTable.nativeElement,{dateNF:"mm/dd/yyyy;@",cellDates:!0,raw:!0}),r=dg.book_new();dg.book_append_sheet(r,e,"Sheet1"),lO(r,"Vendite_per_periodo.xlsx")}exportTaxAsExcel(){const e=dg.table_to_sheet(this.taxTable.nativeElement,{dateNF:"mm/dd/yyyy;@",cellDates:!0,raw:!0}),r=dg.book_new();dg.book_append_sheet(r,e,"Sheet1"),lO(r,"Registro_Corrispettivi.xlsx")}fixDecimals(e,r){return e&&e.toFixed(r)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(Ef.Nz),i.Y36(Ft.F0),i.Y36(ld.T),i.Y36(i.Qsj))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-sales-summary"]],viewQuery:function(e,r){if(1&e&&(i.Gf(fV,5),i.Gf(mV,5)),2&e){let a;i.iGM(a=i.CRH())&&(r.salesTable=a.first),i.iGM(a=i.CRH())&&(r.taxTable=a.first)}},inputs:{partnerId:"partnerId"},decls:25,vars:11,consts:[["mat-button","","color","primary",3,"click"],[1,"mat-18"],[1,"fill-space"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"dateClass","selected","selectedChange",4,"ngIf"],["appearance","outlined"],[4,"ngIf"],[4,"ngFor","ngForOf"],["class","example-container mat-elevation-z8 ",4,"ngIf"],["appearance","outlined",4,"ngIf"],[3,"value"],[3,"dateClass","selected","selectedChange"],[1,"example-container","mat-elevation-z8"],["taxTable",""],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","date"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","product"],["matColumnDef","quantity"],["matColumnDef","total"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matInput","","type","number","placeholder","2022, 2023...","min","2018","max","2050",3,"ngModel","ngModelChange","change"],["matSuffix","","diameter","16","style","display: inline-flex",4,"ngIf"],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],[3,"value","valueChange","selectionChange"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["value","6"],["value","7"],["value","8"],["value","9"],["value","10"],["value","11"],["value","12"],["matSuffix","","diameter","16",2,"display","inline-flex"],["mat-raised-button","","color","primary",3,"click"],["matColumnDef","tax"],["matColumnDef","netAmount"],["matColumnDef","taxAmount"],["salesTable",""],["matColumnDef","id"],["matColumnDef","createdAt"],["matColumnDef","customer"],["matColumnDef","customer-email"],["matColumnDef","item"],["matColumnDef","sku"],["matColumnDef","partner"],["matColumnDef","currency"],["matColumnDef","product-tax"],["matColumnDef","fragileRate"],["matColumnDef","bottleRate"],["matColumnDef","price"],["matColumnDef","netValue"],["matColumnDef","taxValue"],["matColumnDef","totalRowCost"],["matColumnDef","totalPartnerCost"],["mat-header-cell","","matTooltip","Il costo dell'articolo da imputare al venditore, comprese le tariffe di logistica per articoli fragili o bottiglie",4,"matHeaderCellDef"],["matColumnDef","boxes"],["matColumnDef","refrigeratedWeight"],["matColumnDef","items"],["matColumnDef","totalValue"],["mat-header-cell","","matTooltip","Valore totale dell'ordine",4,"matHeaderCellDef"],["matColumnDef","totalCost"],["mat-cell","","matTooltip","Costo totale dell'ordine (esclusi i costi di imballaggio degli articoli fragili o bottiglie)",4,"matCellDef"],["mat-header-cell","","matTooltip","Il costo dell'articolo da imputare al venditore, comprese le tariffe di logistica per articoli fragili o bottiglie"],["mat-header-cell","","matTooltip","Valore totale dell'ordine"],["mat-cell","","matTooltip","Costo totale dell'ordine (esclusi i costi di imballaggio degli articoli fragili o bottiglie)"]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"button",0),i.NdJ("click",function(){return r.back()}),i.TgZ(2,"mat-icon"),i._uU(3,"arrow_back"),i.qZA()(),i.TgZ(4,"mat-icon",1),i._uU(5,"summarize"),i.qZA(),i._uU(6),i.ALo(7,"translate"),i._UZ(8,"span",2),i.TgZ(9,"mat-form-field")(10,"mat-select",3),i.NdJ("valueChange",function(o){return r.channelId=o}),i.YNc(11,pV,2,2,"mat-option",4),i.qZA()()(),i.YNc(12,gV,1,2,"mat-calendar",5),i.TgZ(13,"mat-card",6)(14,"mat-card-title"),i._uU(15,"Giornata "),i.qZA(),i.YNc(16,_V,3,0,"p",7),i.TgZ(17,"mat-list"),i.YNc(18,vV,3,6,"mat-list-item",8),i.qZA()(),i.TgZ(19,"mat-card",6)(20,"mat-card-title"),i._uU(21,"Tutte le vendite del mese"),i.qZA(),i.YNc(22,bV,3,0,"p",7),i.YNc(23,kV,17,3,"div",9),i.qZA(),i.YNc(24,W7,23,11,"mat-card",10)),2&e&&(i.xp6(6),i.hij(" ",i.lcZ(7,9,"app.sales-summary.title")," "),i.xp6(4),i.Q6J("value",r.channelId),i.xp6(1),i.Q6J("ngForOf",r.userChannels),i.xp6(1),i.Q6J("ngIf",r.orders),i.xp6(4),i.Q6J("ngIf",!r.orderSummary||0===r.orderSummary.length),i.xp6(2),i.Q6J("ngForOf",r.orderSummary),i.xp6(4),i.Q6J("ngIf",!r.orders||0===r.orders.length),i.xp6(1),i.Q6J("ngIf",r.orders.length>0),i.xp6(1),i.Q6J("ngIf",r.ownedChannels.length>0))},dependencies:[Hn.sg,Hn.O5,A.Fj,A.wV,A.JJ,A.qQ,A.Fd,A.On,Ui.lW,H.a8,H.n5,Lc._H,Xe.KE,Xe.hX,Xe.R9,Dt.Hw,_n.Nt,jn.i$,jn.Tg,Rr.gD,Pr.ey,fi.BZ,fi.fO,fi.as,fi.w1,fi.Dz,fi.nj,fi.ge,fi.ev,fi.XQ,fi.Gk,ca.Ye,Tl.Ou,Hn.uU,Ot.X$],styles:["mat-calendar[_ngcontent-%COMP%]{max-width:300px} button.special-date{background:orange;border-radius:100%}table[_ngcontent-%COMP%]{width:100%}.mat-mdc-cell[_ngcontent-%COMP%]{font-size:14px;min-height:48px;text-align:center;border-right:1px solid rgba(8,3,3,.1215686275)}.mat-mdc-header-cell[_ngcontent-%COMP%]{text-align:center}"]}),t})(),$7=(()=>{class t{constructor(e,r){this.authService=e,this.partnerService=r,this.months=["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],this.sells=[],this.nSells=[],this.areaMostSells=[],this.areaLabels=[],this.categoryMostSells=[],this.categoryLabels=[],this.brandMostSells=[],this.brandLabels=[],this.productBestSellers=[],this.labelBestSellers=[],this.pieChartOptions={responsive:!0,plugins:{legend:{display:!0,position:"top"}}},this.pieChartPlugins=[od],this.customerChartData={labels:this.areaLabels,datasets:[{data:this.areaMostSells}]},this.pieChartType="pie",this.categoryChartData={labels:this.categoryLabels,datasets:[{data:this.categoryMostSells}]},this.brandChartData={labels:this.brandLabels,datasets:[{data:this.brandMostSells}]},this.productChartData={labels:this.labelBestSellers,datasets:[{data:this.productBestSellers}]},this.barChartOptions={responsive:!0,scales:{x:{},y:{}},plugins:{legend:{display:!1},datalabels:{anchor:"end",align:"end"}}},this.barChartType="bar",this.barChartPlugins=[od],this.nSellsChartData={labels:this.months,datasets:[{label:"Prodotti venduti",data:this.nSells}]},this.sellsChartData={labels:this.months,datasets:[{label:"Ricavi \u20ac",data:this.sells}]},this.authData=e.currentAuthData}ngOnInit(){this.partnerService.getSells(this.authData?.partnerId,(new Date).getFullYear()).subscribe(e=>{for(let r=0;r<12;r++)this.sells[r]=e.data[r]?e.data[r]:0;this.updateCharts()}),this.partnerService.getNSales(this.authData?.partnerId,(new Date).getFullYear()).subscribe(e=>{for(let r=0;r<12;r++)this.nSells[r]=e.data[r]?e.data[r]:0;this.updateCharts()}),this.partnerService.getCustomerArea(this.authData?.partnerId).subscribe(e=>{for(const[r,a]of Object.entries(e.data))this.areaMostSells.push(a),this.areaLabels.push(r);this.updateCharts()}),this.partnerService.getCategoriesSold(this.authData?.partnerId,(new Date).getFullYear()).subscribe(e=>{for(const[r,a]of Object.entries(e.data))this.categoryMostSells.push(a),this.categoryLabels.push(r);this.updateCharts()}),this.partnerService.getBrandsSold(this.authData?.partnerId,(new Date).getFullYear()).subscribe(e=>{for(const[r,a]of Object.entries(e.data))this.brandMostSells.push(a),this.brandLabels.push(r);this.updateCharts()}),this.partnerService.readBestSellers(this.authData?.partnerId).subscribe(e=>{for(const[r,a]of Object.entries(e.data))this.productBestSellers.push(a),this.labelBestSellers.push(r);this.updateCharts()})}updateCharts(){if(this.charts)for(let e of this.charts)e.update()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(Ys.b))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-trends"]],viewQuery:function(e,r){if(1&e&&i.Gf(nh,5),2&e){let a;i.iGM(a=i.CRH())&&(r.charts=a)}},decls:51,vars:45,consts:[[1,"fill-space"],[1,"container"],[1,"text-center"],["cols","2","rowHeight","2:1"],[1,"bar-chart"],[1,"bold"],["baseChart","",3,"data","type","options","plugins"],["sellsChart",""],["nSellsChart",""],["rowspan","2",1,"mat-grid-til"],[1,"pie-chart"],["baseChart","","height","300",3,"data","type","options","plugins"],["productChart",""],["categoryChart",""],["brandChart",""],["customerChart",""]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"mat-icon"),i._uU(2,"analytics"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i._UZ(5,"span",0),i.qZA(),i.TgZ(6,"div",1)(7,"div",2)(8,"mat-grid-list",3)(9,"mat-grid-tile")(10,"div",4)(11,"div",5),i._uU(12),i.ALo(13,"translate"),i.qZA(),i._UZ(14,"canvas",6,7),i.qZA()(),i.TgZ(16,"mat-grid-tile")(17,"div",4)(18,"div",5),i._uU(19),i.ALo(20,"translate"),i.qZA(),i._UZ(21,"canvas",6,8),i.qZA()(),i.TgZ(23,"mat-grid-tile",9)(24,"div",10)(25,"div",5),i._uU(26),i.ALo(27,"translate"),i.qZA(),i._UZ(28,"canvas",11,12),i.qZA()(),i.TgZ(30,"mat-grid-tile",9)(31,"div",10)(32,"div",5),i._uU(33),i.ALo(34,"translate"),i.qZA(),i._UZ(35,"canvas",6,13),i.qZA()(),i.TgZ(37,"mat-grid-tile",9)(38,"div",10)(39,"div",5),i._uU(40),i.ALo(41,"translate"),i.qZA(),i._UZ(42,"canvas",6,14),i.qZA()(),i.TgZ(44,"mat-grid-tile",9)(45,"div",10)(46,"div",5),i._uU(47),i.ALo(48,"translate"),i.qZA(),i._UZ(49,"canvas",6,15),i.qZA()()()()()),2&e&&(i.xp6(3),i.hij(" ",i.lcZ(4,31,"app.trends.title")," "),i.xp6(9),i.Oqu(i.lcZ(13,33,"app.trends.sells")),i.xp6(2),i.Q6J("data",r.sellsChartData)("type",r.barChartType)("options",r.barChartOptions)("plugins",r.barChartPlugins),i.xp6(5),i.Oqu(i.lcZ(20,35,"app.trends.nSells")),i.xp6(2),i.Q6J("data",r.nSellsChartData)("type",r.barChartType)("options",r.barChartOptions)("plugins",r.barChartPlugins),i.xp6(5),i.Oqu(i.lcZ(27,37,"app.trends.products")),i.xp6(2),i.Q6J("data",r.productChartData)("type",r.pieChartType)("options",r.pieChartOptions)("plugins",r.pieChartPlugins),i.xp6(5),i.Oqu(i.lcZ(34,39,"app.trends.categories")),i.xp6(2),i.Q6J("data",r.categoryChartData)("type",r.pieChartType)("options",r.pieChartOptions)("plugins",r.pieChartPlugins),i.xp6(5),i.Oqu(i.lcZ(41,41,"app.trends.brands")),i.xp6(2),i.Q6J("data",r.brandChartData)("type",r.pieChartType)("options",r.pieChartOptions)("plugins",r.pieChartPlugins),i.xp6(5),i.Oqu(i.lcZ(48,43,"app.trends.customerLocation")),i.xp6(2),i.Q6J("data",r.customerChartData)("type",r.pieChartType)("options",r.pieChartOptions)("plugins",r.pieChartPlugins))},dependencies:[nh,Dt.Hw,ca.Ye,Td.Il,Td.DX,Ot.X$],styles:[".bar-chart[_ngcontent-%COMP%]{width:75%}.pie-chart[_ngcontent-%COMP%]{width:80%}.bold[_ngcontent-%COMP%]{font-weight:700}"]}),t})();const q7=["pendingSort"],Q7=["ordersPaginator"],K7=["ordersSort"],J7=["referenceSort"],X7=["referencePaginator"];function eH(t,n){1&t&&(i.TgZ(0,"div"),i._uU(1,"No data"),i.qZA())}function tH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.warehouse-journal.partner")," "))}function nH(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.partner.companyName," ")}}function iH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.warehouses.title")," "))}function rH(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw();i.xp6(1),i.hij(" ",r.getWarehouseOrigin(e.warehouse)," ")}}function aH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.warehouse-journal.product")," "))}function oH(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.product.title," ")}}function sH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.warehouse-journal.variation")," "))}function lH(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.variation," ")}}function cH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.warehouse-journal.omsgid")," "))}function dH(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.omsgid," ")}}function uH(t,n){1&t&&(i.TgZ(0,"th",36),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"shared.buttons.actions")," "))}function hH(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"div")(1,"button",38),i.NdJ("click",function(){i.CHM(e);const a=i.oxw().$implicit,o=i.oxw();return i.KtG(o.confirmTransaction(a._id))}),i.TgZ(2,"mat-icon"),i._uU(3,"done"),i.qZA()(),i.TgZ(4,"button",38),i.NdJ("click",function(){i.CHM(e);const a=i.oxw().$implicit,o=i.oxw();return i.KtG(o.cancelTransaction(a._id))}),i.TgZ(5,"mat-icon"),i._uU(6,"close"),i.qZA()()()}}function fH(t,n){if(1&t&&(i.TgZ(0,"td",35),i.YNc(1,hH,7,0,"div",37),i.qZA()),2&t){const e=n.$implicit,r=i.oxw();i.xp6(1),i.Q6J("ngIf",r.checkOwnership(e.partnerId,e.warehouse))}}function mH(t,n){1&t&&i._UZ(0,"tr",39)}function pH(t,n){1&t&&i._UZ(0,"tr",40)}function gH(t,n){1&t&&(i.TgZ(0,"div"),i._uU(1,"No data"),i.qZA())}function _H(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1," Data "),i.qZA())}function vH(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.ALo(2,"date"),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.createdAt,"dd/MM/yyyy")," ")}}function bH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1," Nome "),i.qZA())}function yH(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.name," ")}}function xH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1," Status "),i.qZA())}function wH(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.status," ")}}function CH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1," Canale "),i.qZA())}function DH(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.qZA()),2&t){const e=n.$implicit,r=i.oxw();i.xp6(1),i.hij(" ",r.getChannelName(e.instanceId,e.storeName)," ")}}function TH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.orders.order.customer")," "))}function EH(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",null==e.customer?null:e.customer.displayName," ")}}function MH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.orders.order.address")," "))}function AH(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.HOy(" ",null==e.shippingAddress?null:e.shippingAddress.address1," ",null==e.shippingAddress?null:e.shippingAddress.address2," ",null==e.shippingAddress?null:e.shippingAddress.city," ",null==e.shippingAddress?null:e.shippingAddress.province," ")}}function SH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.orders.order.total")," "))}function kH(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.AsE(" ",null==e.totalPriceSet?null:e.totalPriceSet.amount," ",null==e.totalPriceSet?null:e.totalPriceSet.currencyCode," ")}}function IH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.orders.order.items")," "))}function OH(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",null==e.items?null:e.items.length," ")}}function PH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.orders.order.fulfilled")," "))}function RH(t,n){1&t&&(i.TgZ(0,"mat-icon"),i._uU(1,"done"),i.qZA())}function FH(t,n){1&t&&(i.TgZ(0,"mat-icon"),i._uU(1,"close"),i.qZA())}function LH(t,n){if(1&t&&(i.TgZ(0,"td",35),i.YNc(1,RH,2,0,"mat-icon",37),i.YNc(2,FH,2,0,"mat-icon",37),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.Q6J("ngIf",e.fulfilled),i.xp6(1),i.Q6J("ngIf",!e.fulfilled)}}function NH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.shipments.shipment.title")," "))}function BH(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",42),i.NdJ("click",function(){i.CHM(e);const a=i.oxw().$implicit,o=i.oxw();return i.KtG(o.showShipmentDetails(a.shipment.smsid))}),i.TgZ(1,"mat-icon"),i._uU(2,"local_shipping"),i.qZA()()}}function UH(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.YNc(2,BH,3,0,"button",41),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.AsE(" ",null==e.shipment?null:e.shipment.status," ",null==e.shipment?null:e.shipment.smsid," "),i.xp6(1),i.Q6J("ngIf",e.shipment)}}function ZH(t,n){1&t&&(i.TgZ(0,"th",36),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"shared.buttons.actions")," "))}function VH(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",42),i.NdJ("click",function(){i.CHM(e);const a=i.oxw().$implicit,o=i.oxw();return i.KtG(o.shipOrder(a))}),i.TgZ(1,"mat-icon"),i._uU(2,"fast_forward"),i.qZA()()}}function HH(t,n){1&t&&i._UZ(0,"mat-spinner",44)}function jH(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"td",35)(1,"button",42),i.NdJ("click",function(){const o=i.CHM(e).$implicit,l=i.oxw();return i.KtG(l.showOrderDetails(o.omsgid))}),i.TgZ(2,"mat-icon"),i._uU(3,"info"),i.qZA()(),i.YNc(4,VH,3,0,"button",41),i.YNc(5,HH,1,0,"mat-spinner",43),i.qZA()}if(2&t){const e=n.$implicit,r=i.oxw();i.xp6(4),i.Q6J("ngIf",!e.fulfilled&&r.isFulfillable(e)&&r.loadedElement!==e.omsgid),i.xp6(1),i.Q6J("ngIf",r.loading&&r.loadedElement===e.omsgid)}}function YH(t,n){1&t&&i._UZ(0,"tr",39)}function zH(t,n){1&t&&i._UZ(0,"tr",40)}function WH(t,n){1&t&&(i.TgZ(0,"div"),i._uU(1,"No data"),i.qZA())}function GH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1," Prodotto "),i.qZA())}function $H(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.product," ")}}function qH(t,n){1&t&&(i.TgZ(0,"th",34),i._uU(1," Quantit\xe0 "),i.qZA())}function QH(t,n){if(1&t&&(i.TgZ(0,"td",35),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.hij(" ",e.quantity," ")}}function KH(t,n){1&t&&i._UZ(0,"tr",39)}function JH(t,n){1&t&&i._UZ(0,"tr",40)}function XH(t,n){if(1&t&&(i.TgZ(0,"div"),i._uU(1),i.qZA()),2&t){const e=n.$implicit;i.xp6(1),i.AsE(" ",e.product," ",e.quantity," ")}}const pO=function(){return[5,10,20]};let ej=(()=>{class t extends ln.Mf{constructor(e,r,a,o,l,u,m,_,w,M){super(e),this.warehousesService=r,this.ordersService=a,this.partnerService=o,this.route=l,this.router=u,this.snackBar=m,this.translate=_,this.dialog=w,this.chanService=M,this.orders=[],this.warehouses=[],this.channels=new Array,this.openQuantities=[],this.unfulfilledTransactions=[],this.pendingTransactions=[],this.pendingTransactionsDataSource=new fi.by(this.pendingTransactions),this.pendingTransactionsDisplayedColumns=["partner","warehouseOrigin","title","variation","omsgid","actions"],this.ordersDataSource=new fi.by(this.orders),this.ordersDisplayedColumns=["date","name","status","channelId","displayName","address","total","items","fulfilled","shipments","actions"],this.referenceDataSource=new fi.by(this.openQuantities),this.referenceDisplayedColumns=["product","quantity"],this.loading=!1,this.loadedElement=""}ngOnInit(){var e=this;return(0,wi.Z)(function*(){yield e.getWarehouses(e.authData?.partnerId),yield e.getChannels(),e.getOpenOrders(e.authData?.partnerId),yield e.getUnfulfilledTransactions(e.authData?.partnerId),e.ordersDataSource.sort=e.ordersSort,e.ordersSort.direction="desc",e.ordersSort.active="name",e.ordersDataSource.paginator=e.ordersPaginator})()}getWarehouses(e){var r=this;return(0,wi.Z)(function*(){r.warehousesService.getAllPartnerAvailableWarehousesRest(r.partnerId?r.partnerId:e).subscribe(function(){var a=(0,wi.Z)(function*(o){r.warehouses=o.data,yield r.getWarehousePendingTransactions(r.warehouses)});return function(o){return a.apply(this,arguments)}}())})()}getChannels(){var e=this;return(0,wi.Z)(function*(){e.channels=yield e.chanService.getChannels()})()}getWarehousePendingTransactions(e){var r=this;return(0,wi.Z)(function*(){r.warehousesService.getAllWarehouseJournalEntriesbyWarehouseList(e,!1).subscribe(a=>{r.pendingTransactions=a.data,r.pendingTransactionsDataSource.data=r.pendingTransactions,r.pendingTransactionsDataSource.sort=r.pendingSort})})()}confirmTransaction(e){var r=this;this.warehousesService.processWarehousePendingTransaction(e,!0).subscribe(function(){var a=(0,wi.Z)(function*(o){r.snackBar.open("confermato!",void 0,{duration:3e3}),yield r.getWarehousePendingTransactions(r.warehouses)});return function(o){return a.apply(this,arguments)}}())}cancelTransaction(e){var r=this;this.warehousesService.processWarehousePendingTransaction(e,!1).subscribe(function(){var a=(0,wi.Z)(function*(o){r.snackBar.open("annullato!",void 0,{duration:3e3}),yield r.getWarehousePendingTransactions(r.warehouses)});return function(o){return a.apply(this,arguments)}}())}getWarehouseOrigin(e){return e?e.name:"-"}getOpenOrders(e){this.ordersService.getOpenOrdersByPartnerId(e).subscribe(r=>{this.orders=r.data,this.ordersDataSource.data=this.orders,this.openQuantities=this.getOpenQuantities(),this.referenceDataSource.data=this.openQuantities,this.pendingTransactionsDataSource.data=this.pendingTransactions,this.pendingTransactionsDataSource.sort=this.pendingSort})}getOpenQuantities(){let e=new Map;for(let a=0;a<this.orders.length;a++)for(let o=0;o<this.orders[a].items.length;o++){let l=this.orders[a].items[o];e.get(`${l.name} (${l.sku})`)?e.set(`${l.name} (${l.sku})`,e.get(`${l.name} (${l.sku})`)+l.quantity):e.set(`${l.name} (${l.sku})`,l.quantity)}return Array.from(e).map(([a,o])=>({product:a,quantity:o}))}showShipmentDetails(e){var r=this;return(0,wi.Z)(function*(){r.router.navigate(["/shipment",{id:e}])})()}shipOrder(e){this.loading=!0,this.loadedElement=e.omsgid,this.ordersService.retryOrderFulfillmentByOrderId(e).subscribe(r=>{this.loading=!1,this.loadedElement=""})}showOrderDetails(e){var r=this;return(0,wi.Z)(function*(){r.router.navigate(["/order",{id:e}])})()}getChannelName(e,r){for(let a=0;a<this.channels.length;a++)if(e===this.channels[a].instanceId&&r===this.channels[a].storeName)return this.channels[a].name;return"Errore. contattare assistenza."}getUnfulfilledTransactions(e){var r=this;return(0,wi.Z)(function*(){r.warehousesService.getUnfulfilledTransactions(e).subscribe(function(){var a=(0,wi.Z)(function*(o){r.unfulfilledTransactions=o.data});return function(o){return a.apply(this,arguments)}}())})()}isFulfillable(e){for(let r=0;r<this.unfulfilledTransactions.length;r++)if(this.unfulfilledTransactions[r].omsgid===e.omsgid)return!1;return!0}checkOwnership(e,r){return this.authData.partnerId===r.partnerId||this.partnerId===r.partnerId}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(Tf.c),i.Y36(Ef.Nz),i.Y36(Ys.b),i.Y36(Ft.gz),i.Y36(Ft.F0),i.Y36(Wa.ux),i.Y36(Ot.sK),i.Y36(X.uw),i.Y36(ld.T))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-operational-dashboard"]],viewQuery:function(e,r){if(1&e&&(i.Gf(q7,5),i.Gf(Q7,5),i.Gf(K7,5),i.Gf(J7,5),i.Gf(X7,5)),2&e){let a;i.iGM(a=i.CRH())&&(r.pendingSort=a.first),i.iGM(a=i.CRH())&&(r.ordersPaginator=a.first),i.iGM(a=i.CRH())&&(r.ordersSort=a.first),i.iGM(a=i.CRH())&&(r.referenceSort=a.first),i.iGM(a=i.CRH())&&(r.referencePaginator=a.first)}},inputs:{partnerId:"partnerId"},features:[i.qOj],decls:109,vars:31,consts:[[1,"fill-space"],[1,"container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["pendingSort","matSort"],[4,"matNoDataRow"],["matColumnDef","partner"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","warehouseOrigin"],["matColumnDef","title"],["matColumnDef","variation"],["matColumnDef","omsgid"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["ordersSort","matSort"],["matColumnDef","date"],["matColumnDef","name"],["matColumnDef","status"],["matColumnDef","channelId"],["matColumnDef","displayName"],["matColumnDef","address"],["matColumnDef","total"],["matColumnDef","items"],["matColumnDef","fulfilled"],["matColumnDef","shipments"],["showFirstLastButtons","","aria-label","Select page of orders",3,"pageSize","pageSizeOptions"],["ordersPaginator",""],["referenceSort","matSort"],["matColumnDef","product"],["matColumnDef","quantity"],["referencePaginator",""],[4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[4,"ngIf"],["mat-icon-button","",3,"disabled","click"],["mat-header-row",""],["mat-row",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["matSuffix","","diameter","16","style","display: inline-flex",4,"ngIf"],["matSuffix","","diameter","16",2,"display","inline-flex"]],template:function(e,r){1&e&&(i.TgZ(0,"mat-toolbar")(1,"mat-icon"),i._uU(2,"dashboard"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i._UZ(5,"span",0),i.qZA(),i.TgZ(6,"div",1)(7,"mat-accordion")(8,"mat-expansion-panel")(9,"mat-expansion-panel-header")(10,"mat-panel-title")(11,"strong"),i._uU(12),i.ALo(13,"translate"),i.qZA()(),i.TgZ(14,"mat-panel-description"),i._uU(15),i.qZA()(),i.TgZ(16,"table",2,3),i.YNc(18,eH,2,0,"div",4),i.ynx(19,5),i.YNc(20,tH,3,3,"th",6),i.YNc(21,nH,2,1,"td",7),i.BQk(),i.ynx(22,8),i.YNc(23,iH,3,3,"th",6),i.YNc(24,rH,2,1,"td",7),i.BQk(),i.ynx(25,9),i.YNc(26,aH,3,3,"th",6),i.YNc(27,oH,2,1,"td",7),i.BQk(),i.ynx(28,10),i.YNc(29,sH,3,3,"th",6),i.YNc(30,lH,2,1,"td",7),i.BQk(),i.ynx(31,11),i.YNc(32,cH,3,3,"th",6),i.YNc(33,dH,2,1,"td",7),i.BQk(),i.ynx(34,12),i.YNc(35,uH,3,3,"th",13),i.YNc(36,fH,2,1,"td",7),i.BQk(),i.YNc(37,mH,1,0,"tr",14),i.YNc(38,pH,1,0,"tr",15),i.qZA()(),i.TgZ(39,"mat-expansion-panel")(40,"mat-expansion-panel-header")(41,"mat-panel-title")(42,"strong"),i._uU(43),i.ALo(44,"translate"),i.qZA()(),i.TgZ(45,"mat-panel-description"),i._uU(46),i.qZA()(),i.TgZ(47,"table",2,16),i.YNc(49,gH,2,0,"div",4),i.ynx(50,17),i.YNc(51,_H,2,0,"th",6),i.YNc(52,vH,3,4,"td",7),i.BQk(),i.ynx(53,18),i.YNc(54,bH,2,0,"th",6),i.YNc(55,yH,2,1,"td",7),i.BQk(),i.ynx(56,19),i.YNc(57,xH,2,0,"th",6),i.YNc(58,wH,2,1,"td",7),i.BQk(),i.ynx(59,20),i.YNc(60,CH,2,0,"th",6),i.YNc(61,DH,2,1,"td",7),i.BQk(),i.ynx(62,21),i.YNc(63,TH,3,3,"th",6),i.YNc(64,EH,2,1,"td",7),i.BQk(),i.ynx(65,22),i.YNc(66,MH,3,3,"th",6),i.YNc(67,AH,2,4,"td",7),i.BQk(),i.ynx(68,23),i.YNc(69,SH,3,3,"th",6),i.YNc(70,kH,2,2,"td",7),i.BQk(),i.ynx(71,24),i.YNc(72,IH,3,3,"th",6),i.YNc(73,OH,2,1,"td",7),i.BQk(),i.ynx(74,25),i.YNc(75,PH,3,3,"th",6),i.YNc(76,LH,3,2,"td",7),i.BQk(),i.ynx(77,26),i.YNc(78,NH,3,3,"th",6),i.YNc(79,UH,3,3,"td",7),i.BQk(),i.ynx(80,12),i.YNc(81,ZH,3,3,"th",13),i.YNc(82,jH,6,2,"td",7),i.BQk(),i.YNc(83,YH,1,0,"tr",14),i.YNc(84,zH,1,0,"tr",15),i.qZA(),i._UZ(85,"mat-paginator",27,28),i.qZA(),i.TgZ(87,"mat-expansion-panel")(88,"mat-expansion-panel-header")(89,"mat-panel-title")(90,"strong"),i._uU(91),i.ALo(92,"translate"),i.qZA()(),i.TgZ(93,"mat-panel-description"),i._uU(94),i.qZA()(),i.TgZ(95,"table",2,29),i.YNc(97,WH,2,0,"div",4),i.ynx(98,30),i.YNc(99,GH,2,0,"th",6),i.YNc(100,$H,2,1,"td",7),i.BQk(),i.ynx(101,31),i.YNc(102,qH,2,0,"th",6),i.YNc(103,QH,2,1,"td",7),i.BQk(),i.YNc(104,KH,1,0,"tr",14),i.YNc(105,JH,1,0,"tr",15),i.qZA(),i._UZ(106,"mat-paginator",27,32),i.YNc(108,XH,2,2,"div",33),i.qZA()()()),2&e&&(i.xp6(3),i.hij(" ",i.lcZ(4,21,"app.operational-dashboard.title")," "),i.xp6(9),i.Oqu(i.lcZ(13,23,"app.operational-dashboard.transfers")),i.xp6(3),i.hij(" Trasferimenti in sospeso (",r.pendingTransactions.length,") "),i.xp6(1),i.Q6J("dataSource",r.pendingTransactionsDataSource),i.xp6(21),i.Q6J("matHeaderRowDef",r.pendingTransactionsDisplayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",r.pendingTransactionsDisplayedColumns),i.xp6(5),i.Oqu(i.lcZ(44,25,"app.operational-dashboard.orders")),i.xp6(3),i.hij(" Ordini da evadere (",r.orders.length,") "),i.xp6(1),i.Q6J("dataSource",r.ordersDataSource),i.xp6(36),i.Q6J("matHeaderRowDef",r.ordersDisplayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",r.ordersDisplayedColumns),i.xp6(1),i.Q6J("pageSize",20)("pageSizeOptions",i.DdM(29,pO)),i.xp6(6),i.Oqu(i.lcZ(92,27,"app.operational-dashboard.products")),i.xp6(3),i.hij(" Prodotti richiesti (",r.openQuantities.length,") "),i.xp6(1),i.Q6J("dataSource",r.referenceDataSource),i.xp6(9),i.Q6J("matHeaderRowDef",r.referenceDisplayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",r.referenceDisplayedColumns),i.xp6(1),i.Q6J("pageSize",20)("pageSizeOptions",i.DdM(30,pO)),i.xp6(2),i.Q6J("ngForOf",r.openQuantities))},dependencies:[Hn.sg,Hn.O5,Ui.RK,oo.pp,oo.ib,oo.yz,oo.yK,oo.u4,Xe.R9,Dt.Hw,xi.NW,Ma.YE,Ma.nU,fi.BZ,fi.fO,fi.as,fi.w1,fi.Dz,fi.nj,fi.ge,fi.ev,fi.XQ,fi.Gk,fi.Ee,ca.Ye,Tl.Ou,Hn.uU,Ot.X$]}),t})();const tj=[{path:"home",component:MA,canActivate:[bP]},{path:"carrier",component:pA,canActivate:[Zr,Ur]},{path:"catalogue",component:k1,canActivate:[Zr,Ur]},{path:"partner-edit",component:ae,canActivate:[Zr,Ur]},{path:"references",component:R0.x,canActivate:[Zr,Ur]},{path:"reference",component:Le.C,canActivate:[Zr,Ur]},{path:"login",component:c},{path:"listing",component:UA.Y,canActivate:[Zr,Ur]},{path:"order",component:Yn,canActivate:[Zr,Ur]},{path:"orders",component:ci.b,canActivate:[Zr,Ur]},{path:"operational-dashboard",component:ej,canActivate:[Zr,Ur]},{path:"price-list",component:E1.D,canActivate:[Zr,Ur]},{path:"sales-summary",component:G7,canActivate:[Zr,Ur]},{path:"shipment",component:Ri,canActivate:[Zr,Ur]},{path:"shipments",component:kO,canActivate:[Zr,Ur]},{path:"trends",component:$7,canActivate:[Zr,Ur]},{path:"users",component:rP,canActivate:[Zr,rM,Ur]},{path:"user-detail/:id",component:zA,canActivate:[Zr,rM,Ur]},{path:"user-detail",component:zA,canActivate:[Zr,rM,Ur]},{path:"createReference",component:bt.l,canActivate:[Zr,Ur]},{path:"editReference",component:Wt.T,canActivate:[Zr,Ur]},{path:"storefront",component:eP,canActivate:[Zr,WA,Ur],data:{moduleCode:"SFG"}},{path:"storefront-generator",component:YA,canActivate:[Zr,WA,Ur],data:{moduleCode:"SFG"}},{path:"buy-button",component:uR,canActivate:[Zr,Ur]},{path:"admin",loadChildren:()=>y.e(808).then(y.bind(y,808)).then(t=>t.AdminModule),canActivate:[Zr,vP]},{path:"billing",component:sd,canActivate:[Zr,Ur]},{path:"invoices",component:BA,canActivate:[Zr,Ur]},{path:"invoice",component:$E,canActivate:[Zr,Ur]},{path:"warehouse-details",component:gP.k,canActivate:[Zr,Ur]},{path:"warehouse",component:_P.d,canActivate:[Zr,Ur]},{path:"warehouse-journal",component:$P,canActivate:[Zr,Ur]},{path:"csv-import",component:aR,canActivate:[Zr,Ur]},{path:"**",redirectTo:"home"}];let nj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[Ft.Bz.forRoot(tj),Ft.Bz]}),t})(),ij=(()=>{class t{constructor(e){this.http=e,this.serverApi=We.N.restUrl}insertFakeData(){return this.http.get(`${this.serverApi}/data-filler`)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(p.eN))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function rj(t,n){1&t&&(i.TgZ(0,"a",8)(1,"mat-icon"),i._uU(2,"home"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i.qZA()),2&t&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"app.home.title")," "))}function aj(t,n){1&t&&(i.TgZ(0,"div")(1,"p",9),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"a",10)(5,"mat-icon"),i._uU(6,"format_list_bulleted"),i.qZA(),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"a",11)(10,"mat-icon"),i._uU(11,"inventory_2"),i.qZA(),i._uU(12),i.ALo(13,"translate"),i.qZA(),i.TgZ(14,"a",12)(15,"mat-icon"),i._uU(16,"summarize"),i.qZA(),i._uU(17),i.ALo(18,"translate"),i.qZA(),i.TgZ(19,"a",13)(20,"mat-icon"),i._uU(21,"summarize"),i.qZA(),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.TgZ(24,"a",14)(25,"mat-icon"),i._uU(26,"local_shipping"),i.qZA(),i._uU(27),i.ALo(28,"translate"),i.qZA()()),2&t&&(i.xp6(2),i.hij(" ",i.lcZ(3,6,"app.home.categories.vendor"),""),i.xp6(5),i.hij(" ",i.lcZ(8,8,"app.catalogue.title")," "),i.xp6(5),i.hij(" ",i.lcZ(13,10,"app.orders.title")," "),i.xp6(5),i.hij(" ",i.lcZ(18,12,"app.operational-dashboard.title")," "),i.xp6(5),i.hij(" ",i.lcZ(23,14,"app.sales-summary.title")," "),i.xp6(5),i.hij(" ",i.lcZ(28,16,"app.shipments.title")," "))}function oj(t,n){1&t&&(i.TgZ(0,"div"),i._UZ(1,"mat-divider"),i.TgZ(2,"p",9),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"a",15)(6,"mat-icon"),i._uU(7,"warehouse"),i.qZA(),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"a",16)(11,"mat-icon"),i._uU(12,"publish"),i.qZA(),i._uU(13),i.ALo(14,"translate"),i.qZA(),i._UZ(15,"mat-divider"),i.TgZ(16,"p",9),i._uU(17),i.ALo(18,"translate"),i.qZA(),i.TgZ(19,"a",17)(20,"mat-icon"),i._uU(21,"analytics"),i.qZA(),i._uU(22),i.ALo(23,"translate"),i.qZA()()),2&t&&(i.xp6(3),i.hij(" ",i.lcZ(4,5,"app.home.categories.billing"),""),i.xp6(5),i.hij(" ",i.lcZ(9,7,"app.warehouse-journal.title")," "),i.xp6(5),i.hij(" ",i.lcZ(14,9,"app.csv-import.title")," "),i.xp6(4),i.hij(" ",i.lcZ(18,11,"app.home.categories.analysis"),""),i.xp6(5),i.hij(" ",i.lcZ(23,13,"app.trends.title")," "))}function sj(t,n){1&t&&i._UZ(0,"mat-divider")}function lj(t,n){1&t&&(i.TgZ(0,"p",9),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"app.home.categories.settings"),""))}function cj(t,n){1&t&&(i.TgZ(0,"a",18)(1,"mat-icon"),i._uU(2,"login"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i.qZA()),2&t&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"shared.login")," "))}function dj(t,n){1&t&&(i.TgZ(0,"a",19)(1,"mat-icon"),i._uU(2,"settings"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i.qZA()),2&t&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"shared.admin")," "))}function uj(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"a",20),i.NdJ("click",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.updateProducts())}),i.TgZ(1,"mat-icon"),i._uU(2,"refresh"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i.qZA()}2&t&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"app.recommendations.update")," "))}function hj(t,n){1&t&&(i.TgZ(0,"a",21)(1,"mat-icon"),i._uU(2,"person"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i.qZA()),2&t&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"app.users.title")," "))}function fj(t,n){1&t&&i._UZ(0,"mat-divider")}function mj(t,n){1&t&&(i.TgZ(0,"p",9),i._uU(1," INSERIMENTO DATI DI PROVA"),i.qZA())}function pj(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"a",20),i.NdJ("click",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.insertFakeData())}),i.TgZ(1,"mat-icon"),i._uU(2,"brush"),i.qZA(),i._uU(3," Inserisci dati di prova "),i.qZA()}}let gj=(()=>{class t{constructor(e,r,a,o,l,u){this.authService=e,this.userService=r,this.translate=a,this.catService=o,this.utilityService=l,this.router=u,this.activeLink="Home",this.authData=e.currentAuthData,e.currentAuth.subscribe(m=>{this.authData=m,this.getCurrentUser()})}get isSuperAdmin(){return""!==this.authData?.userId&&this.currentUserType===Uc.E.Admin}get isPartnerAdmin(){return""!==this.authData?.userId&&this.currentUserType===Uc.E.PartnerAdmin}get isLoggedIn(){return!!this.authData?.token}get currentUserType(){return this.currentUser?.userType??Uc.E.Standard}ngOnInit(){}isModuleAvailable(e){return!!this.currentUser?.partner?.subscriptionPlan.indacoModules.find(r=>r.code===e)}getCurrentUser(){""!==this.authData?.userId?this.userService.getUser(this.authData.userId).subscribe(e=>this.currentUser=e):this.currentUser=void 0}updateProducts(){var e=this;return(0,wi.Z)(function*(){e.catService.updateAllReferences().subscribe()})()}insertFakeData(){var e=this;return(0,wi.Z)(function*(){e.utilityService.insertFakeData().subscribe()})()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(Wp.f),i.Y36(Ot.sK),i.Y36(dd.av),i.Y36(ij),i.Y36(Ft.F0))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-navbar"]],decls:15,vars:12,consts:[[2,"top","0","position","sticky","z-index","999"],["mat-list-item","","routerLink","/",4,"ngIf"],[4,"ngIf"],["mat-subheader","",4,"ngIf"],["mat-list-item","","routerLink","/login",4,"ngIf"],["mat-list-item","","routerLink","/admin",4,"ngIf"],["mat-list-item","",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/users",4,"ngIf"],["mat-list-item","","routerLink","/"],["mat-subheader",""],["mat-list-item","","routerLink","/catalogue"],["mat-list-item","","routerLink","/orders"],["mat-list-item","","routerLink","/operational-dashboard"],["mat-list-item","","routerLink","/sales-summary"],["mat-list-item","","routerLink","/shipments"],["mat-list-item","","routerLink","/warehouse-journal"],["mat-list-item","","routerLink","/csv-import"],["mat-list-item","","routerLink","/trends"],["mat-list-item","","routerLink","/login"],["mat-list-item","","routerLink","/admin"],["mat-list-item","",3,"click"],["mat-list-item","","routerLink","/users"]],template:function(e,r){1&e&&(i.TgZ(0,"div",0)(1,"mat-nav-list"),i.YNc(2,rj,5,3,"a",1),i._UZ(3,"mat-divider"),i.YNc(4,aj,29,18,"div",2),i.YNc(5,oj,24,15,"div",2),i.YNc(6,sj,1,0,"mat-divider",2),i.YNc(7,lj,3,3,"p",3),i.YNc(8,cj,5,3,"a",4),i.YNc(9,dj,5,3,"a",5),i.YNc(10,uj,5,3,"a",6),i.YNc(11,hj,5,3,"a",7),i.YNc(12,fj,1,0,"mat-divider",2),i.YNc(13,mj,2,0,"p",3),i.YNc(14,pj,4,0,"a",6),i.qZA()()),2&e&&(i.xp6(2),i.Q6J("ngIf",!r.isLoggedIn||!r.isSuperAdmin),i.xp6(2),i.Q6J("ngIf",r.isLoggedIn&&!r.isSuperAdmin),i.xp6(1),i.Q6J("ngIf",r.isLoggedIn&&!r.isSuperAdmin),i.xp6(1),i.Q6J("ngIf",r.isLoggedIn),i.xp6(1),i.Q6J("ngIf",r.isSuperAdmin||r.isPartnerAdmin),i.xp6(1),i.Q6J("ngIf",!r.isLoggedIn),i.xp6(1),i.Q6J("ngIf",r.isLoggedIn&&r.isSuperAdmin),i.xp6(1),i.Q6J("ngIf",r.isLoggedIn&&r.isSuperAdmin),i.xp6(1),i.Q6J("ngIf",r.isLoggedIn&&r.isPartnerAdmin),i.xp6(1),i.Q6J("ngIf",r.isLoggedIn&&r.isSuperAdmin),i.xp6(1),i.Q6J("ngIf",r.isSuperAdmin),i.xp6(1),i.Q6J("ngIf",r.isLoggedIn&&r.isSuperAdmin))},dependencies:[Ft.rH,Hn.O5,Dt.Hw,jn.Hk,jn.Tg,jn.gs,cd.d,Ot.X$],styles:[".container[_ngcontent-%COMP%]{display:inline-block}.utilities[_ngcontent-%COMP%]{float:right}.mat-icon[_ngcontent-%COMP%]{padding-right:10px}"]}),t})();var _j=y(8029);function vj(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",13),i.NdJ("click",function(){i.CHM(e);const a=i.oxw(2);return i.KtG(a.passwordReset())}),i.TgZ(1,"mat-icon"),i._uU(2,"password"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i.qZA()}2&t&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"shared.resetPassword")," "))}function bj(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"button",13),i.NdJ("click",function(){i.CHM(e);const a=i.oxw(2);return i.KtG(a.onLogout())}),i.TgZ(1,"mat-icon"),i._uU(2,"logout"),i.qZA(),i._uU(3),i.ALo(4,"translate"),i.qZA()}2&t&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"shared.logout")," "))}function yj(t,n){if(1&t){const e=i.EpF();i.TgZ(0,"div",1)(1,"span",2),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",3)(5,"mat-icon"),i._uU(6,"account_circle"),i.qZA()(),i.TgZ(7,"mat-menu",null,4)(9,"button",5)(10,"mat-icon"),i._uU(11,"language"),i.qZA(),i._uU(12),i.ALo(13,"translate"),i.qZA(),i.TgZ(14,"button",6)(15,"mat-icon"),i._uU(16,"dark_mode"),i.qZA(),i._uU(17),i.ALo(18,"translate"),i.qZA(),i.YNc(19,vj,5,3,"button",7),i._UZ(20,"mat-divider"),i.YNc(21,bj,5,3,"button",7),i.qZA(),i.TgZ(22,"mat-menu",null,8)(24,"button",9),i.NdJ("click",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.changeLanguage("en-GB"))}),i.TgZ(25,"span"),i._UZ(26,"img",10),i.qZA(),i.TgZ(27,"span",11),i._uU(28),i.ALo(29,"translate"),i.qZA()(),i.TgZ(30,"button",9),i.NdJ("click",function(){i.CHM(e);const a=i.oxw();return i.KtG(a.changeLanguage("it-IT"))}),i.TgZ(31,"span"),i._UZ(32,"img",12),i.qZA(),i.TgZ(33,"span",11),i._uU(34),i.ALo(35,"translate"),i.qZA()()()()}if(2&t){const e=i.MAs(8),r=i.MAs(23),a=i.oxw();i.xp6(2),i.AsE("",i.lcZ(3,14,"shared.usermenu.salutation")," ",a.salutation,""),i.xp6(2),i.Q6J("matMenuTriggerFor",e),i.xp6(5),i.Q6J("matMenuTriggerFor",r),i.xp6(3),i.hij(" ",i.lcZ(13,16,"shared.usermenu.languages.title")," "),i.xp6(5),i.hij(" ",i.lcZ(18,18,"shared.usermenu.darkmode")," "),i.xp6(2),i.Q6J("ngIf",null==a.authData?null:a.authData.token),i.xp6(2),i.Q6J("ngIf",null==a.authData?null:a.authData.token),i.xp6(3),i.Q6J("ngClass","en-GB"===a.translate.currentLang?"active-mat-menu-button":"")("disabled","en-GB"===a.translate.currentLang),i.xp6(4),i.Oqu(i.lcZ(29,20,"shared.usermenu.languages.english")),i.xp6(2),i.Q6J("ngClass","it-IT"===a.translate.currentLang?"active-mat-menu-button":"")("disabled","it-IT"===a.translate.currentLang),i.xp6(4),i.Oqu(i.lcZ(35,22,"shared.usermenu.languages.italian"))}}let xj=(()=>{class t{constructor(e,r,a,o,l,u){if(this.translate=e,this.userService=r,this.authService=a,this.router=o,this.dialog=l,this.snackBar=u,this.salutation="",this.translate.setDefaultLang("en-GB"),localStorage.getItem("indaco-lang"))e.use(localStorage.getItem("indaco-lang"));else{let m="";m=e.getBrowserCultureLang(),"it"===m.substring(0,2).toLowerCase()?(localStorage.setItem("indaco-lang","it-IT"),e.use("it-IT")):(localStorage.setItem("indaco-lang","en-GB"),e.use("en-GB"))}this.authData=a.currentAuthData,a.currentAuth.subscribe(m=>{m&&(this.authData=m,this.greeting())})}ngOnInit(){this.greeting()}changeLanguage(e){localStorage.setItem("indaco-lang",e),this.translate.use(e)}passwordReset(){this.authData.userId&&this.userService.getUser(this.authData.userId).subscribe(e=>{this.dialog.open(_j.u,{maxWidth:"400px",data:{newPassword:null,passwordConfirm:null,oldPassword:null,isMyUser:!0}}).afterClosed().subscribe(r=>{r.newPassword&&r.passwordConfirm&&this.userService.resetPassword(e,r.newPassword,r.passwordConfirm,r.oldPassword).subscribe(a=>{console.log(a)},a=>{this.snackBar.open(a.message,"OK",{panelClass:["error-snackbar"],duration:3e3})})})})}greeting(){var e=this;return(0,wi.Z)(function*(){e.authData.userId&&e.userService.getUser(e.authData.userId).subscribe(r=>e.salutation=r.username)})()}onLogout(){console.log("Logging out"),this.authService.logout(),this.router.navigate(["/login"])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Ot.sK),i.Y36(Wp.f),i.Y36(ln.e8),i.Y36(Ft.F0),i.Y36(X.uw),i.Y36(Wa.ux))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-user-menu"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],["id","salutation"],["id","userSettings","mat-button","",3,"matMenuTriggerFor"],["settingsMenu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["disabled","","mat-menu-item",""],["mat-menu-item","",3,"click",4,"ngIf"],["languageMenu","matMenu"],["mat-menu-item","",3,"ngClass","disabled","click"],["src","assets/flags/en.svg",1,"flag"],[1,"mr-2"],["src","assets/flags/it.svg",1,"flag"],["mat-menu-item","",3,"click"]],template:function(e,r){1&e&&i.YNc(0,yj,36,24,"div",0),2&e&&i.Q6J("ngIf",null==r.authData?null:r.authData.token)},dependencies:[Hn.mk,Hn.O5,Ui.lW,Dt.Hw,yi.VK,yi.OP,yi.p6,cd.d,Ot.X$],styles:["[_nghost-%COMP%]{color:#fff}#salutation[_ngcontent-%COMP%]{font-size:.8em}.flag[_ngcontent-%COMP%]{width:20px;height:10px}"]}),t})(),wj=(()=>{class t{constructor(e,r){this.authService=e,this.translate=r,this.toggleControl=new A.p4(!1),this.className="",this.authData=e.currentAuthData,e.currentAuth.subscribe(a=>{a&&(this.authData=a)})}ngOnInit(){this.className="light-theme",this.toggleControl.valueChanges.subscribe(e=>{this.className=e?"dark-theme":"light-theme"})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ln.e8),i.Y36(Ot.sK))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-root"]],hostVars:2,hostBindings:function(e,r){2&e&&i.Tol(r.className)},decls:15,vars:1,consts:[["id","main-container",1,"container","mat-app-background"],["id","indaco-title","color","primary"],["src","assets/logo/indaco_logo.png","routerLink","/",1,"logo"],[1,"fill-space"],[1,"toggle-icon"],[3,"formControl"],[1,"navbar-container"],["mode","side","opened",""]],template:function(e,r){1&e&&(i.TgZ(0,"div",0)(1,"mat-toolbar",1),i._UZ(2,"img",2)(3,"span",3),i.TgZ(4,"mat-icon",4),i._uU(5,"brightness_5"),i.qZA(),i._UZ(6,"mat-slide-toggle",5),i.TgZ(7,"mat-icon",4),i._uU(8,"bedtime"),i.qZA(),i._UZ(9,"app-user-menu"),i.qZA(),i.TgZ(10,"mat-sidenav-container",6)(11,"mat-sidenav",7),i._UZ(12,"app-navbar"),i.qZA(),i.TgZ(13,"mat-sidenav-content"),i._UZ(14,"router-outlet"),i.qZA()()()),2&e&&(i.xp6(6),i.Q6J("formControl",r.toggleControl))},dependencies:[Ft.lC,Ft.rH,A.JJ,Dt.Hw,hs.JX,hs.TM,hs.Rh,Ro.Rr,ca.Ye,A.oH,gj,xj],styles:["mat-sidenav[_ngcontent-%COMP%]{width:250px}mat-toolbar[_ngcontent-%COMP%]{height:5%}mat-sidenav-container[_ngcontent-%COMP%]{height:95%}.container[_ngcontent-%COMP%]{height:100%;position:relative}.logo[_ngcontent-%COMP%]{position:absolute;height:5%;cursor:pointer}#search[_ngcontent-%COMP%]{max-width:200px}"]}),t})();var Cj=y(4466);let Dj=(()=>{class t{constructor(){}intercept(e,r){const a=localStorage.getItem("currentAuth");if(a){const l=JSON.parse(a)?.token;l&&(e=e.clone({setHeaders:{"x-access-token":l}}))}return r.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function Tj(t){return new Sn(t,"./assets/i18n/",".json")}let Ej=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t,bootstrap:[wj]}),t.\u0275inj=i.cJS({providers:[{provide:Xe.o2,useValue:{floatLabel:"auto",appearance:"outline"}},{provide:p.TP,useClass:Dj,multi:!0},{provide:Pr.Ad,useValue:"it-IT"},Hn.Nd],imports:[nj,Rt.VG,d.b2,kv,xE,A.u5,Tn,p.JF,Ui.ot,L,H.QW,I.p9,Lc.FA,Pr.XK,X.Is,oo.To,Se.Ad,Xe.lN,Dt.Ps,_n.c,yi.Tx,jn.ie,xi.TU,fr.Fk,Rr.LD,hs.SJ,Ro.rP,Ma.JX,za.T5,fi.p0,Co.Nh,sm.dp,ca.g0,Td.N6,Wa.ZX,Tl.Cq,xE,A.UX,Cj.m,Ot.aw.forRoot({loader:{provide:Ot.Zw,useFactory:Tj,deps:[p.eN]}})]}),t})();We.N.production&&(0,i.G48)(),d.q6().bootstrapModule(Ej).catch(t=>console.error(t))},4763:(vn,_t,y)=>{"use strict";y.d(_t,{dP:()=>Pe,re:()=>gt});var d=function(){return Object.create(null)},i=Array.prototype,A=i.forEach,p=i.slice,v=function(){function Re(we,ce){void 0===we&&(we=!0),void 0===ce&&(ce=d),this.weakness=we,this.makeData=ce}return Re.prototype.lookup=function(){for(var we=[],ce=0;ce<arguments.length;ce++)we[ce]=arguments[ce];return this.lookupArray(we)},Re.prototype.lookupArray=function(we){var ce=this;return A.call(we,function(ve){return ce=ce.getChildTrie(ve)}),ce.data||(ce.data=this.makeData(p.call(we)))},Re.prototype.getChildTrie=function(we){var ce=this.weakness&&function k(Re){switch(typeof Re){case"object":if(null===Re)break;case"function":return!0}return!1}(we)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),ve=ce.get(we);return ve||ce.set(we,ve=new Re(this.weakness,this.makeData)),ve},Re}(),f=y(23);function b(){}var W,J=function(){function Re(we,ce){void 0===we&&(we=1/0),void 0===ce&&(ce=b),this.max=we,this.dispose=ce,this.map=new Map,this.newest=null,this.oldest=null}return Re.prototype.has=function(we){return this.map.has(we)},Re.prototype.get=function(we){var ce=this.getNode(we);return ce&&ce.value},Re.prototype.getNode=function(we){var ce=this.map.get(we);if(ce&&ce!==this.newest){var ve=ce.older,se=ce.newer;se&&(se.older=ve),ve&&(ve.newer=se),ce.older=this.newest,ce.older.newer=ce,ce.newer=null,this.newest=ce,ce===this.oldest&&(this.oldest=se)}return ce},Re.prototype.set=function(we,ce){var ve=this.getNode(we);return ve?ve.value=ce:(ve={key:we,value:ce,newer:null,older:this.newest},this.newest&&(this.newest.newer=ve),this.newest=ve,this.oldest=this.oldest||ve,this.map.set(we,ve),ve.value)},Re.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},Re.prototype.delete=function(we){var ce=this.map.get(we);return!!ce&&(ce===this.newest&&(this.newest=ce.older),ce===this.oldest&&(this.oldest=ce.newer),ce.newer&&(ce.newer.older=ce.older),ce.older&&(ce.older.newer=ce.newer),this.map.delete(we),this.dispose(ce.value,we),!0)},Re}(),Y=new f.g7,B=Object.prototype.hasOwnProperty,Z=void 0===(W=Array.from)?function(Re){var we=[];return Re.forEach(function(ce){return we.push(ce)}),we}:W;function G(Re){var we=Re.unsubscribe;"function"==typeof we&&(Re.unsubscribe=void 0,we())}var ie=[],Ee=100;function ue(Re,we){if(!Re)throw new Error(we||"assertion failure")}function Qe(Re){switch(Re.length){case 0:throw new Error("unknown value");case 1:return Re[0];case 2:throw Re[1]}}var $e=function(){function Re(we){this.fn=we,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Re.count}return Re.prototype.peek=function(){if(1===this.value.length&&!me(this))return Ge(this),this.value[0]},Re.prototype.recompute=function(we){return ue(!this.recomputing,"already recomputing"),Ge(this),me(this)?function Ce(Re,we){return pt(Re),Y.withValue(Re,ke,[Re,we]),function Et(Re,we){if("function"==typeof Re.subscribe)try{G(Re),Re.unsubscribe=Re.subscribe.apply(null,we)}catch{return Re.setDirty(),!1}return!0}(Re,we)&&function re(Re){Re.dirty=!1,!me(Re)&&Oe(Re)}(Re),Qe(Re.value)}(this,we):Qe(this.value)},Re.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,ye(this),G(this))},Re.prototype.dispose=function(){var we=this;this.setDirty(),pt(this),Ae(this,function(ce,ve){ce.setDirty(),ft(ce,we)})},Re.prototype.forget=function(){this.dispose()},Re.prototype.dependOn=function(we){we.add(this),this.deps||(this.deps=ie.pop()||new Set),this.deps.add(we)},Re.prototype.forgetDeps=function(){var we=this;this.deps&&(Z(this.deps).forEach(function(ce){return ce.delete(we)}),this.deps.clear(),ie.push(this.deps),this.deps=null)},Re.count=0,Re}();function Ge(Re){var we=Y.getValue();if(we)return Re.parents.add(we),we.childValues.has(Re)||we.childValues.set(Re,[]),me(Re)?tt(we,Re):ot(we,Re),we}function ke(Re,we){Re.recomputing=!0,Re.value.length=0;try{Re.value[0]=Re.fn.apply(null,we)}catch(ce){Re.value[1]=ce}Re.recomputing=!1}function me(Re){return Re.dirty||!(!Re.dirtyChildren||!Re.dirtyChildren.size)}function ye(Re){Ae(Re,tt)}function Oe(Re){Ae(Re,ot)}function Ae(Re,we){var ce=Re.parents.size;if(ce)for(var ve=Z(Re.parents),se=0;se<ce;++se)we(ve[se],Re)}function tt(Re,we){ue(Re.childValues.has(we)),ue(me(we));var ce=!me(Re);if(Re.dirtyChildren){if(Re.dirtyChildren.has(we))return}else Re.dirtyChildren=ie.pop()||new Set;Re.dirtyChildren.add(we),ce&&ye(Re)}function ot(Re,we){ue(Re.childValues.has(we)),ue(!me(we));var ce=Re.childValues.get(we);0===ce.length?Re.childValues.set(we,function vt(Re){return Re.slice(0)}(we.value)):function Ze(Re,we){var ce=Re.length;return ce>0&&ce===we.length&&Re[ce-1]===we[ce-1]}(ce,we.value)||Re.setDirty(),at(Re,we),!me(Re)&&Oe(Re)}function at(Re,we){var ce=Re.dirtyChildren;ce&&(ce.delete(we),0===ce.size&&(ie.length<Ee&&ie.push(ce),Re.dirtyChildren=null))}function pt(Re){Re.childValues.size>0&&Re.childValues.forEach(function(we,ce){ft(Re,ce)}),Re.forgetDeps(),ue(null===Re.dirtyChildren)}function ft(Re,we){we.parents.delete(Re),Re.childValues.delete(we),at(Re,we)}var be={setDirty:!0,dispose:!0,forget:!0};function Pe(Re){var we=new Map,ce=Re&&Re.subscribe;function ve(se){var S=Y.getValue();if(S){var F=we.get(se);F||we.set(se,F=new Set),S.dependOn(F),"function"==typeof ce&&(G(F),F.unsubscribe=ce(se))}}return ve.dirty=function(S,F){var V=we.get(S);if(V){var ne=F&&B.call(be,F)?F:"setDirty";Z(V).forEach(function(De){return De[ne]()}),we.delete(S),G(V)}},ve}function je(){var Re=new v("function"==typeof WeakMap);return function(){return Re.lookupArray(arguments)}}je();var et=new Set;function gt(Re,we){void 0===we&&(we=Object.create(null));var ce=new J(we.max||Math.pow(2,16),function(De){return De.dispose()}),ve=we.keyArgs,se=we.makeCacheKey||je(),S=function(){var De=se.apply(null,ve?ve.apply(null,arguments):arguments);if(void 0===De)return Re.apply(null,arguments);var wt=ce.get(De);wt||(ce.set(De,wt=new $e(Re)),wt.subscribe=we.subscribe,wt.forget=function(){return ce.delete(De)});var nn=wt.recompute(Array.prototype.slice.call(arguments));return ce.set(De,wt),et.add(ce),Y.hasValue()||(et.forEach(function(Jt){return Jt.clean()}),et.clear()),nn};function F(De){var wt=ce.get(De);wt&&wt.setDirty()}function V(De){var wt=ce.get(De);if(wt)return wt.peek()}function ne(De){return ce.delete(De)}return Object.defineProperty(S,"size",{get:function(){return ce.map.size},configurable:!1,enumerable:!1}),S.dirtyKey=F,S.dirty=function(){F(se.apply(null,arguments))},S.peekKey=V,S.peek=function(){return V(se.apply(null,arguments))},S.forgetKey=ne,S.forget=function(){return ne(se.apply(null,arguments))},S.makeCacheKey=se,S.getKey=ve?function(){return se.apply(null,ve.apply(null,arguments))}:se,Object.freeze(S)}},6438:(vn,_t,y)=>{"use strict";y.d(_t,{X:()=>A});var d=y(8929),i=y(5279);class A extends d.xQ{constructor(v){super(),this._value=v}get value(){return this.getValue()}_subscribe(v){const k=super._subscribe(v);return k&&!k.closed&&v.next(this._value),k}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.N;return this._value}next(v){super.next(this._value=v)}}},9312:(vn,_t,y)=>{"use strict";y.d(_t,{P:()=>v});var d=y(8896),i=y(1086),A=y(1737);class v{constructor(f,b,J){this.kind=f,this.value=b,this.error=J,this.hasValue="N"===f}observe(f){switch(this.kind){case"N":return f.next&&f.next(this.value);case"E":return f.error&&f.error(this.error);case"C":return f.complete&&f.complete()}}do(f,b,J){switch(this.kind){case"N":return f&&f(this.value);case"E":return b&&b(this.error);case"C":return J&&J()}}accept(f,b,J){return f&&"function"==typeof f.next?this.observe(f):this.do(f,b,J)}toObservable(){switch(this.kind){case"N":return(0,i.of)(this.value);case"E":return(0,A._)(this.error);case"C":return(0,d.c)()}throw new Error("unexpected notification kind value")}static createNext(f){return typeof f<"u"?new v("N",f):v.undefinedValueNotification}static createError(f){return new v("E",void 0,f)}static createComplete(){return v.completeNotification}}v.completeNotification=new v("C"),v.undefinedValueNotification=new v("N",void 0)},6498:(vn,_t,y)=>{"use strict";y.d(_t,{y:()=>J});var d=y(3489),A=y(7668),p=y(3292),k=y(3821),f=y(4843),b=y(2830);let J=(()=>{class W{constructor(Z){this._isScalar=!1,Z&&(this._subscribe=Z)}lift(Z){const G=new W;return G.source=this,G.operator=Z,G}subscribe(Z,G,ie){const{operator:Ee}=this,ue=function v(W,B,Z){if(W){if(W instanceof d.L)return W;if(W[A.b])return W[A.b]()}return W||B||Z?new d.L(W,B,Z):new d.L(p.c)}(Z,G,ie);if(ue.add(Ee?Ee.call(ue,this.source):this.source||b.v.useDeprecatedSynchronousErrorHandling&&!ue.syncErrorThrowable?this._subscribe(ue):this._trySubscribe(ue)),b.v.useDeprecatedSynchronousErrorHandling&&ue.syncErrorThrowable&&(ue.syncErrorThrowable=!1,ue.syncErrorThrown))throw ue.syncErrorValue;return ue}_trySubscribe(Z){try{return this._subscribe(Z)}catch(G){b.v.useDeprecatedSynchronousErrorHandling&&(Z.syncErrorThrown=!0,Z.syncErrorValue=G),function i(W){for(;W;){const{closed:B,destination:Z,isStopped:G}=W;if(B||G)return!1;W=Z&&Z instanceof d.L?Z:null}return!0}(Z)?Z.error(G):console.warn(G)}}forEach(Z,G){return new(G=Y(G))((ie,Ee)=>{let ue;ue=this.subscribe(Ze=>{try{Z(Ze)}catch(Qe){Ee(Qe),ue&&ue.unsubscribe()}},Ee,ie)})}_subscribe(Z){const{source:G}=this;return G&&G.subscribe(Z)}[k.L](){return this}pipe(...Z){return 0===Z.length?this:(0,f.U)(Z)(this)}toPromise(Z){return new(Z=Y(Z))((G,ie)=>{let Ee;this.subscribe(ue=>Ee=ue,ue=>ie(ue),()=>G(Ee))})}}return W.create=B=>new W(B),W})();function Y(W){if(W||(W=b.v.Promise||Promise),!W)throw new Error("no Promise impl found");return W}},3292:(vn,_t,y)=>{"use strict";y.d(_t,{c:()=>A});var d=y(2830),i=y(2782);const A={closed:!0,next(p){},error(p){if(d.v.useDeprecatedSynchronousErrorHandling)throw p;(0,i.z)(p)},complete(){}}},8929:(vn,_t,y)=>{"use strict";y.d(_t,{Yc:()=>f,xQ:()=>b});var d=y(6498),i=y(3489),A=y(2654),p=y(5279),v=y(5283),k=y(7668);class f extends i.L{constructor(W){super(W),this.destination=W}}let b=(()=>{class Y extends d.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[k.b](){return new f(this)}lift(B){const Z=new J(this,this);return Z.operator=B,Z}next(B){if(this.closed)throw new p.N;if(!this.isStopped){const{observers:Z}=this,G=Z.length,ie=Z.slice();for(let Ee=0;Ee<G;Ee++)ie[Ee].next(B)}}error(B){if(this.closed)throw new p.N;this.hasError=!0,this.thrownError=B,this.isStopped=!0;const{observers:Z}=this,G=Z.length,ie=Z.slice();for(let Ee=0;Ee<G;Ee++)ie[Ee].error(B);this.observers.length=0}complete(){if(this.closed)throw new p.N;this.isStopped=!0;const{observers:B}=this,Z=B.length,G=B.slice();for(let ie=0;ie<Z;ie++)G[ie].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(B){if(this.closed)throw new p.N;return super._trySubscribe(B)}_subscribe(B){if(this.closed)throw new p.N;return this.hasError?(B.error(this.thrownError),A.w.EMPTY):this.isStopped?(B.complete(),A.w.EMPTY):(this.observers.push(B),new v.W(this,B))}asObservable(){const B=new d.y;return B.source=this,B}}return Y.create=(W,B)=>new J(W,B),Y})();class J extends b{constructor(W,B){super(),this.destination=W,this.source=B}next(W){const{destination:B}=this;B&&B.next&&B.next(W)}error(W){const{destination:B}=this;B&&B.error&&this.destination.error(W)}complete(){const{destination:W}=this;W&&W.complete&&this.destination.complete()}_subscribe(W){const{source:B}=this;return B?this.source.subscribe(W):A.w.EMPTY}}},5283:(vn,_t,y)=>{"use strict";y.d(_t,{W:()=>i});var d=y(2654);class i extends d.w{constructor(p,v){super(),this.subject=p,this.subscriber=v,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const p=this.subject,v=p.observers;if(this.subject=null,!v||0===v.length||p.isStopped||p.closed)return;const k=v.indexOf(this.subscriber);-1!==k&&v.splice(k,1)}}},3489:(vn,_t,y)=>{"use strict";y.d(_t,{L:()=>f});var d=y(7043),i=y(3292),A=y(2654),p=y(7668),v=y(2830),k=y(2782);class f extends A.w{constructor(Y,W,B){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.c;break;case 1:if(!Y){this.destination=i.c;break}if("object"==typeof Y){Y instanceof f?(this.syncErrorThrowable=Y.syncErrorThrowable,this.destination=Y,Y.add(this)):(this.syncErrorThrowable=!0,this.destination=new b(this,Y));break}default:this.syncErrorThrowable=!0,this.destination=new b(this,Y,W,B)}}[p.b](){return this}static create(Y,W,B){const Z=new f(Y,W,B);return Z.syncErrorThrowable=!1,Z}next(Y){this.isStopped||this._next(Y)}error(Y){this.isStopped||(this.isStopped=!0,this._error(Y))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(Y){this.destination.next(Y)}_error(Y){this.destination.error(Y),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:Y}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=Y,this}}class b extends f{constructor(Y,W,B,Z){super(),this._parentSubscriber=Y;let G,ie=this;(0,d.m)(W)?G=W:W&&(G=W.next,B=W.error,Z=W.complete,W!==i.c&&(ie=Object.create(W),(0,d.m)(ie.unsubscribe)&&this.add(ie.unsubscribe.bind(ie)),ie.unsubscribe=this.unsubscribe.bind(this))),this._context=ie,this._next=G,this._error=B,this._complete=Z}next(Y){if(!this.isStopped&&this._next){const{_parentSubscriber:W}=this;v.v.useDeprecatedSynchronousErrorHandling&&W.syncErrorThrowable?this.__tryOrSetError(W,this._next,Y)&&this.unsubscribe():this.__tryOrUnsub(this._next,Y)}}error(Y){if(!this.isStopped){const{_parentSubscriber:W}=this,{useDeprecatedSynchronousErrorHandling:B}=v.v;if(this._error)B&&W.syncErrorThrowable?(this.__tryOrSetError(W,this._error,Y),this.unsubscribe()):(this.__tryOrUnsub(this._error,Y),this.unsubscribe());else if(W.syncErrorThrowable)B?(W.syncErrorValue=Y,W.syncErrorThrown=!0):(0,k.z)(Y),this.unsubscribe();else{if(this.unsubscribe(),B)throw Y;(0,k.z)(Y)}}}complete(){if(!this.isStopped){const{_parentSubscriber:Y}=this;if(this._complete){const W=()=>this._complete.call(this._context);v.v.useDeprecatedSynchronousErrorHandling&&Y.syncErrorThrowable?(this.__tryOrSetError(Y,W),this.unsubscribe()):(this.__tryOrUnsub(W),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(Y,W){try{Y.call(this._context,W)}catch(B){if(this.unsubscribe(),v.v.useDeprecatedSynchronousErrorHandling)throw B;(0,k.z)(B)}}__tryOrSetError(Y,W,B){if(!v.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{W.call(this._context,B)}catch(Z){return v.v.useDeprecatedSynchronousErrorHandling?(Y.syncErrorValue=Z,Y.syncErrorThrown=!0,!0):((0,k.z)(Z),!0)}return!1}_unsubscribe(){const{_parentSubscriber:Y}=this;this._context=null,this._parentSubscriber=null,Y.unsubscribe()}}},2654:(vn,_t,y)=>{"use strict";y.d(_t,{w:()=>k});var d=y(6688),i=y(7830),A=y(7043);const v=(()=>{function b(J){return Error.call(this),this.message=J?`${J.length} errors occurred during unsubscription:\n${J.map((Y,W)=>`${W+1}) ${Y.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=J,this}return b.prototype=Object.create(Error.prototype),b})();class k{constructor(J){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,J&&(this._ctorUnsubscribe=!0,this._unsubscribe=J)}unsubscribe(){let J;if(this.closed)return;let{_parentOrParents:Y,_ctorUnsubscribe:W,_unsubscribe:B,_subscriptions:Z}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,Y instanceof k)Y.remove(this);else if(null!==Y)for(let G=0;G<Y.length;++G)Y[G].remove(this);if((0,A.m)(B)){W&&(this._unsubscribe=void 0);try{B.call(this)}catch(G){J=G instanceof v?f(G.errors):[G]}}if((0,d.k)(Z)){let G=-1,ie=Z.length;for(;++G<ie;){const Ee=Z[G];if((0,i.K)(Ee))try{Ee.unsubscribe()}catch(ue){J=J||[],ue instanceof v?J=J.concat(f(ue.errors)):J.push(ue)}}}if(J)throw new v(J)}add(J){let Y=J;if(!J)return k.EMPTY;switch(typeof J){case"function":Y=new k(J);case"object":if(Y===this||Y.closed||"function"!=typeof Y.unsubscribe)return Y;if(this.closed)return Y.unsubscribe(),Y;if(!(Y instanceof k)){const Z=Y;Y=new k,Y._subscriptions=[Z]}break;default:throw new Error("unrecognized teardown "+J+" added to Subscription.")}let{_parentOrParents:W}=Y;if(null===W)Y._parentOrParents=this;else if(W instanceof k){if(W===this)return Y;Y._parentOrParents=[W,this]}else{if(-1!==W.indexOf(this))return Y;W.push(this)}const B=this._subscriptions;return null===B?this._subscriptions=[Y]:B.push(Y),Y}remove(J){const Y=this._subscriptions;if(Y){const W=Y.indexOf(J);-1!==W&&Y.splice(W,1)}}}var b;function f(b){return b.reduce((J,Y)=>J.concat(Y instanceof v?Y.errors:Y),[])}k.EMPTY=((b=new k).closed=!0,b)},2830:(vn,_t,y)=>{"use strict";y.d(_t,{v:()=>i});let d=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(A){if(A){const p=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+p.stack)}else d&&console.log("RxJS: Back to a better error behavior. Thank you. <3");d=A},get useDeprecatedSynchronousErrorHandling(){return d}}},1177:(vn,_t,y)=>{"use strict";y.d(_t,{Ds:()=>k,IY:()=>p,ft:()=>b});var d=y(3489),i=y(6498),A=y(9249);class p extends d.L{constructor(Y){super(),this.parent=Y}_next(Y){this.parent.notifyNext(Y)}_error(Y){this.parent.notifyError(Y),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class k extends d.L{notifyNext(Y){this.destination.next(Y)}notifyError(Y){this.destination.error(Y)}notifyComplete(){this.destination.complete()}}function b(J,Y){if(Y.closed)return;if(J instanceof i.y)return J.subscribe(Y);let W;try{W=(0,A.s)(J)(Y)}catch(B){Y.error(B)}return W}},1762:(vn,_t,y)=>{"use strict";y.d(_t,{N:()=>k,c:()=>v});var d=y(8929),i=y(6498),A=y(2654),p=y(4327);class v extends i.y{constructor(W,B){super(),this.source=W,this.subjectFactory=B,this._refCount=0,this._isComplete=!1}_subscribe(W){return this.getSubject().subscribe(W)}getSubject(){const W=this._subject;return(!W||W.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let W=this._connection;return W||(this._isComplete=!1,W=this._connection=new A.w,W.add(this.source.subscribe(new f(this.getSubject(),this))),W.closed&&(this._connection=null,W=A.w.EMPTY)),W}refCount(){return(0,p.x)()(this)}}const k=(()=>{const Y=v.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Y._subscribe},_isComplete:{value:Y._isComplete,writable:!0},getSubject:{value:Y.getSubject},connect:{value:Y.connect},refCount:{value:Y.refCount}}})();class f extends d.Yc{constructor(W,B){super(W),this.connectable=B}_error(W){this._unsubscribe(),super._error(W)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const W=this.connectable;if(W){this.connectable=null;const B=W._connection;W._refCount=0,W._subject=null,W._connection=null,B&&B.unsubscribe()}}}},3426:(vn,_t,y)=>{"use strict";y.d(_t,{aj:()=>W});var d=y(2866),i=y(6688),A=y(3489);class p extends A.L{notifyNext(ie,Ee,ue,Ze,Qe){this.destination.next(Ee)}notifyError(ie,Ee){this.destination.error(ie)}notifyComplete(ie){this.destination.complete()}}class v extends A.L{constructor(ie,Ee,ue){super(),this.parent=ie,this.outerValue=Ee,this.outerIndex=ue,this.index=0}_next(ie){this.parent.notifyNext(this.outerValue,ie,this.outerIndex,this.index++,this)}_error(ie){this.parent.notifyError(ie,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var k=y(9249),f=y(6498);function b(G,ie,Ee,ue,Ze=new v(G,Ee,ue)){if(!Ze.closed)return ie instanceof f.y?ie.subscribe(Ze):(0,k.s)(ie)(Ze)}var J=y(3009);const Y={};function W(...G){let ie,Ee;return(0,d.K)(G[G.length-1])&&(Ee=G.pop()),"function"==typeof G[G.length-1]&&(ie=G.pop()),1===G.length&&(0,i.k)(G[0])&&(G=G[0]),(0,J.n)(G,Ee).lift(new B(ie))}class B{constructor(ie){this.resultSelector=ie}call(ie,Ee){return Ee.subscribe(new Z(ie,this.resultSelector))}}class Z extends p{constructor(ie,Ee){super(ie),this.resultSelector=Ee,this.active=0,this.values=[],this.observables=[]}_next(ie){this.values.push(Y),this.observables.push(ie)}_complete(){const ie=this.observables,Ee=ie.length;if(0===Ee)this.destination.complete();else{this.active=Ee,this.toRespond=Ee;for(let ue=0;ue<Ee;ue++)this.add(b(this,ie[ue],void 0,ue))}}notifyComplete(ie){0==(this.active-=1)&&this.destination.complete()}notifyNext(ie,Ee,ue){const Ze=this.values,vt=this.toRespond?Ze[ue]===Y?--this.toRespond:this.toRespond:0;Ze[ue]=Ee,0===vt&&(this.resultSelector?this._tryResultSelector(Ze):this.destination.next(Ze.slice()))}_tryResultSelector(ie){let Ee;try{Ee=this.resultSelector.apply(this,ie)}catch(ue){return void this.destination.error(ue)}this.destination.next(Ee)}}},1221:(vn,_t,y)=>{"use strict";y.d(_t,{z:()=>p});var d=y(1086),i=y(9146);function p(...v){return function A(){return(0,i.J)(1)}()((0,d.of)(...v))}},8514:(vn,_t,y)=>{"use strict";y.d(_t,{P:()=>p});var d=y(6498),i=y(5254),A=y(8896);function p(v){return new d.y(k=>{let f;try{f=v()}catch(J){return void k.error(J)}return(f?(0,i.D)(f):(0,A.c)()).subscribe(k)})}},8896:(vn,_t,y)=>{"use strict";y.d(_t,{E:()=>i,c:()=>A});var d=y(6498);const i=new d.y(v=>v.complete());function A(v){return v?function p(v){return new d.y(k=>v.schedule(()=>k.complete()))}(v):i}},567:(vn,_t,y)=>{"use strict";y.d(_t,{D:()=>k});var d=y(6498),i=y(6688),A=y(4850),p=y(7830),v=y(5254);function k(...b){if(1===b.length){const J=b[0];if((0,i.k)(J))return f(J,null);if((0,p.K)(J)&&Object.getPrototypeOf(J)===Object.prototype){const Y=Object.keys(J);return f(Y.map(W=>J[W]),Y)}}if("function"==typeof b[b.length-1]){const J=b.pop();return f(b=1===b.length&&(0,i.k)(b[0])?b[0]:b,null).pipe((0,A.U)(Y=>J(...Y)))}return f(b,null)}function f(b,J){return new d.y(Y=>{const W=b.length;if(0===W)return void Y.complete();const B=new Array(W);let Z=0,G=0;for(let ie=0;ie<W;ie++){const Ee=(0,v.D)(b[ie]);let ue=!1;Y.add(Ee.subscribe({next:Ze=>{ue||(ue=!0,G++),B[ie]=Ze},error:Ze=>Y.error(Ze),complete:()=>{Z++,(Z===W||!ue)&&(G===W&&Y.next(J?J.reduce((Ze,Qe,vt)=>(Ze[Qe]=B[vt],Ze),{}):B),Y.complete())}}))}})}},5254:(vn,_t,y)=>{"use strict";y.d(_t,{D:()=>ie});var d=y(6498),i=y(9249),A=y(2654),p=y(3821),f=y(6454),b=y(5430),W=y(8955),B=y(8515);function ie(Ee,ue){return ue?function G(Ee,ue){if(null!=Ee){if(function Y(Ee){return Ee&&"function"==typeof Ee[p.L]}(Ee))return function v(Ee,ue){return new d.y(Ze=>{const Qe=new A.w;return Qe.add(ue.schedule(()=>{const vt=Ee[p.L]();Qe.add(vt.subscribe({next($e){Qe.add(ue.schedule(()=>Ze.next($e)))},error($e){Qe.add(ue.schedule(()=>Ze.error($e)))},complete(){Qe.add(ue.schedule(()=>Ze.complete()))}}))})),Qe})}(Ee,ue);if((0,W.t)(Ee))return function k(Ee,ue){return new d.y(Ze=>{const Qe=new A.w;return Qe.add(ue.schedule(()=>Ee.then(vt=>{Qe.add(ue.schedule(()=>{Ze.next(vt),Qe.add(ue.schedule(()=>Ze.complete()))}))},vt=>{Qe.add(ue.schedule(()=>Ze.error(vt)))}))),Qe})}(Ee,ue);if((0,B.z)(Ee))return(0,f.r)(Ee,ue);if(function Z(Ee){return Ee&&"function"==typeof Ee[b.hZ]}(Ee)||"string"==typeof Ee)return function J(Ee,ue){if(!Ee)throw new Error("Iterable cannot be null");return new d.y(Ze=>{const Qe=new A.w;let vt;return Qe.add(()=>{vt&&"function"==typeof vt.return&&vt.return()}),Qe.add(ue.schedule(()=>{vt=Ee[b.hZ](),Qe.add(ue.schedule(function(){if(Ze.closed)return;let $e,Ge;try{const Ce=vt.next();$e=Ce.value,Ge=Ce.done}catch(Ce){return void Ze.error(Ce)}Ge?Ze.complete():(Ze.next($e),this.schedule())}))})),Qe})}(Ee,ue)}throw new TypeError((null!==Ee&&typeof Ee||Ee)+" is not observable")}(Ee,ue):Ee instanceof d.y?Ee:new d.y((0,i.s)(Ee))}},3009:(vn,_t,y)=>{"use strict";y.d(_t,{n:()=>p});var d=y(6498),i=y(3650),A=y(6454);function p(v,k){return k?(0,A.r)(v,k):new d.y((0,i.V)(v))}},3753:(vn,_t,y)=>{"use strict";y.d(_t,{R:()=>k});var d=y(6498),i=y(6688),A=y(7043),p=y(4850);function k(W,B,Z,G){return(0,A.m)(Z)&&(G=Z,Z=void 0),G?k(W,B,Z).pipe((0,p.U)(ie=>(0,i.k)(ie)?G(...ie):G(ie))):new d.y(ie=>{f(W,B,function Ee(ue){ie.next(arguments.length>1?Array.prototype.slice.call(arguments):ue)},ie,Z)})}function f(W,B,Z,G,ie){let Ee;if(function Y(W){return W&&"function"==typeof W.addEventListener&&"function"==typeof W.removeEventListener}(W)){const ue=W;W.addEventListener(B,Z,ie),Ee=()=>ue.removeEventListener(B,Z,ie)}else if(function J(W){return W&&"function"==typeof W.on&&"function"==typeof W.off}(W)){const ue=W;W.on(B,Z),Ee=()=>ue.off(B,Z)}else if(function b(W){return W&&"function"==typeof W.addListener&&"function"==typeof W.removeListener}(W)){const ue=W;W.addListener(B,Z),Ee=()=>ue.removeListener(B,Z)}else{if(!W||!W.length)throw new TypeError("Invalid event target");for(let ue=0,Ze=W.length;ue<Ze;ue++)f(W[ue],B,Z,G,ie)}G.add(Ee)}},6787:(vn,_t,y)=>{"use strict";y.d(_t,{T:()=>v});var d=y(6498),i=y(2866),A=y(9146),p=y(3009);function v(...k){let f=Number.POSITIVE_INFINITY,b=null,J=k[k.length-1];return(0,i.K)(J)?(b=k.pop(),k.length>1&&"number"==typeof k[k.length-1]&&(f=k.pop())):"number"==typeof J&&(f=k.pop()),null===b&&1===k.length&&k[0]instanceof d.y?k[0]:(0,A.J)(f)((0,p.n)(k,b))}},1086:(vn,_t,y)=>{"use strict";y.d(_t,{of:()=>p});var d=y(2866),i=y(3009),A=y(6454);function p(...v){let k=v[v.length-1];return(0,d.K)(k)?(v.pop(),(0,A.r)(v,k)):(0,i.n)(v)}},1737:(vn,_t,y)=>{"use strict";y.d(_t,{_:()=>i});var d=y(6498);function i(p,v){return new d.y(v?k=>v.schedule(A,0,{error:p,subscriber:k}):k=>k.error(p))}function A({error:p,subscriber:v}){v.error(p)}},8723:(vn,_t,y)=>{"use strict";y.d(_t,{H:()=>v});var d=y(6498),i=y(353),A=y(4241),p=y(2866);function v(f=0,b,J){let Y=-1;return(0,A.k)(b)?Y=Number(b)<1?1:Number(b):(0,p.K)(b)&&(J=b),(0,p.K)(J)||(J=i.P),new d.y(W=>{const B=(0,A.k)(f)?f:+f-J.now();return J.schedule(k,B,{index:0,period:Y,subscriber:W})})}function k(f){const{index:b,period:J,subscriber:Y}=f;if(Y.next(b),!Y.closed){if(-1===J)return Y.complete();f.index=b+1,this.schedule(f,J)}}},7221:(vn,_t,y)=>{"use strict";y.d(_t,{K:()=>i});var d=y(1177);function i(v){return function(f){const b=new A(v),J=f.lift(b);return b.caught=J}}class A{constructor(k){this.selector=k}call(k,f){return f.subscribe(new p(k,this.selector,this.caught))}}class p extends d.Ds{constructor(k,f,b){super(k),this.selector=f,this.caught=b}error(k){if(!this.isStopped){let f;try{f=this.selector(k,this.caught)}catch(Y){return void super.error(Y)}this._unsubscribeAndRecycle();const b=new d.IY(this);this.add(b);const J=(0,d.ft)(f,b);J!==b&&this.add(J)}}}},1406:(vn,_t,y)=>{"use strict";y.d(_t,{b:()=>i});var d=y(1709);function i(A,p){return(0,d.zg)(A,p,1)}},13:(vn,_t,y)=>{"use strict";y.d(_t,{b:()=>A});var d=y(3489),i=y(353);function A(f,b=i.P){return J=>J.lift(new p(f,b))}class p{constructor(b,J){this.dueTime=b,this.scheduler=J}call(b,J){return J.subscribe(new v(b,this.dueTime,this.scheduler))}}class v extends d.L{constructor(b,J,Y){super(b),this.dueTime=J,this.scheduler=Y,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(b){this.clearDebounce(),this.lastValue=b,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(k,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:b}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(b)}}clearDebounce(){const b=this.debouncedSubscription;null!==b&&(this.remove(b),b.unsubscribe(),this.debouncedSubscription=null)}}function k(f){f.debouncedNext()}},5778:(vn,_t,y)=>{"use strict";y.d(_t,{x:()=>i});var d=y(3489);function i(v,k){return f=>f.lift(new A(v,k))}class A{constructor(k,f){this.compare=k,this.keySelector=f}call(k,f){return f.subscribe(new p(k,this.compare,this.keySelector))}}class p extends d.L{constructor(k,f,b){super(k),this.keySelector=b,this.hasKey=!1,"function"==typeof f&&(this.compare=f)}compare(k,f){return k===f}_next(k){let f;try{const{keySelector:J}=this;f=J?J(k):k}catch(J){return this.destination.error(J)}let b=!1;if(this.hasKey)try{const{compare:J}=this;b=J(this.key,f)}catch(J){return this.destination.error(J)}else this.hasKey=!0;b||(this.key=f,this.destination.next(k))}}},2198:(vn,_t,y)=>{"use strict";y.d(_t,{h:()=>i});var d=y(3489);function i(v,k){return function(b){return b.lift(new A(v,k))}}class A{constructor(k,f){this.predicate=k,this.thisArg=f}call(k,f){return f.subscribe(new p(k,this.predicate,this.thisArg))}}class p extends d.L{constructor(k,f,b){super(k),this.predicate=f,this.thisArg=b,this.count=0}_next(k){let f;try{f=this.predicate.call(this.thisArg,k,this.count++)}catch(b){return void this.destination.error(b)}f&&this.destination.next(k)}}},537:(vn,_t,y)=>{"use strict";y.d(_t,{x:()=>A});var d=y(3489),i=y(2654);function A(k){return f=>f.lift(new p(k))}class p{constructor(f){this.callback=f}call(f,b){return b.subscribe(new v(f,this.callback))}}class v extends d.L{constructor(f,b){super(f),this.add(new i.w(b))}}},4850:(vn,_t,y)=>{"use strict";y.d(_t,{U:()=>i});var d=y(3489);function i(v,k){return function(b){if("function"!=typeof v)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return b.lift(new A(v,k))}}class A{constructor(k,f){this.project=k,this.thisArg=f}call(k,f){return f.subscribe(new p(k,this.project,this.thisArg))}}class p extends d.L{constructor(k,f,b){super(k),this.project=f,this.count=0,this.thisArg=b||this}_next(k){let f;try{f=this.project.call(this.thisArg,k,this.count++)}catch(b){return void this.destination.error(b)}this.destination.next(f)}}},7604:(vn,_t,y)=>{"use strict";y.d(_t,{h:()=>i});var d=y(3489);function i(v){return k=>k.lift(new A(v))}class A{constructor(k){this.value=k}call(k,f){return f.subscribe(new p(k,this.value))}}class p extends d.L{constructor(k,f){super(k),this.value=f}_next(k){this.destination.next(this.value)}}},9146:(vn,_t,y)=>{"use strict";y.d(_t,{J:()=>A});var d=y(1709),i=y(5379);function A(p=Number.POSITIVE_INFINITY){return(0,d.zg)(i.y,p)}},1709:(vn,_t,y)=>{"use strict";y.d(_t,{zg:()=>p});var d=y(4850),i=y(5254),A=y(1177);function p(b,J,Y=Number.POSITIVE_INFINITY){return"function"==typeof J?W=>W.pipe(p((B,Z)=>(0,i.D)(b(B,Z)).pipe((0,d.U)((G,ie)=>J(B,G,Z,ie))),Y)):("number"==typeof J&&(Y=J),W=>W.lift(new v(b,Y)))}class v{constructor(J,Y=Number.POSITIVE_INFINITY){this.project=J,this.concurrent=Y}call(J,Y){return Y.subscribe(new k(J,this.project,this.concurrent))}}class k extends A.Ds{constructor(J,Y,W=Number.POSITIVE_INFINITY){super(J),this.project=Y,this.concurrent=W,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(J){this.active<this.concurrent?this._tryNext(J):this.buffer.push(J)}_tryNext(J){let Y;const W=this.index++;try{Y=this.project(J,W)}catch(B){return void this.destination.error(B)}this.active++,this._innerSub(Y)}_innerSub(J){const Y=new A.IY(this),W=this.destination;W.add(Y);const B=(0,A.ft)(J,Y);B!==Y&&W.add(B)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(J){this.destination.next(J)}notifyComplete(){const J=this.buffer;this.active--,J.length>0?this._next(J.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},7770:(vn,_t,y)=>{"use strict";y.d(_t,{QV:()=>A,ht:()=>v});var d=y(3489),i=y(9312);function A(f,b=0){return function(Y){return Y.lift(new p(f,b))}}class p{constructor(b,J=0){this.scheduler=b,this.delay=J}call(b,J){return J.subscribe(new v(b,this.scheduler,this.delay))}}class v extends d.L{constructor(b,J,Y=0){super(b),this.scheduler=J,this.delay=Y}static dispatch(b){const{notification:J,destination:Y}=b;J.observe(Y),this.unsubscribe()}scheduleMessage(b){this.destination.add(this.scheduler.schedule(v.dispatch,this.delay,new k(b,this.destination)))}_next(b){this.scheduleMessage(i.P.createNext(b))}_error(b){this.scheduleMessage(i.P.createError(b)),this.unsubscribe()}_complete(){this.scheduleMessage(i.P.createComplete()),this.unsubscribe()}}class k{constructor(b,J){this.notification=b,this.destination=J}}},4327:(vn,_t,y)=>{"use strict";y.d(_t,{x:()=>i});var d=y(3489);function i(){return function(k){return k.lift(new A(k))}}class A{constructor(k){this.connectable=k}call(k,f){const{connectable:b}=this;b._refCount++;const J=new p(k,b),Y=f.subscribe(J);return J.closed||(J.connection=b.connect()),Y}}class p extends d.L{constructor(k,f){super(k),this.connectable=f}_unsubscribe(){const{connectable:k}=this;if(!k)return void(this.connection=null);this.connectable=null;const f=k._refCount;if(f<=0)return void(this.connection=null);if(k._refCount=f-1,f>1)return void(this.connection=null);const{connection:b}=this,J=k._connection;this.connection=null,J&&(!b||J===b)&&J.unsubscribe()}}},2474:(vn,_t,y)=>{"use strict";y.d(_t,{B:()=>f});var d=y(1762);class A{constructor(J,Y){this.subjectFactory=J,this.selector=Y}call(J,Y){const{selector:W}=this,B=this.subjectFactory(),Z=W(B).subscribe(J);return Z.add(Y.subscribe(B)),Z}}var p=y(4327),v=y(8929);function k(){return new v.xQ}function f(){return b=>(0,p.x)()(function i(b,J){return function(W){let B;if(B="function"==typeof b?b:function(){return b},"function"==typeof J)return W.lift(new A(B,J));const Z=Object.create(W,d.N);return Z.source=W,Z.subjectFactory=B,Z}}(k)(b))}},1307:(vn,_t,y)=>{"use strict";y.d(_t,{T:()=>i});var d=y(3489);function i(v){return k=>k.lift(new A(v))}class A{constructor(k){this.total=k}call(k,f){return f.subscribe(new p(k,this.total))}}class p extends d.L{constructor(k,f){super(k),this.total=f,this.count=0}_next(k){++this.count>this.total&&this.destination.next(k)}}},1059:(vn,_t,y)=>{"use strict";y.d(_t,{O:()=>A});var d=y(1221),i=y(2866);function A(...p){const v=p[p.length-1];return(0,i.K)(v)?(p.pop(),k=>(0,d.z)(p,k,v)):k=>(0,d.z)(p,k)}},7545:(vn,_t,y)=>{"use strict";y.d(_t,{w:()=>p});var d=y(4850),i=y(5254),A=y(1177);function p(f,b){return"function"==typeof b?J=>J.pipe(p((Y,W)=>(0,i.D)(f(Y,W)).pipe((0,d.U)((B,Z)=>b(Y,B,W,Z))))):J=>J.lift(new v(f))}class v{constructor(b){this.project=b}call(b,J){return J.subscribe(new k(b,this.project))}}class k extends A.Ds{constructor(b,J){super(b),this.project=J,this.index=0}_next(b){let J;const Y=this.index++;try{J=this.project(b,Y)}catch(W){return void this.destination.error(W)}this._innerSub(J)}_innerSub(b){const J=this.innerSubscription;J&&J.unsubscribe();const Y=new A.IY(this),W=this.destination;W.add(Y),this.innerSubscription=(0,A.ft)(b,Y),this.innerSubscription!==Y&&W.add(this.innerSubscription)}_complete(){const{innerSubscription:b}=this;(!b||b.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(b){this.destination.next(b)}}},2986:(vn,_t,y)=>{"use strict";y.d(_t,{q:()=>p});var d=y(3489),i=y(4231),A=y(8896);function p(f){return b=>0===f?(0,A.c)():b.lift(new v(f))}class v{constructor(b){if(this.total=b,this.total<0)throw new i.W}call(b,J){return J.subscribe(new k(b,this.total))}}class k extends d.L{constructor(b,J){super(b),this.total=J,this.count=0}_next(b){const J=this.total,Y=++this.count;Y<=J&&(this.destination.next(b),Y===J&&(this.destination.complete(),this.unsubscribe()))}}},7625:(vn,_t,y)=>{"use strict";y.d(_t,{R:()=>i});var d=y(1177);function i(v){return k=>k.lift(new A(v))}class A{constructor(k){this.notifier=k}call(k,f){const b=new p(k),J=(0,d.ft)(this.notifier,new d.IY(b));return J&&!b.seenValue?(b.add(J),f.subscribe(b)):b}}class p extends d.Ds{constructor(k){super(k),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},4290:(vn,_t,y)=>{"use strict";y.d(_t,{o:()=>i});var d=y(3489);function i(v,k=!1){return f=>f.lift(new A(v,k))}class A{constructor(k,f){this.predicate=k,this.inclusive=f}call(k,f){return f.subscribe(new p(k,this.predicate,this.inclusive))}}class p extends d.L{constructor(k,f,b){super(k),this.predicate=f,this.inclusive=b,this.index=0}_next(k){const f=this.destination;let b;try{b=this.predicate(k,this.index++)}catch(J){return void f.error(J)}this.nextOrComplete(k,b)}nextOrComplete(k,f){const b=this.destination;Boolean(f)?b.next(k):(this.inclusive&&b.next(k),b.complete())}}},2868:(vn,_t,y)=>{"use strict";y.d(_t,{b:()=>p});var d=y(3489);function i(){}var A=y(7043);function p(f,b,J){return function(W){return W.lift(new v(f,b,J))}}class v{constructor(b,J,Y){this.nextOrObserver=b,this.error=J,this.complete=Y}call(b,J){return J.subscribe(new k(b,this.nextOrObserver,this.error,this.complete))}}class k extends d.L{constructor(b,J,Y,W){super(b),this._tapNext=i,this._tapError=i,this._tapComplete=i,this._tapError=Y||i,this._tapComplete=W||i,(0,A.m)(J)?(this._context=this,this._tapNext=J):J&&(this._context=J,this._tapNext=J.next||i,this._tapError=J.error||i,this._tapComplete=J.complete||i)}_next(b){try{this._tapNext.call(this._context,b)}catch(J){return void this.destination.error(J)}this.destination.next(b)}_error(b){try{this._tapError.call(this._context,b)}catch(J){return void this.destination.error(J)}this.destination.error(b)}_complete(){try{this._tapComplete.call(this._context)}catch(b){return void this.destination.error(b)}return this.destination.complete()}}},6454:(vn,_t,y)=>{"use strict";y.d(_t,{r:()=>A});var d=y(6498),i=y(2654);function A(p,v){return new d.y(k=>{const f=new i.w;let b=0;return f.add(v.schedule(function(){b!==p.length?(k.next(p[b++]),k.closed||f.add(this.schedule())):k.complete()})),f})}},6686:(vn,_t,y)=>{"use strict";y.d(_t,{o:()=>A});var d=y(2654);class i extends d.w{constructor(v,k){super()}schedule(v,k=0){return this}}class A extends i{constructor(v,k){super(v,k),this.scheduler=v,this.work=k,this.pending=!1}schedule(v,k=0){if(this.closed)return this;this.state=v;const f=this.id,b=this.scheduler;return null!=f&&(this.id=this.recycleAsyncId(b,f,k)),this.pending=!0,this.delay=k,this.id=this.id||this.requestAsyncId(b,this.id,k),this}requestAsyncId(v,k,f=0){return setInterval(v.flush.bind(v,this),f)}recycleAsyncId(v,k,f=0){if(null!==f&&this.delay===f&&!1===this.pending)return k;clearInterval(k)}execute(v,k){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const f=this._execute(v,k);if(f)return f;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(v,k){let b,f=!1;try{this.work(v)}catch(J){f=!0,b=!!J&&J||new Error(J)}if(f)return this.unsubscribe(),b}_unsubscribe(){const v=this.id,k=this.scheduler,f=k.actions,b=f.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==b&&f.splice(b,1),null!=v&&(this.id=this.recycleAsyncId(k,v,null)),this.delay=null}}},2268:(vn,_t,y)=>{"use strict";y.d(_t,{v:()=>i});let d=(()=>{class A{constructor(v,k=A.now){this.SchedulerAction=v,this.now=k}schedule(v,k=0,f){return new this.SchedulerAction(this,v).schedule(f,k)}}return A.now=()=>Date.now(),A})();class i extends d{constructor(p,v=d.now){super(p,()=>i.delegate&&i.delegate!==this?i.delegate.now():v()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(p,v=0,k){return i.delegate&&i.delegate!==this?i.delegate.schedule(p,v,k):super.schedule(p,v,k)}flush(p){const{actions:v}=this;if(this.active)return void v.push(p);let k;this.active=!0;do{if(k=p.execute(p.state,p.delay))break}while(p=v.shift());if(this.active=!1,k){for(;p=v.shift();)p.unsubscribe();throw k}}}},352:(vn,_t,y)=>{"use strict";y.d(_t,{Z:()=>v});var d=y(6686),A=y(2268);const v=new class p extends A.v{flush(b){this.active=!0,this.scheduled=void 0;const{actions:J}=this;let Y,W=-1,B=J.length;b=b||J.shift();do{if(Y=b.execute(b.state,b.delay))break}while(++W<B&&(b=J.shift()));if(this.active=!1,Y){for(;++W<B&&(b=J.shift());)b.unsubscribe();throw Y}}}(class i extends d.o{constructor(b,J){super(b,J),this.scheduler=b,this.work=J}requestAsyncId(b,J,Y=0){return null!==Y&&Y>0?super.requestAsyncId(b,J,Y):(b.actions.push(this),b.scheduled||(b.scheduled=requestAnimationFrame(()=>b.flush(null))))}recycleAsyncId(b,J,Y=0){if(null!==Y&&Y>0||null===Y&&this.delay>0)return super.recycleAsyncId(b,J,Y);0===b.actions.length&&(cancelAnimationFrame(J),b.scheduled=void 0)}})},8139:(vn,_t,y)=>{"use strict";y.d(_t,{E:()=>W});let d=1;const i=Promise.resolve(),A={};function p(Z){return Z in A&&(delete A[Z],!0)}const v={setImmediate(Z){const G=d++;return A[G]=!0,i.then(()=>p(G)&&Z()),G},clearImmediate(Z){p(Z)}};var f=y(6686),J=y(2268);const W=new class Y extends J.v{flush(G){this.active=!0,this.scheduled=void 0;const{actions:ie}=this;let Ee,ue=-1,Ze=ie.length;G=G||ie.shift();do{if(Ee=G.execute(G.state,G.delay))break}while(++ue<Ze&&(G=ie.shift()));if(this.active=!1,Ee){for(;++ue<Ze&&(G=ie.shift());)G.unsubscribe();throw Ee}}}(class b extends f.o{constructor(G,ie){super(G,ie),this.scheduler=G,this.work=ie}requestAsyncId(G,ie,Ee=0){return null!==Ee&&Ee>0?super.requestAsyncId(G,ie,Ee):(G.actions.push(this),G.scheduled||(G.scheduled=v.setImmediate(G.flush.bind(G,null))))}recycleAsyncId(G,ie,Ee=0){if(null!==Ee&&Ee>0||null===Ee&&this.delay>0)return super.recycleAsyncId(G,ie,Ee);0===G.actions.length&&(v.clearImmediate(ie),G.scheduled=void 0)}})},353:(vn,_t,y)=>{"use strict";y.d(_t,{P:()=>p});var d=y(6686);const p=new(y(2268).v)(d.o)},341:(vn,_t,y)=>{"use strict";y.d(_t,{c:()=>k,N:()=>v});var d=y(6686),A=y(2268);const v=new class p extends A.v{}(class i extends d.o{constructor(b,J){super(b,J),this.scheduler=b,this.work=J}schedule(b,J=0){return J>0?super.schedule(b,J):(this.delay=J,this.state=b,this.scheduler.flush(this),this)}execute(b,J){return J>0||this.closed?super.execute(b,J):this._execute(b,J)}requestAsyncId(b,J,Y=0){return null!==Y&&Y>0||null===Y&&this.delay>0?super.requestAsyncId(b,J,Y):b.flush(this)}}),k=v},5430:(vn,_t,y)=>{"use strict";y.d(_t,{hZ:()=>i});const i=function d(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(vn,_t,y)=>{"use strict";y.d(_t,{L:()=>d});const d="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(vn,_t,y)=>{"use strict";y.d(_t,{b:()=>d});const d="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(vn,_t,y)=>{"use strict";y.d(_t,{W:()=>i});const i=(()=>{function A(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return A.prototype=Object.create(Error.prototype),A})()},5279:(vn,_t,y)=>{"use strict";y.d(_t,{N:()=>i});const i=(()=>{function A(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return A.prototype=Object.create(Error.prototype),A})()},2782:(vn,_t,y)=>{"use strict";function d(i){setTimeout(()=>{throw i},0)}y.d(_t,{z:()=>d})},5379:(vn,_t,y)=>{"use strict";function d(i){return i}y.d(_t,{y:()=>d})},6688:(vn,_t,y)=>{"use strict";y.d(_t,{k:()=>d});const d=Array.isArray||(i=>i&&"number"==typeof i.length)},8515:(vn,_t,y)=>{"use strict";y.d(_t,{z:()=>d});const d=i=>i&&"number"==typeof i.length&&"function"!=typeof i},7043:(vn,_t,y)=>{"use strict";function d(i){return"function"==typeof i}y.d(_t,{m:()=>d})},4241:(vn,_t,y)=>{"use strict";y.d(_t,{k:()=>i});var d=y(6688);function i(A){return!(0,d.k)(A)&&A-parseFloat(A)+1>=0}},7830:(vn,_t,y)=>{"use strict";function d(i){return null!==i&&"object"==typeof i}y.d(_t,{K:()=>d})},4715:(vn,_t,y)=>{"use strict";y.d(_t,{b:()=>i});var d=y(6498);function i(A){return!!A&&(A instanceof d.y||"function"==typeof A.lift&&"function"==typeof A.subscribe)}},8955:(vn,_t,y)=>{"use strict";function d(i){return!!i&&"function"!=typeof i.subscribe&&"function"==typeof i.then}y.d(_t,{t:()=>d})},2866:(vn,_t,y)=>{"use strict";function d(i){return i&&"function"==typeof i.schedule}y.d(_t,{K:()=>d})},4843:(vn,_t,y)=>{"use strict";y.d(_t,{U:()=>A,z:()=>i});var d=y(5379);function i(...p){return A(p)}function A(p){return 0===p.length?d.y:1===p.length?p[0]:function(k){return p.reduce((f,b)=>b(f),k)}}},9249:(vn,_t,y)=>{"use strict";y.d(_t,{s:()=>W});var d=y(3650),i=y(2782),p=y(5430),k=y(3821),b=y(8515),J=y(8955),Y=y(7830);const W=B=>{if(B&&"function"==typeof B[k.L])return(B=>Z=>{const G=B[k.L]();if("function"!=typeof G.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return G.subscribe(Z)})(B);if((0,b.z)(B))return(0,d.V)(B);if((0,J.t)(B))return(B=>Z=>(B.then(G=>{Z.closed||(Z.next(G),Z.complete())},G=>Z.error(G)).then(null,i.z),Z))(B);if(B&&"function"==typeof B[p.hZ])return(B=>Z=>{const G=B[p.hZ]();for(;;){let ie;try{ie=G.next()}catch(Ee){return Z.error(Ee),Z}if(ie.done){Z.complete();break}if(Z.next(ie.value),Z.closed)break}return"function"==typeof G.return&&Z.add(()=>{G.return&&G.return()}),Z})(B);{const G=`You provided ${(0,Y.K)(B)?"an invalid object":`'${B}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(G)}}},3650:(vn,_t,y)=>{"use strict";y.d(_t,{V:()=>d});const d=i=>A=>{for(let p=0,v=i.length;p<v&&!A.closed;p++)A.next(i[p]);A.complete()}},8613:function(vn,_t){!function(y){"use strict";function d(at){var pt,ft,Et=new Error(at);return pt=Et,ft=d.prototype,Object.setPrototypeOf?Object.setPrototypeOf(pt,ft):pt.__proto__=ft,Et}function i(at,pt,ft){var Et=pt.slice(0,ft).split(/\n/),be=Et.length,Pe=Et[be-1].length+1;throw d(at+=" at line "+be+" col "+Pe+":\n\n "+pt.split(/\n/)[be-1]+"\n "+Array(Pe).join(" ")+"^")}d.prototype=Object.create(Error.prototype,{name:{value:"Squirrelly Error",enumerable:!1}});var A=new Function("return this")().Promise,p=!1;try{p=new Function("return (async function(){}).constructor")()}catch(at){if(!(at instanceof SyntaxError))throw at}function v(at,pt){return Object.prototype.hasOwnProperty.call(at,pt)}function k(at,pt,ft){for(var Et in pt)v(pt,Et)&&(at[Et]=null==pt[Et]||"object"!=typeof pt[Et]||"storage"!==Et&&"prefixes"!==Et||ft?pt[Et]:k({},pt[Et]));return at}var f=/^async +/,b=/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})*}|(?!\${)[^\\`])*`/g,J=/'(?:\\[\s\w"'\\`]|[^\n\r'\\])*?'/g,Y=/"(?:\\[\s\w"'\\`]|[^\n\r"\\])*?"/g,W=/[.*+\-?^${}()|[\]\\]/g;function B(at){return W.test(at)?at.replace(W,"\\$&"):at}function Z(at,pt){pt.rmWhitespace&&(at=at.replace(/[\r\n]+/g,"\n").replace(/^\s+|\s+$/gm,"")),b.lastIndex=0,J.lastIndex=0,Y.lastIndex=0;var ft=pt.prefixes,Et=[ft.h,ft.b,ft.i,ft.r,ft.c,ft.e].reduce(function(ce,ve){return ce&&ve?ce+"|"+B(ve):ve?B(ve):ce},""),be=new RegExp("([|()]|=>)|('|\"|`|\\/\\*)|\\s*((\\/)?(-|_)?"+B(pt.tags[1])+")","g"),Pe=new RegExp("([^]*?)"+B(pt.tags[0])+"(-|_)?\\s*("+Et+")?\\s*","g"),je=0,dt=!1;function et(ce,ve){var se,S={f:[]},F=0,V="c";function ne(fe){var Te=at.slice(je,fe),lt=Te.trim();if("f"===V)"safe"===lt?S.raw=!0:pt.async&&f.test(lt)?(lt=lt.replace(f,""),S.f.push([lt,"",!0])):S.f.push([lt,""]);else if("fp"===V)S.f[S.f.length-1][1]+=lt;else if("err"===V){if(lt){var Je=Te.search(/\S/);i("invalid syntax",at,je+Je)}}else S[V]=lt;je=fe+1}for("h"===ve||"b"===ve||"c"===ve?V="n":"r"===ve&&(S.raw=!0,ve="i"),be.lastIndex=je;null!==(se=be.exec(at));){var De=se[1],wt=se[2],nn=se[3],Jt=se[4],un=se[5],Zt=se.index;if(De)"("===De?(0===F&&("n"===V?(ne(Zt),V="p"):"f"===V&&(ne(Zt),V="fp")),F++):")"===De?0==--F&&"c"!==V&&(ne(Zt),V="err"):0===F&&"|"===De?(ne(Zt),V="f"):"=>"===De&&(ne(Zt),je+=1,V="res");else if(wt)if("/*"===wt){var zt=at.indexOf("*/",be.lastIndex);-1===zt&&i("unclosed comment",at,se.index),be.lastIndex=zt+2}else"'"===wt?(J.lastIndex=se.index,J.exec(at)?be.lastIndex=J.lastIndex:i("unclosed string",at,se.index)):'"'===wt?(Y.lastIndex=se.index,Y.exec(at)?be.lastIndex=Y.lastIndex:i("unclosed string",at,se.index)):"`"===wt&&(b.lastIndex=se.index,b.exec(at)?be.lastIndex=b.lastIndex:i("unclosed string",at,se.index));else if(nn)return ne(Zt),Pe.lastIndex=je=Zt+se[0].length,dt=un,Jt&&"h"===ve&&(ve="s"),S.t=ve,S}return i("unclosed tag",at,ce),S}var gt=function ce(ve,se){ve.b=[],ve.d=[];var S,F=!1,V=[];function ne(Je,Lt){var Ke,ge,Me,_e,it,ct;Je&&(Ke=Je,Me=dt,_e=Lt,"string"==typeof(ge=pt).autoTrim?it=ct=ge.autoTrim:Array.isArray(ge.autoTrim)&&(it=ge.autoTrim[1],ct=ge.autoTrim[0]),(Me||!1===Me)&&(it=Me),(_e||!1===_e)&&(ct=_e),Je="slurp"===it&&"slurp"===ct?Ke.trim():("_"===it||"slurp"===it?Ke=String.prototype.trimLeft?Ke.trimLeft():Ke.replace(/^[\s\uFEFF\xA0]+/,""):"-"!==it&&"nl"!==it||(Ke=Ke.replace(/^(?:\n|\r|\r\n)/,"")),"_"===ct||"slurp"===ct?Ke=String.prototype.trimRight?Ke.trimRight():Ke.replace(/[\s\uFEFF\xA0]+$/,""):"-"!==ct&&"nl"!==ct||(Ke=Ke.replace(/(?:\n|\r|\r\n)$/,"")),Ke))&&(Je=Je.replace(/\\|'/g,"\\$&").replace(/\r\n|\n|\r/g,"\\n"),V.push(Je))}for(;null!==(S=Pe.exec(at));){var De,wt=S[1],nn=S[2],Jt=S[3]||"";for(var un in ft)if(ft[un]===Jt){De=un;break}ne(wt,nn),je=S.index+S[0].length,De||i("unrecognized tag type: "+Jt,at,je);var Zt=et(S.index,De),zt=Zt.t;if("h"===zt){var fe=Zt.n||"";pt.async&&f.test(fe)&&(Zt.a=!0,Zt.n=fe.replace(f,"")),Zt=ce(Zt),V.push(Zt)}else if("c"===zt){if(ve.n===Zt.n)return F?(F.d=V,ve.b.push(F)):ve.d=V,ve;i("Helper start and end don't match",at,S.index+S[0].length)}else if("b"===zt){F?(F.d=V,ve.b.push(F)):ve.d=V;var Te=Zt.n||"";pt.async&&f.test(Te)&&(Zt.a=!0,Zt.n=Te.replace(f,"")),F=Zt,V=[]}else if("s"===zt){var lt=Zt.n||"";pt.async&&f.test(lt)&&(Zt.a=!0,Zt.n=lt.replace(f,"")),V.push(Zt)}else V.push(Zt)}if(!se)throw d('unclosed helper "'+ve.n+'"');return ne(at.slice(je,at.length),!1),ve.d=V,ve}({f:[]},!0);if(pt.plugins)for(var Re=0;Re<pt.plugins.length;Re++){var we=pt.plugins[Re];we.processAST&&(gt.d=we.processAST(gt.d,pt))}return gt.d}function G(at,pt){var ft=Z(at,pt),Et="var tR='';"+(pt.useWith?"with("+pt.varName+"||{}){":"")+Qe(ft,pt)+"if(cb){cb(null,tR)} return tR"+(pt.useWith?"}":"");if(pt.plugins)for(var be=0;be<pt.plugins.length;be++){var Pe=pt.plugins[be];Pe.processFnString&&(Et=Pe.processFnString(Et,pt))}return Et}function ie(at,pt){for(var ft=0;ft<pt.length;ft++){var be=pt[ft][1];at=(pt[ft][2]?"await ":"")+"c.l('F','"+pt[ft][0]+"')("+at,be&&(at+=","+be),at+=")"}return at}function Ee(at,pt,ft,Et,be,Pe){var je="{exec:"+(be?"async ":"")+Ze(ft,pt,at)+",params:["+Et+"]";return Pe&&(je+=",name:'"+Pe+"'"),be&&(je+=",async:true"),je+"}"}function ue(at,pt){for(var ft="[",Et=0;Et<at.length;Et++){var be=at[Et];ft+=Ee(pt,be.res||"",be.d,be.p||"",be.a,be.n),Et<at.length&&(ft+=",")}return ft+"]"}function Ze(at,pt,ft){return"function("+pt+"){var tR='';"+Qe(at,ft)+"return tR}"}function Qe(at,pt){for(var ft=0,Et=at.length,be="";ft<Et;ft++){var Pe=at[ft];if("string"==typeof Pe)be+="tR+='"+Pe+"';";else{var je=Pe.t,dt=Pe.c||"",et=Pe.f,gt=Pe.n||"",Re=Pe.p||"",we=Pe.res||"",ce=Pe.b,ve=!!Pe.a;if("i"===je){pt.defaultFilter&&(dt="c.l('F','"+pt.defaultFilter+"')("+dt+")");var se=ie(dt,et);!Pe.raw&&pt.autoEscape&&(se="c.l('F','e')("+se+")"),be+="tR+="+se+";"}else if("h"===je)if(pt.storage.nativeHelpers.get(gt))be+=pt.storage.nativeHelpers.get(gt)(Pe,pt);else{var S=(ve?"await ":"")+"c.l('H','"+gt+"')("+Ee(pt,we,Pe.d,Re,ve);S+=ce?","+ue(ce,pt):",[]",be+="tR+="+ie(S+=",c)",et)+";"}else"s"===je?be+="tR+="+ie((ve?"await ":"")+"c.l('H','"+gt+"')({params:["+Re+"]},[],c)",et)+";":"e"===je&&(be+=dt+"\n")}}return be}var vt=function(){function at(pt){this.cache=pt}return at.prototype.define=function(pt,ft){this.cache[pt]=ft},at.prototype.get=function(pt){return this.cache[pt]},at.prototype.remove=function(pt){delete this.cache[pt]},at.prototype.reset=function(){this.cache={}},at.prototype.load=function(pt){k(this.cache,pt,!0)},at}();function $e(at,pt,ft,Et){if(pt&&pt.length>0)throw d((Et?"Native":"")+"Helper '"+at+"' doesn't accept blocks");if(ft&&ft.length>0)throw d((Et?"Native":"")+"Helper '"+at+"' doesn't accept filters")}var Ge={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ce(at){return Ge[at]}var ke=new vt({}),me=new vt({each:function(at,pt){var ft="",Et=at.params[0];if($e("each",pt,!1),at.async)return new Promise(function(Pe){!function je(dt,et,gt,Re,we){gt(dt[et],et).then(function(ce){Re+=ce,et===dt.length-1?we(Re):je(dt,et+1,gt,Re,we)})}(Et,0,at.exec,ft,Pe)});for(var be=0;be<Et.length;be++)ft+=at.exec(Et[be],be);return ft},foreach:function(at,pt){var ft=at.params[0];if($e("foreach",pt,!1),at.async)return new Promise(function(Pe){!function je(dt,et,gt,Re,we,ce){Re(et[gt],dt[et[gt]]).then(function(ve){we+=ve,gt===et.length-1?ce(we):je(dt,et,gt+1,Re,we,ce)})}(ft,Object.keys(ft),0,at.exec,"",Pe)});var Et="";for(var be in ft)v(ft,be)&&(Et+=at.exec(be,ft[be]));return Et},include:function(at,pt,ft){$e("include",pt,!1);var Et=ft.storage.templates.get(at.params[0]);if(!Et)throw d('Could not fetch template "'+at.params[0]+'"');return Et(at.params[1],ft)},extends:function(at,pt,ft){var Et=at.params[1]||{};Et.content=at.exec();for(var be=0;be<pt.length;be++){var Pe=pt[be];Et[Pe.name]=Pe.exec()}var je=ft.storage.templates.get(at.params[0]);if(!je)throw d('Could not fetch template "'+at.params[0]+'"');return je(Et,ft)},useScope:function(at,pt){return $e("useScope",pt,!1),at.exec(at.params[0])}}),re=new vt({if:function(at,pt){$e("if",!1,at.f,!0);var ft="if("+at.p+"){"+Qe(at.d,pt)+"}";if(at.b)for(var Et=0;Et<at.b.length;Et++){var be=at.b[Et];"else"===be.n?ft+="else{"+Qe(be.d,pt)+"}":"elif"===be.n&&(ft+="else if("+be.p+"){"+Qe(be.d,pt)+"}")}return ft},try:function(at,pt){if($e("try",!1,at.f,!0),!at.b||1!==at.b.length||"catch"!==at.b[0].n)throw d("native helper 'try' only accepts 1 block, 'catch'");var ft="try{"+Qe(at.d,pt)+"}",Et=at.b[0];return ft+"catch"+(Et.res?"("+Et.res+")":"")+"{"+Qe(Et.d,pt)+"}"},block:function(at,pt){return $e("block",at.b,at.f,!0),"if(!"+pt.varName+"["+at.p+"]){tR+=("+Ze(at.d,"",pt)+")()}else{tR+="+pt.varName+"["+at.p+"]}"}}),ye=new vt({e:function(at){var pt=String(at);return/[&<>"']/.test(pt)?pt.replace(/[&<>"']/g,Ce):pt}}),Oe={varName:"it",autoTrim:[!1,"nl"],autoEscape:!0,defaultFilter:!1,tags:["{{","}}"],l:function(at,pt){if("H"===at){var ft=this.storage.helpers.get(pt);if(ft)return ft;throw d("Can't find helper '"+pt+"'")}if("F"===at){var Et=this.storage.filters.get(pt);if(Et)return Et;throw d("Can't find filter '"+pt+"'")}},async:!1,storage:{helpers:me,nativeHelpers:re,filters:ye,templates:ke},prefixes:{h:"@",b:"#",i:"",r:"*",c:"/",e:"!"},cache:!1,plugins:[],useWith:!1};function Ae(at,pt){var ft={};return k(ft,Oe),pt&&k(ft,pt),at&&k(ft,at),ft.l.bind(ft),ft}function tt(at,pt){var ft=Ae(pt||{}),Et=Function;if(ft.async){if(!p)throw d("This environment doesn't support async/await");Et=p}try{return new Et(ft.varName,"c","cb",G(at,ft))}catch(be){throw be instanceof SyntaxError?d("Bad template syntax\n\n"+be.message+"\n"+Array(be.message.length+1).join("=")+"\n"+G(at,ft)):be}}function ot(at,pt){var ft;return pt.cache&&pt.name&&pt.storage.templates.get(pt.name)?pt.storage.templates.get(pt.name):(ft="function"==typeof at?at:tt(at,pt),pt.cache&&pt.name&&pt.storage.templates.define(pt.name,ft),ft)}Oe.l.bind(Oe),y.compile=tt,y.compileScope=Qe,y.compileScopeIntoFunction=Ze,y.compileToString=G,y.defaultConfig=Oe,y.filters=ye,y.getConfig=Ae,y.helpers=me,y.nativeHelpers=re,y.parse=Z,y.render=function(at,pt,ft,Et){var be=Ae(ft||{});if(!be.async)return ot(at,be)(pt,be);if(!Et){if("function"==typeof A)return new A(function(Pe,je){try{Pe(ot(at,be)(pt,be))}catch(dt){je(dt)}});throw d("Please provide a callback function, this env doesn't support Promises")}try{ot(at,be)(pt,be,Et)}catch(Pe){return Et(Pe)}},y.templates=ke,Object.defineProperty(y,"__esModule",{value:!0})}(_t)},7340:(vn,_t,y)=>{"use strict";y.d(_t,{F4:()=>Y,IO:()=>ie,LC:()=>i,SB:()=>J,X$:()=>p,ZE:()=>Qe,ZN:()=>Ze,_j:()=>d,eR:()=>W,jt:()=>v,k1:()=>vt,l3:()=>A,oB:()=>b,pV:()=>Z,ru:()=>k,vP:()=>f});class d{}class i{}const A="*";function p($e,Ge){return{type:7,name:$e,definitions:Ge,options:{}}}function v($e,Ge=null){return{type:4,styles:Ge,timings:$e}}function k($e,Ge=null){return{type:3,steps:$e,options:Ge}}function f($e,Ge=null){return{type:2,steps:$e,options:Ge}}function b($e){return{type:6,styles:$e,offset:null}}function J($e,Ge,Ce){return{type:0,name:$e,styles:Ge,options:Ce}}function Y($e){return{type:5,steps:$e}}function W($e,Ge,Ce=null){return{type:1,expr:$e,animation:Ge,options:Ce}}function Z($e=null){return{type:9,options:$e}}function ie($e,Ge,Ce=null){return{type:11,selector:$e,animation:Ge,options:Ce}}function ue($e){Promise.resolve().then($e)}class Ze{constructor(Ge=0,Ce=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Ge+Ce}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ge=>Ge()),this._onDoneFns=[])}onStart(Ge){this._originalOnStartFns.push(Ge),this._onStartFns.push(Ge)}onDone(Ge){this._originalOnDoneFns.push(Ge),this._onDoneFns.push(Ge)}onDestroy(Ge){this._onDestroyFns.push(Ge)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ue(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Ge=>Ge()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Ge=>Ge()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Ge){this._position=this.totalTime?Ge*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Ge){const Ce="start"==Ge?this._onStartFns:this._onDoneFns;Ce.forEach(ke=>ke()),Ce.length=0}}class Qe{constructor(Ge){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Ge;let Ce=0,ke=0,me=0;const re=this.players.length;0==re?ue(()=>this._onFinish()):this.players.forEach(ye=>{ye.onDone(()=>{++Ce==re&&this._onFinish()}),ye.onDestroy(()=>{++ke==re&&this._onDestroy()}),ye.onStart(()=>{++me==re&&this._onStart()})}),this.totalTime=this.players.reduce((ye,Oe)=>Math.max(ye,Oe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ge=>Ge()),this._onDoneFns=[])}init(){this.players.forEach(Ge=>Ge.init())}onStart(Ge){this._onStartFns.push(Ge)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Ge=>Ge()),this._onStartFns=[])}onDone(Ge){this._onDoneFns.push(Ge)}onDestroy(Ge){this._onDestroyFns.push(Ge)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Ge=>Ge.play())}pause(){this.players.forEach(Ge=>Ge.pause())}restart(){this.players.forEach(Ge=>Ge.restart())}finish(){this._onFinish(),this.players.forEach(Ge=>Ge.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Ge=>Ge.destroy()),this._onDestroyFns.forEach(Ge=>Ge()),this._onDestroyFns=[])}reset(){this.players.forEach(Ge=>Ge.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Ge){const Ce=Ge*this.totalTime;this.players.forEach(ke=>{const me=ke.totalTime?Math.min(1,Ce/ke.totalTime):1;ke.setPosition(me)})}getPosition(){const Ge=this.players.reduce((Ce,ke)=>null===Ce||ke.totalTime>Ce.totalTime?ke:Ce,null);return null!=Ge?Ge.getPosition():0}beforeDestroy(){this.players.forEach(Ge=>{Ge.beforeDestroy&&Ge.beforeDestroy()})}triggerCallback(Ge){const Ce="start"==Ge?this._onStartFns:this._onDoneFns;Ce.forEach(ke=>ke()),Ce.length=0}}const vt="!"},2687:(vn,_t,y)=>{"use strict";y.d(_t,{$s:()=>Oe,Em:()=>pt,Kd:()=>it,X6:()=>Zt,ic:()=>Et,kH:()=>Gt,mK:()=>ne,qV:()=>V,qm:()=>Qn,rt:()=>ai,s1:()=>at,tE:()=>An,yG:()=>zt});var d=y(6895),i=y(4650),A=y(3353),p=y(8929),v=y(2654),k=y(6438),f=y(1086),b=y(9521),J=y(2868),Y=y(13),W=y(2198),B=y(4850),Z=y(2986),G=y(1307),ie=y(5778),Ee=y(7625),ue=y(1281),Ze=y(9643),Qe=y(1750);function Ce(ze,de){return(ze.getAttribute(de)||"").match(/\S+/g)||[]}const me="cdk-describedby-message",re="cdk-describedby-host";let ye=0,Oe=(()=>{class ze{constructor(q,He){this._platform=He,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ye++,this._document=q,this._id=(0,i.f3M)(i.AFp)+"-"+ye++}describe(q,He,yt){if(!this._canBeDescribed(q,He))return;const ht=Ae(He,yt);"string"!=typeof He?(tt(He,this._id),this._messageRegistry.set(ht,{messageElement:He,referenceCount:0})):this._messageRegistry.has(ht)||this._createMessageElement(He,yt),this._isElementDescribedByMessage(q,ht)||this._addMessageReference(q,ht)}removeDescription(q,He,yt){if(!He||!this._isElementNode(q))return;const ht=Ae(He,yt);if(this._isElementDescribedByMessage(q,ht)&&this._removeMessageReference(q,ht),"string"==typeof He){const le=this._messageRegistry.get(ht);le&&0===le.referenceCount&&this._deleteMessageElement(ht)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const q=this._document.querySelectorAll(`[${re}="${this._id}"]`);for(let He=0;He<q.length;He++)this._removeCdkDescribedByReferenceIds(q[He]),q[He].removeAttribute(re);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(q,He){const yt=this._document.createElement("div");tt(yt,this._id),yt.textContent=q,He&&yt.setAttribute("role",He),this._createMessagesContainer(),this._messagesContainer.appendChild(yt),this._messageRegistry.set(Ae(q,He),{messageElement:yt,referenceCount:0})}_deleteMessageElement(q){this._messageRegistry.get(q)?.messageElement?.remove(),this._messageRegistry.delete(q)}_createMessagesContainer(){if(this._messagesContainer)return;const q="cdk-describedby-message-container",He=this._document.querySelectorAll(`.${q}[platform="server"]`);for(let ht=0;ht<He.length;ht++)He[ht].remove();const yt=this._document.createElement("div");yt.style.visibility="hidden",yt.classList.add(q),yt.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&yt.setAttribute("platform","server"),this._document.body.appendChild(yt),this._messagesContainer=yt}_removeCdkDescribedByReferenceIds(q){const He=Ce(q,"aria-describedby").filter(yt=>0!=yt.indexOf(me));q.setAttribute("aria-describedby",He.join(" "))}_addMessageReference(q,He){const yt=this._messageRegistry.get(He);(function $e(ze,de,q){const He=Ce(ze,de);He.some(yt=>yt.trim()==q.trim())||(He.push(q.trim()),ze.setAttribute(de,He.join(" ")))})(q,"aria-describedby",yt.messageElement.id),q.setAttribute(re,this._id),yt.referenceCount++}_removeMessageReference(q,He){const yt=this._messageRegistry.get(He);yt.referenceCount--,function Ge(ze,de,q){const yt=Ce(ze,de).filter(ht=>ht!=q.trim());yt.length?ze.setAttribute(de,yt.join(" ")):ze.removeAttribute(de)}(q,"aria-describedby",yt.messageElement.id),q.removeAttribute(re)}_isElementDescribedByMessage(q,He){const yt=Ce(q,"aria-describedby"),ht=this._messageRegistry.get(He),le=ht&&ht.messageElement.id;return!!le&&-1!=yt.indexOf(le)}_canBeDescribed(q,He){if(!this._isElementNode(q))return!1;if(He&&"object"==typeof He)return!0;const yt=null==He?"":`${He}`.trim(),ht=q.getAttribute("aria-label");return!(!yt||ht&&ht.trim()===yt)}_isElementNode(q){return q.nodeType===this._document.ELEMENT_NODE}}return ze.\u0275fac=function(q){return new(q||ze)(i.LFG(d.K0),i.LFG(A.t4))},ze.\u0275prov=i.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();function Ae(ze,de){return"string"==typeof ze?`${de||""}/${ze}`:ze}function tt(ze,de){ze.id||(ze.id=`${me}-${de}-${ye++}`)}class ot{constructor(de){this._items=de,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new p.xQ,this._typeaheadSubscription=v.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=q=>q.disabled,this._pressedLetters=[],this.tabOut=new p.xQ,this.change=new p.xQ,de instanceof i.n_E&&(this._itemChangesSubscription=de.changes.subscribe(q=>{if(this._activeItem){const yt=q.toArray().indexOf(this._activeItem);yt>-1&&yt!==this._activeItemIndex&&(this._activeItemIndex=yt)}}))}skipPredicate(de){return this._skipPredicateFn=de,this}withWrap(de=!0){return this._wrap=de,this}withVerticalOrientation(de=!0){return this._vertical=de,this}withHorizontalOrientation(de){return this._horizontal=de,this}withAllowedModifierKeys(de){return this._allowedModifierKeys=de,this}withTypeAhead(de=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,J.b)(q=>this._pressedLetters.push(q)),(0,Y.b)(de),(0,W.h)(()=>this._pressedLetters.length>0),(0,B.U)(()=>this._pressedLetters.join(""))).subscribe(q=>{const He=this._getItemsArray();for(let yt=1;yt<He.length+1;yt++){const ht=(this._activeItemIndex+yt)%He.length,le=He[ht];if(!this._skipPredicateFn(le)&&0===le.getLabel().toUpperCase().trim().indexOf(q)){this.setActiveItem(ht);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(de=!0){return this._homeAndEnd=de,this}withPageUpDown(de=!0,q=10){return this._pageUpAndDown={enabled:de,delta:q},this}setActiveItem(de){const q=this._activeItem;this.updateActiveItem(de),this._activeItem!==q&&this.change.next(this._activeItemIndex)}onKeydown(de){const q=de.keyCode,yt=["altKey","ctrlKey","metaKey","shiftKey"].every(ht=>!de[ht]||this._allowedModifierKeys.indexOf(ht)>-1);switch(q){case b.Mf:return void this.tabOut.next();case b.JH:if(this._vertical&&yt){this.setNextItemActive();break}return;case b.LH:if(this._vertical&&yt){this.setPreviousItemActive();break}return;case b.SV:if(this._horizontal&&yt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case b.oh:if(this._horizontal&&yt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case b.Sd:if(this._homeAndEnd&&yt){this.setFirstItemActive();break}return;case b.uR:if(this._homeAndEnd&&yt){this.setLastItemActive();break}return;case b.Ku:if(this._pageUpAndDown.enabled&&yt){const ht=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(ht>0?ht:0,1);break}return;case b.VM:if(this._pageUpAndDown.enabled&&yt){const ht=this._activeItemIndex+this._pageUpAndDown.delta,le=this._getItemsArray().length;this._setActiveItemByIndex(ht<le?ht:le-1,-1);break}return;default:return void((yt||(0,b.Vb)(de,"shiftKey"))&&(de.key&&1===de.key.length?this._letterKeyStream.next(de.key.toLocaleUpperCase()):(q>=b.A&&q<=b.Z||q>=b.xE&&q<=b.aO)&&this._letterKeyStream.next(String.fromCharCode(q))))}this._pressedLetters=[],de.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(de){const q=this._getItemsArray(),He="number"==typeof de?de:q.indexOf(de);this._activeItem=q[He]??null,this._activeItemIndex=He}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(de){this._wrap?this._setActiveInWrapMode(de):this._setActiveInDefaultMode(de)}_setActiveInWrapMode(de){const q=this._getItemsArray();for(let He=1;He<=q.length;He++){const yt=(this._activeItemIndex+de*He+q.length)%q.length;if(!this._skipPredicateFn(q[yt]))return void this.setActiveItem(yt)}}_setActiveInDefaultMode(de){this._setActiveItemByIndex(this._activeItemIndex+de,de)}_setActiveItemByIndex(de,q){const He=this._getItemsArray();if(He[de]){for(;this._skipPredicateFn(He[de]);)if(!He[de+=q])return;this.setActiveItem(de)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class at extends ot{setActiveItem(de){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(de),this.activeItem&&this.activeItem.setActiveStyles()}}class pt extends ot{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(de){return this._origin=de,this}setActiveItem(de){super.setActiveItem(de),this.activeItem&&this.activeItem.focus(this._origin)}}let Et=(()=>{class ze{constructor(q){this._platform=q}isDisabled(q){return q.hasAttribute("disabled")}isVisible(q){return function Pe(ze){return!!(ze.offsetWidth||ze.offsetHeight||"function"==typeof ze.getClientRects&&ze.getClientRects().length)}(q)&&"visible"===getComputedStyle(q).visibility}isTabbable(q){if(!this._platform.isBrowser)return!1;const He=function be(ze){try{return ze.frameElement}catch{return null}}(function S(ze){return ze.ownerDocument&&ze.ownerDocument.defaultView||window}(q));if(He&&(-1===ce(He)||!this.isVisible(He)))return!1;let yt=q.nodeName.toLowerCase(),ht=ce(q);return q.hasAttribute("contenteditable")?-1!==ht:!("iframe"===yt||"object"===yt||this._platform.WEBKIT&&this._platform.IOS&&!function ve(ze){let de=ze.nodeName.toLowerCase(),q="input"===de&&ze.type;return"text"===q||"password"===q||"select"===de||"textarea"===de}(q))&&("audio"===yt?!!q.hasAttribute("controls")&&-1!==ht:"video"===yt?-1!==ht&&(null!==ht||this._platform.FIREFOX||q.hasAttribute("controls")):q.tabIndex>=0)}isFocusable(q,He){return function se(ze){return!function dt(ze){return function gt(ze){return"input"==ze.nodeName.toLowerCase()}(ze)&&"hidden"==ze.type}(ze)&&(function je(ze){let de=ze.nodeName.toLowerCase();return"input"===de||"select"===de||"button"===de||"textarea"===de}(ze)||function et(ze){return function Re(ze){return"a"==ze.nodeName.toLowerCase()}(ze)&&ze.hasAttribute("href")}(ze)||ze.hasAttribute("contenteditable")||we(ze))}(q)&&!this.isDisabled(q)&&(He?.ignoreVisibility||this.isVisible(q))}}return ze.\u0275fac=function(q){return new(q||ze)(i.LFG(A.t4))},ze.\u0275prov=i.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();function we(ze){if(!ze.hasAttribute("tabindex")||void 0===ze.tabIndex)return!1;let de=ze.getAttribute("tabindex");return!(!de||isNaN(parseInt(de,10)))}function ce(ze){if(!we(ze))return null;const de=parseInt(ze.getAttribute("tabindex")||"",10);return isNaN(de)?-1:de}class F{get enabled(){return this._enabled}set enabled(de){this._enabled=de,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(de,this._startAnchor),this._toggleAnchorTabIndex(de,this._endAnchor))}constructor(de,q,He,yt,ht=!1){this._element=de,this._checker=q,this._ngZone=He,this._document=yt,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ht||this.attachAnchors()}destroy(){const de=this._startAnchor,q=this._endAnchor;de&&(de.removeEventListener("focus",this.startAnchorListener),de.remove()),q&&(q.removeEventListener("focus",this.endAnchorListener),q.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(de){return new Promise(q=>{this._executeOnStable(()=>q(this.focusInitialElement(de)))})}focusFirstTabbableElementWhenReady(de){return new Promise(q=>{this._executeOnStable(()=>q(this.focusFirstTabbableElement(de)))})}focusLastTabbableElementWhenReady(de){return new Promise(q=>{this._executeOnStable(()=>q(this.focusLastTabbableElement(de)))})}_getRegionBoundary(de){const q=this._element.querySelectorAll(`[cdk-focus-region-${de}], [cdkFocusRegion${de}], [cdk-focus-${de}]`);return"start"==de?q.length?q[0]:this._getFirstTabbableElement(this._element):q.length?q[q.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(de){const q=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(q){if(!this._checker.isFocusable(q)){const He=this._getFirstTabbableElement(q);return He?.focus(de),!!He}return q.focus(de),!0}return this.focusFirstTabbableElement(de)}focusFirstTabbableElement(de){const q=this._getRegionBoundary("start");return q&&q.focus(de),!!q}focusLastTabbableElement(de){const q=this._getRegionBoundary("end");return q&&q.focus(de),!!q}hasAttached(){return this._hasAttached}_getFirstTabbableElement(de){if(this._checker.isFocusable(de)&&this._checker.isTabbable(de))return de;const q=de.children;for(let He=0;He<q.length;He++){const yt=q[He].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(q[He]):null;if(yt)return yt}return null}_getLastTabbableElement(de){if(this._checker.isFocusable(de)&&this._checker.isTabbable(de))return de;const q=de.children;for(let He=q.length-1;He>=0;He--){const yt=q[He].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(q[He]):null;if(yt)return yt}return null}_createAnchor(){const de=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,de),de.classList.add("cdk-visually-hidden"),de.classList.add("cdk-focus-trap-anchor"),de.setAttribute("aria-hidden","true"),de}_toggleAnchorTabIndex(de,q){de?q.setAttribute("tabindex","0"):q.removeAttribute("tabindex")}toggleAnchors(de){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(de,this._startAnchor),this._toggleAnchorTabIndex(de,this._endAnchor))}_executeOnStable(de){this._ngZone.isStable?de():this._ngZone.onStable.pipe((0,Z.q)(1)).subscribe(de)}}let V=(()=>{class ze{constructor(q,He,yt){this._checker=q,this._ngZone=He,this._document=yt}create(q,He=!1){return new F(q,this._checker,this._ngZone,this._document,He)}}return ze.\u0275fac=function(q){return new(q||ze)(i.LFG(Et),i.LFG(i.R0b),i.LFG(d.K0))},ze.\u0275prov=i.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),ne=(()=>{class ze{get enabled(){return this.focusTrap.enabled}set enabled(q){this.focusTrap.enabled=(0,ue.Ig)(q)}get autoCapture(){return this._autoCapture}set autoCapture(q){this._autoCapture=(0,ue.Ig)(q)}constructor(q,He,yt){this._elementRef=q,this._focusTrapFactory=He,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(q){const He=q.autoCapture;He&&!He.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,A.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return ze.\u0275fac=function(q){return new(q||ze)(i.Y36(i.SBq),i.Y36(V),i.Y36(d.K0))},ze.\u0275dir=i.lG2({type:ze,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[i.TTD]}),ze})();function Zt(ze){return 0===ze.buttons||0===ze.offsetX&&0===ze.offsetY}function zt(ze){const de=ze.touches&&ze.touches[0]||ze.changedTouches&&ze.changedTouches[0];return!(!de||-1!==de.identifier||null!=de.radiusX&&1!==de.radiusX||null!=de.radiusY&&1!==de.radiusY)}const fe=new i.OlP("cdk-input-modality-detector-options"),Te={ignoreKeys:[b.zL,b.jx,b.b2,b.MW,b.JU]},Je=(0,A.i$)({passive:!0,capture:!0});let Lt=(()=>{class ze{get mostRecentModality(){return this._modality.value}constructor(q,He,yt,ht){this._platform=q,this._mostRecentTarget=null,this._modality=new k.X(null),this._lastTouchMs=0,this._onKeydown=le=>{this._options?.ignoreKeys?.some(pe=>pe===le.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,A.sA)(le))},this._onMousedown=le=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Zt(le)?"keyboard":"mouse"),this._mostRecentTarget=(0,A.sA)(le))},this._onTouchstart=le=>{zt(le)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,A.sA)(le))},this._options={...Te,...ht},this.modalityDetected=this._modality.pipe((0,G.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ie.x)()),q.isBrowser&&He.runOutsideAngular(()=>{yt.addEventListener("keydown",this._onKeydown,Je),yt.addEventListener("mousedown",this._onMousedown,Je),yt.addEventListener("touchstart",this._onTouchstart,Je)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Je),document.removeEventListener("mousedown",this._onMousedown,Je),document.removeEventListener("touchstart",this._onTouchstart,Je))}}return ze.\u0275fac=function(q){return new(q||ze)(i.LFG(A.t4),i.LFG(i.R0b),i.LFG(d.K0),i.LFG(fe,8))},ze.\u0275prov=i.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();const Ke=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ge(){return null}}),Me=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let _e=0,it=(()=>{class ze{constructor(q,He,yt,ht){this._ngZone=He,this._defaultOptions=ht,this._document=yt,this._liveElement=q||this._createLiveElement()}announce(q,...He){const yt=this._defaultOptions;let ht,le;return 1===He.length&&"number"==typeof He[0]?le=He[0]:[ht,le]=He,this.clear(),clearTimeout(this._previousTimeout),ht||(ht=yt&&yt.politeness?yt.politeness:"polite"),null==le&&yt&&(le=yt.duration),this._liveElement.setAttribute("aria-live",ht),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(pe=>this._currentResolve=pe)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=q,"number"==typeof le&&(this._previousTimeout=setTimeout(()=>this.clear(),le)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const q="cdk-live-announcer-element",He=this._document.getElementsByClassName(q),yt=this._document.createElement("div");for(let ht=0;ht<He.length;ht++)He[ht].remove();return yt.classList.add(q),yt.classList.add("cdk-visually-hidden"),yt.setAttribute("aria-atomic","true"),yt.setAttribute("aria-live","polite"),yt.id="cdk-live-announcer-"+_e++,this._document.body.appendChild(yt),yt}_exposeAnnouncerToModals(q){const He=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let yt=0;yt<He.length;yt++){const ht=He[yt],le=ht.getAttribute("aria-owns");le?-1===le.indexOf(q)&&ht.setAttribute("aria-owns",le+" "+q):ht.setAttribute("aria-owns",q)}}}return ze.\u0275fac=function(q){return new(q||ze)(i.LFG(Ke,8),i.LFG(i.R0b),i.LFG(d.K0),i.LFG(Me,8))},ze.\u0275prov=i.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();const dn=new i.OlP("cdk-focus-monitor-default-options"),Rn=(0,A.i$)({passive:!0,capture:!0});let An=(()=>{class ze{constructor(q,He,yt,ht,le){this._ngZone=q,this._platform=He,this._inputModalityDetector=yt,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new p.xQ,this._rootNodeFocusAndBlurListener=pe=>{for(let Fe=(0,A.sA)(pe);Fe;Fe=Fe.parentElement)"focus"===pe.type?this._onFocus(pe,Fe):this._onBlur(pe,Fe)},this._document=ht,this._detectionMode=le?.detectionMode||0}monitor(q,He=!1){const yt=(0,ue.fI)(q);if(!this._platform.isBrowser||1!==yt.nodeType)return(0,f.of)(null);const ht=(0,A.kV)(yt)||this._getDocument(),le=this._elementInfo.get(yt);if(le)return He&&(le.checkChildren=!0),le.subject;const pe={checkChildren:He,subject:new p.xQ,rootNode:ht};return this._elementInfo.set(yt,pe),this._registerGlobalListeners(pe),pe.subject}stopMonitoring(q){const He=(0,ue.fI)(q),yt=this._elementInfo.get(He);yt&&(yt.subject.complete(),this._setClasses(He),this._elementInfo.delete(He),this._removeGlobalListeners(yt))}focusVia(q,He,yt){const ht=(0,ue.fI)(q);ht===this._getDocument().activeElement?this._getClosestElementsInfo(ht).forEach(([pe,Q])=>this._originChanged(pe,He,Q)):(this._setOrigin(He),"function"==typeof ht.focus&&ht.focus(yt))}ngOnDestroy(){this._elementInfo.forEach((q,He)=>this.stopMonitoring(He))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(q){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(q)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:q&&this._isLastInteractionFromInputLabel(q)?"mouse":"program"}_shouldBeAttributedToTouch(q){return 1===this._detectionMode||!!q?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(q,He){q.classList.toggle("cdk-focused",!!He),q.classList.toggle("cdk-touch-focused","touch"===He),q.classList.toggle("cdk-keyboard-focused","keyboard"===He),q.classList.toggle("cdk-mouse-focused","mouse"===He),q.classList.toggle("cdk-program-focused","program"===He)}_setOrigin(q,He=!1){this._ngZone.runOutsideAngular(()=>{this._origin=q,this._originFromTouchInteraction="touch"===q&&He,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(q,He){const yt=this._elementInfo.get(He),ht=(0,A.sA)(q);!yt||!yt.checkChildren&&He!==ht||this._originChanged(He,this._getFocusOrigin(ht),yt)}_onBlur(q,He){const yt=this._elementInfo.get(He);!yt||yt.checkChildren&&q.relatedTarget instanceof Node&&He.contains(q.relatedTarget)||(this._setClasses(He),this._emitOrigin(yt,null))}_emitOrigin(q,He){q.subject.observers.length&&this._ngZone.run(()=>q.subject.next(He))}_registerGlobalListeners(q){if(!this._platform.isBrowser)return;const He=q.rootNode,yt=this._rootNodeFocusListenerCount.get(He)||0;yt||this._ngZone.runOutsideAngular(()=>{He.addEventListener("focus",this._rootNodeFocusAndBlurListener,Rn),He.addEventListener("blur",this._rootNodeFocusAndBlurListener,Rn)}),this._rootNodeFocusListenerCount.set(He,yt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Ee.R)(this._stopInputModalityDetector)).subscribe(ht=>{this._setOrigin(ht,!0)}))}_removeGlobalListeners(q){const He=q.rootNode;if(this._rootNodeFocusListenerCount.has(He)){const yt=this._rootNodeFocusListenerCount.get(He);yt>1?this._rootNodeFocusListenerCount.set(He,yt-1):(He.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Rn),He.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Rn),this._rootNodeFocusListenerCount.delete(He))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(q,He,yt){this._setClasses(q,He),this._emitOrigin(yt,He),this._lastFocusOrigin=He}_getClosestElementsInfo(q){const He=[];return this._elementInfo.forEach((yt,ht)=>{(ht===q||yt.checkChildren&&ht.contains(q))&&He.push([ht,yt])}),He}_isLastInteractionFromInputLabel(q){const{_mostRecentTarget:He,mostRecentModality:yt}=this._inputModalityDetector;if("mouse"!==yt||!He||He===q||"INPUT"!==q.nodeName&&"TEXTAREA"!==q.nodeName||q.disabled)return!1;const ht=q.labels;if(ht)for(let le=0;le<ht.length;le++)if(ht[le].contains(He))return!0;return!1}}return ze.\u0275fac=function(q){return new(q||ze)(i.LFG(i.R0b),i.LFG(A.t4),i.LFG(Lt),i.LFG(d.K0,8),i.LFG(dn,8))},ze.\u0275prov=i.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),Gt=(()=>{class ze{constructor(q,He){this._elementRef=q,this._focusMonitor=He,this._focusOrigin=null,this.cdkFocusChange=new i.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const q=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(q,1===q.nodeType&&q.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(He=>{this._focusOrigin=He,this.cdkFocusChange.emit(He)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return ze.\u0275fac=function(q){return new(q||ze)(i.Y36(i.SBq),i.Y36(An))},ze.\u0275dir=i.lG2({type:ze,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),ze})();const gn="cdk-high-contrast-black-on-white",St="cdk-high-contrast-white-on-black",cn="cdk-high-contrast-active";let Qn=(()=>{class ze{constructor(q,He){this._platform=q,this._document=He,this._breakpointSubscription=(0,i.f3M)(Qe.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const q=this._document.createElement("div");q.style.backgroundColor="rgb(1,2,3)",q.style.position="absolute",this._document.body.appendChild(q);const He=this._document.defaultView||window,yt=He&&He.getComputedStyle?He.getComputedStyle(q):null,ht=(yt&&yt.backgroundColor||"").replace(/ /g,"");switch(q.remove(),ht){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const q=this._document.body.classList;q.remove(cn,gn,St),this._hasCheckedHighContrastMode=!0;const He=this.getHighContrastMode();1===He?q.add(cn,gn):2===He&&q.add(cn,St)}}}return ze.\u0275fac=function(q){return new(q||ze)(i.LFG(A.t4),i.LFG(d.K0))},ze.\u0275prov=i.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),ai=(()=>{class ze{constructor(q){q._applyBodyHighContrastModeCssClasses()}}return ze.\u0275fac=function(q){return new(q||ze)(i.LFG(Qn))},ze.\u0275mod=i.oAB({type:ze}),ze.\u0275inj=i.cJS({imports:[Ze.Q8]}),ze})()},445:(vn,_t,y)=>{"use strict";y.d(_t,{Is:()=>f,vT:()=>J});var d=y(4650),i=y(6895);const A=new d.OlP("cdk-dir-doc",{providedIn:"root",factory:function p(){return(0,d.f3M)(i.K0)}}),v=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let f=(()=>{class Y{constructor(B){this.value="ltr",this.change=new d.vpe,B&&(this.value=function k(Y){const W=Y?.toLowerCase()||"";return"auto"===W&&typeof navigator<"u"&&navigator?.language?v.test(navigator.language)?"rtl":"ltr":"rtl"===W?"rtl":"ltr"}((B.body?B.body.dir:null)||(B.documentElement?B.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return Y.\u0275fac=function(B){return new(B||Y)(d.LFG(A,8))},Y.\u0275prov=d.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})(),J=(()=>{class Y{}return Y.\u0275fac=function(B){return new(B||Y)},Y.\u0275mod=d.oAB({type:Y}),Y.\u0275inj=d.cJS({}),Y})()},1281:(vn,_t,y)=>{"use strict";y.d(_t,{Eq:()=>v,HM:()=>k,Ig:()=>i,du:()=>b,fI:()=>f,su:()=>A,t6:()=>p});var d=y(4650);function i(J){return null!=J&&"false"!=`${J}`}function A(J,Y=0){return p(J)?Number(J):Y}function p(J){return!isNaN(parseFloat(J))&&!isNaN(Number(J))}function v(J){return Array.isArray(J)?J:[J]}function k(J){return null==J?"":"string"==typeof J?J:`${J}px`}function f(J){return J instanceof d.SBq?J.nativeElement:J}function b(J,Y=/\s+/){const W=[];if(null!=J){const B=Array.isArray(J)?J:`${J}`.split(Y);for(const Z of B){const G=`${Z}`.trim();G&&W.push(G)}}return W}},5017:(vn,_t,y)=>{"use strict";y.d(_t,{A8:()=>W,Ov:()=>J,Z9:()=>v,eX:()=>b,k:()=>B,o2:()=>p,yy:()=>f});var d=y(1762),i=y(8929),A=y(4650);class p{}function v(Z){return Z&&"function"==typeof Z.connect&&!(Z instanceof d.c)}class f{applyChanges(G,ie,Ee,ue,Ze){G.forEachOperation((Qe,vt,$e)=>{let Ge,Ce;if(null==Qe.previousIndex){const ke=Ee(Qe,vt,$e);Ge=ie.createEmbeddedView(ke.templateRef,ke.context,ke.index),Ce=1}else null==$e?(ie.remove(vt),Ce=3):(Ge=ie.get(vt),ie.move(Ge,$e),Ce=2);Ze&&Ze({context:Ge?.context,operation:Ce,record:Qe})})}detach(){}}class b{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(G,ie,Ee,ue,Ze){G.forEachOperation((Qe,vt,$e)=>{let Ge,Ce;null==Qe.previousIndex?(Ge=this._insertView(()=>Ee(Qe,vt,$e),$e,ie,ue(Qe)),Ce=Ge?1:0):null==$e?(this._detachAndCacheView(vt,ie),Ce=3):(Ge=this._moveView(vt,$e,ie,ue(Qe)),Ce=2),Ze&&Ze({context:Ge?.context,operation:Ce,record:Qe})})}detach(){for(const G of this._viewCache)G.destroy();this._viewCache=[]}_insertView(G,ie,Ee,ue){const Ze=this._insertViewFromCache(ie,Ee);if(Ze)return void(Ze.context.$implicit=ue);const Qe=G();return Ee.createEmbeddedView(Qe.templateRef,Qe.context,Qe.index)}_detachAndCacheView(G,ie){const Ee=ie.detach(G);this._maybeCacheView(Ee,ie)}_moveView(G,ie,Ee,ue){const Ze=Ee.get(G);return Ee.move(Ze,ie),Ze.context.$implicit=ue,Ze}_maybeCacheView(G,ie){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(G);else{const Ee=ie.indexOf(G);-1===Ee?G.destroy():ie.remove(Ee)}}_insertViewFromCache(G,ie){const Ee=this._viewCache.pop();return Ee&&ie.insert(Ee,G),Ee||null}}class J{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(G=!1,ie,Ee=!0,ue){this._multiple=G,this._emitChanges=Ee,this.compareWith=ue,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new i.xQ,ie&&ie.length&&(G?ie.forEach(Ze=>this._markSelected(Ze)):this._markSelected(ie[0]),this._selectedToEmit.length=0)}select(...G){this._verifyValueAssignment(G),G.forEach(Ee=>this._markSelected(Ee));const ie=this._hasQueuedChanges();return this._emitChangeEvent(),ie}deselect(...G){this._verifyValueAssignment(G),G.forEach(Ee=>this._unmarkSelected(Ee));const ie=this._hasQueuedChanges();return this._emitChangeEvent(),ie}setSelection(...G){this._verifyValueAssignment(G);const ie=this.selected,Ee=new Set(G);G.forEach(Ze=>this._markSelected(Ze)),ie.filter(Ze=>!Ee.has(Ze)).forEach(Ze=>this._unmarkSelected(Ze));const ue=this._hasQueuedChanges();return this._emitChangeEvent(),ue}toggle(G){return this.isSelected(G)?this.deselect(G):this.select(G)}clear(G=!0){this._unmarkAll();const ie=this._hasQueuedChanges();return G&&this._emitChangeEvent(),ie}isSelected(G){return this._selection.has(this._getConcreteValue(G))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(G){this._multiple&&this.selected&&this._selected.sort(G)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(G){G=this._getConcreteValue(G),this.isSelected(G)||(this._multiple||this._unmarkAll(),this.isSelected(G)||this._selection.add(G),this._emitChanges&&this._selectedToEmit.push(G))}_unmarkSelected(G){G=this._getConcreteValue(G),this.isSelected(G)&&(this._selection.delete(G),this._emitChanges&&this._deselectedToEmit.push(G))}_unmarkAll(){this.isEmpty()||this._selection.forEach(G=>this._unmarkSelected(G))}_verifyValueAssignment(G){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(G){if(this.compareWith){for(let ie of this._selection)if(this.compareWith(G,ie))return ie;return G}return G}}let W=(()=>{class Z{constructor(){this._listeners=[]}notify(ie,Ee){for(let ue of this._listeners)ue(ie,Ee)}listen(ie){return this._listeners.push(ie),()=>{this._listeners=this._listeners.filter(Ee=>ie!==Ee)}}ngOnDestroy(){this._listeners=[]}}return Z.\u0275fac=function(ie){return new(ie||Z)},Z.\u0275prov=A.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})();const B=new A.OlP("_ViewRepeater")},3977:(vn,_t,y)=>{"use strict";y.d(_t,{Zt:()=>q,Wj:()=>Gt,_t:()=>yt,bA:()=>ne});var d=y(4650),i=y(6895),A=y(7261),p=y(3353),v=y(1281),k=y(2687),f=y(8929),b=y(2654),J=y(6498),Y=y(353),W=y(4241);function Z(ht){const{subscriber:le,counter:pe,period:Q}=ht;le.next(pe),this.schedule({subscriber:le,counter:pe+1,period:Q},Q)}var G=y(352),ie=y(6787),Ee=y(7625),ue=y(1059),Ze=y(4850),Qe=y(2986),vt=y(2868),$e=y(7545),Ge=y(445);function Ce(ht,le,pe){for(let Q in le)if(le.hasOwnProperty(Q)){const Fe=le[Q];Fe?ht.setProperty(Q,Fe,pe?.has(Q)?"important":""):ht.removeProperty(Q)}return ht}function ke(ht,le){const pe=le?"":"none";Ce(ht.style,{"touch-action":le?"":"none","-webkit-user-drag":le?"":"none","-webkit-tap-highlight-color":le?"":"transparent","user-select":pe,"-ms-user-select":pe,"-webkit-user-select":pe,"-moz-user-select":pe})}function me(ht,le,pe){Ce(ht.style,{position:le?"":"fixed",top:le?"":"0",opacity:le?"":"0",left:le?"":"-999em"},pe)}function re(ht,le){return le&&"none"!=le?ht+" "+le:ht}function ye(ht){const le=ht.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(ht)*le}function Ae(ht,le){return ht.getPropertyValue(le).split(",").map(Q=>Q.trim())}function tt(ht){const le=ht.getBoundingClientRect();return{top:le.top,right:le.right,bottom:le.bottom,left:le.left,width:le.width,height:le.height,x:le.x,y:le.y}}function ot(ht,le,pe){const{top:Q,bottom:Fe,left:xt,right:nt}=ht;return pe>=Q&&pe<=Fe&&le>=xt&&le<=nt}function at(ht,le,pe){ht.top+=le,ht.bottom=ht.top+ht.height,ht.left+=pe,ht.right=ht.left+ht.width}function pt(ht,le,pe,Q){const{top:Fe,right:xt,bottom:nt,left:Ct,width:qe,height:We}=ht,Rt=qe*le,Ve=We*le;return Q>Fe-Ve&&Q<nt+Ve&&pe>Ct-Rt&&pe<xt+Rt}class ft{constructor(le){this._document=le,this.positions=new Map}clear(){this.positions.clear()}cache(le){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),le.forEach(pe=>{this.positions.set(pe,{scrollPosition:{top:pe.scrollTop,left:pe.scrollLeft},clientRect:tt(pe)})})}handleScroll(le){const pe=(0,p.sA)(le),Q=this.positions.get(pe);if(!Q)return null;const Fe=Q.scrollPosition;let xt,nt;if(pe===this._document){const We=this.getViewportScrollPosition();xt=We.top,nt=We.left}else xt=pe.scrollTop,nt=pe.scrollLeft;const Ct=Fe.top-xt,qe=Fe.left-nt;return this.positions.forEach((We,Rt)=>{We.clientRect&&pe!==Rt&&pe.contains(Rt)&&at(We.clientRect,Ct,qe)}),Fe.top=xt,Fe.left=nt,{top:Ct,left:qe}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Et(ht){const le=ht.cloneNode(!0),pe=le.querySelectorAll("[id]"),Q=ht.nodeName.toLowerCase();le.removeAttribute("id");for(let Fe=0;Fe<pe.length;Fe++)pe[Fe].removeAttribute("id");return"canvas"===Q?dt(ht,le):("input"===Q||"select"===Q||"textarea"===Q)&&je(ht,le),be("canvas",ht,le,dt),be("input, textarea, select",ht,le,je),le}function be(ht,le,pe,Q){const Fe=le.querySelectorAll(ht);if(Fe.length){const xt=pe.querySelectorAll(ht);for(let nt=0;nt<Fe.length;nt++)Q(Fe[nt],xt[nt])}}let Pe=0;function je(ht,le){"file"!==le.type&&(le.value=ht.value),"radio"===le.type&&le.name&&(le.name=`mat-clone-${le.name}-${Pe++}`)}function dt(ht,le){const pe=le.getContext("2d");if(pe)try{pe.drawImage(ht,0,0)}catch{}}const et=(0,p.i$)({passive:!0}),gt=(0,p.i$)({passive:!1}),we=new Set(["position"]);class ce{get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(le){const pe=(0,v.Ig)(le);pe!==this._disabled&&(this._disabled=pe,this._toggleNativeDragInteractions(),this._handles.forEach(Q=>ke(Q,pe)))}constructor(le,pe,Q,Fe,xt,nt){this._config=pe,this._document=Q,this._ngZone=Fe,this._viewportRuler=xt,this._dragDropRegistry=nt,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new f.xQ,this._pointerMoveSubscription=b.w.EMPTY,this._pointerUpSubscription=b.w.EMPTY,this._scrollSubscription=b.w.EMPTY,this._resizeSubscription=b.w.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new f.xQ,this.started=new f.xQ,this.released=new f.xQ,this.ended=new f.xQ,this.entered=new f.xQ,this.exited=new f.xQ,this.dropped=new f.xQ,this.moved=this._moveEvents,this._pointerDown=Ct=>{if(this.beforeStarted.next(),this._handles.length){const qe=this._getTargetHandle(Ct);qe&&!this._disabledHandles.has(qe)&&!this.disabled&&this._initializeDragSequence(qe,Ct)}else this.disabled||this._initializeDragSequence(this._rootElement,Ct)},this._pointerMove=Ct=>{const qe=this._getPointerPositionOnPage(Ct);if(!this._hasStartedDragging){if(Math.abs(qe.x-this._pickupPositionOnPage.x)+Math.abs(qe.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const fn=Date.now()>=this._dragStartTime+this._getDragStartDelay(Ct),Ln=this._dropContainer;if(!fn)return void this._endDragSequence(Ct);(!Ln||!Ln.isDragging()&&!Ln.isReceiving())&&(Ct.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(Ct)))}return}Ct.preventDefault();const We=this._getConstrainedPointerPosition(qe);if(this._hasMoved=!0,this._lastKnownPointerPosition=qe,this._updatePointerDirectionDelta(We),this._dropContainer)this._updateActiveDropContainer(We,qe);else{const Rt=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,Ve=this._activeTransform;Ve.x=We.x-Rt.x+this._passiveTransform.x,Ve.y=We.y-Rt.y+this._passiveTransform.y,this._applyRootElementTransform(Ve.x,Ve.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:We,event:Ct,distance:this._getDragDistance(We),delta:this._pointerDirectionDelta})})},this._pointerUp=Ct=>{this._endDragSequence(Ct)},this._nativeDragStart=Ct=>{if(this._handles.length){const qe=this._getTargetHandle(Ct);qe&&!this._disabledHandles.has(qe)&&!this.disabled&&Ct.preventDefault()}else this.disabled||Ct.preventDefault()},this.withRootElement(le).withParent(pe.parentDragRef||null),this._parentPositions=new ft(Q),nt.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(le){this._handles=le.map(Q=>(0,v.fI)(Q)),this._handles.forEach(Q=>ke(Q,this.disabled)),this._toggleNativeDragInteractions();const pe=new Set;return this._disabledHandles.forEach(Q=>{this._handles.indexOf(Q)>-1&&pe.add(Q)}),this._disabledHandles=pe,this}withPreviewTemplate(le){return this._previewTemplate=le,this}withPlaceholderTemplate(le){return this._placeholderTemplate=le,this}withRootElement(le){const pe=(0,v.fI)(le);return pe!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{pe.addEventListener("mousedown",this._pointerDown,gt),pe.addEventListener("touchstart",this._pointerDown,et),pe.addEventListener("dragstart",this._nativeDragStart,gt)}),this._initialTransform=void 0,this._rootElement=pe),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(le){return this._boundaryElement=le?(0,v.fI)(le):null,this._resizeSubscription.unsubscribe(),le&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(le){return this._parentDragRef=le,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(le){!this._disabledHandles.has(le)&&this._handles.indexOf(le)>-1&&(this._disabledHandles.add(le),ke(le,!0))}enableHandle(le){this._disabledHandles.has(le)&&(this._disabledHandles.delete(le),ke(le,this.disabled))}withDirection(le){return this._direction=le,this}_withDropContainer(le){this._dropContainer=le}getFreeDragPosition(){const le=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:le.x,y:le.y}}setFreeDragPosition(le){return this._activeTransform={x:0,y:0},this._passiveTransform.x=le.x,this._passiveTransform.y=le.y,this._dropContainer||this._applyRootElementTransform(le.x,le.y),this}withPreviewContainer(le){return this._previewContainer=le,this}_sortFromLastPointerPosition(){const le=this._lastKnownPointerPosition;le&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(le),le)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(le){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:le}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(le),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const pe=this._getPointerPositionOnPage(le);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(pe),dropPoint:pe,event:le})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(le){S(le)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const pe=this._dropContainer;if(pe){const Q=this._rootElement,Fe=Q.parentNode,xt=this._placeholder=this._createPlaceholderElement(),nt=this._anchor=this._anchor||this._document.createComment(""),Ct=this._getShadowRoot();Fe.insertBefore(nt,Q),this._initialTransform=Q.style.transform||"",this._preview=this._createPreviewElement(),me(Q,!1,we),this._document.body.appendChild(Fe.replaceChild(xt,Q)),this._getPreviewInsertionPoint(Fe,Ct).appendChild(this._preview),this.started.next({source:this,event:le}),pe.start(),this._initialContainer=pe,this._initialIndex=pe.getItemIndex(this)}else this.started.next({source:this,event:le}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(pe?pe.getScrollableParents():[])}_initializeDragSequence(le,pe){this._parentDragRef&&pe.stopPropagation();const Q=this.isDragging(),Fe=S(pe),xt=!Fe&&0!==pe.button,nt=this._rootElement,Ct=(0,p.sA)(pe),qe=!Fe&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),We=Fe?(0,k.yG)(pe):(0,k.X6)(pe);if(Ct&&Ct.draggable&&"mousedown"===pe.type&&pe.preventDefault(),Q||xt||qe||We)return;if(this._handles.length){const At=nt.style;this._rootElementTapHighlight=At.webkitTapHighlightColor||"",At.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(At=>this._updateOnScroll(At)),this._boundaryElement&&(this._boundaryRect=tt(this._boundaryElement));const Rt=this._previewTemplate;this._pickupPositionInElement=Rt&&Rt.template&&!Rt.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,le,pe);const Ve=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(pe);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Ve.x,y:Ve.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,pe)}_cleanupDragArtifacts(le){me(this._rootElement,!0,we),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const pe=this._dropContainer,Q=pe.getItemIndex(this),Fe=this._getPointerPositionOnPage(le),xt=this._getDragDistance(Fe),nt=pe._isOverContainer(Fe.x,Fe.y);this.ended.next({source:this,distance:xt,dropPoint:Fe,event:le}),this.dropped.next({item:this,currentIndex:Q,previousIndex:this._initialIndex,container:pe,previousContainer:this._initialContainer,isPointerOverContainer:nt,distance:xt,dropPoint:Fe,event:le}),pe.drop(this,Q,this._initialIndex,this._initialContainer,nt,xt,Fe,le),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:le,y:pe},{x:Q,y:Fe}){let xt=this._initialContainer._getSiblingContainerFromPosition(this,le,pe);!xt&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(le,pe)&&(xt=this._initialContainer),xt&&xt!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=xt,this._dropContainer.enter(this,le,pe,xt===this._initialContainer&&xt.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:xt,currentIndex:xt.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(Q,Fe),this._dropContainer._sortItem(this,le,pe,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(le,pe):this._applyPreviewTransform(le-this._pickupPositionInElement.x,pe-this._pickupPositionInElement.y))}_createPreviewElement(){const le=this._previewTemplate,pe=this.previewClass,Q=le?le.template:null;let Fe;if(Q&&le){const xt=le.matchSize?this._initialClientRect:null,nt=le.viewContainer.createEmbeddedView(Q,le.context);nt.detectChanges(),Fe=F(nt,this._document),this._previewRef=nt,le.matchSize?V(Fe,xt):Fe.style.transform=ve(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else Fe=Et(this._rootElement),V(Fe,this._initialClientRect),this._initialTransform&&(Fe.style.transform=this._initialTransform);return Ce(Fe.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},we),ke(Fe,!1),Fe.classList.add("cdk-drag-preview"),Fe.setAttribute("dir",this._direction),pe&&(Array.isArray(pe)?pe.forEach(xt=>Fe.classList.add(xt)):Fe.classList.add(pe)),Fe}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const le=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(le.left,le.top);const pe=function Oe(ht){const le=getComputedStyle(ht),pe=Ae(le,"transition-property"),Q=pe.find(Ct=>"transform"===Ct||"all"===Ct);if(!Q)return 0;const Fe=pe.indexOf(Q),xt=Ae(le,"transition-duration"),nt=Ae(le,"transition-delay");return ye(xt[Fe])+ye(nt[Fe])}(this._preview);return 0===pe?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(Q=>{const Fe=nt=>{(!nt||(0,p.sA)(nt)===this._preview&&"transform"===nt.propertyName)&&(this._preview?.removeEventListener("transitionend",Fe),Q(),clearTimeout(xt))},xt=setTimeout(Fe,1.5*pe);this._preview.addEventListener("transitionend",Fe)}))}_createPlaceholderElement(){const le=this._placeholderTemplate,pe=le?le.template:null;let Q;return pe?(this._placeholderRef=le.viewContainer.createEmbeddedView(pe,le.context),this._placeholderRef.detectChanges(),Q=F(this._placeholderRef,this._document)):Q=Et(this._rootElement),Q.style.pointerEvents="none",Q.classList.add("cdk-drag-placeholder"),Q}_getPointerPositionInElement(le,pe,Q){const Fe=pe===this._rootElement?null:pe,xt=Fe?Fe.getBoundingClientRect():le,nt=S(Q)?Q.targetTouches[0]:Q,Ct=this._getViewportScrollPosition();return{x:xt.left-le.left+(nt.pageX-xt.left-Ct.left),y:xt.top-le.top+(nt.pageY-xt.top-Ct.top)}}_getPointerPositionOnPage(le){const pe=this._getViewportScrollPosition(),Q=S(le)?le.touches[0]||le.changedTouches[0]||{pageX:0,pageY:0}:le,Fe=Q.pageX-pe.left,xt=Q.pageY-pe.top;if(this._ownerSVGElement){const nt=this._ownerSVGElement.getScreenCTM();if(nt){const Ct=this._ownerSVGElement.createSVGPoint();return Ct.x=Fe,Ct.y=xt,Ct.matrixTransform(nt.inverse())}}return{x:Fe,y:xt}}_getConstrainedPointerPosition(le){const pe=this._dropContainer?this._dropContainer.lockAxis:null;let{x:Q,y:Fe}=this.constrainPosition?this.constrainPosition(le,this,this._initialClientRect,this._pickupPositionInElement):le;if("x"===this.lockAxis||"x"===pe?Fe=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===pe)&&(Q=this._pickupPositionOnPage.x),this._boundaryRect){const{x:xt,y:nt}=this._pickupPositionInElement,Ct=this._boundaryRect,{width:qe,height:We}=this._getPreviewRect(),Rt=Ct.top+nt,Ve=Ct.bottom-(We-nt);Q=se(Q,Ct.left+xt,Ct.right-(qe-xt)),Fe=se(Fe,Rt,Ve)}return{x:Q,y:Fe}}_updatePointerDirectionDelta(le){const{x:pe,y:Q}=le,Fe=this._pointerDirectionDelta,xt=this._pointerPositionAtLastDirectionChange,nt=Math.abs(pe-xt.x),Ct=Math.abs(Q-xt.y);return nt>this._config.pointerDirectionChangeThreshold&&(Fe.x=pe>xt.x?1:-1,xt.x=pe),Ct>this._config.pointerDirectionChangeThreshold&&(Fe.y=Q>xt.y?1:-1,xt.y=Q),Fe}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const le=this._handles.length>0||!this.isDragging();le!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=le,ke(this._rootElement,le))}_removeRootElementListeners(le){le.removeEventListener("mousedown",this._pointerDown,gt),le.removeEventListener("touchstart",this._pointerDown,et),le.removeEventListener("dragstart",this._nativeDragStart,gt)}_applyRootElementTransform(le,pe){const Q=ve(le,pe),Fe=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Fe.transform&&"none"!=Fe.transform?Fe.transform:""),Fe.transform=re(Q,this._initialTransform)}_applyPreviewTransform(le,pe){const Q=this._previewTemplate?.template?void 0:this._initialTransform,Fe=ve(le,pe);this._preview.style.transform=re(Fe,Q)}_getDragDistance(le){const pe=this._pickupPositionOnPage;return pe?{x:le.x-pe.x,y:le.y-pe.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:le,y:pe}=this._passiveTransform;if(0===le&&0===pe||this.isDragging()||!this._boundaryElement)return;const Q=this._rootElement.getBoundingClientRect(),Fe=this._boundaryElement.getBoundingClientRect();if(0===Fe.width&&0===Fe.height||0===Q.width&&0===Q.height)return;const xt=Fe.left-Q.left,nt=Q.right-Fe.right,Ct=Fe.top-Q.top,qe=Q.bottom-Fe.bottom;Fe.width>Q.width?(xt>0&&(le+=xt),nt>0&&(le-=nt)):le=0,Fe.height>Q.height?(Ct>0&&(pe+=Ct),qe>0&&(pe-=qe)):pe=0,(le!==this._passiveTransform.x||pe!==this._passiveTransform.y)&&this.setFreeDragPosition({y:pe,x:le})}_getDragStartDelay(le){const pe=this.dragStartDelay;return"number"==typeof pe?pe:S(le)?pe.touch:pe?pe.mouse:0}_updateOnScroll(le){const pe=this._parentPositions.handleScroll(le);if(pe){const Q=(0,p.sA)(le);this._boundaryRect&&Q!==this._boundaryElement&&Q.contains(this._boundaryElement)&&at(this._boundaryRect,pe.top,pe.left),this._pickupPositionOnPage.x+=pe.left,this._pickupPositionOnPage.y+=pe.top,this._dropContainer||(this._activeTransform.x-=pe.left,this._activeTransform.y-=pe.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,p.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(le,pe){const Q=this._previewContainer||"global";if("parent"===Q)return le;if("global"===Q){const Fe=this._document;return pe||Fe.fullscreenElement||Fe.webkitFullscreenElement||Fe.mozFullScreenElement||Fe.msFullscreenElement||Fe.body}return(0,v.fI)(Q)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(le){return this._handles.find(pe=>le.target&&(le.target===pe||pe.contains(le.target)))}}function ve(ht,le){return`translate3d(${Math.round(ht)}px, ${Math.round(le)}px, 0)`}function se(ht,le,pe){return Math.max(le,Math.min(pe,ht))}function S(ht){return"t"===ht.type[0]}function F(ht,le){const pe=ht.rootNodes;if(1===pe.length&&pe[0].nodeType===le.ELEMENT_NODE)return pe[0];const Q=le.createElement("div");return pe.forEach(Fe=>Q.appendChild(Fe)),Q}function V(ht,le){ht.style.width=`${le.width}px`,ht.style.height=`${le.height}px`,ht.style.transform=ve(le.left,le.top)}function ne(ht,le,pe){const Q=nn(le,ht.length-1),Fe=nn(pe,ht.length-1);if(Q===Fe)return;const xt=ht[Q],nt=Fe<Q?-1:1;for(let Ct=Q;Ct!==Fe;Ct+=nt)ht[Ct]=ht[Ct+nt];ht[Fe]=xt}function nn(ht,le){return Math.max(0,Math.min(le,ht))}class Jt{constructor(le,pe){this._element=le,this._dragDropRegistry=pe,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(le){this.withItems(le)}sort(le,pe,Q,Fe){const xt=this._itemPositions,nt=this._getItemIndexFromPointerPosition(le,pe,Q,Fe);if(-1===nt&&xt.length>0)return null;const Ct="horizontal"===this.orientation,qe=xt.findIndex(Oi=>Oi.drag===le),We=xt[nt],Ve=We.clientRect,At=qe>nt?1:-1,fn=this._getItemOffsetPx(xt[qe].clientRect,Ve,At),Ln=this._getSiblingOffsetPx(qe,xt,At),Ti=xt.slice();return ne(xt,qe,nt),xt.forEach((Oi,zi)=>{if(Ti[zi]===Oi)return;const ur=Oi.drag===le,Mt=ur?fn:Ln,an=ur?le.getPlaceholderElement():Oi.drag.getRootElement();Oi.offset+=Mt,Ct?(an.style.transform=re(`translate3d(${Math.round(Oi.offset)}px, 0, 0)`,Oi.initialTransform),at(Oi.clientRect,0,Mt)):(an.style.transform=re(`translate3d(0, ${Math.round(Oi.offset)}px, 0)`,Oi.initialTransform),at(Oi.clientRect,Mt,0))}),this._previousSwap.overlaps=ot(Ve,pe,Q),this._previousSwap.drag=We.drag,this._previousSwap.delta=Ct?Fe.x:Fe.y,{previousIndex:qe,currentIndex:nt}}enter(le,pe,Q,Fe){const xt=null==Fe||Fe<0?this._getItemIndexFromPointerPosition(le,pe,Q):Fe,nt=this._activeDraggables,Ct=nt.indexOf(le),qe=le.getPlaceholderElement();let We=nt[xt];if(We===le&&(We=nt[xt+1]),!We&&(null==xt||-1===xt||xt<nt.length-1)&&this._shouldEnterAsFirstChild(pe,Q)&&(We=nt[0]),Ct>-1&&nt.splice(Ct,1),We&&!this._dragDropRegistry.isDragging(We)){const Rt=We.getRootElement();Rt.parentElement.insertBefore(qe,Rt),nt.splice(xt,0,le)}else(0,v.fI)(this._element).appendChild(qe),nt.push(le);qe.style.transform="",this._cacheItemPositions()}withItems(le){this._activeDraggables=le.slice(),this._cacheItemPositions()}withSortPredicate(le){this._sortPredicate=le}reset(){this._activeDraggables.forEach(le=>{const pe=le.getRootElement();if(pe){const Q=this._itemPositions.find(Fe=>Fe.drag===le)?.initialTransform;pe.style.transform=Q||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(le){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(Q=>Q.drag===le)}updateOnScroll(le,pe){this._itemPositions.forEach(({clientRect:Q})=>{at(Q,le,pe)}),this._itemPositions.forEach(({drag:Q})=>{this._dragDropRegistry.isDragging(Q)&&Q._sortFromLastPointerPosition()})}_cacheItemPositions(){const le="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(pe=>{const Q=pe.getVisibleElement();return{drag:pe,offset:0,initialTransform:Q.style.transform||"",clientRect:tt(Q)}}).sort((pe,Q)=>le?pe.clientRect.left-Q.clientRect.left:pe.clientRect.top-Q.clientRect.top)}_getItemOffsetPx(le,pe,Q){const Fe="horizontal"===this.orientation;let xt=Fe?pe.left-le.left:pe.top-le.top;return-1===Q&&(xt+=Fe?pe.width-le.width:pe.height-le.height),xt}_getSiblingOffsetPx(le,pe,Q){const Fe="horizontal"===this.orientation,xt=pe[le].clientRect,nt=pe[le+-1*Q];let Ct=xt[Fe?"width":"height"]*Q;if(nt){const qe=Fe?"left":"top",We=Fe?"right":"bottom";-1===Q?Ct-=nt.clientRect[qe]-xt[We]:Ct+=xt[qe]-nt.clientRect[We]}return Ct}_shouldEnterAsFirstChild(le,pe){if(!this._activeDraggables.length)return!1;const Q=this._itemPositions,Fe="horizontal"===this.orientation;if(Q[0].drag!==this._activeDraggables[0]){const nt=Q[Q.length-1].clientRect;return Fe?le>=nt.right:pe>=nt.bottom}{const nt=Q[0].clientRect;return Fe?le<=nt.left:pe<=nt.top}}_getItemIndexFromPointerPosition(le,pe,Q,Fe){const xt="horizontal"===this.orientation,nt=this._itemPositions.findIndex(({drag:Ct,clientRect:qe})=>Ct!==le&&((!Fe||Ct!==this._previousSwap.drag||!this._previousSwap.overlaps||(xt?Fe.x:Fe.y)!==this._previousSwap.delta)&&(xt?pe>=Math.floor(qe.left)&&pe<Math.floor(qe.right):Q>=Math.floor(qe.top)&&Q<Math.floor(qe.bottom))));return-1!==nt&&this._sortPredicate(nt,le)?nt:-1}}const Zt=.05;class zt{constructor(le,pe,Q,Fe,xt){this._dragDropRegistry=pe,this._ngZone=Fe,this._viewportRuler=xt,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new f.xQ,this.entered=new f.xQ,this.exited=new f.xQ,this.dropped=new f.xQ,this.sorted=new f.xQ,this.receivingStarted=new f.xQ,this.receivingStopped=new f.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=b.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new f.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function B(ht=0,le=Y.P){return(!(0,W.k)(ht)||ht<0)&&(ht=0),(!le||"function"!=typeof le.schedule)&&(le=Y.P),new J.y(pe=>(pe.add(le.schedule(Z,ht,{subscriber:pe,counter:0,period:ht})),pe))}(0,G.Z).pipe((0,Ee.R)(this._stopScrollTimers)).subscribe(()=>{const nt=this._scrollNode,Ct=this.autoScrollStep;1===this._verticalScrollDirection?nt.scrollBy(0,-Ct):2===this._verticalScrollDirection&&nt.scrollBy(0,Ct),1===this._horizontalScrollDirection?nt.scrollBy(-Ct,0):2===this._horizontalScrollDirection&&nt.scrollBy(Ct,0)})},this.element=(0,v.fI)(le),this._document=Q,this.withScrollableParents([this.element]),pe.registerDropContainer(this),this._parentPositions=new ft(Q),this._sortStrategy=new Jt(this.element,pe),this._sortStrategy.withSortPredicate((nt,Ct)=>this.sortPredicate(nt,Ct,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(le,pe,Q,Fe){this._draggingStarted(),null==Fe&&this.sortingDisabled&&(Fe=this._draggables.indexOf(le)),this._sortStrategy.enter(le,pe,Q,Fe),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:le,container:this,currentIndex:this.getItemIndex(le)})}exit(le){this._reset(),this.exited.next({item:le,container:this})}drop(le,pe,Q,Fe,xt,nt,Ct,qe={}){this._reset(),this.dropped.next({item:le,currentIndex:pe,previousIndex:Q,container:this,previousContainer:Fe,isPointerOverContainer:xt,distance:nt,dropPoint:Ct,event:qe})}withItems(le){const pe=this._draggables;return this._draggables=le,le.forEach(Q=>Q._withDropContainer(this)),this.isDragging()&&(pe.filter(Fe=>Fe.isDragging()).every(Fe=>-1===le.indexOf(Fe))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(le){return this._sortStrategy.direction=le,this}connectedTo(le){return this._siblings=le.slice(),this}withOrientation(le){return this._sortStrategy.orientation=le,this}withScrollableParents(le){const pe=(0,v.fI)(this.element);return this._scrollableElements=-1===le.indexOf(pe)?[pe,...le]:le.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(le){return this._isDragging?this._sortStrategy.getItemIndex(le):this._draggables.indexOf(le)}isReceiving(){return this._activeSiblings.size>0}_sortItem(le,pe,Q,Fe){if(this.sortingDisabled||!this._clientRect||!pt(this._clientRect,.05,pe,Q))return;const xt=this._sortStrategy.sort(le,pe,Q,Fe);xt&&this.sorted.next({previousIndex:xt.previousIndex,currentIndex:xt.currentIndex,container:this,item:le})}_startScrollingIfNecessary(le,pe){if(this.autoScrollDisabled)return;let Q,Fe=0,xt=0;if(this._parentPositions.positions.forEach((nt,Ct)=>{Ct===this._document||!nt.clientRect||Q||pt(nt.clientRect,.05,le,pe)&&([Fe,xt]=function lt(ht,le,pe,Q){const Fe=fe(le,Q),xt=Te(le,pe);let nt=0,Ct=0;if(Fe){const qe=ht.scrollTop;1===Fe?qe>0&&(nt=1):ht.scrollHeight-qe>ht.clientHeight&&(nt=2)}if(xt){const qe=ht.scrollLeft;1===xt?qe>0&&(Ct=1):ht.scrollWidth-qe>ht.clientWidth&&(Ct=2)}return[nt,Ct]}(Ct,nt.clientRect,le,pe),(Fe||xt)&&(Q=Ct))}),!Fe&&!xt){const{width:nt,height:Ct}=this._viewportRuler.getViewportSize(),qe={width:nt,height:Ct,top:0,right:nt,bottom:Ct,left:0};Fe=fe(qe,pe),xt=Te(qe,le),Q=window}Q&&(Fe!==this._verticalScrollDirection||xt!==this._horizontalScrollDirection||Q!==this._scrollNode)&&(this._verticalScrollDirection=Fe,this._horizontalScrollDirection=xt,this._scrollNode=Q,(Fe||xt)&&Q?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const le=(0,v.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=le.msScrollSnapType||le.scrollSnapType||"",le.scrollSnapType=le.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const le=(0,v.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(le).clientRect}_reset(){this._isDragging=!1;const le=(0,v.fI)(this.element).style;le.scrollSnapType=le.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(pe=>pe._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(le,pe){return null!=this._clientRect&&ot(this._clientRect,le,pe)}_getSiblingContainerFromPosition(le,pe,Q){return this._siblings.find(Fe=>Fe._canReceive(le,pe,Q))}_canReceive(le,pe,Q){if(!this._clientRect||!ot(this._clientRect,pe,Q)||!this.enterPredicate(le,this))return!1;const Fe=this._getShadowRoot().elementFromPoint(pe,Q);if(!Fe)return!1;const xt=(0,v.fI)(this.element);return Fe===xt||xt.contains(Fe)}_startReceiving(le,pe){const Q=this._activeSiblings;!Q.has(le)&&pe.every(Fe=>this.enterPredicate(Fe,this)||this._draggables.indexOf(Fe)>-1)&&(Q.add(le),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:le,receiver:this,items:pe}))}_stopReceiving(le){this._activeSiblings.delete(le),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:le,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(le=>{if(this.isDragging()){const pe=this._parentPositions.handleScroll(le);pe&&this._sortStrategy.updateOnScroll(pe.top,pe.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const le=(0,p.kV)((0,v.fI)(this.element));this._cachedShadowRoot=le||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const le=this._sortStrategy.getActiveItemsSnapshot().filter(pe=>pe.isDragging());this._siblings.forEach(pe=>pe._startReceiving(this,le))}}function fe(ht,le){const{top:pe,bottom:Q,height:Fe}=ht,xt=Fe*Zt;return le>=pe-xt&&le<=pe+xt?1:le>=Q-xt&&le<=Q+xt?2:0}function Te(ht,le){const{left:pe,right:Q,width:Fe}=ht,xt=Fe*Zt;return le>=pe-xt&&le<=pe+xt?1:le>=Q-xt&&le<=Q+xt?2:0}const Je=(0,p.i$)({passive:!1,capture:!0});let Lt=(()=>{class ht{constructor(pe,Q){this._ngZone=pe,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Fe=>Fe.isDragging(),this.pointerMove=new f.xQ,this.pointerUp=new f.xQ,this.scroll=new f.xQ,this._preventDefaultWhileDragging=Fe=>{this._activeDragInstances.length>0&&Fe.preventDefault()},this._persistentTouchmoveListener=Fe=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Fe.preventDefault(),this.pointerMove.next(Fe))},this._document=Q}registerDropContainer(pe){this._dropInstances.has(pe)||this._dropInstances.add(pe)}registerDragItem(pe){this._dragInstances.add(pe),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Je)})}removeDropContainer(pe){this._dropInstances.delete(pe)}removeDragItem(pe){this._dragInstances.delete(pe),this.stopDragging(pe),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Je)}startDragging(pe,Q){if(!(this._activeDragInstances.indexOf(pe)>-1)&&(this._activeDragInstances.push(pe),1===this._activeDragInstances.length)){const Fe=Q.type.startsWith("touch");this._globalListeners.set(Fe?"touchend":"mouseup",{handler:xt=>this.pointerUp.next(xt),options:!0}).set("scroll",{handler:xt=>this.scroll.next(xt),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Je}),Fe||this._globalListeners.set("mousemove",{handler:xt=>this.pointerMove.next(xt),options:Je}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((xt,nt)=>{this._document.addEventListener(nt,xt.handler,xt.options)})})}}stopDragging(pe){const Q=this._activeDragInstances.indexOf(pe);Q>-1&&(this._activeDragInstances.splice(Q,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(pe){return this._activeDragInstances.indexOf(pe)>-1}scrolled(pe){const Q=[this.scroll];return pe&&pe!==this._document&&Q.push(new J.y(Fe=>this._ngZone.runOutsideAngular(()=>{const nt=Ct=>{this._activeDragInstances.length&&Fe.next(Ct)};return pe.addEventListener("scroll",nt,!0),()=>{pe.removeEventListener("scroll",nt,!0)}}))),(0,ie.T)(...Q)}ngOnDestroy(){this._dragInstances.forEach(pe=>this.removeDragItem(pe)),this._dropInstances.forEach(pe=>this.removeDropContainer(pe)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((pe,Q)=>{this._document.removeEventListener(Q,pe.handler,pe.options)}),this._globalListeners.clear()}}return ht.\u0275fac=function(pe){return new(pe||ht)(d.LFG(d.R0b),d.LFG(i.K0))},ht.\u0275prov=d.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();const Ke={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let ge=(()=>{class ht{constructor(pe,Q,Fe,xt){this._document=pe,this._ngZone=Q,this._viewportRuler=Fe,this._dragDropRegistry=xt}createDrag(pe,Q=Ke){return new ce(pe,Q,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(pe){return new zt(pe,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return ht.\u0275fac=function(pe){return new(pe||ht)(d.LFG(i.K0),d.LFG(d.R0b),d.LFG(A.rL),d.LFG(Lt))},ht.\u0275prov=d.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"}),ht})();const Me=new d.OlP("CDK_DRAG_PARENT"),_e=new d.OlP("CdkDropListGroup"),ct=new d.OlP("CDK_DRAG_CONFIG");let Rn=0;const An=new d.OlP("CdkDropList");let Gt=(()=>{class ht{get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(pe){this._dropListRef.disabled=this._disabled=(0,v.Ig)(pe)}constructor(pe,Q,Fe,xt,nt,Ct,qe){this.element=pe,this._changeDetectorRef=Fe,this._scrollDispatcher=xt,this._dir=nt,this._group=Ct,this._destroyed=new f.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+Rn++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new d.vpe,this.entered=new d.vpe,this.exited=new d.vpe,this.sorted=new d.vpe,this._unsortedItems=new Set,this._dropListRef=Q.createDropList(pe),this._dropListRef.data=this,qe&&this._assignDefaults(qe),this._dropListRef.enterPredicate=(We,Rt)=>this.enterPredicate(We.data,Rt.data),this._dropListRef.sortPredicate=(We,Rt,Ve)=>this.sortPredicate(We,Rt.data,Ve.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),ht._dropLists.push(this),Ct&&Ct._items.add(this)}addItem(pe){this._unsortedItems.add(pe),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(pe){this._unsortedItems.delete(pe),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((pe,Q)=>pe._dragRef.getVisibleElement().compareDocumentPosition(Q._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const pe=ht._dropLists.indexOf(this);pe>-1&&ht._dropLists.splice(pe,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(pe){this._dir&&this._dir.change.pipe((0,ue.O)(this._dir.value),(0,Ee.R)(this._destroyed)).subscribe(Q=>pe.withDirection(Q)),pe.beforeStarted.subscribe(()=>{const Q=(0,v.Eq)(this.connectedTo).map(Fe=>"string"==typeof Fe?ht._dropLists.find(nt=>nt.id===Fe):Fe);if(this._group&&this._group._items.forEach(Fe=>{-1===Q.indexOf(Fe)&&Q.push(Fe)}),!this._scrollableParentsResolved){const Fe=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(xt=>xt.getElementRef().nativeElement);this._dropListRef.withScrollableParents(Fe),this._scrollableParentsResolved=!0}pe.disabled=this.disabled,pe.lockAxis=this.lockAxis,pe.sortingDisabled=(0,v.Ig)(this.sortingDisabled),pe.autoScrollDisabled=(0,v.Ig)(this.autoScrollDisabled),pe.autoScrollStep=(0,v.su)(this.autoScrollStep,2),pe.connectedTo(Q.filter(Fe=>Fe&&Fe!==this).map(Fe=>Fe._dropListRef)).withOrientation(this.orientation)})}_handleEvents(pe){pe.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),pe.entered.subscribe(Q=>{this.entered.emit({container:this,item:Q.item.data,currentIndex:Q.currentIndex})}),pe.exited.subscribe(Q=>{this.exited.emit({container:this,item:Q.item.data}),this._changeDetectorRef.markForCheck()}),pe.sorted.subscribe(Q=>{this.sorted.emit({previousIndex:Q.previousIndex,currentIndex:Q.currentIndex,container:this,item:Q.item.data})}),pe.dropped.subscribe(Q=>{this.dropped.emit({previousIndex:Q.previousIndex,currentIndex:Q.currentIndex,previousContainer:Q.previousContainer.data,container:Q.container.data,item:Q.item.data,isPointerOverContainer:Q.isPointerOverContainer,distance:Q.distance,dropPoint:Q.dropPoint,event:Q.event}),this._changeDetectorRef.markForCheck()}),(0,ie.T)(pe.receivingStarted,pe.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(pe){const{lockAxis:Q,draggingDisabled:Fe,sortingDisabled:xt,listAutoScrollDisabled:nt,listOrientation:Ct}=pe;this.disabled=Fe??!1,this.sortingDisabled=xt??!1,this.autoScrollDisabled=nt??!1,this.orientation=Ct||"vertical",Q&&(this.lockAxis=Q)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(pe=>pe._dragRef))}}return ht._dropLists=[],ht.\u0275fac=function(pe){return new(pe||ht)(d.Y36(d.SBq),d.Y36(ge),d.Y36(d.sBO),d.Y36(A.mF),d.Y36(Ge.Is,8),d.Y36(_e,12),d.Y36(ct,8))},ht.\u0275dir=d.lG2({type:ht,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(pe,Q){2&pe&&(d.uIk("id",Q.id),d.ekj("cdk-drop-list-disabled",Q.disabled)("cdk-drop-list-dragging",Q._dropListRef.isDragging())("cdk-drop-list-receiving",Q._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[d._Bn([{provide:_e,useValue:void 0},{provide:An,useExisting:ht}])]}),ht})();const gn=new d.OlP("CdkDragHandle"),cn=new d.OlP("CdkDragPlaceholder"),ai=new d.OlP("CdkDragPreview");let q=(()=>{class ht{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(pe){this._disabled=(0,v.Ig)(pe),this._dragRef.disabled=this._disabled}constructor(pe,Q,Fe,xt,nt,Ct,qe,We,Rt,Ve,At){this.element=pe,this.dropContainer=Q,this._ngZone=xt,this._viewContainerRef=nt,this._dir=qe,this._changeDetectorRef=Rt,this._selfHandle=Ve,this._parentDrag=At,this._destroyed=new f.xQ,this.started=new d.vpe,this.released=new d.vpe,this.ended=new d.vpe,this.entered=new d.vpe,this.exited=new d.vpe,this.dropped=new d.vpe,this.moved=new J.y(fn=>{const Ln=this._dragRef.moved.pipe((0,Ze.U)(Ti=>({source:this,pointerPosition:Ti.pointerPosition,event:Ti.event,delta:Ti.delta,distance:Ti.distance}))).subscribe(fn);return()=>{Ln.unsubscribe()}}),this._dragRef=We.createDrag(pe,{dragStartThreshold:Ct&&null!=Ct.dragStartThreshold?Ct.dragStartThreshold:5,pointerDirectionChangeThreshold:Ct&&null!=Ct.pointerDirectionChangeThreshold?Ct.pointerDirectionChangeThreshold:5,zIndex:Ct?.zIndex}),this._dragRef.data=this,ht._dragInstances.push(this),Ct&&this._assignDefaults(Ct),Q&&(this._dragRef._withDropContainer(Q._dropListRef),Q.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(pe){this._dragRef.setFreeDragPosition(pe)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Qe.q)(1),(0,Ee.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(pe){const Q=pe.rootElementSelector,Fe=pe.freeDragPosition;Q&&!Q.firstChange&&this._updateRootElement(),Fe&&!Fe.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const pe=ht._dragInstances.indexOf(this);pe>-1&&ht._dragInstances.splice(pe,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const pe=this.element.nativeElement;let Q=pe;this.rootElementSelector&&(Q=void 0!==pe.closest?pe.closest(this.rootElementSelector):pe.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(Q||pe)}_getBoundaryElement(){const pe=this.boundaryElement;return pe?"string"==typeof pe?this.element.nativeElement.closest(pe):(0,v.fI)(pe):null}_syncInputs(pe){pe.beforeStarted.subscribe(()=>{if(!pe.isDragging()){const Q=this._dir,Fe=this.dragStartDelay,xt=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,nt=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;pe.disabled=this.disabled,pe.lockAxis=this.lockAxis,pe.dragStartDelay="object"==typeof Fe&&Fe?Fe:(0,v.su)(Fe),pe.constrainPosition=this.constrainPosition,pe.previewClass=this.previewClass,pe.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(xt).withPreviewTemplate(nt).withPreviewContainer(this.previewContainer||"global"),Q&&pe.withDirection(Q.value)}}),pe.beforeStarted.pipe((0,Qe.q)(1)).subscribe(()=>{if(this._parentDrag)return void pe.withParent(this._parentDrag._dragRef);let Q=this.element.nativeElement.parentElement;for(;Q;){if(Q.classList.contains("cdk-drag")){pe.withParent(ht._dragInstances.find(Fe=>Fe.element.nativeElement===Q)?._dragRef||null);break}Q=Q.parentElement}})}_handleEvents(pe){pe.started.subscribe(Q=>{this.started.emit({source:this,event:Q.event}),this._changeDetectorRef.markForCheck()}),pe.released.subscribe(Q=>{this.released.emit({source:this,event:Q.event})}),pe.ended.subscribe(Q=>{this.ended.emit({source:this,distance:Q.distance,dropPoint:Q.dropPoint,event:Q.event}),this._changeDetectorRef.markForCheck()}),pe.entered.subscribe(Q=>{this.entered.emit({container:Q.container.data,item:this,currentIndex:Q.currentIndex})}),pe.exited.subscribe(Q=>{this.exited.emit({container:Q.container.data,item:this})}),pe.dropped.subscribe(Q=>{this.dropped.emit({previousIndex:Q.previousIndex,currentIndex:Q.currentIndex,previousContainer:Q.previousContainer.data,container:Q.container.data,isPointerOverContainer:Q.isPointerOverContainer,item:this,distance:Q.distance,dropPoint:Q.dropPoint,event:Q.event})})}_assignDefaults(pe){const{lockAxis:Q,dragStartDelay:Fe,constrainPosition:xt,previewClass:nt,boundaryElement:Ct,draggingDisabled:qe,rootElementSelector:We,previewContainer:Rt}=pe;this.disabled=qe??!1,this.dragStartDelay=Fe||0,Q&&(this.lockAxis=Q),xt&&(this.constrainPosition=xt),nt&&(this.previewClass=nt),Ct&&(this.boundaryElement=Ct),We&&(this.rootElementSelector=We),Rt&&(this.previewContainer=Rt)}_setupHandlesListener(){this._handles.changes.pipe((0,ue.O)(this._handles),(0,vt.b)(pe=>{const Q=pe.filter(Fe=>Fe._parentDrag===this).map(Fe=>Fe.element);this._selfHandle&&this.rootElementSelector&&Q.push(this.element),this._dragRef.withHandles(Q)}),(0,$e.w)(pe=>(0,ie.T)(...pe.map(Q=>Q._stateChanges.pipe((0,ue.O)(Q))))),(0,Ee.R)(this._destroyed)).subscribe(pe=>{const Q=this._dragRef,Fe=pe.element.nativeElement;pe.disabled?Q.disableHandle(Fe):Q.enableHandle(Fe)})}}return ht._dragInstances=[],ht.\u0275fac=function(pe){return new(pe||ht)(d.Y36(d.SBq),d.Y36(An,12),d.Y36(i.K0),d.Y36(d.R0b),d.Y36(d.s_b),d.Y36(ct,8),d.Y36(Ge.Is,8),d.Y36(ge),d.Y36(d.sBO),d.Y36(gn,10),d.Y36(Me,12))},ht.\u0275dir=d.lG2({type:ht,selectors:[["","cdkDrag",""]],contentQueries:function(pe,Q,Fe){if(1&pe&&(d.Suo(Fe,ai,5),d.Suo(Fe,cn,5),d.Suo(Fe,gn,5)),2&pe){let xt;d.iGM(xt=d.CRH())&&(Q._previewTemplate=xt.first),d.iGM(xt=d.CRH())&&(Q._placeholderTemplate=xt.first),d.iGM(xt=d.CRH())&&(Q._handles=xt)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(pe,Q){2&pe&&d.ekj("cdk-drag-disabled",Q.disabled)("cdk-drag-dragging",Q._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[d._Bn([{provide:Me,useExisting:ht}]),d.TTD]}),ht})(),yt=(()=>{class ht{}return ht.\u0275fac=function(pe){return new(pe||ht)},ht.\u0275mod=d.oAB({type:ht}),ht.\u0275inj=d.cJS({providers:[ge],imports:[A.ZD]}),ht})()},9521:(vn,_t,y)=>{"use strict";y.d(_t,{A:()=>dt,JH:()=>vt,JU:()=>k,K5:()=>v,Ku:()=>Z,LH:()=>Ze,L_:()=>B,MW:()=>Me,Mf:()=>A,SV:()=>Qe,Sd:()=>Ee,VM:()=>G,Vb:()=>Ei,Z:()=>ge,ZH:()=>i,aO:()=>ft,b2:()=>Mn,hY:()=>W,jx:()=>f,oh:()=>ue,uR:()=>ie,xE:()=>me,zL:()=>b});const i=8,A=9,v=13,k=16,f=17,b=18,W=27,B=32,Z=33,G=34,ie=35,Ee=36,ue=37,Ze=38,Qe=39,vt=40,me=48,ft=57,dt=65,ge=90,Me=91,Mn=224;function Ei(Ai,...sr){return sr.length?sr.some(kr=>Ai[kr]):Ai.altKey||Ai.shiftKey||Ai.ctrlKey||Ai.metaKey}},1750:(vn,_t,y)=>{"use strict";y.d(_t,{Yg:()=>vt,u3:()=>Ge});var d=y(4650),i=y(1281),A=y(8929),p=y(3426),v=y(1221),k=y(6498),f=y(2986),b=y(1307),J=y(13),Y=y(4850),W=y(1059),B=y(7625),Z=y(3353);const ie=new Set;let Ee,ue=(()=>{class Ce{constructor(me){this._platform=me,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Qe}matchMedia(me){return(this._platform.WEBKIT||this._platform.BLINK)&&function Ze(Ce){if(!ie.has(Ce))try{Ee||(Ee=document.createElement("style"),Ee.setAttribute("type","text/css"),document.head.appendChild(Ee)),Ee.sheet&&(Ee.sheet.insertRule(`@media ${Ce} {body{ }}`,0),ie.add(Ce))}catch(ke){console.error(ke)}}(me),this._matchMedia(me)}}return Ce.\u0275fac=function(me){return new(me||Ce)(d.LFG(Z.t4))},Ce.\u0275prov=d.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})();function Qe(Ce){return{matches:"all"===Ce||""===Ce,media:Ce,addListener:()=>{},removeListener:()=>{}}}let vt=(()=>{class Ce{constructor(me,re){this._mediaMatcher=me,this._zone=re,this._queries=new Map,this._destroySubject=new A.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(me){return $e((0,i.Eq)(me)).some(ye=>this._registerQuery(ye).mql.matches)}observe(me){const ye=$e((0,i.Eq)(me)).map(Ae=>this._registerQuery(Ae).observable);let Oe=(0,p.aj)(ye);return Oe=(0,v.z)(Oe.pipe((0,f.q)(1)),Oe.pipe((0,b.T)(1),(0,J.b)(0))),Oe.pipe((0,Y.U)(Ae=>{const tt={matches:!1,breakpoints:{}};return Ae.forEach(({matches:ot,query:at})=>{tt.matches=tt.matches||ot,tt.breakpoints[at]=ot}),tt}))}_registerQuery(me){if(this._queries.has(me))return this._queries.get(me);const re=this._mediaMatcher.matchMedia(me),Oe={observable:new k.y(Ae=>{const tt=ot=>this._zone.run(()=>Ae.next(ot));return re.addListener(tt),()=>{re.removeListener(tt)}}).pipe((0,W.O)(re),(0,Y.U)(({matches:Ae})=>({query:me,matches:Ae})),(0,B.R)(this._destroySubject)),mql:re};return this._queries.set(me,Oe),Oe}}return Ce.\u0275fac=function(me){return new(me||Ce)(d.LFG(ue),d.LFG(d.R0b))},Ce.\u0275prov=d.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})();function $e(Ce){return Ce.map(ke=>ke.split(",")).reduce((ke,me)=>ke.concat(me)).map(ke=>ke.trim())}const Ge={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},9643:(vn,_t,y)=>{"use strict";y.d(_t,{Q8:()=>J,wD:()=>b});var d=y(1281),i=y(4650),A=y(6498),p=y(8929),v=y(13);let k=(()=>{class Y{create(B){return typeof MutationObserver>"u"?null:new MutationObserver(B)}}return Y.\u0275fac=function(B){return new(B||Y)},Y.\u0275prov=i.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})(),f=(()=>{class Y{constructor(B){this._mutationObserverFactory=B,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((B,Z)=>this._cleanupObserver(Z))}observe(B){const Z=(0,d.fI)(B);return new A.y(G=>{const Ee=this._observeElement(Z).subscribe(G);return()=>{Ee.unsubscribe(),this._unobserveElement(Z)}})}_observeElement(B){if(this._observedElements.has(B))this._observedElements.get(B).count++;else{const Z=new p.xQ,G=this._mutationObserverFactory.create(ie=>Z.next(ie));G&&G.observe(B,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(B,{observer:G,stream:Z,count:1})}return this._observedElements.get(B).stream}_unobserveElement(B){this._observedElements.has(B)&&(this._observedElements.get(B).count--,this._observedElements.get(B).count||this._cleanupObserver(B))}_cleanupObserver(B){if(this._observedElements.has(B)){const{observer:Z,stream:G}=this._observedElements.get(B);Z&&Z.disconnect(),G.complete(),this._observedElements.delete(B)}}}return Y.\u0275fac=function(B){return new(B||Y)(i.LFG(k))},Y.\u0275prov=i.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})(),b=(()=>{class Y{get disabled(){return this._disabled}set disabled(B){this._disabled=(0,d.Ig)(B),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(B){this._debounce=(0,d.su)(B),this._subscribe()}constructor(B,Z,G){this._contentObserver=B,this._elementRef=Z,this._ngZone=G,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const B=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?B.pipe((0,v.b)(this.debounce)):B).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return Y.\u0275fac=function(B){return new(B||Y)(i.Y36(f),i.Y36(i.SBq),i.Y36(i.R0b))},Y.\u0275dir=i.lG2({type:Y,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),Y})(),J=(()=>{class Y{}return Y.\u0275fac=function(B){return new(B||Y)},Y.\u0275mod=i.oAB({type:Y}),Y.\u0275inj=i.cJS({providers:[k]}),Y})()},8184:(vn,_t,y)=>{"use strict";y.d(_t,{Iu:()=>Et,U8:()=>un,X_:()=>me,Xj:()=>ft,_G:()=>je,aV:()=>F,pI:()=>wt,xu:()=>De});var d=y(7261),i=y(6895),A=y(4650),p=y(1281),v=y(3353),k=y(2198),f=y(2986),b=y(7625),J=y(4290),Y=y(445),W=y(4080),B=y(8929),Z=y(2654),G=y(6787),ie=y(9521);const Ee=(0,v.Mq)();class ue{constructor(fe,Te){this._viewportRuler=fe,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Te}attach(){}enable(){if(this._canBeEnabled()){const fe=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=fe.style.left||"",this._previousHTMLStyles.top=fe.style.top||"",fe.style.left=(0,p.HM)(-this._previousScrollPosition.left),fe.style.top=(0,p.HM)(-this._previousScrollPosition.top),fe.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const fe=this._document.documentElement,lt=fe.style,Je=this._document.body.style,Lt=lt.scrollBehavior||"",Ke=Je.scrollBehavior||"";this._isEnabled=!1,lt.left=this._previousHTMLStyles.left,lt.top=this._previousHTMLStyles.top,fe.classList.remove("cdk-global-scrollblock"),Ee&&(lt.scrollBehavior=Je.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ee&&(lt.scrollBehavior=Lt,Je.scrollBehavior=Ke)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Te=this._document.body,lt=this._viewportRuler.getViewportSize();return Te.scrollHeight>lt.height||Te.scrollWidth>lt.width}}class Qe{constructor(fe,Te,lt,Je){this._scrollDispatcher=fe,this._ngZone=Te,this._viewportRuler=lt,this._config=Je,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(fe){this._overlayRef=fe}enable(){if(this._scrollSubscription)return;const fe=this._scrollDispatcher.scrolled(0).pipe((0,k.h)(Te=>!Te||!this._overlayRef.overlayElement.contains(Te.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=fe.subscribe(()=>{const Te=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Te-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=fe.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class vt{enable(){}disable(){}attach(){}}function $e(zt,fe){return fe.some(Te=>zt.bottom<Te.top||zt.top>Te.bottom||zt.right<Te.left||zt.left>Te.right)}function Ge(zt,fe){return fe.some(Te=>zt.top<Te.top||zt.bottom>Te.bottom||zt.left<Te.left||zt.right>Te.right)}class Ce{constructor(fe,Te,lt,Je){this._scrollDispatcher=fe,this._viewportRuler=Te,this._ngZone=lt,this._config=Je,this._scrollSubscription=null}attach(fe){this._overlayRef=fe}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const Te=this._overlayRef.overlayElement.getBoundingClientRect(),{width:lt,height:Je}=this._viewportRuler.getViewportSize();$e(Te,[{width:lt,height:Je,bottom:Je,right:lt,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let ke=(()=>{class zt{constructor(Te,lt,Je,Lt){this._scrollDispatcher=Te,this._viewportRuler=lt,this._ngZone=Je,this.noop=()=>new vt,this.close=Ke=>new Qe(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ke),this.block=()=>new ue(this._viewportRuler,this._document),this.reposition=Ke=>new Ce(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ke),this._document=Lt}}return zt.\u0275fac=function(Te){return new(Te||zt)(A.LFG(d.mF),A.LFG(d.rL),A.LFG(A.R0b),A.LFG(i.K0))},zt.\u0275prov=A.Yz7({token:zt,factory:zt.\u0275fac,providedIn:"root"}),zt})();class me{constructor(fe){if(this.scrollStrategy=new vt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,fe){const Te=Object.keys(fe);for(const lt of Te)void 0!==fe[lt]&&(this[lt]=fe[lt])}}}class Oe{constructor(fe,Te){this.connectionPair=fe,this.scrollableViewProperties=Te}}let ot=(()=>{class zt{constructor(Te){this._attachedOverlays=[],this._document=Te}ngOnDestroy(){this.detach()}add(Te){this.remove(Te),this._attachedOverlays.push(Te)}remove(Te){const lt=this._attachedOverlays.indexOf(Te);lt>-1&&this._attachedOverlays.splice(lt,1),0===this._attachedOverlays.length&&this.detach()}}return zt.\u0275fac=function(Te){return new(Te||zt)(A.LFG(i.K0))},zt.\u0275prov=A.Yz7({token:zt,factory:zt.\u0275fac,providedIn:"root"}),zt})(),at=(()=>{class zt extends ot{constructor(Te,lt){super(Te),this._ngZone=lt,this._keydownListener=Je=>{const Lt=this._attachedOverlays;for(let Ke=Lt.length-1;Ke>-1;Ke--)if(Lt[Ke]._keydownEvents.observers.length>0){const ge=Lt[Ke]._keydownEvents;this._ngZone?this._ngZone.run(()=>ge.next(Je)):ge.next(Je);break}}}add(Te){super.add(Te),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return zt.\u0275fac=function(Te){return new(Te||zt)(A.LFG(i.K0),A.LFG(A.R0b,8))},zt.\u0275prov=A.Yz7({token:zt,factory:zt.\u0275fac,providedIn:"root"}),zt})(),pt=(()=>{class zt extends ot{constructor(Te,lt,Je){super(Te),this._platform=lt,this._ngZone=Je,this._cursorStyleIsSet=!1,this._pointerDownListener=Lt=>{this._pointerDownEventTarget=(0,v.sA)(Lt)},this._clickListener=Lt=>{const Ke=(0,v.sA)(Lt),ge="click"===Lt.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ke;this._pointerDownEventTarget=null;const Me=this._attachedOverlays.slice();for(let _e=Me.length-1;_e>-1;_e--){const it=Me[_e];if(it._outsidePointerEvents.observers.length<1||!it.hasAttached())continue;if(it.overlayElement.contains(Ke)||it.overlayElement.contains(ge))break;const ct=it._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ct.next(Lt)):ct.next(Lt)}}}add(Te){if(super.add(Te),!this._isAttached){const lt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(lt)):this._addEventListeners(lt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=lt.style.cursor,lt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Te=this._document.body;Te.removeEventListener("pointerdown",this._pointerDownListener,!0),Te.removeEventListener("click",this._clickListener,!0),Te.removeEventListener("auxclick",this._clickListener,!0),Te.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Te.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Te){Te.addEventListener("pointerdown",this._pointerDownListener,!0),Te.addEventListener("click",this._clickListener,!0),Te.addEventListener("auxclick",this._clickListener,!0),Te.addEventListener("contextmenu",this._clickListener,!0)}}return zt.\u0275fac=function(Te){return new(Te||zt)(A.LFG(i.K0),A.LFG(v.t4),A.LFG(A.R0b,8))},zt.\u0275prov=A.Yz7({token:zt,factory:zt.\u0275fac,providedIn:"root"}),zt})(),ft=(()=>{class zt{constructor(Te,lt){this._platform=lt,this._document=Te}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Te="cdk-overlay-container";if(this._platform.isBrowser||(0,v.Oy)()){const Je=this._document.querySelectorAll(`.${Te}[platform="server"], .${Te}[platform="test"]`);for(let Lt=0;Lt<Je.length;Lt++)Je[Lt].remove()}const lt=this._document.createElement("div");lt.classList.add(Te),(0,v.Oy)()?lt.setAttribute("platform","test"):this._platform.isBrowser||lt.setAttribute("platform","server"),this._document.body.appendChild(lt),this._containerElement=lt}}return zt.\u0275fac=function(Te){return new(Te||zt)(A.LFG(i.K0),A.LFG(v.t4))},zt.\u0275prov=A.Yz7({token:zt,factory:zt.\u0275fac,providedIn:"root"}),zt})();class Et{constructor(fe,Te,lt,Je,Lt,Ke,ge,Me,_e,it=!1){this._portalOutlet=fe,this._host=Te,this._pane=lt,this._config=Je,this._ngZone=Lt,this._keyboardDispatcher=Ke,this._document=ge,this._location=Me,this._outsideClickDispatcher=_e,this._animationsDisabled=it,this._backdropElement=null,this._backdropClick=new B.xQ,this._attachments=new B.xQ,this._detachments=new B.xQ,this._locationChanges=Z.w.EMPTY,this._backdropClickHandler=ct=>this._backdropClick.next(ct),this._backdropTransitionendHandler=ct=>{this._disposeBackdrop(ct.target)},this._keydownEvents=new B.xQ,this._outsidePointerEvents=new B.xQ,Je.scrollStrategy&&(this._scrollStrategy=Je.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Je.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(fe){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Te=this._portalOutlet.attach(fe);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof Te?.onDestroy&&Te.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Te}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const fe=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),fe}dispose(){const fe=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,fe&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(fe){fe!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=fe,this.hasAttached()&&(fe.attach(this),this.updatePosition()))}updateSize(fe){this._config={...this._config,...fe},this._updateElementSize()}setDirection(fe){this._config={...this._config,direction:fe},this._updateElementDirection()}addPanelClass(fe){this._pane&&this._toggleClasses(this._pane,fe,!0)}removePanelClass(fe){this._pane&&this._toggleClasses(this._pane,fe,!1)}getDirection(){const fe=this._config.direction;return fe?"string"==typeof fe?fe:fe.value:"ltr"}updateScrollStrategy(fe){fe!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=fe,this.hasAttached()&&(fe.attach(this),fe.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const fe=this._pane.style;fe.width=(0,p.HM)(this._config.width),fe.height=(0,p.HM)(this._config.height),fe.minWidth=(0,p.HM)(this._config.minWidth),fe.minHeight=(0,p.HM)(this._config.minHeight),fe.maxWidth=(0,p.HM)(this._config.maxWidth),fe.maxHeight=(0,p.HM)(this._config.maxHeight)}_togglePointerEvents(fe){this._pane.style.pointerEvents=fe?"":"none"}_attachBackdrop(){const fe="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(fe)})}):this._backdropElement.classList.add(fe)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const fe=this._backdropElement;if(fe){if(this._animationsDisabled)return void this._disposeBackdrop(fe);fe.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{fe.addEventListener("transitionend",this._backdropTransitionendHandler)}),fe.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(fe)},500))}}_toggleClasses(fe,Te,lt){const Je=(0,p.Eq)(Te||[]).filter(Lt=>!!Lt);Je.length&&(lt?fe.classList.add(...Je):fe.classList.remove(...Je))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const fe=this._ngZone.onStable.pipe((0,b.R)((0,G.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),fe.unsubscribe())})})}_disposeScrollStrategy(){const fe=this._scrollStrategy;fe&&(fe.disable(),fe.detach&&fe.detach())}_disposeBackdrop(fe){fe&&(fe.removeEventListener("click",this._backdropClickHandler),fe.removeEventListener("transitionend",this._backdropTransitionendHandler),fe.remove(),this._backdropElement===fe&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const be="cdk-overlay-connected-position-bounding-box",Pe=/([A-Za-z%]+)$/;class je{get positions(){return this._preferredPositions}constructor(fe,Te,lt,Je,Lt){this._viewportRuler=Te,this._document=lt,this._platform=Je,this._overlayContainer=Lt,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new B.xQ,this._resizeSubscription=Z.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(fe)}attach(fe){this._validatePositions(),fe.hostElement.classList.add(be),this._overlayRef=fe,this._boundingBox=fe.hostElement,this._pane=fe.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const fe=this._originRect,Te=this._overlayRect,lt=this._viewportRect,Je=this._containerRect,Lt=[];let Ke;for(let ge of this._preferredPositions){let Me=this._getOriginPoint(fe,Je,ge),_e=this._getOverlayPoint(Me,Te,ge),it=this._getOverlayFit(_e,Te,lt,ge);if(it.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ge,Me);this._canFitWithFlexibleDimensions(it,_e,lt)?Lt.push({position:ge,origin:Me,overlayRect:Te,boundingBoxRect:this._calculateBoundingBoxRect(Me,ge)}):(!Ke||Ke.overlayFit.visibleArea<it.visibleArea)&&(Ke={overlayFit:it,overlayPoint:_e,originPoint:Me,position:ge,overlayRect:Te})}if(Lt.length){let ge=null,Me=-1;for(const _e of Lt){const it=_e.boundingBoxRect.width*_e.boundingBoxRect.height*(_e.position.weight||1);it>Me&&(Me=it,ge=_e)}return this._isPushed=!1,void this._applyPosition(ge.position,ge.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ke.position,Ke.originPoint);this._applyPosition(Ke.position,Ke.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&dt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(be),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const fe=this._lastPosition;if(fe){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Te=this._getOriginPoint(this._originRect,this._containerRect,fe);this._applyPosition(fe,Te)}else this.apply()}withScrollableContainers(fe){return this._scrollables=fe,this}withPositions(fe){return this._preferredPositions=fe,-1===fe.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(fe){return this._viewportMargin=fe,this}withFlexibleDimensions(fe=!0){return this._hasFlexibleDimensions=fe,this}withGrowAfterOpen(fe=!0){return this._growAfterOpen=fe,this}withPush(fe=!0){return this._canPush=fe,this}withLockedPosition(fe=!0){return this._positionLocked=fe,this}setOrigin(fe){return this._origin=fe,this}withDefaultOffsetX(fe){return this._offsetX=fe,this}withDefaultOffsetY(fe){return this._offsetY=fe,this}withTransformOriginOn(fe){return this._transformOriginSelector=fe,this}_getOriginPoint(fe,Te,lt){let Je,Lt;if("center"==lt.originX)Je=fe.left+fe.width/2;else{const Ke=this._isRtl()?fe.right:fe.left,ge=this._isRtl()?fe.left:fe.right;Je="start"==lt.originX?Ke:ge}return Te.left<0&&(Je-=Te.left),Lt="center"==lt.originY?fe.top+fe.height/2:"top"==lt.originY?fe.top:fe.bottom,Te.top<0&&(Lt-=Te.top),{x:Je,y:Lt}}_getOverlayPoint(fe,Te,lt){let Je,Lt;return Je="center"==lt.overlayX?-Te.width/2:"start"===lt.overlayX?this._isRtl()?-Te.width:0:this._isRtl()?0:-Te.width,Lt="center"==lt.overlayY?-Te.height/2:"top"==lt.overlayY?0:-Te.height,{x:fe.x+Je,y:fe.y+Lt}}_getOverlayFit(fe,Te,lt,Je){const Lt=gt(Te);let{x:Ke,y:ge}=fe,Me=this._getOffset(Je,"x"),_e=this._getOffset(Je,"y");Me&&(Ke+=Me),_e&&(ge+=_e);let dn=0-ge,Rn=ge+Lt.height-lt.height,An=this._subtractOverflows(Lt.width,0-Ke,Ke+Lt.width-lt.width),Gt=this._subtractOverflows(Lt.height,dn,Rn),gn=An*Gt;return{visibleArea:gn,isCompletelyWithinViewport:Lt.width*Lt.height===gn,fitsInViewportVertically:Gt===Lt.height,fitsInViewportHorizontally:An==Lt.width}}_canFitWithFlexibleDimensions(fe,Te,lt){if(this._hasFlexibleDimensions){const Je=lt.bottom-Te.y,Lt=lt.right-Te.x,Ke=et(this._overlayRef.getConfig().minHeight),ge=et(this._overlayRef.getConfig().minWidth);return(fe.fitsInViewportVertically||null!=Ke&&Ke<=Je)&&(fe.fitsInViewportHorizontally||null!=ge&&ge<=Lt)}return!1}_pushOverlayOnScreen(fe,Te,lt){if(this._previousPushAmount&&this._positionLocked)return{x:fe.x+this._previousPushAmount.x,y:fe.y+this._previousPushAmount.y};const Je=gt(Te),Lt=this._viewportRect,Ke=Math.max(fe.x+Je.width-Lt.width,0),ge=Math.max(fe.y+Je.height-Lt.height,0),Me=Math.max(Lt.top-lt.top-fe.y,0),_e=Math.max(Lt.left-lt.left-fe.x,0);let it=0,ct=0;return it=Je.width<=Lt.width?_e||-Ke:fe.x<this._viewportMargin?Lt.left-lt.left-fe.x:0,ct=Je.height<=Lt.height?Me||-ge:fe.y<this._viewportMargin?Lt.top-lt.top-fe.y:0,this._previousPushAmount={x:it,y:ct},{x:fe.x+it,y:fe.y+ct}}_applyPosition(fe,Te){if(this._setTransformOrigin(fe),this._setOverlayElementStyles(Te,fe),this._setBoundingBoxStyles(Te,fe),fe.panelClass&&this._addPanelClasses(fe.panelClass),this._lastPosition=fe,this._positionChanges.observers.length){const lt=this._getScrollVisibility(),Je=new Oe(fe,lt);this._positionChanges.next(Je)}this._isInitialRender=!1}_setTransformOrigin(fe){if(!this._transformOriginSelector)return;const Te=this._boundingBox.querySelectorAll(this._transformOriginSelector);let lt,Je=fe.overlayY;lt="center"===fe.overlayX?"center":this._isRtl()?"start"===fe.overlayX?"right":"left":"start"===fe.overlayX?"left":"right";for(let Lt=0;Lt<Te.length;Lt++)Te[Lt].style.transformOrigin=`${lt} ${Je}`}_calculateBoundingBoxRect(fe,Te){const lt=this._viewportRect,Je=this._isRtl();let Lt,Ke,ge,it,ct,dn;if("top"===Te.overlayY)Ke=fe.y,Lt=lt.height-Ke+this._viewportMargin;else if("bottom"===Te.overlayY)ge=lt.height-fe.y+2*this._viewportMargin,Lt=lt.height-ge+this._viewportMargin;else{const Rn=Math.min(lt.bottom-fe.y+lt.top,fe.y),An=this._lastBoundingBoxSize.height;Lt=2*Rn,Ke=fe.y-Rn,Lt>An&&!this._isInitialRender&&!this._growAfterOpen&&(Ke=fe.y-An/2)}if("end"===Te.overlayX&&!Je||"start"===Te.overlayX&&Je)dn=lt.width-fe.x+this._viewportMargin,it=fe.x-this._viewportMargin;else if("start"===Te.overlayX&&!Je||"end"===Te.overlayX&&Je)ct=fe.x,it=lt.right-fe.x;else{const Rn=Math.min(lt.right-fe.x+lt.left,fe.x),An=this._lastBoundingBoxSize.width;it=2*Rn,ct=fe.x-Rn,it>An&&!this._isInitialRender&&!this._growAfterOpen&&(ct=fe.x-An/2)}return{top:Ke,left:ct,bottom:ge,right:dn,width:it,height:Lt}}_setBoundingBoxStyles(fe,Te){const lt=this._calculateBoundingBoxRect(fe,Te);!this._isInitialRender&&!this._growAfterOpen&&(lt.height=Math.min(lt.height,this._lastBoundingBoxSize.height),lt.width=Math.min(lt.width,this._lastBoundingBoxSize.width));const Je={};if(this._hasExactPosition())Je.top=Je.left="0",Je.bottom=Je.right=Je.maxHeight=Je.maxWidth="",Je.width=Je.height="100%";else{const Lt=this._overlayRef.getConfig().maxHeight,Ke=this._overlayRef.getConfig().maxWidth;Je.height=(0,p.HM)(lt.height),Je.top=(0,p.HM)(lt.top),Je.bottom=(0,p.HM)(lt.bottom),Je.width=(0,p.HM)(lt.width),Je.left=(0,p.HM)(lt.left),Je.right=(0,p.HM)(lt.right),Je.alignItems="center"===Te.overlayX?"center":"end"===Te.overlayX?"flex-end":"flex-start",Je.justifyContent="center"===Te.overlayY?"center":"bottom"===Te.overlayY?"flex-end":"flex-start",Lt&&(Je.maxHeight=(0,p.HM)(Lt)),Ke&&(Je.maxWidth=(0,p.HM)(Ke))}this._lastBoundingBoxSize=lt,dt(this._boundingBox.style,Je)}_resetBoundingBoxStyles(){dt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){dt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(fe,Te){const lt={},Je=this._hasExactPosition(),Lt=this._hasFlexibleDimensions,Ke=this._overlayRef.getConfig();if(Je){const it=this._viewportRuler.getViewportScrollPosition();dt(lt,this._getExactOverlayY(Te,fe,it)),dt(lt,this._getExactOverlayX(Te,fe,it))}else lt.position="static";let ge="",Me=this._getOffset(Te,"x"),_e=this._getOffset(Te,"y");Me&&(ge+=`translateX(${Me}px) `),_e&&(ge+=`translateY(${_e}px)`),lt.transform=ge.trim(),Ke.maxHeight&&(Je?lt.maxHeight=(0,p.HM)(Ke.maxHeight):Lt&&(lt.maxHeight="")),Ke.maxWidth&&(Je?lt.maxWidth=(0,p.HM)(Ke.maxWidth):Lt&&(lt.maxWidth="")),dt(this._pane.style,lt)}_getExactOverlayY(fe,Te,lt){let Je={top:"",bottom:""},Lt=this._getOverlayPoint(Te,this._overlayRect,fe);return this._isPushed&&(Lt=this._pushOverlayOnScreen(Lt,this._overlayRect,lt)),"bottom"===fe.overlayY?Je.bottom=this._document.documentElement.clientHeight-(Lt.y+this._overlayRect.height)+"px":Je.top=(0,p.HM)(Lt.y),Je}_getExactOverlayX(fe,Te,lt){let Ke,Je={left:"",right:""},Lt=this._getOverlayPoint(Te,this._overlayRect,fe);return this._isPushed&&(Lt=this._pushOverlayOnScreen(Lt,this._overlayRect,lt)),Ke=this._isRtl()?"end"===fe.overlayX?"left":"right":"end"===fe.overlayX?"right":"left","right"===Ke?Je.right=this._document.documentElement.clientWidth-(Lt.x+this._overlayRect.width)+"px":Je.left=(0,p.HM)(Lt.x),Je}_getScrollVisibility(){const fe=this._getOriginRect(),Te=this._pane.getBoundingClientRect(),lt=this._scrollables.map(Je=>Je.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ge(fe,lt),isOriginOutsideView:$e(fe,lt),isOverlayClipped:Ge(Te,lt),isOverlayOutsideView:$e(Te,lt)}}_subtractOverflows(fe,...Te){return Te.reduce((lt,Je)=>lt-Math.max(Je,0),fe)}_getNarrowedViewportRect(){const fe=this._document.documentElement.clientWidth,Te=this._document.documentElement.clientHeight,lt=this._viewportRuler.getViewportScrollPosition();return{top:lt.top+this._viewportMargin,left:lt.left+this._viewportMargin,right:lt.left+fe-this._viewportMargin,bottom:lt.top+Te-this._viewportMargin,width:fe-2*this._viewportMargin,height:Te-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(fe,Te){return"x"===Te?null==fe.offsetX?this._offsetX:fe.offsetX:null==fe.offsetY?this._offsetY:fe.offsetY}_validatePositions(){}_addPanelClasses(fe){this._pane&&(0,p.Eq)(fe).forEach(Te=>{""!==Te&&-1===this._appliedPanelClasses.indexOf(Te)&&(this._appliedPanelClasses.push(Te),this._pane.classList.add(Te))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(fe=>{this._pane.classList.remove(fe)}),this._appliedPanelClasses=[])}_getOriginRect(){const fe=this._origin;if(fe instanceof A.SBq)return fe.nativeElement.getBoundingClientRect();if(fe instanceof Element)return fe.getBoundingClientRect();const Te=fe.width||0,lt=fe.height||0;return{top:fe.y,bottom:fe.y+lt,left:fe.x,right:fe.x+Te,height:lt,width:Te}}}function dt(zt,fe){for(let Te in fe)fe.hasOwnProperty(Te)&&(zt[Te]=fe[Te]);return zt}function et(zt){if("number"!=typeof zt&&null!=zt){const[fe,Te]=zt.split(Pe);return Te&&"px"!==Te?null:parseFloat(fe)}return zt||null}function gt(zt){return{top:Math.floor(zt.top),right:Math.floor(zt.right),bottom:Math.floor(zt.bottom),left:Math.floor(zt.left),width:Math.floor(zt.width),height:Math.floor(zt.height)}}const ce="cdk-global-overlay-wrapper";class ve{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(fe){const Te=fe.getConfig();this._overlayRef=fe,this._width&&!Te.width&&fe.updateSize({width:this._width}),this._height&&!Te.height&&fe.updateSize({height:this._height}),fe.hostElement.classList.add(ce),this._isDisposed=!1}top(fe=""){return this._bottomOffset="",this._topOffset=fe,this._alignItems="flex-start",this}left(fe=""){return this._xOffset=fe,this._xPosition="left",this}bottom(fe=""){return this._topOffset="",this._bottomOffset=fe,this._alignItems="flex-end",this}right(fe=""){return this._xOffset=fe,this._xPosition="right",this}start(fe=""){return this._xOffset=fe,this._xPosition="start",this}end(fe=""){return this._xOffset=fe,this._xPosition="end",this}width(fe=""){return this._overlayRef?this._overlayRef.updateSize({width:fe}):this._width=fe,this}height(fe=""){return this._overlayRef?this._overlayRef.updateSize({height:fe}):this._height=fe,this}centerHorizontally(fe=""){return this.left(fe),this._xPosition="center",this}centerVertically(fe=""){return this.top(fe),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const fe=this._overlayRef.overlayElement.style,Te=this._overlayRef.hostElement.style,lt=this._overlayRef.getConfig(),{width:Je,height:Lt,maxWidth:Ke,maxHeight:ge}=lt,Me=!("100%"!==Je&&"100vw"!==Je||Ke&&"100%"!==Ke&&"100vw"!==Ke),_e=!("100%"!==Lt&&"100vh"!==Lt||ge&&"100%"!==ge&&"100vh"!==ge),it=this._xPosition,ct=this._xOffset,dn="rtl"===this._overlayRef.getConfig().direction;let Rn="",An="",Gt="";Me?Gt="flex-start":"center"===it?(Gt="center",dn?An=ct:Rn=ct):dn?"left"===it||"end"===it?(Gt="flex-end",Rn=ct):("right"===it||"start"===it)&&(Gt="flex-start",An=ct):"left"===it||"start"===it?(Gt="flex-start",Rn=ct):("right"===it||"end"===it)&&(Gt="flex-end",An=ct),fe.position=this._cssPosition,fe.marginLeft=Me?"0":Rn,fe.marginTop=_e?"0":this._topOffset,fe.marginBottom=this._bottomOffset,fe.marginRight=Me?"0":An,Te.justifyContent=Gt,Te.alignItems=_e?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const fe=this._overlayRef.overlayElement.style,Te=this._overlayRef.hostElement,lt=Te.style;Te.classList.remove(ce),lt.justifyContent=lt.alignItems=fe.marginTop=fe.marginBottom=fe.marginLeft=fe.marginRight=fe.position="",this._overlayRef=null,this._isDisposed=!0}}let se=(()=>{class zt{constructor(Te,lt,Je,Lt){this._viewportRuler=Te,this._document=lt,this._platform=Je,this._overlayContainer=Lt}global(){return new ve}flexibleConnectedTo(Te){return new je(Te,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return zt.\u0275fac=function(Te){return new(Te||zt)(A.LFG(d.rL),A.LFG(i.K0),A.LFG(v.t4),A.LFG(ft))},zt.\u0275prov=A.Yz7({token:zt,factory:zt.\u0275fac,providedIn:"root"}),zt})(),S=0,F=(()=>{class zt{constructor(Te,lt,Je,Lt,Ke,ge,Me,_e,it,ct,dn,Rn){this.scrollStrategies=Te,this._overlayContainer=lt,this._componentFactoryResolver=Je,this._positionBuilder=Lt,this._keyboardDispatcher=Ke,this._injector=ge,this._ngZone=Me,this._document=_e,this._directionality=it,this._location=ct,this._outsideClickDispatcher=dn,this._animationsModuleType=Rn}create(Te){const lt=this._createHostElement(),Je=this._createPaneElement(lt),Lt=this._createPortalOutlet(Je),Ke=new me(Te);return Ke.direction=Ke.direction||this._directionality.value,new Et(Lt,lt,Je,Ke,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(Te){const lt=this._document.createElement("div");return lt.id="cdk-overlay-"+S++,lt.classList.add("cdk-overlay-pane"),Te.appendChild(lt),lt}_createHostElement(){const Te=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Te),Te}_createPortalOutlet(Te){return this._appRef||(this._appRef=this._injector.get(A.z2F)),new W.u0(Te,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return zt.\u0275fac=function(Te){return new(Te||zt)(A.LFG(ke),A.LFG(ft),A.LFG(A._Vd),A.LFG(se),A.LFG(at),A.LFG(A.zs3),A.LFG(A.R0b),A.LFG(i.K0),A.LFG(Y.Is),A.LFG(i.Ye),A.LFG(pt),A.LFG(A.QbO,8))},zt.\u0275prov=A.Yz7({token:zt,factory:zt.\u0275fac,providedIn:"root"}),zt})();const V=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ne=new A.OlP("cdk-connected-overlay-scroll-strategy");let De=(()=>{class zt{constructor(Te){this.elementRef=Te}}return zt.\u0275fac=function(Te){return new(Te||zt)(A.Y36(A.SBq))},zt.\u0275dir=A.lG2({type:zt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),zt})(),wt=(()=>{class zt{get offsetX(){return this._offsetX}set offsetX(Te){this._offsetX=Te,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Te){this._offsetY=Te,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Te){this._hasBackdrop=(0,p.Ig)(Te)}get lockPosition(){return this._lockPosition}set lockPosition(Te){this._lockPosition=(0,p.Ig)(Te)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(Te){this._flexibleDimensions=(0,p.Ig)(Te)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(Te){this._growAfterOpen=(0,p.Ig)(Te)}get push(){return this._push}set push(Te){this._push=(0,p.Ig)(Te)}constructor(Te,lt,Je,Lt,Ke){this._overlay=Te,this._dir=Ke,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Z.w.EMPTY,this._attachSubscription=Z.w.EMPTY,this._detachSubscription=Z.w.EMPTY,this._positionSubscription=Z.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new A.vpe,this.positionChange=new A.vpe,this.attach=new A.vpe,this.detach=new A.vpe,this.overlayKeydown=new A.vpe,this.overlayOutsideClick=new A.vpe,this._templatePortal=new W.UE(lt,Je),this._scrollStrategyFactory=Lt,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(Te){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Te.origin&&this.open&&this._position.apply()),Te.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=V);const Te=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Te.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Te.detachments().subscribe(()=>this.detach.emit()),Te.keydownEvents().subscribe(lt=>{this.overlayKeydown.next(lt),lt.keyCode===ie.hY&&!this.disableClose&&!(0,ie.Vb)(lt)&&(lt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(lt=>{this.overlayOutsideClick.next(lt)})}_buildConfig(){const Te=this._position=this.positionStrategy||this._createPositionStrategy(),lt=new me({direction:this._dir,positionStrategy:Te,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(lt.width=this.width),(this.height||0===this.height)&&(lt.height=this.height),(this.minWidth||0===this.minWidth)&&(lt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(lt.minHeight=this.minHeight),this.backdropClass&&(lt.backdropClass=this.backdropClass),this.panelClass&&(lt.panelClass=this.panelClass),lt}_updatePositionStrategy(Te){const lt=this.positions.map(Je=>({originX:Je.originX,originY:Je.originY,overlayX:Je.overlayX,overlayY:Je.overlayY,offsetX:Je.offsetX||this.offsetX,offsetY:Je.offsetY||this.offsetY,panelClass:Je.panelClass||void 0}));return Te.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(lt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Te=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(Te),Te}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof De?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(Te=>{this.backdropClick.emit(Te)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,J.o)(()=>this.positionChange.observers.length>0)).subscribe(Te=>{this.positionChange.emit(Te),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return zt.\u0275fac=function(Te){return new(Te||zt)(A.Y36(F),A.Y36(A.Rgc),A.Y36(A.s_b),A.Y36(ne),A.Y36(Y.Is,8))},zt.\u0275dir=A.lG2({type:zt,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[A.TTD]}),zt})();const Jt={provide:ne,deps:[F],useFactory:function nn(zt){return()=>zt.scrollStrategies.reposition()}};let un=(()=>{class zt{}return zt.\u0275fac=function(Te){return new(Te||zt)},zt.\u0275mod=A.oAB({type:zt}),zt.\u0275inj=A.cJS({providers:[F,Jt],imports:[Y.vT,W.eL,d.Cl,d.Cl]}),zt})()},3353:(vn,_t,y)=>{"use strict";y.d(_t,{Mq:()=>G,Oy:()=>$e,_i:()=>ie,ht:()=>Qe,i$:()=>W,kV:()=>Ze,qK:()=>b,sA:()=>vt,t4:()=>p});var d=y(4650),i=y(6895);let A;try{A=typeof Intl<"u"&&Intl.v8BreakIterator}catch{A=!1}let k,p=(()=>{class Ge{constructor(ke){this._platformId=ke,this.isBrowser=this._platformId?(0,i.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!A)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Ge.\u0275fac=function(ke){return new(ke||Ge)(d.LFG(d.Lbi))},Ge.\u0275prov=d.Yz7({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})();const f=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function b(){if(k)return k;if("object"!=typeof document||!document)return k=new Set(f),k;let Ge=document.createElement("input");return k=new Set(f.filter(Ce=>(Ge.setAttribute("type",Ce),Ge.type===Ce))),k}let J,B,Z,Ee;function W(Ge){return function Y(){if(null==J&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>J=!0}))}finally{J=J||!1}return J}()?Ge:!!Ge.capture}function G(){if(null==Z){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Z=!1,Z;if("scrollBehavior"in document.documentElement.style)Z=!0;else{const Ge=Element.prototype.scrollTo;Z=!!Ge&&!/\{\s*\[native code\]\s*\}/.test(Ge.toString())}}return Z}function ie(){if("object"!=typeof document||!document)return 0;if(null==B){const Ge=document.createElement("div"),Ce=Ge.style;Ge.dir="rtl",Ce.width="1px",Ce.overflow="auto",Ce.visibility="hidden",Ce.pointerEvents="none",Ce.position="absolute";const ke=document.createElement("div"),me=ke.style;me.width="2px",me.height="1px",Ge.appendChild(ke),document.body.appendChild(Ge),B=0,0===Ge.scrollLeft&&(Ge.scrollLeft=1,B=0===Ge.scrollLeft?1:2),Ge.remove()}return B}function Ze(Ge){if(function ue(){if(null==Ee){const Ge=typeof document<"u"?document.head:null;Ee=!(!Ge||!Ge.createShadowRoot&&!Ge.attachShadow)}return Ee}()){const Ce=Ge.getRootNode?Ge.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&Ce instanceof ShadowRoot)return Ce}return null}function Qe(){let Ge=typeof document<"u"&&document?document.activeElement:null;for(;Ge&&Ge.shadowRoot;){const Ce=Ge.shadowRoot.activeElement;if(Ce===Ge)break;Ge=Ce}return Ge}function vt(Ge){return Ge.composedPath?Ge.composedPath()[0]:Ge.target}function $e(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(vn,_t,y)=>{"use strict";y.d(_t,{C5:()=>Y,Pl:()=>Qe,UE:()=>W,eL:()=>$e,en:()=>Z,ig:()=>ue,u0:()=>ie});var d=y(4650),i=y(6895);class J{attach(ke){return this._attachedHost=ke,ke.attach(this)}detach(){let ke=this._attachedHost;null!=ke&&(this._attachedHost=null,ke.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ke){this._attachedHost=ke}}class Y extends J{constructor(ke,me,re,ye,Oe){super(),this.component=ke,this.viewContainerRef=me,this.injector=re,this.componentFactoryResolver=ye,this.projectableNodes=Oe}}class W extends J{constructor(ke,me,re,ye){super(),this.templateRef=ke,this.viewContainerRef=me,this.context=re,this.injector=ye}get origin(){return this.templateRef.elementRef}attach(ke,me=this.context){return this.context=me,super.attach(ke)}detach(){return this.context=void 0,super.detach()}}class B extends J{constructor(ke){super(),this.element=ke instanceof d.SBq?ke.nativeElement:ke}}class Z{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ke){return ke instanceof Y?(this._attachedPortal=ke,this.attachComponentPortal(ke)):ke instanceof W?(this._attachedPortal=ke,this.attachTemplatePortal(ke)):this.attachDomPortal&&ke instanceof B?(this._attachedPortal=ke,this.attachDomPortal(ke)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(ke){this._disposeFn=ke}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ie extends Z{constructor(ke,me,re,ye,Oe){super(),this.outletElement=ke,this._componentFactoryResolver=me,this._appRef=re,this._defaultInjector=ye,this.attachDomPortal=Ae=>{const tt=Ae.element,ot=this._document.createComment("dom-portal");tt.parentNode.insertBefore(ot,tt),this.outletElement.appendChild(tt),this._attachedPortal=Ae,super.setDisposeFn(()=>{ot.parentNode&&ot.parentNode.replaceChild(tt,ot)})},this._document=Oe}attachComponentPortal(ke){const re=(ke.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ke.component);let ye;return ke.viewContainerRef?(ye=ke.viewContainerRef.createComponent(re,ke.viewContainerRef.length,ke.injector||ke.viewContainerRef.injector,ke.projectableNodes||void 0),this.setDisposeFn(()=>ye.destroy())):(ye=re.create(ke.injector||this._defaultInjector||d.zs3.NULL),this._appRef.attachView(ye.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ye.hostView),ye.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ye)),this._attachedPortal=ke,ye}attachTemplatePortal(ke){let me=ke.viewContainerRef,re=me.createEmbeddedView(ke.templateRef,ke.context,{injector:ke.injector});return re.rootNodes.forEach(ye=>this.outletElement.appendChild(ye)),re.detectChanges(),this.setDisposeFn(()=>{let ye=me.indexOf(re);-1!==ye&&me.remove(ye)}),this._attachedPortal=ke,re}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ke){return ke.hostView.rootNodes[0]}}let ue=(()=>{class Ce extends W{constructor(me,re){super(me,re)}}return Ce.\u0275fac=function(me){return new(me||Ce)(d.Y36(d.Rgc),d.Y36(d.s_b))},Ce.\u0275dir=d.lG2({type:Ce,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[d.qOj]}),Ce})(),Qe=(()=>{class Ce extends Z{constructor(me,re,ye){super(),this._componentFactoryResolver=me,this._viewContainerRef=re,this._isInitialized=!1,this.attached=new d.vpe,this.attachDomPortal=Oe=>{const Ae=Oe.element,tt=this._document.createComment("dom-portal");Oe.setAttachedHost(this),Ae.parentNode.insertBefore(tt,Ae),this._getRootNode().appendChild(Ae),this._attachedPortal=Oe,super.setDisposeFn(()=>{tt.parentNode&&tt.parentNode.replaceChild(Ae,tt)})},this._document=ye}get portal(){return this._attachedPortal}set portal(me){this.hasAttached()&&!me&&!this._isInitialized||(this.hasAttached()&&super.detach(),me&&super.attach(me),this._attachedPortal=me||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(me){me.setAttachedHost(this);const re=null!=me.viewContainerRef?me.viewContainerRef:this._viewContainerRef,Oe=(me.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(me.component),Ae=re.createComponent(Oe,re.length,me.injector||re.injector,me.projectableNodes||void 0);return re!==this._viewContainerRef&&this._getRootNode().appendChild(Ae.hostView.rootNodes[0]),super.setDisposeFn(()=>Ae.destroy()),this._attachedPortal=me,this._attachedRef=Ae,this.attached.emit(Ae),Ae}attachTemplatePortal(me){me.setAttachedHost(this);const re=this._viewContainerRef.createEmbeddedView(me.templateRef,me.context,{injector:me.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=me,this._attachedRef=re,this.attached.emit(re),re}_getRootNode(){const me=this._viewContainerRef.element.nativeElement;return me.nodeType===me.ELEMENT_NODE?me:me.parentNode}}return Ce.\u0275fac=function(me){return new(me||Ce)(d.Y36(d._Vd),d.Y36(d.s_b),d.Y36(i.K0))},Ce.\u0275dir=d.lG2({type:Ce,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[d.qOj]}),Ce})(),$e=(()=>{class Ce{}return Ce.\u0275fac=function(me){return new(me||Ce)},Ce.\u0275mod=d.oAB({type:Ce}),Ce.\u0275inj=d.cJS({}),Ce})()},7261:(vn,_t,y)=>{"use strict";y.d(_t,{PQ:()=>ot,ZD:()=>we,mF:()=>tt,Cl:()=>ce,rL:()=>pt});var d=y(1281),i=y(4650),A=y(8929),p=y(1086),v=y(6498),k=y(3753),f=y(352),b=y(8139),J=y(2654),Y=y(353),W=y(1177);class Z{constructor(se){this.durationSelector=se}call(se,S){return S.subscribe(new G(se,this.durationSelector))}}class G extends W.Ds{constructor(se,S){super(se),this.durationSelector=S,this.hasValue=!1}_next(se){if(this.value=se,this.hasValue=!0,!this.throttled){let S;try{const{durationSelector:V}=this;S=V(se)}catch(V){return this.destination.error(V)}const F=(0,W.ft)(S,new W.IY(this));!F||F.closed?this.clearThrottle():this.add(this.throttled=F)}}clearThrottle(){const{value:se,hasValue:S,throttled:F}=this;F&&(this.remove(F),this.throttled=void 0,F.unsubscribe()),S&&(this.value=void 0,this.hasValue=!1,this.destination.next(se))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var ie=y(8723);function Ee(ve,se=Y.P){return function B(ve){return function(S){return S.lift(new Z(ve))}}(()=>(0,ie.H)(ve,se))}var ue=y(2198),Ze=y(7625),Qe=y(1059),vt=y(3353),$e=y(6895),Ge=y(445);const Ce=["contentWrapper"],ke=["*"],me=new i.OlP("VIRTUAL_SCROLL_STRATEGY");let tt=(()=>{class ve{constructor(S,F,V){this._ngZone=S,this._platform=F,this._scrolled=new A.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=V}register(S){this.scrollContainers.has(S)||this.scrollContainers.set(S,S.elementScrolled().subscribe(()=>this._scrolled.next(S)))}deregister(S){const F=this.scrollContainers.get(S);F&&(F.unsubscribe(),this.scrollContainers.delete(S))}scrolled(S=20){return this._platform.isBrowser?new v.y(F=>{this._globalSubscription||this._addGlobalListener();const V=S>0?this._scrolled.pipe(Ee(S)).subscribe(F):this._scrolled.subscribe(F);return this._scrolledCount++,()=>{V.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,p.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((S,F)=>this.deregister(F)),this._scrolled.complete()}ancestorScrolled(S,F){const V=this.getAncestorScrollContainers(S);return this.scrolled(F).pipe((0,ue.h)(ne=>!ne||V.indexOf(ne)>-1))}getAncestorScrollContainers(S){const F=[];return this.scrollContainers.forEach((V,ne)=>{this._scrollableContainsElement(ne,S)&&F.push(ne)}),F}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(S,F){let V=(0,d.fI)(F),ne=S.getElementRef().nativeElement;do{if(V==ne)return!0}while(V=V.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const S=this._getWindow();return(0,k.R)(S.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ve.\u0275fac=function(S){return new(S||ve)(i.LFG(i.R0b),i.LFG(vt.t4),i.LFG($e.K0,8))},ve.\u0275prov=i.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),ot=(()=>{class ve{constructor(S,F,V,ne){this.elementRef=S,this.scrollDispatcher=F,this.ngZone=V,this.dir=ne,this._destroyed=new A.xQ,this._elementScrolled=new v.y(De=>this.ngZone.runOutsideAngular(()=>(0,k.R)(this.elementRef.nativeElement,"scroll").pipe((0,Ze.R)(this._destroyed)).subscribe(De)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(S){const F=this.elementRef.nativeElement,V=this.dir&&"rtl"==this.dir.value;null==S.left&&(S.left=V?S.end:S.start),null==S.right&&(S.right=V?S.start:S.end),null!=S.bottom&&(S.top=F.scrollHeight-F.clientHeight-S.bottom),V&&0!=(0,vt._i)()?(null!=S.left&&(S.right=F.scrollWidth-F.clientWidth-S.left),2==(0,vt._i)()?S.left=S.right:1==(0,vt._i)()&&(S.left=S.right?-S.right:S.right)):null!=S.right&&(S.left=F.scrollWidth-F.clientWidth-S.right),this._applyScrollToOptions(S)}_applyScrollToOptions(S){const F=this.elementRef.nativeElement;(0,vt.Mq)()?F.scrollTo(S):(null!=S.top&&(F.scrollTop=S.top),null!=S.left&&(F.scrollLeft=S.left))}measureScrollOffset(S){const F="left",V="right",ne=this.elementRef.nativeElement;if("top"==S)return ne.scrollTop;if("bottom"==S)return ne.scrollHeight-ne.clientHeight-ne.scrollTop;const De=this.dir&&"rtl"==this.dir.value;return"start"==S?S=De?V:F:"end"==S&&(S=De?F:V),De&&2==(0,vt._i)()?S==F?ne.scrollWidth-ne.clientWidth-ne.scrollLeft:ne.scrollLeft:De&&1==(0,vt._i)()?S==F?ne.scrollLeft+ne.scrollWidth-ne.clientWidth:-ne.scrollLeft:S==F?ne.scrollLeft:ne.scrollWidth-ne.clientWidth-ne.scrollLeft}}return ve.\u0275fac=function(S){return new(S||ve)(i.Y36(i.SBq),i.Y36(tt),i.Y36(i.R0b),i.Y36(Ge.Is,8))},ve.\u0275dir=i.lG2({type:ve,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),ve})(),pt=(()=>{class ve{constructor(S,F,V){this._platform=S,this._change=new A.xQ,this._changeListener=ne=>{this._change.next(ne)},this._document=V,F.runOutsideAngular(()=>{if(S.isBrowser){const ne=this._getWindow();ne.addEventListener("resize",this._changeListener),ne.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const S=this._getWindow();S.removeEventListener("resize",this._changeListener),S.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const S={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),S}getViewportRect(){const S=this.getViewportScrollPosition(),{width:F,height:V}=this.getViewportSize();return{top:S.top,left:S.left,bottom:S.top+V,right:S.left+F,height:V,width:F}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const S=this._document,F=this._getWindow(),V=S.documentElement,ne=V.getBoundingClientRect();return{top:-ne.top||S.body.scrollTop||F.scrollY||V.scrollTop||0,left:-ne.left||S.body.scrollLeft||F.scrollX||V.scrollLeft||0}}change(S=20){return S>0?this._change.pipe(Ee(S)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const S=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:S.innerWidth,height:S.innerHeight}:{width:0,height:0}}}return ve.\u0275fac=function(S){return new(S||ve)(i.LFG(vt.t4),i.LFG(i.R0b),i.LFG($e.K0,8))},ve.\u0275prov=i.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();const ft=new i.OlP("VIRTUAL_SCROLLABLE");let Et=(()=>{class ve extends ot{constructor(S,F,V,ne){super(S,F,V,ne)}measureViewportSize(S){const F=this.elementRef.nativeElement;return"horizontal"===S?F.clientWidth:F.clientHeight}}return ve.\u0275fac=function(S){return new(S||ve)(i.Y36(i.SBq),i.Y36(tt),i.Y36(i.R0b),i.Y36(Ge.Is,8))},ve.\u0275dir=i.lG2({type:ve,features:[i.qOj]}),ve})();const Pe=typeof requestAnimationFrame<"u"?f.Z:b.E;let je=(()=>{class ve extends Et{get orientation(){return this._orientation}set orientation(S){this._orientation!==S&&(this._orientation=S,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(S){this._appendOnly=(0,d.Ig)(S)}constructor(S,F,V,ne,De,wt,nn,Jt){super(S,wt,V,De),this.elementRef=S,this._changeDetectorRef=F,this._scrollStrategy=ne,this.scrollable=Jt,this._platform=(0,i.f3M)(vt.t4),this._detachedSubject=new A.xQ,this._renderedRangeSubject=new A.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new v.y(un=>this._scrollStrategy.scrolledIndexChange.subscribe(Zt=>Promise.resolve().then(()=>this.ngZone.run(()=>un.next(Zt))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=J.w.EMPTY,this._viewportChanges=nn.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,Qe.O)(null),Ee(0,Pe)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(S){this.ngZone.runOutsideAngular(()=>{this._forOf=S,this._forOf.dataStream.pipe((0,Ze.R)(this._detachedSubject)).subscribe(F=>{const V=F.length;V!==this._dataLength&&(this._dataLength=V,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(S){return this.getElementRef().nativeElement.getBoundingClientRect()[S]}setTotalContentSize(S){this._totalContentSize!==S&&(this._totalContentSize=S,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(S){(function be(ve,se){return ve.start==se.start&&ve.end==se.end})(this._renderedRange,S)||(this.appendOnly&&(S={start:0,end:Math.max(this._renderedRange.end,S.end)}),this._renderedRangeSubject.next(this._renderedRange=S),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(S,F="to-start"){S=this.appendOnly&&"to-start"===F?0:S;const ne="horizontal"==this.orientation,De=ne?"X":"Y";let nn=`translate${De}(${Number((ne&&this.dir&&"rtl"==this.dir.value?-1:1)*S)}px)`;this._renderedContentOffset=S,"to-end"===F&&(nn+=` translate${De}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=nn&&(this._renderedContentTransform=nn,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(S,F="auto"){const V={behavior:F};"horizontal"===this.orientation?V.start=S:V.top=S,this.scrollable.scrollTo(V)}scrollToIndex(S,F="auto"){this._scrollStrategy.scrollToIndex(S,F)}measureScrollOffset(S){let F;return F=this.scrollable==this?V=>super.measureScrollOffset(V):V=>this.scrollable.measureScrollOffset(V),Math.max(0,F(S??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(S){let F;const V="left",De="rtl"==this.dir?.value;F="start"==S?De?"right":V:"end"==S?De?V:"right":S||("horizontal"===this.orientation?"left":"top");const wt=this.scrollable.measureBoundingClientRectWithScrollOffset(F);return this.elementRef.nativeElement.getBoundingClientRect()[F]-wt}measureRenderedContentSize(){const S=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?S.offsetWidth:S.offsetHeight}measureRangeSize(S){return this._forOf?this._forOf.measureRangeSize(S,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(S){S&&this._runAfterChangeDetection.push(S),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const S=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const F of S)F()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return ve.\u0275fac=function(S){return new(S||ve)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(me,8),i.Y36(Ge.Is,8),i.Y36(tt),i.Y36(pt),i.Y36(ft,8))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(S,F){if(1&S&&i.Gf(Ce,7),2&S){let V;i.iGM(V=i.CRH())&&(F._contentWrapper=V.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(S,F){2&S&&i.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===F.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==F.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[i._Bn([{provide:ot,useFactory:(se,S)=>se||S,deps:[[new i.FiY,new i.tBr(ft)],ve]}]),i.qOj,i.jDz],ngContentSelectors:ke,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(S,F){1&S&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA(),i._UZ(3,"div",2)),2&S&&(i.xp6(3),i.Udp("width",F._totalContentWidth)("height",F._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),ve})(),we=(()=>{class ve{}return ve.\u0275fac=function(S){return new(S||ve)},ve.\u0275mod=i.oAB({type:ve}),ve.\u0275inj=i.cJS({}),ve})(),ce=(()=>{class ve{}return ve.\u0275fac=function(S){return new(S||ve)},ve.\u0275mod=i.oAB({type:ve}),ve.\u0275inj=i.cJS({imports:[Ge.vT,we,je,Ge.vT,we]}),ve})()},6895:(vn,_t,y)=>{"use strict";y.d(_t,{Do:()=>Qe,ED:()=>Mr,EM:()=>ko,HT:()=>p,JF:()=>$o,K0:()=>k,Mx:()=>wn,NF:()=>po,Nd:()=>ja,O5:()=>kr,RF:()=>Mo,S$:()=>Ee,V_:()=>J,Ye:()=>vt,b0:()=>Ze,bD:()=>Wo,ez:()=>zo,mk:()=>P,n9:()=>oa,q:()=>A,sg:()=>Ei,tP:()=>Dr,uU:()=>ba,wM:()=>pt,w_:()=>v});var d=y(4650);let i=null;function A(){return i}function p(ee){i||(i=ee)}class v{}const k=new d.OlP("DocumentToken");let f=(()=>{class ee{historyGo(he){throw new Error("Not implemented")}}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275prov=d.Yz7({token:ee,factory:function(){return function b(){return(0,d.LFG)(Y)}()},providedIn:"platform"}),ee})();const J=new d.OlP("Location Initialized");let Y=(()=>{class ee extends f{constructor(he){super(),this._doc=he,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return A().getBaseHref(this._doc)}onPopState(he){const mt=A().getGlobalEventTarget(this._doc,"window");return mt.addEventListener("popstate",he,!1),()=>mt.removeEventListener("popstate",he)}onHashChange(he){const mt=A().getGlobalEventTarget(this._doc,"window");return mt.addEventListener("hashchange",he,!1),()=>mt.removeEventListener("hashchange",he)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(he){this._location.pathname=he}pushState(he,mt,Qt){W()?this._history.pushState(he,mt,Qt):this._location.hash=Qt}replaceState(he,mt,Qt){W()?this._history.replaceState(he,mt,Qt):this._location.hash=Qt}forward(){this._history.forward()}back(){this._history.back()}historyGo(he=0){this._history.go(he)}getState(){return this._history.state}}return ee.\u0275fac=function(he){return new(he||ee)(d.LFG(k))},ee.\u0275prov=d.Yz7({token:ee,factory:function(){return function B(){return new Y((0,d.LFG)(k))}()},providedIn:"platform"}),ee})();function W(){return!!window.history.pushState}function Z(ee,Ue){if(0==ee.length)return Ue;if(0==Ue.length)return ee;let he=0;return ee.endsWith("/")&&he++,Ue.startsWith("/")&&he++,2==he?ee+Ue.substring(1):1==he?ee+Ue:ee+"/"+Ue}function G(ee){const Ue=ee.match(/#|\?|$/),he=Ue&&Ue.index||ee.length;return ee.slice(0,he-("/"===ee[he-1]?1:0))+ee.slice(he)}function ie(ee){return ee&&"?"!==ee[0]?"?"+ee:ee}let Ee=(()=>{class ee{historyGo(he){throw new Error("Not implemented")}}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275prov=d.Yz7({token:ee,factory:function(){return(0,d.f3M)(Ze)},providedIn:"root"}),ee})();const ue=new d.OlP("appBaseHref");let Ze=(()=>{class ee extends Ee{constructor(he,mt){super(),this._platformLocation=he,this._removeListenerFns=[],this._baseHref=mt??this._platformLocation.getBaseHrefFromDOM()??(0,d.f3M)(k).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(he){this._removeListenerFns.push(this._platformLocation.onPopState(he),this._platformLocation.onHashChange(he))}getBaseHref(){return this._baseHref}prepareExternalUrl(he){return Z(this._baseHref,he)}path(he=!1){const mt=this._platformLocation.pathname+ie(this._platformLocation.search),Qt=this._platformLocation.hash;return Qt&&he?`${mt}${Qt}`:mt}pushState(he,mt,Qt,kn){const Gn=this.prepareExternalUrl(Qt+ie(kn));this._platformLocation.pushState(he,mt,Gn)}replaceState(he,mt,Qt,kn){const Gn=this.prepareExternalUrl(Qt+ie(kn));this._platformLocation.replaceState(he,mt,Gn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(he=0){this._platformLocation.historyGo?.(he)}}return ee.\u0275fac=function(he){return new(he||ee)(d.LFG(f),d.LFG(ue,8))},ee.\u0275prov=d.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),Qe=(()=>{class ee extends Ee{constructor(he,mt){super(),this._platformLocation=he,this._baseHref="",this._removeListenerFns=[],null!=mt&&(this._baseHref=mt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(he){this._removeListenerFns.push(this._platformLocation.onPopState(he),this._platformLocation.onHashChange(he))}getBaseHref(){return this._baseHref}path(he=!1){let mt=this._platformLocation.hash;return null==mt&&(mt="#"),mt.length>0?mt.substring(1):mt}prepareExternalUrl(he){const mt=Z(this._baseHref,he);return mt.length>0?"#"+mt:mt}pushState(he,mt,Qt,kn){let Gn=this.prepareExternalUrl(Qt+ie(kn));0==Gn.length&&(Gn=this._platformLocation.pathname),this._platformLocation.pushState(he,mt,Gn)}replaceState(he,mt,Qt,kn){let Gn=this.prepareExternalUrl(Qt+ie(kn));0==Gn.length&&(Gn=this._platformLocation.pathname),this._platformLocation.replaceState(he,mt,Gn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(he=0){this._platformLocation.historyGo?.(he)}}return ee.\u0275fac=function(he){return new(he||ee)(d.LFG(f),d.LFG(ue,8))},ee.\u0275prov=d.Yz7({token:ee,factory:ee.\u0275fac}),ee})(),vt=(()=>{class ee{constructor(he){this._subject=new d.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=he;const mt=this._locationStrategy.getBaseHref();this._basePath=function ke(ee){if(new RegExp("^(https?:)?//").test(ee)){const[,he]=ee.split(/\/\/[^\/]+/);return he}return ee}(G(Ce(mt))),this._locationStrategy.onPopState(Qt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Qt.state,type:Qt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(he=!1){return this.normalize(this._locationStrategy.path(he))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(he,mt=""){return this.path()==this.normalize(he+ie(mt))}normalize(he){return ee.stripTrailingSlash(function Ge(ee,Ue){if(!ee||!Ue.startsWith(ee))return Ue;const he=Ue.substring(ee.length);return""===he||["/",";","?","#"].includes(he[0])?he:Ue}(this._basePath,Ce(he)))}prepareExternalUrl(he){return he&&"/"!==he[0]&&(he="/"+he),this._locationStrategy.prepareExternalUrl(he)}go(he,mt="",Qt=null){this._locationStrategy.pushState(Qt,"",he,mt),this._notifyUrlChangeListeners(this.prepareExternalUrl(he+ie(mt)),Qt)}replaceState(he,mt="",Qt=null){this._locationStrategy.replaceState(Qt,"",he,mt),this._notifyUrlChangeListeners(this.prepareExternalUrl(he+ie(mt)),Qt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(he=0){this._locationStrategy.historyGo?.(he)}onUrlChange(he){return this._urlChangeListeners.push(he),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(mt=>{this._notifyUrlChangeListeners(mt.url,mt.state)})),()=>{const mt=this._urlChangeListeners.indexOf(he);this._urlChangeListeners.splice(mt,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(he="",mt){this._urlChangeListeners.forEach(Qt=>Qt(he,mt))}subscribe(he,mt,Qt){return this._subject.subscribe({next:he,error:mt,complete:Qt})}}return ee.normalizeQueryParams=ie,ee.joinWithSlash=Z,ee.stripTrailingSlash=G,ee.\u0275fac=function(he){return new(he||ee)(d.LFG(Ee))},ee.\u0275prov=d.Yz7({token:ee,factory:function(){return function $e(){return new vt((0,d.LFG)(Ee))}()},providedIn:"root"}),ee})();function Ce(ee){return ee.replace(/\/index.html$/,"")}var Oe=(()=>((Oe=Oe||{})[Oe.Format=0]="Format",Oe[Oe.Standalone=1]="Standalone",Oe))(),Ae=(()=>((Ae=Ae||{})[Ae.Narrow=0]="Narrow",Ae[Ae.Abbreviated=1]="Abbreviated",Ae[Ae.Wide=2]="Wide",Ae[Ae.Short=3]="Short",Ae))(),tt=(()=>((tt=tt||{})[tt.Short=0]="Short",tt[tt.Medium=1]="Medium",tt[tt.Long=2]="Long",tt[tt.Full=3]="Full",tt))(),ot=(()=>((ot=ot||{})[ot.Decimal=0]="Decimal",ot[ot.Group=1]="Group",ot[ot.List=2]="List",ot[ot.PercentSign=3]="PercentSign",ot[ot.PlusSign=4]="PlusSign",ot[ot.MinusSign=5]="MinusSign",ot[ot.Exponential=6]="Exponential",ot[ot.SuperscriptingExponent=7]="SuperscriptingExponent",ot[ot.PerMille=8]="PerMille",ot[ot.Infinity=9]="Infinity",ot[ot.NaN=10]="NaN",ot[ot.TimeSeparator=11]="TimeSeparator",ot[ot.CurrencyDecimal=12]="CurrencyDecimal",ot[ot.CurrencyGroup=13]="CurrencyGroup",ot))();function pt(ee){return(0,d.cg1)(ee)[d.wAp.LocaleId]}function et(ee,Ue){return Jt((0,d.cg1)(ee)[d.wAp.DateFormat],Ue)}function gt(ee,Ue){return Jt((0,d.cg1)(ee)[d.wAp.TimeFormat],Ue)}function Re(ee,Ue){return Jt((0,d.cg1)(ee)[d.wAp.DateTimeFormat],Ue)}function we(ee,Ue){const he=(0,d.cg1)(ee),mt=he[d.wAp.NumberSymbols][Ue];if(typeof mt>"u"){if(Ue===ot.CurrencyDecimal)return he[d.wAp.NumberSymbols][ot.Decimal];if(Ue===ot.CurrencyGroup)return he[d.wAp.NumberSymbols][ot.Group]}return mt}function ne(ee){if(!ee[d.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${ee[d.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Jt(ee,Ue){for(let he=Ue;he>-1;he--)if(typeof ee[he]<"u")return ee[he];throw new Error("Locale data API: locale data undefined")}function un(ee){const[Ue,he]=ee.split(":");return{hours:+Ue,minutes:+he}}const Te=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,lt={},Je=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Lt=(()=>((Lt=Lt||{})[Lt.Short=0]="Short",Lt[Lt.ShortGMT=1]="ShortGMT",Lt[Lt.Long=2]="Long",Lt[Lt.Extended=3]="Extended",Lt))(),Ke=(()=>((Ke=Ke||{})[Ke.FullYear=0]="FullYear",Ke[Ke.Month=1]="Month",Ke[Ke.Date=2]="Date",Ke[Ke.Hours=3]="Hours",Ke[Ke.Minutes=4]="Minutes",Ke[Ke.Seconds=5]="Seconds",Ke[Ke.FractionalSeconds=6]="FractionalSeconds",Ke[Ke.Day=7]="Day",Ke))(),ge=(()=>((ge=ge||{})[ge.DayPeriods=0]="DayPeriods",ge[ge.Days=1]="Days",ge[ge.Months=2]="Months",ge[ge.Eras=3]="Eras",ge))();function Me(ee,Ue,he,mt){let Qt=function Fe(ee){if(nt(ee))return ee;if("number"==typeof ee&&!isNaN(ee))return new Date(ee);if("string"==typeof ee){if(ee=ee.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ee)){const[Qt,kn=1,Gn=1]=ee.split("-").map(Pi=>+Pi);return _e(Qt,kn-1,Gn)}const he=parseFloat(ee);if(!isNaN(ee-he))return new Date(he);let mt;if(mt=ee.match(Te))return function xt(ee){const Ue=new Date(0);let he=0,mt=0;const Qt=ee[8]?Ue.setUTCFullYear:Ue.setFullYear,kn=ee[8]?Ue.setUTCHours:Ue.setHours;ee[9]&&(he=Number(ee[9]+ee[10]),mt=Number(ee[9]+ee[11])),Qt.call(Ue,Number(ee[1]),Number(ee[2])-1,Number(ee[3]));const Gn=Number(ee[4]||0)-he,Pi=Number(ee[5]||0)-mt,Or=Number(ee[6]||0),Tr=Math.floor(1e3*parseFloat("0."+(ee[7]||0)));return kn.call(Ue,Gn,Pi,Or,Tr),Ue}(mt)}const Ue=new Date(ee);if(!nt(Ue))throw new Error(`Unable to convert "${ee}" into a date`);return Ue}(ee);Ue=it(he,Ue)||Ue;let Pi,Gn=[];for(;Ue;){if(Pi=Je.exec(Ue),!Pi){Gn.push(Ue);break}{Gn=Gn.concat(Pi.slice(1));const gr=Gn.pop();if(!gr)break;Ue=gr}}let Or=Qt.getTimezoneOffset();mt&&(Or=le(mt,Or),Qt=function Q(ee,Ue,he){const mt=he?-1:1,Qt=ee.getTimezoneOffset();return function pe(ee,Ue){return(ee=new Date(ee.getTime())).setMinutes(ee.getMinutes()+Ue),ee}(ee,mt*(le(Ue,Qt)-Qt))}(Qt,mt,!0));let Tr="";return Gn.forEach(gr=>{const nr=function ht(ee){if(yt[ee])return yt[ee];let Ue;switch(ee){case"G":case"GG":case"GGG":Ue=gn(ge.Eras,Ae.Abbreviated);break;case"GGGG":Ue=gn(ge.Eras,Ae.Wide);break;case"GGGGG":Ue=gn(ge.Eras,Ae.Narrow);break;case"y":Ue=An(Ke.FullYear,1,0,!1,!0);break;case"yy":Ue=An(Ke.FullYear,2,0,!0,!0);break;case"yyy":Ue=An(Ke.FullYear,3,0,!1,!0);break;case"yyyy":Ue=An(Ke.FullYear,4,0,!1,!0);break;case"Y":Ue=He(1);break;case"YY":Ue=He(2,!0);break;case"YYY":Ue=He(3);break;case"YYYY":Ue=He(4);break;case"M":case"L":Ue=An(Ke.Month,1,1);break;case"MM":case"LL":Ue=An(Ke.Month,2,1);break;case"MMM":Ue=gn(ge.Months,Ae.Abbreviated);break;case"MMMM":Ue=gn(ge.Months,Ae.Wide);break;case"MMMMM":Ue=gn(ge.Months,Ae.Narrow);break;case"LLL":Ue=gn(ge.Months,Ae.Abbreviated,Oe.Standalone);break;case"LLLL":Ue=gn(ge.Months,Ae.Wide,Oe.Standalone);break;case"LLLLL":Ue=gn(ge.Months,Ae.Narrow,Oe.Standalone);break;case"w":Ue=q(1);break;case"ww":Ue=q(2);break;case"W":Ue=q(1,!0);break;case"d":Ue=An(Ke.Date,1);break;case"dd":Ue=An(Ke.Date,2);break;case"c":case"cc":Ue=An(Ke.Day,1);break;case"ccc":Ue=gn(ge.Days,Ae.Abbreviated,Oe.Standalone);break;case"cccc":Ue=gn(ge.Days,Ae.Wide,Oe.Standalone);break;case"ccccc":Ue=gn(ge.Days,Ae.Narrow,Oe.Standalone);break;case"cccccc":Ue=gn(ge.Days,Ae.Short,Oe.Standalone);break;case"E":case"EE":case"EEE":Ue=gn(ge.Days,Ae.Abbreviated);break;case"EEEE":Ue=gn(ge.Days,Ae.Wide);break;case"EEEEE":Ue=gn(ge.Days,Ae.Narrow);break;case"EEEEEE":Ue=gn(ge.Days,Ae.Short);break;case"a":case"aa":case"aaa":Ue=gn(ge.DayPeriods,Ae.Abbreviated);break;case"aaaa":Ue=gn(ge.DayPeriods,Ae.Wide);break;case"aaaaa":Ue=gn(ge.DayPeriods,Ae.Narrow);break;case"b":case"bb":case"bbb":Ue=gn(ge.DayPeriods,Ae.Abbreviated,Oe.Standalone,!0);break;case"bbbb":Ue=gn(ge.DayPeriods,Ae.Wide,Oe.Standalone,!0);break;case"bbbbb":Ue=gn(ge.DayPeriods,Ae.Narrow,Oe.Standalone,!0);break;case"B":case"BB":case"BBB":Ue=gn(ge.DayPeriods,Ae.Abbreviated,Oe.Format,!0);break;case"BBBB":Ue=gn(ge.DayPeriods,Ae.Wide,Oe.Format,!0);break;case"BBBBB":Ue=gn(ge.DayPeriods,Ae.Narrow,Oe.Format,!0);break;case"h":Ue=An(Ke.Hours,1,-12);break;case"hh":Ue=An(Ke.Hours,2,-12);break;case"H":Ue=An(Ke.Hours,1);break;case"HH":Ue=An(Ke.Hours,2);break;case"m":Ue=An(Ke.Minutes,1);break;case"mm":Ue=An(Ke.Minutes,2);break;case"s":Ue=An(Ke.Seconds,1);break;case"ss":Ue=An(Ke.Seconds,2);break;case"S":Ue=An(Ke.FractionalSeconds,1);break;case"SS":Ue=An(Ke.FractionalSeconds,2);break;case"SSS":Ue=An(Ke.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Ue=cn(Lt.Short);break;case"ZZZZZ":Ue=cn(Lt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Ue=cn(Lt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Ue=cn(Lt.Long);break;default:return null}return yt[ee]=Ue,Ue}(gr);Tr+=nr?nr(Qt,he,Or):"''"===gr?"'":gr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Tr}function _e(ee,Ue,he){const mt=new Date(0);return mt.setFullYear(ee,Ue,he),mt.setHours(0,0,0),mt}function it(ee,Ue){const he=pt(ee);if(lt[he]=lt[he]||{},lt[he][Ue])return lt[he][Ue];let mt="";switch(Ue){case"shortDate":mt=et(ee,tt.Short);break;case"mediumDate":mt=et(ee,tt.Medium);break;case"longDate":mt=et(ee,tt.Long);break;case"fullDate":mt=et(ee,tt.Full);break;case"shortTime":mt=gt(ee,tt.Short);break;case"mediumTime":mt=gt(ee,tt.Medium);break;case"longTime":mt=gt(ee,tt.Long);break;case"fullTime":mt=gt(ee,tt.Full);break;case"short":const Qt=it(ee,"shortTime"),kn=it(ee,"shortDate");mt=ct(Re(ee,tt.Short),[Qt,kn]);break;case"medium":const Gn=it(ee,"mediumTime"),Pi=it(ee,"mediumDate");mt=ct(Re(ee,tt.Medium),[Gn,Pi]);break;case"long":const Or=it(ee,"longTime"),Tr=it(ee,"longDate");mt=ct(Re(ee,tt.Long),[Or,Tr]);break;case"full":const gr=it(ee,"fullTime"),nr=it(ee,"fullDate");mt=ct(Re(ee,tt.Full),[gr,nr])}return mt&&(lt[he][Ue]=mt),mt}function ct(ee,Ue){return Ue&&(ee=ee.replace(/\{([^}]+)}/g,function(he,mt){return null!=Ue&&mt in Ue?Ue[mt]:he})),ee}function dn(ee,Ue,he="-",mt,Qt){let kn="";(ee<0||Qt&&ee<=0)&&(Qt?ee=1-ee:(ee=-ee,kn=he));let Gn=String(ee);for(;Gn.length<Ue;)Gn="0"+Gn;return mt&&(Gn=Gn.slice(Gn.length-Ue)),kn+Gn}function An(ee,Ue,he=0,mt=!1,Qt=!1){return function(kn,Gn){let Pi=function Gt(ee,Ue){switch(ee){case Ke.FullYear:return Ue.getFullYear();case Ke.Month:return Ue.getMonth();case Ke.Date:return Ue.getDate();case Ke.Hours:return Ue.getHours();case Ke.Minutes:return Ue.getMinutes();case Ke.Seconds:return Ue.getSeconds();case Ke.FractionalSeconds:return Ue.getMilliseconds();case Ke.Day:return Ue.getDay();default:throw new Error(`Unknown DateType value "${ee}".`)}}(ee,kn);if((he>0||Pi>-he)&&(Pi+=he),ee===Ke.Hours)0===Pi&&-12===he&&(Pi=12);else if(ee===Ke.FractionalSeconds)return function Rn(ee,Ue){return dn(ee,3).substring(0,Ue)}(Pi,Ue);const Or=we(Gn,ot.MinusSign);return dn(Pi,Ue,Or,mt,Qt)}}function gn(ee,Ue,he=Oe.Format,mt=!1){return function(Qt,kn){return function St(ee,Ue,he,mt,Qt,kn){switch(he){case ge.Months:return function be(ee,Ue,he){const mt=(0,d.cg1)(ee),kn=Jt([mt[d.wAp.MonthsFormat],mt[d.wAp.MonthsStandalone]],Ue);return Jt(kn,he)}(Ue,Qt,mt)[ee.getMonth()];case ge.Days:return function Et(ee,Ue,he){const mt=(0,d.cg1)(ee),kn=Jt([mt[d.wAp.DaysFormat],mt[d.wAp.DaysStandalone]],Ue);return Jt(kn,he)}(Ue,Qt,mt)[ee.getDay()];case ge.DayPeriods:const Gn=ee.getHours(),Pi=ee.getMinutes();if(kn){const Tr=function De(ee){const Ue=(0,d.cg1)(ee);return ne(Ue),(Ue[d.wAp.ExtraData][2]||[]).map(mt=>"string"==typeof mt?un(mt):[un(mt[0]),un(mt[1])])}(Ue),gr=function wt(ee,Ue,he){const mt=(0,d.cg1)(ee);ne(mt);const kn=Jt([mt[d.wAp.ExtraData][0],mt[d.wAp.ExtraData][1]],Ue)||[];return Jt(kn,he)||[]}(Ue,Qt,mt),nr=Tr.findIndex(ra=>{if(Array.isArray(ra)){const[wr,la]=ra,Jo=Gn>=wr.hours&&Pi>=wr.minutes,bo=Gn<la.hours||Gn===la.hours&&Pi<la.minutes;if(wr.hours<la.hours){if(Jo&&bo)return!0}else if(Jo||bo)return!0}else if(ra.hours===Gn&&ra.minutes===Pi)return!0;return!1});if(-1!==nr)return gr[nr]}return function ft(ee,Ue,he){const mt=(0,d.cg1)(ee),kn=Jt([mt[d.wAp.DayPeriodsFormat],mt[d.wAp.DayPeriodsStandalone]],Ue);return Jt(kn,he)}(Ue,Qt,mt)[Gn<12?0:1];case ge.Eras:return function Pe(ee,Ue){return Jt((0,d.cg1)(ee)[d.wAp.Eras],Ue)}(Ue,mt)[ee.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${he}`)}}(Qt,kn,ee,Ue,he,mt)}}function cn(ee){return function(Ue,he,mt){const Qt=-1*mt,kn=we(he,ot.MinusSign),Gn=Qt>0?Math.floor(Qt/60):Math.ceil(Qt/60);switch(ee){case Lt.Short:return(Qt>=0?"+":"")+dn(Gn,2,kn)+dn(Math.abs(Qt%60),2,kn);case Lt.ShortGMT:return"GMT"+(Qt>=0?"+":"")+dn(Gn,1,kn);case Lt.Long:return"GMT"+(Qt>=0?"+":"")+dn(Gn,2,kn)+":"+dn(Math.abs(Qt%60),2,kn);case Lt.Extended:return 0===mt?"Z":(Qt>=0?"+":"")+dn(Gn,2,kn)+":"+dn(Math.abs(Qt%60),2,kn);default:throw new Error(`Unknown zone width "${ee}"`)}}}const Qn=0,ai=4;function de(ee){return _e(ee.getFullYear(),ee.getMonth(),ee.getDate()+(ai-ee.getDay()))}function q(ee,Ue=!1){return function(he,mt){let Qt;if(Ue){const kn=new Date(he.getFullYear(),he.getMonth(),1).getDay()-1,Gn=he.getDate();Qt=1+Math.floor((Gn+kn)/7)}else{const kn=de(he),Gn=function ze(ee){const Ue=_e(ee,Qn,1).getDay();return _e(ee,0,1+(Ue<=ai?ai:ai+7)-Ue)}(kn.getFullYear()),Pi=kn.getTime()-Gn.getTime();Qt=1+Math.round(Pi/6048e5)}return dn(Qt,ee,we(mt,ot.MinusSign))}}function He(ee,Ue=!1){return function(he,mt){return dn(de(he).getFullYear(),ee,we(mt,ot.MinusSign),Ue)}}const yt={};function le(ee,Ue){ee=ee.replace(/:/g,"");const he=Date.parse("Jan 01, 1970 00:00:00 "+ee)/6e4;return isNaN(he)?Ue:he}function nt(ee){return ee instanceof Date&&!isNaN(ee.valueOf())}function wn(ee,Ue){Ue=encodeURIComponent(Ue);for(const he of ee.split(";")){const mt=he.indexOf("="),[Qt,kn]=-1==mt?[he,""]:[he.slice(0,mt),he.slice(mt+1)];if(Qt.trim()===Ue)return decodeURIComponent(kn)}return null}const rt=/\s+/,Nt=[];let P=(()=>{class ee{constructor(he,mt,Qt,kn){this._iterableDiffers=he,this._keyValueDiffers=mt,this._ngEl=Qt,this._renderer=kn,this.initialClasses=Nt,this.stateMap=new Map}set klass(he){this.initialClasses=null!=he?he.trim().split(rt):Nt}set ngClass(he){this.rawClass="string"==typeof he?he.trim().split(rt):he}ngDoCheck(){for(const mt of this.initialClasses)this._updateState(mt,!0);const he=this.rawClass;if(Array.isArray(he)||he instanceof Set)for(const mt of he)this._updateState(mt,!0);else if(null!=he)for(const mt of Object.keys(he))this._updateState(mt,Boolean(he[mt]));this._applyStateDiff()}_updateState(he,mt){const Qt=this.stateMap.get(he);void 0!==Qt?(Qt.enabled!==mt&&(Qt.changed=!0,Qt.enabled=mt),Qt.touched=!0):this.stateMap.set(he,{enabled:mt,changed:!0,touched:!0})}_applyStateDiff(){for(const he of this.stateMap){const mt=he[0],Qt=he[1];Qt.changed?(this._toggleClass(mt,Qt.enabled),Qt.changed=!1):Qt.touched||(Qt.enabled&&this._toggleClass(mt,!1),this.stateMap.delete(mt)),Qt.touched=!1}}_toggleClass(he,mt){(he=he.trim()).length>0&&he.split(rt).forEach(Qt=>{mt?this._renderer.addClass(this._ngEl.nativeElement,Qt):this._renderer.removeClass(this._ngEl.nativeElement,Qt)})}}return ee.\u0275fac=function(he){return new(he||ee)(d.Y36(d.ZZ4),d.Y36(d.aQg),d.Y36(d.SBq),d.Y36(d.Qsj))},ee.\u0275dir=d.lG2({type:ee,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),ee})();class Mn{constructor(Ue,he,mt,Qt){this.$implicit=Ue,this.ngForOf=he,this.index=mt,this.count=Qt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ei=(()=>{class ee{set ngForOf(he){this._ngForOf=he,this._ngForOfDirty=!0}set ngForTrackBy(he){this._trackByFn=he}get ngForTrackBy(){return this._trackByFn}constructor(he,mt,Qt){this._viewContainer=he,this._template=mt,this._differs=Qt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(he){he&&(this._template=he)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const he=this._ngForOf;!this._differ&&he&&(this._differ=this._differs.find(he).create(this.ngForTrackBy))}if(this._differ){const he=this._differ.diff(this._ngForOf);he&&this._applyChanges(he)}}_applyChanges(he){const mt=this._viewContainer;he.forEachOperation((Qt,kn,Gn)=>{if(null==Qt.previousIndex)mt.createEmbeddedView(this._template,new Mn(Qt.item,this._ngForOf,-1,-1),null===Gn?void 0:Gn);else if(null==Gn)mt.remove(null===kn?void 0:kn);else if(null!==kn){const Pi=mt.get(kn);mt.move(Pi,Gn),Ai(Pi,Qt)}});for(let Qt=0,kn=mt.length;Qt<kn;Qt++){const Pi=mt.get(Qt).context;Pi.index=Qt,Pi.count=kn,Pi.ngForOf=this._ngForOf}he.forEachIdentityChange(Qt=>{Ai(mt.get(Qt.currentIndex),Qt)})}static ngTemplateContextGuard(he,mt){return!0}}return ee.\u0275fac=function(he){return new(he||ee)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(d.ZZ4))},ee.\u0275dir=d.lG2({type:ee,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),ee})();function Ai(ee,Ue){ee.context.$implicit=Ue.item}let kr=(()=>{class ee{constructor(he,mt){this._viewContainer=he,this._context=new Li,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=mt}set ngIf(he){this._context.$implicit=this._context.ngIf=he,this._updateView()}set ngIfThen(he){Lr("ngIfThen",he),this._thenTemplateRef=he,this._thenViewRef=null,this._updateView()}set ngIfElse(he){Lr("ngIfElse",he),this._elseTemplateRef=he,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(he,mt){return!0}}return ee.\u0275fac=function(he){return new(he||ee)(d.Y36(d.s_b),d.Y36(d.Rgc))},ee.\u0275dir=d.lG2({type:ee,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),ee})();class Li{constructor(){this.$implicit=null,this.ngIf=null}}function Lr(ee,Ue){if(Ue&&!Ue.createEmbeddedView)throw new Error(`${ee} must be a TemplateRef, but received '${(0,d.AaK)(Ue)}'.`)}class Zn{constructor(Ue,he){this._viewContainerRef=Ue,this._templateRef=he,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Ue){Ue&&!this._created?this.create():!Ue&&this._created&&this.destroy()}}let Mo=(()=>{class ee{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(he){this._ngSwitch=he,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(he){this._defaultViews.push(he)}_matchCase(he){const mt=he==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||mt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),mt}_updateDefaultCases(he){if(this._defaultViews.length>0&&he!==this._defaultUsed){this._defaultUsed=he;for(const mt of this._defaultViews)mt.enforceState(he)}}}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275dir=d.lG2({type:ee,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),ee})(),oa=(()=>{class ee{constructor(he,mt,Qt){this.ngSwitch=Qt,Qt._addCase(),this._view=new Zn(he,mt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return ee.\u0275fac=function(he){return new(he||ee)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Mo,9))},ee.\u0275dir=d.lG2({type:ee,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),ee})(),Mr=(()=>{class ee{constructor(he,mt,Qt){Qt._addDefault(new Zn(he,mt))}}return ee.\u0275fac=function(he){return new(he||ee)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Mo,9))},ee.\u0275dir=d.lG2({type:ee,selectors:[["","ngSwitchDefault",""]],standalone:!0}),ee})(),Dr=(()=>{class ee{constructor(he){this._viewContainerRef=he,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(he){if(he.ngTemplateOutlet||he.ngTemplateOutletInjector){const mt=this._viewContainerRef;if(this._viewRef&&mt.remove(mt.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Qt,ngTemplateOutletContext:kn,ngTemplateOutletInjector:Gn}=this;this._viewRef=mt.createEmbeddedView(Qt,kn,Gn?{injector:Gn}:void 0)}else this._viewRef=null}else this._viewRef&&he.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return ee.\u0275fac=function(he){return new(he||ee)(d.Y36(d.s_b))},ee.\u0275dir=d.lG2({type:ee,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[d.TTD]}),ee})();const Yo=new d.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Js=new d.OlP("DATE_PIPE_DEFAULT_OPTIONS");let ba=(()=>{class ee{constructor(he,mt,Qt){this.locale=he,this.defaultTimezone=mt,this.defaultOptions=Qt}transform(he,mt,Qt,kn){if(null==he||""===he||he!=he)return null;try{return Me(he,mt??this.defaultOptions?.dateFormat??"mediumDate",kn||this.locale,Qt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Gn){throw function eo(ee,Ue){return new d.vHH(2100,!1)}()}}}return ee.\u0275fac=function(he){return new(he||ee)(d.Y36(d.soG,16),d.Y36(Yo,24),d.Y36(Js,24))},ee.\u0275pipe=d.Yjl({name:"date",type:ee,pure:!0,standalone:!0}),ee})(),ja=(()=>{class ee{constructor(he){this.differs=he,this.keyValues=[],this.compareFn=Ao}transform(he,mt=Ao){if(!he||!(he instanceof Map)&&"object"!=typeof he)return null;this.differ||(this.differ=this.differs.find(he).create());const Qt=this.differ.diff(he),kn=mt!==this.compareFn;return Qt&&(this.keyValues=[],Qt.forEachItem(Gn=>{this.keyValues.push(function Ra(ee,Ue){return{key:ee,value:Ue}}(Gn.key,Gn.currentValue))})),(Qt||kn)&&(this.keyValues.sort(mt),this.compareFn=mt),this.keyValues}}return ee.\u0275fac=function(he){return new(he||ee)(d.Y36(d.aQg,16))},ee.\u0275pipe=d.Yjl({name:"keyvalue",type:ee,pure:!1,standalone:!0}),ee})();function Ao(ee,Ue){const he=ee.key,mt=Ue.key;if(he===mt)return 0;if(void 0===he)return 1;if(void 0===mt)return-1;if(null===he)return 1;if(null===mt)return-1;if("string"==typeof he&&"string"==typeof mt)return he<mt?-1:1;if("number"==typeof he&&"number"==typeof mt)return he-mt;if("boolean"==typeof he&&"boolean"==typeof mt)return he<mt?-1:1;const Qt=String(he),kn=String(mt);return Qt==kn?0:Qt<kn?-1:1}let zo=(()=>{class ee{}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275mod=d.oAB({type:ee}),ee.\u0275inj=d.cJS({}),ee})();const Wo="browser";function po(ee){return ee===Wo}let ko=(()=>{class ee{}return ee.\u0275prov=(0,d.Yz7)({token:ee,providedIn:"root",factory:()=>new vl((0,d.LFG)(k),window)}),ee})();class vl{constructor(Ue,he){this.document=Ue,this.window=he,this.offset=()=>[0,0]}setOffset(Ue){this.offset=Array.isArray(Ue)?()=>Ue:Ue}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Ue){this.supportsScrolling()&&this.window.scrollTo(Ue[0],Ue[1])}scrollToAnchor(Ue){if(!this.supportsScrolling())return;const he=function Ns(ee,Ue){const he=ee.getElementById(Ue)||ee.getElementsByName(Ue)[0];if(he)return he;if("function"==typeof ee.createTreeWalker&&ee.body&&(ee.body.createShadowRoot||ee.body.attachShadow)){const mt=ee.createTreeWalker(ee.body,NodeFilter.SHOW_ELEMENT);let Qt=mt.currentNode;for(;Qt;){const kn=Qt.shadowRoot;if(kn){const Gn=kn.getElementById(Ue)||kn.querySelector(`[name="${Ue}"]`);if(Gn)return Gn}Qt=mt.nextNode()}}return null}(this.document,Ue);he&&(this.scrollToElement(he),he.focus())}setHistoryScrollRestoration(Ue){if(this.supportScrollRestoration()){const he=this.window.history;he&&he.scrollRestoration&&(he.scrollRestoration=Ue)}}scrollToElement(Ue){const he=Ue.getBoundingClientRect(),mt=he.left+this.window.pageXOffset,Qt=he.top+this.window.pageYOffset,kn=this.offset();this.window.scrollTo(mt-kn[0],Qt-kn[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Ue=il(this.window.history)||il(Object.getPrototypeOf(this.window.history));return!(!Ue||!Ue.writable&&!Ue.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function il(ee){return Object.getOwnPropertyDescriptor(ee,"scrollRestoration")}class $o{}},529:(vn,_t,y)=>{"use strict";y.d(_t,{JF:()=>cn,LE:()=>Ze,TP:()=>Pe,WM:()=>Y,eN:()=>pt});var d=y(6895),i=y(4650),A=y(1086),p=y(6498),v=y(1406),k=y(2198),f=y(4850);class b{}class J{}class Y{constructor(de){this.normalizedNames=new Map,this.lazyUpdate=null,de?this.lazyInit="string"==typeof de?()=>{this.headers=new Map,de.split("\n").forEach(q=>{const He=q.indexOf(":");if(He>0){const yt=q.slice(0,He),ht=yt.toLowerCase(),le=q.slice(He+1).trim();this.maybeSetNormalizedName(yt,ht),this.headers.has(ht)?this.headers.get(ht).push(le):this.headers.set(ht,[le])}})}:()=>{this.headers=new Map,Object.entries(de).forEach(([q,He])=>{let yt;if(yt="string"==typeof He?[He]:"number"==typeof He?[He.toString()]:He.map(ht=>ht.toString()),yt.length>0){const ht=q.toLowerCase();this.headers.set(ht,yt),this.maybeSetNormalizedName(q,ht)}})}:this.headers=new Map}has(de){return this.init(),this.headers.has(de.toLowerCase())}get(de){this.init();const q=this.headers.get(de.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(de){return this.init(),this.headers.get(de.toLowerCase())||null}append(de,q){return this.clone({name:de,value:q,op:"a"})}set(de,q){return this.clone({name:de,value:q,op:"s"})}delete(de,q){return this.clone({name:de,value:q,op:"d"})}maybeSetNormalizedName(de,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,de)}init(){this.lazyInit&&(this.lazyInit instanceof Y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(de=>this.applyUpdate(de)),this.lazyUpdate=null))}copyFrom(de){de.init(),Array.from(de.headers.keys()).forEach(q=>{this.headers.set(q,de.headers.get(q)),this.normalizedNames.set(q,de.normalizedNames.get(q))})}clone(de){const q=new Y;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof Y?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([de]),q}applyUpdate(de){const q=de.name.toLowerCase();switch(de.op){case"a":case"s":let He=de.value;if("string"==typeof He&&(He=[He]),0===He.length)return;this.maybeSetNormalizedName(de.name,q);const yt=("a"===de.op?this.headers.get(q):void 0)||[];yt.push(...He),this.headers.set(q,yt);break;case"d":const ht=de.value;if(ht){let le=this.headers.get(q);if(!le)return;le=le.filter(pe=>-1===ht.indexOf(pe)),0===le.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,le)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(de){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>de(this.normalizedNames.get(q),this.headers.get(q)))}}class B{encodeKey(de){return Ee(de)}encodeValue(de){return Ee(de)}decodeKey(de){return decodeURIComponent(de)}decodeValue(de){return decodeURIComponent(de)}}const G=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ee(ze){return encodeURIComponent(ze).replace(G,(de,q)=>ie[q]??de)}function ue(ze){return`${ze}`}class Ze{constructor(de={}){if(this.updates=null,this.cloneFrom=null,this.encoder=de.encoder||new B,de.fromString){if(de.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Z(ze,de){const q=new Map;return ze.length>0&&ze.replace(/^\?/,"").split("&").forEach(yt=>{const ht=yt.indexOf("="),[le,pe]=-1==ht?[de.decodeKey(yt),""]:[de.decodeKey(yt.slice(0,ht)),de.decodeValue(yt.slice(ht+1))],Q=q.get(le)||[];Q.push(pe),q.set(le,Q)}),q}(de.fromString,this.encoder)}else de.fromObject?(this.map=new Map,Object.keys(de.fromObject).forEach(q=>{const He=de.fromObject[q],yt=Array.isArray(He)?He.map(ue):[ue(He)];this.map.set(q,yt)})):this.map=null}has(de){return this.init(),this.map.has(de)}get(de){this.init();const q=this.map.get(de);return q?q[0]:null}getAll(de){return this.init(),this.map.get(de)||null}keys(){return this.init(),Array.from(this.map.keys())}append(de,q){return this.clone({param:de,value:q,op:"a"})}appendAll(de){const q=[];return Object.keys(de).forEach(He=>{const yt=de[He];Array.isArray(yt)?yt.forEach(ht=>{q.push({param:He,value:ht,op:"a"})}):q.push({param:He,value:yt,op:"a"})}),this.clone(q)}set(de,q){return this.clone({param:de,value:q,op:"s"})}delete(de,q){return this.clone({param:de,value:q,op:"d"})}toString(){return this.init(),this.keys().map(de=>{const q=this.encoder.encodeKey(de);return this.map.get(de).map(He=>q+"="+this.encoder.encodeValue(He)).join("&")}).filter(de=>""!==de).join("&")}clone(de){const q=new Ze({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(de),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(de=>this.map.set(de,this.cloneFrom.map.get(de))),this.updates.forEach(de=>{switch(de.op){case"a":case"s":const q=("a"===de.op?this.map.get(de.param):void 0)||[];q.push(ue(de.value)),this.map.set(de.param,q);break;case"d":if(void 0===de.value){this.map.delete(de.param);break}{let He=this.map.get(de.param)||[];const yt=He.indexOf(ue(de.value));-1!==yt&&He.splice(yt,1),He.length>0?this.map.set(de.param,He):this.map.delete(de.param)}}}),this.cloneFrom=this.updates=null)}}class vt{constructor(){this.map=new Map}set(de,q){return this.map.set(de,q),this}get(de){return this.map.has(de)||this.map.set(de,de.defaultValue()),this.map.get(de)}delete(de){return this.map.delete(de),this}has(de){return this.map.has(de)}keys(){return this.map.keys()}}function Ge(ze){return typeof ArrayBuffer<"u"&&ze instanceof ArrayBuffer}function Ce(ze){return typeof Blob<"u"&&ze instanceof Blob}function ke(ze){return typeof FormData<"u"&&ze instanceof FormData}class re{constructor(de,q,He,yt){let ht;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=de.toUpperCase(),function $e(ze){switch(ze){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||yt?(this.body=void 0!==He?He:null,ht=yt):ht=He,ht&&(this.reportProgress=!!ht.reportProgress,this.withCredentials=!!ht.withCredentials,ht.responseType&&(this.responseType=ht.responseType),ht.headers&&(this.headers=ht.headers),ht.context&&(this.context=ht.context),ht.params&&(this.params=ht.params)),this.headers||(this.headers=new Y),this.context||(this.context=new vt),this.params){const le=this.params.toString();if(0===le.length)this.urlWithParams=q;else{const pe=q.indexOf("?");this.urlWithParams=q+(-1===pe?"?":pe<q.length-1?"&":"")+le}}else this.params=new Ze,this.urlWithParams=q}serializeBody(){return null===this.body?null:Ge(this.body)||Ce(this.body)||ke(this.body)||function me(ze){return typeof URLSearchParams<"u"&&ze instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ze?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||ke(this.body)?null:Ce(this.body)?this.body.type||null:Ge(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ze?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(de={}){const q=de.method||this.method,He=de.url||this.url,yt=de.responseType||this.responseType,ht=void 0!==de.body?de.body:this.body,le=void 0!==de.withCredentials?de.withCredentials:this.withCredentials,pe=void 0!==de.reportProgress?de.reportProgress:this.reportProgress;let Q=de.headers||this.headers,Fe=de.params||this.params;const xt=de.context??this.context;return void 0!==de.setHeaders&&(Q=Object.keys(de.setHeaders).reduce((nt,Ct)=>nt.set(Ct,de.setHeaders[Ct]),Q)),de.setParams&&(Fe=Object.keys(de.setParams).reduce((nt,Ct)=>nt.set(Ct,de.setParams[Ct]),Fe)),new re(q,He,ht,{params:Fe,headers:Q,context:xt,reportProgress:pe,responseType:yt,withCredentials:le})}}var ye=(()=>((ye=ye||{})[ye.Sent=0]="Sent",ye[ye.UploadProgress=1]="UploadProgress",ye[ye.ResponseHeader=2]="ResponseHeader",ye[ye.DownloadProgress=3]="DownloadProgress",ye[ye.Response=4]="Response",ye[ye.User=5]="User",ye))();class Oe{constructor(de,q=200,He="OK"){this.headers=de.headers||new Y,this.status=void 0!==de.status?de.status:q,this.statusText=de.statusText||He,this.url=de.url||null,this.ok=this.status>=200&&this.status<300}}class Ae extends Oe{constructor(de={}){super(de),this.type=ye.ResponseHeader}clone(de={}){return new Ae({headers:de.headers||this.headers,status:void 0!==de.status?de.status:this.status,statusText:de.statusText||this.statusText,url:de.url||this.url||void 0})}}class tt extends Oe{constructor(de={}){super(de),this.type=ye.Response,this.body=void 0!==de.body?de.body:null}clone(de={}){return new tt({body:void 0!==de.body?de.body:this.body,headers:de.headers||this.headers,status:void 0!==de.status?de.status:this.status,statusText:de.statusText||this.statusText,url:de.url||this.url||void 0})}}class ot extends Oe{constructor(de){super(de,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${de.url||"(unknown url)"}`:`Http failure response for ${de.url||"(unknown url)"}: ${de.status} ${de.statusText}`,this.error=de.error||null}}function at(ze,de){return{body:de,headers:ze.headers,context:ze.context,observe:ze.observe,params:ze.params,reportProgress:ze.reportProgress,responseType:ze.responseType,withCredentials:ze.withCredentials}}let pt=(()=>{class ze{constructor(q){this.handler=q}request(q,He,yt={}){let ht;if(q instanceof re)ht=q;else{let Q,Fe;Q=yt.headers instanceof Y?yt.headers:new Y(yt.headers),yt.params&&(Fe=yt.params instanceof Ze?yt.params:new Ze({fromObject:yt.params})),ht=new re(q,He,void 0!==yt.body?yt.body:null,{headers:Q,context:yt.context,params:Fe,reportProgress:yt.reportProgress,responseType:yt.responseType||"json",withCredentials:yt.withCredentials})}const le=(0,A.of)(ht).pipe((0,v.b)(Q=>this.handler.handle(Q)));if(q instanceof re||"events"===yt.observe)return le;const pe=le.pipe((0,k.h)(Q=>Q instanceof tt));switch(yt.observe||"body"){case"body":switch(ht.responseType){case"arraybuffer":return pe.pipe((0,f.U)(Q=>{if(null!==Q.body&&!(Q.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Q.body}));case"blob":return pe.pipe((0,f.U)(Q=>{if(null!==Q.body&&!(Q.body instanceof Blob))throw new Error("Response is not a Blob.");return Q.body}));case"text":return pe.pipe((0,f.U)(Q=>{if(null!==Q.body&&"string"!=typeof Q.body)throw new Error("Response is not a string.");return Q.body}));default:return pe.pipe((0,f.U)(Q=>Q.body))}case"response":return pe;default:throw new Error(`Unreachable: unhandled observe type ${yt.observe}}`)}}delete(q,He={}){return this.request("DELETE",q,He)}get(q,He={}){return this.request("GET",q,He)}head(q,He={}){return this.request("HEAD",q,He)}jsonp(q,He){return this.request("JSONP",q,{params:(new Ze).append(He,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,He={}){return this.request("OPTIONS",q,He)}patch(q,He,yt={}){return this.request("PATCH",q,at(yt,He))}post(q,He,yt={}){return this.request("POST",q,at(yt,He))}put(q,He,yt={}){return this.request("PUT",q,at(yt,He))}}return ze.\u0275fac=function(q){return new(q||ze)(i.LFG(b))},ze.\u0275prov=i.Yz7({token:ze,factory:ze.\u0275fac}),ze})();function ft(ze,de){return de(ze)}function Et(ze,de){return(q,He)=>de.intercept(q,{handle:yt=>ze(yt,He)})}const Pe=new i.OlP("HTTP_INTERCEPTORS"),je=new i.OlP("HTTP_INTERCEPTOR_FNS");function dt(){let ze=null;return(de,q)=>(null===ze&&(ze=((0,i.f3M)(Pe,{optional:!0})??[]).reduceRight(Et,ft)),ze(de,q))}let et=(()=>{class ze extends b{constructor(q,He){super(),this.backend=q,this.injector=He,this.chain=null}handle(q){if(null===this.chain){const He=Array.from(new Set(this.injector.get(je)));this.chain=He.reduceRight((yt,ht)=>function be(ze,de,q){return(He,yt)=>q.runInContext(()=>de(He,ht=>ze(ht,yt)))}(yt,ht,this.injector),ft)}return this.chain(q,He=>this.backend.handle(He))}}return ze.\u0275fac=function(q){return new(q||ze)(i.LFG(J),i.LFG(i.lqb))},ze.\u0275prov=i.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const wt=/^\)\]\}',?\n/;let Jt=(()=>{class ze{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new p.y(He=>{const yt=this.xhrFactory.build();if(yt.open(q.method,q.urlWithParams),q.withCredentials&&(yt.withCredentials=!0),q.headers.forEach((qe,We)=>yt.setRequestHeader(qe,We.join(","))),q.headers.has("Accept")||yt.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const qe=q.detectContentTypeHeader();null!==qe&&yt.setRequestHeader("Content-Type",qe)}if(q.responseType){const qe=q.responseType.toLowerCase();yt.responseType="json"!==qe?qe:"text"}const ht=q.serializeBody();let le=null;const pe=()=>{if(null!==le)return le;const qe=yt.statusText||"OK",We=new Y(yt.getAllResponseHeaders()),Rt=function nn(ze){return"responseURL"in ze&&ze.responseURL?ze.responseURL:/^X-Request-URL:/m.test(ze.getAllResponseHeaders())?ze.getResponseHeader("X-Request-URL"):null}(yt)||q.url;return le=new Ae({headers:We,status:yt.status,statusText:qe,url:Rt}),le},Q=()=>{let{headers:qe,status:We,statusText:Rt,url:Ve}=pe(),At=null;204!==We&&(At=typeof yt.response>"u"?yt.responseText:yt.response),0===We&&(We=At?200:0);let fn=We>=200&&We<300;if("json"===q.responseType&&"string"==typeof At){const Ln=At;At=At.replace(wt,"");try{At=""!==At?JSON.parse(At):null}catch(Ti){At=Ln,fn&&(fn=!1,At={error:Ti,text:At})}}fn?(He.next(new tt({body:At,headers:qe,status:We,statusText:Rt,url:Ve||void 0})),He.complete()):He.error(new ot({error:At,headers:qe,status:We,statusText:Rt,url:Ve||void 0}))},Fe=qe=>{const{url:We}=pe(),Rt=new ot({error:qe,status:yt.status||0,statusText:yt.statusText||"Unknown Error",url:We||void 0});He.error(Rt)};let xt=!1;const nt=qe=>{xt||(He.next(pe()),xt=!0);let We={type:ye.DownloadProgress,loaded:qe.loaded};qe.lengthComputable&&(We.total=qe.total),"text"===q.responseType&&yt.responseText&&(We.partialText=yt.responseText),He.next(We)},Ct=qe=>{let We={type:ye.UploadProgress,loaded:qe.loaded};qe.lengthComputable&&(We.total=qe.total),He.next(We)};return yt.addEventListener("load",Q),yt.addEventListener("error",Fe),yt.addEventListener("timeout",Fe),yt.addEventListener("abort",Fe),q.reportProgress&&(yt.addEventListener("progress",nt),null!==ht&&yt.upload&&yt.upload.addEventListener("progress",Ct)),yt.send(ht),He.next({type:ye.Sent}),()=>{yt.removeEventListener("error",Fe),yt.removeEventListener("abort",Fe),yt.removeEventListener("load",Q),yt.removeEventListener("timeout",Fe),q.reportProgress&&(yt.removeEventListener("progress",nt),null!==ht&&yt.upload&&yt.upload.removeEventListener("progress",Ct)),yt.readyState!==yt.DONE&&yt.abort()}})}}return ze.\u0275fac=function(q){return new(q||ze)(i.LFG(d.JF))},ze.\u0275prov=i.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const un=new i.OlP("XSRF_ENABLED"),zt=new i.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Te=new i.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class lt{}let Je=(()=>{class ze{constructor(q,He,yt){this.doc=q,this.platform=He,this.cookieName=yt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,d.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return ze.\u0275fac=function(q){return new(q||ze)(i.LFG(d.K0),i.LFG(i.Lbi),i.LFG(zt))},ze.\u0275prov=i.Yz7({token:ze,factory:ze.\u0275fac}),ze})();function Lt(ze,de){const q=ze.url.toLowerCase();if(!(0,i.f3M)(un)||"GET"===ze.method||"HEAD"===ze.method||q.startsWith("http://")||q.startsWith("https://"))return de(ze);const He=(0,i.f3M)(lt).getToken(),yt=(0,i.f3M)(Te);return null!=He&&!ze.headers.has(yt)&&(ze=ze.clone({headers:ze.headers.set(yt,He)})),de(ze)}var ge=(()=>((ge=ge||{})[ge.Interceptors=0]="Interceptors",ge[ge.LegacyInterceptors=1]="LegacyInterceptors",ge[ge.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ge[ge.NoXsrfProtection=3]="NoXsrfProtection",ge[ge.JsonpSupport=4]="JsonpSupport",ge[ge.RequestsMadeViaParent=5]="RequestsMadeViaParent",ge))();function Me(ze,de){return{\u0275kind:ze,\u0275providers:de}}function _e(...ze){const de=[pt,Jt,et,{provide:b,useExisting:et},{provide:J,useExisting:Jt},{provide:je,useValue:Lt,multi:!0},{provide:un,useValue:!0},{provide:lt,useClass:Je}];for(const q of ze)de.push(...q.\u0275providers);return(0,i.MR2)(de)}const ct=new i.OlP("LEGACY_INTERCEPTOR_FN");let cn=(()=>{class ze{}return ze.\u0275fac=function(q){return new(q||ze)},ze.\u0275mod=i.oAB({type:ze}),ze.\u0275inj=i.cJS({providers:[_e(Me(ge.LegacyInterceptors,[{provide:ct,useFactory:dt},{provide:je,useExisting:ct,multi:!0}]))]}),ze})()},4650:(vn,_t,y)=>{"use strict";y.d(_t,{$8M:()=>wo,$WT:()=>Hn,$Z:()=>Eu,AFp:()=>b1,ALo:()=>Hx,AaK:()=>b,AsE:()=>Hu,BQk:()=>np,CHM:()=>Kn,CRH:()=>Kx,CZH:()=>Rp,CqO:()=>vy,D6c:()=>tM,DdM:()=>f0,EJc:()=>CE,EiD:()=>ab,EpF:()=>_y,F$t:()=>wy,F4k:()=>ip,FYo:()=>wb,FiY:()=>Rr,G48:()=>UE,Gf:()=>qx,GfV:()=>Db,GkF:()=>A_,Gpc:()=>W,Gre:()=>zy,HOy:()=>ju,Hsn:()=>Cy,Ikx:()=>G_,JOm:()=>Us,JVY:()=>Jv,JZr:()=>Ee,KtG:()=>Jn,L6k:()=>Bh,LAX:()=>Dm,LFG:()=>cn,LSH:()=>Vg,Lbi:()=>Lp,Lck:()=>Ax,MAs:()=>py,MGl:()=>op,MMx:()=>c0,MR2:()=>Jw,NdJ:()=>rp,O4$:()=>Gc,OlP:()=>jr,Oqu:()=>H_,P3R:()=>ub,PXZ:()=>FE,Q6J:()=>T_,QGY:()=>S_,QbO:()=>Np,Qsj:()=>lC,R0b:()=>No,RDi:()=>Kv,Rgc:()=>yf,SBq:()=>Gh,Sil:()=>TE,Suo:()=>Qx,TTD:()=>nl,TgZ:()=>Xm,Tol:()=>Ry,Udp:()=>B_,VKq:()=>Rx,W1O:()=>t1,WFA:()=>ap,WLB:()=>m0,XFs:()=>un,Xpm:()=>fn,Xts:()=>Hg,Y36:()=>Tu,YKP:()=>Mx,YNc:()=>my,Yjl:()=>ut,Yz7:()=>we,Z0I:()=>S,ZZ4:()=>V0,_Bn:()=>s0,_UZ:()=>M_,_Vd:()=>Wh,_c5:()=>XE,_uU:()=>Vy,aQg:()=>H0,c2e:()=>Bp,cJS:()=>ve,cg1:()=>vp,d8E:()=>$_,dDg:()=>Ys,dqk:()=>Je,eBb:()=>Cm,eFA:()=>R0,eJc:()=>x0,ekj:()=>U_,eoX:()=>Hp,f3M:()=>ai,g9A:()=>S0,gL8:()=>z_,h0i:()=>Xu,hGG:()=>eM,hij:()=>gp,iGM:()=>Ip,ifc:()=>Q,ip1:()=>Pp,jDz:()=>d0,kL8:()=>uf,kcU:()=>au,lG2:()=>an,lcZ:()=>jx,lnq:()=>j_,lqb:()=>Hs,lri:()=>D1,mCW:()=>Tm,n5z:()=>tm,n_E:()=>Mp,oAB:()=>zi,oxw:()=>yy,pB0:()=>zw,q3G:()=>ka,qLn:()=>$h,qOj:()=>__,qZA:()=>ep,qzn:()=>Id,rWj:()=>od,s9C:()=>rf,sBO:()=>ZE,s_b:()=>Sp,soG:()=>Up,tBr:()=>fr,tb:()=>cd,tp0:()=>Ro,uIk:()=>x_,vHH:()=>ue,vpe:()=>sc,wAp:()=>Hi,xDo:()=>Y_,xi3:()=>Yx,xp6:()=>Ob,ynx:()=>tp,z2F:()=>jp,z3N:()=>is,zSh:()=>Yh,zs3:()=>Nd});var d=y(8929),i=y(2654),A=y(6498),p=y(6787),v=y(2474);function k(s){for(let c in s)if(s[c]===k)return c;throw Error("Could not find renamed property on target object.")}function f(s,c){for(const h in c)c.hasOwnProperty(h)&&!s.hasOwnProperty(h)&&(s[h]=c[h])}function b(s){if("string"==typeof s)return s;if(Array.isArray(s))return"["+s.map(b).join(", ")+"]";if(null==s)return""+s;if(s.overriddenName)return`${s.overriddenName}`;if(s.name)return`${s.name}`;const c=s.toString();if(null==c)return""+c;const h=c.indexOf("\n");return-1===h?c:c.substring(0,h)}function J(s,c){return null==s||""===s?null===c?"":c:null==c||""===c?s:s+" "+c}const Y=k({__forward_ref__:k});function W(s){return s.__forward_ref__=W,s.toString=function(){return b(this())},s}function B(s){return Z(s)?s():s}function Z(s){return"function"==typeof s&&s.hasOwnProperty(Y)&&s.__forward_ref__===W}function G(s){return s&&!!s.\u0275providers}const Ee="https://g.co/ng/security#xss";class ue extends Error{constructor(c,h){super(Ze(c,h)),this.code=c}}function Ze(s,c){return`NG0${Math.abs(s)}${c?": "+c.trim():""}`}function Qe(s){return"string"==typeof s?s:null==s?"":String(s)}function ke(s,c){throw new ue(-201,!1)}function je(s,c){null==s&&function dt(s,c,h,g){throw new Error(`ASSERTION ERROR: ${s}`+(null==g?"":` [Expected=> ${h} ${g} ${c} <=Actual]`))}(c,s,null,"!=")}function we(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}function ve(s){return{providers:s.providers||[],imports:s.imports||[]}}function se(s){return F(s,De)||F(s,nn)}function S(s){return null!==se(s)}function F(s,c){return s.hasOwnProperty(c)?s[c]:null}function ne(s){return s&&(s.hasOwnProperty(wt)||s.hasOwnProperty(Jt))?s[wt]:null}const De=k({\u0275prov:k}),wt=k({\u0275inj:k}),nn=k({ngInjectableDef:k}),Jt=k({ngInjectorDef:k});var un=(()=>((un=un||{})[un.Default=0]="Default",un[un.Host=1]="Host",un[un.Self=2]="Self",un[un.SkipSelf=4]="SkipSelf",un[un.Optional=8]="Optional",un))();let Zt;function fe(s){const c=Zt;return Zt=s,c}function Te(s,c,h){const g=se(s);return g&&"root"==g.providedIn?void 0===g.value?g.value=g.factory():g.value:h&un.Optional?null:void 0!==c?c:void ke(b(s))}const Je=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Me={},_e="__NG_DI_FLAG__",it="ngTempTokenPath",ct="ngTokenPath",dn=/\n/gm,Rn="\u0275",An="__source";let Gt;function gn(s){const c=Gt;return Gt=s,c}function St(s,c=un.Default){if(void 0===Gt)throw new ue(-203,!1);return null===Gt?Te(s,void 0,c):Gt.get(s,c&un.Optional?null:void 0,c)}function cn(s,c=un.Default){return(function zt(){return Zt}()||St)(B(s),c)}function ai(s,c=un.Default){return cn(s,ze(c))}function ze(s){return typeof s>"u"||"number"==typeof s?s:0|(s.optional&&8)|(s.host&&1)|(s.self&&2)|(s.skipSelf&&4)}function de(s){const c=[];for(let h=0;h<s.length;h++){const g=B(s[h]);if(Array.isArray(g)){if(0===g.length)throw new ue(900,!1);let x,T=un.Default;for(let R=0;R<g.length;R++){const K=g[R],ae=He(K);"number"==typeof ae?-1===ae?x=K.token:T|=ae:x=K}c.push(cn(x,T))}else c.push(cn(g))}return c}function q(s,c){return s[_e]=c,s.prototype[_e]=c,s}function He(s){return s[_e]}function le(s){return{toString:s}.toString()}var pe=(()=>((pe=pe||{})[pe.OnPush=0]="OnPush",pe[pe.Default=1]="Default",pe))(),Q=(()=>{return(s=Q||(Q={}))[s.Emulated=0]="Emulated",s[s.None=2]="None",s[s.ShadowDom=3]="ShadowDom",Q;var s})();const Fe={},xt=[],nt=k({\u0275cmp:k}),Ct=k({\u0275dir:k}),qe=k({\u0275pipe:k}),We=k({\u0275mod:k}),Rt=k({\u0275fac:k}),Ve=k({__NG_ELEMENT_ID__:k});let At=0;function fn(s){return le(()=>{const c=Sn(s),h={...c,decls:s.decls,vars:s.vars,template:s.template,consts:s.consts||null,ngContentSelectors:s.ngContentSelectors,onPush:s.changeDetection===pe.OnPush,directiveDefs:null,pipeDefs:null,dependencies:c.standalone&&s.dependencies||null,getStandaloneInjector:null,data:s.data||{},encapsulation:s.encapsulation||Q.Emulated,id:"c"+At++,styles:s.styles||xt,_:null,schemas:s.schemas||null,tView:null};Ht(h);const g=s.dependencies;return h.directiveDefs=wn(g,!1),h.pipeDefs=wn(g,!0),h})}function Ti(s){return Ft(s)||ln(s)}function Oi(s){return null!==s}function zi(s){return le(()=>({type:s.type,bootstrap:s.bootstrap||xt,declarations:s.declarations||xt,imports:s.imports||xt,exports:s.exports||xt,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null}))}function Mt(s,c){if(null==s)return Fe;const h={};for(const g in s)if(s.hasOwnProperty(g)){let x=s[g],T=x;Array.isArray(x)&&(T=x[1],x=x[0]),h[x]=g,c&&(c[x]=T)}return h}function an(s){return le(()=>{const c=Sn(s);return Ht(c),c})}function ut(s){return{type:s.type,name:s.name,factory:null,pure:!1!==s.pure,standalone:!0===s.standalone,onDestroy:s.type.prototype.ngOnDestroy||null}}function Ft(s){return s[nt]||null}function ln(s){return s[Ct]||null}function Tn(s){return s[qe]||null}function Hn(s){const c=Ft(s)||ln(s)||Tn(s);return null!==c&&c.standalone}function Ot(s,c){const h=s[We]||null;if(!h&&!0===c)throw new Error(`Type ${b(s)} does not have '\u0275mod' property.`);return h}function Sn(s){const c={};return{type:s.type,providersResolver:null,factory:null,hostBindings:s.hostBindings||null,hostVars:s.hostVars||0,hostAttrs:s.hostAttrs||null,contentQueries:s.contentQueries||null,declaredInputs:c,exportAs:s.exportAs||null,standalone:!0===s.standalone,selectors:s.selectors||xt,viewQuery:s.viewQuery||null,features:s.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Mt(s.inputs,c),outputs:Mt(s.outputs)}}function Ht(s){s.features?.forEach(c=>c(s))}function wn(s,c){if(!s)return null;const h=c?Tn:Ti;return()=>("function"==typeof s?s():s).map(g=>h(g)).filter(Oi)}const rt=0,Nt=1,P=2,xe=3,st=4,It=5,Mn=6,Ei=7,Ai=8,sr=9,kr=10,Li=11,Lr=12,Zn=13,Mo=14,oa=15,Mr=16,ma=17,Pa=18,pa=19,ga=20,Dr=21,xr=22,Os=1,Qs=2,pl=7,Ps=8,ss=9,Xr=10;function _a(s){return Array.isArray(s)&&"object"==typeof s[Os]}function va(s){return Array.isArray(s)&&!0===s[Os]}function gl(s){return 0!=(4&s.flags)}function Yo(s){return s.componentOffset>-1}function Js(s){return 1==(1&s.flags)}function ba(s){return!!s.template}function Yc(s){return 0!=(256&s[P])}function So(s,c){return s.hasOwnProperty(Rt)?s[Rt]:null}class _l{constructor(c,h,g){this.previousValue=c,this.currentValue=h,this.firstChange=g}isFirstChange(){return this.firstChange}}function nl(){return ko}function ko(s){return s.type.prototype.ngOnChanges&&(s.setInput=il),vl}function vl(){const s=to(this),c=s?.current;if(c){const h=s.previous;if(h===Fe)s.previous=c;else for(let g in c)h[g]=c[g];s.current=null,this.ngOnChanges(c)}}function il(s,c,h,g){const x=this.declaredInputs[h],T=to(s)||function $o(s,c){return s[Ns]=c}(s,{previous:Fe,current:null}),R=T.current||(T.current={}),K=T.previous,ae=K[x];R[x]=new _l(ae&&ae.currentValue,c,K===Fe),s[g]=c}nl.ngInherit=!0;const Ns="__ngSimpleChanges__";function to(s){return s[Ns]||null}const xa=function(s,c,h){},Qo="svg";function qr(s){for(;Array.isArray(s);)s=s[rt];return s}function Yl(s,c){return qr(c[s])}function Qr(s,c){return qr(c[s.index])}function al(s,c){return s.data[c]}function _o(s,c){return s[c]}function Nr(s,c){const h=c[s];return _a(h)?h:h[rt]}function na(s){return 64==(64&s[P])}function sa(s,c){return null==c?null:s[c]}function cs(s){s[Pa]=0}function zl(s,c){s[It]+=c;let h=s,g=s[xe];for(;null!==g&&(1===c&&1===h[It]||-1===c&&0===h[It]);)g[It]+=c,h=g,g=g[xe]}const Ni={lFrame:Ea(null),bindingsEnabled:!0};function Be(){return Ni.bindingsEnabled}function Bt(){return Ni.lFrame.lView}function bn(){return Ni.lFrame.tView}function Kn(s){return Ni.lFrame.contextLView=s,s[Ai]}function Jn(s){return Ni.lFrame.contextLView=null,s}function Nn(){let s=ri();for(;null!==s&&64===s.type;)s=s.parent;return s}function ri(){return Ni.lFrame.currentTNode}function si(s,c){const h=Ni.lFrame;h.currentTNode=s,h.isParent=c}function Ci(){return Ni.lFrame.isParent}function Si(){Ni.lFrame.isParent=!1}function Vi(){const s=Ni.lFrame;let c=s.bindingRootIndex;return-1===c&&(c=s.bindingRootIndex=s.tView.bindingStartIndex),c}function qi(){return Ni.lFrame.bindingIndex}function rr(){return Ni.lFrame.bindingIndex++}function hr(s){const c=Ni.lFrame,h=c.bindingIndex;return c.bindingIndex=c.bindingIndex+s,h}function ol(s,c){const h=Ni.lFrame;h.bindingIndex=h.bindingRootIndex=s,io(c)}function io(s){Ni.lFrame.currentDirectiveIndex=s}function ds(s){const c=Ni.lFrame.currentDirectiveIndex;return-1===c?null:s[c]}function Wl(){return Ni.lFrame.currentQueryIndex}function sl(s){Ni.lFrame.currentQueryIndex=s}function vo(s){const c=s[Nt];return 2===c.type?c.declTNode:1===c.type?s[Mn]:null}function Gl(s,c,h){if(h&un.SkipSelf){let x=c,T=s;for(;!(x=x.parent,null!==x||h&un.Host||(x=vo(T),null===x||(T=T[oa],10&x.type))););if(null===x)return!1;c=x,s=T}const g=Ni.lFrame=yl();return g.currentTNode=c,g.lView=s,!0}function $l(s){const c=yl(),h=s[Nt];Ni.lFrame=c,c.currentTNode=h.firstChild,c.lView=s,c.tView=h,c.contextLView=s,c.bindingIndex=h.bindingStartIndex,c.inI18n=!1}function yl(){const s=Ni.lFrame,c=null===s?null:s.child;return null===c?Ea(s):c}function Ea(s){const c={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:s,child:null,inI18n:!1};return null!==s&&(s.child=c),c}function xl(){const s=Ni.lFrame;return Ni.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const Io=xl;function wl(){const s=xl();s.isParent=!0,s.tView=null,s.selectedIndex=-1,s.contextLView=null,s.elementDepthCount=0,s.currentDirectiveIndex=-1,s.currentNamespace=null,s.bindingRootIndex=-1,s.bindingIndex=-1,s.currentQueryIndex=0}function La(){return Ni.lFrame.selectedIndex}function ro(s){Ni.lFrame.selectedIndex=s}function Ir(){const s=Ni.lFrame;return al(s.tView,s.selectedIndex)}function Gc(){Ni.lFrame.currentNamespace=Qo}function au(){!function Gf(){Ni.lFrame.currentNamespace=null}()}function ou(s,c){for(let h=c.directiveStart,g=c.directiveEnd;h<g;h++){const T=s.data[h].type.prototype,{ngAfterContentInit:R,ngAfterContentChecked:K,ngAfterViewInit:ae,ngAfterViewChecked:Le,ngOnDestroy:bt}=T;R&&(s.contentHooks??(s.contentHooks=[])).push(-h,R),K&&((s.contentHooks??(s.contentHooks=[])).push(h,K),(s.contentCheckHooks??(s.contentCheckHooks=[])).push(h,K)),ae&&(s.viewHooks??(s.viewHooks=[])).push(-h,ae),Le&&((s.viewHooks??(s.viewHooks=[])).push(h,Le),(s.viewCheckHooks??(s.viewCheckHooks=[])).push(h,Le)),null!=bt&&(s.destroyHooks??(s.destroyHooks=[])).push(h,bt)}}function wd(s,c,h){Ue(s,c,3,h)}function Cd(s,c,h,g){(3&s[P])===h&&Ue(s,c,h,g)}function ee(s,c){let h=s[P];(3&h)===c&&(h&=2047,h+=1,s[P]=h)}function Ue(s,c,h,g){const T=g??-1,R=c.length-1;let K=0;for(let ae=void 0!==g?65535&s[Pa]:0;ae<R;ae++)if("number"==typeof c[ae+1]){if(K=c[ae],null!=g&&K>=g)break}else c[ae]<0&&(s[Pa]+=65536),(K<T||-1==T)&&(he(s,h,c,ae),s[Pa]=(4294901760&s[Pa])+ae+2),ae++}function he(s,c,h,g){const x=h[g]<0,T=h[g+1],K=s[x?-h[g]:h[g]];if(x){if(s[P]>>11<s[Pa]>>16&&(3&s[P])===c){s[P]+=2048,xa(4,K,T);try{T.call(K)}finally{xa(5,K,T)}}}else{xa(4,K,T);try{T.call(K)}finally{xa(5,K,T)}}}const mt=-1;class Qt{constructor(c,h,g){this.factory=c,this.resolving=!1,this.canSeeViewProviders=h,this.injectImpl=g}}function wr(s,c,h){let g=0;for(;g<h.length;){const x=h[g];if("number"==typeof x){if(0!==x)break;g++;const T=h[g++],R=h[g++],K=h[g++];s.setAttribute(c,R,K,T)}else{const T=x,R=h[++g];Jo(T)?s.setProperty(c,T,R):s.setAttribute(c,T,R),g++}}return g}function la(s){return 3===s||4===s||6===s}function Jo(s){return 64===s.charCodeAt(0)}function bo(s,c){if(null!==c&&0!==c.length)if(null===s||0===s.length)s=c.slice();else{let h=-1;for(let g=0;g<c.length;g++){const x=c[g];"number"==typeof x?h=x:0===h||ll(s,h,x,null,-1===h||2===h?c[++g]:null)}}return s}function ll(s,c,h,g,x){let T=0,R=s.length;if(-1===c)R=-1;else for(;T<s.length;){const K=s[T++];if("number"==typeof K){if(K===c){R=-1;break}if(K>c){R=T-1;break}}}for(;T<s.length;){const K=s[T];if("number"==typeof K)break;if(K===h){if(null===g)return void(null!==x&&(s[T+1]=x));if(g===s[T+1])return void(s[T+2]=x)}T++,null!==g&&T++,null!==x&&T++}-1!==R&&(s.splice(R,0,c),T=R+1),s.splice(T++,0,h),null!==g&&s.splice(T++,0,g),null!==x&&s.splice(T++,0,x)}function ao(s){return s!==mt}function Xo(s){return 32767&s}function es(s,c){let h=function yo(s){return s>>16}(s),g=c;for(;h>0;)g=g[oa],h--;return g}let Oo=!0;function bc(s){const c=Oo;return Oo=s,c}const xc=255,bh=5;let $f=0;const us={};function su(s,c){const h=qf(s,c);if(-1!==h)return h;const g=c[Nt];g.firstCreatePass&&(s.injectorIndex=c.length,$c(g.data,s),$c(c,null),$c(g.blueprint,null));const x=wc(s,c),T=s.injectorIndex;if(ao(x)){const R=Xo(x),K=es(x,c),ae=K[Nt].data;for(let Le=0;Le<8;Le++)c[T+Le]=K[R+Le]|ae[R+Le]}return c[T+8]=x,T}function $c(s,c){s.push(0,0,0,0,0,0,0,0,c)}function qf(s,c){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===c[s.injectorIndex+8]?-1:s.injectorIndex}function wc(s,c){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let h=0,g=null,x=c;for(;null!==x;){if(g=Ch(x),null===g)return mt;if(h++,x=x[oa],-1!==g.injectorIndex)return g.injectorIndex|h<<16}return mt}function lu(s,c,h){!function hg(s,c,h){let g;"string"==typeof h?g=h.charCodeAt(0)||0:h.hasOwnProperty(Ve)&&(g=h[Ve]),null==g&&(g=h[Ve]=$f++);const x=g&xc;c.data[s+(x>>bh)]|=1<<x}(s,c,h)}function xo(s,c,h){if(h&un.Optional||void 0!==s)return s;ke()}function Cc(s,c,h,g){if(h&un.Optional&&void 0===g&&(g=null),!(h&(un.Self|un.Host))){const x=s[sr],T=fe(void 0);try{return x?x.get(c,g,h&un.Optional):Te(c,g,h&un.Optional)}finally{fe(T)}}return xo(g,0,h)}function Kf(s,c,h,g=un.Default,x){if(null!==s){if(1024&c[P]){const R=function wh(s,c,h,g,x){let T=s,R=c;for(;null!==T&&null!==R&&1024&R[P]&&!(256&R[P]);){const K=Jf(T,R,h,g|un.Self,us);if(K!==us)return K;let ae=T.parent;if(!ae){const Le=R[Dr];if(Le){const bt=Le.get(h,us,g);if(bt!==us)return bt}ae=Ch(R),R=R[oa]}T=ae}return x}(s,c,h,g,us);if(R!==us)return R}const T=Jf(s,c,h,g,us);if(T!==us)return T}return Cc(c,h,g,x)}function Jf(s,c,h,g,x){const T=function Dc(s){if("string"==typeof s)return s.charCodeAt(0)||0;const c=s.hasOwnProperty(Ve)?s[Ve]:void 0;return"number"==typeof c?c>=0?c&xc:Mv:c}(h);if("function"==typeof T){if(!Gl(c,s,g))return g&un.Host?xo(x,0,g):Cc(c,h,g,x);try{const R=T(g);if(null!=R||g&un.Optional)return R;ke()}finally{Io()}}else if("number"==typeof T){let R=null,K=qf(s,c),ae=mt,Le=g&un.Host?c[Mr][Mn]:null;for((-1===K||g&un.SkipSelf)&&(ae=-1===K?wc(s,c):c[K+8],ae!==mt&&em(g,!1)?(R=c[Nt],K=Xo(ae),c=es(ae,c)):K=-1);-1!==K;){const bt=c[Nt];if(yh(T,K,bt.data)){const Wt=Xf(K,c,h,R,g,Le);if(Wt!==us)return Wt}ae=c[K+8],ae!==mt&&em(g,c[Nt].data[K+8]===Le)&&yh(T,K,c)?(R=bt,K=Xo(ae),c=es(ae,c)):K=-1}}return x}function Xf(s,c,h,g,x,T){const R=c[Nt],K=R.data[s+8],bt=Ya(K,R,h,null==g?Yo(K)&&Oo:g!=R&&0!=(3&K.type),x&un.Host&&T===K);return null!==bt?ql(c,R,bt,K):us}function Ya(s,c,h,g,x){const T=s.providerIndexes,R=c.data,K=1048575&T,ae=s.directiveStart,bt=T>>20,pn=x?K+bt:s.directiveEnd;for(let Dn=g?K:K+bt;Dn<pn;Dn++){const Yn=R[Dn];if(Dn<ae&&h===Yn||Dn>=ae&&Yn.type===h)return Dn}if(x){const Dn=R[ae];if(Dn&&ba(Dn)&&Dn.type===h)return ae}return null}function ql(s,c,h,g){let x=s[h];const T=c.data;if(function kn(s){return s instanceof Qt}(x)){const R=x;R.resolving&&function $e(s,c){const h=c?`. Dependency path: ${c.join(" > ")} > ${s}`:"";throw new ue(-200,`Circular dependency in DI detected for ${s}${h}`)}(function vt(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():Qe(s)}(T[h]));const K=bc(R.canSeeViewProviders);R.resolving=!0;const ae=R.injectImpl?fe(R.injectImpl):null;Gl(s,g,un.Default);try{x=s[h]=R.factory(void 0,T,s,g),c.firstCreatePass&&h>=g.directiveStart&&function xd(s,c,h){const{ngOnChanges:g,ngOnInit:x,ngDoCheck:T}=c.type.prototype;if(g){const R=ko(c);(h.preOrderHooks??(h.preOrderHooks=[])).push(s,R),(h.preOrderCheckHooks??(h.preOrderCheckHooks=[])).push(s,R)}x&&(h.preOrderHooks??(h.preOrderHooks=[])).push(0-s,x),T&&((h.preOrderHooks??(h.preOrderHooks=[])).push(s,T),(h.preOrderCheckHooks??(h.preOrderCheckHooks=[])).push(s,T))}(h,T[h],c)}finally{null!==ae&&fe(ae),bc(K),R.resolving=!1,Io()}}return x}function yh(s,c,h){return!!(h[c+(s>>bh)]&1<<s)}function em(s,c){return!(s&un.Self||s&un.Host&&c)}class Dl{constructor(c,h){this._tNode=c,this._lView=h}get(c,h,g){return Kf(this._tNode,this._lView,c,ze(g),h)}}function Mv(){return new Dl(Nn(),Bt())}function tm(s){return le(()=>{const c=s.prototype.constructor,h=c[Rt]||xh(c),g=Object.prototype;let x=Object.getPrototypeOf(s.prototype).constructor;for(;x&&x!==g;){const T=x[Rt]||xh(x);if(T&&T!==h)return T;x=Object.getPrototypeOf(x)}return T=>new T})}function xh(s){return Z(s)?()=>{const c=xh(B(s));return c&&c()}:So(s)}function Ch(s){const c=s[Nt],h=c.type;return 2===h?c.declTNode:1===h?s[Mn]:null}function wo(s){return function Qf(s,c){if("class"===c)return s.classes;if("style"===c)return s.styles;const h=s.attrs;if(h){const g=h.length;let x=0;for(;x<g;){const T=h[x];if(la(T))break;if(0===T)x+=2;else if("number"==typeof T)for(x++;x<g&&"string"==typeof h[x];)x++;else{if(T===c)return h[x+1];x+=2}}}return null}(Nn(),s)}const Po="__parameters__";function Ql(s,c,h){return le(()=>{const g=function Bs(s){return function(...h){if(s){const g=s(...h);for(const x in g)this[x]=g[x]}}}(c);function x(...T){if(this instanceof x)return g.apply(this,T),this;const R=new x(...T);return K.annotation=R,K;function K(ae,Le,bt){const Wt=ae.hasOwnProperty(Po)?ae[Po]:Object.defineProperty(ae,Po,{value:[]})[Po];for(;Wt.length<=bt;)Wt.push(null);return(Wt[bt]=Wt[bt]||[]).push(R),ae}}return h&&(x.prototype=Object.create(h.prototype)),x.prototype.ngMetadataName=s,x.annotationCls=x,x})}class jr{constructor(c,h){this._desc=c,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof h?this.__NG_ELEMENT_ID__=h:void 0!==h&&(this.\u0275prov=we({token:this,providedIn:h.providedIn||"root",factory:h.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Mc(s,c){s.forEach(h=>Array.isArray(h)?Mc(h,c):c(h))}function rm(s,c,h){c>=s.length?s.push(h):s.splice(c,0,h)}function Dd(s,c){return c>=s.length-1?s.pop():s.splice(c,1)[0]}function Qc(s,c){const h=[];for(let g=0;g<s;g++)h.push(c);return h}function ts(s,c,h){let g=L(s,c);return g>=0?s[1|g]=h:(g=~g,function am(s,c,h,g){let x=s.length;if(x==c)s.push(h,g);else if(1===x)s.push(g,s[0]),s[0]=h;else{for(x--,s.push(s[x-1],s[x]);x>c;)s[x]=s[x-2],x--;s[c]=h,s[c+1]=g}}(s,g,c,h)),g}function om(s,c){const h=L(s,c);if(h>=0)return s[1|h]}function L(s,c){return function I(s,c,h){let g=0,x=s.length>>h;for(;x!==g;){const T=g+(x-g>>1),R=s[T<<h];if(c===R)return T<<h;R>c?x=T:g=T+1}return~(x<<h)}(s,c,1)}const fr=q(Ql("Inject",s=>({token:s})),-1),Rr=q(Ql("Optional"),8),Ro=q(Ql("SkipSelf"),4);var Us=(()=>((Us=Us||{})[Us.Important=1]="Important",Us[Us.DashCase=2]="DashCase",Us))();const fs=new Map;let Xl=0;const um="__ngContext__";function Do(s,c){_a(c)?(s[um]=c[ga],function kw(s){fs.set(s[ga],s)}(c)):s[um]=c}let hm;function Tg(s,c){return hm(s,c)}function du(s){const c=s[xe];return va(c)?c[xe]:c}function fm(s){return mm(s[Zn])}function Eg(s){return mm(s[st])}function mm(s){for(;null!==s&&!va(s);)s=s[st];return s}function Sa(s,c,h,g,x){if(null!=g){let T,R=!1;va(g)?T=g:_a(g)&&(R=!0,g=g[rt]);const K=qr(g);0===s&&null!==h?null==x?Hv(c,h,K):kd(c,h,K,x||null,!0):1===s&&null!==h?kd(c,h,K,x||null,!0):2===s?function Pg(s,c,h){const g=Rh(s,c);g&&function Lw(s,c,h,g){s.removeChild(c,h,g)}(s,g,c,h)}(c,K,R):3===s&&c.destroyNode(K),null!=T&&function bm(s,c,h,g,x){const T=h[pl];T!==qr(h)&&Sa(c,s,g,T,x);for(let K=Xr;K<h.length;K++){const ae=h[K];hu(ae[Nt],ae,s,c,g,T)}}(c,s,T,h,x)}}function uu(s,c,h){return s.createElement(c,h)}function Sc(s,c){const h=s[ss],g=h.indexOf(c),x=c[xe];512&c[P]&&(c[P]&=-513,zl(x,-1)),h.splice(g,1)}function Ml(s,c){if(s.length<=Xr)return;const h=Xr+c,g=s[h];if(g){const x=g[ma];null!==x&&x!==s&&Sc(x,g),c>0&&(s[h-1][st]=g[st]);const T=Dd(s,Xr+c);!function Uv(s,c){hu(s,c,c[Li],2,null,null),c[rt]=null,c[Mn]=null}(g[Nt],g);const R=T[pa];null!==R&&R.detachView(T[Nt]),g[xe]=null,g[st]=null,g[P]&=-65}return g}function Sg(s,c){if(!(128&c[P])){const h=c[Li];h.destroyNode&&hu(s,c,h,3,null,null),function Ih(s){let c=s[Zn];if(!c)return ps(s[Nt],s);for(;c;){let h=null;if(_a(c))h=c[Zn];else{const g=c[Xr];g&&(h=g)}if(!h){for(;c&&!c[st]&&c!==s;)_a(c)&&ps(c[Nt],c),c=c[xe];null===c&&(c=s),_a(c)&&ps(c[Nt],c),h=c&&c[st]}c=h}}(c)}}function ps(s,c){if(!(128&c[P])){c[P]&=-65,c[P]|=128,function Fw(s,c){let h;if(null!=s&&null!=(h=s.destroyHooks))for(let g=0;g<h.length;g+=2){const x=c[h[g]];if(!(x instanceof Qt)){const T=h[g+1];if(Array.isArray(T))for(let R=0;R<T.length;R+=2){const K=x[T[R]],ae=T[R+1];xa(4,K,ae);try{ae.call(K)}finally{xa(5,K,ae)}}else{xa(4,x,T);try{T.call(x)}finally{xa(5,x,T)}}}}}(s,c),function kg(s,c){const h=s.cleanup,g=c[Ei];let x=-1;if(null!==h)for(let T=0;T<h.length-1;T+=2)if("string"==typeof h[T]){const R=h[T+3];R>=0?g[x=R]():g[x=-R].unsubscribe(),T+=2}else{const R=g[x=h[T+1]];h[T].call(R)}if(null!==g){for(let T=x+1;T<g.length;T++)(0,g[T])();c[Ei]=null}}(s,c),1===c[Nt].type&&c[Li].destroy();const h=c[ma];if(null!==h&&va(c[xe])){h!==c[xe]&&Sc(h,c);const g=c[pa];null!==g&&g.detachView(s)}!function Ah(s){fs.delete(s[ga])}(c)}}function Vv(s,c,h){return function Ph(s,c,h){let g=c;for(;null!==g&&40&g.type;)g=(c=g).parent;if(null===g)return h[rt];{const{componentOffset:x}=g;if(x>-1){const{encapsulation:T}=s.data[g.directiveStart+x];if(T===Q.None||T===Q.Emulated)return null}return Qr(g,h)}}(s,c.parent,h)}function kd(s,c,h,g,x){s.insertBefore(c,h,g,x)}function Hv(s,c,h){s.appendChild(c,h)}function jv(s,c,h,g,x){null!==g?kd(s,c,h,g,x):Hv(s,c,h)}function Rh(s,c){return s.parentNode(c)}function Yv(s,c,h){return pm(s,c,h)}let Fh,fu,pu,Lh,pm=function zv(s,c,h){return 40&s.type?Qr(s,h):null};function _m(s,c,h,g){const x=Vv(s,g,c),T=c[Li],K=Yv(g.parent||c[Mn],g,c);if(null!=x)if(Array.isArray(h))for(let ae=0;ae<h.length;ae++)jv(T,x,h[ae],K,!1);else jv(T,x,h,K,!1);void 0!==Fh&&Fh(T,g,c,h,x)}function vm(s,c){if(null!==c){const h=c.type;if(3&h)return Qr(c,s);if(4&h)return Og(-1,s[c.index]);if(8&h){const g=c.child;if(null!==g)return vm(s,g);{const x=s[c.index];return va(x)?Og(-1,x):qr(x)}}if(32&h)return Tg(c,s)()||qr(s[c.index]);{const g=Ig(s,c);return null!==g?Array.isArray(g)?g[0]:vm(du(s[Mr]),g):vm(s,c.next)}}return null}function Ig(s,c){return null!==c?s[Mr][Mn].projection[c.projection]:null}function Og(s,c){const h=Xr+s+1;if(h<c.length){const g=c[h],x=g[Nt].firstChild;if(null!==x)return vm(g,x)}return c[pl]}function Rg(s,c,h,g,x,T,R){for(;null!=h;){const K=g[h.index],ae=h.type;if(R&&0===c&&(K&&Do(qr(K),g),h.flags|=2),32!=(32&h.flags))if(8&ae)Rg(s,c,h.child,g,x,T,!1),Sa(c,s,x,K,T);else if(32&ae){const Le=Tg(h,g);let bt;for(;bt=Le();)Sa(c,s,x,bt,T);Sa(c,s,x,K,T)}else 16&ae?Gv(s,c,g,h,x,T):Sa(c,s,x,K,T);h=R?h.projectionNext:h.next}}function hu(s,c,h,g,x,T){Rg(h,g,s.firstChild,c,x,T,!1)}function Gv(s,c,h,g,x,T){const R=h[Mr],ae=R[Mn].projection[g.projection];if(Array.isArray(ae))for(let Le=0;Le<ae.length;Le++)Sa(c,s,x,ae[Le],T);else Rg(s,c,ae,R[xe],x,T,!0)}function $v(s,c,h){""===h?s.removeAttribute(c,"class"):s.setAttribute(c,"class",h)}function qv(s,c,h){const{mergedAttrs:g,classes:x,styles:T}=h;null!==g&&wr(s,c,g),null!==x&&$v(s,c,x),null!==T&&function Uw(s,c,h){s.setAttribute(c,"style",h)}(s,c,T)}function mu(s){return function Xc(){if(void 0===fu&&(fu=null,Je.trustedTypes))try{fu=Je.trustedTypes.createPolicy("angular",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return fu}()?.createHTML(s)||s}function Kv(s){pu=s}function gu(s){return function Nh(){if(void 0===Lh&&(Lh=null,Je.trustedTypes))try{Lh=Je.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return Lh}()?.createScriptURL(s)||s}class kc{constructor(c){this.changingThisBreaksApplicationSecurity=c}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ee})`}}class Hw extends kc{getTypeName(){return"HTML"}}class mr extends kc{getTypeName(){return"Style"}}class jw extends kc{getTypeName(){return"Script"}}class wm extends kc{getTypeName(){return"URL"}}class Yw extends kc{getTypeName(){return"ResourceURL"}}function is(s){return s instanceof kc?s.changingThisBreaksApplicationSecurity:s}function Id(s,c){const h=function Lg(s){return s instanceof kc&&s.getTypeName()||null}(s);if(null!=h&&h!==c){if("ResourceURL"===h&&"URL"===c)return!0;throw new Error(`Required a safe ${c}, got a ${h} (see ${Ee})`)}return h===c}function Jv(s){return new Hw(s)}function Bh(s){return new mr(s)}function Cm(s){return new jw(s)}function Dm(s){return new wm(s)}function zw(s){return new Yw(s)}class Od{constructor(c){this.inertDocumentHelper=c}getInertBodyElement(c){c="<body><remove></remove>"+c;try{const h=(new window.DOMParser).parseFromString(mu(c),"text/html").body;return null===h?this.inertDocumentHelper.getInertBodyElement(c):(h.removeChild(h.firstChild),h)}catch{return null}}}class Ww{constructor(c){this.defaultDoc=c,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(c){const h=this.inertDocument.createElement("template");return h.innerHTML=mu(c),h}}const Uh=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Tm(s){return(s=String(s)).match(Uh)?s:"unsafe:"+s}function Ic(s){const c={};for(const h of s.split(","))c[h]=!0;return c}function Zh(...s){const c={};for(const h of s)for(const g in h)h.hasOwnProperty(g)&&(c[g]=!0);return c}const eb=Ic("area,br,col,hr,img,wbr"),Em=Ic("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ng=Ic("rp,rt"),Yr=Zh(eb,Zh(Em,Ic("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Zh(Ng,Ic("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Zh(Ng,Em)),Bg=Ic("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Rd=Zh(Bg,Ic("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ic("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),nb=Ic("script,style,template");class $w{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(c){let h=c.firstChild,g=!0;for(;h;)if(h.nodeType===Node.ELEMENT_NODE?g=this.startElement(h):h.nodeType===Node.TEXT_NODE?this.chars(h.nodeValue):this.sanitizedSomething=!0,g&&h.firstChild)h=h.firstChild;else for(;h;){h.nodeType===Node.ELEMENT_NODE&&this.endElement(h);let x=this.checkClobberedElement(h,h.nextSibling);if(x){h=x;break}h=this.checkClobberedElement(h,h.parentNode)}return this.buf.join("")}startElement(c){const h=c.nodeName.toLowerCase();if(!Yr.hasOwnProperty(h))return this.sanitizedSomething=!0,!nb.hasOwnProperty(h);this.buf.push("<"),this.buf.push(h);const g=c.attributes;for(let x=0;x<g.length;x++){const T=g.item(x),R=T.name,K=R.toLowerCase();if(!Rd.hasOwnProperty(K)){this.sanitizedSomething=!0;continue}let ae=T.value;Bg[K]&&(ae=Tm(ae)),this.buf.push(" ",R,'="',rb(ae),'"')}return this.buf.push(">"),!0}endElement(c){const h=c.nodeName.toLowerCase();Yr.hasOwnProperty(h)&&!eb.hasOwnProperty(h)&&(this.buf.push("</"),this.buf.push(h),this.buf.push(">"))}chars(c){this.buf.push(rb(c))}checkClobberedElement(c,h){if(h&&(c.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${c.outerHTML}`);return h}}const Ug=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ib=/([^\#-~ |!])/g;function rb(s){return s.replace(/&/g,"&").replace(Ug,function(c){return"&#"+(1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320)+65536)+";"}).replace(ib,function(c){return"&#"+c.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Mm;function ab(s,c){let h=null;try{Mm=Mm||function Xv(s){const c=new Ww(s);return function Gw(){try{return!!(new window.DOMParser).parseFromString(mu(""),"text/html")}catch{return!1}}()?new Od(c):c}(s);let g=c?String(c):"";h=Mm.getInertBodyElement(g);let x=5,T=g;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,g=T,T=h.innerHTML,h=Mm.getInertBodyElement(g)}while(g!==T);return mu((new $w).sanitizeChildren(Am(h)||h))}finally{if(h){const g=Am(h)||h;for(;g.firstChild;)g.removeChild(g.firstChild)}}}function Am(s){return"content"in s&&function qw(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var ka=(()=>((ka=ka||{})[ka.NONE=0]="NONE",ka[ka.HTML=1]="HTML",ka[ka.STYLE=2]="STYLE",ka[ka.SCRIPT=3]="SCRIPT",ka[ka.URL=4]="URL",ka[ka.RESOURCE_URL=5]="RESOURCE_URL",ka))();function Vg(s){const c=Hh();return c?c.sanitize(ka.URL,s)||"":Id(s,"URL")?is(s):Tm(Qe(s))}function sb(s){const c=Hh();if(c)return gu(c.sanitize(ka.RESOURCE_URL,s)||"");if(Id(s,"ResourceURL"))return gu(is(s));throw new ue(904,!1)}function ub(s,c,h){return function db(s,c){return"src"===c&&("embed"===s||"frame"===s||"iframe"===s||"media"===s||"script"===s)||"href"===c&&("base"===s||"link"===s)?sb:Vg}(c,h)(s)}function Hh(){const s=Bt();return s&&s[Lr]}const Hg=new jr("ENVIRONMENT_INITIALIZER"),hb=new jr("INJECTOR",-1),fb=new jr("INJECTOR_DEF_TYPES");class jh{get(c,h=Me){if(h===Me){const g=new Error(`NullInjectorError: No provider for ${b(c)}!`);throw g.name="NullInjectorError",g}return h}}function Jw(s){return{\u0275providers:s}}function Xw(...s){return{\u0275providers:jg(0,s),\u0275fromNgModule:!0}}function jg(s,...c){const h=[],g=new Set;let x;return Mc(c,T=>{const R=T;vu(R,h,[],g)&&(x||(x=[]),x.push(R))}),void 0!==x&&Sm(x,h),h}function Sm(s,c){for(let h=0;h<s.length;h++){const{providers:x}=s[h];zg(x,T=>{c.push(T)})}}function vu(s,c,h,g){if(!(s=B(s)))return!1;let x=null,T=ne(s);const R=!T&&Ft(s);if(T||R){if(R&&!R.standalone)return!1;x=s}else{const ae=s.ngModule;if(T=ne(ae),!T)return!1;x=ae}const K=g.has(x);if(R){if(K)return!1;if(g.add(x),R.dependencies){const ae="function"==typeof R.dependencies?R.dependencies():R.dependencies;for(const Le of ae)vu(Le,c,h,g)}}else{if(!T)return!1;{if(null!=T.imports&&!K){let Le;g.add(x);try{Mc(T.imports,bt=>{vu(bt,c,h,g)&&(Le||(Le=[]),Le.push(bt))})}finally{}void 0!==Le&&Sm(Le,c)}if(!K){const Le=So(x)||(()=>new x);c.push({provide:x,useFactory:Le,deps:xt},{provide:fb,useValue:x,multi:!0},{provide:Hg,useValue:()=>cn(x),multi:!0})}const ae=T.providers;null==ae||K||zg(ae,bt=>{c.push(bt)})}}return x!==s&&void 0!==s.providers}function zg(s,c){for(let h of s)G(h)&&(h=h.\u0275providers),Array.isArray(h)?zg(h,c):c(h)}const eC=k({provide:String,useValue:k});function Oc(s){return null!==s&&"object"==typeof s&&eC in s}function Vs(s){return"function"==typeof s}const Yh=new jr("Set Injector scope."),km={},gb={};let Wg;function zh(){return void 0===Wg&&(Wg=new jh),Wg}class Hs{}class _b extends Hs{get destroyed(){return this._destroyed}constructor(c,h,g,x){super(),this.parent=h,this.source=g,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Im(c,R=>this.processProvider(R)),this.records.set(hb,yu(void 0,this)),x.has("environment")&&this.records.set(Hs,yu(void 0,this));const T=this.records.get(Yh);null!=T&&"string"==typeof T.value&&this.scopes.add(T.value),this.injectorDefTypes=new Set(this.get(fb.multi,xt,un.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const c of this._ngOnDestroyHooks)c.ngOnDestroy();for(const c of this._onDestroyHooks)c()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(c){this._onDestroyHooks.push(c)}runInContext(c){this.assertNotDestroyed();const h=gn(this),g=fe(void 0);try{return c()}finally{gn(h),fe(g)}}get(c,h=Me,g=un.Default){this.assertNotDestroyed(),g=ze(g);const x=gn(this),T=fe(void 0);try{if(!(g&un.SkipSelf)){let K=this.records.get(c);if(void 0===K){const ae=function bb(s){return"function"==typeof s||"object"==typeof s&&s instanceof jr}(c)&&se(c);K=ae&&this.injectableDefInScope(ae)?yu(Gg(c),km):null,this.records.set(c,K)}if(null!=K)return this.hydrate(c,K)}return(g&un.Self?zh():this.parent).get(c,h=g&un.Optional&&h===Me?null:h)}catch(R){if("NullInjectorError"===R.name){if((R[it]=R[it]||[]).unshift(b(c)),x)throw R;return function yt(s,c,h,g){const x=s[it];throw c[An]&&x.unshift(c[An]),s.message=function ht(s,c,h,g=null){s=s&&"\n"===s.charAt(0)&&s.charAt(1)==Rn?s.slice(2):s;let x=b(c);if(Array.isArray(c))x=c.map(b).join(" -> ");else if("object"==typeof c){let T=[];for(let R in c)if(c.hasOwnProperty(R)){let K=c[R];T.push(R+":"+("string"==typeof K?JSON.stringify(K):b(K)))}x=`{${T.join(", ")}}`}return`${h}${g?"("+g+")":""}[${x}]: ${s.replace(dn,"\n ")}`}("\n"+s.message,x,h,g),s[ct]=x,s[it]=null,s}(R,c,"R3InjectorError",this.source)}throw R}finally{fe(T),gn(x)}}resolveInjectorInitializers(){const c=gn(this),h=fe(void 0);try{const g=this.get(Hg.multi,xt,un.Self);for(const x of g)x()}finally{gn(c),fe(h)}}toString(){const c=[],h=this.records;for(const g of h.keys())c.push(b(g));return`R3Injector[${c.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ue(205,!1)}processProvider(c){let h=Vs(c=B(c))?c:B(c&&c.provide);const g=function nC(s){return Oc(s)?yu(void 0,s.useValue):yu(bu(s),km)}(c);if(Vs(c)||!0!==c.multi)this.records.get(h);else{let x=this.records.get(h);x||(x=yu(void 0,km,!0),x.factory=()=>de(x.multi),this.records.set(h,x)),h=c,x.multi.push(c)}this.records.set(h,g)}hydrate(c,h){return h.value===km&&(h.value=gb,h.value=h.factory()),"object"==typeof h.value&&h.value&&function xu(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(h.value)&&this._ngOnDestroyHooks.add(h.value),h.value}injectableDefInScope(c){if(!c.providedIn)return!1;const h=B(c.providedIn);return"string"==typeof h?"any"===h||this.scopes.has(h):this.injectorDefTypes.has(h)}}function Gg(s){const c=se(s),h=null!==c?c.factory:So(s);if(null!==h)return h;if(s instanceof jr)throw new ue(204,!1);if(s instanceof Function)return function vb(s){const c=s.length;if(c>0)throw Qc(c,"?"),new ue(204,!1);const h=function V(s){return s&&(s[De]||s[nn])||null}(s);return null!==h?()=>h.factory(s):()=>new s}(s);throw new ue(204,!1)}function bu(s,c,h){let g;if(Vs(s)){const x=B(s);return So(x)||Gg(x)}if(Oc(s))g=()=>B(s.useValue);else if(function pb(s){return!(!s||!s.useFactory)}(s))g=()=>s.useFactory(...de(s.deps||[]));else if(function mb(s){return!(!s||!s.useExisting)}(s))g=()=>cn(B(s.useExisting));else{const x=B(s&&(s.useClass||s.provide));if(!function iC(s){return!!s.deps}(s))return So(x)||Gg(x);g=()=>new x(...de(s.deps))}return g}function yu(s,c,h=!1){return{factory:s,value:c,multi:h?[]:void 0}}function Im(s,c){for(const h of s)Array.isArray(h)?Im(h,c):h&&G(h)?Im(h.\u0275providers,c):c(h)}class yb{}class $g{}class oC{resolveComponentFactory(c){throw function rC(s){const c=Error(`No component factory found for ${b(s)}. Did you add it to @NgModule.entryComponents?`);return c.ngComponent=s,c}(c)}}let Wh=(()=>{class s{}return s.NULL=new oC,s})();function sC(){return Fd(Nn(),Bt())}function Fd(s,c){return new Gh(Qr(s,c))}let Gh=(()=>{class s{constructor(h){this.nativeElement=h}}return s.__NG_ELEMENT_ID__=sC,s})();function xb(s){return s instanceof Gh?s.nativeElement:s}class wb{}let lC=(()=>{class s{}return s.__NG_ELEMENT_ID__=()=>function Pc(){const s=Bt(),h=Nr(Nn().index,s);return(_a(h)?h:s)[Li]}(),s})(),Cb=(()=>{class s{}return s.\u0275prov=we({token:s,providedIn:"root",factory:()=>null}),s})();class Db{constructor(c){this.full=c,this.major=c.split(".")[0],this.minor=c.split(".")[1],this.patch=c.split(".").slice(2).join(".")}}const cC=new Db("15.2.9"),Qg={},Kg="ngOriginalError";function Om(s){return s[Kg]}class $h{constructor(){this._console=console}handleError(c){const h=this._findOriginalError(c);this._console.error("ERROR",c),h&&this._console.error("ORIGINAL ERROR",h)}_findOriginalError(c){let h=c&&Om(c);for(;h&&Om(h);)h=Om(h);return h||null}}function Rc(s){return s instanceof Function?s():s}function Ab(s,c,h){let g=s.length;for(;;){const x=s.indexOf(c,h);if(-1===x)return x;if(0===x||s.charCodeAt(x-1)<=32){const T=c.length;if(x+T===g||s.charCodeAt(x+T)<=32)return x}h=x+1}}const wu="ng-template";function Jg(s,c,h){let g=0,x=!0;for(;g<s.length;){let T=s[g++];if("string"==typeof T&&x){const R=s[g++];if(h&&"class"===T&&-1!==Ab(R.toLowerCase(),c,0))return!0}else{if(1===T){for(;g<s.length&&"string"==typeof(T=s[g++]);)if(T.toLowerCase()===c)return!0;return!1}"number"==typeof T&&(x=!1)}}return!1}function Xg(s){return 4===s.type&&s.value!==wu}function bC(s,c,h){return c===(4!==s.type||h?s.value:wu)}function nc(s,c,h){let g=4;const x=s.attrs||[],T=function wC(s){for(let c=0;c<s.length;c++)if(la(s[c]))return c;return s.length}(x);let R=!1;for(let K=0;K<c.length;K++){const ae=c[K];if("number"!=typeof ae){if(!R)if(4&g){if(g=2|1&g,""!==ae&&!bC(s,ae,h)||""===ae&&1===c.length){if(Al(g))return!1;R=!0}}else{const Le=8&g?ae:c[++K];if(8&g&&null!==s.attrs){if(!Jg(s.attrs,Le,h)){if(Al(g))return!1;R=!0}continue}const Wt=yC(8&g?"class":ae,x,Xg(s),h);if(-1===Wt){if(Al(g))return!1;R=!0;continue}if(""!==Le){let pn;pn=Wt>T?"":x[Wt+1].toLowerCase();const Dn=8&g?pn:null;if(Dn&&-1!==Ab(Dn,Le,0)||2&g&&Le!==pn){if(Al(g))return!1;R=!0}}}}else{if(!R&&!Al(g)&&!Al(ae))return!1;if(R&&Al(ae))continue;R=!1,g=ae|1&g}}return Al(g)||R}function Al(s){return 0==(1&s)}function yC(s,c,h,g){if(null===c)return-1;let x=0;if(g||!h){let T=!1;for(;x<c.length;){const R=c[x];if(R===s)return x;if(3===R||6===R)T=!0;else{if(1===R||2===R){let K=c[++x];for(;"string"==typeof K;)K=c[++x];continue}if(4===R)break;if(0===R){x+=4;continue}}x+=T?1:2}return-1}return function kb(s,c){let h=s.indexOf(4);if(h>-1)for(h++;h<s.length;){const g=s[h];if("number"==typeof g)return-1;if(g===c)return h;h++}return-1}(c,s)}function Sb(s,c,h=!1){for(let g=0;g<c.length;g++)if(nc(s,c[g],h))return!0;return!1}function Ib(s,c){e:for(let h=0;h<c.length;h++){const g=c[h];if(s.length===g.length){for(let x=0;x<s.length;x++)if(s[x]!==g[x])continue e;return!0}}return!1}function Rm(s,c){return s?":not("+c.trim()+")":c}function CC(s){let c=s[0],h=1,g=2,x="",T=!1;for(;h<s.length;){let R=s[h];if("string"==typeof R)if(2&g){const K=s[++h];x+="["+R+(K.length>0?'="'+K+'"':"")+"]"}else 8&g?x+="."+R:4&g&&(x+=" "+R);else""!==x&&!Al(R)&&(c+=Rm(T,x),x=""),g=R,T=T||!Al(g);h++}return""!==x&&(c+=Rm(T,x)),c}const Gi={};function Ob(s){e_(bn(),Bt(),La()+s,!1)}function e_(s,c,h,g){if(!g)if(3==(3&c[P])){const T=s.preOrderCheckHooks;null!==T&&wd(c,T,h)}else{const T=s.preOrderHooks;null!==T&&Cd(c,T,0,h)}ro(h)}function dl(s,c=null,h=null,g){const x=t_(s,c,h,g);return x.resolveInjectorInitializers(),x}function t_(s,c=null,h=null,g,x=new Set){const T=[h||xt,Xw(s)];return g=g||("object"==typeof s?void 0:b(s)),new _b(T,c||zh(),g||null,x)}let Nd=(()=>{class s{static create(h,g){if(Array.isArray(h))return dl({name:""},g,h,"");{const x=h.name??"";return dl({name:x},h.parent,h.providers,x)}}}return s.THROW_IF_NOT_FOUND=Me,s.NULL=new jh,s.\u0275prov=we({token:s,providedIn:"any",factory:()=>cn(hb)}),s.__NG_ELEMENT_ID__=-1,s})();function Tu(s,c=un.Default){const h=Bt();return null===h?cn(s,c):Kf(Nn(),h,B(s),c)}function Eu(){throw new Error("invalid")}function Nm(s,c){const h=s.contentQueries;if(null!==h)for(let g=0;g<h.length;g+=2){const T=h[g+1];if(-1!==T){const R=s.data[T];sl(h[g]),R.contentQueries(2,c[T],T)}}}function Mu(s,c,h,g,x,T,R,K,ae,Le,bt){const Wt=c.blueprint.slice();return Wt[rt]=x,Wt[P]=76|g,(null!==bt||s&&1024&s[P])&&(Wt[P]|=1024),cs(Wt),Wt[xe]=Wt[oa]=s,Wt[Ai]=h,Wt[kr]=R||s&&s[kr],Wt[Li]=K||s&&s[Li],Wt[Lr]=ae||s&&s[Lr]||null,Wt[sr]=Le||s&&s[sr]||null,Wt[Mn]=T,Wt[ga]=function Rv(){return Xl++}(),Wt[Dr]=bt,Wt[Mr]=2==c.type?s[Mr]:Wt,Wt}function Ud(s,c,h,g,x){let T=s.data[c];if(null===T)T=function a_(s,c,h,g,x){const T=ri(),R=Ci(),ae=s.data[c]=function jC(s,c,h,g,x,T){return{type:h,index:g,insertBeforeIndex:null,injectorIndex:c?c.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:x,attrs:T,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:c,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,R?T:T&&T.parent,h,c,g,x);return null===s.firstChild&&(s.firstChild=ae),null!==T&&(R?null==T.child&&null!==ae.parent&&(T.child=ae):null===T.next&&(T.next=ae,ae.prev=T)),ae}(s,c,h,g,x),function tr(){return Ni.lFrame.inI18n}()&&(T.flags|=32);else if(64&T.type){T.type=h,T.value=g,T.attrs=x;const R=function mi(){const s=Ni.lFrame,c=s.currentTNode;return s.isParent?c:c.parent}();T.injectorIndex=null===R?-1:R.injectorIndex}return si(T,!0),T}function Au(s,c,h,g){if(0===h)return-1;const x=c.length;for(let T=0;T<h;T++)c.push(g),s.blueprint.push(g),s.data.push(null);return x}function Zd(s,c,h){$l(c);try{const g=s.viewQuery;null!==g&&h_(1,g,h);const x=s.template;null!==x&&Su(s,c,x,1,h),s.firstCreatePass&&(s.firstCreatePass=!1),s.staticContentQueries&&Nm(s,c),s.staticViewQueries&&h_(2,s.viewQuery,h);const T=s.components;null!==T&&function VC(s,c){for(let h=0;h<c.length;h++)tD(s,c[h])}(c,T)}catch(g){throw s.firstCreatePass&&(s.incompleteFirstPass=!0,s.firstCreatePass=!1),g}finally{c[P]&=-5,wl()}}function Qh(s,c,h,g){const x=c[P];if(128!=(128&x)){$l(c);try{cs(c),function lr(s){return Ni.lFrame.bindingIndex=s}(s.bindingStartIndex),null!==h&&Su(s,c,h,2,g);const R=3==(3&x);if(R){const Le=s.preOrderCheckHooks;null!==Le&&wd(c,Le,null)}else{const Le=s.preOrderHooks;null!==Le&&Cd(c,Le,0,null),ee(c,0)}if(function XC(s){for(let c=fm(s);null!==c;c=Eg(c)){if(!c[Qs])continue;const h=c[ss];for(let g=0;g<h.length;g++){const x=h[g];512&x[P]||zl(x[xe],1),x[P]|=512}}}(c),function JC(s){for(let c=fm(s);null!==c;c=Eg(c))for(let h=Xr;h<c.length;h++){const g=c[h],x=g[Nt];na(g)&&Qh(x,g,x.template,g[Ai])}}(c),null!==s.contentQueries&&Nm(s,c),R){const Le=s.contentCheckHooks;null!==Le&&wd(c,Le)}else{const Le=s.contentHooks;null!==Le&&Cd(c,Le,1),ee(c,1)}!function UC(s,c){const h=s.hostBindingOpCodes;if(null!==h)try{for(let g=0;g<h.length;g++){const x=h[g];if(x<0)ro(~x);else{const T=x,R=h[++g],K=h[++g];ol(R,T),K(2,c[T])}}}finally{ro(-1)}}(s,c);const K=s.components;null!==K&&function ZC(s,c){for(let h=0;h<c.length;h++)eD(s,c[h])}(c,K);const ae=s.viewQuery;if(null!==ae&&h_(2,ae,g),R){const Le=s.viewCheckHooks;null!==Le&&wd(c,Le)}else{const Le=s.viewHooks;null!==Le&&Cd(c,Le,2),ee(c,2)}!0===s.firstUpdatePass&&(s.firstUpdatePass=!1),c[P]&=-41,512&c[P]&&(c[P]&=-513,zl(c[xe],-1))}finally{wl()}}}function Su(s,c,h,g,x){const T=La(),R=2&g;try{ro(-1),R&&c.length>xr&&e_(s,c,xr,!1),xa(R?2:0,x),h(g,x)}finally{ro(T),xa(R?3:1,x)}}function o_(s,c,h){if(gl(c)){const x=c.directiveEnd;for(let T=c.directiveStart;T<x;T++){const R=s.data[T];R.contentQueries&&R.contentQueries(1,h[T],T)}}}function s_(s,c,h){Be()&&(function WC(s,c,h,g){const x=h.directiveStart,T=h.directiveEnd;Yo(h)&&function qC(s,c,h){const g=Qr(c,s),x=jb(h),T=s[kr],R=Hm(s,Mu(s,x,null,h.onPush?32:16,g,c,T,T.createRenderer(g,h),null,null,null));s[c.index]=R}(c,h,s.data[x+h.componentOffset]),s.firstCreatePass||su(h,c),Do(g,c);const R=h.initialInputs;for(let K=x;K<T;K++){const ae=s.data[K],Le=ql(c,s,K,h);Do(Le,c),null!==R&&QC(0,K-x,Le,ae,0,R),ba(ae)&&(Nr(h.index,c)[Ai]=ql(c,s,K,h))}}(s,c,h,Qr(h,c)),64==(64&h.flags)&&qb(s,c,h))}function l_(s,c,h=Qr){const g=c.localNames;if(null!==g){let x=c.index+1;for(let T=0;T<g.length;T+=2){const R=g[T+1],K=-1===R?h(c,s):s[R];s[x++]=K}}}function jb(s){const c=s.tView;return null===c||c.incompleteFirstPass?s.tView=Bm(1,null,s.template,s.decls,s.vars,s.directiveDefs,s.pipeDefs,s.viewQuery,s.schemas,s.consts):c}function Bm(s,c,h,g,x,T,R,K,ae,Le){const bt=xr+g,Wt=bt+x,pn=function Yb(s,c){const h=[];for(let g=0;g<c;g++)h.push(g<s?null:Gi);return h}(bt,Wt),Dn="function"==typeof Le?Le():Le;return pn[Nt]={type:s,blueprint:pn,template:h,queries:null,viewQuery:K,declTNode:c,data:pn.slice().fill(null,bt),bindingStartIndex:bt,expandoStartIndex:Wt,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof T?T():T,pipeRegistry:"function"==typeof R?R():R,firstChild:null,schemas:ae,consts:Dn,incompleteFirstPass:!1}}function zb(s,c,h,g){const x=f_(c);null===h?x.push(g):(x.push(h),s.firstCreatePass&&ey(s).push(g,x.length-1))}function ku(s,c,h,g){for(let x in s)if(s.hasOwnProperty(x)){h=null===h?{}:h;const T=s[x];null===g?Kh(h,c,x,T):g.hasOwnProperty(x)&&Kh(h,c,g[x],T)}return h}function Kh(s,c,h,g){s.hasOwnProperty(h)?s[h].push(c,g):s[h]=[c,g]}function gs(s,c,h,g,x,T,R,K){const ae=Qr(c,h);let bt,Le=c.inputs;!K&&null!=Le&&(bt=Le[g])?(Iu(s,h,bt,g,x),Yo(c)&&function YC(s,c){const h=Nr(c,s);16&h[P]||(h[P]|=32)}(h,c.index)):3&c.type&&(g=function Lo(s){return"class"===s?"className":"for"===s?"htmlFor":"formaction"===s?"formAction":"innerHtml"===s?"innerHTML":"readonly"===s?"readOnly":"tabindex"===s?"tabIndex":s}(g),x=null!=R?R(x,c.value||"",g):x,T.setProperty(ae,g,x))}function Zm(s,c,h,g){if(Be()){const x=null===g?null:{"":-1},T=function GC(s,c){const h=s.directiveRegistry;let g=null,x=null;if(h)for(let T=0;T<h.length;T++){const R=h[T];if(Sb(c,R.selectors,!1))if(g||(g=[]),ba(R))if(null!==R.findHostDirectiveDefs){const K=[];x=x||new Map,R.findHostDirectiveDefs(R,K,x),g.unshift(...K,R),c_(s,c,K.length)}else g.unshift(R),c_(s,c,0);else x=x||new Map,R.findHostDirectiveDefs?.(R,g,x),g.push(R)}return null===g?null:[g,x]}(s,h);let R,K;null===T?R=K=null:[R,K]=T,null!==R&&Gb(s,c,h,R,x,K),x&&function Jh(s,c,h){if(c){const g=s.localNames=[];for(let x=0;x<c.length;x+=2){const T=h[c[x+1]];if(null==T)throw new ue(-301,!1);g.push(c[x],T)}}}(h,g,x)}h.mergedAttrs=bo(h.mergedAttrs,h.attrs)}function Gb(s,c,h,g,x,T){for(let Le=0;Le<g.length;Le++)lu(su(h,c),s,g[Le].type);!function Kb(s,c,h){s.flags|=1,s.directiveStart=c,s.directiveEnd=c+h,s.providerIndexes=c}(h,s.data.length,g.length);for(let Le=0;Le<g.length;Le++){const bt=g[Le];bt.providersResolver&&bt.providersResolver(bt)}let R=!1,K=!1,ae=Au(s,c,g.length,null);for(let Le=0;Le<g.length;Le++){const bt=g[Le];h.mergedAttrs=bo(h.mergedAttrs,bt.hostAttrs),$C(s,h,c,ae,bt),Qb(ae,bt,x),null!==bt.contentQueries&&(h.flags|=4),(null!==bt.hostBindings||null!==bt.hostAttrs||0!==bt.hostVars)&&(h.flags|=64);const Wt=bt.type.prototype;!R&&(Wt.ngOnChanges||Wt.ngOnInit||Wt.ngDoCheck)&&((s.preOrderHooks??(s.preOrderHooks=[])).push(h.index),R=!0),!K&&(Wt.ngOnChanges||Wt.ngDoCheck)&&((s.preOrderCheckHooks??(s.preOrderCheckHooks=[])).push(h.index),K=!0),ae++}!function Wb(s,c,h){const x=c.directiveEnd,T=s.data,R=c.attrs,K=[];let ae=null,Le=null;for(let bt=c.directiveStart;bt<x;bt++){const Wt=T[bt],pn=h?h.get(Wt):null,Yn=pn?pn.outputs:null;ae=ku(Wt.inputs,bt,ae,pn?pn.inputs:null),Le=ku(Wt.outputs,bt,Le,Yn);const ci=null===ae||null===R||Xg(c)?null:KC(ae,bt,R);K.push(ci)}null!==ae&&(ae.hasOwnProperty("class")&&(c.flags|=8),ae.hasOwnProperty("style")&&(c.flags|=16)),c.initialInputs=K,c.inputs=ae,c.outputs=Le}(s,h,T)}function qb(s,c,h){const g=h.directiveStart,x=h.directiveEnd,T=h.index,R=function ia(){return Ni.lFrame.currentDirectiveIndex}();try{ro(T);for(let K=g;K<x;K++){const ae=s.data[K],Le=c[K];io(K),(null!==ae.hostBindings||0!==ae.hostVars||null!==ae.hostAttrs)&&Vm(ae,Le)}}finally{ro(-1),io(R)}}function Vm(s,c){null!==s.hostBindings&&s.hostBindings(1,c)}function c_(s,c,h){c.componentOffset=h,(s.components??(s.components=[])).push(c.index)}function Qb(s,c,h){if(h){if(c.exportAs)for(let g=0;g<c.exportAs.length;g++)h[c.exportAs[g]]=s;ba(c)&&(h[""]=s)}}function $C(s,c,h,g,x){s.data[g]=x;const T=x.factory||(x.factory=So(x.type)),R=new Qt(T,ba(x),Tu);s.blueprint[g]=R,h[g]=R,function $b(s,c,h,g,x){const T=x.hostBindings;if(T){let R=s.hostBindingOpCodes;null===R&&(R=s.hostBindingOpCodes=[]);const K=~c.index;(function zC(s){let c=s.length;for(;c>0;){const h=s[--c];if("number"==typeof h&&h<0)return h}return 0})(R)!=K&&R.push(K),R.push(h,g,T)}}(s,c,g,Au(s,h,x.hostVars,Gi),x)}function ic(s,c,h,g,x,T){const R=Qr(s,c);!function Xh(s,c,h,g,x,T,R){if(null==T)s.removeAttribute(c,x,h);else{const K=null==R?Qe(T):R(T,g||"",x);s.setAttribute(c,x,K,h)}}(c[Li],R,T,s.value,h,g,x)}function QC(s,c,h,g,x,T){const R=T[c];if(null!==R){const K=g.setInput;for(let ae=0;ae<R.length;){const Le=R[ae++],bt=R[ae++],Wt=R[ae++];null!==K?g.setInput(h,Wt,Le,bt):h[bt]=Wt}}}function KC(s,c,h){let g=null,x=0;for(;x<h.length;){const T=h[x];if(0!==T)if(5!==T){if("number"==typeof T)break;if(s.hasOwnProperty(T)){null===g&&(g=[]);const R=s[T];for(let K=0;K<R.length;K+=2)if(R[K]===c){g.push(T,R[K+1],h[x+1]);break}}x+=2}else x+=2;else x+=4}return g}function Jb(s,c,h,g){return[s,!0,!1,c,null,0,g,h,null,null]}function eD(s,c){const h=Nr(c,s);if(na(h)){const g=h[Nt];48&h[P]?Qh(g,h,g.template,h[Ai]):h[It]>0&&d_(h)}}function d_(s){for(let g=fm(s);null!==g;g=Eg(g))for(let x=Xr;x<g.length;x++){const T=g[x];if(na(T))if(512&T[P]){const R=T[Nt];Qh(R,T,R.template,T[Ai])}else T[It]>0&&d_(T)}const h=s[Nt].components;if(null!==h)for(let g=0;g<h.length;g++){const x=Nr(h[g],s);na(x)&&x[It]>0&&d_(x)}}function tD(s,c){const h=Nr(c,s),g=h[Nt];(function u_(s,c){for(let h=c.length;h<s.blueprint.length;h++)c.push(s.blueprint[h])})(g,h),Zd(g,h,h[Ai])}function Hm(s,c){return s[Zn]?s[Mo][st]=c:s[Zn]=c,s[Mo]=c,c}function jm(s){for(;s;){s[P]|=32;const c=du(s);if(Yc(s)&&!c)return s;s=c}return null}function Ym(s,c,h,g=!0){const x=c[kr];x.begin&&x.begin();try{Qh(s,c,s.template,h)}catch(R){throw g&&p_(c,R),R}finally{x.end&&x.end()}}function h_(s,c,h){sl(0),c(s,h)}function f_(s){return s[Ei]||(s[Ei]=[])}function ey(s){return s.cleanup||(s.cleanup=[])}function m_(s,c,h){return(null===s||ba(s))&&(h=function Ko(s){for(;Array.isArray(s);){if("object"==typeof s[Os])return s;s=s[rt]}return null}(h[c.index])),h[Li]}function p_(s,c){const h=s[sr],g=h?h.get($h,null):null;g&&g.handleError(c)}function Iu(s,c,h,g,x){for(let T=0;T<h.length;){const R=h[T++],K=h[T++],ae=c[R],Le=s.data[R];null!==Le.setInput?Le.setInput(ae,x,g,K):ae[K]=x}}function js(s,c,h){const g=Yl(c,s);!function Ag(s,c,h){s.setValue(c,h)}(s[Li],g,h)}function zm(s,c,h){let g=h?s.styles:null,x=h?s.classes:null,T=0;if(null!==c)for(let R=0;R<c.length;R++){const K=c[R];"number"==typeof K?T=K:1==T?x=J(x,K):2==T&&(g=J(g,K+": "+c[++R]+";"))}h?s.styles=g:s.stylesWithoutHost=g,h?s.classes=x:s.classesWithoutHost=x}function ef(s,c,h,g,x=!1){for(;null!==h;){const T=c[h.index];if(null!==T&&g.push(qr(T)),va(T))for(let K=Xr;K<T.length;K++){const ae=T[K],Le=ae[Nt].firstChild;null!==Le&&ef(ae[Nt],ae,Le,g)}const R=h.type;if(8&R)ef(s,c,h.child,g);else if(32&R){const K=Tg(h,c);let ae;for(;ae=K();)g.push(ae)}else if(16&R){const K=Ig(c,h);if(Array.isArray(K))g.push(...K);else{const ae=du(c[Mr]);ef(ae[Nt],ae,K,g,!0)}}h=x?h.projectionNext:h.next}return g}class tf{get rootNodes(){const c=this._lView,h=c[Nt];return ef(h,c,h.firstChild,[])}constructor(c,h){this._lView=c,this._cdRefInjectingView=h,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Ai]}set context(c){this._lView[Ai]=c}get destroyed(){return 128==(128&this._lView[P])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const c=this._lView[xe];if(va(c)){const h=c[Ps],g=h?h.indexOf(this):-1;g>-1&&(Ml(c,g),Dd(h,g))}this._attachedToViewContainer=!1}Sg(this._lView[Nt],this._lView)}onDestroy(c){zb(this._lView[Nt],this._lView,null,c)}markForCheck(){jm(this._cdRefInjectingView||this._lView)}detach(){this._lView[P]&=-65}reattach(){this._lView[P]|=64}detectChanges(){Ym(this._lView[Nt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function kh(s,c){hu(s,c,c[Li],2,null,null)}(this._lView[Nt],this._lView)}attachToAppRef(c){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=c}}class iD extends tf{constructor(c){super(c),this._view=c}detectChanges(){const c=this._view;Ym(c[Nt],c,c[Ai],!1)}checkNoChanges(){}get context(){return null}}class ty extends Wh{constructor(c){super(),this.ngModule=c}resolveComponentFactory(c){const h=Ft(c);return new Ou(h,this.ngModule)}}function ny(s){const c=[];for(let h in s)s.hasOwnProperty(h)&&c.push({propName:s[h],templateName:h});return c}class ry{constructor(c,h){this.injector=c,this.parentInjector=h}get(c,h,g){g=ze(g);const x=this.injector.get(c,Qg,g);return x!==Qg||h===Qg?x:this.parentInjector.get(c,h,g)}}class Ou extends $g{get inputs(){return ny(this.componentDef.inputs)}get outputs(){return ny(this.componentDef.outputs)}constructor(c,h){super(),this.componentDef=c,this.ngModule=h,this.componentType=c.type,this.selector=function DC(s){return s.map(CC).join(",")}(c.selectors),this.ngContentSelectors=c.ngContentSelectors?c.ngContentSelectors:[],this.isBoundToModule=!!h}create(c,h,g,x){let T=(x=x||this.ngModule)instanceof Hs?x:x?.injector;T&&null!==this.componentDef.getStandaloneInjector&&(T=this.componentDef.getStandaloneInjector(T)||T);const R=T?new ry(c,T):c,K=R.get(wb,null);if(null===K)throw new ue(407,!1);const ae=R.get(Cb,null),Le=K.createRenderer(null,this.componentDef),bt=this.componentDef.selectors[0][0]||"div",Wt=g?function HC(s,c,h){return s.selectRootElement(c,h===Q.ShadowDom)}(Le,g,this.componentDef.encapsulation):uu(Le,bt,function iy(s){const c=s.toLowerCase();return"svg"===c?Qo:"math"===c?"math":null}(bt)),pn=this.componentDef.onPush?288:272,Dn=Bm(0,null,null,1,0,null,null,null,null,null),Yn=Mu(null,Dn,null,pn,null,null,K,Le,ae,R,null);let ci,Di;$l(Yn);try{const Ri=this.componentDef;let ji,ii=null;Ri.findHostDirectiveDefs?(ji=[],ii=new Map,Ri.findHostDirectiveDefs(Ri,ji,ii),ji.push(Ri)):ji=[Ri];const $i=function Wm(s,c){const h=s[Nt],g=xr;return s[g]=c,Ud(h,g,2,"#host",null)}(Yn,Wt),aa=function ay(s,c,h,g,x,T,R,K){const ae=x[Nt];!function oD(s,c,h,g){for(const x of s)c.mergedAttrs=bo(c.mergedAttrs,x.hostAttrs);null!==c.mergedAttrs&&(zm(c,c.mergedAttrs,!0),null!==h&&qv(g,h,c))}(g,s,c,R);const Le=T.createRenderer(c,h),bt=Mu(x,jb(h),null,h.onPush?32:16,x[s.index],s,T,Le,K||null,null,null);return ae.firstCreatePass&&c_(ae,s,g.length-1),Hm(x,bt),x[s.index]=bt}($i,Wt,Ri,ji,Yn,K,Le);Di=al(Dn,xr),Wt&&function Vd(s,c,h,g){if(g)wr(s,h,["ng-version",cC.full]);else{const{attrs:x,classes:T}=function TC(s){const c=[],h=[];let g=1,x=2;for(;g<s.length;){let T=s[g];if("string"==typeof T)2===x?""!==T&&c.push(T,s[++g]):8===x&&h.push(T);else{if(!Al(x))break;x=T}g++}return{attrs:c,classes:h}}(c.selectors[0]);x&&wr(s,h,x),T&&T.length>0&&$v(s,h,T.join(" "))}}(Le,Ri,Wt,g),void 0!==h&&function oy(s,c,h){const g=s.projection=[];for(let x=0;x<c.length;x++){const T=h[x];g.push(null!=T?Array.from(T):null)}}(Di,this.ngContentSelectors,h),ci=function sD(s,c,h,g,x,T){const R=Nn(),K=x[Nt],ae=Qr(R,x);Gb(K,x,R,h,null,g);for(let bt=0;bt<h.length;bt++)Do(ql(x,K,R.directiveStart+bt,R),x);qb(K,x,R),ae&&Do(ae,x);const Le=ql(x,K,R.directiveStart+R.componentOffset,R);if(s[Ai]=x[Ai]=Le,null!==T)for(const bt of T)bt(Le,c);return o_(K,R,s),Le}(aa,Ri,ji,ii,Yn,[td]),Zd(Dn,Yn,null)}finally{wl()}return new rD(this.componentType,ci,Fd(Di,Yn),Yn,Di)}}class rD extends yb{constructor(c,h,g,x,T){super(),this.location=g,this._rootLView=x,this._tNode=T,this.instance=h,this.hostView=this.changeDetectorRef=new iD(x),this.componentType=c}setInput(c,h){const g=this._tNode.inputs;let x;if(null!==g&&(x=g[c])){const T=this._rootLView;Iu(T[Nt],T,x,c,h),jm(Nr(this._tNode.index,T))}}get injector(){return new Dl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(c){this.hostView.onDestroy(c)}}function td(){const s=Nn();ou(Bt()[Nt],s)}function __(s){let c=function g_(s){return Object.getPrototypeOf(s.prototype).constructor}(s.type),h=!0;const g=[s];for(;c;){let x;if(ba(s))x=c.\u0275cmp||c.\u0275dir;else{if(c.\u0275cmp)throw new ue(903,!1);x=c.\u0275dir}if(x){if(h){g.push(x);const R=s;R.inputs=nd(s.inputs),R.declaredInputs=nd(s.declaredInputs),R.outputs=nd(s.outputs);const K=x.hostBindings;K&&dD(s,K);const ae=x.viewQuery,Le=x.contentQueries;if(ae&&v_(s,ae),Le&&cD(s,Le),f(s.inputs,x.inputs),f(s.declaredInputs,x.declaredInputs),f(s.outputs,x.outputs),ba(x)&&x.data.animation){const bt=s.data;bt.animation=(bt.animation||[]).concat(x.data.animation)}}const T=x.features;if(T)for(let R=0;R<T.length;R++){const K=T[R];K&&K.ngInherit&&K(s),K===__&&(h=!1)}}c=Object.getPrototypeOf(c)}!function lD(s){let c=0,h=null;for(let g=s.length-1;g>=0;g--){const x=s[g];x.hostVars=c+=x.hostVars,x.hostAttrs=bo(x.hostAttrs,h=bo(h,x.hostAttrs))}}(g)}function nd(s){return s===Fe?{}:s===xt?[]:s}function v_(s,c){const h=s.viewQuery;s.viewQuery=h?(g,x)=>{c(g,x),h(g,x)}:c}function cD(s,c){const h=s.contentQueries;s.contentQueries=h?(g,x,T)=>{c(g,x,T),h(g,x,T)}:c}function dD(s,c){const h=s.hostBindings;s.hostBindings=h?(g,x)=>{c(g,x),h(g,x)}:c}function $m(s){return!!y_(s)&&(Array.isArray(s)||!(s instanceof Map)&&Symbol.iterator in s)}function y_(s){return null!==s&&("function"==typeof s||"object"==typeof s)}function kl(s,c,h){return s[c]=h}function To(s,c,h){return!Object.is(s[c],h)&&(s[c]=h,!0)}function _s(s,c,h,g){const x=To(s,c,h);return To(s,c+1,g)||x}function ul(s,c,h,g,x,T){const R=_s(s,c,h,g);return _s(s,c+2,x,T)||R}function x_(s,c,h,g){const x=Bt();return To(x,rr(),c)&&(bn(),ic(Ir(),x,s,c,h,g)),x_}function Ru(s,c,h,g){return To(s,rr(),h)?c+Qe(h)+g:Gi}function rd(s,c,h,g,x,T,R,K){const Le=function Qm(s,c,h,g,x){const T=_s(s,c,h,g);return To(s,c+2,x)||T}(s,qi(),h,x,R);return hr(3),Le?c+Qe(h)+g+Qe(x)+T+Qe(R)+K:Gi}function my(s,c,h,g,x,T,R,K){const ae=Bt(),Le=bn(),bt=s+xr,Wt=Le.firstCreatePass?function gD(s,c,h,g,x,T,R,K,ae){const Le=c.consts,bt=Ud(c,s,4,R||null,sa(Le,K));Zm(c,h,bt,sa(Le,ae)),ou(c,bt);const Wt=bt.tView=Bm(2,bt,g,x,T,c.directiveRegistry,c.pipeRegistry,null,c.schemas,Le);return null!==c.queries&&(c.queries.template(c,bt),Wt.queries=c.queries.embeddedTView(bt)),bt}(bt,Le,ae,c,h,g,x,T,R):Le.data[bt];si(Wt,!1);const pn=ae[Li].createComment("");_m(Le,ae,pn,Wt),Do(pn,ae),Hm(ae,ae[bt]=Jb(pn,ae,pn,Wt)),Js(Wt)&&s_(Le,ae,Wt),null!=R&&l_(ae,Wt,K)}function py(s){return _o(function Xi(){return Ni.lFrame.contextLView}(),xr+s)}function T_(s,c,h){const g=Bt();return To(g,rr(),c)&&gs(bn(),Ir(),g,s,c,g[Li],h,!1),T_}function E_(s,c,h,g,x){const R=x?"class":"style";Iu(s,h,c.inputs[R],R,g)}function Xm(s,c,h,g){const x=Bt(),T=bn(),R=xr+s,K=x[Li],ae=T.firstCreatePass?function vD(s,c,h,g,x,T){const R=c.consts,ae=Ud(c,s,2,g,sa(R,x));return Zm(c,h,ae,sa(R,T)),null!==ae.attrs&&zm(ae,ae.attrs,!1),null!==ae.mergedAttrs&&zm(ae,ae.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,ae),ae}(R,T,x,c,h,g):T.data[R],Le=x[R]=uu(K,c,function ug(){return Ni.lFrame.currentNamespace}()),bt=Js(ae);return si(ae,!0),qv(K,Le,ae),32!=(32&ae.flags)&&_m(T,x,Le,ae),0===function D(){return Ni.lFrame.elementDepthCount}()&&Do(Le,x),function E(){Ni.lFrame.elementDepthCount++}(),bt&&(s_(T,x,ae),o_(T,ae,x)),null!==g&&l_(x,ae),Xm}function ep(){let s=Nn();Ci()?Si():(s=s.parent,si(s,!1));const c=s;!function U(){Ni.lFrame.elementDepthCount--}();const h=bn();return h.firstCreatePass&&(ou(h,s),gl(s)&&h.queries.elementEnd(s)),null!=c.classesWithoutHost&&function Tr(s){return 0!=(8&s.flags)}(c)&&E_(h,c,Bt(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function gr(s){return 0!=(16&s.flags)}(c)&&E_(h,c,Bt(),c.stylesWithoutHost,!1),ep}function M_(s,c,h,g){return Xm(s,c,h,g),ep(),M_}function tp(s,c,h){const g=Bt(),x=bn(),T=s+xr,R=x.firstCreatePass?function gy(s,c,h,g,x){const T=c.consts,R=sa(T,g),K=Ud(c,s,8,"ng-container",R);return null!==R&&zm(K,R,!0),Zm(c,h,K,sa(T,x)),null!==c.queries&&c.queries.elementStart(c,K),K}(T,x,g,c,h):x.data[T];si(R,!0);const K=g[T]=g[Li].createComment("");return _m(x,g,K,R),Do(K,g),Js(R)&&(s_(x,g,R),o_(x,R,g)),null!=h&&l_(g,R),tp}function np(){let s=Nn();const c=bn();return Ci()?Si():(s=s.parent,si(s,!1)),c.firstCreatePass&&(ou(c,s),gl(s)&&c.queries.elementEnd(s)),np}function A_(s,c,h){return tp(s,c,h),np(),A_}function _y(){return Bt()}function S_(s){return!!s&&"function"==typeof s.then}function ip(s){return!!s&&"function"==typeof s.subscribe}const vy=ip;function rp(s,c,h,g){const x=Bt(),T=bn(),R=Nn();return k_(T,x,x[Li],R,s,c,g),rp}function ap(s,c){const h=Nn(),g=Bt(),x=bn();return k_(x,g,m_(ds(x.data),h,g),h,s,c),ap}function k_(s,c,h,g,x,T,R){const K=Js(g),Le=s.firstCreatePass&&ey(s),bt=c[Ai],Wt=f_(c);let pn=!0;if(3&g.type||R){const ci=Qr(g,c),Di=R?R(ci):ci,Ri=Wt.length,ji=R?$i=>R(qr($i[g.index])):g.index;let ii=null;if(!R&&K&&(ii=function bD(s,c,h,g){const x=s.cleanup;if(null!=x)for(let T=0;T<x.length-1;T+=2){const R=x[T];if(R===h&&x[T+1]===g){const K=c[Ei],ae=x[T+2];return K.length>ae?K[ae]:null}"string"==typeof R&&(T+=2)}return null}(s,c,x,g.index)),null!==ii)(ii.__ngLastListenerFn__||ii).__ngNextListenerFn__=T,ii.__ngLastListenerFn__=T,pn=!1;else{T=I_(g,c,bt,T,!1);const $i=h.listen(Di,x,T);Wt.push(T,$i),Le&&Le.push(x,ji,Ri,Ri+1)}}else T=I_(g,c,bt,T,!1);const Dn=g.outputs;let Yn;if(pn&&null!==Dn&&(Yn=Dn[x])){const ci=Yn.length;if(ci)for(let Di=0;Di<ci;Di+=2){const aa=c[Yn[Di]][Yn[Di+1]].subscribe(T),Ia=Wt.length;Wt.push(T,aa),Le&&Le.push(x,g.index,Ia,-(Ia+1))}}}function by(s,c,h,g){try{return xa(6,c,h),!1!==h(g)}catch(x){return p_(s,x),!1}finally{xa(7,c,h)}}function I_(s,c,h,g,x){return function T(R){if(R===Function)return g;jm(s.componentOffset>-1?Nr(s.index,c):c);let ae=by(c,h,g,R),Le=T.__ngNextListenerFn__;for(;Le;)ae=by(c,h,Le,R)&&ae,Le=Le.__ngNextListenerFn__;return x&&!1===ae&&(R.preventDefault(),R.returnValue=!1),ae}}function yy(s=1){return function Cl(s){return(Ni.lFrame.contextLView=function vc(s,c){for(;s>0;)c=c[oa],s--;return c}(s,Ni.lFrame.contextLView))[Ai]}(s)}function xy(s,c){let h=null;const g=function xC(s){const c=s.attrs;if(null!=c){const h=c.indexOf(5);if(!(1&h))return c[h+1]}return null}(s);for(let x=0;x<c.length;x++){const T=c[x];if("*"!==T){if(null===g?Sb(s,T,!0):Ib(g,T))return x}else h=x}return h}function wy(s){const c=Bt()[Mr][Mn];if(!c.projection){const g=c.projection=Qc(s?s.length:1,null),x=g.slice();let T=c.child;for(;null!==T;){const R=s?xy(T,s):0;null!==R&&(x[R]?x[R].projectionNext=T:g[R]=T,x[R]=T),T=T.next}}}function Cy(s,c=0,h){const g=Bt(),x=bn(),T=Ud(x,xr+s,16,null,h||null);null===T.projection&&(T.projection=c),Si(),32!=(32&T.flags)&&function Wv(s,c,h){Gv(c[Li],0,c,h,Vv(s,h,c),Yv(h.parent||c[Mn],h,c))}(x,g,T)}function rf(s,c,h){return op(s,"",c,"",h),rf}function op(s,c,h,g,x){const T=Bt(),R=Ru(T,c,h,g);return R!==Gi&&gs(bn(),Ir(),T,s,R,T[Li],x,!1),op}function sp(s,c){return s<<17|c<<2}function ad(s){return s>>17&32767}function P_(s){return 2|s}function jd(s){return(131068&s)>>2}function lp(s,c){return-131069&s|c<<2}function dp(s){return 1|s}function Sy(s,c,h,g,x){const T=s[h+1],R=null===c;let K=g?ad(T):jd(T),ae=!1;for(;0!==K&&(!1===ae||R);){const bt=s[K+1];CD(s[K],c)&&(ae=!0,s[K+1]=g?dp(bt):P_(bt)),K=g?ad(bt):jd(bt)}ae&&(s[h+1]=g?P_(T):dp(T))}function CD(s,c){return null===s||null==c||(Array.isArray(s)?s[1]:s)===c||!(!Array.isArray(s)||"string"!=typeof c)&&L(s,c)>=0}const qa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ky(s){return s.substring(qa.key,qa.keyEnd)}function R_(s,c){const h=qa.textEnd;return h===c?-1:(c=qa.keyEnd=function L_(s,c,h){for(;c<h&&s.charCodeAt(c)>32;)c++;return c}(s,qa.key=c,h),Zu(s,c,h))}function Zu(s,c,h){for(;c<h&&s.charCodeAt(c)<=32;)c++;return c}function B_(s,c,h){return Pl(s,c,h,!1),B_}function U_(s,c){return Pl(s,c,null,!0),U_}function Ry(s){Rl(Uy,Ol,s,!0)}function Ol(s,c){for(let h=function DD(s){return function F_(s){qa.key=0,qa.keyEnd=0,qa.value=0,qa.valueEnd=0,qa.textEnd=s.length}(s),R_(s,Zu(s,0,qa.textEnd))}(c);h>=0;h=R_(c,h))ts(s,ky(c),!0)}function Pl(s,c,h,g){const x=Bt(),T=bn(),R=hr(2);T.firstUpdatePass&&sf(T,s,R,g),c!==Gi&&To(x,R,c)&&cf(T,T.data[La()],x,x[Li],s,x[R+1]=function MD(s,c){return null==s||""===s||("string"==typeof c?s+=c:"object"==typeof s&&(s=b(is(s)))),s}(c,h),g,R)}function Rl(s,c,h,g){const x=bn(),T=hr(2);x.firstUpdatePass&&sf(x,null,T,g);const R=Bt();if(h!==Gi&&To(R,T,h)){const K=x.data[La()];if(Zy(K,g)&&!Vu(x,T)){let ae=g?K.classesWithoutHost:K.stylesWithoutHost;null!==ae&&(h=J(ae,h||"")),E_(x,K,R,h,g)}else!function V_(s,c,h,g,x,T,R,K){x===Gi&&(x=xt);let ae=0,Le=0,bt=0<x.length?x[0]:null,Wt=0<T.length?T[0]:null;for(;null!==bt||null!==Wt;){const pn=ae<x.length?x[ae+1]:void 0,Dn=Le<T.length?T[Le+1]:void 0;let ci,Yn=null;bt===Wt?(ae+=2,Le+=2,pn!==Dn&&(Yn=Wt,ci=Dn)):null===Wt||null!==bt&&bt<Wt?(ae+=2,Yn=bt):(Le+=2,Yn=Wt,ci=Dn),null!==Yn&&cf(s,c,h,g,Yn,ci,R,K),bt=ae<x.length?x[ae]:null,Wt=Le<T.length?T[Le]:null}}(x,K,R,R[Li],R[T+1],R[T+1]=function Ny(s,c,h){if(null==h||""===h)return xt;const g=[],x=is(h);if(Array.isArray(x))for(let T=0;T<x.length;T++)s(g,x[T],!0);else if("object"==typeof x)for(const T in x)x.hasOwnProperty(T)&&s(g,T,x[T]);else"string"==typeof x&&c(g,x);return g}(s,c,h),g,T)}}function Vu(s,c){return c>=s.expandoStartIndex}function sf(s,c,h,g){const x=s.data;if(null===x[h+1]){const T=x[La()],R=Vu(s,h);Zy(T,g)&&null===c&&!R&&(c=!1),c=function vs(s,c,h,g){const x=ds(s);let T=g?c.residualClasses:c.residualStyles;if(null===x)0===(g?c.classBindings:c.styleBindings)&&(h=lf(h=Z_(null,s,c,h,g),c.attrs,g),T=null);else{const R=c.directiveStylingLast;if(-1===R||s[R]!==x)if(h=Z_(x,s,c,h,g),null===T){let ae=function ED(s,c,h){const g=h?c.classBindings:c.styleBindings;if(0!==jd(g))return s[ad(g)]}(s,c,g);void 0!==ae&&Array.isArray(ae)&&(ae=Z_(null,s,c,ae[1],g),ae=lf(ae,c.attrs,g),function Fy(s,c,h,g){s[ad(h?c.classBindings:c.styleBindings)]=g}(s,c,g,ae))}else T=function Ly(s,c,h){let g;const x=c.directiveEnd;for(let T=1+c.directiveStylingLast;T<x;T++)g=lf(g,s[T].hostAttrs,h);return lf(g,c.attrs,h)}(s,c,g)}return void 0!==T&&(g?c.residualClasses=T:c.residualStyles=T),h}(x,T,c,g),function Ay(s,c,h,g,x,T){let R=T?c.classBindings:c.styleBindings,K=ad(R),ae=jd(R);s[g]=h;let bt,Le=!1;if(Array.isArray(h)?(bt=h[1],(null===bt||L(h,bt)>0)&&(Le=!0)):bt=h,x)if(0!==ae){const pn=ad(s[K+1]);s[g+1]=sp(pn,K),0!==pn&&(s[pn+1]=lp(s[pn+1],g)),s[K+1]=function My(s,c){return 131071&s|c<<17}(s[K+1],g)}else s[g+1]=sp(K,0),0!==K&&(s[K+1]=lp(s[K+1],g)),K=g;else s[g+1]=sp(ae,0),0===K?K=g:s[ae+1]=lp(s[ae+1],g),ae=g;Le&&(s[g+1]=P_(s[g+1])),Sy(s,bt,g,!0),Sy(s,bt,g,!1),function wD(s,c,h,g,x){const T=x?s.residualClasses:s.residualStyles;null!=T&&"string"==typeof c&&L(T,c)>=0&&(h[g+1]=dp(h[g+1]))}(c,bt,s,g,T),R=sp(K,ae),T?c.classBindings=R:c.styleBindings=R}(x,T,c,h,R,g)}}function Z_(s,c,h,g,x){let T=null;const R=h.directiveEnd;let K=h.directiveStylingLast;for(-1===K?K=h.directiveStart:K++;K<R&&(T=c[K],g=lf(g,T.hostAttrs,x),T!==s);)K++;return null!==s&&(h.directiveStylingLast=K),g}function lf(s,c,h){const g=h?1:2;let x=-1;if(null!==c)for(let T=0;T<c.length;T++){const R=c[T];"number"==typeof R?x=R:x===g&&(Array.isArray(s)||(s=void 0===s?[]:["",s]),ts(s,R,!!h||c[++T]))}return void 0===s?null:s}function Uy(s,c,h){const g=String(c);""!==g&&!g.includes(" ")&&ts(s,g,h)}function cf(s,c,h,g,x,T,R,K){if(!(3&c.type))return;const ae=s.data,Le=ae[K+1],bt=function cp(s){return 1==(1&s)}(Le)?mp(ae,c,h,x,jd(Le),R):void 0;pp(bt)||(pp(T)||function yD(s){return 2==(2&s)}(Le)&&(T=mp(ae,null,h,x,K,R)),function Bw(s,c,h,g,x){if(c)x?s.addClass(h,g):s.removeClass(h,g);else{let T=-1===g.indexOf("-")?void 0:Us.DashCase;null==x?s.removeStyle(h,g,T):("string"==typeof x&&x.endsWith("!important")&&(x=x.slice(0,-10),T|=Us.Important),s.setStyle(h,g,x,T))}}(g,R,Yl(La(),h),x,T))}function mp(s,c,h,g,x,T){const R=null===c;let K;for(;x>0;){const ae=s[x],Le=Array.isArray(ae),bt=Le?ae[1]:ae,Wt=null===bt;let pn=h[x+1];pn===Gi&&(pn=Wt?xt:void 0);let Dn=Wt?om(pn,g):bt===g?pn:void 0;if(Le&&!pp(Dn)&&(Dn=om(ae,g)),pp(Dn)&&(K=Dn,R))return K;const Yn=s[x+1];x=R?ad(Yn):jd(Yn)}if(null!==c){let ae=T?c.residualClasses:c.residualStyles;null!=ae&&(K=om(ae,g))}return K}function pp(s){return void 0!==s}function Zy(s,c){return 0!=(s.flags&(c?8:16))}function Vy(s,c=""){const h=Bt(),g=bn(),x=s+xr,T=g.firstCreatePass?Ud(g,x,1,c,null):g.data[x],R=h[x]=function Mg(s,c){return s.createText(c)}(h[Li],c);_m(g,h,R,T),si(T,!1)}function H_(s){return gp("",s,""),H_}function gp(s,c,h){const g=Bt(),x=Ru(g,s,c,h);return x!==Gi&&js(g,La(),x),gp}function Hu(s,c,h,g,x){const T=Bt(),R=function Fu(s,c,h,g,x,T){const K=_s(s,qi(),h,x);return hr(2),K?c+Qe(h)+g+Qe(x)+T:Gi}(T,s,c,h,g,x);return R!==Gi&&js(T,La(),R),Hu}function j_(s,c,h,g,x,T,R){const K=Bt(),ae=rd(K,s,c,h,g,x,T,R);return ae!==Gi&&js(K,La(),ae),j_}function ju(s,c,h,g,x,T,R,K,ae){const Le=Bt(),bt=function rc(s,c,h,g,x,T,R,K,ae,Le){const Wt=ul(s,qi(),h,x,R,ae);return hr(4),Wt?c+Qe(h)+g+Qe(x)+T+Qe(R)+K+Qe(ae)+Le:Gi}(Le,s,c,h,g,x,T,R,K,ae);return bt!==Gi&&js(Le,La(),bt),ju}function Y_(s,c,h,g,x,T,R,K,ae,Le,bt){const Wt=Bt(),pn=function Lu(s,c,h,g,x,T,R,K,ae,Le,bt,Wt){const pn=qi();let Dn=ul(s,pn,h,x,R,ae);return Dn=To(s,pn+4,bt)||Dn,hr(5),Dn?c+Qe(h)+g+Qe(x)+T+Qe(R)+K+Qe(ae)+Le+Qe(bt)+Wt:Gi}(Wt,s,c,h,g,x,T,R,K,ae,Le,bt);return pn!==Gi&&js(Wt,La(),pn),Y_}function z_(s,c,h,g,x,T,R,K,ae,Le,bt,Wt,pn){const Dn=Bt(),Yn=function Nu(s,c,h,g,x,T,R,K,ae,Le,bt,Wt,pn,Dn){const Yn=qi();let ci=ul(s,Yn,h,x,R,ae);return ci=_s(s,Yn+4,bt,pn)||ci,hr(6),ci?c+Qe(h)+g+Qe(x)+T+Qe(R)+K+Qe(ae)+Le+Qe(bt)+Wt+Qe(pn)+Dn:Gi}(Dn,s,c,h,g,x,T,R,K,ae,Le,bt,Wt,pn);return Yn!==Gi&&js(Dn,La(),Yn),z_}function zy(s,c,h){Rl(ts,Ol,Ru(Bt(),s,c,h),!0)}function G_(s,c,h){const g=Bt();return To(g,rr(),c)&&gs(bn(),Ir(),g,s,c,g[Li],h,!0),G_}function $_(s,c,h){const g=Bt();if(To(g,rr(),c)){const T=bn(),R=Ir();gs(T,R,g,s,c,m_(ds(T.data),R,g),h,!0)}return $_}const zd=void 0;var jD=["en",[["a","p"],["AM","PM"],zd],[["AM","PM"],zd,zd],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],zd,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],zd,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",zd,"{1} 'at' {0}",zd],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function HD(s){const h=Math.floor(Math.abs(s)),g=s.toString().replace(/^[^.]*\.?/,"").length;return 1===h&&0===g?1:5}];let Wu={};function vp(s){const c=function YD(s){return s.toLowerCase().replace(/_/g,"-")}(s);let h=Jy(c);if(h)return h;const g=c.split("-")[0];if(h=Jy(g),h)return h;if("en"===g)return jD;throw new ue(701,!1)}function uf(s){return vp(s)[Hi.PluralCase]}function Jy(s){return s in Wu||(Wu[s]=Je.ng&&Je.ng.common&&Je.ng.common.locales&&Je.ng.common.locales[s]),Wu[s]}var Hi=(()=>((Hi=Hi||{})[Hi.LocaleId=0]="LocaleId",Hi[Hi.DayPeriodsFormat=1]="DayPeriodsFormat",Hi[Hi.DayPeriodsStandalone=2]="DayPeriodsStandalone",Hi[Hi.DaysFormat=3]="DaysFormat",Hi[Hi.DaysStandalone=4]="DaysStandalone",Hi[Hi.MonthsFormat=5]="MonthsFormat",Hi[Hi.MonthsStandalone=6]="MonthsStandalone",Hi[Hi.Eras=7]="Eras",Hi[Hi.FirstDayOfWeek=8]="FirstDayOfWeek",Hi[Hi.WeekendRange=9]="WeekendRange",Hi[Hi.DateFormat=10]="DateFormat",Hi[Hi.TimeFormat=11]="TimeFormat",Hi[Hi.DateTimeFormat=12]="DateTimeFormat",Hi[Hi.NumberSymbols=13]="NumberSymbols",Hi[Hi.NumberFormats=14]="NumberFormats",Hi[Hi.CurrencyCode=15]="CurrencyCode",Hi[Hi.CurrencySymbol=16]="CurrencySymbol",Hi[Hi.CurrencyName=17]="CurrencyName",Hi[Hi.Currencies=18]="Currencies",Hi[Hi.Directionality=19]="Directionality",Hi[Hi.PluralCase=20]="PluralCase",Hi[Hi.ExtraData=21]="ExtraData",Hi))();const $u="en-US";let Xy=$u;function n0(s,c,h,g,x){if(s=B(s),Array.isArray(s))for(let T=0;T<s.length;T++)n0(s[T],c,h,g,x);else{const T=bn(),R=Bt();let K=Vs(s)?s:B(s.provide),ae=bu(s);const Le=Nn(),bt=1048575&Le.providerIndexes,Wt=Le.directiveStart,pn=Le.providerIndexes>>20;if(Vs(s)||!s.multi){const Dn=new Qt(ae,x,Tu),Yn=o0(K,c,x?bt:bt+pn,Wt);-1===Yn?(lu(su(Le,R),T,K),r0(T,s,c.length),c.push(K),Le.directiveStart++,Le.directiveEnd++,x&&(Le.providerIndexes+=1048576),h.push(Dn),R.push(Dn)):(h[Yn]=Dn,R[Yn]=Dn)}else{const Dn=o0(K,c,bt+pn,Wt),Yn=o0(K,c,bt,bt+pn),Di=Yn>=0&&h[Yn];if(x&&!Di||!x&&!(Dn>=0&&h[Dn])){lu(su(Le,R),T,K);const Ri=function AT(s,c,h,g,x){const T=new Qt(s,h,Tu);return T.multi=[],T.index=c,T.componentProviders=0,a0(T,x,g&&!h),T}(x?MT:ET,h.length,x,g,ae);!x&&Di&&(h[Yn].providerFactory=Ri),r0(T,s,c.length,0),c.push(K),Le.directiveStart++,Le.directiveEnd++,x&&(Le.providerIndexes+=1048576),h.push(Ri),R.push(Ri)}else r0(T,s,Dn>-1?Dn:Yn,a0(h[x?Yn:Dn],ae,!x&&g));!x&&g&&Di&&h[Yn].componentProviders++}}}function r0(s,c,h,g){const x=Vs(c),T=function tC(s){return!!s.useClass}(c);if(x||T){const ae=(T?B(c.useClass):c).prototype.ngOnDestroy;if(ae){const Le=s.destroyHooks||(s.destroyHooks=[]);if(!x&&c.multi){const bt=Le.indexOf(h);-1===bt?Le.push(h,[g,ae]):Le[bt+1].push(g,ae)}else Le.push(h,ae)}}}function a0(s,c,h){return h&&s.componentProviders++,s.multi.push(c)-1}function o0(s,c,h,g){for(let x=h;x<g;x++)if(c[x]===s)return x;return-1}function ET(s,c,h,g){return Ex(this.multi,[])}function MT(s,c,h,g){const x=this.multi;let T;if(this.providerFactory){const R=this.providerFactory.componentProviders,K=ql(h,h[Nt],this.providerFactory.index,g);T=K.slice(0,R),Ex(x,T);for(let ae=R;ae<K.length;ae++)T.push(K[ae])}else T=[],Ex(x,T);return T}function Ex(s,c){for(let h=0;h<s.length;h++)c.push((0,s[h])());return c}function s0(s,c=[]){return h=>{h.providersResolver=(g,x)=>function TT(s,c,h){const g=bn();if(g.firstCreatePass){const x=ba(s);n0(h,g.data,g.blueprint,x,!0),n0(c,g.data,g.blueprint,x,!1)}}(g,x?x(s):s,c)}}class Xu{}class Mx{}function Ax(s,c){return new Sx(s,c??null)}class Sx extends Xu{constructor(c,h){super(),this._parent=h,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ty(this);const g=Ot(c);this._bootstrapComponents=Rc(g.bootstrap),this._r3Injector=t_(c,h,[{provide:Xu,useValue:this},{provide:Wh,useValue:this.componentFactoryResolver}],b(c),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(c)}get injector(){return this._r3Injector}destroy(){const c=this._r3Injector;!c.destroyed&&c.destroy(),this.destroyCbs.forEach(h=>h()),this.destroyCbs=null}onDestroy(c){this.destroyCbs.push(c)}}class l0 extends Mx{constructor(c){super(),this.moduleType=c}create(c){return new Sx(this.moduleType,c)}}class _f extends Xu{constructor(c,h,g){super(),this.componentFactoryResolver=new ty(this),this.instance=null;const x=new _b([...c,{provide:Xu,useValue:this},{provide:Wh,useValue:this.componentFactoryResolver}],h||zh(),g,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(c){this.injector.onDestroy(c)}}function c0(s,c,h=null){return new _f(s,c,h).injector}let ST=(()=>{class s{constructor(h){this._injector=h,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(h){if(!h.standalone)return null;if(!this.cachedInjectors.has(h.id)){const g=jg(0,h.type),x=g.length>0?c0([g],this._injector,`Standalone[${h.type.name}]`):null;this.cachedInjectors.set(h.id,x)}return this.cachedInjectors.get(h.id)}ngOnDestroy(){try{for(const h of this.cachedInjectors.values())null!==h&&h.destroy()}finally{this.cachedInjectors.clear()}}}return s.\u0275prov=we({token:s,providedIn:"environment",factory:()=>new s(cn(Hs))}),s})();function d0(s){s.getStandaloneInjector=c=>c.get(ST).getOrCreateStandaloneInjector(s)}function f0(s,c,h){const g=Vi()+s,x=Bt();return x[g]===Gi?kl(x,g,h?c.call(h):c()):function Pu(s,c){return s[c]}(x,g)}function Rx(s,c,h,g){return Nx(Bt(),Vi(),s,c,h,g)}function m0(s,c,h,g,x){return Bx(Bt(),Vi(),s,c,h,g,x)}function vf(s,c){const h=s[c];return h===Gi?void 0:h}function Nx(s,c,h,g,x,T){const R=c+h;return To(s,R,x)?kl(s,R+1,T?g.call(T,x):g(x)):vf(s,R+1)}function Bx(s,c,h,g,x,T,R){const K=c+h;return _s(s,K,x,T)?kl(s,K+2,R?g.call(R,x,T):g(x,T)):vf(s,K+2)}function Hx(s,c){const h=bn();let g;const x=s+xr;h.firstCreatePass?(g=function VT(s,c){if(c)for(let h=c.length-1;h>=0;h--){const g=c[h];if(s===g.name)return g}}(c,h.pipeRegistry),h.data[x]=g,g.onDestroy&&(h.destroyHooks??(h.destroyHooks=[])).push(x,g.onDestroy)):g=h.data[x];const T=g.factory||(g.factory=So(g.type)),R=fe(Tu);try{const K=bc(!1),ae=T();return bc(K),function _D(s,c,h,g){h>=s.data.length&&(s.data[h]=null,s.blueprint[h]=null),c[h]=g}(h,Bt(),x,ae),ae}finally{fe(R)}}function jx(s,c,h){const g=s+xr,x=Bt(),T=_o(x,g);return bf(x,g)?Nx(x,Vi(),c,T.transform,h,T):T.transform(h)}function Yx(s,c,h,g){const x=s+xr,T=Bt(),R=_o(T,x);return bf(T,x)?Bx(T,Vi(),c,R.transform,h,g,R):R.transform(h,g)}function bf(s,c){return s[Nt].data[c].pure}function p0(s){return c=>{setTimeout(s,void 0,c)}}const sc=class zT extends d.xQ{constructor(c=!1){super(),this.__isAsync=c}emit(c){super.next(c)}subscribe(c,h,g){let x=c,T=h||(()=>null),R=g;if(c&&"object"==typeof c){const ae=c;x=ae.next?.bind(ae),T=ae.error?.bind(ae),R=ae.complete?.bind(ae)}this.__isAsync&&(T=p0(T),x&&(x=p0(x)),R&&(R=p0(R)));const K=super.subscribe({next:x,error:T,complete:R});return c instanceof i.w&&c.add(K),K}};function WT(){return this._results[Symbol.iterator]()}class Mp{get changes(){return this._changes||(this._changes=new sc)}constructor(c=!1){this._emitDistinctChangesOnly=c,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const h=Mp.prototype;h[Symbol.iterator]||(h[Symbol.iterator]=WT)}get(c){return this._results[c]}map(c){return this._results.map(c)}filter(c){return this._results.filter(c)}find(c){return this._results.find(c)}reduce(c,h){return this._results.reduce(c,h)}forEach(c){this._results.forEach(c)}some(c){return this._results.some(c)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(c,h){const g=this;g.dirty=!1;const x=function Pr(s){return s.flat(Number.POSITIVE_INFINITY)}(c);(this._changesDetected=!function im(s,c,h){if(s.length!==c.length)return!1;for(let g=0;g<s.length;g++){let x=s[g],T=c[g];if(h&&(x=h(x),T=h(T)),T!==x)return!1}return!0}(g._results,x,h))&&(g._results=x,g.length=x.length,g.last=x[this.length-1],g.first=x[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let yf=(()=>{class s{}return s.__NG_ELEMENT_ID__=qT,s})();const GT=yf,$T=class extends GT{constructor(c,h,g){super(),this._declarationLView=c,this._declarationTContainer=h,this.elementRef=g}createEmbeddedView(c,h){const g=this._declarationTContainer.tView,x=Mu(this._declarationLView,g,c,16,null,g.declTNode,null,null,null,null,h||null);x[ma]=this._declarationLView[this._declarationTContainer.index];const R=this._declarationLView[pa];return null!==R&&(x[pa]=R.createEmbeddedView(g)),Zd(g,x,c),new tf(x)}};function qT(){return Ap(Nn(),Bt())}function Ap(s,c){return 4&s.type?new $T(c,s,Fd(s,c)):null}let Sp=(()=>{class s{}return s.__NG_ELEMENT_ID__=QT,s})();function QT(){return Wx(Nn(),Bt())}const KT=Sp,Jr=class extends KT{constructor(c,h,g){super(),this._lContainer=c,this._hostTNode=h,this._hostLView=g}get element(){return Fd(this._hostTNode,this._hostLView)}get injector(){return new Dl(this._hostTNode,this._hostLView)}get parentInjector(){const c=wc(this._hostTNode,this._hostLView);if(ao(c)){const h=es(c,this._hostLView),g=Xo(c);return new Dl(h[Nt].data[g+8],h)}return new Dl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(c){const h=zx(this._lContainer);return null!==h&&h[c]||null}get length(){return this._lContainer.length-Xr}createEmbeddedView(c,h,g){let x,T;"number"==typeof g?x=g:null!=g&&(x=g.index,T=g.injector);const R=c.createEmbeddedView(h||{},T);return this.insert(R,x),R}createComponent(c,h,g,x,T){const R=c&&!function Kl(s){return"function"==typeof s}(c);let K;if(R)K=h;else{const Wt=h||{};K=Wt.index,g=Wt.injector,x=Wt.projectableNodes,T=Wt.environmentInjector||Wt.ngModuleRef}const ae=R?c:new Ou(Ft(c)),Le=g||this.parentInjector;if(!T&&null==ae.ngModule){const pn=(R?Le:this.parentInjector).get(Hs,null);pn&&(T=pn)}const bt=ae.create(Le,x,void 0,T);return this.insert(bt.hostView,K),bt}insert(c,h){const g=c._lView,x=g[Nt];if(function no(s){return va(s[xe])}(g)){const bt=this.indexOf(c);if(-1!==bt)this.detach(bt);else{const Wt=g[xe],pn=new Jr(Wt,Wt[Mn],Wt[xe]);pn.detach(pn.indexOf(c))}}const T=this._adjustIndex(h),R=this._lContainer;!function Jc(s,c,h,g){const x=Xr+g,T=h.length;g>0&&(h[x-1][st]=c),g<T-Xr?(c[st]=h[x],rm(h,Xr+g,c)):(h.push(c),c[st]=null),c[xe]=h;const R=c[ma];null!==R&&h!==R&&function Oh(s,c){const h=s[ss];c[Mr]!==c[xe][xe][Mr]&&(s[Qs]=!0),null===h?s[ss]=[c]:h.push(c)}(R,c);const K=c[pa];null!==K&&K.insertView(s),c[P]|=64}(x,g,R,T);const K=Og(T,R),ae=g[Li],Le=Rh(ae,R[pl]);return null!==Le&&function Zv(s,c,h,g,x,T){g[rt]=x,g[Mn]=c,hu(s,g,h,1,x,T)}(x,R[Mn],ae,g,Le,K),c.attachToViewContainerRef(),rm(g0(R),T,c),c}move(c,h){return this.insert(c,h)}indexOf(c){const h=zx(this._lContainer);return null!==h?h.indexOf(c):-1}remove(c){const h=this._adjustIndex(c,-1),g=Ml(this._lContainer,h);g&&(Dd(g0(this._lContainer),h),Sg(g[Nt],g))}detach(c){const h=this._adjustIndex(c,-1),g=Ml(this._lContainer,h);return g&&null!=Dd(g0(this._lContainer),h)?new tf(g):null}_adjustIndex(c,h=0){return c??this.length+h}};function zx(s){return s[Ps]}function g0(s){return s[Ps]||(s[Ps]=[])}function Wx(s,c){let h;const g=c[s.index];if(va(g))h=g;else{let x;if(8&s.type)x=qr(g);else{const T=c[Li];x=T.createComment("");const R=Qr(s,c);kd(T,Rh(T,R),x,function Nw(s,c){return s.nextSibling(c)}(T,R),!1)}c[s.index]=h=Jb(g,c,x,s),Hm(c,h)}return new Jr(h,s,c)}class _0{constructor(c){this.queryList=c,this.matches=null}clone(){return new _0(this.queryList)}setDirty(){this.queryList.setDirty()}}class kp{constructor(c=[]){this.queries=c}createEmbeddedView(c){const h=c.queries;if(null!==h){const g=null!==c.contentQueries?c.contentQueries[0]:h.length,x=[];for(let T=0;T<g;T++){const R=h.getByIndex(T);x.push(this.queries[R.indexInDeclarationView].clone())}return new kp(x)}return null}insertView(c){this.dirtyQueriesWithMatches(c)}detachView(c){this.dirtyQueriesWithMatches(c)}dirtyQueriesWithMatches(c){for(let h=0;h<this.queries.length;h++)null!==e1(c,h).matches&&this.queries[h].setDirty()}}class eh{constructor(c,h,g=null){this.predicate=c,this.flags=h,this.read=g}}class v0{constructor(c=[]){this.queries=c}elementStart(c,h){for(let g=0;g<this.queries.length;g++)this.queries[g].elementStart(c,h)}elementEnd(c){for(let h=0;h<this.queries.length;h++)this.queries[h].elementEnd(c)}embeddedTView(c){let h=null;for(let g=0;g<this.length;g++){const x=null!==h?h.length:0,T=this.getByIndex(g).embeddedTView(c,x);T&&(T.indexInDeclarationView=g,null!==h?h.push(T):h=[T])}return null!==h?new v0(h):null}template(c,h){for(let g=0;g<this.queries.length;g++)this.queries[g].template(c,h)}getByIndex(c){return this.queries[c]}get length(){return this.queries.length}track(c){this.queries.push(c)}}class xf{constructor(c,h=-1){this.metadata=c,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=h}elementStart(c,h){this.isApplyingToNode(h)&&this.matchTNode(c,h)}elementEnd(c){this._declarationNodeIndex===c.index&&(this._appliesToNextNode=!1)}template(c,h){this.elementStart(c,h)}embeddedTView(c,h){return this.isApplyingToNode(c)?(this.crossesNgTemplate=!0,this.addMatch(-c.index,h),new xf(this.metadata)):null}isApplyingToNode(c){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const h=this._declarationNodeIndex;let g=c.parent;for(;null!==g&&8&g.type&&g.index!==h;)g=g.parent;return h===(null!==g?g.index:-1)}return this._appliesToNextNode}matchTNode(c,h){const g=this.metadata.predicate;if(Array.isArray(g))for(let x=0;x<g.length;x++){const T=g[x];this.matchTNodeWithReadOption(c,h,JT(h,T)),this.matchTNodeWithReadOption(c,h,Ya(h,c,T,!1,!1))}else g===yf?4&h.type&&this.matchTNodeWithReadOption(c,h,-1):this.matchTNodeWithReadOption(c,h,Ya(h,c,g,!1,!1))}matchTNodeWithReadOption(c,h,g){if(null!==g){const x=this.metadata.read;if(null!==x)if(x===Gh||x===Sp||x===yf&&4&h.type)this.addMatch(h.index,-2);else{const T=Ya(h,c,x,!1,!1);null!==T&&this.addMatch(h.index,T)}else this.addMatch(h.index,g)}}addMatch(c,h){null===this.matches?this.matches=[c,h]:this.matches.push(c,h)}}function JT(s,c){const h=s.localNames;if(null!==h)for(let g=0;g<h.length;g+=2)if(h[g]===c)return h[g+1];return null}function $x(s,c,h,g){return-1===h?function Gx(s,c){return 11&s.type?Fd(s,c):4&s.type?Ap(s,c):null}(c,s):-2===h?function XT(s,c,h){return h===Gh?Fd(c,s):h===yf?Ap(c,s):h===Sp?Wx(c,s):void 0}(s,c,g):ql(s,s[Nt],h,c)}function b0(s,c,h,g){const x=c[pa].queries[g];if(null===x.matches){const T=s.data,R=h.matches,K=[];for(let ae=0;ae<R.length;ae+=2){const Le=R[ae];K.push(Le<0?null:$x(c,T[Le],R[ae+1],h.metadata.read))}x.matches=K}return x.matches}function y0(s,c,h,g){const x=s.queries.getByIndex(h),T=x.matches;if(null!==T){const R=b0(s,c,x,h);for(let K=0;K<T.length;K+=2){const ae=T[K];if(ae>0)g.push(R[K/2]);else{const Le=T[K+1],bt=c[-ae];for(let Wt=Xr;Wt<bt.length;Wt++){const pn=bt[Wt];pn[ma]===pn[xe]&&y0(pn[Nt],pn,Le,g)}if(null!==bt[ss]){const Wt=bt[ss];for(let pn=0;pn<Wt.length;pn++){const Dn=Wt[pn];y0(Dn[Nt],Dn,Le,g)}}}}}return g}function Ip(s){const c=Bt(),h=bn(),g=Wl();sl(g+1);const x=e1(h,g);if(s.dirty&&function bl(s){return 4==(4&s[P])}(c)===(2==(2&x.metadata.flags))){if(null===x.matches)s.reset([]);else{const T=x.crossesNgTemplate?y0(h,c,g,[]):b0(h,c,x,g);s.reset(T,xb),s.notifyOnChanges()}return!0}return!1}function qx(s,c,h){const g=bn();g.firstCreatePass&&(Xx(g,new eh(s,c,h),-1),2==(2&c)&&(g.staticViewQueries=!0)),Jx(g,Bt(),c)}function Qx(s,c,h,g){const x=bn();if(x.firstCreatePass){const T=Nn();Xx(x,new eh(c,h,g),T.index),function tE(s,c){const h=s.contentQueries||(s.contentQueries=[]);c!==(h.length?h[h.length-1]:-1)&&h.push(s.queries.length-1,c)}(x,s),2==(2&h)&&(x.staticContentQueries=!0)}Jx(x,Bt(),h)}function Kx(){return function eE(s,c){return s[pa].queries[c].queryList}(Bt(),Wl())}function Jx(s,c,h){const g=new Mp(4==(4&h));zb(s,c,g,g.destroy),null===c[pa]&&(c[pa]=new kp),c[pa].queries.push(new _0(g))}function Xx(s,c,h){null===s.queries&&(s.queries=new v0),s.queries.track(new xf(c,h))}function e1(s,c){return s.queries.getByIndex(c)}function t1(s,c){return Ap(s,c)}function x0(s){return!!Ot(s)}function Df(...s){}const Pp=new jr("Application Initializer");let Rp=(()=>{class s{constructor(h){this.appInits=h,this.resolve=Df,this.reject=Df,this.initialized=!1,this.done=!1,this.donePromise=new Promise((g,x)=>{this.resolve=g,this.reject=x})}runInitializers(){if(this.initialized)return;const h=[],g=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x<this.appInits.length;x++){const T=this.appInits[x]();if(S_(T))h.push(T);else if(vy(T)){const R=new Promise((K,ae)=>{T.subscribe({complete:K,error:ae})});h.push(R)}}Promise.all(h).then(()=>{g()}).catch(x=>{this.reject(x)}),0===h.length&&g(),this.initialized=!0}}return s.\u0275fac=function(h){return new(h||s)(cn(Pp,8))},s.\u0275prov=we({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const b1=new jr("AppId",{providedIn:"root",factory:function A0(){return`${Fp()}${Fp()}${Fp()}`}});function Fp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const S0=new jr("Platform Initializer"),Lp=new jr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Np=new jr("AnimationModuleType");let Bp=(()=>{class s{log(h){console.log(h)}warn(h){console.warn(h)}}return s.\u0275fac=function(h){return new(h||s)},s.\u0275prov=we({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();const Up=new jr("LocaleId",{providedIn:"root",factory:()=>ai(Up,un.Optional|un.SkipSelf)||function Nc(){return typeof $localize<"u"&&$localize.locale||$u}()}),CE=new jr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class DE{constructor(c,h){this.ngModuleFactory=c,this.componentFactories=h}}let TE=(()=>{class s{compileModuleSync(h){return new l0(h)}compileModuleAsync(h){return Promise.resolve(this.compileModuleSync(h))}compileModuleAndAllComponentsSync(h){const g=this.compileModuleSync(h),T=Rc(Ot(h).declarations).reduce((R,K)=>{const ae=Ft(K);return ae&&R.push(new Ou(ae)),R},[]);return new DE(g,T)}compileModuleAndAllComponentsAsync(h){return Promise.resolve(this.compileModuleAndAllComponentsSync(h))}clearCache(){}clearCacheFor(h){}getModuleId(h){}}return s.\u0275fac=function(h){return new(h||s)},s.\u0275prov=we({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const x1=(()=>Promise.resolve(0))();function Zp(s){typeof Zone>"u"?x1.then(()=>{s&&s.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",s)}class No{constructor({enableLongStackTrace:c=!1,shouldCoalesceEventChangeDetection:h=!1,shouldCoalesceRunChangeDetection:g=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new sc(!1),this.onMicrotaskEmpty=new sc(!1),this.onStable=new sc(!1),this.onError=new sc(!1),typeof Zone>"u")throw new ue(908,!1);Zone.assertZonePatched();const x=this;x._nesting=0,x._outer=x._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!g&&h,x.shouldCoalesceRunChangeDetection=g,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function kE(){let s=Je.requestAnimationFrame,c=Je.cancelAnimationFrame;if(typeof Zone<"u"&&s&&c){const h=s[Zone.__symbol__("OriginalDelegate")];h&&(s=h);const g=c[Zone.__symbol__("OriginalDelegate")];g&&(c=g)}return{nativeRequestAnimationFrame:s,nativeCancelAnimationFrame:c}}().nativeRequestAnimationFrame,function w1(s){const c=()=>{!function ws(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(Je,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,I0(s),s.isCheckStableRunning=!0,k0(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),I0(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(h,g,x,T,R,K)=>{try{return Vp(s),h.invokeTask(x,T,R,K)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===T.type||s.shouldCoalesceRunChangeDetection)&&c(),C1(s)}},onInvoke:(h,g,x,T,R,K,ae)=>{try{return Vp(s),h.invoke(x,T,R,K,ae)}finally{s.shouldCoalesceRunChangeDetection&&c(),C1(s)}},onHasTask:(h,g,x,T)=>{h.hasTask(x,T),g===x&&("microTask"==T.change?(s._hasPendingMicrotasks=T.microTask,I0(s),k0(s)):"macroTask"==T.change&&(s.hasPendingMacrotasks=T.macroTask))},onHandleError:(h,g,x,T)=>(h.handleError(x,T),s.runOutsideAngular(()=>s.onError.emit(T)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!No.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(No.isInAngularZone())throw new ue(909,!1)}run(c,h,g){return this._inner.run(c,h,g)}runTask(c,h,g,x){const T=this._inner,R=T.scheduleEventTask("NgZoneEvent: "+x,c,IE,Df,Df);try{return T.runTask(R,h,g)}finally{T.cancelTask(R)}}runGuarded(c,h,g){return this._inner.runGuarded(c,h,g)}runOutsideAngular(c){return this._outer.run(c)}}const IE={};function k0(s){if(0==s._nesting&&!s.hasPendingMicrotasks&&!s.isStable)try{s._nesting++,s.onMicrotaskEmpty.emit(null)}finally{if(s._nesting--,!s.hasPendingMicrotasks)try{s.runOutsideAngular(()=>s.onStable.emit(null))}finally{s.isStable=!0}}}function I0(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function Vp(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function C1(s){s._nesting--,k0(s)}class OE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new sc,this.onMicrotaskEmpty=new sc,this.onStable=new sc,this.onError=new sc}run(c,h,g){return c.apply(h,g)}runGuarded(c,h,g){return c.apply(h,g)}runOutsideAngular(c){return c()}runTask(c,h,g,x){return c.apply(h,g)}}const D1=new jr(""),od=new jr("");let O0,Ys=(()=>{class s{constructor(h,g,x){this._ngZone=h,this.registry=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,O0||(function Tf(s){O0=s}(x),x.addToWindow(g)),this._watchAngularEvents(),h.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{No.assertNotInAngularZone(),Zp(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Zp(()=>{for(;0!==this._callbacks.length;){let h=this._callbacks.pop();clearTimeout(h.timeoutId),h.doneCb(this._didWork)}this._didWork=!1});else{let h=this.getPendingTasks();this._callbacks=this._callbacks.filter(g=>!g.updateCb||!g.updateCb(h)||(clearTimeout(g.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(h=>({source:h.source,creationLocation:h.creationLocation,data:h.data})):[]}addCallback(h,g,x){let T=-1;g&&g>0&&(T=setTimeout(()=>{this._callbacks=this._callbacks.filter(R=>R.timeoutId!==T),h(this._didWork,this.getPendingTasks())},g)),this._callbacks.push({doneCb:h,timeoutId:T,updateCb:x})}whenStable(h,g,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(h,g,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(h){this.registry.registerApplication(h,this)}unregisterApplication(h){this.registry.unregisterApplication(h)}findProviders(h,g,x){return[]}}return s.\u0275fac=function(h){return new(h||s)(cn(No),cn(Hp),cn(od))},s.\u0275prov=we({token:s,factory:s.\u0275fac}),s})(),Hp=(()=>{class s{constructor(){this._applications=new Map}registerApplication(h,g){this._applications.set(h,g)}unregisterApplication(h){this._applications.delete(h)}unregisterAllApplications(){this._applications.clear()}getTestability(h){return this._applications.get(h)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(h,g=!0){return O0?.findTestabilityInTree(this,h,g)??null}}return s.\u0275fac=function(h){return new(h||s)},s.\u0275prov=we({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();const Bc=!1;let sd=null;const P0=new jr("AllowMultipleToken"),ld=new jr("PlatformDestroyListeners"),cd=new jr("appBootstrapListener");class FE{constructor(c,h){this.name=c,this.token=h}}function R0(s,c,h=[]){const g=`Platform: ${c}`,x=new jr(g);return(T=[])=>{let R=F0();if(!R||R.injector.get(P0,!1)){const K=[...h,...T,{provide:x,useValue:!0}];s?s(K):function LE(s){if(sd&&!sd.get(P0,!1))throw new ue(400,!1);sd=s;const c=s.get(A1);(function T1(s){const c=s.get(S0,null);c&&c.forEach(h=>h())})(s)}(function M1(s=[],c){return Nd.create({name:c,providers:[{provide:Yh,useValue:"platform"},{provide:ld,useValue:new Set([()=>sd=null])},...s]})}(K,g))}return function E1(s){const c=F0();if(!c)throw new ue(401,!1);return c}()}}function F0(){return sd?.get(A1)??null}let A1=(()=>{class s{constructor(h){this._injector=h,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(h,g){const x=function k1(s,c){let h;return h="noop"===s?new OE:("zone.js"===s?void 0:s)||new No(c),h}(g?.ngZone,function S1(s){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!s||!s.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!s||!s.ngZoneRunCoalescing)||!1}}(g)),T=[{provide:No,useValue:x}];return x.run(()=>{const R=Nd.create({providers:T,parent:this.injector,name:h.moduleType.name}),K=h.create(R),ae=K.injector.get($h,null);if(!ae)throw new ue(402,!1);return x.runOutsideAngular(()=>{const Le=x.onError.subscribe({next:bt=>{ae.handleError(bt)}});K.onDestroy(()=>{Yp(this._modules,K),Le.unsubscribe()})}),function I1(s,c,h){try{const g=h();return S_(g)?g.catch(x=>{throw c.runOutsideAngular(()=>s.handleError(x)),x}):g}catch(g){throw c.runOutsideAngular(()=>s.handleError(g)),g}}(ae,x,()=>{const Le=K.injector.get(Rp);return Le.runInitializers(),Le.donePromise.then(()=>(function ex(s){je(s,"Expected localeId to be defined"),"string"==typeof s&&(Xy=s.toLowerCase().replace(/_/g,"-"))}(K.injector.get(Up,$u)||$u),this._moduleDoBootstrap(K),K))})})}bootstrapModule(h,g=[]){const x=O1({},g);return function PE(s,c,h){const g=new l0(h);return Promise.resolve(g)}(0,0,h).then(T=>this.bootstrapModuleFactory(T,x))}_moduleDoBootstrap(h){const g=h.injector.get(jp);if(h._bootstrapComponents.length>0)h._bootstrapComponents.forEach(x=>g.bootstrap(x));else{if(!h.instance.ngDoBootstrap)throw new ue(-403,!1);h.instance.ngDoBootstrap(g)}this._modules.push(h)}onDestroy(h){this._destroyListeners.push(h)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ue(404,!1);this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g());const h=this._injector.get(ld,null);h&&(h.forEach(g=>g()),h.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return s.\u0275fac=function(h){return new(h||s)(cn(Nd))},s.\u0275prov=we({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();function O1(s,c){return Array.isArray(c)?c.reduce(O1,s):{...s,...c}}let jp=(()=>{class s{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(h,g,x){this._zone=h,this._injector=g,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const T=new A.y(K=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{K.next(this._stable),K.complete()})}),R=new A.y(K=>{let ae;this._zone.runOutsideAngular(()=>{ae=this._zone.onStable.subscribe(()=>{No.assertNotInAngularZone(),Zp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,K.next(!0))})})});const Le=this._zone.onUnstable.subscribe(()=>{No.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{K.next(!1)}))});return()=>{ae.unsubscribe(),Le.unsubscribe()}});this.isStable=(0,p.T)(T,R.pipe((0,v.B)()))}bootstrap(h,g){const x=h instanceof $g;if(!this._injector.get(Rp).done){!x&&Hn(h);throw new ue(405,Bc)}let R;R=x?h:this._injector.get(Wh).resolveComponentFactory(h),this.componentTypes.push(R.componentType);const K=function RE(s){return s.isBoundToModule}(R)?void 0:this._injector.get(Xu),Le=R.create(Nd.NULL,[],g||R.selector,K),bt=Le.location.nativeElement,Wt=Le.injector.get(D1,null);return Wt?.registerApplication(bt),Le.onDestroy(()=>{this.detachView(Le.hostView),Yp(this.components,Le),Wt?.unregisterApplication(bt)}),this._loadComponent(Le),Le}tick(){if(this._runningTick)throw new ue(101,!1);try{this._runningTick=!0;for(let h of this._views)h.detectChanges()}catch(h){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(h))}finally{this._runningTick=!1}}attachView(h){const g=h;this._views.push(g),g.attachToAppRef(this)}detachView(h){const g=h;Yp(this._views,g),g.detachFromAppRef()}_loadComponent(h){this.attachView(h.hostView),this.tick(),this.components.push(h);const g=this._injector.get(cd,[]);g.push(...this._bootstrapListeners),g.forEach(x=>x(h))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(h=>h()),this._views.slice().forEach(h=>h.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(h){return this._destroyListeners.push(h),()=>Yp(this._destroyListeners,h)}destroy(){if(this._destroyed)throw new ue(406,!1);const h=this._injector;h.destroy&&!h.destroyed&&h.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return s.\u0275fac=function(h){return new(h||s)(cn(No),cn(Hs),cn($h))},s.\u0275prov=we({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Yp(s,c){const h=s.indexOf(c);h>-1&&s.splice(h,1)}function UE(){}let ZE=(()=>{class s{}return s.__NG_ELEMENT_ID__=VE,s})();function VE(s){return function HE(s,c,h){if(Yo(s)&&!h){const g=Nr(s.index,c);return new tf(g,g)}return 47&s.type?new tf(c[Mr],c):null}(Nn(),Bt(),16==(16&s))}class N1{constructor(){}supports(c){return $m(c)}create(c){return new WE(c)}}const zE=(s,c)=>c;class WE{constructor(c){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=c||zE}forEachItem(c){let h;for(h=this._itHead;null!==h;h=h._next)c(h)}forEachOperation(c){let h=this._itHead,g=this._removalsHead,x=0,T=null;for(;h||g;){const R=!g||h&&h.currentIndex<U1(g,x,T)?h:g,K=U1(R,x,T),ae=R.currentIndex;if(R===g)x--,g=g._nextRemoved;else if(h=h._next,null==R.previousIndex)x++;else{T||(T=[]);const Le=K-x,bt=ae-x;if(Le!=bt){for(let pn=0;pn<Le;pn++){const Dn=pn<T.length?T[pn]:T[pn]=0,Yn=Dn+pn;bt<=Yn&&Yn<Le&&(T[pn]=Dn+1)}T[R.previousIndex]=bt-Le}}K!==ae&&c(R,K,ae)}}forEachPreviousItem(c){let h;for(h=this._previousItHead;null!==h;h=h._nextPrevious)c(h)}forEachAddedItem(c){let h;for(h=this._additionsHead;null!==h;h=h._nextAdded)c(h)}forEachMovedItem(c){let h;for(h=this._movesHead;null!==h;h=h._nextMoved)c(h)}forEachRemovedItem(c){let h;for(h=this._removalsHead;null!==h;h=h._nextRemoved)c(h)}forEachIdentityChange(c){let h;for(h=this._identityChangesHead;null!==h;h=h._nextIdentityChange)c(h)}diff(c){if(null==c&&(c=[]),!$m(c))throw new ue(900,!1);return this.check(c)?this:null}onDestroy(){}check(c){this._reset();let x,T,R,h=this._itHead,g=!1;if(Array.isArray(c)){this.length=c.length;for(let K=0;K<this.length;K++)T=c[K],R=this._trackByFn(K,T),null!==h&&Object.is(h.trackById,R)?(g&&(h=this._verifyReinsertion(h,T,R,K)),Object.is(h.item,T)||this._addIdentityChange(h,T)):(h=this._mismatch(h,T,R,K),g=!0),h=h._next}else x=0,function pD(s,c){if(Array.isArray(s))for(let h=0;h<s.length;h++)c(s[h]);else{const h=s[Symbol.iterator]();let g;for(;!(g=h.next()).done;)c(g.value)}}(c,K=>{R=this._trackByFn(x,K),null!==h&&Object.is(h.trackById,R)?(g&&(h=this._verifyReinsertion(h,K,R,x)),Object.is(h.item,K)||this._addIdentityChange(h,K)):(h=this._mismatch(h,K,R,x),g=!0),h=h._next,x++}),this.length=x;return this._truncate(h),this.collection=c,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let c;for(c=this._previousItHead=this._itHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._additionsHead;null!==c;c=c._nextAdded)c.previousIndex=c.currentIndex;for(this._additionsHead=this._additionsTail=null,c=this._movesHead;null!==c;c=c._nextMoved)c.previousIndex=c.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(c,h,g,x){let T;return null===c?T=this._itTail:(T=c._prev,this._remove(c)),null!==(c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(g,null))?(Object.is(c.item,h)||this._addIdentityChange(c,h),this._reinsertAfter(c,T,x)):null!==(c=null===this._linkedRecords?null:this._linkedRecords.get(g,x))?(Object.is(c.item,h)||this._addIdentityChange(c,h),this._moveAfter(c,T,x)):c=this._addAfter(new GE(h,g),T,x),c}_verifyReinsertion(c,h,g,x){let T=null===this._unlinkedRecords?null:this._unlinkedRecords.get(g,null);return null!==T?c=this._reinsertAfter(T,c._prev,x):c.currentIndex!=x&&(c.currentIndex=x,this._addToMoves(c,x)),c}_truncate(c){for(;null!==c;){const h=c._next;this._addToRemovals(this._unlink(c)),c=h}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(c,h,g){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(c);const x=c._prevRemoved,T=c._nextRemoved;return null===x?this._removalsHead=T:x._nextRemoved=T,null===T?this._removalsTail=x:T._prevRemoved=x,this._insertAfter(c,h,g),this._addToMoves(c,g),c}_moveAfter(c,h,g){return this._unlink(c),this._insertAfter(c,h,g),this._addToMoves(c,g),c}_addAfter(c,h,g){return this._insertAfter(c,h,g),this._additionsTail=null===this._additionsTail?this._additionsHead=c:this._additionsTail._nextAdded=c,c}_insertAfter(c,h,g){const x=null===h?this._itHead:h._next;return c._next=x,c._prev=h,null===x?this._itTail=c:x._prev=c,null===h?this._itHead=c:h._next=c,null===this._linkedRecords&&(this._linkedRecords=new B1),this._linkedRecords.put(c),c.currentIndex=g,c}_remove(c){return this._addToRemovals(this._unlink(c))}_unlink(c){null!==this._linkedRecords&&this._linkedRecords.remove(c);const h=c._prev,g=c._next;return null===h?this._itHead=g:h._next=g,null===g?this._itTail=h:g._prev=h,c}_addToMoves(c,h){return c.previousIndex===h||(this._movesTail=null===this._movesTail?this._movesHead=c:this._movesTail._nextMoved=c),c}_addToRemovals(c){return null===this._unlinkedRecords&&(this._unlinkedRecords=new B1),this._unlinkedRecords.put(c),c.currentIndex=null,c._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=c,c._prevRemoved=null):(c._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=c),c}_addIdentityChange(c,h){return c.item=h,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=c:this._identityChangesTail._nextIdentityChange=c,c}}class GE{constructor(c,h){this.item=c,this.trackById=h,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class $E{constructor(){this._head=null,this._tail=null}add(c){null===this._head?(this._head=this._tail=c,c._nextDup=null,c._prevDup=null):(this._tail._nextDup=c,c._prevDup=this._tail,c._nextDup=null,this._tail=c)}get(c,h){let g;for(g=this._head;null!==g;g=g._nextDup)if((null===h||h<=g.currentIndex)&&Object.is(g.trackById,c))return g;return null}remove(c){const h=c._prevDup,g=c._nextDup;return null===h?this._head=g:h._nextDup=g,null===g?this._tail=h:g._prevDup=h,null===this._head}}class B1{constructor(){this.map=new Map}put(c){const h=c.trackById;let g=this.map.get(h);g||(g=new $E,this.map.set(h,g)),g.add(c)}get(c,h){const x=this.map.get(c);return x?x.get(c,h):null}remove(c){const h=c.trackById;return this.map.get(h).remove(c)&&this.map.delete(h),c}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function U1(s,c,h){const g=s.previousIndex;if(null===g)return g;let x=0;return h&&g<h.length&&(x=h[g]),g+c+x}class Z1{constructor(){}supports(c){return c instanceof Map||y_(c)}create(){return new qE}}class qE{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(c){let h;for(h=this._mapHead;null!==h;h=h._next)c(h)}forEachPreviousItem(c){let h;for(h=this._previousMapHead;null!==h;h=h._nextPrevious)c(h)}forEachChangedItem(c){let h;for(h=this._changesHead;null!==h;h=h._nextChanged)c(h)}forEachAddedItem(c){let h;for(h=this._additionsHead;null!==h;h=h._nextAdded)c(h)}forEachRemovedItem(c){let h;for(h=this._removalsHead;null!==h;h=h._nextRemoved)c(h)}diff(c){if(c){if(!(c instanceof Map||y_(c)))throw new ue(900,!1)}else c=new Map;return this.check(c)?this:null}onDestroy(){}check(c){this._reset();let h=this._mapHead;if(this._appendAfter=null,this._forEach(c,(g,x)=>{if(h&&h.key===x)this._maybeAddToChanges(h,g),this._appendAfter=h,h=h._next;else{const T=this._getOrCreateRecordForKey(x,g);h=this._insertBeforeOrAppend(h,T)}}),h){h._prev&&(h._prev._next=null),this._removalsHead=h;for(let g=h;null!==g;g=g._nextRemoved)g===this._mapHead&&(this._mapHead=null),this._records.delete(g.key),g._nextRemoved=g._next,g.previousValue=g.currentValue,g.currentValue=null,g._prev=null,g._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(c,h){if(c){const g=c._prev;return h._next=c,h._prev=g,c._prev=h,g&&(g._next=h),c===this._mapHead&&(this._mapHead=h),this._appendAfter=c,c}return this._appendAfter?(this._appendAfter._next=h,h._prev=this._appendAfter):this._mapHead=h,this._appendAfter=h,null}_getOrCreateRecordForKey(c,h){if(this._records.has(c)){const x=this._records.get(c);this._maybeAddToChanges(x,h);const T=x._prev,R=x._next;return T&&(T._next=R),R&&(R._prev=T),x._next=null,x._prev=null,x}const g=new QE(c);return this._records.set(c,g),g.currentValue=h,this._addToAdditions(g),g}_reset(){if(this.isDirty){let c;for(this._previousMapHead=this._mapHead,c=this._previousMapHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._changesHead;null!==c;c=c._nextChanged)c.previousValue=c.currentValue;for(c=this._additionsHead;null!=c;c=c._nextAdded)c.previousValue=c.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(c,h){Object.is(h,c.currentValue)||(c.previousValue=c.currentValue,c.currentValue=h,this._addToChanges(c))}_addToAdditions(c){null===this._additionsHead?this._additionsHead=this._additionsTail=c:(this._additionsTail._nextAdded=c,this._additionsTail=c)}_addToChanges(c){null===this._changesHead?this._changesHead=this._changesTail=c:(this._changesTail._nextChanged=c,this._changesTail=c)}_forEach(c,h){c instanceof Map?c.forEach(h):Object.keys(c).forEach(g=>h(c[g],g))}}class QE{constructor(c){this.key=c,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function V1(){return new V0([new N1])}let V0=(()=>{class s{constructor(h){this.factories=h}static create(h,g){if(null!=g){const x=g.factories.slice();h=h.concat(x)}return new s(h)}static extend(h){return{provide:s,useFactory:g=>s.create(h,g||V1()),deps:[[s,new Ro,new Rr]]}}find(h){const g=this.factories.find(x=>x.supports(h));if(null!=g)return g;throw new ue(901,!1)}}return s.\u0275prov=we({token:s,providedIn:"root",factory:V1}),s})();function H1(){return new H0([new Z1])}let H0=(()=>{class s{constructor(h){this.factories=h}static create(h,g){if(g){const x=g.factories.slice();h=h.concat(x)}return new s(h)}static extend(h){return{provide:s,useFactory:g=>s.create(h,g||H1()),deps:[[s,new Ro,new Rr]]}}find(h){const g=this.factories.find(x=>x.supports(h));if(g)return g;throw new ue(901,!1)}}return s.\u0275prov=we({token:s,providedIn:"root",factory:H1}),s})();const XE=R0(null,"core",[]);let eM=(()=>{class s{constructor(h){}}return s.\u0275fac=function(h){return new(h||s)(cn(jp))},s.\u0275mod=zi({type:s}),s.\u0275inj=ve({}),s})();function tM(s){return"boolean"==typeof s?s:null!=s&&"false"!==s}},4006:(vn,_t,y)=>{"use strict";y.d(_t,{Cf:()=>Ze,F:()=>Mn,Fd:()=>_l,Fj:()=>G,JJ:()=>Jt,JL:()=>un,JU:()=>b,Kr:()=>Fs,On:()=>Dr,Q7:()=>Ns,QS:()=>cs,UX:()=>te,YN:()=>el,Zs:()=>to,_Y:()=>xr,a5:()=>ne,gN:()=>V,kI:()=>$e,nJ:()=>Fe,oH:()=>Yo,on:()=>go,p4:()=>kr,qQ:()=>ko,sg:()=>ba,u:()=>Ao,u5:()=>Ni,wV:()=>Os});var d=y(4650),i=y(6895),A=y(5254),p=y(567),v=y(4850);let k=(()=>{class C{constructor(E,U){this._renderer=E,this._elementRef=U,this.onChange=Be=>{},this.onTouched=()=>{}}setProperty(E,U){this._renderer.setProperty(this._elementRef.nativeElement,E,U)}registerOnTouched(E){this.onTouched=E}registerOnChange(E){this.onChange=E}setDisabledState(E){this.setProperty("disabled",E)}}return C.\u0275fac=function(E){return new(E||C)(d.Y36(d.Qsj),d.Y36(d.SBq))},C.\u0275dir=d.lG2({type:C}),C})(),f=(()=>{class C extends k{}return C.\u0275fac=function(){let D;return function(U){return(D||(D=d.n5z(C)))(U||C)}}(),C.\u0275dir=d.lG2({type:C,features:[d.qOj]}),C})();const b=new d.OlP("NgValueAccessor"),W={provide:b,useExisting:(0,d.Gpc)(()=>G),multi:!0},Z=new d.OlP("CompositionEventMode");let G=(()=>{class C extends k{constructor(E,U,Be){super(E,U),this._compositionMode=Be,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function B(){const C=(0,i.q)()?(0,i.q)().getUserAgent():"";return/android (\d+)/.test(C.toLowerCase())}())}writeValue(E){this.setProperty("value",E??"")}_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)}}return C.\u0275fac=function(E){return new(E||C)(d.Y36(d.Qsj),d.Y36(d.SBq),d.Y36(Z,8))},C.\u0275dir=d.lG2({type:C,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(E,U){1&E&&d.NdJ("input",function(jt){return U._handleInput(jt.target.value)})("blur",function(){return U.onTouched()})("compositionstart",function(){return U._compositionStart()})("compositionend",function(jt){return U._compositionEnd(jt.target.value)})},features:[d._Bn([W]),d.qOj]}),C})();const ie=!1;function Ee(C){return null==C||("string"==typeof C||Array.isArray(C))&&0===C.length}function ue(C){return null!=C&&"number"==typeof C.length}const Ze=new d.OlP("NgValidators"),Qe=new d.OlP("NgAsyncValidators"),vt=/^(?=.{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])?)*$/;class $e{static min(D){return Ge(D)}static max(D){return Ce(D)}static required(D){return ke(D)}static requiredTrue(D){return me(D)}static email(D){return re(D)}static minLength(D){return function ye(C){return D=>Ee(D.value)||!ue(D.value)?null:D.value.length<C?{minlength:{requiredLength:C,actualLength:D.value.length}}:null}(D)}static maxLength(D){return function Oe(C){return D=>ue(D.value)&&D.value.length>C?{maxlength:{requiredLength:C,actualLength:D.value.length}}:null}(D)}static pattern(D){return function Ae(C){if(!C)return tt;let D,E;return"string"==typeof C?(E="","^"!==C.charAt(0)&&(E+="^"),E+=C,"$"!==C.charAt(C.length-1)&&(E+="$"),D=new RegExp(E)):(E=C.toString(),D=C),U=>{if(Ee(U.value))return null;const Be=U.value;return D.test(Be)?null:{pattern:{requiredPattern:E,actualValue:Be}}}}(D)}static nullValidator(D){return null}static compose(D){return Pe(D)}static composeAsync(D){return dt(D)}}function Ge(C){return D=>{if(Ee(D.value)||Ee(C))return null;const E=parseFloat(D.value);return!isNaN(E)&&E<C?{min:{min:C,actual:D.value}}:null}}function Ce(C){return D=>{if(Ee(D.value)||Ee(C))return null;const E=parseFloat(D.value);return!isNaN(E)&&E>C?{max:{max:C,actual:D.value}}:null}}function ke(C){return Ee(C.value)?{required:!0}:null}function me(C){return!0===C.value?null:{required:!0}}function re(C){return Ee(C.value)||vt.test(C.value)?null:{email:!0}}function tt(C){return null}function ot(C){return null!=C}function at(C){const D=(0,d.QGY)(C)?(0,A.D)(C):C;if(ie&&!(0,d.CqO)(D)){let E="Expected async validator to return Promise or Observable.";throw"object"==typeof C&&(E+=" Are you using a synchronous validator where an async validator is expected?"),new d.vHH(-1101,E)}return D}function pt(C){let D={};return C.forEach(E=>{D=null!=E?{...D,...E}:D}),0===Object.keys(D).length?null:D}function ft(C,D){return D.map(E=>E(C))}function be(C){return C.map(D=>function Et(C){return!C.validate}(D)?D:E=>D.validate(E))}function Pe(C){if(!C)return null;const D=C.filter(ot);return 0==D.length?null:function(E){return pt(ft(E,D))}}function je(C){return null!=C?Pe(be(C)):null}function dt(C){if(!C)return null;const D=C.filter(ot);return 0==D.length?null:function(E){const U=ft(E,D).map(at);return(0,p.D)(U).pipe((0,v.U)(pt))}}function et(C){return null!=C?dt(be(C)):null}function gt(C,D){return null===C?[D]:Array.isArray(C)?[...C,D]:[C,D]}function Re(C){return C._rawValidators}function we(C){return C._rawAsyncValidators}function ce(C){return C?Array.isArray(C)?C:[C]:[]}function ve(C,D){return Array.isArray(C)?C.includes(D):C===D}function se(C,D){const E=ce(D);return ce(C).forEach(Be=>{ve(E,Be)||E.push(Be)}),E}function S(C,D){return ce(D).filter(E=>!ve(C,E))}class F{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(D){this._rawValidators=D||[],this._composedValidatorFn=je(this._rawValidators)}_setAsyncValidators(D){this._rawAsyncValidators=D||[],this._composedAsyncValidatorFn=et(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(D){this._onDestroyCallbacks.push(D)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(D=>D()),this._onDestroyCallbacks=[]}reset(D){this.control&&this.control.reset(D)}hasError(D,E){return!!this.control&&this.control.hasError(D,E)}getError(D,E){return this.control?this.control.getError(D,E):null}}class V extends F{get formDirective(){return null}get path(){return null}}class ne extends F{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class De{constructor(D){this._cd=D}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Jt=(()=>{class C extends De{constructor(E){super(E)}}return C.\u0275fac=function(E){return new(E||C)(d.Y36(ne,2))},C.\u0275dir=d.lG2({type:C,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(E,U){2&E&&d.ekj("ng-untouched",U.isUntouched)("ng-touched",U.isTouched)("ng-pristine",U.isPristine)("ng-dirty",U.isDirty)("ng-valid",U.isValid)("ng-invalid",U.isInvalid)("ng-pending",U.isPending)},features:[d.qOj]}),C})(),un=(()=>{class C extends De{constructor(E){super(E)}}return C.\u0275fac=function(E){return new(E||C)(d.Y36(V,10))},C.\u0275dir=d.lG2({type:C,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(E,U){2&E&&d.ekj("ng-untouched",U.isUntouched)("ng-touched",U.isTouched)("ng-pristine",U.isPristine)("ng-dirty",U.isDirty)("ng-valid",U.isValid)("ng-invalid",U.isInvalid)("ng-pending",U.isPending)("ng-submitted",U.isSubmitted)},features:[d.qOj]}),C})();function dn(C,D){return C?`with name: '${D}'`:`at index: ${D}`}const gn=!1,St="VALID",cn="INVALID",Qn="PENDING",ai="DISABLED";function ze(C){return(yt(C)?C.validators:C)||null}function q(C,D){return(yt(D)?D.asyncValidators:C)||null}function yt(C){return null!=C&&!Array.isArray(C)&&"object"==typeof C}function ht(C,D,E){const U=C.controls;if(!(D?Object.keys(U):U).length)throw new d.vHH(1e3,gn?function Rn(C){return`\n There are no form controls registered with this ${C?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(D):"");if(!U[E])throw new d.vHH(1001,gn?function An(C,D){return`Cannot find form control ${dn(C,D)}`}(D,E):"")}function le(C,D,E){C._forEachChild((U,Be)=>{if(void 0===E[Be])throw new d.vHH(1002,gn?function Gt(C,D){return`Must supply a value for form control ${dn(C,D)}`}(D,Be):"")})}class pe{constructor(D,E){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(D),this._assignAsyncValidators(E)}get validator(){return this._composedValidatorFn}set validator(D){this._rawValidators=this._composedValidatorFn=D}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(D){this._rawAsyncValidators=this._composedAsyncValidatorFn=D}get parent(){return this._parent}get valid(){return this.status===St}get invalid(){return this.status===cn}get pending(){return this.status==Qn}get disabled(){return this.status===ai}get enabled(){return this.status!==ai}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(D){this._assignValidators(D)}setAsyncValidators(D){this._assignAsyncValidators(D)}addValidators(D){this.setValidators(se(D,this._rawValidators))}addAsyncValidators(D){this.setAsyncValidators(se(D,this._rawAsyncValidators))}removeValidators(D){this.setValidators(S(D,this._rawValidators))}removeAsyncValidators(D){this.setAsyncValidators(S(D,this._rawAsyncValidators))}hasValidator(D){return ve(this._rawValidators,D)}hasAsyncValidator(D){return ve(this._rawAsyncValidators,D)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(D={}){this.touched=!0,this._parent&&!D.onlySelf&&this._parent.markAsTouched(D)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(D=>D.markAllAsTouched())}markAsUntouched(D={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(E=>{E.markAsUntouched({onlySelf:!0})}),this._parent&&!D.onlySelf&&this._parent._updateTouched(D)}markAsDirty(D={}){this.pristine=!1,this._parent&&!D.onlySelf&&this._parent.markAsDirty(D)}markAsPristine(D={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(E=>{E.markAsPristine({onlySelf:!0})}),this._parent&&!D.onlySelf&&this._parent._updatePristine(D)}markAsPending(D={}){this.status=Qn,!1!==D.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!D.onlySelf&&this._parent.markAsPending(D)}disable(D={}){const E=this._parentMarkedDirty(D.onlySelf);this.status=ai,this.errors=null,this._forEachChild(U=>{U.disable({...D,onlySelf:!0})}),this._updateValue(),!1!==D.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...D,skipPristineCheck:E}),this._onDisabledChange.forEach(U=>U(!0))}enable(D={}){const E=this._parentMarkedDirty(D.onlySelf);this.status=St,this._forEachChild(U=>{U.enable({...D,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:D.emitEvent}),this._updateAncestors({...D,skipPristineCheck:E}),this._onDisabledChange.forEach(U=>U(!1))}_updateAncestors(D){this._parent&&!D.onlySelf&&(this._parent.updateValueAndValidity(D),D.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(D){this._parent=D}getRawValue(){return this.value}updateValueAndValidity(D={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===St||this.status===Qn)&&this._runAsyncValidator(D.emitEvent)),!1!==D.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!D.onlySelf&&this._parent.updateValueAndValidity(D)}_updateTreeValidity(D={emitEvent:!0}){this._forEachChild(E=>E._updateTreeValidity(D)),this.updateValueAndValidity({onlySelf:!0,emitEvent:D.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ai:St}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(D){if(this.asyncValidator){this.status=Qn,this._hasOwnPendingAsyncValidator=!0;const E=at(this.asyncValidator(this));this._asyncValidationSubscription=E.subscribe(U=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(U,{emitEvent:D})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(D,E={}){this.errors=D,this._updateControlsErrors(!1!==E.emitEvent)}get(D){let E=D;return null==E||(Array.isArray(E)||(E=E.split(".")),0===E.length)?null:E.reduce((U,Be)=>U&&U._find(Be),this)}getError(D,E){const U=E?this.get(E):this;return U&&U.errors?U.errors[D]:null}hasError(D,E){return!!this.getError(D,E)}get root(){let D=this;for(;D._parent;)D=D._parent;return D}_updateControlsErrors(D){this.status=this._calculateStatus(),D&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(D)}_initObservables(){this.valueChanges=new d.vpe,this.statusChanges=new d.vpe}_calculateStatus(){return this._allControlsDisabled()?ai:this.errors?cn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Qn)?Qn:this._anyControlsHaveStatus(cn)?cn:St}_anyControlsHaveStatus(D){return this._anyControls(E=>E.status===D)}_anyControlsDirty(){return this._anyControls(D=>D.dirty)}_anyControlsTouched(){return this._anyControls(D=>D.touched)}_updatePristine(D={}){this.pristine=!this._anyControlsDirty(),this._parent&&!D.onlySelf&&this._parent._updatePristine(D)}_updateTouched(D={}){this.touched=this._anyControlsTouched(),this._parent&&!D.onlySelf&&this._parent._updateTouched(D)}_registerOnCollectionChange(D){this._onCollectionChange=D}_setUpdateStrategy(D){yt(D)&&null!=D.updateOn&&(this._updateOn=D.updateOn)}_parentMarkedDirty(D){return!D&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(D){return null}_assignValidators(D){this._rawValidators=Array.isArray(D)?D.slice():D,this._composedValidatorFn=function de(C){return Array.isArray(C)?je(C):C||null}(this._rawValidators)}_assignAsyncValidators(D){this._rawAsyncValidators=Array.isArray(D)?D.slice():D,this._composedAsyncValidatorFn=function He(C){return Array.isArray(C)?et(C):C||null}(this._rawAsyncValidators)}}class Q extends pe{constructor(D,E,U){super(ze(E),q(U,E)),this.controls=D,this._initObservables(),this._setUpdateStrategy(E),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(D,E){return this.controls[D]?this.controls[D]:(this.controls[D]=E,E.setParent(this),E._registerOnCollectionChange(this._onCollectionChange),E)}addControl(D,E,U={}){this.registerControl(D,E),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}removeControl(D,E={}){this.controls[D]&&this.controls[D]._registerOnCollectionChange(()=>{}),delete this.controls[D],this.updateValueAndValidity({emitEvent:E.emitEvent}),this._onCollectionChange()}setControl(D,E,U={}){this.controls[D]&&this.controls[D]._registerOnCollectionChange(()=>{}),delete this.controls[D],E&&this.registerControl(D,E),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}contains(D){return this.controls.hasOwnProperty(D)&&this.controls[D].enabled}setValue(D,E={}){le(this,!0,D),Object.keys(D).forEach(U=>{ht(this,!0,U),this.controls[U].setValue(D[U],{onlySelf:!0,emitEvent:E.emitEvent})}),this.updateValueAndValidity(E)}patchValue(D,E={}){null!=D&&(Object.keys(D).forEach(U=>{const Be=this.controls[U];Be&&Be.patchValue(D[U],{onlySelf:!0,emitEvent:E.emitEvent})}),this.updateValueAndValidity(E))}reset(D={},E={}){this._forEachChild((U,Be)=>{U.reset(D[Be],{onlySelf:!0,emitEvent:E.emitEvent})}),this._updatePristine(E),this._updateTouched(E),this.updateValueAndValidity(E)}getRawValue(){return this._reduceChildren({},(D,E,U)=>(D[U]=E.getRawValue(),D))}_syncPendingControls(){let D=this._reduceChildren(!1,(E,U)=>!!U._syncPendingControls()||E);return D&&this.updateValueAndValidity({onlySelf:!0}),D}_forEachChild(D){Object.keys(this.controls).forEach(E=>{const U=this.controls[E];U&&D(U,E)})}_setUpControls(){this._forEachChild(D=>{D.setParent(this),D._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(D){for(const[E,U]of Object.entries(this.controls))if(this.contains(E)&&D(U))return!0;return!1}_reduceValue(){return this._reduceChildren({},(E,U,Be)=>((U.enabled||this.disabled)&&(E[Be]=U.value),E))}_reduceChildren(D,E){let U=D;return this._forEachChild((Be,jt)=>{U=E(U,Be,jt)}),U}_allControlsDisabled(){for(const D of Object.keys(this.controls))if(this.controls[D].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(D){return this.controls.hasOwnProperty(D)?this.controls[D]:null}}const Fe=Q;class nt extends Q{}const qe=new d.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>We}),We="always";function Rt(C,D){return[...D.path,C]}function Ve(C,D,E=We){Ti(C,D),D.valueAccessor.writeValue(C.value),(C.disabled||"always"===E)&&D.valueAccessor.setDisabledState?.(C.disabled),function zi(C,D){D.valueAccessor.registerOnChange(E=>{C._pendingValue=E,C._pendingChange=!0,C._pendingDirty=!0,"change"===C.updateOn&&Mt(C,D)})}(C,D),function an(C,D){const E=(U,Be)=>{D.valueAccessor.writeValue(U),Be&&D.viewToModelUpdate(U)};C.registerOnChange(E),D._registerOnDestroy(()=>{C._unregisterOnChange(E)})}(C,D),function ur(C,D){D.valueAccessor.registerOnTouched(()=>{C._pendingTouched=!0,"blur"===C.updateOn&&C._pendingChange&&Mt(C,D),"submit"!==C.updateOn&&C.markAsTouched()})}(C,D),function Ln(C,D){if(D.valueAccessor.setDisabledState){const E=U=>{D.valueAccessor.setDisabledState(U)};C.registerOnDisabledChange(E),D._registerOnDestroy(()=>{C._unregisterOnDisabledChange(E)})}}(C,D)}function At(C,D,E=!0){const U=()=>{};D.valueAccessor&&(D.valueAccessor.registerOnChange(U),D.valueAccessor.registerOnTouched(U)),Oi(C,D),C&&(D._invokeOnDestroyCallbacks(),C._registerOnCollectionChange(()=>{}))}function fn(C,D){C.forEach(E=>{E.registerOnValidatorChange&&E.registerOnValidatorChange(D)})}function Ti(C,D){const E=Re(C);null!==D.validator?C.setValidators(gt(E,D.validator)):"function"==typeof E&&C.setValidators([E]);const U=we(C);null!==D.asyncValidator?C.setAsyncValidators(gt(U,D.asyncValidator)):"function"==typeof U&&C.setAsyncValidators([U]);const Be=()=>C.updateValueAndValidity();fn(D._rawValidators,Be),fn(D._rawAsyncValidators,Be)}function Oi(C,D){let E=!1;if(null!==C){if(null!==D.validator){const Be=Re(C);if(Array.isArray(Be)&&Be.length>0){const jt=Be.filter(yn=>yn!==D.validator);jt.length!==Be.length&&(E=!0,C.setValidators(jt))}}if(null!==D.asyncValidator){const Be=we(C);if(Array.isArray(Be)&&Be.length>0){const jt=Be.filter(yn=>yn!==D.asyncValidator);jt.length!==Be.length&&(E=!0,C.setAsyncValidators(jt))}}}const U=()=>{};return fn(D._rawValidators,U),fn(D._rawAsyncValidators,U),E}function Mt(C,D){C._pendingDirty&&C.markAsDirty(),C.setValue(C._pendingValue,{emitModelToViewChange:!1}),D.viewToModelUpdate(C._pendingValue),C._pendingChange=!1}function ut(C,D){Ti(C,D)}function Ht(C,D){if(!C.hasOwnProperty("model"))return!1;const E=C.model;return!!E.isFirstChange()||!Object.is(D,E.currentValue)}function rt(C,D){C._syncPendingControls(),D.forEach(E=>{const U=E.control;"submit"===U.updateOn&&U._pendingChange&&(E.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function Nt(C,D){if(!D)return null;let E,U,Be;return Array.isArray(D),D.forEach(jt=>{jt.constructor===G?E=jt:function wn(C){return Object.getPrototypeOf(C.constructor)===f}(jt)?U=jt:Be=jt}),Be||U||E||null}const st={provide:V,useExisting:(0,d.Gpc)(()=>Mn)},It=(()=>Promise.resolve())();let Mn=(()=>{class C extends V{constructor(E,U,Be){super(),this.callSetDisabledState=Be,this.submitted=!1,this._directives=new Set,this.ngSubmit=new d.vpe,this.form=new Q({},je(E),et(U))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(E){It.then(()=>{const U=this._findContainer(E.path);E.control=U.registerControl(E.name,E.control),Ve(E.control,E,this.callSetDisabledState),E.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(E)})}getControl(E){return this.form.get(E.path)}removeControl(E){It.then(()=>{const U=this._findContainer(E.path);U&&U.removeControl(E.name),this._directives.delete(E)})}addFormGroup(E){It.then(()=>{const U=this._findContainer(E.path),Be=new Q({});ut(Be,E),U.registerControl(E.name,Be),Be.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(E){It.then(()=>{const U=this._findContainer(E.path);U&&U.removeControl(E.name)})}getFormGroup(E){return this.form.get(E.path)}updateModel(E,U){It.then(()=>{this.form.get(E.path).setValue(U)})}setValue(E){this.control.setValue(E)}onSubmit(E){return this.submitted=!0,rt(this.form,this._directives),this.ngSubmit.emit(E),"dialog"===E?.target?.method}onReset(){this.resetForm()}resetForm(E){this.form.reset(E),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(E){return E.pop(),E.length?this.form.get(E):this.form}}return C.\u0275fac=function(E){return new(E||C)(d.Y36(Ze,10),d.Y36(Qe,10),d.Y36(qe,8))},C.\u0275dir=d.lG2({type:C,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(E,U){1&E&&d.NdJ("submit",function(jt){return U.onSubmit(jt)})("reset",function(){return U.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([st]),d.qOj]}),C})();function Ei(C,D){const E=C.indexOf(D);E>-1&&C.splice(E,1)}function Ai(C){return"object"==typeof C&&null!==C&&2===Object.keys(C).length&&"value"in C&&"disabled"in C}const sr=class extends pe{constructor(D=null,E,U){super(ze(E),q(U,E)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(D),this._setUpdateStrategy(E),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),yt(E)&&(E.nonNullable||E.initialValueIsDefault)&&(this.defaultValue=Ai(D)?D.value:D)}setValue(D,E={}){this.value=this._pendingValue=D,this._onChange.length&&!1!==E.emitModelToViewChange&&this._onChange.forEach(U=>U(this.value,!1!==E.emitViewToModelChange)),this.updateValueAndValidity(E)}patchValue(D,E={}){this.setValue(D,E)}reset(D=this.defaultValue,E={}){this._applyFormState(D),this.markAsPristine(E),this.markAsUntouched(E),this.setValue(this.value,E),this._pendingChange=!1}_updateValue(){}_anyControls(D){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(D){this._onChange.push(D)}_unregisterOnChange(D){Ei(this._onChange,D)}registerOnDisabledChange(D){this._onDisabledChange.push(D)}_unregisterOnDisabledChange(D){Ei(this._onDisabledChange,D)}_forEachChild(D){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(D){Ai(D)?(this.value=this._pendingValue=D.value,D.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=D}},kr=sr,pa={provide:ne,useExisting:(0,d.Gpc)(()=>Dr)},ga=(()=>Promise.resolve())();let Dr=(()=>{class C extends ne{constructor(E,U,Be,jt,yn,Bt){super(),this._changeDetectorRef=yn,this.callSetDisabledState=Bt,this.control=new sr,this._registered=!1,this.update=new d.vpe,this._parent=E,this._setValidators(U),this._setAsyncValidators(Be),this.valueAccessor=Nt(0,jt)}ngOnChanges(E){if(this._checkForErrors(),!this._registered||"name"in E){if(this._registered&&(this._checkName(),this.formDirective)){const U=E.name.previousValue;this.formDirective.removeControl({name:U,path:this._getPath(U)})}this._setUpControl()}"isDisabled"in E&&this._updateDisabled(E),Ht(E,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(E){this.viewModel=E,this.update.emit(E)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ve(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(E){ga.then(()=>{this.control.setValue(E,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(E){const U=E.isDisabled.currentValue,Be=0!==U&&(0,d.D6c)(U);ga.then(()=>{Be&&!this.control.disabled?this.control.disable():!Be&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(E){return this._parent?Rt(E,this._parent):[E]}}return C.\u0275fac=function(E){return new(E||C)(d.Y36(V,9),d.Y36(Ze,10),d.Y36(Qe,10),d.Y36(b,10),d.Y36(d.sBO,8),d.Y36(qe,8))},C.\u0275dir=d.lG2({type:C,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[d._Bn([pa]),d.qOj,d.TTD]}),C})(),xr=(()=>{class C{}return C.\u0275fac=function(E){return new(E||C)},C.\u0275dir=d.lG2({type:C,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),C})();const eo={provide:b,useExisting:(0,d.Gpc)(()=>Os),multi:!0};let Os=(()=>{class C extends f{writeValue(E){this.setProperty("value",E??"")}registerOnChange(E){this.onChange=U=>{E(""==U?null:parseFloat(U))}}}return C.\u0275fac=function(){let D;return function(U){return(D||(D=d.n5z(C)))(U||C)}}(),C.\u0275dir=d.lG2({type:C,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(E,U){1&E&&d.NdJ("input",function(jt){return U.onChange(jt.target.value)})("blur",function(){return U.onTouched()})},features:[d._Bn([eo]),d.qOj]}),C})(),Ps=(()=>{class C{}return C.\u0275fac=function(E){return new(E||C)},C.\u0275mod=d.oAB({type:C}),C.\u0275inj=d.cJS({}),C})();const va=new d.OlP("NgModelWithFormControlWarning"),gl={provide:ne,useExisting:(0,d.Gpc)(()=>Yo)};let Yo=(()=>{class C extends ne{set isDisabled(E){}constructor(E,U,Be,jt,yn){super(),this._ngModelWarningConfig=jt,this.callSetDisabledState=yn,this.update=new d.vpe,this._ngModelWarningSent=!1,this._setValidators(E),this._setAsyncValidators(U),this.valueAccessor=Nt(0,Be)}ngOnChanges(E){if(this._isControlChanged(E)){const U=E.form.previousValue;U&&At(U,this,!1),Ve(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ht(E,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&At(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(E){this.viewModel=E,this.update.emit(E)}_isControlChanged(E){return E.hasOwnProperty("form")}}return C._ngModelWarningSentOnce=!1,C.\u0275fac=function(E){return new(E||C)(d.Y36(Ze,10),d.Y36(Qe,10),d.Y36(b,10),d.Y36(va,8),d.Y36(qe,8))},C.\u0275dir=d.lG2({type:C,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[d._Bn([gl]),d.qOj,d.TTD]}),C})();const Js={provide:V,useExisting:(0,d.Gpc)(()=>ba)};let ba=(()=>{class C extends V{constructor(E,U,Be){super(),this.callSetDisabledState=Be,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new d.vpe,this._setValidators(E),this._setAsyncValidators(U)}ngOnChanges(E){this._checkFormPresent(),E.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Oi(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){const U=this.form.get(E.path);return Ve(U,E,this.callSetDisabledState),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(E),U}getControl(E){return this.form.get(E.path)}removeControl(E){At(E.control||null,E,!1),function P(C,D){const E=C.indexOf(D);E>-1&&C.splice(E,1)}(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,U){this.form.get(E.path).setValue(U)}onSubmit(E){return this.submitted=!0,rt(this.form,this.directives),this.ngSubmit.emit(E),"dialog"===E?.target?.method}onReset(){this.resetForm()}resetForm(E){this.form.reset(E),this.submitted=!1}_updateDomValue(){this.directives.forEach(E=>{const U=E.control,Be=this.form.get(E.path);U!==Be&&(At(U||null,E),(C=>C instanceof sr)(Be)&&(Ve(Be,E,this.callSetDisabledState),E.control=Be))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(E){const U=this.form.get(E.path);ut(U,E),U.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(E){if(this.form){const U=this.form.get(E.path);U&&function Ft(C,D){return Oi(C,D)}(U,E)&&U.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ti(this.form,this),this._oldForm&&Oi(this._oldForm,this)}_checkFormPresent(){}}return C.\u0275fac=function(E){return new(E||C)(d.Y36(Ze,10),d.Y36(Qe,10),d.Y36(qe,8))},C.\u0275dir=d.lG2({type:C,selectors:[["","formGroup",""]],hostBindings:function(E,U){1&E&&d.NdJ("submit",function(jt){return U.onSubmit(jt)})("reset",function(){return U.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([Js]),d.qOj,d.TTD]}),C})();const ja={provide:ne,useExisting:(0,d.Gpc)(()=>Ao)};let Ao=(()=>{class C extends ne{set isDisabled(E){}constructor(E,U,Be,jt,yn){super(),this._ngModelWarningConfig=yn,this._added=!1,this.update=new d.vpe,this._ngModelWarningSent=!1,this._parent=E,this._setValidators(U),this._setAsyncValidators(Be),this.valueAccessor=Nt(0,jt)}ngOnChanges(E){this._added||this._setUpControl(),Ht(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 Rt(null==this.name?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}}return C._ngModelWarningSentOnce=!1,C.\u0275fac=function(E){return new(E||C)(d.Y36(V,13),d.Y36(Ze,10),d.Y36(Qe,10),d.Y36(b,10),d.Y36(va,8))},C.\u0275dir=d.lG2({type:C,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[d._Bn([ja]),d.qOj,d.TTD]}),C})();const ya={provide:b,useExisting:(0,d.Gpc)(()=>ls),multi:!0};function Rs(C,D){return null==C?`${D}`:(D&&"object"==typeof D&&(D="Object"),`${C}: ${D}`.slice(0,50))}let ls=(()=>{class C extends f{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;const Be=Rs(this._getOptionId(E),E);this.setProperty("value",Be)}registerOnChange(E){this.onChange=U=>{this.value=this._getOptionValue(U),E(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(E){for(const U of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(U),E))return U;return null}_getOptionValue(E){const U=function mo(C){return C.split(":")[0]}(E);return this._optionMap.has(U)?this._optionMap.get(U):E}}return C.\u0275fac=function(){let D;return function(U){return(D||(D=d.n5z(C)))(U||C)}}(),C.\u0275dir=d.lG2({type:C,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(E,U){1&E&&d.NdJ("change",function(jt){return U.onChange(jt.target.value)})("blur",function(){return U.onTouched()})},inputs:{compareWith:"compareWith"},features:[d._Bn([ya]),d.qOj]}),C})(),el=(()=>{class C{constructor(E,U,Be){this._element=E,this._renderer=U,this._select=Be,this._select&&(this.id=this._select._registerOption())}set ngValue(E){null!=this._select&&(this._select._optionMap.set(this.id,E),this._setElementValue(Rs(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))}}return C.\u0275fac=function(E){return new(E||C)(d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(ls,9))},C.\u0275dir=d.lG2({type:C,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),C})();const tl={provide:b,useExisting:(0,d.Gpc)(()=>Go),multi:!0};function zc(C,D){return null==C?`${D}`:("string"==typeof D&&(D=`'${D}'`),D&&"object"==typeof D&&(D="Object"),`${C}: ${D}`.slice(0,50))}let Go=(()=>{class C extends f{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(E){this._compareWith=E}writeValue(E){let U;if(this.value=E,Array.isArray(E)){const Be=E.map(jt=>this._getOptionId(jt));U=(jt,yn)=>{jt._setSelected(Be.indexOf(yn.toString())>-1)}}else U=(Be,jt)=>{Be._setSelected(!1)};this._optionMap.forEach(U)}registerOnChange(E){this.onChange=U=>{const Be=[],jt=U.selectedOptions;if(void 0!==jt){const yn=jt;for(let Bt=0;Bt<yn.length;Bt++){const Kn=this._getOptionValue(yn[Bt].value);Be.push(Kn)}}else{const yn=U.options;for(let Bt=0;Bt<yn.length;Bt++){const bn=yn[Bt];if(bn.selected){const Kn=this._getOptionValue(bn.value);Be.push(Kn)}}}this.value=Be,E(Be)}}_registerOption(E){const U=(this._idCounter++).toString();return this._optionMap.set(U,E),U}_getOptionId(E){for(const U of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(U)._value,E))return U;return null}_getOptionValue(E){const U=function zo(C){return C.split(":")[0]}(E);return this._optionMap.has(U)?this._optionMap.get(U)._value:E}}return C.\u0275fac=function(){let D;return function(U){return(D||(D=d.n5z(C)))(U||C)}}(),C.\u0275dir=d.lG2({type:C,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(E,U){1&E&&d.NdJ("change",function(jt){return U.onChange(jt.target)})("blur",function(){return U.onTouched()})},inputs:{compareWith:"compareWith"},features:[d._Bn([tl]),d.qOj]}),C})(),Fs=(()=>{class C{constructor(E,U,Be){this._element=E,this._renderer=U,this._select=Be,this._select&&(this.id=this._select._registerOption(this))}set ngValue(E){null!=this._select&&(this._value=E,this._setElementValue(zc(this.id,E)),this._select.writeValue(this._select.value))}set value(E){this._select?(this._value=E,this._setElementValue(zc(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))}}return C.\u0275fac=function(E){return new(E||C)(d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(Go,9))},C.\u0275dir=d.lG2({type:C,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),C})();function po(C){return"number"==typeof C?C:parseFloat(C)}let Ls=(()=>{class C{constructor(){this._validator=tt}ngOnChanges(E){if(this.inputName in E){const U=this.normalizeInput(E[this.inputName].currentValue);this._enabled=this.enabled(U),this._validator=this._enabled?this.createValidator(U):tt,this._onChange&&this._onChange()}}validate(E){return this._validator(E)}registerOnValidatorChange(E){this._onChange=E}enabled(E){return null!=E}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275dir=d.lG2({type:C,features:[d.TTD]}),C})();const So={provide:Ze,useExisting:(0,d.Gpc)(()=>_l),multi:!0};let _l=(()=>{class C extends Ls{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=E=>po(E),this.createValidator=E=>Ce(E)}}return C.\u0275fac=function(){let D;return function(U){return(D||(D=d.n5z(C)))(U||C)}}(),C.\u0275dir=d.lG2({type:C,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(E,U){2&E&&d.uIk("max",U._enabled?U.max:null)},inputs:{max:"max"},features:[d._Bn([So]),d.qOj]}),C})();const nl={provide:Ze,useExisting:(0,d.Gpc)(()=>ko),multi:!0};let ko=(()=>{class C extends Ls{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=E=>po(E),this.createValidator=E=>Ge(E)}}return C.\u0275fac=function(){let D;return function(U){return(D||(D=d.n5z(C)))(U||C)}}(),C.\u0275dir=d.lG2({type:C,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(E,U){2&E&&d.uIk("min",U._enabled?U.min:null)},inputs:{min:"min"},features:[d._Bn([nl]),d.qOj]}),C})();const vl={provide:Ze,useExisting:(0,d.Gpc)(()=>Ns),multi:!0},il={provide:Ze,useExisting:(0,d.Gpc)(()=>to),multi:!0};let Ns=(()=>{class C extends Ls{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=d.D6c,this.createValidator=E=>ke}enabled(E){return E}}return C.\u0275fac=function(){let D;return function(U){return(D||(D=d.n5z(C)))(U||C)}}(),C.\u0275dir=d.lG2({type:C,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(E,U){2&E&&d.uIk("required",U._enabled?"":null)},inputs:{required:"required"},features:[d._Bn([vl]),d.qOj]}),C})(),to=(()=>{class C extends Ns{constructor(){super(...arguments),this.createValidator=E=>me}}return C.\u0275fac=function(){let D;return function(U){return(D||(D=d.n5z(C)))(U||C)}}(),C.\u0275dir=d.lG2({type:C,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(E,U){2&E&&d.uIk("required",U._enabled?"":null)},features:[d._Bn([il]),d.qOj]}),C})();const $o={provide:Ze,useExisting:(0,d.Gpc)(()=>go),multi:!0};let go=(()=>{class C extends Ls{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=d.D6c,this.createValidator=E=>re}enabled(E){return E}}return C.\u0275fac=function(){let D;return function(U){return(D||(D=d.n5z(C)))(U||C)}}(),C.\u0275dir=d.lG2({type:C,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[d._Bn([$o]),d.qOj]}),C})(),al=(()=>{class C{}return C.\u0275fac=function(E){return new(E||C)},C.\u0275mod=d.oAB({type:C}),C.\u0275inj=d.cJS({imports:[Ps]}),C})();class _o extends pe{constructor(D,E,U){super(ze(E),q(U,E)),this.controls=D,this._initObservables(),this._setUpdateStrategy(E),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(D){return this.controls[this._adjustIndex(D)]}push(D,E={}){this.controls.push(D),this._registerControl(D),this.updateValueAndValidity({emitEvent:E.emitEvent}),this._onCollectionChange()}insert(D,E,U={}){this.controls.splice(D,0,E),this._registerControl(E),this.updateValueAndValidity({emitEvent:U.emitEvent})}removeAt(D,E={}){let U=this._adjustIndex(D);U<0&&(U=0),this.controls[U]&&this.controls[U]._registerOnCollectionChange(()=>{}),this.controls.splice(U,1),this.updateValueAndValidity({emitEvent:E.emitEvent})}setControl(D,E,U={}){let Be=this._adjustIndex(D);Be<0&&(Be=0),this.controls[Be]&&this.controls[Be]._registerOnCollectionChange(()=>{}),this.controls.splice(Be,1),E&&(this.controls.splice(Be,0,E),this._registerControl(E)),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(D,E={}){le(this,!1,D),D.forEach((U,Be)=>{ht(this,!1,Be),this.at(Be).setValue(U,{onlySelf:!0,emitEvent:E.emitEvent})}),this.updateValueAndValidity(E)}patchValue(D,E={}){null!=D&&(D.forEach((U,Be)=>{this.at(Be)&&this.at(Be).patchValue(U,{onlySelf:!0,emitEvent:E.emitEvent})}),this.updateValueAndValidity(E))}reset(D=[],E={}){this._forEachChild((U,Be)=>{U.reset(D[Be],{onlySelf:!0,emitEvent:E.emitEvent})}),this._updatePristine(E),this._updateTouched(E),this.updateValueAndValidity(E)}getRawValue(){return this.controls.map(D=>D.getRawValue())}clear(D={}){this.controls.length<1||(this._forEachChild(E=>E._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:D.emitEvent}))}_adjustIndex(D){return D<0?D+this.length:D}_syncPendingControls(){let D=this.controls.reduce((E,U)=>!!U._syncPendingControls()||E,!1);return D&&this.updateValueAndValidity({onlySelf:!0}),D}_forEachChild(D){this.controls.forEach((E,U)=>{D(E,U)})}_updateValue(){this.value=this.controls.filter(D=>D.enabled||this.disabled).map(D=>D.value)}_anyControls(D){return this.controls.some(E=>E.enabled&&D(E))}_setUpControls(){this._forEachChild(D=>this._registerControl(D))}_allControlsDisabled(){for(const D of this.controls)if(D.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(D){D.setParent(this),D._registerOnCollectionChange(this._onCollectionChange)}_find(D){return this.at(D)??null}}function na(C){return!!C&&(void 0!==C.asyncValidators||void 0!==C.validators||void 0!==C.updateOn)}let no=(()=>{class C{constructor(){this.useNonNullable=!1}get nonNullable(){const E=new C;return E.useNonNullable=!0,E}group(E,U=null){const Be=this._reduceControls(E);let jt={};return na(U)?jt=U:null!==U&&(jt.validators=U.validator,jt.asyncValidators=U.asyncValidator),new Q(Be,jt)}record(E,U=null){const Be=this._reduceControls(E);return new nt(Be,U)}control(E,U,Be){let jt={};return this.useNonNullable?(na(U)?jt=U:(jt.validators=U,jt.asyncValidators=Be),new sr(E,{...jt,nonNullable:!0})):new sr(E,U,Be)}array(E,U,Be){const jt=E.map(yn=>this._createControl(yn));return new _o(jt,U,Be)}_reduceControls(E){const U={};return Object.keys(E).forEach(Be=>{U[Be]=this._createControl(E[Be])}),U}_createControl(E){return E instanceof sr||E instanceof pe?E:Array.isArray(E)?this.control(E[0],E.length>1?E[1]:null,E.length>2?E[2]:null):this.control(E)}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275prov=d.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})(),cs=(()=>{class C extends no{group(E,U=null){return super.group(E,U)}control(E,U,Be){return super.control(E,U,Be)}array(E,U,Be){return super.array(E,U,Be)}}return C.\u0275fac=function(){let D;return function(U){return(D||(D=d.n5z(C)))(U||C)}}(),C.\u0275prov=d.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})(),Ni=(()=>{class C{static withConfig(E){return{ngModule:C,providers:[{provide:qe,useValue:E.callSetDisabledState??We}]}}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275mod=d.oAB({type:C}),C.\u0275inj=d.cJS({imports:[al]}),C})(),te=(()=>{class C{static withConfig(E){return{ngModule:C,providers:[{provide:va,useValue:E.warnOnNgModelWithFormControl??"always"},{provide:qe,useValue:E.callSetDisabledState??We}]}}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275mod=d.oAB({type:C}),C.\u0275inj=d.cJS({imports:[al]}),C})()},2673:(vn,_t,y)=>{"use strict";y.d(_t,{g:()=>J,k:()=>b});var d=y(4650),i=y(3238),A=y(2687),p=y(1281);let v=0;const k=(0,i.Id)(class{}),f="mat-badge-content";let b=(()=>{class Y extends k{get color(){return this._color}set color(B){this._setColor(B),this._color=B}get overlap(){return this._overlap}set overlap(B){this._overlap=(0,p.Ig)(B)}get content(){return this._content}set content(B){this._updateRenderedContent(B)}get description(){return this._description}set description(B){this._updateHostAriaDescription(B)}get hidden(){return this._hidden}set hidden(B){this._hidden=(0,p.Ig)(B)}constructor(B,Z,G,ie,Ee){super(),this._ngZone=B,this._elementRef=Z,this._ariaDescriber=G,this._renderer=ie,this._animationMode=Ee,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=v++,this._isInitialized=!1}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const B=this._renderer.createElement("span"),Z="mat-badge-active";return B.setAttribute("id",`mat-badge-content-${this._id}`),B.setAttribute("aria-hidden","true"),B.classList.add(f),"NoopAnimations"===this._animationMode&&B.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(B),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{B.classList.add(Z)})}):B.classList.add(Z),B}_updateRenderedContent(B){const Z=`${B??""}`.trim();this._isInitialized&&Z&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=Z),this._content=Z}_updateHostAriaDescription(B){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),B&&this._ariaDescriber.describe(this._elementRef.nativeElement,B),this._description=B}_setColor(B){const Z=this._elementRef.nativeElement.classList;Z.remove(`mat-badge-${this._color}`),B&&Z.add(`mat-badge-${B}`)}_clearExistingBadges(){const B=this._elementRef.nativeElement.querySelectorAll(`:scope > .${f}`);for(const Z of Array.from(B))Z!==this._badgeElement&&Z.remove()}}return Y.\u0275fac=function(B){return new(B||Y)(d.Y36(d.R0b),d.Y36(d.SBq),d.Y36(A.$s),d.Y36(d.Qsj),d.Y36(d.QbO,8))},Y.\u0275dir=d.lG2({type:Y,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(B,Z){2&B&&d.ekj("mat-badge-overlap",Z.overlap)("mat-badge-above",Z.isAbove())("mat-badge-below",!Z.isAbove())("mat-badge-before",!Z.isAfter())("mat-badge-after",Z.isAfter())("mat-badge-small","small"===Z.size)("mat-badge-medium","medium"===Z.size)("mat-badge-large","large"===Z.size)("mat-badge-hidden",Z.hidden||!Z.content)("mat-badge-disabled",Z.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[d.qOj]}),Y})(),J=(()=>{class Y{}return Y.\u0275fac=function(B){return new(B||Y)},Y.\u0275mod=d.oAB({type:Y}),Y.\u0275inj=d.cJS({imports:[A.rt,i.BQ,i.BQ]}),Y})()},4859:(vn,_t,y)=>{"use strict";y.d(_t,{RK:()=>ft,lW:()=>ke,o6:()=>Et,ot:()=>be});var d=y(3353),i=y(4650),A=y(2687),p=y(3238);const v=["mat-button",""],k=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],f=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],J=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",Z=["mat-icon-button",""],G=["*"],Ze=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],Qe=(0,p.pj)((0,p.Id)((0,p.Kr)(class{constructor(Pe){this._elementRef=Pe}})));let vt=(()=>{class Pe extends Qe{constructor(dt,et,gt,Re){super(dt),this._platform=et,this._ngZone=gt,this._animationMode=Re,this._focusMonitor=(0,i.f3M)(A.tE),this._isFab=!1;const we=dt.nativeElement.classList;for(const ce of Ze)this._hasHostAttributes(ce.selector)&&ce.mdcClasses.forEach(ve=>{we.add(ve)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(dt="program",et){dt?this._focusMonitor.focusVia(this._elementRef.nativeElement,dt,et):this._elementRef.nativeElement.focus(et)}_hasHostAttributes(...dt){return dt.some(et=>this._elementRef.nativeElement.hasAttribute(et))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return Pe.\u0275fac=function(dt){i.$Z()},Pe.\u0275dir=i.lG2({type:Pe,viewQuery:function(dt,et){if(1&dt&&i.Gf(p.wG,5),2&dt){let gt;i.iGM(gt=i.CRH())&&(et.ripple=gt.first)}},features:[i.qOj]}),Pe})(),Ce=(()=>{class Pe extends vt{constructor(dt,et,gt,Re){super(dt,et,gt,Re),this._haltDisabledEvents=we=>{this.disabled&&(we.preventDefault(),we.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return Pe.\u0275fac=function(dt){i.$Z()},Pe.\u0275dir=i.lG2({type:Pe,features:[i.qOj]}),Pe})(),ke=(()=>{class Pe extends vt{constructor(dt,et,gt,Re){super(dt,et,gt,Re)}}return Pe.\u0275fac=function(dt){return new(dt||Pe)(i.Y36(i.SBq),i.Y36(d.t4),i.Y36(i.R0b),i.Y36(i.QbO,8))},Pe.\u0275cmp=i.Xpm({type:Pe,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(dt,et){2&dt&&(i.uIk("disabled",et.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode)("mat-unthemed",!et.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:v,ngContentSelectors:f,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(dt,et){1&dt&&(i.F$t(k),i._UZ(0,"span",0),i.Hsn(1),i.TgZ(2,"span",1),i.Hsn(3,1),i.qZA(),i.Hsn(4,2),i._UZ(5,"span",2)(6,"span",3)(7,"span",4)),2&dt&&(i.ekj("mdc-button__ripple",!et._isFab)("mdc-fab__ripple",et._isFab),i.xp6(6),i.Q6J("matRippleDisabled",et._isRippleDisabled())("matRippleTrigger",et._elementRef.nativeElement))},dependencies:[p.wG],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),Pe})(),ft=(()=>{class Pe extends vt{constructor(dt,et,gt,Re){super(dt,et,gt,Re)}}return Pe.\u0275fac=function(dt){return new(dt||Pe)(i.Y36(i.SBq),i.Y36(d.t4),i.Y36(i.R0b),i.Y36(i.QbO,8))},Pe.\u0275cmp=i.Xpm({type:Pe,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(dt,et){2&dt&&(i.uIk("disabled",et.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode)("mat-unthemed",!et.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:Z,ngContentSelectors:G,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(dt,et){1&dt&&(i.F$t(),i._UZ(0,"span",0),i.Hsn(1),i._UZ(2,"span",1)(3,"span",2)(4,"span",3)),2&dt&&(i.xp6(3),i.Q6J("matRippleDisabled",et._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",et._elementRef.nativeElement))},dependencies:[p.wG],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',J],encapsulation:2,changeDetection:0}),Pe})(),Et=(()=>{class Pe extends Ce{constructor(dt,et,gt,Re){super(dt,et,gt,Re)}}return Pe.\u0275fac=function(dt){return new(dt||Pe)(i.Y36(i.SBq),i.Y36(d.t4),i.Y36(i.R0b),i.Y36(i.QbO,8))},Pe.\u0275cmp=i.Xpm({type:Pe,selectors:[["a","mat-icon-button",""]],hostVars:9,hostBindings:function(dt,et){2&dt&&(i.uIk("disabled",et.disabled||null)("tabindex",et.disabled?-1:et.tabIndex)("aria-disabled",et.disabled.toString()),i.ekj("_mat-animation-noopable","NoopAnimations"===et._animationMode)("mat-unthemed",!et.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[i.qOj],attrs:Z,ngContentSelectors:f,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(dt,et){1&dt&&(i.F$t(k),i._UZ(0,"span",0),i.Hsn(1),i.TgZ(2,"span",1),i.Hsn(3,1),i.qZA(),i.Hsn(4,2),i._UZ(5,"span",2)(6,"span",3)(7,"span",4)),2&dt&&(i.ekj("mdc-button__ripple",!et._isFab)("mdc-fab__ripple",et._isFab),i.xp6(6),i.Q6J("matRippleDisabled",et._isRippleDisabled())("matRippleTrigger",et._elementRef.nativeElement))},dependencies:[p.wG],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',J],encapsulation:2,changeDetection:0}),Pe})(),be=(()=>{class Pe{}return Pe.\u0275fac=function(dt){return new(dt||Pe)},Pe.\u0275mod=i.oAB({type:Pe}),Pe.\u0275inj=i.cJS({imports:[p.BQ,p.si,p.BQ]}),Pe})()},3546:(vn,_t,y)=>{"use strict";y.d(_t,{QW:()=>me,a8:()=>Y,dn:()=>Z,n5:()=>W});var d=y(4650),i=y(6895),A=y(3238);const p=["*"],J=new d.OlP("MAT_CARD_CONFIG");let Y=(()=>{class re{constructor(Oe){this.appearance=Oe?.appearance||"raised"}}return re.\u0275fac=function(Oe){return new(Oe||re)(d.Y36(J,8))},re.\u0275cmp=d.Xpm({type:re,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(Oe,Ae){2&Oe&&d.ekj("mat-mdc-card-outlined","outlined"===Ae.appearance)("mdc-card--outlined","outlined"===Ae.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:p,decls:1,vars:0,template:function(Oe,Ae){1&Oe&&(d.F$t(),d.Hsn(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),re})(),W=(()=>{class re{}return re.\u0275fac=function(Oe){return new(Oe||re)},re.\u0275dir=d.lG2({type:re,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]}),re})(),Z=(()=>{class re{}return re.\u0275fac=function(Oe){return new(Oe||re)},re.\u0275dir=d.lG2({type:re,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}),re})(),me=(()=>{class re{}return re.\u0275fac=function(Oe){return new(Oe||re)},re.\u0275mod=d.oAB({type:re}),re.\u0275inj=d.cJS({imports:[A.BQ,i.ez,A.BQ]}),re})()},6709:(vn,_t,y)=>{"use strict";y.d(_t,{oG:()=>Ee,p9:()=>vt});var d=y(4650),i=y(4006),A=y(3238),p=y(1281);const v=["input"],k=["label"],f=["*"],b=new d.OlP("mat-checkbox-default-options",{providedIn:"root",factory:J});function J(){return{color:"accent",clickAction:"check-indeterminate"}}const Y={provide:i.JU,useExisting:(0,d.Gpc)(()=>Ee),multi:!0};class W{}let B=0;const Z=J(),G=(0,A.sb)((0,A.pj)((0,A.Kr)((0,A.Id)(class{constructor($e){this._elementRef=$e}}))));let ie=(()=>{class $e extends G{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(Ce){this._required=(0,p.Ig)(Ce)}constructor(Ce,ke,me,re,ye,Oe,Ae){super(ke),this._changeDetectorRef=me,this._ngZone=re,this._animationMode=Oe,this._options=Ae,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new d.vpe,this.indeterminateChange=new d.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Z,this.color=this.defaultColor=this._options.color||Z.color,this.tabIndex=parseInt(ye)||0,this.id=this._uniqueId=`${Ce}${++B}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(Ce){const ke=(0,p.Ig)(Ce);ke!=this.checked&&(this._checked=ke,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Ce){const ke=(0,p.Ig)(Ce);ke!==this.disabled&&(this._disabled=ke,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(Ce){const ke=Ce!=this._indeterminate;this._indeterminate=(0,p.Ig)(Ce),ke&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(Ce){this.checked=!!Ce}registerOnChange(Ce){this._controlValueAccessorChangeFn=Ce}registerOnTouched(Ce){this._onTouched=Ce}setDisabledState(Ce){this.disabled=Ce}_transitionCheckState(Ce){let ke=this._currentCheckState,me=this._getAnimationTargetElement();if(ke!==Ce&&me&&(this._currentAnimationClass&&me.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(ke,Ce),this._currentCheckState=Ce,this._currentAnimationClass.length>0)){me.classList.add(this._currentAnimationClass);const re=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{me.classList.remove(re)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const Ce=this._options?.clickAction;this.disabled||"noop"===Ce?!this.disabled&&"noop"===Ce&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==Ce&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(Ce){Ce.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(Ce,ke){if("NoopAnimations"===this._animationMode)return"";switch(Ce){case 0:if(1===ke)return this._animationClasses.uncheckedToChecked;if(3==ke)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===ke?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===ke?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===ke?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(Ce){const ke=this._inputElement;ke&&(ke.nativeElement.indeterminate=Ce)}}return $e.\u0275fac=function(Ce){d.$Z()},$e.\u0275dir=d.lG2({type:$e,viewQuery:function(Ce,ke){if(1&Ce&&(d.Gf(v,5),d.Gf(k,5),d.Gf(A.wG,5)),2&Ce){let me;d.iGM(me=d.CRH())&&(ke._inputElement=me.first),d.iGM(me=d.CRH())&&(ke._labelElement=me.first),d.iGM(me=d.CRH())&&(ke.ripple=me.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[d.qOj]}),$e})(),Ee=(()=>{class $e extends ie{constructor(Ce,ke,me,re,ye,Oe){super("mat-mdc-checkbox-",Ce,ke,me,re,ye,Oe),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(Ce){const ke=new W;return ke.source=this,ke.checked=Ce,ke}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(Ce){Ce.target&&this._labelElement.nativeElement.contains(Ce.target)&&Ce.stopPropagation()}}return $e.\u0275fac=function(Ce){return new(Ce||$e)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(d.R0b),d.$8M("tabindex"),d.Y36(d.QbO,8),d.Y36(b,8))},$e.\u0275cmp=d.Xpm({type:$e,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(Ce,ke){2&Ce&&(d.Ikx("id",ke.id),d.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),d.ekj("_mat-animation-noopable","NoopAnimations"===ke._animationMode)("mdc-checkbox--disabled",ke.disabled)("mat-mdc-checkbox-disabled",ke.disabled)("mat-mdc-checkbox-checked",ke.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[d._Bn([Y]),d.qOj],ngContentSelectors:f,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(Ce,ke){if(1&Ce&&(d.F$t(),d.TgZ(0,"div",0),d.NdJ("click",function(re){return ke._preventBubblingFromLabel(re)}),d.TgZ(1,"div",1,2)(3,"div",3),d.NdJ("click",function(){return ke._onTouchTargetClick()}),d.qZA(),d.TgZ(4,"input",4,5),d.NdJ("blur",function(){return ke._onBlur()})("click",function(){return ke._onInputClick()})("change",function(re){return ke._onInteractionEvent(re)}),d.qZA(),d._UZ(6,"div",6),d.TgZ(7,"div",7),d.O4$(),d.TgZ(8,"svg",8),d._UZ(9,"path",9),d.qZA(),d.kcU(),d._UZ(10,"div",10),d.qZA(),d._UZ(11,"div",11),d.qZA(),d.TgZ(12,"label",12,13),d.Hsn(14),d.qZA()()),2&Ce){const me=d.MAs(2);d.ekj("mdc-form-field--align-end","before"==ke.labelPosition),d.xp6(4),d.ekj("mdc-checkbox--selected",ke.checked),d.Q6J("checked",ke.checked)("indeterminate",ke.indeterminate)("disabled",ke.disabled)("id",ke.inputId)("required",ke.required)("tabIndex",ke.tabIndex),d.uIk("aria-label",ke.ariaLabel||null)("aria-labelledby",ke.ariaLabelledby)("aria-describedby",ke.ariaDescribedby)("name",ke.name)("value",ke.value),d.xp6(7),d.Q6J("matRippleTrigger",me)("matRippleDisabled",ke.disableRipple||ke.disabled)("matRippleCentered",!0),d.xp6(1),d.Q6J("for",ke.inputId)}},dependencies:[A.wG],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),$e})(),Qe=(()=>{class $e{}return $e.\u0275fac=function(Ce){return new(Ce||$e)},$e.\u0275mod=d.oAB({type:$e}),$e.\u0275inj=d.cJS({}),$e})(),vt=(()=>{class $e{}return $e.\u0275fac=function(Ce){return new(Ce||$e)},$e.\u0275mod=d.oAB({type:$e}),$e.\u0275inj=d.cJS({imports:[A.BQ,A.si,Qe,A.BQ,Qe]}),$e})()},3238:(vn,_t,y)=>{"use strict";y.d(_t,{yN:()=>vt,mZ:()=>$e,_A:()=>be,rD:()=>ve,sG:()=>Pe,Ad:()=>ft,K7:()=>dn,HF:()=>Me,Y2:()=>lt,BQ:()=>ke,X2:()=>se,uc:()=>V,XK:()=>we,ey:()=>St,Ng:()=>ai,us:()=>ge,wG:()=>Je,si:()=>Lt,IR:()=>fe,CB:()=>cn,jH:()=>Qn,pj:()=>Ae,Kr:()=>tt,Id:()=>Oe,FD:()=>at,dB:()=>pt,sb:()=>ot});var d=y(4650),i=y(2687),A=y(445),v=y(6895),k=y(3353),f=y(1281),b=y(6498),J=y(8929),Y=y(9521);const Z=["text"];function G(ze,de){if(1&ze&&d._UZ(0,"mat-pseudo-checkbox",6),2&ze){const q=d.oxw();d.Q6J("state",q.selected?"checked":"unchecked")("disabled",q.disabled)}}function ie(ze,de){if(1&ze&&d._UZ(0,"mat-pseudo-checkbox",7),2&ze){const q=d.oxw();d.Q6J("disabled",q.disabled)}}function Ee(ze,de){if(1&ze&&(d.TgZ(0,"span",8),d._uU(1),d.qZA()),2&ze){const q=d.oxw();d.xp6(1),d.hij("(",q.group.label,")")}}const ue=[[["mat-icon"]],"*"],Ze=["mat-icon","*"];let vt=(()=>{class ze{}return ze.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",ze.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",ze.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",ze.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",ze})(),$e=(()=>{class ze{}return ze.COMPLEX="375ms",ze.ENTERING="225ms",ze.EXITING="195ms",ze})();const Ce=new d.OlP("mat-sanity-checks",{providedIn:"root",factory:function Ge(){return!0}});let ke=(()=>{class ze{constructor(q,He,yt){this._sanityChecks=He,this._document=yt,this._hasDoneGlobalChecks=!1,q._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(q){return!(0,k.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[q])}}return ze.\u0275fac=function(q){return new(q||ze)(d.LFG(i.qm),d.LFG(Ce,8),d.LFG(v.K0))},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[A.vT,A.vT]}),ze})();function Oe(ze){return class extends ze{get disabled(){return this._disabled}set disabled(de){this._disabled=(0,f.Ig)(de)}constructor(...de){super(...de),this._disabled=!1}}}function Ae(ze,de){return class extends ze{get color(){return this._color}set color(q){const He=q||this.defaultColor;He!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),He&&this._elementRef.nativeElement.classList.add(`mat-${He}`),this._color=He)}constructor(...q){super(...q),this.defaultColor=de,this.color=de}}}function tt(ze){return class extends ze{get disableRipple(){return this._disableRipple}set disableRipple(de){this._disableRipple=(0,f.Ig)(de)}constructor(...de){super(...de),this._disableRipple=!1}}}function ot(ze,de=0){return class extends ze{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(q){this._tabIndex=null!=q?(0,f.su)(q):this.defaultTabIndex}constructor(...q){super(...q),this._tabIndex=de,this.defaultTabIndex=de}}}function at(ze){return class extends ze{updateErrorState(){const de=this.errorState,ht=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ht!==de&&(this.errorState=ht,this.stateChanges.next())}constructor(...de){super(...de),this.errorState=!1}}}function pt(ze){return class extends ze{constructor(...de){super(...de),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new b.y(q=>{this._isInitialized?this._notifySubscriber(q):this._pendingSubscribers.push(q)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(de){de.next(),de.complete()}}}const ft=new d.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Et(){return(0,d.f3M)(d.soG)}});class be{constructor(){this._localeChanges=new J.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(de){return this.isDateInstance(de)&&this.isValid(de)?de:null}deserialize(de){return null==de||this.isDateInstance(de)&&this.isValid(de)?de:this.invalid()}setLocale(de){this.locale=de,this._localeChanges.next()}compareDate(de,q){return this.getYear(de)-this.getYear(q)||this.getMonth(de)-this.getMonth(q)||this.getDate(de)-this.getDate(q)}sameDate(de,q){if(de&&q){let He=this.isValid(de),yt=this.isValid(q);return He&&yt?!this.compareDate(de,q):He==yt}return de==q}clampDate(de,q,He){return q&&this.compareDate(de,q)<0?q:He&&this.compareDate(de,He)>0?He:de}}const Pe=new d.OlP("mat-date-formats"),je=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function dt(ze,de){const q=Array(ze);for(let He=0;He<ze;He++)q[He]=de(He);return q}let et=(()=>{class ze extends be{constructor(q,He){super(),this.useUtcForDisplay=!1,super.setLocale(q)}getYear(q){return q.getFullYear()}getMonth(q){return q.getMonth()}getDate(q){return q.getDate()}getDayOfWeek(q){return q.getDay()}getMonthNames(q){const He=new Intl.DateTimeFormat(this.locale,{month:q,timeZone:"utc"});return dt(12,yt=>this._format(He,new Date(2017,yt,1)))}getDateNames(){const q=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return dt(31,He=>this._format(q,new Date(2017,0,He+1)))}getDayOfWeekNames(q){const He=new Intl.DateTimeFormat(this.locale,{weekday:q,timeZone:"utc"});return dt(7,yt=>this._format(He,new Date(2017,0,yt+1)))}getYearName(q){const He=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(He,q)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(q){return this.getDate(this._createDateWithOverflow(this.getYear(q),this.getMonth(q)+1,0))}clone(q){return new Date(q.getTime())}createDate(q,He,yt){let ht=this._createDateWithOverflow(q,He,yt);return ht.getMonth(),ht}today(){return new Date}parse(q,He){return"number"==typeof q?new Date(q):q?new Date(Date.parse(q)):null}format(q,He){if(!this.isValid(q))throw Error("NativeDateAdapter: Cannot format invalid date.");const yt=new Intl.DateTimeFormat(this.locale,{...He,timeZone:"utc"});return this._format(yt,q)}addCalendarYears(q,He){return this.addCalendarMonths(q,12*He)}addCalendarMonths(q,He){let yt=this._createDateWithOverflow(this.getYear(q),this.getMonth(q)+He,this.getDate(q));return this.getMonth(yt)!=((this.getMonth(q)+He)%12+12)%12&&(yt=this._createDateWithOverflow(this.getYear(yt),this.getMonth(yt),0)),yt}addCalendarDays(q,He){return this._createDateWithOverflow(this.getYear(q),this.getMonth(q),this.getDate(q)+He)}toIso8601(q){return[q.getUTCFullYear(),this._2digit(q.getUTCMonth()+1),this._2digit(q.getUTCDate())].join("-")}deserialize(q){if("string"==typeof q){if(!q)return null;if(je.test(q)){let He=new Date(q);if(this.isValid(He))return He}}return super.deserialize(q)}isDateInstance(q){return q instanceof Date}isValid(q){return!isNaN(q.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(q,He,yt){const ht=new Date;return ht.setFullYear(q,He,yt),ht.setHours(0,0,0,0),ht}_2digit(q){return("00"+q).slice(-2)}_format(q,He){const yt=new Date;return yt.setUTCFullYear(He.getFullYear(),He.getMonth(),He.getDate()),yt.setUTCHours(He.getHours(),He.getMinutes(),He.getSeconds(),He.getMilliseconds()),q.format(yt)}}return ze.\u0275fac=function(q){return new(q||ze)(d.LFG(ft,8),d.LFG(k.t4))},ze.\u0275prov=d.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const gt={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Re=(()=>{class ze{}return ze.\u0275fac=function(q){return new(q||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({providers:[{provide:be,useClass:et}]}),ze})(),we=(()=>{class ze{}return ze.\u0275fac=function(q){return new(q||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({providers:[{provide:Pe,useValue:gt}],imports:[Re]}),ze})(),ve=(()=>{class ze{isErrorState(q,He){return!!(q&&q.invalid&&(q.touched||He&&He.submitted))}}return ze.\u0275fac=function(q){return new(q||ze)},ze.\u0275prov=d.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),se=(()=>{class ze{}return ze.\u0275fac=function(q){return new(q||ze)},ze.\u0275dir=d.lG2({type:ze,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),ze})(),V=(()=>{class ze{}return ze.\u0275fac=function(q){return new(q||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[ke,ke]}),ze})();class ne{constructor(de,q,He,yt=!1){this._renderer=de,this.element=q,this.config=He,this._animationForciblyDisabledThroughCss=yt,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const De=(0,k.i$)({passive:!0,capture:!0});class wt{constructor(){this._events=new Map,this._delegateEventHandler=de=>{const q=(0,k.sA)(de);q&&this._events.get(de.type)?.forEach((He,yt)=>{(yt===q||yt.contains(q))&&He.forEach(ht=>ht.handleEvent(de))})}}addHandler(de,q,He,yt){const ht=this._events.get(q);if(ht){const le=ht.get(He);le?le.add(yt):ht.set(He,new Set([yt]))}else this._events.set(q,new Map([[He,new Set([yt])]])),de.runOutsideAngular(()=>{document.addEventListener(q,this._delegateEventHandler,De)})}removeHandler(de,q,He){const yt=this._events.get(de);if(!yt)return;const ht=yt.get(q);ht&&(ht.delete(He),0===ht.size&&yt.delete(q),0===yt.size&&(this._events.delete(de),document.removeEventListener(de,this._delegateEventHandler,De)))}}const nn={enterDuration:225,exitDuration:150},un=(0,k.i$)({passive:!0,capture:!0}),Zt=["mousedown","touchstart"],zt=["mouseup","mouseleave","touchend","touchcancel"];class fe{constructor(de,q,He,yt){this._target=de,this._ngZone=q,this._platform=yt,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,yt.isBrowser&&(this._containerElement=(0,f.fI)(He))}fadeInRipple(de,q,He={}){const yt=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ht={...nn,...He.animation};He.centered&&(de=yt.left+yt.width/2,q=yt.top+yt.height/2);const le=He.radius||function Te(ze,de,q){const He=Math.max(Math.abs(ze-q.left),Math.abs(ze-q.right)),yt=Math.max(Math.abs(de-q.top),Math.abs(de-q.bottom));return Math.sqrt(He*He+yt*yt)}(de,q,yt),pe=de-yt.left,Q=q-yt.top,Fe=ht.enterDuration,xt=document.createElement("div");xt.classList.add("mat-ripple-element"),xt.style.left=pe-le+"px",xt.style.top=Q-le+"px",xt.style.height=2*le+"px",xt.style.width=2*le+"px",null!=He.color&&(xt.style.backgroundColor=He.color),xt.style.transitionDuration=`${Fe}ms`,this._containerElement.appendChild(xt);const nt=window.getComputedStyle(xt),qe=nt.transitionDuration,We="none"===nt.transitionProperty||"0s"===qe||"0s, 0s"===qe||0===yt.width&&0===yt.height,Rt=new ne(this,xt,He,We);xt.style.transform="scale3d(1, 1, 1)",Rt.state=0,He.persistent||(this._mostRecentTransientRipple=Rt);let Ve=null;return!We&&(Fe||ht.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const At=()=>this._finishRippleTransition(Rt),fn=()=>this._destroyRipple(Rt);xt.addEventListener("transitionend",At),xt.addEventListener("transitioncancel",fn),Ve={onTransitionEnd:At,onTransitionCancel:fn}}),this._activeRipples.set(Rt,Ve),(We||!Fe)&&this._finishRippleTransition(Rt),Rt}fadeOutRipple(de){if(2===de.state||3===de.state)return;const q=de.element,He={...nn,...de.config.animation};q.style.transitionDuration=`${He.exitDuration}ms`,q.style.opacity="0",de.state=2,(de._animationForciblyDisabledThroughCss||!He.exitDuration)&&this._finishRippleTransition(de)}fadeOutAll(){this._getActiveRipples().forEach(de=>de.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(de=>{de.config.persistent||de.fadeOut()})}setupTriggerEvents(de){const q=(0,f.fI)(de);!this._platform.isBrowser||!q||q===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=q,Zt.forEach(He=>{fe._eventManager.addHandler(this._ngZone,He,q,this)}))}handleEvent(de){"mousedown"===de.type?this._onMousedown(de):"touchstart"===de.type?this._onTouchStart(de):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{zt.forEach(q=>{this._triggerElement.addEventListener(q,this,un)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(de){0===de.state?this._startFadeOutTransition(de):2===de.state&&this._destroyRipple(de)}_startFadeOutTransition(de){const q=de===this._mostRecentTransientRipple,{persistent:He}=de.config;de.state=1,!He&&(!q||!this._isPointerDown)&&de.fadeOut()}_destroyRipple(de){const q=this._activeRipples.get(de)??null;this._activeRipples.delete(de),this._activeRipples.size||(this._containerRect=null),de===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),de.state=3,null!==q&&(de.element.removeEventListener("transitionend",q.onTransitionEnd),de.element.removeEventListener("transitioncancel",q.onTransitionCancel)),de.element.remove()}_onMousedown(de){const q=(0,i.X6)(de),He=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!q&&!He&&(this._isPointerDown=!0,this.fadeInRipple(de.clientX,de.clientY,this._target.rippleConfig))}_onTouchStart(de){if(!this._target.rippleDisabled&&!(0,i.yG)(de)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const q=de.changedTouches;for(let He=0;He<q.length;He++)this.fadeInRipple(q[He].clientX,q[He].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(de=>{!de.config.persistent&&(1===de.state||de.config.terminateOnPointerUp&&0===de.state)&&de.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const de=this._triggerElement;de&&(Zt.forEach(q=>fe._eventManager.removeHandler(q,de,this)),this._pointerUpEventsRegistered&&zt.forEach(q=>de.removeEventListener(q,this,un)))}}fe._eventManager=new wt;const lt=new d.OlP("mat-ripple-global-options");let Je=(()=>{class ze{get disabled(){return this._disabled}set disabled(q){q&&this.fadeOutAllNonPersistent(),this._disabled=q,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(q){this._trigger=q,this._setupTriggerEventsIfEnabled()}constructor(q,He,yt,ht,le){this._elementRef=q,this._animationMode=le,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ht||{},this._rippleRenderer=new fe(this,He,q,yt)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(q,He=0,yt){return"number"==typeof q?this._rippleRenderer.fadeInRipple(q,He,{...this.rippleConfig,...yt}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...q})}}return ze.\u0275fac=function(q){return new(q||ze)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(k.t4),d.Y36(lt,8),d.Y36(d.QbO,8))},ze.\u0275dir=d.lG2({type:ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(q,He){2&q&&d.ekj("mat-ripple-unbounded",He.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),ze})(),Lt=(()=>{class ze{}return ze.\u0275fac=function(q){return new(q||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[ke,ke]}),ze})(),Ke=(()=>{class ze{constructor(q){this._animationMode=q,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return ze.\u0275fac=function(q){return new(q||ze)(d.Y36(d.QbO,8))},ze.\u0275cmp=d.Xpm({type:ze,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(q,He){2&q&&d.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===He.state)("mat-pseudo-checkbox-checked","checked"===He.state)("mat-pseudo-checkbox-disabled",He.disabled)("mat-pseudo-checkbox-minimal","minimal"===He.appearance)("mat-pseudo-checkbox-full","full"===He.appearance)("_mat-animation-noopable","NoopAnimations"===He._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(q,He){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),ze})(),ge=(()=>{class ze{}return ze.\u0275fac=function(q){return new(q||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[ke]}),ze})();const Me=new d.OlP("MAT_OPTION_PARENT_COMPONENT"),dn=new d.OlP("MatOptgroup");let An=0;class Gt{constructor(de,q=!1){this.source=de,this.isUserInput=q}}let gn=(()=>{class ze{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(q){this._disabled=(0,f.Ig)(q)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(q,He,yt,ht){this._element=q,this._changeDetectorRef=He,this._parent=yt,this.group=ht,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+An++,this.onSelectionChange=new d.vpe,this._stateChanges=new J.xQ}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(q,He){const yt=this._getHostElement();"function"==typeof yt.focus&&yt.focus(He)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(q){(q.keyCode===Y.K5||q.keyCode===Y.L_)&&!(0,Y.Vb)(q)&&(this._selectViaInteraction(),q.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const q=this.viewValue;q!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=q)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(q=!1){this.onSelectionChange.emit(new Gt(this,q))}}return ze.\u0275fac=function(q){d.$Z()},ze.\u0275dir=d.lG2({type:ze,viewQuery:function(q,He){if(1&q&&d.Gf(Z,7),2&q){let yt;d.iGM(yt=d.CRH())&&(He._text=yt.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ze})(),St=(()=>{class ze extends gn{constructor(q,He,yt,ht){super(q,He,yt,ht)}}return ze.\u0275fac=function(q){return new(q||ze)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(Me,8),d.Y36(dn,8))},ze.\u0275cmp=d.Xpm({type:ze,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(q,He){1&q&&d.NdJ("click",function(){return He._selectViaInteraction()})("keydown",function(ht){return He._handleKeydown(ht)}),2&q&&(d.Ikx("id",He.id),d.uIk("aria-selected",He.selected)("aria-disabled",He.disabled.toString()),d.ekj("mdc-list-item--selected",He.selected)("mat-mdc-option-multiple",He.multiple)("mat-mdc-option-active",He.active)("mdc-list-item--disabled",He.disabled))},exportAs:["matOption"],features:[d.qOj],ngContentSelectors:Ze,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(q,He){1&q&&(d.F$t(ue),d.YNc(0,G,1,2,"mat-pseudo-checkbox",0),d.Hsn(1),d.TgZ(2,"span",1,2),d.Hsn(4,1),d.qZA(),d.YNc(5,ie,1,1,"mat-pseudo-checkbox",3),d.YNc(6,Ee,2,1,"span",4),d._UZ(7,"div",5)),2&q&&(d.Q6J("ngIf",He.multiple),d.xp6(5),d.Q6J("ngIf",!He.multiple&&He.selected&&!He.hideSingleSelectionIndicator),d.xp6(1),d.Q6J("ngIf",He.group&&He.group._inert),d.xp6(1),d.Q6J("matRippleTrigger",He._getHostElement())("matRippleDisabled",He.disabled||He.disableRipple))},dependencies:[Je,v.O5,Ke],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),ze})();function cn(ze,de,q){if(q.length){let He=de.toArray(),yt=q.toArray(),ht=0;for(let le=0;le<ze+1;le++)He[le].group&&He[le].group===yt[ht]&&ht++;return ht}return 0}function Qn(ze,de,q,He){return ze<q?ze:ze+de>q+He?Math.max(0,ze-He+de):q}let ai=(()=>{class ze{}return ze.\u0275fac=function(q){return new(q||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[Lt,v.ez,ke,ge]}),ze})()},9602:(vn,_t,y)=>{"use strict";y.d(_t,{By:()=>Ft,C0:()=>Jt,FA:()=>wn,Mq:()=>Fe,_H:()=>ze,_g:()=>Hn,hl:()=>Rt,nW:()=>At,q_:()=>Lt,wx:()=>Tn,zY:()=>ut});var d=y(2687),i=y(8184),A=y(4080),p=y(6895),v=y(4650),k=y(4859),f=y(7261),b=y(3238),J=y(8929),Y=y(2654),W=y(6787),B=y(1086),Z=y(9521),G=y(445),ie=y(3353),Ee=y(2986),ue=y(1059),Ze=y(2198),Qe=y(1281),vt=y(7340),$e=y(4006),Ge=y(9549),Ce=y(4144);const ke=["mat-calendar-body",""];function me(rt,Nt){if(1&rt&&(v.TgZ(0,"tr",3)(1,"td",4),v._uU(2),v.qZA()()),2&rt){const P=v.oxw();v.xp6(1),v.Udp("padding-top",P._cellPadding)("padding-bottom",P._cellPadding),v.uIk("colspan",P.numCols),v.xp6(1),v.hij(" ",P.label," ")}}function re(rt,Nt){if(1&rt&&(v.TgZ(0,"td",4),v._uU(1),v.qZA()),2&rt){const P=v.oxw(2);v.Udp("padding-top",P._cellPadding)("padding-bottom",P._cellPadding),v.uIk("colspan",P._firstRowOffset),v.xp6(1),v.hij(" ",P._firstRowOffset>=P.labelMinRequiredCells?P.label:""," ")}}function ye(rt,Nt){if(1&rt){const P=v.EpF();v.TgZ(0,"td",8)(1,"button",9),v.NdJ("click",function(st){const Mn=v.CHM(P).$implicit,Ei=v.oxw(2);return v.KtG(Ei._cellClicked(Mn,st))})("focus",function(st){const Mn=v.CHM(P).$implicit,Ei=v.oxw(2);return v.KtG(Ei._emitActiveDateChange(Mn,st))}),v.TgZ(2,"span",10),v._uU(3),v.qZA(),v._UZ(4,"span",11),v.qZA()()}if(2&rt){const P=Nt.$implicit,xe=Nt.index,st=v.oxw().index,It=v.oxw();v.Udp("width",It._cellWidth)("padding-top",It._cellPadding)("padding-bottom",It._cellPadding),v.uIk("data-mat-row",st)("data-mat-col",xe),v.xp6(1),v.ekj("mat-calendar-body-disabled",!P.enabled)("mat-calendar-body-active",It._isActiveCell(st,xe))("mat-calendar-body-range-start",It._isRangeStart(P.compareValue))("mat-calendar-body-range-end",It._isRangeEnd(P.compareValue))("mat-calendar-body-in-range",It._isInRange(P.compareValue))("mat-calendar-body-comparison-bridge-start",It._isComparisonBridgeStart(P.compareValue,st,xe))("mat-calendar-body-comparison-bridge-end",It._isComparisonBridgeEnd(P.compareValue,st,xe))("mat-calendar-body-comparison-start",It._isComparisonStart(P.compareValue))("mat-calendar-body-comparison-end",It._isComparisonEnd(P.compareValue))("mat-calendar-body-in-comparison-range",It._isInComparisonRange(P.compareValue))("mat-calendar-body-preview-start",It._isPreviewStart(P.compareValue))("mat-calendar-body-preview-end",It._isPreviewEnd(P.compareValue))("mat-calendar-body-in-preview",It._isInPreview(P.compareValue)),v.Q6J("ngClass",P.cssClasses)("tabindex",It._isActiveCell(st,xe)?0:-1),v.uIk("aria-label",P.ariaLabel)("aria-disabled",!P.enabled||null)("aria-pressed",It._isSelected(P.compareValue))("aria-current",It.todayValue===P.compareValue?"date":null)("aria-describedby",It._getDescribedby(P.compareValue)),v.xp6(1),v.ekj("mat-calendar-body-selected",It._isSelected(P.compareValue))("mat-calendar-body-comparison-identical",It._isComparisonIdentical(P.compareValue))("mat-calendar-body-today",It.todayValue===P.compareValue),v.xp6(1),v.hij(" ",P.displayValue," ")}}function Oe(rt,Nt){if(1&rt&&(v.TgZ(0,"tr",5),v.YNc(1,re,2,6,"td",6),v.YNc(2,ye,5,48,"td",7),v.qZA()),2&rt){const P=Nt.$implicit,xe=Nt.index,st=v.oxw();v.xp6(1),v.Q6J("ngIf",0===xe&&st._firstRowOffset),v.xp6(1),v.Q6J("ngForOf",P)}}function Ae(rt,Nt){if(1&rt&&(v.TgZ(0,"th",5)(1,"span",6),v._uU(2),v.qZA(),v.TgZ(3,"span",7),v._uU(4),v.qZA()()),2&rt){const P=Nt.$implicit;v.xp6(2),v.Oqu(P.long),v.xp6(2),v.Oqu(P.narrow)}}const tt=["*"];function ot(rt,Nt){}function at(rt,Nt){if(1&rt){const P=v.EpF();v.TgZ(0,"mat-month-view",5),v.NdJ("activeDateChange",function(st){v.CHM(P);const It=v.oxw();return v.KtG(It.activeDate=st)})("_userSelection",function(st){v.CHM(P);const It=v.oxw();return v.KtG(It._dateSelected(st))})("dragStarted",function(st){v.CHM(P);const It=v.oxw();return v.KtG(It._dragStarted(st))})("dragEnded",function(st){v.CHM(P);const It=v.oxw();return v.KtG(It._dragEnded(st))}),v.qZA()}if(2&rt){const P=v.oxw();v.Q6J("activeDate",P.activeDate)("selected",P.selected)("dateFilter",P.dateFilter)("maxDate",P.maxDate)("minDate",P.minDate)("dateClass",P.dateClass)("comparisonStart",P.comparisonStart)("comparisonEnd",P.comparisonEnd)("startDateAccessibleName",P.startDateAccessibleName)("endDateAccessibleName",P.endDateAccessibleName)("activeDrag",P._activeDrag)}}function pt(rt,Nt){if(1&rt){const P=v.EpF();v.TgZ(0,"mat-year-view",6),v.NdJ("activeDateChange",function(st){v.CHM(P);const It=v.oxw();return v.KtG(It.activeDate=st)})("monthSelected",function(st){v.CHM(P);const It=v.oxw();return v.KtG(It._monthSelectedInYearView(st))})("selectedChange",function(st){v.CHM(P);const It=v.oxw();return v.KtG(It._goToDateInView(st,"month"))}),v.qZA()}if(2&rt){const P=v.oxw();v.Q6J("activeDate",P.activeDate)("selected",P.selected)("dateFilter",P.dateFilter)("maxDate",P.maxDate)("minDate",P.minDate)("dateClass",P.dateClass)}}function ft(rt,Nt){if(1&rt){const P=v.EpF();v.TgZ(0,"mat-multi-year-view",7),v.NdJ("activeDateChange",function(st){v.CHM(P);const It=v.oxw();return v.KtG(It.activeDate=st)})("yearSelected",function(st){v.CHM(P);const It=v.oxw();return v.KtG(It._yearSelectedInMultiYearView(st))})("selectedChange",function(st){v.CHM(P);const It=v.oxw();return v.KtG(It._goToDateInView(st,"year"))}),v.qZA()}if(2&rt){const P=v.oxw();v.Q6J("activeDate",P.activeDate)("selected",P.selected)("dateFilter",P.dateFilter)("maxDate",P.maxDate)("minDate",P.minDate)("dateClass",P.dateClass)}}function Et(rt,Nt){}const be=["button"];function Pe(rt,Nt){1&rt&&(v.O4$(),v.TgZ(0,"svg",3),v._UZ(1,"path",4),v.qZA())}const je=[[["","matDatepickerToggleIcon",""]]],dt=["[matDatepickerToggleIcon]"],et=[[["input","matStartDate",""]],[["input","matEndDate",""]]],gt=["input[matStartDate]","input[matEndDate]"];let ce=(()=>{class rt{constructor(){this.changes=new J.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(P,xe){return`${P} \u2013 ${xe}`}formatYearRangeLabel(P,xe){return`${P} to ${xe}`}}return rt.\u0275fac=function(P){return new(P||rt)},rt.\u0275prov=v.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"}),rt})();class ve{constructor(Nt,P,xe,st,It={},Mn=Nt,Ei){this.value=Nt,this.displayValue=P,this.ariaLabel=xe,this.enabled=st,this.cssClasses=It,this.compareValue=Mn,this.rawValue=Ei}}let se=1,S=(()=>{class rt{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(P,xe){this._elementRef=P,this._ngZone=xe,this._platform=(0,v.f3M)(ie.t4),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new v.vpe,this.previewChange=new v.vpe,this.activeDateChange=new v.vpe,this.dragStarted=new v.vpe,this.dragEnded=new v.vpe,this._didDragSinceMouseDown=!1,this._enterHandler=st=>{if(this._skipNextFocus&&"focus"===st.type)this._skipNextFocus=!1;else if(st.target&&this.isRange){const It=this._getCellFromElement(st.target);It&&this._ngZone.run(()=>this.previewChange.emit({value:It.enabled?It:null,event:st}))}},this._touchmoveHandler=st=>{if(!this.isRange)return;const It=nn(st),Mn=It?this._getCellFromElement(It):null;It!==st.target&&(this._didDragSinceMouseDown=!0),V(st.target)&&st.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:Mn?.enabled?Mn:null,event:st}))},this._leaveHandler=st=>{null!==this.previewEnd&&this.isRange&&("blur"!==st.type&&(this._didDragSinceMouseDown=!0),st.target&&this._getCellFromElement(st.target)&&(!st.relatedTarget||!this._getCellFromElement(st.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:st})))},this._mousedownHandler=st=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const It=st.target&&this._getCellFromElement(st.target);!It||!this._isInRange(It.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:It.rawValue,event:st})})},this._mouseupHandler=st=>{if(!this.isRange)return;const It=V(st.target);It?It.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const Mn=this._getCellFromElement(It);this.dragEnded.emit({value:Mn?.rawValue??null,event:st})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:st})})},this._touchendHandler=st=>{const It=nn(st);It&&this._mouseupHandler({target:It})},this._id="mat-calendar-body-"+se++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,xe.runOutsideAngular(()=>{const st=P.nativeElement;st.addEventListener("mouseenter",this._enterHandler,!0),st.addEventListener("touchmove",this._touchmoveHandler,!0),st.addEventListener("focus",this._enterHandler,!0),st.addEventListener("mouseleave",this._leaveHandler,!0),st.addEventListener("blur",this._leaveHandler,!0),st.addEventListener("mousedown",this._mousedownHandler),st.addEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(P,xe){this._didDragSinceMouseDown||P.enabled&&this.selectedValueChange.emit({value:P.value,event:xe})}_emitActiveDateChange(P,xe){P.enabled&&this.activeDateChange.emit({value:P.value,event:xe})}_isSelected(P){return this.startValue===P||this.endValue===P}ngOnChanges(P){const xe=P.numCols,{rows:st,numCols:It}=this;(P.rows||xe)&&(this._firstRowOffset=st&&st.length&&st[0].length?It-st[0].length:0),(P.cellAspectRatio||xe||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/It+"%"),(xe||!this._cellWidth)&&(this._cellWidth=100/It+"%")}ngOnDestroy(){const P=this._elementRef.nativeElement;P.removeEventListener("mouseenter",this._enterHandler,!0),P.removeEventListener("touchmove",this._touchmoveHandler,!0),P.removeEventListener("focus",this._enterHandler,!0),P.removeEventListener("mouseleave",this._leaveHandler,!0),P.removeEventListener("blur",this._leaveHandler,!0),P.removeEventListener("mousedown",this._mousedownHandler),P.removeEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(P,xe){let st=P*this.numCols+xe;return P&&(st-=this._firstRowOffset),st==this.activeCell}_focusActiveCell(P=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Ee.q)(1)).subscribe(()=>{setTimeout(()=>{const xe=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");xe&&(P||(this._skipNextFocus=!0),xe.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(P){return ne(P,this.startValue,this.endValue)}_isRangeEnd(P){return De(P,this.startValue,this.endValue)}_isInRange(P){return wt(P,this.startValue,this.endValue,this.isRange)}_isComparisonStart(P){return ne(P,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(P,xe,st){if(!this._isComparisonStart(P)||this._isRangeStart(P)||!this._isInRange(P))return!1;let It=this.rows[xe][st-1];if(!It){const Mn=this.rows[xe-1];It=Mn&&Mn[Mn.length-1]}return It&&!this._isRangeEnd(It.compareValue)}_isComparisonBridgeEnd(P,xe,st){if(!this._isComparisonEnd(P)||this._isRangeEnd(P)||!this._isInRange(P))return!1;let It=this.rows[xe][st+1];if(!It){const Mn=this.rows[xe+1];It=Mn&&Mn[0]}return It&&!this._isRangeStart(It.compareValue)}_isComparisonEnd(P){return De(P,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(P){return wt(P,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(P){return this.comparisonStart===this.comparisonEnd&&P===this.comparisonStart}_isPreviewStart(P){return ne(P,this.previewStart,this.previewEnd)}_isPreviewEnd(P){return De(P,this.previewStart,this.previewEnd)}_isInPreview(P){return wt(P,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(P){return this.isRange?this.startValue===P&&this.endValue===P?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===P?this._startDateLabelId:this.endValue===P?this._endDateLabelId:null:null}_getCellFromElement(P){const xe=V(P);if(xe){const st=xe.getAttribute("data-mat-row"),It=xe.getAttribute("data-mat-col");if(st&&It)return this.rows[parseInt(st)][parseInt(It)]}return null}}return rt.\u0275fac=function(P){return new(P||rt)(v.Y36(v.SBq),v.Y36(v.R0b))},rt.\u0275cmp=v.Xpm({type:rt,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[v.TTD],attrs:ke,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(P,xe){1&P&&(v.YNc(0,me,3,6,"tr",0),v.YNc(1,Oe,3,2,"tr",1),v.TgZ(2,"label",2),v._uU(3),v.qZA(),v.TgZ(4,"label",2),v._uU(5),v.qZA()),2&P&&(v.Q6J("ngIf",xe._firstRowOffset<xe.labelMinRequiredCells),v.xp6(1),v.Q6J("ngForOf",xe.rows),v.xp6(1),v.Q6J("id",xe._startDateLabelId),v.xp6(1),v.hij(" ",xe.startDateAccessibleName,"\n"),v.xp6(1),v.Q6J("id",xe._endDateLabelId),v.xp6(1),v.hij(" ",xe.endDateAccessibleName,"\n"))},dependencies:[p.mk,p.sg,p.O5],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0}),rt})();function F(rt){return"TD"===rt?.nodeName}function V(rt){let Nt;return F(rt)?Nt=rt:F(rt.parentNode)?Nt=rt.parentNode:F(rt.parentNode?.parentNode)&&(Nt=rt.parentNode.parentNode),null!=Nt?.getAttribute("data-mat-row")?Nt:null}function ne(rt,Nt,P){return null!==P&&Nt!==P&&rt<P&&rt===Nt}function De(rt,Nt,P){return null!==Nt&&Nt!==P&&rt>=Nt&&rt===P}function wt(rt,Nt,P,xe){return xe&&null!==Nt&&null!==P&&Nt!==P&&rt>=Nt&&rt<=P}function nn(rt){const Nt=rt.changedTouches[0];return document.elementFromPoint(Nt.clientX,Nt.clientY)}class Jt{constructor(Nt,P){this.start=Nt,this.end=P}}let un=(()=>{class rt{constructor(P,xe){this.selection=P,this._adapter=xe,this._selectionChanged=new J.xQ,this.selectionChanged=this._selectionChanged,this.selection=P}updateSelection(P,xe){const st=this.selection;this.selection=P,this._selectionChanged.next({selection:P,source:xe,oldValue:st})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(P){return this._adapter.isDateInstance(P)&&this._adapter.isValid(P)}}return rt.\u0275fac=function(P){v.$Z()},rt.\u0275prov=v.Yz7({token:rt,factory:rt.\u0275fac}),rt})(),Zt=(()=>{class rt extends un{constructor(P){super(null,P)}add(P){super.updateSelection(P,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const P=new rt(this._adapter);return P.updateSelection(this.selection,this),P}}return rt.\u0275fac=function(P){return new(P||rt)(v.LFG(b._A))},rt.\u0275prov=v.Yz7({token:rt,factory:rt.\u0275fac}),rt})(),zt=(()=>{class rt extends un{constructor(P){super(new Jt(null,null),P)}add(P){let{start:xe,end:st}=this.selection;null==xe?xe=P:null==st?st=P:(xe=P,st=null),super.updateSelection(new Jt(xe,st),this)}isValid(){const{start:P,end:xe}=this.selection;return null==P&&null==xe||(null!=P&&null!=xe?this._isValidDateInstance(P)&&this._isValidDateInstance(xe)&&this._adapter.compareDate(P,xe)<=0:(null==P||this._isValidDateInstance(P))&&(null==xe||this._isValidDateInstance(xe)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const P=new rt(this._adapter);return P.updateSelection(this.selection,this),P}}return rt.\u0275fac=function(P){return new(P||rt)(v.LFG(b._A))},rt.\u0275prov=v.Yz7({token:rt,factory:rt.\u0275fac}),rt})();const Te={provide:un,deps:[[new v.FiY,new v.tp0,un],b._A],useFactory:function fe(rt,Nt){return rt||new Zt(Nt)}},Je={provide:un,deps:[[new v.FiY,new v.tp0,un],b._A],useFactory:function lt(rt,Nt){return rt||new zt(Nt)}},Lt=new v.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let Ke=(()=>{class rt{constructor(P){this._dateAdapter=P}selectionFinished(P,xe){let{start:st,end:It}=xe;return null==st?st=P:null==It&&P&&this._dateAdapter.compareDate(P,st)>=0?It=P:(st=P,It=null),new Jt(st,It)}createPreview(P,xe){let st=null,It=null;return xe.start&&!xe.end&&P&&(st=xe.start,It=P),new Jt(st,It)}createDrag(P,xe,st){let It=xe.start,Mn=xe.end;if(!It||!Mn)return null;const Ei=this._dateAdapter,Ai=0!==Ei.compareDate(It,Mn),sr=Ei.getYear(st)-Ei.getYear(P),kr=Ei.getMonth(st)-Ei.getMonth(P),Li=Ei.getDate(st)-Ei.getDate(P);return Ai&&Ei.sameDate(P,xe.start)?(It=st,Ei.compareDate(st,Mn)>0&&(Mn=Ei.addCalendarYears(Mn,sr),Mn=Ei.addCalendarMonths(Mn,kr),Mn=Ei.addCalendarDays(Mn,Li))):Ai&&Ei.sameDate(P,xe.end)?(Mn=st,Ei.compareDate(st,It)<0&&(It=Ei.addCalendarYears(It,sr),It=Ei.addCalendarMonths(It,kr),It=Ei.addCalendarDays(It,Li))):(It=Ei.addCalendarYears(It,sr),It=Ei.addCalendarMonths(It,kr),It=Ei.addCalendarDays(It,Li),Mn=Ei.addCalendarYears(Mn,sr),Mn=Ei.addCalendarMonths(Mn,kr),Mn=Ei.addCalendarDays(Mn,Li)),new Jt(It,Mn)}}return rt.\u0275fac=function(P){return new(P||rt)(v.LFG(b._A))},rt.\u0275prov=v.Yz7({token:rt,factory:rt.\u0275fac}),rt})();const Me={provide:Lt,deps:[[new v.FiY,new v.tp0,Lt],b._A],useFactory:function ge(rt,Nt){return rt||new Ke(Nt)}};let it=(()=>{class rt{get activeDate(){return this._activeDate}set activeDate(P){const xe=this._activeDate,st=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(st,this.minDate,this.maxDate),this._hasSameMonthAndYear(xe,this._activeDate)||this._init()}get selected(){return this._selected}set selected(P){this._selected=P instanceof Jt?P:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(P){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P))}get maxDate(){return this._maxDate}set maxDate(P){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P))}constructor(P,xe,st,It,Mn){this._changeDetectorRef=P,this._dateFormats=xe,this._dateAdapter=st,this._dir=It,this._rangeStrategy=Mn,this._rerenderSubscription=Y.w.EMPTY,this.activeDrag=null,this.selectedChange=new v.vpe,this._userSelection=new v.vpe,this.dragStarted=new v.vpe,this.dragEnded=new v.vpe,this.activeDateChange=new v.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ue.O)(null)).subscribe(()=>this._init())}ngOnChanges(P){const xe=P.comparisonStart||P.comparisonEnd;xe&&!xe.firstChange&&this._setRanges(this.selected),P.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(P){const xe=P.value,st=this._getDateFromDayOfMonth(xe);let It,Mn;this._selected instanceof Jt?(It=this._getDateInCurrentMonth(this._selected.start),Mn=this._getDateInCurrentMonth(this._selected.end)):It=Mn=this._getDateInCurrentMonth(this._selected),(It!==xe||Mn!==xe)&&this.selectedChange.emit(st),this._userSelection.emit({value:st,event:P.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(P){const st=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(P.value),this._dateAdapter.compareDate(st,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(P){const xe=this._activeDate,st=this._isRtl();switch(P.keyCode){case Z.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,st?1:-1);break;case Z.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,st?-1:1);break;case Z.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case Z.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case Z.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case Z.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case Z.Ku:this.activeDate=P.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case Z.VM:this.activeDate=P.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case Z.K5:case Z.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&P.preventDefault());case Z.hY:return void(null!=this._previewEnd&&!(0,Z.Vb)(P)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:P}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:P})),P.preventDefault(),P.stopPropagation()));default:return}this._dateAdapter.compareDate(xe,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),P.preventDefault()}_handleCalendarBodyKeyup(P){(P.keyCode===Z.L_||P.keyCode===Z.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:P}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let P=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(P)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(P){this._matCalendarBody._focusActiveCell(P)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:P,value:xe}){if(this._rangeStrategy){const st=xe?xe.rawValue:null,It=this._rangeStrategy.createPreview(st,this.selected,P);if(this._previewStart=this._getCellCompareValue(It.start),this._previewEnd=this._getCellCompareValue(It.end),this.activeDrag&&st){const Mn=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,st,P);Mn&&(this._previewStart=this._getCellCompareValue(Mn.start),this._previewEnd=this._getCellCompareValue(Mn.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(P){if(this.activeDrag)if(P.value){const xe=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,P.value,P.event);this.dragEnded.emit({value:xe??null,event:P.event})}else this.dragEnded.emit({value:null,event:P.event})}_getDateFromDayOfMonth(P){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),P)}_initWeekdays(){const P=this._dateAdapter.getFirstDayOfWeek(),xe=this._dateAdapter.getDayOfWeekNames("narrow");let It=this._dateAdapter.getDayOfWeekNames("long").map((Mn,Ei)=>({long:Mn,narrow:xe[Ei]}));this._weekdays=It.slice(P).concat(It.slice(0,P))}_createWeekCells(){const P=this._dateAdapter.getNumDaysInMonth(this.activeDate),xe=this._dateAdapter.getDateNames();this._weeks=[[]];for(let st=0,It=this._firstWeekOffset;st<P;st++,It++){7==It&&(this._weeks.push([]),It=0);const Mn=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),st+1),Ei=this._shouldEnableDate(Mn),Ai=this._dateAdapter.format(Mn,this._dateFormats.display.dateA11yLabel),sr=this.dateClass?this.dateClass(Mn,"month"):void 0;this._weeks[this._weeks.length-1].push(new ve(st+1,xe[st],Ai,Ei,sr,this._getCellCompareValue(Mn),Mn))}}_shouldEnableDate(P){return!!P&&(!this.minDate||this._dateAdapter.compareDate(P,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(P,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(P))}_getDateInCurrentMonth(P){return P&&this._hasSameMonthAndYear(P,this.activeDate)?this._dateAdapter.getDate(P):null}_hasSameMonthAndYear(P,xe){return!(!P||!xe||this._dateAdapter.getMonth(P)!=this._dateAdapter.getMonth(xe)||this._dateAdapter.getYear(P)!=this._dateAdapter.getYear(xe))}_getCellCompareValue(P){if(P){const xe=this._dateAdapter.getYear(P),st=this._dateAdapter.getMonth(P),It=this._dateAdapter.getDate(P);return new Date(xe,st,It).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(P){P instanceof Jt?(this._rangeStart=this._getCellCompareValue(P.start),this._rangeEnd=this._getCellCompareValue(P.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(P),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(P){return!this.dateFilter||this.dateFilter(P)}_clearPreview(){this._previewStart=this._previewEnd=null}}return rt.\u0275fac=function(P){return new(P||rt)(v.Y36(v.sBO),v.Y36(b.sG,8),v.Y36(b._A,8),v.Y36(G.Is,8),v.Y36(Lt,8))},rt.\u0275cmp=v.Xpm({type:rt,selectors:[["mat-month-view"]],viewQuery:function(P,xe){if(1&P&&v.Gf(S,5),2&P){let st;v.iGM(st=v.CRH())&&(xe._matCalendarBody=st.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[v.TTD],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(P,xe){1&P&&(v.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),v.YNc(3,Ae,5,2,"th",2),v.qZA(),v.TgZ(4,"tr"),v._UZ(5,"th",3),v.qZA()(),v.TgZ(6,"tbody",4),v.NdJ("selectedValueChange",function(It){return xe._dateSelected(It)})("activeDateChange",function(It){return xe._updateActiveDate(It)})("previewChange",function(It){return xe._previewChanged(It)})("dragStarted",function(It){return xe.dragStarted.emit(It)})("dragEnded",function(It){return xe._dragEnded(It)})("keyup",function(It){return xe._handleCalendarBodyKeyup(It)})("keydown",function(It){return xe._handleCalendarBodyKeydown(It)}),v.qZA()()),2&P&&(v.xp6(3),v.Q6J("ngForOf",xe._weekdays),v.xp6(3),v.Q6J("label",xe._monthLabel)("rows",xe._weeks)("todayValue",xe._todayDate)("startValue",xe._rangeStart)("endValue",xe._rangeEnd)("comparisonStart",xe._comparisonRangeStart)("comparisonEnd",xe._comparisonRangeEnd)("previewStart",xe._previewStart)("previewEnd",xe._previewEnd)("isRange",xe._isRange)("labelMinRequiredCells",3)("activeCell",xe._dateAdapter.getDate(xe.activeDate)-1)("startDateAccessibleName",xe.startDateAccessibleName)("endDateAccessibleName",xe.endDateAccessibleName))},dependencies:[p.sg,S],encapsulation:2,changeDetection:0}),rt})();const ct=24;let Rn=(()=>{class rt{get activeDate(){return this._activeDate}set activeDate(P){let xe=this._activeDate;const st=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(st,this.minDate,this.maxDate),An(this._dateAdapter,xe,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(P){this._selected=P instanceof Jt?P:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P)),this._setSelectedYear(P)}get minDate(){return this._minDate}set minDate(P){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P))}get maxDate(){return this._maxDate}set maxDate(P){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P))}constructor(P,xe,st){this._changeDetectorRef=P,this._dateAdapter=xe,this._dir=st,this._rerenderSubscription=Y.w.EMPTY,this.selectedChange=new v.vpe,this.yearSelected=new v.vpe,this.activeDateChange=new v.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ue.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const xe=this._dateAdapter.getYear(this._activeDate)-Gt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let st=0,It=[];st<ct;st++)It.push(xe+st),4==It.length&&(this._years.push(It.map(Mn=>this._createCellForYear(Mn))),It=[]);this._changeDetectorRef.markForCheck()}_yearSelected(P){const xe=P.value,st=this._dateAdapter.createDate(xe,0,1),It=this._getDateFromYear(xe);this.yearSelected.emit(st),this.selectedChange.emit(It)}_updateActiveDate(P){const st=this._activeDate;this.activeDate=this._getDateFromYear(P.value),this._dateAdapter.compareDate(st,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(P){const xe=this._activeDate,st=this._isRtl();switch(P.keyCode){case Z.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,st?1:-1);break;case Z.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,st?-1:1);break;case Z.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case Z.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case Z.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Gt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case Z.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ct-Gt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case Z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,P.altKey?10*-ct:-ct);break;case Z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,P.altKey?10*ct:ct);break;case Z.K5:case Z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(xe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),P.preventDefault()}_handleCalendarBodyKeyup(P){(P.keyCode===Z.L_||P.keyCode===Z.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:P}),this._selectionKeyPressed=!1)}_getActiveCell(){return Gt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(P){const xe=this._dateAdapter.getMonth(this.activeDate),st=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(P,xe,1));return this._dateAdapter.createDate(P,xe,Math.min(this._dateAdapter.getDate(this.activeDate),st))}_createCellForYear(P){const xe=this._dateAdapter.createDate(P,0,1),st=this._dateAdapter.getYearName(xe),It=this.dateClass?this.dateClass(xe,"multi-year"):void 0;return new ve(P,st,st,this._shouldEnableYear(P),It)}_shouldEnableYear(P){if(null==P||this.maxDate&&P>this._dateAdapter.getYear(this.maxDate)||this.minDate&&P<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let st=this._dateAdapter.createDate(P,0,1);this._dateAdapter.getYear(st)==P;st=this._dateAdapter.addCalendarDays(st,1))if(this.dateFilter(st))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(P){if(this._selectedYear=null,P instanceof Jt){const xe=P.start||P.end;xe&&(this._selectedYear=this._dateAdapter.getYear(xe))}else P&&(this._selectedYear=this._dateAdapter.getYear(P))}}return rt.\u0275fac=function(P){return new(P||rt)(v.Y36(v.sBO),v.Y36(b._A,8),v.Y36(G.Is,8))},rt.\u0275cmp=v.Xpm({type:rt,selectors:[["mat-multi-year-view"]],viewQuery:function(P,xe){if(1&P&&v.Gf(S,5),2&P){let st;v.iGM(st=v.CRH())&&(xe._matCalendarBody=st.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(P,xe){1&P&&(v.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),v._UZ(3,"th",2),v.qZA()(),v.TgZ(4,"tbody",3),v.NdJ("selectedValueChange",function(It){return xe._yearSelected(It)})("activeDateChange",function(It){return xe._updateActiveDate(It)})("keyup",function(It){return xe._handleCalendarBodyKeyup(It)})("keydown",function(It){return xe._handleCalendarBodyKeydown(It)}),v.qZA()()),2&P&&(v.xp6(4),v.Q6J("rows",xe._years)("todayValue",xe._todayYear)("startValue",xe._selectedYear)("endValue",xe._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",xe._getActiveCell()))},dependencies:[S],encapsulation:2,changeDetection:0}),rt})();function An(rt,Nt,P,xe,st){const It=rt.getYear(Nt),Mn=rt.getYear(P),Ei=gn(rt,xe,st);return Math.floor((It-Ei)/ct)===Math.floor((Mn-Ei)/ct)}function Gt(rt,Nt,P,xe){return function St(rt,Nt){return(rt%Nt+Nt)%Nt}(rt.getYear(Nt)-gn(rt,P,xe),ct)}function gn(rt,Nt,P){let xe=0;return P?xe=rt.getYear(P)-ct+1:Nt&&(xe=rt.getYear(Nt)),xe}let cn=(()=>{class rt{get activeDate(){return this._activeDate}set activeDate(P){let xe=this._activeDate;const st=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(st,this.minDate,this.maxDate),this._dateAdapter.getYear(xe)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(P){this._selected=P instanceof Jt?P:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P)),this._setSelectedMonth(P)}get minDate(){return this._minDate}set minDate(P){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P))}get maxDate(){return this._maxDate}set maxDate(P){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P))}constructor(P,xe,st,It){this._changeDetectorRef=P,this._dateFormats=xe,this._dateAdapter=st,this._dir=It,this._rerenderSubscription=Y.w.EMPTY,this.selectedChange=new v.vpe,this.monthSelected=new v.vpe,this.activeDateChange=new v.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ue.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(P){const xe=P.value,st=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),xe,1);this.monthSelected.emit(st);const It=this._getDateFromMonth(xe);this.selectedChange.emit(It)}_updateActiveDate(P){const st=this._activeDate;this.activeDate=this._getDateFromMonth(P.value),this._dateAdapter.compareDate(st,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(P){const xe=this._activeDate,st=this._isRtl();switch(P.keyCode){case Z.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,st?1:-1);break;case Z.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,st?-1:1);break;case Z.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case Z.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case Z.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case Z.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case Z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,P.altKey?-10:-1);break;case Z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,P.altKey?10:1);break;case Z.K5:case Z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(xe,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),P.preventDefault()}_handleCalendarBodyKeyup(P){(P.keyCode===Z.L_||P.keyCode===Z.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:P}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let P=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(xe=>xe.map(st=>this._createCellForMonth(st,P[st]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(P){return P&&this._dateAdapter.getYear(P)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(P):null}_getDateFromMonth(P){const xe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),P,1),st=this._dateAdapter.getNumDaysInMonth(xe);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),P,Math.min(this._dateAdapter.getDate(this.activeDate),st))}_createCellForMonth(P,xe){const st=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),P,1),It=this._dateAdapter.format(st,this._dateFormats.display.monthYearA11yLabel),Mn=this.dateClass?this.dateClass(st,"year"):void 0;return new ve(P,xe.toLocaleUpperCase(),It,this._shouldEnableMonth(P),Mn)}_shouldEnableMonth(P){const xe=this._dateAdapter.getYear(this.activeDate);if(null==P||this._isYearAndMonthAfterMaxDate(xe,P)||this._isYearAndMonthBeforeMinDate(xe,P))return!1;if(!this.dateFilter)return!0;for(let It=this._dateAdapter.createDate(xe,P,1);this._dateAdapter.getMonth(It)==P;It=this._dateAdapter.addCalendarDays(It,1))if(this.dateFilter(It))return!0;return!1}_isYearAndMonthAfterMaxDate(P,xe){if(this.maxDate){const st=this._dateAdapter.getYear(this.maxDate),It=this._dateAdapter.getMonth(this.maxDate);return P>st||P===st&&xe>It}return!1}_isYearAndMonthBeforeMinDate(P,xe){if(this.minDate){const st=this._dateAdapter.getYear(this.minDate),It=this._dateAdapter.getMonth(this.minDate);return P<st||P===st&&xe<It}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(P){this._selectedMonth=P instanceof Jt?this._getMonthInCurrentYear(P.start)||this._getMonthInCurrentYear(P.end):this._getMonthInCurrentYear(P)}}return rt.\u0275fac=function(P){return new(P||rt)(v.Y36(v.sBO),v.Y36(b.sG,8),v.Y36(b._A,8),v.Y36(G.Is,8))},rt.\u0275cmp=v.Xpm({type:rt,selectors:[["mat-year-view"]],viewQuery:function(P,xe){if(1&P&&v.Gf(S,5),2&P){let st;v.iGM(st=v.CRH())&&(xe._matCalendarBody=st.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(P,xe){1&P&&(v.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),v._UZ(3,"th",2),v.qZA()(),v.TgZ(4,"tbody",3),v.NdJ("selectedValueChange",function(It){return xe._monthSelected(It)})("activeDateChange",function(It){return xe._updateActiveDate(It)})("keyup",function(It){return xe._handleCalendarBodyKeyup(It)})("keydown",function(It){return xe._handleCalendarBodyKeydown(It)}),v.qZA()()),2&P&&(v.xp6(4),v.Q6J("label",xe._yearLabel)("rows",xe._months)("todayValue",xe._todayMonth)("startValue",xe._selectedMonth)("endValue",xe._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",xe._dateAdapter.getMonth(xe.activeDate)))},dependencies:[S],encapsulation:2,changeDetection:0}),rt})(),Qn=1,ai=(()=>{class rt{constructor(P,xe,st,It,Mn){this._intl=P,this.calendar=xe,this._dateAdapter=st,this._dateFormats=It,this._id="mat-calendar-header-"+Qn++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>Mn.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-ct)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:ct)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(P,xe){return"month"==this.calendar.currentView?this._dateAdapter.getYear(P)==this._dateAdapter.getYear(xe)&&this._dateAdapter.getMonth(P)==this._dateAdapter.getMonth(xe):"year"==this.calendar.currentView?this._dateAdapter.getYear(P)==this._dateAdapter.getYear(xe):An(this._dateAdapter,P,xe,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const xe=this._dateAdapter.getYear(this.calendar.activeDate)-Gt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),st=xe+ct-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(xe,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(st,0,1))]}}return rt.\u0275fac=function(P){return new(P||rt)(v.Y36(ce),v.Y36((0,v.Gpc)(()=>ze)),v.Y36(b._A,8),v.Y36(b.sG,8),v.Y36(v.sBO))},rt.\u0275cmp=v.Xpm({type:rt,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:tt,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(P,xe){1&P&&(v.F$t(),v.TgZ(0,"div",0)(1,"div",1)(2,"button",2),v.NdJ("click",function(){return xe.currentPeriodClicked()}),v.TgZ(3,"span",3),v._uU(4),v.qZA(),v.O4$(),v.TgZ(5,"svg",4),v._UZ(6,"polygon",5),v.qZA()(),v.kcU(),v._UZ(7,"div",6),v.Hsn(8),v.TgZ(9,"button",7),v.NdJ("click",function(){return xe.previousClicked()}),v.qZA(),v.TgZ(10,"button",8),v.NdJ("click",function(){return xe.nextClicked()}),v.qZA()()(),v.TgZ(11,"label",9),v._uU(12),v.qZA()),2&P&&(v.xp6(2),v.uIk("aria-label",xe.periodButtonLabel)("aria-describedby",xe._periodButtonLabelId),v.xp6(2),v.Oqu(xe.periodButtonText),v.xp6(1),v.ekj("mat-calendar-invert","month"!==xe.calendar.currentView),v.xp6(4),v.Q6J("disabled",!xe.previousEnabled()),v.uIk("aria-label",xe.prevButtonLabel),v.xp6(1),v.Q6J("disabled",!xe.nextEnabled()),v.uIk("aria-label",xe.nextButtonLabel),v.xp6(1),v.Q6J("id",xe._periodButtonLabelId),v.xp6(1),v.Oqu(xe.periodButtonDescription))},dependencies:[k.lW,k.RK],encapsulation:2,changeDetection:0}),rt})(),ze=(()=>{class rt{get startAt(){return this._startAt}set startAt(P){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P))}get selected(){return this._selected}set selected(P){this._selected=P instanceof Jt?P:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P))}get minDate(){return this._minDate}set minDate(P){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P))}get maxDate(){return this._maxDate}set maxDate(P){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P))}get activeDate(){return this._clampedActiveDate}set activeDate(P){this._clampedActiveDate=this._dateAdapter.clampDate(P,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(P){const xe=this._currentView!==P?P:null;this._currentView=P,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),xe&&this.viewChanged.emit(xe)}constructor(P,xe,st,It){this._dateAdapter=xe,this._dateFormats=st,this._changeDetectorRef=It,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new v.vpe,this.yearSelected=new v.vpe,this.monthSelected=new v.vpe,this.viewChanged=new v.vpe(!0),this._userSelection=new v.vpe,this._userDragDrop=new v.vpe,this._activeDrag=null,this.stateChanges=new J.xQ,this._intlChanges=P.changes.subscribe(()=>{It.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new A.C5(this.headerComponent||ai),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(P){const xe=P.minDate&&!this._dateAdapter.sameDate(P.minDate.previousValue,P.minDate.currentValue)?P.minDate:void 0,st=P.maxDate&&!this._dateAdapter.sameDate(P.maxDate.previousValue,P.maxDate.currentValue)?P.maxDate:void 0,It=xe||st||P.dateFilter;if(It&&!It.firstChange){const Mn=this._getCurrentViewComponent();Mn&&(this._changeDetectorRef.detectChanges(),Mn._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(P){const xe=P.value;(this.selected instanceof Jt||xe&&!this._dateAdapter.sameDate(xe,this.selected))&&this.selectedChange.emit(xe),this._userSelection.emit(P)}_yearSelectedInMultiYearView(P){this.yearSelected.emit(P)}_monthSelectedInYearView(P){this.monthSelected.emit(P)}_goToDateInView(P,xe){this.activeDate=P,this.currentView=xe}_dragStarted(P){this._activeDrag=P}_dragEnded(P){this._activeDrag&&(P.value&&this._userDragDrop.emit(P),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return rt.\u0275fac=function(P){return new(P||rt)(v.Y36(ce),v.Y36(b._A,8),v.Y36(b.sG,8),v.Y36(v.sBO))},rt.\u0275cmp=v.Xpm({type:rt,selectors:[["mat-calendar"]],viewQuery:function(P,xe){if(1&P&&(v.Gf(it,5),v.Gf(cn,5),v.Gf(Rn,5)),2&P){let st;v.iGM(st=v.CRH())&&(xe.monthView=st.first),v.iGM(st=v.CRH())&&(xe.yearView=st.first),v.iGM(st=v.CRH())&&(xe.multiYearView=st.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[v._Bn([Te]),v.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(P,xe){1&P&&(v.YNc(0,ot,0,0,"ng-template",0),v.TgZ(1,"div",1),v.YNc(2,at,1,11,"mat-month-view",2),v.YNc(3,pt,1,6,"mat-year-view",3),v.YNc(4,ft,1,6,"mat-multi-year-view",4),v.qZA()),2&P&&(v.Q6J("cdkPortalOutlet",xe._calendarHeaderPortal),v.xp6(1),v.Q6J("ngSwitch",xe.currentView),v.xp6(1),v.Q6J("ngSwitchCase","month"),v.xp6(1),v.Q6J("ngSwitchCase","year"),v.xp6(1),v.Q6J("ngSwitchCase","multi-year"))},dependencies:[p.RF,p.n9,d.kH,A.Pl,it,cn,Rn],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0}),rt})();const de={transformPanel:(0,vt.X$)("transformPanel",[(0,vt.eR)("void => enter-dropdown",(0,vt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,vt.F4)([(0,vt.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,vt.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,vt.eR)("void => enter-dialog",(0,vt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,vt.F4)([(0,vt.oB)({opacity:0,transform:"scale(0.7)"}),(0,vt.oB)({transform:"none",opacity:1})]))),(0,vt.eR)("* => void",(0,vt.jt)("100ms linear",(0,vt.oB)({opacity:0})))]),fadeInCalendar:(0,vt.X$)("fadeInCalendar",[(0,vt.SB)("void",(0,vt.oB)({opacity:0})),(0,vt.SB)("enter",(0,vt.oB)({opacity:1})),(0,vt.eR)("void => *",(0,vt.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let q=0;const He=new v.OlP("mat-datepicker-scroll-strategy"),ht={provide:He,deps:[i.aV],useFactory:function yt(rt){return()=>rt.scrollStrategies.reposition()}},le=(0,b.pj)(class{constructor(rt){this._elementRef=rt}});let pe=(()=>{class rt extends le{constructor(P,xe,st,It,Mn,Ei){super(P),this._changeDetectorRef=xe,this._globalModel=st,this._dateAdapter=It,this._rangeSelectionStrategy=Mn,this._subscriptions=new Y.w,this._animationDone=new J.xQ,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=Ei.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(P){const xe=this._model.selection,st=P.value,It=xe instanceof Jt;if(It&&this._rangeSelectionStrategy){const Mn=this._rangeSelectionStrategy.selectionFinished(st,xe,P.event);this._model.updateSelection(Mn,this)}else st&&(It||!this._dateAdapter.sameDate(st,xe))&&this._model.add(st);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(P){this._model.updateSelection(P.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(P){this._isAnimating="start"===P.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(P,xe){this._model=P?this._globalModel.clone():this._globalModel,this._actionsPortal=P,xe&&this._changeDetectorRef.detectChanges()}}return rt.\u0275fac=function(P){return new(P||rt)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(un),v.Y36(b._A),v.Y36(Lt,8),v.Y36(ce))},rt.\u0275cmp=v.Xpm({type:rt,selectors:[["mat-datepicker-content"]],viewQuery:function(P,xe){if(1&P&&v.Gf(ze,5),2&P){let st;v.iGM(st=v.CRH())&&(xe._calendar=st.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(P,xe){1&P&&v.WFA("@transformPanel.start",function(It){return xe._handleAnimationEvent(It)})("@transformPanel.done",function(It){return xe._handleAnimationEvent(It)}),2&P&&(v.d8E("@transformPanel",xe._animationState),v.ekj("mat-datepicker-content-touch",xe.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[v.qOj],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(P,xe){if(1&P&&(v.TgZ(0,"div",0)(1,"mat-calendar",1),v.NdJ("yearSelected",function(It){return xe.datepicker._selectYear(It)})("monthSelected",function(It){return xe.datepicker._selectMonth(It)})("viewChanged",function(It){return xe.datepicker._viewChanged(It)})("_userSelection",function(It){return xe._handleUserSelection(It)})("_userDragDrop",function(It){return xe._handleUserDragDrop(It)}),v.qZA(),v.YNc(2,Et,0,0,"ng-template",2),v.TgZ(3,"button",3),v.NdJ("focus",function(){return xe._closeButtonFocused=!0})("blur",function(){return xe._closeButtonFocused=!1})("click",function(){return xe.datepicker.close()}),v._uU(4),v.qZA()()),2&P){let st;v.ekj("mat-datepicker-content-container-with-custom-header",xe.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",xe._actionsPortal),v.uIk("aria-modal",!0)("aria-labelledby",null!==(st=xe._dialogLabelId)&&void 0!==st?st:void 0),v.xp6(1),v.Q6J("id",xe.datepicker.id)("ngClass",xe.datepicker.panelClass)("startAt",xe.datepicker.startAt)("startView",xe.datepicker.startView)("minDate",xe.datepicker._getMinDate())("maxDate",xe.datepicker._getMaxDate())("dateFilter",xe.datepicker._getDateFilter())("headerComponent",xe.datepicker.calendarHeaderComponent)("selected",xe._getSelected())("dateClass",xe.datepicker.dateClass)("comparisonStart",xe.comparisonStart)("comparisonEnd",xe.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",xe.startDateAccessibleName)("endDateAccessibleName",xe.endDateAccessibleName),v.xp6(1),v.Q6J("cdkPortalOutlet",xe._actionsPortal),v.xp6(1),v.ekj("cdk-visually-hidden",!xe._closeButtonFocused),v.Q6J("color",xe.color||"primary"),v.xp6(1),v.Oqu(xe._closeButtonText)}},dependencies:[p.mk,k.lW,d.mK,A.Pl,ze],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[de.transformPanel,de.fadeInCalendar]},changeDetection:0}),rt})(),Q=(()=>{class rt{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(P){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(P){this._color=P}get touchUi(){return this._touchUi}set touchUi(P){this._touchUi=(0,Qe.Ig)(P)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(P){const xe=(0,Qe.Ig)(P);xe!==this._disabled&&(this._disabled=xe,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(P){this._restoreFocus=(0,Qe.Ig)(P)}get panelClass(){return this._panelClass}set panelClass(P){this._panelClass=(0,Qe.du)(P)}get opened(){return this._opened}set opened(P){(0,Qe.Ig)(P)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(P,xe,st,It,Mn,Ei,Ai){this._overlay=P,this._ngZone=xe,this._viewContainerRef=st,this._dateAdapter=Mn,this._dir=Ei,this._model=Ai,this._inputStateChanges=Y.w.EMPTY,this._document=(0,v.f3M)(p.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new v.vpe,this.monthSelected=new v.vpe,this.viewChanged=new v.vpe(!0),this.openedStream=new v.vpe,this.closedStream=new v.vpe,this._opened=!1,this.id="mat-datepicker-"+q++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new J.xQ,this._scrollStrategy=It}ngOnChanges(P){const xe=P.xPosition||P.yPosition;if(xe&&!xe.firstChange&&this._overlayRef){const st=this._overlayRef.getConfig().positionStrategy;st instanceof i._G&&(this._setConnectedPositions(st),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(P){this._model.add(P)}_selectYear(P){this.yearSelected.emit(P)}_selectMonth(P){this.monthSelected.emit(P)}_viewChanged(P){this.viewChanged.emit(P)}registerInput(P){return this._inputStateChanges.unsubscribe(),this.datepickerInput=P,this._inputStateChanges=P.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(P){this._actionsPortal=P,this._componentRef?.instance._assignActions(P,!0)}removeActions(P){P===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,ie.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const P=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,xe=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:st,location:It}=this._componentRef;st._startExitAnimation(),st._animationDone.pipe((0,Ee.q)(1)).subscribe(()=>{const Mn=this._document.activeElement;P&&(!Mn||Mn===this._document.activeElement||It.nativeElement.contains(Mn))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}P?setTimeout(xe):xe()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(P){P.datepicker=this,P.color=this.color,P._dialogLabelId=this.datepickerInput.getOverlayLabelId(),P._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const P=this.touchUi,xe=new A.C5(pe,this._viewContainerRef),st=this._overlayRef=this._overlay.create(new i.X_({positionStrategy:P?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[P?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:P?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(P?"dialog":"popup")}));this._getCloseStream(st).subscribe(It=>{It&&It.preventDefault(),this.close()}),st.keydownEvents().subscribe(It=>{const Mn=It.keyCode;(Mn===Z.LH||Mn===Z.JH||Mn===Z.oh||Mn===Z.SV||Mn===Z.Ku||Mn===Z.VM)&&It.preventDefault()}),this._componentRef=st.attach(xe),this._forwardContentValues(this._componentRef.instance),P||this._ngZone.onStable.pipe((0,Ee.q)(1)).subscribe(()=>st.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const P=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(P)}_setConnectedPositions(P){const xe="end"===this.xPosition?"end":"start",st="start"===xe?"end":"start",It="above"===this.yPosition?"bottom":"top",Mn="top"===It?"bottom":"top";return P.withPositions([{originX:xe,originY:Mn,overlayX:xe,overlayY:It},{originX:xe,originY:It,overlayX:xe,overlayY:Mn},{originX:st,originY:Mn,overlayX:st,overlayY:It},{originX:st,originY:It,overlayX:st,overlayY:Mn}])}_getCloseStream(P){const xe=["ctrlKey","shiftKey","metaKey"];return(0,W.T)(P.backdropClick(),P.detachments(),P.keydownEvents().pipe((0,Ze.h)(st=>st.keyCode===Z.hY&&!(0,Z.Vb)(st)||this.datepickerInput&&(0,Z.Vb)(st,"altKey")&&st.keyCode===Z.LH&&xe.every(It=>!(0,Z.Vb)(st,It)))))}}return rt.\u0275fac=function(P){return new(P||rt)(v.Y36(i.aV),v.Y36(v.R0b),v.Y36(v.s_b),v.Y36(He),v.Y36(b._A,8),v.Y36(G.Is,8),v.Y36(un))},rt.\u0275dir=v.lG2({type:rt,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[v.TTD]}),rt})(),Fe=(()=>{class rt extends Q{}return rt.\u0275fac=function(){let Nt;return function(xe){return(Nt||(Nt=v.n5z(rt)))(xe||rt)}}(),rt.\u0275cmp=v.Xpm({type:rt,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[v._Bn([Te,{provide:Q,useExisting:rt}]),v.qOj],decls:0,vars:0,template:function(P,xe){},encapsulation:2,changeDetection:0}),rt})();class xt{constructor(Nt,P){this.target=Nt,this.targetElement=P,this.value=this.target.value}}let nt=(()=>{class rt{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(P){this._assignValueProgrammatically(P)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(P){const xe=(0,Qe.Ig)(P),st=this._elementRef.nativeElement;this._disabled!==xe&&(this._disabled=xe,this.stateChanges.next(void 0)),xe&&this._isInitialized&&st.blur&&st.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(P){this._model=P,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(xe=>{if(this._shouldHandleChangeEvent(xe)){const st=this._getValueFromModel(xe.selection);this._lastValueValid=this._isValidValue(st),this._cvaOnChange(st),this._onTouched(),this._formatValue(st),this.dateInput.emit(new xt(this,this._elementRef.nativeElement)),this.dateChange.emit(new xt(this,this._elementRef.nativeElement))}})}constructor(P,xe,st){this._elementRef=P,this._dateAdapter=xe,this._dateFormats=st,this.dateChange=new v.vpe,this.dateInput=new v.vpe,this.stateChanges=new J.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Y.w.EMPTY,this._localeSubscription=Y.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=It=>{const Mn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(It.value));return!Mn||this._matchesFilter(Mn)?null:{matDatepickerFilter:!0}},this._minValidator=It=>{const Mn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(It.value)),Ei=this._getMinDate();return!Ei||!Mn||this._dateAdapter.compareDate(Ei,Mn)<=0?null:{matDatepickerMin:{min:Ei,actual:Mn}}},this._maxValidator=It=>{const Mn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(It.value)),Ei=this._getMaxDate();return!Ei||!Mn||this._dateAdapter.compareDate(Ei,Mn)>=0?null:{matDatepickerMax:{max:Ei,actual:Mn}}},this._lastValueValid=!1,this._localeSubscription=xe.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(P){Ct(P,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(P){this._validatorOnChange=P}validate(P){return this._validator?this._validator(P):null}writeValue(P){this._assignValueProgrammatically(P)}registerOnChange(P){this._cvaOnChange=P}registerOnTouched(P){this._onTouched=P}setDisabledState(P){this.disabled=P}_onKeydown(P){(0,Z.Vb)(P,"altKey")&&P.keyCode===Z.JH&&["ctrlKey","shiftKey","metaKey"].every(It=>!(0,Z.Vb)(P,It))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),P.preventDefault())}_onInput(P){const xe=this._lastValueValid;let st=this._dateAdapter.parse(P,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(st),st=this._dateAdapter.getValidDateOrNull(st);const It=!this._dateAdapter.sameDate(st,this.value);!st||It?this._cvaOnChange(st):(P&&!this.value&&this._cvaOnChange(st),xe!==this._lastValueValid&&this._validatorOnChange()),It&&(this._assignValue(st),this.dateInput.emit(new xt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new xt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(P){this._elementRef.nativeElement.value=null!=P?this._dateAdapter.format(P,this._dateFormats.display.dateInput):""}_assignValue(P){this._model?(this._assignValueToModel(P),this._pendingValue=null):this._pendingValue=P}_isValidValue(P){return!P||this._dateAdapter.isValid(P)}_parentDisabled(){return!1}_assignValueProgrammatically(P){P=this._dateAdapter.deserialize(P),this._lastValueValid=this._isValidValue(P),P=this._dateAdapter.getValidDateOrNull(P),this._assignValue(P),this._formatValue(P)}_matchesFilter(P){const xe=this._getDateFilter();return!xe||xe(P)}}return rt.\u0275fac=function(P){return new(P||rt)(v.Y36(v.SBq),v.Y36(b._A,8),v.Y36(b.sG,8))},rt.\u0275dir=v.lG2({type:rt,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[v.TTD]}),rt})();function Ct(rt,Nt){const P=Object.keys(rt);for(let xe of P){const{previousValue:st,currentValue:It}=rt[xe];if(!Nt.isDateInstance(st)||!Nt.isDateInstance(It))return!0;if(!Nt.sameDate(st,It))return!0}return!1}const qe={provide:$e.JU,useExisting:(0,v.Gpc)(()=>Rt),multi:!0},We={provide:$e.Cf,useExisting:(0,v.Gpc)(()=>Rt),multi:!0};let Rt=(()=>{class rt extends nt{set matDatepicker(P){P&&(this._datepicker=P,this._closedSubscription=P.closedStream.subscribe(()=>this._onTouched()),this._registerModel(P.registerInput(this)))}get min(){return this._min}set min(P){const xe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P));this._dateAdapter.sameDate(xe,this._min)||(this._min=xe,this._validatorOnChange())}get max(){return this._max}set max(P){const xe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P));this._dateAdapter.sameDate(xe,this._max)||(this._max=xe,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(P){const xe=this._matchesFilter(this.value);this._dateFilter=P,this._matchesFilter(this.value)!==xe&&this._validatorOnChange()}constructor(P,xe,st,It){super(P,xe,st),this._formField=It,this._closedSubscription=Y.w.EMPTY,this._validator=$e.kI.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(P){return P}_assignValueToModel(P){this._model&&this._model.updateSelection(P,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(P){return P.source!==this}}return rt.\u0275fac=function(P){return new(P||rt)(v.Y36(v.SBq),v.Y36(b._A,8),v.Y36(b.sG,8),v.Y36(Ge.G_,8))},rt.\u0275dir=v.lG2({type:rt,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(P,xe){1&P&&v.NdJ("input",function(It){return xe._onInput(It.target.value)})("change",function(){return xe._onChange()})("blur",function(){return xe._onBlur()})("keydown",function(It){return xe._onKeydown(It)}),2&P&&(v.Ikx("disabled",xe.disabled),v.uIk("aria-haspopup",xe._datepicker?"dialog":null)("aria-owns",(null==xe._datepicker?null:xe._datepicker.opened)&&xe._datepicker.id||null)("min",xe.min?xe._dateAdapter.toIso8601(xe.min):null)("max",xe.max?xe._dateAdapter.toIso8601(xe.max):null)("data-mat-calendar",xe._datepicker?xe._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[v._Bn([qe,We,{provide:Ce.Jk,useExisting:rt}]),v.qOj]}),rt})(),Ve=(()=>{class rt{}return rt.\u0275fac=function(P){return new(P||rt)},rt.\u0275dir=v.lG2({type:rt,selectors:[["","matDatepickerToggleIcon",""]]}),rt})(),At=(()=>{class rt{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(P){this._disabled=(0,Qe.Ig)(P)}constructor(P,xe,st){this._intl=P,this._changeDetectorRef=xe,this._stateChanges=Y.w.EMPTY;const It=Number(st);this.tabIndex=It||0===It?It:null}ngOnChanges(P){P.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(P){this.datepicker&&!this.disabled&&(this.datepicker.open(),P.stopPropagation())}_watchStateChanges(){const P=this.datepicker?this.datepicker.stateChanges:(0,B.of)(),xe=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,B.of)(),st=this.datepicker?(0,W.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,B.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,W.T)(this._intl.changes,P,xe,st).subscribe(()=>this._changeDetectorRef.markForCheck())}}return rt.\u0275fac=function(P){return new(P||rt)(v.Y36(ce),v.Y36(v.sBO),v.$8M("tabindex"))},rt.\u0275cmp=v.Xpm({type:rt,selectors:[["mat-datepicker-toggle"]],contentQueries:function(P,xe,st){if(1&P&&v.Suo(st,Ve,5),2&P){let It;v.iGM(It=v.CRH())&&(xe._customIcon=It.first)}},viewQuery:function(P,xe){if(1&P&&v.Gf(be,5),2&P){let st;v.iGM(st=v.CRH())&&(xe._button=st.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(P,xe){1&P&&v.NdJ("click",function(It){return xe._open(It)}),2&P&&(v.uIk("tabindex",null)("data-mat-calendar",xe.datepicker?xe.datepicker.id:null),v.ekj("mat-datepicker-toggle-active",xe.datepicker&&xe.datepicker.opened)("mat-accent",xe.datepicker&&"accent"===xe.datepicker.color)("mat-warn",xe.datepicker&&"warn"===xe.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[v.TTD],ngContentSelectors:dt,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(P,xe){1&P&&(v.F$t(je),v.TgZ(0,"button",0,1),v.YNc(2,Pe,2,0,"svg",2),v.Hsn(3),v.qZA()),2&P&&(v.Q6J("disabled",xe.disabled)("disableRipple",xe.disableRipple),v.uIk("aria-haspopup",xe.datepicker?"dialog":null)("aria-label",xe.ariaLabel||xe._intl.openCalendarLabel)("tabindex",xe.disabled?-1:xe.tabIndex),v.xp6(2),v.Q6J("ngIf",!xe._customIcon))},dependencies:[p.O5,k.RK],styles:[".mat-datepicker-toggle{pointer-events:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),rt})();function fn(rt){return zi(rt,!0)}function Ln(rt){return rt.nodeType===Node.ELEMENT_NODE}function zi(rt,Nt){if(Ln(rt)&&Nt){const xe=(rt.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((st,It)=>{const Mn=document.getElementById(It);return Mn&&st.push(Mn),st},[]);if(xe.length)return xe.map(st=>zi(st,!1)).join(" ")}if(Ln(rt)){const P=rt.getAttribute("aria-label")?.trim();if(P)return P}if(function Ti(rt){return"INPUT"===rt.nodeName}(rt)||function Oi(rt){return"TEXTAREA"===rt.nodeName}(rt)){if(rt.labels?.length)return Array.from(rt.labels).map(st=>zi(st,!1)).join(" ");const P=rt.getAttribute("placeholder")?.trim();if(P)return P;const xe=rt.getAttribute("title")?.trim();if(xe)return xe}return(rt.textContent||"").replace(/\s+/g," ").trim()}const ur=new v.OlP("MAT_DATE_RANGE_INPUT_PARENT"),an=(0,b.FD)((()=>{class rt extends nt{constructor(P,xe,st,It,Mn,Ei,Ai,sr){super(xe,Ai,sr),this._rangeInput=P,this._elementRef=xe,this._defaultErrorStateMatcher=st,this._injector=It,this._parentForm=Mn,this._parentFormGroup=Ei,this._dir=(0,v.f3M)(G.Is,{optional:!0})}ngOnInit(){const P=this._injector.get($e.a5,null,{optional:!0,self:!0});P&&(this.ngControl=P)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){const P=this._elementRef.nativeElement,xe=P.value;return xe.length>0?xe:P.placeholder}_onInput(P){super._onInput(P),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:P}){return P!==this._rangeInput._startInput&&P!==this._rangeInput._endInput}_assignValueProgrammatically(P){super._assignValueProgrammatically(P),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}_getAccessibleName(){return fn(this._elementRef.nativeElement)}}return rt.\u0275fac=function(P){return new(P||rt)(v.Y36(ur),v.Y36(v.SBq),v.Y36(b.rD),v.Y36(v.zs3),v.Y36($e.F,8),v.Y36($e.sg,8),v.Y36(b._A,8),v.Y36(b.sG,8))},rt.\u0275dir=v.lG2({type:rt,features:[v.qOj]}),rt})());let ut=(()=>{class rt extends an{constructor(P,xe,st,It,Mn,Ei,Ai,sr){super(P,xe,st,It,Mn,Ei,Ai,sr),this._startValidator=kr=>{const Li=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(kr.value)),Lr=this._model?this._model.selection.end:null;return!Li||!Lr||this._dateAdapter.compareDate(Li,Lr)<=0?null:{matStartDateInvalid:{end:Lr,actual:Li}}},this._validator=$e.kI.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(P){return P.start}_shouldHandleChangeEvent(P){return!(!super._shouldHandleChangeEvent(P)||(P.oldValue?.start?P.selection.start&&!this._dateAdapter.compareDate(P.oldValue.start,P.selection.start):!P.selection.start))}_assignValueToModel(P){if(this._model){const xe=new Jt(P,this._model.selection.end);this._model.updateSelection(xe,this)}}_formatValue(P){super._formatValue(P),this._rangeInput._handleChildValueChange()}_onKeydown(P){const xe=this._rangeInput._endInput,st=this._elementRef.nativeElement,It="rtl"!==this._dir?.value;(P.keyCode===Z.SV&&It||P.keyCode===Z.oh&&!It)&&st.selectionStart===st.value.length&&st.selectionEnd===st.value.length?(P.preventDefault(),xe._elementRef.nativeElement.setSelectionRange(0,0),xe.focus()):super._onKeydown(P)}}return rt.\u0275fac=function(P){return new(P||rt)(v.Y36(ur),v.Y36(v.SBq),v.Y36(b.rD),v.Y36(v.zs3),v.Y36($e.F,8),v.Y36($e.sg,8),v.Y36(b._A,8),v.Y36(b.sG,8))},rt.\u0275dir=v.lG2({type:rt,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(P,xe){1&P&&v.NdJ("input",function(It){return xe._onInput(It.target.value)})("change",function(){return xe._onChange()})("keydown",function(It){return xe._onKeydown(It)})("blur",function(){return xe._onBlur()}),2&P&&(v.Ikx("disabled",xe.disabled),v.uIk("aria-haspopup",xe._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==xe._rangeInput.rangePicker?null:xe._rangeInput.rangePicker.opened)&&xe._rangeInput.rangePicker.id||null)("min",xe._getMinDate()?xe._dateAdapter.toIso8601(xe._getMinDate()):null)("max",xe._getMaxDate()?xe._dateAdapter.toIso8601(xe._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[v._Bn([{provide:$e.JU,useExisting:rt,multi:!0},{provide:$e.Cf,useExisting:rt,multi:!0}]),v.qOj]}),rt})(),Ft=(()=>{class rt extends an{constructor(P,xe,st,It,Mn,Ei,Ai,sr){super(P,xe,st,It,Mn,Ei,Ai,sr),this._endValidator=kr=>{const Li=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(kr.value)),Lr=this._model?this._model.selection.start:null;return!Li||!Lr||this._dateAdapter.compareDate(Li,Lr)>=0?null:{matEndDateInvalid:{start:Lr,actual:Li}}},this._validator=$e.kI.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(P){return P.end}_shouldHandleChangeEvent(P){return!(!super._shouldHandleChangeEvent(P)||(P.oldValue?.end?P.selection.end&&!this._dateAdapter.compareDate(P.oldValue.end,P.selection.end):!P.selection.end))}_assignValueToModel(P){if(this._model){const xe=new Jt(this._model.selection.start,P);this._model.updateSelection(xe,this)}}_onKeydown(P){const xe=this._rangeInput._startInput,st=this._elementRef.nativeElement,It="rtl"!==this._dir?.value;if(P.keyCode!==Z.ZH||st.value)if((P.keyCode===Z.oh&&It||P.keyCode===Z.SV&&!It)&&0===st.selectionStart&&0===st.selectionEnd){P.preventDefault();const Mn=xe._elementRef.nativeElement.value.length;xe._elementRef.nativeElement.setSelectionRange(Mn,Mn),xe.focus()}else super._onKeydown(P);else xe.focus()}}return rt.\u0275fac=function(P){return new(P||rt)(v.Y36(ur),v.Y36(v.SBq),v.Y36(b.rD),v.Y36(v.zs3),v.Y36($e.F,8),v.Y36($e.sg,8),v.Y36(b._A,8),v.Y36(b.sG,8))},rt.\u0275dir=v.lG2({type:rt,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(P,xe){1&P&&v.NdJ("input",function(It){return xe._onInput(It.target.value)})("change",function(){return xe._onChange()})("keydown",function(It){return xe._onKeydown(It)})("blur",function(){return xe._onBlur()}),2&P&&(v.Ikx("disabled",xe.disabled),v.uIk("aria-haspopup",xe._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==xe._rangeInput.rangePicker?null:xe._rangeInput.rangePicker.opened)&&xe._rangeInput.rangePicker.id||null)("min",xe._getMinDate()?xe._dateAdapter.toIso8601(xe._getMinDate()):null)("max",xe._getMaxDate()?xe._dateAdapter.toIso8601(xe._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[v._Bn([{provide:$e.JU,useExisting:rt,multi:!0},{provide:$e.Cf,useExisting:rt,multi:!0}]),v.qOj]}),rt})(),ln=0,Tn=(()=>{class rt{get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){const P=this._startInput?._getPlaceholder()||"",xe=this._endInput?._getPlaceholder()||"";return P||xe?`${P} ${this.separator} ${xe}`:""}get rangePicker(){return this._rangePicker}set rangePicker(P){P&&(this._model=P.registerInput(this),this._rangePicker=P,this._closedSubscription.unsubscribe(),this._closedSubscription=P.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched()}),this._registerModel(this._model))}get required(){return this._required??(this._isTargetRequired(this)||this._isTargetRequired(this._startInput)||this._isTargetRequired(this._endInput))??!1}set required(P){this._required=(0,Qe.Ig)(P)}get dateFilter(){return this._dateFilter}set dateFilter(P){const xe=this._startInput,st=this._endInput,It=xe&&xe._matchesFilter(xe.value),Mn=st&&st._matchesFilter(xe.value);this._dateFilter=P,xe&&xe._matchesFilter(xe.value)!==It&&xe._validatorOnChange(),st&&st._matchesFilter(st.value)!==Mn&&st._validatorOnChange()}get min(){return this._min}set min(P){const xe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P));this._dateAdapter.sameDate(xe,this._min)||(this._min=xe,this._revalidate())}get max(){return this._max}set max(P){const xe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(P));this._dateAdapter.sameDate(xe,this._max)||(this._max=xe,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(P){const xe=(0,Qe.Ig)(P);xe!==this._groupDisabled&&(this._groupDisabled=xe,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const P=!!this._startInput&&this._startInput.isEmpty(),xe=!!this._endInput&&this._endInput.isEmpty();return P&&xe}constructor(P,xe,st,It,Mn){this._changeDetectorRef=P,this._elementRef=xe,this._dateAdapter=It,this._formField=Mn,this._closedSubscription=Y.w.EMPTY,this.id="mat-date-range-input-"+ln++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new J.xQ,Mn?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")&&xe.nativeElement.classList.add("mat-mdc-input-element","mat-mdc-form-field-input-control","mdc-text-field__input"),this.ngControl=st}setDescribedByIds(P){this._ariaDescribedBy=P.length?P.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),(0,W.T)(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(P){Ct(P,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(P){const xe="start"===P?this._startInput:this._endInput;return xe?xe.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const P=this._formField;return P&&P._hasFloatingLabel()?P._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(P){this.focused=null!==P,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(P){this._startInput&&this._startInput._registerModel(P),this._endInput&&this._endInput._registerModel(P)}_isTargetRequired(P){return P?.ngControl?.control?.hasValidator($e.kI.required)}}return rt.\u0275fac=function(P){return new(P||rt)(v.Y36(v.sBO),v.Y36(v.SBq),v.Y36($e.gN,10),v.Y36(b._A,8),v.Y36(Ge.G_,8))},rt.\u0275cmp=v.Xpm({type:rt,selectors:[["mat-date-range-input"]],contentQueries:function(P,xe,st){if(1&P&&(v.Suo(st,ut,5),v.Suo(st,Ft,5)),2&P){let It;v.iGM(It=v.CRH())&&(xe._startInput=It.first),v.iGM(It=v.CRH())&&(xe._endInput=It.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(P,xe){2&P&&(v.uIk("id",xe.id)("aria-labelledby",xe._getAriaLabelledby())("aria-describedby",xe._ariaDescribedBy)("data-mat-calendar",xe.rangePicker?xe.rangePicker.id:null),v.ekj("mat-date-range-input-hide-placeholders",xe._shouldHidePlaceholders())("mat-date-range-input-required",xe.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[v._Bn([{provide:Ge.Eo,useExisting:rt},{provide:ur,useExisting:rt}]),v.TTD],ngContentSelectors:gt,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(P,xe){1&P&&(v.F$t(et),v.TgZ(0,"div",0),v.NdJ("cdkFocusChange",function(It){return xe._updateFocus(It)}),v.TgZ(1,"div",1),v.Hsn(2),v.TgZ(3,"span",2),v._uU(4),v.qZA()(),v.TgZ(5,"span",3),v._uU(6),v.qZA(),v.TgZ(7,"div",4),v.Hsn(8,1),v.TgZ(9,"span",2),v._uU(10),v.qZA()()()),2&P&&(v.xp6(4),v.Oqu(xe._getInputMirrorValue("start")),v.xp6(1),v.ekj("mat-date-range-input-separator-hidden",xe._shouldHideSeparator()),v.xp6(1),v.Oqu(xe.separator),v.xp6(4),v.Oqu(xe._getInputMirrorValue("end")))},dependencies:[d.kH],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0}),rt})(),Hn=(()=>{class rt extends Q{_forwardContentValues(P){super._forwardContentValues(P);const xe=this.datepickerInput;xe&&(P.comparisonStart=xe.comparisonStart,P.comparisonEnd=xe.comparisonEnd,P.startDateAccessibleName=xe._getStartDateAccessibleName(),P.endDateAccessibleName=xe._getEndDateAccessibleName())}}return rt.\u0275fac=function(){let Nt;return function(xe){return(Nt||(Nt=v.n5z(rt)))(xe||rt)}}(),rt.\u0275cmp=v.Xpm({type:rt,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[v._Bn([Je,Me,{provide:Q,useExisting:rt}]),v.qOj],decls:0,vars:0,template:function(P,xe){},encapsulation:2,changeDetection:0}),rt})(),wn=(()=>{class rt{}return rt.\u0275fac=function(P){return new(P||rt)},rt.\u0275mod=v.oAB({type:rt}),rt.\u0275inj=v.cJS({providers:[ce,ht],imports:[p.ez,k.ot,i.U8,d.rt,A.eL,b.BQ,f.ZD]}),rt})()},5412:(vn,_t,y)=>{"use strict";y.d(_t,{WI:()=>se,uw:()=>Jt,H8:()=>Te,xY:()=>fe,Is:()=>Je,so:()=>ce,uh:()=>zt});var d=y(8184),i=y(6895),A=y(4650),p=y(2687),v=y(3353),k=y(4080),f=y(9521),b=y(8929),J=y(8514),Y=y(1086),W=y(445),B=y(1059);function Z(ge,Me){}class G{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let Ee=(()=>{class ge extends k.en{constructor(_e,it,ct,dn,Rn,An,Gt,gn){super(),this._elementRef=_e,this._focusTrapFactory=it,this._config=dn,this._interactivityChecker=Rn,this._ngZone=An,this._overlayRef=Gt,this._focusMonitor=gn,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=St=>{this._portalOutlet.hasAttached();const cn=this._portalOutlet.attachDomPortal(St);return this._contentAttached(),cn},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=ct}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(_e){this._portalOutlet.hasAttached();const it=this._portalOutlet.attachComponentPortal(_e);return this._contentAttached(),it}attachTemplatePortal(_e){this._portalOutlet.hasAttached();const it=this._portalOutlet.attachTemplatePortal(_e);return this._contentAttached(),it}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(_e,it){this._interactivityChecker.isFocusable(_e)||(_e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ct=()=>{_e.removeEventListener("blur",ct),_e.removeEventListener("mousedown",ct),_e.removeAttribute("tabindex")};_e.addEventListener("blur",ct),_e.addEventListener("mousedown",ct)})),_e.focus(it)}_focusByCssSelector(_e,it){let ct=this._elementRef.nativeElement.querySelector(_e);ct&&this._forceFocus(ct,it)}_trapFocus(){const _e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||_e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(it=>{it||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const _e=this._config.restoreFocus;let it=null;if("string"==typeof _e?it=this._document.querySelector(_e):"boolean"==typeof _e?it=_e?this._elementFocusedBeforeDialogWasOpened:null:_e&&(it=_e),this._config.restoreFocus&&it&&"function"==typeof it.focus){const ct=(0,v.ht)(),dn=this._elementRef.nativeElement;(!ct||ct===this._document.body||ct===dn||dn.contains(ct))&&(this._focusMonitor?(this._focusMonitor.focusVia(it,this._closeInteractionType),this._closeInteractionType=null):it.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const _e=this._elementRef.nativeElement,it=(0,v.ht)();return _e===it||_e.contains(it)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,v.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return ge.\u0275fac=function(_e){return new(_e||ge)(A.Y36(A.SBq),A.Y36(p.qV),A.Y36(i.K0,8),A.Y36(G),A.Y36(p.ic),A.Y36(A.R0b),A.Y36(d.Iu),A.Y36(p.tE))},ge.\u0275cmp=A.Xpm({type:ge,selectors:[["cdk-dialog-container"]],viewQuery:function(_e,it){if(1&_e&&A.Gf(k.Pl,7),2&_e){let ct;A.iGM(ct=A.CRH())&&(it._portalOutlet=ct.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(_e,it){2&_e&&A.uIk("id",it._config.id||null)("role",it._config.role)("aria-modal",it._config.ariaModal)("aria-labelledby",it._config.ariaLabel?null:it._ariaLabelledBy)("aria-label",it._config.ariaLabel)("aria-describedby",it._config.ariaDescribedBy||null)},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(_e,it){1&_e&&A.YNc(0,Z,0,0,"ng-template",0)},dependencies:[k.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),ge})();class ue{constructor(Me,_e){this.overlayRef=Me,this.config=_e,this.closed=new b.xQ,this.disableClose=_e.disableClose,this.backdropClick=Me.backdropClick(),this.keydownEvents=Me.keydownEvents(),this.outsidePointerEvents=Me.outsidePointerEvents(),this.id=_e.id,this.keydownEvents.subscribe(it=>{it.keyCode===f.hY&&!this.disableClose&&!(0,f.Vb)(it)&&(it.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=Me.detachments().subscribe(()=>{!1!==_e.closeOnOverlayDetachments&&this.close()})}close(Me,_e){if(this.containerInstance){const it=this.closed;this.containerInstance._closeInteractionType=_e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),it.next(Me),it.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Me="",_e=""){return this.overlayRef.updateSize({width:Me,height:_e}),this}addPanelClass(Me){return this.overlayRef.addPanelClass(Me),this}removePanelClass(Me){return this.overlayRef.removePanelClass(Me),this}}const Ze=new A.OlP("DialogScrollStrategy"),Qe=new A.OlP("DialogData"),vt=new A.OlP("DefaultDialogConfig"),Ge={provide:Ze,deps:[d.aV],useFactory:function $e(ge){return()=>ge.scrollStrategies.block()}};let Ce=0,ke=(()=>{class ge{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(_e,it,ct,dn,Rn,An){this._overlay=_e,this._injector=it,this._defaultOptions=ct,this._parentDialog=dn,this._overlayContainer=Rn,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new b.xQ,this._afterOpenedAtThisLevel=new b.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,J.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,B.O)(void 0))),this._scrollStrategy=An}open(_e,it){(it={...this._defaultOptions||new G,...it}).id=it.id||"cdk-dialog-"+Ce++,it.id&&this.getDialogById(it.id);const dn=this._getOverlayConfig(it),Rn=this._overlay.create(dn),An=new ue(Rn,it),Gt=this._attachContainer(Rn,An,it);return An.containerInstance=Gt,this._attachDialogContent(_e,An,Gt,it),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(An),An.closed.subscribe(()=>this._removeOpenDialog(An,!0)),this.afterOpened.next(An),An}closeAll(){me(this.openDialogs,_e=>_e.close())}getDialogById(_e){return this.openDialogs.find(it=>it.id===_e)}ngOnDestroy(){me(this._openDialogsAtThisLevel,_e=>{!1===_e.config.closeOnDestroy&&this._removeOpenDialog(_e,!1)}),me(this._openDialogsAtThisLevel,_e=>_e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(_e){const it=new d.X_({positionStrategy:_e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:_e.scrollStrategy||this._scrollStrategy(),panelClass:_e.panelClass,hasBackdrop:_e.hasBackdrop,direction:_e.direction,minWidth:_e.minWidth,minHeight:_e.minHeight,maxWidth:_e.maxWidth,maxHeight:_e.maxHeight,width:_e.width,height:_e.height,disposeOnNavigation:_e.closeOnNavigation});return _e.backdropClass&&(it.backdropClass=_e.backdropClass),it}_attachContainer(_e,it,ct){const dn=ct.injector||ct.viewContainerRef?.injector,Rn=[{provide:G,useValue:ct},{provide:ue,useValue:it},{provide:d.Iu,useValue:_e}];let An;ct.container?"function"==typeof ct.container?An=ct.container:(An=ct.container.type,Rn.push(...ct.container.providers(ct))):An=Ee;const Gt=new k.C5(An,ct.viewContainerRef,A.zs3.create({parent:dn||this._injector,providers:Rn}),ct.componentFactoryResolver);return _e.attach(Gt).instance}_attachDialogContent(_e,it,ct,dn){if(_e instanceof A.Rgc){const Rn=this._createInjector(dn,it,ct,void 0);let An={$implicit:dn.data,dialogRef:it};dn.templateContext&&(An={...An,..."function"==typeof dn.templateContext?dn.templateContext():dn.templateContext}),ct.attachTemplatePortal(new k.UE(_e,null,An,Rn))}else{const Rn=this._createInjector(dn,it,ct,this._injector),An=ct.attachComponentPortal(new k.C5(_e,dn.viewContainerRef,Rn,dn.componentFactoryResolver));it.componentInstance=An.instance}}_createInjector(_e,it,ct,dn){const Rn=_e.injector||_e.viewContainerRef?.injector,An=[{provide:Qe,useValue:_e.data},{provide:ue,useValue:it}];return _e.providers&&("function"==typeof _e.providers?An.push(..._e.providers(it,_e,ct)):An.push(..._e.providers)),_e.direction&&(!Rn||!Rn.get(W.Is,null,{optional:!0}))&&An.push({provide:W.Is,useValue:{value:_e.direction,change:(0,Y.of)()}}),A.zs3.create({parent:Rn||dn,providers:An})}_removeOpenDialog(_e,it){const ct=this.openDialogs.indexOf(_e);ct>-1&&(this.openDialogs.splice(ct,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((dn,Rn)=>{dn?Rn.setAttribute("aria-hidden",dn):Rn.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),it&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const _e=this._overlayContainer.getContainerElement();if(_e.parentElement){const it=_e.parentElement.children;for(let ct=it.length-1;ct>-1;ct--){const dn=it[ct];dn!==_e&&"SCRIPT"!==dn.nodeName&&"STYLE"!==dn.nodeName&&!dn.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(dn,dn.getAttribute("aria-hidden")),dn.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const _e=this._parentDialog;return _e?_e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return ge.\u0275fac=function(_e){return new(_e||ge)(A.LFG(d.aV),A.LFG(A.zs3),A.LFG(vt,8),A.LFG(ge,12),A.LFG(d.Xj),A.LFG(Ze))},ge.\u0275prov=A.Yz7({token:ge,factory:ge.\u0275fac}),ge})();function me(ge,Me){let _e=ge.length;for(;_e--;)Me(ge[_e])}let re=(()=>{class ge{}return ge.\u0275fac=function(_e){return new(_e||ge)},ge.\u0275mod=A.oAB({type:ge}),ge.\u0275inj=A.cJS({providers:[ke,Ge],imports:[d.U8,k.eL,p.rt,k.eL]}),ge})();var ye=y(1281),Oe=y(6787),Ae=y(2198),tt=y(2986),ot=y(3238);function pt(ge,Me){}y(7340);class ft{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const Et="mdc-dialog--open",be="mdc-dialog--opening",Pe="mdc-dialog--closing";let et=(()=>{class ge extends Ee{constructor(_e,it,ct,dn,Rn,An,Gt,gn){super(_e,it,ct,dn,Rn,An,Gt,gn),this._animationStateChanged=new A.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(_e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:_e})}}return ge.\u0275fac=function(_e){return new(_e||ge)(A.Y36(A.SBq),A.Y36(p.qV),A.Y36(i.K0,8),A.Y36(ft),A.Y36(p.ic),A.Y36(A.R0b),A.Y36(d.Iu),A.Y36(p.tE))},ge.\u0275cmp=A.Xpm({type:ge,selectors:[["ng-component"]],features:[A.qOj],decls:0,vars:0,template:function(_e,it){},encapsulation:2}),ge})();const gt="--mat-dialog-transition-duration";function Re(ge){return null==ge?null:"number"==typeof ge?ge:ge.endsWith("ms")?(0,ye.su)(ge.substring(0,ge.length-2)):ge.endsWith("s")?1e3*(0,ye.su)(ge.substring(0,ge.length-1)):"0"===ge?0:null}let we=(()=>{class ge extends et{constructor(_e,it,ct,dn,Rn,An,Gt,gn,St){super(_e,it,ct,dn,Rn,An,Gt,St),this._animationMode=gn,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?Re(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?Re(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(gt,`${this._openAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(be,Et)),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Et),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(Et),this._animationsEnabled?(this._hostElement.style.setProperty(gt,`${this._openAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Pe)),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(be,Pe)}_waitForAnimationToComplete(_e,it){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(it,_e)}_requestAnimationFrame(_e){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(_e):_e()})}}return ge.\u0275fac=function(_e){return new(_e||ge)(A.Y36(A.SBq),A.Y36(p.qV),A.Y36(i.K0,8),A.Y36(ft),A.Y36(p.ic),A.Y36(A.R0b),A.Y36(d.Iu),A.Y36(A.QbO,8),A.Y36(p.tE))},ge.\u0275cmp=A.Xpm({type:ge,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(_e,it){2&_e&&(A.Ikx("id",it._config.id),A.uIk("aria-modal",it._config.ariaModal)("role",it._config.role)("aria-labelledby",it._config.ariaLabel?null:it._ariaLabelledBy)("aria-label",it._config.ariaLabel)("aria-describedby",it._config.ariaDescribedBy||null),A.ekj("_mat-animation-noopable",!it._animationsEnabled))},features:[A.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(_e,it){1&_e&&(A.TgZ(0,"div",0)(1,"div",1),A.YNc(2,pt,0,0,"ng-template",2),A.qZA()())},dependencies:[k.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),ge})();class ce{constructor(Me,_e,it){this._ref=Me,this._containerInstance=it,this._afterOpened=new b.xQ,this._beforeClosed=new b.xQ,this._state=0,this.disableClose=_e.disableClose,this.id=Me.id,it._animationStateChanged.pipe((0,Ae.h)(ct=>"opened"===ct.state),(0,tt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),it._animationStateChanged.pipe((0,Ae.h)(ct=>"closed"===ct.state),(0,tt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Me.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Oe.T)(this.backdropClick(),this.keydownEvents().pipe((0,Ae.h)(ct=>ct.keyCode===f.hY&&!this.disableClose&&!(0,f.Vb)(ct)))).subscribe(ct=>{this.disableClose||(ct.preventDefault(),function ve(ge,Me,_e){ge._closeInteractionType=Me,ge.close(_e)}(this,"keydown"===ct.type?"keyboard":"mouse"))})}close(Me){this._result=Me,this._containerInstance._animationStateChanged.pipe((0,Ae.h)(_e=>"closing"===_e.state),(0,tt.q)(1)).subscribe(_e=>{this._beforeClosed.next(Me),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),_e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(Me){let _e=this._ref.config.positionStrategy;return Me&&(Me.left||Me.right)?Me.left?_e.left(Me.left):_e.right(Me.right):_e.centerHorizontally(),Me&&(Me.top||Me.bottom)?Me.top?_e.top(Me.top):_e.bottom(Me.bottom):_e.centerVertically(),this._ref.updatePosition(),this}updateSize(Me="",_e=""){return this._ref.updateSize(Me,_e),this}addPanelClass(Me){return this._ref.addPanelClass(Me),this}removePanelClass(Me){return this._ref.removePanelClass(Me),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const se=new A.OlP("MatMdcDialogData"),S=new A.OlP("mat-mdc-dialog-default-options"),F=new A.OlP("mat-mdc-dialog-scroll-strategy"),ne={provide:F,deps:[d.aV],useFactory:function V(ge){return()=>ge.scrollStrategies.block()}};let wt=0,nn=(()=>{class ge{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const _e=this._parentDialog;return _e?_e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(_e,it,ct,dn,Rn,An,Gt,gn,St,cn){this._overlay=_e,this._defaultOptions=ct,this._parentDialog=dn,this._dialogRefConstructor=Gt,this._dialogContainerType=gn,this._dialogDataToken=St,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new b.xQ,this._afterOpenedAtThisLevel=new b.xQ,this._idPrefix="mat-dialog-",this.dialogConfigClass=ft,this.afterAllClosed=(0,J.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,B.O)(void 0))),this._scrollStrategy=An,this._dialog=it.get(ke)}open(_e,it){let ct;(it={...this._defaultOptions||new ft,...it}).id=it.id||`${this._idPrefix}${wt++}`,it.scrollStrategy=it.scrollStrategy||this._scrollStrategy();const dn=this._dialog.open(_e,{...it,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:it},{provide:G,useValue:it}]},templateContext:()=>({dialogRef:ct}),providers:(Rn,An,Gt)=>(ct=new this._dialogRefConstructor(Rn,it,Gt),ct.updatePosition(it?.position),[{provide:this._dialogContainerType,useValue:Gt},{provide:this._dialogDataToken,useValue:An.data},{provide:this._dialogRefConstructor,useValue:ct}])});return ct.componentInstance=dn.componentInstance,this.openDialogs.push(ct),this.afterOpened.next(ct),ct.afterClosed().subscribe(()=>{const Rn=this.openDialogs.indexOf(ct);Rn>-1&&(this.openDialogs.splice(Rn,1),this.openDialogs.length||this._getAfterAllClosed().next())}),ct}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(_e){return this.openDialogs.find(it=>it.id===_e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(_e){let it=_e.length;for(;it--;)_e[it].close()}}return ge.\u0275fac=function(_e){A.$Z()},ge.\u0275prov=A.Yz7({token:ge,factory:ge.\u0275fac}),ge})(),Jt=(()=>{class ge extends nn{constructor(_e,it,ct,dn,Rn,An,Gt,gn){super(_e,it,dn,An,Gt,Rn,ce,we,se,gn),this._idPrefix="mat-mdc-dialog-"}}return ge.\u0275fac=function(_e){return new(_e||ge)(A.LFG(d.aV),A.LFG(A.zs3),A.LFG(i.Ye,8),A.LFG(S,8),A.LFG(F),A.LFG(ge,12),A.LFG(d.Xj),A.LFG(A.QbO,8))},ge.\u0275prov=A.Yz7({token:ge,factory:ge.\u0275fac}),ge})(),un=0,zt=(()=>{class ge{constructor(_e,it,ct){this._dialogRef=_e,this._elementRef=it,this._dialog=ct,this.id="mat-mdc-dialog-title-"+un++}ngOnInit(){this._dialogRef||(this._dialogRef=function lt(ge,Me){let _e=ge.nativeElement.parentElement;for(;_e&&!_e.classList.contains("mat-mdc-dialog-container");)_e=_e.parentElement;return _e?Me.find(it=>it.id===_e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const _e=this._dialogRef._containerInstance;_e&&!_e._ariaLabelledBy&&(_e._ariaLabelledBy=this.id)})}}return ge.\u0275fac=function(_e){return new(_e||ge)(A.Y36(ce,8),A.Y36(A.SBq),A.Y36(Jt))},ge.\u0275dir=A.lG2({type:ge,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(_e,it){2&_e&&A.Ikx("id",it.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),ge})(),fe=(()=>{class ge{}return ge.\u0275fac=function(_e){return new(_e||ge)},ge.\u0275dir=A.lG2({type:ge,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),ge})(),Te=(()=>{class ge{constructor(){this.align="start"}}return ge.\u0275fac=function(_e){return new(_e||ge)},ge.\u0275dir=A.lG2({type:ge,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(_e,it){2&_e&&A.ekj("mat-mdc-dialog-actions-align-center","center"===it.align)("mat-mdc-dialog-actions-align-end","end"===it.align)},inputs:{align:"align"}}),ge})(),Je=(()=>{class ge{}return ge.\u0275fac=function(_e){return new(_e||ge)},ge.\u0275mod=A.oAB({type:ge}),ge.\u0275inj=A.cJS({providers:[Jt,ne],imports:[re,d.U8,k.eL,ot.BQ,ot.BQ]}),ge})()},8729:(vn,_t,y)=>{"use strict";y.d(_t,{d:()=>p,t:()=>v});var d=y(4650),i=y(1281),A=y(3238);let p=(()=>{class k{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(b){this._vertical=(0,i.Ig)(b)}get inset(){return this._inset}set inset(b){this._inset=(0,i.Ig)(b)}}return k.\u0275fac=function(b){return new(b||k)},k.\u0275cmp=d.Xpm({type:k,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(b,J){2&b&&(d.uIk("aria-orientation",J.vertical?"vertical":"horizontal"),d.ekj("mat-divider-vertical",J.vertical)("mat-divider-horizontal",!J.vertical)("mat-divider-inset",J.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(b,J){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),k})(),v=(()=>{class k{}return k.\u0275fac=function(b){return new(b||k)},k.\u0275mod=d.oAB({type:k}),k.\u0275inj=d.cJS({imports:[A.BQ,A.BQ]}),k})()},7084:(vn,_t,y)=>{"use strict";y.d(_t,{pp:()=>ve,To:()=>se,ib:()=>je,u4:()=>we,yz:()=>Re,yK:()=>ce});var d=y(4650),i=y(5017),A=y(1281),p=y(8929),v=y(2654);let k=0;const f=new d.OlP("CdkAccordion");let b=(()=>{class S{constructor(){this._stateChanges=new p.xQ,this._openCloseAllActions=new p.xQ,this.id="cdk-accordion-"+k++,this._multi=!1}get multi(){return this._multi}set multi(V){this._multi=(0,A.Ig)(V)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(V){this._stateChanges.next(V)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return S.\u0275fac=function(V){return new(V||S)},S.\u0275dir=d.lG2({type:S,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[d._Bn([{provide:f,useExisting:S}]),d.TTD]}),S})(),J=0,Y=(()=>{class S{get expanded(){return this._expanded}set expanded(V){V=(0,A.Ig)(V),this._expanded!==V&&(this._expanded=V,this.expandedChange.emit(V),V?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,A.Ig)(V)}constructor(V,ne,De){this.accordion=V,this._changeDetectorRef=ne,this._expansionDispatcher=De,this._openCloseAllSubscription=v.w.EMPTY,this.closed=new d.vpe,this.opened=new d.vpe,this.destroyed=new d.vpe,this.expandedChange=new d.vpe,this.id="cdk-accordion-child-"+J++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=De.listen((wt,nn)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===nn&&this.id!==wt&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(V=>{this.disabled||(this.expanded=V)})}}return S.\u0275fac=function(V){return new(V||S)(d.Y36(f,12),d.Y36(d.sBO),d.Y36(i.A8))},S.\u0275dir=d.lG2({type:S,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[d._Bn([{provide:f,useValue:void 0}])]}),S})(),W=(()=>{class S{}return S.\u0275fac=function(V){return new(V||S)},S.\u0275mod=d.oAB({type:S}),S.\u0275inj=d.cJS({}),S})();var B=y(4080),Z=y(6895),G=y(3238),ie=y(2687),Ee=y(5778),ue=y(1059),Ze=y(2198),Qe=y(2986),vt=y(9521),$e=y(8896),Ge=y(6787),Ce=y(7340);const ke=["body"];function me(S,F){}const re=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ye=["mat-expansion-panel-header","*","mat-action-row"];function Oe(S,F){if(1&S&&d._UZ(0,"span",2),2&S){const V=d.oxw();d.Q6J("@indicatorRotate",V._getExpandedState())}}const Ae=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],tt=["mat-panel-title","mat-panel-description","*"],ot=new d.OlP("MAT_ACCORDION"),at="225ms cubic-bezier(0.4,0.0,0.2,1)",pt={indicatorRotate:(0,Ce.X$)("indicatorRotate",[(0,Ce.SB)("collapsed, void",(0,Ce.oB)({transform:"rotate(0deg)"})),(0,Ce.SB)("expanded",(0,Ce.oB)({transform:"rotate(180deg)"})),(0,Ce.eR)("expanded <=> collapsed, void => collapsed",(0,Ce.jt)(at))]),bodyExpansion:(0,Ce.X$)("bodyExpansion",[(0,Ce.SB)("collapsed, void",(0,Ce.oB)({height:"0px",visibility:"hidden"})),(0,Ce.SB)("expanded",(0,Ce.oB)({height:"*",visibility:"visible"})),(0,Ce.eR)("expanded <=> collapsed, void => collapsed",(0,Ce.jt)(at))])},ft=new d.OlP("MAT_EXPANSION_PANEL");let Et=(()=>{class S{constructor(V,ne){this._template=V,this._expansionPanel=ne}}return S.\u0275fac=function(V){return new(V||S)(d.Y36(d.Rgc),d.Y36(ft,8))},S.\u0275dir=d.lG2({type:S,selectors:[["ng-template","matExpansionPanelContent",""]]}),S})(),be=0;const Pe=new d.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let je=(()=>{class S extends Y{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(V){this._hideToggle=(0,A.Ig)(V)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(V){this._togglePosition=V}constructor(V,ne,De,wt,nn,Jt,un){super(V,ne,De),this._viewContainerRef=wt,this._animationMode=Jt,this._hideToggle=!1,this.afterExpand=new d.vpe,this.afterCollapse=new d.vpe,this._inputChanges=new p.xQ,this._headerId="mat-expansion-panel-header-"+be++,this._bodyAnimationDone=new p.xQ,this.accordion=V,this._document=nn,this._bodyAnimationDone.pipe((0,Ee.x)((Zt,zt)=>Zt.fromState===zt.fromState&&Zt.toState===zt.toState)).subscribe(Zt=>{"void"!==Zt.fromState&&("expanded"===Zt.toState?this.afterExpand.emit():"collapsed"===Zt.toState&&this.afterCollapse.emit())}),un&&(this.hideToggle=un.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,ue.O)(null),(0,Ze.h)(()=>this.expanded&&!this._portal),(0,Qe.q)(1)).subscribe(()=>{this._portal=new B.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(V){this._inputChanges.next(V)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const V=this._document.activeElement,ne=this._body.nativeElement;return V===ne||ne.contains(V)}return!1}}return S.\u0275fac=function(V){return new(V||S)(d.Y36(ot,12),d.Y36(d.sBO),d.Y36(i.A8),d.Y36(d.s_b),d.Y36(Z.K0),d.Y36(d.QbO,8),d.Y36(Pe,8))},S.\u0275cmp=d.Xpm({type:S,selectors:[["mat-expansion-panel"]],contentQueries:function(V,ne,De){if(1&V&&d.Suo(De,Et,5),2&V){let wt;d.iGM(wt=d.CRH())&&(ne._lazyContent=wt.first)}},viewQuery:function(V,ne){if(1&V&&d.Gf(ke,5),2&V){let De;d.iGM(De=d.CRH())&&(ne._body=De.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(V,ne){2&V&&d.ekj("mat-expanded",ne.expanded)("_mat-animation-noopable","NoopAnimations"===ne._animationMode)("mat-expansion-panel-spacing",ne._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[d._Bn([{provide:ot,useValue:void 0},{provide:ft,useExisting:S}]),d.qOj,d.TTD],ngContentSelectors:ye,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(V,ne){1&V&&(d.F$t(re),d.Hsn(0),d.TgZ(1,"div",0,1),d.NdJ("@bodyExpansion.done",function(wt){return ne._bodyAnimationDone.next(wt)}),d.TgZ(3,"div",2),d.Hsn(4,1),d.YNc(5,me,0,0,"ng-template",3),d.qZA(),d.Hsn(6,2),d.qZA()),2&V&&(d.xp6(1),d.Q6J("@bodyExpansion",ne._getExpandedState())("id",ne.id),d.uIk("aria-labelledby",ne._headerId),d.xp6(4),d.Q6J("cdkPortalOutlet",ne._portal))},dependencies:[B.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[pt.bodyExpansion]},changeDetection:0}),S})();class et{}const gt=(0,G.sb)(et);let Re=(()=>{class S extends gt{constructor(V,ne,De,wt,nn,Jt,un){super(),this.panel=V,this._element=ne,this._focusMonitor=De,this._changeDetectorRef=wt,this._animationMode=Jt,this._parentChangeSubscription=v.w.EMPTY;const Zt=V.accordion?V.accordion._stateChanges.pipe((0,Ze.h)(zt=>!(!zt.hideToggle&&!zt.togglePosition))):$e.E;this.tabIndex=parseInt(un||"")||0,this._parentChangeSubscription=(0,Ge.T)(V.opened,V.closed,Zt,V._inputChanges.pipe((0,Ze.h)(zt=>!!(zt.hideToggle||zt.disabled||zt.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),V.closed.pipe((0,Ze.h)(()=>V._containsFocus())).subscribe(()=>De.focusVia(ne,"program")),nn&&(this.expandedHeight=nn.expandedHeight,this.collapsedHeight=nn.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const V=this._isExpanded();return V&&this.expandedHeight?this.expandedHeight:!V&&this.collapsedHeight?this.collapsedHeight:null}_keydown(V){switch(V.keyCode){case vt.L_:case vt.K5:(0,vt.Vb)(V)||(V.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(V))}}focus(V,ne){V?this._focusMonitor.focusVia(this._element,V,ne):this._element.nativeElement.focus(ne)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(V=>{V&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return S.\u0275fac=function(V){return new(V||S)(d.Y36(je,1),d.Y36(d.SBq),d.Y36(ie.tE),d.Y36(d.sBO),d.Y36(Pe,8),d.Y36(d.QbO,8),d.$8M("tabindex"))},S.\u0275cmp=d.Xpm({type:S,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(V,ne){1&V&&d.NdJ("click",function(){return ne._toggle()})("keydown",function(wt){return ne._keydown(wt)}),2&V&&(d.uIk("id",ne.panel._headerId)("tabindex",ne.tabIndex)("aria-controls",ne._getPanelId())("aria-expanded",ne._isExpanded())("aria-disabled",ne.panel.disabled),d.Udp("height",ne._getHeaderHeight()),d.ekj("mat-expanded",ne._isExpanded())("mat-expansion-toggle-indicator-after","after"===ne._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===ne._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===ne._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[d.qOj],ngContentSelectors:tt,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(V,ne){1&V&&(d.F$t(Ae),d.TgZ(0,"span",0),d.Hsn(1),d.Hsn(2,1),d.Hsn(3,2),d.qZA(),d.YNc(4,Oe,1,1,"span",1)),2&V&&(d.ekj("mat-content-hide-toggle",!ne._showToggle()),d.xp6(4),d.Q6J("ngIf",ne._showToggle()))},dependencies:[Z.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[pt.indicatorRotate]},changeDetection:0}),S})(),we=(()=>{class S{}return S.\u0275fac=function(V){return new(V||S)},S.\u0275dir=d.lG2({type:S,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),S})(),ce=(()=>{class S{}return S.\u0275fac=function(V){return new(V||S)},S.\u0275dir=d.lG2({type:S,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),S})(),ve=(()=>{class S extends b{constructor(){super(...arguments),this._ownHeaders=new d.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(V){this._hideToggle=(0,A.Ig)(V)}ngAfterContentInit(){this._headers.changes.pipe((0,ue.O)(this._headers)).subscribe(V=>{this._ownHeaders.reset(V.filter(ne=>ne.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ie.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(V){this._keyManager.onKeydown(V)}_handleHeaderFocus(V){this._keyManager.updateActiveItem(V)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}}return S.\u0275fac=function(){let F;return function(ne){return(F||(F=d.n5z(S)))(ne||S)}}(),S.\u0275dir=d.lG2({type:S,selectors:[["mat-accordion"]],contentQueries:function(V,ne,De){if(1&V&&d.Suo(De,Re,5),2&V){let wt;d.iGM(wt=d.CRH())&&(ne._headers=wt)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(V,ne){2&V&&d.ekj("mat-accordion-multi",ne.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[d._Bn([{provide:ot,useExisting:S}]),d.qOj]}),S})(),se=(()=>{class S{}return S.\u0275fac=function(V){return new(V||S)},S.\u0275mod=d.oAB({type:S}),S.\u0275inj=d.cJS({imports:[Z.ez,G.BQ,W,B.eL]}),S})()},9549:(vn,_t,y)=>{"use strict";y.d(_t,{Eo:()=>nn,G_:()=>zt,KE:()=>ge,R9:()=>ve,hX:()=>be,lN:()=>Me,o2:()=>fe});var d=y(4650),i=y(445),A=y(3353),p=y(8929),v=y(6787),k=y(7625),f=y(6895),b=y(1281),J=y(7340),Y=y(9643),W=y(3238);const B=["matFormFieldNotchedOutline",""],Z=["*"],G=["textField"],ie=["iconPrefixContainer"],Ee=["textPrefixContainer"];function ue(_e,it){1&_e&&d._UZ(0,"span",19)}function Ze(_e,it){if(1&_e){const ct=d.EpF();d.TgZ(0,"label",17),d.NdJ("cdkObserveContent",function(){d.CHM(ct);const Rn=d.oxw(2);return d.KtG(Rn._refreshOutlineNotchWidth())}),d.Hsn(1,1),d.YNc(2,ue,1,0,"span",18),d.qZA()}if(2&_e){const ct=d.oxw(2);d.Q6J("floating",ct._shouldLabelFloat())("cdkObserveContentDisabled",!ct._hasOutline())("id",ct._labelId),d.uIk("for",ct._control.id)("aria-owns",ct._control.id),d.xp6(2),d.Q6J("ngIf",!ct.hideRequiredMarker&&ct._control.required)}}function Qe(_e,it){if(1&_e&&d.YNc(0,Ze,3,6,"label",16),2&_e){const ct=d.oxw();d.Q6J("ngIf",ct._hasFloatingLabel())}}function vt(_e,it){1&_e&&d._UZ(0,"div",20)}function $e(_e,it){}function Ge(_e,it){if(1&_e&&d.YNc(0,$e,0,0,"ng-template",22),2&_e){d.oxw(2);const ct=d.MAs(1);d.Q6J("ngTemplateOutlet",ct)}}function Ce(_e,it){if(1&_e&&(d.TgZ(0,"div",21),d.YNc(1,Ge,1,1,"ng-template",9),d.qZA()),2&_e){const ct=d.oxw();d.Q6J("matFormFieldNotchedOutlineOpen",ct._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",ct._labelWidth),d.xp6(1),d.Q6J("ngIf",!ct._forceDisplayInfixLabel())}}function ke(_e,it){1&_e&&(d.TgZ(0,"div",23,24),d.Hsn(2,2),d.qZA())}function me(_e,it){1&_e&&(d.TgZ(0,"div",25,26),d.Hsn(2,3),d.qZA())}function re(_e,it){}function ye(_e,it){if(1&_e&&d.YNc(0,re,0,0,"ng-template",22),2&_e){d.oxw();const ct=d.MAs(1);d.Q6J("ngTemplateOutlet",ct)}}function Oe(_e,it){1&_e&&(d.TgZ(0,"div",27),d.Hsn(1,4),d.qZA())}function Ae(_e,it){1&_e&&(d.TgZ(0,"div",28),d.Hsn(1,5),d.qZA())}function tt(_e,it){1&_e&&d._UZ(0,"div",29)}function ot(_e,it){if(1&_e&&(d.TgZ(0,"div",30),d.Hsn(1,6),d.qZA()),2&_e){const ct=d.oxw();d.Q6J("@transitionMessages",ct._subscriptAnimationState)}}function at(_e,it){if(1&_e&&(d.TgZ(0,"mat-hint",34),d._uU(1),d.qZA()),2&_e){const ct=d.oxw(2);d.Q6J("id",ct._hintLabelId),d.xp6(1),d.Oqu(ct.hintLabel)}}function pt(_e,it){if(1&_e&&(d.TgZ(0,"div",31),d.YNc(1,at,2,2,"mat-hint",32),d.Hsn(2,7),d._UZ(3,"div",33),d.Hsn(4,8),d.qZA()),2&_e){const ct=d.oxw();d.Q6J("@transitionMessages",ct._subscriptAnimationState),d.xp6(1),d.Q6J("ngIf",ct.hintLabel)}}const ft=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Et=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let be=(()=>{class _e{}return _e.\u0275fac=function(ct){return new(ct||_e)},_e.\u0275dir=d.lG2({type:_e,selectors:[["mat-label"]]}),_e})();const je=new d.OlP("MatError");let et=0,gt=(()=>{class _e{constructor(){this.align="start",this.id="mat-mdc-hint-"+et++}}return _e.\u0275fac=function(ct){return new(ct||_e)},_e.\u0275dir=d.lG2({type:_e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(ct,dn){2&ct&&(d.Ikx("id",dn.id),d.uIk("align",null),d.ekj("mat-mdc-form-field-hint-end","end"===dn.align))},inputs:{align:"align",id:"id"}}),_e})();const Re=new d.OlP("MatPrefix"),ce=new d.OlP("MatSuffix");let ve=(()=>{class _e{constructor(){this._isText=!1}set _isTextSelector(ct){this._isText=!0}}return _e.\u0275fac=function(ct){return new(ct||_e)},_e.\u0275dir=d.lG2({type:_e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[d._Bn([{provide:ce,useExisting:_e}])]}),_e})(),se=(()=>{class _e{constructor(ct){this._elementRef=ct,this.floating=!1}getWidth(){return function S(_e){if(null!==_e.offsetParent)return _e.scrollWidth;const ct=_e.cloneNode(!0);ct.style.setProperty("position","absolute"),ct.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(ct);const dn=ct.scrollWidth;return ct.remove(),dn}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return _e.\u0275fac=function(ct){return new(ct||_e)(d.Y36(d.SBq))},_e.\u0275dir=d.lG2({type:_e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(ct,dn){2&ct&&d.ekj("mdc-floating-label--float-above",dn.floating)},inputs:{floating:"floating"}}),_e})();const F="mdc-line-ripple--active",V="mdc-line-ripple--deactivating";let ne=(()=>{class _e{constructor(ct,dn){this._elementRef=ct,this._handleTransitionEnd=Rn=>{const An=this._elementRef.nativeElement.classList,Gt=An.contains(V);"opacity"===Rn.propertyName&&Gt&&An.remove(F,V)},dn.runOutsideAngular(()=>{ct.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const ct=this._elementRef.nativeElement.classList;ct.remove(V),ct.add(F)}deactivate(){this._elementRef.nativeElement.classList.add(V)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return _e.\u0275fac=function(ct){return new(ct||_e)(d.Y36(d.SBq),d.Y36(d.R0b))},_e.\u0275dir=d.lG2({type:_e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),_e})(),De=(()=>{class _e{constructor(ct,dn){this._elementRef=ct,this._ngZone=dn,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const ct=this._elementRef.nativeElement.querySelector(".mdc-floating-label");ct?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(ct.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>ct.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return _e.\u0275fac=function(ct){return new(ct||_e)(d.Y36(d.SBq),d.Y36(d.R0b))},_e.\u0275cmp=d.Xpm({type:_e,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(ct,dn){2&ct&&d.ekj("mdc-notched-outline--notched",dn.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:B,ngContentSelectors:Z,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(ct,dn){1&ct&&(d.F$t(),d._UZ(0,"div",0),d.TgZ(1,"div",1),d.Hsn(2),d.qZA(),d._UZ(3,"div",2)),2&ct&&(d.xp6(1),d.Udp("width",dn._getNotchWidth()))},encapsulation:2,changeDetection:0}),_e})();const wt={transitionMessages:(0,J.X$)("transitionMessages",[(0,J.SB)("enter",(0,J.oB)({opacity:1,transform:"translateY(0%)"})),(0,J.eR)("void => enter",[(0,J.oB)({opacity:0,transform:"translateY(-5px)"}),(0,J.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let nn=(()=>{class _e{}return _e.\u0275fac=function(ct){return new(ct||_e)},_e.\u0275dir=d.lG2({type:_e}),_e})();const zt=new d.OlP("MatFormField"),fe=new d.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Te=0,ge=(()=>{class _e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(ct){this._hideRequiredMarker=(0,b.Ig)(ct)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(ct){ct!==this._floatLabel&&(this._floatLabel=ct,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(ct){const dn=this._appearance;this._appearance=ct||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==dn&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(ct){this._subscriptSizing=ct||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(ct){this._hintLabel=ct,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(ct){this._explicitFormFieldControl=ct}constructor(ct,dn,Rn,An,Gt,gn,St,cn){this._elementRef=ct,this._changeDetectorRef=dn,this._ngZone=Rn,this._dir=An,this._platform=Gt,this._defaults=gn,this._animationMode=St,this._document=cn,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+Te++,this._hintLabelId="mat-mdc-hint-"+Te++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new p.xQ,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,gn&&(gn.appearance&&(this.appearance=gn.appearance),this._hideRequiredMarker=Boolean(gn?.hideRequiredMarker),gn.color&&(this.color=gn.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const ct=this._control;ct.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${ct.controlType}`),ct.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),ct.ngControl&&ct.ngControl.valueChanges&&ct.ngControl.valueChanges.pipe((0,k.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(ct=>!ct._isText),this._hasTextPrefix=!!this._prefixChildren.find(ct=>ct._isText),this._hasIconSuffix=!!this._suffixChildren.find(ct=>!ct._isText),this._hasTextSuffix=!!this._suffixChildren.find(ct=>ct._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,v.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,k.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(ct){const dn=this._control?this._control.ngControl:null;return dn&&dn[ct]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let ct=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&ct.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const dn=this._hintChildren?this._hintChildren.find(An=>"start"===An.align):null,Rn=this._hintChildren?this._hintChildren.find(An=>"end"===An.align):null;dn?ct.push(dn.id):this._hintLabel&&ct.push(this._hintLabelId),Rn&&ct.push(Rn.id)}else this._errorChildren&&ct.push(...this._errorChildren.map(dn=>dn.id));this._control.setDescribedByIds(ct)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const ct=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(ct.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const dn=this._iconPrefixContainer?.nativeElement,Rn=this._textPrefixContainer?.nativeElement,An=dn?.getBoundingClientRect().width??0,Gt=Rn?.getBoundingClientRect().width??0;ct.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${An+Gt}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const ct=this._elementRef.nativeElement;if(ct.getRootNode){const dn=ct.getRootNode();return dn&&dn!==ct}return document.documentElement.contains(ct)}}return _e.\u0275fac=function(ct){return new(ct||_e)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(d.R0b),d.Y36(i.Is),d.Y36(A.t4),d.Y36(fe,8),d.Y36(d.QbO,8),d.Y36(f.K0))},_e.\u0275cmp=d.Xpm({type:_e,selectors:[["mat-form-field"]],contentQueries:function(ct,dn,Rn){if(1&ct&&(d.Suo(Rn,be,5),d.Suo(Rn,be,7),d.Suo(Rn,nn,5),d.Suo(Rn,Re,5),d.Suo(Rn,ce,5),d.Suo(Rn,je,5),d.Suo(Rn,gt,5)),2&ct){let An;d.iGM(An=d.CRH())&&(dn._labelChildNonStatic=An.first),d.iGM(An=d.CRH())&&(dn._labelChildStatic=An.first),d.iGM(An=d.CRH())&&(dn._formFieldControl=An.first),d.iGM(An=d.CRH())&&(dn._prefixChildren=An),d.iGM(An=d.CRH())&&(dn._suffixChildren=An),d.iGM(An=d.CRH())&&(dn._errorChildren=An),d.iGM(An=d.CRH())&&(dn._hintChildren=An)}},viewQuery:function(ct,dn){if(1&ct&&(d.Gf(G,5),d.Gf(ie,5),d.Gf(Ee,5),d.Gf(se,5),d.Gf(De,5),d.Gf(ne,5)),2&ct){let Rn;d.iGM(Rn=d.CRH())&&(dn._textField=Rn.first),d.iGM(Rn=d.CRH())&&(dn._iconPrefixContainer=Rn.first),d.iGM(Rn=d.CRH())&&(dn._textPrefixContainer=Rn.first),d.iGM(Rn=d.CRH())&&(dn._floatingLabel=Rn.first),d.iGM(Rn=d.CRH())&&(dn._notchedOutline=Rn.first),d.iGM(Rn=d.CRH())&&(dn._lineRipple=Rn.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(ct,dn){2&ct&&d.ekj("mat-mdc-form-field-label-always-float",dn._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",dn._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",dn._hasIconSuffix)("mat-form-field-invalid",dn._control.errorState)("mat-form-field-disabled",dn._control.disabled)("mat-form-field-autofilled",dn._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===dn._animationMode)("mat-form-field-appearance-fill","fill"==dn.appearance)("mat-form-field-appearance-outline","outline"==dn.appearance)("mat-form-field-hide-placeholder",dn._hasFloatingLabel()&&!dn._shouldLabelFloat())("mat-focused",dn._control.focused)("mat-primary","accent"!==dn.color&&"warn"!==dn.color)("mat-accent","accent"===dn.color)("mat-warn","warn"===dn.color)("ng-untouched",dn._shouldForward("untouched"))("ng-touched",dn._shouldForward("touched"))("ng-pristine",dn._shouldForward("pristine"))("ng-dirty",dn._shouldForward("dirty"))("ng-valid",dn._shouldForward("valid"))("ng-invalid",dn._shouldForward("invalid"))("ng-pending",dn._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[d._Bn([{provide:zt,useExisting:_e}])],ngContentSelectors:Et,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(ct,dn){1&ct&&(d.F$t(ft),d.YNc(0,Qe,1,1,"ng-template",null,0,d.W1O),d.TgZ(2,"div",1,2),d.NdJ("click",function(An){return dn._control.onContainerClick&&dn._control.onContainerClick(An)}),d.YNc(4,vt,1,0,"div",3),d.TgZ(5,"div",4),d.YNc(6,Ce,2,3,"div",5),d.YNc(7,ke,3,0,"div",6),d.YNc(8,me,3,0,"div",7),d.TgZ(9,"div",8),d.YNc(10,ye,1,1,"ng-template",9),d.Hsn(11),d.qZA(),d.YNc(12,Oe,2,0,"div",10),d.YNc(13,Ae,2,0,"div",11),d.qZA(),d.YNc(14,tt,1,0,"div",12),d.qZA(),d.TgZ(15,"div",13),d.YNc(16,ot,2,1,"div",14),d.YNc(17,pt,5,2,"div",15),d.qZA()),2&ct&&(d.xp6(2),d.ekj("mdc-text-field--filled",!dn._hasOutline())("mdc-text-field--outlined",dn._hasOutline())("mdc-text-field--no-label",!dn._hasFloatingLabel())("mdc-text-field--disabled",dn._control.disabled)("mdc-text-field--invalid",dn._control.errorState),d.xp6(2),d.Q6J("ngIf",!dn._hasOutline()&&!dn._control.disabled),d.xp6(2),d.Q6J("ngIf",dn._hasOutline()),d.xp6(1),d.Q6J("ngIf",dn._hasIconPrefix),d.xp6(1),d.Q6J("ngIf",dn._hasTextPrefix),d.xp6(2),d.Q6J("ngIf",!dn._hasOutline()||dn._forceDisplayInfixLabel()),d.xp6(2),d.Q6J("ngIf",dn._hasTextSuffix),d.xp6(1),d.Q6J("ngIf",dn._hasIconSuffix),d.xp6(1),d.Q6J("ngIf",!dn._hasOutline()),d.xp6(1),d.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===dn.subscriptSizing),d.Q6J("ngSwitch",dn._getDisplayedMessages()),d.xp6(1),d.Q6J("ngSwitchCase","error"),d.xp6(1),d.Q6J("ngSwitchCase","hint"))},dependencies:[f.O5,f.tP,f.RF,f.n9,Y.wD,gt,se,De,ne],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[wt.transitionMessages]},changeDetection:0}),_e})(),Me=(()=>{class _e{}return _e.\u0275fac=function(ct){return new(ct||_e)},_e.\u0275mod=d.oAB({type:_e}),_e.\u0275inj=d.cJS({imports:[W.BQ,f.ez,Y.Q8,W.BQ]}),_e})()},782:(vn,_t,y)=>{"use strict";y.d(_t,{DX:()=>B,Il:()=>me,N6:()=>re});var d=y(4650),i=y(3238),A=y(1281),p=y(445);const v=["*"];class J{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const Ae=Math.max(...this.tracker);return Ae>1?this.rowCount+Ae-1:this.rowCount}update(Ae,tt){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(Ae),this.tracker.fill(0,0,this.tracker.length),this.positions=tt.map(ot=>this._trackTile(ot))}_trackTile(Ae){const tt=this._findMatchingGap(Ae.colspan);return this._markTilePosition(tt,Ae),this.columnIndex=tt+Ae.colspan,new Y(this.rowIndex,tt)}_findMatchingGap(Ae){let tt=-1,ot=-1;do{this.columnIndex+Ae>this.tracker.length?(this._nextRow(),tt=this.tracker.indexOf(0,this.columnIndex),ot=this._findGapEndIndex(tt)):(tt=this.tracker.indexOf(0,this.columnIndex),-1!=tt?(ot=this._findGapEndIndex(tt),this.columnIndex=tt+1):(this._nextRow(),tt=this.tracker.indexOf(0,this.columnIndex),ot=this._findGapEndIndex(tt)))}while(ot-tt<Ae||0==ot);return Math.max(tt,0)}_nextRow(){this.columnIndex=0,this.rowIndex++;for(let Ae=0;Ae<this.tracker.length;Ae++)this.tracker[Ae]=Math.max(0,this.tracker[Ae]-1)}_findGapEndIndex(Ae){for(let tt=Ae+1;tt<this.tracker.length;tt++)if(0!=this.tracker[tt])return tt;return this.tracker.length}_markTilePosition(Ae,tt){for(let ot=0;ot<tt.colspan;ot++)this.tracker[Ae+ot]=tt.rowspan}}class Y{constructor(Ae,tt){this.row=Ae,this.col=tt}}const W=new d.OlP("MAT_GRID_LIST");let B=(()=>{class Oe{constructor(tt,ot){this._element=tt,this._gridList=ot,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(tt){this._rowspan=Math.round((0,A.su)(tt))}get colspan(){return this._colspan}set colspan(tt){this._colspan=Math.round((0,A.su)(tt))}_setStyle(tt,ot){this._element.nativeElement.style[tt]=ot}}return Oe.\u0275fac=function(tt){return new(tt||Oe)(d.Y36(d.SBq),d.Y36(W,8))},Oe.\u0275cmp=d.Xpm({type:Oe,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(tt,ot){2&tt&&d.uIk("rowspan",ot.rowspan)("colspan",ot.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:v,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(tt,ot){1&tt&&(d.F$t(),d.TgZ(0,"div",0),d.Hsn(1),d.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Oe})();const ue=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class Ze{constructor(){this._rows=0,this._rowspan=0}init(Ae,tt,ot,at){this._gutterSize=Ce(Ae),this._rows=tt.rowCount,this._rowspan=tt.rowspan,this._cols=ot,this._direction=at}getBaseTileSize(Ae,tt){return`(${Ae}% - (${this._gutterSize} * ${tt}))`}getTilePosition(Ae,tt){return 0===tt?"0":Ge(`(${Ae} + ${this._gutterSize}) * ${tt}`)}getTileSize(Ae,tt){return`(${Ae} * ${tt}) + (${tt-1} * ${this._gutterSize})`}setStyle(Ae,tt,ot){let at=100/this._cols,pt=(this._cols-1)/this._cols;this.setColStyles(Ae,ot,at,pt),this.setRowStyles(Ae,tt,at,pt)}setColStyles(Ae,tt,ot,at){let pt=this.getBaseTileSize(ot,at);Ae._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(pt,tt)),Ae._setStyle("width",Ge(this.getTileSize(pt,Ae.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(Ae){return`${this._rowspan} * ${this.getTileSize(Ae,1)}`}getComputedHeight(){return null}}class Qe extends Ze{constructor(Ae){super(),this.fixedRowHeight=Ae}init(Ae,tt,ot,at){super.init(Ae,tt,ot,at),this.fixedRowHeight=Ce(this.fixedRowHeight),ue.test(this.fixedRowHeight)}setRowStyles(Ae,tt){Ae._setStyle("top",this.getTilePosition(this.fixedRowHeight,tt)),Ae._setStyle("height",Ge(this.getTileSize(this.fixedRowHeight,Ae.rowspan)))}getComputedHeight(){return["height",Ge(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(Ae){Ae._setListStyle(["height",null]),Ae._tiles&&Ae._tiles.forEach(tt=>{tt._setStyle("top",null),tt._setStyle("height",null)})}}class vt extends Ze{constructor(Ae){super(),this._parseRatio(Ae)}setRowStyles(Ae,tt,ot,at){this.baseTileHeight=this.getBaseTileSize(ot/this.rowHeightRatio,at),Ae._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,tt)),Ae._setStyle("paddingTop",Ge(this.getTileSize(this.baseTileHeight,Ae.rowspan)))}getComputedHeight(){return["paddingBottom",Ge(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(Ae){Ae._setListStyle(["paddingBottom",null]),Ae._tiles.forEach(tt=>{tt._setStyle("marginTop",null),tt._setStyle("paddingTop",null)})}_parseRatio(Ae){const tt=Ae.split(":");this.rowHeightRatio=parseFloat(tt[0])/parseFloat(tt[1])}}class $e extends Ze{setRowStyles(Ae,tt){let pt=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);Ae._setStyle("top",this.getTilePosition(pt,tt)),Ae._setStyle("height",Ge(this.getTileSize(pt,Ae.rowspan)))}reset(Ae){Ae._tiles&&Ae._tiles.forEach(tt=>{tt._setStyle("top",null),tt._setStyle("height",null)})}}function Ge(Oe){return`calc(${Oe})`}function Ce(Oe){return Oe.match(/([A-Za-z%]+)$/)?Oe:`${Oe}px`}let me=(()=>{class Oe{constructor(tt,ot){this._element=tt,this._dir=ot,this._gutter="1px"}get cols(){return this._cols}set cols(tt){this._cols=Math.max(1,Math.round((0,A.su)(tt)))}get gutterSize(){return this._gutter}set gutterSize(tt){this._gutter=`${tt??""}`}get rowHeight(){return this._rowHeight}set rowHeight(tt){const ot=`${tt??""}`;ot!==this._rowHeight&&(this._rowHeight=ot,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(tt){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===tt?new $e:tt&&tt.indexOf(":")>-1?new vt(tt):new Qe(tt)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new J);const tt=this._tileCoordinator,ot=this._tiles.filter(pt=>!pt._gridList||pt._gridList===this),at=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,ot),this._tileStyler.init(this.gutterSize,tt,this.cols,at),ot.forEach((pt,ft)=>{const Et=tt.positions[ft];this._tileStyler.setStyle(pt,Et.row,Et.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(tt){tt&&(this._element.nativeElement.style[tt[0]]=tt[1])}}return Oe.\u0275fac=function(tt){return new(tt||Oe)(d.Y36(d.SBq),d.Y36(p.Is,8))},Oe.\u0275cmp=d.Xpm({type:Oe,selectors:[["mat-grid-list"]],contentQueries:function(tt,ot,at){if(1&tt&&d.Suo(at,B,5),2&tt){let pt;d.iGM(pt=d.CRH())&&(ot._tiles=pt)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(tt,ot){2&tt&&d.uIk("cols",ot.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[d._Bn([{provide:W,useExisting:Oe}])],ngContentSelectors:v,decls:2,vars:0,template:function(tt,ot){1&tt&&(d.F$t(),d.TgZ(0,"div"),d.Hsn(1),d.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}),Oe})(),re=(()=>{class Oe{}return Oe.\u0275fac=function(tt){return new(tt||Oe)},Oe.\u0275mod=d.oAB({type:Oe}),Oe.\u0275inj=d.cJS({imports:[i.uc,i.BQ,i.uc,i.BQ]}),Oe})()},7392:(vn,_t,y)=>{"use strict";y.d(_t,{Hw:()=>dt,Ps:()=>et});var d=y(4650),i=y(3238),A=y(1281),p=y(6895),v=y(1086),k=y(1737),f=y(567),b=y(2654),J=y(2868),Y=y(4850),W=y(7221),B=y(537),Z=y(2474),G=y(2986),ie=y(529),Ee=y(1481);const ue=["*"];let Ze;function vt(gt){return function Qe(){if(void 0===Ze&&(Ze=null,typeof window<"u")){const gt=window;void 0!==gt.trustedTypes&&(Ze=gt.trustedTypes.createPolicy("angular#components",{createHTML:Re=>Re}))}return Ze}()?.createHTML(gt)||gt}function $e(gt){return Error(`Unable to find icon with the name "${gt}"`)}function Ce(gt){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${gt}".`)}function ke(gt){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${gt}".`)}class me{constructor(Re,we,ce){this.url=Re,this.svgText=we,this.options=ce}}let re=(()=>{class gt{constructor(we,ce,ve,se){this._httpClient=we,this._sanitizer=ce,this._errorHandler=se,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=ve}addSvgIcon(we,ce,ve){return this.addSvgIconInNamespace("",we,ce,ve)}addSvgIconLiteral(we,ce,ve){return this.addSvgIconLiteralInNamespace("",we,ce,ve)}addSvgIconInNamespace(we,ce,ve,se){return this._addSvgIconConfig(we,ce,new me(ve,null,se))}addSvgIconResolver(we){return this._resolvers.push(we),this}addSvgIconLiteralInNamespace(we,ce,ve,se){const S=this._sanitizer.sanitize(d.q3G.HTML,ve);if(!S)throw ke(ve);const F=vt(S);return this._addSvgIconConfig(we,ce,new me("",F,se))}addSvgIconSet(we,ce){return this.addSvgIconSetInNamespace("",we,ce)}addSvgIconSetLiteral(we,ce){return this.addSvgIconSetLiteralInNamespace("",we,ce)}addSvgIconSetInNamespace(we,ce,ve){return this._addSvgIconSetConfig(we,new me(ce,null,ve))}addSvgIconSetLiteralInNamespace(we,ce,ve){const se=this._sanitizer.sanitize(d.q3G.HTML,ce);if(!se)throw ke(ce);const S=vt(se);return this._addSvgIconSetConfig(we,new me("",S,ve))}registerFontClassAlias(we,ce=we){return this._fontCssClassesByAlias.set(we,ce),this}classNameForFontAlias(we){return this._fontCssClassesByAlias.get(we)||we}setDefaultFontSetClass(...we){return this._defaultFontSetClass=we,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(we){const ce=this._sanitizer.sanitize(d.q3G.RESOURCE_URL,we);if(!ce)throw Ce(we);const ve=this._cachedIconsByUrl.get(ce);return ve?(0,v.of)(Ae(ve)):this._loadSvgIconFromConfig(new me(we,null)).pipe((0,J.b)(se=>this._cachedIconsByUrl.set(ce,se)),(0,Y.U)(se=>Ae(se)))}getNamedSvgIcon(we,ce=""){const ve=tt(ce,we);let se=this._svgIconConfigs.get(ve);if(se)return this._getSvgFromConfig(se);if(se=this._getIconConfigFromResolvers(ce,we),se)return this._svgIconConfigs.set(ve,se),this._getSvgFromConfig(se);const S=this._iconSetConfigs.get(ce);return S?this._getSvgFromIconSetConfigs(we,S):(0,k._)($e(ve))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(we){return we.svgText?(0,v.of)(Ae(this._svgElementFromConfig(we))):this._loadSvgIconFromConfig(we).pipe((0,Y.U)(ce=>Ae(ce)))}_getSvgFromIconSetConfigs(we,ce){const ve=this._extractIconWithNameFromAnySet(we,ce);if(ve)return(0,v.of)(ve);const se=ce.filter(S=>!S.svgText).map(S=>this._loadSvgIconSetFromConfig(S).pipe((0,W.K)(F=>{const ne=`Loading icon set URL: ${this._sanitizer.sanitize(d.q3G.RESOURCE_URL,S.url)} failed: ${F.message}`;return this._errorHandler.handleError(new Error(ne)),(0,v.of)(null)})));return(0,f.D)(se).pipe((0,Y.U)(()=>{const S=this._extractIconWithNameFromAnySet(we,ce);if(!S)throw $e(we);return S}))}_extractIconWithNameFromAnySet(we,ce){for(let ve=ce.length-1;ve>=0;ve--){const se=ce[ve];if(se.svgText&&se.svgText.toString().indexOf(we)>-1){const S=this._svgElementFromConfig(se),F=this._extractSvgIconFromSet(S,we,se.options);if(F)return F}}return null}_loadSvgIconFromConfig(we){return this._fetchIcon(we).pipe((0,J.b)(ce=>we.svgText=ce),(0,Y.U)(()=>this._svgElementFromConfig(we)))}_loadSvgIconSetFromConfig(we){return we.svgText?(0,v.of)(null):this._fetchIcon(we).pipe((0,J.b)(ce=>we.svgText=ce))}_extractSvgIconFromSet(we,ce,ve){const se=we.querySelector(`[id="${ce}"]`);if(!se)return null;const S=se.cloneNode(!0);if(S.removeAttribute("id"),"svg"===S.nodeName.toLowerCase())return this._setSvgAttributes(S,ve);if("symbol"===S.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(S),ve);const F=this._svgElementFromString(vt("<svg></svg>"));return F.appendChild(S),this._setSvgAttributes(F,ve)}_svgElementFromString(we){const ce=this._document.createElement("DIV");ce.innerHTML=we;const ve=ce.querySelector("svg");if(!ve)throw Error("<svg> tag not found");return ve}_toSvgElement(we){const ce=this._svgElementFromString(vt("<svg></svg>")),ve=we.attributes;for(let se=0;se<ve.length;se++){const{name:S,value:F}=ve[se];"id"!==S&&ce.setAttribute(S,F)}for(let se=0;se<we.childNodes.length;se++)we.childNodes[se].nodeType===this._document.ELEMENT_NODE&&ce.appendChild(we.childNodes[se].cloneNode(!0));return ce}_setSvgAttributes(we,ce){return we.setAttribute("fit",""),we.setAttribute("height","100%"),we.setAttribute("width","100%"),we.setAttribute("preserveAspectRatio","xMidYMid meet"),we.setAttribute("focusable","false"),ce&&ce.viewBox&&we.setAttribute("viewBox",ce.viewBox),we}_fetchIcon(we){const{url:ce,options:ve}=we,se=ve?.withCredentials??!1;if(!this._httpClient)throw function Ge(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==ce)throw Error(`Cannot fetch icon from URL "${ce}".`);const S=this._sanitizer.sanitize(d.q3G.RESOURCE_URL,ce);if(!S)throw Ce(ce);const F=this._inProgressUrlFetches.get(S);if(F)return F;const V=this._httpClient.get(S,{responseType:"text",withCredentials:se}).pipe((0,Y.U)(ne=>vt(ne)),(0,B.x)(()=>this._inProgressUrlFetches.delete(S)),(0,Z.B)());return this._inProgressUrlFetches.set(S,V),V}_addSvgIconConfig(we,ce,ve){return this._svgIconConfigs.set(tt(we,ce),ve),this}_addSvgIconSetConfig(we,ce){const ve=this._iconSetConfigs.get(we);return ve?ve.push(ce):this._iconSetConfigs.set(we,[ce]),this}_svgElementFromConfig(we){if(!we.svgElement){const ce=this._svgElementFromString(we.svgText);this._setSvgAttributes(ce,we.options),we.svgElement=ce}return we.svgElement}_getIconConfigFromResolvers(we,ce){for(let ve=0;ve<this._resolvers.length;ve++){const se=this._resolvers[ve](ce,we);if(se)return ot(se)?new me(se.url,null,se.options):new me(se,null)}}}return gt.\u0275fac=function(we){return new(we||gt)(d.LFG(ie.eN,8),d.LFG(Ee.H7),d.LFG(p.K0,8),d.LFG(d.qLn))},gt.\u0275prov=d.Yz7({token:gt,factory:gt.\u0275fac,providedIn:"root"}),gt})();function Ae(gt){return gt.cloneNode(!0)}function tt(gt,Re){return gt+":"+Re}function ot(gt){return!(!gt.url||!gt.options)}const at=(0,i.pj)(class{constructor(gt){this._elementRef=gt}}),pt=new d.OlP("MAT_ICON_DEFAULT_OPTIONS"),ft=new d.OlP("mat-icon-location",{providedIn:"root",factory:function Et(){const gt=(0,d.f3M)(p.K0),Re=gt?gt.location:null;return{getPathname:()=>Re?Re.pathname+Re.search:""}}}),be=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Pe=be.map(gt=>`[${gt}]`).join(", "),je=/^url\(['"]?#(.*?)['"]?\)$/;let dt=(()=>{class gt extends at{get inline(){return this._inline}set inline(we){this._inline=(0,A.Ig)(we)}get svgIcon(){return this._svgIcon}set svgIcon(we){we!==this._svgIcon&&(we?this._updateSvgIcon(we):this._svgIcon&&this._clearSvgElement(),this._svgIcon=we)}get fontSet(){return this._fontSet}set fontSet(we){const ce=this._cleanupFontValue(we);ce!==this._fontSet&&(this._fontSet=ce,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(we){const ce=this._cleanupFontValue(we);ce!==this._fontIcon&&(this._fontIcon=ce,this._updateFontIconClasses())}constructor(we,ce,ve,se,S,F){super(we),this._iconRegistry=ce,this._location=se,this._errorHandler=S,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=b.w.EMPTY,F&&(F.color&&(this.color=this.defaultColor=F.color),F.fontSet&&(this.fontSet=F.fontSet)),ve||we.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(we){if(!we)return["",""];const ce=we.split(":");switch(ce.length){case 1:return["",ce[0]];case 2:return ce;default:throw Error(`Invalid icon name: "${we}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const we=this._elementsWithExternalReferences;if(we&&we.size){const ce=this._location.getPathname();ce!==this._previousPath&&(this._previousPath=ce,this._prependPathToReferences(ce))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(we){this._clearSvgElement();const ce=this._location.getPathname();this._previousPath=ce,this._cacheChildrenWithExternalReferences(we),this._prependPathToReferences(ce),this._elementRef.nativeElement.appendChild(we)}_clearSvgElement(){const we=this._elementRef.nativeElement;let ce=we.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();ce--;){const ve=we.childNodes[ce];(1!==ve.nodeType||"svg"===ve.nodeName.toLowerCase())&&ve.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const we=this._elementRef.nativeElement,ce=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(ve=>ve.length>0);this._previousFontSetClass.forEach(ve=>we.classList.remove(ve)),ce.forEach(ve=>we.classList.add(ve)),this._previousFontSetClass=ce,this.fontIcon!==this._previousFontIconClass&&!ce.includes("mat-ligature-font")&&(this._previousFontIconClass&&we.classList.remove(this._previousFontIconClass),this.fontIcon&&we.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(we){return"string"==typeof we?we.trim().split(" ")[0]:we}_prependPathToReferences(we){const ce=this._elementsWithExternalReferences;ce&&ce.forEach((ve,se)=>{ve.forEach(S=>{se.setAttribute(S.name,`url('${we}#${S.value}')`)})})}_cacheChildrenWithExternalReferences(we){const ce=we.querySelectorAll(Pe),ve=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let se=0;se<ce.length;se++)be.forEach(S=>{const F=ce[se],V=F.getAttribute(S),ne=V?V.match(je):null;if(ne){let De=ve.get(F);De||(De=[],ve.set(F,De)),De.push({name:S,value:ne[1]})}})}_updateSvgIcon(we){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),we){const[ce,ve]=this._splitIconName(we);ce&&(this._svgNamespace=ce),ve&&(this._svgName=ve),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ve,ce).pipe((0,G.q)(1)).subscribe(se=>this._setSvgElement(se),se=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${ce}:${ve}! ${se.message}`))})}}}return gt.\u0275fac=function(we){return new(we||gt)(d.Y36(d.SBq),d.Y36(re),d.$8M("aria-hidden"),d.Y36(ft),d.Y36(d.qLn),d.Y36(pt,8))},gt.\u0275cmp=d.Xpm({type:gt,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(we,ce){2&we&&(d.uIk("data-mat-icon-type",ce._usingFontIcon()?"font":"svg")("data-mat-icon-name",ce._svgName||ce.fontIcon)("data-mat-icon-namespace",ce._svgNamespace||ce.fontSet)("fontIcon",ce._usingFontIcon()?ce.fontIcon:null),d.ekj("mat-icon-inline",ce.inline)("mat-icon-no-color","primary"!==ce.color&&"accent"!==ce.color&&"warn"!==ce.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[d.qOj],ngContentSelectors:ue,decls:1,vars:0,template:function(we,ce){1&we&&(d.F$t(),d.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),gt})(),et=(()=>{class gt{}return gt.\u0275fac=function(we){return new(we||gt)},gt.\u0275mod=d.oAB({type:gt}),gt.\u0275inj=d.cJS({imports:[i.BQ,i.BQ]}),gt})()},4144:(vn,_t,y)=>{"use strict";y.d(_t,{Jk:()=>ie,Nt:()=>Qe,c:()=>vt});var d=y(1281),i=y(3353),A=y(4650),p=y(8896),v=y(8929);const k=(0,i.i$)({passive:!0});let f=(()=>{class $e{constructor(Ce,ke){this._platform=Ce,this._ngZone=ke,this._monitoredElements=new Map}monitor(Ce){if(!this._platform.isBrowser)return p.E;const ke=(0,d.fI)(Ce),me=this._monitoredElements.get(ke);if(me)return me.subject;const re=new v.xQ,ye="cdk-text-field-autofilled",Oe=Ae=>{"cdk-text-field-autofill-start"!==Ae.animationName||ke.classList.contains(ye)?"cdk-text-field-autofill-end"===Ae.animationName&&ke.classList.contains(ye)&&(ke.classList.remove(ye),this._ngZone.run(()=>re.next({target:Ae.target,isAutofilled:!1}))):(ke.classList.add(ye),this._ngZone.run(()=>re.next({target:Ae.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{ke.addEventListener("animationstart",Oe,k),ke.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(ke,{subject:re,unlisten:()=>{ke.removeEventListener("animationstart",Oe,k)}}),re}stopMonitoring(Ce){const ke=(0,d.fI)(Ce),me=this._monitoredElements.get(ke);me&&(me.unlisten(),me.subject.complete(),ke.classList.remove("cdk-text-field-autofill-monitored"),ke.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(ke))}ngOnDestroy(){this._monitoredElements.forEach((Ce,ke)=>this.stopMonitoring(ke))}}return $e.\u0275fac=function(Ce){return new(Ce||$e)(A.LFG(i.t4),A.LFG(A.R0b))},$e.\u0275prov=A.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),Y=(()=>{class $e{}return $e.\u0275fac=function(Ce){return new(Ce||$e)},$e.\u0275mod=A.oAB({type:$e}),$e.\u0275inj=A.cJS({}),$e})();var W=y(4006),B=y(3238),Z=y(9549);const ie=new A.OlP("MAT_INPUT_VALUE_ACCESSOR"),Ee=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let ue=0;const Ze=(0,B.FD)(class{constructor($e,Ge,Ce,ke){this._defaultErrorStateMatcher=$e,this._parentForm=Ge,this._parentFormGroup=Ce,this.ngControl=ke,this.stateChanges=new v.xQ}});let Qe=(()=>{class $e extends Ze{get disabled(){return this._disabled}set disabled(Ce){this._disabled=(0,d.Ig)(Ce),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(Ce){this._id=Ce||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(W.kI.required)??!1}set required(Ce){this._required=(0,d.Ig)(Ce)}get type(){return this._type}set type(Ce){this._type=Ce||"text",this._validateType(),!this._isTextarea&&(0,i.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(Ce){Ce!==this.value&&(this._inputValueAccessor.value=Ce,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Ce){this._readonly=(0,d.Ig)(Ce)}constructor(Ce,ke,me,re,ye,Oe,Ae,tt,ot,at){super(Oe,re,ye,me),this._elementRef=Ce,this._platform=ke,this._autofillMonitor=tt,this._formField=at,this._uid="mat-input-"+ue++,this.focused=!1,this.stateChanges=new v.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Et=>(0,i.qK)().has(Et)),this._iOSKeyupListener=Et=>{const be=Et.target;!be.value&&0===be.selectionStart&&0===be.selectionEnd&&(be.setSelectionRange(1,1),be.setSelectionRange(0,0))};const pt=this._elementRef.nativeElement,ft=pt.nodeName.toLowerCase();this._inputValueAccessor=Ae||pt,this._previousNativeValue=this.value,this.id=this.id,ke.IOS&&ot.runOutsideAngular(()=>{Ce.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ft,this._isTextarea="textarea"===ft,this._isInFormField=!!at,this._isNativeSelect&&(this.controlType=pt.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Ce=>{this.autofilled=Ce.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Ce){this._elementRef.nativeElement.focus(Ce)}_focusChanged(Ce){Ce!==this.focused&&(this.focused=Ce,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const Ce=this._elementRef.nativeElement.value;this._previousNativeValue!==Ce&&(this._previousNativeValue=Ce,this.stateChanges.next())}_dirtyCheckPlaceholder(){const Ce=this._getPlaceholder();if(Ce!==this._previousPlaceholder){const ke=this._elementRef.nativeElement;this._previousPlaceholder=Ce,Ce?ke.setAttribute("placeholder",Ce):ke.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Ee.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Ce=this._elementRef.nativeElement.validity;return Ce&&Ce.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Ce=this._elementRef.nativeElement,ke=Ce.options[0];return this.focused||Ce.multiple||!this.empty||!!(Ce.selectedIndex>-1&&ke&&ke.label)}return this.focused||!this.empty}setDescribedByIds(Ce){Ce.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Ce.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Ce=this._elementRef.nativeElement;return this._isNativeSelect&&(Ce.multiple||Ce.size>1)}}return $e.\u0275fac=function(Ce){return new(Ce||$e)(A.Y36(A.SBq),A.Y36(i.t4),A.Y36(W.a5,10),A.Y36(W.F,8),A.Y36(W.sg,8),A.Y36(B.rD),A.Y36(ie,10),A.Y36(f),A.Y36(A.R0b),A.Y36(Z.G_,8))},$e.\u0275dir=A.lG2({type:$e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(Ce,ke){1&Ce&&A.NdJ("focus",function(){return ke._focusChanged(!0)})("blur",function(){return ke._focusChanged(!1)})("input",function(){return ke._onInput()}),2&Ce&&(A.Ikx("id",ke.id)("disabled",ke.disabled)("required",ke.required),A.uIk("name",ke.name||null)("readonly",ke.readonly&&!ke._isNativeSelect||null)("aria-invalid",ke.empty&&ke.required?null:ke.errorState)("aria-required",ke.required)("id",ke.id),A.ekj("mat-input-server",ke._isServer)("mat-mdc-form-field-textarea-control",ke._isInFormField&&ke._isTextarea)("mat-mdc-form-field-input-control",ke._isInFormField)("mdc-text-field__input",ke._isInFormField)("mat-mdc-native-select-inline",ke._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[A._Bn([{provide:Z.Eo,useExisting:$e}]),A.qOj,A.TTD]}),$e})(),vt=(()=>{class $e{}return $e.\u0275fac=function(Ce){return new(Ce||$e)},$e.\u0275mod=A.oAB({type:$e}),$e.\u0275inj=A.cJS({imports:[B.BQ,Z.lN,Z.lN,Y,B.BQ]}),$e})()},6338:(vn,_t,y)=>{"use strict";y.d(_t,{Hk:()=>fe,Tg:()=>nn,gs:()=>Zt,i$:()=>wt,ie:()=>Lt});var d=y(4650),i=y(1281),A=y(3353),p=y(3238),v=y(2654),k=y(6787),b=(y(8929),y(9643)),J=y(6895),Y=y(8729);y(2687),y(5017),y(9521),y(4006),y(7625);const Ee=["*"],ue='@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-list-divider::after{content:"";display:block;border-bottom-width:1px;border-bottom-style:solid}}.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected:focus::before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);line-height:var(--mdc-typography-caption-line-height);font-weight:var(--mdc-typography-caption-font-weight);letter-spacing:var(--mdc-typography-caption-letter-spacing);text-decoration:var(--mdc-typography-caption-text-decoration);text-transform:var(--mdc-typography-caption-text-transform)}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{margin:calc((3rem - 1.5rem)/2) 16px}.mdc-list-divider{padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0}.mdc-list-item{background-color:var(--mdc-list-list-item-container-color)}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item--with-one-line{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-avatar,.mdc-list-item--with-one-line.mdc-list-item--with-leading-icon,.mdc-list-item--with-one-line.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-one-line.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-one-line.mdc-list-item--with-leading-radio,.mdc-list-item--with-one-line.mdc-list-item--with-leading-switch{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-image,.mdc-list-item--with-one-line.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines.mdc-list-item--with-leading-avatar,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-icon,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-radio,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-switch,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-image,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-three-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height)}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height)}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height)}.mdc-list-item__primary-text{color:var(--mdc-list-list-item-label-text-color)}.mdc-list-item__primary-text{font-family:var(--mdc-list-list-item-label-text-font);line-height:var(--mdc-list-list-item-label-text-line-height);font-size:var(--mdc-list-list-item-label-text-size);font-weight:var(--mdc-list-list-item-label-text-weight);letter-spacing:var(--mdc-list-list-item-label-text-tracking)}.mdc-list-item__secondary-text{color:var(--mdc-list-list-item-supporting-text-color)}.mdc-list-item__secondary-text{font-family:var(--mdc-list-list-item-supporting-text-font);line-height:var(--mdc-list-list-item-supporting-text-line-height);font-size:var(--mdc-list-list-item-supporting-text-size);font-weight:var(--mdc-list-list-item-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-supporting-text-tracking)}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color)}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start>i{font-size:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon{font-size:var(--mdc-list-list-item-leading-icon-size);width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size);height:var(--mdc-list-list-item-leading-avatar-size)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color)}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font);line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height);font-size:var(--mdc-list-list-item-trailing-supporting-text-size);font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end>i{font-size:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon{font-size:var(--mdc-list-list-item-trailing-icon-size);width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color)}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text,.mdc-list-item--disabled .mdc-list-item__overline-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity)}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color)}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color)}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color)}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color);opacity:var(--mdc-list-list-item-hover-state-layer-opacity)}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color);opacity:var(--mdc-list-list-item-disabled-state-layer-opacity)}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color);opacity:var(--mdc-list-list-item-focus-state-layer-opacity)}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape);background-color:var(--mdc-list-list-item-leading-avatar-color)}.mat-mdc-list-base{--mdc-list-list-item-container-shape:0;--mdc-list-list-item-leading-avatar-shape:50%;--mdc-list-list-item-container-color:transparent;--mdc-list-list-item-selected-container-color:transparent;--mdc-list-list-item-leading-avatar-color:transparent;--mdc-list-list-item-leading-icon-size:24px;--mdc-list-list-item-leading-avatar-size:40px;--mdc-list-list-item-trailing-icon-size:24px;--mdc-list-list-item-disabled-state-layer-color:transparent;--mdc-list-list-item-disabled-state-layer-opacity:0;--mdc-list-list-item-disabled-label-text-opacity:0.38;--mdc-list-list-item-disabled-leading-icon-opacity:0.38;--mdc-list-list-item-disabled-trailing-icon-opacity:0.38}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}',Ze=["unscopedContent"],Qe=["text"],vt=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],$e=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],dt=new d.OlP("ListOption");let et=(()=>{class Ke{constructor(Me){this._elementRef=Me}}return Ke.\u0275fac=function(Me){return new(Me||Ke)(d.Y36(d.SBq))},Ke.\u0275dir=d.lG2({type:Ke,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]}),Ke})(),gt=(()=>{class Ke{constructor(Me){this._elementRef=Me}}return Ke.\u0275fac=function(Me){return new(Me||Ke)(d.Y36(d.SBq))},Ke.\u0275dir=d.lG2({type:Ke,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]}),Ke})(),Re=(()=>{class Ke{}return Ke.\u0275fac=function(Me){return new(Me||Ke)},Ke.\u0275dir=d.lG2({type:Ke,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]}),Ke})(),we=(()=>{class Ke{constructor(Me){this._listOption=Me}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getTogglePosition()}}return Ke.\u0275fac=function(Me){return new(Me||Ke)(d.Y36(dt,8))},Ke.\u0275dir=d.lG2({type:Ke,hostVars:4,hostBindings:function(Me,_e){2&Me&&d.ekj("mdc-list-item__start",_e._isAlignedAtStart())("mdc-list-item__end",!_e._isAlignedAtStart())}}),Ke})(),ce=(()=>{class Ke extends we{}return Ke.\u0275fac=function(){let ge;return function(_e){return(ge||(ge=d.n5z(Ke)))(_e||Ke)}}(),Ke.\u0275dir=d.lG2({type:Ke,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[d.qOj]}),Ke})(),ve=(()=>{class Ke extends we{}return Ke.\u0275fac=function(){let ge;return function(_e){return(ge||(ge=d.n5z(Ke)))(_e||Ke)}}(),Ke.\u0275dir=d.lG2({type:Ke,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[d.qOj]}),Ke})();const se=new d.OlP("MAT_LIST_CONFIG");let S=(()=>{class Ke{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=(0,d.f3M)(se,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(Me){this._disableRipple=(0,i.Ig)(Me)}get disabled(){return this._disabled}set disabled(Me){this._disabled=(0,i.Ig)(Me)}}return Ke.\u0275fac=function(Me){return new(Me||Ke)},Ke.\u0275dir=d.lG2({type:Ke,hostVars:1,hostBindings:function(Me,_e){2&Me&&d.uIk("aria-disabled",_e.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}}),Ke})(),F=(()=>{class Ke{set lines(Me){this._explicitLines=(0,i.su)(Me,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(Me){this._disableRipple=(0,i.Ig)(Me)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(Me){this._disabled=(0,i.Ig)(Me)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(Me,_e,it,ct,dn,Rn){this._elementRef=Me,this._ngZone=_e,this._listBase=it,this._platform=ct,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new v.w,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=dn||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement="button"===this._hostElement.nodeName.toLowerCase(),this._noopAnimations="NoopAnimations"===Rn,it&&!it._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new p.IR(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add((0,k.T)(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(Me){if(!this._lines||!this._titles||!this._unscopedContent)return;Me&&this._checkDomForUnscopedTextContent();const _e=this._explicitLines??this._inferLinesFromContent(),it=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",_e<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",_e<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===_e),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===_e),this._hasUnscopedTextContent){const ct=0===this._titles.length&&1===_e;it.classList.toggle("mdc-list-item__primary-text",ct),it.classList.toggle("mdc-list-item__secondary-text",!ct)}else it.classList.remove("mdc-list-item__primary-text"),it.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let Me=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(Me+=1),Me}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(Me=>Me.nodeType!==Me.COMMENT_NODE).some(Me=>!(!Me.textContent||!Me.textContent.trim()))}}return Ke.\u0275fac=function(Me){return new(Me||Ke)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(S,8),d.Y36(A.t4),d.Y36(p.Y2,8),d.Y36(d.QbO,8))},Ke.\u0275dir=d.lG2({type:Ke,contentQueries:function(Me,_e,it){if(1&Me&&(d.Suo(it,ce,4),d.Suo(it,ve,4)),2&Me){let ct;d.iGM(ct=d.CRH())&&(_e._avatars=ct),d.iGM(ct=d.CRH())&&(_e._icons=ct)}},hostVars:4,hostBindings:function(Me,_e){2&Me&&(d.uIk("aria-disabled",_e.disabled)("disabled",_e._isButtonElement&&_e.disabled||null),d.ekj("mdc-list-item--disabled",_e.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}}),Ke})(),wt=(()=>{class Ke extends S{}return Ke.\u0275fac=function(){let ge;return function(_e){return(ge||(ge=d.n5z(Ke)))(_e||Ke)}}(),Ke.\u0275cmp=d.Xpm({type:Ke,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[d._Bn([{provide:S,useExisting:Ke}]),d.qOj],ngContentSelectors:Ee,decls:1,vars:0,template:function(Me,_e){1&Me&&(d.F$t(),d.Hsn(0))},styles:[ue],encapsulation:2,changeDetection:0}),Ke})(),nn=(()=>{class Ke extends F{get activated(){return this._activated}set activated(Me){this._activated=(0,i.Ig)(Me)}constructor(Me,_e,it,ct,dn,Rn){super(Me,_e,it,ct,dn,Rn),this._activated=!1}_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}}return Ke.\u0275fac=function(Me){return new(Me||Ke)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(S,8),d.Y36(A.t4),d.Y36(p.Y2,8),d.Y36(d.QbO,8))},Ke.\u0275cmp=d.Xpm({type:Ke,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(Me,_e,it){if(1&Me&&(d.Suo(it,gt,5),d.Suo(it,et,5),d.Suo(it,Re,5)),2&Me){let ct;d.iGM(ct=d.CRH())&&(_e._lines=ct),d.iGM(ct=d.CRH())&&(_e._titles=ct),d.iGM(ct=d.CRH())&&(_e._meta=ct)}},viewQuery:function(Me,_e){if(1&Me&&(d.Gf(Ze,5),d.Gf(Qe,5)),2&Me){let it;d.iGM(it=d.CRH())&&(_e._unscopedContent=it.first),d.iGM(it=d.CRH())&&(_e._itemText=it.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:11,hostBindings:function(Me,_e){2&Me&&(d.uIk("aria-current",_e._getAriaCurrent()),d.ekj("mdc-list-item--activated",_e.activated)("mdc-list-item--with-leading-avatar",0!==_e._avatars.length)("mdc-list-item--with-leading-icon",0!==_e._icons.length)("mdc-list-item--with-trailing-meta",0!==_e._meta.length)("_mat-animation-noopable",_e._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[d.qOj],ngContentSelectors:$e,decls:10,vars:0,consts:[[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],["unscopedContent",""],[1,"mat-mdc-focus-indicator"]],template:function(Me,_e){1&Me&&(d.F$t(vt),d.Hsn(0),d.TgZ(1,"span",0),d.Hsn(2,1),d.Hsn(3,2),d.TgZ(4,"span",1,2),d.NdJ("cdkObserveContent",function(){return _e._updateItemLines(!0)}),d.Hsn(6,3),d.qZA()(),d.Hsn(7,4),d.Hsn(8,5),d._UZ(9,"div",3))},dependencies:[b.wD],encapsulation:2,changeDetection:0}),Ke})(),Zt=(()=>{class Ke{}return Ke.\u0275fac=function(Me){return new(Me||Ke)},Ke.\u0275dir=d.lG2({type:Ke,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-mdc-subheader","mdc-list-group__subheader"]}),Ke})(),fe=(()=>{class Ke extends S{constructor(){super(...arguments),this._isNonInteractive=!1}}return Ke.\u0275fac=function(){let ge;return function(_e){return(ge||(ge=d.n5z(Ke)))(_e||Ke)}}(),Ke.\u0275cmp=d.Xpm({type:Ke,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[d._Bn([{provide:S,useExisting:Ke}]),d.qOj],ngContentSelectors:Ee,decls:1,vars:0,template:function(Me,_e){1&Me&&(d.F$t(),d.Hsn(0))},styles:[ue],encapsulation:2,changeDetection:0}),Ke})(),Lt=(()=>{class Ke{}return Ke.\u0275fac=function(Me){return new(Me||Ke)},Ke.\u0275mod=d.oAB({type:Ke}),Ke.\u0275inj=d.cJS({imports:[b.Q8,J.ez,p.BQ,p.si,p.us,Y.t]}),Ke})()},3217:(vn,_t,y)=>{"use strict";y.d(_t,{VK:()=>nn,OP:()=>dt,Tx:()=>Je,p6:()=>lt});var d=y(4650),i=y(2687),A=y(1281),p=y(9521),v=y(8929),k=y(6787),f=y(2654),b=y(1086),J=y(8139),Y=y(1059),W=y(7545),B=y(2986),Z=y(7625),G=y(2198),ie=y(353),ue=y(3489),Ze=y(9312);function Qe(Lt,Ke=ie.P){const Me=function Ee(Lt){return Lt instanceof Date&&!isNaN(+Lt)}(Lt)?+Lt-Ke.now():Math.abs(Lt);return _e=>_e.lift(new vt(Me,Ke))}class vt{constructor(Ke,ge){this.delay=Ke,this.scheduler=ge}call(Ke,ge){return ge.subscribe(new $e(Ke,this.delay,this.scheduler))}}class $e extends ue.L{constructor(Ke,ge,Me){super(Ke),this.delay=ge,this.scheduler=Me,this.queue=[],this.active=!1,this.errored=!1}static dispatch(Ke){const ge=Ke.source,Me=ge.queue,_e=Ke.scheduler,it=Ke.destination;for(;Me.length>0&&Me[0].time-_e.now()<=0;)Me.shift().notification.observe(it);if(Me.length>0){const ct=Math.max(0,Me[0].time-_e.now());this.schedule(Ke,ct)}else this.unsubscribe(),ge.active=!1}_schedule(Ke){this.active=!0,this.destination.add(Ke.schedule($e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:Ke}))}scheduleNotification(Ke){if(!0===this.errored)return;const ge=this.scheduler,Me=new Ge(ge.now()+this.delay,Ke);this.queue.push(Me),!1===this.active&&this._schedule(ge)}_next(Ke){this.scheduleNotification(Ze.P.createNext(Ke))}_error(Ke){this.errored=!0,this.queue=[],this.destination.error(Ke),this.unsubscribe()}_complete(){this.scheduleNotification(Ze.P.createComplete()),this.unsubscribe()}}class Ge{constructor(Ke,ge){this.time=Ke,this.notification=ge}}var Ce=y(3238),ke=y(6895),me=y(4080),re=y(7340),ye=y(445),Oe=y(8184),Ae=y(3353),tt=y(7261);const ot=["mat-menu-item",""];function at(Lt,Ke){1&Lt&&(d.O4$(),d.TgZ(0,"svg",3),d._UZ(1,"polygon",4),d.qZA())}const pt=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],ft=["mat-icon, [matMenuItemIcon]","*"];function Et(Lt,Ke){if(1&Lt){const ge=d.EpF();d.TgZ(0,"div",0),d.NdJ("keydown",function(_e){d.CHM(ge);const it=d.oxw();return d.KtG(it._handleKeydown(_e))})("click",function(){d.CHM(ge);const _e=d.oxw();return d.KtG(_e.closed.emit("click"))})("@transformMenu.start",function(_e){d.CHM(ge);const it=d.oxw();return d.KtG(it._onAnimationStart(_e))})("@transformMenu.done",function(_e){d.CHM(ge);const it=d.oxw();return d.KtG(it._onAnimationDone(_e))}),d.TgZ(1,"div",1),d.Hsn(2),d.qZA()()}if(2&Lt){const ge=d.oxw();d.Q6J("id",ge.panelId)("ngClass",ge._classList)("@transformMenu",ge._panelAnimationState),d.uIk("aria-label",ge.ariaLabel||null)("aria-labelledby",ge.ariaLabelledby||null)("aria-describedby",ge.ariaDescribedby||null)}}const be=["*"],Pe=new d.OlP("MAT_MENU_PANEL"),je=(0,Ce.Kr)((0,Ce.Id)(class{}));let dt=(()=>{class Lt extends je{constructor(ge,Me,_e,it,ct){super(),this._elementRef=ge,this._document=Me,this._focusMonitor=_e,this._parentMenu=it,this._changeDetectorRef=ct,this.role="menuitem",this._hovered=new v.xQ,this._focused=new v.xQ,this._highlighted=!1,this._triggersSubmenu=!1,it?.addItem?.(this)}focus(ge,Me){this._focusMonitor&&ge?this._focusMonitor.focusVia(this._getHostElement(),ge,Me):this._getHostElement().focus(Me),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(ge){this.disabled&&(ge.preventDefault(),ge.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const ge=this._elementRef.nativeElement.cloneNode(!0),Me=ge.querySelectorAll("mat-icon, .material-icons");for(let _e=0;_e<Me.length;_e++)Me[_e].remove();return ge.textContent?.trim()||""}_setHighlighted(ge){this._highlighted=ge,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(ge){this._triggersSubmenu=ge,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return Lt.\u0275fac=function(ge){return new(ge||Lt)(d.Y36(d.SBq),d.Y36(ke.K0),d.Y36(i.tE),d.Y36(Pe,8),d.Y36(d.sBO))},Lt.\u0275cmp=d.Xpm({type:Lt,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator","mdc-list-item"],hostVars:8,hostBindings:function(ge,Me){1&ge&&d.NdJ("click",function(it){return Me._checkDisabled(it)})("mouseenter",function(){return Me._handleMouseEnter()}),2&ge&&(d.uIk("role",Me.role)("tabindex",Me._getTabIndex())("aria-disabled",Me.disabled)("disabled",Me.disabled||null),d.ekj("mat-mdc-menu-item-highlighted",Me._highlighted)("mat-mdc-menu-item-submenu-trigger",Me._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[d.qOj],attrs:ot,ngContentSelectors:ft,decls:5,vars:3,consts:[[1,"mdc-list-item__primary-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(ge,Me){1&ge&&(d.F$t(pt),d.Hsn(0),d.TgZ(1,"span",0),d.Hsn(2,1),d.qZA(),d._UZ(3,"div",1),d.YNc(4,at,2,0,"svg",2)),2&ge&&(d.xp6(3),d.Q6J("matRippleDisabled",Me.disableRipple||Me.disabled)("matRippleTrigger",Me._getHostElement()),d.xp6(1),d.Q6J("ngIf",Me._triggersSubmenu))},dependencies:[ke.O5,Ce.wG],encapsulation:2,changeDetection:0}),Lt})();const we=new d.OlP("MatMenuContent"),se={transformMenu:(0,re.X$)("transformMenu",[(0,re.SB)("void",(0,re.oB)({opacity:0,transform:"scale(0.8)"})),(0,re.eR)("void => enter",(0,re.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,re.oB)({opacity:1,transform:"scale(1)"}))),(0,re.eR)("* => void",(0,re.jt)("100ms 25ms linear",(0,re.oB)({opacity:0})))]),fadeInItems:(0,re.X$)("fadeInItems",[(0,re.SB)("showing",(0,re.oB)({opacity:1})),(0,re.eR)("void => *",[(0,re.oB)({opacity:0}),(0,re.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let V=0;const ne=new d.OlP("mat-menu-default-options",{providedIn:"root",factory:function De(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let wt=(()=>{class Lt{get xPosition(){return this._xPosition}set xPosition(ge){this._xPosition=ge,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ge){this._yPosition=ge,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ge){this._overlapTrigger=(0,A.Ig)(ge)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ge){this._hasBackdrop=(0,A.Ig)(ge)}set panelClass(ge){const Me=this._previousPanelClass;Me&&Me.length&&Me.split(" ").forEach(_e=>{this._classList[_e]=!1}),this._previousPanelClass=ge,ge&&ge.length&&(ge.split(" ").forEach(_e=>{this._classList[_e]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ge){this.panelClass=ge}constructor(ge,Me,_e,it){this._elementRef=ge,this._ngZone=Me,this._defaultOptions=_e,this._changeDetectorRef=it,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new d.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new v.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new d.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+V++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new i.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,Y.O)(this._directDescendantItems),(0,W.w)(ge=>(0,k.T)(...ge.map(Me=>Me._focused)))).subscribe(ge=>this._keyManager.updateActiveItem(ge)),this._directDescendantItems.changes.subscribe(ge=>{const Me=this._keyManager;if("enter"===this._panelAnimationState&&Me.activeItem?._hasFocus()){const _e=ge.toArray(),it=Math.max(0,Math.min(_e.length-1,Me.activeItemIndex||0));_e[it]&&!_e[it].disabled?Me.setActiveItem(it):Me.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,Y.O)(this._directDescendantItems),(0,W.w)(Me=>(0,k.T)(...Me.map(_e=>_e._hovered))))}addItem(ge){}removeItem(ge){}_handleKeydown(ge){const Me=ge.keyCode,_e=this._keyManager;switch(Me){case p.hY:(0,p.Vb)(ge)||(ge.preventDefault(),this.closed.emit("keydown"));break;case p.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case p.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Me===p.LH||Me===p.JH)&&_e.setFocusOrigin("keyboard"),void _e.onKeydown(ge)}ge.stopPropagation()}focusFirstItem(ge="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,B.q)(1)).subscribe(()=>{let Me=null;if(this._directDescendantItems.length&&(Me=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Me||!Me.contains(document.activeElement)){const _e=this._keyManager;_e.setFocusOrigin(ge).setFirstItemActive(),!_e.activeItem&&Me&&Me.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ge){const Me=Math.min(this._baseElevation+ge,24),_e=`${this._elevationPrefix}${Me}`,it=Object.keys(this._classList).find(ct=>ct.startsWith(this._elevationPrefix));(!it||it===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[_e]=!0,this._previousElevation=_e)}setPositionClasses(ge=this.xPosition,Me=this.yPosition){const _e=this._classList;_e["mat-menu-before"]="before"===ge,_e["mat-menu-after"]="after"===ge,_e["mat-menu-above"]="above"===Me,_e["mat-menu-below"]="below"===Me,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ge){this._animationDone.next(ge),this._isAnimating=!1}_onAnimationStart(ge){this._isAnimating=!0,"enter"===ge.toState&&0===this._keyManager.activeItemIndex&&(ge.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,Y.O)(this._allItems)).subscribe(ge=>{this._directDescendantItems.reset(ge.filter(Me=>Me._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Lt.\u0275fac=function(ge){return new(ge||Lt)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(ne),d.Y36(d.sBO))},Lt.\u0275dir=d.lG2({type:Lt,contentQueries:function(ge,Me,_e){if(1&ge&&(d.Suo(_e,we,5),d.Suo(_e,dt,5),d.Suo(_e,dt,4)),2&ge){let it;d.iGM(it=d.CRH())&&(Me.lazyContent=it.first),d.iGM(it=d.CRH())&&(Me._allItems=it),d.iGM(it=d.CRH())&&(Me.items=it)}},viewQuery:function(ge,Me){if(1&ge&&d.Gf(d.Rgc,5),2&ge){let _e;d.iGM(_e=d.CRH())&&(Me.templateRef=_e.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),Lt})(),nn=(()=>{class Lt extends wt{constructor(ge,Me,_e,it){super(ge,Me,_e,it),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return Lt.\u0275fac=function(ge){return new(ge||Lt)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(ne),d.Y36(d.sBO))},Lt.\u0275cmp=d.Xpm({type:Lt,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ge,Me){2&ge&&d.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[d._Bn([{provide:Pe,useExisting:Lt}]),d.qOj],ngContentSelectors:be,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(ge,Me){1&ge&&(d.F$t(),d.YNc(0,Et,3,6,"ng-template"))},dependencies:[ke.mk],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item.mdc-list-item{align-items:center}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item .mdc-list-item__primary-text{white-space:normal}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[se.transformMenu,se.fadeInItems]},changeDetection:0}),Lt})();const Jt=new d.OlP("mat-menu-scroll-strategy"),Zt={provide:Jt,deps:[Oe.aV],useFactory:function un(Lt){return()=>Lt.scrollStrategies.reposition()}},zt=(0,Ae.i$)({passive:!0});let Te=(()=>{class Lt{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ge){this.menu=ge}get menu(){return this._menu}set menu(ge){ge!==this._menu&&(this._menu=ge,this._menuCloseSubscription.unsubscribe(),ge&&(this._menuCloseSubscription=ge.close.subscribe(Me=>{this._destroyMenu(Me),("click"===Me||"tab"===Me)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Me)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(ge,Me,_e,it,ct,dn,Rn,An,Gt){this._overlay=ge,this._element=Me,this._viewContainerRef=_e,this._menuItemInstance=dn,this._dir=Rn,this._focusMonitor=An,this._ngZone=Gt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=f.w.EMPTY,this._hoverSubscription=f.w.EMPTY,this._menuCloseSubscription=f.w.EMPTY,this._changeDetectorRef=(0,d.f3M)(d.sBO),this._handleTouchStart=gn=>{(0,i.yG)(gn)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new d.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new d.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=it,this._parentMaterialMenu=ct instanceof wt?ct:void 0,Me.nativeElement.addEventListener("touchstart",this._handleTouchStart,zt)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,zt),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const ge=this.menu;if(this._menuOpen||!ge)return;const Me=this._createOverlay(ge),_e=Me.getConfig(),it=_e.positionStrategy;this._setPosition(ge,it),_e.hasBackdrop=null==ge.hasBackdrop?!this.triggersSubmenu():ge.hasBackdrop,Me.attach(this._getPortal(ge)),ge.lazyContent&&ge.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(ge),ge instanceof wt&&(ge._startAnimation(),ge._directDescendantItems.changes.pipe((0,Z.R)(ge.close)).subscribe(()=>{it.withLockedPosition(!1).reapplyLastPosition(),it.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(ge,Me){this._focusMonitor&&ge?this._focusMonitor.focusVia(this._element,ge,Me):this._element.nativeElement.focus(Me)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(ge){if(!this._overlayRef||!this.menuOpen)return;const Me=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ge||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Me instanceof wt?(Me._resetAnimation(),Me.lazyContent?Me._animationDone.pipe((0,G.h)(_e=>"void"===_e.toState),(0,B.q)(1),(0,Z.R)(Me.lazyContent._attached)).subscribe({next:()=>Me.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Me?.lazyContent?.detach())}_initMenu(ge){ge.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,ge.direction=this.dir,this._setMenuElevation(ge),ge.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(ge){if(ge.setElevation){let Me=0,_e=ge.parentMenu;for(;_e;)Me++,_e=_e.parentMenu;ge.setElevation(Me)}}_setIsMenuOpen(ge){ge!==this._menuOpen&&(this._menuOpen=ge,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ge),this._changeDetectorRef.markForCheck())}_createOverlay(ge){if(!this._overlayRef){const Me=this._getOverlayConfig(ge);this._subscribeToPositions(ge,Me.positionStrategy),this._overlayRef=this._overlay.create(Me),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(ge){return new Oe.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:ge.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:ge.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(ge,Me){ge.setPositionClasses&&Me.positionChanges.subscribe(_e=>{const it="start"===_e.connectionPair.overlayX?"after":"before",ct="top"===_e.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>ge.setPositionClasses(it,ct)):ge.setPositionClasses(it,ct)})}_setPosition(ge,Me){let[_e,it]="before"===ge.xPosition?["end","start"]:["start","end"],[ct,dn]="above"===ge.yPosition?["bottom","top"]:["top","bottom"],[Rn,An]=[ct,dn],[Gt,gn]=[_e,it],St=0;if(this.triggersSubmenu()){if(gn=_e="before"===ge.xPosition?"start":"end",it=Gt="end"===_e?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const cn=this._parentMaterialMenu.items.first;this._parentInnerPadding=cn?cn._getHostElement().offsetTop:0}St="bottom"===ct?this._parentInnerPadding:-this._parentInnerPadding}}else ge.overlapTrigger||(Rn="top"===ct?"bottom":"top",An="top"===dn?"bottom":"top");Me.withPositions([{originX:_e,originY:Rn,overlayX:Gt,overlayY:ct,offsetY:St},{originX:it,originY:Rn,overlayX:gn,overlayY:ct,offsetY:St},{originX:_e,originY:An,overlayX:Gt,overlayY:dn,offsetY:-St},{originX:it,originY:An,overlayX:gn,overlayY:dn,offsetY:-St}])}_menuClosingActions(){const ge=this._overlayRef.backdropClick(),Me=this._overlayRef.detachments(),_e=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,b.of)(),it=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,G.h)(ct=>ct!==this._menuItemInstance),(0,G.h)(()=>this._menuOpen)):(0,b.of)();return(0,k.T)(ge,_e,it,Me)}_handleMousedown(ge){(0,i.X6)(ge)||(this._openedBy=0===ge.button?"mouse":void 0,this.triggersSubmenu()&&ge.preventDefault())}_handleKeydown(ge){const Me=ge.keyCode;(Me===p.K5||Me===p.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Me===p.SV&&"ltr"===this.dir||Me===p.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ge){this.triggersSubmenu()?(ge.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,G.h)(ge=>ge===this._menuItemInstance&&!ge.disabled),Qe(0,J.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof wt&&this.menu._isAnimating?this.menu._animationDone.pipe((0,B.q)(1),Qe(0,J.E),(0,Z.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(ge){return(!this._portal||this._portal.templateRef!==ge.templateRef)&&(this._portal=new me.UE(ge.templateRef,this._viewContainerRef)),this._portal}}return Lt.\u0275fac=function(ge){return new(ge||Lt)(d.Y36(Oe.aV),d.Y36(d.SBq),d.Y36(d.s_b),d.Y36(Jt),d.Y36(Pe,8),d.Y36(dt,10),d.Y36(ye.Is,8),d.Y36(i.tE),d.Y36(d.R0b))},Lt.\u0275dir=d.lG2({type:Lt,hostVars:3,hostBindings:function(ge,Me){1&ge&&d.NdJ("click",function(it){return Me._handleClick(it)})("mousedown",function(it){return Me._handleMousedown(it)})("keydown",function(it){return Me._handleKeydown(it)}),2&ge&&d.uIk("aria-haspopup",Me.menu?"menu":null)("aria-expanded",Me.menuOpen)("aria-controls",Me.menuOpen?Me.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),Lt})(),lt=(()=>{class Lt extends Te{}return Lt.\u0275fac=function(){let Ke;return function(Me){return(Ke||(Ke=d.n5z(Lt)))(Me||Lt)}}(),Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[d.qOj]}),Lt})(),Je=(()=>{class Lt{}return Lt.\u0275fac=function(ge){return new(ge||Lt)},Lt.\u0275mod=d.oAB({type:Lt}),Lt.\u0275inj=d.cJS({providers:[Zt],imports:[ke.ez,Ce.si,Ce.BQ,Oe.U8,tt.ZD,Ce.BQ]}),Lt})()},8739:(vn,_t,y)=>{"use strict";y.d(_t,{NW:()=>me,TU:()=>re});var d=y(6895),i=y(4650),A=y(8929),p=y(4859),v=y(4385),k=y(266),f=y(3238),b=y(1281),J=y(9549);function Y(ye,Oe){if(1&ye&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&ye){const Ae=Oe.$implicit;i.Q6J("value",Ae),i.xp6(1),i.hij(" ",Ae," ")}}function W(ye,Oe){if(1&ye){const Ae=i.EpF();i.TgZ(0,"mat-form-field",16)(1,"mat-select",17),i.NdJ("selectionChange",function(ot){i.CHM(Ae);const at=i.oxw(2);return i.KtG(at._changePageSize(ot.value))}),i.YNc(2,Y,2,2,"mat-option",18),i.qZA()()}if(2&ye){const Ae=i.oxw(2);i.Q6J("appearance",Ae._formFieldAppearance)("color",Ae.color),i.xp6(1),i.Q6J("value",Ae.pageSize)("disabled",Ae.disabled)("aria-labelledby",Ae._pageSizeLabelId)("panelClass",Ae.selectConfig.panelClass||"")("disableOptionCentering",Ae.selectConfig.disableOptionCentering),i.xp6(1),i.Q6J("ngForOf",Ae._displayedPageSizeOptions)}}function B(ye,Oe){if(1&ye&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&ye){const Ae=i.oxw(2);i.xp6(1),i.Oqu(Ae.pageSize)}}function Z(ye,Oe){if(1&ye&&(i.TgZ(0,"div",12)(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,W,3,8,"mat-form-field",14),i.YNc(4,B,2,1,"div",15),i.qZA()),2&ye){const Ae=i.oxw();i.xp6(1),i.s9C("id",Ae._pageSizeLabelId),i.xp6(1),i.hij(" ",Ae._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",Ae._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",Ae._displayedPageSizeOptions.length<=1)}}function G(ye,Oe){if(1&ye){const Ae=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){i.CHM(Ae);const ot=i.oxw();return i.KtG(ot.firstPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA()()}if(2&ye){const Ae=i.oxw();i.Q6J("matTooltip",Ae._intl.firstPageLabel)("matTooltipDisabled",Ae._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Ae._previousButtonsDisabled()),i.uIk("aria-label",Ae._intl.firstPageLabel)}}function ie(ye,Oe){if(1&ye){const Ae=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(Ae);const ot=i.oxw();return i.KtG(ot.lastPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA()()}if(2&ye){const Ae=i.oxw();i.Q6J("matTooltip",Ae._intl.lastPageLabel)("matTooltipDisabled",Ae._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Ae._nextButtonsDisabled()),i.uIk("aria-label",Ae._intl.lastPageLabel)}}let Ee=(()=>{class ye{constructor(){this.changes=new A.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Ae,tt,ot)=>{if(0==ot||0==tt)return`0 of ${ot}`;const at=Ae*tt;return`${at+1} \u2013 ${at<(ot=Math.max(ot,0))?Math.min(at+tt,ot):at+tt} of ${ot}`}}}return ye.\u0275fac=function(Ae){return new(Ae||ye)},ye.\u0275prov=i.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();const Ze={provide:Ee,deps:[[new i.FiY,new i.tp0,Ee]],useFactory:function ue(ye){return ye||new Ee}},$e=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Ge=(0,f.Id)((0,f.dB)(class{}));let Ce=(()=>{class ye extends Ge{get pageIndex(){return this._pageIndex}set pageIndex(Ae){this._pageIndex=Math.max((0,b.su)(Ae),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Ae){this._length=(0,b.su)(Ae),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Ae){this._pageSize=Math.max((0,b.su)(Ae),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Ae){this._pageSizeOptions=(Ae||[]).map(tt=>(0,b.su)(tt)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Ae){this._hidePageSize=(0,b.Ig)(Ae)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Ae){this._showFirstLastButtons=(0,b.Ig)(Ae)}constructor(Ae,tt,ot){if(super(),this._intl=Ae,this._changeDetectorRef=tt,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new i.vpe,this._intlChanges=Ae.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),ot){const{pageSize:at,pageSizeOptions:pt,hidePageSize:ft,showFirstLastButtons:Et}=ot;null!=at&&(this._pageSize=at),null!=pt&&(this._pageSizeOptions=pt),null!=ft&&(this._hidePageSize=ft),null!=Et&&(this._showFirstLastButtons=Et)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Ae=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Ae)}previousPage(){if(!this.hasPreviousPage())return;const Ae=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Ae)}firstPage(){if(!this.hasPreviousPage())return;const Ae=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Ae)}lastPage(){if(!this.hasNextPage())return;const Ae=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Ae)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Ae=this.getNumberOfPages()-1;return this.pageIndex<Ae&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(Ae){const ot=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/Ae)||0,this.pageSize=Ae,this._emitPageEvent(ot)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((Ae,tt)=>Ae-tt),this._changeDetectorRef.markForCheck())}_emitPageEvent(Ae){this.page.emit({previousPageIndex:Ae,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ye.\u0275fac=function(Ae){i.$Z()},ye.\u0275dir=i.lG2({type:ye,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[i.qOj]}),ye})(),ke=0,me=(()=>{class ye extends Ce{constructor(Ae,tt,ot){super(Ae,tt,ot),this._pageSizeLabelId="mat-paginator-page-size-label-"+ke++,this._formFieldAppearance=ot?.formFieldAppearance||"outline"}}return ye.\u0275fac=function(Ae){return new(Ae||ye)(i.Y36(Ee),i.Y36(i.sBO),i.Y36($e,8))},ye.\u0275cmp=i.Xpm({type:ye,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.qOj],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(Ae,tt){1&Ae&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,Z,5,4,"div",2),i.TgZ(3,"div",3)(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,G,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return tt.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA()(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return tt.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA()(),i.YNc(13,ie,3,5,"button",11),i.qZA()()()),2&Ae&&(i.xp6(2),i.Q6J("ngIf",!tt.hidePageSize),i.xp6(3),i.hij(" ",tt._intl.getRangeLabel(tt.pageIndex,tt.pageSize,tt.length)," "),i.xp6(1),i.Q6J("ngIf",tt.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",tt._intl.previousPageLabel)("matTooltipDisabled",tt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",tt._previousButtonsDisabled()),i.uIk("aria-label",tt._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",tt._intl.nextPageLabel)("matTooltipDisabled",tt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",tt._nextButtonsDisabled()),i.uIk("aria-label",tt._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",tt.showFirstLastButtons))},dependencies:[d.sg,d.O5,p.RK,J.KE,v.gD,f.ey,k.gM],styles:[".mat-mdc-paginator{display:block}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),ye})(),re=(()=>{class ye{}return ye.\u0275fac=function(Ae){return new(Ae||ye)},ye.\u0275mod=i.oAB({type:ye}),ye.\u0275inj=i.cJS({providers:[Ze],imports:[d.ez,p.ot,v.LD,k.AV]}),ye})()},1572:(vn,_t,y)=>{"use strict";y.d(_t,{Cq:()=>G,Ou:()=>B});var d=y(4650),i=y(3238),A=y(1281),p=y(6895);const v=["determinateSpinner"];function k(ie,Ee){if(1&ie&&(d.O4$(),d.TgZ(0,"svg",11),d._UZ(1,"circle",12),d.qZA()),2&ie){const ue=d.oxw();d.uIk("viewBox",ue._viewBox()),d.xp6(1),d.Udp("stroke-dasharray",ue._strokeCircumference(),"px")("stroke-dashoffset",ue._strokeCircumference()/2,"px")("stroke-width",ue._circleStrokeWidth(),"%"),d.uIk("r",ue._circleRadius())}}const f=(0,i.pj)(class{constructor(ie){this._elementRef=ie}},"primary"),b=new d.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function J(){return{diameter:Y}}}),Y=100;let B=(()=>{class ie extends f{constructor(ue,Ze,Qe){super(ue),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=Y,this._noopAnimations="NoopAnimations"===Ze&&!!Qe&&!Qe._forceAnimations,Qe&&(Qe.color&&(this.color=this.defaultColor=Qe.color),Qe.diameter&&(this.diameter=Qe.diameter),Qe.strokeWidth&&(this.strokeWidth=Qe.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(ue){this._value=Math.max(0,Math.min(100,(0,A.su)(ue)))}get diameter(){return this._diameter}set diameter(ue){this._diameter=(0,A.su)(ue)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(ue){this._strokeWidth=(0,A.su)(ue)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const ue=2*this._circleRadius()+this.strokeWidth;return`0 0 ${ue} ${ue}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return ie.\u0275fac=function(ue){return new(ue||ie)(d.Y36(d.SBq),d.Y36(d.QbO,8),d.Y36(b))},ie.\u0275cmp=d.Xpm({type:ie,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(ue,Ze){if(1&ue&&d.Gf(v,5),2&ue){let Qe;d.iGM(Qe=d.CRH())&&(Ze._determinateCircle=Qe.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:12,hostBindings:function(ue,Ze){2&ue&&(d.uIk("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===Ze.mode?Ze.value:null)("mode",Ze.mode),d.Udp("width",Ze.diameter,"px")("height",Ze.diameter,"px"),d.ekj("_mat-animation-noopable",Ze._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===Ze.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[d.qOj],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(ue,Ze){if(1&ue&&(d.YNc(0,k,2,8,"ng-template",null,0,d.W1O),d.TgZ(2,"div",1,2),d.O4$(),d.TgZ(4,"svg",3),d._UZ(5,"circle",4),d.qZA()(),d.kcU(),d.TgZ(6,"div",5)(7,"div",6)(8,"div",7),d.GkF(9,8),d.qZA(),d.TgZ(10,"div",9),d.GkF(11,8),d.qZA(),d.TgZ(12,"div",10),d.GkF(13,8),d.qZA()()()),2&ue){const Qe=d.MAs(1);d.xp6(4),d.uIk("viewBox",Ze._viewBox()),d.xp6(1),d.Udp("stroke-dasharray",Ze._strokeCircumference(),"px")("stroke-dashoffset",Ze._strokeDashOffset(),"px")("stroke-width",Ze._circleStrokeWidth(),"%"),d.uIk("r",Ze._circleRadius()),d.xp6(4),d.Q6J("ngTemplateOutlet",Qe),d.xp6(2),d.Q6J("ngTemplateOutlet",Qe),d.xp6(2),d.Q6J("ngTemplateOutlet",Qe)}},dependencies:[p.tP],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, transparent)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0}),ie})(),G=(()=>{class ie{}return ie.\u0275fac=function(ue){return new(ue||ie)},ie.\u0275mod=d.oAB({type:ie}),ie.\u0275inj=d.cJS({imports:[p.ez,i.BQ]}),ie})()},1948:(vn,_t,y)=>{"use strict";y.d(_t,{Fk:()=>Ge,U0:()=>$e,VQ:()=>vt});var d=y(4650),i=y(3238),A=y(2687),p=y(1281),v=y(5017),k=y(4006),f=y(6895);const b=["input"],J=["*"];let Y=0;class W{constructor(ke,me){this.source=ke,this.value=me}}const B={provide:k.JU,useExisting:(0,d.Gpc)(()=>vt),multi:!0},Z=new d.OlP("MatRadioGroup"),G=new d.OlP("mat-radio-default-options",{providedIn:"root",factory:function ie(){return{color:"accent"}}});let Ee=(()=>{class Ce{get name(){return this._name}set name(me){this._name=me,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(me){this._labelPosition="before"===me?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(me){this._value!==me&&(this._value=me,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(me){this._selected=me,this.value=me?me.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(me){this._disabled=(0,p.Ig)(me),this._markRadiosForCheck()}get required(){return this._required}set required(me){this._required=(0,p.Ig)(me),this._markRadiosForCheck()}constructor(me){this._changeDetector=me,this._value=null,this._name="mat-radio-group-"+Y++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new d.vpe}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(me=>{me.name=this.name,me._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(re=>{re.checked=this.value===re.value,re.checked&&(this._selected=re)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new W(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(me=>me._markForCheck())}writeValue(me){this.value=me,this._changeDetector.markForCheck()}registerOnChange(me){this._controlValueAccessorChangeFn=me}registerOnTouched(me){this.onTouched=me}setDisabledState(me){this.disabled=me,this._changeDetector.markForCheck()}}return Ce.\u0275fac=function(me){return new(me||Ce)(d.Y36(d.sBO))},Ce.\u0275dir=d.lG2({type:Ce,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),Ce})();class ue{constructor(ke){this._elementRef=ke}}const Ze=(0,i.Kr)((0,i.sb)(ue));let Qe=(()=>{class Ce extends Ze{get checked(){return this._checked}set checked(me){const re=(0,p.Ig)(me);this._checked!==re&&(this._checked=re,re&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!re&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),re&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(me){this._value!==me&&(this._value=me,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===me),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(me){this._labelPosition=me}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(me){this._setDisabled((0,p.Ig)(me))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(me){this._required=(0,p.Ig)(me)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(me){this._color=me}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(me,re,ye,Oe,Ae,tt,ot,at){super(re),this._changeDetector=ye,this._focusMonitor=Oe,this._radioDispatcher=Ae,this._providerOverride=ot,this._uniqueId="mat-radio-"+ ++Y,this.id=this._uniqueId,this.change=new d.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=me,this._noopAnimations="NoopAnimations"===tt,at&&(this.tabIndex=(0,p.su)(at,0))}focus(me,re){re?this._focusMonitor.focusVia(this._inputElement,re,me):this._inputElement.nativeElement.focus(me)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((me,re)=>{me!==this.id&&re===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(me=>{!me&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new W(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(me){me.stopPropagation()}_onInputInteraction(me){if(me.stopPropagation(),!this.checked&&!this.disabled){const re=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),re&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(me){this._onInputInteraction(me),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(me){this._disabled!==me&&(this._disabled=me,this._changeDetector.markForCheck())}_updateTabIndex(){const me=this.radioGroup;let re;if(re=me&&me.selected&&!this.disabled?me.selected===this?this.tabIndex:-1:this.tabIndex,re!==this._previousTabIndex){const ye=this._inputElement?.nativeElement;ye&&(ye.setAttribute("tabindex",re+""),this._previousTabIndex=re)}}}return Ce.\u0275fac=function(me){d.$Z()},Ce.\u0275dir=d.lG2({type:Ce,viewQuery:function(me,re){if(1&me&&d.Gf(b,5),2&me){let ye;d.iGM(ye=d.CRH())&&(re._inputElement=ye.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[d.qOj]}),Ce})(),vt=(()=>{class Ce extends Ee{}return Ce.\u0275fac=function(){let ke;return function(re){return(ke||(ke=d.n5z(Ce)))(re||Ce)}}(),Ce.\u0275dir=d.lG2({type:Ce,selectors:[["mat-radio-group"]],contentQueries:function(me,re,ye){if(1&me&&d.Suo(ye,$e,5),2&me){let Oe;d.iGM(Oe=d.CRH())&&(re._radios=Oe)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[d._Bn([B,{provide:Z,useExisting:Ce}]),d.qOj]}),Ce})(),$e=(()=>{class Ce extends Qe{constructor(me,re,ye,Oe,Ae,tt,ot,at){super(me,re,ye,Oe,Ae,tt,ot,at)}}return Ce.\u0275fac=function(me){return new(me||Ce)(d.Y36(Z,8),d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(A.tE),d.Y36(v.A8),d.Y36(d.QbO,8),d.Y36(G,8),d.$8M("tabindex"))},Ce.\u0275cmp=d.Xpm({type:Ce,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(me,re){1&me&&d.NdJ("focus",function(){return re._inputElement.nativeElement.focus()}),2&me&&(d.uIk("id",re.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),d.ekj("mat-primary","primary"===re.color)("mat-accent","accent"===re.color)("mat-warn","warn"===re.color)("mat-mdc-radio-checked",re.checked)("_mat-animation-noopable",re._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[d.qOj],ngContentSelectors:J,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[3,"for"]],template:function(me,re){if(1&me&&(d.F$t(),d.TgZ(0,"div",0,1)(2,"div",2)(3,"div",3),d.NdJ("click",function(Oe){return re._onTouchTargetClick(Oe)}),d.qZA(),d.TgZ(4,"input",4,5),d.NdJ("change",function(Oe){return re._onInputInteraction(Oe)}),d.qZA(),d.TgZ(6,"div",6),d._UZ(7,"div",7)(8,"div",8),d.qZA(),d.TgZ(9,"div",9),d._UZ(10,"div",10),d.qZA()(),d.TgZ(11,"label",11),d.Hsn(12),d.qZA()()),2&me){const ye=d.MAs(1);d.ekj("mdc-form-field--align-end","before"==re.labelPosition),d.xp6(2),d.ekj("mdc-radio--disabled",re.disabled),d.xp6(2),d.Q6J("id",re.inputId)("checked",re.checked)("disabled",re.disabled)("required",re.required),d.uIk("name",re.name)("value",re.value)("aria-label",re.ariaLabel)("aria-labelledby",re.ariaLabelledby)("aria-describedby",re.ariaDescribedby),d.xp6(5),d.Q6J("matRippleTrigger",ye)("matRippleDisabled",re._isRippleDisabled())("matRippleCentered",!0),d.xp6(2),d.Q6J("for",re.inputId)}},dependencies:[i.wG],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, #6200ee)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, #000)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);right:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);left:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-mdc-radio-ripple-color, transparent)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0}),Ce})(),Ge=(()=>{class Ce{}return Ce.\u0275fac=function(me){return new(me||Ce)},Ce.\u0275mod=d.oAB({type:Ce}),Ce.\u0275inj=d.cJS({imports:[i.BQ,f.ez,i.si,i.BQ]}),Ce})()},4385:(vn,_t,y)=>{"use strict";y.d(_t,{LD:()=>F,gD:()=>S});var d=y(8184),i=y(6895),A=y(4650),p=y(3238),v=y(9549),k=y(7261),f=y(2687),b=y(445),J=y(1281),Y=y(5017),W=y(9521),B=y(4006),Z=y(8929),G=y(8514),ie=y(6787),Ee=y(1059),ue=y(7545),Ze=y(2986),Qe=y(2198),vt=y(4850),$e=y(5778),Ge=y(7625),Ce=y(7340);const ke=["trigger"],me=["panel"];function re(V,ne){if(1&V&&(A.TgZ(0,"span",10),A._uU(1),A.qZA()),2&V){const De=A.oxw();A.xp6(1),A.Oqu(De.placeholder)}}function ye(V,ne){if(1&V&&(A.TgZ(0,"span",14),A._uU(1),A.qZA()),2&V){const De=A.oxw(2);A.xp6(1),A.Oqu(De.triggerValue)}}function Oe(V,ne){1&V&&A.Hsn(0,0,["*ngSwitchCase","true"])}function Ae(V,ne){if(1&V&&(A.TgZ(0,"span",11),A.YNc(1,ye,2,1,"span",12),A.YNc(2,Oe,1,0,"ng-content",13),A.qZA()),2&V){const De=A.oxw();A.Q6J("ngSwitch",!!De.customTrigger),A.xp6(2),A.Q6J("ngSwitchCase",!0)}}function tt(V,ne){if(1&V){const De=A.EpF();A.O4$(),A.kcU(),A.TgZ(0,"div",15,16),A.NdJ("@transformPanel.done",function(nn){A.CHM(De);const Jt=A.oxw();return A.KtG(Jt._panelDoneAnimatingStream.next(nn.toState))})("keydown",function(nn){A.CHM(De);const Jt=A.oxw();return A.KtG(Jt._handleKeydown(nn))}),A.Hsn(2,1),A.qZA()}if(2&V){const De=A.oxw();A.Gre("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",De._getPanelTheme(),""),A.Q6J("ngClass",De.panelClass)("@transformPanel","showing"),A.uIk("id",De.id+"-panel")("aria-multiselectable",De.multiple)("aria-label",De.ariaLabel||null)("aria-labelledby",De._getPanelAriaLabelledby())}}const ot=[[["mat-select-trigger"]],"*"],at=["mat-select-trigger","*"],pt={transformPanelWrap:(0,Ce.X$)("transformPanelWrap",[(0,Ce.eR)("* => void",(0,Ce.IO)("@transformPanel",[(0,Ce.pV)()],{optional:!0}))]),transformPanel:(0,Ce.X$)("transformPanel",[(0,Ce.SB)("void",(0,Ce.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,Ce.eR)("void => showing",(0,Ce.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Ce.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,Ce.eR)("* => void",(0,Ce.jt)("100ms linear",(0,Ce.oB)({opacity:0})))])};let Pe=0;const je=new A.OlP("mat-select-scroll-strategy"),et=new A.OlP("MAT_SELECT_CONFIG"),gt={provide:je,deps:[d.aV],useFactory:function dt(V){return()=>V.scrollStrategies.reposition()}},Re=new A.OlP("MatSelectTrigger");class we{constructor(ne,De){this.source=ne,this.value=De}}const ce=(0,p.Kr)((0,p.sb)((0,p.Id)((0,p.FD)(class{constructor(V,ne,De,wt,nn){this._elementRef=V,this._defaultErrorStateMatcher=ne,this._parentForm=De,this._parentFormGroup=wt,this.ngControl=nn,this.stateChanges=new Z.xQ}}))));let ve=(()=>{class V extends ce{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(De){this._placeholder=De,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(B.kI.required)??!1}set required(De){this._required=(0,J.Ig)(De),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(De){this._multiple=(0,J.Ig)(De)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(De){this._disableOptionCentering=(0,J.Ig)(De)}get compareWith(){return this._compareWith}set compareWith(De){this._compareWith=De,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(De){this._assignValue(De)&&this._onChange(De)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(De){this._typeaheadDebounceInterval=(0,J.su)(De)}get id(){return this._id}set id(De){this._id=De||this._uid,this.stateChanges.next()}constructor(De,wt,nn,Jt,un,Zt,zt,fe,Te,lt,Je,Lt,Ke,ge){super(un,Jt,zt,fe,lt),this._viewportRuler=De,this._changeDetectorRef=wt,this._ngZone=nn,this._dir=Zt,this._parentFormField=Te,this._liveAnnouncer=Ke,this._defaultOptions=ge,this._panelOpen=!1,this._compareWith=(Me,_e)=>Me===_e,this._uid="mat-select-"+Pe++,this._triggerAriaLabelledBy=null,this._destroy=new Z.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Pe++,this._panelDoneAnimatingStream=new Z.xQ,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,G.P)(()=>{const Me=this.options;return Me?Me.changes.pipe((0,Ee.O)(Me),(0,ue.w)(()=>(0,ie.T)(...Me.map(_e=>_e.onSelectionChange)))):this._ngZone.onStable.pipe((0,Ze.q)(1),(0,ue.w)(()=>this.optionSelectionChanges))}),this.openedChange=new A.vpe,this._openedStream=this.openedChange.pipe((0,Qe.h)(Me=>Me),(0,vt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Qe.h)(Me=>!Me),(0,vt.U)(()=>{})),this.selectionChange=new A.vpe,this.valueChange=new A.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=ge?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=ge.typeaheadDebounceInterval),this._scrollStrategyFactory=Lt,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Je)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Y.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,$e.x)(),(0,Ge.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Ge.R)(this._destroy)).subscribe(De=>{De.added.forEach(wt=>wt.select()),De.removed.forEach(wt=>wt.deselect())}),this.options.changes.pipe((0,Ee.O)(null),(0,Ge.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const De=this._getTriggerAriaLabelledby(),wt=this.ngControl;if(De!==this._triggerAriaLabelledBy){const nn=this._elementRef.nativeElement;this._triggerAriaLabelledBy=De,De?nn.setAttribute("aria-labelledby",De):nn.removeAttribute("aria-labelledby")}wt&&(this._previousControl!==wt.control&&(void 0!==this._previousControl&&null!==wt.disabled&&wt.disabled!==this.disabled&&(this.disabled=wt.disabled),this._previousControl=wt.control),this.updateErrorState())}ngOnChanges(De){(De.disabled||De.userAriaDescribedBy)&&this.stateChanges.next(),De.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(De){this._assignValue(De)}registerOnChange(De){this._onChange=De}registerOnTouched(De){this._onTouched=De}setDisabledState(De){this.disabled=De,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const De=this._selectionModel.selected.map(wt=>wt.viewValue);return this._isRtl()&&De.reverse(),De.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(De){this.disabled||(this.panelOpen?this._handleOpenKeydown(De):this._handleClosedKeydown(De))}_handleClosedKeydown(De){const wt=De.keyCode,nn=wt===W.JH||wt===W.LH||wt===W.oh||wt===W.SV,Jt=wt===W.K5||wt===W.L_,un=this._keyManager;if(!un.isTyping()&&Jt&&!(0,W.Vb)(De)||(this.multiple||De.altKey)&&nn)De.preventDefault(),this.open();else if(!this.multiple){const Zt=this.selected;un.onKeydown(De);const zt=this.selected;zt&&Zt!==zt&&this._liveAnnouncer.announce(zt.viewValue,1e4)}}_handleOpenKeydown(De){const wt=this._keyManager,nn=De.keyCode,Jt=nn===W.JH||nn===W.LH,un=wt.isTyping();if(Jt&&De.altKey)De.preventDefault(),this.close();else if(un||nn!==W.K5&&nn!==W.L_||!wt.activeItem||(0,W.Vb)(De))if(!un&&this._multiple&&nn===W.A&&De.ctrlKey){De.preventDefault();const Zt=this.options.some(zt=>!zt.disabled&&!zt.selected);this.options.forEach(zt=>{zt.disabled||(Zt?zt.select():zt.deselect())})}else{const Zt=wt.activeItemIndex;wt.onKeydown(De),this._multiple&&Jt&&De.shiftKey&&wt.activeItem&&wt.activeItemIndex!==Zt&&wt.activeItem._selectViaInteraction()}else De.preventDefault(),wt.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Ze.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(De){if(this.options.forEach(wt=>wt.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&De)Array.isArray(De),De.forEach(wt=>this._selectOptionByValue(wt)),this._sortValues();else{const wt=this._selectOptionByValue(De);wt?this._keyManager.updateActiveItem(wt):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(De){const wt=this.options.find(nn=>{if(this._selectionModel.isSelected(nn))return!1;try{return null!=nn.value&&this._compareWith(nn.value,De)}catch{return!1}});return wt&&this._selectionModel.select(wt),wt}_assignValue(De){return!!(De!==this._value||this._multiple&&Array.isArray(De))&&(this.options&&this._setSelectionByValue(De),this._value=De,!0)}_initKeyManager(){this._keyManager=new f.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const De=(0,ie.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Ge.R)(De)).subscribe(wt=>{this._onSelect(wt.source,wt.isUserInput),wt.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ie.T)(...this.options.map(wt=>wt._stateChanges)).pipe((0,Ge.R)(De)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(De,wt){const nn=this._selectionModel.isSelected(De);null!=De.value||this._multiple?(nn!==De.selected&&(De.selected?this._selectionModel.select(De):this._selectionModel.deselect(De)),wt&&this._keyManager.setActiveItem(De),this.multiple&&(this._sortValues(),wt&&this.focus())):(De.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(De.value)),nn!==this._selectionModel.isSelected(De)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const De=this.options.toArray();this._selectionModel.sort((wt,nn)=>this.sortComparator?this.sortComparator(wt,nn,De):De.indexOf(wt)-De.indexOf(nn)),this.stateChanges.next()}}_propagateChanges(De){let wt=null;wt=this.multiple?this.selected.map(nn=>nn.value):this.selected?this.selected.value:De,this._value=wt,this.valueChange.emit(wt),this._onChange(wt),this.selectionChange.emit(this._getChangeEvent(wt)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(De){this._elementRef.nativeElement.focus(De)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const De=this._parentFormField?.getLabelId();return this.ariaLabelledby?(De?De+" ":"")+this.ariaLabelledby:De}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const De=this._parentFormField?.getLabelId();let wt=(De?De+" ":"")+this._valueId;return this.ariaLabelledby&&(wt+=" "+this.ariaLabelledby),wt}_panelDoneAnimating(De){this.openedChange.emit(De)}setDescribedByIds(De){De.length?this._elementRef.nativeElement.setAttribute("aria-describedby",De.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return V.\u0275fac=function(De){return new(De||V)(A.Y36(k.rL),A.Y36(A.sBO),A.Y36(A.R0b),A.Y36(p.rD),A.Y36(A.SBq),A.Y36(b.Is,8),A.Y36(B.F,8),A.Y36(B.sg,8),A.Y36(v.G_,8),A.Y36(B.a5,10),A.$8M("tabindex"),A.Y36(je),A.Y36(f.Kd),A.Y36(et,8))},V.\u0275dir=A.lG2({type:V,viewQuery:function(De,wt){if(1&De&&(A.Gf(ke,5),A.Gf(me,5),A.Gf(d.pI,5)),2&De){let nn;A.iGM(nn=A.CRH())&&(wt.trigger=nn.first),A.iGM(nn=A.CRH())&&(wt.panel=nn.first),A.iGM(nn=A.CRH())&&(wt._overlayDir=nn.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[A.qOj,A.TTD]}),V})(),S=(()=>{class V extends ve{constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Ge.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(De){const wt=this.options.toArray()[De];if(wt){const nn=this.panel.nativeElement,Jt=(0,p.CB)(De,this.options,this.optionGroups),un=wt._getHostElement();nn.scrollTop=0===De&&1===Jt?0:(0,p.jH)(un.offsetTop,un.offsetHeight,nn.scrollTop,nn.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(De){return new we(this,De)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof d.xu?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(De){this._hideSingleSelectionIndicator=(0,J.Ig)(De),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const De of this.options)De._changeDetectorRef.markForCheck()}}return V.\u0275fac=function(){let ne;return function(wt){return(ne||(ne=A.n5z(V)))(wt||V)}}(),V.\u0275cmp=A.Xpm({type:V,selectors:[["mat-select"]],contentQueries:function(De,wt,nn){if(1&De&&(A.Suo(nn,Re,5),A.Suo(nn,p.ey,5),A.Suo(nn,p.K7,5)),2&De){let Jt;A.iGM(Jt=A.CRH())&&(wt.customTrigger=Jt.first),A.iGM(Jt=A.CRH())&&(wt.options=Jt),A.iGM(Jt=A.CRH())&&(wt.optionGroups=Jt)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(De,wt){1&De&&A.NdJ("keydown",function(Jt){return wt._handleKeydown(Jt)})("focus",function(){return wt._onFocus()})("blur",function(){return wt._onBlur()}),2&De&&(A.uIk("id",wt.id)("tabindex",wt.tabIndex)("aria-controls",wt.panelOpen?wt.id+"-panel":null)("aria-expanded",wt.panelOpen)("aria-label",wt.ariaLabel||null)("aria-required",wt.required.toString())("aria-disabled",wt.disabled.toString())("aria-invalid",wt.errorState)("aria-activedescendant",wt._getAriaActiveDescendant()),A.ekj("mat-mdc-select-disabled",wt.disabled)("mat-mdc-select-invalid",wt.errorState)("mat-mdc-select-required",wt.required)("mat-mdc-select-empty",wt.empty)("mat-mdc-select-multiple",wt.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[A._Bn([{provide:v.Eo,useExisting:V},{provide:p.HF,useExisting:V}]),A.qOj],ngContentSelectors:at,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(De,wt){if(1&De&&(A.F$t(ot),A.TgZ(0,"div",0,1),A.NdJ("click",function(){return wt.toggle()}),A.TgZ(3,"div",2),A.YNc(4,re,2,1,"span",3),A.YNc(5,Ae,3,2,"span",4),A.qZA(),A.TgZ(6,"div",5)(7,"div",6),A.O4$(),A.TgZ(8,"svg",7),A._UZ(9,"path",8),A.qZA()()()(),A.YNc(10,tt,3,9,"ng-template",9),A.NdJ("backdropClick",function(){return wt.close()})("attach",function(){return wt._onAttached()})("detach",function(){return wt.close()})),2&De){const nn=A.MAs(1);A.uIk("aria-owns",wt.panelOpen?wt.id+"-panel":null),A.xp6(3),A.Q6J("ngSwitch",wt.empty),A.uIk("id",wt._valueId),A.xp6(1),A.Q6J("ngSwitchCase",!0),A.xp6(1),A.Q6J("ngSwitchCase",!1),A.xp6(5),A.Q6J("cdkConnectedOverlayPanelClass",wt._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",wt._scrollStrategy)("cdkConnectedOverlayOrigin",wt._preferredOverlayOrigin||nn)("cdkConnectedOverlayOpen",wt.panelOpen)("cdkConnectedOverlayPositions",wt._positions)("cdkConnectedOverlayWidth",wt._overlayWidth)}},dependencies:[i.mk,i.RF,i.n9,i.ED,d.pI,d.xu],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[pt.transformPanel]},changeDetection:0}),V})(),F=(()=>{class V{}return V.\u0275fac=function(De){return new(De||V)},V.\u0275mod=A.oAB({type:V}),V.\u0275inj=A.cJS({providers:[gt],imports:[i.ez,d.U8,p.Ng,p.BQ,k.ZD,v.lN,p.Ng,p.BQ]}),V})()},8785:(vn,_t,y)=>{"use strict";y.d(_t,{JX:()=>Re,Rh:()=>gt,SJ:()=>ce,TM:()=>we});var d=y(7261),i=y(6895),A=y(4650),p=y(3238),v=y(2687),k=y(445),f=y(1281),b=y(9521),J=y(3353),Y=y(8929),W=y(3753),B=y(6787),Z=y(2198),G=y(4850),ie=y(7604),Ee=y(7625),ue=y(5778),Ze=y(2986),Qe=y(1059),vt=y(13),$e=y(7340);const Ge=["*"],Ce=["content"];function ke(ve,se){if(1&ve){const S=A.EpF();A.TgZ(0,"div",2),A.NdJ("click",function(){A.CHM(S);const V=A.oxw();return A.KtG(V._onBackdropClicked())}),A.qZA()}if(2&ve){const S=A.oxw();A.ekj("mat-drawer-shown",S._isShowingBackdrop())}}function me(ve,se){1&ve&&(A.TgZ(0,"mat-drawer-content"),A.Hsn(1,2),A.qZA())}const re=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ye=["mat-drawer","mat-drawer-content","*"];function Oe(ve,se){if(1&ve){const S=A.EpF();A.TgZ(0,"div",2),A.NdJ("click",function(){A.CHM(S);const V=A.oxw();return A.KtG(V._onBackdropClicked())}),A.qZA()}if(2&ve){const S=A.oxw();A.ekj("mat-drawer-shown",S._isShowingBackdrop())}}function Ae(ve,se){1&ve&&(A.TgZ(0,"mat-sidenav-content"),A.Hsn(1,2),A.qZA())}const tt=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],ot=["mat-sidenav","mat-sidenav-content","*"],pt={transformDrawer:(0,$e.X$)("transform",[(0,$e.SB)("open, open-instant",(0,$e.oB)({transform:"none",visibility:"visible"})),(0,$e.SB)("void",(0,$e.oB)({"box-shadow":"none",visibility:"hidden"})),(0,$e.eR)("void => open-instant",(0,$e.jt)("0ms")),(0,$e.eR)("void <=> open, open-instant => void",(0,$e.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Et=new A.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Pe(){return!1}}),be=new A.OlP("MAT_DRAWER_CONTAINER");let je=(()=>{class ve extends d.PQ{constructor(S,F,V,ne,De){super(V,ne,De),this._changeDetectorRef=S,this._container=F}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return ve.\u0275fac=function(S){return new(S||ve)(A.Y36(A.sBO),A.Y36((0,A.Gpc)(()=>et)),A.Y36(A.SBq),A.Y36(d.mF),A.Y36(A.R0b))},ve.\u0275cmp=A.Xpm({type:ve,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(S,F){2&S&&A.Udp("margin-left",F._container._contentMargins.left,"px")("margin-right",F._container._contentMargins.right,"px")},features:[A._Bn([{provide:d.PQ,useExisting:ve}]),A.qOj],ngContentSelectors:Ge,decls:1,vars:0,template:function(S,F){1&S&&(A.F$t(),A.Hsn(0))},encapsulation:2,changeDetection:0}),ve})(),dt=(()=>{class ve{get position(){return this._position}set position(S){(S="end"===S?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(S),this._position=S,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(S){this._mode=S,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(S){this._disableClose=(0,f.Ig)(S)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(S){("true"===S||"false"===S||null==S)&&(S=(0,f.Ig)(S)),this._autoFocus=S}get opened(){return this._opened}set opened(S){this.toggle((0,f.Ig)(S))}constructor(S,F,V,ne,De,wt,nn,Jt){this._elementRef=S,this._focusTrapFactory=F,this._focusMonitor=V,this._platform=ne,this._ngZone=De,this._interactivityChecker=wt,this._doc=nn,this._container=Jt,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Y.xQ,this._animationEnd=new Y.xQ,this._animationState="void",this.openedChange=new A.vpe(!0),this._openedStream=this.openedChange.pipe((0,Z.h)(un=>un),(0,G.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,Z.h)(un=>un.fromState!==un.toState&&0===un.toState.indexOf("open")),(0,ie.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Z.h)(un=>!un),(0,G.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,Z.h)(un=>un.fromState!==un.toState&&"void"===un.toState),(0,ie.h)(void 0)),this._destroyed=new Y.xQ,this.onPositionChanged=new A.vpe,this._modeChanged=new Y.xQ,this.openedChange.subscribe(un=>{un?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,W.R)(this._elementRef.nativeElement,"keydown").pipe((0,Z.h)(un=>un.keyCode===b.hY&&!this.disableClose&&!(0,b.Vb)(un)),(0,Ee.R)(this._destroyed)).subscribe(un=>this._ngZone.run(()=>{this.close(),un.stopPropagation(),un.preventDefault()}))}),this._animationEnd.pipe((0,ue.x)((un,Zt)=>un.fromState===Zt.fromState&&un.toState===Zt.toState)).subscribe(un=>{const{fromState:Zt,toState:zt}=un;(0===zt.indexOf("open")&&"void"===Zt||"void"===zt&&0===Zt.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(S,F){this._interactivityChecker.isFocusable(S)||(S.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const V=()=>{S.removeEventListener("blur",V),S.removeEventListener("mousedown",V),S.removeAttribute("tabindex")};S.addEventListener("blur",V),S.addEventListener("mousedown",V)})),S.focus(F)}_focusByCssSelector(S,F){let V=this._elementRef.nativeElement.querySelector(S);V&&this._forceFocus(V,F)}_takeFocus(){if(!this._focusTrap)return;const S=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(F=>{!F&&"function"==typeof this._elementRef.nativeElement.focus&&S.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(S){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,S):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const S=this._doc.activeElement;return!!S&&this._elementRef.nativeElement.contains(S)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(S){return this.toggle(!0,S)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(S=!this.opened,F){S&&F&&(this._openedVia=F);const V=this._setOpen(S,!S&&this._isFocusWithinDrawer(),this._openedVia||"program");return S||(this._openedVia=null),V}_setOpen(S,F,V){return this._opened=S,S?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",F&&this._restoreFocus(V)),this._updateFocusTrapState(),new Promise(ne=>{this.openedChange.pipe((0,Ze.q)(1)).subscribe(De=>ne(De?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(S){const F=this._elementRef.nativeElement,V=F.parentNode;"end"===S?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),V.insertBefore(this._anchor,F)),V.appendChild(F)):this._anchor&&this._anchor.parentNode.insertBefore(F,this._anchor)}}return ve.\u0275fac=function(S){return new(S||ve)(A.Y36(A.SBq),A.Y36(v.qV),A.Y36(v.tE),A.Y36(J.t4),A.Y36(A.R0b),A.Y36(v.ic),A.Y36(i.K0,8),A.Y36(be,8))},ve.\u0275cmp=A.Xpm({type:ve,selectors:[["mat-drawer"]],viewQuery:function(S,F){if(1&S&&A.Gf(Ce,5),2&S){let V;A.iGM(V=A.CRH())&&(F._content=V.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(S,F){1&S&&A.WFA("@transform.start",function(ne){return F._animationStarted.next(ne)})("@transform.done",function(ne){return F._animationEnd.next(ne)}),2&S&&(A.uIk("align",null),A.d8E("@transform",F._animationState),A.ekj("mat-drawer-end","end"===F.position)("mat-drawer-over","over"===F.mode)("mat-drawer-push","push"===F.mode)("mat-drawer-side","side"===F.mode)("mat-drawer-opened",F.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Ge,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(S,F){1&S&&(A.F$t(),A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA())},dependencies:[d.PQ],encapsulation:2,data:{animation:[pt.transformDrawer]},changeDetection:0}),ve})(),et=(()=>{class ve{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(S){this._autosize=(0,f.Ig)(S)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(S){this._backdropOverride=null==S?null:(0,f.Ig)(S)}get scrollable(){return this._userContent||this._content}constructor(S,F,V,ne,De,wt=!1,nn){this._dir=S,this._element=F,this._ngZone=V,this._changeDetectorRef=ne,this._animationMode=nn,this._drawers=new A.n_E,this.backdropClick=new A.vpe,this._destroyed=new Y.xQ,this._doCheckSubject=new Y.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Y.xQ,S&&S.change.pipe((0,Ee.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),De.change().pipe((0,Ee.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=wt}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Qe.O)(this._allDrawers),(0,Ee.R)(this._destroyed)).subscribe(S=>{this._drawers.reset(S.filter(F=>!F._container||F._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Qe.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(S=>{this._watchDrawerToggle(S),this._watchDrawerPosition(S),this._watchDrawerMode(S)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,vt.b)(10),(0,Ee.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(S=>S.open())}close(){this._drawers.forEach(S=>S.close())}updateContentMargins(){let S=0,F=0;if(this._left&&this._left.opened)if("side"==this._left.mode)S+=this._left._getWidth();else if("push"==this._left.mode){const V=this._left._getWidth();S+=V,F-=V}if(this._right&&this._right.opened)if("side"==this._right.mode)F+=this._right._getWidth();else if("push"==this._right.mode){const V=this._right._getWidth();F+=V,S-=V}S=S||null,F=F||null,(S!==this._contentMargins.left||F!==this._contentMargins.right)&&(this._contentMargins={left:S,right:F},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(S){S._animationStarted.pipe((0,Z.h)(F=>F.fromState!==F.toState),(0,Ee.R)(this._drawers.changes)).subscribe(F=>{"open-instant"!==F.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==S.mode&&S.openedChange.pipe((0,Ee.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(S.opened))}_watchDrawerPosition(S){S&&S.onPositionChanged.pipe((0,Ee.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Ze.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(S){S&&S._modeChanged.pipe((0,Ee.R)((0,B.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(S){const F=this._element.nativeElement.classList,V="mat-drawer-container-has-open";S?F.add(V):F.remove(V)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(S=>{"end"==S.position?this._end=S:this._start=S}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(S=>S&&!S.disableClose&&this._canHaveBackdrop(S)).forEach(S=>S._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(S){return"side"!==S.mode||!!this._backdropOverride}_isDrawerOpen(S){return null!=S&&S.opened}}return ve.\u0275fac=function(S){return new(S||ve)(A.Y36(k.Is,8),A.Y36(A.SBq),A.Y36(A.R0b),A.Y36(A.sBO),A.Y36(d.rL),A.Y36(Et),A.Y36(A.QbO,8))},ve.\u0275cmp=A.Xpm({type:ve,selectors:[["mat-drawer-container"]],contentQueries:function(S,F,V){if(1&S&&(A.Suo(V,je,5),A.Suo(V,dt,5)),2&S){let ne;A.iGM(ne=A.CRH())&&(F._content=ne.first),A.iGM(ne=A.CRH())&&(F._allDrawers=ne)}},viewQuery:function(S,F){if(1&S&&A.Gf(je,5),2&S){let V;A.iGM(V=A.CRH())&&(F._userContent=V.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(S,F){2&S&&A.ekj("mat-drawer-container-explicit-backdrop",F._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[A._Bn([{provide:be,useExisting:ve}])],ngContentSelectors:ye,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(S,F){1&S&&(A.F$t(re),A.YNc(0,ke,1,2,"div",0),A.Hsn(1),A.Hsn(2,1),A.YNc(3,me,2,0,"mat-drawer-content",1)),2&S&&(A.Q6J("ngIf",F.hasBackdrop),A.xp6(3),A.Q6J("ngIf",!F._content))},dependencies:[i.O5,je],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),ve})(),gt=(()=>{class ve extends je{constructor(S,F,V,ne,De){super(S,F,V,ne,De)}}return ve.\u0275fac=function(S){return new(S||ve)(A.Y36(A.sBO),A.Y36((0,A.Gpc)(()=>we)),A.Y36(A.SBq),A.Y36(d.mF),A.Y36(A.R0b))},ve.\u0275cmp=A.Xpm({type:ve,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(S,F){2&S&&A.Udp("margin-left",F._container._contentMargins.left,"px")("margin-right",F._container._contentMargins.right,"px")},features:[A._Bn([{provide:d.PQ,useExisting:ve}]),A.qOj],ngContentSelectors:Ge,decls:1,vars:0,template:function(S,F){1&S&&(A.F$t(),A.Hsn(0))},encapsulation:2,changeDetection:0}),ve})(),Re=(()=>{class ve extends dt{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(S){this._fixedInViewport=(0,f.Ig)(S)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(S){this._fixedTopGap=(0,f.su)(S)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(S){this._fixedBottomGap=(0,f.su)(S)}}return ve.\u0275fac=function(){let se;return function(F){return(se||(se=A.n5z(ve)))(F||ve)}}(),ve.\u0275cmp=A.Xpm({type:ve,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(S,F){2&S&&(A.uIk("align",null),A.Udp("top",F.fixedInViewport?F.fixedTopGap:null,"px")("bottom",F.fixedInViewport?F.fixedBottomGap:null,"px"),A.ekj("mat-drawer-end","end"===F.position)("mat-drawer-over","over"===F.mode)("mat-drawer-push","push"===F.mode)("mat-drawer-side","side"===F.mode)("mat-drawer-opened",F.opened)("mat-sidenav-fixed",F.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[A.qOj],ngContentSelectors:Ge,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(S,F){1&S&&(A.F$t(),A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA())},dependencies:[d.PQ],encapsulation:2,data:{animation:[pt.transformDrawer]},changeDetection:0}),ve})(),we=(()=>{class ve extends et{}return ve.\u0275fac=function(){let se;return function(F){return(se||(se=A.n5z(ve)))(F||ve)}}(),ve.\u0275cmp=A.Xpm({type:ve,selectors:[["mat-sidenav-container"]],contentQueries:function(S,F,V){if(1&S&&(A.Suo(V,gt,5),A.Suo(V,Re,5)),2&S){let ne;A.iGM(ne=A.CRH())&&(F._content=ne.first),A.iGM(ne=A.CRH())&&(F._allDrawers=ne)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(S,F){2&S&&A.ekj("mat-drawer-container-explicit-backdrop",F._backdropOverride)},exportAs:["matSidenavContainer"],features:[A._Bn([{provide:be,useExisting:ve}]),A.qOj],ngContentSelectors:ot,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(S,F){1&S&&(A.F$t(tt),A.YNc(0,Oe,1,2,"div",0),A.Hsn(1),A.Hsn(2,1),A.YNc(3,Ae,2,0,"mat-sidenav-content",1)),2&S&&(A.Q6J("ngIf",F.hasBackdrop),A.xp6(3),A.Q6J("ngIf",!F._content))},dependencies:[i.O5,gt],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),ve})(),ce=(()=>{class ve{}return ve.\u0275fac=function(S){return new(S||ve)},ve.\u0275mod=A.oAB({type:ve}),ve.\u0275inj=A.cJS({imports:[i.ez,p.BQ,d.ZD,d.ZD,p.BQ]}),ve})()},455:(vn,_t,y)=>{"use strict";y.d(_t,{Rr:()=>ie,rP:()=>Qe});var d=y(4650),i=y(4006),A=y(2687),p=y(3238),v=y(1281),k=y(6895);const f=["switch"],b=["*"],J=new d.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),Y={provide:i.JU,useExisting:(0,d.Gpc)(()=>ie),multi:!0};class W{constructor($e,Ge){this.source=$e,this.checked=Ge}}let B=0;const Z=(0,p.sb)((0,p.pj)((0,p.Kr)((0,p.Id)(class{constructor(vt){this._elementRef=vt}}))));let G=(()=>{class vt extends Z{get required(){return this._required}set required(Ge){this._required=(0,v.Ig)(Ge)}get checked(){return this._checked}set checked(Ge){this._checked=(0,v.Ig)(Ge),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(Ge,Ce,ke,me,re,ye,Oe){super(Ge),this._focusMonitor=Ce,this._changeDetectorRef=ke,this.defaults=re,this._onChange=Ae=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new d.vpe,this.toggleChange=new d.vpe,this.tabIndex=parseInt(me)||0,this.color=this.defaultColor=re.color||"accent",this._noopAnimations="NoopAnimations"===ye,this.id=this._uniqueId=`${Oe}${++B}`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Ge=>{"keyboard"===Ge||"program"===Ge?(this._focused=!0,this._changeDetectorRef.markForCheck()):Ge||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(Ge){this.checked=!!Ge}registerOnChange(Ge){this._onChange=Ge}registerOnTouched(Ge){this._onTouched=Ge}setDisabledState(Ge){this.disabled=Ge,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return vt.\u0275fac=function(Ge){d.$Z()},vt.\u0275dir=d.lG2({type:vt,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[d.qOj]}),vt})(),ie=(()=>{class vt extends G{get buttonId(){return`${this.id||this._uniqueId}-button`}constructor(Ge,Ce,ke,me,re,ye){super(Ge,Ce,ke,me,re,ye,"mat-mdc-slide-toggle-"),this._labelId=this._uniqueId+"-label"}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new W(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(Ge){return new W(this,Ge)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return vt.\u0275fac=function(Ge){return new(Ge||vt)(d.Y36(d.SBq),d.Y36(A.tE),d.Y36(d.sBO),d.$8M("tabindex"),d.Y36(J),d.Y36(d.QbO,8))},vt.\u0275cmp=d.Xpm({type:vt,selectors:[["mat-slide-toggle"]],viewQuery:function(Ge,Ce){if(1&Ge&&d.Gf(f,5),2&Ge){let ke;d.iGM(ke=d.CRH())&&(Ce._switchElement=ke.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(Ge,Ce){2&Ge&&(d.Ikx("id",Ce.id),d.uIk("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),d.ekj("mat-mdc-slide-toggle-focused",Ce._focused)("mat-mdc-slide-toggle-checked",Ce.checked)("_mat-animation-noopable",Ce._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[d._Bn([Y]),d.qOj],ngContentSelectors:b,decls:17,vars:24,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"],[3,"for","click"]],template:function(Ge,Ce){if(1&Ge&&(d.F$t(),d.TgZ(0,"div",0)(1,"button",1,2),d.NdJ("click",function(){return Ce._handleClick()}),d._UZ(3,"div",3),d.TgZ(4,"div",4)(5,"div",5)(6,"div",6),d._UZ(7,"div",7),d.qZA(),d.TgZ(8,"div",8),d._UZ(9,"div",9),d.qZA(),d.TgZ(10,"div",10),d.O4$(),d.TgZ(11,"svg",11),d._UZ(12,"path",12),d.qZA(),d.TgZ(13,"svg",13),d._UZ(14,"path",14),d.qZA()()()()(),d.kcU(),d.TgZ(15,"label",15),d.NdJ("click",function(me){return me.stopPropagation()}),d.Hsn(16),d.qZA()()),2&Ge){const ke=d.MAs(2);d.ekj("mdc-form-field--align-end","before"==Ce.labelPosition),d.xp6(1),d.ekj("mdc-switch--selected",Ce.checked)("mdc-switch--unselected",!Ce.checked)("mdc-switch--checked",Ce.checked)("mdc-switch--disabled",Ce.disabled),d.Q6J("tabIndex",Ce.tabIndex)("disabled",Ce.disabled),d.uIk("id",Ce.buttonId)("name",Ce.name)("aria-label",Ce.ariaLabel)("aria-labelledby",Ce._getAriaLabelledBy())("aria-describedby",Ce.ariaDescribedby)("aria-required",Ce.required||null)("aria-checked",Ce.checked),d.xp6(8),d.Q6J("matRippleTrigger",ke)("matRippleDisabled",Ce.disableRipple||Ce.disabled)("matRippleCentered",!0),d.xp6(6),d.Q6J("for",Ce.buttonId),d.uIk("id",Ce._labelId)}},dependencies:[p.wG],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mdc-switch{width:var(--mdc-switch-track-width, 36px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, #616161)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color, var(--mdc-theme-surface, #fff))}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__focus-ring-wrapper,.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height, 20px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape, 10px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width, 20px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width, 20px))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 18px);height:var(--mdc-switch-selected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 18px);height:var(--mdc-switch-unselected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size, 48px);width:var(--mdc-switch-state-layer-size, 48px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height, 14px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape, 7px)}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}'],encapsulation:2,changeDetection:0}),vt})(),Ze=(()=>{class vt{}return vt.\u0275fac=function(Ge){return new(Ge||vt)},vt.\u0275mod=d.oAB({type:vt}),vt.\u0275inj=d.cJS({}),vt})(),Qe=(()=>{class vt{}return vt.\u0275fac=function(Ge){return new(Ge||vt)},vt.\u0275mod=d.oAB({type:vt}),vt.\u0275inj=d.cJS({imports:[Ze,p.BQ,p.si,k.ez,Ze,p.BQ]}),vt})()},7009:(vn,_t,y)=>{"use strict";y.d(_t,{ZX:()=>Ae,ux:()=>pt});var d=y(4650),i=y(8929),A=y(6895),p=y(4859),v=y(7340),k=y(4080),f=y(3353),b=y(2986),J=y(7625),Y=y(2687),W=y(1750),B=y(8184),Z=y(3238);function G(ft,Et){if(1&ft){const be=d.EpF();d.TgZ(0,"div",2)(1,"button",3),d.NdJ("click",function(){d.CHM(be);const je=d.oxw();return d.KtG(je.action())}),d._uU(2),d.qZA()()}if(2&ft){const be=d.oxw();d.xp6(2),d.hij(" ",be.data.action," ")}}const ie=["label"];function Ee(ft,Et){}const ue=Math.pow(2,31)-1;class Ze{constructor(Et,be){this._overlayRef=be,this._afterDismissed=new i.xQ,this._afterOpened=new i.xQ,this._onAction=new i.xQ,this._dismissedByAction=!1,this.containerInstance=Et,Et._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(Et){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(Et,ue))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const Qe=new d.OlP("MatSnackBarData");class vt{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let $e=(()=>{class ft{}return ft.\u0275fac=function(be){return new(be||ft)},ft.\u0275dir=d.lG2({type:ft,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),ft})(),Ge=(()=>{class ft{}return ft.\u0275fac=function(be){return new(be||ft)},ft.\u0275dir=d.lG2({type:ft,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),ft})(),Ce=(()=>{class ft{}return ft.\u0275fac=function(be){return new(be||ft)},ft.\u0275dir=d.lG2({type:ft,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),ft})(),ke=(()=>{class ft{constructor(be,Pe){this.snackBarRef=be,this.data=Pe}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return ft.\u0275fac=function(be){return new(be||ft)(d.Y36(Ze),d.Y36(Qe))},ft.\u0275cmp=d.Xpm({type:ft,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(be,Pe){1&be&&(d.TgZ(0,"div",0),d._uU(1),d.qZA(),d.YNc(2,G,3,1,"div",1)),2&be&&(d.xp6(1),d.hij(" ",Pe.data.message,"\n"),d.xp6(1),d.Q6J("ngIf",Pe.hasAction))},dependencies:[A.O5,p.lW,$e,Ge,Ce],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),ft})();const me={snackBarState:(0,v.X$)("state",[(0,v.SB)("void, hidden",(0,v.oB)({transform:"scale(0.8)",opacity:0})),(0,v.SB)("visible",(0,v.oB)({transform:"scale(1)",opacity:1})),(0,v.eR)("* => visible",(0,v.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,v.eR)("* => void, * => hidden",(0,v.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,v.oB)({opacity:0})))])};let re=0,ye=(()=>{class ft extends k.en{constructor(be,Pe,je,dt,et){super(),this._ngZone=be,this._elementRef=Pe,this._changeDetectorRef=je,this._platform=dt,this.snackBarConfig=et,this._document=(0,d.f3M)(A.K0),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new i.xQ,this._onExit=new i.xQ,this._onEnter=new i.xQ,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+re++,this.attachDomPortal=gt=>{this._assertNotAttached();const Re=this._portalOutlet.attachDomPortal(gt);return this._afterPortalAttached(),Re},this._live="assertive"!==et.politeness||et.announcementMessage?"off"===et.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(be){this._assertNotAttached();const Pe=this._portalOutlet.attachComponentPortal(be);return this._afterPortalAttached(),Pe}attachTemplatePortal(be){this._assertNotAttached();const Pe=this._portalOutlet.attachTemplatePortal(be);return this._afterPortalAttached(),Pe}onAnimationEnd(be){const{fromState:Pe,toState:je}=be;if(("void"===je&&"void"!==Pe||"hidden"===je)&&this._completeExit(),"visible"===je){const dt=this._onEnter;this._ngZone.run(()=>{dt.next(),dt.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,b.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const be=this._elementRef.nativeElement,Pe=this.snackBarConfig.panelClass;Pe&&(Array.isArray(Pe)?Pe.forEach(je=>be.classList.add(je)):be.classList.add(Pe)),this._exposeToModals()}_exposeToModals(){const be=this._liveElementId,Pe=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let je=0;je<Pe.length;je++){const dt=Pe[je],et=dt.getAttribute("aria-owns");this._trackedModals.add(dt),et?-1===et.indexOf(be)&&dt.setAttribute("aria-owns",et+" "+be):dt.setAttribute("aria-owns",be)}}_clearFromModals(){this._trackedModals.forEach(be=>{const Pe=be.getAttribute("aria-owns");if(Pe){const je=Pe.replace(this._liveElementId,"").trim();je.length>0?be.setAttribute("aria-owns",je):be.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const be=this._elementRef.nativeElement.querySelector("[aria-hidden]"),Pe=this._elementRef.nativeElement.querySelector("[aria-live]");if(be&&Pe){let je=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&be.contains(document.activeElement)&&(je=document.activeElement),be.removeAttribute("aria-hidden"),Pe.appendChild(be),je?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return ft.\u0275fac=function(be){return new(be||ft)(d.Y36(d.R0b),d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(f.t4),d.Y36(vt))},ft.\u0275dir=d.lG2({type:ft,viewQuery:function(be,Pe){if(1&be&&d.Gf(k.Pl,7),2&be){let je;d.iGM(je=d.CRH())&&(Pe._portalOutlet=je.first)}},features:[d.qOj]}),ft})(),Oe=(()=>{class ft extends ye{_afterPortalAttached(){super._afterPortalAttached();const be=this._label.nativeElement,Pe="mdc-snackbar__label";be.classList.toggle(Pe,!be.querySelector(`.${Pe}`))}}return ft.\u0275fac=function(){let Et;return function(Pe){return(Et||(Et=d.n5z(ft)))(Pe||ft)}}(),ft.\u0275cmp=d.Xpm({type:ft,selectors:[["mat-snack-bar-container"]],viewQuery:function(be,Pe){if(1&be&&d.Gf(ie,7),2&be){let je;d.iGM(je=d.CRH())&&(Pe._label=je.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(be,Pe){1&be&&d.WFA("@state.done",function(dt){return Pe.onAnimationEnd(dt)}),2&be&&d.d8E("@state",Pe._animationState)},features:[d.qOj],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(be,Pe){1&be&&(d.TgZ(0,"div",0)(1,"div",1,2)(3,"div",3),d.YNc(4,Ee,0,0,"ng-template",4),d.qZA(),d._UZ(5,"div"),d.qZA()()),2&be&&(d.xp6(5),d.uIk("aria-live",Pe._live)("role",Pe._role)("id",Pe._liveElementId))},dependencies:[k.Pl],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[me.snackBarState]}}),ft})(),Ae=(()=>{class ft{}return ft.\u0275fac=function(be){return new(be||ft)},ft.\u0275mod=d.oAB({type:ft}),ft.\u0275inj=d.cJS({imports:[B.U8,k.eL,A.ez,p.ot,Z.BQ,Z.BQ]}),ft})();const ot=new d.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function tt(){return new vt}});let at=(()=>{class ft{get _openedSnackBarRef(){const be=this._parentSnackBar;return be?be._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(be){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=be:this._snackBarRefAtThisLevel=be}constructor(be,Pe,je,dt,et,gt){this._overlay=be,this._live=Pe,this._injector=je,this._breakpointObserver=dt,this._parentSnackBar=et,this._defaultConfig=gt,this._snackBarRefAtThisLevel=null}openFromComponent(be,Pe){return this._attach(be,Pe)}openFromTemplate(be,Pe){return this._attach(be,Pe)}open(be,Pe="",je){const dt={...this._defaultConfig,...je};return dt.data={message:be,action:Pe},dt.announcementMessage===be&&(dt.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,dt)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(be,Pe){const dt=d.zs3.create({parent:Pe&&Pe.viewContainerRef&&Pe.viewContainerRef.injector||this._injector,providers:[{provide:vt,useValue:Pe}]}),et=new k.C5(this.snackBarContainerComponent,Pe.viewContainerRef,dt),gt=be.attach(et);return gt.instance.snackBarConfig=Pe,gt.instance}_attach(be,Pe){const je={...new vt,...this._defaultConfig,...Pe},dt=this._createOverlay(je),et=this._attachSnackBarContainer(dt,je),gt=new Ze(et,dt);if(be instanceof d.Rgc){const Re=new k.UE(be,null,{$implicit:je.data,snackBarRef:gt});gt.instance=et.attachTemplatePortal(Re)}else{const Re=this._createInjector(je,gt),we=new k.C5(be,void 0,Re),ce=et.attachComponentPortal(we);gt.instance=ce.instance}return this._breakpointObserver.observe(W.u3.HandsetPortrait).pipe((0,J.R)(dt.detachments())).subscribe(Re=>{dt.overlayElement.classList.toggle(this.handsetCssClass,Re.matches)}),je.announcementMessage&&et._onAnnounce.subscribe(()=>{this._live.announce(je.announcementMessage,je.politeness)}),this._animateSnackBar(gt,je),this._openedSnackBarRef=gt,this._openedSnackBarRef}_animateSnackBar(be,Pe){be.afterDismissed().subscribe(()=>{this._openedSnackBarRef==be&&(this._openedSnackBarRef=null),Pe.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{be.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):be.containerInstance.enter(),Pe.duration&&Pe.duration>0&&be.afterOpened().subscribe(()=>be._dismissAfter(Pe.duration))}_createOverlay(be){const Pe=new B.X_;Pe.direction=be.direction;let je=this._overlay.position().global();const dt="rtl"===be.direction,et="left"===be.horizontalPosition||"start"===be.horizontalPosition&&!dt||"end"===be.horizontalPosition&&dt,gt=!et&&"center"!==be.horizontalPosition;return et?je.left("0"):gt?je.right("0"):je.centerHorizontally(),"top"===be.verticalPosition?je.top("0"):je.bottom("0"),Pe.positionStrategy=je,this._overlay.create(Pe)}_createInjector(be,Pe){return d.zs3.create({parent:be&&be.viewContainerRef&&be.viewContainerRef.injector||this._injector,providers:[{provide:Ze,useValue:Pe},{provide:Qe,useValue:be.data}]})}}return ft.\u0275fac=function(be){return new(be||ft)(d.LFG(B.aV),d.LFG(Y.Kd),d.LFG(d.zs3),d.LFG(W.Yg),d.LFG(ft,12),d.LFG(ot))},ft.\u0275prov=d.Yz7({token:ft,factory:ft.\u0275fac}),ft})(),pt=(()=>{class ft extends at{constructor(be,Pe,je,dt,et,gt){super(be,Pe,je,dt,et,gt),this.simpleSnackBarComponent=ke,this.snackBarContainerComponent=Oe,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return ft.\u0275fac=function(be){return new(be||ft)(d.LFG(B.aV),d.LFG(Y.Kd),d.LFG(d.zs3),d.LFG(W.Yg),d.LFG(ft,12),d.LFG(ot))},ft.\u0275prov=d.Yz7({token:ft,factory:ft.\u0275fac,providedIn:Ae}),ft})()},6308:(vn,_t,y)=>{"use strict";y.d(_t,{JX:()=>Oe,YE:()=>Qe,nU:()=>ye});var d=y(4650),i=y(2687),A=y(1281),p=y(9521),v=y(3238),k=y(8929),f=y(6787),b=y(7340),J=y(6895);const Y=["mat-sort-header",""];function W(Ae,tt){if(1&Ae){const ot=d.EpF();d.TgZ(0,"div",3),d.NdJ("@arrowPosition.start",function(){d.CHM(ot);const pt=d.oxw();return d.KtG(pt._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){d.CHM(ot);const pt=d.oxw();return d.KtG(pt._disableViewStateAnimation=!1)}),d._UZ(1,"div",4),d.TgZ(2,"div",5),d._UZ(3,"div",6)(4,"div",7)(5,"div",8),d.qZA()()}if(2&Ae){const ot=d.oxw();d.Q6J("@arrowOpacity",ot._getArrowViewState())("@arrowPosition",ot._getArrowViewState())("@allowChildren",ot._getArrowDirectionState()),d.xp6(2),d.Q6J("@indicator",ot._getArrowDirectionState()),d.xp6(1),d.Q6J("@leftPointer",ot._getArrowDirectionState()),d.xp6(1),d.Q6J("@rightPointer",ot._getArrowDirectionState())}}const B=["*"],ue=new d.OlP("MAT_SORT_DEFAULT_OPTIONS"),Ze=(0,v.dB)((0,v.Id)(class{}));let Qe=(()=>{class Ae extends Ze{get direction(){return this._direction}set direction(ot){this._direction=ot}get disableClear(){return this._disableClear}set disableClear(ot){this._disableClear=(0,A.Ig)(ot)}constructor(ot){super(),this._defaultOptions=ot,this.sortables=new Map,this._stateChanges=new k.xQ,this.start="asc",this._direction="",this.sortChange=new d.vpe}register(ot){this.sortables.set(ot.id,ot)}deregister(ot){this.sortables.delete(ot.id)}sort(ot){this.active!=ot.id?(this.active=ot.id,this.direction=ot.start?ot.start:this.start):this.direction=this.getNextSortDirection(ot),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(ot){if(!ot)return"";let pt=function vt(Ae,tt){let ot=["asc","desc"];return"desc"==Ae&&ot.reverse(),tt||ot.push(""),ot}(ot.start||this.start,ot?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),ft=pt.indexOf(this.direction)+1;return ft>=pt.length&&(ft=0),pt[ft]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(d.Y36(ue,8))},Ae.\u0275dir=d.lG2({type:Ae,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[d.qOj,d.TTD]}),Ae})();const $e=v.mZ.ENTERING+" "+v.yN.STANDARD_CURVE,Ge={indicator:(0,b.X$)("indicator",[(0,b.SB)("active-asc, asc",(0,b.oB)({transform:"translateY(0px)"})),(0,b.SB)("active-desc, desc",(0,b.oB)({transform:"translateY(10px)"})),(0,b.eR)("active-asc <=> active-desc",(0,b.jt)($e))]),leftPointer:(0,b.X$)("leftPointer",[(0,b.SB)("active-asc, asc",(0,b.oB)({transform:"rotate(-45deg)"})),(0,b.SB)("active-desc, desc",(0,b.oB)({transform:"rotate(45deg)"})),(0,b.eR)("active-asc <=> active-desc",(0,b.jt)($e))]),rightPointer:(0,b.X$)("rightPointer",[(0,b.SB)("active-asc, asc",(0,b.oB)({transform:"rotate(45deg)"})),(0,b.SB)("active-desc, desc",(0,b.oB)({transform:"rotate(-45deg)"})),(0,b.eR)("active-asc <=> active-desc",(0,b.jt)($e))]),arrowOpacity:(0,b.X$)("arrowOpacity",[(0,b.SB)("desc-to-active, asc-to-active, active",(0,b.oB)({opacity:1})),(0,b.SB)("desc-to-hint, asc-to-hint, hint",(0,b.oB)({opacity:.54})),(0,b.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,b.oB)({opacity:0})),(0,b.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,b.jt)("0ms")),(0,b.eR)("* <=> *",(0,b.jt)($e))]),arrowPosition:(0,b.X$)("arrowPosition",[(0,b.eR)("* => desc-to-hint, * => desc-to-active",(0,b.jt)($e,(0,b.F4)([(0,b.oB)({transform:"translateY(-25%)"}),(0,b.oB)({transform:"translateY(0)"})]))),(0,b.eR)("* => hint-to-desc, * => active-to-desc",(0,b.jt)($e,(0,b.F4)([(0,b.oB)({transform:"translateY(0)"}),(0,b.oB)({transform:"translateY(25%)"})]))),(0,b.eR)("* => asc-to-hint, * => asc-to-active",(0,b.jt)($e,(0,b.F4)([(0,b.oB)({transform:"translateY(25%)"}),(0,b.oB)({transform:"translateY(0)"})]))),(0,b.eR)("* => hint-to-asc, * => active-to-asc",(0,b.jt)($e,(0,b.F4)([(0,b.oB)({transform:"translateY(0)"}),(0,b.oB)({transform:"translateY(-25%)"})]))),(0,b.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,b.oB)({transform:"translateY(0)"})),(0,b.SB)("hint-to-desc, active-to-desc, desc",(0,b.oB)({transform:"translateY(-25%)"})),(0,b.SB)("hint-to-asc, active-to-asc, asc",(0,b.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,b.X$)("allowChildren",[(0,b.eR)("* <=> *",[(0,b.IO)("@*",(0,b.pV)(),{optional:!0})])])};let Ce=(()=>{class Ae{constructor(){this.changes=new k.xQ}}return Ae.\u0275fac=function(ot){return new(ot||Ae)},Ae.\u0275prov=d.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})();const me={provide:Ce,deps:[[new d.FiY,new d.tp0,Ce]],useFactory:function ke(Ae){return Ae||new Ce}},re=(0,v.Id)(class{});let ye=(()=>{class Ae extends re{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(ot){this._updateSortActionDescription(ot)}get disableClear(){return this._disableClear}set disableClear(ot){this._disableClear=(0,A.Ig)(ot)}constructor(ot,at,pt,ft,Et,be,Pe,je){super(),this._intl=ot,this._changeDetectorRef=at,this._sort=pt,this._columnDef=ft,this._focusMonitor=Et,this._elementRef=be,this._ariaDescriber=Pe,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",je?.arrowPosition&&(this.arrowPosition=je?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ot=>{const at=!!ot;at!==this._showIndicatorHint&&(this._setIndicatorHintVisible(at),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(ot){this._isDisabled()&&ot||(this._showIndicatorHint=ot,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(ot){this._viewState=ot||{},this._disableViewStateAnimation&&(this._viewState={toState:ot.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(ot){!this._isDisabled()&&(ot.keyCode===p.L_||ot.keyCode===p.K5)&&(ot.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const ot=this._viewState.fromState;return(ot?`${ot}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(ot){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,ot)),this._sortActionDescription=ot}_handleStateChanges(){this._rerenderSubscription=(0,f.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(d.Y36(Ce),d.Y36(d.sBO),d.Y36(Qe,8),d.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),d.Y36(i.tE),d.Y36(d.SBq),d.Y36(i.$s,8),d.Y36(ue,8))},Ae.\u0275cmp=d.Xpm({type:Ae,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(ot,at){1&ot&&d.NdJ("click",function(){return at._handleClick()})("keydown",function(ft){return at._handleKeydown(ft)})("mouseenter",function(){return at._setIndicatorHintVisible(!0)})("mouseleave",function(){return at._setIndicatorHintVisible(!1)}),2&ot&&(d.uIk("aria-sort",at._getAriaSortAttribute()),d.ekj("mat-sort-header-disabled",at._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[d.qOj],attrs:Y,ngContentSelectors:B,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(ot,at){1&ot&&(d.F$t(),d.TgZ(0,"div",0)(1,"div",1),d.Hsn(2),d.qZA(),d.YNc(3,W,6,6,"div",2),d.qZA()),2&ot&&(d.ekj("mat-sort-header-sorted",at._isSorted())("mat-sort-header-position-before","before"===at.arrowPosition),d.uIk("tabindex",at._isDisabled()?null:0)("role",at._isDisabled()?null:"button"),d.xp6(3),d.Q6J("ngIf",at._renderArrow()))},dependencies:[J.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Ge.indicator,Ge.leftPointer,Ge.rightPointer,Ge.arrowOpacity,Ge.arrowPosition,Ge.allowChildren]},changeDetection:0}),Ae})(),Oe=(()=>{class Ae{}return Ae.\u0275fac=function(ot){return new(ot||Ae)},Ae.\u0275mod=d.oAB({type:Ae}),Ae.\u0275inj=d.cJS({providers:[me],imports:[J.ez,v.BQ]}),Ae})()},6257:(vn,_t,y)=>{"use strict";y.d(_t,{C0:()=>it,VY:()=>Zt,Vq:()=>ct,T5:()=>An,Ic:()=>dn,fd:()=>Rn});var d=y(4080),i=y(2687),A=y(445),p=y(1281),v=y(9521),k=y(4650),f=y(3353),b=y(8929),J=y(1086),Y=y(1059),W=y(7625);function B(Gt,gn){1&Gt&&k.Hsn(0)}const Z=["*"];let G=(()=>{class Gt{constructor(St){this._elementRef=St}focus(){this._elementRef.nativeElement.focus()}}return Gt.\u0275fac=function(St){return new(St||Gt)(k.Y36(k.SBq))},Gt.\u0275dir=k.lG2({type:Gt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),Gt})(),ie=(()=>{class Gt{constructor(St){this.template=St}}return Gt.\u0275fac=function(St){return new(St||Gt)(k.Y36(k.Rgc))},Gt.\u0275dir=k.lG2({type:Gt,selectors:[["","cdkStepLabel",""]]}),Gt})(),Ee=0;const Qe=new k.OlP("STEPPER_GLOBAL_OPTIONS");let vt=(()=>{class Gt{get editable(){return this._editable}set editable(St){this._editable=(0,p.Ig)(St)}get optional(){return this._optional}set optional(St){this._optional=(0,p.Ig)(St)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(St){this._completedOverride=(0,p.Ig)(St)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(St){this._customError=(0,p.Ig)(St)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(St,cn){this._stepper=St,this.interacted=!1,this.interactedStream=new k.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=cn||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return Gt.\u0275fac=function(St){return new(St||Gt)(k.Y36((0,k.Gpc)(()=>$e)),k.Y36(Qe,8))},Gt.\u0275cmp=k.Xpm({type:Gt,selectors:[["cdk-step"]],contentQueries:function(St,cn,Qn){if(1&St&&k.Suo(Qn,ie,5),2&St){let ai;k.iGM(ai=k.CRH())&&(cn.stepLabel=ai.first)}},viewQuery:function(St,cn){if(1&St&&k.Gf(k.Rgc,7),2&St){let Qn;k.iGM(Qn=k.CRH())&&(cn.content=Qn.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[k.TTD],ngContentSelectors:Z,decls:1,vars:0,template:function(St,cn){1&St&&(k.F$t(),k.YNc(0,B,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),Gt})(),$e=(()=>{class Gt{get linear(){return this._linear}set linear(St){this._linear=(0,p.Ig)(St)}get selectedIndex(){return this._selectedIndex}set selectedIndex(St){const cn=(0,p.su)(St);this.steps&&this._steps?(this._isValidIndex(cn),this.selected?._markAsInteracted(),this._selectedIndex!==cn&&!this._anyControlsInvalidOrPending(cn)&&(cn>=this._selectedIndex||this.steps.toArray()[cn].editable)&&this._updateSelectedItemIndex(cn)):this._selectedIndex=cn}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(St){this.selectedIndex=St&&this.steps?this.steps.toArray().indexOf(St):-1}get orientation(){return this._orientation}set orientation(St){this._orientation=St,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===St)}constructor(St,cn,Qn){this._dir=St,this._changeDetectorRef=cn,this._elementRef=Qn,this._destroyed=new b.xQ,this.steps=new k.n_E,this._sortedHeaders=new k.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new k.vpe,this._orientation="horizontal",this._groupId=Ee++}ngAfterContentInit(){this._steps.changes.pipe((0,Y.O)(this._steps),(0,W.R)(this._destroyed)).subscribe(St=>{this.steps.reset(St.filter(cn=>cn._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,Y.O)(this._stepHeader),(0,W.R)(this._destroyed)).subscribe(St=>{this._sortedHeaders.reset(St.toArray().sort((cn,Qn)=>cn._elementRef.nativeElement.compareDocumentPosition(Qn._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new i.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,J.of)()).pipe((0,Y.O)(this._layoutDirection()),(0,W.R)(this._destroyed)).subscribe(St=>this._keyManager.withHorizontalOrientation(St)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(St=>St.reset()),this._stateChanged()}_getStepLabelId(St){return`cdk-step-label-${this._groupId}-${St}`}_getStepContentId(St){return`cdk-step-content-${this._groupId}-${St}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(St){const cn=St-this._selectedIndex;return cn<0?"rtl"===this._layoutDirection()?"next":"previous":cn>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(St,cn="number"){const Qn=this.steps.toArray()[St],ai=this._isCurrentStep(St);return Qn._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Qn,ai):this._getGuidelineLogic(Qn,ai,cn)}_getDefaultIndicatorLogic(St,cn){return St._showError()&&St.hasError&&!cn?"error":!St.completed||cn?"number":St.editable?"edit":"done"}_getGuidelineLogic(St,cn,Qn="number"){return St._showError()&&St.hasError&&!cn?"error":St.completed&&!cn?"done":St.completed&&cn?Qn:St.editable&&cn?"edit":Qn}_isCurrentStep(St){return this._selectedIndex===St}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(St){const cn=this.steps.toArray();this.selectionChange.emit({selectedIndex:St,previouslySelectedIndex:this._selectedIndex,selectedStep:cn[St],previouslySelectedStep:cn[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(St):this._keyManager.updateActiveItem(St),this._selectedIndex=St,this._stateChanged()}_onKeydown(St){const cn=(0,v.Vb)(St),Qn=St.keyCode,ai=this._keyManager;null==ai.activeItemIndex||cn||Qn!==v.L_&&Qn!==v.K5?ai.setFocusOrigin("keyboard").onKeydown(St):(this.selectedIndex=ai.activeItemIndex,St.preventDefault())}_anyControlsInvalidOrPending(St){return!!(this._linear&&St>=0)&&this.steps.toArray().slice(0,St).some(cn=>{const Qn=cn.stepControl;return(Qn?Qn.invalid||Qn.pending||!cn.interacted:!cn.completed)&&!cn.optional&&!cn._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const St=this._elementRef.nativeElement,cn=(0,f.ht)();return St===cn||St.contains(cn)}_isValidIndex(St){return St>-1&&(!this.steps||St<this.steps.length)}}return Gt.\u0275fac=function(St){return new(St||Gt)(k.Y36(A.Is,8),k.Y36(k.sBO),k.Y36(k.SBq))},Gt.\u0275dir=k.lG2({type:Gt,selectors:[["","cdkStepper",""]],contentQueries:function(St,cn,Qn){if(1&St&&(k.Suo(Qn,vt,5),k.Suo(Qn,G,5)),2&St){let ai;k.iGM(ai=k.CRH())&&(cn._steps=ai),k.iGM(ai=k.CRH())&&(cn._stepHeader=ai)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),Gt})(),Ge=(()=>{class Gt{constructor(St){this._stepper=St,this.type="submit"}}return Gt.\u0275fac=function(St){return new(St||Gt)(k.Y36($e))},Gt.\u0275dir=k.lG2({type:Gt,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(St,cn){1&St&&k.NdJ("click",function(){return cn._stepper.next()}),2&St&&k.Ikx("type",cn.type)},inputs:{type:"type"}}),Gt})(),Ce=(()=>{class Gt{constructor(St){this._stepper=St,this.type="button"}}return Gt.\u0275fac=function(St){return new(St||Gt)(k.Y36($e))},Gt.\u0275dir=k.lG2({type:Gt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(St,cn){1&St&&k.NdJ("click",function(){return cn._stepper.previous()}),2&St&&k.Ikx("type",cn.type)},inputs:{type:"type"}}),Gt})(),ke=(()=>{class Gt{}return Gt.\u0275fac=function(St){return new(St||Gt)},Gt.\u0275mod=k.oAB({type:Gt}),Gt.\u0275inj=k.cJS({imports:[A.vT]}),Gt})();var me=y(6895),re=y(3238),ye=y(7392),Oe=y(2654),Ae=y(7545),tt=y(4850),ot=y(5778),at=y(7340);function pt(Gt,gn){if(1&Gt&&k.GkF(0,8),2&Gt){const St=k.oxw();k.Q6J("ngTemplateOutlet",St.iconOverrides[St.state])("ngTemplateOutletContext",St._getIconContext())}}function ft(Gt,gn){if(1&Gt&&(k.TgZ(0,"span",13),k._uU(1),k.qZA()),2&Gt){const St=k.oxw(2);k.xp6(1),k.Oqu(St._getDefaultTextForState(St.state))}}function Et(Gt,gn){if(1&Gt&&(k.TgZ(0,"span",14),k._uU(1),k.qZA()),2&Gt){const St=k.oxw(2);k.xp6(1),k.Oqu(St._intl.completedLabel)}}function be(Gt,gn){if(1&Gt&&(k.TgZ(0,"span",14),k._uU(1),k.qZA()),2&Gt){const St=k.oxw(2);k.xp6(1),k.Oqu(St._intl.editableLabel)}}function Pe(Gt,gn){if(1&Gt&&(k.TgZ(0,"mat-icon",13),k._uU(1),k.qZA()),2&Gt){const St=k.oxw(2);k.xp6(1),k.Oqu(St._getDefaultTextForState(St.state))}}function je(Gt,gn){if(1&Gt&&(k.ynx(0,9),k.YNc(1,ft,2,1,"span",10),k.YNc(2,Et,2,1,"span",11),k.YNc(3,be,2,1,"span",11),k.YNc(4,Pe,2,1,"mat-icon",12),k.BQk()),2&Gt){const St=k.oxw();k.Q6J("ngSwitch",St.state),k.xp6(1),k.Q6J("ngSwitchCase","number"),k.xp6(1),k.Q6J("ngIf","done"===St.state),k.xp6(1),k.Q6J("ngIf","edit"===St.state)}}function dt(Gt,gn){if(1&Gt&&(k.TgZ(0,"div",15),k.GkF(1,16),k.qZA()),2&Gt){const St=k.oxw();k.xp6(1),k.Q6J("ngTemplateOutlet",St._templateLabel().template)}}function et(Gt,gn){if(1&Gt&&(k.TgZ(0,"div",15),k._uU(1),k.qZA()),2&Gt){const St=k.oxw();k.xp6(1),k.Oqu(St.label)}}function gt(Gt,gn){if(1&Gt&&(k.TgZ(0,"div",17),k._uU(1),k.qZA()),2&Gt){const St=k.oxw();k.xp6(1),k.Oqu(St._intl.optionalLabel)}}function Re(Gt,gn){if(1&Gt&&(k.TgZ(0,"div",18),k._uU(1),k.qZA()),2&Gt){const St=k.oxw();k.xp6(1),k.Oqu(St.errorMessage)}}function we(Gt,gn){}function ce(Gt,gn){if(1&Gt&&(k.Hsn(0),k.YNc(1,we,0,0,"ng-template",0)),2&Gt){const St=k.oxw();k.xp6(1),k.Q6J("cdkPortalOutlet",St._portal)}}const ve=["*"];function se(Gt,gn){1&Gt&&k._UZ(0,"div",11)}const S=function(Gt,gn){return{step:Gt,i:gn}};function F(Gt,gn){if(1&Gt&&(k.ynx(0),k.GkF(1,9),k.YNc(2,se,1,0,"div",10),k.BQk()),2&Gt){const St=gn.$implicit,cn=gn.index,Qn=gn.last;k.oxw(2);const ai=k.MAs(4);k.xp6(1),k.Q6J("ngTemplateOutlet",ai)("ngTemplateOutletContext",k.WLB(3,S,St,cn)),k.xp6(1),k.Q6J("ngIf",!Qn)}}const V=function(Gt){return{animationDuration:Gt}},ne=function(Gt,gn){return{value:Gt,params:gn}};function De(Gt,gn){if(1&Gt){const St=k.EpF();k.TgZ(0,"div",12),k.NdJ("@horizontalStepTransition.done",function(Qn){k.CHM(St);const ai=k.oxw(2);return k.KtG(ai._animationDone.next(Qn))}),k.GkF(1,13),k.qZA()}if(2&Gt){const St=gn.$implicit,cn=gn.index,Qn=k.oxw(2);k.ekj("mat-horizontal-stepper-content-inactive",Qn.selectedIndex!==cn),k.Q6J("@horizontalStepTransition",k.WLB(8,ne,Qn._getAnimationDirection(cn),k.VKq(6,V,Qn._getAnimationDuration())))("id",Qn._getStepContentId(cn)),k.uIk("aria-labelledby",Qn._getStepLabelId(cn)),k.xp6(1),k.Q6J("ngTemplateOutlet",St.content)}}function wt(Gt,gn){if(1&Gt&&(k.TgZ(0,"div",4)(1,"div",5),k.YNc(2,F,3,6,"ng-container",6),k.qZA(),k.TgZ(3,"div",7),k.YNc(4,De,2,11,"div",8),k.qZA()()),2&Gt){const St=k.oxw();k.xp6(2),k.Q6J("ngForOf",St.steps),k.xp6(2),k.Q6J("ngForOf",St.steps)}}function nn(Gt,gn){if(1&Gt){const St=k.EpF();k.TgZ(0,"div",15),k.GkF(1,9),k.TgZ(2,"div",16)(3,"div",17),k.NdJ("@verticalStepTransition.done",function(Qn){k.CHM(St);const ai=k.oxw(2);return k.KtG(ai._animationDone.next(Qn))}),k.TgZ(4,"div",18),k.GkF(5,13),k.qZA()()()()}if(2&Gt){const St=gn.$implicit,cn=gn.index,Qn=gn.last,ai=k.oxw(2),ze=k.MAs(4);k.xp6(1),k.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",k.WLB(10,S,St,cn)),k.xp6(1),k.ekj("mat-stepper-vertical-line",!Qn),k.xp6(1),k.ekj("mat-vertical-stepper-content-inactive",ai.selectedIndex!==cn),k.Q6J("@verticalStepTransition",k.WLB(15,ne,ai._getAnimationDirection(cn),k.VKq(13,V,ai._getAnimationDuration())))("id",ai._getStepContentId(cn)),k.uIk("aria-labelledby",ai._getStepLabelId(cn)),k.xp6(2),k.Q6J("ngTemplateOutlet",St.content)}}function Jt(Gt,gn){if(1&Gt&&(k.ynx(0),k.YNc(1,nn,6,18,"div",14),k.BQk()),2&Gt){const St=k.oxw();k.xp6(1),k.Q6J("ngForOf",St.steps)}}function un(Gt,gn){if(1&Gt){const St=k.EpF();k.TgZ(0,"mat-step-header",19),k.NdJ("click",function(){const ai=k.CHM(St).step;return k.KtG(ai.select())})("keydown",function(Qn){k.CHM(St);const ai=k.oxw();return k.KtG(ai._onKeydown(Qn))}),k.qZA()}if(2&Gt){const St=gn.step,cn=gn.i,Qn=k.oxw();k.ekj("mat-horizontal-stepper-header","horizontal"===Qn.orientation)("mat-vertical-stepper-header","vertical"===Qn.orientation),k.Q6J("tabIndex",Qn._getFocusIndex()===cn?0:-1)("id",Qn._getStepLabelId(cn))("index",cn)("state",Qn._getIndicatorType(cn,St.state))("label",St.stepLabel||St.label)("selected",Qn.selectedIndex===cn)("active",Qn._stepIsNavigable(cn,St))("optional",St.optional)("errorMessage",St.errorMessage)("iconOverrides",Qn._iconOverrides)("disableRipple",Qn.disableRipple||!Qn._stepIsNavigable(cn,St))("color",St.color||Qn.color),k.uIk("aria-posinset",cn+1)("aria-setsize",Qn.steps.length)("aria-controls",Qn._getStepContentId(cn))("aria-selected",Qn.selectedIndex==cn)("aria-label",St.ariaLabel||null)("aria-labelledby",!St.ariaLabel&&St.ariaLabelledby?St.ariaLabelledby:null)("aria-disabled",!Qn._stepIsNavigable(cn,St)||null)}}let Zt=(()=>{class Gt extends ie{}return Gt.\u0275fac=function(){let gn;return function(cn){return(gn||(gn=k.n5z(Gt)))(cn||Gt)}}(),Gt.\u0275dir=k.lG2({type:Gt,selectors:[["","matStepLabel",""]],features:[k.qOj]}),Gt})(),zt=(()=>{class Gt{constructor(){this.changes=new b.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return Gt.\u0275fac=function(St){return new(St||Gt)},Gt.\u0275prov=k.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"}),Gt})();const Te={provide:zt,deps:[[new k.FiY,new k.tp0,zt]],useFactory:function fe(Gt){return Gt||new zt}},lt=(0,re.pj)(class extends G{constructor(gn){super(gn)}},"primary");let Je=(()=>{class Gt extends lt{constructor(St,cn,Qn,ai){super(Qn),this._intl=St,this._focusMonitor=cn,this._intlSubscription=St.changes.subscribe(()=>ai.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(St,cn){St?this._focusMonitor.focusVia(this._elementRef,St,cn):this._elementRef.nativeElement.focus(cn)}_stringLabel(){return this.label instanceof Zt?null:this.label}_templateLabel(){return this.label instanceof Zt?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(St){return"number"==St?`${this.index+1}`:"edit"==St?"create":"error"==St?"warning":St}}return Gt.\u0275fac=function(St){return new(St||Gt)(k.Y36(zt),k.Y36(i.tE),k.Y36(k.SBq),k.Y36(k.sBO))},Gt.\u0275cmp=k.Xpm({type:Gt,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[k.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(St,cn){1&St&&(k._UZ(0,"div",0),k.TgZ(1,"div")(2,"div",1),k.YNc(3,pt,1,2,"ng-container",2),k.YNc(4,je,5,4,"ng-container",3),k.qZA()(),k.TgZ(5,"div",4),k.YNc(6,dt,2,1,"div",5),k.YNc(7,et,2,1,"div",5),k.YNc(8,gt,2,1,"div",6),k.YNc(9,Re,2,1,"div",7),k.qZA()),2&St&&(k.Q6J("matRippleTrigger",cn._getHostElement())("matRippleDisabled",cn.disableRipple),k.xp6(1),k.Gre("mat-step-icon-state-",cn.state," mat-step-icon"),k.ekj("mat-step-icon-selected",cn.selected),k.xp6(1),k.Q6J("ngSwitch",!(!cn.iconOverrides||!cn.iconOverrides[cn.state])),k.xp6(1),k.Q6J("ngSwitchCase",!0),k.xp6(2),k.ekj("mat-step-label-active",cn.active)("mat-step-label-selected",cn.selected)("mat-step-label-error","error"==cn.state),k.xp6(1),k.Q6J("ngIf",cn._templateLabel()),k.xp6(1),k.Q6J("ngIf",cn._stringLabel()),k.xp6(1),k.Q6J("ngIf",cn.optional&&"error"!=cn.state),k.xp6(1),k.Q6J("ngIf","error"==cn.state))},dependencies:[me.O5,me.tP,me.RF,me.n9,me.ED,ye.Hw,re.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),Gt})();const ge={horizontalStepTransition:(0,at.X$)("horizontalStepTransition",[(0,at.SB)("previous",(0,at.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,at.SB)("current",(0,at.oB)({transform:"none",visibility:"inherit"})),(0,at.SB)("next",(0,at.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,at.eR)("* => *",(0,at.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,at.X$)("verticalStepTransition",[(0,at.SB)("previous",(0,at.oB)({height:"0px",visibility:"hidden"})),(0,at.SB)("next",(0,at.oB)({height:"0px",visibility:"hidden"})),(0,at.SB)("current",(0,at.oB)({height:"*",visibility:"inherit"})),(0,at.eR)("* <=> current",(0,at.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let Me=(()=>{class Gt{constructor(St){this.templateRef=St}}return Gt.\u0275fac=function(St){return new(St||Gt)(k.Y36(k.Rgc))},Gt.\u0275dir=k.lG2({type:Gt,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),Gt})(),_e=(()=>{class Gt{constructor(St){this._template=St}}return Gt.\u0275fac=function(St){return new(St||Gt)(k.Y36(k.Rgc))},Gt.\u0275dir=k.lG2({type:Gt,selectors:[["ng-template","matStepContent",""]]}),Gt})(),it=(()=>{class Gt extends vt{constructor(St,cn,Qn,ai){super(St,ai),this._errorStateMatcher=cn,this._viewContainerRef=Qn,this._isSelected=Oe.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,Ae.w)(()=>this._stepper.selectionChange.pipe((0,tt.U)(St=>St.selectedStep===this),(0,Y.O)(this._stepper.selected===this)))).subscribe(St=>{St&&this._lazyContent&&!this._portal&&(this._portal=new d.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(St,cn){return this._errorStateMatcher.isErrorState(St,cn)||!!(St&&St.invalid&&this.interacted)}}return Gt.\u0275fac=function(St){return new(St||Gt)(k.Y36((0,k.Gpc)(()=>ct)),k.Y36(re.rD,4),k.Y36(k.s_b),k.Y36(Qe,8))},Gt.\u0275cmp=k.Xpm({type:Gt,selectors:[["mat-step"]],contentQueries:function(St,cn,Qn){if(1&St&&(k.Suo(Qn,Zt,5),k.Suo(Qn,_e,5)),2&St){let ai;k.iGM(ai=k.CRH())&&(cn.stepLabel=ai.first),k.iGM(ai=k.CRH())&&(cn._lazyContent=ai.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[k._Bn([{provide:re.rD,useExisting:Gt},{provide:vt,useExisting:Gt}]),k.qOj],ngContentSelectors:ve,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(St,cn){1&St&&(k.F$t(),k.YNc(0,ce,2,1,"ng-template"))},dependencies:[d.Pl],encapsulation:2,changeDetection:0}),Gt})(),ct=(()=>{class Gt extends $e{get animationDuration(){return this._animationDuration}set animationDuration(St){this._animationDuration=/^\d+$/.test(St)?St+"ms":St}constructor(St,cn,Qn){super(St,cn,Qn),this.steps=new k.n_E,this.animationDone=new k.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new b.xQ,this._animationDuration="";const ai=Qn.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===ai?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:St,templateRef:cn})=>this._iconOverrides[St]=cn),this.steps.changes.pipe((0,W.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,ot.x)((St,cn)=>St.fromState===cn.fromState&&St.toState===cn.toState),(0,W.R)(this._destroyed)).subscribe(St=>{"current"===St.toState&&this.animationDone.emit()})}_stepIsNavigable(St,cn){return cn.completed||this.selectedIndex===St||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return Gt.\u0275fac=function(St){return new(St||Gt)(k.Y36(A.Is,8),k.Y36(k.sBO),k.Y36(k.SBq))},Gt.\u0275cmp=k.Xpm({type:Gt,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(St,cn,Qn){if(1&St&&(k.Suo(Qn,it,5),k.Suo(Qn,Me,5)),2&St){let ai;k.iGM(ai=k.CRH())&&(cn._steps=ai),k.iGM(ai=k.CRH())&&(cn._icons=ai)}},viewQuery:function(St,cn){if(1&St&&k.Gf(Je,5),2&St){let Qn;k.iGM(Qn=k.CRH())&&(cn._stepHeader=Qn)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(St,cn){2&St&&(k.uIk("aria-orientation",cn.orientation),k.ekj("mat-stepper-horizontal","horizontal"===cn.orientation)("mat-stepper-vertical","vertical"===cn.orientation)("mat-stepper-label-position-end","horizontal"===cn.orientation&&"end"==cn.labelPosition)("mat-stepper-label-position-bottom","horizontal"===cn.orientation&&"bottom"==cn.labelPosition)("mat-stepper-header-position-bottom","bottom"===cn.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[k._Bn([{provide:$e,useExisting:Gt}]),k.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(St,cn){1&St&&(k.ynx(0,0),k.YNc(1,wt,5,2,"div",1),k.YNc(2,Jt,2,1,"ng-container",2),k.BQk(),k.YNc(3,un,1,23,"ng-template",null,3,k.W1O)),2&St&&(k.Q6J("ngSwitch",cn.orientation),k.xp6(1),k.Q6J("ngSwitchCase","horizontal"),k.xp6(1),k.Q6J("ngSwitchCase","vertical"))},dependencies:[me.sg,me.O5,me.tP,me.RF,me.n9,Je],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[ge.horizontalStepTransition,ge.verticalStepTransition]},changeDetection:0}),Gt})(),dn=(()=>{class Gt extends Ge{}return Gt.\u0275fac=function(){let gn;return function(cn){return(gn||(gn=k.n5z(Gt)))(cn||Gt)}}(),Gt.\u0275dir=k.lG2({type:Gt,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(St,cn){2&St&&k.Ikx("type",cn.type)},inputs:{type:"type"},features:[k.qOj]}),Gt})(),Rn=(()=>{class Gt extends Ce{}return Gt.\u0275fac=function(){let gn;return function(cn){return(gn||(gn=k.n5z(Gt)))(cn||Gt)}}(),Gt.\u0275dir=k.lG2({type:Gt,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(St,cn){2&St&&k.Ikx("type",cn.type)},inputs:{type:"type"},features:[k.qOj]}),Gt})(),An=(()=>{class Gt{}return Gt.\u0275fac=function(St){return new(St||Gt)},Gt.\u0275mod=k.oAB({type:Gt}),Gt.\u0275inj=k.cJS({providers:[Te,re.rD],imports:[re.BQ,me.ez,d.eL,ke,ye.Ps,re.si,re.BQ]}),Gt})()},671:(vn,_t,y)=>{"use strict";y.d(_t,{ev:()=>xt,Dz:()=>yt,w1:()=>pe,ge:()=>Q,fO:()=>ht,XQ:()=>We,as:()=>nt,Ee:()=>At,Gk:()=>Ve,nj:()=>qe,BZ:()=>He,by:()=>ur,p0:()=>Ti});var d=y(4650),i=y(445),A=y(1281),p=y(5017),v=y(3353),k=y(7261),f=y(6895),b=y(8929),J=y(5254),Y=y(6438),W=y(4715),B=y(1086),Z=y(7625),G=y(2986);const ie=[[["caption"]],[["colgroup"],["col"]]],Ee=["caption","colgroup, col"];function Qe(Mt){return class extends Mt{get sticky(){return this._sticky}set sticky(an){const ut=this._sticky;this._sticky=(0,A.Ig)(an),this._hasStickyChanged=ut!==this._sticky}hasStickyChanged(){const an=this._hasStickyChanged;return this._hasStickyChanged=!1,an}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...an){super(...an),this._sticky=!1,this._hasStickyChanged=!1}}}const vt=new d.OlP("CDK_TABLE");let Ge=(()=>{class Mt{constructor(ut){this.template=ut}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(d.Rgc))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","cdkCellDef",""]]}),Mt})(),Ce=(()=>{class Mt{constructor(ut){this.template=ut}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(d.Rgc))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","cdkHeaderCellDef",""]]}),Mt})(),ke=(()=>{class Mt{constructor(ut){this.template=ut}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(d.Rgc))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","cdkFooterCellDef",""]]}),Mt})();class me{}const re=Qe(me);let ye=(()=>{class Mt extends re{get name(){return this._name}set name(ut){this._setNameInput(ut)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ut){const Ft=this._stickyEnd;this._stickyEnd=(0,A.Ig)(ut),this._hasStickyChanged=Ft!==this._stickyEnd}constructor(ut){super(),this._table=ut,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ut){ut&&(this._name=ut,this.cssClassFriendlyName=ut.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(vt,8))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","cdkColumnDef",""]],contentQueries:function(ut,Ft,ln){if(1&ut&&(d.Suo(ln,Ge,5),d.Suo(ln,Ce,5),d.Suo(ln,ke,5)),2&ut){let Tn;d.iGM(Tn=d.CRH())&&(Ft.cell=Tn.first),d.iGM(Tn=d.CRH())&&(Ft.headerCell=Tn.first),d.iGM(Tn=d.CRH())&&(Ft.footerCell=Tn.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[d._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Mt}]),d.qOj]}),Mt})();class Oe{constructor(an,ut){ut.nativeElement.classList.add(...an._columnCssClassName)}}let Ae=(()=>{class Mt extends Oe{constructor(ut,Ft){super(ut,Ft)}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(ye),d.Y36(d.SBq))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[d.qOj]}),Mt})(),ot=(()=>{class Mt extends Oe{constructor(ut,Ft){if(super(ut,Ft),1===ut._table?._elementRef.nativeElement.nodeType){const ln=ut._table._elementRef.nativeElement.getAttribute("role");Ft.nativeElement.setAttribute("role","grid"===ln||"treegrid"===ln?"gridcell":"cell")}}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(ye),d.Y36(d.SBq))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[d.qOj]}),Mt})();class at{constructor(){this.tasks=[],this.endTasks=[]}}const pt=new d.OlP("_COALESCED_STYLE_SCHEDULER");let ft=(()=>{class Mt{constructor(ut){this._ngZone=ut,this._currentSchedule=null,this._destroyed=new b.xQ}schedule(ut){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ut)}scheduleEnd(ut){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ut)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new at,this._getScheduleObservable().pipe((0,Z.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ut=this._currentSchedule;this._currentSchedule=new at;for(const Ft of ut.tasks)Ft();for(const Ft of ut.endTasks)Ft()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,J.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,G.q)(1))}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.LFG(d.R0b))},Mt.\u0275prov=d.Yz7({token:Mt,factory:Mt.\u0275fac}),Mt})(),be=(()=>{class Mt{constructor(ut,Ft){this.template=ut,this._differs=Ft}ngOnChanges(ut){if(!this._columnsDiffer){const Ft=ut.columns&&ut.columns.currentValue||[];this._columnsDiffer=this._differs.find(Ft).create(),this._columnsDiffer.diff(Ft)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ut){return this instanceof dt?ut.headerCell.template:this instanceof Re?ut.footerCell.template:ut.cell.template}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(d.Rgc),d.Y36(d.ZZ4))},Mt.\u0275dir=d.lG2({type:Mt,features:[d.TTD]}),Mt})();class Pe extends be{}const je=Qe(Pe);let dt=(()=>{class Mt extends je{constructor(ut,Ft,ln){super(ut,Ft),this._table=ln}ngOnChanges(ut){super.ngOnChanges(ut)}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(vt,8))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[d.qOj,d.TTD]}),Mt})();class et extends be{}const gt=Qe(et);let Re=(()=>{class Mt extends gt{constructor(ut,Ft,ln){super(ut,Ft),this._table=ln}ngOnChanges(ut){super.ngOnChanges(ut)}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(vt,8))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[d.qOj,d.TTD]}),Mt})(),we=(()=>{class Mt extends be{constructor(ut,Ft,ln){super(ut,Ft),this._table=ln}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(vt,8))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[d.qOj]}),Mt})(),ce=(()=>{class Mt{constructor(ut){this._viewContainer=ut,Mt.mostRecentCellOutlet=this}ngOnDestroy(){Mt.mostRecentCellOutlet===this&&(Mt.mostRecentCellOutlet=null)}}return Mt.mostRecentCellOutlet=null,Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(d.s_b))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","cdkCellOutlet",""]]}),Mt})(),ve=(()=>{class Mt{}return Mt.\u0275fac=function(ut){return new(ut||Mt)},Mt.\u0275cmp=d.Xpm({type:Mt,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ut,Ft){1&ut&&d.GkF(0,0)},dependencies:[ce],encapsulation:2}),Mt})(),S=(()=>{class Mt{}return Mt.\u0275fac=function(ut){return new(ut||Mt)},Mt.\u0275cmp=d.Xpm({type:Mt,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ut,Ft){1&ut&&d.GkF(0,0)},dependencies:[ce],encapsulation:2}),Mt})(),F=(()=>{class Mt{constructor(ut){this.templateRef=ut,this._contentClassName="cdk-no-data-row"}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(d.Rgc))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["ng-template","cdkNoDataRow",""]]}),Mt})();const V=["top","bottom","left","right"];class ne{constructor(an,ut,Ft,ln,Tn=!0,Hn=!0,Ot){this._isNativeHtmlTable=an,this._stickCellCss=ut,this.direction=Ft,this._coalescedStyleScheduler=ln,this._isBrowser=Tn,this._needsPositionStickyOnElement=Hn,this._positionListener=Ot,this._cachedCellWidths=[],this._borderCellCss={top:`${ut}-border-elem-top`,bottom:`${ut}-border-elem-bottom`,left:`${ut}-border-elem-left`,right:`${ut}-border-elem-right`}}clearStickyPositioning(an,ut){const Ft=[];for(const ln of an)if(ln.nodeType===ln.ELEMENT_NODE){Ft.push(ln);for(let Tn=0;Tn<ln.children.length;Tn++)Ft.push(ln.children[Tn])}this._coalescedStyleScheduler.schedule(()=>{for(const ln of Ft)this._removeStickyStyle(ln,ut)})}updateStickyColumns(an,ut,Ft,ln=!0){if(!an.length||!this._isBrowser||!ut.some(Nt=>Nt)&&!Ft.some(Nt=>Nt))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const Tn=an[0],Hn=Tn.children.length,Ot=this._getCellWidths(Tn,ln),Sn=this._getStickyStartColumnPositions(Ot,ut),Ht=this._getStickyEndColumnPositions(Ot,Ft),wn=ut.lastIndexOf(!0),rt=Ft.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Nt="rtl"===this.direction,P=Nt?"right":"left",xe=Nt?"left":"right";for(const st of an)for(let It=0;It<Hn;It++){const Mn=st.children[It];ut[It]&&this._addStickyStyle(Mn,P,Sn[It],It===wn),Ft[It]&&this._addStickyStyle(Mn,xe,Ht[It],It===rt)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===wn?[]:Ot.slice(0,wn+1).map((st,It)=>ut[It]?st:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===rt?[]:Ot.slice(rt).map((st,It)=>Ft[It+rt]?st:null).reverse()}))})}stickRows(an,ut,Ft){if(!this._isBrowser)return;const ln="bottom"===Ft?an.slice().reverse():an,Tn="bottom"===Ft?ut.slice().reverse():ut,Hn=[],Ot=[],Sn=[];for(let wn=0,rt=0;wn<ln.length;wn++){if(!Tn[wn])continue;Hn[wn]=rt;const Nt=ln[wn];Sn[wn]=this._isNativeHtmlTable?Array.from(Nt.children):[Nt];const P=Nt.getBoundingClientRect().height;rt+=P,Ot[wn]=P}const Ht=Tn.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let wn=0;wn<ln.length;wn++){if(!Tn[wn])continue;const rt=Hn[wn],Nt=wn===Ht;for(const P of Sn[wn])this._addStickyStyle(P,Ft,rt,Nt)}"top"===Ft?this._positionListener?.stickyHeaderRowsUpdated({sizes:Ot,offsets:Hn,elements:Sn}):this._positionListener?.stickyFooterRowsUpdated({sizes:Ot,offsets:Hn,elements:Sn})})}updateStickyFooterContainer(an,ut){if(!this._isNativeHtmlTable)return;const Ft=an.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{ut.some(ln=>!ln)?this._removeStickyStyle(Ft,["bottom"]):this._addStickyStyle(Ft,"bottom",0,!1)})}_removeStickyStyle(an,ut){for(const ln of ut)an.style[ln]="",an.classList.remove(this._borderCellCss[ln]);V.some(ln=>-1===ut.indexOf(ln)&&an.style[ln])?an.style.zIndex=this._getCalculatedZIndex(an):(an.style.zIndex="",this._needsPositionStickyOnElement&&(an.style.position=""),an.classList.remove(this._stickCellCss))}_addStickyStyle(an,ut,Ft,ln){an.classList.add(this._stickCellCss),ln&&an.classList.add(this._borderCellCss[ut]),an.style[ut]=`${Ft}px`,an.style.zIndex=this._getCalculatedZIndex(an),this._needsPositionStickyOnElement&&(an.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(an){const ut={top:100,bottom:10,left:1,right:1};let Ft=0;for(const ln of V)an.style[ln]&&(Ft+=ut[ln]);return Ft?`${Ft}`:""}_getCellWidths(an,ut=!0){if(!ut&&this._cachedCellWidths.length)return this._cachedCellWidths;const Ft=[],ln=an.children;for(let Tn=0;Tn<ln.length;Tn++)Ft.push(ln[Tn].getBoundingClientRect().width);return this._cachedCellWidths=Ft,Ft}_getStickyStartColumnPositions(an,ut){const Ft=[];let ln=0;for(let Tn=0;Tn<an.length;Tn++)ut[Tn]&&(Ft[Tn]=ln,ln+=an[Tn]);return Ft}_getStickyEndColumnPositions(an,ut){const Ft=[];let ln=0;for(let Tn=an.length;Tn>0;Tn--)ut[Tn]&&(Ft[Tn]=ln,ln+=an[Tn]);return Ft}}const Te=new d.OlP("CDK_SPL");let Je=(()=>{class Mt{constructor(ut,Ft){this.viewContainer=ut,this.elementRef=Ft}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(d.s_b),d.Y36(d.SBq))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","rowOutlet",""]]}),Mt})(),Lt=(()=>{class Mt{constructor(ut,Ft){this.viewContainer=ut,this.elementRef=Ft}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(d.s_b),d.Y36(d.SBq))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","headerRowOutlet",""]]}),Mt})(),Ke=(()=>{class Mt{constructor(ut,Ft){this.viewContainer=ut,this.elementRef=Ft}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(d.s_b),d.Y36(d.SBq))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","footerRowOutlet",""]]}),Mt})(),ge=(()=>{class Mt{constructor(ut,Ft){this.viewContainer=ut,this.elementRef=Ft}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(d.s_b),d.Y36(d.SBq))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","noDataRowOutlet",""]]}),Mt})(),it=(()=>{class Mt{get trackBy(){return this._trackByFn}set trackBy(ut){this._trackByFn=ut}get dataSource(){return this._dataSource}set dataSource(ut){this._dataSource!==ut&&this._switchDataSource(ut)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ut){this._multiTemplateDataRows=(0,A.Ig)(ut),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ut){this._fixedLayout=(0,A.Ig)(ut),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(ut,Ft,ln,Tn,Hn,Ot,Sn,Ht,wn,rt,Nt,P){this._differs=ut,this._changeDetectorRef=Ft,this._elementRef=ln,this._dir=Hn,this._platform=Sn,this._viewRepeater=Ht,this._coalescedStyleScheduler=wn,this._viewportRuler=rt,this._stickyPositioningListener=Nt,this._ngZone=P,this._onDestroy=new b.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new d.vpe,this.viewChange=new Y.X({start:0,end:Number.MAX_VALUE}),Tn||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Ot,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ut,Ft)=>this.trackBy?this.trackBy(Ft.dataIndex,Ft.data):Ft),this._viewportRuler.change().pipe((0,Z.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Ft=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Ft,this._forceRecalculateCellWidths=Ft,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(ut=>{ut.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,p.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ut=this._dataDiffer.diff(this._renderRows);if(!ut)return this._updateNoDataRow(),void this.contentChanged.next();const Ft=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ut,Ft,(ln,Tn,Hn)=>this._getEmbeddedViewArgs(ln.item,Hn),ln=>ln.item.data,ln=>{1===ln.operation&&ln.context&&this._renderCellTemplateForItem(ln.record.item.rowDef,ln.context)}),this._updateRowIndexContext(),ut.forEachIdentityChange(ln=>{Ft.get(ln.currentIndex).context.$implicit=ln.item.data}),this._updateNoDataRow(),this._ngZone&&d.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,G.q)(1),(0,Z.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ut){this._customColumnDefs.add(ut)}removeColumnDef(ut){this._customColumnDefs.delete(ut)}addRowDef(ut){this._customRowDefs.add(ut)}removeRowDef(ut){this._customRowDefs.delete(ut)}addHeaderRowDef(ut){this._customHeaderRowDefs.add(ut),this._headerRowDefChanged=!0}removeHeaderRowDef(ut){this._customHeaderRowDefs.delete(ut),this._headerRowDefChanged=!0}addFooterRowDef(ut){this._customFooterRowDefs.add(ut),this._footerRowDefChanged=!0}removeFooterRowDef(ut){this._customFooterRowDefs.delete(ut),this._footerRowDefChanged=!0}setNoDataRow(ut){this._customNoDataRow=ut}updateStickyHeaderRowStyles(){const ut=this._getRenderedRows(this._headerRowOutlet),ln=this._elementRef.nativeElement.querySelector("thead");ln&&(ln.style.display=ut.length?"":"none");const Tn=this._headerRowDefs.map(Hn=>Hn.sticky);this._stickyStyler.clearStickyPositioning(ut,["top"]),this._stickyStyler.stickRows(ut,Tn,"top"),this._headerRowDefs.forEach(Hn=>Hn.resetStickyChanged())}updateStickyFooterRowStyles(){const ut=this._getRenderedRows(this._footerRowOutlet),ln=this._elementRef.nativeElement.querySelector("tfoot");ln&&(ln.style.display=ut.length?"":"none");const Tn=this._footerRowDefs.map(Hn=>Hn.sticky);this._stickyStyler.clearStickyPositioning(ut,["bottom"]),this._stickyStyler.stickRows(ut,Tn,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Tn),this._footerRowDefs.forEach(Hn=>Hn.resetStickyChanged())}updateStickyColumnStyles(){const ut=this._getRenderedRows(this._headerRowOutlet),Ft=this._getRenderedRows(this._rowOutlet),ln=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ut,...Ft,...ln],["left","right"]),this._stickyColumnStylesNeedReset=!1),ut.forEach((Tn,Hn)=>{this._addStickyColumnStyles([Tn],this._headerRowDefs[Hn])}),this._rowDefs.forEach(Tn=>{const Hn=[];for(let Ot=0;Ot<Ft.length;Ot++)this._renderRows[Ot].rowDef===Tn&&Hn.push(Ft[Ot]);this._addStickyColumnStyles(Hn,Tn)}),ln.forEach((Tn,Hn)=>{this._addStickyColumnStyles([Tn],this._footerRowDefs[Hn])}),Array.from(this._columnDefsByName.values()).forEach(Tn=>Tn.resetStickyChanged())}_getAllRenderRows(){const ut=[],Ft=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let ln=0;ln<this._data.length;ln++){let Tn=this._data[ln];const Hn=this._getRenderRowsForData(Tn,ln,Ft.get(Tn));this._cachedRenderRowsMap.has(Tn)||this._cachedRenderRowsMap.set(Tn,new WeakMap);for(let Ot=0;Ot<Hn.length;Ot++){let Sn=Hn[Ot];const Ht=this._cachedRenderRowsMap.get(Sn.data);Ht.has(Sn.rowDef)?Ht.get(Sn.rowDef).push(Sn):Ht.set(Sn.rowDef,[Sn]),ut.push(Sn)}}return ut}_getRenderRowsForData(ut,Ft,ln){return this._getRowDefs(ut,Ft).map(Hn=>{const Ot=ln&&ln.has(Hn)?ln.get(Hn):[];if(Ot.length){const Sn=Ot.shift();return Sn.dataIndex=Ft,Sn}return{data:ut,rowDef:Hn,dataIndex:Ft}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ct(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Ft=>{this._columnDefsByName.has(Ft.name),this._columnDefsByName.set(Ft.name,Ft)})}_cacheRowDefs(){this._headerRowDefs=ct(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ct(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ct(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ut=this._rowDefs.filter(Ft=>!Ft.when);this._defaultRowDef=ut[0]}_renderUpdatedColumns(){const ut=(Hn,Ot)=>Hn||!!Ot.getColumnsDiff(),Ft=this._rowDefs.reduce(ut,!1);Ft&&this._forceRenderDataRows();const ln=this._headerRowDefs.reduce(ut,!1);ln&&this._forceRenderHeaderRows();const Tn=this._footerRowDefs.reduce(ut,!1);return Tn&&this._forceRenderFooterRows(),Ft||ln||Tn}_switchDataSource(ut){this._data=[],(0,p.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ut||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ut}_observeRenderChanges(){if(!this.dataSource)return;let ut;(0,p.Z9)(this.dataSource)?ut=this.dataSource.connect(this):(0,W.b)(this.dataSource)?ut=this.dataSource:Array.isArray(this.dataSource)&&(ut=(0,B.of)(this.dataSource)),this._renderChangeSubscription=ut.pipe((0,Z.R)(this._onDestroy)).subscribe(Ft=>{this._data=Ft||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ut,Ft)=>this._renderRow(this._headerRowOutlet,ut,Ft)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ut,Ft)=>this._renderRow(this._footerRowOutlet,ut,Ft)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ut,Ft){const ln=Array.from(Ft.columns||[]).map(Ot=>this._columnDefsByName.get(Ot)),Tn=ln.map(Ot=>Ot.sticky),Hn=ln.map(Ot=>Ot.stickyEnd);this._stickyStyler.updateStickyColumns(ut,Tn,Hn,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ut){const Ft=[];for(let ln=0;ln<ut.viewContainer.length;ln++){const Tn=ut.viewContainer.get(ln);Ft.push(Tn.rootNodes[0])}return Ft}_getRowDefs(ut,Ft){if(1==this._rowDefs.length)return[this._rowDefs[0]];let ln=[];if(this.multiTemplateDataRows)ln=this._rowDefs.filter(Tn=>!Tn.when||Tn.when(Ft,ut));else{let Tn=this._rowDefs.find(Hn=>Hn.when&&Hn.when(Ft,ut))||this._defaultRowDef;Tn&&ln.push(Tn)}return ln}_getEmbeddedViewArgs(ut,Ft){return{templateRef:ut.rowDef.template,context:{$implicit:ut.data},index:Ft}}_renderRow(ut,Ft,ln,Tn={}){const Hn=ut.viewContainer.createEmbeddedView(Ft.template,Tn,ln);return this._renderCellTemplateForItem(Ft,Tn),Hn}_renderCellTemplateForItem(ut,Ft){for(let ln of this._getCellTemplates(ut))ce.mostRecentCellOutlet&&ce.mostRecentCellOutlet._viewContainer.createEmbeddedView(ln,Ft);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ut=this._rowOutlet.viewContainer;for(let Ft=0,ln=ut.length;Ft<ln;Ft++){const Hn=ut.get(Ft).context;Hn.count=ln,Hn.first=0===Ft,Hn.last=Ft===ln-1,Hn.even=Ft%2==0,Hn.odd=!Hn.even,this.multiTemplateDataRows?(Hn.dataIndex=this._renderRows[Ft].dataIndex,Hn.renderIndex=Ft):Hn.index=this._renderRows[Ft].dataIndex}}_getCellTemplates(ut){return ut&&ut.columns?Array.from(ut.columns,Ft=>{const ln=this._columnDefsByName.get(Ft);return ut.extractCellTemplate(ln)}):[]}_applyNativeTableSections(){const ut=this._document.createDocumentFragment(),Ft=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const ln of Ft){const Tn=this._document.createElement(ln.tag);Tn.setAttribute("role","rowgroup");for(const Hn of ln.outlets)Tn.appendChild(Hn.elementRef.nativeElement);ut.appendChild(Tn)}this._elementRef.nativeElement.appendChild(ut)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ut=(Ft,ln)=>Ft||ln.hasStickyChanged();this._headerRowDefs.reduce(ut,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ut,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ut,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ne(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,B.of)()).pipe((0,Z.R)(this._onDestroy)).subscribe(Ft=>{this._stickyStyler.direction=Ft,this.updateStickyColumnStyles()})}_getOwnDefs(ut){return ut.filter(Ft=>!Ft._table||Ft._table===this)}_updateNoDataRow(){const ut=this._customNoDataRow||this._noDataRow;if(!ut)return;const Ft=0===this._rowOutlet.viewContainer.length;if(Ft===this._isShowingNoDataRow)return;const ln=this._noDataRowOutlet.viewContainer;if(Ft){const Tn=ln.createEmbeddedView(ut.templateRef),Hn=Tn.rootNodes[0];1===Tn.rootNodes.length&&Hn?.nodeType===this._document.ELEMENT_NODE&&(Hn.setAttribute("role","row"),Hn.classList.add(ut._contentClassName))}else ln.clear();this._isShowingNoDataRow=Ft}}return Mt.\u0275fac=function(ut){return new(ut||Mt)(d.Y36(d.ZZ4),d.Y36(d.sBO),d.Y36(d.SBq),d.$8M("role"),d.Y36(i.Is,8),d.Y36(f.K0),d.Y36(v.t4),d.Y36(p.k),d.Y36(pt),d.Y36(k.rL),d.Y36(Te,12),d.Y36(d.R0b,8))},Mt.\u0275cmp=d.Xpm({type:Mt,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ut,Ft,ln){if(1&ut&&(d.Suo(ln,F,5),d.Suo(ln,ye,5),d.Suo(ln,we,5),d.Suo(ln,dt,5),d.Suo(ln,Re,5)),2&ut){let Tn;d.iGM(Tn=d.CRH())&&(Ft._noDataRow=Tn.first),d.iGM(Tn=d.CRH())&&(Ft._contentColumnDefs=Tn),d.iGM(Tn=d.CRH())&&(Ft._contentRowDefs=Tn),d.iGM(Tn=d.CRH())&&(Ft._contentHeaderRowDefs=Tn),d.iGM(Tn=d.CRH())&&(Ft._contentFooterRowDefs=Tn)}},viewQuery:function(ut,Ft){if(1&ut&&(d.Gf(Je,7),d.Gf(Lt,7),d.Gf(Ke,7),d.Gf(ge,7)),2&ut){let ln;d.iGM(ln=d.CRH())&&(Ft._rowOutlet=ln.first),d.iGM(ln=d.CRH())&&(Ft._headerRowOutlet=ln.first),d.iGM(ln=d.CRH())&&(Ft._footerRowOutlet=ln.first),d.iGM(ln=d.CRH())&&(Ft._noDataRowOutlet=ln.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ut,Ft){2&ut&&d.ekj("cdk-table-fixed-layout",Ft.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[d._Bn([{provide:vt,useExisting:Mt},{provide:p.k,useClass:p.yy},{provide:pt,useClass:ft},{provide:Te,useValue:null}])],ngContentSelectors:Ee,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ut,Ft){1&ut&&(d.F$t(ie),d.Hsn(0),d.Hsn(1,1),d.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Je,Lt,Ke,ge],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Mt})();function ct(Mt,an){return Mt.concat(Array.from(an))}let An=(()=>{class Mt{}return Mt.\u0275fac=function(ut){return new(ut||Mt)},Mt.\u0275mod=d.oAB({type:Mt}),Mt.\u0275inj=d.cJS({imports:[k.Cl]}),Mt})();var Gt=y(3238),gn=y(6787),St=y(3426),cn=y(4850);const Qn=[[["caption"]],[["colgroup"],["col"]]],ai=["caption","colgroup, col"];let He=(()=>{class Mt extends it{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return Mt.\u0275fac=function(){let an;return function(Ft){return(an||(an=d.n5z(Mt)))(Ft||Mt)}}(),Mt.\u0275cmp=d.Xpm({type:Mt,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(ut,Ft){2&ut&&d.ekj("mdc-table-fixed-layout",Ft.fixedLayout)},exportAs:["matTable"],features:[d._Bn([{provide:it,useExisting:Mt},{provide:vt,useExisting:Mt},{provide:pt,useClass:ft},{provide:p.k,useClass:p.yy},{provide:Te,useValue:null}]),d.qOj],ngContentSelectors:ai,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ut,Ft){1&ut&&(d.F$t(Qn),d.Hsn(0),d.Hsn(1,1),d.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Je,Lt,Ke,ge],styles:[".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),Mt})(),yt=(()=>{class Mt extends Ge{}return Mt.\u0275fac=function(){let an;return function(Ft){return(an||(an=d.n5z(Mt)))(Ft||Mt)}}(),Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","matCellDef",""]],features:[d._Bn([{provide:Ge,useExisting:Mt}]),d.qOj]}),Mt})(),ht=(()=>{class Mt extends Ce{}return Mt.\u0275fac=function(){let an;return function(Ft){return(an||(an=d.n5z(Mt)))(Ft||Mt)}}(),Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","matHeaderCellDef",""]],features:[d._Bn([{provide:Ce,useExisting:Mt}]),d.qOj]}),Mt})(),pe=(()=>{class Mt extends ye{get name(){return this._name}set name(ut){this._setNameInput(ut)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Mt.\u0275fac=function(){let an;return function(Ft){return(an||(an=d.n5z(Mt)))(Ft||Mt)}}(),Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[d._Bn([{provide:ye,useExisting:Mt},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Mt}]),d.qOj]}),Mt})(),Q=(()=>{class Mt extends Ae{}return Mt.\u0275fac=function(){let an;return function(Ft){return(an||(an=d.n5z(Mt)))(Ft||Mt)}}(),Mt.\u0275dir=d.lG2({type:Mt,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[d.qOj]}),Mt})(),xt=(()=>{class Mt extends ot{}return Mt.\u0275fac=function(){let an;return function(Ft){return(an||(an=d.n5z(Mt)))(Ft||Mt)}}(),Mt.\u0275dir=d.lG2({type:Mt,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[d.qOj]}),Mt})(),nt=(()=>{class Mt extends dt{}return Mt.\u0275fac=function(){let an;return function(Ft){return(an||(an=d.n5z(Mt)))(Ft||Mt)}}(),Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[d._Bn([{provide:dt,useExisting:Mt}]),d.qOj]}),Mt})(),qe=(()=>{class Mt extends we{}return Mt.\u0275fac=function(){let an;return function(Ft){return(an||(an=d.n5z(Mt)))(Ft||Mt)}}(),Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[d._Bn([{provide:we,useExisting:Mt}]),d.qOj]}),Mt})(),We=(()=>{class Mt extends ve{}return Mt.\u0275fac=function(){let an;return function(Ft){return(an||(an=d.n5z(Mt)))(Ft||Mt)}}(),Mt.\u0275cmp=d.Xpm({type:Mt,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[d._Bn([{provide:ve,useExisting:Mt}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ut,Ft){1&ut&&d.GkF(0,0)},dependencies:[ce],encapsulation:2}),Mt})(),Ve=(()=>{class Mt extends S{}return Mt.\u0275fac=function(){let an;return function(Ft){return(an||(an=d.n5z(Mt)))(Ft||Mt)}}(),Mt.\u0275cmp=d.Xpm({type:Mt,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[d._Bn([{provide:S,useExisting:Mt}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ut,Ft){1&ut&&d.GkF(0,0)},dependencies:[ce],encapsulation:2}),Mt})(),At=(()=>{class Mt extends F{constructor(){super(...arguments),this._contentClassName="mat-mdc-no-data-row"}}return Mt.\u0275fac=function(){let an;return function(Ft){return(an||(an=d.n5z(Mt)))(Ft||Mt)}}(),Mt.\u0275dir=d.lG2({type:Mt,selectors:[["ng-template","matNoDataRow",""]],features:[d._Bn([{provide:F,useExisting:Mt}]),d.qOj]}),Mt})(),Ti=(()=>{class Mt{}return Mt.\u0275fac=function(ut){return new(ut||Mt)},Mt.\u0275mod=d.oAB({type:Mt}),Mt.\u0275inj=d.cJS({imports:[Gt.BQ,An,Gt.BQ]}),Mt})();class zi extends p.o2{get data(){return this._data.value}set data(an){an=Array.isArray(an)?an:[],this._data.next(an),this._renderChangesSubscription||this._filterData(an)}get filter(){return this._filter.value}set filter(an){this._filter.next(an),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(an){this._sort=an,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(an){this._paginator=an,this._updateChangeSubscription()}constructor(an=[]){super(),this._renderData=new Y.X([]),this._filter=new Y.X(""),this._internalPageChanges=new b.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(ut,Ft)=>{const ln=ut[Ft];if((0,A.t6)(ln)){const Tn=Number(ln);return Tn<9007199254740991?Tn:ln}return ln},this.sortData=(ut,Ft)=>{const ln=Ft.active,Tn=Ft.direction;return ln&&""!=Tn?ut.sort((Hn,Ot)=>{let Sn=this.sortingDataAccessor(Hn,ln),Ht=this.sortingDataAccessor(Ot,ln);const wn=typeof Sn,rt=typeof Ht;wn!==rt&&("number"===wn&&(Sn+=""),"number"===rt&&(Ht+=""));let Nt=0;return null!=Sn&&null!=Ht?Sn>Ht?Nt=1:Sn<Ht&&(Nt=-1):null!=Sn?Nt=1:null!=Ht&&(Nt=-1),Nt*("asc"==Tn?1:-1)}):ut},this.filterPredicate=(ut,Ft)=>{const ln=Object.keys(ut).reduce((Hn,Ot)=>Hn+ut[Ot]+"\u25ec","").toLowerCase(),Tn=Ft.trim().toLowerCase();return-1!=ln.indexOf(Tn)},this._data=new Y.X(an),this._updateChangeSubscription()}_updateChangeSubscription(){const an=this._sort?(0,gn.T)(this._sort.sortChange,this._sort.initialized):(0,B.of)(null),ut=this._paginator?(0,gn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,B.of)(null),ln=(0,St.aj)([this._data,this._filter]).pipe((0,cn.U)(([Ot])=>this._filterData(Ot))),Tn=(0,St.aj)([ln,an]).pipe((0,cn.U)(([Ot])=>this._orderData(Ot))),Hn=(0,St.aj)([Tn,ut]).pipe((0,cn.U)(([Ot])=>this._pageData(Ot)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Hn.subscribe(Ot=>this._renderData.next(Ot))}_filterData(an){return this.filteredData=null==this.filter||""===this.filter?an:an.filter(ut=>this.filterPredicate(ut,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(an){return this.sort?this.sortData(an.slice(),this.sort):an}_pageData(an){if(!this.paginator)return an;const ut=this.paginator.pageIndex*this.paginator.pageSize;return an.slice(ut,ut+this.paginator.pageSize)}_updatePaginator(an){Promise.resolve().then(()=>{const ut=this.paginator;if(ut&&(ut.length=an,ut.pageIndex>0)){const Ft=Math.ceil(ut.length/ut.pageSize)-1||0,ln=Math.min(ut.pageIndex,Ft);ln!==ut.pageIndex&&(ut.pageIndex=ln,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class ur extends zi{}},3848:(vn,_t,y)=>{"use strict";y.d(_t,{BU:()=>xt,Nh:()=>qe,Nj:()=>nt,SP:()=>He,Vc:()=>nn,uD:()=>Zt,uX:()=>Rn});var d=y(6895),i=y(4650),A=y(3238),p=y(4080),v=y(9643),k=y(2687),f=y(445),b=y(2654),J=y(8929),Y=y(3753),W=y(1086),B=y(6787),Z=y(8896),G=y(6498),ie=y(8723),Ee=y(6438),ue=y(1059),Ze=y(5778),Qe=y(7625),vt=y(2986),$e=y(7545),Ge=y(1307),Ce=y(2198),ke=y(7340),me=y(1281),re=y(7261),ye=y(3353),Oe=y(9521);function Ae(We,Rt){}const tt=function(We){return{animationDuration:We}},ot=function(We,Rt){return{value:We,params:Rt}};function at(We,Rt){1&We&&i.Hsn(0)}const pt=["*"],ft=["tabListContainer"],Et=["tabList"],be=["tabListInner"],Pe=["nextPaginator"],je=["previousPaginator"],dt=["tabBodyWrapper"],et=["tabHeader"];function gt(We,Rt){}function Re(We,Rt){if(1&We&&i.YNc(0,gt,0,0,"ng-template",14),2&We){const Ve=i.oxw().$implicit;i.Q6J("cdkPortalOutlet",Ve.templateLabel)}}function we(We,Rt){if(1&We&&i._uU(0),2&We){const Ve=i.oxw().$implicit;i.Oqu(Ve.textLabel)}}function ce(We,Rt){if(1&We){const Ve=i.EpF();i.TgZ(0,"div",6,7),i.NdJ("click",function(){const fn=i.CHM(Ve),Ln=fn.$implicit,Ti=fn.index,Oi=i.oxw(),zi=i.MAs(1);return i.KtG(Oi._handleClick(Ln,zi,Ti))})("cdkFocusChange",function(fn){const Ti=i.CHM(Ve).index,Oi=i.oxw();return i.KtG(Oi._tabFocusChanged(fn,Ti))}),i._UZ(2,"span",8)(3,"div",9),i.TgZ(4,"span",10)(5,"span",11),i.YNc(6,Re,1,1,"ng-template",12),i.YNc(7,we,1,1,"ng-template",null,13,i.W1O),i.qZA()()()}if(2&We){const Ve=Rt.$implicit,At=Rt.index,fn=i.MAs(1),Ln=i.MAs(8),Ti=i.oxw();i.ekj("mdc-tab--active",Ti.selectedIndex===At),i.Q6J("id",Ti._getTabLabelId(At))("ngClass",Ve.labelClass)("disabled",Ve.disabled)("fitInkBarToContent",Ti.fitInkBarToContent),i.uIk("tabIndex",Ti._getTabIndex(At))("aria-posinset",At+1)("aria-setsize",Ti._tabs.length)("aria-controls",Ti._getTabContentId(At))("aria-selected",Ti.selectedIndex===At)("aria-label",Ve.ariaLabel||null)("aria-labelledby",!Ve.ariaLabel&&Ve.ariaLabelledby?Ve.ariaLabelledby:null),i.xp6(3),i.Q6J("matRippleTrigger",fn)("matRippleDisabled",Ve.disabled||Ti.disableRipple),i.xp6(3),i.Q6J("ngIf",Ve.templateLabel)("ngIfElse",Ln)}}function ve(We,Rt){if(1&We){const Ve=i.EpF();i.TgZ(0,"mat-tab-body",15),i.NdJ("_onCentered",function(){i.CHM(Ve);const fn=i.oxw();return i.KtG(fn._removeTabBodyWrapperHeight())})("_onCentering",function(fn){i.CHM(Ve);const Ln=i.oxw();return i.KtG(Ln._setTabBodyWrapperHeight(fn))}),i.qZA()}if(2&We){const Ve=Rt.$implicit,At=Rt.index,fn=i.oxw();i.ekj("mat-mdc-tab-body-active",fn.selectedIndex===At),i.Q6J("id",fn._getTabContentId(At))("ngClass",Ve.bodyClass)("content",Ve.content)("position",Ve.position)("origin",Ve.origin)("animationDuration",fn.animationDuration)("preserveContent",fn.preserveContent),i.uIk("tabindex",null!=fn.contentTabIndex&&fn.selectedIndex===At?fn.contentTabIndex:null)("aria-labelledby",fn._getTabLabelId(At))}}const se=["mat-tab-nav-bar",""],S=["mat-tab-link",""],F={translateTab:(0,ke.X$)("translateTab",[(0,ke.SB)("center, void, left-origin-center, right-origin-center",(0,ke.oB)({transform:"none"})),(0,ke.SB)("left",(0,ke.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,ke.SB)("right",(0,ke.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,ke.eR)("* => left, * => right, left => center, right => center",(0,ke.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,ke.eR)("void => left-origin-center",[(0,ke.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,ke.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,ke.eR)("void => right-origin-center",[(0,ke.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,ke.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let V=(()=>{class We extends p.Pl{constructor(Ve,At,fn,Ln){super(Ve,At,Ln),this._host=fn,this._centeringSub=b.w.EMPTY,this._leavingSub=b.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,ue.O)(this._host._isCenterPosition(this._host._position))).subscribe(Ve=>{Ve&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36((0,i.Gpc)(()=>De)),i.Y36(d.K0))},We.\u0275dir=i.lG2({type:We,selectors:[["","matTabBodyHost",""]],features:[i.qOj]}),We})(),ne=(()=>{class We{set position(Ve){this._positionIndex=Ve,this._computePositionAnimationState()}constructor(Ve,At,fn){this._elementRef=Ve,this._dir=At,this._dirChangeSubscription=b.w.EMPTY,this._translateTabComplete=new J.xQ,this._onCentering=new i.vpe,this._beforeCentering=new i.vpe,this._afterLeavingCenter=new i.vpe,this._onCentered=new i.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,At&&(this._dirChangeSubscription=At.change.subscribe(Ln=>{this._computePositionAnimationState(Ln),fn.markForCheck()})),this._translateTabComplete.pipe((0,Ze.x)((Ln,Ti)=>Ln.fromState===Ti.fromState&&Ln.toState===Ti.toState)).subscribe(Ln=>{this._isCenterPosition(Ln.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Ln.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Ve){const At=this._isCenterPosition(Ve.toState);this._beforeCentering.emit(At),At&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Ve){return"center"==Ve||"left-origin-center"==Ve||"right-origin-center"==Ve}_computePositionAnimationState(Ve=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Ve?"left":"right":this._positionIndex>0?"ltr"==Ve?"right":"left":"center"}_computePositionFromOrigin(Ve){const At=this._getLayoutDirection();return"ltr"==At&&Ve<=0||"rtl"==At&&Ve>0?"left-origin-center":"right-origin-center"}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(i.SBq),i.Y36(f.Is,8),i.Y36(i.sBO))},We.\u0275dir=i.lG2({type:We,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),We})(),De=(()=>{class We extends ne{constructor(Ve,At,fn){super(Ve,At,fn)}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(i.SBq),i.Y36(f.Is,8),i.Y36(i.sBO))},We.\u0275cmp=i.Xpm({type:We,selectors:[["mat-tab-body"]],viewQuery:function(Ve,At){if(1&Ve&&i.Gf(p.Pl,5),2&Ve){let fn;i.iGM(fn=i.CRH())&&(At._portalHost=fn.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[i.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Ve,At){1&Ve&&(i.TgZ(0,"div",0,1),i.NdJ("@translateTab.start",function(Ln){return At._onTranslateTabStarted(Ln)})("@translateTab.done",function(Ln){return At._translateTabComplete.next(Ln)}),i.YNc(2,Ae,0,0,"ng-template",2),i.qZA()),2&Ve&&i.Q6J("@translateTab",i.WLB(3,ot,At._position,i.VKq(1,tt,At.animationDuration)))},dependencies:[V],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[F.translateTab]}}),We})();const wt=new i.OlP("MatTabContent");let nn=(()=>{class We{constructor(Ve){this.template=Ve}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(i.Rgc))},We.\u0275dir=i.lG2({type:We,selectors:[["","matTabContent",""]],features:[i._Bn([{provide:wt,useExisting:We}])]}),We})();const Jt=new i.OlP("MatTabLabel"),un=new i.OlP("MAT_TAB");let Zt=(()=>{class We extends p.ig{constructor(Ve,At,fn){super(Ve,At),this._closestTab=fn}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(un,8))},We.\u0275dir=i.lG2({type:We,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i._Bn([{provide:Jt,useExisting:We}]),i.qOj]}),We})();const zt="mdc-tab-indicator--active",fe="mdc-tab-indicator--no-transition";class Te{constructor(Rt){this._items=Rt}hide(){this._items.forEach(Rt=>Rt.deactivateInkBar())}alignToElement(Rt){const Ve=this._items.find(fn=>fn.elementRef.nativeElement===Rt),At=this._currentItem;if(At?.deactivateInkBar(),Ve){const fn=At?.elementRef.nativeElement.getBoundingClientRect?.();Ve.activateInkBar(fn),this._currentItem=Ve}}}function lt(We){return class extends We{constructor(...Rt){super(...Rt),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(Rt){const Ve=(0,me.Ig)(Rt);this._fitToContent!==Ve&&(this._fitToContent=Ve,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(Rt){const Ve=this.elementRef.nativeElement;if(!Rt||!Ve.getBoundingClientRect||!this._inkBarContentElement)return void Ve.classList.add(zt);const At=Ve.getBoundingClientRect(),fn=Rt.width/At.width,Ln=Rt.left-At.left;Ve.classList.add(fe),this._inkBarContentElement.style.setProperty("transform",`translateX(${Ln}px) scaleX(${fn})`),Ve.getBoundingClientRect(),Ve.classList.remove(fe),Ve.classList.add(zt),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(zt)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const Rt=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=Rt.createElement("span"),this._inkBarContentElement=Rt.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const Ke=(0,A.Id)(class{}),Me=lt((()=>{class We extends Ke{constructor(Ve){super(),this.elementRef=Ve}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(i.SBq))},We.\u0275dir=i.lG2({type:We,features:[i.qOj]}),We})());let _e=(()=>{class We extends Me{}return We.\u0275fac=function(){let Rt;return function(At){return(Rt||(Rt=i.n5z(We)))(At||We)}}(),We.\u0275dir=i.lG2({type:We,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Ve,At){2&Ve&&(i.uIk("aria-disabled",!!At.disabled),i.ekj("mat-mdc-tab-disabled",At.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[i.qOj]}),We})();const it=(0,A.Id)(class{}),ct=new i.OlP("MAT_TAB_GROUP");let dn=(()=>{class We extends it{get content(){return this._contentPortal}constructor(Ve,At){super(),this._viewContainerRef=Ve,this._closestTabGroup=At,this.textLabel="",this._contentPortal=null,this._stateChanges=new J.xQ,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(Ve){(Ve.hasOwnProperty("textLabel")||Ve.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new p.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Ve){Ve&&Ve._closestTab===this&&(this._templateLabel=Ve)}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(i.s_b),i.Y36(ct,8))},We.\u0275dir=i.lG2({type:We,viewQuery:function(Ve,At){if(1&Ve&&i.Gf(i.Rgc,7),2&Ve){let fn;i.iGM(fn=i.CRH())&&(At._implicitContent=fn.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[i.qOj,i.TTD]}),We})(),Rn=(()=>{class We extends dn{get templateLabel(){return this._templateLabel}set templateLabel(Ve){this._setTemplateLabelInput(Ve)}}return We.\u0275fac=function(){let Rt;return function(At){return(Rt||(Rt=i.n5z(We)))(At||We)}}(),We.\u0275cmp=i.Xpm({type:We,selectors:[["mat-tab"]],contentQueries:function(Ve,At,fn){if(1&Ve&&(i.Suo(fn,nn,7,i.Rgc),i.Suo(fn,Zt,5)),2&Ve){let Ln;i.iGM(Ln=i.CRH())&&(At._explicitContent=Ln.first),i.iGM(Ln=i.CRH())&&(At.templateLabel=Ln.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[i._Bn([{provide:un,useExisting:We}]),i.qOj],ngContentSelectors:pt,decls:1,vars:0,template:function(Ve,At){1&Ve&&(i.F$t(),i.YNc(0,at,1,0,"ng-template"))},encapsulation:2}),We})();const An=(0,ye.i$)({passive:!0});let St=(()=>{class We{get disablePagination(){return this._disablePagination}set disablePagination(Ve){this._disablePagination=(0,me.Ig)(Ve)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ve){Ve=(0,me.su)(Ve),this._selectedIndex!=Ve&&(this._selectedIndexChanged=!0,this._selectedIndex=Ve,this._keyManager&&this._keyManager.updateActiveItem(Ve))}constructor(Ve,At,fn,Ln,Ti,Oi,zi){this._elementRef=Ve,this._changeDetectorRef=At,this._viewportRuler=fn,this._dir=Ln,this._ngZone=Ti,this._platform=Oi,this._animationMode=zi,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new J.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new J.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.vpe,this.indexFocused=new i.vpe,Ti.runOutsideAngular(()=>{(0,Y.R)(Ve.nativeElement,"mouseleave").pipe((0,Qe.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,Y.R)(this._previousPaginator.nativeElement,"touchstart",An).pipe((0,Qe.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,Y.R)(this._nextPaginator.nativeElement,"touchstart",An).pipe((0,Qe.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Ve=this._dir?this._dir.change:(0,W.of)("ltr"),At=this._viewportRuler.change(150),fn=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new k.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,vt.q)(1)).subscribe(fn),(0,B.T)(Ve,At,this._items.changes,this._itemsResized()).pipe((0,Qe.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),fn()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Ln=>{this.indexFocused.emit(Ln),this._setTabFocus(Ln)})}_itemsResized(){return"function"!=typeof ResizeObserver?Z.E:this._items.changes.pipe((0,ue.O)(this._items),(0,$e.w)(Ve=>new G.y(At=>this._ngZone.runOutsideAngular(()=>{const fn=new ResizeObserver(Ln=>At.next(Ln));return Ve.forEach(Ln=>fn.observe(Ln.elementRef.nativeElement)),()=>{fn.disconnect()}}))),(0,Ge.T)(1),(0,Ce.h)(Ve=>Ve.some(At=>At.contentRect.width>0&&At.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Ve){if(!(0,Oe.Vb)(Ve))switch(Ve.keyCode){case Oe.K5:case Oe.L_:if(this.focusIndex!==this.selectedIndex){const At=this._items.get(this.focusIndex);At&&!At.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Ve))}break;default:this._keyManager.onKeydown(Ve)}}_onContentChanges(){const Ve=this._elementRef.nativeElement.textContent;Ve!==this._currentTextContent&&(this._currentTextContent=Ve||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(Ve){!this._isValidIndex(Ve)||this.focusIndex===Ve||!this._keyManager||this._keyManager.setActiveItem(Ve)}_isValidIndex(Ve){return!this._items||!!this._items.toArray()[Ve]}_setTabFocus(Ve){if(this._showPaginationControls&&this._scrollToLabel(Ve),this._items&&this._items.length){this._items.toArray()[Ve].focus();const At=this._tabListContainer.nativeElement;At.scrollLeft="ltr"==this._getLayoutDirection()?0:At.scrollWidth-At.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Ve=this.scrollDistance,At="ltr"===this._getLayoutDirection()?-Ve:Ve;this._tabList.nativeElement.style.transform=`translateX(${Math.round(At)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Ve){this._scrollTo(Ve)}_scrollHeader(Ve){return this._scrollTo(this._scrollDistance+("before"==Ve?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Ve){this._stopInterval(),this._scrollHeader(Ve)}_scrollToLabel(Ve){if(this.disablePagination)return;const At=this._items?this._items.toArray()[Ve]:null;if(!At)return;const fn=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Ln,offsetWidth:Ti}=At.elementRef.nativeElement;let Oi,zi;"ltr"==this._getLayoutDirection()?(Oi=Ln,zi=Oi+Ti):(zi=this._tabListInner.nativeElement.offsetWidth-Ln,Oi=zi-Ti);const ur=this.scrollDistance,Mt=this.scrollDistance+fn;Oi<ur?this.scrollDistance-=ur-Oi:zi>Mt&&(this.scrollDistance+=Math.min(zi-Mt,Oi-ur))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Ve=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Ve||(this.scrollDistance=0),Ve!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Ve}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const Ve=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,At=Ve?Ve.elementRef.nativeElement:null;At?this._inkBar.alignToElement(At):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Ve,At){At&&null!=At.button&&0!==At.button||(this._stopInterval(),(0,ie.H)(650,100).pipe((0,Qe.R)((0,B.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:fn,distance:Ln}=this._scrollHeader(Ve);(0===Ln||Ln>=fn)&&this._stopInterval()}))}_scrollTo(Ve){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const At=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(At,Ve)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:At,distance:this._scrollDistance}}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(re.rL),i.Y36(f.Is,8),i.Y36(i.R0b),i.Y36(ye.t4),i.Y36(i.QbO,8))},We.\u0275dir=i.lG2({type:We,inputs:{disablePagination:"disablePagination"}}),We})(),cn=(()=>{class We extends St{get disableRipple(){return this._disableRipple}set disableRipple(Ve){this._disableRipple=(0,me.Ig)(Ve)}constructor(Ve,At,fn,Ln,Ti,Oi,zi){super(Ve,At,fn,Ln,Ti,Oi,zi),this._disableRipple=!1}_itemSelected(Ve){Ve.preventDefault()}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(re.rL),i.Y36(f.Is,8),i.Y36(i.R0b),i.Y36(ye.t4),i.Y36(i.QbO,8))},We.\u0275dir=i.lG2({type:We,inputs:{disableRipple:"disableRipple"},features:[i.qOj]}),We})(),Qn=(()=>{class We extends cn{constructor(Ve,At,fn,Ln,Ti,Oi,zi){super(Ve,At,fn,Ln,Ti,Oi,zi)}ngAfterContentInit(){this._inkBar=new Te(this._items),super.ngAfterContentInit()}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(re.rL),i.Y36(f.Is,8),i.Y36(i.R0b),i.Y36(ye.t4),i.Y36(i.QbO,8))},We.\u0275cmp=i.Xpm({type:We,selectors:[["mat-tab-header"]],contentQueries:function(Ve,At,fn){if(1&Ve&&i.Suo(fn,_e,4),2&Ve){let Ln;i.iGM(Ln=i.CRH())&&(At._items=Ln)}},viewQuery:function(Ve,At){if(1&Ve&&(i.Gf(ft,7),i.Gf(Et,7),i.Gf(be,7),i.Gf(Pe,5),i.Gf(je,5)),2&Ve){let fn;i.iGM(fn=i.CRH())&&(At._tabListContainer=fn.first),i.iGM(fn=i.CRH())&&(At._tabList=fn.first),i.iGM(fn=i.CRH())&&(At._tabListInner=fn.first),i.iGM(fn=i.CRH())&&(At._nextPaginator=fn.first),i.iGM(fn=i.CRH())&&(At._previousPaginator=fn.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(Ve,At){2&Ve&&i.ekj("mat-mdc-tab-header-pagination-controls-enabled",At._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==At._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[i.qOj],ngContentSelectors:pt,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Ve,At){1&Ve&&(i.F$t(),i.TgZ(0,"button",0,1),i.NdJ("click",function(){return At._handlePaginatorClick("before")})("mousedown",function(Ln){return At._handlePaginatorPress("before",Ln)})("touchend",function(){return At._stopInterval()}),i._UZ(2,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.NdJ("keydown",function(Ln){return At._handleKeydown(Ln)}),i.TgZ(5,"div",5,6),i.NdJ("cdkObserveContent",function(){return At._onContentChanges()}),i.TgZ(7,"div",7,8),i.Hsn(9),i.qZA()()(),i.TgZ(10,"button",9,10),i.NdJ("mousedown",function(Ln){return At._handlePaginatorPress("after",Ln)})("click",function(){return At._handlePaginatorClick("after")})("touchend",function(){return At._stopInterval()}),i._UZ(12,"div",2),i.qZA()),2&Ve&&(i.ekj("mat-mdc-tab-header-pagination-disabled",At._disableScrollBefore),i.Q6J("matRippleDisabled",At._disableScrollBefore||At.disableRipple)("disabled",At._disableScrollBefore||null),i.xp6(3),i.ekj("_mat-animation-noopable","NoopAnimations"===At._animationMode),i.xp6(7),i.ekj("mat-mdc-tab-header-pagination-disabled",At._disableScrollAfter),i.Q6J("matRippleDisabled",At._disableScrollAfter||At.disableRipple)("disabled",At._disableScrollAfter||null))},dependencies:[A.wG,v.wD],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),We})();const ai=new i.OlP("MAT_TABS_CONFIG");let ze=0;const de=(0,A.pj)((0,A.Kr)(class{constructor(We){this._elementRef=We}}),"primary");let q=(()=>{class We extends de{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Ve){this._dynamicHeight=(0,me.Ig)(Ve)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ve){this._indexToSelect=(0,me.su)(Ve,null)}get animationDuration(){return this._animationDuration}set animationDuration(Ve){this._animationDuration=/^\d+$/.test(Ve+"")?Ve+"ms":Ve}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Ve){this._contentTabIndex=(0,me.su)(Ve,null)}get disablePagination(){return this._disablePagination}set disablePagination(Ve){this._disablePagination=(0,me.Ig)(Ve)}get preserveContent(){return this._preserveContent}set preserveContent(Ve){this._preserveContent=(0,me.Ig)(Ve)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Ve){const At=this._elementRef.nativeElement.classList;At.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),Ve&&At.add("mat-tabs-with-background",`mat-background-${Ve}`),this._backgroundColor=Ve}constructor(Ve,At,fn,Ln){super(Ve),this._changeDetectorRef=At,this._animationMode=Ln,this._tabs=new i.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=b.w.EMPTY,this._tabLabelSubscription=b.w.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new i.vpe,this.focusChange=new i.vpe,this.animationDone=new i.vpe,this.selectedTabChange=new i.vpe(!0),this._groupId=ze++,this.animationDuration=fn&&fn.animationDuration?fn.animationDuration:"500ms",this.disablePagination=!(!fn||null==fn.disablePagination)&&fn.disablePagination,this.dynamicHeight=!(!fn||null==fn.dynamicHeight)&&fn.dynamicHeight,this.contentTabIndex=fn?.contentTabIndex??null,this.preserveContent=!!fn?.preserveContent}ngAfterContentChecked(){const Ve=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Ve){const At=null==this._selectedIndex;if(!At){this.selectedTabChange.emit(this._createChangeEvent(Ve));const fn=this._tabBodyWrapper.nativeElement;fn.style.minHeight=fn.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((fn,Ln)=>fn.isActive=Ln===Ve),At||(this.selectedIndexChange.emit(Ve),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((At,fn)=>{At.position=fn-Ve,null!=this._selectedIndex&&0==At.position&&!At.origin&&(At.origin=Ve-this._selectedIndex)}),this._selectedIndex!==Ve&&(this._selectedIndex=Ve,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Ve=this._clampTabIndex(this._indexToSelect);if(Ve===this._selectedIndex){const At=this._tabs.toArray();let fn;for(let Ln=0;Ln<At.length;Ln++)if(At[Ln].isActive){this._indexToSelect=this._selectedIndex=Ln,this._lastFocusedTabIndex=null,fn=At[Ln];break}!fn&&At[Ve]&&Promise.resolve().then(()=>{At[Ve].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Ve))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,ue.O)(this._allTabs)).subscribe(Ve=>{this._tabs.reset(Ve.filter(At=>At._closestTabGroup===this||!At._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Ve){const At=this._tabHeader;At&&(At.focusIndex=Ve)}_focusChanged(Ve){this._lastFocusedTabIndex=Ve,this.focusChange.emit(this._createChangeEvent(Ve))}_createChangeEvent(Ve){const At=new yt;return At.index=Ve,this._tabs&&this._tabs.length&&(At.tab=this._tabs.toArray()[Ve]),At}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,B.T)(...this._tabs.map(Ve=>Ve._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Ve){return Math.min(this._tabs.length-1,Math.max(Ve||0,0))}_getTabLabelId(Ve){return`mat-tab-label-${this._groupId}-${Ve}`}_getTabContentId(Ve){return`mat-tab-content-${this._groupId}-${Ve}`}_setTabBodyWrapperHeight(Ve){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const At=this._tabBodyWrapper.nativeElement;At.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(At.style.height=Ve+"px")}_removeTabBodyWrapperHeight(){const Ve=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Ve.clientHeight,Ve.style.height="",this.animationDone.emit()}_handleClick(Ve,At,fn){At.focusIndex=fn,Ve.disabled||(this.selectedIndex=fn)}_getTabIndex(Ve){return Ve===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(Ve,At){Ve&&"mouse"!==Ve&&"touch"!==Ve&&(this._tabHeader.focusIndex=At)}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ai,8),i.Y36(i.QbO,8))},We.\u0275dir=i.lG2({type:We,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[i.qOj]}),We})(),He=(()=>{class We extends q{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(Ve){this._fitInkBarToContent=(0,me.Ig)(Ve),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(Ve){this._stretchTabs=(0,me.Ig)(Ve)}constructor(Ve,At,fn,Ln){super(Ve,At,fn,Ln),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!fn||null==fn.fitInkBarToContent)&&fn.fitInkBarToContent}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ai,8),i.Y36(i.QbO,8))},We.\u0275cmp=i.Xpm({type:We,selectors:[["mat-tab-group"]],contentQueries:function(Ve,At,fn){if(1&Ve&&i.Suo(fn,Rn,5),2&Ve){let Ln;i.iGM(Ln=i.CRH())&&(At._allTabs=Ln)}},viewQuery:function(Ve,At){if(1&Ve&&(i.Gf(dt,5),i.Gf(et,5)),2&Ve){let fn;i.iGM(fn=i.CRH())&&(At._tabBodyWrapper=fn.first),i.iGM(fn=i.CRH())&&(At._tabHeader=fn.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(Ve,At){2&Ve&&i.ekj("mat-mdc-tab-group-dynamic-height",At.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===At.headerPosition)("mat-mdc-tab-group-stretch-tabs",At.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[i._Bn([{provide:ct,useExisting:We}]),i.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(Ve,At){1&Ve&&(i.TgZ(0,"mat-tab-header",0,1),i.NdJ("indexFocused",function(Ln){return At._focusChanged(Ln)})("selectFocusedIndex",function(Ln){return At.selectedIndex=Ln}),i.YNc(2,ce,9,17,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.YNc(5,ve,1,11,"mat-tab-body",5),i.qZA()),2&Ve&&(i.Q6J("selectedIndex",At.selectedIndex||0)("disableRipple",At.disableRipple)("disablePagination",At.disablePagination),i.xp6(2),i.Q6J("ngForOf",At._tabs),i.xp6(1),i.ekj("_mat-animation-noopable","NoopAnimations"===At._animationMode),i.xp6(2),i.Q6J("ngForOf",At._tabs))},dependencies:[d.mk,d.sg,d.O5,p.Pl,A.wG,k.kH,De,_e,Qn],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),We})();class yt{}let ht=0,le=(()=>{class We extends St{get backgroundColor(){return this._backgroundColor}set backgroundColor(Ve){const At=this._elementRef.nativeElement.classList;At.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),Ve&&At.add("mat-tabs-with-background",`mat-background-${Ve}`),this._backgroundColor=Ve}get disableRipple(){return this._disableRipple}set disableRipple(Ve){this._disableRipple=(0,me.Ig)(Ve)}constructor(Ve,At,fn,Ln,Ti,Oi,zi){super(Ve,Ln,Ti,At,fn,Oi,zi),this._disableRipple=!1,this.color="primary"}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,ue.O)(null),(0,Qe.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const Ve=this._items.toArray();for(let At=0;At<Ve.length;At++)if(Ve[At].active)return this.selectedIndex=At,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=Ve[At].id));this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(i.SBq),i.Y36(f.Is,8),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(re.rL),i.Y36(ye.t4),i.Y36(i.QbO,8))},We.\u0275dir=i.lG2({type:We,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[i.qOj]}),We})();const pe=(0,A.sb)((0,A.Kr)((0,A.Id)(class{}))),Fe=lt((()=>{class We extends pe{get active(){return this._isActive}set active(Ve){const At=(0,me.Ig)(Ve);At!==this._isActive&&(this._isActive=At,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}constructor(Ve,At,fn,Ln,Ti,Oi){super(),this._tabNavBar=Ve,this.elementRef=At,this._focusMonitor=Ti,this._isActive=!1,this.id="mat-tab-link-"+ht++,this.rippleConfig=fn||{},this.tabIndex=parseInt(Ln)||0,"NoopAnimations"===Oi&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(Ve){this._tabNavBar.tabPanel&&Ve.keyCode===Oe.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(le),i.Y36(i.SBq),i.Y36(A.Y2,8),i.$8M("tabindex"),i.Y36(k.tE),i.Y36(i.QbO,8))},We.\u0275dir=i.lG2({type:We,inputs:{active:"active",id:"id"},features:[i.qOj]}),We})());let xt=(()=>{class We extends le{get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(Ve){this._fitInkBarToContent.next((0,me.Ig)(Ve)),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(Ve){this._stretchTabs=(0,me.Ig)(Ve)}constructor(Ve,At,fn,Ln,Ti,Oi,zi,ur){super(Ve,At,fn,Ln,Ti,Oi,zi),this._fitInkBarToContent=new Ee.X(!1),this._stretchTabs=!0,this.disablePagination=!(!ur||null==ur.disablePagination)&&ur.disablePagination,this.fitInkBarToContent=!(!ur||null==ur.fitInkBarToContent)&&ur.fitInkBarToContent}ngAfterContentInit(){this._inkBar=new Te(this._items),super.ngAfterContentInit()}ngAfterViewInit(){super.ngAfterViewInit()}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(i.SBq),i.Y36(f.Is,8),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(re.rL),i.Y36(ye.t4),i.Y36(i.QbO,8),i.Y36(ai,8))},We.\u0275cmp=i.Xpm({type:We,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Ve,At,fn){if(1&Ve&&i.Suo(fn,nt,5),2&Ve){let Ln;i.iGM(Ln=i.CRH())&&(At._items=Ln)}},viewQuery:function(Ve,At){if(1&Ve&&(i.Gf(ft,7),i.Gf(Et,7),i.Gf(be,7),i.Gf(Pe,5),i.Gf(je,5)),2&Ve){let fn;i.iGM(fn=i.CRH())&&(At._tabListContainer=fn.first),i.iGM(fn=i.CRH())&&(At._tabList=fn.first),i.iGM(fn=i.CRH())&&(At._tabListInner=fn.first),i.iGM(fn=i.CRH())&&(At._nextPaginator=fn.first),i.iGM(fn=i.CRH())&&(At._previousPaginator=fn.first)}},hostAttrs:[1,"mat-mdc-tab-nav-bar","mat-mdc-tab-header"],hostVars:15,hostBindings:function(Ve,At){2&Ve&&(i.uIk("role",At._getRole()),i.ekj("mat-mdc-tab-header-pagination-controls-enabled",At._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==At._getLayoutDirection())("mat-mdc-tab-nav-bar-stretch-tabs",At.stretchTabs)("mat-primary","warn"!==At.color&&"accent"!==At.color)("mat-accent","accent"===At.color)("mat-warn","warn"===At.color)("_mat-animation-noopable","NoopAnimations"===At._animationMode))},inputs:{color:"color",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabNavBar","matTabNav"],features:[i.qOj],attrs:se,ngContentSelectors:pt,decls:13,vars:8,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Ve,At){1&Ve&&(i.F$t(),i.TgZ(0,"button",0,1),i.NdJ("click",function(){return At._handlePaginatorClick("before")})("mousedown",function(Ln){return At._handlePaginatorPress("before",Ln)})("touchend",function(){return At._stopInterval()}),i._UZ(2,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.NdJ("keydown",function(Ln){return At._handleKeydown(Ln)}),i.TgZ(5,"div",5,6),i.NdJ("cdkObserveContent",function(){return At._onContentChanges()}),i.TgZ(7,"div",7,8),i.Hsn(9),i.qZA()()(),i.TgZ(10,"button",9,10),i.NdJ("mousedown",function(Ln){return At._handlePaginatorPress("after",Ln)})("click",function(){return At._handlePaginatorClick("after")})("touchend",function(){return At._stopInterval()}),i._UZ(12,"div",2),i.qZA()),2&Ve&&(i.ekj("mat-mdc-tab-header-pagination-disabled",At._disableScrollBefore),i.Q6J("matRippleDisabled",At._disableScrollBefore||At.disableRipple)("disabled",At._disableScrollBefore||null),i.xp6(10),i.ekj("mat-mdc-tab-header-pagination-disabled",At._disableScrollAfter),i.Q6J("matRippleDisabled",At._disableScrollAfter||At.disableRipple)("disabled",At._disableScrollAfter||null))},dependencies:[A.wG,v.wD],styles:[".mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-links{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}"],encapsulation:2}),We})(),nt=(()=>{class We extends Fe{constructor(Ve,At,fn,Ln,Ti,Oi){super(Ve,At,fn,Ln,Ti,Oi),this._destroyed=new J.xQ,Ve._fitInkBarToContent.pipe((0,Qe.R)(this._destroyed)).subscribe(zi=>{this.fitInkBarToContent=zi})}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy()}}return We.\u0275fac=function(Ve){return new(Ve||We)(i.Y36(xt),i.Y36(i.SBq),i.Y36(A.Y2,8),i.$8M("tabindex"),i.Y36(k.tE),i.Y36(i.QbO,8))},We.\u0275cmp=i.Xpm({type:We,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-mdc-focus-indicator"],hostVars:11,hostBindings:function(Ve,At){1&Ve&&i.NdJ("focus",function(){return At._handleFocus()})("keydown",function(Ln){return At._handleKeydown(Ln)}),2&Ve&&(i.uIk("aria-controls",At._getAriaControls())("aria-current",At._getAriaCurrent())("aria-disabled",At.disabled)("aria-selected",At._getAriaSelected())("id",At.id)("tabIndex",At._getTabIndex())("role",At._getRole()),i.ekj("mat-mdc-tab-disabled",At.disabled)("mdc-tab--active",At.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",active:"active",id:"id"},exportAs:["matTabLink"],features:[i.qOj],attrs:S,ngContentSelectors:pt,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(Ve,At){1&Ve&&(i.F$t(),i._UZ(0,"span",0)(1,"div",1),i.TgZ(2,"span",2)(3,"span",3),i.Hsn(4),i.qZA()()),2&Ve&&(i.xp6(1),i.Q6J("matRippleTrigger",At.elementRef.nativeElement)("matRippleDisabled",At.rippleDisabled))},dependencies:[A.wG],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab-link.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab-link .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12}.mat-mdc-tab-link.mat-mdc-tab-disabled{pointer-events:none;opacity:.4}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}'],encapsulation:2,changeDetection:0}),We})(),qe=(()=>{class We{}return We.\u0275fac=function(Ve){return new(Ve||We)},We.\u0275mod=i.oAB({type:We}),We.\u0275inj=i.cJS({imports:[d.ez,A.BQ,p.eL,A.si,v.Q8,k.rt,A.BQ]}),We})()},3683:(vn,_t,y)=>{"use strict";y.d(_t,{Ye:()=>J,g0:()=>W});var d=y(4650),i=y(3238),A=y(3353),p=y(6895);const v=["*",[["mat-toolbar-row"]]],k=["*","mat-toolbar-row"],f=(0,i.pj)(class{constructor(B){this._elementRef=B}});let b=(()=>{class B{}return B.\u0275fac=function(G){return new(G||B)},B.\u0275dir=d.lG2({type:B,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),B})(),J=(()=>{class B extends f{constructor(G,ie,Ee){super(G),this._platform=ie,this._document=Ee}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return B.\u0275fac=function(G){return new(G||B)(d.Y36(d.SBq),d.Y36(A.t4),d.Y36(p.K0))},B.\u0275cmp=d.Xpm({type:B,selectors:[["mat-toolbar"]],contentQueries:function(G,ie,Ee){if(1&G&&d.Suo(Ee,b,5),2&G){let ue;d.iGM(ue=d.CRH())&&(ie._toolbarRows=ue)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(G,ie){2&G&&d.ekj("mat-toolbar-multiple-rows",ie._toolbarRows.length>0)("mat-toolbar-single-row",0===ie._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[d.qOj],ngContentSelectors:k,decls:2,vars:0,template:function(G,ie){1&G&&(d.F$t(v),d.Hsn(0),d.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),B})(),W=(()=>{class B{}return B.\u0275fac=function(G){return new(G||B)},B.\u0275mod=d.oAB({type:B}),B.\u0275inj=d.cJS({imports:[i.BQ,i.BQ]}),B})()},266:(vn,_t,y)=>{"use strict";y.d(_t,{AV:()=>Pe,gM:()=>pt});var d=y(7625),i=y(2986),A=y(1281),p=y(9521),v=y(4650),k=y(6895),f=y(3353),b=y(2687),J=y(445),Y=y(8184),W=y(7261),B=y(4080),Z=y(8929),ie=(y(7340),y(3238));const Ee=["tooltip"],Qe=new v.OlP("mat-tooltip-scroll-strategy"),$e={provide:Qe,deps:[Y.aV],useFactory:function vt(je){return()=>je.scrollStrategies.reposition({scrollThrottle:20})}},Ce=new v.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Ge(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),me="tooltip-panel",re=(0,f.i$)({passive:!0});let at=(()=>{class je{get position(){return this._position}set position(et){et!==this._position&&(this._position=et,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(et){this._positionAtOrigin=(0,A.Ig)(et),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(et){this._disabled=(0,A.Ig)(et),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(et){this._showDelay=(0,A.su)(et)}get hideDelay(){return this._hideDelay}set hideDelay(et){this._hideDelay=(0,A.su)(et),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(et){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=et?String(et).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(et){this._tooltipClass=et,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(et,gt,Re,we,ce,ve,se,S,F,V,ne,De){this._overlay=et,this._elementRef=gt,this._scrollDispatcher=Re,this._viewContainerRef=we,this._ngZone=ce,this._platform=ve,this._ariaDescriber=se,this._focusMonitor=S,this._dir=V,this._defaultOptions=ne,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Z.xQ,this._scrollStrategy=F,this._document=De,ne&&(ne.position&&(this.position=ne.position),ne.positionAtOrigin&&(this.positionAtOrigin=ne.positionAtOrigin),ne.touchGestures&&(this.touchGestures=ne.touchGestures)),V.change.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,d.R)(this._destroyed)).subscribe(et=>{et?"keyboard"===et&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const et=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([gt,Re])=>{et.removeEventListener(gt,Re,re)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(et,this.message,"tooltip"),this._focusMonitor.stopMonitoring(et)}show(et=this.showDelay,gt){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Re=this._createOverlay(gt);this._detach(),this._portal=this._portal||new B.C5(this._tooltipComponent,this._viewContainerRef);const we=this._tooltipInstance=Re.attach(this._portal).instance;we._triggerElement=this._elementRef.nativeElement,we._mouseLeaveHideDelay=this._hideDelay,we.afterHidden().pipe((0,d.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),we.show(et)}hide(et=this.hideDelay){const gt=this._tooltipInstance;gt&&(gt.isVisible()?gt.hide(et):(gt._cancelPendingAnimations(),this._detach()))}toggle(et){this._isTooltipVisible()?this.hide():this.show(void 0,et)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(et){if(this._overlayRef){const we=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!et)&&we._origin instanceof v.SBq)return this._overlayRef;this._detach()}const gt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Re=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&et||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(gt);return Re.positionChanges.pipe((0,d.R)(this._destroyed)).subscribe(we=>{this._updateCurrentPositionClass(we.connectionPair),this._tooltipInstance&&we.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Re,panelClass:`${this._cssClassPrefix}-${me}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,d.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,d.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,d.R)(this._destroyed)).subscribe(we=>{this._isTooltipVisible()&&we.keyCode===p.hY&&!(0,p.Vb)(we)&&(we.preventDefault(),we.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(et){const gt=et.getConfig().positionStrategy,Re=this._getOrigin(),we=this._getOverlayPosition();gt.withPositions([this._addOffset({...Re.main,...we.main}),this._addOffset({...Re.fallback,...we.fallback})])}_addOffset(et){return et}_getOrigin(){const et=!this._dir||"ltr"==this._dir.value,gt=this.position;let Re;"above"==gt||"below"==gt?Re={originX:"center",originY:"above"==gt?"top":"bottom"}:"before"==gt||"left"==gt&&et||"right"==gt&&!et?Re={originX:"start",originY:"center"}:("after"==gt||"right"==gt&&et||"left"==gt&&!et)&&(Re={originX:"end",originY:"center"});const{x:we,y:ce}=this._invertPosition(Re.originX,Re.originY);return{main:Re,fallback:{originX:we,originY:ce}}}_getOverlayPosition(){const et=!this._dir||"ltr"==this._dir.value,gt=this.position;let Re;"above"==gt?Re={overlayX:"center",overlayY:"bottom"}:"below"==gt?Re={overlayX:"center",overlayY:"top"}:"before"==gt||"left"==gt&&et||"right"==gt&&!et?Re={overlayX:"end",overlayY:"center"}:("after"==gt||"right"==gt&&et||"left"==gt&&!et)&&(Re={overlayX:"start",overlayY:"center"});const{x:we,y:ce}=this._invertPosition(Re.overlayX,Re.overlayY);return{main:Re,fallback:{overlayX:we,overlayY:ce}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,i.q)(1),(0,d.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(et){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=et,this._tooltipInstance._markForCheck())}_invertPosition(et,gt){return"above"===this.position||"below"===this.position?"top"===gt?gt="bottom":"bottom"===gt&&(gt="top"):"end"===et?et="start":"start"===et&&(et="end"),{x:et,y:gt}}_updateCurrentPositionClass(et){const{overlayY:gt,originX:Re,originY:we}=et;let ce;if(ce="center"===gt?this._dir&&"rtl"===this._dir.value?"end"===Re?"left":"right":"start"===Re?"left":"right":"bottom"===gt&&"top"===we?"above":"below",ce!==this._currentPosition){const ve=this._overlayRef;if(ve){const se=`${this._cssClassPrefix}-${me}-`;ve.removePanelClass(se+this._currentPosition),ve.addPanelClass(se+ce)}this._currentPosition=ce}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",et=>{let gt;this._setupPointerExitEventsIfNeeded(),void 0!==et.x&&void 0!==et.y&&(gt=et),this.show(void 0,gt)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",et=>{const gt=et.targetTouches?.[0],Re=gt?{x:gt.clientX,y:gt.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,Re),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const et=[];if(this._platformSupportsMouseEvents())et.push(["mouseleave",gt=>{const Re=gt.relatedTarget;(!Re||!this._overlayRef?.overlayElement.contains(Re))&&this.hide()}],["wheel",gt=>this._wheelListener(gt)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const gt=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};et.push(["touchend",gt],["touchcancel",gt])}this._addListeners(et),this._passiveListeners.push(...et)}_addListeners(et){et.forEach(([gt,Re])=>{this._elementRef.nativeElement.addEventListener(gt,Re,re)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(et){if(this._isTooltipVisible()){const gt=this._document.elementFromPoint(et.clientX,et.clientY),Re=this._elementRef.nativeElement;gt!==Re&&!Re.contains(gt)&&this.hide()}}_disableNativeGesturesIfNecessary(){const et=this.touchGestures;if("off"!==et){const gt=this._elementRef.nativeElement,Re=gt.style;("on"===et||"INPUT"!==gt.nodeName&&"TEXTAREA"!==gt.nodeName)&&(Re.userSelect=Re.msUserSelect=Re.webkitUserSelect=Re.MozUserSelect="none"),("on"===et||!gt.draggable)&&(Re.webkitUserDrag="none"),Re.touchAction="none",Re.webkitTapHighlightColor="transparent"}}}return je.\u0275fac=function(et){v.$Z()},je.\u0275dir=v.lG2({type:je,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),je})(),pt=(()=>{class je extends at{constructor(et,gt,Re,we,ce,ve,se,S,F,V,ne,De){super(et,gt,Re,we,ce,ve,se,S,F,V,ne,De),this._tooltipComponent=Et,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(et){const Re=!this._dir||"ltr"==this._dir.value;return"top"===et.originY?et.offsetY=-8:"bottom"===et.originY?et.offsetY=8:"start"===et.originX?et.offsetX=Re?-8:8:"end"===et.originX&&(et.offsetX=Re?8:-8),et}}return je.\u0275fac=function(et){return new(et||je)(v.Y36(Y.aV),v.Y36(v.SBq),v.Y36(W.mF),v.Y36(v.s_b),v.Y36(v.R0b),v.Y36(f.t4),v.Y36(b.$s),v.Y36(b.tE),v.Y36(Qe),v.Y36(J.Is,8),v.Y36(Ce,8),v.Y36(k.K0))},je.\u0275dir=v.lG2({type:je,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[v.qOj]}),je})(),ft=(()=>{class je{constructor(et,gt){this._changeDetectorRef=et,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Z.xQ,this._animationsDisabled="NoopAnimations"===gt}show(et){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},et)}hide(et){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},et)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:et}){(!et||!this._triggerElement.contains(et))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:et}){(et===this._showAnimation||et===this._hideAnimation)&&this._finalizeAnimation(et===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(et){et?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(et){const gt=this._tooltip.nativeElement,Re=this._showAnimation,we=this._hideAnimation;if(gt.classList.remove(et?we:Re),gt.classList.add(et?Re:we),this._isVisible=et,et&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const ce=getComputedStyle(gt);("0s"===ce.getPropertyValue("animation-duration")||"none"===ce.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}et&&this._onShow(),this._animationsDisabled&&(gt.classList.add("_mat-animation-noopable"),this._finalizeAnimation(et))}}return je.\u0275fac=function(et){return new(et||je)(v.Y36(v.sBO),v.Y36(v.QbO,8))},je.\u0275dir=v.lG2({type:je}),je})(),Et=(()=>{class je extends ft{constructor(et,gt,Re){super(et,Re),this._elementRef=gt,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const et=this._elementRef.nativeElement.getBoundingClientRect();return et.height>24&&et.width>=200}}return je.\u0275fac=function(et){return new(et||je)(v.Y36(v.sBO),v.Y36(v.SBq),v.Y36(v.QbO,8))},je.\u0275cmp=v.Xpm({type:je,selectors:[["mat-tooltip-component"]],viewQuery:function(et,gt){if(1&et&&v.Gf(Ee,7),2&et){let Re;v.iGM(Re=v.CRH())&&(gt._tooltip=Re.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(et,gt){1&et&&v.NdJ("mouseleave",function(we){return gt._handleMouseLeave(we)}),2&et&&v.Udp("zoom",gt.isVisible()?1:null)},features:[v.qOj],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(et,gt){1&et&&(v.TgZ(0,"div",0,1),v.NdJ("animationend",function(we){return gt._handleAnimationEnd(we)}),v.TgZ(2,"div",2),v._uU(3),v.qZA()()),2&et&&(v.ekj("mdc-tooltip--multiline",gt._isMultiline),v.Q6J("ngClass",gt.tooltipClass),v.xp6(3),v.Oqu(gt.message))},dependencies:[k.mk],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),je})(),Pe=(()=>{class je{}return je.\u0275fac=function(et){return new(et||je)},je.\u0275mod=v.oAB({type:je}),je.\u0275inj=v.cJS({providers:[$e],imports:[b.rt,k.ez,Y.U8,ie.BQ,ie.BQ,W.ZD]}),je})()},1570:(vn,_t,y)=>{"use strict";y.d(_t,{dp:()=>Re}),y(5017),y(8929),y(6438),y(4715),y(1086),y(7625);var f=y(4650);y(1281),y(445);let ot=(()=>{class se{}return se.\u0275fac=function(F){return new(F||se)},se.\u0275mod=f.oAB({type:se}),se.\u0275inj=f.cJS({}),se})();var at=y(3238);let Re=(()=>{class se{}return se.\u0275fac=function(F){return new(F||se)},se.\u0275mod=f.oAB({type:se}),se.\u0275inj=f.cJS({imports:[ot,at.BQ,at.BQ]}),se})()},1481:(vn,_t,y)=>{"use strict";y.d(_t,{Dx:()=>Lt,H7:()=>pe,b2:()=>zt,q6:()=>nn,se:()=>ot});var d=y(6895),i=y(4650);class A extends d.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class p extends A{static makeCurrent(){(0,d.HT)(new p)}onAndCancel(Ct,qe,We){return Ct.addEventListener(qe,We,!1),()=>{Ct.removeEventListener(qe,We,!1)}}dispatchEvent(Ct,qe){Ct.dispatchEvent(qe)}remove(Ct){Ct.parentNode&&Ct.parentNode.removeChild(Ct)}createElement(Ct,qe){return(qe=qe||this.getDefaultDocument()).createElement(Ct)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ct){return Ct.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ct){return Ct instanceof DocumentFragment}getGlobalEventTarget(Ct,qe){return"window"===qe?window:"document"===qe?Ct:"body"===qe?Ct.body:null}getBaseHref(Ct){const qe=function k(){return v=v||document.querySelector("base"),v?v.getAttribute("href"):null}();return null==qe?null:function b(nt){f=f||document.createElement("a"),f.setAttribute("href",nt);const Ct=f.pathname;return"/"===Ct.charAt(0)?Ct:`/${Ct}`}(qe)}resetBaseElement(){v=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ct){return(0,d.Mx)(document.cookie,Ct)}}let f,v=null;const J=new i.OlP("TRANSITION_ID"),W=[{provide:i.ip1,useFactory:function Y(nt,Ct,qe){return()=>{qe.get(i.CZH).donePromise.then(()=>{const We=(0,d.q)(),Rt=Ct.querySelectorAll(`style[ng-transition="${nt}"]`);for(let Ve=0;Ve<Rt.length;Ve++)We.remove(Rt[Ve])})}},deps:[J,d.K0,i.zs3],multi:!0}];let Z=(()=>{class nt{build(){return new XMLHttpRequest}}return nt.\u0275fac=function(qe){return new(qe||nt)},nt.\u0275prov=i.Yz7({token:nt,factory:nt.\u0275fac}),nt})();const G=new i.OlP("EventManagerPlugins");let ie=(()=>{class nt{constructor(qe,We){this._zone=We,this._eventNameToPlugin=new Map,qe.forEach(Rt=>{Rt.manager=this}),this._plugins=qe.slice().reverse()}addEventListener(qe,We,Rt){return this._findPluginFor(We).addEventListener(qe,We,Rt)}addGlobalEventListener(qe,We,Rt){return this._findPluginFor(We).addGlobalEventListener(qe,We,Rt)}getZone(){return this._zone}_findPluginFor(qe){const We=this._eventNameToPlugin.get(qe);if(We)return We;const Rt=this._plugins;for(let Ve=0;Ve<Rt.length;Ve++){const At=Rt[Ve];if(At.supports(qe))return this._eventNameToPlugin.set(qe,At),At}throw new Error(`No event manager plugin found for event ${qe}`)}}return nt.\u0275fac=function(qe){return new(qe||nt)(i.LFG(G),i.LFG(i.R0b))},nt.\u0275prov=i.Yz7({token:nt,factory:nt.\u0275fac}),nt})();class Ee{constructor(Ct){this._doc=Ct}addGlobalEventListener(Ct,qe,We){const Rt=(0,d.q)().getGlobalEventTarget(this._doc,Ct);if(!Rt)throw new Error(`Unsupported event target ${Rt} for event ${qe}`);return this.addEventListener(Rt,qe,We)}}let ue=(()=>{class nt{constructor(){this.usageCount=new Map}addStyles(qe){for(const We of qe)1===this.changeUsageCount(We,1)&&this.onStyleAdded(We)}removeStyles(qe){for(const We of qe)0===this.changeUsageCount(We,-1)&&this.onStyleRemoved(We)}onStyleRemoved(qe){}onStyleAdded(qe){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(qe,We){const Rt=this.usageCount;let Ve=Rt.get(qe)??0;return Ve+=We,Ve>0?Rt.set(qe,Ve):Rt.delete(qe),Ve}ngOnDestroy(){for(const qe of this.getAllStyles())this.onStyleRemoved(qe);this.usageCount.clear()}}return nt.\u0275fac=function(qe){return new(qe||nt)},nt.\u0275prov=i.Yz7({token:nt,factory:nt.\u0275fac}),nt})(),Ze=(()=>{class nt extends ue{constructor(qe){super(),this.doc=qe,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(qe){for(const We of this.hostNodes)this.addStyleToHost(We,qe)}onStyleRemoved(qe){const We=this.styleRef;We.get(qe)?.forEach(Ve=>Ve.remove()),We.delete(qe)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(qe){this.hostNodes.add(qe);for(const We of this.getAllStyles())this.addStyleToHost(qe,We)}removeHost(qe){this.hostNodes.delete(qe)}addStyleToHost(qe,We){const Rt=this.doc.createElement("style");Rt.textContent=We,qe.appendChild(Rt);const Ve=this.styleRef.get(We);Ve?Ve.push(Rt):this.styleRef.set(We,[Rt])}resetHostNodes(){const qe=this.hostNodes;qe.clear(),qe.add(this.doc.head)}}return nt.\u0275fac=function(qe){return new(qe||nt)(i.LFG(d.K0))},nt.\u0275prov=i.Yz7({token:nt,factory:nt.\u0275fac}),nt})();const Qe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},vt=/%COMP%/g,re=new i.OlP("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Ae(nt,Ct){return Ct.flat(100).map(qe=>qe.replace(vt,nt))}function tt(nt){return Ct=>{if("__ngUnwrap__"===Ct)return nt;!1===nt(Ct)&&(Ct.preventDefault(),Ct.returnValue=!1)}}let ot=(()=>{class nt{constructor(qe,We,Rt,Ve){this.eventManager=qe,this.sharedStylesHost=We,this.appId=Rt,this.removeStylesOnCompDestory=Ve,this.rendererByCompId=new Map,this.defaultRenderer=new at(qe)}createRenderer(qe,We){if(!qe||!We)return this.defaultRenderer;const Rt=this.getOrCreateRenderer(qe,We);return Rt instanceof je?Rt.applyToHost(qe):Rt instanceof Pe&&Rt.applyStyles(),Rt}getOrCreateRenderer(qe,We){const Rt=this.rendererByCompId;let Ve=Rt.get(We.id);if(!Ve){const At=this.eventManager,fn=this.sharedStylesHost,Ln=this.removeStylesOnCompDestory;switch(We.encapsulation){case i.ifc.Emulated:Ve=new je(At,fn,We,this.appId,Ln);break;case i.ifc.ShadowDom:return new be(At,fn,qe,We);default:Ve=new Pe(At,fn,We,Ln)}Ve.onDestroy=()=>Rt.delete(We.id),Rt.set(We.id,Ve)}return Ve}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return nt.\u0275fac=function(qe){return new(qe||nt)(i.LFG(ie),i.LFG(Ze),i.LFG(i.AFp),i.LFG(re))},nt.\u0275prov=i.Yz7({token:nt,factory:nt.\u0275fac}),nt})();class at{constructor(Ct){this.eventManager=Ct,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ct,qe){return qe?document.createElementNS(Qe[qe]||qe,Ct):document.createElement(Ct)}createComment(Ct){return document.createComment(Ct)}createText(Ct){return document.createTextNode(Ct)}appendChild(Ct,qe){(Et(Ct)?Ct.content:Ct).appendChild(qe)}insertBefore(Ct,qe,We){Ct&&(Et(Ct)?Ct.content:Ct).insertBefore(qe,We)}removeChild(Ct,qe){Ct&&Ct.removeChild(qe)}selectRootElement(Ct,qe){let We="string"==typeof Ct?document.querySelector(Ct):Ct;if(!We)throw new Error(`The selector "${Ct}" did not match any elements`);return qe||(We.textContent=""),We}parentNode(Ct){return Ct.parentNode}nextSibling(Ct){return Ct.nextSibling}setAttribute(Ct,qe,We,Rt){if(Rt){qe=Rt+":"+qe;const Ve=Qe[Rt];Ve?Ct.setAttributeNS(Ve,qe,We):Ct.setAttribute(qe,We)}else Ct.setAttribute(qe,We)}removeAttribute(Ct,qe,We){if(We){const Rt=Qe[We];Rt?Ct.removeAttributeNS(Rt,qe):Ct.removeAttribute(`${We}:${qe}`)}else Ct.removeAttribute(qe)}addClass(Ct,qe){Ct.classList.add(qe)}removeClass(Ct,qe){Ct.classList.remove(qe)}setStyle(Ct,qe,We,Rt){Rt&(i.JOm.DashCase|i.JOm.Important)?Ct.style.setProperty(qe,We,Rt&i.JOm.Important?"important":""):Ct.style[qe]=We}removeStyle(Ct,qe,We){We&i.JOm.DashCase?Ct.style.removeProperty(qe):Ct.style[qe]=""}setProperty(Ct,qe,We){Ct[qe]=We}setValue(Ct,qe){Ct.nodeValue=qe}listen(Ct,qe,We){return"string"==typeof Ct?this.eventManager.addGlobalEventListener(Ct,qe,tt(We)):this.eventManager.addEventListener(Ct,qe,tt(We))}}function Et(nt){return"TEMPLATE"===nt.tagName&&void 0!==nt.content}class be extends at{constructor(Ct,qe,We,Rt){super(Ct),this.sharedStylesHost=qe,this.hostEl=We,this.shadowRoot=We.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ve=Ae(Rt.id,Rt.styles);for(const At of Ve){const fn=document.createElement("style");fn.textContent=At,this.shadowRoot.appendChild(fn)}}nodeOrShadowRoot(Ct){return Ct===this.hostEl?this.shadowRoot:Ct}appendChild(Ct,qe){return super.appendChild(this.nodeOrShadowRoot(Ct),qe)}insertBefore(Ct,qe,We){return super.insertBefore(this.nodeOrShadowRoot(Ct),qe,We)}removeChild(Ct,qe){return super.removeChild(this.nodeOrShadowRoot(Ct),qe)}parentNode(Ct){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ct)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Pe extends at{constructor(Ct,qe,We,Rt,Ve=We.id){super(Ct),this.sharedStylesHost=qe,this.removeStylesOnCompDestory=Rt,this.rendererUsageCount=0,this.styles=Ae(Ve,We.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class je extends Pe{constructor(Ct,qe,We,Rt,Ve){const At=Rt+"-"+We.id;super(Ct,qe,We,Ve,At),this.contentAttr=function ye(nt){return"_ngcontent-%COMP%".replace(vt,nt)}(At),this.hostAttr=function Oe(nt){return"_nghost-%COMP%".replace(vt,nt)}(At)}applyToHost(Ct){this.applyStyles(),this.setAttribute(Ct,this.hostAttr,"")}createElement(Ct,qe){const We=super.createElement(Ct,qe);return super.setAttribute(We,this.contentAttr,""),We}}let dt=(()=>{class nt extends Ee{constructor(qe){super(qe)}supports(qe){return!0}addEventListener(qe,We,Rt){return qe.addEventListener(We,Rt,!1),()=>this.removeEventListener(qe,We,Rt)}removeEventListener(qe,We,Rt){return qe.removeEventListener(We,Rt)}}return nt.\u0275fac=function(qe){return new(qe||nt)(i.LFG(d.K0))},nt.\u0275prov=i.Yz7({token:nt,factory:nt.\u0275fac}),nt})();const et=["alt","control","meta","shift"],gt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Re={alt:nt=>nt.altKey,control:nt=>nt.ctrlKey,meta:nt=>nt.metaKey,shift:nt=>nt.shiftKey};let we=(()=>{class nt extends Ee{constructor(qe){super(qe)}supports(qe){return null!=nt.parseEventName(qe)}addEventListener(qe,We,Rt){const Ve=nt.parseEventName(We),At=nt.eventCallback(Ve.fullKey,Rt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.q)().onAndCancel(qe,Ve.domEventName,At))}static parseEventName(qe){const We=qe.toLowerCase().split("."),Rt=We.shift();if(0===We.length||"keydown"!==Rt&&"keyup"!==Rt)return null;const Ve=nt._normalizeKey(We.pop());let At="",fn=We.indexOf("code");if(fn>-1&&(We.splice(fn,1),At="code."),et.forEach(Ti=>{const Oi=We.indexOf(Ti);Oi>-1&&(We.splice(Oi,1),At+=Ti+".")}),At+=Ve,0!=We.length||0===Ve.length)return null;const Ln={};return Ln.domEventName=Rt,Ln.fullKey=At,Ln}static matchEventFullKeyCode(qe,We){let Rt=gt[qe.key]||qe.key,Ve="";return We.indexOf("code.")>-1&&(Rt=qe.code,Ve="code."),!(null==Rt||!Rt)&&(Rt=Rt.toLowerCase()," "===Rt?Rt="space":"."===Rt&&(Rt="dot"),et.forEach(At=>{At!==Rt&&(0,Re[At])(qe)&&(Ve+=At+".")}),Ve+=Rt,Ve===We)}static eventCallback(qe,We,Rt){return Ve=>{nt.matchEventFullKeyCode(Ve,qe)&&Rt.runGuarded(()=>We(Ve))}}static _normalizeKey(qe){return"esc"===qe?"escape":qe}}return nt.\u0275fac=function(qe){return new(qe||nt)(i.LFG(d.K0))},nt.\u0275prov=i.Yz7({token:nt,factory:nt.\u0275fac}),nt})();const nn=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:d.bD},{provide:i.g9A,useValue:function V(){p.makeCurrent()},multi:!0},{provide:d.K0,useFactory:function De(){return(0,i.RDi)(document),document},deps:[]}]),Jt=new i.OlP(""),un=[{provide:i.rWj,useClass:class B{addToWindow(Ct){i.dqk.getAngularTestability=(We,Rt=!0)=>{const Ve=Ct.findTestabilityInTree(We,Rt);if(null==Ve)throw new Error("Could not find testability for element.");return Ve},i.dqk.getAllAngularTestabilities=()=>Ct.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>Ct.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(We=>{const Rt=i.dqk.getAllAngularTestabilities();let Ve=Rt.length,At=!1;const fn=function(Ln){At=At||Ln,Ve--,0==Ve&&We(At)};Rt.forEach(function(Ln){Ln.whenStable(fn)})})}findTestabilityInTree(Ct,qe,We){return null==qe?null:Ct.getTestability(qe)??(We?(0,d.q)().isShadowRoot(qe)?this.findTestabilityInTree(Ct,qe.host,!0):this.findTestabilityInTree(Ct,qe.parentElement,!0):null)}},deps:[]},{provide:i.lri,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]}],Zt=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function ne(){return new i.qLn},deps:[]},{provide:G,useClass:dt,multi:!0,deps:[d.K0,i.R0b,i.Lbi]},{provide:G,useClass:we,multi:!0,deps:[d.K0]},{provide:ot,useClass:ot,deps:[ie,Ze,i.AFp,re]},{provide:i.FYo,useExisting:ot},{provide:ue,useExisting:Ze},{provide:Ze,useClass:Ze,deps:[d.K0]},{provide:ie,useClass:ie,deps:[G,i.R0b]},{provide:d.JF,useClass:Z,deps:[]},[]];let zt=(()=>{class nt{constructor(qe){}static withServerTransition(qe){return{ngModule:nt,providers:[{provide:i.AFp,useValue:qe.appId},{provide:J,useExisting:i.AFp},W]}}}return nt.\u0275fac=function(qe){return new(qe||nt)(i.LFG(Jt,12))},nt.\u0275mod=i.oAB({type:nt}),nt.\u0275inj=i.cJS({providers:[...Zt,...un],imports:[d.ez,i.hGG]}),nt})(),Lt=(()=>{class nt{constructor(qe){this._doc=qe}getTitle(){return this._doc.title}setTitle(qe){this._doc.title=qe||""}}return nt.\u0275fac=function(qe){return new(qe||nt)(i.LFG(d.K0))},nt.\u0275prov=i.Yz7({token:nt,factory:function(qe){let We=null;return We=qe?new qe:function Je(){return new Lt((0,i.LFG)(d.K0))}(),We},providedIn:"root"}),nt})();typeof window<"u"&&window;let pe=(()=>{class nt{}return nt.\u0275fac=function(qe){return new(qe||nt)},nt.\u0275prov=i.Yz7({token:nt,factory:function(qe){let We=null;return We=qe?new(qe||nt):i.LFG(Fe),We},providedIn:"root"}),nt})(),Fe=(()=>{class nt extends pe{constructor(qe){super(),this._doc=qe}sanitize(qe,We){if(null==We)return null;switch(qe){case i.q3G.NONE:return We;case i.q3G.HTML:return(0,i.qzn)(We,"HTML")?(0,i.z3N)(We):(0,i.EiD)(this._doc,String(We)).toString();case i.q3G.STYLE:return(0,i.qzn)(We,"Style")?(0,i.z3N)(We):We;case i.q3G.SCRIPT:if((0,i.qzn)(We,"Script"))return(0,i.z3N)(We);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.qzn)(We,"URL")?(0,i.z3N)(We):(0,i.mCW)(String(We));case i.q3G.RESOURCE_URL:if((0,i.qzn)(We,"ResourceURL"))return(0,i.z3N)(We);throw new Error(`unsafe value used in a resource URL context (see ${i.JZr})`);default:throw new Error(`Unexpected SecurityContext ${qe} (see ${i.JZr})`)}}bypassSecurityTrustHtml(qe){return(0,i.JVY)(qe)}bypassSecurityTrustStyle(qe){return(0,i.L6k)(qe)}bypassSecurityTrustScript(qe){return(0,i.eBb)(qe)}bypassSecurityTrustUrl(qe){return(0,i.LAX)(qe)}bypassSecurityTrustResourceUrl(qe){return(0,i.pB0)(qe)}}return nt.\u0275fac=function(qe){return new(qe||nt)(i.LFG(d.K0))},nt.\u0275prov=i.Yz7({token:nt,factory:function(qe){let We=null;return We=qe?new qe:function Q(nt){return new Fe(nt.get(d.K0))}(i.LFG(i.zs3)),We},providedIn:"root"}),nt})()},6630:(vn,_t,y)=>{"use strict";y.d(_t,{gz:()=>mo,m2:()=>ma,F0:()=>Ya,rH:()=>Dc,Od:()=>yh,Bz:()=>rm,lC:()=>go});var d=y(4650),i=y(5254),A=y(1086),p=y(6438);const k=(()=>{function L(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return L.prototype=Object.create(Error.prototype),L})();var f=y(3426),b=y(1221),J=y(8514),Y=y(4843),W=y(1737),B=y(6498),Z=y(8896),G=y(1762),ie=y(8929),Ee=y(6895),ue=y(4850),Ze=y(7545),Qe=y(2986),vt=y(1059),$e=y(2198),Ge=y(1709),Ce=y(3489);function ke(L=null){return H=>H.lift(new me(L))}class me{constructor(H){this.defaultValue=H}call(H,I){return I.subscribe(new re(H,this.defaultValue))}}class re extends Ce.L{constructor(H,I){super(H),this.defaultValue=I,this.isEmpty=!0}_next(H){this.isEmpty=!1,this.destination.next(H)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function ye(L=tt){return H=>H.lift(new Oe(L))}class Oe{constructor(H){this.errorFactory=H}call(H,I){return I.subscribe(new Ae(H,this.errorFactory))}}class Ae extends Ce.L{constructor(H,I){super(H),this.errorFactory=I,this.hasValue=!1}_next(H){this.hasValue=!0,this.destination.next(H)}_complete(){if(this.hasValue)return this.destination.complete();{let H;try{H=this.errorFactory()}catch(I){H=I}this.destination.error(H)}}}function tt(){return new k}var ot=y(5379);function at(L,H){const I=arguments.length>=2;return X=>X.pipe(L?(0,$e.h)((Se,Xe)=>L(Se,Xe,X)):ot.y,(0,Qe.q)(1),I?ke(H):ye(()=>new k))}var pt=y(1406),ft=y(2868),Et=y(7221);function be(L,H){let I=!1;return arguments.length>=2&&(I=!0),function(Se){return Se.lift(new Pe(L,H,I))}}class Pe{constructor(H,I,X=!1){this.accumulator=H,this.seed=I,this.hasSeed=X}call(H,I){return I.subscribe(new je(H,this.accumulator,this.seed,this.hasSeed))}}class je extends Ce.L{constructor(H,I,X,Se){super(H),this.accumulator=I,this._seed=X,this.hasSeed=Se,this.index=0}get seed(){return this._seed}set seed(H){this.hasSeed=!0,this._seed=H}_next(H){if(this.hasSeed)return this._tryNext(H);this.seed=H,this.destination.next(H)}_tryNext(H){const I=this.index++;let X;try{X=this.accumulator(this.seed,H,I)}catch(Se){this.destination.error(Se)}this.seed=X,this.destination.next(X)}}var dt=y(4231);function et(L){return function(I){return 0===L?(0,Z.c)():I.lift(new gt(L))}}class gt{constructor(H){if(this.total=H,this.total<0)throw new dt.W}call(H,I){return I.subscribe(new Re(H,this.total))}}class Re extends Ce.L{constructor(H,I){super(H),this.total=I,this.ring=new Array,this.count=0}_next(H){const I=this.ring,X=this.total,Se=this.count++;I.length<X?I.push(H):I[Se%X]=H}_complete(){const H=this.destination;let I=this.count;if(I>0){const X=this.count>=this.total?this.total:this.count,Se=this.ring;for(let Xe=0;Xe<X;Xe++){const Dt=I++%X;H.next(Se[Dt])}}H.complete()}}function we(L,H){const I=arguments.length>=2;return X=>X.pipe(L?(0,$e.h)((Se,Xe)=>L(Se,Xe,X)):ot.y,et(1),I?ke(H):ye(()=>new k))}var ce=y(4290),ve=y(7604),se=y(537),S=y(4327),F=y(9146),V=y(1481);const ne="primary",De=Symbol("RouteTitle");class wt{constructor(H){this.params=H||{}}has(H){return Object.prototype.hasOwnProperty.call(this.params,H)}get(H){if(this.has(H)){const I=this.params[H];return Array.isArray(I)?I[0]:I}return null}getAll(H){if(this.has(H)){const I=this.params[H];return Array.isArray(I)?I:[I]}return[]}get keys(){return Object.keys(this.params)}}function nn(L){return new wt(L)}function Jt(L,H,I){const X=I.path.split("/");if(X.length>L.length||"full"===I.pathMatch&&(H.hasChildren()||X.length<L.length))return null;const Se={};for(let Xe=0;Xe<X.length;Xe++){const Dt=X[Xe],_n=L[Xe];if(Dt.startsWith(":"))Se[Dt.substring(1)]=_n;else if(Dt!==_n.path)return null}return{consumed:L.slice(0,X.length),posParams:Se}}function Zt(L,H){const I=L?Object.keys(L):void 0,X=H?Object.keys(H):void 0;if(!I||!X||I.length!=X.length)return!1;let Se;for(let Xe=0;Xe<I.length;Xe++)if(Se=I[Xe],!zt(L[Se],H[Se]))return!1;return!0}function zt(L,H){if(Array.isArray(L)&&Array.isArray(H)){if(L.length!==H.length)return!1;const I=[...L].sort(),X=[...H].sort();return I.every((Se,Xe)=>X[Xe]===Se)}return L===H}function fe(L){return Array.prototype.concat.apply([],L)}function Te(L){return L.length>0?L[L.length-1]:null}function Je(L,H){for(const I in L)L.hasOwnProperty(I)&&H(L[I],I)}function Lt(L){return(0,d.CqO)(L)?L:(0,d.QGY)(L)?(0,i.D)(Promise.resolve(L)):(0,A.of)(L)}const Ke=!1,ge={exact:function ct(L,H,I){if(!ai(L.segments,H.segments)||!Gt(L.segments,H.segments,I)||L.numberOfChildren!==H.numberOfChildren)return!1;for(const X in H.children)if(!L.children[X]||!ct(L.children[X],H.children[X],I))return!1;return!0},subset:Rn},Me={exact:function it(L,H){return Zt(L,H)},subset:function dn(L,H){return Object.keys(H).length<=Object.keys(L).length&&Object.keys(H).every(I=>zt(L[I],H[I]))},ignored:()=>!0};function _e(L,H,I){return ge[I.paths](L.root,H.root,I.matrixParams)&&Me[I.queryParams](L.queryParams,H.queryParams)&&!("exact"===I.fragment&&L.fragment!==H.fragment)}function Rn(L,H,I){return An(L,H,H.segments,I)}function An(L,H,I,X){if(L.segments.length>I.length){const Se=L.segments.slice(0,I.length);return!(!ai(Se,I)||H.hasChildren()||!Gt(Se,I,X))}if(L.segments.length===I.length){if(!ai(L.segments,I)||!Gt(L.segments,I,X))return!1;for(const Se in H.children)if(!L.children[Se]||!Rn(L.children[Se],H.children[Se],X))return!1;return!0}{const Se=I.slice(0,L.segments.length),Xe=I.slice(L.segments.length);return!!(ai(L.segments,Se)&&Gt(L.segments,Se,X)&&L.children[ne])&&An(L.children[ne],H,Xe,X)}}function Gt(L,H,I){return H.every((X,Se)=>Me[I](L[Se].parameters,X.parameters))}class gn{constructor(H=new St([],{}),I={},X=null){this.root=H,this.queryParams=I,this.fragment=X}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nn(this.queryParams)),this._queryParamMap}toString(){return He.serialize(this)}}class St{constructor(H,I){this.segments=H,this.children=I,this.parent=null,Je(I,(X,Se)=>X.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return yt(this)}}class cn{constructor(H,I){this.path=H,this.parameters=I}get parameterMap(){return this._parameterMap||(this._parameterMap=nn(this.parameters)),this._parameterMap}toString(){return Ct(this)}}function ai(L,H){return L.length===H.length&&L.every((I,X)=>I.path===H[X].path)}let de=(()=>{class L{}return L.\u0275fac=function(I){return new(I||L)},L.\u0275prov=d.Yz7({token:L,factory:function(){return new q},providedIn:"root"}),L})();class q{parse(H){const I=new Oi(H);return new gn(I.parseRootSegment(),I.parseQueryParams(),I.parseFragment())}serialize(H){const I=`/${ht(H.root,!0)}`,X=function We(L){const H=Object.keys(L).map(I=>{const X=L[I];return Array.isArray(X)?X.map(Se=>`${pe(I)}=${pe(Se)}`).join("&"):`${pe(I)}=${pe(X)}`}).filter(I=>!!I);return H.length?`?${H.join("&")}`:""}(H.queryParams);return`${I}${X}${"string"==typeof H.fragment?`#${function Q(L){return encodeURI(L)}(H.fragment)}`:""}`}}const He=new q;function yt(L){return L.segments.map(H=>Ct(H)).join("/")}function ht(L,H){if(!L.hasChildren())return yt(L);if(H){const I=L.children[ne]?ht(L.children[ne],!1):"",X=[];return Je(L.children,(Se,Xe)=>{Xe!==ne&&X.push(`${Xe}:${ht(Se,!1)}`)}),X.length>0?`${I}(${X.join("//")})`:I}{const I=function ze(L,H){let I=[];return Je(L.children,(X,Se)=>{Se===ne&&(I=I.concat(H(X,Se)))}),Je(L.children,(X,Se)=>{Se!==ne&&(I=I.concat(H(X,Se)))}),I}(L,(X,Se)=>Se===ne?[ht(L.children[ne],!1)]:[`${Se}:${ht(X,!1)}`]);return 1===Object.keys(L.children).length&&null!=L.children[ne]?`${yt(L)}/${I[0]}`:`${yt(L)}/(${I.join("//")})`}}function le(L){return encodeURIComponent(L).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pe(L){return le(L).replace(/%3B/gi,";")}function Fe(L){return le(L).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xt(L){return decodeURIComponent(L)}function nt(L){return xt(L.replace(/\+/g,"%20"))}function Ct(L){return`${Fe(L.path)}${function qe(L){return Object.keys(L).map(H=>`;${Fe(H)}=${Fe(L[H])}`).join("")}(L.parameters)}`}const Rt=/^[^\/()?;=#]+/;function Ve(L){const H=L.match(Rt);return H?H[0]:""}const At=/^[^=?&#]+/,Ln=/^[^&#]+/;class Oi{constructor(H){this.url=H,this.remaining=H}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new St([],{}):new St([],this.parseChildren())}parseQueryParams(){const H={};if(this.consumeOptional("?"))do{this.parseQueryParam(H)}while(this.consumeOptional("&"));return H}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const H=[];for(this.peekStartsWith("(")||H.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),H.push(this.parseSegment());let I={};this.peekStartsWith("/(")&&(this.capture("/"),I=this.parseParens(!0));let X={};return this.peekStartsWith("(")&&(X=this.parseParens(!1)),(H.length>0||Object.keys(I).length>0)&&(X[ne]=new St(H,I)),X}parseSegment(){const H=Ve(this.remaining);if(""===H&&this.peekStartsWith(";"))throw new d.vHH(4009,Ke);return this.capture(H),new cn(xt(H),this.parseMatrixParams())}parseMatrixParams(){const H={};for(;this.consumeOptional(";");)this.parseParam(H);return H}parseParam(H){const I=Ve(this.remaining);if(!I)return;this.capture(I);let X="";if(this.consumeOptional("=")){const Se=Ve(this.remaining);Se&&(X=Se,this.capture(X))}H[xt(I)]=xt(X)}parseQueryParam(H){const I=function fn(L){const H=L.match(At);return H?H[0]:""}(this.remaining);if(!I)return;this.capture(I);let X="";if(this.consumeOptional("=")){const Dt=function Ti(L){const H=L.match(Ln);return H?H[0]:""}(this.remaining);Dt&&(X=Dt,this.capture(X))}const Se=nt(I),Xe=nt(X);if(H.hasOwnProperty(Se)){let Dt=H[Se];Array.isArray(Dt)||(Dt=[Dt],H[Se]=Dt),Dt.push(Xe)}else H[Se]=Xe}parseParens(H){const I={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const X=Ve(this.remaining),Se=this.remaining[X.length];if("/"!==Se&&")"!==Se&&";"!==Se)throw new d.vHH(4010,Ke);let Xe;X.indexOf(":")>-1?(Xe=X.slice(0,X.indexOf(":")),this.capture(Xe),this.capture(":")):H&&(Xe=ne);const Dt=this.parseChildren();I[Xe]=1===Object.keys(Dt).length?Dt[ne]:new St([],Dt),this.consumeOptional("//")}return I}peekStartsWith(H){return this.remaining.startsWith(H)}consumeOptional(H){return!!this.peekStartsWith(H)&&(this.remaining=this.remaining.substring(H.length),!0)}capture(H){if(!this.consumeOptional(H))throw new d.vHH(4011,Ke)}}function zi(L){return L.segments.length>0?new St([],{[ne]:L}):L}function ur(L){const H={};for(const X of Object.keys(L.children)){const Xe=ur(L.children[X]);(Xe.segments.length>0||Xe.hasChildren())&&(H[X]=Xe)}return function Mt(L){if(1===L.numberOfChildren&&L.children[ne]){const H=L.children[ne];return new St(L.segments.concat(H.segments),H.children)}return L}(new St(L.segments,H))}function an(L){return L instanceof gn}const ut=!1;function Hn(L,H,I,X,Se){if(0===I.length)return Ht(H.root,H.root,H.root,X,Se);const Xe=function Nt(L){if("string"==typeof L[0]&&1===L.length&&"/"===L[0])return new rt(!0,0,L);let H=0,I=!1;const X=L.reduce((Se,Xe,Dt)=>{if("object"==typeof Xe&&null!=Xe){if(Xe.outlets){const _n={};return Je(Xe.outlets,(jn,yi)=>{_n[yi]="string"==typeof jn?jn.split("/"):jn}),[...Se,{outlets:_n}]}if(Xe.segmentPath)return[...Se,Xe.segmentPath]}return"string"!=typeof Xe?[...Se,Xe]:0===Dt?(Xe.split("/").forEach((_n,jn)=>{0==jn&&"."===_n||(0==jn&&""===_n?I=!0:".."===_n?H++:""!=_n&&Se.push(_n))}),Se):[...Se,Xe]},[]);return new rt(I,H,X)}(I);return Xe.toRoot()?Ht(H.root,H.root,new St([],{}),X,Se):function Dt(jn){const yi=function st(L,H,I,X){if(L.isAbsolute)return new P(H.root,!0,0);if(-1===X)return new P(I,I===H.root,0);return function It(L,H,I){let X=L,Se=H,Xe=I;for(;Xe>Se;){if(Xe-=Se,X=X.parent,!X)throw new d.vHH(4005,ut&&"Invalid number of '../'");Se=X.segments.length}return new P(X,!1,Se-Xe)}(I,X+(Ot(L.commands[0])?0:1),L.numberOfDoubleDots)}(Xe,H,L.snapshot?._urlSegment,jn),xi=yi.processChildren?Ai(yi.segmentGroup,yi.index,Xe.commands):Ei(yi.segmentGroup,yi.index,Xe.commands);return Ht(H.root,yi.segmentGroup,xi,X,Se)}(L.snapshot?._lastPathIndex)}function Ot(L){return"object"==typeof L&&null!=L&&!L.outlets&&!L.segmentPath}function Sn(L){return"object"==typeof L&&null!=L&&L.outlets}function Ht(L,H,I,X,Se){let Dt,Xe={};X&&Je(X,(jn,yi)=>{Xe[yi]=Array.isArray(jn)?jn.map(xi=>`${xi}`):`${jn}`}),Dt=L===H?I:wn(L,H,I);const _n=zi(ur(Dt));return new gn(_n,Xe,Se)}function wn(L,H,I){const X={};return Je(L.children,(Se,Xe)=>{X[Xe]=Se===H?I:wn(Se,H,I)}),new St(L.segments,X)}class rt{constructor(H,I,X){if(this.isAbsolute=H,this.numberOfDoubleDots=I,this.commands=X,H&&X.length>0&&Ot(X[0]))throw new d.vHH(4003,ut&&"Root segment cannot have matrix parameters");const Se=X.find(Sn);if(Se&&Se!==Te(X))throw new d.vHH(4004,ut&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class P{constructor(H,I,X){this.segmentGroup=H,this.processChildren=I,this.index=X}}function Ei(L,H,I){if(L||(L=new St([],{})),0===L.segments.length&&L.hasChildren())return Ai(L,H,I);const X=function sr(L,H,I){let X=0,Se=H;const Xe={match:!1,pathIndex:0,commandIndex:0};for(;Se<L.segments.length;){if(X>=I.length)return Xe;const Dt=L.segments[Se],_n=I[X];if(Sn(_n))break;const jn=`${_n}`,yi=X<I.length-1?I[X+1]:null;if(Se>0&&void 0===jn)break;if(jn&&yi&&"object"==typeof yi&&void 0===yi.outlets){if(!Zn(jn,yi,Dt))return Xe;X+=2}else{if(!Zn(jn,{},Dt))return Xe;X++}Se++}return{match:!0,pathIndex:Se,commandIndex:X}}(L,H,I),Se=I.slice(X.commandIndex);if(X.match&&X.pathIndex<L.segments.length){const Xe=new St(L.segments.slice(0,X.pathIndex),{});return Xe.children[ne]=new St(L.segments.slice(X.pathIndex),L.children),Ai(Xe,0,Se)}return X.match&&0===Se.length?new St(L.segments,{}):X.match&&!L.hasChildren()?kr(L,H,I):X.match?Ai(L,0,Se):kr(L,H,I)}function Ai(L,H,I){if(0===I.length)return new St(L.segments,{});{const X=function Mn(L){return Sn(L[0])?L[0].outlets:{[ne]:L}}(I),Se={};if(!X[ne]&&L.children[ne]&&1===L.numberOfChildren&&0===L.children[ne].segments.length){const Xe=Ai(L.children[ne],H,I);return new St(L.segments,Xe.children)}return Je(X,(Xe,Dt)=>{"string"==typeof Xe&&(Xe=[Xe]),null!==Xe&&(Se[Dt]=Ei(L.children[Dt],H,Xe))}),Je(L.children,(Xe,Dt)=>{void 0===X[Dt]&&(Se[Dt]=Xe)}),new St(L.segments,Se)}}function kr(L,H,I){const X=L.segments.slice(0,H);let Se=0;for(;Se<I.length;){const Xe=I[Se];if(Sn(Xe)){const jn=Li(Xe.outlets);return new St(X,jn)}if(0===Se&&Ot(I[0])){X.push(new cn(L.segments[H].path,Lr(I[0]))),Se++;continue}const Dt=Sn(Xe)?Xe.outlets[ne]:`${Xe}`,_n=Se<I.length-1?I[Se+1]:null;Dt&&_n&&Ot(_n)?(X.push(new cn(Dt,Lr(_n))),Se+=2):(X.push(new cn(Dt,{})),Se++)}return new St(X,{})}function Li(L){const H={};return Je(L,(I,X)=>{"string"==typeof I&&(I=[I]),null!==I&&(H[X]=kr(new St([],{}),0,I))}),H}function Lr(L){const H={};return Je(L,(I,X)=>H[X]=`${I}`),H}function Zn(L,H,I){return L==I.path&&Zt(H,I.parameters)}const Mo="imperative";class oa{constructor(H,I){this.id=H,this.url=I}}class Mr extends oa{constructor(H,I,X="imperative",Se=null){super(H,I),this.type=0,this.navigationTrigger=X,this.restoredState=Se}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ma extends oa{constructor(H,I,X){super(H,I),this.urlAfterRedirects=X,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Pa extends oa{constructor(H,I,X,Se){super(H,I),this.reason=X,this.code=Se,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class pa extends oa{constructor(H,I,X,Se){super(H,I),this.reason=X,this.code=Se,this.type=16}}class ga extends oa{constructor(H,I,X,Se){super(H,I),this.error=X,this.target=Se,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Dr extends oa{constructor(H,I,X,Se){super(H,I),this.urlAfterRedirects=X,this.state=Se,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xr extends oa{constructor(H,I,X,Se){super(H,I),this.urlAfterRedirects=X,this.state=Se,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eo extends oa{constructor(H,I,X,Se,Xe){super(H,I),this.urlAfterRedirects=X,this.state=Se,this.shouldActivate=Xe,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Os extends oa{constructor(H,I,X,Se){super(H,I),this.urlAfterRedirects=X,this.state=Se,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qs extends oa{constructor(H,I,X,Se){super(H,I),this.urlAfterRedirects=X,this.state=Se,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pl{constructor(H){this.route=H,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ps{constructor(H){this.route=H,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ss{constructor(H){this.snapshot=H,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xr{constructor(H){this.snapshot=H,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ks{constructor(H){this.snapshot=H,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _a{constructor(H){this.snapshot=H,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class va{constructor(H,I,X){this.routerEvent=H,this.position=I,this.anchor=X,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Js=(()=>{class L{createUrlTree(I,X,Se,Xe,Dt,_n){return Hn(I||X.root,Se,Xe,Dt,_n)}}return L.\u0275fac=function(I){return new(I||L)},L.\u0275prov=d.Yz7({token:L,factory:L.\u0275fac}),L})(),Yc=(()=>{class L{}return L.\u0275fac=function(I){return new(I||L)},L.\u0275prov=d.Yz7({token:L,factory:function(H){return Js.\u0275fac(H)},providedIn:"root"}),L})();class Xs{constructor(H){this._root=H}get root(){return this._root.value}parent(H){const I=this.pathFromRoot(H);return I.length>1?I[I.length-2]:null}children(H){const I=Da(H,this._root);return I?I.children.map(X=>X.value):[]}firstChild(H){const I=Da(H,this._root);return I&&I.children.length>0?I.children[0].value:null}siblings(H){const I=fo(H,this._root);return I.length<2?[]:I[I.length-2].children.map(Se=>Se.value).filter(Se=>Se!==H)}pathFromRoot(H){return fo(H,this._root).map(I=>I.value)}}function Da(L,H){if(L===H.value)return H;for(const I of H.children){const X=Da(L,I);if(X)return X}return null}function fo(L,H){if(L===H.value)return[H];for(const I of H.children){const X=fo(L,I);if(X.length)return X.unshift(H),X}return[]}class Ra{constructor(H,I){this.value=H,this.children=I}toString(){return`TreeNode(${this.value})`}}function ja(L){const H={};return L&&L.children.forEach(I=>H[I.value.outlet]=I),H}class Ao extends Xs{constructor(H,I){super(H),this.snapshot=I,zo(this,H)}toString(){return this.snapshot.toString()}}function ya(L,H){const I=function Rs(L,H){const Dt=new tl([],{},{},"",{},ne,H,null,L.root,-1,{});return new zc("",new Ra(Dt,[]))}(L,H),X=new p.X([new cn("",{})]),Se=new p.X({}),Xe=new p.X({}),Dt=new p.X({}),_n=new p.X(""),jn=new mo(X,Se,Dt,_n,Xe,ne,H,I.root);return jn.snapshot=I.root,new Ao(new Ra(jn,[]),I)}class mo{constructor(H,I,X,Se,Xe,Dt,_n,jn){this.url=H,this.params=I,this.queryParams=X,this.fragment=Se,this.data=Xe,this.outlet=Dt,this.component=_n,this.title=this.data?.pipe((0,ue.U)(yi=>yi[De]))??(0,A.of)(void 0),this._futureSnapshot=jn}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._paramMap=this.params.pipe((0,ue.U)(H=>nn(H)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ue.U)(H=>nn(H)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ls(L,H="emptyOnly"){const I=L.pathFromRoot;let X=0;if("always"!==H)for(X=I.length-1;X>=1;){const Se=I[X],Xe=I[X-1];if(Se.routeConfig&&""===Se.routeConfig.path)X--;else{if(Xe.component)break;X--}}return function el(L){return L.reduce((H,I)=>({params:{...H.params,...I.params},data:{...H.data,...I.data},resolve:{...I.data,...H.resolve,...I.routeConfig?.data,...I._resolvedData}}),{params:{},data:{},resolve:{}})}(I.slice(X))}class tl{get title(){return this.data?.[De]}constructor(H,I,X,Se,Xe,Dt,_n,jn,yi,xi,fr){this.url=H,this.params=I,this.queryParams=X,this.fragment=Se,this.data=Xe,this.outlet=Dt,this.component=_n,this.routeConfig=jn,this._urlSegment=yi,this._lastPathIndex=xi,this._resolve=fr}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._paramMap=nn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nn(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(X=>X.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class zc extends Xs{constructor(H,I){super(I),this.url=H,zo(this,I)}toString(){return Wo(this._root)}}function zo(L,H){H.value._routerState=L,H.children.forEach(I=>zo(L,I))}function Wo(L){const H=L.children.length>0?` { ${L.children.map(Wo).join(", ")} } `:"";return`${L.value}${H}`}function Go(L){if(L.snapshot){const H=L.snapshot,I=L._futureSnapshot;L.snapshot=I,Zt(H.queryParams,I.queryParams)||L.queryParams.next(I.queryParams),H.fragment!==I.fragment&&L.fragment.next(I.fragment),Zt(H.params,I.params)||L.params.next(I.params),function un(L,H){if(L.length!==H.length)return!1;for(let I=0;I<L.length;++I)if(!Zt(L[I],H[I]))return!1;return!0}(H.url,I.url)||L.url.next(I.url),Zt(H.data,I.data)||L.data.next(I.data)}else L.snapshot=L._futureSnapshot,L.data.next(L._futureSnapshot.data)}function Fs(L,H){const I=Zt(L.params,H.params)&&function Qn(L,H){return ai(L,H)&&L.every((I,X)=>Zt(I.parameters,H[X].parameters))}(L.url,H.url);return I&&!(!L.parent!=!H.parent)&&(!L.parent||Fs(L.parent,H.parent))}function po(L,H,I){if(I&&L.shouldReuseRoute(H.value,I.value.snapshot)){const X=I.value;X._futureSnapshot=H.value;const Se=function Ls(L,H,I){return H.children.map(X=>{for(const Se of I.children)if(L.shouldReuseRoute(X.value,Se.value.snapshot))return po(L,X,Se);return po(L,X)})}(L,H,I);return new Ra(X,Se)}{if(L.shouldAttach(H.value)){const Xe=L.retrieve(H.value);if(null!==Xe){const Dt=Xe.route;return Dt.value._futureSnapshot=H.value,Dt.children=H.children.map(_n=>po(L,_n)),Dt}}const X=function So(L){return new mo(new p.X(L.url),new p.X(L.params),new p.X(L.queryParams),new p.X(L.fragment),new p.X(L.data),L.outlet,L.component,L)}(H.value),Se=H.children.map(Xe=>po(L,Xe));return new Ra(X,Se)}}const _l="ngNavigationCancelingError";function nl(L,H){const{redirectTo:I,navigationBehaviorOptions:X}=an(H)?{redirectTo:H,navigationBehaviorOptions:void 0}:H,Se=ko(!1,0,H);return Se.url=I,Se.navigationBehaviorOptions=X,Se}function ko(L,H,I){const X=new Error("NavigationCancelingError: "+(L||""));return X[_l]=!0,X.cancellationCode=H,I&&(X.url=I),X}function vl(L){return il(L)&&an(L.url)}function il(L){return L&&L[_l]}class Ns{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new to,this.attachRef=null}}let to=(()=>{class L{constructor(){this.contexts=new Map}onChildOutletCreated(I,X){const Se=this.getOrCreateContext(I);Se.outlet=X,this.contexts.set(I,Se)}onChildOutletDestroyed(I){const X=this.getContext(I);X&&(X.outlet=null,X.attachRef=null)}onOutletDeactivated(){const I=this.contexts;return this.contexts=new Map,I}onOutletReAttached(I){this.contexts=I}getOrCreateContext(I){let X=this.getContext(I);return X||(X=new Ns,this.contexts.set(I,X)),X}getContext(I){return this.contexts.get(I)||null}}return L.\u0275fac=function(I){return new(I||L)},L.\u0275prov=d.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const $o=!1;let go=(()=>{class L{constructor(){this.activated=null,this._activatedRoute=null,this.name=ne,this.activateEvents=new d.vpe,this.deactivateEvents=new d.vpe,this.attachEvents=new d.vpe,this.detachEvents=new d.vpe,this.parentContexts=(0,d.f3M)(to),this.location=(0,d.f3M)(d.s_b),this.changeDetector=(0,d.f3M)(d.sBO),this.environmentInjector=(0,d.f3M)(d.lqb)}ngOnChanges(I){if(I.name){const{firstChange:X,previousValue:Se}=I.name;if(X)return;this.isTrackedInParentContexts(Se)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Se)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(I){return this.parentContexts.getContext(I)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const I=this.parentContexts.getContext(this.name);I?.route&&(I.attachRef?this.attach(I.attachRef,I.route):this.activateWith(I.route,I.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new d.vHH(4012,$o);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new d.vHH(4012,$o);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new d.vHH(4012,$o);this.location.detach();const I=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(I.instance),I}attach(I,X){this.activated=I,this._activatedRoute=X,this.location.insert(I.hostView),this.attachEvents.emit(I.instance)}deactivate(){if(this.activated){const I=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(I)}}activateWith(I,X){if(this.isActivated)throw new d.vHH(4013,$o);this._activatedRoute=I;const Se=this.location,Dt=I.snapshot.component,_n=this.parentContexts.getOrCreateContext(this.name).children,jn=new qo(I,_n,Se.injector);if(X&&function xa(L){return!!L.resolveComponentFactory}(X)){const yi=X.resolveComponentFactory(Dt);this.activated=Se.createComponent(yi,Se.length,jn)}else this.activated=Se.createComponent(Dt,{index:Se.length,injector:jn,environmentInjector:X??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return L.\u0275fac=function(I){return new(I||L)},L.\u0275dir=d.lG2({type:L,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[d.TTD]}),L})();class qo{constructor(H,I,X){this.route=H,this.childContexts=I,this.parent=X}get(H,I){return H===mo?this.route:H===to?this.childContexts:this.parent.get(H,I)}}let Qo=(()=>{class L{}return L.\u0275fac=function(I){return new(I||L)},L.\u0275cmp=d.Xpm({type:L,selectors:[["ng-component"]],standalone:!0,features:[d.jDz],decls:1,vars:0,template:function(I,X){1&I&&d._UZ(0,"router-outlet")},dependencies:[go],encapsulation:2}),L})();function Fa(L,H){return L.providers&&!L._injector&&(L._injector=(0,d.MMx)(L.providers,H,`Route: ${L.path}`)),L._injector??H}function bl(L){const H=L.children&&L.children.map(bl),I=H?{...L,children:H}:{...L};return!I.component&&!I.loadComponent&&(H||I.loadChildren)&&I.outlet&&I.outlet!==ne&&(I.component=Qo),I}function na(L){return L.outlet||ne}function no(L,H){const I=L.filter(X=>na(X)===H);return I.push(...L.filter(X=>na(X)!==H)),I}function sa(L){if(!L)return null;if(L.routeConfig?._injector)return L.routeConfig._injector;for(let H=L.parent;H;H=H.parent){const I=H.routeConfig;if(I?._loadedInjector)return I._loadedInjector;if(I?._injector)return I._injector}return null}class zl{constructor(H,I,X,Se){this.routeReuseStrategy=H,this.futureState=I,this.currState=X,this.forwardEvent=Se}activate(H){const I=this.futureState._root,X=this.currState?this.currState._root:null;this.deactivateChildRoutes(I,X,H),Go(this.futureState.root),this.activateChildRoutes(I,X,H)}deactivateChildRoutes(H,I,X){const Se=ja(I);H.children.forEach(Xe=>{const Dt=Xe.value.outlet;this.deactivateRoutes(Xe,Se[Dt],X),delete Se[Dt]}),Je(Se,(Xe,Dt)=>{this.deactivateRouteAndItsChildren(Xe,X)})}deactivateRoutes(H,I,X){const Se=H.value,Xe=I?I.value:null;if(Se===Xe)if(Se.component){const Dt=X.getContext(Se.outlet);Dt&&this.deactivateChildRoutes(H,I,Dt.children)}else this.deactivateChildRoutes(H,I,X);else Xe&&this.deactivateRouteAndItsChildren(I,X)}deactivateRouteAndItsChildren(H,I){H.value.component&&this.routeReuseStrategy.shouldDetach(H.value.snapshot)?this.detachAndStoreRouteSubtree(H,I):this.deactivateRouteAndOutlet(H,I)}detachAndStoreRouteSubtree(H,I){const X=I.getContext(H.value.outlet),Se=X&&H.value.component?X.children:I,Xe=ja(H);for(const Dt of Object.keys(Xe))this.deactivateRouteAndItsChildren(Xe[Dt],Se);if(X&&X.outlet){const Dt=X.outlet.detach(),_n=X.children.onOutletDeactivated();this.routeReuseStrategy.store(H.value.snapshot,{componentRef:Dt,route:H,contexts:_n})}}deactivateRouteAndOutlet(H,I){const X=I.getContext(H.value.outlet),Se=X&&H.value.component?X.children:I,Xe=ja(H);for(const Dt of Object.keys(Xe))this.deactivateRouteAndItsChildren(Xe[Dt],Se);X&&(X.outlet&&(X.outlet.deactivate(),X.children.onOutletDeactivated()),X.attachRef=null,X.resolver=null,X.route=null)}activateChildRoutes(H,I,X){const Se=ja(I);H.children.forEach(Xe=>{this.activateRoutes(Xe,Se[Xe.value.outlet],X),this.forwardEvent(new _a(Xe.value.snapshot))}),H.children.length&&this.forwardEvent(new Xr(H.value.snapshot))}activateRoutes(H,I,X){const Se=H.value,Xe=I?I.value:null;if(Go(Se),Se===Xe)if(Se.component){const Dt=X.getOrCreateContext(Se.outlet);this.activateChildRoutes(H,I,Dt.children)}else this.activateChildRoutes(H,I,X);else if(Se.component){const Dt=X.getOrCreateContext(Se.outlet);if(this.routeReuseStrategy.shouldAttach(Se.snapshot)){const _n=this.routeReuseStrategy.retrieve(Se.snapshot);this.routeReuseStrategy.store(Se.snapshot,null),Dt.children.onOutletReAttached(_n.contexts),Dt.attachRef=_n.componentRef,Dt.route=_n.route.value,Dt.outlet&&Dt.outlet.attach(_n.componentRef,_n.route.value),Go(_n.route.value),this.activateChildRoutes(H,null,Dt.children)}else{const _n=sa(Se.snapshot),jn=_n?.get(d._Vd)??null;Dt.attachRef=null,Dt.route=Se,Dt.resolver=jn,Dt.injector=_n,Dt.outlet&&Dt.outlet.activateWith(Se,Dt.injector),this.activateChildRoutes(H,null,Dt.children)}}else this.activateChildRoutes(H,null,X)}}class Ni{constructor(H){this.path=H,this.route=this.path[this.path.length-1]}}class te{constructor(H,I){this.component=H,this.route=I}}function C(L,H,I){const X=L._root;return U(X,H?H._root:null,I,[X.value])}function E(L,H){const I=Symbol(),X=H.get(L,I);return X===I?"function"!=typeof L||(0,d.Z0I)(L)?H.get(L):L:X}function U(L,H,I,X,Se={canDeactivateChecks:[],canActivateChecks:[]}){const Xe=ja(H);return L.children.forEach(Dt=>{(function Be(L,H,I,X,Se={canDeactivateChecks:[],canActivateChecks:[]}){const Xe=L.value,Dt=H?H.value:null,_n=I?I.getContext(L.value.outlet):null;if(Dt&&Xe.routeConfig===Dt.routeConfig){const jn=function jt(L,H,I){if("function"==typeof I)return I(L,H);switch(I){case"pathParamsChange":return!ai(L.url,H.url);case"pathParamsOrQueryParamsChange":return!ai(L.url,H.url)||!Zt(L.queryParams,H.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fs(L,H)||!Zt(L.queryParams,H.queryParams);default:return!Fs(L,H)}}(Dt,Xe,Xe.routeConfig.runGuardsAndResolvers);jn?Se.canActivateChecks.push(new Ni(X)):(Xe.data=Dt.data,Xe._resolvedData=Dt._resolvedData),U(L,H,Xe.component?_n?_n.children:null:I,X,Se),jn&&_n&&_n.outlet&&_n.outlet.isActivated&&Se.canDeactivateChecks.push(new te(_n.outlet.component,Dt))}else Dt&&yn(H,_n,Se),Se.canActivateChecks.push(new Ni(X)),U(L,null,Xe.component?_n?_n.children:null:I,X,Se)})(Dt,Xe[Dt.value.outlet],I,X.concat([Dt.value]),Se),delete Xe[Dt.value.outlet]}),Je(Xe,(Dt,_n)=>yn(Dt,I.getContext(_n),Se)),Se}function yn(L,H,I){const X=ja(L),Se=L.value;Je(X,(Xe,Dt)=>{yn(Xe,Se.component?H?H.children.getContext(Dt):null:H,I)}),I.canDeactivateChecks.push(new te(Se.component&&H&&H.outlet&&H.outlet.isActivated?H.outlet.component:null,Se))}function Bt(L){return"function"==typeof L}function Si(L){return L instanceof k||"EmptyError"===L?.name}const Xi=Symbol("INITIAL_VALUE");function Bi(){return(0,Ze.w)(L=>(0,f.aj)(L.map(H=>H.pipe((0,Qe.q)(1),(0,vt.O)(Xi)))).pipe((0,ue.U)(H=>{for(const I of H)if(!0!==I){if(I===Xi)return Xi;if(!1===I||I instanceof gn)return I}return!0}),(0,$e.h)(H=>H!==Xi),(0,Qe.q)(1)))}function ia(L){return(0,Y.z)((0,ft.b)(H=>{if(an(H))throw nl(0,H)}),(0,ue.U)(H=>!0===H))}const ds={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Wl(L,H,I,X,Se){const Xe=sl(L,H,I);return Xe.matched?function io(L,H,I,X){const Se=H.canMatch;if(!Se||0===Se.length)return(0,A.of)(!0);const Xe=Se.map(Dt=>{const _n=E(Dt,L);return Lt(function mi(L){return L&&Bt(L.canMatch)}(_n)?_n.canMatch(H,I):L.runInContext(()=>_n(H,I)))});return(0,A.of)(Xe).pipe(Bi(),ia())}(X=Fa(H,X),H,I).pipe((0,ue.U)(Dt=>!0===Dt?Xe:{...ds})):(0,A.of)(Xe)}function sl(L,H,I){if(""===H.path)return"full"===H.pathMatch&&(L.hasChildren()||I.length>0)?{...ds}:{matched:!0,consumedSegments:[],remainingSegments:I,parameters:{},positionalParamSegments:{}};const Se=(H.matcher||Jt)(I,L,H);if(!Se)return{...ds};const Xe={};Je(Se.posParams,(_n,jn)=>{Xe[jn]=_n.path});const Dt=Se.consumed.length>0?{...Xe,...Se.consumed[Se.consumed.length-1].parameters}:Xe;return{matched:!0,consumedSegments:Se.consumed,remainingSegments:I.slice(Se.consumed.length),parameters:Dt,positionalParamSegments:Se.posParams??{}}}function vo(L,H,I,X){if(I.length>0&&function yl(L,H,I){return I.some(X=>xl(L,H,X)&&na(X)!==ne)}(L,I,X)){const Xe=new St(H,function $l(L,H,I,X){const Se={};Se[ne]=X,X._sourceSegment=L,X._segmentIndexShift=H.length;for(const Xe of I)if(""===Xe.path&&na(Xe)!==ne){const Dt=new St([],{});Dt._sourceSegment=L,Dt._segmentIndexShift=H.length,Se[na(Xe)]=Dt}return Se}(L,H,X,new St(I,L.children)));return Xe._sourceSegment=L,Xe._segmentIndexShift=H.length,{segmentGroup:Xe,slicedSegments:[]}}if(0===I.length&&function Ea(L,H,I){return I.some(X=>xl(L,H,X))}(L,I,X)){const Xe=new St(L.segments,function Gl(L,H,I,X,Se){const Xe={};for(const Dt of X)if(xl(L,I,Dt)&&!Se[na(Dt)]){const _n=new St([],{});_n._sourceSegment=L,_n._segmentIndexShift=H.length,Xe[na(Dt)]=_n}return{...Se,...Xe}}(L,H,I,X,L.children));return Xe._sourceSegment=L,Xe._segmentIndexShift=H.length,{segmentGroup:Xe,slicedSegments:I}}const Se=new St(L.segments,L.children);return Se._sourceSegment=L,Se._segmentIndexShift=H.length,{segmentGroup:Se,slicedSegments:I}}function xl(L,H,I){return(!(L.hasChildren()||H.length>0)||"full"!==I.pathMatch)&&""===I.path}function Io(L,H,I,X){return!!(na(L)===X||X!==ne&&xl(H,I,L))&&("**"===L.path||sl(H,L,I).matched)}function wl(L,H,I){return 0===H.length&&!L.children[I]}const Cl=!1;class vc{constructor(H){this.segmentGroup=H||null}}class La{constructor(H){this.urlTree=H}}function ro(L){return(0,W._)(new vc(L))}function Ir(L){return(0,W._)(new La(L))}class Gf{constructor(H,I,X,Se,Xe){this.injector=H,this.configLoader=I,this.urlSerializer=X,this.urlTree=Se,this.config=Xe,this.allowRedirects=!0}apply(){const H=vo(this.urlTree.root,[],[],this.config).segmentGroup,I=new St(H.segments,H.children);return this.expandSegmentGroup(this.injector,this.config,I,ne).pipe((0,ue.U)(Xe=>this.createUrlTree(ur(Xe),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Et.K)(Xe=>{if(Xe instanceof La)return this.allowRedirects=!1,this.match(Xe.urlTree);throw Xe instanceof vc?this.noMatchError(Xe):Xe}))}match(H){return this.expandSegmentGroup(this.injector,this.config,H.root,ne).pipe((0,ue.U)(Se=>this.createUrlTree(ur(Se),H.queryParams,H.fragment))).pipe((0,Et.K)(Se=>{throw Se instanceof vc?this.noMatchError(Se):Se}))}noMatchError(H){return new d.vHH(4002,Cl)}createUrlTree(H,I,X){const Se=zi(H);return new gn(Se,I,X)}expandSegmentGroup(H,I,X,Se){return 0===X.segments.length&&X.hasChildren()?this.expandChildren(H,I,X).pipe((0,ue.U)(Xe=>new St([],Xe))):this.expandSegment(H,X,I,X.segments,Se,!0)}expandChildren(H,I,X){const Se=[];for(const Xe of Object.keys(X.children))"primary"===Xe?Se.unshift(Xe):Se.push(Xe);return(0,i.D)(Se).pipe((0,pt.b)(Xe=>{const Dt=X.children[Xe],_n=no(I,Xe);return this.expandSegmentGroup(H,_n,Dt,Xe).pipe((0,ue.U)(jn=>({segment:jn,outlet:Xe})))}),be((Xe,Dt)=>(Xe[Dt.outlet]=Dt.segment,Xe),{}),we())}expandSegment(H,I,X,Se,Xe,Dt){return(0,i.D)(X).pipe((0,pt.b)(_n=>this.expandSegmentAgainstRoute(H,I,X,_n,Se,Xe,Dt).pipe((0,Et.K)(yi=>{if(yi instanceof vc)return(0,A.of)(null);throw yi}))),at(_n=>!!_n),(0,Et.K)((_n,jn)=>{if(Si(_n))return wl(I,Se,Xe)?(0,A.of)(new St([],{})):ro(I);throw _n}))}expandSegmentAgainstRoute(H,I,X,Se,Xe,Dt,_n){return Io(Se,I,Xe,Dt)?void 0===Se.redirectTo?this.matchSegmentAgainstRoute(H,I,Se,Xe,Dt):_n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(H,I,X,Se,Xe,Dt):ro(I):ro(I)}expandSegmentAgainstRouteUsingRedirect(H,I,X,Se,Xe,Dt){return"**"===Se.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(H,X,Se,Dt):this.expandRegularSegmentAgainstRouteUsingRedirect(H,I,X,Se,Xe,Dt)}expandWildCardWithParamsAgainstRouteUsingRedirect(H,I,X,Se){const Xe=this.applyRedirectCommands([],X.redirectTo,{});return X.redirectTo.startsWith("/")?Ir(Xe):this.lineralizeSegments(X,Xe).pipe((0,Ge.zg)(Dt=>{const _n=new St(Dt,{});return this.expandSegment(H,_n,I,Dt,Se,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(H,I,X,Se,Xe,Dt){const{matched:_n,consumedSegments:jn,remainingSegments:yi,positionalParamSegments:xi}=sl(I,Se,Xe);if(!_n)return ro(I);const fr=this.applyRedirectCommands(jn,Se.redirectTo,xi);return Se.redirectTo.startsWith("/")?Ir(fr):this.lineralizeSegments(Se,fr).pipe((0,Ge.zg)(Rr=>this.expandSegment(H,I,X,Rr.concat(yi),Dt,!1)))}matchSegmentAgainstRoute(H,I,X,Se,Xe){return"**"===X.path?(H=Fa(X,H),X.loadChildren?(X._loadedRoutes?(0,A.of)({routes:X._loadedRoutes,injector:X._loadedInjector}):this.configLoader.loadChildren(H,X)).pipe((0,ue.U)(_n=>(X._loadedRoutes=_n.routes,X._loadedInjector=_n.injector,new St(Se,{})))):(0,A.of)(new St(Se,{}))):Wl(I,X,Se,H).pipe((0,Ze.w)(({matched:Dt,consumedSegments:_n,remainingSegments:jn})=>Dt?this.getChildConfig(H=X._injector??H,X,Se).pipe((0,Ge.zg)(xi=>{const fr=xi.injector??H,Rr=xi.routes,{segmentGroup:hs,slicedSegments:Ro}=vo(I,_n,jn,Rr),Ma=new St(hs.segments,hs.children);if(0===Ro.length&&Ma.hasChildren())return this.expandChildren(fr,Rr,Ma).pipe((0,ue.U)(sm=>new St(_n,sm)));if(0===Rr.length&&0===Ro.length)return(0,A.of)(new St(_n,{}));const za=na(X)===Xe;return this.expandSegment(fr,Ma,Rr,Ro,za?ne:Xe,!0).pipe((0,ue.U)(Co=>new St(_n.concat(Co.segments),Co.children)))})):ro(I)))}getChildConfig(H,I,X){return I.children?(0,A.of)({routes:I.children,injector:H}):I.loadChildren?void 0!==I._loadedRoutes?(0,A.of)({routes:I._loadedRoutes,injector:I._loadedInjector}):function ol(L,H,I,X){const Se=H.canLoad;if(void 0===Se||0===Se.length)return(0,A.of)(!0);const Xe=Se.map(Dt=>{const _n=E(Dt,L);return Lt(function Kn(L){return L&&Bt(L.canLoad)}(_n)?_n.canLoad(H,I):L.runInContext(()=>_n(H,I)))});return(0,A.of)(Xe).pipe(Bi(),ia())}(H,I,X).pipe((0,Ge.zg)(Se=>Se?this.configLoader.loadChildren(H,I).pipe((0,ft.b)(Xe=>{I._loadedRoutes=Xe.routes,I._loadedInjector=Xe.injector})):function Wf(L){return(0,W._)(ko(Cl,3))}())):(0,A.of)({routes:[],injector:H})}lineralizeSegments(H,I){let X=[],Se=I.root;for(;;){if(X=X.concat(Se.segments),0===Se.numberOfChildren)return(0,A.of)(X);if(Se.numberOfChildren>1||!Se.children[ne])return H.redirectTo,(0,W._)(new d.vHH(4e3,Cl));Se=Se.children[ne]}}applyRedirectCommands(H,I,X){return this.applyRedirectCreateUrlTree(I,this.urlSerializer.parse(I),H,X)}applyRedirectCreateUrlTree(H,I,X,Se){const Xe=this.createSegmentGroup(H,I.root,X,Se);return new gn(Xe,this.createQueryParams(I.queryParams,this.urlTree.queryParams),I.fragment)}createQueryParams(H,I){const X={};return Je(H,(Se,Xe)=>{if("string"==typeof Se&&Se.startsWith(":")){const _n=Se.substring(1);X[Xe]=I[_n]}else X[Xe]=Se}),X}createSegmentGroup(H,I,X,Se){const Xe=this.createSegments(H,I.segments,X,Se);let Dt={};return Je(I.children,(_n,jn)=>{Dt[jn]=this.createSegmentGroup(H,_n,X,Se)}),new St(Xe,Dt)}createSegments(H,I,X,Se){return I.map(Xe=>Xe.path.startsWith(":")?this.findPosParam(H,Xe,Se):this.findOrReturn(Xe,X))}findPosParam(H,I,X){const Se=X[I.path.substring(1)];if(!Se)throw new d.vHH(4001,Cl);return Se}findOrReturn(H,I){let X=0;for(const Se of I){if(Se.path===H.path)return I.splice(X),Se;X++}return H}}class ou{}class ee{constructor(H,I,X,Se,Xe,Dt,_n){this.injector=H,this.rootComponentType=I,this.config=X,this.urlTree=Se,this.url=Xe,this.paramsInheritanceStrategy=Dt,this.urlSerializer=_n}recognize(){const H=vo(this.urlTree.root,[],[],this.config.filter(I=>void 0===I.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,H,ne).pipe((0,ue.U)(I=>{if(null===I)return null;const X=new tl([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ne,this.rootComponentType,null,this.urlTree.root,-1,{}),Se=new Ra(X,I),Xe=new zc(this.url,Se);return this.inheritParamsAndData(Xe._root),Xe}))}inheritParamsAndData(H){const I=H.value,X=ls(I,this.paramsInheritanceStrategy);I.params=Object.freeze(X.params),I.data=Object.freeze(X.data),H.children.forEach(Se=>this.inheritParamsAndData(Se))}processSegmentGroup(H,I,X,Se){return 0===X.segments.length&&X.hasChildren()?this.processChildren(H,I,X):this.processSegment(H,I,X,X.segments,Se)}processChildren(H,I,X){return(0,i.D)(Object.keys(X.children)).pipe((0,pt.b)(Se=>{const Xe=X.children[Se],Dt=no(I,Se);return this.processSegmentGroup(H,Dt,Xe,Se)}),be((Se,Xe)=>Se&&Xe?(Se.push(...Xe),Se):null),(0,ce.o)(Se=>null!==Se),ke(null),we(),(0,ue.U)(Se=>{if(null===Se)return null;const Xe=Qt(Se);return function Ue(L){L.sort((H,I)=>H.value.outlet===ne?-1:I.value.outlet===ne?1:H.value.outlet.localeCompare(I.value.outlet))}(Xe),Xe}))}processSegment(H,I,X,Se,Xe){return(0,i.D)(I).pipe((0,pt.b)(Dt=>this.processSegmentAgainstRoute(Dt._injector??H,Dt,X,Se,Xe)),at(Dt=>!!Dt),(0,Et.K)(Dt=>{if(Si(Dt))return wl(X,Se,Xe)?(0,A.of)([]):(0,A.of)(null);throw Dt}))}processSegmentAgainstRoute(H,I,X,Se,Xe){if(I.redirectTo||!Io(I,X,Se,Xe))return(0,A.of)(null);let Dt;if("**"===I.path){const _n=Se.length>0?Te(Se).parameters:{},jn=Pi(X)+Se.length,yi=new tl(Se,_n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Tr(I),na(I),I.component??I._loadedComponent??null,I,Gn(X),jn,gr(I));Dt=(0,A.of)({snapshot:yi,consumedSegments:[],remainingSegments:[]})}else Dt=Wl(X,I,Se,H).pipe((0,ue.U)(({matched:_n,consumedSegments:jn,remainingSegments:yi,parameters:xi})=>{if(!_n)return null;const fr=Pi(X)+jn.length;return{snapshot:new tl(jn,xi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Tr(I),na(I),I.component??I._loadedComponent??null,I,Gn(X),fr,gr(I)),consumedSegments:jn,remainingSegments:yi}}));return Dt.pipe((0,Ze.w)(_n=>{if(null===_n)return(0,A.of)(null);const{snapshot:jn,consumedSegments:yi,remainingSegments:xi}=_n;H=I._injector??H;const fr=I._loadedInjector??H,Rr=function he(L){return L.children?L.children:L.loadChildren?L._loadedRoutes:[]}(I),{segmentGroup:hs,slicedSegments:Ro}=vo(X,yi,xi,Rr.filter(za=>void 0===za.redirectTo));if(0===Ro.length&&hs.hasChildren())return this.processChildren(fr,Rr,hs).pipe((0,ue.U)(za=>null===za?null:[new Ra(jn,za)]));if(0===Rr.length&&0===Ro.length)return(0,A.of)([new Ra(jn,[])]);const Ma=na(I)===Xe;return this.processSegment(fr,Rr,hs,Ro,Ma?ne:Xe).pipe((0,ue.U)(za=>null===za?null:[new Ra(jn,za)]))}))}}function mt(L){const H=L.value.routeConfig;return H&&""===H.path&&void 0===H.redirectTo}function Qt(L){const H=[],I=new Set;for(const X of L){if(!mt(X)){H.push(X);continue}const Se=H.find(Xe=>X.value.routeConfig===Xe.value.routeConfig);void 0!==Se?(Se.children.push(...X.children),I.add(Se)):H.push(X)}for(const X of I){const Se=Qt(X.children);H.push(new Ra(X.value,Se))}return H.filter(X=>!I.has(X))}function Gn(L){let H=L;for(;H._sourceSegment;)H=H._sourceSegment;return H}function Pi(L){let H=L,I=H._segmentIndexShift??0;for(;H._sourceSegment;)H=H._sourceSegment,I+=H._segmentIndexShift??0;return I-1}function Tr(L){return L.data||{}}function gr(L){return L.resolve||{}}function ll(L){return"string"==typeof L.title||null===L.title}function ao(L){return(0,Ze.w)(H=>{const I=L(H);return I?(0,i.D)(I).pipe((0,ue.U)(()=>H)):(0,A.of)(H)})}const yo=new d.OlP("ROUTES");let es=(()=>{class L{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,d.f3M)(d.Sil)}loadComponent(I){if(this.componentLoaders.get(I))return this.componentLoaders.get(I);if(I._loadedComponent)return(0,A.of)(I._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(I);const X=Lt(I.loadComponent()).pipe((0,ue.U)(bc),(0,ft.b)(Xe=>{this.onLoadEndListener&&this.onLoadEndListener(I),I._loadedComponent=Xe}),(0,se.x)(()=>{this.componentLoaders.delete(I)})),Se=new G.c(X,()=>new ie.xQ).pipe((0,S.x)());return this.componentLoaders.set(I,Se),Se}loadChildren(I,X){if(this.childrenLoaders.get(X))return this.childrenLoaders.get(X);if(X._loadedRoutes)return(0,A.of)({routes:X._loadedRoutes,injector:X._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(X);const Xe=this.loadModuleFactoryOrRoutes(X.loadChildren).pipe((0,ue.U)(_n=>{this.onLoadEndListener&&this.onLoadEndListener(X);let jn,yi,xi=!1;Array.isArray(_n)?yi=_n:(jn=_n.create(I).injector,yi=fe(jn.get(yo,[],d.XFs.Self|d.XFs.Optional)));return{routes:yi.map(bl),injector:jn}}),(0,se.x)(()=>{this.childrenLoaders.delete(X)})),Dt=new G.c(Xe,()=>new ie.xQ).pipe((0,S.x)());return this.childrenLoaders.set(X,Dt),Dt}loadModuleFactoryOrRoutes(I){return Lt(I()).pipe((0,ue.U)(bc),(0,Ge.zg)(X=>X instanceof d.YKP||Array.isArray(X)?(0,A.of)(X):(0,i.D)(this.compiler.compileModuleAsync(X))))}}return L.\u0275fac=function(I){return new(I||L)},L.\u0275prov=d.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();function bc(L){return function Oo(L){return L&&"object"==typeof L&&"default"in L}(L)?L.default:L}let xc=(()=>{class L{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new ie.xQ,this.configLoader=(0,d.f3M)(es),this.environmentInjector=(0,d.f3M)(d.lqb),this.urlSerializer=(0,d.f3M)(de),this.rootContexts=(0,d.f3M)(to),this.navigationId=0,this.afterPreactivation=()=>(0,A.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Se=>this.events.next(new Ps(Se)),this.configLoader.onLoadStartListener=Se=>this.events.next(new pl(Se))}complete(){this.transitions?.complete()}handleNavigationRequest(I){const X=++this.navigationId;this.transitions?.next({...this.transitions.value,...I,id:X})}setupNavigations(I){return this.transitions=new p.X({id:0,targetPageId:0,currentUrlTree:I.currentUrlTree,currentRawUrl:I.currentUrlTree,extractedUrl:I.urlHandlingStrategy.extract(I.currentUrlTree),urlAfterRedirects:I.urlHandlingStrategy.extract(I.currentUrlTree),rawUrl:I.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Mo,restoredState:null,currentSnapshot:I.routerState.snapshot,targetSnapshot:null,currentRouterState:I.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,$e.h)(X=>0!==X.id),(0,ue.U)(X=>({...X,extractedUrl:I.urlHandlingStrategy.extract(X.rawUrl)})),(0,Ze.w)(X=>{let Se=!1,Xe=!1;return(0,A.of)(X).pipe((0,ft.b)(Dt=>{this.currentNavigation={id:Dt.id,initialUrl:Dt.rawUrl,extractedUrl:Dt.extractedUrl,trigger:Dt.source,extras:Dt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Ze.w)(Dt=>{const _n=I.browserUrlTree.toString(),jn=!I.navigated||Dt.extractedUrl.toString()!==_n||_n!==I.currentUrlTree.toString();if(!jn&&"reload"!==(Dt.extras.onSameUrlNavigation??I.onSameUrlNavigation)){const xi="";return this.events.next(new pa(Dt.id,I.serializeUrl(X.rawUrl),xi,0)),I.rawUrlTree=Dt.rawUrl,Dt.resolve(null),Z.E}if(I.urlHandlingStrategy.shouldProcessUrl(Dt.rawUrl))return bh(Dt.source)&&(I.browserUrlTree=Dt.extractedUrl),(0,A.of)(Dt).pipe((0,Ze.w)(xi=>{const fr=this.transitions?.getValue();return this.events.next(new Mr(xi.id,this.urlSerializer.serialize(xi.extractedUrl),xi.source,xi.restoredState)),fr!==this.transitions?.getValue()?Z.E:Promise.resolve(xi)}),function ug(L,H,I,X){return(0,Ze.w)(Se=>function au(L,H,I,X,Se){return new Gf(L,H,I,X,Se).apply()}(L,H,I,Se.extractedUrl,X).pipe((0,ue.U)(Xe=>({...Se,urlAfterRedirects:Xe}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,I.config),(0,ft.b)(xi=>{this.currentNavigation={...this.currentNavigation,finalUrl:xi.urlAfterRedirects},X.urlAfterRedirects=xi.urlAfterRedirects}),function nr(L,H,I,X,Se){return(0,Ge.zg)(Xe=>function Cd(L,H,I,X,Se,Xe,Dt="emptyOnly"){return new ee(L,H,I,X,Se,Dt,Xe).recognize().pipe((0,Ze.w)(_n=>null===_n?function wd(L){return new B.y(H=>H.error(L))}(new ou):(0,A.of)(_n)))}(L,H,I,Xe.urlAfterRedirects,X.serialize(Xe.urlAfterRedirects),X,Se).pipe((0,ue.U)(Dt=>({...Xe,targetSnapshot:Dt}))))}(this.environmentInjector,this.rootComponentType,I.config,this.urlSerializer,I.paramsInheritanceStrategy),(0,ft.b)(xi=>{if(X.targetSnapshot=xi.targetSnapshot,"eager"===I.urlUpdateStrategy){if(!xi.extras.skipLocationChange){const Rr=I.urlHandlingStrategy.merge(xi.urlAfterRedirects,xi.rawUrl);I.setBrowserUrl(Rr,xi)}I.browserUrlTree=xi.urlAfterRedirects}const fr=new Dr(xi.id,this.urlSerializer.serialize(xi.extractedUrl),this.urlSerializer.serialize(xi.urlAfterRedirects),xi.targetSnapshot);this.events.next(fr)}));if(jn&&I.urlHandlingStrategy.shouldProcessUrl(I.rawUrlTree)){const{id:xi,extractedUrl:fr,source:Rr,restoredState:hs,extras:Ro}=Dt,Ma=new Mr(xi,this.urlSerializer.serialize(fr),Rr,hs);this.events.next(Ma);const za=ya(fr,this.rootComponentType).snapshot;return X={...Dt,targetSnapshot:za,urlAfterRedirects:fr,extras:{...Ro,skipLocationChange:!1,replaceUrl:!1}},(0,A.of)(X)}{const xi="";return this.events.next(new pa(Dt.id,I.serializeUrl(X.extractedUrl),xi,1)),I.rawUrlTree=Dt.rawUrl,Dt.resolve(null),Z.E}}),(0,ft.b)(Dt=>{const _n=new xr(Dt.id,this.urlSerializer.serialize(Dt.extractedUrl),this.urlSerializer.serialize(Dt.urlAfterRedirects),Dt.targetSnapshot);this.events.next(_n)}),(0,ue.U)(Dt=>X={...Dt,guards:C(Dt.targetSnapshot,Dt.currentSnapshot,this.rootContexts)}),function er(L,H){return(0,Ge.zg)(I=>{const{targetSnapshot:X,currentSnapshot:Se,guards:{canActivateChecks:Xe,canDeactivateChecks:Dt}}=I;return 0===Dt.length&&0===Xe.length?(0,A.of)({...I,guardsResult:!0}):function Vi(L,H,I,X){return(0,i.D)(L).pipe((0,Ge.zg)(Se=>function Ta(L,H,I,X,Se){const Xe=H&&H.routeConfig?H.routeConfig.canDeactivate:null;if(!Xe||0===Xe.length)return(0,A.of)(!0);const Dt=Xe.map(_n=>{const jn=sa(H)??Se,yi=E(_n,jn);return Lt(function ri(L){return L&&Bt(L.canDeactivate)}(yi)?yi.canDeactivate(L,H,I,X):jn.runInContext(()=>yi(L,H,I,X))).pipe(at())});return(0,A.of)(Dt).pipe(Bi())}(Se.component,Se.route,I,H,X)),at(Se=>!0!==Se,!0))}(Dt,X,Se,L).pipe((0,Ge.zg)(_n=>_n&&function bn(L){return"boolean"==typeof L}(_n)?function qi(L,H,I,X){return(0,i.D)(H).pipe((0,pt.b)(Se=>(0,b.z)(function rr(L,H){return null!==L&&H&&H(new ss(L)),(0,A.of)(!0)}(Se.route.parent,X),function lr(L,H){return null!==L&&H&&H(new Ks(L)),(0,A.of)(!0)}(Se.route,X),function tr(L,H,I){const X=H[H.length-1],Xe=H.slice(0,H.length-1).reverse().map(Dt=>function D(L){const H=L.routeConfig?L.routeConfig.canActivateChild:null;return H&&0!==H.length?{node:L,guards:H}:null}(Dt)).filter(Dt=>null!==Dt).map(Dt=>(0,J.P)(()=>{const _n=Dt.guards.map(jn=>{const yi=sa(Dt.node)??I,xi=E(jn,yi);return Lt(function Nn(L){return L&&Bt(L.canActivateChild)}(xi)?xi.canActivateChild(X,L):yi.runInContext(()=>xi(X,L))).pipe(at())});return(0,A.of)(_n).pipe(Bi())}));return(0,A.of)(Xe).pipe(Bi())}(L,Se.path,I),function hr(L,H,I){const X=H.routeConfig?H.routeConfig.canActivate:null;if(!X||0===X.length)return(0,A.of)(!0);const Se=X.map(Xe=>(0,J.P)(()=>{const Dt=sa(H)??I,_n=E(Xe,Dt);return Lt(function Jn(L){return L&&Bt(L.canActivate)}(_n)?_n.canActivate(H,L):Dt.runInContext(()=>_n(H,L))).pipe(at())}));return(0,A.of)(Se).pipe(Bi())}(L,Se.route,I))),at(Se=>!0!==Se,!0))}(X,Xe,L,H):(0,A.of)(_n)),(0,ue.U)(_n=>({...I,guardsResult:_n})))})}(this.environmentInjector,Dt=>this.events.next(Dt)),(0,ft.b)(Dt=>{if(X.guardsResult=Dt.guardsResult,an(Dt.guardsResult))throw nl(0,Dt.guardsResult);const _n=new eo(Dt.id,this.urlSerializer.serialize(Dt.extractedUrl),this.urlSerializer.serialize(Dt.urlAfterRedirects),Dt.targetSnapshot,!!Dt.guardsResult);this.events.next(_n)}),(0,$e.h)(Dt=>!!Dt.guardsResult||(I.restoreHistory(Dt),this.cancelNavigationTransition(Dt,"",3),!1)),ao(Dt=>{if(Dt.guards.canActivateChecks.length)return(0,A.of)(Dt).pipe((0,ft.b)(_n=>{const jn=new Os(_n.id,this.urlSerializer.serialize(_n.extractedUrl),this.urlSerializer.serialize(_n.urlAfterRedirects),_n.targetSnapshot);this.events.next(jn)}),(0,Ze.w)(_n=>{let jn=!1;return(0,A.of)(_n).pipe(function ra(L,H){return(0,Ge.zg)(I=>{const{targetSnapshot:X,guards:{canActivateChecks:Se}}=I;if(!Se.length)return(0,A.of)(I);let Xe=0;return(0,i.D)(Se).pipe((0,pt.b)(Dt=>function wr(L,H,I,X){const Se=L.routeConfig,Xe=L._resolve;return void 0!==Se?.title&&!ll(Se)&&(Xe[De]=Se.title),function la(L,H,I,X){const Se=function Jo(L){return[...Object.keys(L),...Object.getOwnPropertySymbols(L)]}(L);if(0===Se.length)return(0,A.of)({});const Xe={};return(0,i.D)(Se).pipe((0,Ge.zg)(Dt=>function bo(L,H,I,X){const Se=sa(H)??X,Xe=E(L,Se);return Lt(Xe.resolve?Xe.resolve(H,I):Se.runInContext(()=>Xe(H,I)))}(L[Dt],H,I,X).pipe(at(),(0,ft.b)(_n=>{Xe[Dt]=_n}))),et(1),(0,ve.h)(Xe),(0,Et.K)(Dt=>Si(Dt)?Z.E:(0,W._)(Dt)))}(Xe,L,H,X).pipe((0,ue.U)(Dt=>(L._resolvedData=Dt,L.data=ls(L,I).resolve,Se&&ll(Se)&&(L.data[De]=Se.title),null)))}(Dt.route,X,L,H)),(0,ft.b)(()=>Xe++),et(1),(0,Ge.zg)(Dt=>Xe===Se.length?(0,A.of)(I):Z.E))})}(I.paramsInheritanceStrategy,this.environmentInjector),(0,ft.b)({next:()=>jn=!0,complete:()=>{jn||(I.restoreHistory(_n),this.cancelNavigationTransition(_n,"",2))}}))}),(0,ft.b)(_n=>{const jn=new Qs(_n.id,this.urlSerializer.serialize(_n.extractedUrl),this.urlSerializer.serialize(_n.urlAfterRedirects),_n.targetSnapshot);this.events.next(jn)}))}),ao(Dt=>{const _n=jn=>{const yi=[];jn.routeConfig?.loadComponent&&!jn.routeConfig._loadedComponent&&yi.push(this.configLoader.loadComponent(jn.routeConfig).pipe((0,ft.b)(xi=>{jn.component=xi}),(0,ue.U)(()=>{})));for(const xi of jn.children)yi.push(..._n(xi));return yi};return(0,f.aj)(_n(Dt.targetSnapshot.root)).pipe(ke(),(0,Qe.q)(1))}),ao(()=>this.afterPreactivation()),(0,ue.U)(Dt=>{const _n=function Wc(L,H,I){const X=po(L,H._root,I?I._root:void 0);return new Ao(X,H)}(I.routeReuseStrategy,Dt.targetSnapshot,Dt.currentRouterState);return X={...Dt,targetRouterState:_n}}),(0,ft.b)(Dt=>{I.currentUrlTree=Dt.urlAfterRedirects,I.rawUrlTree=I.urlHandlingStrategy.merge(Dt.urlAfterRedirects,Dt.rawUrl),I.routerState=Dt.targetRouterState,"deferred"===I.urlUpdateStrategy&&(Dt.extras.skipLocationChange||I.setBrowserUrl(I.rawUrlTree,Dt),I.browserUrlTree=Dt.urlAfterRedirects)}),((L,H,I)=>(0,ue.U)(X=>(new zl(H,X.targetRouterState,X.currentRouterState,I).activate(L),X)))(this.rootContexts,I.routeReuseStrategy,Dt=>this.events.next(Dt)),(0,Qe.q)(1),(0,ft.b)({next:Dt=>{Se=!0,this.lastSuccessfulNavigation=this.currentNavigation,I.navigated=!0,this.events.next(new ma(Dt.id,this.urlSerializer.serialize(Dt.extractedUrl),this.urlSerializer.serialize(I.currentUrlTree))),I.titleStrategy?.updateTitle(Dt.targetRouterState.snapshot),Dt.resolve(!0)},complete:()=>{Se=!0}}),(0,se.x)(()=>{Se||Xe||this.cancelNavigationTransition(X,"",1),this.currentNavigation?.id===X.id&&(this.currentNavigation=null)}),(0,Et.K)(Dt=>{if(Xe=!0,il(Dt)){vl(Dt)||(I.navigated=!0,I.restoreHistory(X,!0));const _n=new Pa(X.id,this.urlSerializer.serialize(X.extractedUrl),Dt.message,Dt.cancellationCode);if(this.events.next(_n),vl(Dt)){const jn=I.urlHandlingStrategy.merge(Dt.url,I.rawUrlTree),yi={skipLocationChange:X.extras.skipLocationChange,replaceUrl:"eager"===I.urlUpdateStrategy||bh(X.source)};I.scheduleNavigation(jn,Mo,null,yi,{resolve:X.resolve,reject:X.reject,promise:X.promise})}else X.resolve(!1)}else{I.restoreHistory(X,!0);const _n=new ga(X.id,this.urlSerializer.serialize(X.extractedUrl),Dt,X.targetSnapshot??void 0);this.events.next(_n);try{X.resolve(I.errorHandler(Dt))}catch(jn){X.reject(jn)}}return Z.E}))}))}cancelNavigationTransition(I,X,Se){const Xe=new Pa(I.id,this.urlSerializer.serialize(I.extractedUrl),X,Se);this.events.next(Xe),I.resolve(!1)}}return L.\u0275fac=function(I){return new(I||L)},L.\u0275prov=d.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();function bh(L){return L!==Mo}let $f=(()=>{class L{buildTitle(I){let X,Se=I.root;for(;void 0!==Se;)X=this.getResolvedTitleForRoute(Se)??X,Se=Se.children.find(Xe=>Xe.outlet===ne);return X}getResolvedTitleForRoute(I){return I.data[De]}}return L.\u0275fac=function(I){return new(I||L)},L.\u0275prov=d.Yz7({token:L,factory:function(){return(0,d.f3M)(us)},providedIn:"root"}),L})(),us=(()=>{class L extends $f{constructor(I){super(),this.title=I}updateTitle(I){const X=this.buildTitle(I);void 0!==X&&this.title.setTitle(X)}}return L.\u0275fac=function(I){return new(I||L)(d.LFG(V.Dx))},L.\u0275prov=d.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),hg=(()=>{class L{}return L.\u0275fac=function(I){return new(I||L)},L.\u0275prov=d.Yz7({token:L,factory:function(){return(0,d.f3M)($c)},providedIn:"root"}),L})();class su{shouldDetach(H){return!1}store(H,I){}shouldAttach(H){return!1}retrieve(H){return null}shouldReuseRoute(H,I){return H.routeConfig===I.routeConfig}}let $c=(()=>{class L extends su{}return L.\u0275fac=function(){let H;return function(X){return(H||(H=d.n5z(L)))(X||L)}}(),L.\u0275prov=d.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const wc=new d.OlP("",{providedIn:"root",factory:()=>({})});let lu=(()=>{class L{}return L.\u0275fac=function(I){return new(I||L)},L.\u0275prov=d.Yz7({token:L,factory:function(){return(0,d.f3M)(Qf)},providedIn:"root"}),L})(),Qf=(()=>{class L{shouldProcessUrl(I){return!0}extract(I){return I}merge(I,X){return I}}return L.\u0275fac=function(I){return new(I||L)},L.\u0275prov=d.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();function Cc(L){throw L}function Kf(L,H,I){return H.parse("/")}const Jf={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Xf={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ya=(()=>{class L{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,d.f3M)(d.c2e),this.isNgZoneEnabled=!1,this.options=(0,d.f3M)(wc,{optional:!0})||{},this.errorHandler=this.options.errorHandler||Cc,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Kf,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,d.f3M)(lu),this.routeReuseStrategy=(0,d.f3M)(hg),this.urlCreationStrategy=(0,d.f3M)(Yc),this.titleStrategy=(0,d.f3M)($f),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=fe((0,d.f3M)(yo,{optional:!0})??[]),this.navigationTransitions=(0,d.f3M)(xc),this.urlSerializer=(0,d.f3M)(de),this.location=(0,d.f3M)(Ee.Ye),this.isNgZoneEnabled=(0,d.f3M)(d.R0b)instanceof d.R0b&&d.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new gn,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ya(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(I=>{this.lastSuccessfulId=I.id,this.currentPageId=this.browserPageId??0},I=>{this.console.warn(`Unhandled Navigation Error: ${I}`)})}resetRootComponentType(I){this.routerState.root.component=I,this.navigationTransitions.rootComponentType=I}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const I=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Mo,I)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(I=>{const X="popstate"===I.type?"popstate":"hashchange";"popstate"===X&&setTimeout(()=>{this.navigateToSyncWithBrowser(I.url,X,I.state)},0)}))}navigateToSyncWithBrowser(I,X,Se){const Xe={replaceUrl:!0},Dt=Se?.navigationId?Se:null;if(Se){const jn={...Se};delete jn.navigationId,delete jn.\u0275routerPageId,0!==Object.keys(jn).length&&(Xe.state=jn)}const _n=this.parseUrl(I);this.scheduleNavigation(_n,X,Dt,Xe)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(I){this.config=I.map(bl),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(I,X={}){const{relativeTo:Se,queryParams:Xe,fragment:Dt,queryParamsHandling:_n,preserveFragment:jn}=X,yi=jn?this.currentUrlTree.fragment:Dt;let xi=null;switch(_n){case"merge":xi={...this.currentUrlTree.queryParams,...Xe};break;case"preserve":xi=this.currentUrlTree.queryParams;break;default:xi=Xe||null}return null!==xi&&(xi=this.removeEmptyProps(xi)),this.urlCreationStrategy.createUrlTree(Se,this.routerState,this.currentUrlTree,I,xi,yi??null)}navigateByUrl(I,X={skipLocationChange:!1}){const Se=an(I)?I:this.parseUrl(I),Xe=this.urlHandlingStrategy.merge(Se,this.rawUrlTree);return this.scheduleNavigation(Xe,Mo,null,X)}navigate(I,X={skipLocationChange:!1}){return function ql(L){for(let H=0;H<L.length;H++){const I=L[H];if(null==I)throw new d.vHH(4008,false)}}(I),this.navigateByUrl(this.createUrlTree(I,X),X)}serializeUrl(I){return this.urlSerializer.serialize(I)}parseUrl(I){let X;try{X=this.urlSerializer.parse(I)}catch(Se){X=this.malformedUriErrorHandler(Se,this.urlSerializer,I)}return X}isActive(I,X){let Se;if(Se=!0===X?{...Jf}:!1===X?{...Xf}:X,an(I))return _e(this.currentUrlTree,I,Se);const Xe=this.parseUrl(I);return _e(this.currentUrlTree,Xe,Se)}removeEmptyProps(I){return Object.keys(I).reduce((X,Se)=>{const Xe=I[Se];return null!=Xe&&(X[Se]=Xe),X},{})}scheduleNavigation(I,X,Se,Xe,Dt){if(this.disposed)return Promise.resolve(!1);let _n,jn,yi,xi;return Dt?(_n=Dt.resolve,jn=Dt.reject,yi=Dt.promise):yi=new Promise((fr,Rr)=>{_n=fr,jn=Rr}),xi="computed"===this.canceledNavigationResolution?Se&&Se.\u0275routerPageId?Se.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:xi,source:X,restoredState:Se,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:I,extras:Xe,resolve:_n,reject:jn,promise:yi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),yi.catch(fr=>Promise.reject(fr))}setBrowserUrl(I,X){const Se=this.urlSerializer.serialize(I);if(this.location.isCurrentPathEqualTo(Se)||X.extras.replaceUrl){const Dt={...X.extras.state,...this.generateNgRouterState(X.id,this.browserPageId)};this.location.replaceState(Se,"",Dt)}else{const Xe={...X.extras.state,...this.generateNgRouterState(X.id,X.targetPageId)};this.location.go(Se,"",Xe)}}restoreHistory(I,X=!1){if("computed"===this.canceledNavigationResolution){const Xe=this.currentPageId-(this.browserPageId??this.currentPageId);0!==Xe?this.location.historyGo(Xe):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Xe&&(this.resetState(I),this.browserUrlTree=I.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(X&&this.resetState(I),this.resetUrlToCurrentUrlTree())}resetState(I){this.routerState=I.currentRouterState,this.currentUrlTree=I.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,I.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(I,X){return"computed"===this.canceledNavigationResolution?{navigationId:I,\u0275routerPageId:X}:{navigationId:I}}}return L.\u0275fac=function(I){return new(I||L)},L.\u0275prov=d.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),Dc=(()=>{class L{constructor(I,X,Se,Xe,Dt,_n){this.router=I,this.route=X,this.tabIndexAttribute=Se,this.renderer=Xe,this.el=Dt,this.locationStrategy=_n,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new ie.xQ;const jn=Dt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===jn||"area"===jn,this.isAnchorElement?this.subscription=I.events.subscribe(yi=>{yi instanceof ma&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(I){this._preserveFragment=(0,d.D6c)(I)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(I){this._skipLocationChange=(0,d.D6c)(I)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(I){this._replaceUrl=(0,d.D6c)(I)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(I){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",I)}ngOnChanges(I){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(I){null!=I?(this.commands=Array.isArray(I)?I:[I],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(I,X,Se,Xe,Dt){return!!(null===this.urlTree||this.isAnchorElement&&(0!==I||X||Se||Xe||Dt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const I=null===this.href?null:(0,d.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",I)}applyAttributeValue(I,X){const Se=this.renderer,Xe=this.el.nativeElement;null!==X?Se.setAttribute(Xe,I,X):Se.removeAttribute(Xe,I)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return L.\u0275fac=function(I){return new(I||L)(d.Y36(Ya),d.Y36(mo),d.$8M("tabindex"),d.Y36(d.Qsj),d.Y36(d.SBq),d.Y36(Ee.S$))},L.\u0275dir=d.lG2({type:L,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(I,X){1&I&&d.NdJ("click",function(Xe){return X.onClick(Xe.button,Xe.ctrlKey,Xe.shiftKey,Xe.altKey,Xe.metaKey)}),2&I&&d.uIk("target",X.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[d.TTD]}),L})(),yh=(()=>{class L{get isActive(){return this._isActive}constructor(I,X,Se,Xe,Dt){this.router=I,this.element=X,this.renderer=Se,this.cdr=Xe,this.link=Dt,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new d.vpe,this.routerEventsSubscription=I.events.subscribe(_n=>{_n instanceof ma&&this.update()})}ngAfterContentInit(){(0,A.of)(this.links.changes,(0,A.of)(null)).pipe((0,F.J)()).subscribe(I=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const I=[...this.links.toArray(),this.link].filter(X=>!!X).map(X=>X.onChanges);this.linkInputChangesSubscription=(0,i.D)(I).pipe((0,F.J)()).subscribe(X=>{this._isActive!==this.isLinkActive(this.router)(X)&&this.update()})}set routerLinkActive(I){const X=Array.isArray(I)?I:I.split(" ");this.classes=X.filter(Se=>!!Se)}ngOnChanges(I){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const I=this.hasActiveLinks();this._isActive!==I&&(this._isActive=I,this.cdr.markForCheck(),this.classes.forEach(X=>{I?this.renderer.addClass(this.element.nativeElement,X):this.renderer.removeClass(this.element.nativeElement,X)}),I&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(I))})}isLinkActive(I){const X=function em(L){return!!L.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Se=>!!Se.urlTree&&I.isActive(Se.urlTree,X)}hasActiveLinks(){const I=this.isLinkActive(this.router);return this.link&&I(this.link)||this.links.some(I)}}return L.\u0275fac=function(I){return new(I||L)(d.Y36(Ya),d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(d.sBO),d.Y36(Dc,8))},L.\u0275dir=d.lG2({type:L,selectors:[["","routerLinkActive",""]],contentQueries:function(I,X,Se){if(1&I&&d.Suo(Se,Dc,5),2&I){let Xe;d.iGM(Xe=d.CRH())&&(X.links=Xe)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[d.TTD]}),L})();class Dl{}let xh=(()=>{class L{constructor(I,X,Se,Xe,Dt){this.router=I,this.injector=Se,this.preloadingStrategy=Xe,this.loader=Dt}setUpPreloading(){this.subscription=this.router.events.pipe((0,$e.h)(I=>I instanceof ma),(0,pt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(I,X){const Se=[];for(const Xe of X){Xe.providers&&!Xe._injector&&(Xe._injector=(0,d.MMx)(Xe.providers,I,`Route: ${Xe.path}`));const Dt=Xe._injector??I,_n=Xe._loadedInjector??Dt;(Xe.loadChildren&&!Xe._loadedRoutes&&void 0===Xe.canLoad||Xe.loadComponent&&!Xe._loadedComponent)&&Se.push(this.preloadConfig(Dt,Xe)),(Xe.children||Xe._loadedRoutes)&&Se.push(this.processRoutes(_n,Xe.children??Xe._loadedRoutes))}return(0,i.D)(Se).pipe((0,F.J)())}preloadConfig(I,X){return this.preloadingStrategy.preload(X,()=>{let Se;Se=X.loadChildren&&void 0===X.canLoad?this.loader.loadChildren(I,X):(0,A.of)(null);const Xe=Se.pipe((0,Ge.zg)(Dt=>null===Dt?(0,A.of)(void 0):(X._loadedRoutes=Dt.routes,X._loadedInjector=Dt.injector,this.processRoutes(Dt.injector??I,Dt.routes))));if(X.loadComponent&&!X._loadedComponent){const Dt=this.loader.loadComponent(X);return(0,i.D)([Xe,Dt]).pipe((0,F.J)())}return Xe})}}return L.\u0275fac=function(I){return new(I||L)(d.LFG(Ya),d.LFG(d.Sil),d.LFG(d.lqb),d.LFG(Dl),d.LFG(es))},L.\u0275prov=d.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const wh=new d.OlP("");let Ch=(()=>{class L{constructor(I,X,Se,Xe,Dt={}){this.urlSerializer=I,this.transitions=X,this.viewportScroller=Se,this.zone=Xe,this.options=Dt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Dt.scrollPositionRestoration=Dt.scrollPositionRestoration||"disabled",Dt.anchorScrolling=Dt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(I=>{I instanceof Mr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=I.navigationTrigger,this.restoredId=I.restoredState?I.restoredState.navigationId:0):I instanceof ma&&(this.lastId=I.id,this.scheduleScrollEvent(I,this.urlSerializer.parse(I.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(I=>{I instanceof va&&(I.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(I.position):I.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(I.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(I,X){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new va(I,"popstate"===this.lastSource?this.store[this.restoredId]:null,X))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return L.\u0275fac=function(I){d.$Z()},L.\u0275prov=d.Yz7({token:L,factory:L.\u0275fac}),L})();var wo=(()=>((wo=wo||{})[wo.COMPLETE=0]="COMPLETE",wo[wo.FAILED=1]="FAILED",wo[wo.REDIRECTING=2]="REDIRECTING",wo))();const Po=!1;function Bs(L,H){return{\u0275kind:L,\u0275providers:H}}const Ql=new d.OlP("",{providedIn:"root",factory:()=>!1});function fg(){const L=(0,d.f3M)(d.zs3);return H=>{const I=L.get(d.z2F);if(H!==I.components[0])return;const X=L.get(Ya),Se=L.get(mg);1===L.get(Th)&&X.initialNavigation(),L.get(Iv,null,d.XFs.Optional)?.setUpPreloading(),L.get(wh,null,d.XFs.Optional)?.init(),X.resetRootComponentType(I.componentTypes[0]),Se.closed||(Se.next(),Se.complete(),Se.unsubscribe())}}const mg=new d.OlP(Po?"bootstrap done indicator":"",{factory:()=>new ie.xQ}),Th=new d.OlP(Po?"initial navigation":"",{providedIn:"root",factory:()=>1});function kv(){let L=[];return L=Po?[{provide:d.Xts,multi:!0,useFactory:()=>{const H=(0,d.f3M)(Ya);return()=>H.events.subscribe(I=>{console.group?.(`Router Event: ${I.constructor.name}`),console.log(function gl(L){if(!("type"in L))return`Unknown Router Event: ${L.constructor.name}`;switch(L.type){case 14:return`ActivationEnd(path: '${L.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${L.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${L.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${L.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${L.id}, url: '${L.url}', urlAfterRedirects: '${L.urlAfterRedirects}', state: ${L.state}, shouldActivate: ${L.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${L.id}, url: '${L.url}', urlAfterRedirects: '${L.urlAfterRedirects}', state: ${L.state})`;case 2:return`NavigationCancel(id: ${L.id}, url: '${L.url}')`;case 16:return`NavigationSkipped(id: ${L.id}, url: '${L.url}')`;case 1:return`NavigationEnd(id: ${L.id}, url: '${L.url}', urlAfterRedirects: '${L.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${L.id}, url: '${L.url}', error: ${L.error})`;case 0:return`NavigationStart(id: ${L.id}, url: '${L.url}')`;case 6:return`ResolveEnd(id: ${L.id}, url: '${L.url}', urlAfterRedirects: '${L.urlAfterRedirects}', state: ${L.state})`;case 5:return`ResolveStart(id: ${L.id}, url: '${L.url}', urlAfterRedirects: '${L.urlAfterRedirects}', state: ${L.state})`;case 10:return`RouteConfigLoadEnd(path: ${L.route.path})`;case 9:return`RouteConfigLoadStart(path: ${L.route.path})`;case 4:return`RoutesRecognized(id: ${L.id}, url: '${L.url}', urlAfterRedirects: '${L.urlAfterRedirects}', state: ${L.state})`;case 15:return`Scroll(anchor: '${L.anchor}', position: '${L.position?`${L.position[0]}, ${L.position[1]}`:null}')`}}(I)),console.log(I),console.groupEnd?.()})}}]:[],Bs(1,L)}const Iv=new d.OlP(Po?"router preloader":"");function cu(L){return Bs(0,[{provide:Iv,useExisting:xh},{provide:Dl,useExisting:L}])}const Ec=!1,im=new d.OlP(Ec?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),Pr=[Ee.Ye,{provide:de,useClass:q},Ya,to,{provide:mo,useFactory:function Dh(L){return L.routerState.root},deps:[Ya]},es,Ec?{provide:Ql,useValue:!0}:[]];function Mc(){return new d.PXZ("Router",Ya)}let rm=(()=>{class L{constructor(I){}static forRoot(I,X){return{ngModule:L,providers:[Pr,Ec&&X?.enableTracing?kv().\u0275providers:[],{provide:yo,multi:!0,useValue:I},{provide:im,useFactory:_g,deps:[[Ya,new d.FiY,new d.tp0]]},{provide:wc,useValue:X||{}},X?.useHash?{provide:Ee.S$,useClass:Ee.Do}:{provide:Ee.S$,useClass:Ee.b0},{provide:wh,useFactory:()=>{const L=(0,d.f3M)(Ee.EM),H=(0,d.f3M)(d.R0b),I=(0,d.f3M)(wc),X=(0,d.f3M)(xc),Se=(0,d.f3M)(de);return I.scrollOffset&&L.setOffset(I.scrollOffset),new Ch(Se,X,L,H,I)}},X?.preloadingStrategy?cu(X.preloadingStrategy).\u0275providers:[],{provide:d.PXZ,multi:!0,useFactory:Mc},X?.initialNavigation?am(X):[],[{provide:vg,useFactory:fg},{provide:d.tb,multi:!0,useExisting:vg}]]}}static forChild(I){return{ngModule:L,providers:[{provide:yo,multi:!0,useValue:I}]}}}return L.\u0275fac=function(I){return new(I||L)(d.LFG(im,8))},L.\u0275mod=d.oAB({type:L}),L.\u0275inj=d.cJS({imports:[Qo]}),L})();function _g(L){if(Ec&&L)throw new d.vHH(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function am(L){return["disabled"===L.initialNavigation?Bs(3,[{provide:d.ip1,multi:!0,useFactory:()=>{const H=(0,d.f3M)(Ya);return()=>{H.setUpLocationChangeListener()}}},{provide:Th,useValue:2}]).\u0275providers:[],"enabledBlocking"===L.initialNavigation?Bs(2,[{provide:Th,useValue:0},{provide:d.ip1,multi:!0,deps:[d.zs3],useFactory:H=>{const I=H.get(Ee.V_,Promise.resolve());return()=>I.then(()=>new Promise(X=>{const Se=H.get(Ya),Xe=H.get(mg);(function Tc(L,H){L.events.pipe((0,$e.h)(I=>I instanceof ma||I instanceof Pa||I instanceof ga||I instanceof pa),(0,ue.U)(I=>I instanceof ma||I instanceof pa?wo.COMPLETE:I instanceof Pa&&(0===I.code||1===I.code)?wo.REDIRECTING:wo.FAILED),(0,$e.h)(I=>I!==wo.REDIRECTING),(0,Qe.q)(1)).subscribe(()=>{H()})})(Se,()=>{X(!0)}),H.get(xc).afterPreactivation=()=>(X(!0),Xe.closed?(0,A.of)(void 0):Xe),Se.initialNavigation()}))}}]).\u0275providers:[]]}const vg=new d.OlP(Ec?"Router Initializer":"")},3750:(vn,_t,y)=>{"use strict";y.d(_t,{B:()=>J,h:()=>b});var Y,W,d=y(7582),A=(y(7509),y(5216)),p=y(7062),v=y(9545),k=y(5355),b=function(){function Z(){this.known=new(v.sy?WeakSet:Set),this.pool=new A.B(v.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return Z.prototype.isKnown=function(G){return(0,p.s)(G)&&this.known.has(G)},Z.prototype.pass=function(G){if((0,p.s)(G)){var ie=function f(Z){return(0,p.s)(Z)?(0,k.k)(Z)?Z.slice(0):(0,d.pi)({__proto__:Object.getPrototypeOf(Z)},Z):Z}(G);return this.passes.set(ie,G),ie}return G},Z.prototype.admit=function(G){var ie=this;if((0,p.s)(G)){var Ee=this.passes.get(G);if(Ee)return Ee;switch(Object.getPrototypeOf(G)){case Array.prototype:if(this.known.has(G))return G;var Ze=G.map(this.admit,this);return(Qe=this.pool.lookupArray(Ze)).array||(this.known.add(Qe.array=Ze),__DEV__&&Object.freeze(Ze)),Qe.array;case null:case Object.prototype:if(this.known.has(G))return G;var vt=Object.getPrototypeOf(G),$e=[vt],Ge=this.sortedKeys(G);$e.push(Ge.json);var Qe,Ce=$e.length;if(Ge.sorted.forEach(function(re){$e.push(ie.admit(G[re]))}),!(Qe=this.pool.lookupArray($e)).object){var ke=Qe.object=Object.create(vt);this.known.add(ke),Ge.sorted.forEach(function(re,ye){ke[re]=$e[Ce+ye]}),__DEV__&&Object.freeze(ke)}return Qe.object}}return G},Z.prototype.sortedKeys=function(G){var ie=Object.keys(G),Ee=this.pool.lookupArray(ie);if(!Ee.keys){ie.sort();var ue=JSON.stringify(ie);(Ee.keys=this.keysByJSON.get(ue))||this.keysByJSON.set(ue,Ee.keys={sorted:ie,json:ue})}return Ee.keys},Z}(),J=Object.assign(function(Z){if((0,p.s)(Z)){void 0===Y&&B();var G=Y.admit(Z),ie=W.get(G);return void 0===ie&&W.set(G,ie=JSON.stringify(G)),ie}return JSON.stringify(Z)},{reset:B});function B(){Y=new b,W=new(v.mr?WeakMap:Map)}},6430:(vn,_t,y)=>{"use strict";y.d(_t,{QS:()=>b,_v:()=>f,ab:()=>A,li:()=>k});var d=y(4763),A=new(y(23).g7),p=new WeakMap;function v(Y){var W=p.get(Y);return W||p.set(Y,W={vars:new Set,dep:(0,d.dP)()}),W}function k(Y){v(Y).vars.forEach(function(W){return W.forgetCache(Y)})}function f(Y){v(Y).vars.forEach(function(W){return W.attachCache(Y)})}function b(Y){var W=new Set,B=new Set,Z=function(ie){if(arguments.length>0){if(Y!==ie){Y=ie,W.forEach(function(Ze){v(Ze).dep.dirty(Z),function J(Y){Y.broadcastWatches&&Y.broadcastWatches()}(Ze)});var Ee=Array.from(B);B.clear(),Ee.forEach(function(Ze){return Ze(Y)})}}else{var ue=A.getValue();ue&&(G(ue),v(ue).dep(Z))}return Y};Z.onNextChange=function(ie){return B.add(ie),function(){B.delete(ie)}};var G=Z.attachCache=function(ie){return W.add(ie),v(ie).vars.add(Z),Z};return Z.forgetCache=function(ie){return W.delete(ie)},Z}},484:(vn,_t,y)=>{"use strict";y.d(_t,{i:()=>B});var d=y(7582),i=y(7509),A=y(4302),v=y(591);function b(Z,G){return G?G(Z):A.y.of()}function J(Z){return"function"==typeof Z?new B(Z):Z}function Y(Z){return Z.request.length<=1}var W=function(Z){function G(ie,Ee){var ue=Z.call(this,ie)||this;return ue.link=Ee,ue}return(0,d.ZT)(G,Z),G}(Error),B=function(){function Z(G){G&&(this.request=G)}return Z.empty=function(){return new Z(function(){return A.y.of()})},Z.from=function(G){return 0===G.length?Z.empty():G.map(J).reduce(function(ie,Ee){return ie.concat(Ee)})},Z.split=function(G,ie,Ee){var ue=J(ie),Ze=J(Ee||new Z(b));return Y(ue)&&Y(Ze)?new Z(function(Qe){return G(Qe)?ue.request(Qe)||A.y.of():Ze.request(Qe)||A.y.of()}):new Z(function(Qe,vt){return G(Qe)?ue.request(Qe,vt)||A.y.of():Ze.request(Qe,vt)||A.y.of()})},Z.execute=function(G,ie){return G.request(function p(Z,G){var ie=(0,d.pi)({},Z);return Object.defineProperty(G,"setContext",{enumerable:!1,value:function(Ze){ie=(0,d.pi)((0,d.pi)({},ie),"function"==typeof Ze?Ze(ie):Ze)}}),Object.defineProperty(G,"getContext",{enumerable:!1,value:function(){return(0,d.pi)({},ie)}}),G}(ie.context,function k(Z){var G={variables:Z.variables||{},extensions:Z.extensions||{},operationName:Z.operationName,query:Z.query};return G.operationName||(G.operationName="string"!=typeof G.query?(0,v.rY)(G.query)||void 0:""),G}(function f(Z){for(var G=["query","operationName","variables","extensions","context"],ie=0,Ee=Object.keys(Z);ie<Ee.length;ie++){var ue=Ee[ie];if(G.indexOf(ue)<0)throw __DEV__?new i.ej("illegal argument: ".concat(ue)):new i.ej(27)}return Z}(ie))))||A.y.of()},Z.concat=function(G,ie){var Ee=J(G);if(Y(Ee))return __DEV__&&i.kG.warn(new W("You are calling concat on a terminating link, which will have no effect",Ee)),Ee;var ue=J(ie);return Y(ue)?new Z(function(Ze){return Ee.request(Ze,function(Qe){return ue.request(Qe)||A.y.of()})||A.y.of()}):new Z(function(Ze,Qe){return Ee.request(Ze,function(vt){return ue.request(vt,Qe)||A.y.of()})||A.y.of()})},Z.prototype.split=function(G,ie,Ee){return this.concat(Z.split(G,ie,Ee||new Z(b)))},Z.prototype.concat=function(G){return Z.concat(this,G)},Z.prototype.request=function(G,ie){throw __DEV__?new i.ej("request is not implemented"):new i.ej(22)},Z.prototype.onError=function(G,ie){if(ie&&ie.error)return ie.error(G),!1;throw G},Z.prototype.setOnError=function(G){return this.onError=G,this},Z}()},5355:(vn,_t,y)=>{"use strict";y.d(_t,{O:()=>i,k:()=>d});var d=Array.isArray;function i(A){return Array.isArray(A)&&A.length>0}},9545:(vn,_t,y)=>{"use strict";y.d(_t,{DN:()=>v,aS:()=>p,mr:()=>i,sy:()=>A});var d=y(7509),i="function"==typeof WeakMap&&"ReactNative"!==(0,d.wY)(function(){return navigator.product}),A="function"==typeof WeakSet,p="function"==typeof Symbol&&"function"==typeof Symbol.for,v=p&&Symbol.asyncIterator;(0,d.wY)(function(){return window.document.createElement}),(0,d.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})},396:(vn,_t,y)=>{"use strict";y.d(_t,{X:()=>i});var d=Object.prototype.toString;function i(p){return A(p)}function A(p,v){switch(d.call(p)){case"[object Array]":if((v=v||new Map).has(p))return v.get(p);var k=p.slice(0);return v.set(p,k),k.forEach(function(b,J){k[J]=A(b,v)}),k;case"[object Object]":if((v=v||new Map).has(p))return v.get(p);var f=Object.create(Object.getPrototypeOf(p));return v.set(p,f),Object.keys(p).forEach(function(b){f[b]=A(p[b],v)}),f;default:return p}}},3950:(vn,_t,y)=>{"use strict";function d(){for(var i=[],A=0;A<arguments.length;A++)i[A]=arguments[A];var p=Object.create(null);return i.forEach(function(v){v&&Object.keys(v).forEach(function(k){var f=v[k];void 0!==f&&(p[k]=f)})}),p}y.d(_t,{o:()=>d})},8561:(vn,_t,y)=>{"use strict";y.d(_t,{X:()=>i});var d=new Map;function i(A){var p=d.get(A)||1;return d.set(A,p+1),"".concat(A,":").concat(p,":").concat(Math.random().toString(36).slice(2))}},7773:(vn,_t,y)=>{"use strict";y.d(_t,{Ee:()=>p,bw:()=>v,w0:()=>f});var d=y(7582),i=y(7062),A=Object.prototype.hasOwnProperty;function p(){for(var b=[],J=0;J<arguments.length;J++)b[J]=arguments[J];return v(b)}function v(b){var J=b[0]||{},Y=b.length;if(Y>1)for(var W=new f,B=1;B<Y;++B)J=W.merge(J,b[B]);return J}var k=function(b,J,Y){return this.merge(b[Y],J[Y])},f=function(){function b(J){void 0===J&&(J=k),this.reconciler=J,this.isObject=i.s,this.pastCopies=new Set}return b.prototype.merge=function(J,Y){for(var W=this,B=[],Z=2;Z<arguments.length;Z++)B[Z-2]=arguments[Z];return(0,i.s)(Y)&&(0,i.s)(J)?(Object.keys(Y).forEach(function(G){if(A.call(J,G)){var ie=J[G];if(Y[G]!==ie){var Ee=W.reconciler.apply(W,(0,d.ev)([J,Y,G],B,!1));Ee!==ie&&((J=W.shallowCopyForMerge(J))[G]=Ee)}}else(J=W.shallowCopyForMerge(J))[G]=Y[G]}),J):Y},b.prototype.shallowCopyForMerge=function(J){return(0,i.s)(J)&&(this.pastCopies.has(J)||(J=Array.isArray(J)?J.slice(0):(0,d.pi)({__proto__:Object.getPrototypeOf(J)},J),this.pastCopies.add(J))),J},b}()},7062:(vn,_t,y)=>{"use strict";function d(i){return null!==i&&"object"==typeof i}y.d(_t,{s:()=>d})},7509:(vn,_t,y)=>{"use strict";y.d(_t,{ej:()=>v,kG:()=>k,wY:()=>B});var d=y(7582),i="Invariant Violation",A=Object.setPrototypeOf,p=void 0===A?function(re,ye){return re.__proto__=ye,re}:A,v=function(re){function ye(Oe){void 0===Oe&&(Oe=i);var Ae=re.call(this,"number"==typeof Oe?i+": "+Oe+" (see https://github.com/apollographql/invariant-packages)":Oe)||this;return Ae.framesToPop=1,Ae.name=i,p(Ae,ye.prototype),Ae}return(0,d.ZT)(ye,re),ye}(Error);function k(re,ye){if(!re)throw new v(ye)}var re,f=["debug","log","warn","error","silent"],b=f.indexOf("log");function J(re){return function(){if(f.indexOf(re)>=b)return(console[re]||console.log).apply(console,arguments)}}function B(re){try{return re()}catch{}}(re=k||(k={})).debug=J("debug"),re.log=J("log"),re.warn=J("warn"),re.error=J("error");const Z=B(function(){return globalThis})||B(function(){return window})||B(function(){return self})||B(function(){return global})||B(function(){return B.constructor("return this")()});var G="__",ie=[G,G].join("DEV");const ue=function Ee(){try{return Boolean(__DEV__)}catch{return Object.defineProperty(Z,ie,{value:"production"!==B(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),Z[ie]}}();function Ze(re){try{return re()}catch{}}var Qe=Ze(function(){return globalThis})||Ze(function(){return window})||Ze(function(){return self})||Ze(function(){return global})||Ze(function(){return Ze.constructor("return this")()}),vt=!1;!function $e(){Qe&&!Ze(function(){return"production"})&&!Ze(function(){return process})&&(Object.defineProperty(Qe,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),vt=!0)}(),y(9826),function ke(){(function Ge(){vt&&(delete Qe.process,vt=!1)})()}(),function me(){__DEV__?k("boolean"==typeof ue,ue):k("boolean"==typeof ue,39)}()},9722:(vn,_t,y)=>{"use strict";y.d(_t,{FS:()=>f,LZ:()=>A,mj:()=>b});var d=y(7509),i=y(1335);function A(W,B){var Z=W.directives;return!Z||!Z.length||function Y(W){var B=[];return W&&W.length&&W.forEach(function(Z){if(function J(W){var B=W.name.value;return"skip"===B||"include"===B}(Z)){var G=Z.arguments,ie=Z.name.value;__DEV__?(0,d.kG)(G&&1===G.length,"Incorrect number of arguments for the @".concat(ie," directive.")):(0,d.kG)(G&&1===G.length,41);var Ee=G[0];__DEV__?(0,d.kG)(Ee.name&&"if"===Ee.name.value,"Invalid argument for the @".concat(ie," directive.")):(0,d.kG)(Ee.name&&"if"===Ee.name.value,42);var ue=Ee.value;__DEV__?(0,d.kG)(ue&&("Variable"===ue.kind||"BooleanValue"===ue.kind),"Argument for the @".concat(ie," directive must be a variable or a boolean value.")):(0,d.kG)(ue&&("Variable"===ue.kind||"BooleanValue"===ue.kind),43),B.push({directive:Z,ifArgument:Ee})}}),B}(Z).every(function(G){var ie=G.directive,Ee=G.ifArgument,ue=!1;return"Variable"===Ee.value.kind?(ue=B&&B[Ee.value.name.value],__DEV__?(0,d.kG)(void 0!==ue,"Invalid variable referenced in @".concat(ie.name.value," directive.")):(0,d.kG)(void 0!==ue,40)):ue=Ee.value.value,"skip"===ie.name.value?!ue:ue})}function f(W,B,Z){var G=new Set(W),ie=G.size;return(0,i.Vn)(B,{Directive:function(Ee){if(G.delete(Ee.name.value)&&(!Z||!G.size))return i.$_}}),Z?!G.size:G.size<ie}function b(W){return W&&f(["client","export"],W,!0)}},9661:(vn,_t,y)=>{"use strict";y.d(_t,{F:()=>p,Yk:()=>A,hi:()=>v});var d=y(7582),i=y(7509);function A(k,f){var b=f,J=[];return k.definitions.forEach(function(W){if("OperationDefinition"===W.kind)throw __DEV__?new i.ej("Found a ".concat(W.operation," operation").concat(W.name?" named '".concat(W.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new i.ej(44);"FragmentDefinition"===W.kind&&J.push(W)}),typeof b>"u"&&(__DEV__?(0,i.kG)(1===J.length,"Found ".concat(J.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,i.kG)(1===J.length,45),b=J[0].name.value),(0,d.pi)((0,d.pi)({},k),{definitions:(0,d.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:b}}]}}],k.definitions,!0)})}function p(k){void 0===k&&(k=[]);var f={};return k.forEach(function(b){f[b.name.value]=b}),f}function v(k,f){switch(k.kind){case"InlineFragment":return k;case"FragmentSpread":var b=k.name.value;if("function"==typeof f)return f(b);var J=f&&f[b];return __DEV__?(0,i.kG)(J,"No fragment named ".concat(b)):(0,i.kG)(J,46),J||null;default:return null}}},591:(vn,_t,y)=>{"use strict";y.d(_t,{$H:()=>p,A$:()=>A,O4:()=>Y,iW:()=>f,kU:()=>k,p$:()=>J,pD:()=>b,rY:()=>v});var d=y(7509),i=y(7634);function A(W){__DEV__?(0,d.kG)(W&&"Document"===W.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,d.kG)(W&&"Document"===W.kind,47);var B=W.definitions.filter(function(Z){return"FragmentDefinition"!==Z.kind}).map(function(Z){if("OperationDefinition"!==Z.kind)throw __DEV__?new d.ej('Schema type definitions not allowed in queries. Found: "'.concat(Z.kind,'"')):new d.ej(48);return Z});return __DEV__?(0,d.kG)(B.length<=1,"Ambiguous GraphQL document: contains ".concat(B.length," operations")):(0,d.kG)(B.length<=1,49),W}function p(W){return A(W),W.definitions.filter(function(B){return"OperationDefinition"===B.kind})[0]}function v(W){return W.definitions.filter(function(B){return"OperationDefinition"===B.kind&&!!B.name}).map(function(B){return B.name.value})[0]||null}function k(W){return W.definitions.filter(function(B){return"FragmentDefinition"===B.kind})}function f(W){var B=p(W);return __DEV__?(0,d.kG)(B&&"query"===B.operation,"Must contain a query definition."):(0,d.kG)(B&&"query"===B.operation,50),B}function b(W){__DEV__?(0,d.kG)("Document"===W.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,d.kG)("Document"===W.kind,51),__DEV__?(0,d.kG)(W.definitions.length<=1,"Fragment must have exactly one definition."):(0,d.kG)(W.definitions.length<=1,52);var B=W.definitions[0];return __DEV__?(0,d.kG)("FragmentDefinition"===B.kind,"Must be a fragment definition."):(0,d.kG)("FragmentDefinition"===B.kind,53),B}function J(W){A(W);for(var B,Z=0,G=W.definitions;Z<G.length;Z++){var ie=G[Z];if("OperationDefinition"===ie.kind){var Ee=ie.operation;if("query"===Ee||"mutation"===Ee||"subscription"===Ee)return ie}"FragmentDefinition"===ie.kind&&!B&&(B=ie)}if(B)return B;throw __DEV__?new d.ej("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new d.ej(54)}function Y(W){var B=Object.create(null),Z=W&&W.variableDefinitions;return Z&&Z.length&&Z.forEach(function(G){G.defaultValue&&(0,i.vb)(B,G.variable.name,G.defaultValue)}),B}},7634:(vn,_t,y)=>{"use strict";y.d(_t,{Ao:()=>re,JW:()=>k,My:()=>me,NC:()=>Ge,PT:()=>Qe,Yk:()=>v,kQ:()=>p,qw:()=>ke,u2:()=>Ce,vb:()=>Ee,vf:()=>ue});var d=y(7509),i=y(7062),A=y(9661);function p(ye){return{__ref:String(ye)}}function v(ye){return Boolean(ye&&"object"==typeof ye&&"string"==typeof ye.__ref)}function k(ye){return(0,i.s)(ye)&&"Document"===ye.kind&&Array.isArray(ye.definitions)}function Ee(ye,Oe,Ae,tt){if(function J(ye){return"IntValue"===ye.kind}(Ae)||function Y(ye){return"FloatValue"===ye.kind}(Ae))ye[Oe.value]=Number(Ae.value);else if(function b(ye){return"BooleanValue"===ye.kind}(Ae)||function f(ye){return"StringValue"===ye.kind}(Ae))ye[Oe.value]=Ae.value;else if(function B(ye){return"ObjectValue"===ye.kind}(Ae)){var ot={};Ae.fields.map(function(pt){return Ee(ot,pt.name,pt.value,tt)}),ye[Oe.value]=ot}else if(function W(ye){return"Variable"===ye.kind}(Ae))ye[Oe.value]=(tt||{})[Ae.name.value];else if(function Z(ye){return"ListValue"===ye.kind}(Ae))ye[Oe.value]=Ae.values.map(function(pt){var ft={};return Ee(ft,Oe,pt,tt),ft[Oe.value]});else if(function G(ye){return"EnumValue"===ye.kind}(Ae))ye[Oe.value]=Ae.value;else{if(!function ie(ye){return"NullValue"===ye.kind}(Ae))throw __DEV__?new d.ej('The inline argument "'.concat(Oe.value,'" of kind "').concat(Ae.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new d.ej(55);ye[Oe.value]=null}}function ue(ye,Oe){var Ae=null;ye.directives&&(Ae={},ye.directives.forEach(function(ot){Ae[ot.name.value]={},ot.arguments&&ot.arguments.forEach(function(at){return Ee(Ae[ot.name.value],at.name,at.value,Oe)})}));var tt=null;return ye.arguments&&ye.arguments.length&&(tt={},ye.arguments.forEach(function(ot){return Ee(tt,ot.name,ot.value,Oe)})),Qe(ye.name.value,tt,Ae)}var Ze=["connection","include","skip","client","rest","export"],Qe=Object.assign(function(ye,Oe,Ae){if(Oe&&Ae&&Ae.connection&&Ae.connection.key){if(Ae.connection.filter&&Ae.connection.filter.length>0){var tt=Ae.connection.filter?Ae.connection.filter:[];tt.sort();var ot={};return tt.forEach(function(ft){ot[ft]=Oe[ft]}),"".concat(Ae.connection.key,"(").concat(vt(ot),")")}return Ae.connection.key}var at=ye;if(Oe){var pt=vt(Oe);at+="(".concat(pt,")")}return Ae&&Object.keys(Ae).forEach(function(ft){-1===Ze.indexOf(ft)&&(Ae[ft]&&Object.keys(Ae[ft]).length?at+="@".concat(ft,"(").concat(vt(Ae[ft]),")"):at+="@".concat(ft))}),at},{setStringify:function(ye){var Oe=vt;return vt=ye,Oe}}),vt=function(Oe){return JSON.stringify(Oe,$e)};function $e(ye,Oe){return(0,i.s)(Oe)&&!Array.isArray(Oe)&&(Oe=Object.keys(Oe).sort().reduce(function(Ae,tt){return Ae[tt]=Oe[tt],Ae},{})),Oe}function Ge(ye,Oe){if(ye.arguments&&ye.arguments.length){var Ae={};return ye.arguments.forEach(function(tt){return Ee(Ae,tt.name,tt.value,Oe)}),Ae}return null}function Ce(ye){return ye.alias?ye.alias.value:ye.name.value}function ke(ye,Oe,Ae){for(var tt,ot=0,at=Oe.selections;ot<at.length;ot++)if(me(pt=at[ot])){if("__typename"===pt.name.value)return ye[Ce(pt)]}else tt?tt.push(pt):tt=[pt];if("string"==typeof ye.__typename)return ye.__typename;if(tt)for(var ft=0,Et=tt;ft<Et.length;ft++){var pt,be=ke(ye,(0,A.hi)(pt=Et[ft],Ae).selectionSet,Ae);if("string"==typeof be)return be}}function me(ye){return"Field"===ye.kind}function re(ye){return"InlineFragment"===ye.kind}},3690:(vn,_t,y)=>{"use strict";y.d(_t,{Fo:()=>ue,Gw:()=>ie,aL:()=>Ce,ob:()=>ke});var d=y(7582),i=y(7509),A=y(2289),p=y(1335),v=y(591),k=y(7634),f=y(9661),b=y(5355),J={kind:A.h.FIELD,name:{kind:A.h.NAME,value:"__typename"}};function Y(me,re){return!me||me.selectionSet.selections.every(function(ye){return ye.kind===A.h.FRAGMENT_SPREAD&&Y(re[ye.name.value],re)})}function W(me){return Y((0,v.$H)(me)||(0,v.pD)(me),(0,f.F)((0,v.kU)(me)))?null:me}function Z(me){var re=new Map;return function(Oe){void 0===Oe&&(Oe=me);var Ae=re.get(Oe);return Ae||re.set(Oe,Ae={variables:new Set,fragmentSpreads:new Set}),Ae}}function G(me,re){for(var ye=Z(""),Oe=Z(""),Ae=function(we){for(var ce=0,ve=void 0;ce<we.length&&(ve=we[ce]);++ce)if(!(0,b.k)(ve)){if(ve.kind===A.h.OPERATION_DEFINITION)return ye(ve.name&&ve.name.value);if(ve.kind===A.h.FRAGMENT_DEFINITION)return Oe(ve.name.value)}return __DEV__&&i.kG.error("Could not find operation or fragment"),null},tt=0,ot=re.definitions.length-1;ot>=0;--ot)re.definitions[ot].kind===A.h.OPERATION_DEFINITION&&++tt;var at=function B(me){var re=new Set,ye=[];return me.forEach(function(Oe){Oe.name?re.add(Oe.name):Oe.test&&ye.push(Oe.test)}),function(Oe){return re.has(Oe.name.value)||ye.some(function(Ae){return Ae(Oe)})}}(me),pt=me.some(function(we){return we.remove}),ft=function(we){return pt&&we&&we.some(at)},Et=new Map,be=!1,Pe={enter:function(we){if(ft(we.directives))return be=!0,null}},je=(0,p.Vn)(re,{Field:Pe,InlineFragment:Pe,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(we,ce,ve,se,S){var F=Ae(S);F&&F.variables.add(we.name.value)}},FragmentSpread:{enter:function(we,ce,ve,se,S){if(ft(we.directives))return be=!0,null;var F=Ae(S);F&&F.fragmentSpreads.add(we.name.value)}},FragmentDefinition:{enter:function(we,ce,ve,se){Et.set(JSON.stringify(se),we)},leave:function(we,ce,ve,se){return we===Et.get(JSON.stringify(se))?we:tt>0&&we.selectionSet.selections.every(function(F){return F.kind===A.h.FIELD&&"__typename"===F.name.value})?(Oe(we.name.value).removed=!0,be=!0,null):void 0}},Directive:{leave:function(we){if(at(we))return be=!0,null}}});if(!be)return re;var dt=function(we){return we.transitiveVars||(we.transitiveVars=new Set(we.variables),we.removed||we.fragmentSpreads.forEach(function(ce){dt(Oe(ce)).transitiveVars.forEach(function(ve){we.transitiveVars.add(ve)})})),we},et=new Set;je.definitions.forEach(function(we){we.kind===A.h.OPERATION_DEFINITION?dt(ye(we.name&&we.name.value)).fragmentSpreads.forEach(function(ce){et.add(ce)}):we.kind===A.h.FRAGMENT_DEFINITION&&0===tt&&!Oe(we.name.value).removed&&et.add(we.name.value)}),et.forEach(function(we){dt(Oe(we)).fragmentSpreads.forEach(function(ce){et.add(ce)})});var Re={enter:function(we){if(function(we){return!(et.has(we)&&!Oe(we).removed)}(we.name.value))return null}};return W((0,p.Vn)(je,{FragmentSpread:Re,FragmentDefinition:Re,OperationDefinition:{leave:function(we){if(we.variableDefinitions){var ce=dt(ye(we.name&&we.name.value)).transitiveVars;if(ce.size<we.variableDefinitions.length)return(0,d.pi)((0,d.pi)({},we),{variableDefinitions:we.variableDefinitions.filter(function(ve){return ce.has(ve.variable.name.value)})})}}}}))}var ie=Object.assign(function(me){return(0,p.Vn)(me,{SelectionSet:{enter:function(re,ye,Oe){if(!Oe||Oe.kind!==A.h.OPERATION_DEFINITION){var Ae=re.selections;if(Ae&&!Ae.some(function(at){return(0,k.My)(at)&&("__typename"===at.name.value||0===at.name.value.lastIndexOf("__",0))})){var ot=Oe;if(!((0,k.My)(ot)&&ot.directives&&ot.directives.some(function(at){return"export"===at.name.value})))return(0,d.pi)((0,d.pi)({},re),{selections:(0,d.ev)((0,d.ev)([],Ae,!0),[J],!1)})}}}}})},{added:function(me){return me===J}}),Ee={test:function(me){var re="connection"===me.name.value;return re&&(!me.arguments||!me.arguments.some(function(ye){return"key"===ye.name.value}))&&__DEV__&&i.kG.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),re}};function ue(me){return G([Ee],(0,v.A$)(me))}function Ce(me){return"query"===(0,v.p$)(me).operation?me:(0,p.Vn)(me,{OperationDefinition:{enter:function(Ae){return(0,d.pi)((0,d.pi)({},Ae),{operation:"query"})}}})}function ke(me){return(0,v.A$)(me),G([{test:function(ye){return"client"===ye.name.value},remove:!0}],me)}},1266:(vn,_t,y)=>{"use strict";y.d(_t,{Pi:()=>dt,Zw:()=>$e,aw:()=>gt,X$:()=>et,sK:()=>je});var d=y(4650),i=y(1086),A=y(4715),p=y(567),v=y(1221),k=y(8514),f=y(2986),b=y(8929),J=y(341),Y=y(2654),W=y(7770),B=y(5279),Z=y(5283);class G extends b.xQ{constructor(we=Number.POSITIVE_INFINITY,ce=Number.POSITIVE_INFINITY,ve){super(),this.scheduler=ve,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=we<1?1:we,this._windowTime=ce<1?1:ce,ce===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(we){if(!this.isStopped){const ce=this._events;ce.push(we),ce.length>this._bufferSize&&ce.shift()}super.next(we)}nextTimeWindow(we){this.isStopped||(this._events.push(new ie(this._getNow(),we)),this._trimBufferThenGetEvents()),super.next(we)}_subscribe(we){const ce=this._infiniteTimeWindow,ve=ce?this._events:this._trimBufferThenGetEvents(),se=this.scheduler,S=ve.length;let F;if(this.closed)throw new B.N;if(this.isStopped||this.hasError?F=Y.w.EMPTY:(this.observers.push(we),F=new Z.W(this,we)),se&&we.add(we=new W.ht(we,se)),ce)for(let V=0;V<S&&!we.closed;V++)we.next(ve[V]);else for(let V=0;V<S&&!we.closed;V++)we.next(ve[V].value);return this.hasError?we.error(this.thrownError):this.isStopped&&we.complete(),F}_getNow(){return(this.scheduler||J.c).now()}_trimBufferThenGetEvents(){const we=this._getNow(),ce=this._bufferSize,ve=this._windowTime,se=this._events,S=se.length;let F=0;for(;F<S&&!(we-se[F].time<ve);)F++;return S>ce&&(F=Math.max(F,S-ce)),F>0&&se.splice(0,F),se}}class ie{constructor(we,ce){this.time=we,this.value=ce}}function Ee(Re,we,ce){let ve;return ve=Re&&"object"==typeof Re?Re:{bufferSize:Re,windowTime:we,refCount:!1,scheduler:ce},se=>se.lift(function ue({bufferSize:Re=Number.POSITIVE_INFINITY,windowTime:we=Number.POSITIVE_INFINITY,refCount:ce,scheduler:ve}){let se,F,S=0,V=!1,ne=!1;return function(wt){let nn;S++,!se||V?(V=!1,se=new G(Re,we,ve),nn=se.subscribe(this),F=wt.subscribe({next(Jt){se.next(Jt)},error(Jt){V=!0,se.error(Jt)},complete(){ne=!0,F=void 0,se.complete()}}),ne&&(F=void 0)):nn=se.subscribe(this),this.add(()=>{S--,nn.unsubscribe(),nn=void 0,F&&!ne&&ce&&0===S&&(F.unsubscribe(),F=void 0,se=void 0)})}}(ve))}var Ze=y(4850),Qe=y(1406),vt=y(7545);class $e{}let Ge=(()=>{class Re extends $e{getTranslation(ce){return(0,i.of)({})}}return Re.\u0275fac=function(){let we;return function(ve){return(we||(we=d.n5z(Re)))(ve||Re)}}(),Re.\u0275prov=d.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class Ce{}let ke=(()=>{class Re{handle(ce){return ce.key}}return Re.\u0275fac=function(ce){return new(ce||Re)},Re.\u0275prov=d.Yz7({token:Re,factory:Re.\u0275fac}),Re})();function me(Re,we){if(Re===we)return!0;if(null===Re||null===we)return!1;if(Re!=Re&&we!=we)return!0;let se,S,F,ce=typeof Re;if(ce==typeof we&&"object"==ce){if(!Array.isArray(Re)){if(Array.isArray(we))return!1;for(S in F=Object.create(null),Re){if(!me(Re[S],we[S]))return!1;F[S]=!0}for(S in we)if(!(S in F)&&typeof we[S]<"u")return!1;return!0}if(!Array.isArray(we))return!1;if((se=Re.length)==we.length){for(S=0;S<se;S++)if(!me(Re[S],we[S]))return!1;return!0}}return!1}function re(Re){return typeof Re<"u"&&null!==Re}function ye(Re){return Re&&"object"==typeof Re&&!Array.isArray(Re)}function Oe(Re,we){let ce=Object.assign({},Re);return ye(Re)&&ye(we)&&Object.keys(we).forEach(ve=>{ye(we[ve])?ve in Re?ce[ve]=Oe(Re[ve],we[ve]):Object.assign(ce,{[ve]:we[ve]}):Object.assign(ce,{[ve]:we[ve]})}),ce}class Ae{}let tt=(()=>{class Re extends Ae{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(ce,ve){let se;return se="string"==typeof ce?this.interpolateString(ce,ve):"function"==typeof ce?this.interpolateFunction(ce,ve):ce,se}getValue(ce,ve){let se="string"==typeof ve?ve.split("."):[ve];ve="";do{ve+=se.shift(),!re(ce)||!re(ce[ve])||"object"!=typeof ce[ve]&&se.length?se.length?ve+=".":ce=void 0:(ce=ce[ve],ve="")}while(se.length);return ce}interpolateFunction(ce,ve){return ce(ve)}interpolateString(ce,ve){return ve?ce.replace(this.templateMatcher,(se,S)=>{let F=this.getValue(ve,S);return re(F)?F:se}):ce}}return Re.\u0275fac=function(){let we;return function(ve){return(we||(we=d.n5z(Re)))(ve||Re)}}(),Re.\u0275prov=d.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class ot{}let at=(()=>{class Re extends ot{compile(ce,ve){return ce}compileTranslations(ce,ve){return ce}}return Re.\u0275fac=function(){let we;return function(ve){return(we||(we=d.n5z(Re)))(ve||Re)}}(),Re.\u0275prov=d.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class pt{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new d.vpe,this.onLangChange=new d.vpe,this.onDefaultLangChange=new d.vpe}}const ft=new d.OlP("USE_STORE"),Et=new d.OlP("USE_DEFAULT_LANG"),be=new d.OlP("DEFAULT_LANGUAGE"),Pe=new d.OlP("USE_EXTEND");let je=(()=>{class Re{constructor(ce,ve,se,S,F,V=!0,ne=!1,De=!1,wt){this.store=ce,this.currentLoader=ve,this.compiler=se,this.parser=S,this.missingTranslationHandler=F,this.useDefaultLang=V,this.isolate=ne,this.extend=De,this.pending=!1,this._onTranslationChange=new d.vpe,this._onLangChange=new d.vpe,this._onDefaultLangChange=new d.vpe,this._langs=[],this._translations={},this._translationRequests={},wt&&this.setDefaultLang(wt)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(ce){this.isolate?this._defaultLang=ce:this.store.defaultLang=ce}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(ce){this.isolate?this._currentLang=ce:this.store.currentLang=ce}get langs(){return this.isolate?this._langs:this.store.langs}set langs(ce){this.isolate?this._langs=ce:this.store.langs=ce}get translations(){return this.isolate?this._translations:this.store.translations}set translations(ce){this.isolate?this._translations=ce:this.store.translations=ce}setDefaultLang(ce){if(ce===this.defaultLang)return;let ve=this.retrieveTranslations(ce);typeof ve<"u"?(null==this.defaultLang&&(this.defaultLang=ce),ve.pipe((0,f.q)(1)).subscribe(se=>{this.changeDefaultLang(ce)})):this.changeDefaultLang(ce)}getDefaultLang(){return this.defaultLang}use(ce){if(ce===this.currentLang)return(0,i.of)(this.translations[ce]);let ve=this.retrieveTranslations(ce);return typeof ve<"u"?(this.currentLang||(this.currentLang=ce),ve.pipe((0,f.q)(1)).subscribe(se=>{this.changeLang(ce)}),ve):(this.changeLang(ce),(0,i.of)(this.translations[ce]))}retrieveTranslations(ce){let ve;return(typeof this.translations[ce]>"u"||this.extend)&&(this._translationRequests[ce]=this._translationRequests[ce]||this.getTranslation(ce),ve=this._translationRequests[ce]),ve}getTranslation(ce){this.pending=!0;const ve=this.currentLoader.getTranslation(ce).pipe(Ee(1),(0,f.q)(1));return this.loadingTranslations=ve.pipe((0,Ze.U)(se=>this.compiler.compileTranslations(se,ce)),Ee(1),(0,f.q)(1)),this.loadingTranslations.subscribe({next:se=>{this.translations[ce]=this.extend&&this.translations[ce]?{...se,...this.translations[ce]}:se,this.updateLangs(),this.pending=!1},error:se=>{this.pending=!1}}),ve}setTranslation(ce,ve,se=!1){ve=this.compiler.compileTranslations(ve,ce),this.translations[ce]=(se||this.extend)&&this.translations[ce]?Oe(this.translations[ce],ve):ve,this.updateLangs(),this.onTranslationChange.emit({lang:ce,translations:this.translations[ce]})}getLangs(){return this.langs}addLangs(ce){ce.forEach(ve=>{-1===this.langs.indexOf(ve)&&this.langs.push(ve)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(ce,ve,se){let S;if(ve instanceof Array){let F={},V=!1;for(let ne of ve)F[ne]=this.getParsedResult(ce,ne,se),(0,A.b)(F[ne])&&(V=!0);if(V){const ne=ve.map(De=>(0,A.b)(F[De])?F[De]:(0,i.of)(F[De]));return(0,p.D)(ne).pipe((0,Ze.U)(De=>{let wt={};return De.forEach((nn,Jt)=>{wt[ve[Jt]]=nn}),wt}))}return F}if(ce&&(S=this.parser.interpolate(this.parser.getValue(ce,ve),se)),typeof S>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(S=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],ve),se)),typeof S>"u"){let F={key:ve,translateService:this};typeof se<"u"&&(F.interpolateParams=se),S=this.missingTranslationHandler.handle(F)}return typeof S<"u"?S:ve}get(ce,ve){if(!re(ce)||!ce.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Qe.b)(se=>(se=this.getParsedResult(se,ce,ve),(0,A.b)(se)?se:(0,i.of)(se))));{let se=this.getParsedResult(this.translations[this.currentLang],ce,ve);return(0,A.b)(se)?se:(0,i.of)(se)}}getStreamOnTranslationChange(ce,ve){if(!re(ce)||!ce.length)throw new Error('Parameter "key" required');return(0,v.z)((0,k.P)(()=>this.get(ce,ve)),this.onTranslationChange.pipe((0,vt.w)(se=>{const S=this.getParsedResult(se.translations,ce,ve);return"function"==typeof S.subscribe?S:(0,i.of)(S)})))}stream(ce,ve){if(!re(ce)||!ce.length)throw new Error('Parameter "key" required');return(0,v.z)((0,k.P)(()=>this.get(ce,ve)),this.onLangChange.pipe((0,vt.w)(se=>{const S=this.getParsedResult(se.translations,ce,ve);return(0,A.b)(S)?S:(0,i.of)(S)})))}instant(ce,ve){if(!re(ce)||!ce.length)throw new Error('Parameter "key" required');let se=this.getParsedResult(this.translations[this.currentLang],ce,ve);if((0,A.b)(se)){if(ce instanceof Array){let S={};return ce.forEach((F,V)=>{S[ce[V]]=ce[V]}),S}return ce}return se}set(ce,ve,se=this.currentLang){this.translations[se][ce]=this.compiler.compile(ve,se),this.updateLangs(),this.onTranslationChange.emit({lang:se,translations:this.translations[se]})}changeLang(ce){this.currentLang=ce,this.onLangChange.emit({lang:ce,translations:this.translations[ce]}),null==this.defaultLang&&this.changeDefaultLang(ce)}changeDefaultLang(ce){this.defaultLang=ce,this.onDefaultLangChange.emit({lang:ce,translations:this.translations[ce]})}reloadLang(ce){return this.resetLang(ce),this.getTranslation(ce)}resetLang(ce){this._translationRequests[ce]=void 0,this.translations[ce]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let ce=window.navigator.languages?window.navigator.languages[0]:null;return ce=ce||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof ce>"u"?void 0:(-1!==ce.indexOf("-")&&(ce=ce.split("-")[0]),-1!==ce.indexOf("_")&&(ce=ce.split("_")[0]),ce)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let ce=window.navigator.languages?window.navigator.languages[0]:null;return ce=ce||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,ce}}return Re.\u0275fac=function(ce){return new(ce||Re)(d.LFG(pt),d.LFG($e),d.LFG(ot),d.LFG(Ae),d.LFG(Ce),d.LFG(Et),d.LFG(ft),d.LFG(Pe),d.LFG(be))},Re.\u0275prov=d.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),dt=(()=>{class Re{constructor(ce,ve,se){this.translateService=ce,this.element=ve,this._ref=se,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(S=>{S.lang===this.translateService.currentLang&&this.checkNodes(!0,S.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(S=>{this.checkNodes(!0,S.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(S=>{this.checkNodes(!0)}))}set translate(ce){ce&&(this.key=ce,this.checkNodes())}set translateParams(ce){me(this.currentParams,ce)||(this.currentParams=ce,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(ce=!1,ve){let se=this.element.nativeElement.childNodes;se.length||(this.setContent(this.element.nativeElement,this.key),se=this.element.nativeElement.childNodes);for(let S=0;S<se.length;++S){let F=se[S];if(3===F.nodeType){let V;if(ce&&(F.lastKey=null),re(F.lookupKey))V=F.lookupKey;else if(this.key)V=this.key;else{let ne=this.getContent(F),De=ne.trim();De.length&&(F.lookupKey=De,ne!==F.currentValue?(V=De,F.originalContent=ne||F.originalContent):F.originalContent?V=F.originalContent.trim():ne!==F.currentValue&&(V=De,F.originalContent=ne||F.originalContent))}this.updateValue(V,F,ve)}}}updateValue(ce,ve,se){if(ce){if(ve.lastKey===ce&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let S=F=>{F!==ce&&(ve.lastKey=ce),ve.originalContent||(ve.originalContent=this.getContent(ve)),ve.currentValue=re(F)?F:ve.originalContent||ce,this.setContent(ve,this.key?ve.currentValue:ve.originalContent.replace(ce,ve.currentValue)),this._ref.markForCheck()};if(re(se)){let F=this.translateService.getParsedResult(se,ce,this.currentParams);(0,A.b)(F)?F.subscribe({next:S}):S(F)}else this.translateService.get(ce,this.currentParams).subscribe(S)}}getContent(ce){return re(ce.textContent)?ce.textContent:ce.data}setContent(ce,ve){re(ce.textContent)?ce.textContent=ve:ce.data=ve}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return Re.\u0275fac=function(ce){return new(ce||Re)(d.Y36(je),d.Y36(d.SBq),d.Y36(d.sBO))},Re.\u0275dir=d.lG2({type:Re,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),Re})(),et=(()=>{class Re{constructor(ce,ve){this.translate=ce,this._ref=ve,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(ce,ve,se){let S=F=>{this.value=void 0!==F?F:ce,this.lastKey=ce,this._ref.markForCheck()};if(se){let F=this.translate.getParsedResult(se,ce,ve);(0,A.b)(F.subscribe)?F.subscribe(S):S(F)}this.translate.get(ce,ve).subscribe(S)}transform(ce,...ve){if(!ce||!ce.length)return ce;if(me(ce,this.lastKey)&&me(ve,this.lastParams))return this.value;let se;if(re(ve[0])&&ve.length)if("string"==typeof ve[0]&&ve[0].length){let S=ve[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{se=JSON.parse(S)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${ve[0]}`)}}else"object"==typeof ve[0]&&!Array.isArray(ve[0])&&(se=ve[0]);return this.lastKey=ce,this.lastParams=ve,this.updateValue(ce,se),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(S=>{this.lastKey&&S.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(ce,se,S.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(S=>{this.lastKey&&(this.lastKey=null,this.updateValue(ce,se,S.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(ce,se))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return Re.\u0275fac=function(ce){return new(ce||Re)(d.Y36(je,16),d.Y36(d.sBO,16))},Re.\u0275pipe=d.Yjl({name:"translate",type:Re,pure:!1}),Re.\u0275prov=d.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),gt=(()=>{class Re{static forRoot(ce={}){return{ngModule:Re,providers:[ce.loader||{provide:$e,useClass:Ge},ce.compiler||{provide:ot,useClass:at},ce.parser||{provide:Ae,useClass:tt},ce.missingTranslationHandler||{provide:Ce,useClass:ke},pt,{provide:ft,useValue:ce.isolate},{provide:Et,useValue:ce.useDefaultLang},{provide:Pe,useValue:ce.extend},{provide:be,useValue:ce.defaultLanguage},je]}}static forChild(ce={}){return{ngModule:Re,providers:[ce.loader||{provide:$e,useClass:Ge},ce.compiler||{provide:ot,useClass:at},ce.parser||{provide:Ae,useClass:tt},ce.missingTranslationHandler||{provide:Ce,useClass:ke},{provide:ft,useValue:ce.isolate},{provide:Et,useValue:ce.useDefaultLang},{provide:Pe,useValue:ce.extend},{provide:be,useValue:ce.defaultLanguage},je]}}}return Re.\u0275fac=function(ce){return new(ce||Re)},Re.\u0275mod=d.oAB({type:Re}),Re.\u0275inj=d.cJS({}),Re})()},23:(vn,_t,y)=>{"use strict";y.d(_t,{g7:()=>J});let d=null;const i={};let A=1;function v(ue){try{return ue()}catch{}}const k="@wry/context:Slot",b=v(()=>globalThis)||v(()=>global)||Object.create(null),J=b[k]||Array[k]||function(ue){try{Object.defineProperty(b,k,{value:ue,enumerable:!1,writable:!1,configurable:!0})}finally{return ue}}(class{constructor(){this.id=["slot",A++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let Ze=d;Ze;Ze=Ze.parent)if(this.id in Ze.slots){const Qe=Ze.slots[this.id];if(Qe===i)break;return Ze!==d&&(d.slots[this.id]=Qe),!0}return d&&(d.slots[this.id]=i),!1}getValue(){if(this.hasValue())return d.slots[this.id]}withValue(Ze,Qe,vt,$e){const Ce=d;d={parent:Ce,slots:{__proto__:null,[this.id]:Ze}};try{return Qe.apply($e,vt)}finally{d=Ce}}static bind(Ze){const Qe=d;return function(){const vt=d;try{return d=Qe,Ze.apply(this,arguments)}finally{d=vt}}}static noContext(Ze,Qe,vt){if(!d)return Ze.apply(vt,Qe);{const $e=d;try{return d=null,Ze.apply(vt,Qe)}finally{d=$e}}}})},3735:(vn,_t,y)=>{"use strict";y.d(_t,{D:()=>v});const{toString:d,hasOwnProperty:i}=Object.prototype,A=Function.prototype.toString,p=new Map;function v(Z,G){try{return f(Z,G)}finally{p.clear()}}function f(Z,G){if(Z===G)return!0;const ie=d.call(Z);if(ie!==d.call(G))return!1;switch(ie){case"[object Array]":if(Z.length!==G.length)return!1;case"[object Object]":{if(B(Z,G))return!0;const ue=b(Z),Ze=b(G),Qe=ue.length;if(Qe!==Ze.length)return!1;for(let vt=0;vt<Qe;++vt)if(!i.call(G,ue[vt]))return!1;for(let vt=0;vt<Qe;++vt){const $e=ue[vt];if(!f(Z[$e],G[$e]))return!1}return!0}case"[object Error]":return Z.name===G.name&&Z.message===G.message;case"[object Number]":if(Z!=Z)return G!=G;case"[object Boolean]":case"[object Date]":return+Z==+G;case"[object RegExp]":case"[object String]":return Z==`${G}`;case"[object Map]":case"[object Set]":{if(Z.size!==G.size)return!1;if(B(Z,G))return!0;const ue=Z.entries(),Ze="[object Map]"===ie;for(;;){const Qe=ue.next();if(Qe.done)break;const[vt,$e]=Qe.value;if(!G.has(vt)||Ze&&!f($e,G.get(vt)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":Z=new Uint8Array(Z),G=new Uint8Array(G);case"[object DataView]":{let ue=Z.byteLength;if(ue===G.byteLength)for(;ue--&&Z[ue]===G[ue];);return-1===ue}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const ue=A.call(Z);return ue===A.call(G)&&!function W(Z,G){const ie=Z.length-G.length;return ie>=0&&Z.indexOf(G,ie)===ie}(ue,Y)}}return!1}function b(Z){return Object.keys(Z).filter(J,Z)}function J(Z){return void 0!==this[Z]}const Y="{ [native code] }";function B(Z,G){let ie=p.get(Z);if(ie){if(ie.has(G))return!0}else p.set(Z,ie=new Set);return ie.add(G),!1}},5216:(vn,_t,y)=>{"use strict";y.d(_t,{B:()=>v});const d=()=>Object.create(null),{forEach:i,slice:A}=Array.prototype,{hasOwnProperty:p}=Object.prototype;class v{constructor(b=!0,J=d){this.weakness=b,this.makeData=J}lookup(...b){return this.lookupArray(b)}lookupArray(b){let J=this;return i.call(b,Y=>J=J.getChildTrie(Y)),p.call(J,"data")?J.data:J.data=this.makeData(A.call(b))}peek(...b){return this.peekArray(b)}peekArray(b){let J=this;for(let Y=0,W=b.length;J&&Y<W;++Y){const B=this.weakness&&k(b[Y])?J.weak:J.strong;J=B&&B.get(b[Y])}return J&&J.data}getChildTrie(b){const J=this.weakness&&k(b)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let Y=J.get(b);return Y||J.set(b,Y=new v(this.weakness,this.makeData)),Y}}function k(f){switch(typeof f){case"object":if(null===f)break;case"function":return!0}return!1}},3078:(vn,_t,y)=>{"use strict";y.d(_t,{_M:()=>al,VG:()=>bl,Ps:()=>zl});var d=y(4650),i=(()=>{return(te=i||(i={}))[te.loading=1]="loading",te[te.setVariables=2]="setVariables",te[te.fetchMore=3]="fetchMore",te[te.refetch=4]="refetch",te[te.poll=6]="poll",te[te.ready=7]="ready",te[te.error=8]="error",i;var te})();function A(te){return!!te&&te<7}var p=y(7582),v=y(7509),k=y(484),f=k.i.execute,b="3.7.17",J=y(1335),Y=y(9722),W=y(4302),B=function(te,C){var D;try{D=JSON.stringify(te)}catch(U){var E=__DEV__?new v.ej("Network request failed. ".concat(C," is not serializable: ").concat(U.message)):new v.ej(24);throw E.parseError=U,E}return D},G=y(9545);function ke(te){var C={next:function(){return te.read()}};return G.DN&&(C[Symbol.asyncIterator]=function(){return this}),C}function me(te){var C=te;if(function ie(te){return!!te.body}(te)&&(C=te.body),function ue(te){return!(!G.DN||!te[Symbol.asyncIterator])}(C))return function $e(te){var C,D=te[Symbol.asyncIterator]();return(C={next:function(){return D.next()}})[Symbol.asyncIterator]=function(){return this},C}(C);if(function Ee(te){return!!te.getReader}(C))return ke(C.getReader());if(function Ze(te){return!!te.stream}(C))return ke(C.stream().getReader());if(function Qe(te){return!!te.arrayBuffer}(C))return function Ce(te){var C=!1,D={next:function(){return C?Promise.resolve({value:void 0,done:!0}):(C=!0,new Promise(function(E,U){te.then(function(Be){E({value:Be,done:!1})}).catch(U)}))}};return G.DN&&(D[Symbol.asyncIterator]=function(){return this}),D}(C.arrayBuffer());if(function vt(te){return!!te.pipe}(C))return function Ge(te){var C=null,D=null,E=!1,U=[],Be=[];function jt(Jn){if(!D){if(Be.length){var Nn=Be.shift();if(Array.isArray(Nn)&&Nn[0])return Nn[0]({value:Jn,done:!1})}U.push(Jn)}}function yn(Jn){D=Jn,Be.slice().forEach(function(ri){ri[1](Jn)}),!C||C()}function Bt(){E=!0,Be.slice().forEach(function(Nn){Nn[0]({value:void 0,done:!0})}),!C||C()}C=function(){C=null,te.removeListener("data",jt),te.removeListener("error",yn),te.removeListener("end",Bt),te.removeListener("finish",Bt),te.removeListener("close",Bt)},te.on("data",jt),te.on("error",yn),te.on("end",Bt),te.on("finish",Bt),te.on("close",Bt);var Kn={next:function(){return function bn(){return new Promise(function(Jn,Nn){return D?Nn(D):U.length?Jn({value:U.shift(),done:!1}):E?Jn({value:void 0,done:!0}):void Be.push([Jn,Nn])})}()}};return G.DN&&(Kn[Symbol.asyncIterator]=function(){return this}),Kn}(C);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var re=function(te,C,D){var E=new Error(D);throw E.name="ServerError",E.response=te,E.statusCode=te.status,E.result=C,E},ye=y(7062),Oe=Symbol(),ot=function(te){var C=(0,p.ev)((0,p.ev)((0,p.ev)([],te.graphQLErrors,!0),te.clientErrors,!0),te.protocolErrors,!0);return te.networkError&&C.push(te.networkError),C.map(function(D){return(0,ye.s)(D)&&D.message||"Error message not found."}).join("\n")},at=function(te){function C(D){var E=D.graphQLErrors,U=D.protocolErrors,Be=D.clientErrors,jt=D.networkError,yn=D.errorMessage,Bt=D.extraInfo,bn=te.call(this,yn)||this;return bn.name="ApolloError",bn.graphQLErrors=E||[],bn.protocolErrors=U||[],bn.clientErrors=Be||[],bn.networkError=jt||null,bn.message=yn||ot(bn),bn.extraInfo=Bt,bn.__proto__=C.prototype,bn}return(0,p.ZT)(C,te),C}(Error),pt=y(5355),ft=y(7773);function Et(te){return"incremental"in te}function je(te){return(0,ye.s)(te)&&"payload"in te}function dt(te,C){var D=te,E=new ft.w0;return Et(C)&&(0,pt.O)(C.incremental)&&C.incremental.forEach(function(U){for(var Be=U.data,jt=U.path,yn=jt.length-1;yn>=0;--yn){var Bt=jt[yn],Kn=isNaN(+Bt)?{}:[];Kn[Bt]=Be,Be=Kn}D=E.merge(D,Be)}),D}var et=Object.prototype.hasOwnProperty;function Re(te){var C={};return te.split("\n").forEach(function(D){var E=D.indexOf(":");if(E>-1){var U=D.slice(0,E).trim().toLowerCase(),Be=D.slice(E+1).trim();C[U]=Be}}),C}function we(te,C){te.status>=300&&re(te,function(){try{return JSON.parse(C)}catch{return C}}(),"Response not successful: Received status code ".concat(te.status));try{return JSON.parse(C)}catch(U){var E=U;throw E.name="ServerParseError",E.response=te,E.statusCode=te.status,E.bodyText=C,E}}function ce(te,C){var D,E;"AbortError"!==te.name&&(te.result&&te.result.errors&&te.result.data&&(null===(D=C.next)||void 0===D||D.call(C,te.result)),null===(E=C.error)||void 0===E||E.call(C,te))}var F=y(2465),wt={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},nn=function(te,C){return C(te)};function Te(te){return new W.y(function(C){C.error(te)})}var lt=y(591),Je=(0,v.wY)(function(){return fetch}),Lt=function(te){void 0===te&&(te={});var C=te.uri,D=void 0===C?"/graphql":C,E=te.fetch,U=te.print,Be=void 0===U?nn:U,jt=te.includeExtensions,yn=te.preserveHeaderCase,Bt=te.useGETForQueries,bn=te.includeUnusedVariables,Kn=void 0!==bn&&bn,Jn=(0,p._T)(te,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&function(te){if(!te&&typeof fetch>"u")throw __DEV__?new v.ej("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new v.ej(23)}(E||Je);var Nn={http:{includeExtensions:jt,preserveHeaderCase:yn},options:Jn.fetchOptions,credentials:Jn.credentials,headers:Jn.headers};return new k.i(function(ri){var mi=function(te,C){return te.getContext().uri||("function"==typeof C?C(te):C||"/graphql")}(ri,D),si=ri.getContext(),Ci={};if(si.clientAwareness){var Si=si.clientAwareness,Xi=Si.name,Bi=Si.version;Xi&&(Ci["apollographql-client-name"]=Xi),Bi&&(Ci["apollographql-client-version"]=Bi)}var tr,er=(0,p.pi)((0,p.pi)({},Ci),si.headers),qi=function un(te,C){for(var D=[],E=2;E<arguments.length;E++)D[E-2]=arguments[E];var U={},Be={};D.forEach(function(Jn){U=(0,p.pi)((0,p.pi)((0,p.pi)({},U),Jn.options),{headers:(0,p.pi)((0,p.pi)({},U.headers),Jn.headers)}),Jn.credentials&&(U.credentials=Jn.credentials),Be=(0,p.pi)((0,p.pi)({},Be),Jn.http)}),U.headers&&(U.headers=function Zt(te,C){if(!C){var D=Object.create(null);return Object.keys(Object(te)).forEach(function(Be){D[Be.toLowerCase()]=te[Be]}),D}var E=Object.create(null);Object.keys(Object(te)).forEach(function(Be){E[Be.toLowerCase()]={originalName:Be,value:te[Be]}});var U=Object.create(null);return Object.keys(E).forEach(function(Be){U[E[Be].originalName]=E[Be].value}),U}(U.headers,Be.preserveHeaderCase));var bn=te.query,Kn={operationName:te.operationName,variables:te.variables};return Be.includeExtensions&&(Kn.extensions=te.extensions),Be.includeQuery&&(Kn.query=C(bn,F.S)),{options:U,body:Kn}}(ri,Be,wt,Nn,{http:si.http,options:si.fetchOptions,credentials:si.credentials,headers:er}),lr=qi.options,rr=qi.body;if(rr.variables&&!Kn){var hr=new Set(Object.keys(rr.variables));(0,J.Vn)(ri.query,{Variable:function(Ea,xl,Io){Io&&"VariableDefinition"!==Io.kind&&hr.delete(Ea.name.value)}}),hr.size&&(rr.variables=(0,p.pi)({},rr.variables),hr.forEach(function(Ea){delete rr.variables[Ea]}))}if(!lr.signal){var Ta=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var te=new AbortController;return{controller:te,signal:te.signal}}();(tr=Ta.controller)&&(lr.signal=Ta.signal)}var Ea,Wl="OperationDefinition"===(Ea=(0,lt.p$)(ri.query)).kind&&"subscription"===Ea.operation,sl=(0,Y.FS)(["defer"],ri.query);if(Bt&&!ri.query.definitions.some(function(Ea){return"OperationDefinition"===Ea.kind&&"mutation"===Ea.operation})&&(lr.method="GET"),sl||Wl){lr.headers=lr.headers||{};var vo="multipart/mixed;";Wl&&sl&&__DEV__&&v.kG.warn("Multipart-subscriptions do not support @defer"),Wl?vo+="boundary=graphql;subscriptionSpec=1.0,application/json":sl&&(vo+="deferSpec=20220824,application/json"),lr.headers.accept=vo}if("GET"===lr.method){var Gl=function fe(te,C){var D=[],E=function(Jn,Nn){D.push("".concat(Jn,"=").concat(encodeURIComponent(Nn)))};if("query"in C&&E("query",C.query),C.operationName&&E("operationName",C.operationName),C.variables){var U=void 0;try{U=B(C.variables,"Variables map")}catch(Jn){return{parseError:Jn}}E("variables",U)}if(C.extensions){var Be=void 0;try{Be=B(C.extensions,"Extensions map")}catch(Jn){return{parseError:Jn}}E("extensions",Be)}var jt="",yn=te,Bt=te.indexOf("#");-1!==Bt&&(jt=te.substr(Bt),yn=te.substr(0,Bt));var bn=-1===yn.indexOf("?")?"?":"&";return{newURI:yn+bn+D.join("&")+jt}}(mi,rr),$l=Gl.newURI,yl=Gl.parseError;if(yl)return Te(yl);mi=$l}else try{lr.body=B(rr,"Payload")}catch(Ea){return Te(Ea)}return new W.y(function(Ea){return(E||(0,v.wY)(function(){return fetch})||Je)(mi,lr).then(function(Io){var wl;ri.setContext({response:Io});var Cl=null===(wl=Io.headers)||void 0===wl?void 0:wl.get("content-type");return null!==Cl&&/^multipart\/mixed/i.test(Cl)?function gt(te,C){var D,E,U,Be,jt;return(0,p.mG)(this,void 0,void 0,function(){var yn,Bt,bn,Kn,Jn,Nn,ri,mi,si,Ci,Si,Xi,Bi,er,Vi,qi,lr,rr,hr,tr,Ta,ol,ia;return(0,p.Jh)(this,function(io){switch(io.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");yn=new TextDecoder("utf-8"),Bt=null===(D=te.headers)||void 0===D?void 0:D.get("content-type"),Kn=Bt?.includes(bn="boundary=")?Bt?.substring(Bt?.indexOf(bn)+bn.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",Jn="\r\n--".concat(Kn),Nn="",ri=me(te),mi=!0,io.label=1;case 1:return mi?[4,ri.next()]:[3,3];case 2:for(si=io.sent(),Si=si.done,Xi="string"==typeof(Ci=si.value)?Ci:yn.decode(Ci),Bi=Nn.length-Jn.length+1,mi=!Si,er=(Nn+=Xi).indexOf(Jn,Bi);er>-1;){if(Vi=void 0,ol=[Nn.slice(0,er),Nn.slice(er+Jn.length)],Nn=ol[1],qi=(Vi=ol[0]).indexOf("\r\n\r\n"),lr=Re(Vi.slice(0,qi)),(rr=lr["content-type"])&&-1===rr.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(hr=Vi.slice(qi))try{tr=we(te,hr),Object.keys(tr).length>1||"data"in tr||"incremental"in tr||"errors"in tr||"payload"in tr?je(tr)?(Ta={},"payload"in tr&&(Ta=(0,p.pi)({},tr.payload)),"errors"in tr&&(Ta=(0,p.pi)((0,p.pi)({},Ta),{extensions:(0,p.pi)((0,p.pi)({},"extensions"in Ta?Ta.extensions:null),(ia={},ia[Oe]=tr.errors,ia))})),null===(E=C.next)||void 0===E||E.call(C,Ta)):null===(U=C.next)||void 0===U||U.call(C,tr):1===Object.keys(tr).length&&"hasNext"in tr&&!tr.hasNext&&(null===(Be=C.complete)||void 0===Be||Be.call(C))}catch(ds){ce(ds,C)}er=Nn.indexOf(Jn)}return[3,1];case 3:return null===(jt=C.complete)||void 0===jt||jt.call(C),[2]}})})}(Io,Ea):function ve(te,C,D){(function se(te){return function(C){return C.text().then(function(D){return we(C,D)}).then(function(D){return C.status>=300&&re(C,D,"Response not successful: Received status code ".concat(C.status)),!Array.isArray(D)&&!et.call(D,"data")&&!et.call(D,"errors")&&re(C,D,"Server response was missing for query '".concat(Array.isArray(te)?te.map(function(E){return E.operationName}):te.operationName,"'.")),D})}})(C)(te).then(function(E){var U,Be;null===(U=D.next)||void 0===U||U.call(D,E),null===(Be=D.complete)||void 0===Be||Be.call(D)}).catch(function(E){return ce(E,D)})}(Io,ri,Ea)}).catch(function(Io){return ce(Io,Ea)}),function(){tr&&tr.abort()}})})},Ke=function(te){function C(D){void 0===D&&(D={});var E=te.call(this,Lt(D).request)||this;return E.options=D,E}return(0,p.ZT)(C,te),C}(k.i),ge=y(3735),Me=y(3750);function _e(te,C,D){return new W.y(function(E){var U=E.next,Be=E.error,jt=E.complete,yn=0,Bt=!1,bn={then:function(ri){return new Promise(function(mi){return mi(ri())})}};function Kn(ri,mi){return ri?function(si){++yn;var Ci=function(){return ri(si)};bn=bn.then(Ci,Ci).then(function(Si){--yn,U&&U.call(E,Si),Bt&&Jn.complete()},function(Si){throw--yn,Si}).catch(function(Si){Be&&Be.call(E,Si)})}:function(si){return mi&&mi.call(E,si)}}var Jn={next:Kn(C,U),error:Kn(D,Be),complete:function(){Bt=!0,yn||jt&&jt.call(E)}},Nn=te.subscribe(Jn);return function(){return Nn.unsubscribe()}})}function it(te){var C=ct(te);return(0,pt.O)(C)}function ct(te){var C=(0,pt.O)(te.errors)?te.errors.slice(0):[];return Et(te)&&(0,pt.O)(te.incremental)&&te.incremental.forEach(function(D){D.errors&&C.push.apply(C,D.errors)}),C}var dn=y(3690),Rn=y(7634),An=y(8561);function Gt(te,C,D){var E=[];te.forEach(function(U){return U[C]&&E.push(U)}),E.forEach(function(U){return U[C](D)})}function gn(te){function C(D){Object.defineProperty(te,D,{value:W.y})}return G.aS&&Symbol.species&&C(Symbol.species),C("@@species"),te}function St(te){return te&&"function"==typeof te.then}var cn=function(te){function C(D){var E=te.call(this,function(U){return E.addObserver(U),function(){return E.removeObserver(U)}})||this;return E.observers=new Set,E.promise=new Promise(function(U,Be){E.resolve=U,E.reject=Be}),E.handlers={next:function(U){null!==E.sub&&(E.latest=["next",U],E.notify("next",U),Gt(E.observers,"next",U))},error:function(U){var Be=E.sub;null!==Be&&(Be&&setTimeout(function(){return Be.unsubscribe()}),E.sub=null,E.latest=["error",U],E.reject(U),E.notify("error",U),Gt(E.observers,"error",U))},complete:function(){var Be=E.sub,jt=E.sources;if(null!==Be){var Bt=(void 0===jt?[]:jt).shift();Bt?St(Bt)?Bt.then(function(bn){return E.sub=bn.subscribe(E.handlers)}):E.sub=Bt.subscribe(E.handlers):(Be&&setTimeout(function(){return Be.unsubscribe()}),E.sub=null,E.latest&&"next"===E.latest[0]?E.resolve(E.latest[1]):E.resolve(),E.notify("complete"),Gt(E.observers,"complete"))}}},E.nextResultListeners=new Set,E.cancel=function(U){E.reject(U),E.sources=[],E.handlers.complete()},E.promise.catch(function(U){}),"function"==typeof D&&(D=[new W.y(D)]),St(D)?D.then(function(U){return E.start(U)},E.handlers.error):E.start(D),E}return(0,p.ZT)(C,te),C.prototype.start=function(D){void 0===this.sub&&(this.sources=Array.from(D),this.handlers.complete())},C.prototype.deliverLastMessage=function(D){if(this.latest){var E=this.latest[0],U=D[E];U&&U.call(D,this.latest[1]),null===this.sub&&"next"===E&&D.complete&&D.complete()}},C.prototype.addObserver=function(D){this.observers.has(D)||(this.deliverLastMessage(D),this.observers.add(D))},C.prototype.removeObserver=function(D){this.observers.delete(D)&&this.observers.size<1&&this.handlers.complete()},C.prototype.notify=function(D,E){var U=this.nextResultListeners;U.size&&(this.nextResultListeners=new Set,U.forEach(function(Be){return Be(D,E)}))},C.prototype.beforeNext=function(D){var E=!1;this.nextResultListeners.add(function(U,Be){E||(E=!0,D(U,Be))})},C}(W.y);gn(cn);var Qn=y(396),ai=y(3950),ze=Object.assign,de=Object.hasOwnProperty,q=function(te){function C(D){var E=D.queryManager,U=D.queryInfo,Be=D.options,jt=te.call(this,function(Ci){try{var Si=Ci._subscription._observer;Si&&!Si.error&&(Si.error=yt)}catch{}var Xi=!jt.observers.size;jt.observers.add(Ci);var Bi=jt.last;return Bi&&Bi.error?Ci.error&&Ci.error(Bi.error):Bi&&Bi.result&&Ci.next&&Ci.next(Bi.result),Xi&&jt.reobserve().catch(function(){}),function(){jt.observers.delete(Ci)&&!jt.observers.size&&jt.tearDownQuery()}})||this;jt.observers=new Set,jt.subscriptions=new Set,jt.queryInfo=U,jt.queryManager=E,jt.waitForOwnResult=le(Be.fetchPolicy),jt.isTornDown=!1;var yn=E.defaultOptions.watchQuery,bn=(void 0===yn?{}:yn).fetchPolicy,Kn=void 0===bn?"cache-first":bn,Jn=Be.fetchPolicy,Nn=void 0===Jn?Kn:Jn,ri=Be.initialFetchPolicy,mi=void 0===ri?"standby"===Nn?Kn:Nn:ri;jt.options=(0,p.pi)((0,p.pi)({},Be),{initialFetchPolicy:mi,fetchPolicy:Nn}),jt.queryId=U.queryId||E.generateQueryId();var si=(0,lt.$H)(jt.query);return jt.queryName=si&&si.name&&si.name.value,jt}return(0,p.ZT)(C,te),Object.defineProperty(C.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),C.prototype.result=function(){var D=this;return new Promise(function(E,U){var Be={next:function(yn){E(yn),D.observers.delete(Be),D.observers.size||D.queryManager.removeQuery(D.queryId),setTimeout(function(){jt.unsubscribe()},0)},error:U},jt=D.subscribe(Be)})},C.prototype.getCurrentResult=function(D){void 0===D&&(D=!0);var E=this.getLastResult(!0),U=this.queryInfo.networkStatus||E&&E.networkStatus||i.ready,Be=(0,p.pi)((0,p.pi)({},E),{loading:A(U),networkStatus:U}),jt=this.options.fetchPolicy,yn=void 0===jt?"cache-first":jt;if(!le(yn)&&!this.queryManager.transform(this.options.query).hasForcedResolvers)if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var Bt=this.queryInfo.getDiff();(Bt.complete||this.options.returnPartialData)&&(Be.data=Bt.result),(0,ge.D)(Be.data,{})&&(Be.data=void 0),Bt.complete?(delete Be.partial,Bt.complete&&Be.networkStatus===i.loading&&("cache-first"===yn||"cache-only"===yn)&&(Be.networkStatus=i.ready,Be.loading=!1)):Be.partial=!0,__DEV__&&!Bt.complete&&!this.options.partialRefetch&&!Be.loading&&!Be.data&&!Be.error&&ht(Bt.missing)}return D&&this.updateLastResult(Be),Be},C.prototype.isDifferentFromLastResult=function(D,E){return!this.last||!(0,ge.D)(this.last.result,D)||E&&!(0,ge.D)(this.last.variables,E)},C.prototype.getLast=function(D,E){var U=this.last;if(U&&U[D]&&(!E||(0,ge.D)(U.variables,this.variables)))return U[D]},C.prototype.getLastResult=function(D){return this.getLast("result",D)},C.prototype.getLastError=function(D){return this.getLast("error",D)},C.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},C.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},C.prototype.refetch=function(D){var E,U={pollInterval:0},Be=this.options.fetchPolicy;if(U.fetchPolicy="cache-and-network"===Be?Be:"no-cache"===Be?"no-cache":"network-only",__DEV__&&D&&de.call(D,"variables")){var jt=(0,lt.iW)(this.query),yn=jt.variableDefinitions;(!yn||!yn.some(function(Bt){return"variables"===Bt.variable.name.value}))&&__DEV__&&v.kG.warn("Called refetch(".concat(JSON.stringify(D),") for query ").concat((null===(E=jt.name)||void 0===E?void 0:E.value)||JSON.stringify(jt),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return D&&!(0,ge.D)(this.options.variables,D)&&(U.variables=this.options.variables=(0,p.pi)((0,p.pi)({},this.options.variables),D)),this.queryInfo.resetLastWrite(),this.reobserve(U,i.refetch)},C.prototype.fetchMore=function(D){var E=this,U=(0,p.pi)((0,p.pi)({},D.query?D:(0,p.pi)((0,p.pi)((0,p.pi)((0,p.pi)({},this.options),{query:this.query}),D),{variables:(0,p.pi)((0,p.pi)({},this.options.variables),D.variables)})),{fetchPolicy:"no-cache"}),Be=this.queryManager.generateQueryId(),jt=this.queryInfo,yn=jt.networkStatus;jt.networkStatus=i.fetchMore,U.notifyOnNetworkStatusChange&&this.observe();var Bt=new Set;return this.queryManager.fetchQuery(Be,U,i.fetchMore).then(function(bn){return E.queryManager.removeQuery(Be),jt.networkStatus===i.fetchMore&&(jt.networkStatus=yn),E.queryManager.cache.batch({update:function(Kn){var Jn=D.updateQuery;Jn?Kn.updateQuery({query:E.query,variables:E.variables,returnPartialData:!0,optimistic:!1},function(Nn){return Jn(Nn,{fetchMoreResult:bn.data,variables:U.variables})}):Kn.writeQuery({query:U.query,variables:U.variables,data:bn.data})},onWatchUpdated:function(Kn){Bt.add(Kn.query)}}),bn}).finally(function(){Bt.has(E.query)||He(E)})},C.prototype.subscribeToMore=function(D){var E=this,U=this.queryManager.startGraphQLSubscription({query:D.document,variables:D.variables,context:D.context}).subscribe({next:function(Be){var jt=D.updateQuery;jt&&E.updateQuery(function(yn,Bt){return jt(yn,{subscriptionData:Be,variables:Bt.variables})})},error:function(Be){D.onError?D.onError(Be):__DEV__&&v.kG.error("Unhandled GraphQL subscription error",Be)}});return this.subscriptions.add(U),function(){E.subscriptions.delete(U)&&U.unsubscribe()}},C.prototype.setOptions=function(D){return this.reobserve(D)},C.prototype.setVariables=function(D){return(0,ge.D)(this.variables,D)?this.observers.size?this.result():Promise.resolve():(this.options.variables=D,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:D},i.setVariables):Promise.resolve())},C.prototype.updateQuery=function(D){var E=this.queryManager,Be=D(E.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});Be&&(E.cache.writeQuery({query:this.options.query,data:Be,variables:this.variables}),E.broadcastQueries())},C.prototype.startPolling=function(D){this.options.pollInterval=D,this.updatePolling()},C.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},C.prototype.applyNextFetchPolicy=function(D,E){if(E.nextFetchPolicy){var U=E.fetchPolicy,Be=void 0===U?"cache-first":U,jt=E.initialFetchPolicy,yn=void 0===jt?Be:jt;"standby"===Be||(E.fetchPolicy="function"==typeof E.nextFetchPolicy?E.nextFetchPolicy(Be,{reason:D,options:E,observable:this,initialFetchPolicy:yn}):"variables-changed"===D?yn:E.nextFetchPolicy)}return E.fetchPolicy},C.prototype.fetch=function(D,E){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,D,E)},C.prototype.updatePolling=function(){var D=this;if(!this.queryManager.ssrMode){var U=this.pollingInfo,Be=this.options.pollInterval;if(!Be)return void(U&&(clearTimeout(U.timeout),delete this.pollingInfo));if(!U||U.interval!==Be){__DEV__?(0,v.kG)(Be,"Attempted to start a polling query without a polling interval."):(0,v.kG)(Be,13),(U||(this.pollingInfo={})).interval=Be;var yn=function(){D.pollingInfo&&(A(D.queryInfo.networkStatus)?Bt():D.reobserve({fetchPolicy:"no-cache"===D.options.initialFetchPolicy?"no-cache":"network-only"},i.poll).then(Bt,Bt))},Bt=function(){var bn=D.pollingInfo;bn&&(clearTimeout(bn.timeout),bn.timeout=setTimeout(yn,bn.interval))};Bt()}}},C.prototype.updateLastResult=function(D,E){return void 0===E&&(E=this.variables),this.last=(0,p.pi)((0,p.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?D:(0,Qn.X)(D),variables:E}),(0,pt.O)(D.errors)||delete this.last.error,this.last},C.prototype.reobserveAsConcast=function(D,E){var U=this;this.isTornDown=!1;var Be=E===i.refetch||E===i.fetchMore||E===i.poll,jt=this.options.variables,yn=this.options.fetchPolicy,Bt=(0,ai.o)(this.options,D||{}),bn=Be?Bt:ze(this.options,Bt);Be||(this.updatePolling(),D&&D.variables&&!(0,ge.D)(D.variables,jt)&&"standby"!==bn.fetchPolicy&&bn.fetchPolicy===yn&&(this.applyNextFetchPolicy("variables-changed",bn),void 0===E&&(E=i.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=le(bn.fetchPolicy));var Kn=function(){U.concast===ri&&(U.waitForOwnResult=!1)},Jn=bn.variables&&(0,p.pi)({},bn.variables),Nn=this.fetch(bn,E),ri=Nn.concast,si={next:function(Ci){Kn(),U.reportResult(Ci,Jn)},error:function(Ci){Kn(),U.reportError(Ci,Jn)}};return!Be&&Nn.fromLink&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=ri,this.observer=si),ri.addObserver(si),ri},C.prototype.reobserve=function(D,E){return this.reobserveAsConcast(D,E).promise},C.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},C.prototype.reportResult=function(D,E){var U=this.getLastError();(U||this.isDifferentFromLastResult(D,E))&&((U||!D.partial||this.options.returnPartialData)&&this.updateLastResult(D,E),Gt(this.observers,"next",D))},C.prototype.reportError=function(D,E){var U=(0,p.pi)((0,p.pi)({},this.getLastResult()),{error:D,errors:D.graphQLErrors,networkStatus:i.error,loading:!1});this.updateLastResult(U,E),Gt(this.observers,"error",this.last.error=D)},C.prototype.hasObservers=function(){return this.observers.size>0},C.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(D){return D.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},C}(W.y);function He(te){var C=te.options,D=C.fetchPolicy,E=C.nextFetchPolicy;return"cache-and-network"===D||"network-only"===D?te.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=E,"function"==typeof E?E.apply(this,arguments):D}}):te.reobserve()}function yt(te){__DEV__&&v.kG.error("Unhandled error",te.message,te.stack)}function ht(te){__DEV__&&te&&__DEV__&&v.kG.debug("Missing cache result fields: ".concat(JSON.stringify(te)),te)}function le(te){return"network-only"===te||"no-cache"===te||"standby"===te}gn(q);var pe=y(2289);function xt(te){return te.kind===pe.h.FIELD||te.kind===pe.h.FRAGMENT_SPREAD||te.kind===pe.h.INLINE_FRAGMENT}var fn=y(9661),Ln=y(6430),Ti=function(){function te(C){var D=C.cache,E=C.client,U=C.resolvers,Be=C.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=D,E&&(this.client=E),U&&this.addResolvers(U),Be&&this.setFragmentMatcher(Be)}return te.prototype.addResolvers=function(C){var D=this;this.resolvers=this.resolvers||{},Array.isArray(C)?C.forEach(function(E){D.resolvers=(0,ft.Ee)(D.resolvers,E)}):this.resolvers=(0,ft.Ee)(this.resolvers,C)},te.prototype.setResolvers=function(C){this.resolvers={},this.addResolvers(C)},te.prototype.getResolvers=function(){return this.resolvers||{}},te.prototype.runResolvers=function(C){var D=C.document,E=C.remoteResult,U=C.context,Be=C.variables,jt=C.onlyRunForcedResolvers,yn=void 0!==jt&&jt;return(0,p.mG)(this,void 0,void 0,function(){return(0,p.Jh)(this,function(Bt){return D?[2,this.resolveDocument(D,E.data,U,Be,this.fragmentMatcher,yn).then(function(bn){return(0,p.pi)((0,p.pi)({},E),{data:bn.result})})]:[2,E]})})},te.prototype.setFragmentMatcher=function(C){this.fragmentMatcher=C},te.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},te.prototype.clientQuery=function(C){return(0,Y.FS)(["client"],C)&&this.resolvers?C:null},te.prototype.serverQuery=function(C){return(0,dn.ob)(C)},te.prototype.prepareContext=function(C){var D=this.cache;return(0,p.pi)((0,p.pi)({},C),{cache:D,getCacheKey:function(E){return D.identify(E)}})},te.prototype.addExportedVariables=function(C,D,E){return void 0===D&&(D={}),void 0===E&&(E={}),(0,p.mG)(this,void 0,void 0,function(){return(0,p.Jh)(this,function(U){return C?[2,this.resolveDocument(C,this.buildRootValueFromCache(C,D)||{},this.prepareContext(E),D).then(function(Be){return(0,p.pi)((0,p.pi)({},D),Be.exportedVariables)})]:[2,(0,p.pi)({},D)]})})},te.prototype.shouldForceResolvers=function(C){var D=!1;return(0,J.Vn)(C,{Directive:{enter:function(E){if("client"===E.name.value&&E.arguments&&(D=E.arguments.some(function(U){return"always"===U.name.value&&"BooleanValue"===U.value.kind&&!0===U.value.value})))return J.$_}}}),D},te.prototype.buildRootValueFromCache=function(C,D){return this.cache.diff({query:(0,dn.aL)(C),variables:D,returnPartialData:!0,optimistic:!1}).result},te.prototype.resolveDocument=function(C,D,E,U,Be,jt){return void 0===E&&(E={}),void 0===U&&(U={}),void 0===Be&&(Be=function(){return!0}),void 0===jt&&(jt=!1),(0,p.mG)(this,void 0,void 0,function(){var yn,Bt,bn,Kn,Jn,Nn,ri,mi,si,Ci;return(0,p.Jh)(this,function(Xi){return yn=(0,lt.p$)(C),Bt=(0,lt.kU)(C),bn=(0,fn.F)(Bt),Kn=this.collectSelectionsToResolve(yn,bn),Nn=(Jn=yn.operation)?Jn.charAt(0).toUpperCase()+Jn.slice(1):"Query",mi=(ri=this).cache,si=ri.client,Ci={fragmentMap:bn,context:(0,p.pi)((0,p.pi)({},E),{cache:mi,client:si}),variables:U,fragmentMatcher:Be,defaultOperationType:Nn,exportedVariables:{},selectionsToResolve:Kn,onlyRunForcedResolvers:jt},[2,this.resolveSelectionSet(yn.selectionSet,!1,D,Ci).then(function(Bi){return{result:Bi,exportedVariables:Ci.exportedVariables}})]})})},te.prototype.resolveSelectionSet=function(C,D,E,U){return(0,p.mG)(this,void 0,void 0,function(){var Be,jt,yn,Bt,Kn=this;return(0,p.Jh)(this,function(Jn){return Be=U.fragmentMap,jt=U.context,yn=U.variables,Bt=[E],[2,Promise.all(C.selections.map(function(Nn){return(0,p.mG)(Kn,void 0,void 0,function(){var ri;return(0,p.Jh)(this,function(si){return(D||U.selectionsToResolve.has(Nn))&&(0,Y.LZ)(Nn,yn)?(0,Rn.My)(Nn)?[2,this.resolveField(Nn,D,E,U).then(function(Ci){var Si;typeof Ci<"u"&&Bt.push(((Si={})[(0,Rn.u2)(Nn)]=Ci,Si))})]:((0,Rn.Ao)(Nn)?ri=Nn:(ri=Be[Nn.name.value],__DEV__?(0,v.kG)(ri,"No fragment named ".concat(Nn.name.value)):(0,v.kG)(ri,11)),ri&&ri.typeCondition&&U.fragmentMatcher(E,ri.typeCondition.name.value,jt)?[2,this.resolveSelectionSet(ri.selectionSet,D,E,U).then(function(Ci){Bt.push(Ci)})]:[2]):[2]})})})).then(function(){return(0,ft.bw)(Bt)})]})})},te.prototype.resolveField=function(C,D,E,U){return(0,p.mG)(this,void 0,void 0,function(){var Be,jt,yn,Bt,bn,Kn,Jn,Nn,ri,mi=this;return(0,p.Jh)(this,function(si){return E?(Be=U.variables,jt=C.name.value,yn=(0,Rn.u2)(C),Bt=jt!==yn,bn=E[yn]||E[jt],Kn=Promise.resolve(bn),(!U.onlyRunForcedResolvers||this.shouldForceResolvers(C))&&(Jn=E.__typename||U.defaultOperationType,(Nn=this.resolvers&&this.resolvers[Jn])&&(ri=Nn[Bt?jt:yn])&&(Kn=Promise.resolve(Ln.ab.withValue(this.cache,ri,[E,(0,Rn.NC)(C,Be),U.context,{field:C,fragmentMap:U.fragmentMap}])))),[2,Kn.then(function(Ci){var Si,Xi;if(void 0===Ci&&(Ci=bn),C.directives&&C.directives.forEach(function(er){"export"===er.name.value&&er.arguments&&er.arguments.forEach(function(Vi){"as"===Vi.name.value&&"StringValue"===Vi.value.kind&&(U.exportedVariables[Vi.value.value]=Ci)})}),!C.selectionSet||null==Ci)return Ci;var Bi=null!==(Xi=null===(Si=C.directives)||void 0===Si?void 0:Si.some(function(er){return"client"===er.name.value}))&&void 0!==Xi&Ξreturn Array.isArray(Ci)?mi.resolveSubSelectedArray(C,D||Bi,Ci,U):C.selectionSet?mi.resolveSelectionSet(C.selectionSet,D||Bi,Ci,U):void 0})]):[2,null]})})},te.prototype.resolveSubSelectedArray=function(C,D,E,U){var Be=this;return Promise.all(E.map(function(jt){return null===jt?null:Array.isArray(jt)?Be.resolveSubSelectedArray(C,D,jt,U):C.selectionSet?Be.resolveSelectionSet(C.selectionSet,D,jt,U):void 0}))},te.prototype.collectSelectionsToResolve=function(C,D){var E=function(jt){return!Array.isArray(jt)},U=this.selectionsToResolveCache;return function Be(jt){if(!U.has(jt)){var yn=new Set;U.set(jt,yn),(0,J.Vn)(jt,{Directive:function(Bt,bn,Kn,Jn,Nn){"client"===Bt.name.value&&Nn.forEach(function(ri){E(ri)&&xt(ri)&&yn.add(ri)})},FragmentSpread:function(Bt,bn,Kn,Jn,Nn){var ri=D[Bt.name.value];__DEV__?(0,v.kG)(ri,"No fragment named ".concat(Bt.name.value)):(0,v.kG)(ri,12);var mi=Be(ri);mi.size>0&&(Nn.forEach(function(si){E(si)&&xt(si)&&yn.add(si)}),yn.add(Bt),mi.forEach(function(si){yn.add(si)}))}})}return U.get(jt)}(C)},te}(),Oi=new(G.mr?WeakMap:Map);function zi(te,C){var D=te[C];"function"==typeof D&&(te[C]=function(){return Oi.set(te,(Oi.get(te)+1)%1e15),D.apply(this,arguments)})}function ur(te){te.notifyTimeout&&(clearTimeout(te.notifyTimeout),te.notifyTimeout=void 0)}var Mt=function(){function te(C,D){void 0===D&&(D=C.generateQueryId()),this.queryId=D,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var E=this.cache=C.cache;Oi.has(E)||(Oi.set(E,0),zi(E,"evict"),zi(E,"modify"),zi(E,"reset"))}return te.prototype.init=function(C){var D=C.networkStatus||i.loading;return this.variables&&this.networkStatus!==i.loading&&!(0,ge.D)(this.variables,C.variables)&&(D=i.setVariables),(0,ge.D)(C.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:C.document,variables:C.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:D}),C.observableQuery&&this.setObservableQuery(C.observableQuery),C.lastRequestId&&(this.lastRequestId=C.lastRequestId),this},te.prototype.reset=function(){ur(this),this.dirty=!1},te.prototype.getDiff=function(C){void 0===C&&(C=this.variables);var D=this.getDiffOptions(C);if(this.lastDiff&&(0,ge.D)(D,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=C);var E=this.observableQuery;if(E&&"no-cache"===E.options.fetchPolicy)return{complete:!1};var U=this.cache.diff(D);return this.updateLastDiff(U,D),U},te.prototype.updateLastDiff=function(C,D){this.lastDiff=C?{diff:C,options:D||this.getDiffOptions()}:void 0},te.prototype.getDiffOptions=function(C){var D;return void 0===C&&(C=this.variables),{query:this.document,variables:C,returnPartialData:!0,optimistic:!0,canonizeResults:null===(D=this.observableQuery)||void 0===D?void 0:D.options.canonizeResults}},te.prototype.setDiff=function(C){var D=this,E=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(C),!this.dirty&&!(0,ge.D)(E&&E.result,C&&C.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return D.notify()},0)))},te.prototype.setObservableQuery=function(C){var D=this;C!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=C,C?(C.queryInfo=this,this.listeners.add(this.oqListener=function(){D.getDiff().fromOptimisticTransaction?C.observe():He(C)})):delete this.oqListener)},te.prototype.notify=function(){var C=this;ur(this),this.shouldNotify()&&this.listeners.forEach(function(D){return D(C)}),this.dirty=!1},te.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(A(this.networkStatus)&&this.observableQuery){var C=this.observableQuery.options.fetchPolicy;if("cache-only"!==C&&"cache-and-network"!==C)return!1}return!0},te.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=te.prototype.cancel,this.subscriptions.forEach(function(D){return D.unsubscribe()});var C=this.observableQuery;C&&C.stopPolling()}},te.prototype.cancel=function(){},te.prototype.updateWatch=function(C){var D=this;void 0===C&&(C=this.variables);var E=this.observableQuery;if(!E||"no-cache"!==E.options.fetchPolicy){var U=(0,p.pi)((0,p.pi)({},this.getDiffOptions(C)),{watcher:this,callback:function(Be){return D.setDiff(Be)}});(!this.lastWatch||!(0,ge.D)(U,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=U))}},te.prototype.resetLastWrite=function(){this.lastWrite=void 0},te.prototype.shouldWrite=function(C,D){var E=this.lastWrite;return!(E&&E.dmCount===Oi.get(this.cache)&&(0,ge.D)(D,E.variables)&&(0,ge.D)(C.data,E.result.data))},te.prototype.markResult=function(C,D,E,U){var Be=this,jt=new ft.w0,yn=(0,pt.O)(C.errors)?C.errors.slice(0):[];if(this.reset(),"incremental"in C&&(0,pt.O)(C.incremental)){var Bt=dt(this.getDiff().result,C);C.data=Bt}else if("hasNext"in C&&C.hasNext){var bn=this.getDiff();C.data=jt.merge(bn.result,C.data)}this.graphQLErrors=yn,"no-cache"===E.fetchPolicy?this.updateLastDiff({result:C.data,complete:!0},this.getDiffOptions(E.variables)):0!==U&&(an(C,E.errorPolicy)?this.cache.performTransaction(function(Kn){if(Be.shouldWrite(C,E.variables))Kn.writeQuery({query:D,data:C.data,variables:E.variables,overwrite:1===U}),Be.lastWrite={result:C,variables:E.variables,dmCount:Oi.get(Be.cache)};else if(Be.lastDiff&&Be.lastDiff.diff.complete)return void(C.data=Be.lastDiff.diff.result);var Jn=Be.getDiffOptions(E.variables),Nn=Kn.diff(Jn);Be.stopped||Be.updateWatch(E.variables),Be.updateLastDiff(Nn,Jn),Nn.complete&&(C.data=Nn.result)}):this.lastWrite=void 0)},te.prototype.markReady=function(){return this.networkError=null,this.networkStatus=i.ready},te.prototype.markError=function(C){return this.networkStatus=i.error,this.lastWrite=void 0,this.reset(),C.graphQLErrors&&(this.graphQLErrors=C.graphQLErrors),C.networkError&&(this.networkError=C.networkError),C},te}();function an(te,C){void 0===C&&(C="none");var D="ignore"===C||"all"===C,E=!it(te);return!E&&D&&te.data&&(E=!0),E}var ut=Object.prototype.hasOwnProperty,Ft=function(){function te(C){var D=C.cache,E=C.link,U=C.defaultOptions,Be=C.queryDeduplication,jt=void 0!==Be&&Be,yn=C.onBroadcast,Bt=C.ssrMode,bn=void 0!==Bt&&Bt,Kn=C.clientAwareness,Jn=void 0===Kn?{}:Kn,Nn=C.localState,ri=C.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(G.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=D,this.link=E,this.defaultOptions=U||Object.create(null),this.queryDeduplication=jt,this.clientAwareness=Jn,this.localState=Nn||new Ti({cache:D}),this.ssrMode=bn,this.assumeImmutableResults=!!ri,(this.onBroadcast=yn)&&(this.mutationStore=Object.create(null))}return te.prototype.stop=function(){var C=this;this.queries.forEach(function(D,E){C.stopQueryNoBroadcast(E)}),this.cancelPendingFetches(__DEV__?new v.ej("QueryManager stopped while query was in flight"):new v.ej(14))},te.prototype.cancelPendingFetches=function(C){this.fetchCancelFns.forEach(function(D){return D(C)}),this.fetchCancelFns.clear()},te.prototype.mutate=function(C){var D,E,U=C.mutation,Be=C.variables,jt=C.optimisticResponse,yn=C.updateQueries,Bt=C.refetchQueries,bn=void 0===Bt?[]:Bt,Kn=C.awaitRefetchQueries,Jn=void 0!==Kn&&Kn,Nn=C.update,ri=C.onQueryUpdated,mi=C.fetchPolicy,si=void 0===mi?(null===(D=this.defaultOptions.mutate)||void 0===D?void 0:D.fetchPolicy)||"network-only":mi,Ci=C.errorPolicy,Si=void 0===Ci?(null===(E=this.defaultOptions.mutate)||void 0===E?void 0:E.errorPolicy)||"none":Ci,Xi=C.keepRootFields,Bi=C.context;return(0,p.mG)(this,void 0,void 0,function(){var er,Vi,lr,rr,hr;return(0,p.Jh)(this,function(tr){switch(tr.label){case 0:return __DEV__?(0,v.kG)(U,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,v.kG)(U,15),__DEV__?(0,v.kG)("network-only"===si||"no-cache"===si,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,v.kG)("network-only"===si||"no-cache"===si,16),er=this.generateMutationId(),Vi=this.transform(U),lr=Vi.hasClientExports,U=this.cache.transformForLink(Vi.document),Be=this.getVariables(U,Be),lr?[4,this.localState.addExportedVariables(U,Be,Bi)]:[3,2];case 1:Be=tr.sent(),tr.label=2;case 2:return rr=this.mutationStore&&(this.mutationStore[er]={mutation:U,variables:Be,loading:!0,error:null}),jt&&this.markMutationOptimistic(jt,{mutationId:er,document:U,variables:Be,fetchPolicy:si,errorPolicy:Si,context:Bi,updateQueries:yn,update:Nn,keepRootFields:Xi}),this.broadcastQueries(),hr=this,[2,new Promise(function(Ta,ol){return _e(hr.getObservableFromLink(U,(0,p.pi)((0,p.pi)({},Bi),{optimisticResponse:jt}),Be,!1),function(ia){if(it(ia)&&"none"===Si)throw new at({graphQLErrors:ct(ia)});rr&&(rr.loading=!1,rr.error=null);var io=(0,p.pi)({},ia);return"function"==typeof bn&&(bn=bn(io)),"ignore"===Si&&it(io)&&delete io.errors,hr.markMutationResult({mutationId:er,result:io,document:U,variables:Be,fetchPolicy:si,errorPolicy:Si,context:Bi,update:Nn,updateQueries:yn,awaitRefetchQueries:Jn,refetchQueries:bn,removeOptimistic:jt?er:void 0,onQueryUpdated:ri,keepRootFields:Xi})}).subscribe({next:function(ia){hr.broadcastQueries(),(!("hasNext"in ia)||!1===ia.hasNext)&&Ta(ia)},error:function(ia){rr&&(rr.loading=!1,rr.error=ia),jt&&hr.cache.removeOptimistic(er),hr.broadcastQueries(),ol(ia instanceof at?ia:new at({networkError:ia}))}})})]}})})},te.prototype.markMutationResult=function(C,D){var E=this;void 0===D&&(D=this.cache);var U=C.result,Be=[],jt="no-cache"===C.fetchPolicy;if(!jt&&an(U,C.errorPolicy)){if(Et(U)||Be.push({result:U.data,dataId:"ROOT_MUTATION",query:C.document,variables:C.variables}),Et(U)&&(0,pt.O)(U.incremental)){var yn=D.diff({id:"ROOT_MUTATION",query:this.transform(C.document).asQuery,variables:C.variables,optimistic:!1,returnPartialData:!0}),Bt=void 0;yn.result&&(Bt=dt(yn.result,U)),typeof Bt<"u"&&(U.data=Bt,Be.push({result:Bt,dataId:"ROOT_MUTATION",query:C.document,variables:C.variables}))}var bn=C.updateQueries;bn&&this.queries.forEach(function(Jn,Nn){var ri=Jn.observableQuery,mi=ri&&ri.queryName;if(mi&&ut.call(bn,mi)){var si=bn[mi],Ci=E.queries.get(Nn),Si=Ci.document,Xi=Ci.variables,Bi=D.diff({query:Si,variables:Xi,returnPartialData:!0,optimistic:!1}),er=Bi.result;if(Bi.complete&&er){var qi=si(er,{mutationResult:U,queryName:Si&&(0,lt.rY)(Si)||void 0,queryVariables:Xi});qi&&Be.push({result:qi,dataId:"ROOT_QUERY",query:Si,variables:Xi})}}})}if(Be.length>0||C.refetchQueries||C.update||C.onQueryUpdated||C.removeOptimistic){var Kn=[];if(this.refetchQueries({updateCache:function(Jn){jt||Be.forEach(function(si){return Jn.write(si)});var Nn=C.update,ri=!function Pe(te){return Et(te)||function be(te){return"hasNext"in te&&"data"in te}(te)}(U)||Et(U)&&!U.hasNext;if(Nn){if(!jt){var mi=Jn.diff({id:"ROOT_MUTATION",query:E.transform(C.document).asQuery,variables:C.variables,optimistic:!1,returnPartialData:!0});mi.complete&&("incremental"in(U=(0,p.pi)((0,p.pi)({},U),{data:mi.result}))&&delete U.incremental,"hasNext"in U&&delete U.hasNext)}ri&&Nn(Jn,U,{context:C.context,variables:C.variables})}!jt&&!C.keepRootFields&&ri&&Jn.modify({id:"ROOT_MUTATION",fields:function(si,Ci){return"__typename"===Ci.fieldName?si:Ci.DELETE}})},include:C.refetchQueries,optimistic:!1,removeOptimistic:C.removeOptimistic,onQueryUpdated:C.onQueryUpdated||null}).forEach(function(Jn){return Kn.push(Jn)}),C.awaitRefetchQueries||C.onQueryUpdated)return Promise.all(Kn).then(function(){return U})}return Promise.resolve(U)},te.prototype.markMutationOptimistic=function(C,D){var E=this,U="function"==typeof C?C(D.variables):C;return this.cache.recordOptimisticTransaction(function(Be){try{E.markMutationResult((0,p.pi)((0,p.pi)({},D),{result:{data:U}}),Be)}catch(jt){__DEV__&&v.kG.error(jt)}},D.mutationId)},te.prototype.fetchQuery=function(C,D,E){return this.fetchQueryObservable(C,D,E).promise},te.prototype.getQueryStore=function(){var C=Object.create(null);return this.queries.forEach(function(D,E){C[E]={variables:D.variables,networkStatus:D.networkStatus,networkError:D.networkError,graphQLErrors:D.graphQLErrors}}),C},te.prototype.resetErrors=function(C){var D=this.queries.get(C);D&&(D.networkError=void 0,D.graphQLErrors=[])},te.prototype.transform=function(C){var D=this.transformCache;if(!D.has(C)){var E=this.cache.transformDocument(C),U=(0,dn.Fo)(E),Be=this.localState.clientQuery(E),jt=U&&this.localState.serverQuery(U),yn={document:E,hasClientExports:(0,Y.mj)(E),hasForcedResolvers:this.localState.shouldForceResolvers(E),clientQuery:Be,serverQuery:jt,defaultVars:(0,lt.O4)((0,lt.$H)(E)),asQuery:(0,p.pi)((0,p.pi)({},E),{definitions:E.definitions.map(function(bn){return"OperationDefinition"===bn.kind&&"query"!==bn.operation?(0,p.pi)((0,p.pi)({},bn),{operation:"query"}):bn})})},Bt=function(bn){bn&&!D.has(bn)&&D.set(bn,yn)};Bt(C),Bt(E),Bt(Be),Bt(jt)}return D.get(C)},te.prototype.getVariables=function(C,D){return(0,p.pi)((0,p.pi)({},this.transform(C).defaultVars),D)},te.prototype.watchQuery=function(C){typeof(C=(0,p.pi)((0,p.pi)({},C),{variables:this.getVariables(C.query,C.variables)})).notifyOnNetworkStatusChange>"u"&&(C.notifyOnNetworkStatusChange=!1);var D=new Mt(this),E=new q({queryManager:this,queryInfo:D,options:C});return this.queries.set(E.queryId,D),D.init({document:E.query,observableQuery:E,variables:E.variables}),E},te.prototype.query=function(C,D){var E=this;return void 0===D&&(D=this.generateQueryId()),__DEV__?(0,v.kG)(C.query,"query option is required. You must specify your GraphQL document in the query option."):(0,v.kG)(C.query,17),__DEV__?(0,v.kG)("Document"===C.query.kind,'You must wrap the query string in a "gql" tag.'):(0,v.kG)("Document"===C.query.kind,18),__DEV__?(0,v.kG)(!C.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,v.kG)(!C.returnPartialData,19),__DEV__?(0,v.kG)(!C.pollInterval,"pollInterval option only supported on watchQuery."):(0,v.kG)(!C.pollInterval,20),this.fetchQuery(D,C).finally(function(){return E.stopQuery(D)})},te.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},te.prototype.generateRequestId=function(){return this.requestIdCounter++},te.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},te.prototype.stopQueryInStore=function(C){this.stopQueryInStoreNoBroadcast(C),this.broadcastQueries()},te.prototype.stopQueryInStoreNoBroadcast=function(C){var D=this.queries.get(C);D&&D.stop()},te.prototype.clearStore=function(C){return void 0===C&&(C={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new v.ej("Store reset while query was in flight (not completed in link chain)"):new v.ej(21)),this.queries.forEach(function(D){D.observableQuery?D.networkStatus=i.loading:D.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(C)},te.prototype.getObservableQueries=function(C){var D=this;void 0===C&&(C="active");var E=new Map,U=new Map,Be=new Set;return Array.isArray(C)&&C.forEach(function(jt){"string"==typeof jt?U.set(jt,!1):(0,Rn.JW)(jt)?U.set(D.transform(jt).document,!1):(0,ye.s)(jt)&&jt.query&&Be.add(jt)}),this.queries.forEach(function(jt,yn){var Bt=jt.observableQuery,bn=jt.document;if(Bt){if("all"===C)return void E.set(yn,Bt);var Kn=Bt.queryName;if("standby"===Bt.options.fetchPolicy||"active"===C&&!Bt.hasObservers())return;("active"===C||Kn&&U.has(Kn)||bn&&U.has(bn))&&(E.set(yn,Bt),Kn&&U.set(Kn,!0),bn&&U.set(bn,!0))}}),Be.size&&Be.forEach(function(jt){var yn=(0,An.X)("legacyOneTimeQuery"),Bt=D.getQuery(yn).init({document:jt.query,variables:jt.variables}),bn=new q({queryManager:D,queryInfo:Bt,options:(0,p.pi)((0,p.pi)({},jt),{fetchPolicy:"network-only"})});(0,v.kG)(bn.queryId===yn),Bt.setObservableQuery(bn),E.set(yn,bn)}),__DEV__&&U.size&&U.forEach(function(jt,yn){jt||__DEV__&&v.kG.warn("Unknown query ".concat("string"==typeof yn?"named ":"").concat(JSON.stringify(yn,null,2)," requested in refetchQueries options.include array"))}),E},te.prototype.reFetchObservableQueries=function(C){var D=this;void 0===C&&(C=!1);var E=[];return this.getObservableQueries(C?"all":"active").forEach(function(U,Be){var jt=U.options.fetchPolicy;U.resetLastResults(),(C||"standby"!==jt&&"cache-only"!==jt)&&E.push(U.refetch()),D.getQuery(Be).setDiff(null)}),this.broadcastQueries(),Promise.all(E)},te.prototype.setObservableQuery=function(C){this.getQuery(C.queryId).setObservableQuery(C)},te.prototype.startGraphQLSubscription=function(C){var D=this,E=C.query,U=C.fetchPolicy,Be=C.errorPolicy,jt=C.variables,yn=C.context,Bt=void 0===yn?{}:yn;E=this.transform(E).document,jt=this.getVariables(E,jt);var bn=function(Jn){return D.getObservableFromLink(E,Bt,Jn).map(function(Nn){"no-cache"!==U&&(an(Nn,Be)&&D.cache.write({query:E,result:Nn.data,dataId:"ROOT_SUBSCRIPTION",variables:Jn}),D.broadcastQueries());var ri=it(Nn),mi=function Ae(te){return!!te.extensions&&Array.isArray(te.extensions[Oe])}(Nn);if(ri||mi){var si={};throw ri&&(si.graphQLErrors=Nn.errors),mi&&(si.protocolErrors=Nn.extensions[Oe]),new at(si)}return Nn})};if(this.transform(E).hasClientExports){var Kn=this.localState.addExportedVariables(E,jt,Bt).then(bn);return new W.y(function(Jn){var Nn=null;return Kn.then(function(ri){return Nn=ri.subscribe(Jn)},Jn.error),function(){return Nn&&Nn.unsubscribe()}})}return bn(jt)},te.prototype.stopQuery=function(C){this.stopQueryNoBroadcast(C),this.broadcastQueries()},te.prototype.stopQueryNoBroadcast=function(C){this.stopQueryInStoreNoBroadcast(C),this.removeQuery(C)},te.prototype.removeQuery=function(C){this.fetchCancelFns.delete(C),this.queries.has(C)&&(this.getQuery(C).stop(),this.queries.delete(C))},te.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(C){return C.notify()})},te.prototype.getLocalState=function(){return this.localState},te.prototype.getObservableFromLink=function(C,D,E,U){var jt,Be=this;void 0===U&&(U=null!==(jt=D?.queryDeduplication)&&void 0!==jt?jt:this.queryDeduplication);var yn,Bt=this.transform(C).serverQuery;if(Bt){var Kn=this.inFlightLinkObservables,Jn=this.link,Nn={query:Bt,variables:E,operationName:(0,lt.rY)(Bt)||void 0,context:this.prepareContext((0,p.pi)((0,p.pi)({},D),{forceFetch:!U}))};if(D=Nn.context,U){var ri=Kn.get(Bt)||new Map;Kn.set(Bt,ri);var mi=(0,Me.B)(E);if(!(yn=ri.get(mi))){var si=new cn([f(Jn,Nn)]);ri.set(mi,yn=si),si.beforeNext(function(){ri.delete(mi)&&ri.size<1&&Kn.delete(Bt)})}}else yn=new cn([f(Jn,Nn)])}else yn=new cn([W.y.of({data:{}})]),D=this.prepareContext(D);var Ci=this.transform(C).clientQuery;return Ci&&(yn=_e(yn,function(Si){return Be.localState.runResolvers({document:Ci,remoteResult:Si,context:D,variables:E})})),yn},te.prototype.getResultsFromLink=function(C,D,E){var U=C.lastRequestId=this.generateRequestId(),Be=this.cache.transformForLink(this.transform(C.document).document);return _e(this.getObservableFromLink(Be,E.context,E.variables),function(jt){var yn=ct(jt),Bt=yn.length>0;if(U>=C.lastRequestId){if(Bt&&"none"===E.errorPolicy)throw C.markError(new at({graphQLErrors:yn}));C.markResult(jt,Be,E,D),C.markReady()}var bn={data:jt.data,loading:!1,networkStatus:i.ready};return Bt&&"ignore"!==E.errorPolicy&&(bn.errors=yn,bn.networkStatus=i.error),bn},function(jt){var yn=function tt(te){return te.hasOwnProperty("graphQLErrors")}(jt)?jt:new at({networkError:jt});throw U>=C.lastRequestId&&C.markError(yn),yn})},te.prototype.fetchQueryObservable=function(C,D,E){return this.fetchConcastWithInfo(C,D,E).concast},te.prototype.fetchConcastWithInfo=function(C,D,E){var U=this;void 0===E&&(E=i.loading);var qi,lr,Be=this.transform(D.query).document,jt=this.getVariables(Be,D.variables),yn=this.getQuery(C),Bt=this.defaultOptions.watchQuery,bn=D.fetchPolicy,Jn=D.errorPolicy,ri=D.returnPartialData,si=D.notifyOnNetworkStatusChange,Si=D.context,Bi=Object.assign({},D,{query:Be,variables:jt,fetchPolicy:void 0===bn?Bt&&Bt.fetchPolicy||"cache-first":bn,errorPolicy:void 0===Jn?Bt&&Bt.errorPolicy||"none":Jn,returnPartialData:void 0!==ri&&ri,notifyOnNetworkStatusChange:void 0!==si&&si,context:void 0===Si?{}:Si}),er=function(hr){Bi.variables=hr;var tr=U.fetchQueryByPolicy(yn,Bi,E);return"standby"!==Bi.fetchPolicy&&tr.sources.length>0&&yn.observableQuery&&yn.observableQuery.applyNextFetchPolicy("after-fetch",D),tr},Vi=function(){return U.fetchCancelFns.delete(C)};if(this.fetchCancelFns.set(C,function(hr){Vi(),setTimeout(function(){return qi.cancel(hr)})}),this.transform(Bi.query).hasClientExports)qi=new cn(this.localState.addExportedVariables(Bi.query,Bi.variables,Bi.context).then(er).then(function(hr){return hr.sources})),lr=!0;else{var rr=er(Bi.variables);lr=rr.fromLink,qi=new cn(rr.sources)}return qi.promise.then(Vi,Vi),{concast:qi,fromLink:lr}},te.prototype.refetchQueries=function(C){var D=this,E=C.updateCache,U=C.include,Be=C.optimistic,jt=void 0!==Be&&Be,yn=C.removeOptimistic,Bt=void 0===yn?jt?(0,An.X)("refetchQueries"):void 0:yn,bn=C.onQueryUpdated,Kn=new Map;U&&this.getObservableQueries(U).forEach(function(Nn,ri){Kn.set(ri,{oq:Nn,lastDiff:D.getQuery(ri).getDiff()})});var Jn=new Map;return E&&this.cache.batch({update:E,optimistic:jt&&Bt||!1,removeOptimistic:Bt,onWatchUpdated:function(Nn,ri,mi){var si=Nn.watcher instanceof Mt&&Nn.watcher.observableQuery;if(si){if(bn){Kn.delete(si.queryId);var Ci=bn(si,ri,mi);return!0===Ci&&(Ci=si.refetch()),!1!==Ci&&Jn.set(si,Ci),Ci}null!==bn&&Kn.set(si.queryId,{oq:si,lastDiff:mi,diff:ri})}}}),Kn.size&&Kn.forEach(function(Nn,ri){var Si,mi=Nn.oq,si=Nn.lastDiff,Ci=Nn.diff;if(bn){if(!Ci){var Xi=mi.queryInfo;Xi.reset(),Ci=Xi.getDiff()}Si=bn(mi,Ci,si)}(!bn||!0===Si)&&(Si=mi.refetch()),!1!==Si&&Jn.set(mi,Si),ri.indexOf("legacyOneTimeQuery")>=0&&D.stopQueryNoBroadcast(ri)}),Bt&&this.cache.removeOptimistic(Bt),Jn},te.prototype.fetchQueryByPolicy=function(C,D,E){var U=this,Be=D.query,jt=D.variables,yn=D.fetchPolicy,Bt=D.refetchWritePolicy,bn=D.errorPolicy,Kn=D.returnPartialData,Jn=D.context,Nn=D.notifyOnNetworkStatusChange,ri=C.networkStatus;C.init({document:this.transform(Be).document,variables:jt,networkStatus:E});var mi=function(){return C.getDiff(jt)},si=function(er,Vi){void 0===Vi&&(Vi=C.networkStatus||i.loading);var qi=er.result;__DEV__&&!Kn&&!(0,ge.D)(qi,{})&&ht(er.missing);var lr=function(rr){return W.y.of((0,p.pi)({data:rr,loading:A(Vi),networkStatus:Vi},er.complete?null:{partial:!0}))};return qi&&U.transform(Be).hasForcedResolvers?U.localState.runResolvers({document:Be,remoteResult:{data:qi},context:Jn,variables:jt,onlyRunForcedResolvers:!0}).then(function(rr){return lr(rr.data||void 0)}):"none"===bn&&Vi===i.refetch&&Array.isArray(er.missing)?lr(void 0):lr(qi)},Ci="no-cache"===yn?0:E===i.refetch&&"merge"!==Bt?1:2,Si=function(){return U.getResultsFromLink(C,Ci,{variables:jt,context:Jn,fetchPolicy:yn,errorPolicy:bn})},Xi=Nn&&"number"==typeof ri&&ri!==E&&A(E);switch(yn){default:case"cache-first":return(Bi=mi()).complete?{fromLink:!1,sources:[si(Bi,C.markReady())]}:Kn||Xi?{fromLink:!0,sources:[si(Bi),Si()]}:{fromLink:!0,sources:[Si()]};case"cache-and-network":var Bi;return(Bi=mi()).complete||Kn||Xi?{fromLink:!0,sources:[si(Bi),Si()]}:{fromLink:!0,sources:[Si()]};case"cache-only":return{fromLink:!1,sources:[si(mi(),C.markReady())]};case"network-only":return Xi?{fromLink:!0,sources:[si(mi()),Si()]}:{fromLink:!0,sources:[Si()]};case"no-cache":return Xi?{fromLink:!0,sources:[si(C.getDiff()),Si()]}:{fromLink:!0,sources:[Si()]};case"standby":return{fromLink:!1,sources:[]}}},te.prototype.getQuery=function(C){return C&&!this.queries.has(C)&&this.queries.set(C,new Mt(this,C)),this.queries.get(C)},te.prototype.prepareContext=function(C){void 0===C&&(C={});var D=this.localState.prepareContext(C);return(0,p.pi)((0,p.pi)({},D),{clientAwareness:this.clientAwareness})},te}();function ln(te,C){return(0,ai.o)(te,C,C.variables&&{variables:(0,p.pi)((0,p.pi)({},te&&te.variables),C.variables)})}var Tn=!1,Hn=function(){function te(C){var D=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var E=C.uri,jt=C.cache,yn=C.ssrMode,Bt=void 0!==yn&&yn,bn=C.ssrForceFetchDelay,Kn=void 0===bn?0:bn,Jn=C.connectToDevTools,Nn=void 0===Jn?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:Jn,ri=C.queryDeduplication,mi=void 0===ri||ri,si=C.defaultOptions,Ci=C.assumeImmutableResults,Si=void 0!==Ci&&Ci,Xi=C.resolvers,Bi=C.typeDefs,er=C.fragmentMatcher,Vi=C.name,qi=C.version,lr=C.link;if(lr||(lr=E?new Ke({uri:E,credentials:C.credentials,headers:C.headers}):k.i.empty()),!jt)throw __DEV__?new v.ej("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new v.ej(9);if(this.link=lr,this.cache=jt,this.disableNetworkFetches=Bt||Kn>0,this.queryDeduplication=mi,this.defaultOptions=si||Object.create(null),this.typeDefs=Bi,Kn&&setTimeout(function(){return D.disableNetworkFetches=!1},Kn),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),Nn&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Tn&&Nn&&__DEV__&&(Tn=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var rr=window.navigator,hr=rr&&rr.userAgent,tr=void 0;"string"==typeof hr&&(hr.indexOf("Chrome/")>-1?tr="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":hr.indexOf("Firefox/")>-1&&(tr="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),tr&&__DEV__&&v.kG.log("Download the Apollo DevTools for a better development experience: "+tr)}this.version=b,this.localState=new Ti({cache:jt,client:this,resolvers:Xi,fragmentMatcher:er}),this.queryManager=new Ft({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:mi,ssrMode:Bt,clientAwareness:{name:Vi,version:qi},localState:this.localState,assumeImmutableResults:Si,onBroadcast:Nn?function(){D.devToolsHookCb&&D.devToolsHookCb({action:{},state:{queries:D.queryManager.getQueryStore(),mutations:D.queryManager.mutationStore||{}},dataWithOptimisticResults:D.cache.extract(!0)})}:void 0})}return te.prototype.stop=function(){this.queryManager.stop()},te.prototype.watchQuery=function(C){return this.defaultOptions.watchQuery&&(C=ln(this.defaultOptions.watchQuery,C)),this.disableNetworkFetches&&("network-only"===C.fetchPolicy||"cache-and-network"===C.fetchPolicy)&&(C=(0,p.pi)((0,p.pi)({},C),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(C)},te.prototype.query=function(C){return this.defaultOptions.query&&(C=ln(this.defaultOptions.query,C)),__DEV__?(0,v.kG)("cache-and-network"!==C.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,v.kG)("cache-and-network"!==C.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===C.fetchPolicy&&(C=(0,p.pi)((0,p.pi)({},C),{fetchPolicy:"cache-first"})),this.queryManager.query(C)},te.prototype.mutate=function(C){return this.defaultOptions.mutate&&(C=ln(this.defaultOptions.mutate,C)),this.queryManager.mutate(C)},te.prototype.subscribe=function(C){return this.queryManager.startGraphQLSubscription(C)},te.prototype.readQuery=function(C,D){return void 0===D&&(D=!1),this.cache.readQuery(C,D)},te.prototype.readFragment=function(C,D){return void 0===D&&(D=!1),this.cache.readFragment(C,D)},te.prototype.writeQuery=function(C){var D=this.cache.writeQuery(C);return!1!==C.broadcast&&this.queryManager.broadcastQueries(),D},te.prototype.writeFragment=function(C){var D=this.cache.writeFragment(C);return!1!==C.broadcast&&this.queryManager.broadcastQueries(),D},te.prototype.__actionHookForDevTools=function(C){this.devToolsHookCb=C},te.prototype.__requestRaw=function(C){return f(this.link,C)},te.prototype.resetStore=function(){var C=this;return Promise.resolve().then(function(){return C.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(C.resetStoreCallbacks.map(function(D){return D()}))}).then(function(){return C.reFetchObservableQueries()})},te.prototype.clearStore=function(){var C=this;return Promise.resolve().then(function(){return C.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(C.clearStoreCallbacks.map(function(D){return D()}))})},te.prototype.onResetStore=function(C){var D=this;return this.resetStoreCallbacks.push(C),function(){D.resetStoreCallbacks=D.resetStoreCallbacks.filter(function(E){return E!==C})}},te.prototype.onClearStore=function(C){var D=this;return this.clearStoreCallbacks.push(C),function(){D.clearStoreCallbacks=D.clearStoreCallbacks.filter(function(E){return E!==C})}},te.prototype.reFetchObservableQueries=function(C){return this.queryManager.reFetchObservableQueries(C)},te.prototype.refetchQueries=function(C){var D=this.queryManager.refetchQueries(C),E=[],U=[];D.forEach(function(jt,yn){E.push(yn),U.push(jt)});var Be=Promise.all(U);return Be.queries=E,Be.results=U,Be.catch(function(jt){__DEV__&&v.kG.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(jt))}),Be},te.prototype.getObservableQueries=function(C){return void 0===C&&(C="active"),this.queryManager.getObservableQueries(C)},te.prototype.extract=function(C){return this.cache.extract(C)},te.prototype.restore=function(C){return this.cache.restore(C)},te.prototype.addResolvers=function(C){this.localState.addResolvers(C)},te.prototype.setResolvers=function(C){this.localState.setResolvers(C)},te.prototype.getResolvers=function(){return this.localState.getResolvers()},te.prototype.setLocalStateFragmentMatcher=function(C){this.localState.setFragmentMatcher(C)},te.prototype.setLink=function(C){this.link=this.queryManager.link=C},te}();function Sn(te,C){if(!Boolean(te))throw new Error(C??"Unexpected invariant triggered.")}const Ht=/\r\n|[\n\r]/g;function wn(te,C){let D=0,E=1;for(const U of te.body.matchAll(Ht)){if("number"==typeof U.index||Sn(!1),U.index>=C)break;D=U.index+U[0].length,E+=1}return{line:E,column:C+1-D}}function Nt(te,C){const D=te.locationOffset.column-1,E="".padStart(D)+te.body,U=C.line-1,jt=C.line+(te.locationOffset.line-1),Bt=C.column+(1===C.line?D:0),bn=`${te.name}:${jt}:${Bt}\n`,Kn=E.split(/\r\n|[\n\r]/g),Jn=Kn[U];if(Jn.length>120){const Nn=Math.floor(Bt/80),ri=Bt%80,mi=[];for(let si=0;si<Jn.length;si+=80)mi.push(Jn.slice(si,si+80));return bn+P([[`${jt} |`,mi[0]],...mi.slice(1,Nn+1).map(si=>["|",si]),["|","^".padStart(ri)],["|",mi[Nn+1]]])}return bn+P([[jt-1+" |",Kn[U-1]],[`${jt} |`,Jn],["|","^".padStart(Bt)],[`${jt+1} |`,Kn[U+1]]])}function P(te){const C=te.filter(([E,U])=>void 0!==U),D=Math.max(...C.map(([E])=>E.length));return C.map(([E,U])=>E.padStart(D)+(U?" "+U:"")).join("\n")}class st extends Error{constructor(C,...D){var E,U,Be;const{nodes:jt,source:yn,positions:Bt,path:bn,originalError:Kn,extensions:Jn}=function xe(te){const C=te[0];return null==C||"kind"in C||"length"in C?{nodes:C,source:te[1],positions:te[2],path:te[3],originalError:te[4],extensions:te[5]}:C}(D);super(C),this.name="GraphQLError",this.path=bn??void 0,this.originalError=Kn??void 0,this.nodes=It(Array.isArray(jt)?jt:jt?[jt]:void 0);const Nn=It(null===(E=this.nodes)||void 0===E?void 0:E.map(mi=>mi.loc).filter(mi=>null!=mi));this.source=yn??(null==Nn||null===(U=Nn[0])||void 0===U?void 0:U.source),this.positions=Bt??Nn?.map(mi=>mi.start),this.locations=Bt&&yn?Bt.map(mi=>wn(yn,mi)):Nn?.map(mi=>wn(mi.source,mi.start));const ri=function Ot(te){return"object"==typeof te&&null!==te}(Kn?.extensions)?Kn?.extensions:void 0;this.extensions=null!==(Be=Jn??ri)&&void 0!==Be?Be:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=Kn&&Kn.stack?Object.defineProperty(this,"stack",{value:Kn.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,st):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let C=this.message;if(this.nodes)for(const D of this.nodes)D.loc&&(C+="\n\n"+Nt((te=D.loc).source,wn(te.source,te.start)));else if(this.source&&this.locations)for(const D of this.locations)C+="\n\n"+Nt(this.source,D);var te;return C}toJSON(){const C={message:this.message};return null!=this.locations&&(C.locations=this.locations),null!=this.path&&(C.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(C.extensions=this.extensions),C}}function It(te){return void 0===te||0===te.length?void 0:te}function Ai(te,C,D){return new st(`Syntax Error: ${D}`,{source:te,positions:[C]})}var sr=y(6298),kr=(()=>{return(te=kr||(kr={})).QUERY="QUERY",te.MUTATION="MUTATION",te.SUBSCRIPTION="SUBSCRIPTION",te.FIELD="FIELD",te.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",te.FRAGMENT_SPREAD="FRAGMENT_SPREAD",te.INLINE_FRAGMENT="INLINE_FRAGMENT",te.VARIABLE_DEFINITION="VARIABLE_DEFINITION",te.SCHEMA="SCHEMA",te.SCALAR="SCALAR",te.OBJECT="OBJECT",te.FIELD_DEFINITION="FIELD_DEFINITION",te.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",te.INTERFACE="INTERFACE",te.UNION="UNION",te.ENUM="ENUM",te.ENUM_VALUE="ENUM_VALUE",te.INPUT_OBJECT="INPUT_OBJECT",te.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",kr;var te})(),Li=y(2032),Lr=y(6009),Zn=(()=>{return(te=Zn||(Zn={})).SOF="<SOF>",te.EOF="<EOF>",te.BANG="!",te.DOLLAR="$",te.AMP="&",te.PAREN_L="(",te.PAREN_R=")",te.SPREAD="...",te.COLON=":",te.EQUALS="=",te.AT="@",te.BRACKET_L="[",te.BRACKET_R="]",te.BRACE_L="{",te.PIPE="|",te.BRACE_R="}",te.NAME="Name",te.INT="Int",te.FLOAT="Float",te.STRING="String",te.BLOCK_STRING="BlockString",te.COMMENT="Comment",Zn;var te})();class Mo{constructor(C){const D=new sr.WU(Zn.SOF,0,0,0,0);this.source=C,this.lastToken=D,this.token=D,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let C=this.token;if(C.kind!==Zn.EOF)do{if(C.next)C=C.next;else{const D=xr(this,C.end);C.next=D,D.prev=C,C=D}}while(C.kind===Zn.COMMENT);return C}}function Mr(te){return te>=0&&te<=55295||te>=57344&&te<=1114111}function ma(te,C){return Pa(te.charCodeAt(C))&&pa(te.charCodeAt(C+1))}function Pa(te){return te>=55296&&te<=56319}function pa(te){return te>=56320&&te<=57343}function ga(te,C){const D=te.source.body.codePointAt(C);if(void 0===D)return Zn.EOF;if(D>=32&&D<=126){const E=String.fromCodePoint(D);return'"'===E?"'\"'":`"${E}"`}return"U+"+D.toString(16).toUpperCase().padStart(4,"0")}function Dr(te,C,D,E,U){return new sr.WU(C,D,E,te.line,1+D-te.lineStart,U)}function xr(te,C){const D=te.source.body,E=D.length;let U=C;for(;U<E;){const Be=D.charCodeAt(U);switch(Be){case 65279:case 9:case 32:case 44:++U;continue;case 10:++U,++te.line,te.lineStart=U;continue;case 13:10===D.charCodeAt(U+1)?U+=2:++U,++te.line,te.lineStart=U;continue;case 35:return eo(te,U);case 33:return Dr(te,Zn.BANG,U,U+1);case 36:return Dr(te,Zn.DOLLAR,U,U+1);case 38:return Dr(te,Zn.AMP,U,U+1);case 40:return Dr(te,Zn.PAREN_L,U,U+1);case 41:return Dr(te,Zn.PAREN_R,U,U+1);case 46:if(46===D.charCodeAt(U+1)&&46===D.charCodeAt(U+2))return Dr(te,Zn.SPREAD,U,U+3);break;case 58:return Dr(te,Zn.COLON,U,U+1);case 61:return Dr(te,Zn.EQUALS,U,U+1);case 64:return Dr(te,Zn.AT,U,U+1);case 91:return Dr(te,Zn.BRACKET_L,U,U+1);case 93:return Dr(te,Zn.BRACKET_R,U,U+1);case 123:return Dr(te,Zn.BRACE_L,U,U+1);case 124:return Dr(te,Zn.PIPE,U,U+1);case 125:return Dr(te,Zn.BRACE_R,U,U+1);case 34:return 34===D.charCodeAt(U+1)&&34===D.charCodeAt(U+2)?va(te,U):pl(te,U)}if((0,Lr.X1)(Be)||45===Be)return Os(te,U,Be);if((0,Lr.LQ)(Be))return gl(te,U);throw Ai(te.source,U,39===Be?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Mr(Be)||ma(D,U)?`Unexpected character: ${ga(te,U)}.`:`Invalid character: ${ga(te,U)}.`)}return Dr(te,Zn.EOF,E,E)}function eo(te,C){const D=te.source.body,E=D.length;let U=C+1;for(;U<E;){const Be=D.charCodeAt(U);if(10===Be||13===Be)break;if(Mr(Be))++U;else{if(!ma(D,U))break;U+=2}}return Dr(te,Zn.COMMENT,C,U,D.slice(C+1,U))}function Os(te,C,D){const E=te.source.body;let U=C,Be=D,jt=!1;if(45===Be&&(Be=E.charCodeAt(++U)),48===Be){if(Be=E.charCodeAt(++U),(0,Lr.X1)(Be))throw Ai(te.source,U,`Invalid number, unexpected digit after 0: ${ga(te,U)}.`)}else U=Qs(te,U,Be),Be=E.charCodeAt(U);if(46===Be&&(jt=!0,Be=E.charCodeAt(++U),U=Qs(te,U,Be),Be=E.charCodeAt(U)),(69===Be||101===Be)&&(jt=!0,Be=E.charCodeAt(++U),(43===Be||45===Be)&&(Be=E.charCodeAt(++U)),U=Qs(te,U,Be),Be=E.charCodeAt(U)),46===Be||(0,Lr.LQ)(Be))throw Ai(te.source,U,`Invalid number, expected digit but got: ${ga(te,U)}.`);return Dr(te,jt?Zn.FLOAT:Zn.INT,C,U,E.slice(C,U))}function Qs(te,C,D){if(!(0,Lr.X1)(D))throw Ai(te.source,C,`Invalid number, expected digit but got: ${ga(te,C)}.`);const E=te.source.body;let U=C+1;for(;(0,Lr.X1)(E.charCodeAt(U));)++U;return U}function pl(te,C){const D=te.source.body,E=D.length;let U=C+1,Be=U,jt="";for(;U<E;){const yn=D.charCodeAt(U);if(34===yn)return jt+=D.slice(Be,U),Dr(te,Zn.STRING,C,U+1,jt);if(92!==yn){if(10===yn||13===yn)break;if(Mr(yn))++U;else{if(!ma(D,U))throw Ai(te.source,U,`Invalid character within String: ${ga(te,U)}.`);U+=2}}else{jt+=D.slice(Be,U);const Bt=117===D.charCodeAt(U+1)?123===D.charCodeAt(U+2)?Ps(te,U):ss(te,U):_a(te,U);jt+=Bt.value,U+=Bt.size,Be=U}}throw Ai(te.source,U,"Unterminated string.")}function Ps(te,C){const D=te.source.body;let E=0,U=3;for(;U<12;){const Be=D.charCodeAt(C+U++);if(125===Be){if(U<5||!Mr(E))break;return{value:String.fromCodePoint(E),size:U}}if(E=E<<4|Ks(Be),E<0)break}throw Ai(te.source,C,`Invalid Unicode escape sequence: "${D.slice(C,C+U)}".`)}function ss(te,C){const D=te.source.body,E=Xr(D,C+2);if(Mr(E))return{value:String.fromCodePoint(E),size:6};if(Pa(E)&&92===D.charCodeAt(C+6)&&117===D.charCodeAt(C+7)){const U=Xr(D,C+8);if(pa(U))return{value:String.fromCodePoint(E,U),size:12}}throw Ai(te.source,C,`Invalid Unicode escape sequence: "${D.slice(C,C+6)}".`)}function Xr(te,C){return Ks(te.charCodeAt(C))<<12|Ks(te.charCodeAt(C+1))<<8|Ks(te.charCodeAt(C+2))<<4|Ks(te.charCodeAt(C+3))}function Ks(te){return te>=48&&te<=57?te-48:te>=65&&te<=70?te-55:te>=97&&te<=102?te-87:-1}function _a(te,C){const D=te.source.body;switch(D.charCodeAt(C+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw Ai(te.source,C,`Invalid character escape sequence: "${D.slice(C,C+2)}".`)}function va(te,C){const D=te.source.body,E=D.length;let U=te.lineStart,Be=C+3,jt=Be,yn="";const Bt=[];for(;Be<E;){const bn=D.charCodeAt(Be);if(34===bn&&34===D.charCodeAt(Be+1)&&34===D.charCodeAt(Be+2)){yn+=D.slice(jt,Be),Bt.push(yn);const Kn=Dr(te,Zn.BLOCK_STRING,C,Be+3,(0,Li.wv)(Bt).join("\n"));return te.line+=Bt.length-1,te.lineStart=U,Kn}if(92!==bn||34!==D.charCodeAt(Be+1)||34!==D.charCodeAt(Be+2)||34!==D.charCodeAt(Be+3))if(10!==bn&&13!==bn)if(Mr(bn))++Be;else{if(!ma(D,Be))throw Ai(te.source,Be,`Invalid character within String: ${ga(te,Be)}.`);Be+=2}else yn+=D.slice(jt,Be),Bt.push(yn),13===bn&&10===D.charCodeAt(Be+1)?Be+=2:++Be,yn="",jt=Be,U=Be;else yn+=D.slice(jt,Be),jt=Be+1,Be+=4}throw Ai(te.source,Be,"Unterminated string.")}function gl(te,C){const D=te.source.body,E=D.length;let U=C+1;for(;U<E;){const Be=D.charCodeAt(U);if(!(0,Lr.HQ)(Be))break;++U}return Dr(te,Zn.NAME,C,U,D.slice(C,U))}var Yo=y(9826);class Da{constructor(C,D={}){const E=(0,Yo.T)(C)?C:new Yo.H(C);this._lexer=new Mo(E),this._options=D,this._tokenCounter=0}parseName(){const C=this.expectToken(Zn.NAME);return this.node(C,{kind:pe.h.NAME,value:C.value})}parseDocument(){return this.node(this._lexer.token,{kind:pe.h.DOCUMENT,definitions:this.many(Zn.SOF,this.parseDefinition,Zn.EOF)})}parseDefinition(){if(this.peek(Zn.BRACE_L))return this.parseOperationDefinition();const C=this.peekDescription(),D=C?this._lexer.lookahead():this._lexer.token;if(D.kind===Zn.NAME){switch(D.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(C)throw Ai(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(D.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(D)}parseOperationDefinition(){const C=this._lexer.token;if(this.peek(Zn.BRACE_L))return this.node(C,{kind:pe.h.OPERATION_DEFINITION,operation:sr.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const D=this.parseOperationType();let E;return this.peek(Zn.NAME)&&(E=this.parseName()),this.node(C,{kind:pe.h.OPERATION_DEFINITION,operation:D,name:E,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const C=this.expectToken(Zn.NAME);switch(C.value){case"query":return sr.ku.QUERY;case"mutation":return sr.ku.MUTATION;case"subscription":return sr.ku.SUBSCRIPTION}throw this.unexpected(C)}parseVariableDefinitions(){return this.optionalMany(Zn.PAREN_L,this.parseVariableDefinition,Zn.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:pe.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Zn.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Zn.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const C=this._lexer.token;return this.expectToken(Zn.DOLLAR),this.node(C,{kind:pe.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:pe.h.SELECTION_SET,selections:this.many(Zn.BRACE_L,this.parseSelection,Zn.BRACE_R)})}parseSelection(){return this.peek(Zn.SPREAD)?this.parseFragment():this.parseField()}parseField(){const C=this._lexer.token,D=this.parseName();let E,U;return this.expectOptionalToken(Zn.COLON)?(E=D,U=this.parseName()):U=D,this.node(C,{kind:pe.h.FIELD,alias:E,name:U,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Zn.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(C){return this.optionalMany(Zn.PAREN_L,C?this.parseConstArgument:this.parseArgument,Zn.PAREN_R)}parseArgument(C=!1){const D=this._lexer.token,E=this.parseName();return this.expectToken(Zn.COLON),this.node(D,{kind:pe.h.ARGUMENT,name:E,value:this.parseValueLiteral(C)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const C=this._lexer.token;this.expectToken(Zn.SPREAD);const D=this.expectOptionalKeyword("on");return!D&&this.peek(Zn.NAME)?this.node(C,{kind:pe.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(C,{kind:pe.h.INLINE_FRAGMENT,typeCondition:D?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const C=this._lexer.token;return this.expectKeyword("fragment"),this.node(C,!0===this._options.allowLegacyFragmentVariables?{kind:pe.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:pe.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(C){const D=this._lexer.token;switch(D.kind){case Zn.BRACKET_L:return this.parseList(C);case Zn.BRACE_L:return this.parseObject(C);case Zn.INT:return this.advanceLexer(),this.node(D,{kind:pe.h.INT,value:D.value});case Zn.FLOAT:return this.advanceLexer(),this.node(D,{kind:pe.h.FLOAT,value:D.value});case Zn.STRING:case Zn.BLOCK_STRING:return this.parseStringLiteral();case Zn.NAME:switch(this.advanceLexer(),D.value){case"true":return this.node(D,{kind:pe.h.BOOLEAN,value:!0});case"false":return this.node(D,{kind:pe.h.BOOLEAN,value:!1});case"null":return this.node(D,{kind:pe.h.NULL});default:return this.node(D,{kind:pe.h.ENUM,value:D.value})}case Zn.DOLLAR:if(C){if(this.expectToken(Zn.DOLLAR),this._lexer.token.kind===Zn.NAME)throw Ai(this._lexer.source,D.start,`Unexpected variable "$${this._lexer.token.value}" in constant value.`);throw this.unexpected(D)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const C=this._lexer.token;return this.advanceLexer(),this.node(C,{kind:pe.h.STRING,value:C.value,block:C.kind===Zn.BLOCK_STRING})}parseList(C){return this.node(this._lexer.token,{kind:pe.h.LIST,values:this.any(Zn.BRACKET_L,()=>this.parseValueLiteral(C),Zn.BRACKET_R)})}parseObject(C){return this.node(this._lexer.token,{kind:pe.h.OBJECT,fields:this.any(Zn.BRACE_L,()=>this.parseObjectField(C),Zn.BRACE_R)})}parseObjectField(C){const D=this._lexer.token,E=this.parseName();return this.expectToken(Zn.COLON),this.node(D,{kind:pe.h.OBJECT_FIELD,name:E,value:this.parseValueLiteral(C)})}parseDirectives(C){const D=[];for(;this.peek(Zn.AT);)D.push(this.parseDirective(C));return D}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(C){const D=this._lexer.token;return this.expectToken(Zn.AT),this.node(D,{kind:pe.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(C)})}parseTypeReference(){const C=this._lexer.token;let D;if(this.expectOptionalToken(Zn.BRACKET_L)){const E=this.parseTypeReference();this.expectToken(Zn.BRACKET_R),D=this.node(C,{kind:pe.h.LIST_TYPE,type:E})}else D=this.parseNamedType();return this.expectOptionalToken(Zn.BANG)?this.node(C,{kind:pe.h.NON_NULL_TYPE,type:D}):D}parseNamedType(){return this.node(this._lexer.token,{kind:pe.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Zn.STRING)||this.peek(Zn.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const C=this._lexer.token,D=this.parseDescription();this.expectKeyword("schema");const E=this.parseConstDirectives(),U=this.many(Zn.BRACE_L,this.parseOperationTypeDefinition,Zn.BRACE_R);return this.node(C,{kind:pe.h.SCHEMA_DEFINITION,description:D,directives:E,operationTypes:U})}parseOperationTypeDefinition(){const C=this._lexer.token,D=this.parseOperationType();this.expectToken(Zn.COLON);const E=this.parseNamedType();return this.node(C,{kind:pe.h.OPERATION_TYPE_DEFINITION,operation:D,type:E})}parseScalarTypeDefinition(){const C=this._lexer.token,D=this.parseDescription();this.expectKeyword("scalar");const E=this.parseName(),U=this.parseConstDirectives();return this.node(C,{kind:pe.h.SCALAR_TYPE_DEFINITION,description:D,name:E,directives:U})}parseObjectTypeDefinition(){const C=this._lexer.token,D=this.parseDescription();this.expectKeyword("type");const E=this.parseName(),U=this.parseImplementsInterfaces(),Be=this.parseConstDirectives(),jt=this.parseFieldsDefinition();return this.node(C,{kind:pe.h.OBJECT_TYPE_DEFINITION,description:D,name:E,interfaces:U,directives:Be,fields:jt})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Zn.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Zn.BRACE_L,this.parseFieldDefinition,Zn.BRACE_R)}parseFieldDefinition(){const C=this._lexer.token,D=this.parseDescription(),E=this.parseName(),U=this.parseArgumentDefs();this.expectToken(Zn.COLON);const Be=this.parseTypeReference(),jt=this.parseConstDirectives();return this.node(C,{kind:pe.h.FIELD_DEFINITION,description:D,name:E,arguments:U,type:Be,directives:jt})}parseArgumentDefs(){return this.optionalMany(Zn.PAREN_L,this.parseInputValueDef,Zn.PAREN_R)}parseInputValueDef(){const C=this._lexer.token,D=this.parseDescription(),E=this.parseName();this.expectToken(Zn.COLON);const U=this.parseTypeReference();let Be;this.expectOptionalToken(Zn.EQUALS)&&(Be=this.parseConstValueLiteral());const jt=this.parseConstDirectives();return this.node(C,{kind:pe.h.INPUT_VALUE_DEFINITION,description:D,name:E,type:U,defaultValue:Be,directives:jt})}parseInterfaceTypeDefinition(){const C=this._lexer.token,D=this.parseDescription();this.expectKeyword("interface");const E=this.parseName(),U=this.parseImplementsInterfaces(),Be=this.parseConstDirectives(),jt=this.parseFieldsDefinition();return this.node(C,{kind:pe.h.INTERFACE_TYPE_DEFINITION,description:D,name:E,interfaces:U,directives:Be,fields:jt})}parseUnionTypeDefinition(){const C=this._lexer.token,D=this.parseDescription();this.expectKeyword("union");const E=this.parseName(),U=this.parseConstDirectives(),Be=this.parseUnionMemberTypes();return this.node(C,{kind:pe.h.UNION_TYPE_DEFINITION,description:D,name:E,directives:U,types:Be})}parseUnionMemberTypes(){return this.expectOptionalToken(Zn.EQUALS)?this.delimitedMany(Zn.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const C=this._lexer.token,D=this.parseDescription();this.expectKeyword("enum");const E=this.parseName(),U=this.parseConstDirectives(),Be=this.parseEnumValuesDefinition();return this.node(C,{kind:pe.h.ENUM_TYPE_DEFINITION,description:D,name:E,directives:U,values:Be})}parseEnumValuesDefinition(){return this.optionalMany(Zn.BRACE_L,this.parseEnumValueDefinition,Zn.BRACE_R)}parseEnumValueDefinition(){const C=this._lexer.token,D=this.parseDescription(),E=this.parseEnumValueName(),U=this.parseConstDirectives();return this.node(C,{kind:pe.h.ENUM_VALUE_DEFINITION,description:D,name:E,directives:U})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Ai(this._lexer.source,this._lexer.token.start,`${fo(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const C=this._lexer.token,D=this.parseDescription();this.expectKeyword("input");const E=this.parseName(),U=this.parseConstDirectives(),Be=this.parseInputFieldsDefinition();return this.node(C,{kind:pe.h.INPUT_OBJECT_TYPE_DEFINITION,description:D,name:E,directives:U,fields:Be})}parseInputFieldsDefinition(){return this.optionalMany(Zn.BRACE_L,this.parseInputValueDef,Zn.BRACE_R)}parseTypeSystemExtension(){const C=this._lexer.lookahead();if(C.kind===Zn.NAME)switch(C.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(C)}parseSchemaExtension(){const C=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const D=this.parseConstDirectives(),E=this.optionalMany(Zn.BRACE_L,this.parseOperationTypeDefinition,Zn.BRACE_R);if(0===D.length&&0===E.length)throw this.unexpected();return this.node(C,{kind:pe.h.SCHEMA_EXTENSION,directives:D,operationTypes:E})}parseScalarTypeExtension(){const C=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const D=this.parseName(),E=this.parseConstDirectives();if(0===E.length)throw this.unexpected();return this.node(C,{kind:pe.h.SCALAR_TYPE_EXTENSION,name:D,directives:E})}parseObjectTypeExtension(){const C=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const D=this.parseName(),E=this.parseImplementsInterfaces(),U=this.parseConstDirectives(),Be=this.parseFieldsDefinition();if(0===E.length&&0===U.length&&0===Be.length)throw this.unexpected();return this.node(C,{kind:pe.h.OBJECT_TYPE_EXTENSION,name:D,interfaces:E,directives:U,fields:Be})}parseInterfaceTypeExtension(){const C=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const D=this.parseName(),E=this.parseImplementsInterfaces(),U=this.parseConstDirectives(),Be=this.parseFieldsDefinition();if(0===E.length&&0===U.length&&0===Be.length)throw this.unexpected();return this.node(C,{kind:pe.h.INTERFACE_TYPE_EXTENSION,name:D,interfaces:E,directives:U,fields:Be})}parseUnionTypeExtension(){const C=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const D=this.parseName(),E=this.parseConstDirectives(),U=this.parseUnionMemberTypes();if(0===E.length&&0===U.length)throw this.unexpected();return this.node(C,{kind:pe.h.UNION_TYPE_EXTENSION,name:D,directives:E,types:U})}parseEnumTypeExtension(){const C=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const D=this.parseName(),E=this.parseConstDirectives(),U=this.parseEnumValuesDefinition();if(0===E.length&&0===U.length)throw this.unexpected();return this.node(C,{kind:pe.h.ENUM_TYPE_EXTENSION,name:D,directives:E,values:U})}parseInputObjectTypeExtension(){const C=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const D=this.parseName(),E=this.parseConstDirectives(),U=this.parseInputFieldsDefinition();if(0===E.length&&0===U.length)throw this.unexpected();return this.node(C,{kind:pe.h.INPUT_OBJECT_TYPE_EXTENSION,name:D,directives:E,fields:U})}parseDirectiveDefinition(){const C=this._lexer.token,D=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Zn.AT);const E=this.parseName(),U=this.parseArgumentDefs(),Be=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const jt=this.parseDirectiveLocations();return this.node(C,{kind:pe.h.DIRECTIVE_DEFINITION,description:D,name:E,arguments:U,repeatable:Be,locations:jt})}parseDirectiveLocations(){return this.delimitedMany(Zn.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const C=this._lexer.token,D=this.parseName();if(Object.prototype.hasOwnProperty.call(kr,D.value))return D;throw this.unexpected(C)}node(C,D){return!0!==this._options.noLocation&&(D.loc=new sr.Ye(C,this._lexer.lastToken,this._lexer.source)),D}peek(C){return this._lexer.token.kind===C}expectToken(C){const D=this._lexer.token;if(D.kind===C)return this.advanceLexer(),D;throw Ai(this._lexer.source,D.start,`Expected ${Ra(C)}, found ${fo(D)}.`)}expectOptionalToken(C){return this._lexer.token.kind===C&&(this.advanceLexer(),!0)}expectKeyword(C){const D=this._lexer.token;if(D.kind!==Zn.NAME||D.value!==C)throw Ai(this._lexer.source,D.start,`Expected "${C}", found ${fo(D)}.`);this.advanceLexer()}expectOptionalKeyword(C){const D=this._lexer.token;return D.kind===Zn.NAME&&D.value===C&&(this.advanceLexer(),!0)}unexpected(C){const D=C??this._lexer.token;return Ai(this._lexer.source,D.start,`Unexpected ${fo(D)}.`)}any(C,D,E){this.expectToken(C);const U=[];for(;!this.expectOptionalToken(E);)U.push(D.call(this));return U}optionalMany(C,D,E){if(this.expectOptionalToken(C)){const U=[];do{U.push(D.call(this))}while(!this.expectOptionalToken(E));return U}return[]}many(C,D,E){this.expectToken(C);const U=[];do{U.push(D.call(this))}while(!this.expectOptionalToken(E));return U}delimitedMany(C,D){this.expectOptionalToken(C);const E=[];do{E.push(D.call(this))}while(this.expectOptionalToken(C));return E}advanceLexer(){const{maxTokens:C}=this._options,D=this._lexer.advance();if(void 0!==C&&D.kind!==Zn.EOF&&(++this._tokenCounter,this._tokenCounter>C))throw Ai(this._lexer.source,D.start,`Document contains more that ${C} tokens. Parsing aborted.`)}}function fo(te){const C=te.value;return Ra(te.kind)+(null!=C?` "${C}"`:"")}function Ra(te){return function oa(te){return te===Zn.BANG||te===Zn.DOLLAR||te===Zn.AMP||te===Zn.PAREN_L||te===Zn.PAREN_R||te===Zn.SPREAD||te===Zn.COLON||te===Zn.EQUALS||te===Zn.AT||te===Zn.BRACKET_L||te===Zn.BRACKET_R||te===Zn.BRACE_L||te===Zn.PIPE||te===Zn.BRACE_R}(te)?`"${te}"`:te}var ja=new Map,Ao=new Map,ya=!0,Rs=!1;function mo(te){return te.replace(/[\s,]+/g," ").trim()}function zc(te){var C=mo(te);if(!ja.has(C)){var D=function Js(te,C){return new Da(te,C).parseDocument()}(te,{experimentalFragmentVariables:Rs,allowLegacyFragmentVariables:Rs});if(!D||"Document"!==D.kind)throw new Error("Not a valid GraphQL document.");ja.set(C,function tl(te){var C=new Set(te.definitions);C.forEach(function(E){E.loc&&delete E.loc,Object.keys(E).forEach(function(U){var Be=E[U];Be&&"object"==typeof Be&&C.add(Be)})});var D=te.loc;return D&&(delete D.startToken,delete D.endToken),te}(function el(te){var C=new Set,D=[];return te.definitions.forEach(function(E){if("FragmentDefinition"===E.kind){var U=E.name.value,Be=function ls(te){return mo(te.source.body.substring(te.start,te.end))}(E.loc),jt=Ao.get(U);jt&&!jt.has(Be)?ya&&console.warn("Warning: fragment with name "+U+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):jt||Ao.set(U,jt=new Set),jt.add(Be),C.has(Be)||(C.add(Be),D.push(E))}else D.push(E)}),(0,p.pi)((0,p.pi)({},te),{definitions:D})}(D)))}return ja.get(C)}function zo(te){for(var C=[],D=1;D<arguments.length;D++)C[D-1]=arguments[D];"string"==typeof te&&(te=[te]);var E=te[0];return C.forEach(function(U,Be){E+=U&&"Document"===U.kind?U.loc.source.body:U,E+=te[Be+1]}),zc(E)}var te,po_gql=zo;(te=zo||(zo={})).gql=po_gql,te.resetCaches=function Wo(){ja.clear(),Ao.clear()},te.disableFragmentWarnings=function Go(){ya=!1},te.enableExperimentalFragmentVariables=function Fs(){Rs=!0},te.disableExperimentalFragmentVariables=function Wc(){Rs=!1},zo.default=zo;var So=y(6498),_l=y(341),nl=y(3821),ko=y(5254),vl=y(4850),il=y(1059),Ns=y(7770);function to(te){return new So.y(C=>(te().then(D=>{C.closed||(C.next(D),C.complete())},D=>{C.closed||C.error(D)}),()=>C.unsubscribe()))}class go{constructor(C){this.zone=C,this.now=Date.now?Date.now:()=>+new Date}schedule(C,D=0,E){return this.zone.run(()=>_l.N.schedule(C,D,E))}}function qo(te){return te[nl.L]=()=>te,te}function xa(te,C){return te.pipe((0,Ns.QV)(new go(C)))}function Qo(te,C,D){return te&&typeof te[C]<"u"?te[C]:D}class qr{constructor(C,D,E){this.obsQuery=C;const U=xa((0,ko.D)(qo(this.obsQuery)),D);this.valueChanges=E.useInitialLoading?U.pipe(function Fa(te){return function(D){return new So.y(function(U){const Be=te.getCurrentResult(),{loading:jt,errors:yn,error:Bt,partial:bn,data:Kn}=Be,{partialRefetch:Jn,fetchPolicy:Nn}=te.options,ri=yn||Bt;return Jn&&bn&&(!Kn||0===Object.keys(Kn).length)&&"cache-only"!==Nn&&!jt&&!ri&&U.next({...Be,loading:!0,networkStatus:i.loading}),D.subscribe(U)})}}(this.obsQuery)):U,this.queryId=this.obsQuery.queryId}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}result(){return this.obsQuery.result()}getCurrentResult(){return this.obsQuery.getCurrentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(C){return this.obsQuery.refetch(C)}fetchMore(C){return this.obsQuery.fetchMore(C)}subscribeToMore(C){return this.obsQuery.subscribeToMore(C)}updateQuery(C){return this.obsQuery.updateQuery(C)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(C){return this.obsQuery.startPolling(C)}setOptions(C){return this.obsQuery.setOptions(C)}setVariables(C){return this.obsQuery.setVariables(C)}}const Ko=new d.OlP("APOLLO_FLAGS"),Yl=new d.OlP("APOLLO_OPTIONS"),Qr=new d.OlP("APOLLO_NAMED_OPTIONS");class rl{constructor(C,D,E){this.ngZone=C,this.flags=D,this._client=E,this.useInitialLoading=Qo(D,"useInitialLoading",!1),this.useMutationLoading=Qo(D,"useMutationLoading",!1)}watchQuery(C){return new qr(this.ensureClient().watchQuery({...C}),this.ngZone,{useInitialLoading:this.useInitialLoading,...C})}query(C){return to(()=>this.ensureClient().query({...C}))}mutate(C){return function $o(te,C){return C?te.pipe((0,il.O)({loading:!0}),(0,vl.U)(D=>({...D,loading:!!D.loading}))):te.pipe((0,vl.U)(D=>({...D,loading:!1})))}(to(()=>this.ensureClient().mutate({...C})),C.useMutationLoading??this.useMutationLoading)}subscribe(C,D){const E=(0,ko.D)(qo(this.ensureClient().subscribe({...C})));return D&&!0!==D.useZone?E:xa(E,this.ngZone)}getClient(){return this.client}setClient(C){this.client=C}get client(){return this._client}set client(C){if(this._client)throw new Error("Client has been already defined");this._client=C}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(!this._client)throw new Error("Client has not been defined yet")}}let al=(()=>{class te extends rl{constructor(D,E,U,Be){if(super(D,Be),this._ngZone=D,this.map=new Map,E&&this.createDefault(E),U&&"object"==typeof U)for(let jt in U)U.hasOwnProperty(jt)&&this.create(U[jt],jt)}create(D,E){_o(E)?this.createDefault(D):this.createNamed(E,D)}default(){return this}use(D){return _o(D)?this.default():this.map.get(D)}createDefault(D){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new Hn(D))}createNamed(D,E){if(this.map.has(D))throw new Error(`Client ${D} has been already created`);this.map.set(D,new rl(this._ngZone,this.flags,new Hn(E)))}removeClient(D){_o(D)?this._client=void 0:this.map.delete(D)}}return te.\u0275fac=function(D){return new(D||te)(d.LFG(d.R0b),d.LFG(Yl,8),d.LFG(Qr,8),d.LFG(Ko,8))},te.\u0275prov=d.Yz7({token:te,factory:te.\u0275fac}),te})();function _o(te){return!te||"default"===te}const Nr=[al];let bl=(()=>{class te{}return te.\u0275fac=function(D){return new(D||te)},te.\u0275mod=d.oAB({type:te}),te.\u0275inj=d.cJS({providers:Nr}),te})();const zl=function cs(te,...C){return zo(te,...C)}},4047:(vn,_t,y)=>{"use strict";function d(i,A){if(!Boolean(i))throw new Error(A)}y.d(_t,{a:()=>d})},744:(vn,_t,y)=>{"use strict";y.d(_t,{X:()=>A});const d=10,i=2;function A(Y){return p(Y,[])}function p(Y,W){switch(typeof Y){case"string":return JSON.stringify(Y);case"function":return Y.name?`[function ${Y.name}]`:"[function]";case"object":return function v(Y,W){if(null===Y)return"null";if(W.includes(Y))return"[Circular]";const B=[...W,Y];if(function k(Y){return"function"==typeof Y.toJSON}(Y)){const Z=Y.toJSON();if(Z!==Y)return"string"==typeof Z?Z:p(Z,B)}else if(Array.isArray(Y))return function b(Y,W){if(0===Y.length)return"[]";if(W.length>i)return"[Array]";const B=Math.min(d,Y.length),Z=Y.length-B,G=[];for(let ie=0;ie<B;++ie)G.push(p(Y[ie],W));return 1===Z?G.push("... 1 more item"):Z>1&&G.push(`... ${Z} more items`),"["+G.join(", ")+"]"}(Y,B);return function f(Y,W){const B=Object.entries(Y);return 0===B.length?"{}":W.length>i?"["+function J(Y){const W=Object.prototype.toString.call(Y).replace(/^\[object /,"").replace(/]$/,"");if("Object"===W&&"function"==typeof Y.constructor){const B=Y.constructor.name;if("string"==typeof B&&""!==B)return B}return W}(Y)+"]":"{ "+B.map(([G,ie])=>G+": "+p(ie,W)).join(", ")+" }"}(Y,B)}(Y,W);default:return String(Y)}}},6298:(vn,_t,y)=>{"use strict";y.d(_t,{UG:()=>v,WU:()=>i,Ye:()=>d,h8:()=>A,ku:()=>k});class d{constructor(b,J,Y){this.start=b.start,this.end=J.end,this.startToken=b,this.endToken=J,this.source=Y}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(b,J,Y,W,B,Z){this.kind=b,this.start=J,this.end=Y,this.line=W,this.column=B,this.value=Z,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const A={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},p=new Set(Object.keys(A));function v(f){const b=f?.kind;return"string"==typeof b&&p.has(b)}var k=(()=>{return(f=k||(k={})).QUERY="query",f.MUTATION="mutation",f.SUBSCRIPTION="subscription",k;var f})()},2032:(vn,_t,y)=>{"use strict";y.d(_t,{LZ:()=>v,wv:()=>i});var d=y(6009);function i(k){var f;let b=Number.MAX_SAFE_INTEGER,J=null,Y=-1;for(let B=0;B<k.length;++B){var W;const Z=k[B],G=A(Z);G!==Z.length&&(J=null!==(W=J)&&void 0!==W?W:B,Y=B,0!==B&&G<b&&(b=G))}return k.map((B,Z)=>0===Z?B:B.slice(b)).slice(null!==(f=J)&&void 0!==f?f:0,Y+1)}function A(k){let f=0;for(;f<k.length&&(0,d.FD)(k.charCodeAt(f));)++f;return f}function v(k,f){const b=k.replace(/"""/g,'\\"""'),J=b.split(/\r\n|[\n\r]/g),Y=1===J.length,W=J.length>1&&J.slice(1).every(Qe=>0===Qe.length||(0,d.FD)(Qe.charCodeAt(0))),B=b.endsWith('\\"""'),Z=k.endsWith('"')&&!B,G=k.endsWith("\\"),ie=Z||G,Ee=!(null!=f&&f.minimize)&&(!Y||k.length>70||ie||W||B);let ue="";const Ze=Y&&(0,d.FD)(k.charCodeAt(0));return(Ee&&!Ze||W)&&(ue+="\n"),ue+=b,(Ee||ie)&&(ue+="\n"),'"""'+ue+'"""'}},6009:(vn,_t,y)=>{"use strict";function d(k){return 9===k||32===k}function i(k){return k>=48&&k<=57}function A(k){return k>=97&&k<=122||k>=65&&k<=90}function p(k){return A(k)||95===k}function v(k){return A(k)||i(k)||95===k}y.d(_t,{FD:()=>d,HQ:()=>v,LQ:()=>p,X1:()=>i})},2289:(vn,_t,y)=>{"use strict";y.d(_t,{h:()=>d});var d=(()=>{return(i=d||(d={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="StringValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",d;var i})()},2465:(vn,_t,y)=>{"use strict";y.d(_t,{S:()=>f});var d=y(2032);const A=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function p(ie){return v[ie.charCodeAt(0)]}const v=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var k=y(1335);function f(ie){return(0,k.Vn)(ie,J)}const J={Name:{leave:ie=>ie.value},Variable:{leave:ie=>"$"+ie.name},Document:{leave:ie=>Y(ie.definitions,"\n\n")},OperationDefinition:{leave(ie){const Ee=B("(",Y(ie.variableDefinitions,", "),")"),ue=Y([ie.operation,Y([ie.name,Ee]),Y(ie.directives," ")]," ");return("query"===ue?"":ue+" ")+ie.selectionSet}},VariableDefinition:{leave:({variable:ie,type:Ee,defaultValue:ue,directives:Ze})=>ie+": "+Ee+B(" = ",ue)+B(" ",Y(Ze," "))},SelectionSet:{leave:({selections:ie})=>W(ie)},Field:{leave({alias:ie,name:Ee,arguments:ue,directives:Ze,selectionSet:Qe}){const vt=B("",ie,": ")+Ee;let $e=vt+B("(",Y(ue,", "),")");return $e.length>80&&($e=vt+B("(\n",Z(Y(ue,"\n")),"\n)")),Y([$e,Y(Ze," "),Qe]," ")}},Argument:{leave:({name:ie,value:Ee})=>ie+": "+Ee},FragmentSpread:{leave:({name:ie,directives:Ee})=>"..."+ie+B(" ",Y(Ee," "))},InlineFragment:{leave:({typeCondition:ie,directives:Ee,selectionSet:ue})=>Y(["...",B("on ",ie),Y(Ee," "),ue]," ")},FragmentDefinition:{leave:({name:ie,typeCondition:Ee,variableDefinitions:ue,directives:Ze,selectionSet:Qe})=>`fragment ${ie}${B("(",Y(ue,", "),")")} on ${Ee} ${B("",Y(Ze," ")," ")}`+Qe},IntValue:{leave:({value:ie})=>ie},FloatValue:{leave:({value:ie})=>ie},StringValue:{leave:({value:ie,block:Ee})=>Ee?(0,d.LZ)(ie):function i(ie){return`"${ie.replace(A,p)}"`}(ie)},BooleanValue:{leave:({value:ie})=>ie?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:ie})=>ie},ListValue:{leave:({values:ie})=>"["+Y(ie,", ")+"]"},ObjectValue:{leave:({fields:ie})=>"{"+Y(ie,", ")+"}"},ObjectField:{leave:({name:ie,value:Ee})=>ie+": "+Ee},Directive:{leave:({name:ie,arguments:Ee})=>"@"+ie+B("(",Y(Ee,", "),")")},NamedType:{leave:({name:ie})=>ie},ListType:{leave:({type:ie})=>"["+ie+"]"},NonNullType:{leave:({type:ie})=>ie+"!"},SchemaDefinition:{leave:({description:ie,directives:Ee,operationTypes:ue})=>B("",ie,"\n")+Y(["schema",Y(Ee," "),W(ue)]," ")},OperationTypeDefinition:{leave:({operation:ie,type:Ee})=>ie+": "+Ee},ScalarTypeDefinition:{leave:({description:ie,name:Ee,directives:ue})=>B("",ie,"\n")+Y(["scalar",Ee,Y(ue," ")]," ")},ObjectTypeDefinition:{leave:({description:ie,name:Ee,interfaces:ue,directives:Ze,fields:Qe})=>B("",ie,"\n")+Y(["type",Ee,B("implements ",Y(ue," & ")),Y(Ze," "),W(Qe)]," ")},FieldDefinition:{leave:({description:ie,name:Ee,arguments:ue,type:Ze,directives:Qe})=>B("",ie,"\n")+Ee+(G(ue)?B("(\n",Z(Y(ue,"\n")),"\n)"):B("(",Y(ue,", "),")"))+": "+Ze+B(" ",Y(Qe," "))},InputValueDefinition:{leave:({description:ie,name:Ee,type:ue,defaultValue:Ze,directives:Qe})=>B("",ie,"\n")+Y([Ee+": "+ue,B("= ",Ze),Y(Qe," ")]," ")},InterfaceTypeDefinition:{leave:({description:ie,name:Ee,interfaces:ue,directives:Ze,fields:Qe})=>B("",ie,"\n")+Y(["interface",Ee,B("implements ",Y(ue," & ")),Y(Ze," "),W(Qe)]," ")},UnionTypeDefinition:{leave:({description:ie,name:Ee,directives:ue,types:Ze})=>B("",ie,"\n")+Y(["union",Ee,Y(ue," "),B("= ",Y(Ze," | "))]," ")},EnumTypeDefinition:{leave:({description:ie,name:Ee,directives:ue,values:Ze})=>B("",ie,"\n")+Y(["enum",Ee,Y(ue," "),W(Ze)]," ")},EnumValueDefinition:{leave:({description:ie,name:Ee,directives:ue})=>B("",ie,"\n")+Y([Ee,Y(ue," ")]," ")},InputObjectTypeDefinition:{leave:({description:ie,name:Ee,directives:ue,fields:Ze})=>B("",ie,"\n")+Y(["input",Ee,Y(ue," "),W(Ze)]," ")},DirectiveDefinition:{leave:({description:ie,name:Ee,arguments:ue,repeatable:Ze,locations:Qe})=>B("",ie,"\n")+"directive @"+Ee+(G(ue)?B("(\n",Z(Y(ue,"\n")),"\n)"):B("(",Y(ue,", "),")"))+(Ze?" repeatable":"")+" on "+Y(Qe," | ")},SchemaExtension:{leave:({directives:ie,operationTypes:Ee})=>Y(["extend schema",Y(ie," "),W(Ee)]," ")},ScalarTypeExtension:{leave:({name:ie,directives:Ee})=>Y(["extend scalar",ie,Y(Ee," ")]," ")},ObjectTypeExtension:{leave:({name:ie,interfaces:Ee,directives:ue,fields:Ze})=>Y(["extend type",ie,B("implements ",Y(Ee," & ")),Y(ue," "),W(Ze)]," ")},InterfaceTypeExtension:{leave:({name:ie,interfaces:Ee,directives:ue,fields:Ze})=>Y(["extend interface",ie,B("implements ",Y(Ee," & ")),Y(ue," "),W(Ze)]," ")},UnionTypeExtension:{leave:({name:ie,directives:Ee,types:ue})=>Y(["extend union",ie,Y(Ee," "),B("= ",Y(ue," | "))]," ")},EnumTypeExtension:{leave:({name:ie,directives:Ee,values:ue})=>Y(["extend enum",ie,Y(Ee," "),W(ue)]," ")},InputObjectTypeExtension:{leave:({name:ie,directives:Ee,fields:ue})=>Y(["extend input",ie,Y(Ee," "),W(ue)]," ")}};function Y(ie,Ee=""){var ue;return null!==(ue=ie?.filter(Ze=>Ze).join(Ee))&&void 0!==ue?ue:""}function W(ie){return B("{\n",Z(Y(ie,"\n")),"\n}")}function B(ie,Ee,ue=""){return null!=Ee&&""!==Ee?ie+Ee+ue:""}function Z(ie){return B(" ",ie.replace(/\n/g,"\n "))}function G(ie){var Ee;return null!==(Ee=ie?.some(ue=>ue.includes("\n")))&&void 0!==Ee&&Ee}},9826:(vn,_t,y)=>{"use strict";y.d(_t,{H:()=>p,T:()=>v});var d=y(4047),i=y(744);const A=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(f,b){return f instanceof b}:function(f,b){if(f instanceof b)return!0;if("object"==typeof f&&null!==f){var J;const Y=b.prototype[Symbol.toStringTag];if(Y===(Symbol.toStringTag in f?f[Symbol.toStringTag]:null===(J=f.constructor)||void 0===J?void 0:J.name)){const B=(0,i.X)(f);throw new Error(`Cannot use ${Y} "${B}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class p{constructor(f,b="GraphQL request",J={line:1,column:1}){"string"==typeof f||(0,d.a)(!1,`Body must be a string. Received: ${(0,i.X)(f)}.`),this.body=f,this.name=b,this.locationOffset=J,this.locationOffset.line>0||(0,d.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,d.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function v(k){return A(k,p)}},1335:(vn,_t,y)=>{"use strict";y.d(_t,{$_:()=>v,Vn:()=>k});var d=y(4047),i=y(744),A=y(6298),p=y(2289);const v=Object.freeze({});function k(Y,W,B=A.h8){const Z=new Map;for(const ye of Object.values(p.h))Z.set(ye,b(W,ye));let G,vt,$e,ie=Array.isArray(Y),Ee=[Y],ue=-1,Ze=[],Qe=Y;const Ge=[],Ce=[];do{ue++;const ye=ue===Ee.length,Oe=ye&&0!==Ze.length;if(ye){if(vt=0===Ce.length?void 0:Ge[Ge.length-1],Qe=$e,$e=Ce.pop(),Oe)if(ie){Qe=Qe.slice();let tt=0;for(const[ot,at]of Ze){const pt=ot-tt;null===at?(Qe.splice(pt,1),tt++):Qe[pt]=at}}else{Qe=Object.defineProperties({},Object.getOwnPropertyDescriptors(Qe));for(const[tt,ot]of Ze)Qe[tt]=ot}ue=G.index,Ee=G.keys,Ze=G.edits,ie=G.inArray,G=G.prev}else if($e){if(vt=ie?ue:Ee[ue],Qe=$e[vt],null==Qe)continue;Ge.push(vt)}let Ae;if(!Array.isArray(Qe)){var ke,me;if((0,A.UG)(Qe)||(0,d.a)(!1,`Invalid AST Node: ${(0,i.X)(Qe)}.`),Ae=(ye?null===(ke=Z.get(Qe.kind))||void 0===ke?void 0:ke.leave:null===(me=Z.get(Qe.kind))||void 0===me?void 0:me.enter)?.call(W,Qe,vt,$e,Ge,Ce),Ae===v)break;if(!1===Ae){if(!ye){Ge.pop();continue}}else if(void 0!==Ae&&(Ze.push([vt,Ae]),!ye)){if(!(0,A.UG)(Ae)){Ge.pop();continue}Qe=Ae}}var re;void 0===Ae&&Oe&&Ze.push([vt,Qe]),ye?Ge.pop():(G={inArray:ie,index:ue,keys:Ee,edits:Ze,prev:G},ie=Array.isArray(Qe),Ee=ie?Qe:null!==(re=B[Qe.kind])&&void 0!==re?re:[],ue=-1,Ze=[],$e&&Ce.push($e),$e=Qe)}while(void 0!==G);return 0!==Ze.length?Ze[Ze.length-1][1]:Y}function b(Y,W){const B=Y[W];return"object"==typeof B?B:"function"==typeof B?{enter:B,leave:void 0}:{enter:Y.enter,leave:Y.leave}}},3170:(vn,_t,y)=>{"use strict";y.d(_t,{Ad:()=>Y});var d=y(4650),i=y(2687);(0,y(3238).FD)(class v{constructor(Z,G,ie,Ee,ue){this._defaultErrorStateMatcher=Z,this._parentForm=G,this._parentFormGroup=ie,this.ngControl=Ee,this.stateChanges=ue}}),new d.OlP("ngx-mat-file-input.config");let Y=(()=>{class B{}return B.\u0275fac=function(G){return new(G||B)},B.\u0275mod=d.oAB({type:B}),B.\u0275inj=d.cJS({providers:[i.tE]}),B})()},4302:(vn,_t,y)=>{"use strict";function A(me,re){(null==re||re>me.length)&&(re=me.length);for(var ye=0,Oe=new Array(re);ye<re;ye++)Oe[ye]=me[ye];return Oe}function p(me,re){for(var ye=0;ye<re.length;ye++){var Oe=re[ye];Oe.enumerable=Oe.enumerable||!1,Oe.configurable=!0,"value"in Oe&&(Oe.writable=!0),Object.defineProperty(me,Oe.key,Oe)}}function v(me,re,ye){return re&&p(me.prototype,re),ye&&p(me,ye),Object.defineProperty(me,"prototype",{writable:!1}),me}y.d(_t,{y:()=>ke});var k=function(){return"function"==typeof Symbol},f=function(me){return k()&&Boolean(Symbol[me])},b=function(me){return f(me)?Symbol[me]:"@@"+me};k()&&!f("observable")&&(Symbol.observable=Symbol("observable"));var J=b("iterator"),Y=b("observable"),W=b("species");function B(me,re){var ye=me[re];if(null!=ye){if("function"!=typeof ye)throw new TypeError(ye+" is not a function");return ye}}function Z(me){var re=me.constructor;return void 0!==re&&null===(re=re[W])&&(re=void 0),void 0!==re?re:ke}function ie(me){ie.log?ie.log(me):setTimeout(function(){throw me})}function Ee(me){Promise.resolve().then(function(){try{me()}catch(re){ie(re)}})}function ue(me){var re=me._cleanup;if(void 0!==re&&(me._cleanup=void 0,re))try{if("function"==typeof re)re();else{var ye=B(re,"unsubscribe");ye&&ye.call(re)}}catch(Oe){ie(Oe)}}function Ze(me){me._observer=void 0,me._queue=void 0,me._state="closed"}function vt(me,re,ye){me._state="running";var Oe=me._observer;try{var Ae=B(Oe,re);switch(re){case"next":Ae&&Ae.call(Oe,ye);break;case"error":if(Ze(me),!Ae)throw ye;Ae.call(Oe,ye);break;case"complete":Ze(me),Ae&&Ae.call(Oe)}}catch(tt){ie(tt)}"closed"===me._state?ue(me):"running"===me._state&&(me._state="ready")}function $e(me,re,ye){if("closed"!==me._state){if("buffering"===me._state)return void me._queue.push({type:re,value:ye});if("ready"!==me._state)return me._state="buffering",me._queue=[{type:re,value:ye}],void Ee(function(){return function Qe(me){var re=me._queue;if(re){me._queue=void 0,me._state="ready";for(var ye=0;ye<re.length&&(vt(me,re[ye].type,re[ye].value),"closed"!==me._state);++ye);}}(me)});vt(me,re,ye)}}var Ge=function(){function me(ye,Oe){this._cleanup=void 0,this._observer=ye,this._queue=void 0,this._state="initializing";var Ae=new Ce(this);try{this._cleanup=Oe.call(void 0,Ae)}catch(tt){Ae.error(tt)}"initializing"===this._state&&(this._state="ready")}return me.prototype.unsubscribe=function(){"closed"!==this._state&&(Ze(this),ue(this))},v(me,[{key:"closed",get:function(){return"closed"===this._state}}]),me}(),Ce=function(){function me(ye){this._subscription=ye}var re=me.prototype;return re.next=function(Oe){$e(this._subscription,"next",Oe)},re.error=function(Oe){$e(this._subscription,"error",Oe)},re.complete=function(){$e(this._subscription,"complete")},v(me,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),me}(),ke=function(){function me(ye){if(!(this instanceof me))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof ye)throw new TypeError("Observable initializer must be a function");this._subscriber=ye}var re=me.prototype;return re.subscribe=function(Oe){return("object"!=typeof Oe||null===Oe)&&(Oe={next:Oe,error:arguments[1],complete:arguments[2]}),new Ge(Oe,this._subscriber)},re.forEach=function(Oe){var Ae=this;return new Promise(function(tt,ot){if("function"==typeof Oe)var pt=Ae.subscribe({next:function(ft){try{Oe(ft,at)}catch(Et){ot(Et),pt.unsubscribe()}},error:ot,complete:tt});else ot(new TypeError(Oe+" is not a function"));function at(){pt.unsubscribe(),tt()}})},re.map=function(Oe){var Ae=this;if("function"!=typeof Oe)throw new TypeError(Oe+" is not a function");return new(Z(this))(function(ot){return Ae.subscribe({next:function(at){try{at=Oe(at)}catch(pt){return ot.error(pt)}ot.next(at)},error:function(at){ot.error(at)},complete:function(){ot.complete()}})})},re.filter=function(Oe){var Ae=this;if("function"!=typeof Oe)throw new TypeError(Oe+" is not a function");return new(Z(this))(function(ot){return Ae.subscribe({next:function(at){try{if(!Oe(at))return}catch(pt){return ot.error(pt)}ot.next(at)},error:function(at){ot.error(at)},complete:function(){ot.complete()}})})},re.reduce=function(Oe){var Ae=this;if("function"!=typeof Oe)throw new TypeError(Oe+" is not a function");var tt=Z(this),ot=arguments.length>1,at=!1,ft=arguments[1];return new tt(function(Et){return Ae.subscribe({next:function(be){var Pe=!at;if(at=!0,!Pe||ot)try{ft=Oe(ft,be)}catch(je){return Et.error(je)}else ft=be},error:function(be){Et.error(be)},complete:function(){if(!at&&!ot)return Et.error(new TypeError("Cannot reduce an empty sequence"));Et.next(ft),Et.complete()}})})},re.concat=function(){for(var Oe=this,Ae=arguments.length,tt=new Array(Ae),ot=0;ot<Ae;ot++)tt[ot]=arguments[ot];var at=Z(this);return new at(function(pt){var ft,Et=0;return function be(Pe){ft=Pe.subscribe({next:function(je){pt.next(je)},error:function(je){pt.error(je)},complete:function(){Et===tt.length?(ft=void 0,pt.complete()):be(at.from(tt[Et++]))}})}(Oe),function(){ft&&(ft.unsubscribe(),ft=void 0)}})},re.flatMap=function(Oe){var Ae=this;if("function"!=typeof Oe)throw new TypeError(Oe+" is not a function");var tt=Z(this);return new tt(function(ot){var at=[],pt=Ae.subscribe({next:function(Et){if(Oe)try{Et=Oe(Et)}catch(Pe){return ot.error(Pe)}var be=tt.from(Et).subscribe({next:function(Pe){ot.next(Pe)},error:function(Pe){ot.error(Pe)},complete:function(){var Pe=at.indexOf(be);Pe>=0&&at.splice(Pe,1),ft()}});at.push(be)},error:function(Et){ot.error(Et)},complete:function(){ft()}});function ft(){pt.closed&&0===at.length&&ot.complete()}return function(){at.forEach(function(Et){return Et.unsubscribe()}),pt.unsubscribe()}})},re[Y]=function(){return this},me.from=function(Oe){var Ae="function"==typeof this?this:me;if(null==Oe)throw new TypeError(Oe+" is not an object");var tt=B(Oe,Y);if(tt){var ot=tt.call(Oe);if(Object(ot)!==ot)throw new TypeError(ot+" is not an object");return function G(me){return me instanceof ke}(ot)&&ot.constructor===Ae?ot:new Ae(function(at){return ot.subscribe(at)})}if(f("iterator")&&(tt=B(Oe,J)))return new Ae(function(at){Ee(function(){if(!at.closed){for(var ft,pt=function d(me,re){var ye=typeof Symbol<"u"&&me[Symbol.iterator]||me["@@iterator"];if(ye)return(ye=ye.call(me)).next.bind(ye);if(Array.isArray(me)||(ye=function i(me,re){if(me){if("string"==typeof me)return A(me,re);var ye=Object.prototype.toString.call(me).slice(8,-1);if("Object"===ye&&me.constructor&&(ye=me.constructor.name),"Map"===ye||"Set"===ye)return Array.from(me);if("Arguments"===ye||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ye))return A(me,re)}}(me))||re&&me&&"number"==typeof me.length){ye&&(me=ye);var Oe=0;return function(){return Oe>=me.length?{done:!0}:{done:!1,value:me[Oe++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(tt.call(Oe));!(ft=pt()).done;)if(at.next(ft.value),at.closed)return;at.complete()}})});if(Array.isArray(Oe))return new Ae(function(at){Ee(function(){if(!at.closed){for(var pt=0;pt<Oe.length;++pt)if(at.next(Oe[pt]),at.closed)return;at.complete()}})});throw new TypeError(Oe+" is not observable")},me.of=function(){for(var Oe=arguments.length,Ae=new Array(Oe),tt=0;tt<Oe;tt++)Ae[tt]=arguments[tt];return new("function"==typeof this?this:me)(function(at){Ee(function(){if(!at.closed){for(var pt=0;pt<Ae.length;++pt)if(at.next(Ae[pt]),at.closed)return;at.complete()}})})},v(me,null,[{key:W,get:function(){return this}}]),me}();k()&&Object.defineProperty(ke,Symbol("extensions"),{value:{symbol:Y,hostReportError:ie},configurable:!0})},5861:(vn,_t,y)=>{"use strict";function d(A,p,v,k,f,b,J){try{var Y=A[b](J),W=Y.value}catch(B){return void v(B)}Y.done?p(W):Promise.resolve(W).then(k,f)}function i(A){return function(){var p=this,v=arguments;return new Promise(function(k,f){var b=A.apply(p,v);function J(W){d(b,k,f,J,Y,"next",W)}function Y(W){d(b,k,f,J,Y,"throw",W)}J(void 0)})}}y.d(_t,{Z:()=>i})},7582:(vn,_t,y)=>{"use strict";y.d(_t,{Jh:()=>Z,ZT:()=>i,_T:()=>p,ev:()=>vt,mG:()=>B,pi:()=>A});var d=function(be,Pe){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(je,dt){je.__proto__=dt}||function(je,dt){for(var et in dt)Object.prototype.hasOwnProperty.call(dt,et)&&(je[et]=dt[et])})(be,Pe)};function i(be,Pe){if("function"!=typeof Pe&&null!==Pe)throw new TypeError("Class extends value "+String(Pe)+" is not a constructor or null");function je(){this.constructor=be}d(be,Pe),be.prototype=null===Pe?Object.create(Pe):(je.prototype=Pe.prototype,new je)}var A=function(){return A=Object.assign||function(Pe){for(var je,dt=1,et=arguments.length;dt<et;dt++)for(var gt in je=arguments[dt])Object.prototype.hasOwnProperty.call(je,gt)&&(Pe[gt]=je[gt]);return Pe},A.apply(this,arguments)};function p(be,Pe){var je={};for(var dt in be)Object.prototype.hasOwnProperty.call(be,dt)&&Pe.indexOf(dt)<0&&(je[dt]=be[dt]);if(null!=be&&"function"==typeof Object.getOwnPropertySymbols){var et=0;for(dt=Object.getOwnPropertySymbols(be);et<dt.length;et++)Pe.indexOf(dt[et])<0&&Object.prototype.propertyIsEnumerable.call(be,dt[et])&&(je[dt[et]]=be[dt[et]])}return je}function B(be,Pe,je,dt){return new(je||(je=Promise))(function(gt,Re){function we(se){try{ve(dt.next(se))}catch(S){Re(S)}}function ce(se){try{ve(dt.throw(se))}catch(S){Re(S)}}function ve(se){se.done?gt(se.value):function et(gt){return gt instanceof je?gt:new je(function(Re){Re(gt)})}(se.value).then(we,ce)}ve((dt=dt.apply(be,Pe||[])).next())})}function Z(be,Pe){var dt,et,gt,Re,je={label:0,sent:function(){if(1>[0])throw gt[1];return gt[1]},trys:[],ops:[]};return Re={next:we(0),throw:we(1),return:we(2)},"function"==typeof Symbol&&(Re[Symbol.iterator]=function(){return this}),Re;function we(ve){return function(se){return function ce(ve){if(dt)throw new TypeError("Generator is already executing.");for(;Re&&(Re=0,ve[0]&&(je=0)),je;)try{if(dt=1,et&&(gt=2&ve[0]?et.return:ve[0]?et.throw||((gt=et.return)&>.call(et),0):et.next)&&!(gt=gt.call(et,ve[1])).done)return gt;switch(et=0,gt&&(ve=[2&ve[0],gt.value]),ve[0]){case 0:case 1:gt=ve;break;case 4:return je.label++,{value:ve[1],done:!1};case 5:je.label++,et=ve[1],ve=[0];continue;case 7:ve=je.ops.pop(),je.trys.pop();continue;default:if(!(gt=(gt=je.trys).length>0&>[gt.length-1])&&(6===ve[0]||2===ve[0])){je=0;continue}if(3===ve[0]&&(!gt||ve[1]>gt[0]&&ve[1]<gt[3])){je.label=ve[1];break}if(6===ve[0]&&je.label<gt[1]){je.label=gt[1],gt=ve;break}if(gt&&je.label<gt[2]){je.label=gt[2],je.ops.push(ve);break}gt[2]&&je.ops.pop(),je.trys.pop();continue}ve=Pe.call(be,je)}catch(se){ve=[6,se],et=0}finally{dt=gt=0}if(5&ve[0])throw ve[1];return{value:ve[0]?ve[1]:void 0,done:!0}}([ve,se])}}}function vt(be,Pe,je){if(je||2===arguments.length)for(var gt,dt=0,et=Pe.length;dt<et;dt++)(gt||!(dt in Pe))&&(gt||(gt=Array.prototype.slice.call(Pe,0,dt)),gt[dt]=Pe[dt]);return be.concat(gt||Array.prototype.slice.call(Pe))}"function"==typeof SuppressedError&&SuppressedError}},vn=>{vn(vn.s=4471)}]);