diff --git a/mikrofront/dist/html/184.751c328b2ed4f7a7.js b/mikrofront/dist/html/184.751c328b2ed4f7a7.js deleted file mode 100644 index 5bb3bd6..0000000 --- a/mikrofront/dist/html/184.751c328b2ed4f7a7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[184],{6184:(re,f,_)=>{_.r(f),_.d(f,{VaultModule:()=>ae});var h=_(177),d=_(9417),l=_(8921),m=_(7062),u=_(7390),p=_(9130),C=_(7630),e=_(4438),M=_(9492),k=_(1170),b=_(9631),g=_(6467);function j(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",35),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.runConfirmModalVisible=!n.runConfirmModalVisible)}),e.EFF(1,"Execute Now"),e.k0s()}}function w(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",36),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.toggleCollapse())}),e.EFF(1,"filters"),e.k0s()}}function V(o,a){if(1&o){const t=e.RV6();e.j41(0,"c-input-group",23)(1,"label",24),e.EFF(2," Custom Cron "),e.k0s(),e.j41(3,"input",56),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG(2);return e.DH7(s.settings.cron,n)||(s.settings.cron=n),e.Njj(n)}),e.k0s()()}if(2&o){const t=e.XpG(2);e.R7$(3),e.R50("ngModel",t.settings.cron)}}function F(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item," ")}function R(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",68),e.bIt("click",function(){const n=e.eBV(t).item,s=e.XpG(3);return e.Njj(s.remove_exception(n))}),e.nrm(1,"i",69),e.k0s()}}function E(o,a){if(1&o){const t=e.RV6();e.j41(0,"c-col",57),e.nrm(1,"hr",58),e.j41(2,"c-row",59)(3,"c-col",60)(4,"h6"),e.EFF(5,"User Exceptions"),e.k0s()(),e.j41(6,"c-col",61)(7,"table")(8,"td")(9,"div")(10,"input",62),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG(2);return e.DH7(s.new_exception,n)||(s.new_exception=n),e.Njj(n)}),e.k0s()()(),e.j41(11,"td",63)(12,"button",64),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.add_exception())}),e.EFF(13,"Add Username"),e.k0s()()()()(),e.j41(14,"c-input-group",23)(15,"gui-grid",65)(16,"gui-grid-column",66),e.DNE(17,F,1,1,"ng-template"),e.k0s(),e.j41(18,"gui-grid-column",67),e.DNE(19,R,2,0,"ng-template"),e.k0s()()()()}if(2&o){const t=e.XpG(2);e.R7$(10),e.R50("ngModel",t.new_exception),e.R7$(5),e.Y8G("autoResizeWidth",!0)("source",t.settings.exceptions)("columnMenu",t.columnMenu)("paging",t.paging)("sorting",t.sorting)("autoResizeWidth",!0)}}function x(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item," ")}function T(o,a){1&o&&(e.j41(0,"button",73),e.nrm(1,"i",69),e.k0s())}function I(o,a){if(1&o){const t=e.RV6();e.j41(0,"c-col",57),e.nrm(1,"hr",58),e.j41(2,"c-row",59)(3,"c-col",60)(4,"h6"),e.EFF(5,"Password list"),e.k0s()(),e.j41(6,"c-col",61)(7,"table")(8,"td")(9,"div")(10,"input",70),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG(2);return e.DH7(s.new_password,n)||(s.new_password=n),e.Njj(n)}),e.k0s()()(),e.j41(11,"td",63)(12,"button",64),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.add_password())}),e.EFF(13,"Add Password"),e.k0s()()()()(),e.j41(14,"gui-grid",71)(15,"gui-grid-column",72),e.DNE(16,x,1,1,"ng-template"),e.k0s(),e.j41(17,"gui-grid-column",67),e.DNE(18,T,2,0,"ng-template"),e.k0s()()()}if(2&o){const t=e.XpG(2);e.R7$(10),e.R50("ngModel",t.new_password),e.R7$(4),e.Y8G("autoResizeWidth",!0)("source",t.settings.passwords)("columnMenu",t.columnMenu)("sorting",t.sorting)("paging",t.paging)("autoResizeWidth",!0)}}function N(o,a){if(1&o){const t=e.RV6();e.j41(0,"c-card",37)(1,"c-card-body")(2,"c-row")(3,"c-col",38)(4,"c-input-group",23)(5,"label",24),e.EFF(6," Status "),e.k0s(),e.j41(7,"select",39),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.DH7(s.settings.enable,n)||(s.settings.enable=n),e.Njj(n)}),e.j41(8,"option"),e.EFF(9,"Choose..."),e.k0s(),e.j41(10,"option",40),e.EFF(11,"Enable"),e.k0s(),e.j41(12,"option",41),e.EFF(13,"Disable"),e.k0s()()()(),e.j41(14,"c-col",38)(15,"c-input-group",23)(16,"label",24),e.EFF(17," Strategy "),e.k0s(),e.j41(18,"select",39),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.DH7(s.settings.strategy,n)||(s.settings.strategy=n),e.Njj(n)}),e.j41(19,"option"),e.EFF(20,"Choose..."),e.k0s(),e.j41(21,"option",42),e.EFF(22,"All local"),e.k0s(),e.j41(23,"option",43),e.EFF(24,"Defined in MikroWizard"),e.k0s()()()(),e.j41(25,"c-col",38)(26,"c-input-group",23)(27,"label",24),e.EFF(28," Interval "),e.k0s(),e.j41(29,"select",39),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.DH7(s.settings.interval,n)||(s.settings.interval=n),e.Njj(n)}),e.j41(30,"option"),e.EFF(31,"Choose..."),e.k0s(),e.j41(32,"option",44),e.EFF(33,"Daily"),e.k0s(),e.j41(34,"option",45),e.EFF(35,"Weekly"),e.k0s(),e.j41(36,"option",46),e.EFF(37,"Monthly"),e.k0s(),e.j41(38,"option",47),e.EFF(39,"Yearly"),e.k0s(),e.j41(40,"option",48),e.EFF(41,"Manual"),e.k0s(),e.j41(42,"option",49),e.EFF(43,"Custom"),e.k0s()()(),e.DNE(44,V,4,1,"c-input-group",50),e.k0s(),e.j41(45,"c-col",38)(46,"c-input-group",23)(47,"label",24),e.EFF(48," Password "),e.k0s(),e.j41(49,"select",39),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.DH7(s.settings.password_type,n)||(s.settings.password_type=n),e.Njj(n)}),e.j41(50,"option"),e.EFF(51,"Choose..."),e.k0s(),e.j41(52,"option",51),e.EFF(53,"Random"),e.k0s(),e.j41(54,"option",52),e.EFF(55,"Pre-defined"),e.k0s()()()(),e.DNE(56,E,20,7,"c-col",53)(57,I,19,7,"c-col",53),e.k0s()(),e.j41(58,"c-card-footer",54)(59,"button",55),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.save_settings())}),e.EFF(60,"Save Settings"),e.k0s()()()}if(2&o){const t=e.XpG();e.R7$(7),e.R50("ngModel",t.settings.enable),e.R7$(11),e.R50("ngModel",t.settings.strategy),e.R7$(11),e.R50("ngModel",t.settings.interval),e.R7$(15),e.Y8G("ngIf","custom"==t.settings.interval),e.R7$(5),e.R50("ngModel",t.settings.password_type),e.R7$(7),e.Y8G("ngIf","all"==t.settings.strategy),e.R7$(),e.Y8G("ngIf","defined"==t.settings.password_type)}}function y(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item.name," ")}function G(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",68),e.bIt("click",function(){const n=e.eBV(t).item,s=e.XpG(2);return e.Njj(s.delete_group(n.id))}),e.nrm(1,"i",69),e.k0s()}}function S(o,a){if(1&o){const t=e.RV6();e.j41(0,"c-card",37)(1,"c-card-body")(2,"h6"),e.EFF(3,"Efected Groups"),e.k0s(),e.j41(4,"gui-grid",71)(5,"gui-grid-column",74),e.DNE(6,y,1,1,"ng-template"),e.k0s(),e.j41(7,"gui-grid-column",67),e.DNE(8,G,2,0,"ng-template"),e.k0s()()(),e.j41(9,"c-card-footer",54)(10,"button",55),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.save_settings())}),e.EFF(11,"Save Settings"),e.k0s(),e.j41(12,"button",75),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.show_new_member_form())}),e.EFF(13,"+ Add new Members"),e.k0s()()()}if(2&o){const t=e.XpG();e.R7$(4),e.Y8G("autoResizeWidth",!0)("source",t.Members)("columnMenu",t.columnMenu)("sorting",t.sorting)("paging",t.paging)("autoResizeWidth",!0)}}function D(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item.started," ")}function B(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item.ended," ")}function X(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",79),e.bIt("click",function(){const n=e.eBV(t).item.result,s=e.XpG(3);return e.Njj(s.exportToCsv(n))}),e.EFF(1,"download"),e.k0s()}}function P(o,a){if(1&o&&(e.j41(0,"c-card-body")(1,"h6"),e.EFF(2,"Reports"),e.k0s(),e.j41(3,"gui-grid",71)(4,"gui-grid-column",76),e.DNE(5,D,1,1,"ng-template"),e.k0s(),e.j41(6,"gui-grid-column",77),e.DNE(7,B,1,1,"ng-template"),e.k0s(),e.j41(8,"gui-grid-column",78),e.DNE(9,X,2,0,"ng-template"),e.k0s()()()),2&o){const t=e.XpG(2);e.R7$(3),e.Y8G("autoResizeWidth",!0)("source",t.vault_history)("columnMenu",t.columnMenu)("sorting",t.sorting)("paging",t.paging)("autoResizeWidth",!0)}}function z(o,a){if(1&o&&(e.j41(0,"c-card",37),e.DNE(1,P,10,6,"c-card-body",18),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.vault_history)}}function Y(o,a){if(1&o){const t=e.RV6();e.j41(0,"mat-form-field")(1,"mat-label"),e.EFF(2,"Username"),e.k0s(),e.j41(3,"input",80),e.bIt("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.reinitgrid("username",n))}),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.DH7(s.filters.username,n)||(s.filters.username=n),e.Njj(n)}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(3),e.R50("ngModel",t.filters.username)}}function A(o,a){if(1&o){const t=e.RV6();e.j41(0,"mat-form-field")(1,"mat-label"),e.EFF(2,"Device IP"),e.k0s(),e.j41(3,"input",80),e.bIt("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.reinitgrid("dev_ip",n))}),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.DH7(s.filters.dev_ip,n)||(s.filters.dev_ip=n),e.Njj(n)}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(3),e.R50("ngModel",t.filters.dev_ip)}}function H(o,a){if(1&o){const t=e.RV6();e.j41(0,"mat-form-field")(1,"mat-label"),e.EFF(2,"Device Name"),e.k0s(),e.j41(3,"input",80),e.bIt("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.reinitgrid("dev_name",n))}),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.DH7(s.filters.dev_name,n)||(s.filters.dev_name=n),e.Njj(n)}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(3),e.R50("ngModel",t.filters.dev_name)}}function O(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item.name," ")}function $(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" ",a.item.devip," ")}function W(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" ",a.item.username," ")}function U(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" ",a.item.changed," ")}function L(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",88),e.bIt("click",function(){e.eBV(t);const n=e.XpG().item,s=e.XpG(2);return e.Njj(s.reveal_password(n.devid,n.username))}),e.nrm(1,"i",89),e.k0s()}}function J(o,a){if(1&o&&e.DNE(0,L,2,0,"button",87),2&o){const t=e.XpG(2);e.Y8G("ngIf",t.ispro)}}function K(o,a){if(1&o&&(e.j41(0,"c-card-body")(1,"gui-grid",81)(2,"gui-grid-column",82),e.DNE(3,O,1,1,"ng-template"),e.k0s(),e.j41(4,"gui-grid-column",83),e.DNE(5,$,1,1,"ng-template"),e.k0s(),e.j41(6,"gui-grid-column",84),e.DNE(7,W,1,1,"ng-template"),e.k0s(),e.j41(8,"gui-grid-column",85),e.DNE(9,U,1,1,"ng-template"),e.k0s(),e.j41(10,"gui-grid-column",86),e.DNE(11,J,1,1,"ng-template"),e.k0s()()()),2&o){const t=e.XpG();e.R7$(),e.Y8G("autoResizeWidth",!0)("source",t.passwords)("columnMenu",t.columnMenu)("sorting",t.sorting)("infoPanel",t.infoPanel)("autoResizeWidth",!0)}}function Q(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item.name," ")}function Z(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" ",a.item.ip," ")}function q(o,a){1&o&&(e.j41(0,"gui-grid-column",94),e.DNE(1,Z,1,1,"ng-template"),e.k0s())}function ee(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" ",a.item.mac," ")}function te(o,a){1&o&&(e.j41(0,"gui-grid-column",95),e.DNE(1,ee,1,1,"ng-template"),e.k0s())}function ne(o,a){if(1&o){const t=e.RV6();e.j41(0,"gui-grid",90),e.bIt("selectedRows",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.onSelectedRowsNewMembers(n))}),e.j41(1,"gui-grid-column",91),e.DNE(2,Q,1,1,"ng-template"),e.k0s(),e.DNE(3,q,2,0,"gui-grid-column",92)(4,te,2,0,"gui-grid-column",93),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("autoResizeWidth",!0)("searching",t.searching)("source",t.availbleMembers)("columnMenu",t.columnMenu)("sorting",t.sorting)("infoPanel",t.infoPanel)("rowSelection",t.rowSelection)("autoResizeWidth",!0)("paging",t.paging),e.R7$(3),e.Y8G("ngIf","devices"==t.SelectedTask.selection_type),e.R7$(),e.Y8G("ngIf","devices"==t.SelectedTask.selection_type)}}function oe(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",96),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.add_new_members())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG();e.R7$(),e.SpI("Add ",t.NewMemberRows.length,"")}}const ie=[{path:"",component:(()=>{class o{constructor(t,i,n){this.data_provider=t,this.router=i,this.login_checker=n,this.ispro=!1,this.settings=!1,this.new_password="",this.new_exception="",this.Members=!1,this.vault_history=!1,this.passwords=!1,this.password="",this.PasswordModalVisible=!1,this.source=[],this.columns=[],this.loading=!0,this.rows=[],this.SelectedTask={},this.SelectedTaskItems="",this.runConfirmModalVisible=!1,this.DeleteConfirmModalVisible=!1,this.SelectedMembers=[],this.NewMemberModalVisible=!1,this.availbleMembers=[],this.NewMemberRows=[],this.filters_visible=!1,this.filters={},this.activetab=0,this.sorting={enabled:!0,multiSorting:!0},this.searching={enabled:!0,placeholder:"Search Devices"},this.toasterForm={autohide:!0,delay:3e3,position:"fixed",fade:!0,closeButton:!0},this.options={selectionMode:"single",actionsEnabled:!1,displayExpr:"name",valueExpr:"id",placeholder:"Snippet",searchEnabled:!0,enableDarkMode:!1},this.paging={enabled:!0,page:1,pageSize:10,pageSizes:[5,10,25,50],display:u.sE.ADVANCED},this.columnMenu={enabled:!0,sort:!0,columnsManager:!0},this.infoPanel={enabled:!0,infoDialog:!1,columnsManager:!0,schemaManager:!0},this.rowSelection={enabled:!0,type:u.AU.CHECKBOX,mode:u.fL.MULTIPLE};var s=this;this.login_checker.isLoggedIn()||setTimeout(function(){s.router.navigate(["login"])},100),this.data_provider.getSessionInfo().then(r=>{s.uid=r.uid,s.uname=r.name,s.tz=r.tz,s.ispro=r.ISPRO,"admin"!=r.role&&setTimeout(function(){s.router.navigate(["/user/dashboard"])},100)})}reinitgrid(t,i){"username"==t?this.filters.username=i:"dev_name"==t?this.filters.dev_name=i:"dev_ip"==t&&(this.filters.dev_ip=i),this.get_passwords()}ngOnInit(){this.initGridTable(),this.get_vault_history()}onSelectedRowsNewMembers(t){this.NewMemberRows=t,this.SelectedNewMemberRows=t.map(i=>({id:i.source.id,name:i.source.name}))}toggleCollapse(){this.filters_visible=!this.filters_visible}show_toast(t,i,n){const{...s}={...this.toasterForm,color:n,title:t,body:i};this.viewChildren.first.addToast(C.y,s,{}).instance.closeButton=s.closeButton}add_new_members(){for(var t=this,i=0;in.id===t.SelectedNewMemberRows[i].id)||t.Members.push(t.SelectedNewMemberRows[i]);t.Members=t.Members.filter(n=>""!=n),this.NewMemberModalVisible=!1}delete_group(t){this.Members=this.Members.filter(i=>i.id!=t)}get_member_by_id(t){return this.Members.find(i=>i.id==t)}get_passwords(){var t=this;this.data_provider.get_passwords(this.filters).then(i=>{t.passwords=i.data.map(n=>(n.changed=(0,p.qD)(n.changed.split(".")[0]+".000Z",t.tz,"yyyy-MM-dd HH:mm:ss XXX"),n))})}reveal_password(t,i){var n=this;n.password="",this.data_provider.reveal_password(t,i).then(s=>{n.password=s.password,n.PasswordModalVisible=!0})}exec_vault(){var t=this;this.data_provider.exec_vault().then(i=>{"err"in i?t.show_toast("Error",i.err,"danger"):t.show_toast("Success","Vault job executing","success")})}add_password(){this.settings.passwords.includes(this.new_password)||(this.settings.passwords.push(this.new_password),this.settings.passwords=this.settings.passwords.filter(i=>""!=i),this.new_password="")}get_vault_history(){var t=this;this.data_provider.vault_history().then(i=>{let n=1;t.vault_history=i.data.map(s=>(s.index=n,s.ended=(0,p.qD)(s.created.split(".")[0]+".000Z",t.tz,"yyyy-MM-dd HH:mm:ss XXX"),s.info=JSON.parse(s.info),s.started=(0,p.qD)(s.info.created.split(".")[0]+".000Z",t.tz,"yyyy-MM-dd HH:mm:ss XXX"),s.start_ip=s.info.start_ip,s.end_ip=s.info.end_ip,s.result=JSON.parse(s.result),n+=1,s))})}sanitizeString(t){return t?t.toString().replace(/"/g,'"').replace(/'/g,"'"):""}exportToCsv(t){const i=t,n=this.getColumns(i),s=this.convertToCsv(i,n);this.downloadFile(s,"data.csv","text/csv")}getColumns(t){const i=[];return t.forEach(n=>{Object.keys(n).forEach(s=>{i.includes(s)||i.push(s)})}),i}convertToCsv(t,i){var n=this;let s="";return s+=i.join(",")+"\n",t.forEach(c=>{const r=[];i.forEach(v=>{r.push('"'+n.sanitizeString(c[v])+'"')}),s+=r.join(",")+"\n"}),s}downloadFile(t,i,n){const s=new Blob([t],{type:n}),c=window.navigator;if(c.msSaveOrOpenBlob)c.msSaveBlob(s,i);else{const r=document.createElement("a");r.setAttribute("href",URL.createObjectURL(s)),r.setAttribute("download",i),r.style.visibility="hidden",document.body.appendChild(r),r.click(),document.body.removeChild(r)}}show_new_member_form(){this.NewMemberModalVisible=!1;var t=this;t.availbleMembers=[],this.SelectedNewMemberRows=[],this.NewMemberRows=[],t.data_provider.get_devgroup_list().then(n=>{t.availbleMembers=n.filter(s=>!t.SelectedTaskItems.includes(s.id)),t.NewMemberModalVisible=!0})}remove_password(t){this.settings.passwords=this.settings.passwords.filter(n=>n!=t)}add_exception(){this.settings.exceptions.includes(this.new_exception)||(this.settings.exceptions.push(this.new_exception),this.settings.exceptions=this.settings.exceptions.filter(i=>""!=i),this.new_exception="")}remove_exception(t){this.settings.exceptions=this.settings.exceptions.filter(n=>n!=t)}save_settings(){var t=this;this.settings.action="update",this.settings.members=this.Members.map(i=>i.id),"disable"==this.settings.enable&&(this.settings.action="disable"),this.data_provider.vault_task(this.settings).then(i=>{"err"in i?t.show_toast("Error",i.err,"danger"):(t.show_toast("Success","Settings saved","success"),t.initGridTable())})}logger(t){console.dir(t)}initGridTable(){var t=this;this.data_provider.get_vault_setting().then(i=>{t.settings=i.data,t.Members=i.members}),this.data_provider.get_user_task_list().then(i=>{t.source=i.map(n=>n),t.loading=!1})}static#e=this.\u0275fac=function(i){return new(i||o)(e.rXU(M.C),e.rXU(m.Ix),e.rXU(k.T))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["ng-component"]],viewQuery:function(i,n){if(1&i&&e.GBs(l.E0T,5),2&i){let s;e.mGM(s=e.lsd())&&(n.viewChildren=s)}},decls:85,vars:27,consts:[["tabContent","cTabContent"],["PasswordModal",""],["runConfirmModal",""],["NewMemberModal",""],["xs","",2,"padding-right","0"],[1,"nav","nav-underline",2,"background","#fff"],["calss","nav-item"],[1,"nav-link",3,"click","active","cTabContent","tabPaneIdx"],[1,"nav-link",3,"click","cTabContent","routerLink","tabPaneIdx"],[2,"padding-left","0"],[1,"nav","nav-underline",2,"background","#fff","padding","3px","flex-direction","row-reverse"],["cButton","","size","sm","shape","rounded-0","class","mx-2","color","danger",3,"click",4,"ngIf"],["cButton","","size","sm","shape","rounded-0","class","mx-2","color","info",3,"click",4,"ngIf"],[2,"padding","0!important"],["xs",""],["class","mb-4","style","border-radius: 0;",4,"ngIf"],["cCollapse","",3,"visible"],["xs","",1,"example-form",2,"background","#fff","padding","0 10px",3,"lg"],[4,"ngIf"],[1,"mb-4"],["backdrop","static","id","PasswordModal",3,"visibleChange","visible"],["cModalTitle",""],["cButtonClose","",3,"cModalToggle"],[1,"mb-3"],["cInputGroupText","","for","inputGroupSelect01"],["cFormControl","","disabled","true",3,"value"],["cButton","","color","info",3,"cModalToggle"],["backdrop","static","id","runConfirmModal",3,"visibleChange","visible"],["cButton","","color","danger",3,"click"],["backdrop","static","size","lg","id","NewMemberModal",3,"visibleChange","visible"],["cButtonClose","",3,"click"],[3,"autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","rowSelection","paging","selectedRows",4,"ngIf"],["cButton","","color","primary",3,"click",4,"ngIf"],["cButton","","color","secondary",3,"click"],["position","fixed","placement","top-end"],["cButton","","size","sm","shape","rounded-0","color","danger",1,"mx-2",3,"click"],["cButton","","size","sm","shape","rounded-0","color","info",1,"mx-2",3,"click"],[1,"mb-4",2,"border-radius","0"],["md","6"],["cSelect","","id","inputGroupSelect01",3,"ngModelChange","ngModel"],["value","enable"],["value","disable"],["value","all"],["value","mikrowizard"],["value","daily"],["value","weekly"],["value","monthly"],["value","yearly"],["value","manual"],["value","custom"],["class","mb-3",4,"ngIf"],["value","random"],["value","defined"],["md","12",4,"ngIf"],[2,"display","flex","flex-direction","row-reverse"],["cButton","","color","info","shape","rounded-0",2,"color","#fff",3,"click"],["cFormControl","","id","floatingInput","placeholder","Cron",2,"border-radius","0",3,"ngModelChange","ngModel"],["md","12"],["width","70%",2,"margin","10px auto","border-color","#304193","border-width","2px"],[1,"gui-header",2,"background","#f9fafb","padding","10px 0px","margin","0 auto","height","unset","border","1px solid #e8e8e8","border-bottom","unset"],["md","2",2,"display","flex","align-items","center"],["md","10",2,"display","flex","flex-direction","row-reverse"],["cFormControl","","id","floatingInput","placeholder","Username Exception",2,"border-radius","0",3,"ngModelChange","ngModel"],[2,"vertical-align","top"],["cButton","","color","dark","shape","rounded-0",3,"click"],[3,"autoResizeWidth","source","columnMenu","paging","sorting"],["header","UserName","field","name"],["header","Actions","width","70","field","action"],["cButton","","color","danger","size","sm",1,"mx-1",3,"click"],[1,"fa-regular","fa-trash-can"],["cFormControl","","id","floatingInput","placeholder","Password",2,"border-radius","0",3,"ngModelChange","ngModel"],[3,"autoResizeWidth","source","columnMenu","sorting","paging"],["header","Password","field","name"],["cButton","","color","danger","size","sm",1,"mx-1"],["header","Name","field","name"],["cButton","","color","primary",1,"mx-1",3,"click"],["header","Start Time","field","name"],["header","End Time","field","name"],["header","Logs","field","mac","align","center"],["color","primary","cButton","",3,"click"],["matInput","",3,"ngModelChange","ngModel"],[3,"autoResizeWidth","source","columnMenu","sorting","infoPanel"],["header","Device Name","field","name"],["header","Device IP","field","devip"],["header","UserName","field","username"],["header","Last Changed","field","desc_cron"],["header","Actions","width","120","field","action"],["cButton","","color","info","variant","outline",3,"click",4,"ngIf"],["cButton","","color","info","variant","outline",3,"click"],[1,"fa-solid","fa-eye"],[3,"selectedRows","autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","rowSelection","paging"],["header","Member Name","field","name"],["header","IP Address","field","ip",4,"ngIf"],["header","MAC Address","field","mac",4,"ngIf"],["header","IP Address","field","ip"],["header","MAC Address","field","mac"],["cButton","","color","primary",3,"click"]],template:function(i,n){if(1&i){const s=e.RV6();e.j41(0,"c-row")(1,"c-col",4)(2,"div",5)(3,"div",6)(4,"a",7),e.bIt("click",function(){return e.eBV(s),e.Njj(n.activetab=0)}),e.EFF(5,"Settings"),e.k0s()(),e.j41(6,"div",6)(7,"a",8),e.bIt("click",function(){return e.eBV(s),n.get_passwords(),e.Njj(n.activetab=1)}),e.EFF(8,"Passwords"),e.k0s()()()(),e.j41(9,"c-col",9)(10,"div",10),e.DNE(11,j,2,0,"button",11)(12,w,2,0,"button",12),e.k0s()()(),e.j41(13,"c-tab-content",13,0)(15,"c-tab-pane")(16,"c-row")(17,"c-col",14),e.DNE(18,N,61,7,"c-card",15),e.k0s()(),e.j41(19,"c-row")(20,"c-col",14),e.DNE(21,S,14,6,"c-card",15),e.k0s()(),e.j41(22,"c-row")(23,"c-col",14),e.DNE(24,z,2,1,"c-card",15),e.k0s()()(),e.j41(25,"c-tab-pane")(26,"c-row")(27,"div",16)(28,"c-col",17),e.DNE(29,Y,4,1,"mat-form-field",18)(30,A,4,1,"mat-form-field",18)(31,H,4,1,"mat-form-field",18),e.k0s()()(),e.j41(32,"c-row")(33,"c-col",14)(34,"c-card",19),e.DNE(35,K,12,6,"c-card-body",18),e.k0s()()()()(),e.j41(36,"c-modal",20,1),e.mxI("visibleChange",function(r){return e.eBV(s),e.DH7(n.PasswordModalVisible,r)||(n.PasswordModalVisible=r),e.Njj(r)}),e.j41(38,"c-modal-header")(39,"h6",21),e.EFF(40,"Password"),e.k0s(),e.nrm(41,"button",22),e.k0s(),e.j41(42,"c-modal-body")(43,"p")(44,"c-input-group",23)(45,"label",24),e.EFF(46," Password "),e.k0s(),e.nrm(47,"input",25),e.k0s()(),e.j41(48,"code"),e.EFF(49," Your attempt to reveal password is logged in system! "),e.k0s()(),e.j41(50,"c-modal-footer")(51,"button",26),e.EFF(52," Close "),e.k0s()()(),e.j41(53,"c-modal",27,2),e.mxI("visibleChange",function(r){return e.eBV(s),e.DH7(n.runConfirmModalVisible,r)||(n.runConfirmModalVisible=r),e.Njj(r)}),e.j41(55,"c-modal-header")(56,"h6",21),e.EFF(57),e.k0s(),e.nrm(58,"button",22),e.k0s(),e.j41(59,"c-modal-body"),e.EFF(60," Are you sure that You want to run Vault Password Job ? "),e.nrm(61,"br"),e.k0s(),e.j41(62,"c-modal-footer")(63,"button",28),e.bIt("click",function(){return e.eBV(s),e.Njj(n.exec_vault())}),e.EFF(64," Yes,Run! "),e.k0s(),e.j41(65,"button",26),e.EFF(66," Close "),e.k0s()()(),e.j41(67,"c-modal",29,3),e.mxI("visibleChange",function(r){return e.eBV(s),e.DH7(n.NewMemberModalVisible,r)||(n.NewMemberModalVisible=r),e.Njj(r)}),e.j41(69,"c-modal-header")(70,"h5",21),e.EFF(71,"Editing Group "),e.k0s(),e.j41(72,"button",30),e.bIt("click",function(){return e.eBV(s),e.Njj(n.NewMemberModalVisible=!n.NewMemberModalVisible)}),e.k0s()(),e.j41(73,"c-modal-body")(74,"c-input-group",23)(75,"h5"),e.EFF(76,"Group Members :"),e.k0s(),e.DNE(77,ne,5,11,"gui-grid",31),e.nrm(78,"br"),e.k0s(),e.nrm(79,"hr"),e.k0s(),e.j41(80,"c-modal-footer"),e.DNE(81,oe,2,1,"button",32),e.j41(82,"button",33),e.bIt("click",function(){return e.eBV(s),e.Njj(n.NewMemberModalVisible=!n.NewMemberModalVisible)}),e.EFF(83," Close "),e.k0s()()(),e.nrm(84,"c-toaster",34)}if(2&i){const s=e.sdS(14),c=e.sdS(37),r=e.sdS(54);e.R7$(4),e.Y8G("active",!0)("cTabContent",s)("tabPaneIdx",0),e.R7$(3),e.Y8G("cTabContent",s)("tabPaneIdx",1),e.R7$(4),e.Y8G("ngIf",0==n.activetab),e.R7$(),e.Y8G("ngIf",1==n.activetab),e.R7$(6),e.Y8G("ngIf",n.settings),e.R7$(3),e.Y8G("ngIf",n.settings),e.R7$(3),e.Y8G("ngIf",n.settings),e.R7$(3),e.Y8G("visible",n.filters_visible),e.R7$(),e.Y8G("lg",12),e.R7$(),e.Y8G("ngIf",n.ispro),e.R7$(),e.Y8G("ngIf",n.ispro),e.R7$(),e.Y8G("ngIf",n.ispro),e.R7$(4),e.Y8G("ngIf",n.passwords),e.R7$(),e.R50("visible",n.PasswordModalVisible),e.R7$(5),e.Y8G("cModalToggle",c.id),e.R7$(6),e.Y8G("value",n.password),e.R7$(4),e.Y8G("cModalToggle",c.id),e.R7$(2),e.R50("visible",n.runConfirmModalVisible),e.R7$(4),e.SpI("Confirm RUN ",n.SelectedTask.name,""),e.R7$(),e.Y8G("cModalToggle",r.id),e.R7$(7),e.Y8G("cModalToggle",r.id),e.R7$(2),e.R50("visible",n.NewMemberModalVisible),e.R7$(10),e.Y8G("ngIf",n.NewMemberModalVisible),e.R7$(4),e.Y8G("ngIf",0!=n.NewMemberRows.length)}},dependencies:[m.Wk,l.iby,l.qHy,l.Rjr,h.bT,l.gLf,l.oMR,l.l_X,l.wPz,l.fvw,l.ISP,l._fv,l.UjT,u.V1,u.fz,l.Jyz,l.zfW,l.s$3,l.epl,l.L$K,l.VtU,d.xH,d.y7,d.me,d.wz,d.BC,d.vS,l.uu0,l.RKs,l.h7w,l.E0T,b.fg,g.rl,g.nJ,l.DcD],styles:[".nav-underline[_ngcontent-%COMP%]{border-bottom:2px solid var(--cui-nav-underline-border-color, #c4c9d0)}.nav-underline[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-bottom:-2px;cursor:pointer}.nav-underline[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:var(--cui-nav-underline-link-color, #768192);border-style:none none solid!important;border-width:2px;position:relative;bottom:-1px;cursor:pointer}.nav-underline[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover, .nav-underline[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:focus{border-color:var(--cui-nav-underline-link-active-border-color, #321fdb)}.nav-underline[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%], .nav-underline[_ngcontent-%COMP%] .show[_ngcontent-%COMP%] > .nav-link[_ngcontent-%COMP%]{color:var(--cui-nav-underline-link-active-color, #321fdb);background:transparent;border-color:var(--cui-nav-underline-link-active-border-color, #321fdb)}"]})}return o})(),data:{title:$localize`Password Vault`}}];let se=(()=>{class o{static#e=this.\u0275fac=function(i){return new(i||o)};static#t=this.\u0275mod=e.$C({type:o});static#n=this.\u0275inj=e.G2t({imports:[m.iI.forChild(ie),m.iI]})}return o})(),ae=(()=>{class o{static#e=this.\u0275fac=function(i){return new(i||o)};static#t=this.\u0275mod=e.$C({type:o});static#n=this.\u0275inj=e.G2t({imports:[se,l.Dw2,h.MD,l.pc9,l.tHK,l.tmq,l.ayw,u.uM,l.Q_q,d.X1,d.YN,l.jr_,l.MBE,b.fS,g.RG,l.G95]})}return o})()}}]); \ No newline at end of file diff --git a/mikrofront/dist/html/184.92d77b34464ba5c1.js b/mikrofront/dist/html/184.92d77b34464ba5c1.js new file mode 100644 index 0000000..47a8d48 --- /dev/null +++ b/mikrofront/dist/html/184.92d77b34464ba5c1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[184],{6184:(re,f,_)=>{_.r(f),_.d(f,{VaultModule:()=>ae});var h=_(177),d=_(9417),l=_(8921),m=_(7062),u=_(7390),p=_(9130),C=_(7630),e=_(4438),M=_(9492),k=_(1170),b=_(9631),g=_(6467);function j(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",35),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.runConfirmModalVisible=!n.runConfirmModalVisible)}),e.EFF(1,"Execute Now"),e.k0s()}}function w(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",36),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.toggleCollapse())}),e.EFF(1,"filters"),e.k0s()}}function V(o,a){if(1&o){const t=e.RV6();e.j41(0,"c-input-group",23)(1,"label",24),e.EFF(2," Custom Cron "),e.k0s(),e.j41(3,"input",56),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG(2);return e.DH7(s.settings.cron,n)||(s.settings.cron=n),e.Njj(n)}),e.k0s()()}if(2&o){const t=e.XpG(2);e.R7$(3),e.R50("ngModel",t.settings.cron)}}function F(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item," ")}function R(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",68),e.bIt("click",function(){const n=e.eBV(t).item,s=e.XpG(3);return e.Njj(s.remove_exception(n))}),e.nrm(1,"i",69),e.k0s()}}function E(o,a){if(1&o){const t=e.RV6();e.j41(0,"c-col",57),e.nrm(1,"hr",58),e.j41(2,"c-row",59)(3,"c-col",60)(4,"h6"),e.EFF(5,"User Exceptions"),e.k0s()(),e.j41(6,"c-col",61)(7,"table")(8,"td")(9,"div")(10,"input",62),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG(2);return e.DH7(s.new_exception,n)||(s.new_exception=n),e.Njj(n)}),e.k0s()()(),e.j41(11,"td",63)(12,"button",64),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.add_exception())}),e.EFF(13,"Add Username"),e.k0s()()()()(),e.j41(14,"c-input-group",23)(15,"gui-grid",65)(16,"gui-grid-column",66),e.DNE(17,F,1,1,"ng-template"),e.k0s(),e.j41(18,"gui-grid-column",67),e.DNE(19,R,2,0,"ng-template"),e.k0s()()()()}if(2&o){const t=e.XpG(2);e.R7$(10),e.R50("ngModel",t.new_exception),e.R7$(5),e.Y8G("autoResizeWidth",!0)("source",t.settings.exceptions)("columnMenu",t.columnMenu)("paging",t.paging)("sorting",t.sorting)("autoResizeWidth",!0)}}function x(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item," ")}function T(o,a){1&o&&(e.j41(0,"button",73),e.nrm(1,"i",69),e.k0s())}function I(o,a){if(1&o){const t=e.RV6();e.j41(0,"c-col",57),e.nrm(1,"hr",58),e.j41(2,"c-row",59)(3,"c-col",60)(4,"h6"),e.EFF(5,"Password list"),e.k0s()(),e.j41(6,"c-col",61)(7,"table")(8,"td")(9,"div")(10,"input",70),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG(2);return e.DH7(s.new_password,n)||(s.new_password=n),e.Njj(n)}),e.k0s()()(),e.j41(11,"td",63)(12,"button",64),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.add_password())}),e.EFF(13,"Add Password"),e.k0s()()()()(),e.j41(14,"gui-grid",71)(15,"gui-grid-column",72),e.DNE(16,x,1,1,"ng-template"),e.k0s(),e.j41(17,"gui-grid-column",67),e.DNE(18,T,2,0,"ng-template"),e.k0s()()()}if(2&o){const t=e.XpG(2);e.R7$(10),e.R50("ngModel",t.new_password),e.R7$(4),e.Y8G("autoResizeWidth",!0)("source",t.settings.passwords)("columnMenu",t.columnMenu)("sorting",t.sorting)("paging",t.paging)("autoResizeWidth",!0)}}function N(o,a){if(1&o){const t=e.RV6();e.j41(0,"c-card",37)(1,"c-card-body")(2,"c-row")(3,"c-col",38)(4,"c-input-group",23)(5,"label",24),e.EFF(6," Status "),e.k0s(),e.j41(7,"select",39),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.DH7(s.settings.enable,n)||(s.settings.enable=n),e.Njj(n)}),e.j41(8,"option"),e.EFF(9,"Choose..."),e.k0s(),e.j41(10,"option",40),e.EFF(11,"Enable"),e.k0s(),e.j41(12,"option",41),e.EFF(13,"Disable"),e.k0s()()()(),e.j41(14,"c-col",38)(15,"c-input-group",23)(16,"label",24),e.EFF(17," Strategy "),e.k0s(),e.j41(18,"select",39),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.DH7(s.settings.strategy,n)||(s.settings.strategy=n),e.Njj(n)}),e.j41(19,"option"),e.EFF(20,"Choose..."),e.k0s(),e.j41(21,"option",42),e.EFF(22,"All local"),e.k0s(),e.j41(23,"option",43),e.EFF(24,"Defined in MikroWizard"),e.k0s()()()(),e.j41(25,"c-col",38)(26,"c-input-group",23)(27,"label",24),e.EFF(28," Interval "),e.k0s(),e.j41(29,"select",39),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.DH7(s.settings.interval,n)||(s.settings.interval=n),e.Njj(n)}),e.j41(30,"option"),e.EFF(31,"Choose..."),e.k0s(),e.j41(32,"option",44),e.EFF(33,"Daily"),e.k0s(),e.j41(34,"option",45),e.EFF(35,"Weekly"),e.k0s(),e.j41(36,"option",46),e.EFF(37,"Monthly"),e.k0s(),e.j41(38,"option",47),e.EFF(39,"Yearly"),e.k0s(),e.j41(40,"option",48),e.EFF(41,"Manual"),e.k0s(),e.j41(42,"option",49),e.EFF(43,"Custom"),e.k0s()()(),e.DNE(44,V,4,1,"c-input-group",50),e.k0s(),e.j41(45,"c-col",38)(46,"c-input-group",23)(47,"label",24),e.EFF(48," Password "),e.k0s(),e.j41(49,"select",39),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.DH7(s.settings.password_type,n)||(s.settings.password_type=n),e.Njj(n)}),e.j41(50,"option"),e.EFF(51,"Choose..."),e.k0s(),e.j41(52,"option",51),e.EFF(53,"Random"),e.k0s(),e.j41(54,"option",52),e.EFF(55,"Pre-defined"),e.k0s()()()(),e.DNE(56,E,20,7,"c-col",53)(57,I,19,7,"c-col",53),e.k0s()(),e.j41(58,"c-card-footer",54)(59,"button",55),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.save_settings())}),e.EFF(60,"Save Settings"),e.k0s()()()}if(2&o){const t=e.XpG();e.R7$(7),e.R50("ngModel",t.settings.enable),e.R7$(11),e.R50("ngModel",t.settings.strategy),e.R7$(11),e.R50("ngModel",t.settings.interval),e.R7$(15),e.Y8G("ngIf","custom"==t.settings.interval),e.R7$(5),e.R50("ngModel",t.settings.password_type),e.R7$(7),e.Y8G("ngIf","all"==t.settings.strategy),e.R7$(),e.Y8G("ngIf","defined"==t.settings.password_type)}}function y(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item.name," ")}function G(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",68),e.bIt("click",function(){const n=e.eBV(t).item,s=e.XpG(2);return e.Njj(s.delete_group(n.id))}),e.nrm(1,"i",69),e.k0s()}}function S(o,a){if(1&o){const t=e.RV6();e.j41(0,"c-card",37)(1,"c-card-body")(2,"h6"),e.EFF(3,"Efected Groups"),e.k0s(),e.j41(4,"gui-grid",71)(5,"gui-grid-column",74),e.DNE(6,y,1,1,"ng-template"),e.k0s(),e.j41(7,"gui-grid-column",67),e.DNE(8,G,2,0,"ng-template"),e.k0s()()(),e.j41(9,"c-card-footer",54)(10,"button",55),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.save_settings())}),e.EFF(11,"Save Settings"),e.k0s(),e.j41(12,"button",75),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.show_new_member_form())}),e.EFF(13,"+ Add new Members"),e.k0s()()()}if(2&o){const t=e.XpG();e.R7$(4),e.Y8G("autoResizeWidth",!0)("source",t.Members)("columnMenu",t.columnMenu)("sorting",t.sorting)("paging",t.paging)("autoResizeWidth",!0)}}function D(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item.started," ")}function B(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item.ended," ")}function X(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",79),e.bIt("click",function(){const n=e.eBV(t).item.result,s=e.XpG(3);return e.Njj(s.exportToCsv(n))}),e.EFF(1,"download"),e.k0s()}}function P(o,a){if(1&o&&(e.j41(0,"c-card-body")(1,"h6"),e.EFF(2,"Reports"),e.k0s(),e.j41(3,"gui-grid",71)(4,"gui-grid-column",76),e.DNE(5,D,1,1,"ng-template"),e.k0s(),e.j41(6,"gui-grid-column",77),e.DNE(7,B,1,1,"ng-template"),e.k0s(),e.j41(8,"gui-grid-column",78),e.DNE(9,X,2,0,"ng-template"),e.k0s()()()),2&o){const t=e.XpG(2);e.R7$(3),e.Y8G("autoResizeWidth",!0)("source",t.vault_history)("columnMenu",t.columnMenu)("sorting",t.sorting)("paging",t.paging)("autoResizeWidth",!0)}}function z(o,a){if(1&o&&(e.j41(0,"c-card",37),e.DNE(1,P,10,6,"c-card-body",18),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.vault_history)}}function Y(o,a){if(1&o){const t=e.RV6();e.j41(0,"mat-form-field")(1,"mat-label"),e.EFF(2,"Username"),e.k0s(),e.j41(3,"input",80),e.bIt("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.reinitgrid("username",n))}),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.DH7(s.filters.username,n)||(s.filters.username=n),e.Njj(n)}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(3),e.R50("ngModel",t.filters.username)}}function A(o,a){if(1&o){const t=e.RV6();e.j41(0,"mat-form-field")(1,"mat-label"),e.EFF(2,"Device IP"),e.k0s(),e.j41(3,"input",80),e.bIt("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.reinitgrid("dev_ip",n))}),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.DH7(s.filters.dev_ip,n)||(s.filters.dev_ip=n),e.Njj(n)}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(3),e.R50("ngModel",t.filters.dev_ip)}}function O(o,a){if(1&o){const t=e.RV6();e.j41(0,"mat-form-field")(1,"mat-label"),e.EFF(2,"Device Name"),e.k0s(),e.j41(3,"input",80),e.bIt("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.reinitgrid("dev_name",n))}),e.mxI("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.DH7(s.filters.dev_name,n)||(s.filters.dev_name=n),e.Njj(n)}),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(3),e.R50("ngModel",t.filters.dev_name)}}function H(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item.name," ")}function $(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" ",a.item.devip," ")}function W(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" ",a.item.username," ")}function U(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" ",a.item.changed," ")}function L(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",88),e.bIt("click",function(){e.eBV(t);const n=e.XpG().item,s=e.XpG(2);return e.Njj(s.reveal_password(n.devid,n.username))}),e.nrm(1,"i",89),e.k0s()}}function J(o,a){if(1&o&&e.DNE(0,L,2,0,"button",87),2&o){const t=e.XpG(2);e.Y8G("ngIf",t.ispro)}}function K(o,a){if(1&o&&(e.j41(0,"c-card-body")(1,"gui-grid",81)(2,"gui-grid-column",82),e.DNE(3,H,1,1,"ng-template"),e.k0s(),e.j41(4,"gui-grid-column",83),e.DNE(5,$,1,1,"ng-template"),e.k0s(),e.j41(6,"gui-grid-column",84),e.DNE(7,W,1,1,"ng-template"),e.k0s(),e.j41(8,"gui-grid-column",85),e.DNE(9,U,1,1,"ng-template"),e.k0s(),e.j41(10,"gui-grid-column",86),e.DNE(11,J,1,1,"ng-template"),e.k0s()()()),2&o){const t=e.XpG();e.R7$(),e.Y8G("autoResizeWidth",!0)("source",t.passwords)("columnMenu",t.columnMenu)("sorting",t.sorting)("infoPanel",t.infoPanel)("autoResizeWidth",!0)}}function Q(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item.name," ")}function Z(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" ",a.item.ip," ")}function q(o,a){1&o&&(e.j41(0,"gui-grid-column",94),e.DNE(1,Z,1,1,"ng-template"),e.k0s())}function ee(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" ",a.item.mac," ")}function te(o,a){1&o&&(e.j41(0,"gui-grid-column",95),e.DNE(1,ee,1,1,"ng-template"),e.k0s())}function ne(o,a){if(1&o){const t=e.RV6();e.j41(0,"gui-grid",90),e.bIt("selectedRows",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.onSelectedRowsNewMembers(n))}),e.j41(1,"gui-grid-column",91),e.DNE(2,Q,1,1,"ng-template"),e.k0s(),e.DNE(3,q,2,0,"gui-grid-column",92)(4,te,2,0,"gui-grid-column",93),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("autoResizeWidth",!0)("searching",t.searching)("source",t.availbleMembers)("columnMenu",t.columnMenu)("sorting",t.sorting)("infoPanel",t.infoPanel)("rowSelection",t.rowSelection)("autoResizeWidth",!0)("paging",t.paging),e.R7$(3),e.Y8G("ngIf","devices"==t.SelectedTask.selection_type),e.R7$(),e.Y8G("ngIf","devices"==t.SelectedTask.selection_type)}}function oe(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",96),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.add_new_members())}),e.EFF(1),e.k0s()}if(2&o){const t=e.XpG();e.R7$(),e.SpI("Add ",t.NewMemberRows.length,"")}}const ie=[{path:"",component:(()=>{class o{constructor(t,i,n){this.data_provider=t,this.router=i,this.login_checker=n,this.ispro=!1,this.settings=!1,this.new_password="",this.new_exception="",this.Members=!1,this.vault_history=!1,this.passwords=!1,this.password="",this.PasswordModalVisible=!1,this.source=[],this.columns=[],this.loading=!0,this.rows=[],this.SelectedTask={},this.SelectedTaskItems="",this.runConfirmModalVisible=!1,this.DeleteConfirmModalVisible=!1,this.SelectedMembers=[],this.NewMemberModalVisible=!1,this.availbleMembers=[],this.NewMemberRows=[],this.filters_visible=!1,this.filters={},this.activetab=0,this.sorting={enabled:!0,multiSorting:!0},this.searching={enabled:!0,placeholder:"Search Devices"},this.toasterForm={autohide:!0,delay:3e3,position:"fixed",fade:!0,closeButton:!0},this.options={selectionMode:"single",actionsEnabled:!1,displayExpr:"name",valueExpr:"id",placeholder:"Snippet",searchEnabled:!0,enableDarkMode:!1},this.paging={enabled:!0,page:1,pageSize:10,pageSizes:[5,10,25,50],display:u.sE.ADVANCED},this.columnMenu={enabled:!0,sort:!0,columnsManager:!0},this.infoPanel={enabled:!0,infoDialog:!1,columnsManager:!0,schemaManager:!0},this.rowSelection={enabled:!0,type:u.AU.CHECKBOX,mode:u.fL.MULTIPLE};var s=this;this.login_checker.isLoggedIn()||setTimeout(function(){s.router.navigate(["login"])},100),this.data_provider.getSessionInfo().then(r=>{s.uid=r.uid,s.uname=r.name,s.tz=r.tz,s.ispro=r.ISPRO,"admin"!=r.role&&setTimeout(function(){s.router.navigate(["/user/dashboard"])},100)})}reinitgrid(t,i){"username"==t?this.filters.username=i:"dev_name"==t?this.filters.dev_name=i:"dev_ip"==t&&(this.filters.dev_ip=i),this.get_passwords()}ngOnInit(){this.initGridTable(),this.get_vault_history()}onSelectedRowsNewMembers(t){this.NewMemberRows=t,this.SelectedNewMemberRows=t.map(i=>({id:i.source.id,name:i.source.name}))}toggleCollapse(){this.filters_visible=!this.filters_visible}show_toast(t,i,n){const{...s}={...this.toasterForm,color:n,title:t,body:i};this.viewChildren.first.addToast(C.y,s,{}).instance.closeButton=s.closeButton}add_new_members(){for(var t=this,i=0;in.id===t.SelectedNewMemberRows[i].id)||t.Members.push(t.SelectedNewMemberRows[i]);t.Members=t.Members.filter(n=>""!=n),this.NewMemberModalVisible=!1}delete_group(t){this.Members=this.Members.filter(i=>i.id!=t)}get_member_by_id(t){return this.Members.find(i=>i.id==t)}get_passwords(){var t=this;this.data_provider.get_passwords(this.filters).then(i=>{"error"in i&&i.error.indexOf("Unauthorized")?t.show_toast("Error","You are not authorized to perform this action","danger"):t.passwords=i.data.map(n=>(n.changed=(0,p.qD)(n.changed.split(".")[0]+".000Z",t.tz,"yyyy-MM-dd HH:mm:ss XXX"),n))})}reveal_password(t,i){var n=this;n.password="",this.data_provider.reveal_password(t,i).then(s=>{"error"in s&&s.error.indexOf("Unauthorized")?n.show_toast("Error","You are not authorized to perform this action","danger"):(n.password=s.password,n.PasswordModalVisible=!0)})}exec_vault(){var t=this;this.data_provider.exec_vault().then(i=>{"err"in i?t.show_toast("Error",i.err,"danger"):t.show_toast("Success","Vault job executing","success")})}add_password(){this.settings.passwords.includes(this.new_password)||(this.settings.passwords.push(this.new_password),this.settings.passwords=this.settings.passwords.filter(i=>""!=i),this.new_password="")}get_vault_history(){var t=this;this.data_provider.vault_history().then(i=>{if("error"in i&&i.error.indexOf("Unauthorized"))t.show_toast("Error","You are not authorized to perform this action","danger");else{let n=1;t.vault_history=i.data.map(s=>(s.index=n,s.ended=(0,p.qD)(s.created.split(".")[0]+".000Z",t.tz,"yyyy-MM-dd HH:mm:ss XXX"),s.info=JSON.parse(s.info),s.started=(0,p.qD)(s.info.created.split(".")[0]+".000Z",t.tz,"yyyy-MM-dd HH:mm:ss XXX"),s.start_ip=s.info.start_ip,s.end_ip=s.info.end_ip,s.result=JSON.parse(s.result),n+=1,s))}})}sanitizeString(t){return t?t.toString().replace(/"/g,'"').replace(/'/g,"'"):""}exportToCsv(t){const i=t,n=this.getColumns(i),s=this.convertToCsv(i,n);this.downloadFile(s,"data.csv","text/csv")}getColumns(t){const i=[];return t.forEach(n=>{Object.keys(n).forEach(s=>{i.includes(s)||i.push(s)})}),i}convertToCsv(t,i){var n=this;let s="";return s+=i.join(",")+"\n",t.forEach(c=>{const r=[];i.forEach(v=>{r.push('"'+n.sanitizeString(c[v])+'"')}),s+=r.join(",")+"\n"}),s}downloadFile(t,i,n){const s=new Blob([t],{type:n}),c=window.navigator;if(c.msSaveOrOpenBlob)c.msSaveBlob(s,i);else{const r=document.createElement("a");r.setAttribute("href",URL.createObjectURL(s)),r.setAttribute("download",i),r.style.visibility="hidden",document.body.appendChild(r),r.click(),document.body.removeChild(r)}}show_new_member_form(){this.NewMemberModalVisible=!1;var t=this;t.availbleMembers=[],this.SelectedNewMemberRows=[],this.NewMemberRows=[],t.data_provider.get_devgroup_list().then(n=>{t.availbleMembers=n.filter(s=>!t.SelectedTaskItems.includes(s.id)),t.NewMemberModalVisible=!0})}remove_password(t){this.settings.passwords=this.settings.passwords.filter(n=>n!=t)}add_exception(){this.settings.exceptions.includes(this.new_exception)||(this.settings.exceptions.push(this.new_exception),this.settings.exceptions=this.settings.exceptions.filter(i=>""!=i),this.new_exception="")}remove_exception(t){this.settings.exceptions=this.settings.exceptions.filter(n=>n!=t)}save_settings(){var t=this;this.settings.action="update",this.settings.members=this.Members.map(i=>i.id),"disable"==this.settings.enable&&(this.settings.action="disable"),this.data_provider.vault_task(this.settings).then(i=>{"err"in i?t.show_toast("Error",i.err,"danger"):(t.show_toast("Success","Settings saved","success"),t.initGridTable())})}logger(t){console.dir(t)}initGridTable(){var t=this;this.data_provider.get_vault_setting().then(i=>{t.settings=i.data,t.Members=i.members}),this.data_provider.get_user_task_list().then(i=>{t.source=i.map(n=>n),t.loading=!1})}static#e=this.\u0275fac=function(i){return new(i||o)(e.rXU(M.C),e.rXU(m.Ix),e.rXU(k.T))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["ng-component"]],viewQuery:function(i,n){if(1&i&&e.GBs(l.E0T,5),2&i){let s;e.mGM(s=e.lsd())&&(n.viewChildren=s)}},decls:85,vars:27,consts:[["tabContent","cTabContent"],["PasswordModal",""],["runConfirmModal",""],["NewMemberModal",""],["xs","",2,"padding-right","0"],[1,"nav","nav-underline",2,"background","#fff"],["calss","nav-item"],[1,"nav-link",3,"click","active","cTabContent","tabPaneIdx"],[1,"nav-link",3,"click","cTabContent","routerLink","tabPaneIdx"],[2,"padding-left","0"],[1,"nav","nav-underline",2,"background","#fff","padding","3px","flex-direction","row-reverse"],["cButton","","size","sm","shape","rounded-0","class","mx-2","color","danger",3,"click",4,"ngIf"],["cButton","","size","sm","shape","rounded-0","class","mx-2","color","info",3,"click",4,"ngIf"],[2,"padding","0!important"],["xs",""],["class","mb-4","style","border-radius: 0;",4,"ngIf"],["cCollapse","",3,"visible"],["xs","",1,"example-form",2,"background","#fff","padding","0 10px",3,"lg"],[4,"ngIf"],[1,"mb-4"],["backdrop","static","id","PasswordModal",3,"visibleChange","visible"],["cModalTitle",""],["cButtonClose","",3,"cModalToggle"],[1,"mb-3"],["cInputGroupText","","for","inputGroupSelect01"],["cFormControl","","disabled","true",3,"value"],["cButton","","color","info",3,"cModalToggle"],["backdrop","static","id","runConfirmModal",3,"visibleChange","visible"],["cButton","","color","danger",3,"click"],["backdrop","static","size","lg","id","NewMemberModal",3,"visibleChange","visible"],["cButtonClose","",3,"click"],[3,"autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","rowSelection","paging","selectedRows",4,"ngIf"],["cButton","","color","primary",3,"click",4,"ngIf"],["cButton","","color","secondary",3,"click"],["position","fixed","placement","top-end"],["cButton","","size","sm","shape","rounded-0","color","danger",1,"mx-2",3,"click"],["cButton","","size","sm","shape","rounded-0","color","info",1,"mx-2",3,"click"],[1,"mb-4",2,"border-radius","0"],["md","6"],["cSelect","","id","inputGroupSelect01",3,"ngModelChange","ngModel"],["value","enable"],["value","disable"],["value","all"],["value","mikrowizard"],["value","daily"],["value","weekly"],["value","monthly"],["value","yearly"],["value","manual"],["value","custom"],["class","mb-3",4,"ngIf"],["value","random"],["value","defined"],["md","12",4,"ngIf"],[2,"display","flex","flex-direction","row-reverse"],["cButton","","color","info","shape","rounded-0",2,"color","#fff",3,"click"],["cFormControl","","id","floatingInput","placeholder","Cron",2,"border-radius","0",3,"ngModelChange","ngModel"],["md","12"],["width","70%",2,"margin","10px auto","border-color","#304193","border-width","2px"],[1,"gui-header",2,"background","#f9fafb","padding","10px 0px","margin","0 auto","height","unset","border","1px solid #e8e8e8","border-bottom","unset"],["md","2",2,"display","flex","align-items","center"],["md","10",2,"display","flex","flex-direction","row-reverse"],["cFormControl","","id","floatingInput","placeholder","Username Exception",2,"border-radius","0",3,"ngModelChange","ngModel"],[2,"vertical-align","top"],["cButton","","color","dark","shape","rounded-0",3,"click"],[3,"autoResizeWidth","source","columnMenu","paging","sorting"],["header","UserName","field","name"],["header","Actions","width","70","field","action"],["cButton","","color","danger","size","sm",1,"mx-1",3,"click"],[1,"fa-regular","fa-trash-can"],["cFormControl","","id","floatingInput","placeholder","Password",2,"border-radius","0",3,"ngModelChange","ngModel"],[3,"autoResizeWidth","source","columnMenu","sorting","paging"],["header","Password","field","name"],["cButton","","color","danger","size","sm",1,"mx-1"],["header","Name","field","name"],["cButton","","color","primary",1,"mx-1",3,"click"],["header","Start Time","field","name"],["header","End Time","field","name"],["header","Logs","field","mac","align","center"],["color","primary","cButton","",3,"click"],["matInput","",3,"ngModelChange","ngModel"],[3,"autoResizeWidth","source","columnMenu","sorting","infoPanel"],["header","Device Name","field","name"],["header","Device IP","field","devip"],["header","UserName","field","username"],["header","Last Changed","field","desc_cron"],["header","Actions","width","120","field","action"],["cButton","","color","info","variant","outline",3,"click",4,"ngIf"],["cButton","","color","info","variant","outline",3,"click"],[1,"fa-solid","fa-eye"],[3,"selectedRows","autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","rowSelection","paging"],["header","Member Name","field","name"],["header","IP Address","field","ip",4,"ngIf"],["header","MAC Address","field","mac",4,"ngIf"],["header","IP Address","field","ip"],["header","MAC Address","field","mac"],["cButton","","color","primary",3,"click"]],template:function(i,n){if(1&i){const s=e.RV6();e.j41(0,"c-row")(1,"c-col",4)(2,"div",5)(3,"div",6)(4,"a",7),e.bIt("click",function(){return e.eBV(s),e.Njj(n.activetab=0)}),e.EFF(5,"Settings"),e.k0s()(),e.j41(6,"div",6)(7,"a",8),e.bIt("click",function(){return e.eBV(s),n.get_passwords(),e.Njj(n.activetab=1)}),e.EFF(8,"Passwords"),e.k0s()()()(),e.j41(9,"c-col",9)(10,"div",10),e.DNE(11,j,2,0,"button",11)(12,w,2,0,"button",12),e.k0s()()(),e.j41(13,"c-tab-content",13,0)(15,"c-tab-pane")(16,"c-row")(17,"c-col",14),e.DNE(18,N,61,7,"c-card",15),e.k0s()(),e.j41(19,"c-row")(20,"c-col",14),e.DNE(21,S,14,6,"c-card",15),e.k0s()(),e.j41(22,"c-row")(23,"c-col",14),e.DNE(24,z,2,1,"c-card",15),e.k0s()()(),e.j41(25,"c-tab-pane")(26,"c-row")(27,"div",16)(28,"c-col",17),e.DNE(29,Y,4,1,"mat-form-field",18)(30,A,4,1,"mat-form-field",18)(31,O,4,1,"mat-form-field",18),e.k0s()()(),e.j41(32,"c-row")(33,"c-col",14)(34,"c-card",19),e.DNE(35,K,12,6,"c-card-body",18),e.k0s()()()()(),e.j41(36,"c-modal",20,1),e.mxI("visibleChange",function(r){return e.eBV(s),e.DH7(n.PasswordModalVisible,r)||(n.PasswordModalVisible=r),e.Njj(r)}),e.j41(38,"c-modal-header")(39,"h6",21),e.EFF(40,"Password"),e.k0s(),e.nrm(41,"button",22),e.k0s(),e.j41(42,"c-modal-body")(43,"p")(44,"c-input-group",23)(45,"label",24),e.EFF(46," Password "),e.k0s(),e.nrm(47,"input",25),e.k0s()(),e.j41(48,"code"),e.EFF(49," Your attempt to reveal password is logged in system! "),e.k0s()(),e.j41(50,"c-modal-footer")(51,"button",26),e.EFF(52," Close "),e.k0s()()(),e.j41(53,"c-modal",27,2),e.mxI("visibleChange",function(r){return e.eBV(s),e.DH7(n.runConfirmModalVisible,r)||(n.runConfirmModalVisible=r),e.Njj(r)}),e.j41(55,"c-modal-header")(56,"h6",21),e.EFF(57),e.k0s(),e.nrm(58,"button",22),e.k0s(),e.j41(59,"c-modal-body"),e.EFF(60," Are you sure that You want to run Vault Password Job ? "),e.nrm(61,"br"),e.k0s(),e.j41(62,"c-modal-footer")(63,"button",28),e.bIt("click",function(){return e.eBV(s),e.Njj(n.exec_vault())}),e.EFF(64," Yes,Run! "),e.k0s(),e.j41(65,"button",26),e.EFF(66," Close "),e.k0s()()(),e.j41(67,"c-modal",29,3),e.mxI("visibleChange",function(r){return e.eBV(s),e.DH7(n.NewMemberModalVisible,r)||(n.NewMemberModalVisible=r),e.Njj(r)}),e.j41(69,"c-modal-header")(70,"h5",21),e.EFF(71,"Editing Group "),e.k0s(),e.j41(72,"button",30),e.bIt("click",function(){return e.eBV(s),e.Njj(n.NewMemberModalVisible=!n.NewMemberModalVisible)}),e.k0s()(),e.j41(73,"c-modal-body")(74,"c-input-group",23)(75,"h5"),e.EFF(76,"Group Members :"),e.k0s(),e.DNE(77,ne,5,11,"gui-grid",31),e.nrm(78,"br"),e.k0s(),e.nrm(79,"hr"),e.k0s(),e.j41(80,"c-modal-footer"),e.DNE(81,oe,2,1,"button",32),e.j41(82,"button",33),e.bIt("click",function(){return e.eBV(s),e.Njj(n.NewMemberModalVisible=!n.NewMemberModalVisible)}),e.EFF(83," Close "),e.k0s()()(),e.nrm(84,"c-toaster",34)}if(2&i){const s=e.sdS(14),c=e.sdS(37),r=e.sdS(54);e.R7$(4),e.Y8G("active",!0)("cTabContent",s)("tabPaneIdx",0),e.R7$(3),e.Y8G("cTabContent",s)("tabPaneIdx",1),e.R7$(4),e.Y8G("ngIf",0==n.activetab),e.R7$(),e.Y8G("ngIf",1==n.activetab),e.R7$(6),e.Y8G("ngIf",n.settings),e.R7$(3),e.Y8G("ngIf",n.settings),e.R7$(3),e.Y8G("ngIf",n.settings),e.R7$(3),e.Y8G("visible",n.filters_visible),e.R7$(),e.Y8G("lg",12),e.R7$(),e.Y8G("ngIf",n.ispro),e.R7$(),e.Y8G("ngIf",n.ispro),e.R7$(),e.Y8G("ngIf",n.ispro),e.R7$(4),e.Y8G("ngIf",n.passwords),e.R7$(),e.R50("visible",n.PasswordModalVisible),e.R7$(5),e.Y8G("cModalToggle",c.id),e.R7$(6),e.Y8G("value",n.password),e.R7$(4),e.Y8G("cModalToggle",c.id),e.R7$(2),e.R50("visible",n.runConfirmModalVisible),e.R7$(4),e.SpI("Confirm RUN ",n.SelectedTask.name,""),e.R7$(),e.Y8G("cModalToggle",r.id),e.R7$(7),e.Y8G("cModalToggle",r.id),e.R7$(2),e.R50("visible",n.NewMemberModalVisible),e.R7$(10),e.Y8G("ngIf",n.NewMemberModalVisible),e.R7$(4),e.Y8G("ngIf",0!=n.NewMemberRows.length)}},dependencies:[m.Wk,l.iby,l.qHy,l.Rjr,h.bT,l.gLf,l.oMR,l.l_X,l.wPz,l.fvw,l.ISP,l._fv,l.UjT,u.V1,u.fz,l.Jyz,l.zfW,l.s$3,l.epl,l.L$K,l.VtU,d.xH,d.y7,d.me,d.wz,d.BC,d.vS,l.uu0,l.RKs,l.h7w,l.E0T,b.fg,g.rl,g.nJ,l.DcD],styles:[".nav-underline[_ngcontent-%COMP%]{border-bottom:2px solid var(--cui-nav-underline-border-color, #c4c9d0)}.nav-underline[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{margin-bottom:-2px;cursor:pointer}.nav-underline[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:var(--cui-nav-underline-link-color, #768192);border-style:none none solid!important;border-width:2px;position:relative;bottom:-1px;cursor:pointer}.nav-underline[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover, .nav-underline[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:focus{border-color:var(--cui-nav-underline-link-active-border-color, #321fdb)}.nav-underline[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%], .nav-underline[_ngcontent-%COMP%] .show[_ngcontent-%COMP%] > .nav-link[_ngcontent-%COMP%]{color:var(--cui-nav-underline-link-active-color, #321fdb);background:transparent;border-color:var(--cui-nav-underline-link-active-border-color, #321fdb)}"]})}return o})(),data:{title:$localize`Password Vault`}}];let se=(()=>{class o{static#e=this.\u0275fac=function(i){return new(i||o)};static#t=this.\u0275mod=e.$C({type:o});static#n=this.\u0275inj=e.G2t({imports:[m.iI.forChild(ie),m.iI]})}return o})(),ae=(()=>{class o{static#e=this.\u0275fac=function(i){return new(i||o)};static#t=this.\u0275mod=e.$C({type:o});static#n=this.\u0275inj=e.G2t({imports:[se,l.Dw2,h.MD,l.pc9,l.tHK,l.tmq,l.ayw,u.uM,l.Q_q,d.X1,d.YN,l.jr_,l.MBE,b.fS,g.RG,l.G95]})}return o})()}}]); \ No newline at end of file diff --git a/mikrofront/dist/html/385.90a9729209634334.js b/mikrofront/dist/html/385.e6d21669bdca6045.js similarity index 73% rename from mikrofront/dist/html/385.90a9729209634334.js rename to mikrofront/dist/html/385.e6d21669bdca6045.js index 078d95e..350811c 100644 --- a/mikrofront/dist/html/385.90a9729209634334.js +++ b/mikrofront/dist/html/385.e6d21669bdca6045.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[385],{385:(J,g,p)=>{p.r(g),p.d(g,{SnippetsModule:()=>Q});var h=p(177),m=p(9417),c=p(8921),_=p(7062),u=p(7390),f=p(9130),e=p(4438),M=p(9492),S=p(1170),C=p(1626);const j=["nameSummaryCell"];function k(i,a){1&i&&e.nrm(0,"img",55)}function E(i,a){1&i&&e.nrm(0,"i",56)}function F(i,a){1&i&&e.nrm(0,"i",57)}function v(i,a){if(1&i&&(e.DNE(0,k,1,0,"img",52)(1,E,1,0,"i",53)(2,F,1,0,"i",54),e.EFF(3)),2&i){const n=a.item.name,o=a.item;e.Y8G("ngIf","updating"==o.status),e.R7$(),e.Y8G("ngIf","updated"==o.status),e.R7$(),e.Y8G("ngIf","failed"==o.status),e.R7$(),e.SpI(" ",n," ")}}function R(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" ",a.item.description," ")}function I(i,a){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&i){const n=a.item.created;e.R7$(),e.JRh(n)}}function T(i,a){if(1&i){const n=e.RV6();e.j41(0,"button",58),e.bIt("click",function(){const t=e.eBV(n).item,l=e.XpG();return e.Njj(l.Edit_Snippet(t,"edit"))}),e.nrm(1,"i",59),e.EFF(2,"Edit"),e.k0s(),e.j41(3,"button",60),e.bIt("click",function(){const t=e.eBV(n).item,l=e.XpG();return e.Njj(l.Run_Snippet(t,"exec"))}),e.nrm(4,"i",61),e.EFF(5,"Execute"),e.k0s(),e.j41(6,"button",62),e.bIt("click",function(){const t=e.eBV(n).item,l=e.XpG();return e.Njj(l.show_exec(t))}),e.nrm(7,"i",61),e.EFF(8,"Data"),e.k0s(),e.j41(9,"button",63),e.bIt("click",function(){const t=e.eBV(n).item,l=e.XpG();return e.Njj(l.confirm_delete(t,!1))}),e.nrm(10,"i",64),e.EFF(11,"Delete"),e.k0s()}}function w(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" \xa0 ",a.item.name," ")}function N(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" ",a.item.mac," ")}function V(i,a){1&i&&(e.j41(0,"gui-grid-column",65),e.DNE(1,N,1,1,"ng-template"),e.k0s())}function D(i,a){if(1&i){const n=e.RV6();e.j41(0,"button",66),e.bIt("click",function(){const t=e.eBV(n).item,l=e.XpG();return e.Njj(l.remove_member(t))}),e.nrm(1,"i",67),e.k0s()}}function y(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" \xa0 ",a.item.name," ")}function G(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" ",a.item.ip," ")}function B(i,a){1&i&&(e.j41(0,"gui-grid-column",72),e.DNE(1,G,1,1,"ng-template"),e.k0s())}function z(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" ",a.item.mac," ")}function Y(i,a){1&i&&(e.j41(0,"gui-grid-column",73),e.DNE(1,z,1,1,"ng-template"),e.k0s())}function x(i,a){if(1&i){const n=e.RV6();e.j41(0,"gui-grid",68),e.bIt("selectedRows",function(t){e.eBV(n);const l=e.XpG();return e.Njj(l.onSelectedRowsNewMembers(t))}),e.j41(1,"gui-grid-column",69),e.DNE(2,y,1,1,"ng-template"),e.k0s(),e.DNE(3,B,2,0,"gui-grid-column",70)(4,Y,2,0,"gui-grid-column",71),e.k0s()}if(2&i){const n=e.XpG();e.Y8G("autoResizeWidth",!0)("searching",n.searching)("source",n.availbleMembers)("columnMenu",n.columnMenu)("sorting",n.sorting)("infoPanel",n.infoPanel)("rowSelection",n.rowSelection)("autoResizeWidth",!0)("paging",n.paging),e.R7$(3),e.Y8G("ngIf","devices"==n.current_snippet.selection_type),e.R7$(),e.Y8G("ngIf","devices"==n.current_snippet.selection_type)}}function A(i,a){if(1&i){const n=e.RV6();e.j41(0,"button",31),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.add_new_members())}),e.EFF(1),e.k0s()}if(2&i){const n=e.XpG();e.R7$(),e.SpI("Add ",n.NewMemberRows.length,"")}}function X(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" \xa0 ",a.item.started," ")}function $(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" ",a.item.ended," ")}function P(i,a){if(1&i){const n=e.RV6();e.j41(0,"button",78),e.bIt("click",function(){const t=e.eBV(n).item.result,l=e.XpG(2);return e.Njj(l.exportToCsv(t))}),e.EFF(1,"download"),e.k0s()}}function H(i,a){if(1&i&&(e.j41(0,"gui-grid",74)(1,"gui-grid-column",75),e.DNE(2,X,1,1,"ng-template"),e.k0s(),e.j41(3,"gui-grid-column",76),e.DNE(4,$,1,1,"ng-template"),e.k0s(),e.j41(5,"gui-grid-column",77),e.DNE(6,P,2,0,"ng-template"),e.k0s()()),2&i){const n=e.XpG();e.Y8G("autoResizeWidth",!0)("searching",n.searching)("source",n.ExecutedData)("columnMenu",n.columnMenu)("sorting",n.sorting)("infoPanel",n.infoPanel)("autoResizeWidth",!0)("paging",n.paging)}}function W(i,a){1&i&&(e.j41(0,"h6",17),e.EFF(1,"Add New Snippet"),e.k0s())}function U(i,a){if(1&i&&(e.j41(0,"h6",17),e.EFF(1),e.k0s()),2&i){const n=e.XpG();e.R7$(),e.SpI("Editing snippet ",n.current_snippet.name,"")}}const L=[{path:"",component:(()=>{class i{constructor(n,o,t,l,r){this.data_provider=n,this.router=o,this.login_checker=t,this.renderer=l,this.httpClient=r,this.source=[],this.columns=[],this.loading=!0,this.rows=[],this.EditModalVisible=!1,this.ModalAction="checkfirm",this.lineNum=0,this.DeleteConfirmModalVisible=!1,this.ExecSnipetModalVisible=!1,this.NewMemberModalVisible=!1,this.ExecutedDataModalVisible=!1,this.ExecutedData=[],this.SelectedSnippet={name:""},this.SelectedMembers=[],this.SelectedTaskItems="",this.availbleMembers=[],this.NewMemberRows=[],this.current_snippet={content:"",created:"",description:"",id:0,name:""},this.default_snippet={content:"",created:"",description:"",id:0,name:""},this.sorting={enabled:!0,multiSorting:!0},this.searching={enabled:!0,placeholder:"Search Devices"},this.paging={enabled:!0,page:1,pageSize:10,pageSizes:[5,10,25,50],display:u.sE.ADVANCED},this.columnMenu={enabled:!0,sort:!0,columnsManager:!0},this.infoPanel={enabled:!0,infoDialog:!1,columnsManager:!0,schemaManager:!0},this.rowSelection={enabled:!0,type:u.AU.CHECKBOX,mode:u.fL.MULTIPLE};var s=this;this.login_checker.isLoggedIn(),this.data_provider.getSessionInfo().then(d=>{s.uid=d.uid,s.uname=d.name,s.tz=d.tz,"admin"!=d.role&&setTimeout(function(){s.router.navigate(["/user/dashboard"])},100)})}ngOnInit(){this.initGridTable()}confirm_delete(n="",o=!1){if(o){var t=this;this.data_provider.delete_snippet(t.SelectedSnippet.id).then(l=>{t.initGridTable(),t.DeleteConfirmModalVisible=!1})}else this.SelectedSnippet={...n},this.DeleteConfirmModalVisible=!0,console.dir(this.SelectedSnippet)}Edit_Snippet(n,o="showadd"){"showadd"==o?(this.current_snippet={...this.default_snippet},this.EditModalVisible=!0,this.ModalAction="add"):(this.current_snippet=n,this.EditModalVisible=!0,this.lineNum=this.current_snippet.content.match(/\n/g).length,this.ModalAction="edit")}show_exec(n){var o=this;this.SelectedSnippet=n,this.ExecutedDataModalVisible=!0,this.data_provider.get_executed_snipet(o.SelectedSnippet.id).then(t=>{let l=1;o.ExecutedData=t.map(r=>(r.index=l,r.ended=(0,f.qD)(r.created.split(".")[0]+".000Z",o.tz,"yyyy-MM-dd HH:mm:ss XXX"),r.started=(0,f.qD)(r.info.created.split(".")[0]+".000Z",o.tz,"yyyy-MM-dd HH:mm:ss XXX"),l+=1,r)),o.DeleteConfirmModalVisible=!1})}form_changed(){this.SelectedMembers=[],this.SelectedTaskItems=[]}remove_member(n){var o=this;o.SelectedMembers=o.SelectedMembers.filter(t=>t.id!=n.id),o.SelectedTaskItems=o.SelectedMembers.map(t=>t.id)}show_new_member_form(){this.NewMemberModalVisible=!0;var n=this;n.availbleMembers=[],this.SelectedNewMemberRows=[],this.NewMemberRows=[],"devices"==this.current_snippet.selection_type?n.data_provider.get_dev_list({group_id:!1,search:!1,page:!1,size:1e4}).then(t=>{n.availbleMembers=t.filter(l=>!n.SelectedTaskItems.includes(l.id)),n.NewMemberModalVisible=!0}):n.data_provider.get_devgroup_list().then(t=>{n.availbleMembers=t.filter(l=>!n.SelectedTaskItems.includes(l.id)),n.NewMemberModalVisible=!0})}onSelectedRowsNewMembers(n){this.NewMemberRows=n,this.SelectedNewMemberRows=n.map(o=>o.source)}add_new_members(){var n=this;n.SelectedMembers=[...new Set(n.SelectedMembers.concat(n.SelectedNewMemberRows))],n.SelectedTaskItems=n.SelectedMembers.map(o=>o.id),this.NewMemberModalVisible=!1}submit(n){var o=this;this.data_provider.Exec_snipet(o.current_snippet,o.SelectedTaskItems).then(t=>{o.initGridTable()}),this.ExecSnipetModalVisible=!1}Run_Snippet(n,o="showadd"){this.current_snippet=n,this.current_snippet.task_type="snipet_exec",this.current_snippet.selection_type="devices",this.form_changed(),this.ExecSnipetModalVisible=!0,this.ModalAction="exec"}calcline(n){this.lineNum=n?n.match(/\n/g).length:0}save_snippet(){this.data_provider.save_snippet(this.current_snippet).then(n=>{this.EditModalVisible=!1,this.initGridTable()})}onSelectedRows(n){this.rows=n,this.Selectedrows=n.map(o=>o.source.id)}remove(n){console.dir(n)}logger(n){console.dir(n)}initGridTable(){var n=this;n.data_provider.get_snippets("","","",0,1e3).then(o=>{n.source=o.map(t=>(t.created=[t.created.split("T")[0],t.created.split("T")[1].split(".")[0]].join(" "),t)),n.loading=!1})}sanitizeString(n){return n?n.toString().replace(/"/g,'"').replace(/'/g,"'"):""}exportToCsv(n){const o=n,t=this.getColumns(o),l=this.convertToCsv(o,t);this.downloadFile(l,"data.csv","text/csv")}getColumns(n){const o=[];return n.forEach(t=>{Object.keys(t).forEach(l=>{o.includes(l)||o.push(l)})}),o}convertToCsv(n,o){var t=this;let l="";return l+=o.join(",")+"\n",n.forEach(r=>{const s=[];o.forEach(b=>{s.push('"'+t.sanitizeString(r[b])+'"')}),l+=s.join(",")+"\n"}),l}downloadFile(n,o,t){const l=new Blob([n],{type:t}),r=window.navigator;if(r.msSaveOrOpenBlob)r.msSaveBlob(l,o);else{const s=document.createElement("a");s.setAttribute("href",URL.createObjectURL(l)),s.setAttribute("download",o),s.style.visibility="hidden",document.body.appendChild(s),s.click(),document.body.removeChild(s)}}ngOnDestroy(){}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(M.C),e.rXU(_.Ix),e.rXU(S.T),e.rXU(e.sFG),e.rXU(C.Qq))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["ng-component"]],viewQuery:function(o,t){if(1&o&&e.GBs(j,5),2&o){let l;e.mGM(l=e.lsd())&&(t.nameSummaryCell=l.first)}},decls:162,vars:50,consts:[["ExecSnipetModal",""],["NewMemberModal",""],["ExecutedDataModal",""],["EditModal",""],["DeleteConfirmModal",""],["xs",""],[1,"mb-4"],["xs","",3,"lg"],[2,"text-align","right"],["cButton","","color","dark","size","sm",1,"mx-1",2,"color","#fff",3,"click"],[1,"fa-solid","fa-plus"],[3,"selectedRows","source","searching","paging","columnMenu","sorting","infoPanel","rowSelection","autoResizeWidth"],["header","Name","field","name"],["header","Description","field","description"],["header","Created","field","created"],["header","Actions","field","action","align","center"],["backdrop","static","size","xl","id","ExecSnipetModal",3,"visibleChange","visible"],["cModalTitle",""],["cButtonClose","",3,"cModalToggle"],[1,"mb-3",3,"cFormFloating"],["cFormControl","","id","floatingInput","placeholder","current_snippet['name']","disabled","true",3,"ngModelChange","ngModel"],["cLabel","","for","floatingInput"],["cFormControl","","id","floatingInput","placeholder","current_snippet['description']",3,"ngModelChange","ngModel"],[1,"mb-3"],["cInputGroupText","","for","inputGroupSelect01"],["cSelect","","id","inputGroupSelect01",3,"change","ngModelChange","ngModel"],["value","devices"],["value","groups"],[3,"autoResizeWidth","source","columnMenu","sorting","infoPanel","rowSelection","paging"],["header","MAC","field","mac",4,"ngIf"],["header","Actions","width","120","field","action"],["cButton","","color","primary",3,"click"],["cButton","","color","secondary",3,"cModalToggle"],["backdrop","static","size","lg","id","NewMemberModal",3,"visibleChange","visible"],["cButtonClose","",3,"click"],[3,"autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","rowSelection","paging","selectedRows",4,"ngIf"],["cButton","","color","primary",3,"click",4,"ngIf"],["cButton","","color","secondary",3,"click"],["backdrop","static","size","lg","id","ExecutedDataModal",3,"visibleChange","visible"],[3,"autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","paging",4,"ngIf"],["backdrop","static","id","runEditModal",3,"visibleChange","visible"],["cModalTitle","",4,"ngIf"],["cFormControl","","id","floatingInput","placeholder","Snippet Name",3,"ngModelChange","ngModel"],["cFormControl","","id","floatingInput","placeholder","Snippet Description",3,"ngModelChange","ngModel"],["cFormControl","","id","floatingInput","placeholder","Snippet code",3,"ngModelChange","ngModel"],[1,"col-sm-12","c-d-block","c-text-truncate"],[2,"padding","0!important"],["cButton","","color","danger",3,"click"],["cButton","","color","info",3,"cModalToggle"],["backdrop","static","id","DeleteConfirmModal",3,"visibleChange","visible"],[2,"width","100%"],["position","fixed","placement","top-end"],["width","20px","src","assets/img/loading.svg",4,"ngIf"],["style","color: green;margin: 5px;","class","fa-solid fa-check",4,"ngIf"],["style","color: red;margin: 5px;","class","fa-solid fa-x",4,"ngIf"],["width","20px","src","assets/img/loading.svg"],[1,"fa-solid","fa-check",2,"color","green","margin","5px"],[1,"fa-solid","fa-x",2,"color","red","margin","5px"],["cButton","","color","primary","size","sm",1,"",3,"click"],[1,"fa-regular","fa-pen-to-square","mx-1"],["cButton","","color","warning","size","sm",1,"mx-1",3,"click"],[1,"fa-solid","fa-bolt","mx-1"],["cButton","","color","info","size","sm",1,"mx-1",3,"click"],["cButton","","color","danger","size","sm",1,"",3,"click"],[1,"fa-regular","fa-trash-can","mx-1"],["header","MAC","field","mac"],["cButton","","color","danger","size","sm",3,"click"],[1,"fa-regular","fa-trash-can"],[3,"selectedRows","autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","rowSelection","paging"],["header","Member Name","field","name"],["header","IP Address","field","ip",4,"ngIf"],["header","MAC Address","field","mac",4,"ngIf"],["header","IP Address","field","ip"],["header","MAC Address","field","mac"],[3,"autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","paging"],["header","Start time","field","start"],["header","End time","field","end"],["header","info","field","mac","align","center"],["color","primary","cButton","",3,"click"]],template:function(o,t){if(1&o){const l=e.RV6();e.j41(0,"c-row")(1,"c-col",5)(2,"c-card",6)(3,"c-card-header")(4,"c-row")(5,"c-col",7),e.EFF(6," Devices "),e.k0s(),e.j41(7,"c-col",7)(8,"h6",8)(9,"button",9),e.bIt("click",function(){return e.eBV(l),e.Njj(t.Edit_Snippet("","showadd"))}),e.nrm(10,"i",10),e.k0s()()()()(),e.j41(11,"c-card-body")(12,"gui-grid",11),e.bIt("selectedRows",function(s){return e.eBV(l),e.Njj(t.onSelectedRows(s))}),e.j41(13,"gui-grid-column",12),e.DNE(14,v,4,4,"ng-template"),e.k0s(),e.j41(15,"gui-grid-column",13),e.DNE(16,R,1,1,"ng-template"),e.k0s(),e.j41(17,"gui-grid-column",14),e.DNE(18,I,2,1,"ng-template"),e.k0s(),e.j41(19,"gui-grid-column",15),e.DNE(20,T,12,0,"ng-template"),e.k0s()()()()()(),e.j41(21,"c-modal",16,0),e.mxI("visibleChange",function(s){return e.eBV(l),e.DH7(t.ExecSnipetModalVisible,s)||(t.ExecSnipetModalVisible=s),e.Njj(s)}),e.j41(23,"c-modal-header")(24,"h5",17),e.EFF(25,"Exec Snipet"),e.k0s(),e.nrm(26,"button",18),e.k0s(),e.j41(27,"c-modal-body")(28,"div",19)(29,"input",20),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.current_snippet.name,s)||(t.current_snippet.name=s),e.Njj(s)}),e.k0s(),e.j41(30,"label",21),e.EFF(31,"Snipet Name"),e.k0s()(),e.j41(32,"div",19)(33,"input",22),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.current_snippet.description,s)||(t.current_snippet.description=s),e.Njj(s)}),e.k0s(),e.j41(34,"label",21),e.EFF(35,"Description"),e.k0s()(),e.j41(36,"c-input-group",23)(37,"label",24),e.EFF(38," Member type "),e.k0s(),e.j41(39,"select",25),e.bIt("change",function(){return e.eBV(l),e.Njj(t.form_changed())}),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.current_snippet.selection_type,s)||(t.current_snippet.selection_type=s),e.Njj(s)}),e.j41(40,"option",26),e.EFF(41,"Devices"),e.k0s(),e.j41(42,"option",27),e.EFF(43,"Groups"),e.k0s()()(),e.j41(44,"h5"),e.EFF(45,"Members :"),e.k0s(),e.j41(46,"gui-grid",28)(47,"gui-grid-column",12),e.DNE(48,w,1,1,"ng-template"),e.k0s(),e.DNE(49,V,2,0,"gui-grid-column",29),e.j41(50,"gui-grid-column",30),e.DNE(51,D,2,0,"ng-template"),e.k0s()(),e.nrm(52,"hr"),e.j41(53,"button",31),e.bIt("click",function(){return e.eBV(l),e.Njj(t.show_new_member_form())}),e.EFF(54,"+ Add new Members"),e.k0s()(),e.j41(55,"c-modal-footer")(56,"button",31),e.bIt("click",function(){return e.eBV(l),e.Njj(t.submit("exec"))}),e.EFF(57,"Execute"),e.k0s(),e.j41(58,"button",32),e.EFF(59," Close "),e.k0s()()(),e.j41(60,"c-modal",33,1),e.mxI("visibleChange",function(s){return e.eBV(l),e.DH7(t.NewMemberModalVisible,s)||(t.NewMemberModalVisible=s),e.Njj(s)}),e.j41(62,"c-modal-header")(63,"h5",17),e.EFF(64,"Editing Group "),e.k0s(),e.j41(65,"button",34),e.bIt("click",function(){return e.eBV(l),e.Njj(t.NewMemberModalVisible=!t.NewMemberModalVisible)}),e.k0s()(),e.j41(66,"c-modal-body")(67,"c-input-group",23)(68,"h5"),e.EFF(69,"Group Members :"),e.k0s(),e.DNE(70,x,5,11,"gui-grid",35),e.nrm(71,"br"),e.k0s(),e.nrm(72,"hr"),e.k0s(),e.j41(73,"c-modal-footer"),e.DNE(74,A,2,1,"button",36),e.j41(75,"button",37),e.bIt("click",function(){return e.eBV(l),e.Njj(t.NewMemberModalVisible=!t.NewMemberModalVisible)}),e.EFF(76," Close "),e.k0s()()(),e.j41(77,"c-modal",38,2),e.mxI("visibleChange",function(s){return e.eBV(l),e.DH7(t.ExecutedDataModalVisible,s)||(t.ExecutedDataModalVisible=s),e.Njj(s)}),e.j41(79,"c-modal-header")(80,"h5",17),e.EFF(81,"Editing Group "),e.k0s(),e.j41(82,"button",34),e.bIt("click",function(){return e.eBV(l),e.Njj(t.ExecutedDataModalVisible=!t.ExecutedDataModalVisible)}),e.k0s()(),e.j41(83,"c-modal-body")(84,"c-input-group",23)(85,"h5"),e.EFF(86,"Group Members :"),e.k0s(),e.DNE(87,H,7,8,"gui-grid",39),e.nrm(88,"br"),e.k0s(),e.nrm(89,"hr"),e.k0s(),e.j41(90,"c-modal-footer")(91,"button",37),e.bIt("click",function(){return e.eBV(l),e.Njj(t.ExecutedDataModalVisible=!t.ExecutedDataModalVisible)}),e.EFF(92," Close "),e.k0s()()(),e.j41(93,"c-modal",40,3),e.mxI("visibleChange",function(s){return e.eBV(l),e.DH7(t.EditModalVisible,s)||(t.EditModalVisible=s),e.Njj(s)}),e.j41(95,"c-modal-header"),e.DNE(96,W,2,0,"h6",41)(97,U,2,1,"h6",41),e.nrm(98,"button",18),e.k0s(),e.j41(99,"c-modal-body")(100,"c-input-group",23)(101,"div",19)(102,"input",42),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.current_snippet.name,s)||(t.current_snippet.name=s),e.Njj(s)}),e.k0s(),e.j41(103,"label",21),e.EFF(104,"Name"),e.k0s()()(),e.j41(105,"c-input-group",23)(106,"div",19)(107,"input",43),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.current_snippet.description,s)||(t.current_snippet.description=s),e.Njj(s)}),e.k0s(),e.j41(108,"label",21),e.EFF(109,"Description"),e.k0s()()(),e.j41(110,"c-input-group",23)(111,"div",19)(112,"textarea",44),e.bIt("ngModelChange",function(s){return e.eBV(l),e.Njj(t.calcline(s))}),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.current_snippet.content,s)||(t.current_snippet.content=s),e.Njj(s)}),e.k0s(),e.j41(113,"label",21),e.EFF(114,"Code"),e.k0s(),e.j41(115,"div",45),e.EFF(116,"Note : In case of multiple IP addresses for the MikroWizard server, use"),e.j41(117,"code",46),e.EFF(118,"[mikrowizard]"),e.k0s(),e.EFF(119," instead of the MikroWizard server IP."),e.k0s()()(),e.nrm(120,"br"),e.k0s(),e.j41(121,"c-modal-footer")(122,"button",47),e.bIt("click",function(){return e.eBV(l),e.Njj(t.save_snippet())}),e.EFF(123,"save"),e.k0s(),e.j41(124,"button",48),e.EFF(125,"Close"),e.k0s()()(),e.j41(126,"c-modal",49,4),e.mxI("visibleChange",function(s){return e.eBV(l),e.DH7(t.DeleteConfirmModalVisible,s)||(t.DeleteConfirmModalVisible=s),e.Njj(s)}),e.j41(128,"c-modal-header")(129,"h5",17),e.EFF(130),e.k0s(),e.nrm(131,"button",18),e.k0s(),e.j41(132,"c-modal-body"),e.EFF(133," Are you sure that You want to delete following Snippet ? "),e.nrm(134,"br")(135,"br"),e.j41(136,"table",50)(137,"tr")(138,"td")(139,"b"),e.EFF(140,"Snippet name : "),e.k0s(),e.EFF(141),e.k0s()(),e.nrm(142,"tr"),e.j41(143,"tr")(144,"td")(145,"p")(146,"code",46)(147,"b"),e.EFF(148,"Warning:"),e.k0s(),e.EFF(149," ALL "),e.j41(150,"b"),e.EFF(151,"Tasks"),e.k0s(),e.EFF(152," related to this snippet Will be "),e.j41(153,"b"),e.EFF(154,"modifed or deleted"),e.k0s(),e.EFF(155," and stop working!"),e.k0s()()()()()(),e.j41(156,"c-modal-footer")(157,"button",47),e.bIt("click",function(){return e.eBV(l),e.Njj(t.confirm_delete("",!0))}),e.EFF(158," Yes,Delete! "),e.k0s(),e.j41(159,"button",48),e.EFF(160," Close "),e.k0s()()(),e.nrm(161,"c-toaster",51)}if(2&o){const l=e.sdS(22),r=e.sdS(94),s=e.sdS(127);e.R7$(5),e.Y8G("lg",3),e.R7$(2),e.Y8G("lg",9),e.R7$(5),e.Y8G("source",t.source)("searching",t.searching)("paging",t.paging)("columnMenu",t.columnMenu)("sorting",t.sorting)("infoPanel",t.infoPanel)("rowSelection",t.rowSelection)("autoResizeWidth",!0),e.R7$(9),e.R50("visible",t.ExecSnipetModalVisible),e.R7$(5),e.Y8G("cModalToggle",l.id),e.R7$(2),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",t.current_snippet.name),e.R7$(3),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",t.current_snippet.description),e.R7$(6),e.R50("ngModel",t.current_snippet.selection_type),e.R7$(7),e.Y8G("autoResizeWidth",!0)("source",t.SelectedMembers)("columnMenu",t.columnMenu)("sorting",t.sorting)("infoPanel",t.infoPanel)("rowSelection",t.rowSelection)("autoResizeWidth",!0)("paging",t.paging),e.R7$(3),e.Y8G("ngIf","devices"==t.current_snippet.selection_type),e.R7$(9),e.Y8G("cModalToggle",l.id),e.R7$(2),e.R50("visible",t.NewMemberModalVisible),e.R7$(10),e.Y8G("ngIf",t.NewMemberModalVisible),e.R7$(4),e.Y8G("ngIf",0!=t.NewMemberRows.length),e.R7$(3),e.R50("visible",t.ExecutedDataModalVisible),e.R7$(10),e.Y8G("ngIf",t.ExecutedDataModalVisible),e.R7$(6),e.R50("visible",t.EditModalVisible),e.R7$(3),e.Y8G("ngIf","add"==t.ModalAction),e.R7$(),e.Y8G("ngIf","edit"==t.ModalAction),e.R7$(),e.Y8G("cModalToggle",r.id),e.R7$(3),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",t.current_snippet.name),e.R7$(4),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",t.current_snippet.description),e.R7$(4),e.Y8G("cFormFloating",!0),e.R7$(),e.xc7("height",50+23*t.lineNum,"px"),e.R50("ngModel",t.current_snippet.content),e.R7$(12),e.Y8G("cModalToggle",r.id),e.R7$(2),e.R50("visible",t.DeleteConfirmModalVisible),e.R7$(4),e.SpI("Confirm delete ",t.SelectedSnippet.name,""),e.R7$(),e.Y8G("cModalToggle",s.id),e.R7$(10),e.SpI("",t.SelectedSnippet.name," "),e.R7$(18),e.Y8G("cModalToggle",s.id)}},dependencies:[c.iby,c.qHy,c.lMi,h.bT,c.gLf,c.oMR,c.l_X,c.e$m,c.YJZ,c.wPz,c.fvw,c.ISP,c._fv,c.UjT,u.V1,u.fz,c.Jyz,c.zfW,c.s$3,c.epl,c.L$K,c.VtU,c.E0T,m.xH,m.y7,m.me,m.wz,m.BC,m.vS],encapsulation:2})}return i})(),data:{title:$localize`Snippets`}}];let O=(()=>{class i{static#e=this.\u0275fac=function(o){return new(o||i)};static#t=this.\u0275mod=e.$C({type:i});static#n=this.\u0275inj=e.G2t({imports:[_.iI.forChild(L),_.iI]})}return i})(),Q=(()=>{class i{static#e=this.\u0275fac=function(o){return new(o||i)};static#t=this.\u0275mod=e.$C({type:i});static#n=this.\u0275inj=e.G2t({imports:[O,c.Dw2,h.MD,c.pc9,c.tHK,c.tmq,c.ayw,u.uM,c.Q_q,c.MBE,m.YN]})}return i})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[385],{385:(J,g,p)=>{p.r(g),p.d(g,{SnippetsModule:()=>Q});var h=p(177),m=p(9417),c=p(8921),_=p(7062),u=p(7390),f=p(9130),e=p(4438),M=p(9492),S=p(1170),C=p(1626);const j=["nameSummaryCell"];function k(i,a){1&i&&e.nrm(0,"img",55)}function E(i,a){1&i&&e.nrm(0,"i",56)}function F(i,a){1&i&&e.nrm(0,"i",57)}function v(i,a){if(1&i&&(e.DNE(0,k,1,0,"img",52)(1,E,1,0,"i",53)(2,F,1,0,"i",54),e.EFF(3)),2&i){const n=a.item.name,o=a.item;e.Y8G("ngIf","updating"==o.status),e.R7$(),e.Y8G("ngIf","updated"==o.status),e.R7$(),e.Y8G("ngIf","failed"==o.status),e.R7$(),e.SpI(" ",n," ")}}function R(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" ",a.item.description," ")}function I(i,a){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&i){const n=a.item.created;e.R7$(),e.JRh(n)}}function T(i,a){if(1&i){const n=e.RV6();e.j41(0,"button",58),e.bIt("click",function(){const t=e.eBV(n).item,l=e.XpG();return e.Njj(l.Edit_Snippet(t,"edit"))}),e.nrm(1,"i",59),e.EFF(2,"Edit"),e.k0s(),e.j41(3,"button",60),e.bIt("click",function(){const t=e.eBV(n).item,l=e.XpG();return e.Njj(l.Run_Snippet(t,"exec"))}),e.nrm(4,"i",61),e.EFF(5,"Execute"),e.k0s(),e.j41(6,"button",62),e.bIt("click",function(){const t=e.eBV(n).item,l=e.XpG();return e.Njj(l.show_exec(t))}),e.nrm(7,"i",61),e.EFF(8,"Data"),e.k0s(),e.j41(9,"button",63),e.bIt("click",function(){const t=e.eBV(n).item,l=e.XpG();return e.Njj(l.confirm_delete(t,!1))}),e.nrm(10,"i",64),e.EFF(11,"Delete"),e.k0s()}}function w(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" \xa0 ",a.item.name," ")}function N(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" ",a.item.mac," ")}function V(i,a){1&i&&(e.j41(0,"gui-grid-column",65),e.DNE(1,N,1,1,"ng-template"),e.k0s())}function D(i,a){if(1&i){const n=e.RV6();e.j41(0,"button",66),e.bIt("click",function(){const t=e.eBV(n).item,l=e.XpG();return e.Njj(l.remove_member(t))}),e.nrm(1,"i",67),e.k0s()}}function y(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" \xa0 ",a.item.name," ")}function G(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" ",a.item.ip," ")}function B(i,a){1&i&&(e.j41(0,"gui-grid-column",72),e.DNE(1,G,1,1,"ng-template"),e.k0s())}function z(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" ",a.item.mac," ")}function x(i,a){1&i&&(e.j41(0,"gui-grid-column",73),e.DNE(1,z,1,1,"ng-template"),e.k0s())}function Y(i,a){if(1&i){const n=e.RV6();e.j41(0,"gui-grid",68),e.bIt("selectedRows",function(t){e.eBV(n);const l=e.XpG();return e.Njj(l.onSelectedRowsNewMembers(t))}),e.j41(1,"gui-grid-column",69),e.DNE(2,y,1,1,"ng-template"),e.k0s(),e.DNE(3,B,2,0,"gui-grid-column",70)(4,x,2,0,"gui-grid-column",71),e.k0s()}if(2&i){const n=e.XpG();e.Y8G("autoResizeWidth",!0)("searching",n.searching)("source",n.availbleMembers)("columnMenu",n.columnMenu)("sorting",n.sorting)("infoPanel",n.infoPanel)("rowSelection",n.rowSelection)("autoResizeWidth",!0)("paging",n.paging),e.R7$(3),e.Y8G("ngIf","devices"==n.current_snippet.selection_type),e.R7$(),e.Y8G("ngIf","devices"==n.current_snippet.selection_type)}}function A(i,a){if(1&i){const n=e.RV6();e.j41(0,"button",31),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.add_new_members())}),e.EFF(1),e.k0s()}if(2&i){const n=e.XpG();e.R7$(),e.SpI("Add ",n.NewMemberRows.length,"")}}function X(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" \xa0 ",a.item.started," ")}function $(i,a){1&i&&e.EFF(0),2&i&&e.SpI(" ",a.item.ended," ")}function P(i,a){if(1&i){const n=e.RV6();e.j41(0,"button",78),e.bIt("click",function(){const t=e.eBV(n).item.result,l=e.XpG(2);return e.Njj(l.exportToCsv(t))}),e.EFF(1,"download"),e.k0s()}}function H(i,a){if(1&i&&(e.j41(0,"gui-grid",74)(1,"gui-grid-column",75),e.DNE(2,X,1,1,"ng-template"),e.k0s(),e.j41(3,"gui-grid-column",76),e.DNE(4,$,1,1,"ng-template"),e.k0s(),e.j41(5,"gui-grid-column",77),e.DNE(6,P,2,0,"ng-template"),e.k0s()()),2&i){const n=e.XpG();e.Y8G("autoResizeWidth",!0)("searching",n.searching)("source",n.ExecutedData)("columnMenu",n.columnMenu)("sorting",n.sorting)("infoPanel",n.infoPanel)("autoResizeWidth",!0)("paging",n.paging)}}function W(i,a){1&i&&(e.j41(0,"h6",17),e.EFF(1,"Add New Snippet"),e.k0s())}function U(i,a){if(1&i&&(e.j41(0,"h6",17),e.EFF(1),e.k0s()),2&i){const n=e.XpG();e.R7$(),e.SpI("Editing snippet ",n.current_snippet.name,"")}}const L=[{path:"",component:(()=>{class i{constructor(n,o,t,l,r){this.data_provider=n,this.router=o,this.login_checker=t,this.renderer=l,this.httpClient=r,this.source=[],this.columns=[],this.loading=!0,this.rows=[],this.EditModalVisible=!1,this.ModalAction="checkfirm",this.lineNum=0,this.DeleteConfirmModalVisible=!1,this.ExecSnipetModalVisible=!1,this.NewMemberModalVisible=!1,this.ExecutedDataModalVisible=!1,this.ExecutedData=[],this.SelectedSnippet={name:""},this.SelectedMembers=[],this.SelectedTaskItems="",this.availbleMembers=[],this.NewMemberRows=[],this.current_snippet={content:"",created:"",description:"",id:0,name:""},this.default_snippet={content:"",created:"",description:"",id:0,name:""},this.sorting={enabled:!0,multiSorting:!0},this.searching={enabled:!0,placeholder:"Search Devices"},this.paging={enabled:!0,page:1,pageSize:10,pageSizes:[5,10,25,50],display:u.sE.ADVANCED},this.columnMenu={enabled:!0,sort:!0,columnsManager:!0},this.infoPanel={enabled:!0,infoDialog:!1,columnsManager:!0,schemaManager:!0},this.rowSelection={enabled:!0,type:u.AU.CHECKBOX,mode:u.fL.MULTIPLE};var s=this;this.login_checker.isLoggedIn(),this.data_provider.getSessionInfo().then(d=>{s.uid=d.uid,s.uname=d.name,s.tz=d.tz,"admin"!=d.role&&setTimeout(function(){s.router.navigate(["/user/dashboard"])},100)})}ngOnInit(){this.initGridTable()}confirm_delete(n="",o=!1){if(o){var t=this;this.data_provider.delete_snippet(t.SelectedSnippet.id).then(l=>{t.initGridTable(),t.DeleteConfirmModalVisible=!1})}else this.SelectedSnippet={...n},this.DeleteConfirmModalVisible=!0,console.dir(this.SelectedSnippet)}Edit_Snippet(n,o="showadd"){"showadd"==o?(this.current_snippet={...this.default_snippet},this.EditModalVisible=!0,this.ModalAction="add"):(this.current_snippet=n,this.EditModalVisible=!0,this.lineNum=this.current_snippet.content.match(/\n/g).length,this.ModalAction="edit")}show_exec(n){var o=this;this.SelectedSnippet=n,this.ExecutedDataModalVisible=!0,this.data_provider.get_executed_snipet(o.SelectedSnippet.id).then(t=>{let l=1;o.ExecutedData=t.map(r=>(r.index=l,r.ended=(0,f.qD)(r.created.split(".")[0]+".000Z",o.tz,"yyyy-MM-dd HH:mm:ss XXX"),r.started=(0,f.qD)(r.info.created.split(".")[0]+".000Z",o.tz,"yyyy-MM-dd HH:mm:ss XXX"),l+=1,r)),o.DeleteConfirmModalVisible=!1})}form_changed(){this.SelectedMembers=[],this.SelectedTaskItems=[]}remove_member(n){var o=this;o.SelectedMembers=o.SelectedMembers.filter(t=>t.id!=n.id),o.SelectedTaskItems=o.SelectedMembers.map(t=>t.id)}show_new_member_form(){this.NewMemberModalVisible=!0;var n=this;n.availbleMembers=[],this.SelectedNewMemberRows=[],this.NewMemberRows=[],"devices"==this.current_snippet.selection_type?n.data_provider.get_dev_list({group_id:!1,search:!1,page:!1,size:1e4}).then(t=>{n.availbleMembers=t.filter(l=>!n.SelectedTaskItems.includes(l.id)),n.NewMemberModalVisible=!0}):n.data_provider.get_devgroup_list().then(t=>{n.availbleMembers=t.filter(l=>!n.SelectedTaskItems.includes(l.id)),n.NewMemberModalVisible=!0})}onSelectedRowsNewMembers(n){this.NewMemberRows=n,this.SelectedNewMemberRows=n.map(o=>o.source)}add_new_members(){var n=this;n.SelectedMembers=[...new Set(n.SelectedMembers.concat(n.SelectedNewMemberRows))],n.SelectedTaskItems=n.SelectedMembers.map(o=>o.id),this.NewMemberModalVisible=!1}submit(n){var o=this;this.data_provider.Exec_snipet(o.current_snippet,o.SelectedTaskItems).then(t=>{o.initGridTable()}),this.ExecSnipetModalVisible=!1}Run_Snippet(n,o="showadd"){this.current_snippet=n,this.current_snippet.task_type="snipet_exec",this.current_snippet.selection_type="devices",this.form_changed(),this.ExecSnipetModalVisible=!0,this.ModalAction="exec"}calcline(n){this.lineNum=n?n.match(/\n/g).length:0}save_snippet(){this.data_provider.save_snippet(this.current_snippet).then(n=>{this.EditModalVisible=!1,this.initGridTable()})}onSelectedRows(n){this.rows=n,this.Selectedrows=n.map(o=>o.source.id)}remove(n){console.dir(n)}logger(n){console.dir(n)}initGridTable(){var n=this;n.data_provider.get_snippets("","","",0,1e3).then(o=>{n.source=o.map(t=>(t.created=[t.created.split("T")[0],t.created.split("T")[1].split(".")[0]].join(" "),t)),n.loading=!1})}sanitizeString(n){return n?n.toString().replace(/"/g,'"').replace(/'/g,"'"):""}exportToCsv(n){const o=n,t=this.getColumns(o),l=this.convertToCsv(o,t);this.downloadFile(l,"data.csv","text/csv")}getColumns(n){const o=[];return n.forEach(t=>{Object.keys(t).forEach(l=>{o.includes(l)||o.push(l)})}),o}convertToCsv(n,o){var t=this;let l="";return l+=o.join(",")+"\n",n.forEach(r=>{const s=[];o.forEach(b=>{s.push('"'+t.sanitizeString(r[b])+'"')}),l+=s.join(",")+"\n"}),l}downloadFile(n,o,t){const l=new Blob([n],{type:t}),r=window.navigator;if(r.msSaveOrOpenBlob)r.msSaveBlob(l,o);else{const s=document.createElement("a");s.setAttribute("href",URL.createObjectURL(l)),s.setAttribute("download",o),s.style.visibility="hidden",document.body.appendChild(s),s.click(),document.body.removeChild(s)}}ngOnDestroy(){}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(M.C),e.rXU(_.Ix),e.rXU(S.T),e.rXU(e.sFG),e.rXU(C.Qq))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["ng-component"]],viewQuery:function(o,t){if(1&o&&e.GBs(j,5),2&o){let l;e.mGM(l=e.lsd())&&(t.nameSummaryCell=l.first)}},decls:160,vars:50,consts:[["ExecSnipetModal",""],["NewMemberModal",""],["ExecutedDataModal",""],["EditModal",""],["DeleteConfirmModal",""],["xs",""],[1,"mb-4"],["xs","",3,"lg"],[2,"text-align","right"],["cButton","","color","dark","size","sm",1,"mx-1",2,"color","#fff",3,"click"],[1,"fa-solid","fa-plus"],[3,"selectedRows","source","searching","paging","columnMenu","sorting","infoPanel","rowSelection","autoResizeWidth"],["header","Name","field","name"],["header","Description","field","description"],["header","Created","field","created"],["header","Actions","field","action","align","center"],["backdrop","static","size","xl","id","ExecSnipetModal",3,"visibleChange","visible"],["cModalTitle",""],["cButtonClose","",3,"cModalToggle"],[1,"mb-3",3,"cFormFloating"],["cFormControl","","id","floatingInput","placeholder","current_snippet['name']","disabled","true",3,"ngModelChange","ngModel"],["cLabel","","for","floatingInput"],["cFormControl","","id","floatingInput","placeholder","current_snippet['description']",3,"ngModelChange","ngModel"],[1,"mb-3"],["cInputGroupText","","for","inputGroupSelect01"],["cSelect","","id","inputGroupSelect01",3,"change","ngModelChange","ngModel"],["value","devices"],["value","groups"],[3,"autoResizeWidth","source","columnMenu","sorting","infoPanel","rowSelection","paging"],["header","MAC","field","mac",4,"ngIf"],["header","Actions","width","120","field","action"],["cButton","","color","primary",3,"click"],["cButton","","color","secondary",3,"cModalToggle"],["backdrop","static","size","lg","id","NewMemberModal",3,"visibleChange","visible"],["cButtonClose","",3,"click"],[3,"autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","rowSelection","paging","selectedRows",4,"ngIf"],["cButton","","color","primary",3,"click",4,"ngIf"],["cButton","","color","secondary",3,"click"],["backdrop","static","size","lg","id","ExecutedDataModal",3,"visibleChange","visible"],[3,"autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","paging",4,"ngIf"],["backdrop","static","id","runEditModal",3,"visibleChange","visible"],["cModalTitle","",4,"ngIf"],["cFormControl","","id","floatingInput","placeholder","Snippet Name",3,"ngModelChange","ngModel"],["cFormControl","","id","floatingInput","placeholder","Snippet Description",3,"ngModelChange","ngModel"],["cFormControl","","id","floatingInput","placeholder","Snippet code",3,"ngModelChange","ngModel"],[1,"col-sm-12","c-d-block","c-text-truncate"],[2,"padding","0!important"],["cButton","","color","danger",3,"click"],["cButton","","color","info",3,"cModalToggle"],["backdrop","static","id","DeleteConfirmModal",3,"visibleChange","visible"],[2,"width","100%"],["position","fixed","placement","top-end"],["width","20px","src","assets/img/loading.svg",4,"ngIf"],["style","color: green;margin: 5px;","class","fa-solid fa-check",4,"ngIf"],["style","color: red;margin: 5px;","class","fa-solid fa-x",4,"ngIf"],["width","20px","src","assets/img/loading.svg"],[1,"fa-solid","fa-check",2,"color","green","margin","5px"],[1,"fa-solid","fa-x",2,"color","red","margin","5px"],["cButton","","color","primary","size","sm",1,"",3,"click"],[1,"fa-regular","fa-pen-to-square","mx-1"],["cButton","","color","warning","size","sm",1,"mx-1",3,"click"],[1,"fa-solid","fa-bolt","mx-1"],["cButton","","color","info","size","sm",1,"mx-1",3,"click"],["cButton","","color","danger","size","sm",1,"",3,"click"],[1,"fa-regular","fa-trash-can","mx-1"],["header","MAC","field","mac"],["cButton","","color","danger","size","sm",3,"click"],[1,"fa-regular","fa-trash-can"],[3,"selectedRows","autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","rowSelection","paging"],["header","Member Name","field","name"],["header","IP Address","field","ip",4,"ngIf"],["header","MAC Address","field","mac",4,"ngIf"],["header","IP Address","field","ip"],["header","MAC Address","field","mac"],[3,"autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","paging"],["header","Start time","field","start"],["header","End time","field","end"],["header","info","field","mac","align","center"],["color","primary","cButton","",3,"click"]],template:function(o,t){if(1&o){const l=e.RV6();e.j41(0,"c-row")(1,"c-col",5)(2,"c-card",6)(3,"c-card-header")(4,"c-row")(5,"c-col",7),e.EFF(6," Devices "),e.k0s(),e.j41(7,"c-col",7)(8,"h6",8)(9,"button",9),e.bIt("click",function(){return e.eBV(l),e.Njj(t.Edit_Snippet("","showadd"))}),e.nrm(10,"i",10),e.k0s()()()()(),e.j41(11,"c-card-body")(12,"gui-grid",11),e.bIt("selectedRows",function(s){return e.eBV(l),e.Njj(t.onSelectedRows(s))}),e.j41(13,"gui-grid-column",12),e.DNE(14,v,4,4,"ng-template"),e.k0s(),e.j41(15,"gui-grid-column",13),e.DNE(16,R,1,1,"ng-template"),e.k0s(),e.j41(17,"gui-grid-column",14),e.DNE(18,I,2,1,"ng-template"),e.k0s(),e.j41(19,"gui-grid-column",15),e.DNE(20,T,12,0,"ng-template"),e.k0s()()()()()(),e.j41(21,"c-modal",16,0),e.mxI("visibleChange",function(s){return e.eBV(l),e.DH7(t.ExecSnipetModalVisible,s)||(t.ExecSnipetModalVisible=s),e.Njj(s)}),e.j41(23,"c-modal-header")(24,"h5",17),e.EFF(25,"Exec Snipet"),e.k0s(),e.nrm(26,"button",18),e.k0s(),e.j41(27,"c-modal-body")(28,"div",19)(29,"input",20),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.current_snippet.name,s)||(t.current_snippet.name=s),e.Njj(s)}),e.k0s(),e.j41(30,"label",21),e.EFF(31,"Snipet Name"),e.k0s()(),e.j41(32,"div",19)(33,"input",22),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.current_snippet.description,s)||(t.current_snippet.description=s),e.Njj(s)}),e.k0s(),e.j41(34,"label",21),e.EFF(35,"Description"),e.k0s()(),e.j41(36,"c-input-group",23)(37,"label",24),e.EFF(38," Member type "),e.k0s(),e.j41(39,"select",25),e.bIt("change",function(){return e.eBV(l),e.Njj(t.form_changed())}),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.current_snippet.selection_type,s)||(t.current_snippet.selection_type=s),e.Njj(s)}),e.j41(40,"option",26),e.EFF(41,"Devices"),e.k0s(),e.j41(42,"option",27),e.EFF(43,"Groups"),e.k0s()()(),e.j41(44,"h5"),e.EFF(45,"Members :"),e.k0s(),e.j41(46,"gui-grid",28)(47,"gui-grid-column",12),e.DNE(48,w,1,1,"ng-template"),e.k0s(),e.DNE(49,V,2,0,"gui-grid-column",29),e.j41(50,"gui-grid-column",30),e.DNE(51,D,2,0,"ng-template"),e.k0s()(),e.nrm(52,"hr"),e.j41(53,"button",31),e.bIt("click",function(){return e.eBV(l),e.Njj(t.show_new_member_form())}),e.EFF(54,"+ Add new Members"),e.k0s()(),e.j41(55,"c-modal-footer")(56,"button",31),e.bIt("click",function(){return e.eBV(l),e.Njj(t.submit("exec"))}),e.EFF(57,"Execute"),e.k0s(),e.j41(58,"button",32),e.EFF(59," Close "),e.k0s()()(),e.j41(60,"c-modal",33,1),e.mxI("visibleChange",function(s){return e.eBV(l),e.DH7(t.NewMemberModalVisible,s)||(t.NewMemberModalVisible=s),e.Njj(s)}),e.j41(62,"c-modal-header")(63,"h5",17),e.EFF(64,"Editing Group "),e.k0s(),e.j41(65,"button",34),e.bIt("click",function(){return e.eBV(l),e.Njj(t.NewMemberModalVisible=!t.NewMemberModalVisible)}),e.k0s()(),e.j41(66,"c-modal-body")(67,"c-input-group",23)(68,"h5"),e.EFF(69,"Group Members :"),e.k0s(),e.DNE(70,Y,5,11,"gui-grid",35),e.nrm(71,"br"),e.k0s(),e.nrm(72,"hr"),e.k0s(),e.j41(73,"c-modal-footer"),e.DNE(74,A,2,1,"button",36),e.j41(75,"button",37),e.bIt("click",function(){return e.eBV(l),e.Njj(t.NewMemberModalVisible=!t.NewMemberModalVisible)}),e.EFF(76," Close "),e.k0s()()(),e.j41(77,"c-modal",38,2),e.mxI("visibleChange",function(s){return e.eBV(l),e.DH7(t.ExecutedDataModalVisible,s)||(t.ExecutedDataModalVisible=s),e.Njj(s)}),e.j41(79,"c-modal-header")(80,"h5",17),e.EFF(81,"Exec history "),e.k0s(),e.j41(82,"button",34),e.bIt("click",function(){return e.eBV(l),e.Njj(t.ExecutedDataModalVisible=!t.ExecutedDataModalVisible)}),e.k0s()(),e.j41(83,"c-modal-body")(84,"c-input-group",23),e.DNE(85,H,7,8,"gui-grid",39),e.nrm(86,"br"),e.k0s(),e.nrm(87,"hr"),e.k0s(),e.j41(88,"c-modal-footer")(89,"button",37),e.bIt("click",function(){return e.eBV(l),e.Njj(t.ExecutedDataModalVisible=!t.ExecutedDataModalVisible)}),e.EFF(90," Close "),e.k0s()()(),e.j41(91,"c-modal",40,3),e.mxI("visibleChange",function(s){return e.eBV(l),e.DH7(t.EditModalVisible,s)||(t.EditModalVisible=s),e.Njj(s)}),e.j41(93,"c-modal-header"),e.DNE(94,W,2,0,"h6",41)(95,U,2,1,"h6",41),e.nrm(96,"button",18),e.k0s(),e.j41(97,"c-modal-body")(98,"c-input-group",23)(99,"div",19)(100,"input",42),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.current_snippet.name,s)||(t.current_snippet.name=s),e.Njj(s)}),e.k0s(),e.j41(101,"label",21),e.EFF(102,"Name"),e.k0s()()(),e.j41(103,"c-input-group",23)(104,"div",19)(105,"input",43),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.current_snippet.description,s)||(t.current_snippet.description=s),e.Njj(s)}),e.k0s(),e.j41(106,"label",21),e.EFF(107,"Description"),e.k0s()()(),e.j41(108,"c-input-group",23)(109,"div",19)(110,"textarea",44),e.bIt("ngModelChange",function(s){return e.eBV(l),e.Njj(t.calcline(s))}),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.current_snippet.content,s)||(t.current_snippet.content=s),e.Njj(s)}),e.k0s(),e.j41(111,"label",21),e.EFF(112,"Code"),e.k0s(),e.j41(113,"div",45),e.EFF(114,"Note : In case of multiple IP addresses for the MikroWizard server, use"),e.j41(115,"code",46),e.EFF(116,"[mikrowizard]"),e.k0s(),e.EFF(117," instead of the MikroWizard server IP."),e.k0s()()(),e.nrm(118,"br"),e.k0s(),e.j41(119,"c-modal-footer")(120,"button",47),e.bIt("click",function(){return e.eBV(l),e.Njj(t.save_snippet())}),e.EFF(121,"save"),e.k0s(),e.j41(122,"button",48),e.EFF(123,"Close"),e.k0s()()(),e.j41(124,"c-modal",49,4),e.mxI("visibleChange",function(s){return e.eBV(l),e.DH7(t.DeleteConfirmModalVisible,s)||(t.DeleteConfirmModalVisible=s),e.Njj(s)}),e.j41(126,"c-modal-header")(127,"h5",17),e.EFF(128),e.k0s(),e.nrm(129,"button",18),e.k0s(),e.j41(130,"c-modal-body"),e.EFF(131," Are you sure that You want to delete following Snippet ? "),e.nrm(132,"br")(133,"br"),e.j41(134,"table",50)(135,"tr")(136,"td")(137,"b"),e.EFF(138,"Snippet name : "),e.k0s(),e.EFF(139),e.k0s()(),e.nrm(140,"tr"),e.j41(141,"tr")(142,"td")(143,"p")(144,"code",46)(145,"b"),e.EFF(146,"Warning:"),e.k0s(),e.EFF(147," ALL "),e.j41(148,"b"),e.EFF(149,"Tasks"),e.k0s(),e.EFF(150," related to this snippet Will be "),e.j41(151,"b"),e.EFF(152,"modifed or deleted"),e.k0s(),e.EFF(153," and stop working!"),e.k0s()()()()()(),e.j41(154,"c-modal-footer")(155,"button",47),e.bIt("click",function(){return e.eBV(l),e.Njj(t.confirm_delete("",!0))}),e.EFF(156," Yes,Delete! "),e.k0s(),e.j41(157,"button",48),e.EFF(158," Close "),e.k0s()()(),e.nrm(159,"c-toaster",51)}if(2&o){const l=e.sdS(22),r=e.sdS(92),s=e.sdS(125);e.R7$(5),e.Y8G("lg",3),e.R7$(2),e.Y8G("lg",9),e.R7$(5),e.Y8G("source",t.source)("searching",t.searching)("paging",t.paging)("columnMenu",t.columnMenu)("sorting",t.sorting)("infoPanel",t.infoPanel)("rowSelection",t.rowSelection)("autoResizeWidth",!0),e.R7$(9),e.R50("visible",t.ExecSnipetModalVisible),e.R7$(5),e.Y8G("cModalToggle",l.id),e.R7$(2),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",t.current_snippet.name),e.R7$(3),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",t.current_snippet.description),e.R7$(6),e.R50("ngModel",t.current_snippet.selection_type),e.R7$(7),e.Y8G("autoResizeWidth",!0)("source",t.SelectedMembers)("columnMenu",t.columnMenu)("sorting",t.sorting)("infoPanel",t.infoPanel)("rowSelection",t.rowSelection)("autoResizeWidth",!0)("paging",t.paging),e.R7$(3),e.Y8G("ngIf","devices"==t.current_snippet.selection_type),e.R7$(9),e.Y8G("cModalToggle",l.id),e.R7$(2),e.R50("visible",t.NewMemberModalVisible),e.R7$(10),e.Y8G("ngIf",t.NewMemberModalVisible),e.R7$(4),e.Y8G("ngIf",0!=t.NewMemberRows.length),e.R7$(3),e.R50("visible",t.ExecutedDataModalVisible),e.R7$(8),e.Y8G("ngIf",t.ExecutedDataModalVisible),e.R7$(6),e.R50("visible",t.EditModalVisible),e.R7$(3),e.Y8G("ngIf","add"==t.ModalAction),e.R7$(),e.Y8G("ngIf","edit"==t.ModalAction),e.R7$(),e.Y8G("cModalToggle",r.id),e.R7$(3),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",t.current_snippet.name),e.R7$(4),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",t.current_snippet.description),e.R7$(4),e.Y8G("cFormFloating",!0),e.R7$(),e.xc7("height",50+23*t.lineNum,"px"),e.R50("ngModel",t.current_snippet.content),e.R7$(12),e.Y8G("cModalToggle",r.id),e.R7$(2),e.R50("visible",t.DeleteConfirmModalVisible),e.R7$(4),e.SpI("Confirm delete ",t.SelectedSnippet.name,""),e.R7$(),e.Y8G("cModalToggle",s.id),e.R7$(10),e.SpI("",t.SelectedSnippet.name," "),e.R7$(18),e.Y8G("cModalToggle",s.id)}},dependencies:[c.iby,c.qHy,c.lMi,h.bT,c.gLf,c.oMR,c.l_X,c.e$m,c.YJZ,c.wPz,c.fvw,c.ISP,c._fv,c.UjT,u.V1,u.fz,c.Jyz,c.zfW,c.s$3,c.epl,c.L$K,c.VtU,c.E0T,m.xH,m.y7,m.me,m.wz,m.BC,m.vS],encapsulation:2})}return i})(),data:{title:$localize`Snippets`}}];let O=(()=>{class i{static#e=this.\u0275fac=function(o){return new(o||i)};static#t=this.\u0275mod=e.$C({type:i});static#n=this.\u0275inj=e.G2t({imports:[_.iI.forChild(L),_.iI]})}return i})(),Q=(()=>{class i{static#e=this.\u0275fac=function(o){return new(o||i)};static#t=this.\u0275mod=e.$C({type:i});static#n=this.\u0275inj=e.G2t({imports:[O,c.Dw2,h.MD,c.pc9,c.tHK,c.tmq,c.ayw,u.uM,c.Q_q,c.MBE,m.YN]})}return i})()}}]); \ No newline at end of file diff --git a/mikrofront/dist/html/650.2dd5206d4b1e71a2.js b/mikrofront/dist/html/650.2dd5206d4b1e71a2.js deleted file mode 100644 index a0a2fe0..0000000 --- a/mikrofront/dist/html/650.2dd5206d4b1e71a2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[650],{5650:(X,g,n)=>{n.r(g),n.d(g,{DashboardModule:()=>z});var b=n(177),m=n(9417),o=n(8921),_=n(4858),h=n(7062),F=n(9130),t=n(4438),y=n(9492),R=n(1170),k=n(3801);function C(a,c){1&a&&t.nrm(0,"i",32)}function x(a,c){1&a&&t.nrm(0,"i",33)}function T(a,c){1&a&&t.nrm(0,"i",34)}function D(a,c){1&a&&t.nrm(0,"i",35)}function j(a,c){1&a&&t.nrm(0,"i",36)}function E(a,c){if(1&a&&(t.j41(0,"c-card",1)(1,"c-card-header"),t.EFF(2,"Past 24 Hour Statics"),t.k0s(),t.j41(3,"c-card-body")(4,"c-row")(5,"c-col",18)(6,"c-row")(7,"c-col",19)(8,"c-widget-stat-f",20),t.DNE(9,C,1,0,"ng-template",21),t.k0s()(),t.j41(10,"c-col",19)(11,"c-widget-stat-f",22),t.DNE(12,x,1,0,"ng-template",21),t.k0s()(),t.j41(13,"c-col",19)(14,"c-widget-stat-f",20),t.DNE(15,T,1,0,"ng-template",21),t.k0s()(),t.j41(16,"c-col",19)(17,"c-widget-stat-f",23),t.DNE(18,D,1,0,"ng-template",21),t.k0s()(),t.j41(19,"c-col",19)(20,"c-widget-stat-f",24),t.DNE(21,j,1,0,"ng-template",21),t.k0s()()()()()(),t.j41(22,"c-card-footer",25)(23,"c-col",16)(24,"c-row")(25,"c-col",18)(26,"c-row")(27,"c-col",26)(28,"div",27)(29,"div",28),t.EFF(30,"Total users"),t.k0s(),t.j41(31,"div",29),t.EFF(32),t.k0s()()(),t.j41(33,"c-col",26)(34,"div",30)(35,"div",28),t.EFF(36,"Total Devices"),t.k0s(),t.j41(37,"div",29),t.EFF(38),t.k0s()()(),t.j41(39,"c-col",26)(40,"div",31)(41,"div",28),t.EFF(42,"Total Events"),t.k0s(),t.j41(43,"div",29),t.EFF(44),t.k0s()()(),t.j41(45,"c-col",26)(46,"div",31)(47,"div",28),t.EFF(48,"Total Auth Logs"),t.k0s(),t.j41(49,"div",29),t.EFF(50),t.k0s()()(),t.j41(51,"c-col",26)(52,"div",31)(53,"div",28),t.EFF(54,"Total Acc Logs"),t.k0s(),t.j41(55,"div",29),t.EFF(56),t.k0s()()()()()()()()()),2&a){const e=t.XpG(2);t.R7$(8),t.FS9("value",e.stats.FailedLogins),t.Y8G("title","Failed Logins"),t.R7$(3),t.FS9("value",e.stats.SuccessfulLogins),t.Y8G("title","Success Logins"),t.R7$(3),t.FS9("value",e.stats.Critical),t.Y8G("title","Critical Events"),t.R7$(3),t.FS9("value",e.stats.Warning),t.Y8G("title","Warning Events"),t.R7$(3),t.FS9("value",e.stats.Info),t.Y8G("title","Info Events"),t.R7$(12),t.JRh(e.stats.Users),t.R7$(6),t.JRh(e.stats.Devices),t.R7$(6),t.JRh(e.stats.Events),t.R7$(6),t.JRh(e.stats.Auth),t.R7$(6),t.JRh(e.stats.Acc)}}function G(a,c){if(1&a&&(t.j41(0,"c-row")(1,"c-col",16),t.DNE(2,E,57,15,"c-card",17),t.k0s()()),2&a){const e=t.XpG();t.R7$(2),t.Y8G("ngIf",e.stats)}}function w(a,c){1&a&&(t.j41(0,"span",43),t.nrm(1,"i",44),t.EFF(2,"Copy"),t.k0s())}function I(a,c){1&a&&(t.j41(0,"div",38)(1,"c-badge",45),t.EFF(2,"Not Registred OR Not internet access"),t.k0s(),t.j41(3,"a",46),t.EFF(4,"Learn how to register and get automatic updates!"),t.k0s()())}function $(a,c){if(1&a&&(t.j41(0,"div",38)(1,"c-badge",47),t.EFF(2,"Registred"),t.k0s(),t.j41(3,"c-badge",48),t.EFF(4),t.k0s()()),2&a){const e=t.XpG(2);t.R7$(4),t.SpI("License Type : ",e.stats.license,"")}}function N(a,c){if(1&a){const e=t.RV6();t.j41(0,"c-col",14)(1,"c-widget-stat-b",37)(2,"div",38)(3,"code",39),t.EFF(4,"Serial:"),t.k0s(),t.j41(5,"small",40),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.copy_this())}),t.EFF(6),t.k0s(),t.DNE(7,w,3,0,"span",41),t.k0s(),t.DNE(8,I,5,0,"div",42)(9,$,5,1,"div",42),t.k0s()()}if(2&a){const e=t.XpG();t.R7$(),t.Y8G("title",e.stats.version),t.R7$(4),t.Y8G("cdkCopyToClipboard",e.stats.serial),t.R7$(),t.JRh(e.stats.serial),t.R7$(),t.Y8G("ngIf",e.copy_msg),t.R7$(),t.Y8G("ngIf",!e.stats.license),t.R7$(),t.Y8G("ngIf",e.stats.license)}}function Y(a,c){if(1&a&&(t.j41(0,"c-carousel-item",54),t.nrm(1,"img",55),t.j41(2,"div",56)(3,"h5"),t.EFF(4),t.k0s(),t.nrm(5,"p",57),t.k0s()()),2&a){const e=c.$implicit;t.R7$(),t.FS9("alt",e.title),t.Y8G("src",e.media_content,t.B4B),t.R7$(3),t.JRh(e.title),t.R7$(),t.Y8G("innerHTML",e.summery,t.npT)}}function L(a,c){if(1&a&&(t.j41(0,"c-card",49)(1,"c-carousel",50),t.nrm(2,"c-carousel-indicators"),t.j41(3,"c-carousel-inner"),t.DNE(4,Y,6,4,"c-carousel-item",51),t.k0s(),t.nrm(5,"c-carousel-control",52)(6,"c-carousel-control",53),t.k0s()()),2&a){const e=t.XpG();t.R7$(),t.Y8G("dark",!0)("animate",!1)("wrap",!1)("interval",1e6),t.R7$(3),t.Y8G("ngForOf",e.stats.blog)}}const S=[{path:"",component:(()=>{class a{constructor(e,s,r){this.data_provider=e,this.router=s,this.login_checker=r,this.copy_msg=!1,this.trafficRadioGroup=new m.J3({trafficRadio:new m.hs("5m")}),this.chart_data={},this.Chartoptions={plugins:{tooltip:{callbacks:{label:function(i){const u=["bit","Kib","Mib","Gib","Tib"];var f=i.parsed.y;let d=0;for(;f>=1024&&d=1024&&p=1024&&p{l.uid=i.uid,l.uname=i.name,l.tz=i.tz})}ngOnInit(){this.options=this.Chartoptions,this.initStats(),this.initTrafficChart()}initTrafficChart(){var e=this;this.data_provider.dashboard_traffic(this.delta).then(s=>{let r=s.data.labels.map(l=>(0,F.qD)(l.split(".")[0]+".000Z",e.tz,"yyyy-MM-dd HH:mm:ss"));e.chart_data={datasets:s.data.datasets,labels:r}})}initStats(){var e=this;this.data_provider.dashboard_stats(!0).then(s=>{e.stats=s})}copy_this(){this.copy_msg=!0,setTimeout(()=>{this.copy_msg=!1},3e3)}setTrafficPeriod(e){this.trafficRadioGroup.setValue({trafficRadio:e}),this.delta=e,this.initTrafficChart()}static#t=this.\u0275fac=function(s){return new(s||a)(t.rXU(y.C),t.rXU(h.Ix),t.rXU(R.T))};static#a=this.\u0275cmp=t.VBU({type:a,selectors:[["ng-component"]],decls:27,vars:7,consts:[[4,"ngIf"],[1,"mb-1"],["sm","5"],["id","traffic",1,"card-title","mb-0"],["sm","7",1,"d-none","d-md-block"],[3,"formGroup"],["role","group",1,"float-end","me-3"],["formControlName","trafficRadio","type","radio","value","5m",1,"btn-check"],["cButton","","cFormCheckLabel","","color","secondary","variant","outline",3,"click"],["formControlName","trafficRadio","type","radio","value","1h",1,"btn-check"],["formControlName","trafficRadio","type","radio","value","daily",1,"btn-check"],["formControlName","trafficRadio","type","radio","value","live",1,"btn-check"],["type","line",3,"data","options","height"],["xl","6","lg","12","class","h-100","style","height: 160px!important;",4,"ngIf"],["xl","6","lg","12",1,"h-100",2,"height","160px!important"],["class","mb-1 p-1 h-100",4,"ngIf"],["xs",""],["class","mb-1",4,"ngIf"],["md","12","xl","12","xs","12"],[1,"mb-sm-1","mb-0"],["color","danger","padding","",1,"mb-1",3,"title","value"],["cTemplateId","widgetIconTemplate"],["color","success","padding","",1,"mb-1",3,"title","value"],["color","warning","padding","",1,"mb-1",3,"title","value"],["color","info","padding","",1,"mb-1",3,"title","value"],[1,"pb-0"],[1,"mb-0","pb-0"],[1,"border-start","border-start-4","border-start-info","pt-1","px-3","mb-1"],[1,"text-medium-emphasis","small"],[1,"fs-6","fw-semibold"],[1,"border-start","border-start-4","border-start-warning","pt-1","px-3","mb-1"],[1,"border-start","border-start-4","border-start-success","pt-1","px-3","mb-1"],[1,"fa-solid","fa-person-circle-exclamation",2,"font-size","2em"],[1,"fa-solid","fa-arrow-right-to-bracket",2,"font-size","2em"],[1,"fa-solid","fa-skull-crossbones",2,"font-size","2em"],[1,"fa-solid","fa-triangle-exclamation",2,"font-size","2em"],[1,"fa-solid","fa-circle-info",2,"font-size","2em"],["value","Version",1,"mb-1","h-100",3,"title"],[1,"my-1"],[2,"padding","0!important"],[2,"background-color","#ccc","padding","5px","border-radius","5px","cursor","pointer",3,"click","cdkCopyToClipboard"],["style","color: #fff!important;","class","badge text-bg-success mx-1",4,"ngIf"],["class","my-1",4,"ngIf"],[1,"badge","text-bg-success","mx-1",2,"color","#fff!important"],[1,"fa-solid","fa-check"],["color","danger"],["target","_blank","href","http://MikroWizard.com",1,"mx-1"],["color","success"],["color","info",1,"mx-1"],[1,"mb-1","p-1","h-100"],[3,"dark","animate","wrap","interval"],["style","display: flex;",4,"ngFor","ngForOf"],["caption","Previous","direction","prev",3,"routerLink"],["caption","Next","direction","next",3,"routerLink"],[2,"display","flex"],["loading","lazy","height","150px",1,"d-block",2,"float","left",3,"src","alt"],[2,"padding","20px"],[2,"max-width","90%",3,"innerHTML"]],template:function(s,r){1&s&&(t.DNE(0,G,3,1,"c-row",0),t.j41(1,"c-card",1)(2,"c-card-body")(3,"c-row")(4,"c-col",2)(5,"h4",3),t.EFF(6,"Total Devices Traffic"),t.k0s()(),t.j41(7,"c-col",4)(8,"form",5)(9,"c-button-group",6),t.nrm(10,"input",7),t.j41(11,"label",8),t.bIt("click",function(){return r.setTrafficPeriod("5m")}),t.EFF(12,"5 Minues"),t.k0s(),t.nrm(13,"input",9),t.j41(14,"label",8),t.bIt("click",function(){return r.setTrafficPeriod("1h")}),t.EFF(15,"Hourly"),t.k0s(),t.nrm(16,"input",10),t.j41(17,"label",8),t.bIt("click",function(){return r.setTrafficPeriod("daily")}),t.EFF(18,"Daily"),t.k0s(),t.nrm(19,"input",11),t.j41(20,"label",8),t.bIt("click",function(){return r.setTrafficPeriod("live")}),t.EFF(21,"Live"),t.k0s()()()()(),t.nrm(22,"c-chart",12),t.k0s()(),t.j41(23,"c-row"),t.DNE(24,N,10,6,"c-col",13),t.j41(25,"c-col",14),t.DNE(26,L,7,5,"c-card",15),t.k0s()()),2&s&&(t.Y8G("ngIf",r.stats),t.R7$(8),t.Y8G("formGroup",r.trafficRadioGroup),t.R7$(14),t.Y8G("data",r.chart_data)("options",r.options)("height",250),t.R7$(2),t.Y8G("ngIf",r.stats),t.R7$(2),t.Y8G("ngIf",r.stats))},dependencies:[h.Wk,o.iby,o.qHy,o.Rjr,o.lMi,o.ijd,o.AOl,b.Sq,b.bT,o.gLf,o.oMR,m.qT,m.me,m.Fm,m.BC,m.cb,m.j4,m.JD,o._fv,o.ptL,o.Z7S,_.j,o.gUq,o.vwk,o.Itg,o.cXP,o.Bnb,o.nSt,k.dF],encapsulation:2})}return a})(),data:{title:$localize`Dashboard`}}];let M=(()=>{class a{static#t=this.\u0275fac=function(s){return new(s||a)};static#a=this.\u0275mod=t.$C({type:a});static#e=this.\u0275inj=t.G2t({imports:[h.iI.forChild(S),h.iI]})}return a})(),z=(()=>{class a{static#t=this.\u0275fac=function(s){return new(s||a)};static#a=this.\u0275mod=t.$C({type:a});static#e=this.\u0275inj=t.G2t({imports:[M,o.Dw2,o.L7X,b.MD,o.pc9,o.Emn,m.X1,o.tmq,o.tmq,o.ayw,_.u,o.RlG,o.EJq,k.FQ]})}return a})()}}]); \ No newline at end of file diff --git a/mikrofront/dist/html/650.f6cfc04317581a12.js b/mikrofront/dist/html/650.f6cfc04317581a12.js new file mode 100644 index 0000000..053c41a --- /dev/null +++ b/mikrofront/dist/html/650.f6cfc04317581a12.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[650],{5650:(at,g,l)=>{l.r(g),l.d(g,{DashboardModule:()=>ot});var h=l(177),p=l(9417),e=l(8921),k=l(4858),b=l(7062),C=l(9130),t=l(4438),y=l(9492),j=l(1170),v=l(3801);function R(a,n){1&a&&t.nrm(0,"i",38)}function x(a,n){1&a&&t.nrm(0,"i",39)}function T(a,n){1&a&&t.nrm(0,"i",40)}function E(a,n){1&a&&t.nrm(0,"i",41)}function D(a,n){1&a&&t.nrm(0,"i",42)}function I(a,n){if(1&a&&(t.j41(0,"c-card",2)(1,"c-card-header"),t.EFF(2,"Past 24 Hour Statics"),t.k0s(),t.j41(3,"c-card-body")(4,"c-row")(5,"c-col",24)(6,"c-row")(7,"c-col",25)(8,"c-widget-stat-f",26),t.DNE(9,R,1,0,"ng-template",27),t.k0s()(),t.j41(10,"c-col",25)(11,"c-widget-stat-f",28),t.DNE(12,x,1,0,"ng-template",27),t.k0s()(),t.j41(13,"c-col",25)(14,"c-widget-stat-f",26),t.DNE(15,T,1,0,"ng-template",27),t.k0s()(),t.j41(16,"c-col",25)(17,"c-widget-stat-f",29),t.DNE(18,E,1,0,"ng-template",27),t.k0s()(),t.j41(19,"c-col",25)(20,"c-widget-stat-f",30),t.DNE(21,D,1,0,"ng-template",27),t.k0s()()()()()(),t.j41(22,"c-card-footer",31)(23,"c-col",22)(24,"c-row")(25,"c-col",24)(26,"c-row")(27,"c-col",32)(28,"div",33)(29,"div",34),t.EFF(30,"Total users"),t.k0s(),t.j41(31,"div",35),t.EFF(32),t.k0s()()(),t.j41(33,"c-col",32)(34,"div",36)(35,"div",34),t.EFF(36,"Total Devices"),t.k0s(),t.j41(37,"div",35),t.EFF(38),t.k0s()()(),t.j41(39,"c-col",32)(40,"div",37)(41,"div",34),t.EFF(42,"Total Events"),t.k0s(),t.j41(43,"div",35),t.EFF(44),t.k0s()()(),t.j41(45,"c-col",32)(46,"div",37)(47,"div",34),t.EFF(48,"Total Auth Logs"),t.k0s(),t.j41(49,"div",35),t.EFF(50),t.k0s()()(),t.j41(51,"c-col",32)(52,"div",37)(53,"div",34),t.EFF(54,"Total Acc Logs"),t.k0s(),t.j41(55,"div",35),t.EFF(56),t.k0s()()()()()()()()()),2&a){const o=t.XpG(2);t.R7$(8),t.FS9("value",o.stats.FailedLogins),t.Y8G("title","Failed Logins"),t.R7$(3),t.FS9("value",o.stats.SuccessfulLogins),t.Y8G("title","Success Logins"),t.R7$(3),t.FS9("value",o.stats.Critical),t.Y8G("title","Critical Events"),t.R7$(3),t.FS9("value",o.stats.Warning),t.Y8G("title","Warning Events"),t.R7$(3),t.FS9("value",o.stats.Info),t.Y8G("title","Info Events"),t.R7$(12),t.JRh(o.stats.Users),t.R7$(6),t.JRh(o.stats.Devices),t.R7$(6),t.JRh(o.stats.Events),t.R7$(6),t.JRh(o.stats.Auth),t.R7$(6),t.JRh(o.stats.Acc)}}function G(a,n){if(1&a&&(t.j41(0,"c-row")(1,"c-col",22),t.DNE(2,I,57,15,"c-card",23),t.k0s()()),2&a){const o=t.XpG();t.R7$(2),t.Y8G("ngIf",o.stats)}}function $(a,n){1&a&&(t.j41(0,"span",53),t.nrm(1,"i",54),t.EFF(2,"Copy"),t.k0s())}function M(a,n){if(1&a){const o=t.RV6();t.j41(0,"div",44)(1,"div",47)(2,"code",48),t.EFF(3,"Serial:"),t.k0s(),t.j41(4,"small",49),t.bIt("click",function(){t.eBV(o);const i=t.XpG(2);return t.Njj(i.copy_this())}),t.EFF(5),t.k0s(),t.DNE(6,$,3,0,"span",50),t.k0s(),t.j41(7,"c-badge",51),t.EFF(8,"Not Registred"),t.k0s(),t.j41(9,"a",52),t.EFF(10,"Learn how to register and get automatic updates!"),t.k0s()()}if(2&a){const o=t.XpG(2);t.R7$(4),t.Y8G("cdkCopyToClipboard",o.stats.serial),t.R7$(),t.JRh(o.stats.serial),t.R7$(),t.Y8G("ngIf",o.copy_msg)}}function w(a,n){1&a&&(t.j41(0,"div",44)(1,"c-badge",55),t.EFF(2,"Unable connect to server/Check server internet connection"),t.k0s()())}function Y(a,n){1&a&&(t.j41(0,"span",60),t.nrm(1,"i",54),t.EFF(2,"Copy"),t.k0s())}function N(a,n){1&a&&(t.j41(0,"c-badge",61),t.EFF(1,"Manual update"),t.k0s())}function B(a,n){1&a&&(t.j41(0,"c-badge",61),t.EFF(1,"Auto update"),t.k0s())}function V(a,n){if(1&a){const o=t.RV6();t.j41(0,"div",44)(1,"div",47)(2,"code",48),t.EFF(3,"Serial:"),t.k0s(),t.j41(4,"small",49),t.bIt("click",function(){t.eBV(o);const i=t.XpG(2);return t.Njj(i.copy_this())}),t.EFF(5),t.k0s(),t.DNE(6,Y,3,0,"span",56),t.k0s(),t.j41(7,"c-badge",57),t.EFF(8,"Registred"),t.k0s(),t.j41(9,"c-badge",58),t.EFF(10),t.k0s(),t.DNE(11,N,2,0,"c-badge",59)(12,B,2,0,"c-badge",59),t.k0s()}if(2&a){const o=t.XpG(2);t.R7$(4),t.Y8G("cdkCopyToClipboard",o.stats.serial),t.R7$(),t.JRh(o.stats.serial),t.R7$(),t.Y8G("ngIf",o.copy_msg),t.R7$(4),t.SpI("License Type : ",o.stats.license,""),t.R7$(),t.Y8G("ngIf","auto"!=o.stats.update_mode),t.R7$(),t.Y8G("ngIf","auto"==o.stats.update_mode)}}function S(a,n){1&a&&t.nrm(0,"i",68)}function z(a,n){if(1&a){const o=t.RV6();t.j41(0,"button",69),t.bIt("click",function(){t.eBV(o);const i=t.XpG(3);return t.Njj(i.showConfirmModal("update_mikroman"))}),t.nrm(1,"i",70),t.EFF(2," Update availble "),t.k0s()}}function L(a,n){1&a&&t.nrm(0,"i",68)}function X(a,n){if(1&a){const o=t.RV6();t.j41(0,"button",69),t.bIt("click",function(){t.eBV(o);const i=t.XpG(3);return t.Njj(i.showConfirmModal("update_mikrofront"))}),t.nrm(1,"i",70),t.EFF(2," Update availble "),t.k0s()}}function U(a,n){if(1&a&&(t.j41(0,"div",44)(1,"span",62)(2,"c-badge",63),t.EFF(3),t.k0s(),t.DNE(4,S,1,0,"i",64)(5,z,3,0,"button",65),t.k0s(),t.j41(6,"span",66)(7,"c-badge",67),t.EFF(8),t.k0s(),t.DNE(9,L,1,0,"i",64)(10,X,3,0,"button",65),t.k0s()()),2&a){const o=t.XpG(2);t.R7$(2),t.Y8G("color",o.stats.update_available?"success":"secondary"),t.R7$(),t.SpI("Your Mikroman version : ",o.stats.version," "),t.R7$(),t.Y8G("ngIf",o.stats.update_inprogress),t.R7$(),t.Y8G("ngIf","auto"!=o.stats.update_mode&&o.stats.update_available&&!o.stats.update_inprogress),t.R7$(2),t.Y8G("color",o.stats.front_update_available?"success":"secondary"),t.R7$(),t.SpI("Your Mikrofront version : ",o.front_version," "),t.R7$(),t.Y8G("ngIf",o.stats.front_update_inprogress),t.R7$(),t.Y8G("ngIf","auto"!=o.stats.update_mode&&o.stats.front_update_available&&!o.stats.front_update_inprogress)}}function A(a,n){if(1&a&&(t.j41(0,"c-col",15)(1,"c-card",43)(2,"div",44)(3,"h4",45),t.EFF(4,"Version and Serial information"),t.k0s()(),t.DNE(5,M,11,3,"div",46)(6,w,3,0,"div",46)(7,V,13,6,"div",46)(8,U,11,8,"div",46),t.k0s()()),2&a){const o=t.XpG();t.R7$(5),t.Y8G("ngIf",!o.stats.license),t.R7$(),t.Y8G("ngIf","connection_error"==o.stats.license),t.R7$(),t.Y8G("ngIf","connection_error"!=o.stats.license),t.R7$(),t.Y8G("ngIf","connection_error"!=o.stats.license)}}function J(a,n){if(1&a&&(t.j41(0,"c-carousel-item",76),t.nrm(1,"img",77),t.j41(2,"div",78)(3,"h5"),t.EFF(4),t.k0s(),t.nrm(5,"p",79),t.k0s()()),2&a){const o=n.$implicit;t.R7$(),t.FS9("alt",o.title),t.Y8G("src",o.media_content,t.B4B),t.R7$(3),t.JRh(o.title),t.R7$(),t.Y8G("innerHTML",o.summery,t.npT)}}function H(a,n){if(1&a&&(t.j41(0,"c-card",71)(1,"c-carousel",72),t.nrm(2,"c-carousel-indicators"),t.j41(3,"c-carousel-inner"),t.DNE(4,J,6,4,"c-carousel-item",73),t.k0s(),t.nrm(5,"c-carousel-control",74)(6,"c-carousel-control",75),t.k0s()()),2&a){const o=t.XpG();t.R7$(),t.Y8G("dark",!0)("animate",!1)("wrap",!1)("interval",1e6),t.R7$(3),t.Y8G("ngForOf",o.stats.blog)}}function P(a,n){1&a&&(t.j41(0,"h5",80),t.EFF(1,"Please Confirm Mikroman Update"),t.k0s())}function W(a,n){1&a&&(t.j41(0,"h5",80),t.EFF(1,"Please Confirm MikroFront Update"),t.k0s())}function K(a,n){if(1&a&&(t.j41(0,"div")(1,"p"),t.EFF(2,"Are you sure you want to apply latest Mikroman Update "),t.j41(3,"code",81)(4,"b"),t.EFF(5),t.k0s()(),t.EFF(6,"?"),t.k0s(),t.j41(7,"p"),t.EFF(8,"By updating Mikroman the MikroFront update is also get checked and applyed"),t.k0s(),t.j41(9,"p"),t.EFF(10,"If you made any special changes to configuration files or python files it will be removed automaticlaly"),t.k0s()()),2&a){const o=t.XpG();t.R7$(5),t.SpI(" ver ",o.stats.latest_version,"")}}function O(a,n){1&a&&(t.j41(0,"div")(1,"code",48),t.EFF(2,"Applying the update will cause reload of the server couple of times"),t.k0s()())}function Q(a,n){if(1&a&&(t.j41(0,"div")(1,"p"),t.EFF(2,"Are you sure you want to apply latest MikroFront Update "),t.j41(3,"code",81)(4,"b"),t.EFF(5),t.k0s()(),t.EFF(6,"?"),t.k0s()()),2&a){const o=t.XpG();t.R7$(5),t.SpI(" ver ",o.stats.front_latest_version,"")}}function Z(a,n){1&a&&(t.j41(0,"div")(1,"code",48),t.EFF(2,"Applying the update will cause reload of the page,"),t.nrm(3,"br"),t.EFF(4," Also please make sure you have the latest Mikroman before updating MikroFront. Updating to latest MikroFront without getting latest Mikroman can cause problems"),t.k0s()())}const q=[{path:"",component:(()=>{class a{constructor(o,r,i){this.data_provider=o,this.router=r,this.login_checker=i,this.copy_msg=!1,this.ConfirmModalVisible=!1,this.action="",this.front_version=l(8330).version,this.trafficRadioGroup=new p.J3({trafficRadio:new p.hs("5m")}),this.chart_data={},this.Chartoptions={responsive:!0,plugins:{tooltip:{callbacks:{label:function(s){const u=["bit","Kib","Mib","Gib","Tib"];var f=s.parsed.y;let d=0;for(;f>=1024&&d=1024&&m=1024&&m{c.uid=s.uid,c.uname=s.name,c.tz=s.tz})}ngOnInit(){this.options=this.Chartoptions,this.initStats(),this.initTrafficChart()}initTrafficChart(){var o=this;this.data_provider.dashboard_traffic(this.delta).then(r=>{let i=r.data.labels.map(c=>(0,C.qD)(c.split(".")[0]+".000Z",o.tz,"yyyy-MM-dd HH:mm:ss"));o.chart_data={datasets:r.data.datasets,labels:i}})}initStats(){var o=this;this.data_provider.dashboard_stats(!0,this.front_version).then(r=>{o.stats=r})}copy_this(){this.copy_msg=!0,setTimeout(()=>{this.copy_msg=!1},3e3)}setTrafficPeriod(o){this.trafficRadioGroup.setValue({trafficRadio:o}),this.delta=o,this.initTrafficChart()}showConfirmModal(o){this.action=o,this.ConfirmModalVisible=!0}ConfirmAction(){var o=this;this.data_provider.apply_update(this.action).then(r=>{"success"==r.status&&("update_mikroman"==o.action&&(o.stats.update_inprogress=!0),"update_mikrofront"==o.action&&(o.stats.front_update_inprogress=!0),o.action="",o.ConfirmModalVisible=!1)})}static#t=this.\u0275fac=function(r){return new(r||a)(t.rXU(y.C),t.rXU(b.Ix),t.rXU(j.T))};static#o=this.\u0275cmp=t.VBU({type:a,selectors:[["ng-component"]],decls:43,vars:16,consts:[["ConfirmModal",""],[4,"ngIf"],[1,"mb-1"],["sm","5"],["id","traffic",1,"card-title","mb-0"],["sm","7",1,"d-none","d-md-block"],[3,"formGroup"],["role","group",1,"float-end","me-3"],["formControlName","trafficRadio","type","radio","value","5m",1,"btn-check"],["cButton","","cFormCheckLabel","","color","secondary","variant","outline",3,"click"],["formControlName","trafficRadio","type","radio","value","1h",1,"btn-check"],["formControlName","trafficRadio","type","radio","value","daily",1,"btn-check"],["formControlName","trafficRadio","type","radio","value","live",1,"btn-check"],["type","line",3,"data","options","height"],["xl","6","lg","12","class","h-100","style","min-height: 160px!important;display: grid",4,"ngIf"],["xl","6","lg","12",1,"h-100",2,"min-height","160px!important","display","grid"],["class","h-100","style","padding: 0!important;margin: 0!important;",4,"ngIf"],["backdrop","static","size","lg","id","ConfirmModal",3,"visibleChange","visible"],["cModalTitle","",4,"ngIf"],["cButtonClose","",3,"cModalToggle"],["cButton","","color","primary",3,"click"],["cButton","","color","secondary",3,"cModalToggle"],["xs",""],["class","mb-1",4,"ngIf"],["md","12","xl","12","xs","12"],[1,"mb-sm-1","mb-0"],["color","danger","padding","",1,"mb-1",3,"title","value"],["cTemplateId","widgetIconTemplate"],["color","success","padding","",1,"mb-1",3,"title","value"],["color","warning","padding","",1,"mb-1",3,"title","value"],["color","info","padding","",1,"mb-1",3,"title","value"],[1,"pb-0"],[1,"mb-0","pb-0"],[1,"border-start","border-start-4","border-start-info","pt-1","px-3","mb-1"],[1,"text-medium-emphasis","small"],[1,"fs-6","fw-semibold"],[1,"border-start","border-start-4","border-start-warning","pt-1","px-3","mb-1"],[1,"border-start","border-start-4","border-start-success","pt-1","px-3","mb-1"],[1,"fa-solid","fa-person-circle-exclamation",2,"font-size","2em"],[1,"fa-solid","fa-arrow-right-to-bracket",2,"font-size","2em"],[1,"fa-solid","fa-skull-crossbones",2,"font-size","2em"],[1,"fa-solid","fa-triangle-exclamation",2,"font-size","2em"],[1,"fa-solid","fa-circle-info",2,"font-size","2em"],[1,"mb-1","p-1","h-100",2,"padding-left","5px!important"],[1,"my-1"],[2,"display","inline-block"],["class","my-1",4,"ngIf"],[2,"display","inline-block","margin-right","5px"],[2,"padding","0!important"],[2,"background-color","#ccc","padding","5px","border-radius","5px","cursor","pointer",3,"click","cdkCopyToClipboard"],["style","color: #fff!important;","class","badge text-bg-success",4,"ngIf"],["color","danger"],["target","_blank","href","http://MikroWizard.com",1,"mx-1"],[1,"badge","text-bg-success",2,"color","#fff!important"],[1,"fa-solid","fa-check"],["color","danger",1,"mx-1"],["style","color: #fff!important;","class","badge text-bg-success mx-1",4,"ngIf"],["color","success"],["color","info",1,"mx-1"],["color","info",4,"ngIf"],[1,"badge","text-bg-success","mx-1",2,"color","#fff!important"],["color","info"],[2,"font-size","0.9rem","display","inline-block","margin-right","5px"],[2,"margin","0!important","padding","8px","height","27px",3,"color"],["class","fa-solid fa-spinner fa-spin",4,"ngIf"],["cButton","","color","warning","size","sm","style","font-size: 0.75em;position: relative;left: -4px;top: 1px;border-top-left-radius: 0;border-bottom-left-radius: 0;height: 27px;",3,"click",4,"ngIf"],[2,"font-size","0.9rem","display","inline-block"],["color","secondary",2,"padding","8px","height","27px",3,"color"],[1,"fa-solid","fa-spinner","fa-spin"],["cButton","","color","warning","size","sm",2,"font-size","0.75em","position","relative","left","-4px","top","1px","border-top-left-radius","0","border-bottom-left-radius","0","height","27px",3,"click"],[1,"fa-regular","fa-hand-pointer","fa-beat-fade"],[1,"h-100",2,"padding","0!important","margin","0!important"],[3,"dark","animate","wrap","interval"],["style","display: flex;",4,"ngFor","ngForOf"],["caption","Previous","direction","prev",3,"routerLink"],["caption","Next","direction","next",3,"routerLink"],[2,"display","flex"],["loading","lazy","height","150px",1,"d-block",2,"float","left",3,"src","alt"],[2,"padding","20px"],[2,"max-width","90%",3,"innerHTML"],["cModalTitle",""],[2,"padding","0 !important"]],template:function(r,i){if(1&r){const c=t.RV6();t.DNE(0,G,3,1,"c-row",1),t.j41(1,"c-card",2)(2,"c-card-body")(3,"c-row")(4,"c-col",3)(5,"h4",4),t.EFF(6,"Total Devices Traffic"),t.k0s()(),t.j41(7,"c-col",5)(8,"form",6)(9,"c-button-group",7),t.nrm(10,"input",8),t.j41(11,"label",9),t.bIt("click",function(){return t.eBV(c),t.Njj(i.setTrafficPeriod("5m"))}),t.EFF(12,"5 Minues"),t.k0s(),t.nrm(13,"input",10),t.j41(14,"label",9),t.bIt("click",function(){return t.eBV(c),t.Njj(i.setTrafficPeriod("1h"))}),t.EFF(15,"Hourly"),t.k0s(),t.nrm(16,"input",11),t.j41(17,"label",9),t.bIt("click",function(){return t.eBV(c),t.Njj(i.setTrafficPeriod("daily"))}),t.EFF(18,"Daily"),t.k0s(),t.nrm(19,"input",12),t.j41(20,"label",9),t.bIt("click",function(){return t.eBV(c),t.Njj(i.setTrafficPeriod("live"))}),t.EFF(21,"Live"),t.k0s()()()()(),t.nrm(22,"c-chart",13),t.k0s()(),t.j41(23,"c-row"),t.DNE(24,A,9,4,"c-col",14),t.j41(25,"c-col",15),t.DNE(26,H,7,5,"c-card",16),t.k0s()(),t.j41(27,"c-modal",17,0),t.mxI("visibleChange",function(s){return t.eBV(c),t.DH7(i.ConfirmModalVisible,s)||(i.ConfirmModalVisible=s),t.Njj(s)}),t.j41(29,"c-modal-header"),t.DNE(30,P,2,0,"h5",18)(31,W,2,0,"h5",18),t.nrm(32,"button",19),t.k0s(),t.j41(33,"c-modal-body"),t.DNE(34,K,11,1,"div",1)(35,O,3,0,"div",1)(36,Q,7,1,"div",1)(37,Z,5,0,"div",1),t.k0s(),t.j41(38,"c-modal-footer")(39,"button",20),t.bIt("click",function(){return t.eBV(c),t.Njj(i.ConfirmAction())}),t.EFF(40," submit"),t.k0s(),t.j41(41,"button",21),t.EFF(42," Close "),t.k0s()()()}if(2&r){const c=t.sdS(28);t.Y8G("ngIf",i.stats),t.R7$(8),t.Y8G("formGroup",i.trafficRadioGroup),t.R7$(14),t.Y8G("data",i.chart_data)("options",i.options)("height",250),t.R7$(2),t.Y8G("ngIf",i.stats),t.R7$(2),t.Y8G("ngIf",i.stats),t.R7$(),t.R50("visible",i.ConfirmModalVisible),t.R7$(3),t.Y8G("ngIf","update_mikroman"==i.action),t.R7$(),t.Y8G("ngIf","update_mikrofront"==i.action),t.R7$(),t.Y8G("cModalToggle",c.id),t.R7$(2),t.Y8G("ngIf","update_mikroman"==i.action),t.R7$(),t.Y8G("ngIf","update_mikroman"==i.action),t.R7$(),t.Y8G("ngIf","update_mikrofront"==i.action),t.R7$(),t.Y8G("ngIf","update_mikrofront"==i.action),t.R7$(4),t.Y8G("cModalToggle",c.id)}},dependencies:[b.Wk,e.iby,e.qHy,e.Rjr,e.lMi,e.AOl,h.Sq,h.bT,e.gLf,e.oMR,p.qT,p.me,p.Fm,p.BC,p.cb,p.j4,p.JD,e._fv,e.UjT,e.ptL,e.Z7S,k.j,e.gUq,e.vwk,e.Itg,e.cXP,e.Bnb,e.nSt,v.dF,e.Jyz,e.zfW,e.s$3,e.epl,e.L$K,e.VtU],encapsulation:2})}return a})(),data:{title:$localize`Dashboard`}}];let tt=(()=>{class a{static#t=this.\u0275fac=function(r){return new(r||a)};static#o=this.\u0275mod=t.$C({type:a});static#a=this.\u0275inj=t.G2t({imports:[b.iI.forChild(q),b.iI]})}return a})(),ot=(()=>{class a{static#t=this.\u0275fac=function(r){return new(r||a)};static#o=this.\u0275mod=t.$C({type:a});static#a=this.\u0275inj=t.G2t({imports:[tt,e.Dw2,e.L7X,h.MD,e.pc9,e.Emn,p.X1,e.tmq,e.tmq,e.ayw,k.u,e.RlG,e.EJq,v.FQ,e.Q_q]})}return a})()}}]); \ No newline at end of file diff --git a/mikrofront/dist/html/703.0005b6cdd5939585.js b/mikrofront/dist/html/703.0005b6cdd5939585.js deleted file mode 100644 index ff085ea..0000000 --- a/mikrofront/dist/html/703.0005b6cdd5939585.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[703],{6703:(x,_,m)=>{m.r(_),m.d(_,{PermissionsModule:()=>Y});var p=m(177),d=m(9417),r=m(8921),g=m(4662),f=m(7062),u=m(7390),h=m(7630),e=m(4438),b=m(9492),k=m(1170);const F=()=>["api","ftp","password","read","romon","sniff","telnet","tikapp","winbox"],C=()=>["dude","local","policy","reboot","rest-api","sensitive","ssh","test","web","write"];function T(n,a){1&n&&e.EFF(0),2&n&&e.SpI(" \xa0 ",a.item.name," ")}function j(n,a){if(1&n&&(e.j41(0,"c-badge",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.JRh(t.key)}}function M(n,a){if(1&n&&(e.qex(0),e.DNE(1,j,2,1,"c-badge",31),e.bVm()),2&n){const t=a.$implicit;e.R7$(),e.Y8G("ngIf",t.value)}}function E(n,a){if(1&n&&(e.j41(0,"div",30),e.DNE(1,M,2,1,"ng-container",25),e.nI1(2,"keyvalue"),e.k0s()),2&n){const t=a.item;e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,t.perms))}}function R(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){const i=e.eBV(t).item,o=e.XpG();return e.Njj(o.editAddTask(i,"edit"))}),e.nrm(1,"i",34),e.k0s(),e.j41(2,"button",35),e.bIt("click",function(){const i=e.eBV(t).item,o=e.XpG();return e.Njj(o.confirm_delete(i))}),e.nrm(3,"i",36),e.k0s()}}function P(n,a){if(1&n&&(e.j41(0,"h5",23),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI("Editing Permission ",t.SelectedPerm.name,"")}}function v(n,a){1&n&&(e.j41(0,"h5",23),e.EFF(1,"Adding new Permission Rule"),e.k0s())}function G(n,a){if(1&n){const t=e.RV6();e.j41(0,"c-form-check",37)(1,"input",38),e.mxI("ngModelChange",function(i){const o=e.eBV(t).$implicit,c=e.XpG();return e.DH7(c.perms[o],i)||(c.perms[o]=i),e.Njj(i)}),e.k0s(),e.j41(2,"label",39),e.EFF(3),e.k0s()()}if(2&n){const t=a.$implicit,s=e.XpG();e.Y8G("switch",!0),e.R7$(),e.R50("ngModel",s.perms[t]),e.R7$(2),e.JRh(t)}}function I(n,a){if(1&n){const t=e.RV6();e.j41(0,"c-form-check",37)(1,"input",38),e.mxI("ngModelChange",function(i){const o=e.eBV(t).$implicit,c=e.XpG();return e.DH7(c.perms[o],i)||(c.perms[o]=i),e.Njj(i)}),e.k0s(),e.j41(2,"label",39),e.EFF(3),e.k0s()()}if(2&n){const t=a.$implicit,s=e.XpG();e.Y8G("switch",!0),e.R7$(),e.R50("ngModel",s.perms[t]),e.R7$(2),e.JRh(t)}}function V(n,a){if(1&n&&(e.j41(0,"c-badge",41),e.EFF(1),e.k0s()),2&n){const t=a.$implicit,s=e.XpG(2);e.R7$(),e.JRh(s.get_member_by_id(t).name)}}function w(n,a){if(1&n&&(e.qex(0),e.DNE(1,V,2,1,"c-badge",40),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.splitids(t.SelectedPermItems))}}function $(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.submit("add"))}),e.EFF(1,"Add"),e.k0s()}}function y(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.submit("edit"))}),e.EFF(1,"save"),e.k0s()}}function D(n,a){if(1&n&&(e.j41(0,"c-badge",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.JRh(t.key)}}function N(n,a){if(1&n&&(e.qex(0),e.DNE(1,D,2,1,"c-badge",31),e.bVm()),2&n){const t=a.$implicit;e.R7$(),e.Y8G("ngIf",t.value)}}const B=[{path:"",component:(()=>{class n{constructor(t,s,i){this.data_provider=t,this.router=s,this.login_checker=i,this.source=[],this.columns=[],this.loading=!0,this.rows=[],this.SelectedPerm={},this.SelectedPermItems="",this.EditTaskModalVisible=!1,this.DeleteConfirmModalVisible=!1,this.Members="",this.SelectedMembers=[],this.action="add",this.permid=0,this.permname="",this.perms={api:!1,ftp:!1,password:!1,read:!1,romon:!1,sniff:!1,telnet:!1,tikapp:!1,winbox:!1,dude:!1,local:!1,policy:!1,reboot:!1,"rest-api":!1,sensitive:!1,ssh:!1,test:!1,web:!1,write:!1},this.toasterForm={autohide:!0,delay:3e3,position:"fixed",fade:!0,closeButton:!0},this.sorting={enabled:!0,multiSorting:!0},this.paging={enabled:!0,page:1,pageSize:10,pageSizes:[5,10,25,50],display:u.sE.ADVANCED},this.columnMenu={enabled:!0,sort:!0,columnsManager:!0};var o=this;this.login_checker.isLoggedIn()||setTimeout(function(){o.router.navigate(["login"])},100),this.data_provider.getSessionInfo().then(l=>{o.uid=l.uid,o.uname=l.name,"admin"!=l.role&&setTimeout(function(){o.router.navigate(["/user/dashboard"])},100)})}show_toast(t,s,i){const{...o}={...this.toasterForm,color:i,title:t,body:s};this.viewChildren.first.addToast(h.y,o,{}).instance.closeButton=o.closeButton}ngOnInit(){this.initGridTable()}submit(t){var s=this;"add"==t?this.data_provider.create_perm(s.permname,s.perms).then(i=>{"failed"!=i.status?(s.initGridTable(),this.EditTaskModalVisible=!1):s.show_toast("Error",i.err,"danger")}):this.data_provider.edit_perm(s.permid,s.permname,s.perms).then(i=>{"failed"!=i.status?(s.initGridTable(),this.EditTaskModalVisible=!1):s.show_toast("Error",i.err,"danger")})}editAddTask(t,s){if("showadd"==s)return this.permname=t.name,this.perms={api:!1,ftp:!1,password:!1,read:!1,romon:!1,sniff:!1,telnet:!1,tikapp:!1,winbox:!1,dude:!1,local:!1,policy:!1,reboot:!1,"rest-api":!1,sensitive:!1,ssh:!1,test:!1,web:!1,write:!1},this.permid=0,this.action="add",void(this.EditTaskModalVisible=!0);this.action="edit",this.permname=t.name,this.perms=t.perms,this.permid=t.id,this.EditTaskModalVisible=!0}splitids(t=""){return t.split(",")}get_member_by_id(t){return this.Members.find(s=>s.id==t)}confirm_delete(t="",s=!1){if(s){var i=this;this.data_provider.delete_perm(i.SelectedPerm.id).then(o=>{"failed"!=o.status?(i.initGridTable(),i.DeleteConfirmModalVisible=!1):i.show_toast("Error",o.err,"danger")})}else this.SelectedPerm={...t},this.DeleteConfirmModalVisible=!0}logger(t){console.dir(t)}initGridTable(){var t=this;this.data_provider.get_perms(1,10,"").then(c=>{t.source=c.map(l=>l),t.loading=!1})}static#e=this.\u0275fac=function(s){return new(s||n)(e.rXU(b.C),e.rXU(f.Ix),e.rXU(k.T))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ng-component"]],viewQuery:function(s,i){if(1&s&&e.GBs(r.E0T,5),2&s){let o;e.mGM(o=e.lsd())&&(i.viewChildren=o)}},decls:80,vars:31,consts:[["EditTaskModal",""],["DeleteConfirmModal",""],["xs",""],[1,"mb-4"],["xs","",3,"lg"],["xs","",2,"text-align","right",3,"lg"],["cButton","","color","primary",3,"click"],[1,"fa-solid","fa-plus"],[3,"rowHeight","autoResizeWidth","source","columnMenu","sorting","paging"],["header","Name","field","name"],["width","auto","header","Perms","field","perms"],["header","Actions","width","120","field","action"],["backdrop","static","size","lg","id","EditTaskModal",3,"visibleChange","visible"],["cModalTitle","",4,"ngIf"],["cButtonClose","",3,"cModalToggle"],[1,"mb-3",3,"cFormFloating"],["cFormControl","","id","floatingInput","placeholder","permname",3,"ngModelChange","ngModel"],["cLabel","","for","floatingInput"],[3,"switch",4,"ngFor","ngForOf"],[4,"ngIf"],["cButton","","color","primary",3,"click",4,"ngIf"],["cButton","","color","secondary",3,"cModalToggle"],["backdrop","static","id","DeleteConfirmModal",3,"visibleChange","visible"],["cModalTitle",""],[2,"width","100%"],[4,"ngFor","ngForOf"],[2,"padding","0!important"],["cButton","","color","danger",3,"click"],["cButton","","color","info",3,"cModalToggle"],["position","fixed","placement","top-end"],[2,"text-wrap","initial"],["class","m-1","color","success",4,"ngIf"],["color","success",1,"m-1"],["cButton","","color","warning","size","sm",1,"mx-1",3,"click"],[1,"fa-regular","fa-pen-to-square"],["cButton","","color","danger","size","sm",3,"click"],[1,"fa-regular","fa-trash-can"],[3,"switch"],["cFormCheckInput","","type","checkbox",3,"ngModelChange","ngModel"],["cFormCheckLabel",""],["class","mx-1","color","dark",4,"ngFor","ngForOf"],["color","dark",1,"mx-1"]],template:function(s,i){if(1&s){const o=e.RV6();e.j41(0,"c-row")(1,"c-col",2)(2,"c-card",3)(3,"c-card-header")(4,"c-row")(5,"c-col",4),e.EFF(6," Permissions "),e.k0s(),e.j41(7,"c-col",5)(8,"button",6),e.bIt("click",function(){return e.eBV(o),e.Njj(i.editAddTask({},"showadd"))}),e.nrm(9,"i",7),e.k0s()()()(),e.j41(10,"c-card-body")(11,"gui-grid",8)(12,"gui-grid-column",9),e.DNE(13,T,1,1,"ng-template"),e.k0s(),e.j41(14,"gui-grid-column",10),e.DNE(15,E,3,3,"ng-template"),e.k0s(),e.j41(16,"gui-grid-column",11),e.DNE(17,R,4,0,"ng-template"),e.k0s()()()()()(),e.j41(18,"c-modal-header")(19,"c-modal",12,0),e.mxI("visibleChange",function(l){return e.eBV(o),e.DH7(i.EditTaskModalVisible,l)||(i.EditTaskModalVisible=l),e.Njj(l)}),e.j41(21,"c-modal-header"),e.DNE(22,P,2,1,"h5",13)(23,v,2,0,"h5",13),e.nrm(24,"button",14),e.k0s(),e.j41(25,"c-modal-body")(26,"div",15)(27,"input",16),e.mxI("ngModelChange",function(l){return e.eBV(o),e.DH7(i.permname,l)||(i.permname=l),e.Njj(l)}),e.k0s(),e.j41(28,"label",17),e.EFF(29,"Name"),e.k0s()(),e.j41(30,"c-row")(31,"c-col"),e.DNE(32,G,4,3,"c-form-check",18),e.k0s(),e.j41(33,"c-col"),e.DNE(34,I,4,3,"c-form-check",18),e.k0s()(),e.DNE(35,w,2,1,"ng-container",19),e.k0s(),e.j41(36,"c-modal-footer"),e.DNE(37,$,2,0,"button",20)(38,y,2,0,"button",20),e.j41(39,"button",21),e.EFF(40," Close "),e.k0s()()(),e.j41(41,"c-modal",22,1),e.mxI("visibleChange",function(l){return e.eBV(o),e.DH7(i.DeleteConfirmModalVisible,l)||(i.DeleteConfirmModalVisible=l),e.Njj(l)}),e.j41(43,"c-modal-header")(44,"h5",23),e.EFF(45),e.k0s(),e.nrm(46,"button",14),e.k0s(),e.j41(47,"c-modal-body"),e.EFF(48," Are you sure that You want to delete following Permission? "),e.nrm(49,"br")(50,"br"),e.j41(51,"table",24)(52,"tr")(53,"td")(54,"b"),e.EFF(55,"Permission name : "),e.k0s(),e.EFF(56),e.k0s()(),e.j41(57,"tr")(58,"td"),e.DNE(59,N,2,1,"ng-container",25),e.nI1(60,"keyvalue"),e.k0s()(),e.j41(61,"tr")(62,"td")(63,"p")(64,"code",26)(65,"b"),e.EFF(66,"Warning:"),e.k0s(),e.EFF(67," ALL Given "),e.j41(68,"b"),e.EFF(69,"device access"),e.k0s(),e.EFF(70," related to this permision in Users Section "),e.j41(71,"b"),e.EFF(72,"will be deleted"),e.k0s(),e.EFF(73," for each user"),e.k0s()()()()()(),e.j41(74,"c-modal-footer")(75,"button",27),e.bIt("click",function(){return e.eBV(o),e.Njj(i.confirm_delete("",!0))}),e.EFF(76," Yes,Delete! "),e.k0s(),e.j41(77,"button",28),e.EFF(78," Close "),e.k0s()()(),e.nrm(79,"c-toaster",29),e.k0s()}if(2&s){const o=e.sdS(20),c=e.sdS(42);e.R7$(5),e.Y8G("lg",10),e.R7$(2),e.Y8G("lg",2),e.R7$(4),e.Y8G("rowHeight",82)("autoResizeWidth",!0)("source",i.source)("columnMenu",i.columnMenu)("sorting",i.sorting)("autoResizeWidth",!0)("paging",i.paging),e.R7$(8),e.R50("visible",i.EditTaskModalVisible),e.R7$(3),e.Y8G("ngIf","edit"==i.action),e.R7$(),e.Y8G("ngIf","add"==i.action),e.R7$(),e.Y8G("cModalToggle",o.id),e.R7$(2),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",i.permname),e.R7$(5),e.Y8G("ngForOf",e.lJ4(29,F)),e.R7$(2),e.Y8G("ngForOf",e.lJ4(30,C)),e.R7$(),e.Y8G("ngIf",i.SelectedMembers.length>0&&i.EditTaskModalVisible),e.R7$(2),e.Y8G("ngIf","add"==i.action),e.R7$(),e.Y8G("ngIf","edit"==i.action),e.R7$(),e.Y8G("cModalToggle",o.id),e.R7$(2),e.R50("visible",i.DeleteConfirmModalVisible),e.R7$(4),e.SpI("Confirm delete ",i.SelectedPerm.name,""),e.R7$(),e.Y8G("cModalToggle",c.id),e.R7$(10),e.SpI("",i.SelectedPerm.name," "),e.R7$(3),e.Y8G("ngForOf",e.bMT(60,27,i.SelectedPerm.perms)),e.R7$(18),e.Y8G("cModalToggle",c.id)}},dependencies:[r.iby,r.qHy,r.lMi,p.Sq,p.bT,r.gLf,r.oMR,r.E0T,r.akk,r.cy2,r.iQ3,r.l_X,r.e$m,r.YJZ,r._fv,r.UjT,u.V1,u.fz,r.Jyz,r.zfW,r.s$3,r.epl,r.L$K,r.VtU,d.me,d.Zm,d.BC,d.vS,r.nSt,p.lG],encapsulation:2})}return n})(),data:{title:$localize`Permissions`}}];let S=(()=>{class n{static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275mod=e.$C({type:n});static#i=this.\u0275inj=e.G2t({imports:[f.iI.forChild(B),f.iI]})}return n})(),Y=(()=>{class n{static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275mod=e.$C({type:n});static#i=this.\u0275inj=e.G2t({imports:[S,r.Dw2,r.Ied,g.op,r.jr_,p.MD,r.pc9,r.MBE,r.tHK,r.tmq,r.ayw,u.uM,r.Q_q,d.YN,r.EJq]})}return n})()}}]); \ No newline at end of file diff --git a/mikrofront/dist/html/703.3d45fd8c410598ea.js b/mikrofront/dist/html/703.3d45fd8c410598ea.js new file mode 100644 index 0000000..935a279 --- /dev/null +++ b/mikrofront/dist/html/703.3d45fd8c410598ea.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[703],{6703:(x,_,m)=>{m.r(_),m.d(_,{PermissionsModule:()=>S});var p=m(177),d=m(9417),r=m(8921),g=m(4662),f=m(7062),u=m(7390),h=m(7630),e=m(4438),b=m(9492),k=m(1170);const F=()=>["api","ftp","password","read","romon","sniff","telnet","tikapp","winbox"],C=()=>["dude","local","policy","reboot","rest-api","sensitive","ssh","test","web","write"];function T(n,a){1&n&&e.EFF(0),2&n&&e.SpI(" \xa0 ",a.item.name," ")}function j(n,a){if(1&n&&(e.j41(0,"c-badge",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.JRh(t.key)}}function M(n,a){if(1&n&&(e.qex(0),e.DNE(1,j,2,1,"c-badge",31),e.bVm()),2&n){const t=a.$implicit;e.R7$(),e.Y8G("ngIf",t.value)}}function E(n,a){if(1&n&&(e.j41(0,"div",30),e.DNE(1,M,2,1,"ng-container",25),e.nI1(2,"keyvalue"),e.k0s()),2&n){const t=a.item;e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,t.perms))}}function R(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){const i=e.eBV(t).item,s=e.XpG();return e.Njj(s.editAddTask(i,"edit"))}),e.nrm(1,"i",34),e.k0s(),e.j41(2,"button",35),e.bIt("click",function(){const i=e.eBV(t).item,s=e.XpG();return e.Njj(s.confirm_delete(i))}),e.nrm(3,"i",36),e.k0s()}}function P(n,a){if(1&n&&(e.j41(0,"h5",23),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI("Editing Permission ",t.SelectedPerm.name,"")}}function v(n,a){1&n&&(e.j41(0,"h5",23),e.EFF(1,"Adding new Permission Rule"),e.k0s())}function G(n,a){if(1&n){const t=e.RV6();e.j41(0,"c-form-check",37)(1,"input",38),e.mxI("ngModelChange",function(i){const s=e.eBV(t).$implicit,c=e.XpG();return e.DH7(c.perms[s],i)||(c.perms[s]=i),e.Njj(i)}),e.k0s(),e.j41(2,"label",39),e.EFF(3),e.k0s()()}if(2&n){const t=a.$implicit,o=e.XpG();e.Y8G("switch",!0),e.R7$(),e.R50("ngModel",o.perms[t]),e.R7$(2),e.JRh(t)}}function I(n,a){if(1&n){const t=e.RV6();e.j41(0,"c-form-check",37)(1,"input",38),e.mxI("ngModelChange",function(i){const s=e.eBV(t).$implicit,c=e.XpG();return e.DH7(c.perms[s],i)||(c.perms[s]=i),e.Njj(i)}),e.k0s(),e.j41(2,"label",39),e.EFF(3),e.k0s()()}if(2&n){const t=a.$implicit,o=e.XpG();e.Y8G("switch",!0),e.R7$(),e.R50("ngModel",o.perms[t]),e.R7$(2),e.JRh(t)}}function w(n,a){if(1&n&&(e.j41(0,"c-badge",41),e.EFF(1),e.k0s()),2&n){const t=a.$implicit,o=e.XpG(2);e.R7$(),e.JRh(o.get_member_by_id(t).name)}}function V(n,a){if(1&n&&(e.qex(0),e.DNE(1,w,2,1,"c-badge",40),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.splitids(t.SelectedPermItems))}}function $(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.submit("add"))}),e.EFF(1,"Add"),e.k0s()}}function y(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.submit("edit"))}),e.EFF(1,"save"),e.k0s()}}function D(n,a){if(1&n&&(e.j41(0,"c-badge",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.JRh(t.key)}}function N(n,a){if(1&n&&(e.qex(0),e.DNE(1,D,2,1,"c-badge",31),e.bVm()),2&n){const t=a.$implicit;e.R7$(),e.Y8G("ngIf",t.value)}}const Y=[{path:"",component:(()=>{class n{constructor(t,o,i){this.data_provider=t,this.router=o,this.login_checker=i,this.source=[],this.columns=[],this.loading=!0,this.rows=[],this.SelectedPerm={},this.SelectedPermItems="",this.EditTaskModalVisible=!1,this.DeleteConfirmModalVisible=!1,this.Members="",this.SelectedMembers=[],this.action="add",this.permid=0,this.permname="",this.perms={api:!1,ftp:!1,password:!1,read:!1,romon:!1,sniff:!1,telnet:!1,tikapp:!1,winbox:!1,dude:!1,local:!1,policy:!1,reboot:!1,"rest-api":!1,sensitive:!1,ssh:!1,test:!1,web:!1,write:!1},this.toasterForm={autohide:!0,delay:3e3,position:"fixed",fade:!0,closeButton:!0},this.sorting={enabled:!0,multiSorting:!0},this.paging={enabled:!0,page:1,pageSize:10,pageSizes:[5,10,25,50],display:u.sE.ADVANCED},this.columnMenu={enabled:!0,sort:!0,columnsManager:!0};var s=this;this.login_checker.isLoggedIn()||setTimeout(function(){s.router.navigate(["login"])},100),this.data_provider.getSessionInfo().then(l=>{s.uid=l.uid,s.uname=l.name,"admin"!=l.role&&setTimeout(function(){s.router.navigate(["/user/dashboard"])},100)})}show_toast(t,o,i){const{...s}={...this.toasterForm,color:i,title:t,body:o};this.viewChildren.first.addToast(h.y,s,{}).instance.closeButton=s.closeButton}ngOnInit(){this.initGridTable()}submit(t){var o=this;"add"==t?this.data_provider.create_perm(o.permname,o.perms).then(i=>{"failed"!=i.status?(o.initGridTable(),this.EditTaskModalVisible=!1):o.show_toast("Error",i.err,"danger")}):this.data_provider.edit_perm(o.permid,o.permname,o.perms).then(i=>{"failed"!=i.status?(o.initGridTable(),this.EditTaskModalVisible=!1):o.show_toast("Error",i.err,"danger")})}editAddTask(t,o){if("showadd"==o)return this.permname=t.name,this.perms={api:!1,ftp:!1,password:!1,read:!1,romon:!1,sniff:!1,telnet:!1,tikapp:!1,winbox:!1,dude:!1,local:!1,policy:!1,reboot:!1,"rest-api":!1,sensitive:!1,ssh:!1,test:!1,web:!1,write:!1},this.permid=0,this.action="add",void(this.EditTaskModalVisible=!0);this.action="edit",this.permname=t.name,this.perms=t.perms,this.permid=t.id,this.EditTaskModalVisible=!0}splitids(t=""){return t.split(",")}get_member_by_id(t){return this.Members.find(o=>o.id==t)}confirm_delete(t="",o=!1){if(o){var i=this;this.data_provider.delete_perm(i.SelectedPerm.id).then(s=>{if("error"in s&&s.error.indexOf("Unauthorized"))i.show_toast("Error","You are not authorized to perform this action","danger");else{if("failed"==s.status)return void i.show_toast("Error",s.err,"danger");i.initGridTable(),i.DeleteConfirmModalVisible=!1}})}else this.SelectedPerm={...t},this.DeleteConfirmModalVisible=!0}logger(t){console.dir(t)}initGridTable(){var t=this;this.data_provider.get_perms(1,10,"").then(c=>{t.source=c.map(l=>l),t.loading=!1})}static#e=this.\u0275fac=function(o){return new(o||n)(e.rXU(b.C),e.rXU(f.Ix),e.rXU(k.T))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ng-component"]],viewQuery:function(o,i){if(1&o&&e.GBs(r.E0T,5),2&o){let s;e.mGM(s=e.lsd())&&(i.viewChildren=s)}},decls:80,vars:31,consts:[["EditTaskModal",""],["DeleteConfirmModal",""],["xs",""],[1,"mb-4"],["xs","",3,"lg"],["xs","",2,"text-align","right",3,"lg"],["cButton","","color","primary",3,"click"],[1,"fa-solid","fa-plus"],[3,"rowHeight","autoResizeWidth","source","columnMenu","sorting","paging"],["header","Name","field","name"],["width","auto","header","Perms","field","perms"],["header","Actions","width","120","field","action"],["backdrop","static","size","lg","id","EditTaskModal",3,"visibleChange","visible"],["cModalTitle","",4,"ngIf"],["cButtonClose","",3,"cModalToggle"],[1,"mb-3",3,"cFormFloating"],["cFormControl","","id","floatingInput","placeholder","permname",3,"ngModelChange","ngModel"],["cLabel","","for","floatingInput"],[3,"switch",4,"ngFor","ngForOf"],[4,"ngIf"],["cButton","","color","primary",3,"click",4,"ngIf"],["cButton","","color","secondary",3,"cModalToggle"],["backdrop","static","id","DeleteConfirmModal",3,"visibleChange","visible"],["cModalTitle",""],[2,"width","100%"],[4,"ngFor","ngForOf"],[2,"padding","0!important"],["cButton","","color","danger",3,"click"],["cButton","","color","info",3,"cModalToggle"],["position","fixed","placement","top-end"],[2,"text-wrap","initial"],["class","m-1","color","success",4,"ngIf"],["color","success",1,"m-1"],["cButton","","color","warning","size","sm",1,"mx-1",3,"click"],[1,"fa-regular","fa-pen-to-square"],["cButton","","color","danger","size","sm",3,"click"],[1,"fa-regular","fa-trash-can"],[3,"switch"],["cFormCheckInput","","type","checkbox",3,"ngModelChange","ngModel"],["cFormCheckLabel",""],["class","mx-1","color","dark",4,"ngFor","ngForOf"],["color","dark",1,"mx-1"]],template:function(o,i){if(1&o){const s=e.RV6();e.j41(0,"c-row")(1,"c-col",2)(2,"c-card",3)(3,"c-card-header")(4,"c-row")(5,"c-col",4),e.EFF(6," Permissions "),e.k0s(),e.j41(7,"c-col",5)(8,"button",6),e.bIt("click",function(){return e.eBV(s),e.Njj(i.editAddTask({},"showadd"))}),e.nrm(9,"i",7),e.k0s()()()(),e.j41(10,"c-card-body")(11,"gui-grid",8)(12,"gui-grid-column",9),e.DNE(13,T,1,1,"ng-template"),e.k0s(),e.j41(14,"gui-grid-column",10),e.DNE(15,E,3,3,"ng-template"),e.k0s(),e.j41(16,"gui-grid-column",11),e.DNE(17,R,4,0,"ng-template"),e.k0s()()()()()(),e.j41(18,"c-modal-header")(19,"c-modal",12,0),e.mxI("visibleChange",function(l){return e.eBV(s),e.DH7(i.EditTaskModalVisible,l)||(i.EditTaskModalVisible=l),e.Njj(l)}),e.j41(21,"c-modal-header"),e.DNE(22,P,2,1,"h5",13)(23,v,2,0,"h5",13),e.nrm(24,"button",14),e.k0s(),e.j41(25,"c-modal-body")(26,"div",15)(27,"input",16),e.mxI("ngModelChange",function(l){return e.eBV(s),e.DH7(i.permname,l)||(i.permname=l),e.Njj(l)}),e.k0s(),e.j41(28,"label",17),e.EFF(29,"Name"),e.k0s()(),e.j41(30,"c-row")(31,"c-col"),e.DNE(32,G,4,3,"c-form-check",18),e.k0s(),e.j41(33,"c-col"),e.DNE(34,I,4,3,"c-form-check",18),e.k0s()(),e.DNE(35,V,2,1,"ng-container",19),e.k0s(),e.j41(36,"c-modal-footer"),e.DNE(37,$,2,0,"button",20)(38,y,2,0,"button",20),e.j41(39,"button",21),e.EFF(40," Close "),e.k0s()()(),e.j41(41,"c-modal",22,1),e.mxI("visibleChange",function(l){return e.eBV(s),e.DH7(i.DeleteConfirmModalVisible,l)||(i.DeleteConfirmModalVisible=l),e.Njj(l)}),e.j41(43,"c-modal-header")(44,"h5",23),e.EFF(45),e.k0s(),e.nrm(46,"button",14),e.k0s(),e.j41(47,"c-modal-body"),e.EFF(48," Are you sure that You want to delete following Permission? "),e.nrm(49,"br")(50,"br"),e.j41(51,"table",24)(52,"tr")(53,"td")(54,"b"),e.EFF(55,"Permission name : "),e.k0s(),e.EFF(56),e.k0s()(),e.j41(57,"tr")(58,"td"),e.DNE(59,N,2,1,"ng-container",25),e.nI1(60,"keyvalue"),e.k0s()(),e.j41(61,"tr")(62,"td")(63,"p")(64,"code",26)(65,"b"),e.EFF(66,"Warning:"),e.k0s(),e.EFF(67," ALL Given "),e.j41(68,"b"),e.EFF(69,"device access"),e.k0s(),e.EFF(70," related to this permision in Users Section "),e.j41(71,"b"),e.EFF(72,"will be deleted"),e.k0s(),e.EFF(73," for each user"),e.k0s()()()()()(),e.j41(74,"c-modal-footer")(75,"button",27),e.bIt("click",function(){return e.eBV(s),e.Njj(i.confirm_delete("",!0))}),e.EFF(76," Yes,Delete! "),e.k0s(),e.j41(77,"button",28),e.EFF(78," Close "),e.k0s()()(),e.nrm(79,"c-toaster",29),e.k0s()}if(2&o){const s=e.sdS(20),c=e.sdS(42);e.R7$(5),e.Y8G("lg",10),e.R7$(2),e.Y8G("lg",2),e.R7$(4),e.Y8G("rowHeight",82)("autoResizeWidth",!0)("source",i.source)("columnMenu",i.columnMenu)("sorting",i.sorting)("autoResizeWidth",!0)("paging",i.paging),e.R7$(8),e.R50("visible",i.EditTaskModalVisible),e.R7$(3),e.Y8G("ngIf","edit"==i.action),e.R7$(),e.Y8G("ngIf","add"==i.action),e.R7$(),e.Y8G("cModalToggle",s.id),e.R7$(2),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",i.permname),e.R7$(5),e.Y8G("ngForOf",e.lJ4(29,F)),e.R7$(2),e.Y8G("ngForOf",e.lJ4(30,C)),e.R7$(),e.Y8G("ngIf",i.SelectedMembers.length>0&&i.EditTaskModalVisible),e.R7$(2),e.Y8G("ngIf","add"==i.action),e.R7$(),e.Y8G("ngIf","edit"==i.action),e.R7$(),e.Y8G("cModalToggle",s.id),e.R7$(2),e.R50("visible",i.DeleteConfirmModalVisible),e.R7$(4),e.SpI("Confirm delete ",i.SelectedPerm.name,""),e.R7$(),e.Y8G("cModalToggle",c.id),e.R7$(10),e.SpI("",i.SelectedPerm.name," "),e.R7$(3),e.Y8G("ngForOf",e.bMT(60,27,i.SelectedPerm.perms)),e.R7$(18),e.Y8G("cModalToggle",c.id)}},dependencies:[r.iby,r.qHy,r.lMi,p.Sq,p.bT,r.gLf,r.oMR,r.E0T,r.akk,r.cy2,r.iQ3,r.l_X,r.e$m,r.YJZ,r._fv,r.UjT,u.V1,u.fz,r.Jyz,r.zfW,r.s$3,r.epl,r.L$K,r.VtU,d.me,d.Zm,d.BC,d.vS,r.nSt,p.lG],encapsulation:2})}return n})(),data:{title:$localize`Permissions`}}];let B=(()=>{class n{static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275mod=e.$C({type:n});static#i=this.\u0275inj=e.G2t({imports:[f.iI.forChild(Y),f.iI]})}return n})(),S=(()=>{class n{static#e=this.\u0275fac=function(o){return new(o||n)};static#t=this.\u0275mod=e.$C({type:n});static#i=this.\u0275inj=e.G2t({imports:[B,r.Dw2,r.Ied,g.op,r.jr_,p.MD,r.pc9,r.MBE,r.tHK,r.tmq,r.ayw,u.uM,r.Q_q,d.YN,r.EJq]})}return n})()}}]); \ No newline at end of file diff --git a/mikrofront/dist/html/71.b76fbb2df5edc6e1.js b/mikrofront/dist/html/71.fe0ee86dd4c7f8c2.js similarity index 57% rename from mikrofront/dist/html/71.b76fbb2df5edc6e1.js rename to mikrofront/dist/html/71.fe0ee86dd4c7f8c2.js index 703a470..3a840c4 100644 --- a/mikrofront/dist/html/71.b76fbb2df5edc6e1.js +++ b/mikrofront/dist/html/71.fe0ee86dd4c7f8c2.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[71],{71:(H,p,u)=>{u.r(p),u.d(p,{SettingsModule:()=>L});var g=u(177),s=u(8921),T=u(7062),m=u(7390),h=u(7630),a=u(4438),S=u(9492);let C=(()=>{class r{constructor(){this.timezones=[],this.initMainChart()}initMainChart(){this.timezones=[{value:"Dateline Standard Time",abbr:"DST",offset:-12,isdst:!1,text:"(UTC-12:00) International Date Line West",utc:["Etc/GMT+12"]},{value:"UTC-11",abbr:"U",offset:-11,isdst:!1,text:"(UTC-11:00) Coordinated Universal Time-11",utc:["Etc/GMT+11","Pacific/Midway","Pacific/Niue","Pacific/Pago_Pago"]},{value:"Hawaiian Standard Time",abbr:"HST",offset:-10,isdst:!1,text:"(UTC-10:00) Hawaii",utc:["Etc/GMT+10","Pacific/Honolulu","Pacific/Johnston","Pacific/Rarotonga","Pacific/Tahiti"]},{value:"Alaskan Standard Time",abbr:"AKDT",offset:-8,isdst:!0,text:"(UTC-09:00) Alaska",utc:["America/Anchorage","America/Juneau","America/Nome","America/Sitka","America/Yakutat"]},{value:"Pacific Standard Time (Mexico)",abbr:"PDT",offset:-7,isdst:!0,text:"(UTC-08:00) Baja California",utc:["America/Santa_Isabel"]},{value:"Pacific Daylight Time",abbr:"PDT",offset:-7,isdst:!0,text:"(UTC-07:00) Pacific Daylight Time (US & Canada)",utc:["America/Los_Angeles","America/Tijuana","America/Vancouver"]},{value:"Pacific Standard Time",abbr:"PST",offset:-8,isdst:!1,text:"(UTC-08:00) Pacific Standard Time (US & Canada)",utc:["America/Los_Angeles","America/Tijuana","America/Vancouver","PST8PDT"]},{value:"US Mountain Standard Time",abbr:"UMST",offset:-7,isdst:!1,text:"(UTC-07:00) Arizona",utc:["America/Creston","America/Dawson","America/Dawson_Creek","America/Hermosillo","America/Phoenix","America/Whitehorse","Etc/GMT+7"]},{value:"Mountain Standard Time (Mexico)",abbr:"MDT",offset:-6,isdst:!0,text:"(UTC-07:00) Chihuahua, La Paz, Mazatlan",utc:["America/Chihuahua","America/Mazatlan"]},{value:"Mountain Standard Time",abbr:"MDT",offset:-6,isdst:!0,text:"(UTC-07:00) Mountain Time (US & Canada)",utc:["America/Boise","America/Cambridge_Bay","America/Denver","America/Edmonton","America/Inuvik","America/Ojinaga","America/Yellowknife","MST7MDT"]},{value:"Central America Standard Time",abbr:"CAST",offset:-6,isdst:!1,text:"(UTC-06:00) Central America",utc:["America/Belize","America/Costa_Rica","America/El_Salvador","America/Guatemala","America/Managua","America/Tegucigalpa","Etc/GMT+6","Pacific/Galapagos"]},{value:"Central Standard Time",abbr:"CDT",offset:-5,isdst:!0,text:"(UTC-06:00) Central Time (US & Canada)",utc:["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Matamoros","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Rainy_River","America/Rankin_Inlet","America/Resolute","America/Winnipeg","CST6CDT"]},{value:"Central Standard Time (Mexico)",abbr:"CDT",offset:-5,isdst:!0,text:"(UTC-06:00) Guadalajara, Mexico City, Monterrey",utc:["America/Bahia_Banderas","America/Cancun","America/Merida","America/Mexico_City","America/Monterrey"]},{value:"Canada Central Standard Time",abbr:"CCST",offset:-6,isdst:!1,text:"(UTC-06:00) Saskatchewan",utc:["America/Regina","America/Swift_Current"]},{value:"SA Pacific Standard Time",abbr:"SPST",offset:-5,isdst:!1,text:"(UTC-05:00) Bogota, Lima, Quito",utc:["America/Bogota","America/Cayman","America/Coral_Harbour","America/Eirunepe","America/Guayaquil","America/Jamaica","America/Lima","America/Panama","America/Rio_Branco","Etc/GMT+5"]},{value:"Eastern Standard Time",abbr:"EST",offset:-5,isdst:!1,text:"(UTC-05:00) Eastern Time (US & Canada)",utc:["America/Detroit","America/Havana","America/Indiana/Petersburg","America/Indiana/Vincennes","America/Indiana/Winamac","America/Iqaluit","America/Kentucky/Monticello","America/Louisville","America/Montreal","America/Nassau","America/New_York","America/Nipigon","America/Pangnirtung","America/Port-au-Prince","America/Thunder_Bay","America/Toronto"]},{value:"Eastern Daylight Time",abbr:"EDT",offset:-4,isdst:!0,text:"(UTC-04:00) Eastern Daylight Time (US & Canada)",utc:["America/Detroit","America/Havana","America/Indiana/Petersburg","America/Indiana/Vincennes","America/Indiana/Winamac","America/Iqaluit","America/Kentucky/Monticello","America/Louisville","America/Montreal","America/Nassau","America/New_York","America/Nipigon","America/Pangnirtung","America/Port-au-Prince","America/Thunder_Bay","America/Toronto"]},{value:"US Eastern Standard Time",abbr:"UEDT",offset:-5,isdst:!1,text:"(UTC-05:00) Indiana (East)",utc:["America/Indiana/Marengo","America/Indiana/Vevay","America/Indianapolis"]},{value:"Venezuela Standard Time",abbr:"VST",offset:-4.5,isdst:!1,text:"(UTC-04:30) Caracas",utc:["America/Caracas"]},{value:"Paraguay Standard Time",abbr:"PYT",offset:-4,isdst:!1,text:"(UTC-04:00) Asuncion",utc:["America/Asuncion"]},{value:"Atlantic Standard Time",abbr:"ADT",offset:-3,isdst:!0,text:"(UTC-04:00) Atlantic Time (Canada)",utc:["America/Glace_Bay","America/Goose_Bay","America/Halifax","America/Moncton","America/Thule","Atlantic/Bermuda"]},{value:"Central Brazilian Standard Time",abbr:"CBST",offset:-4,isdst:!1,text:"(UTC-04:00) Cuiaba",utc:["America/Campo_Grande","America/Cuiaba"]},{value:"SA Western Standard Time",abbr:"SWST",offset:-4,isdst:!1,text:"(UTC-04:00) Georgetown, La Paz, Manaus, San Juan",utc:["America/Anguilla","America/Antigua","America/Aruba","America/Barbados","America/Blanc-Sablon","America/Boa_Vista","America/Curacao","America/Dominica","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guyana","America/Kralendijk","America/La_Paz","America/Lower_Princes","America/Manaus","America/Marigot","America/Martinique","America/Montserrat","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Santo_Domingo","America/St_Barthelemy","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Tortola","Etc/GMT+4"]},{value:"Pacific SA Standard Time",abbr:"PSST",offset:-4,isdst:!1,text:"(UTC-04:00) Santiago",utc:["America/Santiago","Antarctica/Palmer"]},{value:"Newfoundland Standard Time",abbr:"NDT",offset:-2.5,isdst:!0,text:"(UTC-03:30) Newfoundland",utc:["America/St_Johns"]},{value:"E. South America Standard Time",abbr:"ESAST",offset:-3,isdst:!1,text:"(UTC-03:00) Brasilia",utc:["America/Sao_Paulo"]},{value:"Argentina Standard Time",abbr:"AST",offset:-3,isdst:!1,text:"(UTC-03:00) Buenos Aires",utc:["America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Buenos_Aires","America/Catamarca","America/Cordoba","America/Jujuy","America/Mendoza"]},{value:"SA Eastern Standard Time",abbr:"SEST",offset:-3,isdst:!1,text:"(UTC-03:00) Cayenne, Fortaleza",utc:["America/Araguaina","America/Belem","America/Cayenne","America/Fortaleza","America/Maceio","America/Paramaribo","America/Recife","America/Santarem","Antarctica/Rothera","Atlantic/Stanley","Etc/GMT+3"]},{value:"Greenland Standard Time",abbr:"GDT",offset:-3,isdst:!0,text:"(UTC-03:00) Greenland",utc:["America/Godthab"]},{value:"Montevideo Standard Time",abbr:"MST",offset:-3,isdst:!1,text:"(UTC-03:00) Montevideo",utc:["America/Montevideo"]},{value:"Bahia Standard Time",abbr:"BST",offset:-3,isdst:!1,text:"(UTC-03:00) Salvador",utc:["America/Bahia"]},{value:"UTC-02",abbr:"U",offset:-2,isdst:!1,text:"(UTC-02:00) Coordinated Universal Time-02",utc:["America/Noronha","Atlantic/South_Georgia","Etc/GMT+2"]},{value:"Mid-Atlantic Standard Time",abbr:"MDT",offset:-1,isdst:!0,text:"(UTC-02:00) Mid-Atlantic - Old",utc:[]},{value:"Azores Standard Time",abbr:"ADT",offset:0,isdst:!0,text:"(UTC-01:00) Azores",utc:["America/Scoresbysund","Atlantic/Azores"]},{value:"Cape Verde Standard Time",abbr:"CVST",offset:-1,isdst:!1,text:"(UTC-01:00) Cape Verde Is.",utc:["Atlantic/Cape_Verde","Etc/GMT+1"]},{value:"Morocco Standard Time",abbr:"MDT",offset:1,isdst:!0,text:"(UTC) Casablanca",utc:["Africa/Casablanca","Africa/El_Aaiun"]},{value:"UTC",abbr:"UTC",offset:0,isdst:!1,text:"(UTC) Coordinated Universal Time",utc:["America/Danmarkshavn","Etc/GMT"]},{value:"GMT Standard Time",abbr:"GMT",offset:0,isdst:!1,text:"(UTC) Edinburgh, London",utc:["Europe/Isle_of_Man","Europe/Guernsey","Europe/Jersey","Europe/London"]},{value:"British Summer Time",abbr:"BST",offset:1,isdst:!0,text:"(UTC+01:00) Edinburgh, London",utc:["Europe/Isle_of_Man","Europe/Guernsey","Europe/Jersey","Europe/London"]},{value:"GMT Standard Time",abbr:"GDT",offset:1,isdst:!0,text:"(UTC) Dublin, Lisbon",utc:["Atlantic/Canary","Atlantic/Faeroe","Atlantic/Madeira","Europe/Dublin","Europe/Lisbon"]},{value:"Greenwich Standard Time",abbr:"GST",offset:0,isdst:!1,text:"(UTC) Monrovia, Reykjavik",utc:["Africa/Abidjan","Africa/Accra","Africa/Bamako","Africa/Banjul","Africa/Bissau","Africa/Conakry","Africa/Dakar","Africa/Freetown","Africa/Lome","Africa/Monrovia","Africa/Nouakchott","Africa/Ouagadougou","Africa/Sao_Tome","Atlantic/Reykjavik","Atlantic/St_Helena"]},{value:"W. Europe Standard Time",abbr:"WEDT",offset:2,isdst:!0,text:"(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna",utc:["Arctic/Longyearbyen","Europe/Amsterdam","Europe/Andorra","Europe/Berlin","Europe/Busingen","Europe/Gibraltar","Europe/Luxembourg","Europe/Malta","Europe/Monaco","Europe/Oslo","Europe/Rome","Europe/San_Marino","Europe/Stockholm","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Zurich"]},{value:"Central Europe Standard Time",abbr:"CEDT",offset:2,isdst:!0,text:"(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague",utc:["Europe/Belgrade","Europe/Bratislava","Europe/Budapest","Europe/Ljubljana","Europe/Podgorica","Europe/Prague","Europe/Tirane"]},{value:"Romance Standard Time",abbr:"RDT",offset:2,isdst:!0,text:"(UTC+01:00) Brussels, Copenhagen, Madrid, Paris",utc:["Africa/Ceuta","Europe/Brussels","Europe/Copenhagen","Europe/Madrid","Europe/Paris"]},{value:"Central European Standard Time",abbr:"CEDT",offset:2,isdst:!0,text:"(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb",utc:["Europe/Sarajevo","Europe/Skopje","Europe/Warsaw","Europe/Zagreb"]},{value:"W. Central Africa Standard Time",abbr:"WCAST",offset:1,isdst:!1,text:"(UTC+01:00) West Central Africa",utc:["Africa/Algiers","Africa/Bangui","Africa/Brazzaville","Africa/Douala","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Luanda","Africa/Malabo","Africa/Ndjamena","Africa/Niamey","Africa/Porto-Novo","Africa/Tunis","Etc/GMT-1"]},{value:"Namibia Standard Time",abbr:"NST",offset:1,isdst:!1,text:"(UTC+01:00) Windhoek",utc:["Africa/Windhoek"]},{value:"GTB Standard Time",abbr:"GDT",offset:3,isdst:!0,text:"(UTC+02:00) Athens, Bucharest",utc:["Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau"]},{value:"Middle East Standard Time",abbr:"MEDT",offset:3,isdst:!0,text:"(UTC+02:00) Beirut",utc:["Asia/Beirut"]},{value:"Egypt Standard Time",abbr:"EST",offset:2,isdst:!1,text:"(UTC+02:00) Cairo",utc:["Africa/Cairo"]},{value:"Syria Standard Time",abbr:"SDT",offset:3,isdst:!0,text:"(UTC+02:00) Damascus",utc:["Asia/Damascus"]},{value:"E. Europe Standard Time",abbr:"EEDT",offset:3,isdst:!0,text:"(UTC+02:00) E. Europe",utc:["Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau","Europe/Helsinki","Europe/Kyiv","Europe/Mariehamn","Europe/Nicosia","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhhorod","Europe/Vilnius","Europe/Zaporizhzhia"]},{value:"South Africa Standard Time",abbr:"SAST",offset:2,isdst:!1,text:"(UTC+02:00) Harare, Pretoria",utc:["Africa/Blantyre","Africa/Bujumbura","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Kigali","Africa/Lubumbashi","Africa/Lusaka","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Etc/GMT-2"]},{value:"FLE Standard Time",abbr:"FDT",offset:3,isdst:!0,text:"(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius",utc:["Europe/Helsinki","Europe/Kyiv","Europe/Mariehamn","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhhorod","Europe/Vilnius","Europe/Zaporizhzhia"]},{value:"Turkey Standard Time",abbr:"TDT",offset:3,isdst:!1,text:"(UTC+03:00) Istanbul",utc:["Europe/Istanbul"]},{value:"Israel Standard Time",abbr:"JDT",offset:3,isdst:!0,text:"(UTC+02:00) Jerusalem",utc:["Asia/Jerusalem"]},{value:"Libya Standard Time",abbr:"LST",offset:2,isdst:!1,text:"(UTC+02:00) Tripoli",utc:["Africa/Tripoli"]},{value:"Jordan Standard Time",abbr:"JST",offset:3,isdst:!1,text:"(UTC+03:00) Amman",utc:["Asia/Amman"]},{value:"Arabic Standard Time",abbr:"AST",offset:3,isdst:!1,text:"(UTC+03:00) Baghdad",utc:["Asia/Baghdad"]},{value:"Kaliningrad Standard Time",abbr:"KST",offset:3,isdst:!1,text:"(UTC+02:00) Kaliningrad",utc:["Europe/Kaliningrad"]},{value:"Arab Standard Time",abbr:"AST",offset:3,isdst:!1,text:"(UTC+03:00) Kuwait, Riyadh",utc:["Asia/Aden","Asia/Bahrain","Asia/Kuwait","Asia/Qatar","Asia/Riyadh"]},{value:"E. Africa Standard Time",abbr:"EAST",offset:3,isdst:!1,text:"(UTC+03:00) Nairobi",utc:["Africa/Addis_Ababa","Africa/Asmera","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Mogadishu","Africa/Nairobi","Antarctica/Syowa","Etc/GMT-3","Indian/Antananarivo","Indian/Comoro","Indian/Mayotte"]},{value:"Moscow Standard Time",abbr:"MSK",offset:3,isdst:!1,text:"(UTC+03:00) Moscow, St. Petersburg, Volgograd, Minsk",utc:["Europe/Kirov","Europe/Moscow","Europe/Simferopol","Europe/Volgograd","Europe/Minsk"]},{value:"Samara Time",abbr:"SAMT",offset:4,isdst:!1,text:"(UTC+04:00) Samara, Ulyanovsk, Saratov",utc:["Europe/Astrakhan","Europe/Samara","Europe/Ulyanovsk"]},{value:"Iran Standard Time",abbr:"IDT",offset:4.5,isdst:!0,text:"(UTC+03:30) Tehran",utc:["Asia/Tehran"]},{value:"Arabian Standard Time",abbr:"AST",offset:4,isdst:!1,text:"(UTC+04:00) Abu Dhabi, Muscat",utc:["Asia/Dubai","Asia/Muscat","Etc/GMT-4"]},{value:"Azerbaijan Standard Time",abbr:"ADT",offset:5,isdst:!0,text:"(UTC+04:00) Baku",utc:["Asia/Baku"]},{value:"Mauritius Standard Time",abbr:"MST",offset:4,isdst:!1,text:"(UTC+04:00) Port Louis",utc:["Indian/Mahe","Indian/Mauritius","Indian/Reunion"]},{value:"Georgian Standard Time",abbr:"GET",offset:4,isdst:!1,text:"(UTC+04:00) Tbilisi",utc:["Asia/Tbilisi"]},{value:"Caucasus Standard Time",abbr:"CST",offset:4,isdst:!1,text:"(UTC+04:00) Yerevan",utc:["Asia/Yerevan"]},{value:"Afghanistan Standard Time",abbr:"AST",offset:4.5,isdst:!1,text:"(UTC+04:30) Kabul",utc:["Asia/Kabul"]},{value:"West Asia Standard Time",abbr:"WAST",offset:5,isdst:!1,text:"(UTC+05:00) Ashgabat, Tashkent",utc:["Antarctica/Mawson","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Dushanbe","Asia/Oral","Asia/Samarkand","Asia/Tashkent","Etc/GMT-5","Indian/Kerguelen","Indian/Maldives"]},{value:"Yekaterinburg Time",abbr:"YEKT",offset:5,isdst:!1,text:"(UTC+05:00) Yekaterinburg",utc:["Asia/Yekaterinburg"]},{value:"Pakistan Standard Time",abbr:"PKT",offset:5,isdst:!1,text:"(UTC+05:00) Islamabad, Karachi",utc:["Asia/Karachi"]},{value:"India Standard Time",abbr:"IST",offset:5.5,isdst:!1,text:"(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi",utc:["Asia/Kolkata","Asia/Calcutta"]},{value:"Sri Lanka Standard Time",abbr:"SLST",offset:5.5,isdst:!1,text:"(UTC+05:30) Sri Jayawardenepura",utc:["Asia/Colombo"]},{value:"Nepal Standard Time",abbr:"NST",offset:5.75,isdst:!1,text:"(UTC+05:45) Kathmandu",utc:["Asia/Kathmandu"]},{value:"Central Asia Standard Time",abbr:"CAST",offset:6,isdst:!1,text:"(UTC+06:00) Nur-Sultan (Astana)",utc:["Antarctica/Vostok","Asia/Almaty","Asia/Bishkek","Asia/Qyzylorda","Asia/Urumqi","Etc/GMT-6","Indian/Chagos"]},{value:"Bangladesh Standard Time",abbr:"BST",offset:6,isdst:!1,text:"(UTC+06:00) Dhaka",utc:["Asia/Dhaka","Asia/Thimphu"]},{value:"Myanmar Standard Time",abbr:"MST",offset:6.5,isdst:!1,text:"(UTC+06:30) Yangon (Rangoon)",utc:["Asia/Rangoon","Indian/Cocos"]},{value:"SE Asia Standard Time",abbr:"SAST",offset:7,isdst:!1,text:"(UTC+07:00) Bangkok, Hanoi, Jakarta",utc:["Antarctica/Davis","Asia/Bangkok","Asia/Hovd","Asia/Jakarta","Asia/Phnom_Penh","Asia/Pontianak","Asia/Saigon","Asia/Vientiane","Etc/GMT-7","Indian/Christmas"]},{value:"N. Central Asia Standard Time",abbr:"NCAST",offset:7,isdst:!1,text:"(UTC+07:00) Novosibirsk",utc:["Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk"]},{value:"China Standard Time",abbr:"CST",offset:8,isdst:!1,text:"(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi",utc:["Asia/Hong_Kong","Asia/Macau","Asia/Shanghai"]},{value:"North Asia Standard Time",abbr:"NAST",offset:8,isdst:!1,text:"(UTC+08:00) Krasnoyarsk",utc:["Asia/Krasnoyarsk"]},{value:"Singapore Standard Time",abbr:"MPST",offset:8,isdst:!1,text:"(UTC+08:00) Kuala Lumpur, Singapore",utc:["Asia/Brunei","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Makassar","Asia/Manila","Asia/Singapore","Etc/GMT-8"]},{value:"W. Australia Standard Time",abbr:"WAST",offset:8,isdst:!1,text:"(UTC+08:00) Perth",utc:["Antarctica/Casey","Australia/Perth"]},{value:"Taipei Standard Time",abbr:"TST",offset:8,isdst:!1,text:"(UTC+08:00) Taipei",utc:["Asia/Taipei"]},{value:"Ulaanbaatar Standard Time",abbr:"UST",offset:8,isdst:!1,text:"(UTC+08:00) Ulaanbaatar",utc:["Asia/Choibalsan","Asia/Ulaanbaatar"]},{value:"North Asia East Standard Time",abbr:"NAEST",offset:8,isdst:!1,text:"(UTC+08:00) Irkutsk",utc:["Asia/Irkutsk"]},{value:"Japan Standard Time",abbr:"JST",offset:9,isdst:!1,text:"(UTC+09:00) Osaka, Sapporo, Tokyo",utc:["Asia/Dili","Asia/Jayapura","Asia/Tokyo","Etc/GMT-9","Pacific/Palau"]},{value:"Korea Standard Time",abbr:"KST",offset:9,isdst:!1,text:"(UTC+09:00) Seoul",utc:["Asia/Pyongyang","Asia/Seoul"]},{value:"Cen. Australia Standard Time",abbr:"CAST",offset:9.5,isdst:!1,text:"(UTC+09:30) Adelaide",utc:["Australia/Adelaide","Australia/Broken_Hill"]},{value:"AUS Central Standard Time",abbr:"ACST",offset:9.5,isdst:!1,text:"(UTC+09:30) Darwin",utc:["Australia/Darwin"]},{value:"E. Australia Standard Time",abbr:"EAST",offset:10,isdst:!1,text:"(UTC+10:00) Brisbane",utc:["Australia/Brisbane","Australia/Lindeman"]},{value:"AUS Eastern Standard Time",abbr:"AEST",offset:10,isdst:!1,text:"(UTC+10:00) Canberra, Melbourne, Sydney",utc:["Australia/Melbourne","Australia/Sydney"]},{value:"West Pacific Standard Time",abbr:"WPST",offset:10,isdst:!1,text:"(UTC+10:00) Guam, Port Moresby",utc:["Antarctica/DumontDUrville","Etc/GMT-10","Pacific/Guam","Pacific/Port_Moresby","Pacific/Saipan","Pacific/Truk"]},{value:"Tasmania Standard Time",abbr:"TST",offset:10,isdst:!1,text:"(UTC+10:00) Hobart",utc:["Australia/Currie","Australia/Hobart"]},{value:"Yakutsk Standard Time",abbr:"YST",offset:9,isdst:!1,text:"(UTC+09:00) Yakutsk",utc:["Asia/Chita","Asia/Khandyga","Asia/Yakutsk"]},{value:"Central Pacific Standard Time",abbr:"CPST",offset:11,isdst:!1,text:"(UTC+11:00) Solomon Is., New Caledonia",utc:["Antarctica/Macquarie","Etc/GMT-11","Pacific/Efate","Pacific/Guadalcanal","Pacific/Kosrae","Pacific/Noumea","Pacific/Ponape"]},{value:"Vladivostok Standard Time",abbr:"VST",offset:11,isdst:!1,text:"(UTC+11:00) Vladivostok",utc:["Asia/Sakhalin","Asia/Ust-Nera","Asia/Vladivostok"]},{value:"New Zealand Standard Time",abbr:"NZST",offset:12,isdst:!1,text:"(UTC+12:00) Auckland, Wellington",utc:["Antarctica/McMurdo","Pacific/Auckland"]},{value:"UTC+12",abbr:"U",offset:12,isdst:!1,text:"(UTC+12:00) Coordinated Universal Time+12",utc:["Etc/GMT-12","Pacific/Funafuti","Pacific/Kwajalein","Pacific/Majuro","Pacific/Nauru","Pacific/Tarawa","Pacific/Wake","Pacific/Wallis"]},{value:"Fiji Standard Time",abbr:"FST",offset:12,isdst:!1,text:"(UTC+12:00) Fiji",utc:["Pacific/Fiji"]},{value:"Magadan Standard Time",abbr:"MST",offset:12,isdst:!1,text:"(UTC+12:00) Magadan",utc:["Asia/Anadyr","Asia/Kamchatka","Asia/Magadan","Asia/Srednekolymsk"]},{value:"Kamchatka Standard Time",abbr:"KDT",offset:13,isdst:!0,text:"(UTC+12:00) Petropavlovsk-Kamchatsky - Old",utc:["Asia/Kamchatka"]},{value:"Tonga Standard Time",abbr:"TST",offset:13,isdst:!1,text:"(UTC+13:00) Nuku'alofa",utc:["Etc/GMT-13","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Tongatapu"]},{value:"Samoa Standard Time",abbr:"SST",offset:13,isdst:!1,text:"(UTC+13:00) Samoa",utc:["Pacific/Apia"]}]}static#a=this.\u0275fac=function(n){return new(n||r)};static#e=this.\u0275prov=a.jDH({token:r,factory:r.\u0275fac,providedIn:"any"})}return r})();var v=u(1170),d=u(9417),A=u(6467),b=u(4869),k=u(6600),_=u(4983);function M(r,o){1&r&&a.EFF(0),2&r&&a.SpI(" \xa0 ",o.item.version," ")}function E(r,o){1&r&&a.EFF(0),2&r&&a.SpI(" ",o.item.architecture," ")}function y(r,o){1&r&&a.EFF(0),2&r&&a.SpI(" ",o.item.sha256," ")}function F(r,o){if(1&r){const e=a.RV6();a.j41(0,"button",30),a.bIt("click",function(){const t=a.eBV(e).item,i=a.XpG();return a.Njj(i.delete_fimrware(t))}),a.nrm(1,"i",31),a.k0s()}}function j(r,o){1&r&&(a.j41(0,"td")(1,"button",32),a.nrm(2,"c-spinner",33),a.EFF(3," Fetching Information from mikrotik website... "),a.k0s()())}function U(r,o){if(1&r&&(a.j41(0,"mat-option",36),a.EFF(1),a.k0s()),2&r){const e=o.$implicit;a.Y8G("value",e),a.R7$(),a.SpI(" ",e," ")}}function x(r,o){if(1&r){const e=a.RV6();a.j41(0,"td")(1,"mat-form-field")(2,"mat-select",34,2),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.firmtodownload,t)||(i.firmtodownload=t),a.Njj(t)}),a.j41(4,"mat-option"),a.nrm(5,"ngx-mat-select-search",35),a.k0s(),a.DNE(6,U,2,2,"mat-option",18),a.k0s()()()}if(2&r){const e=a.XpG();a.R7$(2),a.R50("ngModel",e.firmtodownload),a.R7$(3),a.Y8G("hideClearSearchButton",!0),a.R7$(),a.Y8G("ngForOf",e.firms)}}function w(r,o){if(1&r){const e=a.RV6();a.j41(0,"button",20),a.bIt("click",function(){a.eBV(e);const t=a.XpG();return a.Njj(t.ConfirmModalVisible=!0)}),a.EFF(1,"Download to repository"),a.k0s()}}function R(r,o){if(1&r&&(a.j41(0,"option",36),a.EFF(1),a.k0s()),2&r){const e=o.$implicit;a.Y8G("value",e),a.R7$(),a.JRh(e)}}function D(r,o){if(1&r&&(a.j41(0,"option",36),a.EFF(1),a.k0s()),2&r){const e=o.$implicit;a.Y8G("value",e),a.R7$(),a.JRh(e)}}function G(r,o){if(1&r){const e=a.RV6();a.j41(0,"c-input-group",5)(1,"label",13),a.EFF(2," Firmware version v6 to install "),a.k0s(),a.j41(3,"select",14),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.firmwaretoinstallv6,t)||(i.firmwaretoinstallv6=t),a.Njj(t)}),a.j41(4,"option"),a.EFF(5,"Choose..."),a.k0s(),a.DNE(6,D,2,2,"option",18),a.k0s(),a.j41(7,"c-form-feedback",17),a.EFF(8," * The version of firmware to install on V6 routers"),a.k0s()()}if(2&r){const e=a.XpG();a.R7$(3),a.R50("ngModel",e.firmwaretoinstallv6),a.R7$(3),a.Y8G("ngForOf",e.available_firmwaresv6),a.R7$(),a.Y8G("valid",!0)}}function B(r,o){if(1&r&&(a.j41(0,"mat-option",36),a.EFF(1),a.k0s()),2&r){const e=o.$implicit;a.Y8G("value",e.utc[0]),a.R7$(),a.SpI(" ",e.text," ")}}function P(r,o){if(1&r){const e=a.RV6();a.j41(0,"c-form-check",46)(1,"input",47),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG(2);return a.DH7(i.sysconfigs.safe_install.value,t)||(i.sysconfigs.safe_install.value=t),a.Njj(t)}),a.k0s(),a.j41(2,"label",48),a.EFF(3,"Safe Update"),a.k0s(),a.j41(4,"c-form-feedback",17)(5,"code",50),a.EFF(6,"PRO"),a.k0s(),a.EFF(7," * Download and install reqired firmware before installing the target firmware . for example it will install latest 7.12 then upgrade to newer version >7.13 or install Required packages before update"),a.k0s()()}if(2&r){const e=a.XpG(2);a.Y8G("switch",!0),a.R7$(),a.R50("ngModel",e.sysconfigs.safe_install.value),a.R7$(3),a.Y8G("valid",!0)}}function I(r,o){if(1&r){const e=a.RV6();a.j41(0,"c-form-check",46)(1,"input",47),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG(2);return a.DH7(i.sysconfigs.otp_force.value,t)||(i.sysconfigs.otp_force.value=t),a.Njj(t)}),a.k0s(),a.j41(2,"label",48),a.EFF(3,"Force device otp"),a.k0s(),a.j41(4,"c-form-feedback",17)(5,"code",50),a.EFF(6,"PRO"),a.k0s(),a.EFF(7," * Force login to devices using otp for all users.(you can make exceptions for each user)"),a.k0s()()}if(2&r){const e=a.XpG(2);a.Y8G("switch",!0),a.R7$(),a.R50("ngModel",e.sysconfigs.otp_force.value),a.R7$(3),a.Y8G("valid",!0)}}function N(r,o){if(1&r){const e=a.RV6();a.j41(0,"c-card-body")(1,"c-input-group",37)(2,"span",38),a.EFF(3,"Rad Secret"),a.k0s(),a.j41(4,"input",39),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.rad_secret.value,t)||(i.sysconfigs.rad_secret.value=t),a.Njj(t)}),a.k0s(),a.j41(5,"c-form-feedback",17),a.EFF(6," * Radius Secret of Mikrowizard Radius Server"),a.k0s()(),a.j41(7,"c-input-group",37)(8,"span",38),a.EFF(9,"System URL"),a.k0s(),a.j41(10,"input",40),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.system_url.value,t)||(i.sysconfigs.system_url.value=t),a.Njj(t)}),a.k0s(),a.j41(11,"c-form-feedback",17),a.EFF(12," * Default system access URl"),a.k0s()(),a.j41(13,"c-input-group",37)(14,"span",38),a.EFF(15,"Default IP"),a.k0s(),a.j41(16,"input",40),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.default_ip.value,t)||(i.sysconfigs.default_ip.value=t),a.Njj(t)}),a.k0s(),a.j41(17,"c-form-feedback",17),a.EFF(18," * Default Mikrowizard Access IP"),a.k0s()(),a.j41(19,"c-input-group",37)(20,"span",38),a.EFF(21,"System Time Zone"),a.k0s(),a.j41(22,"mat-form-field",41)(23,"mat-label"),a.EFF(24,"Select event type"),a.k0s(),a.j41(25,"mat-select",34,2),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.timezone.value,t)||(i.sysconfigs.timezone.value=t),a.Njj(t)}),a.j41(27,"mat-option"),a.nrm(28,"ngx-mat-select-search",35),a.k0s(),a.DNE(29,B,2,2,"mat-option",18),a.k0s()(),a.j41(30,"c-form-feedback",17),a.EFF(31," * Default TimeZone for the system"),a.k0s()(),a.j41(32,"c-input-group",37)(33,"span",38),a.EFF(34,"Default User"),a.k0s(),a.j41(35,"input",42),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.default_user.value,t)||(i.sysconfigs.default_user.value=t),a.Njj(t)}),a.k0s(),a.j41(36,"span",38),a.EFF(37,"Default password"),a.k0s(),a.j41(38,"input",43),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.default_password.value,t)||(i.sysconfigs.default_password.value=t),a.Njj(t)}),a.k0s(),a.j41(39,"c-form-feedback",17),a.EFF(40," * Default username and Password for searching new devices"),a.k0s()(),a.j41(41,"c-input-group",44)(42,"span",38),a.EFF(43,"License Username"),a.k0s(),a.j41(44,"input",45),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.username.value,t)||(i.sysconfigs.username.value=t),a.Njj(t)}),a.k0s(),a.j41(45,"c-form-feedback",17),a.EFF(46," * The username that you registred in Mikrowizard.com,Required for License Activation"),a.k0s()(),a.j41(47,"c-form-check",46)(48,"input",47),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.force_perms.value,t)||(i.sysconfigs.force_perms.value=t),a.Njj(t)}),a.k0s(),a.j41(49,"label",48),a.EFF(50,"Force Perms"),a.k0s(),a.j41(51,"c-form-feedback",17),a.EFF(52," * Force User Groups under user>groups configuration of each router to match Mikrowizard Permissions and monitor for any change to prevent/fix the configuration."),a.k0s()(),a.j41(53,"c-form-check",46)(54,"input",47),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.force_radius.value,t)||(i.sysconfigs.force_radius.value=t),a.Njj(t)}),a.k0s(),a.j41(55,"label",48),a.EFF(56,"Force Radius"),a.k0s(),a.j41(57,"c-form-feedback",17),a.EFF(58," * Force Radius config under radius>client and user>aaa setting of each router that added to Mikrowizard and monitor for any change to prevent/fix the configuration."),a.k0s()(),a.j41(59,"c-form-check",46)(60,"input",47),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.force_syslog.value,t)||(i.sysconfigs.force_syslog.value=t),a.Njj(t)}),a.k0s(),a.j41(61,"label",48),a.EFF(62,"Force Syslog"),a.k0s(),a.j41(63,"c-form-feedback",17),a.EFF(64," * Force Syslog config under system>logs setting of each router that added to Mikrowizard and monitor syslog setting for any change to prevent/fix the configuration."),a.k0s()(),a.DNE(65,P,8,3,"c-form-check",49)(66,I,8,3,"c-form-check",49),a.j41(67,"button",20),a.bIt("click",function(){a.eBV(e);const t=a.XpG();return a.Njj(t.saveSysSetting())}),a.EFF(68,"Save"),a.k0s()()}if(2&r){const e=a.XpG();a.R7$(4),a.R50("ngModel",e.sysconfigs.rad_secret.value),a.R7$(),a.Y8G("valid",!0),a.R7$(5),a.R50("ngModel",e.sysconfigs.system_url.value),a.R7$(),a.Y8G("valid",!0),a.R7$(5),a.R50("ngModel",e.sysconfigs.default_ip.value),a.R7$(),a.Y8G("valid",!0),a.R7$(8),a.R50("ngModel",e.sysconfigs.timezone.value),a.R7$(3),a.Y8G("hideClearSearchButton",!0),a.R7$(),a.Y8G("ngForOf",e.timezones),a.R7$(),a.Y8G("valid",!0),a.R7$(5),a.R50("ngModel",e.sysconfigs.default_user.value),a.R7$(3),a.R50("ngModel",e.sysconfigs.default_password.value),a.R7$(),a.Y8G("valid",!0),a.R7$(5),a.R50("ngModel",e.sysconfigs.username.value),a.R7$(),a.Y8G("valid",!0),a.R7$(2),a.Y8G("switch",!0),a.R7$(),a.R50("ngModel",e.sysconfigs.force_perms.value),a.R7$(3),a.Y8G("valid",!0),a.R7$(2),a.Y8G("switch",!0),a.R7$(),a.R50("ngModel",e.sysconfigs.force_radius.value),a.R7$(3),a.Y8G("valid",!0),a.R7$(2),a.Y8G("switch",!0),a.R7$(),a.R50("ngModel",e.sysconfigs.force_syslog.value),a.R7$(3),a.Y8G("valid",!0),a.R7$(2),a.Y8G("ngIf",e.ispro),a.R7$(),a.Y8G("ngIf",e.ispro)}}function V(r,o){1&r&&(a.j41(0,"button",51),a.nrm(1,"c-spinner",33),a.EFF(2," Downloading... "),a.k0s())}function z(r,o){if(1&r){const e=a.RV6();a.j41(0,"button",28),a.bIt("click",function(){a.eBV(e);const t=a.XpG();return a.Njj(t.start_download())}),a.EFF(1," Yes,Download! "),a.k0s()}}const Y=[{path:"",component:(()=>{class r{constructor(e,n,t,i){this.data_provider=e,this.router=n,this.TimeZones=t,this.login_checker=i,this.ispro=!1,this.filters={},this.firms={},this.firmtodownload={},this.source=[],this.columns=[],this.loading=!0,this.SysConfigloading=!0,this.ConfirmModalVisible=!1,this.DeleteConfirmModalVisible=!1,this.rows=[],this.updateBehavior="keep",this.firmwaretoinstall="none",this.firmwaretoinstallv6="none",this.available_firmwares=[],this.available_firmwaresv6=[],this.sysconfigs=[],this.currentFirm=[],this.toasterForm={autohide:!0,delay:3e3,position:"fixed",fade:!0,closeButton:!0},this.sorting={enabled:!0,multiSorting:!0},this.paging={enabled:!0,page:1,pageSize:5,pageSizes:[5,10,25,50],display:m.sE.ADVANCED},this.columnMenu={enabled:!0,sort:!0,columnsManager:!0},this.infoPanel={enabled:!0,infoDialog:!1,columnsManager:!0,schemaManager:!0},this.rowSelection={enabled:!0,type:m.AU.CHECKBOX,mode:m.fL.MULTIPLE},this.timezones=this.TimeZones.timezones;var c=this;this.login_checker.isLoggedIn()||setTimeout(function(){c.router.navigate(["login"])},100),this.data_provider.getSessionInfo().then(f=>{c.uid=f.uid,c.uname=f.name,c.ispro=f.ISPRO,"admin"!=f.role&&setTimeout(function(){c.router.navigate(["/user/dashboard"])},100)})}ngOnInit(){this.initAvailbleFirms(),this.initFirmsTable(),this.initsettings()}delete_fimrware(e,n=!1){var t=this;t.currentFirm=e,n?this.data_provider.delete_firm(this.currentFirm.id).then(i=>{1==i.status?(t.DeleteConfirmModalVisible=!1,t.initFirmsTable()):"err"in i&&t.show_toast("Firmware Delete",i.err,"danger")}):t.DeleteConfirmModalVisible=!0}start_download(){var e=this;this.loading=!0,this.data_provider.download_firmware_to_repository(this.firmtodownload).then(n=>{1==n.status?e.show_toast("Firmware Download","Firmware download in progress","warning"):e.show_toast("Firmware Download","Firmware download started","success"),e.ConfirmModalVisible=!e.ConfirmModalVisible,e.loading=!1})}onSelectedRows(e){this.rows=e,this.Selectedrows=e.map(n=>n.source.id)}show_toast(e,n,t){const{...i}={...this.toasterForm,color:t,title:e,body:n};this.viewChildren.first.addToast(h.y,i,{}).instance.closeButton=i.closeButton}saveFirmwareSetting(){var e=this;this.data_provider.save_firmware_setting(this.updateBehavior,this.firmwaretoinstall,this.firmwaretoinstallv6).then(n=>{e.initFirmsTable()})}saveSysSetting(){var e=this;this.data_provider.save_sys_setting(this.sysconfigs).then(n=>{e.initsettings()})}initFirmsTable(){var e=this;this.data_provider.get_firms(0,1e4,!1).then(n=>{e.source=n.firms,e.available_firmwares=[...new Set(n.firms.map(i=>i.version))],e.available_firmwaresv6=[...new Set(n.firms.map(i=>i.version))].filter(i=>i.match(/^6\./g)),e.firmwaretoinstall=n.firmwaretoinstall,e.firmwaretoinstallv6=n.firmwaretoinstallv6,e.updateBehavior=n.updateBehavior})}initsettings(){var e=this;this.data_provider.get_settings().then(n=>{e.sysconfigs=n.sysconfigs,e.sysconfigs.default_user.value="",e.sysconfigs.default_password.value="",e.timezones=e.TimeZones.timezones,e.sysconfigs.force_syslog.value=/true/i.test(e.sysconfigs.force_syslog.value),e.sysconfigs.force_radius.value=/true/i.test(e.sysconfigs.force_radius.value),e.sysconfigs.force_perms.value=/true/i.test(e.sysconfigs.force_perms.value),e.sysconfigs.safe_install.value=/true/i.test(e.sysconfigs.safe_install.value),e.ispro&&(e.sysconfigs.otp_force.value=/true/i.test(e.sysconfigs.otp_force.value)),e.SysConfigloading=!1})}initAvailbleFirms(){var e=this;this.data_provider.get_downloadable_firms().then(n=>{e.firms=n.versions,e.loading=!1})}static#a=this.\u0275fac=function(n){return new(n||r)(a.rXU(S.C),a.rXU(T.Ix),a.rXU(C),a.rXU(v.T))};static#e=this.\u0275cmp=a.VBU({type:r,selectors:[["ng-component"]],viewQuery:function(n,t){if(1&n&&a.GBs(s.E0T,5),2&n){let i;a.mGM(i=a.lsd())&&(t.viewChildren=i)}},decls:85,vars:29,consts:[["ConfirmModal",""],["DeleteConfirmModal",""],["singleSelect",""],["xs",""],[1,"mb-4"],[1,"mb-3"],[3,"autoResizeWidth","source","columnMenu","sorting","infoPanel","paging"],["header","Version","field","version"],["header","arch","field","architecture"],["header","sha256","field","sha256"],["header","Actions","width","120","field","action"],[4,"ngIf"],["cButton","","color","primary",3,"click",4,"ngIf"],["cInputGroupText","","for","inputGroupSelect01"],["cSelect","","id","inputGroupSelect01",3,"ngModelChange","ngModel"],["value","keep"],["value","update"],[2,"display","block","color","#979797","margin-top","0",3,"valid"],[3,"value",4,"ngFor","ngForOf"],["class","mb-3",4,"ngIf"],["cButton","","color","primary",3,"click"],["backdrop","static","id","runConfirmModal",3,"visibleChange","visible"],["cModalTitle",""],["cButtonClose","",3,"cModalToggle"],["cButton","","cButton","","color","danger","class","m-1","disabled","",4,"ngIf"],["cButton","","color","danger",3,"click",4,"ngIf"],["cButton","","color","info",3,"cModalToggle"],["backdrop","static","id","DeleteConfirmModal",3,"visibleChange","visible"],["cButton","","color","danger",3,"click"],["position","fixed","placement","top-end"],["cButton","","color","danger","size","sm",3,"click"],[1,"fa-regular","fa-trash-can"],["cButton","","disabled","",1,"m-1"],["aria-hidden","true","size","sm"],["cFormControl","","placeholder","Select Version For Download Group",3,"ngModelChange","ngModel"],["placeholderLabel","Search",3,"hideClearSearchButton"],[3,"value"],[1,"mt-3"],["cInputGroupText",""],["cFormControl","","id","floatingInput","placeholder","rad_secret",3,"ngModelChange","ngModel"],["cFormControl","","id","floatingInput","placeholder","System URL",3,"ngModelChange","ngModel"],["subscriptSizing","dynamic",1,"form-control"],["aria-label","Username","type","password","cFormControl","",3,"ngModelChange","ngModel"],["aria-label","Password","type","password","cFormControl","",3,"ngModelChange","ngModel"],[1,"mt-3","mb-3"],["aria-label","Username","type","text","cFormControl","",3,"ngModelChange","ngModel"],["sizing","xl",3,"switch"],["cFormCheckInput","","type","checkbox",3,"ngModelChange","ngModel"],["cFormCheckLabel",""],["sizing","xl",3,"switch",4,"ngIf"],[2,"padding","0!important"],["cButton","","cButton","","color","danger","disabled","",1,"m-1"]],template:function(n,t){if(1&n){const i=a.RV6();a.j41(0,"c-row")(1,"c-col",3)(2,"c-card",4)(3,"c-card-header"),a.EFF(4,"Firmware Manager"),a.k0s(),a.j41(5,"c-card-body")(6,"c-input-group",5)(7,"h5"),a.EFF(8,"Firmware in repository:"),a.k0s(),a.j41(9,"gui-grid",6)(10,"gui-grid-column",7),a.DNE(11,M,1,1,"ng-template"),a.k0s(),a.j41(12,"gui-grid-column",8),a.DNE(13,E,1,1,"ng-template"),a.k0s(),a.j41(14,"gui-grid-column",9),a.DNE(15,y,1,1,"ng-template"),a.k0s(),a.j41(16,"gui-grid-column",10),a.DNE(17,F,2,0,"ng-template"),a.k0s()()(),a.nrm(18,"hr"),a.j41(19,"table")(20,"td")(21,"span"),a.EFF(22,"Add new Permission"),a.k0s()(),a.DNE(23,j,4,0,"td",11)(24,x,7,3,"td",11),a.j41(25,"td"),a.DNE(26,w,2,0,"button",12),a.k0s()(),a.nrm(27,"hr"),a.j41(28,"c-input-group",5)(29,"label",13),a.EFF(30," V6 Firmware update Behavior "),a.k0s(),a.j41(31,"select",14),a.mxI("ngModelChange",function(l){return a.eBV(i),a.DH7(t.updateBehavior,l)||(t.updateBehavior=l),a.Njj(l)}),a.j41(32,"option"),a.EFF(33,"Choose..."),a.k0s(),a.j41(34,"option",15),a.EFF(35,"Keep v6 and don't update to v7"),a.k0s(),a.j41(36,"option",16),a.EFF(37,"install latest"),a.k0s()(),a.j41(38,"c-form-feedback",17),a.EFF(39," * Choose how Mikrowizard should update old v6 firmwares"),a.k0s()(),a.j41(40,"c-input-group",5)(41,"label",13),a.EFF(42," Firmware version to install "),a.k0s(),a.j41(43,"select",14),a.mxI("ngModelChange",function(l){return a.eBV(i),a.DH7(t.firmwaretoinstall,l)||(t.firmwaretoinstall=l),a.Njj(l)}),a.j41(44,"option"),a.EFF(45,"Choose..."),a.k0s(),a.DNE(46,R,2,2,"option",18),a.k0s(),a.j41(47,"c-form-feedback",17),a.EFF(48," * The version of firmware to install routers"),a.k0s()(),a.DNE(49,G,9,3,"c-input-group",19),a.j41(50,"button",20),a.bIt("click",function(){return a.eBV(i),a.Njj(t.saveFirmwareSetting())}),a.EFF(51,"Save"),a.k0s()()(),a.j41(52,"c-card",4)(53,"c-card-header"),a.EFF(54,"System Settings"),a.k0s(),a.DNE(55,N,69,26,"c-card-body",11),a.k0s()()(),a.j41(56,"c-modal",21,0),a.mxI("visibleChange",function(l){return a.eBV(i),a.DH7(t.ConfirmModalVisible,l)||(t.ConfirmModalVisible=l),a.Njj(l)}),a.j41(58,"c-modal-header")(59,"h6",22),a.EFF(60),a.k0s(),a.nrm(61,"button",23),a.k0s(),a.j41(62,"c-modal-body"),a.EFF(63),a.nrm(64,"br"),a.k0s(),a.j41(65,"c-modal-footer"),a.DNE(66,V,3,0,"button",24)(67,z,2,0,"button",25),a.j41(68,"button",26),a.EFF(69," No!,Close "),a.k0s()()(),a.j41(70,"c-modal",27,1),a.mxI("visibleChange",function(l){return a.eBV(i),a.DH7(t.DeleteConfirmModalVisible,l)||(t.DeleteConfirmModalVisible=l),a.Njj(l)}),a.j41(72,"c-modal-header")(73,"h6",22),a.EFF(74,"Delete Firmware from Repo"),a.k0s(),a.nrm(75,"button",23),a.k0s(),a.j41(76,"c-modal-body"),a.EFF(77),a.nrm(78,"br"),a.k0s(),a.j41(79,"c-modal-footer")(80,"button",28),a.bIt("click",function(){return a.eBV(i),a.Njj(t.delete_fimrware(t.currentFirm,!0))}),a.EFF(81," Yes,Delete. "),a.k0s(),a.j41(82,"button",26),a.EFF(83," No. "),a.k0s()()(),a.nrm(84,"c-toaster",29)}if(2&n){const i=a.sdS(57),c=a.sdS(71);a.R7$(9),a.Y8G("autoResizeWidth",!0)("source",t.source)("columnMenu",t.columnMenu)("sorting",t.sorting)("infoPanel",t.infoPanel)("autoResizeWidth",!0)("paging",t.paging),a.R7$(14),a.Y8G("ngIf",t.loading),a.R7$(),a.Y8G("ngIf",!t.loading),a.R7$(2),a.Y8G("ngIf",!t.loading),a.R7$(5),a.R50("ngModel",t.updateBehavior),a.R7$(7),a.Y8G("valid",!0),a.R7$(5),a.R50("ngModel",t.firmwaretoinstall),a.R7$(3),a.Y8G("ngForOf",t.available_firmwares),a.R7$(),a.Y8G("valid",!0),a.R7$(2),a.Y8G("ngIf","keep"==t.updateBehavior),a.R7$(6),a.Y8G("ngIf",!t.SysConfigloading),a.R7$(),a.R50("visible",t.ConfirmModalVisible),a.R7$(4),a.SpI("Downloading RouterOS ver ",t.firmtodownload," "),a.R7$(),a.Y8G("cModalToggle",i.id),a.R7$(2),a.SpI(" Are you sure that You want to download RouterOS version ",t.firmtodownload," to the Repository? "),a.R7$(3),a.Y8G("ngIf",t.loading),a.R7$(),a.Y8G("ngIf",!t.loading),a.R7$(),a.Y8G("cModalToggle",i.id),a.R7$(2),a.R50("visible",t.DeleteConfirmModalVisible),a.R7$(5),a.Y8G("cModalToggle",c.id),a.R7$(2),a.Lme(" Are you sure that You want to Delete Firmware ",t.currentFirm.version,"/",t.currentFirm.architecture,"? "),a.R7$(5),a.Y8G("cModalToggle",c.id)}},dependencies:[s.iby,s.qHy,s.lMi,g.Sq,g.bT,s.gLf,s.oMR,d.xH,d.y7,d.me,d.Zm,d.wz,d.BC,d.vS,s.akk,s.cy2,s.iQ3,s.l_X,s.XW7,s.wPz,s.fvw,s.ISP,s._fv,s.UjT,m.V1,m.fz,A.rl,A.nJ,b.VO,k.wT,_.U9,s.tIt,s.E0T,s.Jyz,s.zfW,s.s$3,s.epl,s.L$K,s.VtU],styles:[":host .legend small{font-size:x-small}.mdc-line-ripple.mdc-line-ripple--deactivating.ng-star-inserted{display:none!important}\n"],encapsulation:2})}return r})(),data:{title:$localize`Settings`}}];let K=(()=>{class r{static#a=this.\u0275fac=function(n){return new(n||r)};static#e=this.\u0275mod=a.$C({type:r});static#t=this.\u0275inj=a.G2t({imports:[T.iI.forChild(Y),T.iI]})}return r})(),L=(()=>{class r{static#a=this.\u0275fac=function(n){return new(n||r)};static#e=this.\u0275mod=a.$C({type:r});static#t=this.\u0275inj=a.G2t({imports:[K,s.Dw2,g.MD,s.pc9,d.YN,s.tHK,s.tmq,s.ayw,m.uM,b.Ve,_.An,s.OTD,s.MBE,s.Q_q]})}return r})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[71],{71:(H,T,u)=>{u.r(T),u.d(T,{SettingsModule:()=>L});var g=u(177),n=u(8921),p=u(7062),m=u(7390),h=u(7630),a=u(4438),S=u(9492);let C=(()=>{class r{constructor(){this.timezones=[],this.initMainChart()}initMainChart(){this.timezones=[{value:"Dateline Standard Time",abbr:"DST",offset:-12,isdst:!1,text:"(UTC-12:00) International Date Line West",utc:["Etc/GMT+12"]},{value:"UTC-11",abbr:"U",offset:-11,isdst:!1,text:"(UTC-11:00) Coordinated Universal Time-11",utc:["Etc/GMT+11","Pacific/Midway","Pacific/Niue","Pacific/Pago_Pago"]},{value:"Hawaiian Standard Time",abbr:"HST",offset:-10,isdst:!1,text:"(UTC-10:00) Hawaii",utc:["Etc/GMT+10","Pacific/Honolulu","Pacific/Johnston","Pacific/Rarotonga","Pacific/Tahiti"]},{value:"Alaskan Standard Time",abbr:"AKDT",offset:-8,isdst:!0,text:"(UTC-09:00) Alaska",utc:["America/Anchorage","America/Juneau","America/Nome","America/Sitka","America/Yakutat"]},{value:"Pacific Standard Time (Mexico)",abbr:"PDT",offset:-7,isdst:!0,text:"(UTC-08:00) Baja California",utc:["America/Santa_Isabel"]},{value:"Pacific Daylight Time",abbr:"PDT",offset:-7,isdst:!0,text:"(UTC-07:00) Pacific Daylight Time (US & Canada)",utc:["America/Los_Angeles","America/Tijuana","America/Vancouver"]},{value:"Pacific Standard Time",abbr:"PST",offset:-8,isdst:!1,text:"(UTC-08:00) Pacific Standard Time (US & Canada)",utc:["America/Los_Angeles","America/Tijuana","America/Vancouver","PST8PDT"]},{value:"US Mountain Standard Time",abbr:"UMST",offset:-7,isdst:!1,text:"(UTC-07:00) Arizona",utc:["America/Creston","America/Dawson","America/Dawson_Creek","America/Hermosillo","America/Phoenix","America/Whitehorse","Etc/GMT+7"]},{value:"Mountain Standard Time (Mexico)",abbr:"MDT",offset:-6,isdst:!0,text:"(UTC-07:00) Chihuahua, La Paz, Mazatlan",utc:["America/Chihuahua","America/Mazatlan"]},{value:"Mountain Standard Time",abbr:"MDT",offset:-6,isdst:!0,text:"(UTC-07:00) Mountain Time (US & Canada)",utc:["America/Boise","America/Cambridge_Bay","America/Denver","America/Edmonton","America/Inuvik","America/Ojinaga","America/Yellowknife","MST7MDT"]},{value:"Central America Standard Time",abbr:"CAST",offset:-6,isdst:!1,text:"(UTC-06:00) Central America",utc:["America/Belize","America/Costa_Rica","America/El_Salvador","America/Guatemala","America/Managua","America/Tegucigalpa","Etc/GMT+6","Pacific/Galapagos"]},{value:"Central Standard Time",abbr:"CDT",offset:-5,isdst:!0,text:"(UTC-06:00) Central Time (US & Canada)",utc:["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Matamoros","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Rainy_River","America/Rankin_Inlet","America/Resolute","America/Winnipeg","CST6CDT"]},{value:"Central Standard Time (Mexico)",abbr:"CDT",offset:-5,isdst:!0,text:"(UTC-06:00) Guadalajara, Mexico City, Monterrey",utc:["America/Bahia_Banderas","America/Cancun","America/Merida","America/Mexico_City","America/Monterrey"]},{value:"Canada Central Standard Time",abbr:"CCST",offset:-6,isdst:!1,text:"(UTC-06:00) Saskatchewan",utc:["America/Regina","America/Swift_Current"]},{value:"SA Pacific Standard Time",abbr:"SPST",offset:-5,isdst:!1,text:"(UTC-05:00) Bogota, Lima, Quito",utc:["America/Bogota","America/Cayman","America/Coral_Harbour","America/Eirunepe","America/Guayaquil","America/Jamaica","America/Lima","America/Panama","America/Rio_Branco","Etc/GMT+5"]},{value:"Eastern Standard Time",abbr:"EST",offset:-5,isdst:!1,text:"(UTC-05:00) Eastern Time (US & Canada)",utc:["America/Detroit","America/Havana","America/Indiana/Petersburg","America/Indiana/Vincennes","America/Indiana/Winamac","America/Iqaluit","America/Kentucky/Monticello","America/Louisville","America/Montreal","America/Nassau","America/New_York","America/Nipigon","America/Pangnirtung","America/Port-au-Prince","America/Thunder_Bay","America/Toronto"]},{value:"Eastern Daylight Time",abbr:"EDT",offset:-4,isdst:!0,text:"(UTC-04:00) Eastern Daylight Time (US & Canada)",utc:["America/Detroit","America/Havana","America/Indiana/Petersburg","America/Indiana/Vincennes","America/Indiana/Winamac","America/Iqaluit","America/Kentucky/Monticello","America/Louisville","America/Montreal","America/Nassau","America/New_York","America/Nipigon","America/Pangnirtung","America/Port-au-Prince","America/Thunder_Bay","America/Toronto"]},{value:"US Eastern Standard Time",abbr:"UEDT",offset:-5,isdst:!1,text:"(UTC-05:00) Indiana (East)",utc:["America/Indiana/Marengo","America/Indiana/Vevay","America/Indianapolis"]},{value:"Venezuela Standard Time",abbr:"VST",offset:-4.5,isdst:!1,text:"(UTC-04:30) Caracas",utc:["America/Caracas"]},{value:"Paraguay Standard Time",abbr:"PYT",offset:-4,isdst:!1,text:"(UTC-04:00) Asuncion",utc:["America/Asuncion"]},{value:"Atlantic Standard Time",abbr:"ADT",offset:-3,isdst:!0,text:"(UTC-04:00) Atlantic Time (Canada)",utc:["America/Glace_Bay","America/Goose_Bay","America/Halifax","America/Moncton","America/Thule","Atlantic/Bermuda"]},{value:"Central Brazilian Standard Time",abbr:"CBST",offset:-4,isdst:!1,text:"(UTC-04:00) Cuiaba",utc:["America/Campo_Grande","America/Cuiaba"]},{value:"SA Western Standard Time",abbr:"SWST",offset:-4,isdst:!1,text:"(UTC-04:00) Georgetown, La Paz, Manaus, San Juan",utc:["America/Anguilla","America/Antigua","America/Aruba","America/Barbados","America/Blanc-Sablon","America/Boa_Vista","America/Curacao","America/Dominica","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guyana","America/Kralendijk","America/La_Paz","America/Lower_Princes","America/Manaus","America/Marigot","America/Martinique","America/Montserrat","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Santo_Domingo","America/St_Barthelemy","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Tortola","Etc/GMT+4"]},{value:"Pacific SA Standard Time",abbr:"PSST",offset:-4,isdst:!1,text:"(UTC-04:00) Santiago",utc:["America/Santiago","Antarctica/Palmer"]},{value:"Newfoundland Standard Time",abbr:"NDT",offset:-2.5,isdst:!0,text:"(UTC-03:30) Newfoundland",utc:["America/St_Johns"]},{value:"E. South America Standard Time",abbr:"ESAST",offset:-3,isdst:!1,text:"(UTC-03:00) Brasilia",utc:["America/Sao_Paulo"]},{value:"Argentina Standard Time",abbr:"AST",offset:-3,isdst:!1,text:"(UTC-03:00) Buenos Aires",utc:["America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Buenos_Aires","America/Catamarca","America/Cordoba","America/Jujuy","America/Mendoza"]},{value:"SA Eastern Standard Time",abbr:"SEST",offset:-3,isdst:!1,text:"(UTC-03:00) Cayenne, Fortaleza",utc:["America/Araguaina","America/Belem","America/Cayenne","America/Fortaleza","America/Maceio","America/Paramaribo","America/Recife","America/Santarem","Antarctica/Rothera","Atlantic/Stanley","Etc/GMT+3"]},{value:"Greenland Standard Time",abbr:"GDT",offset:-3,isdst:!0,text:"(UTC-03:00) Greenland",utc:["America/Godthab"]},{value:"Montevideo Standard Time",abbr:"MST",offset:-3,isdst:!1,text:"(UTC-03:00) Montevideo",utc:["America/Montevideo"]},{value:"Bahia Standard Time",abbr:"BST",offset:-3,isdst:!1,text:"(UTC-03:00) Salvador",utc:["America/Bahia"]},{value:"UTC-02",abbr:"U",offset:-2,isdst:!1,text:"(UTC-02:00) Coordinated Universal Time-02",utc:["America/Noronha","Atlantic/South_Georgia","Etc/GMT+2"]},{value:"Mid-Atlantic Standard Time",abbr:"MDT",offset:-1,isdst:!0,text:"(UTC-02:00) Mid-Atlantic - Old",utc:[]},{value:"Azores Standard Time",abbr:"ADT",offset:0,isdst:!0,text:"(UTC-01:00) Azores",utc:["America/Scoresbysund","Atlantic/Azores"]},{value:"Cape Verde Standard Time",abbr:"CVST",offset:-1,isdst:!1,text:"(UTC-01:00) Cape Verde Is.",utc:["Atlantic/Cape_Verde","Etc/GMT+1"]},{value:"Morocco Standard Time",abbr:"MDT",offset:1,isdst:!0,text:"(UTC) Casablanca",utc:["Africa/Casablanca","Africa/El_Aaiun"]},{value:"UTC",abbr:"UTC",offset:0,isdst:!1,text:"(UTC) Coordinated Universal Time",utc:["America/Danmarkshavn","Etc/GMT"]},{value:"GMT Standard Time",abbr:"GMT",offset:0,isdst:!1,text:"(UTC) Edinburgh, London",utc:["Europe/Isle_of_Man","Europe/Guernsey","Europe/Jersey","Europe/London"]},{value:"British Summer Time",abbr:"BST",offset:1,isdst:!0,text:"(UTC+01:00) Edinburgh, London",utc:["Europe/Isle_of_Man","Europe/Guernsey","Europe/Jersey","Europe/London"]},{value:"GMT Standard Time",abbr:"GDT",offset:1,isdst:!0,text:"(UTC) Dublin, Lisbon",utc:["Atlantic/Canary","Atlantic/Faeroe","Atlantic/Madeira","Europe/Dublin","Europe/Lisbon"]},{value:"Greenwich Standard Time",abbr:"GST",offset:0,isdst:!1,text:"(UTC) Monrovia, Reykjavik",utc:["Africa/Abidjan","Africa/Accra","Africa/Bamako","Africa/Banjul","Africa/Bissau","Africa/Conakry","Africa/Dakar","Africa/Freetown","Africa/Lome","Africa/Monrovia","Africa/Nouakchott","Africa/Ouagadougou","Africa/Sao_Tome","Atlantic/Reykjavik","Atlantic/St_Helena"]},{value:"W. Europe Standard Time",abbr:"WEDT",offset:2,isdst:!0,text:"(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna",utc:["Arctic/Longyearbyen","Europe/Amsterdam","Europe/Andorra","Europe/Berlin","Europe/Busingen","Europe/Gibraltar","Europe/Luxembourg","Europe/Malta","Europe/Monaco","Europe/Oslo","Europe/Rome","Europe/San_Marino","Europe/Stockholm","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Zurich"]},{value:"Central Europe Standard Time",abbr:"CEDT",offset:2,isdst:!0,text:"(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague",utc:["Europe/Belgrade","Europe/Bratislava","Europe/Budapest","Europe/Ljubljana","Europe/Podgorica","Europe/Prague","Europe/Tirane"]},{value:"Romance Standard Time",abbr:"RDT",offset:2,isdst:!0,text:"(UTC+01:00) Brussels, Copenhagen, Madrid, Paris",utc:["Africa/Ceuta","Europe/Brussels","Europe/Copenhagen","Europe/Madrid","Europe/Paris"]},{value:"Central European Standard Time",abbr:"CEDT",offset:2,isdst:!0,text:"(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb",utc:["Europe/Sarajevo","Europe/Skopje","Europe/Warsaw","Europe/Zagreb"]},{value:"W. Central Africa Standard Time",abbr:"WCAST",offset:1,isdst:!1,text:"(UTC+01:00) West Central Africa",utc:["Africa/Algiers","Africa/Bangui","Africa/Brazzaville","Africa/Douala","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Luanda","Africa/Malabo","Africa/Ndjamena","Africa/Niamey","Africa/Porto-Novo","Africa/Tunis","Etc/GMT-1"]},{value:"Namibia Standard Time",abbr:"NST",offset:1,isdst:!1,text:"(UTC+01:00) Windhoek",utc:["Africa/Windhoek"]},{value:"GTB Standard Time",abbr:"GDT",offset:3,isdst:!0,text:"(UTC+02:00) Athens, Bucharest",utc:["Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau"]},{value:"Middle East Standard Time",abbr:"MEDT",offset:3,isdst:!0,text:"(UTC+02:00) Beirut",utc:["Asia/Beirut"]},{value:"Egypt Standard Time",abbr:"EST",offset:2,isdst:!1,text:"(UTC+02:00) Cairo",utc:["Africa/Cairo"]},{value:"Syria Standard Time",abbr:"SDT",offset:3,isdst:!0,text:"(UTC+02:00) Damascus",utc:["Asia/Damascus"]},{value:"E. Europe Standard Time",abbr:"EEDT",offset:3,isdst:!0,text:"(UTC+02:00) E. Europe",utc:["Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau","Europe/Helsinki","Europe/Kyiv","Europe/Mariehamn","Europe/Nicosia","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhhorod","Europe/Vilnius","Europe/Zaporizhzhia"]},{value:"South Africa Standard Time",abbr:"SAST",offset:2,isdst:!1,text:"(UTC+02:00) Harare, Pretoria",utc:["Africa/Blantyre","Africa/Bujumbura","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Kigali","Africa/Lubumbashi","Africa/Lusaka","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Etc/GMT-2"]},{value:"FLE Standard Time",abbr:"FDT",offset:3,isdst:!0,text:"(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius",utc:["Europe/Helsinki","Europe/Kyiv","Europe/Mariehamn","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhhorod","Europe/Vilnius","Europe/Zaporizhzhia"]},{value:"Turkey Standard Time",abbr:"TDT",offset:3,isdst:!1,text:"(UTC+03:00) Istanbul",utc:["Europe/Istanbul"]},{value:"Israel Standard Time",abbr:"JDT",offset:3,isdst:!0,text:"(UTC+02:00) Jerusalem",utc:["Asia/Jerusalem"]},{value:"Libya Standard Time",abbr:"LST",offset:2,isdst:!1,text:"(UTC+02:00) Tripoli",utc:["Africa/Tripoli"]},{value:"Jordan Standard Time",abbr:"JST",offset:3,isdst:!1,text:"(UTC+03:00) Amman",utc:["Asia/Amman"]},{value:"Arabic Standard Time",abbr:"AST",offset:3,isdst:!1,text:"(UTC+03:00) Baghdad",utc:["Asia/Baghdad"]},{value:"Kaliningrad Standard Time",abbr:"KST",offset:3,isdst:!1,text:"(UTC+02:00) Kaliningrad",utc:["Europe/Kaliningrad"]},{value:"Arab Standard Time",abbr:"AST",offset:3,isdst:!1,text:"(UTC+03:00) Kuwait, Riyadh",utc:["Asia/Aden","Asia/Bahrain","Asia/Kuwait","Asia/Qatar","Asia/Riyadh"]},{value:"E. Africa Standard Time",abbr:"EAST",offset:3,isdst:!1,text:"(UTC+03:00) Nairobi",utc:["Africa/Addis_Ababa","Africa/Asmera","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Mogadishu","Africa/Nairobi","Antarctica/Syowa","Etc/GMT-3","Indian/Antananarivo","Indian/Comoro","Indian/Mayotte"]},{value:"Moscow Standard Time",abbr:"MSK",offset:3,isdst:!1,text:"(UTC+03:00) Moscow, St. Petersburg, Volgograd, Minsk",utc:["Europe/Kirov","Europe/Moscow","Europe/Simferopol","Europe/Volgograd","Europe/Minsk"]},{value:"Samara Time",abbr:"SAMT",offset:4,isdst:!1,text:"(UTC+04:00) Samara, Ulyanovsk, Saratov",utc:["Europe/Astrakhan","Europe/Samara","Europe/Ulyanovsk"]},{value:"Iran Standard Time",abbr:"IDT",offset:4.5,isdst:!0,text:"(UTC+03:30) Tehran",utc:["Asia/Tehran"]},{value:"Arabian Standard Time",abbr:"AST",offset:4,isdst:!1,text:"(UTC+04:00) Abu Dhabi, Muscat",utc:["Asia/Dubai","Asia/Muscat","Etc/GMT-4"]},{value:"Azerbaijan Standard Time",abbr:"ADT",offset:5,isdst:!0,text:"(UTC+04:00) Baku",utc:["Asia/Baku"]},{value:"Mauritius Standard Time",abbr:"MST",offset:4,isdst:!1,text:"(UTC+04:00) Port Louis",utc:["Indian/Mahe","Indian/Mauritius","Indian/Reunion"]},{value:"Georgian Standard Time",abbr:"GET",offset:4,isdst:!1,text:"(UTC+04:00) Tbilisi",utc:["Asia/Tbilisi"]},{value:"Caucasus Standard Time",abbr:"CST",offset:4,isdst:!1,text:"(UTC+04:00) Yerevan",utc:["Asia/Yerevan"]},{value:"Afghanistan Standard Time",abbr:"AST",offset:4.5,isdst:!1,text:"(UTC+04:30) Kabul",utc:["Asia/Kabul"]},{value:"West Asia Standard Time",abbr:"WAST",offset:5,isdst:!1,text:"(UTC+05:00) Ashgabat, Tashkent",utc:["Antarctica/Mawson","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Dushanbe","Asia/Oral","Asia/Samarkand","Asia/Tashkent","Etc/GMT-5","Indian/Kerguelen","Indian/Maldives"]},{value:"Yekaterinburg Time",abbr:"YEKT",offset:5,isdst:!1,text:"(UTC+05:00) Yekaterinburg",utc:["Asia/Yekaterinburg"]},{value:"Pakistan Standard Time",abbr:"PKT",offset:5,isdst:!1,text:"(UTC+05:00) Islamabad, Karachi",utc:["Asia/Karachi"]},{value:"India Standard Time",abbr:"IST",offset:5.5,isdst:!1,text:"(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi",utc:["Asia/Kolkata","Asia/Calcutta"]},{value:"Sri Lanka Standard Time",abbr:"SLST",offset:5.5,isdst:!1,text:"(UTC+05:30) Sri Jayawardenepura",utc:["Asia/Colombo"]},{value:"Nepal Standard Time",abbr:"NST",offset:5.75,isdst:!1,text:"(UTC+05:45) Kathmandu",utc:["Asia/Kathmandu"]},{value:"Central Asia Standard Time",abbr:"CAST",offset:6,isdst:!1,text:"(UTC+06:00) Nur-Sultan (Astana)",utc:["Antarctica/Vostok","Asia/Almaty","Asia/Bishkek","Asia/Qyzylorda","Asia/Urumqi","Etc/GMT-6","Indian/Chagos"]},{value:"Bangladesh Standard Time",abbr:"BST",offset:6,isdst:!1,text:"(UTC+06:00) Dhaka",utc:["Asia/Dhaka","Asia/Thimphu"]},{value:"Myanmar Standard Time",abbr:"MST",offset:6.5,isdst:!1,text:"(UTC+06:30) Yangon (Rangoon)",utc:["Asia/Rangoon","Indian/Cocos"]},{value:"SE Asia Standard Time",abbr:"SAST",offset:7,isdst:!1,text:"(UTC+07:00) Bangkok, Hanoi, Jakarta",utc:["Antarctica/Davis","Asia/Bangkok","Asia/Hovd","Asia/Jakarta","Asia/Phnom_Penh","Asia/Pontianak","Asia/Saigon","Asia/Vientiane","Etc/GMT-7","Indian/Christmas"]},{value:"N. Central Asia Standard Time",abbr:"NCAST",offset:7,isdst:!1,text:"(UTC+07:00) Novosibirsk",utc:["Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk"]},{value:"China Standard Time",abbr:"CST",offset:8,isdst:!1,text:"(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi",utc:["Asia/Hong_Kong","Asia/Macau","Asia/Shanghai"]},{value:"North Asia Standard Time",abbr:"NAST",offset:8,isdst:!1,text:"(UTC+08:00) Krasnoyarsk",utc:["Asia/Krasnoyarsk"]},{value:"Singapore Standard Time",abbr:"MPST",offset:8,isdst:!1,text:"(UTC+08:00) Kuala Lumpur, Singapore",utc:["Asia/Brunei","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Makassar","Asia/Manila","Asia/Singapore","Etc/GMT-8"]},{value:"W. Australia Standard Time",abbr:"WAST",offset:8,isdst:!1,text:"(UTC+08:00) Perth",utc:["Antarctica/Casey","Australia/Perth"]},{value:"Taipei Standard Time",abbr:"TST",offset:8,isdst:!1,text:"(UTC+08:00) Taipei",utc:["Asia/Taipei"]},{value:"Ulaanbaatar Standard Time",abbr:"UST",offset:8,isdst:!1,text:"(UTC+08:00) Ulaanbaatar",utc:["Asia/Choibalsan","Asia/Ulaanbaatar"]},{value:"North Asia East Standard Time",abbr:"NAEST",offset:8,isdst:!1,text:"(UTC+08:00) Irkutsk",utc:["Asia/Irkutsk"]},{value:"Japan Standard Time",abbr:"JST",offset:9,isdst:!1,text:"(UTC+09:00) Osaka, Sapporo, Tokyo",utc:["Asia/Dili","Asia/Jayapura","Asia/Tokyo","Etc/GMT-9","Pacific/Palau"]},{value:"Korea Standard Time",abbr:"KST",offset:9,isdst:!1,text:"(UTC+09:00) Seoul",utc:["Asia/Pyongyang","Asia/Seoul"]},{value:"Cen. Australia Standard Time",abbr:"CAST",offset:9.5,isdst:!1,text:"(UTC+09:30) Adelaide",utc:["Australia/Adelaide","Australia/Broken_Hill"]},{value:"AUS Central Standard Time",abbr:"ACST",offset:9.5,isdst:!1,text:"(UTC+09:30) Darwin",utc:["Australia/Darwin"]},{value:"E. Australia Standard Time",abbr:"EAST",offset:10,isdst:!1,text:"(UTC+10:00) Brisbane",utc:["Australia/Brisbane","Australia/Lindeman"]},{value:"AUS Eastern Standard Time",abbr:"AEST",offset:10,isdst:!1,text:"(UTC+10:00) Canberra, Melbourne, Sydney",utc:["Australia/Melbourne","Australia/Sydney"]},{value:"West Pacific Standard Time",abbr:"WPST",offset:10,isdst:!1,text:"(UTC+10:00) Guam, Port Moresby",utc:["Antarctica/DumontDUrville","Etc/GMT-10","Pacific/Guam","Pacific/Port_Moresby","Pacific/Saipan","Pacific/Truk"]},{value:"Tasmania Standard Time",abbr:"TST",offset:10,isdst:!1,text:"(UTC+10:00) Hobart",utc:["Australia/Currie","Australia/Hobart"]},{value:"Yakutsk Standard Time",abbr:"YST",offset:9,isdst:!1,text:"(UTC+09:00) Yakutsk",utc:["Asia/Chita","Asia/Khandyga","Asia/Yakutsk"]},{value:"Central Pacific Standard Time",abbr:"CPST",offset:11,isdst:!1,text:"(UTC+11:00) Solomon Is., New Caledonia",utc:["Antarctica/Macquarie","Etc/GMT-11","Pacific/Efate","Pacific/Guadalcanal","Pacific/Kosrae","Pacific/Noumea","Pacific/Ponape"]},{value:"Vladivostok Standard Time",abbr:"VST",offset:11,isdst:!1,text:"(UTC+11:00) Vladivostok",utc:["Asia/Sakhalin","Asia/Ust-Nera","Asia/Vladivostok"]},{value:"New Zealand Standard Time",abbr:"NZST",offset:12,isdst:!1,text:"(UTC+12:00) Auckland, Wellington",utc:["Antarctica/McMurdo","Pacific/Auckland"]},{value:"UTC+12",abbr:"U",offset:12,isdst:!1,text:"(UTC+12:00) Coordinated Universal Time+12",utc:["Etc/GMT-12","Pacific/Funafuti","Pacific/Kwajalein","Pacific/Majuro","Pacific/Nauru","Pacific/Tarawa","Pacific/Wake","Pacific/Wallis"]},{value:"Fiji Standard Time",abbr:"FST",offset:12,isdst:!1,text:"(UTC+12:00) Fiji",utc:["Pacific/Fiji"]},{value:"Magadan Standard Time",abbr:"MST",offset:12,isdst:!1,text:"(UTC+12:00) Magadan",utc:["Asia/Anadyr","Asia/Kamchatka","Asia/Magadan","Asia/Srednekolymsk"]},{value:"Kamchatka Standard Time",abbr:"KDT",offset:13,isdst:!0,text:"(UTC+12:00) Petropavlovsk-Kamchatsky - Old",utc:["Asia/Kamchatka"]},{value:"Tonga Standard Time",abbr:"TST",offset:13,isdst:!1,text:"(UTC+13:00) Nuku'alofa",utc:["Etc/GMT-13","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Tongatapu"]},{value:"Samoa Standard Time",abbr:"SST",offset:13,isdst:!1,text:"(UTC+13:00) Samoa",utc:["Pacific/Apia"]}]}static#a=this.\u0275fac=function(o){return new(o||r)};static#e=this.\u0275prov=a.jDH({token:r,factory:r.\u0275fac,providedIn:"any"})}return r})();var v=u(1170),d=u(9417),A=u(6467),_=u(4869),k=u(6600),b=u(4983);function M(r,s){1&r&&a.EFF(0),2&r&&a.SpI(" \xa0 ",s.item.version," ")}function E(r,s){1&r&&a.EFF(0),2&r&&a.SpI(" ",s.item.architecture," ")}function y(r,s){1&r&&a.EFF(0),2&r&&a.SpI(" ",s.item.sha256," ")}function F(r,s){if(1&r){const e=a.RV6();a.j41(0,"button",30),a.bIt("click",function(){const t=a.eBV(e).item,i=a.XpG();return a.Njj(i.delete_fimrware(t))}),a.nrm(1,"i",31),a.k0s()}}function j(r,s){1&r&&(a.j41(0,"td")(1,"button",32),a.nrm(2,"c-spinner",33),a.EFF(3," Fetching Information from mikrotik website... "),a.k0s()())}function U(r,s){if(1&r&&(a.j41(0,"mat-option",36),a.EFF(1),a.k0s()),2&r){const e=s.$implicit;a.Y8G("value",e),a.R7$(),a.SpI(" ",e," ")}}function x(r,s){if(1&r){const e=a.RV6();a.j41(0,"td")(1,"mat-form-field")(2,"mat-select",34,2),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.firmtodownload,t)||(i.firmtodownload=t),a.Njj(t)}),a.j41(4,"mat-option"),a.nrm(5,"ngx-mat-select-search",35),a.k0s(),a.DNE(6,U,2,2,"mat-option",18),a.k0s()()()}if(2&r){const e=a.XpG();a.R7$(2),a.R50("ngModel",e.firmtodownload),a.R7$(3),a.Y8G("hideClearSearchButton",!0),a.R7$(),a.Y8G("ngForOf",e.firms)}}function w(r,s){if(1&r){const e=a.RV6();a.j41(0,"button",20),a.bIt("click",function(){a.eBV(e);const t=a.XpG();return a.Njj(t.ConfirmModalVisible=!0)}),a.EFF(1,"Download to repository"),a.k0s()}}function R(r,s){if(1&r&&(a.j41(0,"option",36),a.EFF(1),a.k0s()),2&r){const e=s.$implicit;a.Y8G("value",e),a.R7$(),a.JRh(e)}}function D(r,s){if(1&r&&(a.j41(0,"option",36),a.EFF(1),a.k0s()),2&r){const e=s.$implicit;a.Y8G("value",e),a.R7$(),a.JRh(e)}}function G(r,s){if(1&r){const e=a.RV6();a.j41(0,"c-input-group",5)(1,"label",13),a.EFF(2," Firmware version v6 to install "),a.k0s(),a.j41(3,"select",14),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.firmwaretoinstallv6,t)||(i.firmwaretoinstallv6=t),a.Njj(t)}),a.j41(4,"option"),a.EFF(5,"Choose..."),a.k0s(),a.DNE(6,D,2,2,"option",18),a.k0s(),a.j41(7,"c-form-feedback",17),a.EFF(8," * The version of firmware to install on V6 routers"),a.k0s()()}if(2&r){const e=a.XpG();a.R7$(3),a.R50("ngModel",e.firmwaretoinstallv6),a.R7$(3),a.Y8G("ngForOf",e.available_firmwaresv6),a.R7$(),a.Y8G("valid",!0)}}function B(r,s){if(1&r&&(a.j41(0,"mat-option",36),a.EFF(1),a.k0s()),2&r){const e=s.$implicit;a.Y8G("value",e.utc[0]),a.R7$(),a.SpI(" ",e.text," ")}}function P(r,s){if(1&r){const e=a.RV6();a.j41(0,"c-form-check",48)(1,"input",49),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG(2);return a.DH7(i.sysconfigs.safe_install.value,t)||(i.sysconfigs.safe_install.value=t),a.Njj(t)}),a.k0s(),a.j41(2,"label",50),a.EFF(3,"Safe Update"),a.k0s(),a.j41(4,"c-form-feedback",17)(5,"code",52),a.EFF(6,"PRO"),a.k0s(),a.EFF(7," * Download and install reqired firmware before installing the target firmware . for example it will install latest 7.12 then upgrade to newer version >7.13 or install Required packages before update"),a.k0s()()}if(2&r){const e=a.XpG(2);a.Y8G("switch",!0),a.R7$(),a.R50("ngModel",e.sysconfigs.safe_install.value),a.R7$(3),a.Y8G("valid",!0)}}function I(r,s){if(1&r){const e=a.RV6();a.j41(0,"c-form-check",48)(1,"input",49),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG(2);return a.DH7(i.sysconfigs.otp_force.value,t)||(i.sysconfigs.otp_force.value=t),a.Njj(t)}),a.k0s(),a.j41(2,"label",50),a.EFF(3,"Force device otp"),a.k0s(),a.j41(4,"c-form-feedback",17)(5,"code",52),a.EFF(6,"PRO"),a.k0s(),a.EFF(7," * Force login to devices using otp for all users.(you can make exceptions for each user)"),a.k0s()()}if(2&r){const e=a.XpG(2);a.Y8G("switch",!0),a.R7$(),a.R50("ngModel",e.sysconfigs.otp_force.value),a.R7$(3),a.Y8G("valid",!0)}}function N(r,s){if(1&r){const e=a.RV6();a.j41(0,"c-card-body")(1,"c-input-group",37)(2,"span",38),a.EFF(3,"Rad Secret"),a.k0s(),a.j41(4,"input",39),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.rad_secret.value,t)||(i.sysconfigs.rad_secret.value=t),a.Njj(t)}),a.k0s(),a.j41(5,"c-form-feedback",17),a.EFF(6," * Radius Secret of Mikrowizard Radius Server"),a.k0s()(),a.j41(7,"c-input-group",37)(8,"span",38),a.EFF(9,"System URL"),a.k0s(),a.j41(10,"input",40),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.system_url.value,t)||(i.sysconfigs.system_url.value=t),a.Njj(t)}),a.k0s(),a.j41(11,"c-form-feedback",17),a.EFF(12," * Default system access URl"),a.k0s()(),a.j41(13,"c-input-group",37)(14,"span",38),a.EFF(15,"Default IP"),a.k0s(),a.j41(16,"input",40),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.default_ip.value,t)||(i.sysconfigs.default_ip.value=t),a.Njj(t)}),a.k0s(),a.j41(17,"c-form-feedback",17),a.EFF(18," * Default Mikrowizard Access IP"),a.k0s()(),a.j41(19,"c-input-group",37)(20,"span",38),a.EFF(21,"System Time Zone"),a.k0s(),a.j41(22,"mat-form-field",41)(23,"mat-label"),a.EFF(24,"Select event type"),a.k0s(),a.j41(25,"mat-select",34,2),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.timezone.value,t)||(i.sysconfigs.timezone.value=t),a.Njj(t)}),a.j41(27,"mat-option"),a.nrm(28,"ngx-mat-select-search",35),a.k0s(),a.DNE(29,B,2,2,"mat-option",18),a.k0s()(),a.j41(30,"c-form-feedback",17),a.EFF(31," * Default TimeZone for the system"),a.k0s()(),a.j41(32,"c-input-group",37)(33,"span",38),a.EFF(34,"Default User"),a.k0s(),a.j41(35,"input",42),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.default_user.value,t)||(i.sysconfigs.default_user.value=t),a.Njj(t)}),a.k0s(),a.j41(36,"span",38),a.EFF(37,"Default password"),a.k0s(),a.j41(38,"input",43),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.default_password.value,t)||(i.sysconfigs.default_password.value=t),a.Njj(t)}),a.k0s(),a.j41(39,"c-form-feedback",17),a.EFF(40," * Default username and Password for searching new devices"),a.k0s()(),a.j41(41,"c-input-group",5)(42,"label",13),a.EFF(43," Mikrowizard Update Mode "),a.k0s(),a.j41(44,"select",14),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.update_mode.value.mode,t)||(i.sysconfigs.update_mode.value.mode=t),a.Njj(t)}),a.j41(45,"option"),a.EFF(46,"Choose..."),a.k0s(),a.j41(47,"option",44),a.EFF(48,"Automatic Update"),a.k0s(),a.j41(49,"option",45),a.EFF(50,"Show update only/Update manually"),a.k0s()(),a.j41(51,"c-form-feedback",17),a.EFF(52," * Choose if Mikrowizard should download updates automaticaly when availble or wait for user to download/apply updates"),a.k0s()(),a.j41(53,"c-input-group",46)(54,"span",38),a.EFF(55,"License Username"),a.k0s(),a.j41(56,"input",47),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.username.value,t)||(i.sysconfigs.username.value=t),a.Njj(t)}),a.k0s(),a.j41(57,"c-form-feedback",17),a.EFF(58," * The username that you registred in Mikrowizard.com,Required for License Activation"),a.k0s()(),a.j41(59,"c-form-check",48)(60,"input",49),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.force_perms.value,t)||(i.sysconfigs.force_perms.value=t),a.Njj(t)}),a.k0s(),a.j41(61,"label",50),a.EFF(62,"Force Perms"),a.k0s(),a.j41(63,"c-form-feedback",17),a.EFF(64," * Force User Groups under user>groups configuration of each router to match Mikrowizard Permissions and monitor for any change to prevent/fix the configuration."),a.k0s()(),a.j41(65,"c-form-check",48)(66,"input",49),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.force_radius.value,t)||(i.sysconfigs.force_radius.value=t),a.Njj(t)}),a.k0s(),a.j41(67,"label",50),a.EFF(68,"Force Radius"),a.k0s(),a.j41(69,"c-form-feedback",17),a.EFF(70," * Force Radius config under radius>client and user>aaa setting of each router that added to Mikrowizard and monitor for any change to prevent/fix the configuration."),a.k0s()(),a.j41(71,"c-form-check",48)(72,"input",49),a.mxI("ngModelChange",function(t){a.eBV(e);const i=a.XpG();return a.DH7(i.sysconfigs.force_syslog.value,t)||(i.sysconfigs.force_syslog.value=t),a.Njj(t)}),a.k0s(),a.j41(73,"label",50),a.EFF(74,"Force Syslog"),a.k0s(),a.j41(75,"c-form-feedback",17),a.EFF(76," * Force Syslog config under system>logs setting of each router that added to Mikrowizard and monitor syslog setting for any change to prevent/fix the configuration."),a.k0s()(),a.DNE(77,P,8,3,"c-form-check",51)(78,I,8,3,"c-form-check",51),a.j41(79,"button",20),a.bIt("click",function(){a.eBV(e);const t=a.XpG();return a.Njj(t.saveSysSetting())}),a.EFF(80,"Save"),a.k0s()()}if(2&r){const e=a.XpG();a.R7$(4),a.R50("ngModel",e.sysconfigs.rad_secret.value),a.R7$(),a.Y8G("valid",!0),a.R7$(5),a.R50("ngModel",e.sysconfigs.system_url.value),a.R7$(),a.Y8G("valid",!0),a.R7$(5),a.R50("ngModel",e.sysconfigs.default_ip.value),a.R7$(),a.Y8G("valid",!0),a.R7$(8),a.R50("ngModel",e.sysconfigs.timezone.value),a.R7$(3),a.Y8G("hideClearSearchButton",!0),a.R7$(),a.Y8G("ngForOf",e.timezones),a.R7$(),a.Y8G("valid",!0),a.R7$(5),a.R50("ngModel",e.sysconfigs.default_user.value),a.R7$(3),a.R50("ngModel",e.sysconfigs.default_password.value),a.R7$(),a.Y8G("valid",!0),a.R7$(5),a.R50("ngModel",e.sysconfigs.update_mode.value.mode),a.R7$(7),a.Y8G("valid",!0),a.R7$(5),a.R50("ngModel",e.sysconfigs.username.value),a.R7$(),a.Y8G("valid",!0),a.R7$(2),a.Y8G("switch",!0),a.R7$(),a.R50("ngModel",e.sysconfigs.force_perms.value),a.R7$(3),a.Y8G("valid",!0),a.R7$(2),a.Y8G("switch",!0),a.R7$(),a.R50("ngModel",e.sysconfigs.force_radius.value),a.R7$(3),a.Y8G("valid",!0),a.R7$(2),a.Y8G("switch",!0),a.R7$(),a.R50("ngModel",e.sysconfigs.force_syslog.value),a.R7$(3),a.Y8G("valid",!0),a.R7$(2),a.Y8G("ngIf",e.ispro),a.R7$(),a.Y8G("ngIf",e.ispro)}}function V(r,s){1&r&&(a.j41(0,"button",53),a.nrm(1,"c-spinner",33),a.EFF(2," Downloading... "),a.k0s())}function z(r,s){if(1&r){const e=a.RV6();a.j41(0,"button",28),a.bIt("click",function(){a.eBV(e);const t=a.XpG();return a.Njj(t.start_download())}),a.EFF(1," Yes,Download! "),a.k0s()}}const Y=[{path:"",component:(()=>{class r{constructor(e,o,t,i){this.data_provider=e,this.router=o,this.TimeZones=t,this.login_checker=i,this.ispro=!1,this.filters={},this.firms={},this.firmtodownload={},this.source=[],this.columns=[],this.loading=!0,this.SysConfigloading=!0,this.ConfirmModalVisible=!1,this.DeleteConfirmModalVisible=!1,this.rows=[],this.updateBehavior="keep",this.firmwaretoinstall="none",this.firmwaretoinstallv6="none",this.available_firmwares=[],this.available_firmwaresv6=[],this.sysconfigs=[],this.currentFirm=[],this.toasterForm={autohide:!0,delay:3e3,position:"fixed",fade:!0,closeButton:!0},this.sorting={enabled:!0,multiSorting:!0},this.paging={enabled:!0,page:1,pageSize:5,pageSizes:[5,10,25,50],display:m.sE.ADVANCED},this.columnMenu={enabled:!0,sort:!0,columnsManager:!0},this.infoPanel={enabled:!0,infoDialog:!1,columnsManager:!0,schemaManager:!0},this.rowSelection={enabled:!0,type:m.AU.CHECKBOX,mode:m.fL.MULTIPLE},this.timezones=this.TimeZones.timezones;var c=this;this.login_checker.isLoggedIn()||setTimeout(function(){c.router.navigate(["login"])},100),this.data_provider.getSessionInfo().then(f=>{c.uid=f.uid,c.uname=f.name,c.ispro=f.ISPRO,"admin"!=f.role&&setTimeout(function(){c.router.navigate(["/user/dashboard"])},100)})}ngOnInit(){this.initAvailbleFirms(),this.initFirmsTable(),this.initsettings()}delete_fimrware(e,o=!1){var t=this;t.currentFirm=e,o?this.data_provider.delete_firm(this.currentFirm.id).then(i=>{"error"in i&&i.error.indexOf("Unauthorized")?t.show_toast("Error","You are not authorized to perform this action","danger"):1==i.status?(t.DeleteConfirmModalVisible=!1,t.initFirmsTable()):"err"in i&&t.show_toast("Firmware Delete",i.err,"danger")}):t.DeleteConfirmModalVisible=!0}start_download(){var e=this;this.loading=!0,this.data_provider.download_firmware_to_repository(this.firmtodownload).then(o=>{"error"in o&&o.error.indexOf("Unauthorized")?e.show_toast("Error","You are not authorized to perform this action","danger"):(1==o.status?e.show_toast("Firmware Download","Firmware download in progress","warning"):e.show_toast("Firmware Download","Firmware download started","success"),e.ConfirmModalVisible=!e.ConfirmModalVisible,e.loading=!1)})}onSelectedRows(e){this.rows=e,this.Selectedrows=e.map(o=>o.source.id)}show_toast(e,o,t){const{...i}={...this.toasterForm,color:t,title:e,body:o};this.viewChildren.first.addToast(h.y,i,{}).instance.closeButton=i.closeButton}saveFirmwareSetting(){var e=this;this.data_provider.save_firmware_setting(this.updateBehavior,this.firmwaretoinstall,this.firmwaretoinstallv6).then(o=>{"error"in o&&o.error.indexOf("Unauthorized")?e.show_toast("Error","You are not authorized to perform this action","danger"):e.initFirmsTable()})}saveSysSetting(){var e=this;this.data_provider.save_sys_setting(this.sysconfigs).then(o=>{"error"in o&&o.error.indexOf("Unauthorized")?e.show_toast("Error","You are not authorized to perform this action","danger"):(e.show_toast("Settings","Settings saved","success"),e.initsettings())})}initFirmsTable(){var e=this;this.data_provider.get_firms(0,1e4,!1).then(o=>{e.source=o.firms,e.available_firmwares=[...new Set(o.firms.map(i=>i.version))],e.available_firmwaresv6=[...new Set(o.firms.map(i=>i.version))].filter(i=>i.match(/^6\./g)),e.firmwaretoinstall=o.firmwaretoinstall,e.firmwaretoinstallv6=o.firmwaretoinstallv6,e.updateBehavior=o.updateBehavior})}initsettings(){var e=this;this.data_provider.get_settings().then(o=>{"error"in o&&o.error.indexOf("Unauthorized")?e.show_toast("Error","You are not authorized to perform this action","danger"):(e.sysconfigs=o.sysconfigs,e.sysconfigs.default_user.value="",e.sysconfigs.default_password.value="",e.timezones=e.TimeZones.timezones,e.sysconfigs.force_syslog.value=/true/i.test(e.sysconfigs.force_syslog.value),e.sysconfigs.force_radius.value=/true/i.test(e.sysconfigs.force_radius.value),e.sysconfigs.force_perms.value=/true/i.test(e.sysconfigs.force_perms.value),e.sysconfigs.safe_install.value=/true/i.test(e.sysconfigs.safe_install.value),e.ispro&&(e.sysconfigs.otp_force.value=/true/i.test(e.sysconfigs.otp_force.value)),"update_mode"in e.sysconfigs?e.sysconfigs.update_mode.value=JSON.parse(e.sysconfigs.update_mode.value):e.sysconfigs.update_mode={value:{mode:"auto",update_back:!1,update_front:!1}},e.SysConfigloading=!1)})}initAvailbleFirms(){var e=this;this.data_provider.get_downloadable_firms().then(o=>{e.firms=o.versions,e.loading=!1})}static#a=this.\u0275fac=function(o){return new(o||r)(a.rXU(S.C),a.rXU(p.Ix),a.rXU(C),a.rXU(v.T))};static#e=this.\u0275cmp=a.VBU({type:r,selectors:[["ng-component"]],viewQuery:function(o,t){if(1&o&&a.GBs(n.E0T,5),2&o){let i;a.mGM(i=a.lsd())&&(t.viewChildren=i)}},decls:85,vars:29,consts:[["ConfirmModal",""],["DeleteConfirmModal",""],["singleSelect",""],["xs",""],[1,"mb-4"],[1,"mb-3"],[3,"autoResizeWidth","source","columnMenu","sorting","infoPanel","paging"],["header","Version","field","version"],["header","arch","field","architecture"],["header","sha256","field","sha256"],["header","Actions","width","120","field","action"],[4,"ngIf"],["cButton","","color","primary",3,"click",4,"ngIf"],["cInputGroupText","","for","inputGroupSelect01"],["cSelect","","id","inputGroupSelect01",3,"ngModelChange","ngModel"],["value","keep"],["value","update"],[2,"display","block","color","#5c5c5c","margin-top","0",3,"valid"],[3,"value",4,"ngFor","ngForOf"],["class","mb-3",4,"ngIf"],["cButton","","color","primary",3,"click"],["backdrop","static","id","runConfirmModal",3,"visibleChange","visible"],["cModalTitle",""],["cButtonClose","",3,"cModalToggle"],["cButton","","cButton","","color","danger","class","m-1","disabled","",4,"ngIf"],["cButton","","color","danger",3,"click",4,"ngIf"],["cButton","","color","info",3,"cModalToggle"],["backdrop","static","id","DeleteConfirmModal",3,"visibleChange","visible"],["cButton","","color","danger",3,"click"],["position","fixed","placement","top-end"],["cButton","","color","danger","size","sm",3,"click"],[1,"fa-regular","fa-trash-can"],["cButton","","disabled","",1,"m-1"],["aria-hidden","true","size","sm"],["cFormControl","","placeholder","Select Version For Download Group",3,"ngModelChange","ngModel"],["placeholderLabel","Search",3,"hideClearSearchButton"],[3,"value"],[1,"mt-3"],["cInputGroupText",""],["cFormControl","","id","floatingInput","placeholder","rad_secret",3,"ngModelChange","ngModel"],["cFormControl","","id","floatingInput","placeholder","System URL",3,"ngModelChange","ngModel"],["subscriptSizing","dynamic",1,"form-control"],["aria-label","Username","type","password","cFormControl","",3,"ngModelChange","ngModel"],["aria-label","Password","type","password","cFormControl","",3,"ngModelChange","ngModel"],["value","auto"],["value","manual"],[1,"mt-3","mb-3"],["aria-label","Username","type","text","cFormControl","",3,"ngModelChange","ngModel"],["sizing","xl",3,"switch"],["cFormCheckInput","","type","checkbox",3,"ngModelChange","ngModel"],["cFormCheckLabel",""],["sizing","xl",3,"switch",4,"ngIf"],[2,"padding","0!important"],["cButton","","cButton","","color","danger","disabled","",1,"m-1"]],template:function(o,t){if(1&o){const i=a.RV6();a.j41(0,"c-row")(1,"c-col",3)(2,"c-card",4)(3,"c-card-header"),a.EFF(4,"Firmware Manager"),a.k0s(),a.j41(5,"c-card-body")(6,"c-input-group",5)(7,"h5"),a.EFF(8,"Firmware in repository:"),a.k0s(),a.j41(9,"gui-grid",6)(10,"gui-grid-column",7),a.DNE(11,M,1,1,"ng-template"),a.k0s(),a.j41(12,"gui-grid-column",8),a.DNE(13,E,1,1,"ng-template"),a.k0s(),a.j41(14,"gui-grid-column",9),a.DNE(15,y,1,1,"ng-template"),a.k0s(),a.j41(16,"gui-grid-column",10),a.DNE(17,F,2,0,"ng-template"),a.k0s()()(),a.nrm(18,"hr"),a.j41(19,"table")(20,"td")(21,"span"),a.EFF(22,"Add new Permission"),a.k0s()(),a.DNE(23,j,4,0,"td",11)(24,x,7,3,"td",11),a.j41(25,"td"),a.DNE(26,w,2,0,"button",12),a.k0s()(),a.nrm(27,"hr"),a.j41(28,"c-input-group",5)(29,"label",13),a.EFF(30," V6 Firmware update Behavior "),a.k0s(),a.j41(31,"select",14),a.mxI("ngModelChange",function(l){return a.eBV(i),a.DH7(t.updateBehavior,l)||(t.updateBehavior=l),a.Njj(l)}),a.j41(32,"option"),a.EFF(33,"Choose..."),a.k0s(),a.j41(34,"option",15),a.EFF(35,"Keep v6 and don't update to v7"),a.k0s(),a.j41(36,"option",16),a.EFF(37,"install latest"),a.k0s()(),a.j41(38,"c-form-feedback",17),a.EFF(39," * Choose how Mikrowizard should update old v6 firmwares"),a.k0s()(),a.j41(40,"c-input-group",5)(41,"label",13),a.EFF(42," Firmware version to install "),a.k0s(),a.j41(43,"select",14),a.mxI("ngModelChange",function(l){return a.eBV(i),a.DH7(t.firmwaretoinstall,l)||(t.firmwaretoinstall=l),a.Njj(l)}),a.j41(44,"option"),a.EFF(45,"Choose..."),a.k0s(),a.DNE(46,R,2,2,"option",18),a.k0s(),a.j41(47,"c-form-feedback",17),a.EFF(48," * The version of firmware to install routers"),a.k0s()(),a.DNE(49,G,9,3,"c-input-group",19),a.j41(50,"button",20),a.bIt("click",function(){return a.eBV(i),a.Njj(t.saveFirmwareSetting())}),a.EFF(51,"Save"),a.k0s()()(),a.j41(52,"c-card",4)(53,"c-card-header"),a.EFF(54,"System Settings"),a.k0s(),a.DNE(55,N,81,28,"c-card-body",11),a.k0s()()(),a.j41(56,"c-modal",21,0),a.mxI("visibleChange",function(l){return a.eBV(i),a.DH7(t.ConfirmModalVisible,l)||(t.ConfirmModalVisible=l),a.Njj(l)}),a.j41(58,"c-modal-header")(59,"h6",22),a.EFF(60),a.k0s(),a.nrm(61,"button",23),a.k0s(),a.j41(62,"c-modal-body"),a.EFF(63),a.nrm(64,"br"),a.k0s(),a.j41(65,"c-modal-footer"),a.DNE(66,V,3,0,"button",24)(67,z,2,0,"button",25),a.j41(68,"button",26),a.EFF(69," No!,Close "),a.k0s()()(),a.j41(70,"c-modal",27,1),a.mxI("visibleChange",function(l){return a.eBV(i),a.DH7(t.DeleteConfirmModalVisible,l)||(t.DeleteConfirmModalVisible=l),a.Njj(l)}),a.j41(72,"c-modal-header")(73,"h6",22),a.EFF(74,"Delete Firmware from Repo"),a.k0s(),a.nrm(75,"button",23),a.k0s(),a.j41(76,"c-modal-body"),a.EFF(77),a.nrm(78,"br"),a.k0s(),a.j41(79,"c-modal-footer")(80,"button",28),a.bIt("click",function(){return a.eBV(i),a.Njj(t.delete_fimrware(t.currentFirm,!0))}),a.EFF(81," Yes,Delete. "),a.k0s(),a.j41(82,"button",26),a.EFF(83," No. "),a.k0s()()(),a.nrm(84,"c-toaster",29)}if(2&o){const i=a.sdS(57),c=a.sdS(71);a.R7$(9),a.Y8G("autoResizeWidth",!0)("source",t.source)("columnMenu",t.columnMenu)("sorting",t.sorting)("infoPanel",t.infoPanel)("autoResizeWidth",!0)("paging",t.paging),a.R7$(14),a.Y8G("ngIf",t.loading),a.R7$(),a.Y8G("ngIf",!t.loading),a.R7$(2),a.Y8G("ngIf",!t.loading),a.R7$(5),a.R50("ngModel",t.updateBehavior),a.R7$(7),a.Y8G("valid",!0),a.R7$(5),a.R50("ngModel",t.firmwaretoinstall),a.R7$(3),a.Y8G("ngForOf",t.available_firmwares),a.R7$(),a.Y8G("valid",!0),a.R7$(2),a.Y8G("ngIf","keep"==t.updateBehavior),a.R7$(6),a.Y8G("ngIf",!t.SysConfigloading),a.R7$(),a.R50("visible",t.ConfirmModalVisible),a.R7$(4),a.SpI("Downloading RouterOS ver ",t.firmtodownload," "),a.R7$(),a.Y8G("cModalToggle",i.id),a.R7$(2),a.SpI(" Are you sure that You want to download RouterOS version ",t.firmtodownload," to the Repository? "),a.R7$(3),a.Y8G("ngIf",t.loading),a.R7$(),a.Y8G("ngIf",!t.loading),a.R7$(),a.Y8G("cModalToggle",i.id),a.R7$(2),a.R50("visible",t.DeleteConfirmModalVisible),a.R7$(5),a.Y8G("cModalToggle",c.id),a.R7$(2),a.Lme(" Are you sure that You want to Delete Firmware ",t.currentFirm.version,"/",t.currentFirm.architecture,"? "),a.R7$(5),a.Y8G("cModalToggle",c.id)}},dependencies:[n.iby,n.qHy,n.lMi,g.Sq,g.bT,n.gLf,n.oMR,d.xH,d.y7,d.me,d.Zm,d.wz,d.BC,d.vS,n.akk,n.cy2,n.iQ3,n.l_X,n.XW7,n.wPz,n.fvw,n.ISP,n._fv,n.UjT,m.V1,m.fz,A.rl,A.nJ,_.VO,k.wT,b.U9,n.tIt,n.E0T,n.Jyz,n.zfW,n.s$3,n.epl,n.L$K,n.VtU],styles:[":host .legend small{font-size:x-small}.mdc-line-ripple.mdc-line-ripple--deactivating.ng-star-inserted{display:none!important}.form-check-label{font-weight:700}\n"],encapsulation:2})}return r})(),data:{title:$localize`Settings`}}];let K=(()=>{class r{static#a=this.\u0275fac=function(o){return new(o||r)};static#e=this.\u0275mod=a.$C({type:r});static#t=this.\u0275inj=a.G2t({imports:[p.iI.forChild(Y),p.iI]})}return r})(),L=(()=>{class r{static#a=this.\u0275fac=function(o){return new(o||r)};static#e=this.\u0275mod=a.$C({type:r});static#t=this.\u0275inj=a.G2t({imports:[K,n.Dw2,g.MD,n.pc9,d.YN,n.tHK,n.tmq,n.ayw,m.uM,_.Ve,b.An,n.OTD,n.MBE,n.Q_q]})}return r})()}}]); \ No newline at end of file diff --git a/mikrofront/dist/html/80.117bc609dee9efd1.js b/mikrofront/dist/html/80.117bc609dee9efd1.js deleted file mode 100644 index be8fbf7..0000000 --- a/mikrofront/dist/html/80.117bc609dee9efd1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[80],{7080:(L,x,l)=>{l.r(x),l.d(x,{DevicesModule:()=>at});var v=l(177),f=l(9417),c=l(8921),e=l(4438),b=l(8617),p=l(7336),y=l(1413),k=l(7786),D=l(8359),S=l(7673),F=l(5007),j=l(9172),G=l(5558),h=l(6697),g=l(6977),_=l(5964),N=l(1986),B=l(6600),$=l(6939),u=l(9969),H=l(8203),w=l(7987),Q=l(6860),K=l(5478);const Z=["mat-menu-item",""],W=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],J=["mat-icon, [matMenuItemIcon]","*"];function q(s,r){1&s&&(e.qSk(),e.j41(0,"svg",2),e.nrm(1,"polygon",3),e.k0s())}const ee=["*"];function te(s,r){if(1&s){const t=e.RV6();e.j41(0,"div",0),e.bIt("keydown",function(i){e.eBV(t);const o=e.XpG();return e.Njj(o._handleKeydown(i))})("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closed.emit("click"))})("@transformMenu.start",function(i){e.eBV(t);const o=e.XpG();return e.Njj(o._onAnimationStart(i))})("@transformMenu.done",function(i){e.eBV(t);const o=e.XpG();return e.Njj(o._onAnimationDone(i))}),e.j41(1,"div",1),e.SdG(2),e.k0s()()}if(2&s){const t=e.XpG();e.HbH(t._classList),e.Y8G("id",t.panelId)("@transformMenu",t._panelAnimationState),e.BMQ("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const V=new e.nKC("MAT_MENU_PANEL");let Y=(()=>{class s{constructor(t,n,i,o,a){this._elementRef=t,this._document=n,this._focusMonitor=i,this._parentMenu=o,this._changeDetectorRef=a,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new y.B,this._focused=new y.B,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,n):this._getHostElement().focus(n),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement.cloneNode(!0),n=t.querySelectorAll("mat-icon, .material-icons");for(let i=0;i enter",(0,u.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,u.iF)({opacity:1,transform:"scale(1)"}))),(0,u.kY)("* => void",(0,u.i0)("100ms 25ms linear",(0,u.iF)({opacity:0})))]),fadeInItems:(0,u.hZ)("fadeInItems",[(0,u.wk)("showing",(0,u.iF)({opacity:1})),(0,u.kY)("void => *",[(0,u.iF)({opacity:0}),(0,u.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ne=0;const se=new e.nKC("mat-menu-default-options",{providedIn:"root",factory:function oe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let E=(()=>{class s{get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}set panelClass(t){const n=this._previousPanelClass,i={...this._classList};n&&n.length&&n.split(" ").forEach(o=>{i[o]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(o=>{i[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=i}get classList(){return this.panelClass}set classList(t){this.panelClass=t}constructor(t,n,i,o){this._elementRef=t,this._ngZone=n,this._changeDetectorRef=o,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new e.rOR,this._classList={},this._panelAnimationState="void",this._animationDone=new y.B,this.closed=new e.bkB,this.close=this.closed,this.panelId="mat-menu-panel-"+ne++,this.overlayPanelClass=i.overlayPanelClass||"",this._xPosition=i.xPosition,this._yPosition=i.yPosition,this.backdropClass=i.backdropClass,this.overlapTrigger=i.overlapTrigger,this.hasBackdrop=i.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new b.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,j.Z)(this._directDescendantItems),(0,G.n)(t=>(0,k.h)(...t.map(n=>n._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t)),this._directDescendantItems.changes.subscribe(t=>{const n=this._keyManager;if("enter"===this._panelAnimationState&&n.activeItem?._hasFocus()){const i=t.toArray(),o=Math.max(0,Math.min(i.length-1,n.activeItemIndex||0));i[o]&&!i[o].disabled?n.setActiveItem(o):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,j.Z)(this._directDescendantItems),(0,G.n)(n=>(0,k.h)(...n.map(i=>i._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const n=t.keyCode,i=this._keyManager;switch(n){case p._f:(0,p.rp)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case p.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case p.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(n===p.i7||n===p.n6)&&i.setFocusOrigin("keyboard"),void i.onKeydown(t)}t.stopPropagation()}focusFirstItem(t="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,h.s)(1)).subscribe(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){const i=this._keyManager;i.setFocusOrigin(t).setFirstItemActive(),!i.activeItem&&n&&n.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const n=Math.min(this._baseElevation+t,24),i=`${this._elevationPrefix}${n}`,o=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));if(!o||o===this._previousElevation){const a={...this._classList};this._previousElevation&&(a[this._previousElevation]=!1),a[i]=!0,this._previousElevation=i,this._classList=a}}setPositionClasses(t=this.xPosition,n=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===t,"mat-menu-after":"after"===t,"mat-menu-above":"above"===n,"mat-menu-below":"below"===n},this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,j.Z)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(se),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["mat-menu"]],contentQueries:function(n,i,o){if(1&n&&(e.wni(o,ie,5),e.wni(o,Y,5),e.wni(o,Y,4)),2&n){let a;e.mGM(a=e.lsd())&&(i.lazyContent=a.first),e.mGM(a=e.lsd())&&(i._allItems=a),e.mGM(a=e.lsd())&&(i.items=a)}},viewQuery:function(n,i){if(1&n&&e.GBs(e.C4Q,5),2&n){let o;e.mGM(o=e.lsd())&&(i.templateRef=o.first)}},hostVars:3,hostBindings:function(n,i){2&n&&e.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[e.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[e.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[e.Mj6.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[e.Mj6.HasDecoratorInputTransform,"overlapTrigger","overlapTrigger",e.L39],hasBackdrop:[e.Mj6.HasDecoratorInputTransform,"hasBackdrop","hasBackdrop",t=>null==t?null:(0,e.L39)(t)],panelClass:[e.Mj6.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[e.Jv_([{provide:V,useExisting:s}]),e.GFd,e.aNF],ngContentSelectors:ee,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(n,i){1&n&&(e.NAR(),e.DNE(0,te,3,7,"ng-template"))},styles:['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-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-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;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:var(--mat-menu-item-trailing-spacing);padding-right:var(--mat-menu-item-leading-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]),.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon])[dir=rtl]{padding-left:var(--mat-menu-item-with-icon-trailing-spacing);padding-right:var(--mat-menu-item-with-icon-leading-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.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{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform: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:[P.transformMenu,P.fadeInItems]},changeDetection:0})}return s})();const X=new e.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const s=(0,e.WQX)(w.hJ);return()=>s.scrollStrategies.reposition()}}),re={provide:X,deps:[w.hJ],useFactory:function ae(s){return()=>s.scrollStrategies.reposition()}},z=(0,Q.BQ)({passive:!0});let ce=(()=>{class s{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(n=>{this._destroyMenu(n),("click"===n||"tab"===n)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(t,n,i,o,a,d,m,C,I){this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=d,this._dir=m,this._focusMonitor=C,this._ngZone=I,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=D.yU.EMPTY,this._hoverSubscription=D.yU.EMPTY,this._menuCloseSubscription=D.yU.EMPTY,this._changeDetectorRef=(0,e.WQX)(e.gRc),this._handleTouchStart=T=>{(0,b.w6)(T)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new e.bkB,this.onMenuOpen=this.menuOpened,this.menuClosed=new e.bkB,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof E?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,z)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,z),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 t=this.menu;if(this._menuOpen||!t)return;const n=this._createOverlay(t),i=n.getConfig(),o=i.positionStrategy;this._setPosition(t,o),i.hasBackdrop=null==t.hasBackdrop?!this.triggersSubmenu():t.hasBackdrop,n.attach(this._getPortal(t)),t.lazyContent&&t.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(t),t instanceof E&&(t._startAnimation(),t._directDescendantItems.changes.pipe((0,g.Q)(t.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof E?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe((0,_.p)(i=>"void"===i.toState),(0,h.s)(1),(0,g.Q)(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(t){t.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,this._setMenuElevation(t),t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(t){if(t.setElevation){let n=0,i=t.parentMenu;for(;i;)n++,i=i.parentMenu;t.setElevation(n)}}_setIsMenuOpen(t){t!==this._menuOpen&&(this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t),this._changeDetectorRef.markForCheck())}_createOverlay(t){if(!this._overlayRef){const n=this._getOverlayConfig(t);this._subscribeToPositions(t,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(t){return new w.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:t.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:t.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t,n){t.setPositionClasses&&n.positionChanges.subscribe(i=>{const o="start"===i.connectionPair.overlayX?"after":"before",a="top"===i.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>t.setPositionClasses(o,a)):t.setPositionClasses(o,a)})}_setPosition(t,n){let[i,o]="before"===t.xPosition?["end","start"]:["start","end"],[a,d]="above"===t.yPosition?["bottom","top"]:["top","bottom"],[m,C]=[a,d],[I,T]=[i,o],R=0;if(this.triggersSubmenu()){if(T=i="before"===t.xPosition?"start":"end",o=I="end"===i?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const U=this._parentMaterialMenu.items.first;this._parentInnerPadding=U?U._getHostElement().offsetTop:0}R="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else t.overlapTrigger||(m="top"===a?"bottom":"top",C="top"===d?"bottom":"top");n.withPositions([{originX:i,originY:m,overlayX:I,overlayY:a,offsetY:R},{originX:o,originY:m,overlayX:T,overlayY:a,offsetY:R},{originX:i,originY:C,overlayX:I,overlayY:d,offsetY:-R},{originX:o,originY:C,overlayX:T,overlayY:d,offsetY:-R}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,S.of)(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,_.p)(a=>a!==this._menuItemInstance),(0,_.p)(()=>this._menuOpen)):(0,S.of)();return(0,k.h)(t,i,o,n)}_handleMousedown(t){(0,b._G)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const n=t.keyCode;(n===p.Fm||n===p.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(n===p.LE&&"ltr"===this.dir||n===p.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,_.p)(t=>t===this._menuItemInstance&&!t.disabled),(0,N.c)(0,F.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof E&&this.menu._isAnimating?this.menu._animationDone.pipe((0,h.s)(1),(0,N.c)(0,F.$),(0,g.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(t){return(!this._portal||this._portal.templateRef!==t.templateRef)&&(this._portal=new $.VA(t.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(w.hJ),e.rXU(e.aKT),e.rXU(e.c1b),e.rXU(X),e.rXU(V,8),e.rXU(Y,10),e.rXU(H.dS,8),e.rXU(b.FN),e.rXU(e.SKi))};static#t=this.\u0275dir=e.FsC({type:s,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,i){1&n&&e.bIt("click",function(a){return i._handleClick(a)})("mousedown",function(a){return i._handleMousedown(a)})("keydown",function(a){return i._handleKeydown(a)}),2&n&&e.BMQ("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[e.Mj6.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[e.Mj6.None,"matMenuTriggerFor","menu"],menuData:[e.Mj6.None,"matMenuTriggerData","menuData"],restoreFocus:[e.Mj6.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0})}return s})(),le=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.$C({type:s});static#i=this.\u0275inj=e.G2t({providers:[re],imports:[v.MD,B.pZ,B.yE,w.z_,K.Gj,B.yE]})}return s})();var A=l(7062),M=l(7390),de=l(7630),O=l(9130),me=l(9492),ue=l(1170);const pe=["grid"];function _e(s,r){if(1&s&&(e.j41(0,"option",51),e.EFF(1),e.k0s()),2&s){const t=r.$implicit,n=e.XpG(2);e.Y8G("value",t.id)("selected",n.selected_group==t.id),e.R7$(),e.SpI("",t.name," ")}}function he(s,r){if(1&s){const t=e.RV6();e.j41(0,"c-input-group")(1,"span",47),e.EFF(2,"Group"),e.k0s(),e.j41(3,"select",48),e.mxI("ngModelChange",function(i){e.eBV(t);const o=e.XpG();return e.DH7(o.selected_group,i)||(o.selected_group=i),e.Njj(i)}),e.bIt("change",function(i){e.eBV(t);const o=e.XpG();return e.Njj(o.groupselected(i))}),e.j41(4,"option",49),e.EFF(5,"Select a group"),e.k0s(),e.DNE(6,_e,2,3,"option",50),e.k0s()()}if(2&s){const t=e.XpG();e.R7$(3),e.R50("ngModel",t.selected_group),e.R7$(),e.Y8G("selected",0==t.selected_group),e.R7$(2),e.Y8G("ngForOf",t.groups)}}function ge(s,r){1&s&&e.nrm(0,"img",55)}function fe(s,r){1&s&&e.nrm(0,"i",56)}function ve(s,r){1&s&&e.nrm(0,"i",57)}function be(s,r){if(1&s&&(e.DNE(0,ge,1,0,"img",52)(1,fe,1,0,"i",53)(2,ve,1,0,"i",54),e.EFF(3)),2&s){const t=r.item.name,n=r.item;e.Y8G("ngIf","updating"==n.status),e.R7$(),e.Y8G("ngIf","updated"==n.status),e.R7$(),e.Y8G("ngIf","failed"==n.status),e.R7$(),e.SpI(" ",t," ")}}function Me(s,r){1&s&&e.EFF(0),2&s&&e.SpI(" ",r.item.arch," ")}function Ce(s,r){1&s&&e.nrm(0,"i",60)}function ye(s,r){1&s&&e.nrm(0,"i",61)}function ke(s,r){if(1&s&&(e.j41(0,"div"),e.EFF(1),e.k0s(),e.DNE(2,Ce,1,0,"i",58)(3,ye,1,0,"i",59)),2&s){const t=r.item.current_firmware,n=r.item;e.R7$(),e.JRh(t),e.R7$(),e.Y8G("ngIf",n.update_availble),e.R7$(),e.Y8G("ngIf",n.update_availble)}}function De(s,r){1&s&&e.EFF(0),2&s&&e.SpI(" ",r.item.ip," ")}function Fe(s,r){1&s&&e.EFF(0),2&s&&e.SpI(" ",r.item.mac," ")}function je(s,r){1&s&&e.EFF(0),2&s&&e.SpI(" ",r.item.license," ")}function we(s,r){1&s&&e.EFF(0),2&s&&e.SpI(" ",r.item.interface," ")}function Ee(s,r){1&s&&e.EFF(0),2&s&&e.SpI(" ",r.item.created," ")}function Ie(s,r){1&s&&e.EFF(0),2&s&&e.SpI(" ",r.item.uptime," ")}function Te(s,r){1&s&&e.EFF(0),2&s&&e.SpI(" ",r.item.created," ")}function Re(s,r){if(1&s){const t=e.RV6();e.j41(0,"button",62),e.bIt("click",function(){const i=e.eBV(t).item,o=e.XpG();return e.Njj(o.show_detail(i))}),e.nrm(1,"i",63),e.j41(2,"small"),e.EFF(3," Details"),e.k0s()(),e.j41(4,"button",64),e.nrm(5,"i",65),e.k0s(),e.j41(6,"mat-menu",null,5)(8,"div",66)(9,"li",67),e.EFF(10,"Actions Menu"),e.k0s(),e.j41(11,"button",68),e.bIt("click",function(){const i=e.eBV(t).item,o=e.XpG();return e.Njj(o.single_device_action(i,"edit"))}),e.nrm(12,"i",69),e.j41(13,"small"),e.EFF(14," Edit Device"),e.k0s()(),e.j41(15,"button",68),e.bIt("click",function(){const i=e.eBV(t).item,o=e.XpG();return e.Njj(o.single_device_action(i,"firmware"))}),e.nrm(16,"i",70),e.j41(17,"small"),e.EFF(18," Check Firmware"),e.k0s()(),e.j41(19,"button",68),e.bIt("click",function(){const i=e.eBV(t).item,o=e.XpG();return e.Njj(o.single_device_action(i,"update"))}),e.nrm(20,"i",71),e.j41(21,"small"),e.EFF(22," Update Firmware"),e.k0s()(),e.j41(23,"button",68),e.bIt("click",function(){const i=e.eBV(t).item,o=e.XpG();return e.Njj(o.single_device_action(i,"logauth"))}),e.nrm(24,"i",72),e.j41(25,"small"),e.EFF(26," Show Auth Logs"),e.k0s()(),e.j41(27,"button",68),e.bIt("click",function(){const i=e.eBV(t).item,o=e.XpG();return e.Njj(o.single_device_action(i,"logacc"))}),e.nrm(28,"i",73),e.j41(29,"small"),e.EFF(30," Show Acc Logs"),e.k0s()(),e.j41(31,"button",68),e.bIt("click",function(){const i=e.eBV(t).item,o=e.XpG();return e.Njj(o.single_device_action(i,"backup"))}),e.nrm(32,"i",74),e.j41(33,"small"),e.EFF(34," Show Backups"),e.k0s()(),e.j41(35,"button",68),e.bIt("click",function(){const i=e.eBV(t).item,o=e.XpG();return e.Njj(o.single_device_action(i,"delete"))}),e.nrm(36,"i",75),e.j41(37,"small"),e.EFF(38," Delete Device"),e.k0s()()()()}if(2&s){const t=e.sdS(7);e.R7$(4),e.Y8G("matMenuTriggerFor",t),e.R7$(5),e.Y8G("active",!1)}}function xe(s,r){if(1&s){const t=e.RV6();e.j41(0,"c-navbar",76)(1,"c-container",77)(2,"a",78),e.EFF(3," Batch Action : "),e.k0s(),e.nrm(4,"button",79),e.j41(5,"div",80,6)(7,"c-navbar-nav",81)(8,"c-nav-item")(9,"c-dropdown",82)(10,"a",83),e.EFF(11,"Select"),e.k0s(),e.j41(12,"ul",84)(13,"li")(14,"button",85),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return i.ConfirmAction="checkfirm",e.Njj(i.ConfirmModalVisible=!0)}),e.EFF(15,"Check Firmware"),e.k0s()(),e.j41(16,"li")(17,"button",85),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return i.ConfirmAction="update",e.Njj(i.ConfirmModalVisible=!0)}),e.EFF(18,"Update"),e.k0s()()()()()()()()()}if(2&s){const t=e.sdS(6);e.R7$(),e.Y8G("fluid",!0),e.R7$(3),e.Y8G("cNavbarToggler",t),e.R7$(),e.Y8G("navbar",!0),e.R7$(4),e.Y8G("popper",!1)}}function Se(s,r){if(1&s){const t=e.RV6();e.j41(0,"div",86)(1,"h5",87),e.EFF(2,"Please select searching method"),e.k0s(),e.j41(3,"button",88),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.scanwizard(2,"chip"))}),e.nrm(4,"img",89)(5,"br"),e.EFF(6,"Layer2 Scan"),e.k0s(),e.j41(7,"button",90),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.scanwizard(2,"ip"))}),e.nrm(8,"img",91)(9,"br"),e.EFF(10,"TCP/IP Scan"),e.k0s()()}2&s&&(e.R7$(3),e.Y8G("disabled",!0))}function Ge(s,r){if(1&s){const t=e.RV6();e.j41(0,"div",92)(1,"h5",87),e.EFF(2,"Please Provide needed information"),e.k0s(),e.j41(3,"c-input-group",38)(4,"span",47),e.EFF(5,"Start IP"),e.k0s(),e.j41(6,"input",93),e.mxI("ngModelChange",function(i){e.eBV(t);const o=e.XpG();return e.DH7(o.ip_scanner.start,i)||(o.ip_scanner.start=i),e.Njj(i)}),e.k0s(),e.j41(7,"span",47),e.EFF(8,"End IP"),e.k0s(),e.j41(9,"input",94),e.mxI("ngModelChange",function(i){e.eBV(t);const o=e.XpG();return e.DH7(o.ip_scanner.end,i)||(o.ip_scanner.end=i),e.Njj(i)}),e.k0s()(),e.j41(10,"c-input-group",38)(11,"span",47),e.EFF(12,"Username"),e.k0s(),e.j41(13,"input",95),e.mxI("ngModelChange",function(i){e.eBV(t);const o=e.XpG();return e.DH7(o.ip_scanner.user,i)||(o.ip_scanner.user=i),e.Njj(i)}),e.k0s()(),e.j41(14,"c-input-group",38)(15,"span",47),e.EFF(16,"Password"),e.k0s(),e.j41(17,"input",96),e.mxI("ngModelChange",function(i){e.eBV(t);const o=e.XpG();return e.DH7(o.ip_scanner.password,i)||(o.ip_scanner.password=i),e.Njj(i)}),e.k0s()(),e.j41(18,"c-input-group",38)(19,"span",47),e.EFF(20,"Port"),e.k0s(),e.j41(21,"input",97),e.mxI("ngModelChange",function(i){e.eBV(t);const o=e.XpG();return e.DH7(o.ip_scanner.port,i)||(o.ip_scanner.port=i),e.Njj(i)}),e.k0s()(),e.j41(22,"button",90),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.scanwizard(3,"ip"))}),e.EFF(23,"Start Scanning"),e.k0s()()}if(2&s){const t=e.XpG();e.R7$(6),e.R50("ngModel",t.ip_scanner.start),e.Y8G("valid",t.checkvalid("start")),e.R7$(3),e.R50("ngModel",t.ip_scanner.end),e.Y8G("valid",t.checkvalid("end")),e.R7$(4),e.R50("ngModel",t.ip_scanner.user),e.R7$(4),e.R50("ngModel",t.ip_scanner.password),e.R7$(4),e.Y8G("valid",t.checkvalid("port")),e.R50("ngModel",t.ip_scanner.port)}}function Ne(s,r){if(1&s&&(e.j41(0,"div",98),e.qSk(),e.j41(1,"svg",99)(2,"g",100)(3,"g",101),e.nrm(4,"path",102),e.k0s(),e.nrm(5,"rect",103)(6,"rect",104)(7,"ellipse",105)(8,"ellipse",106)(9,"ellipse",107)(10,"path",108),e.k0s(),e.j41(11,"g",109)(12,"g",110),e.nrm(13,"polygon",111)(14,"polygon",112),e.k0s(),e.j41(15,"g",113),e.nrm(16,"polygon",114)(17,"polygon",115),e.k0s(),e.j41(18,"g",116),e.nrm(19,"polygon",117)(20,"polygon",118),e.k0s(),e.j41(21,"g",119),e.nrm(22,"polygon",120)(23,"polygon",121),e.k0s()()(),e.joV(),e.j41(24,"h5"),e.EFF(25),e.k0s()()),2&s){const t=e.XpG();e.R7$(25),e.JRh(t.scanwizard_prompt)}}function Be(s,r){if(1&s){const t=e.RV6();e.j41(0,"h6",122)(1,"button",123),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.show_exec())}),e.EFF(2,"Device scan logs"),e.k0s()()}}function Pe(s,r){1&s&&(e.j41(0,"small"),e.EFF(1,"Empty username and password means system default configuration"),e.k0s())}function Ae(s,r){1&s&&e.EFF(0),2&s&&e.SpI(" \xa0 ",r.item.started," ")}function Ve(s,r){1&s&&e.EFF(0),2&s&&e.SpI(" \xa0 ",r.item.start_ip," ")}function Ye(s,r){1&s&&e.EFF(0),2&s&&e.SpI(" \xa0 ",r.item.start_ip," ")}function Xe(s,r){1&s&&e.EFF(0),2&s&&e.SpI(" ",r.item.ended," ")}function ze(s,r){if(1&s){const t=e.RV6();e.j41(0,"button",130),e.bIt("click",function(){const i=e.eBV(t).item.result,o=e.XpG(2);return e.Njj(o.exportToCsv(i))}),e.EFF(1,"download"),e.k0s()}}function Oe(s,r){if(1&s&&(e.j41(0,"gui-grid",124)(1,"gui-grid-column",125),e.DNE(2,Ae,1,1,"ng-template"),e.k0s(),e.j41(3,"gui-grid-column",126),e.DNE(4,Ve,1,1,"ng-template"),e.k0s(),e.j41(5,"gui-grid-column",127),e.DNE(6,Ye,1,1,"ng-template"),e.k0s(),e.j41(7,"gui-grid-column",128),e.DNE(8,Xe,1,1,"ng-template"),e.k0s(),e.j41(9,"gui-grid-column",129),e.DNE(10,ze,2,0,"ng-template"),e.k0s()()),2&s){const t=e.XpG();e.Y8G("autoResizeWidth",!0)("searching",t.searching)("source",t.ExecutedData)("columnMenu",t.columnMenu)("sorting",t.sorting)("infoPanel",t.infoPanel)("autoResizeWidth",!0)("paging",t.paging)}}function Ue(s,r){1&s&&(e.j41(0,"span"),e.EFF(1,"Are you sure that You want to Check firmware of selected devices for update?"),e.k0s())}function Le(s,r){1&s&&(e.j41(0,"span"),e.EFF(1,"Are you sure that You want to "),e.j41(2,"code"),e.EFF(3,"update firmware"),e.k0s(),e.EFF(4," of selected devices?"),e.k0s())}function $e(s,r){if(1&s&&(e.qex(0),e.EFF(1," Are you sure that You want to"),e.j41(2,"code"),e.EFF(3),e.k0s(),e.nrm(4,"br")(5,"hr"),e.j41(6,"p",131),e.EFF(7," All Related Configuration will be deleted/Modified :"),e.nrm(8,"br")(9,"br"),e.EFF(10," * User Permision Related to this Device"),e.nrm(11,"br"),e.EFF(12," * Device Groups including this Device"),e.nrm(13,"br"),e.EFF(14," * All Logs related to this device"),e.nrm(15,"br"),e.k0s(),e.bVm()),2&s){const t=e.XpG();e.R7$(3),e.SpI("Delete Device ",t.selected_device.name," ?")}}function He(s,r){if(1&s){const t=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.check_firmware())}),e.EFF(1," Yes "),e.k0s()}}function Qe(s,r){if(1&s){const t=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.update_firmware())}),e.EFF(1," Yes "),e.k0s()}}function Ke(s,r){if(1&s){const t=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.delete_device())}),e.EFF(1," Yes,Delete Device "),e.k0s()}}function Ze(s,r){1&s&&e.nrm(0,"i",140)}function We(s,r){1&s&&e.nrm(0,"i",141)}function Je(s,r){if(1&s){const t=e.RV6();e.j41(0,"button",137),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.show_pass=!i.show_pass)}),e.DNE(1,Ze,1,0,"i",138)(2,We,1,0,"i",139),e.k0s()}if(2&s){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.show_pass),e.R7$(),e.Y8G("ngIf",!t.show_pass)}}function qe(s,r){1&s&&e.nrm(0,"i",140)}function et(s,r){1&s&&e.nrm(0,"i",141)}function tt(s,r){if(1&s){const t=e.RV6();e.j41(0,"button",137),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.get_device_pass())}),e.DNE(1,qe,1,0,"i",138)(2,et,1,0,"i",139),e.k0s()}if(2&s){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.show_pass),e.R7$(),e.Y8G("ngIf",!t.show_pass)}}function it(s,r){if(1&s&&(e.j41(0,"option",142),e.EFF(1),e.k0s()),2&s){const t=r.$implicit;e.Y8G("value",t),e.R7$(),e.JRh(t)}}function nt(s,r){if(1&s){const t=e.RV6();e.j41(0,"c-modal-body")(1,"c-input-group",38)(2,"span",47),e.EFF(3,"Username"),e.k0s(),e.j41(4,"input",132),e.mxI("ngModelChange",function(i){e.eBV(t);const o=e.XpG();return e.DH7(o.selected_device.editform.user_name,i)||(o.selected_device.editform.user_name=i),e.Njj(i)}),e.k0s()(),e.j41(5,"c-input-group",38)(6,"span",47),e.EFF(7,"Password"),e.k0s(),e.j41(8,"input",133),e.mxI("ngModelChange",function(i){e.eBV(t);const o=e.XpG();return e.DH7(o.selected_device.editform.password,i)||(o.selected_device.editform.password=i),e.Njj(i)}),e.k0s(),e.DNE(9,Je,3,2,"button",134)(10,tt,3,2,"button",134),e.k0s(),e.j41(11,"c-input-group",38)(12,"span",47),e.EFF(13,"ip"),e.k0s(),e.j41(14,"input",95),e.mxI("ngModelChange",function(i){e.eBV(t);const o=e.XpG();return e.DH7(o.selected_device.editform.ip,i)||(o.selected_device.editform.ip=i),e.Njj(i)}),e.k0s()(),e.j41(15,"c-input-group",38)(16,"span",47),e.EFF(17,"peer ip"),e.k0s(),e.j41(18,"select",135),e.mxI("ngModelChange",function(i){e.eBV(t);const o=e.XpG();return e.DH7(o.selected_device.editform.peer_ip,i)||(o.selected_device.editform.peer_ip=i),e.Njj(i)}),e.DNE(19,it,2,2,"option",136),e.k0s()()()}if(2&s){const t=e.XpG();e.R7$(4),e.R50("ngModel",t.selected_device.editform.user_name),e.R7$(4),e.Y8G("type",t.show_pass?"text":"password"),e.R50("ngModel",t.selected_device.editform.password),e.R7$(),e.Y8G("ngIf",!t.ispro),e.R7$(),e.Y8G("ngIf",t.ispro),e.R7$(4),e.R50("ngModel",t.selected_device.editform.ip),e.R7$(4),e.R50("ngModel",t.selected_device.editform.peer_ip),e.R7$(),e.Y8G("ngForOf",t.selected_device.editform.ips)}}const st=[{path:"",component:(()=>{class s{constructor(t,n,i,o){this.data_provider=t,this.route=n,this.router=i,this.login_checker=o,this.ispro=!1,this.source=[],this.columns=[],this.loading=!0,this.rows=[],this.upgrades=[],this.updates=[],this.scanwizard_step=1,this.scanwizard_modal=!1,this.ConfirmModalVisible=!1,this.EditDevModalVisible=!1,this.ConfirmAction="checkfirm",this.scan_type="ip",this.scanwizard_prompt="Scanning Network!",this.groups=[],this.selected_group=0,this.selected_devices={},this.selected_device={},this.show_pass=!1,this.ExecutedDataModalVisible=!1,this.ExecutedData=[],this.toasterForm={autohide:!0,delay:3e3,position:"fixed",fade:!0,closeButton:!0},this.rowClass={class:"row-highlighted"},this.sorting={enabled:!0,multiSorting:!0},this.searching={enabled:!0,placeholder:"Search Devices"},this.paging={enabled:!0,page:1,pageSize:10,pageSizes:[5,10,25,50],display:M.sE.ADVANCED},this.columnMenu={enabled:!0,sort:!0,columnsManager:!0},this.infoPanel={enabled:!0,infoDialog:!1,columnsManager:!0,schemaManager:!0},this.rowSelection={enabled:!0,type:M.AU.CHECKBOX,mode:M.fL.MULTIPLE};var a=this;this.login_checker.isLoggedIn()||setTimeout(function(){a.router.navigate(["login"])},100),this.data_provider.getSessionInfo().then(m=>{a.uid=m.uid,a.uname=m.name,a.tz=m.tz,a.ispro=m.ISPRO,"admin"!=m.role&&setTimeout(function(){a.router.navigate(["/user/dashboard"])},100)})}ngOnInit(){this.selected_group=Number(this.route.snapshot.paramMap.get("id")),this.initGridTable(),this.get_groups()}show_detail(t){this.router.navigate(["/device-stats",{id:t.id}])}single_device_action(t,n){switch(this.gridComponent.api.unselectAll(),this.Selectedrows=[t.id],n){case"edit":this.edit_device_form(t);break;case"firmware":this.check_firmware();break;case"update":this.update_firmware();break;case"upgrade":this.upgrade_firmware();break;case"logauth":this.router.navigate(["/authlog",{devid:t.id}]);break;case"logacc":this.router.navigate(["/accountlog",{devid:t.id}]);break;case"backup":this.router.navigate(["/backups",{devid:t.id}]);break;case"reboot":this.reboot_devices();break;case"delete":this.ConfirmAction="delete",this.ConfirmModalVisible=!0}}edit_device_form(t){var n=this;this.selected_device=t,this.data_provider.get_editform(t.id).then(i=>{"error"in i?i.error.indexOf("Unauthorized")&&n.show_toast("Error","You are not authorized to perform this action","danger"):(this.selected_device.editform=i,this.EditDevModalVisible=!0)})}save_device(){var t=this;this.data_provider.save_editform(this.selected_device.editform).then(n=>{t.show_toast("Success","Device Saved","success"),this.initGridTable(),this.EditDevModalVisible=!1})}groupselected(t){this.selected_group=t.target.value,0!=this.selected_group&&this.router.navigate([".",{id:this.selected_group}]),this.initGridTable()}delete_device(){var t=this;this.ConfirmModalVisible=!1,this.data_provider.delete_devices(this.Selectedrows).then(n=>{t.show_toast("Success","Device Deleted","success"),this.initGridTable()})}onSelectedRows(t){this.rows=t,this.Selectedrows=t.map(n=>n.source.id)}checkvalid(t){var n=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;return"start"==t?n.test(this.ip_scanner.start):"end"==t?n.test(this.ip_scanner.end):"port"==t&&(""==this.ip_scanner.port||!!Number(this.ip_scanner.port))}scanwizard(t,n){var i=this;this.data_provider.scan_devs(this.scan_type,{}).then(o=>{if(1==o.status)return i.scanwizard_step=3,void this.wait_scan();if(1==t&&(i.scan_type="",i.ip_scanner={start:"",end:"",port:"",user:"",password:""}),2==t&&(i.scan_type="","ip"==n?i.scan_type="ip":"chip"==n&&(i.scan_type="mac")),3==t)if("ip"==i.scan_type){if(""==i.ip_scanner.start||""==i.ip_scanner.end||!i.checkvalid("start")||!i.checkvalid("end")||!i.checkvalid("port"))return;""==i.ip_scanner.port&&(i.ip_scanner.port=!1),""==i.ip_scanner.user&&(i.ip_scanner.user=!1),""==i.ip_scanner.password&&(i.ip_scanner.password=!1),i.data_provider.scan_devs(i.scan_type,i.ip_scanner).then(a=>{i.scanwizard_prompt="Scanning Network!",i.wait_scan()})}else"chip"==n&&i.data_provider.scan_devs(i.scan_type,i.ip_scanner).then(a=>{});i.scanwizard_step=t})}wait_scan(){clearTimeout(this.scan_timer);var t=this;this.scan_timer=setTimeout(function(){t.data_provider.scan_devs(t.scan_type,{}).then(n=>{0==n.status?(t.initGridTable(),t.scanwizard_prompt="Scanning done! Reloading data",setTimeout(function(){t.scanwizard_modal=!1},3e3)):t.wait_scan()})},3e3)}logger(t){console.dir(t)}handleScanwizard_modal(t){this.scanwizard_modal=t}show_toast(t,n,i){const{...o}={...this.toasterForm,color:i,title:t,body:n};this.viewChildren.first.addToast(de.y,o,{}).instance.closeButton=o.closeButton}check_firmware(){var t=this;this.data_provider.check_firmware(this.Selectedrows.toString()).then(n=>{t.show_toast("info","Checking Firmwares","light"),t.ConfirmModalVisible=!1,setTimeout(function(){t.Selectedrows.length<1&&t.initGridTable()},1)})}update_firmware(){var t=this;this.data_provider.update_firmware(this.Selectedrows.toString()).then(n=>{t.show_toast("info","Updating Firmwares Sent","light"),t.initGridTable()})}upgrade_firmware(){var t=this;this.data_provider.upgrade_firmware(this.Selectedrows.toString()).then(n=>{t.show_toast("info","Upgrading Firmwares","light"),t.initGridTable()})}reboot_devices(){var t=this;this.data_provider.reboot_devices(this.Selectedrows.toString()).then(n=>{t.show_toast("info","Reboot sent","light"),t.ConfirmModalVisible=!t.ConfirmModalVisible,t.initGridTable()})}get_groups(){var t=this;this.data_provider.get_devgroup_list().then(n=>{t.groups=(!("status"in n)||"failed"!=n.status)&&n})}initGridTable(){var t=this;t.upgrades=[],t.updates=[],clearTimeout(this.list_update_timer),t.data_provider.get_dev_list({group_id:this.selected_group,search:!1}).then(i=>{t.source=i.map(o=>(o.upgrade_availble&&t.upgrades.push(o),o.update_availble&&t.updates.push(o),o)),t.device_interval(),t.loading=!1})}device_interval(){var t=this;clearTimeout(this.list_update_timer),t.list_update_timer=setTimeout(function(){t.Selectedrows&&t.Selectedrows.length<1&&t.initGridTable()},1e4)}sanitizeString(t){return t?t.toString().replace(/"/g,'"').replace(/'/g,"'"):""}exportToCsv(t){const n=t,i=this.getColumns(n),o=this.convertToCsv(n,i);this.downloadFile(o,"data.csv","text/csv")}getColumns(t){const n=[];return t.forEach(i=>{Object.keys(i).forEach(o=>{n.includes(o)||n.push(o)})}),n}convertToCsv(t,n){var i=this;let o="";return o+=n.join(",")+"\n",t.forEach(a=>{const d=[];n.forEach(m=>{d.push('"'+i.sanitizeString(a[m])+'"')}),o+=d.join(",")+"\n"}),o}downloadFile(t,n,i){const o=new Blob([t],{type:i}),a=window.navigator;if(a.msSaveOrOpenBlob)a.msSaveBlob(o,n);else{const d=document.createElement("a");d.setAttribute("href",URL.createObjectURL(o)),d.setAttribute("download",n),d.style.visibility="hidden",document.body.appendChild(d),d.click(),document.body.removeChild(d)}}get_device_pass(){var t=this;t.selected_device.editform.password="Loading ...",t.ispro&&!this.show_pass?t.data_provider.get_device_pass(this.selected_device.id).then(n=>{t.selected_device.editform.password=n.password,this.show_pass=!this.show_pass}):this.show_pass=!this.show_pass}show_exec(){var t=this;this.ExecutedDataModalVisible=!0,this.data_provider.scan_results().then(n=>{console.dir(n);let i=1;t.ExecutedData=n.data.map(o=>(o.index=i,o.ended=(0,O.qD)(o.created.split(".")[0]+".000Z",t.tz,"yyyy-MM-dd HH:mm:ss XXX"),o.info=JSON.parse(o.info),o.started=(0,O.qD)(o.info.created.split(".")[0]+".000Z",t.tz,"yyyy-MM-dd HH:mm:ss XXX"),o.start_ip=o.info.start_ip,o.end_ip=o.info.end_ip,o.result=JSON.parse(o.result),i+=1,o))})}ngOnDestroy(){clearTimeout(this.scan_timer)}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(me.C),e.rXU(A.nX),e.rXU(A.Ix),e.rXU(ue.T))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["ng-component"]],viewQuery:function(n,i){if(1&n&&(e.GBs(pe,7),e.GBs(c.E0T,5)),2&n){let o;e.mGM(o=e.lsd())&&(i.gridComponent=o.first),e.mGM(o=e.lsd())&&(i.viewChildren=o)}},decls:104,vars:45,consts:[["grid",""],["ScannerModal",""],["ExecutedDataModal",""],["ConfirmModal",""],["EditDevModal",""],["menu","matMenu"],["collapseRef","cCollapse"],["xs",""],[1,"mb-4"],["xs","",3,"lg"],[2,"text-align","right"],["cButton","","color","danger","size","sm",1,"mx-1",2,"color","#fff"],["cButton","","color","warning","size","sm",1,"mx-1",2,"color","#fff"],["cButton","","color","dark","size","sm",1,"mx-1",2,"color","#fff",3,"click","cModalToggle"],[1,"fa-solid","fa-magnifying-glass"],[3,"lg"],[4,"ngIf"],[3,"selectedRows","rowClass","source","searching","paging","columnMenu","sorting","infoPanel","rowSelection","autoResizeWidth"],["header","Name","field","name"],["header","CPU Type","field","arch"],["header","Firmware","field","current_firmware"],["header","IP Address","field","ip"],["header","MAC Address","field","mac"],["header","License","field","license",3,"enabled"],["header","Interface","field","interface",3,"enabled"],["header","Created","field","created",3,"enabled"],["header","Uptime","field","uptime"],["align","center","header","Action",3,"cellEditing","sorting"],["class","bg-light","colorScheme","light","expand","lg",4,"ngIf"],["backdrop","static","id","ScannerModal",3,"visibleChange","visible"],["cModalTitle",""],["cButtonClose","",3,"cModalToggle"],["class","mb-5","style","text-align: center;",4,"ngIf"],["class","mb-2","style","text-align: center;",4,"ngIf"],["class","mwand",4,"ngIf"],["style","margin: 0 auto;",4,"ngIf"],["backdrop","static","size","xl","id","ExecutedDataModal",3,"visibleChange","visible"],["cButtonClose","",3,"click"],[1,"mb-3"],[3,"autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","paging",4,"ngIf"],["cButton","","color","secondary",3,"click"],["backdrop","static","id","runConfirmModal",3,"visibleChange","visible"],["cButton","","color","danger",3,"click",4,"ngIf"],["cButton","","color","info",3,"cModalToggle"],["backdrop","static","id","EditDevModal",3,"visibleChange","visible"],["cButton","","color","danger",3,"click"],["position","fixed","placement","top-end"],["cInputGroupText",""],["cSelect","",3,"ngModelChange","change","ngModel"],["value","0",3,"selected"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"],["width","20px","src","assets/img/loading.svg",4,"ngIf"],["cTooltip","Tooltip text","style","color: green; margin-right: 3px;font-size: .7em;","class","fa-solid fa-check",4,"ngIf"],["cTooltip","Update failed","style","color: red; margin-right: 3px;font-size: .7em;","class","fa-solid fa-x",4,"ngIf"],["width","20px","src","assets/img/loading.svg"],["cTooltip","Tooltip text",1,"fa-solid","fa-check",2,"color","green","margin-right","3px","font-size",".7em"],["cTooltip","Update failed",1,"fa-solid","fa-x",2,"color","red","margin-right","3px","font-size",".7em"],["cTooltip","Firmware Update availble","class","fa-solid fa-up-long text-primary mx-1",4,"ngIf"],["cTooltip","Device Firmware not Upgraded","class","fa-solid fa-microchip text-danger mx-1",4,"ngIf"],["cTooltip","Firmware Update availble",1,"fa-solid","fa-up-long","text-primary","mx-1"],["cTooltip","Device Firmware not Upgraded",1,"fa-solid","fa-microchip","text-danger","mx-1"],["size","sm","shape","rounded-0","variant","outline","cButton","","color","primary",2,"border","none","padding","4px 7px",3,"click"],[1,"fa-regular","fa-eye"],["color","primary","shape","rounded-0","variant","ghost","cButton","",2,"padding","4px 7px",3,"matMenuTriggerFor"],[1,"fa-solid","fa-bars"],["cListGroup",""],["cListGroupItem","","color","dark",3,"active"],["size","sm","cListGroupItem","",2,"padding","4px 7px",3,"click"],[1,"fa-solid","fa-pencil"],[1,"text-primary","fa-solid","fa-magnifying-glass"],[1,"text-primary","fa-solid","fa-upload"],[1,"text-primary","fa-regular","fa-clock"],[1,"text-primary","fa-solid","fa-table-list"],[1,"text-success","fa-solid","fa-database"],[1,"text-danger","fa-solid","fa-trash"],["colorScheme","light","expand","lg",1,"bg-light"],[3,"fluid"],["cNavbarBrand","","href","javascript:;"],[3,"cNavbarToggler"],["cCollapse","",3,"navbar"],[1,"me-auto","mb-2","mb-lg-0"],["variant","nav-item",3,"popper"],["cDropdownToggle","","cNavLink",""],["cDropdownMenu","","dark",""],["cDropdownItem","",3,"click"],[1,"mb-5",2,"text-align","center"],[1,"mb-5"],["cButton","","color","info","size","lg",1,"mx-1",3,"click","disabled"],["width","100px","src","assets/img/chip.png"],["cButton","","color","info","size","lg",1,"mx-1",3,"click"],["width","100px","src","assets/img/tcpip.png"],[1,"mb-2",2,"text-align","center"],["aria-label","start","cFormControl","","placeholder","192.168.1.1",3,"ngModelChange","ngModel","valid"],["aria-label","end","cFormControl","","placeholder","192.168.1.255",3,"ngModelChange","ngModel","valid"],["aria-label","start","cFormControl","","placeholder","Default username",3,"ngModelChange","ngModel"],["aria-label","end","cFormControl","","placeholder","********",3,"ngModelChange","ngModel"],["aria-label","end","cFormControl","","placeholder","8728",3,"ngModelChange","valid","ngModel"],[1,"mwand"],["viewBox","0 0 203 148.27"],["id","wand"],[1,"cls-1"],["d","M194.63,152.18v-7.76C194.6,147,194.6,149.59,194.63,152.18Z","transform","translate(-10 -31.06)"],["x","5.07","y","129.83","width","117.08","height","17.1","transform","translate(-77.95 30.6) rotate(-35.06)",1,"cls-2"],["x","106.38","y","88.26","width","32.89","height","17.1","transform","translate(-43.33 57.07) rotate(-35.06)",1,"cls-3"],["cx","136.21","cy","87.42","rx","3.29","ry","8.55","transform","translate(-35.5 63.06) rotate(-35.06)",1,"cls-4"],["cx","15.6","cy","172.07","rx","3.29","ry","8.55","transform","translate(-106.02 9.13) rotate(-35.06)",1,"cls-2"],["cx","109.5","cy","106.16","rx","3.29","ry","8.55","transform","translate(-51.12 51.12) rotate(-35.06)",1,"cls-3"],["d","M138.71,85.25s4.26,6.06,2.68,9L20.15,179.32s-3.27.49-7.53-5.57Z","transform","translate(-10 -31.06)",1,"cls-5"],["id","stars"],["id","star1"],["points","142.22 4.88 138.59 13.13 147.13 17.7 137.94 19.78 139.9 28.82 132.07 23.15 125.96 29.86 125.38 20.71 115.81 20.03 122.93 14.3 117.1 6.74 126.55 8.74 128.85 0 133.51 8.22 142.22 4.88",1,"cls-6"],["points","142.29 4.89 136.56 13.87 144.96 17.35 136.17 18.98 138.3 26.2 131.33 20.74 125.88 29.85 132.06 23.11 139.91 28.82 137.95 19.81 147.12 17.74 138.59 13.11 142.29 4.89",1,"cls-7"],["id","star2"],["points","166.3 14.45 165.13 17.09 167.87 18.55 164.93 19.22 165.55 22.12 163.04 20.3 161.09 22.45 160.9 19.52 157.83 19.3 160.11 17.46 158.25 15.04 161.27 15.68 162.01 12.88 163.51 15.52 166.3 14.45",1,"cls-6"],["points","166.32 14.45 164.48 17.33 167.18 18.44 164.36 18.96 165.04 21.28 162.81 19.53 161.06 22.45 163.04 20.29 165.56 22.12 164.93 19.23 167.87 18.57 165.13 17.08 166.32 14.45",1,"cls-7"],["id","star3"],["points","202.01 38.12 194.78 46.34 203 54.75 191.61 53.79 190.56 64.97 183.57 55.54 174.05 61.06 176.73 50.27 165.91 45.98 176.24 41.95 172.26 31.08 182.46 36.84 188.33 27.58 190.71 38.8 202.01 38.12",1,"cls-6"],["points","202.08 38.15 192.17 46.45 200.62 53.55 189.85 52.21 189.67 61.34 183.6 52.48 173.96 61.03 183.58 55.49 190.57 64.97 191.6 53.83 202.97 54.79 194.8 46.31 202.08 38.15",1,"cls-7"],["id","star4"],["points","155.07 63.05 153.01 67.75 157.87 70.35 152.64 71.52 153.75 76.67 149.3 73.44 145.83 77.25 145.5 72.05 140.06 71.67 144.1 68.41 140.79 64.11 146.16 65.25 147.47 60.28 150.13 64.95 155.07 63.05",1,"cls-6"],["points","155.11 63.06 151.86 68.17 156.63 70.14 151.63 71.07 152.84 75.17 148.88 72.07 145.78 77.25 149.29 73.42 153.76 76.67 152.65 71.54 157.86 70.36 153.01 67.73 155.11 63.06",1,"cls-7"],[2,"margin","0 auto"],["cButton","","color","primary","variant","outline",2,"margin","0 auto",3,"click"],[3,"autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","paging"],["header","Start time","field","start"],["header","Start ip","field","start_ip"],["header","End ip","field","start_ip"],["header","End time","field","end"],["header","Logs","field","mac","align","center"],["color","primary","cButton","",3,"click"],[1,"text-danger"],["aria-label","start","cFormControl","","placeholder"," username",3,"ngModelChange","ngModel"],["aria-label","start","cFormControl","","placeholder"," username",3,"ngModelChange","type","ngModel"],["cButton","","color","secondary","variant","outline",3,"click",4,"ngIf"],["aria-label","Default select example","cFormControl","","cSelect","",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["cButton","","color","secondary","variant","outline",3,"click"],["class","fa-solid fa-eye",4,"ngIf"],["class","fa-solid fa-eye-slash",4,"ngIf"],[1,"fa-solid","fa-eye"],[1,"fa-solid","fa-eye-slash"],[3,"value"]],template:function(n,i){if(1&n){const o=e.RV6();e.j41(0,"c-row")(1,"c-col",7)(2,"c-card",8)(3,"c-card-header")(4,"c-row")(5,"c-col",9),e.EFF(6," Devices "),e.k0s(),e.j41(7,"c-col",9)(8,"h6",10)(9,"button",11),e.EFF(10),e.k0s(),e.j41(11,"button",12),e.EFF(12),e.k0s(),e.EFF(13," | "),e.j41(14,"button",13),e.bIt("click",function(){return e.eBV(o),e.Njj(i.scanwizard(1,""))}),e.nrm(15,"i",14),e.EFF(16," Scanner"),e.k0s()()()()(),e.j41(17,"c-card-body")(18,"c-row")(19,"c-col",15),e.DNE(20,he,7,3,"c-input-group",16),e.k0s()(),e.j41(21,"gui-grid",17,0),e.bIt("selectedRows",function(d){return e.eBV(o),e.Njj(i.onSelectedRows(d))}),e.j41(23,"gui-grid-column",18),e.DNE(24,be,4,4,"ng-template"),e.k0s(),e.j41(25,"gui-grid-column",19),e.DNE(26,Me,1,1,"ng-template"),e.k0s(),e.j41(27,"gui-grid-column",20),e.DNE(28,ke,4,3,"ng-template"),e.k0s(),e.j41(29,"gui-grid-column",21),e.DNE(30,De,1,1,"ng-template"),e.k0s(),e.j41(31,"gui-grid-column",22),e.DNE(32,Fe,1,1,"ng-template"),e.k0s(),e.j41(33,"gui-grid-column",23),e.DNE(34,je,1,1,"ng-template"),e.k0s(),e.j41(35,"gui-grid-column",24),e.DNE(36,we,1,1,"ng-template"),e.k0s(),e.j41(37,"gui-grid-column",25),e.DNE(38,Ee,1,1,"ng-template"),e.k0s(),e.j41(39,"gui-grid-column",26),e.DNE(40,Ie,1,1,"ng-template"),e.k0s(),e.j41(41,"gui-grid-column",25),e.DNE(42,Te,1,1,"ng-template"),e.k0s(),e.j41(43,"gui-grid-column",27),e.DNE(44,Re,39,2,"ng-template"),e.k0s()(),e.DNE(45,xe,19,4,"c-navbar",28),e.k0s()()()(),e.j41(46,"c-modal",29,1),e.bIt("visibleChange",function(d){return e.eBV(o),e.Njj(i.handleScanwizard_modal(d))}),e.j41(48,"c-modal-header")(49,"h5",30),e.EFF(50,"Scanner Wizard"),e.k0s(),e.nrm(51,"button",31),e.k0s(),e.j41(52,"c-modal-body"),e.DNE(53,Se,11,1,"div",32)(54,Ge,24,8,"div",33)(55,Ne,26,1,"div",34),e.k0s(),e.j41(56,"c-modal-footer"),e.DNE(57,Be,3,0,"h6",35)(58,Pe,2,0,"small",16),e.k0s()(),e.j41(59,"c-modal",36,2),e.mxI("visibleChange",function(d){return e.eBV(o),e.DH7(i.ExecutedDataModalVisible,d)||(i.ExecutedDataModalVisible=d),e.Njj(d)}),e.j41(61,"c-modal-header")(62,"h5",30),e.EFF(63,"Editing Group "),e.k0s(),e.j41(64,"button",37),e.bIt("click",function(){return e.eBV(o),e.Njj(i.ExecutedDataModalVisible=!i.ExecutedDataModalVisible)}),e.k0s()(),e.j41(65,"c-modal-body")(66,"c-input-group",38)(67,"h5"),e.EFF(68,"Group Members :"),e.k0s(),e.DNE(69,Oe,11,8,"gui-grid",39),e.nrm(70,"br"),e.k0s(),e.nrm(71,"hr"),e.k0s(),e.j41(72,"c-modal-footer")(73,"button",40),e.bIt("click",function(){return e.eBV(o),e.Njj(i.ExecutedDataModalVisible=!i.ExecutedDataModalVisible)}),e.EFF(74," Close "),e.k0s()()(),e.j41(75,"c-modal",41,3),e.mxI("visibleChange",function(d){return e.eBV(o),e.DH7(i.ConfirmModalVisible,d)||(i.ConfirmModalVisible=d),e.Njj(d)}),e.j41(77,"c-modal-header")(78,"h6",30),e.EFF(79,"Please Confirm Action "),e.k0s(),e.nrm(80,"button",31),e.k0s(),e.j41(81,"c-modal-body"),e.DNE(82,Ue,2,0,"span",16)(83,Le,5,0,"span",16)(84,$e,16,1,"ng-container",16),e.k0s(),e.j41(85,"c-modal-footer"),e.DNE(86,He,2,0,"button",42)(87,Qe,2,0,"button",42)(88,Ke,2,0,"button",42),e.j41(89,"button",43),e.EFF(90," Cancel "),e.k0s()()(),e.j41(91,"c-modal",44,4),e.mxI("visibleChange",function(d){return e.eBV(o),e.DH7(i.EditDevModalVisible,d)||(i.EditDevModalVisible=d),e.Njj(d)}),e.j41(93,"c-modal-header")(94,"h6",30),e.EFF(95,"Editing Device"),e.k0s(),e.nrm(96,"button",31),e.k0s(),e.DNE(97,nt,20,8,"c-modal-body",16),e.j41(98,"c-modal-footer")(99,"button",45),e.bIt("click",function(){return e.eBV(o),e.Njj(i.save_device())}),e.EFF(100," Save "),e.k0s(),e.j41(101,"button",43),e.EFF(102," Cancel "),e.k0s()()(),e.nrm(103,"c-toaster",46)}if(2&n){const o=e.sdS(47),a=e.sdS(76),d=e.sdS(92);e.R7$(5),e.Y8G("lg",3),e.R7$(2),e.Y8G("lg",9),e.R7$(3),e.SpI("",i.updates.length," Updatable "),e.R7$(2),e.SpI("",i.upgrades.length," Upgradable"),e.R7$(2),e.Y8G("cModalToggle",o.id),e.R7$(5),e.Y8G("lg",3),e.R7$(),e.Y8G("ngIf",i.groups.length>0),e.R7$(),e.Y8G("rowClass",i.rowClass)("source",i.source)("searching",i.searching)("paging",i.paging)("columnMenu",i.columnMenu)("sorting",i.sorting)("infoPanel",i.infoPanel)("rowSelection",i.rowSelection)("autoResizeWidth",!0),e.R7$(12),e.Y8G("enabled",!1),e.R7$(2),e.Y8G("enabled",!1),e.R7$(2),e.Y8G("enabled",!1),e.R7$(4),e.Y8G("enabled",!1),e.R7$(2),e.Y8G("cellEditing",!1)("sorting",!1),e.R7$(2),e.Y8G("ngIf",0!=i.rows.length),e.R7$(),e.Y8G("visible",i.scanwizard_modal),e.R7$(5),e.Y8G("cModalToggle",o.id),e.R7$(2),e.Y8G("ngIf",1==i.scanwizard_step),e.R7$(),e.Y8G("ngIf",2==i.scanwizard_step&&"ip"==i.scan_type),e.R7$(),e.Y8G("ngIf",3==i.scanwizard_step),e.R7$(2),e.Y8G("ngIf",1==i.scanwizard_step),e.R7$(),e.Y8G("ngIf","ip"==i.scan_type),e.R7$(),e.R50("visible",i.ExecutedDataModalVisible),e.R7$(10),e.Y8G("ngIf",i.ExecutedDataModalVisible),e.R7$(6),e.R50("visible",i.ConfirmModalVisible),e.R7$(5),e.Y8G("cModalToggle",a.id),e.R7$(2),e.Y8G("ngIf","checkfirm"==i.ConfirmAction),e.R7$(),e.Y8G("ngIf","update"==i.ConfirmAction),e.R7$(),e.Y8G("ngIf","delete"==i.ConfirmAction),e.R7$(2),e.Y8G("ngIf","checkfirm"==i.ConfirmAction),e.R7$(),e.Y8G("ngIf","update"==i.ConfirmAction),e.R7$(),e.Y8G("ngIf","delete"==i.ConfirmAction),e.R7$(),e.Y8G("cModalToggle",a.id),e.R7$(2),e.R50("visible",i.EditDevModalVisible),e.R7$(5),e.Y8G("cModalToggle",d.id),e.R7$(),e.Y8G("ngIf",i.EditDevModalVisible),e.R7$(4),e.Y8G("cModalToggle",d.id)}},dependencies:[c.iby,c.qHy,c.lMi,c.uSe,c.BZu,v.Sq,v.bT,c.gLf,c.HUM,c.oMR,c.l_X,c.wPz,c.fvw,c.ISP,c._fv,c.UjT,M.V1,M.fz,c.HJA,c._rF,c.J1k,c.M9b,c.DcD,c.PsF,c.Mrl,c.eOK,c.rlA,c.Jyz,c.zfW,c.s$3,c.epl,c.L$K,c.VtU,c.E0T,f.xH,f.y7,f.me,f.wz,f.BC,f.vS,c.D7j,c.YpC,E,ce,c.dgQ],encapsulation:2})}return s})(),data:{title:$localize`Device List`}}];let ot=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.$C({type:s});static#i=this.\u0275inj=e.G2t({imports:[A.iI.forChild(st),A.iI]})}return s})(),at=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.$C({type:s});static#i=this.\u0275inj=e.G2t({imports:[ot,c.Dw2,c.Ied,v.MD,c.pc9,c.tHK,c.tmq,c.ayw,M.uM,c.fSQ,c.G95,c.krp,c.EJq,c.Q_q,c.MBE,f.YN,c.OeB,le,c.Ss0]})}return s})()},1986:(L,x,l)=>{l.d(x,{c:()=>G});var v=l(3236),f=l(8793),c=l(6697),e=l(9974),b=l(4360),p=l(5343),k=l(3703),D=l(3028),S=l(8750);function F(h,g){return g?_=>(0,f.x)(g.pipe((0,c.s)(1),function y(){return(0,e.N)((h,g)=>{h.subscribe((0,b._)(g,p.l))})}()),_.pipe(F(h))):(0,D.Z)((_,N)=>(0,S.Tg)(h(_,N)).pipe((0,c.s)(1),(0,k.u)(_)))}var j=l(1584);function G(h,g=v.E){const _=(0,j.O)(h,g);return F(()=>_)}}}]); \ No newline at end of file diff --git a/mikrofront/dist/html/80.afe9810ec5b397f8.js b/mikrofront/dist/html/80.afe9810ec5b397f8.js new file mode 100644 index 0000000..da18194 --- /dev/null +++ b/mikrofront/dist/html/80.afe9810ec5b397f8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[80],{7080:(L,x,l)=>{l.r(x),l.d(x,{DevicesModule:()=>at});var v=l(177),f=l(9417),c=l(8921),e=l(4438),b=l(8617),p=l(7336),y=l(1413),k=l(7786),D=l(8359),S=l(7673),w=l(5007),F=l(9172),G=l(5558),h=l(6697),g=l(6977),_=l(5964),N=l(1986),B=l(6600),$=l(6939),u=l(9969),H=l(8203),E=l(7987),Q=l(6860),K=l(5478);const Z=["mat-menu-item",""],W=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],J=["mat-icon, [matMenuItemIcon]","*"];function q(o,r){1&o&&(e.qSk(),e.j41(0,"svg",2),e.nrm(1,"polygon",3),e.k0s())}const ee=["*"];function te(o,r){if(1&o){const t=e.RV6();e.j41(0,"div",0),e.bIt("keydown",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s._handleKeydown(i))})("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closed.emit("click"))})("@transformMenu.start",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s._onAnimationStart(i))})("@transformMenu.done",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s._onAnimationDone(i))}),e.j41(1,"div",1),e.SdG(2),e.k0s()()}if(2&o){const t=e.XpG();e.HbH(t._classList),e.Y8G("id",t.panelId)("@transformMenu",t._panelAnimationState),e.BMQ("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const A=new e.nKC("MAT_MENU_PANEL");let V=(()=>{class o{constructor(t,n,i,s,a){this._elementRef=t,this._document=n,this._focusMonitor=i,this._parentMenu=s,this._changeDetectorRef=a,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new y.B,this._focused=new y.B,this._highlighted=!1,this._triggersSubmenu=!1,s?.addItem?.(this)}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,n):this._getHostElement().focus(n),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement.cloneNode(!0),n=t.querySelectorAll("mat-icon, .material-icons");for(let i=0;i enter",(0,u.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,u.iF)({opacity:1,transform:"scale(1)"}))),(0,u.kY)("* => void",(0,u.i0)("100ms 25ms linear",(0,u.iF)({opacity:0})))]),fadeInItems:(0,u.hZ)("fadeInItems",[(0,u.wk)("showing",(0,u.iF)({opacity:1})),(0,u.kY)("void => *",[(0,u.iF)({opacity:0}),(0,u.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ne=0;const oe=new e.nKC("mat-menu-default-options",{providedIn:"root",factory:function se(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let j=(()=>{class o{get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}set panelClass(t){const n=this._previousPanelClass,i={...this._classList};n&&n.length&&n.split(" ").forEach(s=>{i[s]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(s=>{i[s]=!0}),this._elementRef.nativeElement.className=""),this._classList=i}get classList(){return this.panelClass}set classList(t){this.panelClass=t}constructor(t,n,i,s){this._elementRef=t,this._ngZone=n,this._changeDetectorRef=s,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new e.rOR,this._classList={},this._panelAnimationState="void",this._animationDone=new y.B,this.closed=new e.bkB,this.close=this.closed,this.panelId="mat-menu-panel-"+ne++,this.overlayPanelClass=i.overlayPanelClass||"",this._xPosition=i.xPosition,this._yPosition=i.yPosition,this.backdropClass=i.backdropClass,this.overlapTrigger=i.overlapTrigger,this.hasBackdrop=i.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new b.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,F.Z)(this._directDescendantItems),(0,G.n)(t=>(0,k.h)(...t.map(n=>n._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t)),this._directDescendantItems.changes.subscribe(t=>{const n=this._keyManager;if("enter"===this._panelAnimationState&&n.activeItem?._hasFocus()){const i=t.toArray(),s=Math.max(0,Math.min(i.length-1,n.activeItemIndex||0));i[s]&&!i[s].disabled?n.setActiveItem(s):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,F.Z)(this._directDescendantItems),(0,G.n)(n=>(0,k.h)(...n.map(i=>i._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const n=t.keyCode,i=this._keyManager;switch(n){case p._f:(0,p.rp)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case p.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case p.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(n===p.i7||n===p.n6)&&i.setFocusOrigin("keyboard"),void i.onKeydown(t)}t.stopPropagation()}focusFirstItem(t="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,h.s)(1)).subscribe(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){const i=this._keyManager;i.setFocusOrigin(t).setFirstItemActive(),!i.activeItem&&n&&n.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const n=Math.min(this._baseElevation+t,24),i=`${this._elevationPrefix}${n}`,s=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));if(!s||s===this._previousElevation){const a={...this._classList};this._previousElevation&&(a[this._previousElevation]=!1),a[i]=!0,this._previousElevation=i,this._classList=a}}setPositionClasses(t=this.xPosition,n=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===t,"mat-menu-after":"after"===t,"mat-menu-above":"above"===n,"mat-menu-below":"below"===n},this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,F.Z)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(n){return new(n||o)(e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(oe),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["mat-menu"]],contentQueries:function(n,i,s){if(1&n&&(e.wni(s,ie,5),e.wni(s,V,5),e.wni(s,V,4)),2&n){let a;e.mGM(a=e.lsd())&&(i.lazyContent=a.first),e.mGM(a=e.lsd())&&(i._allItems=a),e.mGM(a=e.lsd())&&(i.items=a)}},viewQuery:function(n,i){if(1&n&&e.GBs(e.C4Q,5),2&n){let s;e.mGM(s=e.lsd())&&(i.templateRef=s.first)}},hostVars:3,hostBindings:function(n,i){2&n&&e.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[e.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[e.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[e.Mj6.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[e.Mj6.HasDecoratorInputTransform,"overlapTrigger","overlapTrigger",e.L39],hasBackdrop:[e.Mj6.HasDecoratorInputTransform,"hasBackdrop","hasBackdrop",t=>null==t?null:(0,e.L39)(t)],panelClass:[e.Mj6.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[e.Jv_([{provide:A,useExisting:o}]),e.GFd,e.aNF],ngContentSelectors:ee,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(n,i){1&n&&(e.NAR(),e.DNE(0,te,3,7,"ng-template"))},styles:['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-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-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;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:var(--mat-menu-item-trailing-spacing);padding-right:var(--mat-menu-item-leading-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]),.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon])[dir=rtl]{padding-left:var(--mat-menu-item-with-icon-trailing-spacing);padding-right:var(--mat-menu-item-with-icon-leading-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.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{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform: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:[P.transformMenu,P.fadeInItems]},changeDetection:0})}return o})();const z=new e.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const o=(0,e.WQX)(E.hJ);return()=>o.scrollStrategies.reposition()}}),re={provide:z,deps:[E.hJ],useFactory:function ae(o){return()=>o.scrollStrategies.reposition()}},X=(0,Q.BQ)({passive:!0});let ce=(()=>{class o{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(n=>{this._destroyMenu(n),("click"===n||"tab"===n)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(t,n,i,s,a,d,m,C,I){this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=d,this._dir=m,this._focusMonitor=C,this._ngZone=I,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=D.yU.EMPTY,this._hoverSubscription=D.yU.EMPTY,this._menuCloseSubscription=D.yU.EMPTY,this._changeDetectorRef=(0,e.WQX)(e.gRc),this._handleTouchStart=T=>{(0,b.w6)(T)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new e.bkB,this.onMenuOpen=this.menuOpened,this.menuClosed=new e.bkB,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=a instanceof j?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,X)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,X),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 t=this.menu;if(this._menuOpen||!t)return;const n=this._createOverlay(t),i=n.getConfig(),s=i.positionStrategy;this._setPosition(t,s),i.hasBackdrop=null==t.hasBackdrop?!this.triggersSubmenu():t.hasBackdrop,n.attach(this._getPortal(t)),t.lazyContent&&t.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(t),t instanceof j&&(t._startAnimation(),t._directDescendantItems.changes.pipe((0,g.Q)(t.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof j?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe((0,_.p)(i=>"void"===i.toState),(0,h.s)(1),(0,g.Q)(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(t){t.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,this._setMenuElevation(t),t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(t){if(t.setElevation){let n=0,i=t.parentMenu;for(;i;)n++,i=i.parentMenu;t.setElevation(n)}}_setIsMenuOpen(t){t!==this._menuOpen&&(this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t),this._changeDetectorRef.markForCheck())}_createOverlay(t){if(!this._overlayRef){const n=this._getOverlayConfig(t);this._subscribeToPositions(t,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(t){return new E.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:t.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:t.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t,n){t.setPositionClasses&&n.positionChanges.subscribe(i=>{const s="start"===i.connectionPair.overlayX?"after":"before",a="top"===i.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>t.setPositionClasses(s,a)):t.setPositionClasses(s,a)})}_setPosition(t,n){let[i,s]="before"===t.xPosition?["end","start"]:["start","end"],[a,d]="above"===t.yPosition?["bottom","top"]:["top","bottom"],[m,C]=[a,d],[I,T]=[i,s],R=0;if(this.triggersSubmenu()){if(T=i="before"===t.xPosition?"start":"end",s=I="end"===i?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const U=this._parentMaterialMenu.items.first;this._parentInnerPadding=U?U._getHostElement().offsetTop:0}R="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else t.overlapTrigger||(m="top"===a?"bottom":"top",C="top"===d?"bottom":"top");n.withPositions([{originX:i,originY:m,overlayX:I,overlayY:a,offsetY:R},{originX:s,originY:m,overlayX:T,overlayY:a,offsetY:R},{originX:i,originY:C,overlayX:I,overlayY:d,offsetY:-R},{originX:s,originY:C,overlayX:T,overlayY:d,offsetY:-R}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,S.of)(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,_.p)(a=>a!==this._menuItemInstance),(0,_.p)(()=>this._menuOpen)):(0,S.of)();return(0,k.h)(t,i,s,n)}_handleMousedown(t){(0,b._G)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const n=t.keyCode;(n===p.Fm||n===p.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(n===p.LE&&"ltr"===this.dir||n===p.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,_.p)(t=>t===this._menuItemInstance&&!t.disabled),(0,N.c)(0,w.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof j&&this.menu._isAnimating?this.menu._animationDone.pipe((0,h.s)(1),(0,N.c)(0,w.$),(0,g.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(t){return(!this._portal||this._portal.templateRef!==t.templateRef)&&(this._portal=new $.VA(t.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(n){return new(n||o)(e.rXU(E.hJ),e.rXU(e.aKT),e.rXU(e.c1b),e.rXU(z),e.rXU(A,8),e.rXU(V,10),e.rXU(H.dS,8),e.rXU(b.FN),e.rXU(e.SKi))};static#t=this.\u0275dir=e.FsC({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,i){1&n&&e.bIt("click",function(a){return i._handleClick(a)})("mousedown",function(a){return i._handleMousedown(a)})("keydown",function(a){return i._handleKeydown(a)}),2&n&&e.BMQ("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[e.Mj6.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[e.Mj6.None,"matMenuTriggerFor","menu"],menuData:[e.Mj6.None,"matMenuTriggerData","menuData"],restoreFocus:[e.Mj6.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0})}return o})(),le=(()=>{class o{static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275mod=e.$C({type:o});static#i=this.\u0275inj=e.G2t({providers:[re],imports:[v.MD,B.pZ,B.yE,E.z_,K.Gj,B.yE]})}return o})();var Y=l(7062),M=l(7390),de=l(7630),O=l(9130),me=l(9492),ue=l(1170);const pe=["grid"];function _e(o,r){if(1&o&&(e.j41(0,"option",51),e.EFF(1),e.k0s()),2&o){const t=r.$implicit,n=e.XpG(2);e.Y8G("value",t.id)("selected",n.selected_group==t.id),e.R7$(),e.SpI("",t.name," ")}}function he(o,r){if(1&o){const t=e.RV6();e.j41(0,"c-input-group")(1,"span",47),e.EFF(2,"Group"),e.k0s(),e.j41(3,"select",48),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.selected_group,i)||(s.selected_group=i),e.Njj(i)}),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.groupselected(i))}),e.j41(4,"option",49),e.EFF(5,"Select a group"),e.k0s(),e.DNE(6,_e,2,3,"option",50),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(3),e.R50("ngModel",t.selected_group),e.R7$(),e.Y8G("selected",0==t.selected_group),e.R7$(2),e.Y8G("ngForOf",t.groups)}}function ge(o,r){1&o&&e.nrm(0,"img",55)}function fe(o,r){1&o&&e.nrm(0,"i",56)}function ve(o,r){1&o&&e.nrm(0,"i",57)}function be(o,r){if(1&o&&(e.DNE(0,ge,1,0,"img",52)(1,fe,1,0,"i",53)(2,ve,1,0,"i",54),e.EFF(3)),2&o){const t=r.item.name,n=r.item;e.Y8G("ngIf","updating"==n.status),e.R7$(),e.Y8G("ngIf","updated"==n.status),e.R7$(),e.Y8G("ngIf","failed"==n.status),e.R7$(),e.SpI(" ",t," ")}}function Me(o,r){1&o&&e.EFF(0),2&o&&e.SpI(" ",r.item.arch," ")}function Ce(o,r){1&o&&e.nrm(0,"i",60)}function ye(o,r){1&o&&e.nrm(0,"i",61)}function ke(o,r){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.k0s(),e.DNE(2,Ce,1,0,"i",58)(3,ye,1,0,"i",59)),2&o){const t=r.item.current_firmware,n=r.item;e.R7$(),e.JRh(t),e.R7$(),e.Y8G("ngIf",n.update_availble),e.R7$(),e.Y8G("ngIf",n.update_availble)}}function De(o,r){1&o&&e.EFF(0),2&o&&e.SpI(" ",r.item.ip," ")}function we(o,r){1&o&&e.EFF(0),2&o&&e.SpI(" ",r.item.mac," ")}function Fe(o,r){1&o&&e.EFF(0),2&o&&e.SpI(" ",r.item.license," ")}function Ee(o,r){1&o&&e.EFF(0),2&o&&e.SpI(" ",r.item.interface," ")}function je(o,r){1&o&&e.EFF(0),2&o&&e.SpI(" ",r.item.created," ")}function Ie(o,r){1&o&&e.EFF(0),2&o&&e.SpI(" ",r.item.uptime," ")}function Te(o,r){1&o&&e.EFF(0),2&o&&e.SpI(" ",r.item.created," ")}function Re(o,r){if(1&o){const t=e.RV6();e.j41(0,"button",62),e.bIt("click",function(){const i=e.eBV(t).item,s=e.XpG();return e.Njj(s.show_detail(i))}),e.nrm(1,"i",63),e.j41(2,"small"),e.EFF(3," Details"),e.k0s()(),e.j41(4,"button",64),e.nrm(5,"i",65),e.k0s(),e.j41(6,"mat-menu",null,5)(8,"div",66)(9,"li",67),e.EFF(10,"Actions Menu"),e.k0s(),e.j41(11,"button",68),e.bIt("click",function(){const i=e.eBV(t).item,s=e.XpG();return e.Njj(s.single_device_action(i,"edit"))}),e.nrm(12,"i",69),e.j41(13,"small"),e.EFF(14," Edit Device"),e.k0s()(),e.j41(15,"button",68),e.bIt("click",function(){const i=e.eBV(t).item,s=e.XpG();return e.Njj(s.single_device_action(i,"firmware"))}),e.nrm(16,"i",70),e.j41(17,"small"),e.EFF(18," Check Firmware"),e.k0s()(),e.j41(19,"button",68),e.bIt("click",function(){const i=e.eBV(t).item,s=e.XpG();return e.Njj(s.single_device_action(i,"update"))}),e.nrm(20,"i",71),e.j41(21,"small"),e.EFF(22," Update Firmware"),e.k0s()(),e.j41(23,"button",68),e.bIt("click",function(){const i=e.eBV(t).item,s=e.XpG();return e.Njj(s.single_device_action(i,"logauth"))}),e.nrm(24,"i",72),e.j41(25,"small"),e.EFF(26," Show Auth Logs"),e.k0s()(),e.j41(27,"button",68),e.bIt("click",function(){const i=e.eBV(t).item,s=e.XpG();return e.Njj(s.single_device_action(i,"logacc"))}),e.nrm(28,"i",73),e.j41(29,"small"),e.EFF(30," Show Acc Logs"),e.k0s()(),e.j41(31,"button",68),e.bIt("click",function(){const i=e.eBV(t).item,s=e.XpG();return e.Njj(s.single_device_action(i,"backup"))}),e.nrm(32,"i",74),e.j41(33,"small"),e.EFF(34," Show Backups"),e.k0s()(),e.j41(35,"button",68),e.bIt("click",function(){const i=e.eBV(t).item,s=e.XpG();return e.Njj(s.single_device_action(i,"delete"))}),e.nrm(36,"i",75),e.j41(37,"small"),e.EFF(38," Delete Device"),e.k0s()()()()}if(2&o){const t=e.sdS(7);e.R7$(4),e.Y8G("matMenuTriggerFor",t),e.R7$(5),e.Y8G("active",!1)}}function xe(o,r){if(1&o){const t=e.RV6();e.j41(0,"c-navbar",76)(1,"c-container",77)(2,"a",78),e.EFF(3," Batch Action : "),e.k0s(),e.nrm(4,"button",79),e.j41(5,"div",80,6)(7,"c-navbar-nav",81)(8,"c-nav-item")(9,"c-dropdown",82)(10,"a",83),e.EFF(11,"Select"),e.k0s(),e.j41(12,"ul",84)(13,"li")(14,"button",85),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return i.ConfirmAction="checkfirm",e.Njj(i.ConfirmModalVisible=!0)}),e.EFF(15,"Check Firmware"),e.k0s()(),e.j41(16,"li")(17,"button",85),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return i.ConfirmAction="update",e.Njj(i.ConfirmModalVisible=!0)}),e.EFF(18,"Update"),e.k0s()()()()()()()()()}if(2&o){const t=e.sdS(6);e.R7$(),e.Y8G("fluid",!0),e.R7$(3),e.Y8G("cNavbarToggler",t),e.R7$(),e.Y8G("navbar",!0),e.R7$(4),e.Y8G("popper",!1)}}function Se(o,r){if(1&o){const t=e.RV6();e.j41(0,"div",86)(1,"h5",87),e.EFF(2,"Please select searching method"),e.k0s(),e.j41(3,"button",88),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.scanwizard(2,"chip"))}),e.nrm(4,"img",89)(5,"br"),e.EFF(6,"Layer2 Scan"),e.k0s(),e.j41(7,"button",90),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.scanwizard(2,"ip"))}),e.nrm(8,"img",91)(9,"br"),e.EFF(10,"TCP/IP Scan"),e.k0s()()}2&o&&(e.R7$(3),e.Y8G("disabled",!0))}function Ge(o,r){if(1&o){const t=e.RV6();e.j41(0,"div",92)(1,"h5",87),e.EFF(2,"Please Provide needed information"),e.k0s(),e.j41(3,"c-input-group",38)(4,"span",47),e.EFF(5,"Start IP"),e.k0s(),e.j41(6,"input",93),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.ip_scanner.start,i)||(s.ip_scanner.start=i),e.Njj(i)}),e.k0s(),e.j41(7,"span",47),e.EFF(8,"End IP"),e.k0s(),e.j41(9,"input",94),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.ip_scanner.end,i)||(s.ip_scanner.end=i),e.Njj(i)}),e.k0s()(),e.j41(10,"c-input-group",38)(11,"span",47),e.EFF(12,"Username"),e.k0s(),e.j41(13,"input",95),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.ip_scanner.user,i)||(s.ip_scanner.user=i),e.Njj(i)}),e.k0s()(),e.j41(14,"c-input-group",38)(15,"span",47),e.EFF(16,"Password"),e.k0s(),e.j41(17,"input",96),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.ip_scanner.password,i)||(s.ip_scanner.password=i),e.Njj(i)}),e.k0s()(),e.j41(18,"c-input-group",38)(19,"span",47),e.EFF(20,"Port"),e.k0s(),e.j41(21,"input",97),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.ip_scanner.port,i)||(s.ip_scanner.port=i),e.Njj(i)}),e.k0s()(),e.j41(22,"button",90),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.scanwizard(3,"ip"))}),e.EFF(23,"Start Scanning"),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(6),e.R50("ngModel",t.ip_scanner.start),e.Y8G("valid",t.checkvalid("start")),e.R7$(3),e.R50("ngModel",t.ip_scanner.end),e.Y8G("valid",t.checkvalid("end")),e.R7$(4),e.R50("ngModel",t.ip_scanner.user),e.R7$(4),e.R50("ngModel",t.ip_scanner.password),e.R7$(4),e.Y8G("valid",t.checkvalid("port")),e.R50("ngModel",t.ip_scanner.port)}}function Ne(o,r){if(1&o&&(e.j41(0,"div",98),e.qSk(),e.j41(1,"svg",99)(2,"g",100)(3,"g",101),e.nrm(4,"path",102),e.k0s(),e.nrm(5,"rect",103)(6,"rect",104)(7,"ellipse",105)(8,"ellipse",106)(9,"ellipse",107)(10,"path",108),e.k0s(),e.j41(11,"g",109)(12,"g",110),e.nrm(13,"polygon",111)(14,"polygon",112),e.k0s(),e.j41(15,"g",113),e.nrm(16,"polygon",114)(17,"polygon",115),e.k0s(),e.j41(18,"g",116),e.nrm(19,"polygon",117)(20,"polygon",118),e.k0s(),e.j41(21,"g",119),e.nrm(22,"polygon",120)(23,"polygon",121),e.k0s()()(),e.joV(),e.j41(24,"h5"),e.EFF(25),e.k0s()()),2&o){const t=e.XpG();e.R7$(25),e.JRh(t.scanwizard_prompt)}}function Be(o,r){if(1&o){const t=e.RV6();e.j41(0,"h6",122)(1,"button",123),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.show_exec())}),e.EFF(2,"Device scan logs"),e.k0s()()}}function Pe(o,r){1&o&&(e.j41(0,"small"),e.EFF(1,"Empty username and password means system default configuration"),e.k0s())}function Ye(o,r){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",r.item.started," ")}function Ae(o,r){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",r.item.start_ip," ")}function Ve(o,r){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",r.item.end_ip," ")}function ze(o,r){1&o&&e.EFF(0),2&o&&e.SpI(" ",r.item.ended," ")}function Xe(o,r){if(1&o){const t=e.RV6();e.j41(0,"button",130),e.bIt("click",function(){const i=e.eBV(t).item.result,s=e.XpG(2);return e.Njj(s.exportToCsv(i))}),e.EFF(1,"download"),e.k0s()}}function Oe(o,r){if(1&o&&(e.j41(0,"gui-grid",124)(1,"gui-grid-column",125),e.DNE(2,Ye,1,1,"ng-template"),e.k0s(),e.j41(3,"gui-grid-column",126),e.DNE(4,Ae,1,1,"ng-template"),e.k0s(),e.j41(5,"gui-grid-column",127),e.DNE(6,Ve,1,1,"ng-template"),e.k0s(),e.j41(7,"gui-grid-column",128),e.DNE(8,ze,1,1,"ng-template"),e.k0s(),e.j41(9,"gui-grid-column",129),e.DNE(10,Xe,2,0,"ng-template"),e.k0s()()),2&o){const t=e.XpG();e.Y8G("autoResizeWidth",!0)("searching",t.searching)("source",t.ExecutedData)("columnMenu",t.columnMenu)("sorting",t.sorting)("infoPanel",t.infoPanel)("autoResizeWidth",!0)("paging",t.paging)}}function Ue(o,r){1&o&&(e.j41(0,"span"),e.EFF(1,"Are you sure that You want to Check firmware of selected devices for update?"),e.k0s())}function Le(o,r){1&o&&(e.j41(0,"span"),e.EFF(1,"Are you sure that You want to "),e.j41(2,"code"),e.EFF(3,"update firmware"),e.k0s(),e.EFF(4," of selected devices?"),e.k0s())}function $e(o,r){if(1&o&&(e.qex(0),e.EFF(1," Are you sure that You want to"),e.j41(2,"code"),e.EFF(3),e.k0s(),e.nrm(4,"br")(5,"hr"),e.j41(6,"p",131),e.EFF(7," All Related Configuration will be deleted/Modified :"),e.nrm(8,"br")(9,"br"),e.EFF(10," * User Permision Related to this Device"),e.nrm(11,"br"),e.EFF(12," * Device Groups including this Device"),e.nrm(13,"br"),e.EFF(14," * All Logs related to this device"),e.nrm(15,"br"),e.k0s(),e.bVm()),2&o){const t=e.XpG();e.R7$(3),e.SpI("Delete Device ",t.selected_device.name," ?")}}function He(o,r){if(1&o){const t=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.check_firmware())}),e.EFF(1," Yes "),e.k0s()}}function Qe(o,r){if(1&o){const t=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.update_firmware())}),e.EFF(1," Yes "),e.k0s()}}function Ke(o,r){if(1&o){const t=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.delete_device())}),e.EFF(1," Yes,Delete Device "),e.k0s()}}function Ze(o,r){1&o&&e.nrm(0,"i",140)}function We(o,r){1&o&&e.nrm(0,"i",141)}function Je(o,r){if(1&o){const t=e.RV6();e.j41(0,"button",137),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.show_pass=!i.show_pass)}),e.DNE(1,Ze,1,0,"i",138)(2,We,1,0,"i",139),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.show_pass),e.R7$(),e.Y8G("ngIf",!t.show_pass)}}function qe(o,r){1&o&&e.nrm(0,"i",140)}function et(o,r){1&o&&e.nrm(0,"i",141)}function tt(o,r){if(1&o){const t=e.RV6();e.j41(0,"button",137),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.get_device_pass())}),e.DNE(1,qe,1,0,"i",138)(2,et,1,0,"i",139),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.show_pass),e.R7$(),e.Y8G("ngIf",!t.show_pass)}}function it(o,r){if(1&o&&(e.j41(0,"option",142),e.EFF(1),e.k0s()),2&o){const t=r.$implicit;e.Y8G("value",t),e.R7$(),e.JRh(t)}}function nt(o,r){if(1&o){const t=e.RV6();e.j41(0,"c-modal-body")(1,"c-input-group",38)(2,"span",47),e.EFF(3,"Username"),e.k0s(),e.j41(4,"input",132),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.selected_device.editform.user_name,i)||(s.selected_device.editform.user_name=i),e.Njj(i)}),e.k0s()(),e.j41(5,"c-input-group",38)(6,"span",47),e.EFF(7,"Password"),e.k0s(),e.j41(8,"input",133),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.selected_device.editform.password,i)||(s.selected_device.editform.password=i),e.Njj(i)}),e.k0s(),e.DNE(9,Je,3,2,"button",134)(10,tt,3,2,"button",134),e.k0s(),e.j41(11,"c-input-group",38)(12,"span",47),e.EFF(13,"ip"),e.k0s(),e.j41(14,"input",95),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.selected_device.editform.ip,i)||(s.selected_device.editform.ip=i),e.Njj(i)}),e.k0s()(),e.j41(15,"c-input-group",38)(16,"span",47),e.EFF(17,"peer ip"),e.k0s(),e.j41(18,"select",135),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.selected_device.editform.peer_ip,i)||(s.selected_device.editform.peer_ip=i),e.Njj(i)}),e.DNE(19,it,2,2,"option",136),e.k0s()()()}if(2&o){const t=e.XpG();e.R7$(4),e.R50("ngModel",t.selected_device.editform.user_name),e.R7$(4),e.Y8G("type",t.show_pass?"text":"password"),e.R50("ngModel",t.selected_device.editform.password),e.R7$(),e.Y8G("ngIf",!t.ispro),e.R7$(),e.Y8G("ngIf",t.ispro),e.R7$(4),e.R50("ngModel",t.selected_device.editform.ip),e.R7$(4),e.R50("ngModel",t.selected_device.editform.peer_ip),e.R7$(),e.Y8G("ngForOf",t.selected_device.editform.ips)}}const ot=[{path:"",component:(()=>{class o{constructor(t,n,i,s){this.data_provider=t,this.route=n,this.router=i,this.login_checker=s,this.ispro=!1,this.source=[],this.columns=[],this.loading=!0,this.rows=[],this.upgrades=[],this.updates=[],this.scanwizard_step=1,this.scanwizard_modal=!1,this.ConfirmModalVisible=!1,this.EditDevModalVisible=!1,this.ConfirmAction="checkfirm",this.scan_type="ip",this.scanwizard_prompt="Scanning Network!",this.groups=[],this.selected_group=0,this.selected_devices={},this.selected_device={},this.show_pass=!1,this.ExecutedDataModalVisible=!1,this.ExecutedData=[],this.toasterForm={autohide:!0,delay:3e3,position:"fixed",fade:!0,closeButton:!0},this.rowClass={class:"row-highlighted"},this.sorting={enabled:!0,multiSorting:!0},this.searching={enabled:!0,placeholder:"Search Devices"},this.paging={enabled:!0,page:1,pageSize:10,pageSizes:[5,10,25,50],display:M.sE.ADVANCED},this.columnMenu={enabled:!0,sort:!0,columnsManager:!0},this.infoPanel={enabled:!0,infoDialog:!1,columnsManager:!0,schemaManager:!0},this.rowSelection={enabled:!0,type:M.AU.CHECKBOX,mode:M.fL.MULTIPLE};var a=this;this.login_checker.isLoggedIn()||setTimeout(function(){a.router.navigate(["login"])},100),this.data_provider.getSessionInfo().then(m=>{a.uid=m.uid,a.uname=m.name,a.tz=m.tz,a.ispro=m.ISPRO,"admin"!=m.role&&setTimeout(function(){a.router.navigate(["/user/dashboard"])},100)})}ngOnInit(){this.selected_group=Number(this.route.snapshot.paramMap.get("id")),this.initGridTable(),this.get_groups()}show_detail(t){this.router.navigate(["/device-stats",{id:t.id}])}single_device_action(t,n){switch(this.gridComponent.api.unselectAll(),this.Selectedrows=[t.id],n){case"edit":this.edit_device_form(t);break;case"firmware":this.check_firmware();break;case"update":this.update_firmware();break;case"upgrade":this.upgrade_firmware();break;case"logauth":this.router.navigate(["/authlog",{devid:t.id}]);break;case"logacc":this.router.navigate(["/accountlog",{devid:t.id}]);break;case"backup":this.router.navigate(["/backups",{devid:t.id}]);break;case"reboot":this.reboot_devices();break;case"delete":this.ConfirmAction="delete",this.ConfirmModalVisible=!0}}edit_device_form(t){var n=this;this.selected_device=t,this.data_provider.get_editform(t.id).then(i=>{"error"in i?"error"in i&&i.error.indexOf("Unauthorized")&&n.show_toast("Error","You are not authorized to perform this action","danger"):(this.selected_device.editform=i,this.EditDevModalVisible=!0)})}save_device(){var t=this;this.data_provider.save_editform(this.selected_device.editform).then(n=>{t.show_toast("Success","Device Saved","success"),this.initGridTable(),this.EditDevModalVisible=!1})}groupselected(t){this.selected_group=t.target.value,0!=this.selected_group&&this.router.navigate([".",{id:this.selected_group}]),this.initGridTable()}delete_device(){var t=this;this.ConfirmModalVisible=!1,this.data_provider.delete_devices(this.Selectedrows).then(n=>{"error"in n&&n.error.indexOf("Unauthorized")?t.show_toast("Error","You are not authorized to perform this action","danger"):(t.show_toast("Success","Device Deleted","success"),this.initGridTable())})}onSelectedRows(t){this.rows=t,this.Selectedrows=t.map(n=>n.source.id)}checkvalid(t){var n=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;return"start"==t?n.test(this.ip_scanner.start):"end"==t?n.test(this.ip_scanner.end):"port"==t&&(""==this.ip_scanner.port||!!Number(this.ip_scanner.port))}scanwizard(t,n){var i=this;this.data_provider.scan_devs(this.scan_type,{}).then(s=>{if(1==s.status)return i.scanwizard_step=3,void this.wait_scan();if(1==t&&(i.scan_type="",i.ip_scanner={start:"",end:"",port:"",user:"",password:""}),2==t&&(i.scan_type="","ip"==n?i.scan_type="ip":"chip"==n&&(i.scan_type="mac")),3==t)if("ip"==i.scan_type){if(""==i.ip_scanner.start||""==i.ip_scanner.end||!i.checkvalid("start")||!i.checkvalid("end")||!i.checkvalid("port"))return;""==i.ip_scanner.port&&(i.ip_scanner.port=!1),""==i.ip_scanner.user&&(i.ip_scanner.user=!1),""==i.ip_scanner.password&&(i.ip_scanner.password=!1),i.data_provider.scan_devs(i.scan_type,i.ip_scanner).then(a=>{i.scanwizard_prompt="Scanning Network!",i.wait_scan()})}else"chip"==n&&i.data_provider.scan_devs(i.scan_type,i.ip_scanner).then(a=>{});"error"in s&&s.error.indexOf("Unauthorized")?i.show_toast("Error","You are not authorized to perform this action","danger"):i.scanwizard_step=t})}wait_scan(){clearTimeout(this.scan_timer);var t=this;this.scan_timer=setTimeout(function(){t.data_provider.scan_devs(t.scan_type,{}).then(n=>{0==n.status?(t.initGridTable(),t.scanwizard_prompt="Scanning done! Reloading data",setTimeout(function(){t.scanwizard_modal=!1},3e3)):t.wait_scan()})},3e3)}logger(t){console.dir(t)}handleScanwizard_modal(t){this.scanwizard_modal=t}show_toast(t,n,i){const{...s}={...this.toasterForm,color:i,title:t,body:n};this.viewChildren.first.addToast(de.y,s,{}).instance.closeButton=s.closeButton}check_firmware(){var t=this;this.data_provider.check_firmware(this.Selectedrows.toString()).then(n=>{"error"in n&&n.error.indexOf("Unauthorized")?t.show_toast("Error","You are not authorized to perform this action","danger"):(t.show_toast("info","Checking Firmwares","light"),t.ConfirmModalVisible=!1,setTimeout(function(){t.Selectedrows.length<1&&t.initGridTable()},1))})}update_firmware(){var t=this;this.data_provider.update_firmware(this.Selectedrows.toString()).then(n=>{"error"in n&&n.error.indexOf("Unauthorized")?t.show_toast("Error","You are not authorized to perform this action","danger"):(t.show_toast("info","Updating Firmwares Sent","light"),t.initGridTable())})}upgrade_firmware(){var t=this;this.data_provider.upgrade_firmware(this.Selectedrows.toString()).then(n=>{"error"in n&&n.error.indexOf("Unauthorized")?t.show_toast("Error","You are not authorized to perform this action","danger"):(t.show_toast("info","Upgrading Firmwares","light"),t.initGridTable())})}reboot_devices(){var t=this;this.data_provider.reboot_devices(this.Selectedrows.toString()).then(n=>{"error"in n&&n.error.indexOf("Unauthorized")?t.show_toast("Error","You are not authorized to perform this action","danger"):(t.show_toast("info","Reboot sent","light"),t.ConfirmModalVisible=!t.ConfirmModalVisible,t.initGridTable())})}get_groups(){var t=this;this.data_provider.get_devgroup_list().then(n=>{"error"in n&&n.error.indexOf("Unauthorized")?t.show_toast("Error","You are not authorized to perform this action","danger"):t.groups=(!("status"in n)||"failed"!=n.status)&&n})}initGridTable(){var t=this;t.upgrades=[],t.updates=[],clearTimeout(this.list_update_timer),t.data_provider.get_dev_list({group_id:this.selected_group,search:!1}).then(i=>{"error"in i&&i.error.indexOf("Unauthorized")?t.show_toast("Error","You are not authorized to perform this action","danger"):(t.source=i.map(s=>(s.upgrade_availble&&t.upgrades.push(s),s.update_availble&&t.updates.push(s),s)),t.device_interval(),t.loading=!1)})}device_interval(){var t=this;clearTimeout(this.list_update_timer),t.list_update_timer=setTimeout(function(){t.Selectedrows&&t.Selectedrows.length<1&&t.initGridTable()},1e4)}sanitizeString(t){return t?t.toString().replace(/"/g,'"').replace(/'/g,"'"):""}exportToCsv(t){const n=t,i=this.getColumns(n),s=this.convertToCsv(n,i);this.downloadFile(s,"data.csv","text/csv")}getColumns(t){const n=[];return t.forEach(i=>{Object.keys(i).forEach(s=>{n.includes(s)||n.push(s)})}),n}convertToCsv(t,n){var i=this;let s="";return s+=n.join(",")+"\n",t.forEach(a=>{const d=[];n.forEach(m=>{d.push('"'+i.sanitizeString(a[m])+'"')}),s+=d.join(",")+"\n"}),s}downloadFile(t,n,i){const s=new Blob([t],{type:i}),a=window.navigator;if(a.msSaveOrOpenBlob)a.msSaveBlob(s,n);else{const d=document.createElement("a");d.setAttribute("href",URL.createObjectURL(s)),d.setAttribute("download",n),d.style.visibility="hidden",document.body.appendChild(d),d.click(),document.body.removeChild(d)}}get_device_pass(){var t=this;t.selected_device.editform.password="Loading ...",t.ispro&&!this.show_pass?t.data_provider.get_device_pass(this.selected_device.id).then(n=>{"error"in n&&"error"in n&&n.error.indexOf("Unauthorized")?t.show_toast("Error","You are not authorized to perform this action","danger"):(t.selected_device.editform.password=n.password,this.show_pass=!this.show_pass)}):this.show_pass=!this.show_pass}show_exec(){var t=this;this.ExecutedDataModalVisible=!0,this.data_provider.scan_results().then(n=>{if("error"in n&&n.error.indexOf("Unauthorized"))t.show_toast("Error","You are not authorized to perform this action","danger");else{let i=1;t.ExecutedData=n.data.map(s=>(s.index=i,s.ended=(0,O.qD)(s.created.split(".")[0]+".000Z",t.tz,"yyyy-MM-dd HH:mm:ss XXX"),s.info=JSON.parse(s.info),s.started=(0,O.qD)(s.info.created.split(".")[0]+".000Z",t.tz,"yyyy-MM-dd HH:mm:ss XXX"),s.start_ip=s.info.start_ip,s.end_ip=s.info.end_ip,s.result=JSON.parse(s.result),i+=1,s))}})}ngOnDestroy(){clearTimeout(this.scan_timer)}static#e=this.\u0275fac=function(n){return new(n||o)(e.rXU(me.C),e.rXU(Y.nX),e.rXU(Y.Ix),e.rXU(ue.T))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["ng-component"]],viewQuery:function(n,i){if(1&n&&(e.GBs(pe,7),e.GBs(c.E0T,5)),2&n){let s;e.mGM(s=e.lsd())&&(i.gridComponent=s.first),e.mGM(s=e.lsd())&&(i.viewChildren=s)}},decls:102,vars:45,consts:[["grid",""],["ScannerModal",""],["ExecutedDataModal",""],["ConfirmModal",""],["EditDevModal",""],["menu","matMenu"],["collapseRef","cCollapse"],["xs",""],[1,"mb-4"],["xs","",3,"lg"],[2,"text-align","right"],["cButton","","color","danger","size","sm",1,"mx-1",2,"color","#fff"],["cButton","","color","warning","size","sm",1,"mx-1",2,"color","#fff"],["cButton","","color","dark","size","sm",1,"mx-1",2,"color","#fff",3,"click","cModalToggle"],[1,"fa-solid","fa-magnifying-glass"],[3,"lg"],[4,"ngIf"],[3,"selectedRows","rowClass","source","searching","paging","columnMenu","sorting","infoPanel","rowSelection","autoResizeWidth"],["header","Name","field","name"],["header","CPU Type","field","arch"],["header","Firmware","field","current_firmware"],["header","IP Address","field","ip"],["header","MAC Address","field","mac"],["header","License","field","license",3,"enabled"],["header","Interface","field","interface",3,"enabled"],["header","Created","field","created",3,"enabled"],["header","Uptime","field","uptime"],["align","center","header","Action",3,"cellEditing","sorting"],["class","bg-light","colorScheme","light","expand","lg",4,"ngIf"],["backdrop","static","id","ScannerModal",3,"visibleChange","visible"],["cModalTitle",""],["cButtonClose","",3,"cModalToggle"],["class","mb-5","style","text-align: center;",4,"ngIf"],["class","mb-2","style","text-align: center;",4,"ngIf"],["class","mwand",4,"ngIf"],["style","margin: 0 auto;",4,"ngIf"],["backdrop","static","size","xl","id","ExecutedDataModal",3,"visibleChange","visible"],["cButtonClose","",3,"click"],[1,"mb-3"],[3,"autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","paging",4,"ngIf"],["cButton","","color","secondary",3,"click"],["backdrop","static","id","runConfirmModal",3,"visibleChange","visible"],["cButton","","color","danger",3,"click",4,"ngIf"],["cButton","","color","info",3,"cModalToggle"],["backdrop","static","id","EditDevModal",3,"visibleChange","visible"],["cButton","","color","danger",3,"click"],["position","fixed","placement","top-end"],["cInputGroupText",""],["cSelect","",3,"ngModelChange","change","ngModel"],["value","0",3,"selected"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"],["width","20px","src","assets/img/loading.svg",4,"ngIf"],["cTooltip","Tooltip text","style","color: green; margin-right: 3px;font-size: .7em;","class","fa-solid fa-check",4,"ngIf"],["cTooltip","Update failed","style","color: red; margin-right: 3px;font-size: .7em;","class","fa-solid fa-x",4,"ngIf"],["width","20px","src","assets/img/loading.svg"],["cTooltip","Tooltip text",1,"fa-solid","fa-check",2,"color","green","margin-right","3px","font-size",".7em"],["cTooltip","Update failed",1,"fa-solid","fa-x",2,"color","red","margin-right","3px","font-size",".7em"],["cTooltip","Firmware Update availble","class","fa-solid fa-up-long text-primary mx-1",4,"ngIf"],["cTooltip","Device Firmware not Upgraded","class","fa-solid fa-microchip text-danger mx-1",4,"ngIf"],["cTooltip","Firmware Update availble",1,"fa-solid","fa-up-long","text-primary","mx-1"],["cTooltip","Device Firmware not Upgraded",1,"fa-solid","fa-microchip","text-danger","mx-1"],["size","sm","shape","rounded-0","variant","outline","cButton","","color","primary",2,"border","none","padding","4px 7px",3,"click"],[1,"fa-regular","fa-eye"],["color","primary","shape","rounded-0","variant","ghost","cButton","",2,"padding","4px 7px",3,"matMenuTriggerFor"],[1,"fa-solid","fa-bars"],["cListGroup",""],["cListGroupItem","","color","dark",3,"active"],["size","sm","cListGroupItem","",2,"padding","4px 7px",3,"click"],[1,"fa-solid","fa-pencil"],[1,"text-primary","fa-solid","fa-magnifying-glass"],[1,"text-primary","fa-solid","fa-upload"],[1,"text-primary","fa-regular","fa-clock"],[1,"text-primary","fa-solid","fa-table-list"],[1,"text-success","fa-solid","fa-database"],[1,"text-danger","fa-solid","fa-trash"],["colorScheme","light","expand","lg",1,"bg-light"],[3,"fluid"],["cNavbarBrand","","href","javascript:;"],[3,"cNavbarToggler"],["cCollapse","",3,"navbar"],[1,"me-auto","mb-2","mb-lg-0"],["variant","nav-item",3,"popper"],["cDropdownToggle","","cNavLink",""],["cDropdownMenu","","dark",""],["cDropdownItem","",3,"click"],[1,"mb-5",2,"text-align","center"],[1,"mb-5"],["cButton","","color","info","size","lg",1,"mx-1",3,"click","disabled"],["width","100px","src","assets/img/chip.png"],["cButton","","color","info","size","lg",1,"mx-1",3,"click"],["width","100px","src","assets/img/tcpip.png"],[1,"mb-2",2,"text-align","center"],["aria-label","start","cFormControl","","placeholder","192.168.1.1",3,"ngModelChange","ngModel","valid"],["aria-label","end","cFormControl","","placeholder","192.168.1.255",3,"ngModelChange","ngModel","valid"],["aria-label","start","cFormControl","","placeholder","Default username",3,"ngModelChange","ngModel"],["aria-label","end","cFormControl","","placeholder","********",3,"ngModelChange","ngModel"],["aria-label","end","cFormControl","","placeholder","8728",3,"ngModelChange","valid","ngModel"],[1,"mwand"],["viewBox","0 0 203 148.27"],["id","wand"],[1,"cls-1"],["d","M194.63,152.18v-7.76C194.6,147,194.6,149.59,194.63,152.18Z","transform","translate(-10 -31.06)"],["x","5.07","y","129.83","width","117.08","height","17.1","transform","translate(-77.95 30.6) rotate(-35.06)",1,"cls-2"],["x","106.38","y","88.26","width","32.89","height","17.1","transform","translate(-43.33 57.07) rotate(-35.06)",1,"cls-3"],["cx","136.21","cy","87.42","rx","3.29","ry","8.55","transform","translate(-35.5 63.06) rotate(-35.06)",1,"cls-4"],["cx","15.6","cy","172.07","rx","3.29","ry","8.55","transform","translate(-106.02 9.13) rotate(-35.06)",1,"cls-2"],["cx","109.5","cy","106.16","rx","3.29","ry","8.55","transform","translate(-51.12 51.12) rotate(-35.06)",1,"cls-3"],["d","M138.71,85.25s4.26,6.06,2.68,9L20.15,179.32s-3.27.49-7.53-5.57Z","transform","translate(-10 -31.06)",1,"cls-5"],["id","stars"],["id","star1"],["points","142.22 4.88 138.59 13.13 147.13 17.7 137.94 19.78 139.9 28.82 132.07 23.15 125.96 29.86 125.38 20.71 115.81 20.03 122.93 14.3 117.1 6.74 126.55 8.74 128.85 0 133.51 8.22 142.22 4.88",1,"cls-6"],["points","142.29 4.89 136.56 13.87 144.96 17.35 136.17 18.98 138.3 26.2 131.33 20.74 125.88 29.85 132.06 23.11 139.91 28.82 137.95 19.81 147.12 17.74 138.59 13.11 142.29 4.89",1,"cls-7"],["id","star2"],["points","166.3 14.45 165.13 17.09 167.87 18.55 164.93 19.22 165.55 22.12 163.04 20.3 161.09 22.45 160.9 19.52 157.83 19.3 160.11 17.46 158.25 15.04 161.27 15.68 162.01 12.88 163.51 15.52 166.3 14.45",1,"cls-6"],["points","166.32 14.45 164.48 17.33 167.18 18.44 164.36 18.96 165.04 21.28 162.81 19.53 161.06 22.45 163.04 20.29 165.56 22.12 164.93 19.23 167.87 18.57 165.13 17.08 166.32 14.45",1,"cls-7"],["id","star3"],["points","202.01 38.12 194.78 46.34 203 54.75 191.61 53.79 190.56 64.97 183.57 55.54 174.05 61.06 176.73 50.27 165.91 45.98 176.24 41.95 172.26 31.08 182.46 36.84 188.33 27.58 190.71 38.8 202.01 38.12",1,"cls-6"],["points","202.08 38.15 192.17 46.45 200.62 53.55 189.85 52.21 189.67 61.34 183.6 52.48 173.96 61.03 183.58 55.49 190.57 64.97 191.6 53.83 202.97 54.79 194.8 46.31 202.08 38.15",1,"cls-7"],["id","star4"],["points","155.07 63.05 153.01 67.75 157.87 70.35 152.64 71.52 153.75 76.67 149.3 73.44 145.83 77.25 145.5 72.05 140.06 71.67 144.1 68.41 140.79 64.11 146.16 65.25 147.47 60.28 150.13 64.95 155.07 63.05",1,"cls-6"],["points","155.11 63.06 151.86 68.17 156.63 70.14 151.63 71.07 152.84 75.17 148.88 72.07 145.78 77.25 149.29 73.42 153.76 76.67 152.65 71.54 157.86 70.36 153.01 67.73 155.11 63.06",1,"cls-7"],[2,"margin","0 auto"],["cButton","","color","primary","variant","outline",2,"margin","0 auto",3,"click"],[3,"autoResizeWidth","searching","source","columnMenu","sorting","infoPanel","paging"],["header","Start time","field","start"],["header","Start ip","field","start_ip"],["header","End ip","field","end_ip"],["header","End time","field","end"],["header","Logs","field","mac","align","center"],["color","primary","cButton","",3,"click"],[1,"text-danger"],["aria-label","start","cFormControl","","placeholder"," username",3,"ngModelChange","ngModel"],["aria-label","start","cFormControl","","placeholder"," username",3,"ngModelChange","type","ngModel"],["cButton","","color","secondary","variant","outline",3,"click",4,"ngIf"],["aria-label","Default select example","cFormControl","","cSelect","",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["cButton","","color","secondary","variant","outline",3,"click"],["class","fa-solid fa-eye",4,"ngIf"],["class","fa-solid fa-eye-slash",4,"ngIf"],[1,"fa-solid","fa-eye"],[1,"fa-solid","fa-eye-slash"],[3,"value"]],template:function(n,i){if(1&n){const s=e.RV6();e.j41(0,"c-row")(1,"c-col",7)(2,"c-card",8)(3,"c-card-header")(4,"c-row")(5,"c-col",9),e.EFF(6," Devices "),e.k0s(),e.j41(7,"c-col",9)(8,"h6",10)(9,"button",11),e.EFF(10),e.k0s(),e.j41(11,"button",12),e.EFF(12),e.k0s(),e.EFF(13," | "),e.j41(14,"button",13),e.bIt("click",function(){return e.eBV(s),e.Njj(i.scanwizard(1,""))}),e.nrm(15,"i",14),e.EFF(16," Scanner"),e.k0s()()()()(),e.j41(17,"c-card-body")(18,"c-row")(19,"c-col",15),e.DNE(20,he,7,3,"c-input-group",16),e.k0s()(),e.j41(21,"gui-grid",17,0),e.bIt("selectedRows",function(d){return e.eBV(s),e.Njj(i.onSelectedRows(d))}),e.j41(23,"gui-grid-column",18),e.DNE(24,be,4,4,"ng-template"),e.k0s(),e.j41(25,"gui-grid-column",19),e.DNE(26,Me,1,1,"ng-template"),e.k0s(),e.j41(27,"gui-grid-column",20),e.DNE(28,ke,4,3,"ng-template"),e.k0s(),e.j41(29,"gui-grid-column",21),e.DNE(30,De,1,1,"ng-template"),e.k0s(),e.j41(31,"gui-grid-column",22),e.DNE(32,we,1,1,"ng-template"),e.k0s(),e.j41(33,"gui-grid-column",23),e.DNE(34,Fe,1,1,"ng-template"),e.k0s(),e.j41(35,"gui-grid-column",24),e.DNE(36,Ee,1,1,"ng-template"),e.k0s(),e.j41(37,"gui-grid-column",25),e.DNE(38,je,1,1,"ng-template"),e.k0s(),e.j41(39,"gui-grid-column",26),e.DNE(40,Ie,1,1,"ng-template"),e.k0s(),e.j41(41,"gui-grid-column",25),e.DNE(42,Te,1,1,"ng-template"),e.k0s(),e.j41(43,"gui-grid-column",27),e.DNE(44,Re,39,2,"ng-template"),e.k0s()(),e.DNE(45,xe,19,4,"c-navbar",28),e.k0s()()()(),e.j41(46,"c-modal",29,1),e.bIt("visibleChange",function(d){return e.eBV(s),e.Njj(i.handleScanwizard_modal(d))}),e.j41(48,"c-modal-header")(49,"h5",30),e.EFF(50,"Scanner Wizard"),e.k0s(),e.nrm(51,"button",31),e.k0s(),e.j41(52,"c-modal-body"),e.DNE(53,Se,11,1,"div",32)(54,Ge,24,8,"div",33)(55,Ne,26,1,"div",34),e.k0s(),e.j41(56,"c-modal-footer"),e.DNE(57,Be,3,0,"h6",35)(58,Pe,2,0,"small",16),e.k0s()(),e.j41(59,"c-modal",36,2),e.mxI("visibleChange",function(d){return e.eBV(s),e.DH7(i.ExecutedDataModalVisible,d)||(i.ExecutedDataModalVisible=d),e.Njj(d)}),e.j41(61,"c-modal-header")(62,"h5",30),e.EFF(63,"Scan History : "),e.k0s(),e.j41(64,"button",37),e.bIt("click",function(){return e.eBV(s),e.Njj(i.ExecutedDataModalVisible=!i.ExecutedDataModalVisible)}),e.k0s()(),e.j41(65,"c-modal-body")(66,"c-input-group",38),e.DNE(67,Oe,11,8,"gui-grid",39),e.nrm(68,"br"),e.k0s(),e.nrm(69,"hr"),e.k0s(),e.j41(70,"c-modal-footer")(71,"button",40),e.bIt("click",function(){return e.eBV(s),e.Njj(i.ExecutedDataModalVisible=!i.ExecutedDataModalVisible)}),e.EFF(72," Close "),e.k0s()()(),e.j41(73,"c-modal",41,3),e.mxI("visibleChange",function(d){return e.eBV(s),e.DH7(i.ConfirmModalVisible,d)||(i.ConfirmModalVisible=d),e.Njj(d)}),e.j41(75,"c-modal-header")(76,"h6",30),e.EFF(77,"Please Confirm Action "),e.k0s(),e.nrm(78,"button",31),e.k0s(),e.j41(79,"c-modal-body"),e.DNE(80,Ue,2,0,"span",16)(81,Le,5,0,"span",16)(82,$e,16,1,"ng-container",16),e.k0s(),e.j41(83,"c-modal-footer"),e.DNE(84,He,2,0,"button",42)(85,Qe,2,0,"button",42)(86,Ke,2,0,"button",42),e.j41(87,"button",43),e.EFF(88," Cancel "),e.k0s()()(),e.j41(89,"c-modal",44,4),e.mxI("visibleChange",function(d){return e.eBV(s),e.DH7(i.EditDevModalVisible,d)||(i.EditDevModalVisible=d),e.Njj(d)}),e.j41(91,"c-modal-header")(92,"h6",30),e.EFF(93,"Editing Device"),e.k0s(),e.nrm(94,"button",31),e.k0s(),e.DNE(95,nt,20,8,"c-modal-body",16),e.j41(96,"c-modal-footer")(97,"button",45),e.bIt("click",function(){return e.eBV(s),e.Njj(i.save_device())}),e.EFF(98," Save "),e.k0s(),e.j41(99,"button",43),e.EFF(100," Cancel "),e.k0s()()(),e.nrm(101,"c-toaster",46)}if(2&n){const s=e.sdS(47),a=e.sdS(74),d=e.sdS(90);e.R7$(5),e.Y8G("lg",3),e.R7$(2),e.Y8G("lg",9),e.R7$(3),e.SpI("",i.updates.length," Updatable "),e.R7$(2),e.SpI("",i.upgrades.length," Upgradable"),e.R7$(2),e.Y8G("cModalToggle",s.id),e.R7$(5),e.Y8G("lg",3),e.R7$(),e.Y8G("ngIf",i.groups.length>0),e.R7$(),e.Y8G("rowClass",i.rowClass)("source",i.source)("searching",i.searching)("paging",i.paging)("columnMenu",i.columnMenu)("sorting",i.sorting)("infoPanel",i.infoPanel)("rowSelection",i.rowSelection)("autoResizeWidth",!0),e.R7$(12),e.Y8G("enabled",!1),e.R7$(2),e.Y8G("enabled",!1),e.R7$(2),e.Y8G("enabled",!1),e.R7$(4),e.Y8G("enabled",!1),e.R7$(2),e.Y8G("cellEditing",!1)("sorting",!1),e.R7$(2),e.Y8G("ngIf",0!=i.rows.length),e.R7$(),e.Y8G("visible",i.scanwizard_modal),e.R7$(5),e.Y8G("cModalToggle",s.id),e.R7$(2),e.Y8G("ngIf",1==i.scanwizard_step),e.R7$(),e.Y8G("ngIf",2==i.scanwizard_step&&"ip"==i.scan_type),e.R7$(),e.Y8G("ngIf",3==i.scanwizard_step),e.R7$(2),e.Y8G("ngIf",1==i.scanwizard_step),e.R7$(),e.Y8G("ngIf","ip"==i.scan_type),e.R7$(),e.R50("visible",i.ExecutedDataModalVisible),e.R7$(8),e.Y8G("ngIf",i.ExecutedDataModalVisible),e.R7$(6),e.R50("visible",i.ConfirmModalVisible),e.R7$(5),e.Y8G("cModalToggle",a.id),e.R7$(2),e.Y8G("ngIf","checkfirm"==i.ConfirmAction),e.R7$(),e.Y8G("ngIf","update"==i.ConfirmAction),e.R7$(),e.Y8G("ngIf","delete"==i.ConfirmAction),e.R7$(2),e.Y8G("ngIf","checkfirm"==i.ConfirmAction),e.R7$(),e.Y8G("ngIf","update"==i.ConfirmAction),e.R7$(),e.Y8G("ngIf","delete"==i.ConfirmAction),e.R7$(),e.Y8G("cModalToggle",a.id),e.R7$(2),e.R50("visible",i.EditDevModalVisible),e.R7$(5),e.Y8G("cModalToggle",d.id),e.R7$(),e.Y8G("ngIf",i.EditDevModalVisible),e.R7$(4),e.Y8G("cModalToggle",d.id)}},dependencies:[c.iby,c.qHy,c.lMi,c.uSe,c.BZu,v.Sq,v.bT,c.gLf,c.HUM,c.oMR,c.l_X,c.wPz,c.fvw,c.ISP,c._fv,c.UjT,M.V1,M.fz,c.HJA,c._rF,c.J1k,c.M9b,c.DcD,c.PsF,c.Mrl,c.eOK,c.rlA,c.Jyz,c.zfW,c.s$3,c.epl,c.L$K,c.VtU,c.E0T,f.xH,f.y7,f.me,f.wz,f.BC,f.vS,c.D7j,c.YpC,j,ce,c.dgQ],encapsulation:2})}return o})(),data:{title:$localize`Device List`}}];let st=(()=>{class o{static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275mod=e.$C({type:o});static#i=this.\u0275inj=e.G2t({imports:[Y.iI.forChild(ot),Y.iI]})}return o})(),at=(()=>{class o{static#e=this.\u0275fac=function(n){return new(n||o)};static#t=this.\u0275mod=e.$C({type:o});static#i=this.\u0275inj=e.G2t({imports:[st,c.Dw2,c.Ied,v.MD,c.pc9,c.tHK,c.tmq,c.ayw,M.uM,c.fSQ,c.G95,c.krp,c.EJq,c.Q_q,c.MBE,f.YN,c.OeB,le,c.Ss0]})}return o})()},1986:(L,x,l)=>{l.d(x,{c:()=>G});var v=l(3236),f=l(8793),c=l(6697),e=l(9974),b=l(4360),p=l(5343),k=l(3703),D=l(3028),S=l(8750);function w(h,g){return g?_=>(0,f.x)(g.pipe((0,c.s)(1),function y(){return(0,e.N)((h,g)=>{h.subscribe((0,b._)(g,p.l))})}()),_.pipe(w(h))):(0,D.Z)((_,N)=>(0,S.Tg)(h(_,N)).pipe((0,c.s)(1),(0,k.u)(_)))}var F=l(1584);function G(h,g=v.E){const _=(0,F.O)(h,g);return w(()=>_)}}}]); \ No newline at end of file diff --git a/mikrofront/dist/html/813.00e775001ef777e2.js b/mikrofront/dist/html/813.00e775001ef777e2.js new file mode 100644 index 0000000..c1914be --- /dev/null +++ b/mikrofront/dist/html/813.00e775001ef777e2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[813],{3813:(ne,g,d)=>{d.r(g),d.d(g,{UserManagerModule:()=>te});var _=d(177),u=d(9417),l=d(8921),h=d(4869),f=d(4983),p=d(7062),m=d(7390),b=d(7630),e=d(4438),k=d(9492),M=d(1170),F=d(6467),j=d(6600);function U(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item.username," ")}function C(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" ",a.item.first_name," ")}function R(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" ",a.item.last_name," ")}function E(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" ",a.item.role," ")}function T(o,a){if(1&o){const n=e.RV6();e.j41(0,"button",54),e.bIt("click",function(){e.eBV(n);const t=e.XpG().item,s=e.XpG();return e.Njj(s.showrest(t))}),e.nrm(1,"i",55),e.k0s()}}function v(o,a){if(1&o){const n=e.RV6();e.j41(0,"button",49),e.bIt("click",function(){const t=e.eBV(n).item,s=e.XpG();return e.Njj(s.editAddUser(t,"edit"))}),e.nrm(1,"i",50),e.k0s(),e.j41(2,"button",51),e.bIt("click",function(){const t=e.eBV(n).item,s=e.XpG();return e.Njj(s.confirm_delete(t))}),e.nrm(3,"i",52),e.k0s(),e.DNE(4,T,2,0,"button",53)}if(2&o){const n=e.XpG();e.R7$(4),e.Y8G("ngIf",n.ispro)}}function I(o,a){if(1&o&&(e.j41(0,"h5",42),e.EFF(1),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.SpI("Editing User ",n.SelectedUser.name,"")}}function S(o,a){1&o&&(e.j41(0,"h5",42),e.EFF(1,"Adding new User"),e.k0s())}function G(o,a){if(1&o){const n=e.RV6();e.j41(0,"c-col",56)(1,"label",57),e.EFF(2),e.k0s(),e.j41(3,"c-form-check",58)(4,"c-button-group")(5,"c-button-group",59)(6,"button",60),e.bIt("click",function(){const t=e.eBV(n).$implicit,s=e.XpG();return e.Njj(s.setRadioValue(t.key,"read"))}),e.EFF(7,"Read"),e.k0s(),e.j41(8,"button",61),e.bIt("click",function(){const t=e.eBV(n).$implicit,s=e.XpG();return e.Njj(s.setRadioValue(t.key,"write"))}),e.EFF(9,"Write"),e.k0s(),e.j41(10,"button",62),e.bIt("click",function(){const t=e.eBV(n).$implicit,s=e.XpG();return e.Njj(s.setRadioValue(t.key,"full"))}),e.EFF(11,"Full"),e.k0s(),e.j41(12,"button",63),e.bIt("click",function(){const t=e.eBV(n).$implicit,s=e.XpG();return e.Njj(s.setRadioValue(t.key,"none"))}),e.EFF(13,"None"),e.k0s()()()()()}if(2&o){const n=a.$implicit,r=e.XpG();e.Y8G("md",6),e.R7$(2),e.SpI("",n.key," :"),e.R7$(),e.Y8G("switch",!0),e.R7$(3),e.Y8G("active","read"==r.adminperms[n.key]),e.R7$(2),e.Y8G("active","write"==r.adminperms[n.key]),e.R7$(2),e.Y8G("active","full"==r.adminperms[n.key]),e.R7$(2),e.Y8G("active","none"==r.adminperms[n.key])}}function V(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item.group_name," ")}function N(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" ",a.item.perm_name," ")}function D(o,a){if(1&o){const n=e.RV6();e.j41(0,"button",66),e.bIt("click",function(){const t=e.eBV(n).item,s=e.XpG(2);return e.Njj(s.confirm_delete_perm(t))}),e.nrm(1,"i",52),e.k0s()}}function w(o,a){if(1&o&&(e.j41(0,"c-input-group",23)(1,"h5"),e.EFF(2,"Mikrotik permisssions :"),e.k0s(),e.j41(3,"gui-grid",11)(4,"gui-grid-column",64),e.DNE(5,V,1,1,"ng-template"),e.k0s(),e.j41(6,"gui-grid-column",65),e.DNE(7,N,1,1,"ng-template"),e.k0s(),e.j41(8,"gui-grid-column",16),e.DNE(9,D,2,0,"ng-template"),e.k0s()()()),2&o){const n=e.XpG();e.R7$(3),e.Y8G("autoResizeWidth",!0)("source",n.userperms)("columnMenu",n.columnMenu)("sorting",n.sorting)("autoResizeWidth",!0)("paging",n.paging)}}function B(o,a){if(1&o&&(e.j41(0,"mat-option",67),e.EFF(1),e.k0s()),2&o){const n=a.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",n.name," ")}}function Y(o,a){if(1&o&&(e.j41(0,"mat-option",67),e.EFF(1),e.k0s()),2&o){const n=a.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",n.name," ")}}function $(o,a){if(1&o){const n=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.add_user_perm())}),e.EFF(1,"Add+"),e.k0s()}}function y(o,a){if(1&o){const n=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.add_new_user_perm())}),e.EFF(1,"Add+"),e.k0s()}}function z(o,a){if(1&o){const n=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.SelectedUser.role="disabled")}),e.EFF(1,"Deactive"),e.k0s()}}function X(o,a){if(1&o){const n=e.RV6();e.j41(0,"button",68),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.SelectedUser.role="admin")}),e.EFF(1,"Activate"),e.k0s()}}function x(o,a){if(1&o){const n=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.submit("add"))}),e.EFF(1,"Add"),e.k0s()}}function P(o,a){if(1&o){const n=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.submit("edit"))}),e.EFF(1,"save"),e.k0s()}}function A(o,a){1&o&&(e.j41(0,"label",74),e.EFF(1," TOTP is active"),e.k0s())}function O(o,a){1&o&&(e.j41(0,"label",74),e.EFF(1," TOTP is deactive"),e.k0s())}function H(o,a){1&o&&(e.j41(0,"label",74),e.EFF(1," Restricted"),e.k0s())}function L(o,a){1&o&&(e.j41(0,"label",74),e.EFF(1," Not Restricted"),e.k0s())}function W(o,a){1&o&&e.EFF(0),2&o&&e.SpI(" \xa0 ",a.item," ")}function J(o,a){if(1&o){const n=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){const t=e.eBV(n).item,s=e.XpG(3);return e.Njj(s.delete_ip(t))}),e.nrm(1,"i",52),e.k0s()}}function Q(o,a){if(1&o&&(e.j41(0,"c-input-group",23)(1,"h5"),e.EFF(2,"Allowed ips :"),e.k0s(),e.j41(3,"gui-grid",11)(4,"gui-grid-column",75),e.DNE(5,W,1,1,"ng-template"),e.k0s(),e.j41(6,"gui-grid-column",76),e.DNE(7,J,2,0,"ng-template"),e.k0s()()()),2&o){const n=e.XpG(2);e.R7$(3),e.Y8G("autoResizeWidth",!0)("source",n.userresttrictions.allowed_ips)("columnMenu",n.columnMenu)("sorting",n.sorting)("autoResizeWidth",!0)("paging",n.paging)}}function K(o,a){if(1&o){const n=e.RV6();e.j41(0,"table",23)(1,"td",31)(2,"span"),e.EFF(3,"Add new IP"),e.k0s()(),e.j41(4,"td")(5,"div")(6,"input",77),e.mxI("ngModelChange",function(t){e.eBV(n);const s=e.XpG(2);return e.DH7(s.ipaddress,t)||(s.ipaddress=t),e.Njj(t)}),e.k0s()()(),e.j41(7,"td",78)(8,"button",9),e.bIt("click",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.add_ip())}),e.EFF(9,"Add+"),e.k0s()()()}if(2&o){const n=e.XpG(2);e.R7$(6),e.R50("ngModel",n.ipaddress)}}function Z(o,a){if(1&o){const n=e.RV6();e.j41(0,"c-modal",69,4),e.mxI("visibleChange",function(t){e.eBV(n);const s=e.XpG();return e.DH7(s.RestrictionsTaskModalVisible,t)||(s.RestrictionsTaskModalVisible=t),e.Njj(t)}),e.j41(2,"c-modal-header")(3,"h5",42),e.EFF(4),e.k0s()(),e.j41(5,"c-modal-body")(6,"table",70)(7,"tr")(8,"td")(9,"h6"),e.EFF(10,"TOTP status :"),e.k0s()(),e.j41(11,"td")(12,"c-form-check",71)(13,"input",72),e.mxI("ngModelChange",function(t){e.eBV(n);const s=e.XpG();return e.DH7(s.userresttrictions.totp,t)||(s.userresttrictions.totp=t),e.Njj(t)}),e.k0s(),e.DNE(14,A,2,0,"label",73)(15,O,2,0,"label",73),e.k0s()()(),e.j41(16,"tr")(17,"td")(18,"h6"),e.EFF(19,"Use OTP for device login:"),e.k0s()(),e.j41(20,"td")(21,"c-button-group",59)(22,"button",60),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.userresttrictions["device-totp"]="system")}),e.EFF(23,"System Defined"),e.k0s(),e.j41(24,"button",61),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.userresttrictions["device-totp"]="yes")}),e.EFF(25,"TOTP"),e.k0s(),e.j41(26,"button",62),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.userresttrictions["device-totp"]="no")}),e.EFF(27,"Password"),e.k0s()()()(),e.j41(28,"tr")(29,"td")(30,"h6"),e.EFF(31,"Restrict IP access:"),e.k0s()(),e.j41(32,"td")(33,"c-form-check",71)(34,"input",72),e.mxI("ngModelChange",function(t){e.eBV(n);const s=e.XpG();return e.DH7(s.userresttrictions.ip,t)||(s.userresttrictions.ip=t),e.Njj(t)}),e.k0s(),e.DNE(35,H,2,0,"label",73)(36,L,2,0,"label",73),e.k0s()()()(),e.DNE(37,Q,8,6,"c-input-group",30),e.nrm(38,"hr"),e.DNE(39,K,10,1,"table",30),e.k0s(),e.j41(40,"c-modal-footer")(41,"button",9),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.save_sec())}),e.EFF(42,"Save"),e.k0s(),e.j41(43,"button",39),e.EFF(44," Close "),e.k0s()()()}if(2&o){const n=e.sdS(1),r=e.XpG();e.R50("visible",r.RestrictionsTaskModalVisible),e.R7$(4),e.SpI("Security Restrictions of ",r.SelectedUser.username,""),e.R7$(9),e.R50("ngModel",r.userresttrictions.totp),e.Y8G("checked",r.userresttrictions.totp),e.R7$(),e.Y8G("ngIf",r.userresttrictions.totp),e.R7$(),e.Y8G("ngIf",!r.userresttrictions.totp),e.R7$(7),e.Y8G("active","system"==r.userresttrictions["device-totp"]),e.R7$(2),e.Y8G("active","yes"==r.userresttrictions["device-totp"]),e.R7$(2),e.Y8G("active","no"==r.userresttrictions["device-totp"]),e.R7$(8),e.R50("ngModel",r.userresttrictions.ip),e.Y8G("checked",r.userresttrictions.ip),e.R7$(),e.Y8G("ngIf",r.userresttrictions.ip),e.R7$(),e.Y8G("ngIf",!r.userresttrictions.ip),e.R7$(),e.Y8G("ngIf",r.userresttrictions.ip&&r.userresttrictions.allowed_ips.length>0),e.R7$(2),e.Y8G("ngIf",r.userresttrictions.ip),e.R7$(4),e.Y8G("cModalToggle",n.id)}}const q=[{path:"",component:(()=>{class o{constructor(n,r,t){this.data_provider=n,this.router=r,this.login_checker=t,this.ispro=!1,this.toasterForm={autohide:!0,delay:1e4,position:"fixed",fade:!0,closeButton:!0},this.source=[],this.columns=[],this.loading=!1,this.rows=[],this.SelectedUser={},this.SelectedUserItems="",this.EditTaskModalVisible=!1,this.DeleteConfirmModalVisible=!1,this.RestrictionsTaskModalVisible=!1,this.Members="",this.devgroup={},this.permission={},this.allDevGroups=[],this.allPerms=[],this.DeletePermConfirmModalVisible=!1,this.userperms={},this.userresttrictions=!1,this.ipaddress="",this.defadminperms={device:"none",device_group:"none",task:"none",backup:"none",snippet:"none",accounting:"none",authentication:"none",users:"none",permissions:"none",settings:"none",system_backup:"none"},this.sorting={enabled:!0,multiSorting:!0},this.options={actionsEnabled:!1,displayExpr:"name",valueExpr:"id",placeholder:"Members",searchEnabled:!0,enableDarkMode:!1},this.paging={enabled:!0,page:1,pageSize:10,pageSizes:[5,10,25,50],display:m.sE.ADVANCED},this.columnMenu={enabled:!0,sort:!0,columnsManager:!0},this.rowSelection={enabled:!0,type:m.AU.CHECKBOX,mode:m.fL.MULTIPLE};var s=this;this.login_checker.isLoggedIn()||setTimeout(function(){s.router.navigate(["login"])},100),this.data_provider.getSessionInfo().then(i=>{s.uid=i.uid,s.uname=i.name,s.ispro=i.ISPRO,"admin"!=i.role&&setTimeout(function(){s.router.navigate(["/user/dashboard"])},100)})}setRadioValue(n,r){this.adminperms[n]=r}ngOnInit(){this.initGridTable()}show_toast(n,r,t){const{...s}={...this.toasterForm,color:t,title:n,body:r};this.viewChildren.first.addToast(b.y,s,{}).instance.closeButton=s.closeButton}totp(n){this.SelectedUser=n,this.data_provider.totp("enable",this.SelectedUser.id).then(r=>{"success"==r.status?this.show_toast("Success","Totp generated successfully","success"):this.show_toast("Error",r.err,"danger")})}submit(n){var r=this;"add"==n?("admin"==r.SelectedUser.role&&(r.adminperms={...r.defadminperms},r.SelectedUser.userperms=r.userperms.length>0?r.userperms:[]),r.SelectedUser.adminperms=r.adminperms,this.data_provider.create_user(r.SelectedUser).then(t=>{"error"in t&&t.error.indexOf("Unauthorized")?r.show_toast("Error","You are not authorized to perform this action","danger"):"id"in t&&!("status"in t)?(r.initGridTable(),this.EditTaskModalVisible=!1):r.show_toast("Error",t.err,"danger")})):(r.SelectedUser.userperms=r.userperms.length>0?r.userperms:[],r.SelectedUser.adminperms=r.adminperms,this.data_provider.edit_user(r.SelectedUser).then(t=>{"error"in t&&t.error.indexOf("Unauthorized")?r.show_toast("Error","You are not authorized to perform this action","danger"):(r.initGridTable(),r.EditTaskModalVisible=!1)}))}editAddUser(n,r){var t=this;if(this.data_provider.get_perms(1,1e3,"").then(s=>{"error"in s&&s.error.indexOf("Unauthorized")?t.show_toast("Error","You are not authorized to perform this action","danger"):(t.allPerms=s.map(c=>({id:c.id,name:c.name})),t.data_provider.get_devgroup_list().then(c=>{"error"in c&&c.error.indexOf("Unauthorized")?t.show_toast("Error","You are not authorized to perform this action","danger"):t.allDevGroups=c.map(i=>({id:i.id,name:i.name}))}))}),"showadd"==r)return this.userperms=[],this.SelectedUser={email:"",first_name:"",fullname:"",last_name:"",role:"admin",password:"",action:"add"},this.adminperms={...this.defadminperms},void(this.EditTaskModalVisible=!0);this.SelectedUser={...n},this.adminperms=this.SelectedUser.adminperms.length>0?JSON.parse(this.SelectedUser.adminperms):{...this.defadminperms},t.SelectedUser.action="edit",t.get_user_perms(t.SelectedUser.id),t.EditTaskModalVisible=!0}checkIpAddress(n){return/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|\/|)){4}\b(0?[1-9]|1[0-9]|2[0-9]|3[0-2])\b$/.test(n)}showrest(n){var r=this;this.SelectedUser={...n},this.data_provider.get_user_restrictions(this.SelectedUser.id).then(t=>{r.userresttrictions=t,r.RestrictionsTaskModalVisible=!0})}delete_ip(n){this.userresttrictions.allowed_ips=this.userresttrictions.allowed_ips.filter(r=>r!=n)}add_ip(){let n=this.ipaddress.trim();if(""!=n){if(this.userresttrictions.allowed_ips.includes(n))return void this.show_toast("Error","IP already added","danger");this.checkIpAddress(n)?(this.userresttrictions.allowed_ips.push(n),this.userresttrictions.allowed_ips=this.userresttrictions.allowed_ips.filter(r=>""!=r),this.ipaddress=""):this.show_toast("Error","Invalid IP address","danger")}}save_sec(){var n=this;this.data_provider.save_user_restrictions(this.SelectedUser.id,this.userresttrictions).then(r=>{"error"in r&&r.error.indexOf("Unauthorized")?n.show_toast("Error","You are not authorized to perform this action","danger"):"status"in r&&"success"==r.status?this.RestrictionsTaskModalVisible=!1:this.show_toast("Error","status"in r&&"failed"==r.status?r.err:"Somthing went wrong","danger")})}add_user_perm(){var n=this;this.data_provider.Add_user_perm(this.SelectedUser.id,this.permission.id,this.devgroup.id).then(r=>{"error"in r&&r.error.indexOf("Unauthorized")?n.show_toast("Error","You are not authorized to perform this action","danger"):(n.get_user_perms(n.SelectedUser.id),n.permission=0,n.devgroup=0)})}add_new_user_perm(){const r=[...this.userperms];r.push({group_id:this.devgroup.id,group_name:this.devgroup.name,perm_id:this.permission.id,perm_name:this.permission.name}),this.userperms=r}confirm_delete(n="",r=!1){if(r){var t=this;this.data_provider.delete_user(t.SelectedUser.id).then(s=>{"error"in s&&s.error.indexOf("Unauthorized")?t.show_toast("Error","You are not authorized to perform this action","danger"):(t.initGridTable(),t.DeleteConfirmModalVisible=!1)})}else this.SelectedUser={...n},this.DeleteConfirmModalVisible=!0}get_user_perms(n){if("add"!=this.SelectedUser.action){var r=this;this.data_provider.user_perms(n).then(t=>{r.userperms=t})}}confirm_delete_perm(n){var r=this;this.data_provider.Delete_user_perm(n.id).then(t=>{"error"in t&&t.error.indexOf("Unauthorized")?r.show_toast("Error","You are not authorized to perform this action","danger"):this.get_user_perms(this.SelectedUser.id)})}logger(n){console.dir(n)}initGridTable(){var n=this;this.data_provider.get_users(1,10,"").then(c=>{"error"in c&&c.error.indexOf("Unauthorized")?n.show_toast("Error","You are not authorized to perform this action","danger"):(n.source=c.map(i=>i),n.SelectedUser={},n.loading=!1)})}static#e=this.\u0275fac=function(r){return new(r||o)(e.rXU(k.C),e.rXU(p.Ix),e.rXU(M.T))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["ng-component"]],viewQuery:function(r,t){if(1&r&&e.GBs(l.E0T,5),2&r){let s;e.mGM(s=e.lsd())&&(t.viewChildren=s)}},decls:166,vars:50,consts:[["EditTaskModal",""],["singleSelect",""],["DeleteConfirmModal",""],["DeletePermConfirmModal",""],["RestrictionsTaskModal",""],["xs",""],[1,"mb-4"],["xs","",3,"lg"],["xs","",2,"text-align","right",3,"lg"],["cButton","","color","primary",3,"click"],[1,"fa-solid","fa-plus"],[3,"autoResizeWidth","source","columnMenu","sorting","paging"],["header","User Name","field","username"],["header","First Name","field","first_name"],["header","Last Name","field","last_name"],["header","Role","field","role"],["header","Actions","width","120","field","action"],["backdrop","static","size","lg","id","EditTaskModal",3,"visibleChange","visible"],["cModalTitle","",4,"ngIf"],["cButtonClose","",3,"cModalToggle"],[1,"mb-3",3,"cFormFloating"],["cFormControl","","id","floatingInput","placeholder","User Name",3,"ngModelChange","ngModel"],["cLabel","","for","floatingInput"],[1,"mb-3"],["cInputGroupText",""],["cFormControl","","id","floatingInput","placeholder","First Name",3,"ngModelChange","ngModel"],["cFormControl","","id","floatingInput","placeholder","Last Name",3,"ngModelChange","ngModel"],["cFormControl","","id","floatingInput","placeholder","Email Address",3,"ngModelChange","ngModel"],["type","password","cFormControl","","id","floatingInput","placeholder","Password",3,"ngModelChange","ngModel"],["class","mb-1",3,"md",4,"ngFor","ngForOf"],["class","mb-3",4,"ngIf"],[2,"width","30%"],["cFormControl","","placeholder","Device Group",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["cFormControl","","placeholder","Permission",3,"ngModelChange","ngModel"],["cButton","","color","primary",3,"click",4,"ngIf"],[2,"justify-content","space-between"],["cButton","","color","danger",3,"click",4,"ngIf"],["cButton","","color","success",3,"click",4,"ngIf"],["cButton","","color","secondary",3,"cModalToggle"],["backdrop","static","size","lg","id","RestrictionsTaskModal",3,"visible","visibleChange",4,"ngIf"],["backdrop","static","id","DeleteConfirmModal",3,"visibleChange","visible"],["cModalTitle",""],[2,"width","100%"],[1,"text-danger"],["cButton","","color","danger",3,"click"],["cButton","","color","info",3,"cModalToggle"],["backdrop","static","id","DeletePermConfirmModal",3,"visibleChange","visible"],["position","fixed","placement","top-end"],["cButton","","color","warning","size","sm",3,"click"],[1,"fa-regular","fa-pen-to-square"],["cButton","","color","danger","size","sm",1,"mx-1",3,"click"],[1,"fa-regular","fa-trash-can"],["cButton","","color","secondary","size","sm",3,"click",4,"ngIf"],["cButton","","color","secondary","size","sm",3,"click"],[1,"fa-solid","fa-fingerprint"],[1,"mb-1",3,"md"],["cFormCheckLabel","",2,"text-transform","capitalize"],[1,"md-6",2,"float","right",3,"switch"],["aria-label","Basic example","role","group"],["cButton","","color","info","variant","outline","size","sm",3,"click","active"],["cButton","","color","danger","variant","outline","size","sm",3,"click","active"],["cButton","","color","success","variant","outline","size","sm",3,"click","active"],["cButton","","color","dark","variant","outline","size","sm",3,"click","active"],["header","Group Name","field","group_name"],["header","perm Name","field","perm_name"],["cButton","","color","danger","size","sm",3,"click"],[3,"value"],["cButton","","color","success",3,"click"],["backdrop","static","size","lg","id","RestrictionsTaskModal",3,"visibleChange","visible"],["width","100%"],["sizing","xl","switch",""],["cFormCheckInput","","type","checkbox",3,"ngModelChange","ngModel","checked"],["cFormCheckLabel","",4,"ngIf"],["cFormCheckLabel",""],["header","IP Address"],["header","Action","width","80","align","center"],["cFormControl","","id","floatingInput","placeholder","IP address/cidr",3,"ngModelChange","ngModel"],[2,"vertical-align","top"]],template:function(r,t){if(1&r){const s=e.RV6();e.j41(0,"c-row")(1,"c-col",5)(2,"c-card",6)(3,"c-card-header")(4,"c-row")(5,"c-col",7),e.EFF(6," Users "),e.k0s(),e.j41(7,"c-col",8)(8,"button",9),e.bIt("click",function(){return e.eBV(s),e.Njj(t.editAddUser({},"showadd"))}),e.nrm(9,"i",10),e.k0s()()()(),e.j41(10,"c-card-body")(11,"gui-grid",11)(12,"gui-grid-column",12),e.DNE(13,U,1,1,"ng-template"),e.k0s(),e.j41(14,"gui-grid-column",13),e.DNE(15,C,1,1,"ng-template"),e.k0s(),e.j41(16,"gui-grid-column",14),e.DNE(17,R,1,1,"ng-template"),e.k0s(),e.j41(18,"gui-grid-column",15),e.DNE(19,E,1,1,"ng-template"),e.k0s(),e.j41(20,"gui-grid-column",16),e.DNE(21,v,5,1,"ng-template"),e.k0s()()()()()(),e.j41(22,"c-modal-header")(23,"c-modal",17,0),e.mxI("visibleChange",function(i){return e.eBV(s),e.DH7(t.EditTaskModalVisible,i)||(t.EditTaskModalVisible=i),e.Njj(i)}),e.j41(25,"c-modal-header"),e.DNE(26,I,2,1,"h5",18)(27,S,2,0,"h5",18),e.nrm(28,"button",19),e.k0s(),e.j41(29,"c-modal-body")(30,"div",20)(31,"input",21),e.mxI("ngModelChange",function(i){return e.eBV(s),e.DH7(t.SelectedUser.username,i)||(t.SelectedUser.username=i),e.Njj(i)}),e.k0s(),e.j41(32,"label",22),e.EFF(33,"User Name"),e.k0s()(),e.j41(34,"c-input-group",23)(35,"span",24),e.EFF(36,"First Name"),e.k0s(),e.j41(37,"input",25),e.mxI("ngModelChange",function(i){return e.eBV(s),e.DH7(t.SelectedUser.first_name,i)||(t.SelectedUser.first_name=i),e.Njj(i)}),e.k0s(),e.j41(38,"span",24),e.EFF(39,"Last Name"),e.k0s(),e.j41(40,"input",26),e.mxI("ngModelChange",function(i){return e.eBV(s),e.DH7(t.SelectedUser.last_name,i)||(t.SelectedUser.last_name=i),e.Njj(i)}),e.k0s()(),e.j41(41,"div",20)(42,"input",27),e.mxI("ngModelChange",function(i){return e.eBV(s),e.DH7(t.SelectedUser.email,i)||(t.SelectedUser.email=i),e.Njj(i)}),e.k0s(),e.j41(43,"label",22),e.EFF(44,"Email Address"),e.k0s()(),e.j41(45,"div",20)(46,"input",28),e.mxI("ngModelChange",function(i){return e.eBV(s),e.DH7(t.SelectedUser.password,i)||(t.SelectedUser.password=i),e.Njj(i)}),e.k0s(),e.j41(47,"label",22),e.EFF(48,"Password"),e.k0s()(),e.j41(49,"c-input-group")(50,"h5"),e.EFF(51,"MikroWizard permisssions :"),e.k0s(),e.j41(52,"c-container")(53,"c-row"),e.DNE(54,G,14,7,"c-col",29),e.nI1(55,"keyvalue"),e.k0s()()(),e.DNE(56,w,10,6,"c-input-group",30),e.nrm(57,"hr"),e.j41(58,"table")(59,"td",31)(60,"span"),e.EFF(61,"Add new Permission"),e.k0s()(),e.j41(62,"td")(63,"mat-form-field")(64,"mat-select",32,1),e.mxI("ngModelChange",function(i){return e.eBV(s),e.DH7(t.devgroup,i)||(t.devgroup=i),e.Njj(i)}),e.j41(66,"mat-option"),e.nrm(67,"ngx-mat-select-search"),e.k0s(),e.DNE(68,B,2,2,"mat-option",33),e.k0s()()(),e.j41(69,"td")(70,"mat-form-field")(71,"mat-select",34,1),e.mxI("ngModelChange",function(i){return e.eBV(s),e.DH7(t.permission,i)||(t.permission=i),e.Njj(i)}),e.j41(73,"mat-option"),e.nrm(74,"ngx-mat-select-search"),e.k0s(),e.DNE(75,Y,2,2,"mat-option",33),e.k0s()()(),e.j41(76,"td"),e.DNE(77,$,2,0,"button",35)(78,y,2,0,"button",35),e.k0s()()(),e.j41(79,"c-modal-footer",36)(80,"div"),e.DNE(81,z,2,0,"button",37)(82,X,2,0,"button",38),e.k0s(),e.j41(83,"div"),e.DNE(84,x,2,0,"button",35)(85,P,2,0,"button",35),e.j41(86,"button",39),e.EFF(87," Close "),e.k0s()()()(),e.DNE(88,Z,45,16,"c-modal",40),e.j41(89,"c-modal",41,2),e.mxI("visibleChange",function(i){return e.eBV(s),e.DH7(t.DeleteConfirmModalVisible,i)||(t.DeleteConfirmModalVisible=i),e.Njj(i)}),e.j41(91,"c-modal-header")(92,"h5",42),e.EFF(93),e.k0s(),e.nrm(94,"button",19),e.k0s(),e.j41(95,"c-modal-body"),e.EFF(96," Are you sure that You want to delete following task ? "),e.nrm(97,"br")(98,"br"),e.j41(99,"table",43)(100,"tr")(101,"td")(102,"b"),e.EFF(103,"User name : "),e.k0s()(),e.j41(104,"td"),e.EFF(105),e.k0s()(),e.j41(106,"tr")(107,"td")(108,"b"),e.EFF(109,"Name : "),e.k0s()(),e.j41(110,"td"),e.EFF(111),e.k0s()(),e.j41(112,"tr")(113,"td")(114,"b"),e.EFF(115,"Last Name : "),e.k0s()(),e.j41(116,"td"),e.EFF(117),e.k0s()()(),e.nrm(118,"hr"),e.j41(119,"p",44),e.EFF(120," All Related data will be deleted :"),e.nrm(121,"br"),e.EFF(122," * User Permision Related to this user"),e.nrm(123,"br"),e.EFF(124," * All Logs related to this user"),e.nrm(125,"br"),e.k0s()(),e.j41(126,"c-modal-footer")(127,"button",45),e.bIt("click",function(){return e.eBV(s),e.Njj(t.confirm_delete("",!0))}),e.EFF(128," Yes,Delete! "),e.k0s(),e.j41(129,"button",46),e.EFF(130," Close "),e.k0s()()(),e.j41(131,"c-modal",47,3),e.mxI("visibleChange",function(i){return e.eBV(s),e.DH7(t.DeletePermConfirmModalVisible,i)||(t.DeletePermConfirmModalVisible=i),e.Njj(i)}),e.j41(133,"c-modal-header")(134,"h5",42),e.EFF(135),e.k0s(),e.nrm(136,"button",19),e.k0s(),e.j41(137,"c-modal-body"),e.EFF(138," Are you sure that You want to delete following task ? "),e.nrm(139,"br")(140,"br"),e.j41(141,"table",43)(142,"tr")(143,"td")(144,"b"),e.EFF(145,"Taks name : "),e.k0s()(),e.j41(146,"td"),e.EFF(147),e.k0s()(),e.j41(148,"tr")(149,"td")(150,"b"),e.EFF(151,"Description : "),e.k0s()(),e.j41(152,"td"),e.EFF(153),e.k0s()(),e.j41(154,"tr")(155,"td")(156,"b"),e.EFF(157,"Cron exec : "),e.k0s()(),e.j41(158,"td"),e.EFF(159),e.k0s()()()(),e.j41(160,"c-modal-footer")(161,"button",45),e.bIt("click",function(){return e.eBV(s),e.Njj(t.confirm_delete("",!0))}),e.EFF(162," Yes,Delete! "),e.k0s(),e.j41(163,"button",46),e.EFF(164," Close "),e.k0s()()(),e.nrm(165,"c-toaster",48),e.k0s()}if(2&r){const s=e.sdS(24),c=e.sdS(90),i=e.sdS(132);e.R7$(5),e.Y8G("lg",10),e.R7$(2),e.Y8G("lg",2),e.R7$(4),e.Y8G("autoResizeWidth",!0)("source",t.source)("columnMenu",t.columnMenu)("sorting",t.sorting)("autoResizeWidth",!0)("paging",t.paging),e.R7$(12),e.R50("visible",t.EditTaskModalVisible),e.R7$(3),e.Y8G("ngIf","edit"==t.SelectedUser.action),e.R7$(),e.Y8G("ngIf","add"==t.SelectedUser.action),e.R7$(),e.Y8G("cModalToggle",s.id),e.R7$(2),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",t.SelectedUser.username),e.R7$(6),e.R50("ngModel",t.SelectedUser.first_name),e.R7$(3),e.R50("ngModel",t.SelectedUser.last_name),e.R7$(),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",t.SelectedUser.email),e.R7$(3),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",t.SelectedUser.password),e.R7$(8),e.Y8G("ngForOf",e.bMT(55,48,t.adminperms)),e.R7$(2),e.Y8G("ngIf",t.userperms.length>0),e.R7$(8),e.R50("ngModel",t.devgroup),e.R7$(4),e.Y8G("ngForOf",t.allDevGroups),e.R7$(3),e.R50("ngModel",t.permission),e.R7$(4),e.Y8G("ngForOf",t.allPerms),e.R7$(2),e.Y8G("ngIf","edit"==t.SelectedUser.action),e.R7$(),e.Y8G("ngIf","add"==t.SelectedUser.action),e.R7$(3),e.Y8G("ngIf","disabled"!=t.SelectedUser.role),e.R7$(),e.Y8G("ngIf","disabled"==t.SelectedUser.role),e.R7$(2),e.Y8G("ngIf","add"==t.SelectedUser.action),e.R7$(),e.Y8G("ngIf","edit"==t.SelectedUser.action),e.R7$(),e.Y8G("cModalToggle",s.id),e.R7$(2),e.Y8G("ngIf",t.ispro&&t.userresttrictions),e.R7$(),e.R50("visible",t.DeleteConfirmModalVisible),e.R7$(4),e.SpI("Confirm delete ",t.SelectedUser.name,""),e.R7$(),e.Y8G("cModalToggle",c.id),e.R7$(11),e.JRh(t.SelectedUser.username),e.R7$(6),e.JRh(t.SelectedUser.first_name),e.R7$(6),e.JRh(t.SelectedUser.last_name),e.R7$(12),e.Y8G("cModalToggle",c.id),e.R7$(2),e.R50("visible",t.DeletePermConfirmModalVisible),e.R7$(4),e.SpI("Confirm delete ",t.SelectedUser.name,""),e.R7$(),e.Y8G("cModalToggle",i.id),e.R7$(11),e.JRh(t.SelectedUser.name),e.R7$(6),e.JRh(t.SelectedUser.description),e.R7$(6),e.JRh(t.SelectedUser.desc_cron),e.R7$(4),e.Y8G("cModalToggle",i.id)}},dependencies:[F.rl,h.VO,j.wT,f.U9,l.iby,l.qHy,l.lMi,_.Sq,_.bT,l.gLf,l.HUM,l.oMR,l.akk,l.cy2,l.iQ3,l.l_X,l.e$m,l.YJZ,l.fvw,l.ISP,l._fv,l.UjT,l.Z7S,m.V1,m.fz,l.Jyz,l.zfW,l.s$3,l.epl,l.L$K,l.VtU,u.me,u.Zm,u.BC,u.vS,l.E0T,_.lG],styles:["table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-bottom:20px;vertical-align:top}"]})}return o})(),data:{title:$localize`User Managment`}}];let ee=(()=>{class o{static#e=this.\u0275fac=function(r){return new(r||o)};static#t=this.\u0275mod=e.$C({type:o});static#n=this.\u0275inj=e.G2t({imports:[p.iI.forChild(q),p.iI]})}return o})(),te=(()=>{class o{static#e=this.\u0275fac=function(r){return new(r||o)};static#t=this.\u0275mod=e.$C({type:o});static#n=this.\u0275inj=e.G2t({imports:[h.Ve,f.An,ee,l.Dw2,_.MD,l.pc9,l.tHK,l.tmq,l.ayw,m.uM,l.Q_q,u.YN,l.MBE]})}return o})()}}]); \ No newline at end of file diff --git a/mikrofront/dist/html/813.c9f3904bb7739380.js b/mikrofront/dist/html/813.c9f3904bb7739380.js deleted file mode 100644 index 70ce2d4..0000000 --- a/mikrofront/dist/html/813.c9f3904bb7739380.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[813],{3813:(ne,g,d)=>{d.r(g),d.d(g,{UserManagerModule:()=>te});var u=d(177),_=d(9417),l=d(8921),f=d(4869),h=d(4983),p=d(7062),m=d(7390),b=d(7630),e=d(4438),k=d(9492),M=d(1170),F=d(6467),j=d(6600);function C(r,a){1&r&&e.EFF(0),2&r&&e.SpI(" \xa0 ",a.item.username," ")}function U(r,a){1&r&&e.EFF(0),2&r&&e.SpI(" ",a.item.first_name," ")}function R(r,a){1&r&&e.EFF(0),2&r&&e.SpI(" ",a.item.last_name," ")}function T(r,a){1&r&&e.EFF(0),2&r&&e.SpI(" ",a.item.role," ")}function E(r,a){if(1&r){const n=e.RV6();e.j41(0,"button",54),e.bIt("click",function(){e.eBV(n);const t=e.XpG().item,i=e.XpG();return e.Njj(i.showrest(t))}),e.nrm(1,"i",55),e.k0s()}}function v(r,a){if(1&r){const n=e.RV6();e.j41(0,"button",49),e.bIt("click",function(){const t=e.eBV(n).item,i=e.XpG();return e.Njj(i.editAddUser(t,"edit"))}),e.nrm(1,"i",50),e.k0s(),e.j41(2,"button",51),e.bIt("click",function(){const t=e.eBV(n).item,i=e.XpG();return e.Njj(i.confirm_delete(t))}),e.nrm(3,"i",52),e.k0s(),e.DNE(4,E,2,0,"button",53)}if(2&r){const n=e.XpG();e.R7$(4),e.Y8G("ngIf",n.ispro)}}function I(r,a){if(1&r&&(e.j41(0,"h5",42),e.EFF(1),e.k0s()),2&r){const n=e.XpG();e.R7$(),e.SpI("Editing User ",n.SelectedUser.name,"")}}function S(r,a){1&r&&(e.j41(0,"h5",42),e.EFF(1,"Adding new User"),e.k0s())}function G(r,a){if(1&r){const n=e.RV6();e.j41(0,"c-col",56)(1,"label",57),e.EFF(2),e.k0s(),e.j41(3,"c-form-check",58)(4,"c-button-group")(5,"c-button-group",59)(6,"button",60),e.bIt("click",function(){const t=e.eBV(n).$implicit,i=e.XpG();return e.Njj(i.setRadioValue(t.key,"read"))}),e.EFF(7,"Read"),e.k0s(),e.j41(8,"button",61),e.bIt("click",function(){const t=e.eBV(n).$implicit,i=e.XpG();return e.Njj(i.setRadioValue(t.key,"write"))}),e.EFF(9,"Write"),e.k0s(),e.j41(10,"button",62),e.bIt("click",function(){const t=e.eBV(n).$implicit,i=e.XpG();return e.Njj(i.setRadioValue(t.key,"full"))}),e.EFF(11,"Full"),e.k0s(),e.j41(12,"button",63),e.bIt("click",function(){const t=e.eBV(n).$implicit,i=e.XpG();return e.Njj(i.setRadioValue(t.key,"none"))}),e.EFF(13,"None"),e.k0s()()()()()}if(2&r){const n=a.$implicit,s=e.XpG();e.Y8G("md",6),e.R7$(2),e.SpI("",n.key," :"),e.R7$(),e.Y8G("switch",!0),e.R7$(3),e.Y8G("active","read"==s.adminperms[n.key]),e.R7$(2),e.Y8G("active","write"==s.adminperms[n.key]),e.R7$(2),e.Y8G("active","full"==s.adminperms[n.key]),e.R7$(2),e.Y8G("active","none"==s.adminperms[n.key])}}function V(r,a){1&r&&e.EFF(0),2&r&&e.SpI(" \xa0 ",a.item.group_name," ")}function N(r,a){1&r&&e.EFF(0),2&r&&e.SpI(" ",a.item.perm_name," ")}function D(r,a){if(1&r){const n=e.RV6();e.j41(0,"button",66),e.bIt("click",function(){const t=e.eBV(n).item,i=e.XpG(2);return e.Njj(i.confirm_delete_perm(t))}),e.nrm(1,"i",52),e.k0s()}}function B(r,a){if(1&r&&(e.j41(0,"c-input-group",23)(1,"h5"),e.EFF(2,"Mikrotik permisssions :"),e.k0s(),e.j41(3,"gui-grid",11)(4,"gui-grid-column",64),e.DNE(5,V,1,1,"ng-template"),e.k0s(),e.j41(6,"gui-grid-column",65),e.DNE(7,N,1,1,"ng-template"),e.k0s(),e.j41(8,"gui-grid-column",16),e.DNE(9,D,2,0,"ng-template"),e.k0s()()()),2&r){const n=e.XpG();e.R7$(3),e.Y8G("autoResizeWidth",!0)("source",n.userperms)("columnMenu",n.columnMenu)("sorting",n.sorting)("autoResizeWidth",!0)("paging",n.paging)}}function w(r,a){if(1&r&&(e.j41(0,"mat-option",67),e.EFF(1),e.k0s()),2&r){const n=a.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",n.name," ")}}function $(r,a){if(1&r&&(e.j41(0,"mat-option",67),e.EFF(1),e.k0s()),2&r){const n=a.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",n.name," ")}}function y(r,a){if(1&r){const n=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.add_user_perm())}),e.EFF(1,"Add+"),e.k0s()}}function Y(r,a){if(1&r){const n=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.add_new_user_perm())}),e.EFF(1,"Add+"),e.k0s()}}function X(r,a){if(1&r){const n=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.SelectedUser.role="disabled")}),e.EFF(1,"Deactive"),e.k0s()}}function P(r,a){if(1&r){const n=e.RV6();e.j41(0,"button",68),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.SelectedUser.role="admin")}),e.EFF(1,"Activate"),e.k0s()}}function z(r,a){if(1&r){const n=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.submit("add"))}),e.EFF(1,"Add"),e.k0s()}}function A(r,a){if(1&r){const n=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.submit("edit"))}),e.EFF(1,"save"),e.k0s()}}function x(r,a){1&r&&(e.j41(0,"label",74),e.EFF(1," TOTP is active"),e.k0s())}function H(r,a){1&r&&(e.j41(0,"label",74),e.EFF(1," TOTP is deactive"),e.k0s())}function O(r,a){1&r&&(e.j41(0,"label",74),e.EFF(1," Restricted"),e.k0s())}function L(r,a){1&r&&(e.j41(0,"label",74),e.EFF(1," Not Restricted"),e.k0s())}function W(r,a){1&r&&e.EFF(0),2&r&&e.SpI(" \xa0 ",a.item," ")}function J(r,a){if(1&r){const n=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){const t=e.eBV(n).item,i=e.XpG(3);return e.Njj(i.delete_ip(t))}),e.nrm(1,"i",52),e.k0s()}}function Q(r,a){if(1&r&&(e.j41(0,"c-input-group",23)(1,"h5"),e.EFF(2,"Allowed ips :"),e.k0s(),e.j41(3,"gui-grid",11)(4,"gui-grid-column",75),e.DNE(5,W,1,1,"ng-template"),e.k0s(),e.j41(6,"gui-grid-column",76),e.DNE(7,J,2,0,"ng-template"),e.k0s()()()),2&r){const n=e.XpG(2);e.R7$(3),e.Y8G("autoResizeWidth",!0)("source",n.userresttrictions.allowed_ips)("columnMenu",n.columnMenu)("sorting",n.sorting)("autoResizeWidth",!0)("paging",n.paging)}}function K(r,a){if(1&r){const n=e.RV6();e.j41(0,"table",23)(1,"td",31)(2,"span"),e.EFF(3,"Add new IP"),e.k0s()(),e.j41(4,"td")(5,"div")(6,"input",77),e.mxI("ngModelChange",function(t){e.eBV(n);const i=e.XpG(2);return e.DH7(i.ipaddress,t)||(i.ipaddress=t),e.Njj(t)}),e.k0s()()(),e.j41(7,"td",78)(8,"button",9),e.bIt("click",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.add_ip())}),e.EFF(9,"Add+"),e.k0s()()()}if(2&r){const n=e.XpG(2);e.R7$(6),e.R50("ngModel",n.ipaddress)}}function Z(r,a){if(1&r){const n=e.RV6();e.j41(0,"c-modal",69,4),e.mxI("visibleChange",function(t){e.eBV(n);const i=e.XpG();return e.DH7(i.RestrictionsTaskModalVisible,t)||(i.RestrictionsTaskModalVisible=t),e.Njj(t)}),e.j41(2,"c-modal-header")(3,"h5",42),e.EFF(4),e.k0s()(),e.j41(5,"c-modal-body")(6,"table",70)(7,"tr")(8,"td")(9,"h6"),e.EFF(10,"TOTP status :"),e.k0s()(),e.j41(11,"td")(12,"c-form-check",71)(13,"input",72),e.mxI("ngModelChange",function(t){e.eBV(n);const i=e.XpG();return e.DH7(i.userresttrictions.totp,t)||(i.userresttrictions.totp=t),e.Njj(t)}),e.k0s(),e.DNE(14,x,2,0,"label",73)(15,H,2,0,"label",73),e.k0s()()(),e.j41(16,"tr")(17,"td")(18,"h6"),e.EFF(19,"Use OTP for device login:"),e.k0s()(),e.j41(20,"td")(21,"c-button-group",59)(22,"button",60),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.userresttrictions["device-totp"]="system")}),e.EFF(23,"System Defined"),e.k0s(),e.j41(24,"button",61),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.userresttrictions["device-totp"]="yes")}),e.EFF(25,"TOTP"),e.k0s(),e.j41(26,"button",62),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.userresttrictions["device-totp"]="no")}),e.EFF(27,"Password"),e.k0s()()()(),e.j41(28,"tr")(29,"td")(30,"h6"),e.EFF(31,"Restrict IP access:"),e.k0s()(),e.j41(32,"td")(33,"c-form-check",71)(34,"input",72),e.mxI("ngModelChange",function(t){e.eBV(n);const i=e.XpG();return e.DH7(i.userresttrictions.ip,t)||(i.userresttrictions.ip=t),e.Njj(t)}),e.k0s(),e.DNE(35,O,2,0,"label",73)(36,L,2,0,"label",73),e.k0s()()()(),e.DNE(37,Q,8,6,"c-input-group",30),e.nrm(38,"hr"),e.DNE(39,K,10,1,"table",30),e.k0s(),e.j41(40,"c-modal-footer")(41,"button",9),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.save_sec())}),e.EFF(42,"Save"),e.k0s(),e.j41(43,"button",39),e.EFF(44," Close "),e.k0s()()()}if(2&r){const n=e.sdS(1),s=e.XpG();e.R50("visible",s.RestrictionsTaskModalVisible),e.R7$(4),e.SpI("Security Restrictions of ",s.SelectedUser.username,""),e.R7$(9),e.R50("ngModel",s.userresttrictions.totp),e.Y8G("checked",s.userresttrictions.totp),e.R7$(),e.Y8G("ngIf",s.userresttrictions.totp),e.R7$(),e.Y8G("ngIf",!s.userresttrictions.totp),e.R7$(7),e.Y8G("active","system"==s.userresttrictions["device-totp"]),e.R7$(2),e.Y8G("active","yes"==s.userresttrictions["device-totp"]),e.R7$(2),e.Y8G("active","no"==s.userresttrictions["device-totp"]),e.R7$(8),e.R50("ngModel",s.userresttrictions.ip),e.Y8G("checked",s.userresttrictions.ip),e.R7$(),e.Y8G("ngIf",s.userresttrictions.ip),e.R7$(),e.Y8G("ngIf",!s.userresttrictions.ip),e.R7$(),e.Y8G("ngIf",s.userresttrictions.ip&&s.userresttrictions.allowed_ips.length>0),e.R7$(2),e.Y8G("ngIf",s.userresttrictions.ip),e.R7$(4),e.Y8G("cModalToggle",n.id)}}const q=[{path:"",component:(()=>{class r{constructor(n,s,t){this.data_provider=n,this.router=s,this.login_checker=t,this.ispro=!1,this.toasterForm={autohide:!0,delay:1e4,position:"fixed",fade:!0,closeButton:!0},this.source=[],this.columns=[],this.loading=!1,this.rows=[],this.SelectedUser={},this.SelectedUserItems="",this.EditTaskModalVisible=!1,this.DeleteConfirmModalVisible=!1,this.RestrictionsTaskModalVisible=!1,this.Members="",this.devgroup={},this.permission={},this.allDevGroups=[],this.allPerms=[],this.DeletePermConfirmModalVisible=!1,this.userperms={},this.userresttrictions=!1,this.ipaddress="",this.defadminperms={device:"none",device_group:"none",task:"none",backup:"none",snippet:"none",accounting:"none",authentication:"none",users:"none",permissions:"none",settings:"none",system_backup:"none"},this.sorting={enabled:!0,multiSorting:!0},this.options={actionsEnabled:!1,displayExpr:"name",valueExpr:"id",placeholder:"Members",searchEnabled:!0,enableDarkMode:!1},this.paging={enabled:!0,page:1,pageSize:10,pageSizes:[5,10,25,50],display:m.sE.ADVANCED},this.columnMenu={enabled:!0,sort:!0,columnsManager:!0},this.rowSelection={enabled:!0,type:m.AU.CHECKBOX,mode:m.fL.MULTIPLE};var i=this;this.login_checker.isLoggedIn()||setTimeout(function(){i.router.navigate(["login"])},100),this.data_provider.getSessionInfo().then(o=>{i.uid=o.uid,i.uname=o.name,i.ispro=o.ISPRO,"admin"!=o.role&&setTimeout(function(){i.router.navigate(["/user/dashboard"])},100)})}setRadioValue(n,s){this.adminperms[n]=s}ngOnInit(){this.initGridTable()}show_toast(n,s,t){const{...i}={...this.toasterForm,color:t,title:n,body:s};this.viewChildren.first.addToast(b.y,i,{}).instance.closeButton=i.closeButton}totp(n){this.SelectedUser=n,this.data_provider.totp("enable",this.SelectedUser.id).then(s=>{"success"==s.status?this.show_toast("Success","Totp generated successfully","success"):this.show_toast("Error",s.err,"danger")})}submit(n){var s=this;"add"==n?("admin"==s.SelectedUser.role&&(s.adminperms={...s.defadminperms},s.SelectedUser.userperms=s.userperms.length>0?s.userperms:[]),s.SelectedUser.adminperms=s.adminperms,this.data_provider.create_user(s.SelectedUser).then(t=>{"id"in t&&!("status"in t)?(s.initGridTable(),this.EditTaskModalVisible=!1):s.show_toast("Error",t.err,"danger")})):(s.SelectedUser.userperms=s.userperms.length>0?s.userperms:[],s.SelectedUser.adminperms=s.adminperms,this.data_provider.edit_user(s.SelectedUser).then(t=>{s.initGridTable(),s.EditTaskModalVisible=!1}))}editAddUser(n,s){var t=this;if(this.data_provider.get_perms(1,1e3,"").then(i=>{t.allPerms=i.map(c=>({id:c.id,name:c.name})),t.data_provider.get_devgroup_list().then(c=>{t.allDevGroups=c.map(o=>({id:o.id,name:o.name}))})}),"showadd"==s)return this.userperms=[],this.SelectedUser={email:"",first_name:"",fullname:"",last_name:"",role:"admin",password:"",action:"add"},this.adminperms={...this.defadminperms},void(this.EditTaskModalVisible=!0);this.SelectedUser={...n},this.adminperms=this.SelectedUser.adminperms.length>0?JSON.parse(this.SelectedUser.adminperms):{...this.defadminperms},t.SelectedUser.action="edit",t.get_user_perms(t.SelectedUser.id),t.EditTaskModalVisible=!0}checkIpAddress(n){return/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|\/|)){4}\b(0?[1-9]|1[0-9]|2[0-9]|3[0-2])\b$/.test(n)}showrest(n){var s=this;this.SelectedUser={...n},this.data_provider.get_user_restrictions(this.SelectedUser.id).then(t=>{s.userresttrictions=t,console.log(s.userresttrictions),s.RestrictionsTaskModalVisible=!0})}delete_ip(n){this.userresttrictions.allowed_ips=this.userresttrictions.allowed_ips.filter(s=>s!=n)}add_ip(){let n=this.ipaddress.trim();if(""!=n){if(this.userresttrictions.allowed_ips.includes(n))return void this.show_toast("Error","IP already added","danger");this.checkIpAddress(n)?(this.userresttrictions.allowed_ips.push(n),this.userresttrictions.allowed_ips=this.userresttrictions.allowed_ips.filter(s=>""!=s),this.ipaddress=""):this.show_toast("Error","Invalid IP address","danger")}}save_sec(){this.data_provider.save_user_restrictions(this.SelectedUser.id,this.userresttrictions).then(n=>{"status"in n&&"success"==n.status?this.RestrictionsTaskModalVisible=!1:this.show_toast("Error","status"in n&&"failed"==n.status?n.err:"Somthing went wrong","danger")})}add_user_perm(){var n=this;this.data_provider.Add_user_perm(this.SelectedUser.id,this.permission.id,this.devgroup.id).then(s=>{n.get_user_perms(n.SelectedUser.id),n.permission=0,n.devgroup=0})}add_new_user_perm(){const s=[...this.userperms];s.push({group_id:this.devgroup.id,group_name:this.devgroup.name,perm_id:this.permission.id,perm_name:this.permission.name}),this.userperms=s}confirm_delete(n="",s=!1){if(s){var t=this;this.data_provider.delete_user(t.SelectedUser.id).then(i=>{t.initGridTable(),t.DeleteConfirmModalVisible=!1})}else this.SelectedUser={...n},this.DeleteConfirmModalVisible=!0}get_user_perms(n){if("add"!=this.SelectedUser.action){var s=this;this.data_provider.user_perms(n).then(t=>{s.userperms=t})}}confirm_delete_perm(n){this.data_provider.Delete_user_perm(n.id).then(s=>{this.get_user_perms(this.SelectedUser.id)})}logger(n){console.dir(n)}initGridTable(){var n=this;this.data_provider.get_users(1,10,"").then(c=>{n.source=c.map(o=>o),n.SelectedUser={},n.loading=!1})}static#e=this.\u0275fac=function(s){return new(s||r)(e.rXU(k.C),e.rXU(p.Ix),e.rXU(M.T))};static#t=this.\u0275cmp=e.VBU({type:r,selectors:[["ng-component"]],viewQuery:function(s,t){if(1&s&&e.GBs(l.E0T,5),2&s){let i;e.mGM(i=e.lsd())&&(t.viewChildren=i)}},decls:166,vars:50,consts:[["EditTaskModal",""],["singleSelect",""],["DeleteConfirmModal",""],["DeletePermConfirmModal",""],["RestrictionsTaskModal",""],["xs",""],[1,"mb-4"],["xs","",3,"lg"],["xs","",2,"text-align","right",3,"lg"],["cButton","","color","primary",3,"click"],[1,"fa-solid","fa-plus"],[3,"autoResizeWidth","source","columnMenu","sorting","paging"],["header","User Name","field","username"],["header","First Name","field","first_name"],["header","Last Name","field","last_name"],["header","Role","field","role"],["header","Actions","width","120","field","action"],["backdrop","static","size","lg","id","EditTaskModal",3,"visibleChange","visible"],["cModalTitle","",4,"ngIf"],["cButtonClose","",3,"cModalToggle"],[1,"mb-3",3,"cFormFloating"],["cFormControl","","id","floatingInput","placeholder","User Name",3,"ngModelChange","ngModel"],["cLabel","","for","floatingInput"],[1,"mb-3"],["cInputGroupText",""],["cFormControl","","id","floatingInput","placeholder","First Name",3,"ngModelChange","ngModel"],["cFormControl","","id","floatingInput","placeholder","Last Name",3,"ngModelChange","ngModel"],["cFormControl","","id","floatingInput","placeholder","Email Address",3,"ngModelChange","ngModel"],["type","password","cFormControl","","id","floatingInput","placeholder","Password",3,"ngModelChange","ngModel"],["class","mb-1",3,"md",4,"ngFor","ngForOf"],["class","mb-3",4,"ngIf"],[2,"width","30%"],["cFormControl","","placeholder","Device Group",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["cFormControl","","placeholder","Permission",3,"ngModelChange","ngModel"],["cButton","","color","primary",3,"click",4,"ngIf"],[2,"justify-content","space-between"],["cButton","","color","danger",3,"click",4,"ngIf"],["cButton","","color","success",3,"click",4,"ngIf"],["cButton","","color","secondary",3,"cModalToggle"],["backdrop","static","size","lg","id","RestrictionsTaskModal",3,"visible","visibleChange",4,"ngIf"],["backdrop","static","id","DeleteConfirmModal",3,"visibleChange","visible"],["cModalTitle",""],[2,"width","100%"],[1,"text-danger"],["cButton","","color","danger",3,"click"],["cButton","","color","info",3,"cModalToggle"],["backdrop","static","id","DeletePermConfirmModal",3,"visibleChange","visible"],["position","fixed","placement","top-end"],["cButton","","color","warning","size","sm",3,"click"],[1,"fa-regular","fa-pen-to-square"],["cButton","","color","danger","size","sm",1,"mx-1",3,"click"],[1,"fa-regular","fa-trash-can"],["cButton","","color","secondary","size","sm",3,"click",4,"ngIf"],["cButton","","color","secondary","size","sm",3,"click"],[1,"fa-solid","fa-fingerprint"],[1,"mb-1",3,"md"],["cFormCheckLabel","",2,"text-transform","capitalize"],[1,"md-6",2,"float","right",3,"switch"],["aria-label","Basic example","role","group"],["cButton","","color","info","variant","outline","size","sm",3,"click","active"],["cButton","","color","danger","variant","outline","size","sm",3,"click","active"],["cButton","","color","success","variant","outline","size","sm",3,"click","active"],["cButton","","color","dark","variant","outline","size","sm",3,"click","active"],["header","Group Name","field","group_name"],["header","perm Name","field","perm_name"],["cButton","","color","danger","size","sm",3,"click"],[3,"value"],["cButton","","color","success",3,"click"],["backdrop","static","size","lg","id","RestrictionsTaskModal",3,"visibleChange","visible"],["width","100%"],["sizing","xl","switch",""],["cFormCheckInput","","type","checkbox",3,"ngModelChange","ngModel","checked"],["cFormCheckLabel","",4,"ngIf"],["cFormCheckLabel",""],["header","IP Address"],["header","Action","width","80","align","center"],["cFormControl","","id","floatingInput","placeholder","IP address/cidr",3,"ngModelChange","ngModel"],[2,"vertical-align","top"]],template:function(s,t){if(1&s){const i=e.RV6();e.j41(0,"c-row")(1,"c-col",5)(2,"c-card",6)(3,"c-card-header")(4,"c-row")(5,"c-col",7),e.EFF(6," Users "),e.k0s(),e.j41(7,"c-col",8)(8,"button",9),e.bIt("click",function(){return e.eBV(i),e.Njj(t.editAddUser({},"showadd"))}),e.nrm(9,"i",10),e.k0s()()()(),e.j41(10,"c-card-body")(11,"gui-grid",11)(12,"gui-grid-column",12),e.DNE(13,C,1,1,"ng-template"),e.k0s(),e.j41(14,"gui-grid-column",13),e.DNE(15,U,1,1,"ng-template"),e.k0s(),e.j41(16,"gui-grid-column",14),e.DNE(17,R,1,1,"ng-template"),e.k0s(),e.j41(18,"gui-grid-column",15),e.DNE(19,T,1,1,"ng-template"),e.k0s(),e.j41(20,"gui-grid-column",16),e.DNE(21,v,5,1,"ng-template"),e.k0s()()()()()(),e.j41(22,"c-modal-header")(23,"c-modal",17,0),e.mxI("visibleChange",function(o){return e.eBV(i),e.DH7(t.EditTaskModalVisible,o)||(t.EditTaskModalVisible=o),e.Njj(o)}),e.j41(25,"c-modal-header"),e.DNE(26,I,2,1,"h5",18)(27,S,2,0,"h5",18),e.nrm(28,"button",19),e.k0s(),e.j41(29,"c-modal-body")(30,"div",20)(31,"input",21),e.mxI("ngModelChange",function(o){return e.eBV(i),e.DH7(t.SelectedUser.username,o)||(t.SelectedUser.username=o),e.Njj(o)}),e.k0s(),e.j41(32,"label",22),e.EFF(33,"User Name"),e.k0s()(),e.j41(34,"c-input-group",23)(35,"span",24),e.EFF(36,"First Name"),e.k0s(),e.j41(37,"input",25),e.mxI("ngModelChange",function(o){return e.eBV(i),e.DH7(t.SelectedUser.first_name,o)||(t.SelectedUser.first_name=o),e.Njj(o)}),e.k0s(),e.j41(38,"span",24),e.EFF(39,"Last Name"),e.k0s(),e.j41(40,"input",26),e.mxI("ngModelChange",function(o){return e.eBV(i),e.DH7(t.SelectedUser.last_name,o)||(t.SelectedUser.last_name=o),e.Njj(o)}),e.k0s()(),e.j41(41,"div",20)(42,"input",27),e.mxI("ngModelChange",function(o){return e.eBV(i),e.DH7(t.SelectedUser.email,o)||(t.SelectedUser.email=o),e.Njj(o)}),e.k0s(),e.j41(43,"label",22),e.EFF(44,"Email Address"),e.k0s()(),e.j41(45,"div",20)(46,"input",28),e.mxI("ngModelChange",function(o){return e.eBV(i),e.DH7(t.SelectedUser.password,o)||(t.SelectedUser.password=o),e.Njj(o)}),e.k0s(),e.j41(47,"label",22),e.EFF(48,"Password"),e.k0s()(),e.j41(49,"c-input-group")(50,"h5"),e.EFF(51,"MikroWizard permisssions :"),e.k0s(),e.j41(52,"c-container")(53,"c-row"),e.DNE(54,G,14,7,"c-col",29),e.nI1(55,"keyvalue"),e.k0s()()(),e.DNE(56,B,10,6,"c-input-group",30),e.nrm(57,"hr"),e.j41(58,"table")(59,"td",31)(60,"span"),e.EFF(61,"Add new Permission"),e.k0s()(),e.j41(62,"td")(63,"mat-form-field")(64,"mat-select",32,1),e.mxI("ngModelChange",function(o){return e.eBV(i),e.DH7(t.devgroup,o)||(t.devgroup=o),e.Njj(o)}),e.j41(66,"mat-option"),e.nrm(67,"ngx-mat-select-search"),e.k0s(),e.DNE(68,w,2,2,"mat-option",33),e.k0s()()(),e.j41(69,"td")(70,"mat-form-field")(71,"mat-select",34,1),e.mxI("ngModelChange",function(o){return e.eBV(i),e.DH7(t.permission,o)||(t.permission=o),e.Njj(o)}),e.j41(73,"mat-option"),e.nrm(74,"ngx-mat-select-search"),e.k0s(),e.DNE(75,$,2,2,"mat-option",33),e.k0s()()(),e.j41(76,"td"),e.DNE(77,y,2,0,"button",35)(78,Y,2,0,"button",35),e.k0s()()(),e.j41(79,"c-modal-footer",36)(80,"div"),e.DNE(81,X,2,0,"button",37)(82,P,2,0,"button",38),e.k0s(),e.j41(83,"div"),e.DNE(84,z,2,0,"button",35)(85,A,2,0,"button",35),e.j41(86,"button",39),e.EFF(87," Close "),e.k0s()()()(),e.DNE(88,Z,45,16,"c-modal",40),e.j41(89,"c-modal",41,2),e.mxI("visibleChange",function(o){return e.eBV(i),e.DH7(t.DeleteConfirmModalVisible,o)||(t.DeleteConfirmModalVisible=o),e.Njj(o)}),e.j41(91,"c-modal-header")(92,"h5",42),e.EFF(93),e.k0s(),e.nrm(94,"button",19),e.k0s(),e.j41(95,"c-modal-body"),e.EFF(96," Are you sure that You want to delete following task ? "),e.nrm(97,"br")(98,"br"),e.j41(99,"table",43)(100,"tr")(101,"td")(102,"b"),e.EFF(103,"User name : "),e.k0s()(),e.j41(104,"td"),e.EFF(105),e.k0s()(),e.j41(106,"tr")(107,"td")(108,"b"),e.EFF(109,"Name : "),e.k0s()(),e.j41(110,"td"),e.EFF(111),e.k0s()(),e.j41(112,"tr")(113,"td")(114,"b"),e.EFF(115,"Last Name : "),e.k0s()(),e.j41(116,"td"),e.EFF(117),e.k0s()()(),e.nrm(118,"hr"),e.j41(119,"p",44),e.EFF(120," All Related data will be deleted :"),e.nrm(121,"br"),e.EFF(122," * User Permision Related to this user"),e.nrm(123,"br"),e.EFF(124," * All Logs related to this user"),e.nrm(125,"br"),e.k0s()(),e.j41(126,"c-modal-footer")(127,"button",45),e.bIt("click",function(){return e.eBV(i),e.Njj(t.confirm_delete("",!0))}),e.EFF(128," Yes,Delete! "),e.k0s(),e.j41(129,"button",46),e.EFF(130," Close "),e.k0s()()(),e.j41(131,"c-modal",47,3),e.mxI("visibleChange",function(o){return e.eBV(i),e.DH7(t.DeletePermConfirmModalVisible,o)||(t.DeletePermConfirmModalVisible=o),e.Njj(o)}),e.j41(133,"c-modal-header")(134,"h5",42),e.EFF(135),e.k0s(),e.nrm(136,"button",19),e.k0s(),e.j41(137,"c-modal-body"),e.EFF(138," Are you sure that You want to delete following task ? "),e.nrm(139,"br")(140,"br"),e.j41(141,"table",43)(142,"tr")(143,"td")(144,"b"),e.EFF(145,"Taks name : "),e.k0s()(),e.j41(146,"td"),e.EFF(147),e.k0s()(),e.j41(148,"tr")(149,"td")(150,"b"),e.EFF(151,"Description : "),e.k0s()(),e.j41(152,"td"),e.EFF(153),e.k0s()(),e.j41(154,"tr")(155,"td")(156,"b"),e.EFF(157,"Cron exec : "),e.k0s()(),e.j41(158,"td"),e.EFF(159),e.k0s()()()(),e.j41(160,"c-modal-footer")(161,"button",45),e.bIt("click",function(){return e.eBV(i),e.Njj(t.confirm_delete("",!0))}),e.EFF(162," Yes,Delete! "),e.k0s(),e.j41(163,"button",46),e.EFF(164," Close "),e.k0s()()(),e.nrm(165,"c-toaster",48),e.k0s()}if(2&s){const i=e.sdS(24),c=e.sdS(90),o=e.sdS(132);e.R7$(5),e.Y8G("lg",10),e.R7$(2),e.Y8G("lg",2),e.R7$(4),e.Y8G("autoResizeWidth",!0)("source",t.source)("columnMenu",t.columnMenu)("sorting",t.sorting)("autoResizeWidth",!0)("paging",t.paging),e.R7$(12),e.R50("visible",t.EditTaskModalVisible),e.R7$(3),e.Y8G("ngIf","edit"==t.SelectedUser.action),e.R7$(),e.Y8G("ngIf","add"==t.SelectedUser.action),e.R7$(),e.Y8G("cModalToggle",i.id),e.R7$(2),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",t.SelectedUser.username),e.R7$(6),e.R50("ngModel",t.SelectedUser.first_name),e.R7$(3),e.R50("ngModel",t.SelectedUser.last_name),e.R7$(),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",t.SelectedUser.email),e.R7$(3),e.Y8G("cFormFloating",!0),e.R7$(),e.R50("ngModel",t.SelectedUser.password),e.R7$(8),e.Y8G("ngForOf",e.bMT(55,48,t.adminperms)),e.R7$(2),e.Y8G("ngIf",t.userperms.length>0),e.R7$(8),e.R50("ngModel",t.devgroup),e.R7$(4),e.Y8G("ngForOf",t.allDevGroups),e.R7$(3),e.R50("ngModel",t.permission),e.R7$(4),e.Y8G("ngForOf",t.allPerms),e.R7$(2),e.Y8G("ngIf","edit"==t.SelectedUser.action),e.R7$(),e.Y8G("ngIf","add"==t.SelectedUser.action),e.R7$(3),e.Y8G("ngIf","disabled"!=t.SelectedUser.role),e.R7$(),e.Y8G("ngIf","disabled"==t.SelectedUser.role),e.R7$(2),e.Y8G("ngIf","add"==t.SelectedUser.action),e.R7$(),e.Y8G("ngIf","edit"==t.SelectedUser.action),e.R7$(),e.Y8G("cModalToggle",i.id),e.R7$(2),e.Y8G("ngIf",t.ispro&&t.userresttrictions),e.R7$(),e.R50("visible",t.DeleteConfirmModalVisible),e.R7$(4),e.SpI("Confirm delete ",t.SelectedUser.name,""),e.R7$(),e.Y8G("cModalToggle",c.id),e.R7$(11),e.JRh(t.SelectedUser.username),e.R7$(6),e.JRh(t.SelectedUser.first_name),e.R7$(6),e.JRh(t.SelectedUser.last_name),e.R7$(12),e.Y8G("cModalToggle",c.id),e.R7$(2),e.R50("visible",t.DeletePermConfirmModalVisible),e.R7$(4),e.SpI("Confirm delete ",t.SelectedUser.name,""),e.R7$(),e.Y8G("cModalToggle",o.id),e.R7$(11),e.JRh(t.SelectedUser.name),e.R7$(6),e.JRh(t.SelectedUser.description),e.R7$(6),e.JRh(t.SelectedUser.desc_cron),e.R7$(4),e.Y8G("cModalToggle",o.id)}},dependencies:[F.rl,f.VO,j.wT,h.U9,l.iby,l.qHy,l.lMi,u.Sq,u.bT,l.gLf,l.HUM,l.oMR,l.akk,l.cy2,l.iQ3,l.l_X,l.e$m,l.YJZ,l.fvw,l.ISP,l._fv,l.UjT,l.Z7S,m.V1,m.fz,l.Jyz,l.zfW,l.s$3,l.epl,l.L$K,l.VtU,_.me,_.Zm,_.BC,_.vS,l.E0T,u.lG],styles:["table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-bottom:20px;vertical-align:top}"]})}return r})(),data:{title:$localize`User Managment`}}];let ee=(()=>{class r{static#e=this.\u0275fac=function(s){return new(s||r)};static#t=this.\u0275mod=e.$C({type:r});static#n=this.\u0275inj=e.G2t({imports:[p.iI.forChild(q),p.iI]})}return r})(),te=(()=>{class r{static#e=this.\u0275fac=function(s){return new(s||r)};static#t=this.\u0275mod=e.$C({type:r});static#n=this.\u0275inj=e.G2t({imports:[f.Ve,h.An,ee,l.Dw2,u.MD,l.pc9,l.tHK,l.tmq,l.ayw,m.uM,l.Q_q,_.YN,l.MBE]})}return r})()}}]); \ No newline at end of file diff --git a/mikrofront/dist/html/981.7bb57a106e9d8927.js b/mikrofront/dist/html/981.7bb57a106e9d8927.js deleted file mode 100644 index a8f4d56..0000000 --- a/mikrofront/dist/html/981.7bb57a106e9d8927.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[981],{7981:(be,x,p)=>{p.r(x),p.d(x,{DeviceModule:()=>he});var u=p(177),o=p(8921),b=p(4858),f=p(7062),v=p(7390),t=p(4438),y=p(9492),D=p(1170),_=function(e,s){if(!(typeof window>"u"||typeof document>"u")){var a=s??document.body;return window.getComputedStyle(a,null).getPropertyValue(e).replace(/^\s/,"")}};function $(e,s){if(1&e&&t.EFF(0),2&e){const a=t.XpG().$implicit,i=t.XpG();t.SpI("\n ",i.show_number(a,i.devicedata),"\n\n ")}}function j(e,s){if(1&e&&t.nrm(0,"c-chart",5)(1,"div",6),2&e){const a=t.XpG().$implicit,i=t.XpG();t.Y8G("data",i.devicedata[a])("options",i.check_options(a)?i.options[4]:i.options[2])("type",i.check_options(a)?"bar":"line"),t.R7$(),t.Y8G("innerHTML",i.show_date(i.devicedata[a].labels[i.devicedata[a].datasets[0].data.length-1]),t.npT)}}function T(e,s){if(1&e&&(t.j41(0,"c-col",1)(1,"c-widget-stat-a",2),t.DNE(2,$,1,1,"ng-template",3)(3,j,2,4,"ng-template",4),t.k0s()()),2&e){const a=s.$implicit,i=s.index,n=t.XpG();t.Y8G("sm",6)("xl",n.count_calc(n.devicedata)),t.R7$(),t.Y8G("color",n.colors[i])("title",a)}}let C=(()=>{class e{constructor(a,i){this.changeDetectorRef=a,this.data_provider=i,this.data=[],this.options=[],this.labels=["January","February","March","April","May","June","July","August","September","October","November","December","January","February","March","April"],this.colors=["primary","success","danger","warning","info","dark","primary","success","danger","warning","info","dark","primary","success","danger","warning","info","dark","primary","success","danger","warning","info","light","dark","primary","success","danger","warning","info","light","dark"],this.datasets=[[{label:"My First dataset",backgroundColor:"transparent",borderColor:"rgba(255,255,255,.55)",pointBackgroundColor:_("--cui-primary"),pointHoverBorderColor:_("--cui-primary"),data:[65,59,84,84,51,55,40]}],[{label:"My Second dataset",backgroundColor:"transparent",borderColor:"rgba(255,255,255,.55)",pointBackgroundColor:_("--cui-info"),pointHoverBorderColor:_("--cui-info"),data:[1,18,9,17,34,22,11]}],[{label:"My Third dataset",backgroundColor:"rgba(255,255,255,.2)",borderColor:"rgba(255,255,255,.55)",pointBackgroundColor:_("--cui-warning"),pointHoverBorderColor:_("--cui-warning"),data:[78,81,80,45,34,12,40],fill:!0}],[{label:"My Fourth dataset",backgroundColor:"rgba(255,255,255,.2)",borderColor:"rgba(255,255,255,.55)",data:[78,81,80,45,34,12,40,85,65,23,12,98,34,84,67,82],barPercentage:.7}]],this.optionsDefault={plugins:{legend:{display:!1}},maintainAspectRatio:!0,scales:{x:{grid:{display:!1,drawBorder:!1},ticks:{display:!1}},y:{display:!1,grid:{display:!1},ticks:{display:!1}}},elements:{line:{borderWidth:1,tension:.4},point:{radius:4,hitRadius:10,hoverRadius:6}}}}logger(a){console.dir(a)}ngOnInit(){this.setData()}ngAfterContentInit(){this.changeDetectorRef.detectChanges()}convert_bw_human(a=0,i){const n=["bit","Kib","Mib","Gib","Tib"];let r=0;for(;a>=1024&&r-1}show_number(a,i){if("rxp/txp-total"==a){let r=i[a].datasets[1].data[i[a].datasets[1].data.length-1];return this.convert_bw_human(i[a].datasets[0].data[i[a].datasets[0].data.length-1],i[a].datasets[0].unit)+" / "+this.convert_bw_human(r,i[a].datasets[1].unit)}if("rx/tx-total"==a){let r=i[a].datasets[1].data[i[a].datasets[1].data.length-1];return this.convert_bw_human(i[a].datasets[0].data[i[a].datasets[0].data.length-1],i[a].datasets[0].unit)+" / "+this.convert_bw_human(r,i[a].datasets[1].unit)}return i[a].datasets[0].data[i[a].datasets[0].data.length-1]}count_calc(a){return a.sensors.length>4?2:3}setData(){for(let a=0;a<4;a++)this.data[a]={labels:a<3?this.labels.slice(0,7):this.labels,datasets:this.datasets[a]};this.setOptions()}show_date(a){return typeof a>"u"||""==a?"":a.split("T").length>1?"Last data : "+a.split("T")[0]:1==a.split("T").length?"Last data : "+a.split("T").join(" "):a}setOptions(){for(let a=0;a<5;a++){const i=JSON.parse(JSON.stringify(this.optionsDefault));switch(a){case 0:this.options.push(i);break;case 1:i.scales.y.min=-9,i.scales.y.max=39,this.options.push(i);break;case 2:i.scales.x={display:!1},i.scales.y={display:!1},i.elements.line.borderWidth=2,i.elements.point.radius=2,this.options.push(i);break;case 3:i.scales.x.grid={display:!1,drawTicks:!1},i.scales.x.grid={display:!1,drawTicks:!1,drawBorder:!1},i.scales.y.min=void 0,i.scales.y.max=void 0,i.elements={},this.options.push(i);break;case 4:i.plugins={tooltip:{callbacks:{label:function(n){const r=["bit","Kib","Mib","Gib","Tib"];var c=n.parsed.y;let l=0;for(;c>=1024&&l=n.objectlen(i.value.data)/4&&a=n.objectlen(i.value.data)/4*2&&a=n.objectlen(i.value.data)/4*3)}}function nt(e,s){if(1&e&&(t.j41(0,"c-badge",54),t.EFF(1),t.k0s()),2&e){const a=s.$implicit;t.R7$(),t.JRh(a)}}function st(e,s){if(1&e&&(t.j41(0,"c-row")(1,"c-col")(2,"table",51)(3,"tbody")(4,"tr")(5,"th",52),t.EFF(6,"Strength at rates"),t.k0s(),t.j41(7,"td",50),t.DNE(8,nt,2,1,"c-badge",53),t.k0s()()()()()()),2&e){const a=t.XpG().$implicit,i=t.XpG(2);t.R7$(8),t.Y8G("ngForOf",i.strangth_at_rate_extract(a.value["strength-at-rates"]))}}function ot(e,s){if(1&e&&(t.j41(0,"c-col",45)(1,"c-card",5)(2,"c-card-header")(3,"h6"),t.EFF(4,"Radio data"),t.k0s()(),t.j41(5,"c-card-body")(6,"h6"),t.EFF(7),t.k0s(),t.nrm(8,"app-widgets-dropdown",37),t.j41(9,"c-row")(10,"c-col",46)(11,"table",47)(12,"tbody"),t.DNE(13,K,2,1,"ng-container",7),t.nI1(14,"keyvalue"),t.k0s()()(),t.j41(15,"c-col",46)(16,"table",47)(17,"tbody"),t.DNE(18,Z,2,1,"ng-container",7),t.nI1(19,"keyvalue"),t.k0s()()(),t.j41(20,"c-col",46)(21,"table",47)(22,"tbody"),t.DNE(23,et,2,1,"ng-container",7),t.nI1(24,"keyvalue"),t.k0s()()(),t.j41(25,"c-col",46)(26,"table",48)(27,"tbody"),t.DNE(28,it,2,1,"ng-container",7),t.nI1(29,"keyvalue"),t.k0s()()()(),t.DNE(30,st,9,1,"c-row",3),t.k0s()()()),2&e){const a=s.$implicit;t.R7$(7),t.JRh(a.key),t.R7$(),t.Y8G("devicedata",a.value),t.R7$(5),t.Y8G("ngForOf",t.bMT(14,7,a.value.data)),t.R7$(5),t.Y8G("ngForOf",t.bMT(19,9,a.value.data)),t.R7$(5),t.Y8G("ngForOf",t.bMT(24,11,a.value.data)),t.R7$(5),t.Y8G("ngForOf",t.bMT(29,13,a.value.data)),t.R7$(2),t.Y8G("ngIf",a.value["strength-at-rates"])}}function rt(e,s){if(1&e&&(t.j41(0,"c-row"),t.DNE(1,ot,31,15,"c-col",44),t.nI1(2,"keyvalue"),t.k0s()),2&e){const a=t.XpG();t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,a.radio_devsensors))}}const lt=[{path:"",component:(()=>{class e{constructor(a,i,n,r){this.data_provider=a,this.route=i,this.router=n,this.login_checker=r,this.ispro=!1,this.columns=[],this.loading=!0,this.radio_loading=!0,this.InterfaceChartModalVisible=!1,this.rows=[],this.devid=0,this.delta="live",this.total_type="bps",this.interface_rate={},this.is_radio=!1,this.sorting={enabled:!0,multiSorting:!0},this.interfaces=[],this.paging={enabled:!0,page:1,pageSize:10,pageSizes:[5,10,25,50],display:v.sE.ADVANCED},this.columnMenu={enabled:!0,sort:!0,columnsManager:!0},this.infoPanel={enabled:!0,infoDialog:!1,columnsManager:!0,schemaManager:!0},this.rowSelection={enabled:!0,type:v.AU.CHECKBOX,mode:v.fL.MULTIPLE},this.Chartoptions={plugins:{tooltip:{callbacks:{label:function(l){const k=["bit","Kib","Mib","Gib","Tib"];var g=l.parsed.y;let m=0;for(;g>=1024&&m=1024&&h=1024&&h{d.uid=l.uid,d.uname=l.name,d.tz=l.tz,d.ispro=l.ISPRO,"admin"!=l.role&&setTimeout(function(){d.router.navigate(["/user/dashboard"])},100)})}objectlen(a){return Object.keys(a).length}strangth_at_rate_extract(a){return a.split(",")}ngOnInit(){this.devid=Number(this.route.snapshot.paramMap.get("id")),this.options=this.Chartoptions,this.initDeviceInfo()}setOptions(){for(let a=0;a<5;a++){const i=JSON.parse(JSON.stringify(this.optionsDefault));switch(a){case 0:this.options.push(i);break;case 1:i.scales.y.min=-9,i.scales.y.max=39,this.options.push(i);break;case 2:i.scales.x={display:!1},i.scales.y={display:!1},i.elements.line.borderWidth=2,i.elements.point.radius=2,this.options.push(i);break;case 3:i.scales.x.grid={display:!1,drawTicks:!1},i.scales.x.grid={display:!1,drawTicks:!1,drawBorder:!1},i.scales.y.min=void 0,i.scales.y.max=void 0,i.elements={},this.options.push(i);break;case 4:i.plugins={tooltip:{callbacks:{label:function(n){const r=["bit","Kib","Mib","Gib","Tib"];var c=n.parsed.y;let l=0;for(;c>=1024&&l{a.devdata=i,a.interfaces=i.interfaces,"is_radio"in i&&(a.is_radio=i.is_radio),a.data_provider.get_dev_sensors(a.devid,a.delta,a.total_type).then(n=>{a.devsensors=n,a.loading=!1}),a.is_radio&&a.get_radio_data()})}checkitem(a){return!(!a.value||a.key.match("sensors|id|_availble|interfaces"))}convert_bw_human(a=0,i){const n=["bit","Kib","Mib","Gib","Tib"];let r=0;for(;a>=1024&&r{i.interface_rate=n.data,i.InterfaceChartModalVisible=!0})}get_radio_data(){if(this.ispro){var a=this;a.data_provider.get_dev_radio_sensors(a.devid,a.delta).then(i=>{a.radio_devsensors=i,a.radio_loading=!1})}}initDeviceInfo(){var a=this;clearInterval(this.data_interval),this.updateData(),this.data_interval=setInterval(()=>{this.data_provider.get_dev_info(this.devid).then(i=>{a.devdata=i,"is_radio"in i&&(a.is_radio=i.is_radio),a.interfaces=i.interfaces,a.data_provider.get_dev_sensors(a.devid,a.delta,a.total_type).then(n=>{a.devsensors=n,a.loading=!1,a.is_radio&&a.get_radio_data()})})},6e4)}ngOnDestroy(){clearInterval(this.data_interval)}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(y.C),t.rXU(f.nX),t.rXU(f.Ix),t.rXU(D.T))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["ng-component"]],decls:50,vars:22,consts:[["staticBackdropModal",""],["style","margin-bottom: 5px;margin-top: 5px;","color","warning",3,"click",4,"ngIf"],["style","margin-bottom: 5px;margin-top: 5px;","color","info",3,"click",4,"ngIf"],[4,"ngIf"],["xs",""],[1,"mb-1"],[2,"flex-direction","row"],[4,"ngFor","ngForOf"],[3,"source","columnMenu","sorting","infoPanel","autoResizeWidth"],["header","Name","field","name"],["header","MAC","field","mac-address"],["header","rx","field","rx-byte"],["header","tx","field","tx-byte"],["header","l2mtu","field","l2mtu"],["header","rx/s","field","rx-bits-per-second",3,"enabled"],["header","tx/s","field","tx-bits-per-second",3,"enabled"],["header","Created","field","created",3,"enabled"],["header","Last Up","field","last-link-up-time"],["header","Actions","field","action","width","60","align","center"],["backdrop","static","size","xl","id","InterfaceChartModal",3,"visible"],["cModalTitle",""],["cButtonClose","",3,"cModalToggle"],["type","line",3,"data","options"],["cButton","","color","secondary",3,"cModalToggle"],["color","warning",2,"margin-bottom","5px","margin-top","5px",3,"click"],["color","info",2,"margin-bottom","5px","margin-top","5px",3,"click"],["md","6","sm","12",2,"display","flex","flex-direction","row","align-items","center"],[2,"height","100%","line-height","170%","margin","0"],[2,"font-size","50%"],["md","6","sm","12",1,"justify-content-end",2,"display","flex","flex-direction","row","align-items","center"],["size","sm","aria-label","Upate interval","role","group"],["cButton","","color","primary","size","sm",3,"click","active"],["cButton","","color","primary",3,"click","active"],["sizing","xl","switch","",1,"mx-2",3,"click"],["cFormCheckInput","","type","checkbox",3,"checked"],["cFormCheckLabel",""],[3,"devicedata",4,"ngIf"],[3,"devicedata"],["class","mr-0 ml-0 mb-1","style","padding-right:unset;width: auto;flex: 1 1 auto;flex-flow: nowrap;flex: unset;",4,"ngIf"],[1,"mr-0","ml-0","mb-1",2,"padding-right","unset","width","auto","flex","1 1 auto","flex-flow","nowrap","flex","unset"],["cInputGroupText","",2,"padding","0.175rem 0.35rem","background-color","#4f5d73","text-transform","capitalize","color","#fff","font-size","0.7rem"],["_ngcontent-ng-c666080582","","cinputgrouptext","",1,"input-group-text",2,"padding","0.175rem 0.35rem","color","rgba(44, 56, 74, 0.95)","font-size","0.7rem","background-color","#d8dbe0","border-color","#b1b7c1"],["cButton","","color","info","size","sm",1,"mx-1",3,"click"],[1,"fa-solid","fa-chart-line"],["xs","","md","12",4,"ngFor","ngForOf"],["xs","","md","12"],["md","3"],["small","","stripedColumns","","cTable","",2,"word-break","break-word"],["small","","stripedColumns","","cTable",""],[2,"width","20%","text-wrap","nowrap"],["scope","row"],["small","","borderless","","cTable","",2,"word-break","break-word"],[2,"text-wrap","nowrap","vertical-align","middle","padding","5px","border-radius","5px","background-color","#3399ff36"],["color","info","style","font-size: 0.85em;","class","mx-1",4,"ngFor","ngForOf"],["color","info",1,"mx-1",2,"font-size","0.85em"]],template:function(i,n){if(1&i&&(t.DNE(0,F,2,0,"c-alert",1)(1,Y,2,0,"c-alert",2)(2,W,27,10,"c-row",3),t.j41(3,"c-row")(4,"c-col",4)(5,"c-card",5)(6,"c-card-body")(7,"c-row",6),t.DNE(8,M,2,1,"ng-container",7),t.nI1(9,"keyvalue"),t.k0s()()()()(),t.j41(10,"c-row")(11,"c-col",4)(12,"c-card",5)(13,"c-card-body")(14,"c-row",6)(15,"gui-grid",8)(16,"gui-grid-column",9),t.DNE(17,B,1,2,"ng-template"),t.k0s(),t.j41(18,"gui-grid-column",10),t.DNE(19,X,1,1,"ng-template"),t.k0s(),t.j41(20,"gui-grid-column",11),t.DNE(21,L,2,1,"ng-template"),t.k0s(),t.j41(22,"gui-grid-column",12),t.DNE(23,V,1,1,"ng-template"),t.k0s(),t.j41(24,"gui-grid-column",13),t.DNE(25,O,3,2,"ng-template"),t.k0s(),t.j41(26,"gui-grid-column",14),t.DNE(27,q,1,1,"ng-template"),t.k0s(),t.j41(28,"gui-grid-column",15),t.DNE(29,A,1,1,"ng-template"),t.k0s(),t.j41(30,"gui-grid-column",16),t.DNE(31,J,1,1,"ng-template"),t.k0s(),t.j41(32,"gui-grid-column",17),t.DNE(33,z,1,1,"ng-template"),t.k0s(),t.j41(34,"gui-grid-column",16),t.DNE(35,U,1,1,"ng-template"),t.k0s(),t.j41(36,"gui-grid-column",18),t.DNE(37,P,2,0,"ng-template"),t.k0s()()()()()()(),t.DNE(38,rt,3,3,"c-row",3),t.j41(39,"c-modal",19,0)(41,"c-modal-header")(42,"h5",20),t.EFF(43),t.k0s(),t.nrm(44,"button",21),t.k0s(),t.j41(45,"c-modal-body"),t.nrm(46,"c-chart",22),t.k0s(),t.j41(47,"c-modal-footer")(48,"button",23),t.EFF(49," Close "),t.k0s()()()),2&i){const r=t.sdS(40);t.Y8G("ngIf",!n.loading&&n.devdata.update_availble),t.R7$(),t.Y8G("ngIf",!n.loading&&n.devdata.upgrade_availble),t.R7$(),t.Y8G("ngIf",!n.loading),t.R7$(6),t.Y8G("ngForOf",t.bMT(9,20,n.devdata)),t.R7$(7),t.Y8G("source",n.interfaces)("columnMenu",n.columnMenu)("sorting",n.sorting)("infoPanel",n.infoPanel)("autoResizeWidth",!0),t.R7$(11),t.Y8G("enabled",!1),t.R7$(2),t.Y8G("enabled",!1),t.R7$(2),t.Y8G("enabled",!1),t.R7$(4),t.Y8G("enabled",!1),t.R7$(4),t.Y8G("ngIf",n.is_radio&&!n.radio_loading),t.R7$(),t.Y8G("visible",n.InterfaceChartModalVisible),t.R7$(4),t.JRh(n.interface_rate.name),t.R7$(),t.Y8G("cModalToggle",r.id),t.R7$(2),t.Y8G("data",n.interface_rate)("options",n.options),t.R7$(2),t.Y8G("cModalToggle",r.id)}},dependencies:[o.iby,o.qHy,o.lMi,o.CyY,u.Sq,u.bT,o.gLf,o.oMR,o.akk,o.cy2,o.iQ3,o.fvw,o.ISP,o._fv,o.UjT,o.Z7S,b.j,C,v.V1,v.fz,o.Jyz,o.zfW,o.s$3,o.epl,o.L$K,o.VtU,o.sZU,o.nSt,u.lG],styles:["[_nghost-%COMP%] .legend[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:x-small}"]})}return e})(),data:{title:$localize`Device Detail`}}];let ct=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.$C({type:e});static#a=this.\u0275inj=t.G2t({imports:[f.iI.forChild(lt),f.iI]})}return e})();var w=p(4662);let dt=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.$C({type:e});static#a=this.\u0275inj=t.G2t({imports:[u.MD,o.Ied,w.op,f.iI,o.jr_,o.v29,o.jMj]})}return e})();var R=p(8330);const pt=["*"],mt=()=>[];let gt=(()=>{class e{constructor(a){this.changeDetectorRef=a,this._href="https://coreui.io/angular/docs/"}get href(){return this._href}set href(a){this._href=`${R?.config?.coreui_library_docs_url??"https://coreui.io/angular/"}${a}`}ngAfterContentInit(){this.changeDetectorRef.detectChanges()}ngAfterViewInit(){this.changeDetectorRef.markForCheck()}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(t.gRc))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["app-docs-example"]],inputs:{fragment:"fragment",href:"href"},ngContentSelectors:pt,decls:13,vars:5,consts:[[1,"example","mb-3"],["variant","tabs"],["cNavLink","",3,"active","fragment","routerLink"],["cIcon","","name","cilMediaPlay",1,"me-2"],["cNavLink","","target","_blank",3,"href"],["cIcon","","name","cilCode",1,"me-2"],[1,"tab-content","rounded-bottom"],[1,"tab-pane","active","show","p-3","preview","fade"]],template:function(i,n){1&i&&(t.NAR(),t.j41(0,"div",0)(1,"c-nav",1)(2,"c-nav-item")(3,"a",2),t.qSk(),t.nrm(4,"svg",3),t.EFF(5," Preview "),t.k0s()(),t.joV(),t.j41(6,"c-nav-item")(7,"a",4),t.qSk(),t.nrm(8,"svg",5),t.EFF(9," Code "),t.k0s()()(),t.joV(),t.j41(10,"div",6)(11,"div",7),t.SdG(12),t.k0s()()()),2&i&&(t.R7$(3),t.Y8G("active",!0)("fragment",n.fragment)("routerLink",t.lJ4(4,mt)),t.R7$(4),t.Y8G("href",n.href,t.B4B))},dependencies:[o.Ppg,o.uSe,o.BZu,w.LJ,f.Wk],changeDetection:0})}return e})();function ut(e,s){if(1&e&&(t.qex(0),t.j41(1,"c-chart",6,0),t.EFF(3),t.k0s(),t.bVm()),2&e){const a=t.sdS(2),i=t.XpG().$implicit,n=t.XpG();t.R7$(),t.Y8G("data",i.data)("options",n.chartOptions),t.R7$(2),t.JRh(a.id)}}function _t(e,s){if(1&e&&(t.j41(0,"c-col",2)(1,"c-widget-stat-d",3),t.qSk(),t.nrm(2,"svg",4),t.DNE(3,ut,4,3,"ng-container",5),t.k0s()()),2&e){let a,i;const n=s.$implicit,r=t.XpG();t.R7$(),t.Aen(null!==(a=n.capBg)&&void 0!==a?a:null),t.Y8G("color",null!==(i=n.color)&&void 0!==i?i:"")("values",n.values),t.R7$(),t.Y8G("name",n.icon),t.R7$(),t.Y8G("ngIf",r.withCharts)}}let ft=(()=>{class e{constructor(a){this.changeDetectorRef=a,this.chartOptions={elements:{line:{tension:.4},point:{radius:0,hitRadius:10,hoverRadius:4,hoverBorderWidth:3}},maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{x:{display:!1},y:{display:!1}}},this.labels=["January","February","March","April","May","June","July"],this.datasets={borderWidth:2,fill:!0},this.colors={backgroundColor:"rgba(255,255,255,.1)",borderColor:"rgba(255,255,255,.55)",pointHoverBackgroundColor:"#fff",pointBackgroundColor:"rgba(255,255,255,.55)"},this.brandData=[{icon:"cibFacebook",values:[{title:"friends",value:"89K"},{title:"feeds",value:"459"}],capBg:{"--cui-card-cap-bg":"#3b5998"},labels:[...this.labels],data:{labels:[...this.labels],datasets:[{...this.datasets,data:[65,59,84,84,51,55,40],label:"Facebook",...this.colors}]}},{icon:"cibTwitter",values:[{title:"followers",value:"973k"},{title:"tweets",value:"1.792"}],capBg:{"--cui-card-cap-bg":"#00aced"},data:{labels:[...this.labels],datasets:[{...this.datasets,data:[1,13,9,17,34,41,38],label:"Twitter",...this.colors}]}},{icon:"cib-linkedin",values:[{title:"contacts",value:"500"},{title:"feeds",value:"1.292"}],capBg:{"--cui-card-cap-bg":"#4875b4"},data:{labels:[...this.labels],datasets:[{...this.datasets,data:[78,81,80,45,34,12,40],label:"LinkedIn",...this.colors}]}},{icon:"cilCalendar",values:[{title:"events",value:"12+"},{title:"meetings",value:"4"}],color:"warning",data:{labels:[...this.labels],datasets:[{...this.datasets,data:[35,23,56,22,97,23,64],label:"Events",...this.colors}]}}]}capStyle(a){return a?{"--cui-card-cap-bg":a}:{}}ngAfterContentInit(){this.changeDetectorRef.detectChanges()}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(t.gRc))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["app-widgets-brand"]],inputs:{withCharts:"withCharts"},decls:2,vars:1,consts:[["chart","cChart"],["sm","6","xl","3",4,"ngFor","ngForOf"],["sm","6","xl","3"],[1,"mb-4",3,"color","values"],["cIcon","","height","52",1,"my-4","text-white",3,"name"],[4,"ngIf"],["type","line",1,"position-absolute","w-100","h-100",3,"data","options"]],template:function(i,n){1&i&&(t.j41(0,"c-row"),t.DNE(1,_t,4,6,"c-col",1),t.k0s()),2&i&&(t.R7$(),t.Y8G("ngForOf",n.brandData))},dependencies:[u.Sq,u.bT,o.gLf,o.oMR,o.ofD,w.LJ,b.j]})}return e})(),ht=(()=>{class e{constructor(a){this.changeDetectorRef=a,this.datasets=[],this.labels=[],this.data=[],this.barOptions={maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{x:{display:!1},y:{display:!1}}},this.lineOptions={maintainAspectRatio:!1,elements:{line:{tension:.4},point:{radius:0}},plugins:{legend:{display:!1}},scales:{x:{display:!1},y:{display:!1}}},this.prepareLabels(),this.prepareDatasets(),this.prepareData()}get random(){return Math.floor(61*Math.random()+40)}get randomData(){const a=[];for(let i=0;i<15;i++)a.push(this.random);return a}get baseDatasets(){return[{data:this.randomData,barThickness:"flex",borderColor:"transparent",backgroundColor:"transparent",pointBackgroundColor:"transparent",pointHoverBorderColor:"transparent",borderWidth:1}]}ngAfterContentInit(){this.changeDetectorRef.detectChanges()}prepareData(){for(let a=0;a<6;a++)this.data.push({labels:this.labels,datasets:this.datasets[a]})}prepareLabels(){for(let a=0;a<15;a++)this.labels.push(this.getDayName(a))}prepareDatasets(){const a=[{backgroundColor:"danger"},{backgroundColor:"primary"},{backgroundColor:"dark"},{borderColor:"danger",borderWidth:2},{borderColor:"success",borderWidth:2},{borderColor:"info",borderWidth:2}];for(let i=0;i<6;i++)this.datasets.push(this.getDataset(a[i]))}getDataset({backgroundColor:a="transparent",borderColor:i="transparent",borderWidth:n=1}){const r=this.baseDatasets;return r[0].backgroundColor="transparent"!==a?_(`--cui-${a}`):a,r[0].borderColor="transparent"!==i?_(`--cui-${i}`):i,r[0].pointBackgroundColor=_(`--cui-${i}`),r[0].borderWidth=n,r}getDayName(a=0){const i=navigator.language??navigator.userLanguage??navigator.systemLanguage??navigator.browserLanguage??"en-US",n=new Date(Date.UTC(2e3,1,0));return n.setDate(n.getDate()+a),n.toLocaleDateString(i,{weekday:"short"})}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(t.gRc))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["app-widgets-e"]],decls:19,vars:24,consts:[["xl","2","lg","4","sm","6"],[1,"mb-4",3,"title","value"],["height","40","width","80",1,"mx-auto",3,"data","options"],["height","40","type","line","width","80",1,"mx-auto",3,"data","options"]],template:function(i,n){1&i&&(t.j41(0,"c-row")(1,"c-col",0)(2,"c-widget-stat-e",1),t.nrm(3,"c-chart",2),t.k0s()(),t.j41(4,"c-col",0)(5,"c-widget-stat-e",1),t.nrm(6,"c-chart",2),t.k0s()(),t.j41(7,"c-col",0)(8,"c-widget-stat-e",1),t.nrm(9,"c-chart",2),t.k0s()(),t.j41(10,"c-col",0)(11,"c-widget-stat-e",1),t.nrm(12,"c-chart",3),t.k0s()(),t.j41(13,"c-col",0)(14,"c-widget-stat-e",1),t.nrm(15,"c-chart",3),t.k0s()(),t.j41(16,"c-col",0)(17,"c-widget-stat-e",1),t.nrm(18,"c-chart",3),t.k0s()()()),2&i&&(t.R7$(2),t.Y8G("title","title")("value","1,123"),t.R7$(),t.Y8G("data",n.data[0])("options",n.barOptions),t.R7$(2),t.Y8G("title","title")("value","1,123"),t.R7$(),t.Y8G("data",n.data[1])("options",n.barOptions),t.R7$(2),t.Y8G("title","title")("value","1,123"),t.R7$(),t.Y8G("data",n.data[2])("options",n.barOptions),t.R7$(2),t.Y8G("title","title")("value","1,123"),t.R7$(),t.Y8G("data",n.data[3])("options",n.lineOptions),t.R7$(2),t.Y8G("title","title")("value","1,123"),t.R7$(),t.Y8G("data",n.data[4])("options",n.lineOptions),t.R7$(2),t.Y8G("title","title")("value","1,123"),t.R7$(),t.Y8G("data",n.data[5])("options",n.lineOptions))},dependencies:[o.gLf,o.oMR,o.x09,b.j]})}return e})();function bt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",57))}function vt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",58))}function kt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",59))}function wt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",60))}function xt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",57))}function yt(e,s){1&e&&(t.j41(0,"a",61),t.EFF(1," View more "),t.qSk(),t.nrm(2,"svg",62),t.k0s())}function Ct(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",58))}function Rt(e,s){1&e&&(t.j41(0,"a",61),t.EFF(1," View more "),t.qSk(),t.nrm(2,"svg",62),t.k0s())}function Gt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",59))}function Dt(e,s){1&e&&(t.j41(0,"a",61),t.EFF(1," View more "),t.qSk(),t.nrm(2,"svg",62),t.k0s())}function $t(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",60))}function jt(e,s){1&e&&(t.j41(0,"a",61),t.EFF(1," View more "),t.qSk(),t.nrm(2,"svg",62),t.k0s())}function Tt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",57))}function Ft(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",58))}function Yt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",59))}function Et(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",63))}function It(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",64))}function St(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",12),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function Wt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",66))}function Nt(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",10),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function Mt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",67))}function Bt(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",14),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function Xt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",68))}function Lt(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",16),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function Vt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",69))}function Ot(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",70),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function qt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",64))}function At(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",12),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function Jt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",66))}function zt(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",10),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function Ut(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",67))}function Pt(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",14),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function Ht(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",68))}function Kt(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",16),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function Qt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",69))}function Zt(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",70),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function te(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",71))}function ee(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",72),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function ae(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",64))}function ie(e,s){1&e&&(t.j41(0,"c-progress",73),t.nrm(1,"c-progress-bar",19),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function ne(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",66))}function se(e,s){1&e&&(t.j41(0,"c-progress",73),t.nrm(1,"c-progress-bar",19),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function oe(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",67))}function re(e,s){1&e&&(t.j41(0,"c-progress",73),t.nrm(1,"c-progress-bar",19),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function le(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",68))}function ce(e,s){1&e&&(t.j41(0,"c-progress",73),t.nrm(1,"c-progress-bar",19),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function de(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",69))}function pe(e,s){1&e&&(t.j41(0,"c-progress",73),t.nrm(1,"c-progress-bar",19),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function me(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",71))}function ge(e,s){1&e&&(t.j41(0,"c-progress",73),t.nrm(1,"c-progress-bar",19),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}const ue=[{path:"",component:(()=>{class e{constructor(a){this.changeDetectorRef=a}ngAfterContentInit(){this.changeDetectorRef.detectChanges()}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(t.gRc))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["app-widgets"]],decls:167,vars:50,consts:[["widgetStatB1inv","cWidgetStatB"],["widgetStatB2inv","cWidgetStatB"],["widgetStatB3inv","cWidgetStatB"],["widgetStatB4inv","cWidgetStatB"],[1,"mb-4"],["href","components/"],["href","components/widgets/#cwidgetstatsb"],["xl","3","md","6","sm","6"],["text","Lorem ipsum dolor sit amet enim.","value","89.9%",1,"mb-4",3,"title"],["thin","",1,"my-2"],["color","success",3,"value"],["text","Lorem ipsum dolor sit amet enim.","value","12.124",1,"mb-4",3,"title"],["color","info",3,"value"],["text","Lorem ipsum dolor sit amet enim.","value","$98,111.00",1,"mb-4",3,"title"],["color","warning",3,"value"],["text","Lorem ipsum dolor sit amet enim.","value","2 TB",1,"mb-4",3,"title"],["color","primary",3,"value"],["color","success","inverse","","text","Lorem ipsum dolor sit amet enim.","value","89.9%",1,"mb-4",3,"title"],["thin","",1,"my-2",3,"white"],[3,"value"],["color","info","inverse","","text","Lorem ipsum dolor sit amet enim.","value","12.124",1,"mb-4",3,"title"],["color","warning","inverse","","text","Lorem ipsum dolor sit amet enim.","value","$98,111.00",1,"mb-4",3,"title"],["color","primary","inverse","","text","Lorem ipsum dolor sit amet enim.","value","2 TB",1,"mb-4",3,"title"],["href","components/widgets/#cwidgetstatse"],["href","components/widgets/#cwidgetstatsf"],["color","primary","padding","","value","$1,999.50",1,"mb-3",3,"title"],["cTemplateId","widgetIconTemplate"],["color","info","padding","","value","$1,999.50",1,"mb-3",3,"title"],["color","warning","padding","","value","$1,999.50",1,"mb-3",3,"title"],["color","danger","padding","","value","$1,999.50",1,"mb-3",3,"title"],["cTemplateId","widgetFooterTemplate"],["color","primary","value","$1,999.50",1,"mb-3",3,"title"],["color","info","value","$1,999.50",1,"mb-3",3,"title"],["color","warning","value","$1,999.50",1,"mb-3",3,"title"],["color","danger","value","$1,999.50",1,"mb-3",3,"title"],["href","components/widgets/#cwidgetstatsd"],[3,"withCharts"],["href","components/widgets/#cwidgetstatsc"],["value","87,500",3,"title"],["cTemplateId","widgetProgressTemplate"],["value","385",3,"title"],["value","1238",3,"title"],["value","28%",3,"title"],["value","5:34:11",3,"title"],["xl","2","lg","4","sm","6"],["value","87,500",1,"mb-4",3,"title"],["value","385",1,"mb-4",3,"title"],["value","1238",1,"mb-4",3,"title"],["value","28%",1,"mb-4",3,"title"],["value","5:34:11",1,"mb-4",3,"title"],["value","972",1,"mb-4",3,"title"],["color","info","inverse","","value","87,500",1,"mb-4",3,"title"],["color","success","inverse","","value","385",1,"mb-4",3,"title"],["color","warning","inverse","","value","1238",1,"mb-4",3,"title"],["color","primary","inverse","","value","28%",1,"mb-4",3,"title"],["color","danger","inverse","","value","5:34:11",1,"mb-4",3,"title"],["color","dark","inverse","","value","972",1,"mb-4",3,"title"],["cIcon","","name","cilSettings","size","xl","width","24"],["cIcon","","name","cilUser","size","xl","width","24"],["cIcon","","name","cilMoon","size","xl","width","24"],["cIcon","","name","cilBell","size","xl","width","24"],["href","https://coreui.io/","rel","noopener norefferer","target","_blank",1,"font-weight-bold","font-xs","text-medium-emphasis"],["cIcon","","name","cilArrowRight","width","16",1,"float-end"],["cIcon","","name","cilBell","size","xl","width","24",1,"rounded-5"],["cIcon","","height","36","name","cilPeople"],["thin","",1,"mt-3","mb-0"],["cIcon","","height","36","name","cilUserFollow"],["cIcon","","height","36","name","cilBasket"],["cIcon","","height","36","name","cilChartPie"],["cIcon","","height","36","name","cilSpeedometer"],["color","danger",3,"value"],["cIcon","","height","36","name","cilSpeech"],["color","dark",3,"value"],["thin","","white","",1,"mt-3","mb-0"]],template:function(i,n){if(1&i&&(t.j41(0,"c-card",4)(1,"c-card-header"),t.EFF(2,"Widgets"),t.k0s(),t.j41(3,"c-card-body")(4,"app-docs-example",5),t.nrm(5,"app-widgets-dropdown"),t.k0s(),t.j41(6,"app-docs-example",6)(7,"c-row")(8,"c-col",7)(9,"c-widget-stat-b",8)(10,"c-progress",9),t.nrm(11,"c-progress-bar",10),t.k0s()()(),t.j41(12,"c-col",7)(13,"c-widget-stat-b",11)(14,"c-progress",9),t.nrm(15,"c-progress-bar",12),t.k0s()()(),t.j41(16,"c-col",7)(17,"c-widget-stat-b",13)(18,"c-progress",9),t.nrm(19,"c-progress-bar",14),t.k0s()()(),t.j41(20,"c-col",7)(21,"c-widget-stat-b",15)(22,"c-progress",9),t.nrm(23,"c-progress-bar",16),t.k0s()()()()(),t.j41(24,"app-docs-example",6)(25,"c-row")(26,"c-col",7)(27,"c-widget-stat-b",17,0)(29,"c-progress",18),t.nrm(30,"c-progress-bar",19),t.k0s()()(),t.j41(31,"c-col",7)(32,"c-widget-stat-b",20,1)(34,"c-progress",18),t.nrm(35,"c-progress-bar",19),t.k0s()()(),t.j41(36,"c-col",7)(37,"c-widget-stat-b",21,2)(39,"c-progress",18),t.nrm(40,"c-progress-bar",19),t.k0s()()(),t.j41(41,"c-col",7)(42,"c-widget-stat-b",22,3)(44,"c-progress",18),t.nrm(45,"c-progress-bar",19),t.k0s()()()()(),t.j41(46,"app-docs-example",23),t.nrm(47,"app-widgets-e"),t.k0s(),t.j41(48,"app-docs-example",24)(49,"c-row")(50,"c-col",7)(51,"c-widget-stat-f",25),t.DNE(52,bt,1,0,"ng-template",26),t.k0s()(),t.j41(53,"c-col",7)(54,"c-widget-stat-f",27),t.DNE(55,vt,1,0,"ng-template",26),t.k0s()(),t.j41(56,"c-col",7)(57,"c-widget-stat-f",28),t.DNE(58,kt,1,0,"ng-template",26),t.k0s()(),t.j41(59,"c-col",7)(60,"c-widget-stat-f",29),t.DNE(61,wt,1,0,"ng-template",26),t.k0s()()()(),t.j41(62,"app-docs-example",24)(63,"c-row")(64,"c-col",7)(65,"c-widget-stat-f",25),t.DNE(66,xt,1,0,"ng-template",26)(67,yt,3,0,"ng-template",30),t.k0s()(),t.j41(68,"c-col",7)(69,"c-widget-stat-f",27),t.DNE(70,Ct,1,0,"ng-template",26)(71,Rt,3,0,"ng-template",30),t.k0s()(),t.j41(72,"c-col",7)(73,"c-widget-stat-f",28),t.DNE(74,Gt,1,0,"ng-template",26)(75,Dt,3,0,"ng-template",30),t.k0s()(),t.j41(76,"c-col",7)(77,"c-widget-stat-f",29),t.DNE(78,$t,1,0,"ng-template",26)(79,jt,3,0,"ng-template",30),t.k0s()()()(),t.j41(80,"app-docs-example",24)(81,"c-row")(82,"c-col",7)(83,"c-widget-stat-f",31),t.DNE(84,Tt,1,0,"ng-template",26),t.k0s()(),t.j41(85,"c-col",7)(86,"c-widget-stat-f",32),t.DNE(87,Ft,1,0,"ng-template",26),t.k0s()(),t.j41(88,"c-col",7)(89,"c-widget-stat-f",33),t.DNE(90,Yt,1,0,"ng-template",26),t.k0s()(),t.j41(91,"c-col",7)(92,"c-widget-stat-f",34),t.DNE(93,Et,1,0,"ng-template",26),t.k0s()()()(),t.j41(94,"app-docs-example",35),t.nrm(95,"app-widgets-brand"),t.k0s(),t.j41(96,"app-docs-example",35),t.nrm(97,"app-widgets-brand",36),t.k0s(),t.j41(98,"app-docs-example",37)(99,"c-card-group",4)(100,"c-widget-stat-c",38),t.DNE(101,It,1,0,"ng-template",26)(102,St,2,1,"ng-template",39),t.k0s(),t.j41(103,"c-widget-stat-c",40),t.DNE(104,Wt,1,0,"ng-template",26)(105,Nt,2,1,"ng-template",39),t.k0s(),t.j41(106,"c-widget-stat-c",41),t.DNE(107,Mt,1,0,"ng-template",26)(108,Bt,2,1,"ng-template",39),t.k0s(),t.j41(109,"c-widget-stat-c",42),t.DNE(110,Xt,1,0,"ng-template",26)(111,Lt,2,1,"ng-template",39),t.k0s(),t.j41(112,"c-widget-stat-c",43),t.DNE(113,Vt,1,0,"ng-template",26)(114,Ot,2,1,"ng-template",39),t.k0s()()(),t.j41(115,"app-docs-example",37)(116,"c-row")(117,"c-col",44)(118,"c-widget-stat-c",45),t.DNE(119,qt,1,0,"ng-template",26)(120,At,2,1,"ng-template",39),t.k0s()(),t.j41(121,"c-col",44)(122,"c-widget-stat-c",46),t.DNE(123,Jt,1,0,"ng-template",26)(124,zt,2,1,"ng-template",39),t.k0s()(),t.j41(125,"c-col",44)(126,"c-widget-stat-c",47),t.DNE(127,Ut,1,0,"ng-template",26)(128,Pt,2,1,"ng-template",39),t.k0s()(),t.j41(129,"c-col",44)(130,"c-widget-stat-c",48),t.DNE(131,Ht,1,0,"ng-template",26)(132,Kt,2,1,"ng-template",39),t.k0s()(),t.j41(133,"c-col",44)(134,"c-widget-stat-c",49),t.DNE(135,Qt,1,0,"ng-template",26)(136,Zt,2,1,"ng-template",39),t.k0s()(),t.j41(137,"c-col",44)(138,"c-widget-stat-c",50),t.DNE(139,te,1,0,"ng-template",26)(140,ee,2,1,"ng-template",39),t.k0s()()()(),t.j41(141,"app-docs-example",37)(142,"c-row")(143,"c-col",44)(144,"c-widget-stat-c",51),t.DNE(145,ae,1,0,"ng-template",26)(146,ie,2,1,"ng-template",39),t.k0s()(),t.j41(147,"c-col",44)(148,"c-widget-stat-c",52),t.DNE(149,ne,1,0,"ng-template",26)(150,se,2,1,"ng-template",39),t.k0s()(),t.j41(151,"c-col",44)(152,"c-widget-stat-c",53),t.DNE(153,oe,1,0,"ng-template",26)(154,re,2,1,"ng-template",39),t.k0s()(),t.j41(155,"c-col",44)(156,"c-widget-stat-c",54),t.DNE(157,le,1,0,"ng-template",26)(158,ce,2,1,"ng-template",39),t.k0s()(),t.j41(159,"c-col",44)(160,"c-widget-stat-c",55),t.DNE(161,de,1,0,"ng-template",26)(162,pe,2,1,"ng-template",39),t.k0s()(),t.j41(163,"c-col",44)(164,"c-widget-stat-c",56),t.DNE(165,me,1,0,"ng-template",26)(166,ge,2,1,"ng-template",39),t.k0s()()()()()()),2&i){const r=t.sdS(28),d=t.sdS(33),c=t.sdS(38),l=t.sdS(43);t.R7$(9),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("value",89.9),t.R7$(2),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("value",89.9),t.R7$(2),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("value",89.9),t.R7$(2),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("value",89.9),t.R7$(4),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("white",r.inverse),t.R7$(),t.Y8G("value",89.9),t.R7$(2),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("white",d.inverse),t.R7$(),t.Y8G("value",89.9),t.R7$(2),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("white",c.inverse),t.R7$(),t.Y8G("value",89.9),t.R7$(2),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("white",l.inverse),t.R7$(),t.Y8G("value",89.9),t.R7$(6),t.Y8G("title","Income"),t.R7$(3),t.Y8G("title","Income"),t.R7$(3),t.Y8G("title","Income"),t.R7$(3),t.Y8G("title","Income"),t.R7$(5),t.Y8G("title","Income"),t.R7$(4),t.Y8G("title","Income"),t.R7$(4),t.Y8G("title","Income"),t.R7$(4),t.Y8G("title","Income"),t.R7$(6),t.Y8G("title","Income"),t.R7$(3),t.Y8G("title","Income"),t.R7$(3),t.Y8G("title","Income"),t.R7$(3),t.Y8G("title","Income"),t.R7$(5),t.Y8G("withCharts",!0),t.R7$(3),t.Y8G("title","Visitors"),t.R7$(3),t.Y8G("title","New Clients"),t.R7$(3),t.Y8G("title","Products sold"),t.R7$(3),t.Y8G("title","Returning Visitors"),t.R7$(3),t.Y8G("title","Avg. Time"),t.R7$(6),t.Y8G("title","Visitors"),t.R7$(4),t.Y8G("title","New Clients"),t.R7$(4),t.Y8G("title","Products sold"),t.R7$(4),t.Y8G("title","Returning Visitors"),t.R7$(4),t.Y8G("title","Avg. Time"),t.R7$(4),t.Y8G("title","Comments"),t.R7$(6),t.Y8G("title","Visitors"),t.R7$(4),t.Y8G("title","New Clients"),t.R7$(4),t.Y8G("title","Products sold"),t.R7$(4),t.Y8G("title","Returning Visitors"),t.R7$(4),t.Y8G("title","Avg. Time"),t.R7$(4),t.Y8G("title","Comments")}},dependencies:[o.gLf,o.oMR,o.ijd,o.v6N,o.AOl,w.LJ,o.ptL,o.iby,o.qHy,o.f3O,o.lMi,gt,o.Xfz,o.aDA,ft,C,ht]})}return e})(),data:{title:"Widgets"}}];let _e=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.$C({type:e});static#a=this.\u0275inj=t.G2t({imports:[f.iI.forChild(ue),f.iI]})}return e})(),fe=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.$C({type:e});static#a=this.\u0275inj=t.G2t({imports:[u.MD,_e,o.pc9,o.L7X,w.op,o.krp,o.GgS,o.tmq,o.Dw2,dt,o.Emn,b.u]})}return e})(),he=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.$C({type:e});static#a=this.\u0275inj=t.G2t({imports:[ct,o.Dw2,o.Zic,u.MD,o.pc9,o.Emn,o.tHK,o.tmq,o.ayw,b.u,fe,v.uM,o.fSQ,o.Q_q,o.bGq,o.v29,o.EJq]})}return e})()}}]); \ No newline at end of file diff --git a/mikrofront/dist/html/981.f603d68fbb84d0cc.js b/mikrofront/dist/html/981.f603d68fbb84d0cc.js new file mode 100644 index 0000000..382c49d --- /dev/null +++ b/mikrofront/dist/html/981.f603d68fbb84d0cc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[981],{7981:(he,x,p)=>{p.r(x),p.d(x,{DeviceModule:()=>fe});var u=p(177),o=p(8921),b=p(4858),f=p(7062),v=p(7390),t=p(4438),y=p(9492),G=p(1170),_=function(e,s){if(!(typeof window>"u"||typeof document>"u")){var a=s??document.body;return window.getComputedStyle(a,null).getPropertyValue(e).replace(/^\s/,"")}};function D(e,s){if(1&e&&t.EFF(0),2&e){const a=t.XpG().$implicit,i=t.XpG();t.SpI("\n ",i.show_number(a,i.devicedata),"\n\n ")}}function $(e,s){if(1&e&&t.nrm(0,"c-chart",5)(1,"div",6),2&e){const a=t.XpG().$implicit,i=t.XpG();t.Y8G("data",i.devicedata[a])("options",i.check_options(a)?i.options[4]:i.options[2])("type",i.check_options(a)?"bar":"line"),t.R7$(),t.Y8G("innerHTML",i.show_date(i.devicedata[a].labels[i.devicedata[a].datasets[0].data.length-1]),t.npT)}}function j(e,s){if(1&e&&(t.j41(0,"c-col",1)(1,"c-widget-stat-a",2),t.DNE(2,D,1,1,"ng-template",3)(3,$,2,4,"ng-template",4),t.k0s()()),2&e){const a=s.$implicit,i=s.index,n=t.XpG();t.Y8G("sm",6)("xl",n.count_calc(n.devicedata)),t.R7$(),t.Y8G("color",n.colors[i])("title",a)}}let C=(()=>{class e{constructor(a,i){this.changeDetectorRef=a,this.data_provider=i,this.data=[],this.options=[],this.labels=["January","February","March","April","May","June","July","August","September","October","November","December","January","February","March","April"],this.colors=["primary","success","danger","warning","info","dark","primary","success","danger","warning","info","dark","primary","success","danger","warning","info","dark","primary","success","danger","warning","info","light","dark","primary","success","danger","warning","info","light","dark"],this.datasets=[[{label:"My First dataset",backgroundColor:"transparent",borderColor:"rgba(255,255,255,.55)",pointBackgroundColor:_("--cui-primary"),pointHoverBorderColor:_("--cui-primary"),data:[65,59,84,84,51,55,40]}],[{label:"My Second dataset",backgroundColor:"transparent",borderColor:"rgba(255,255,255,.55)",pointBackgroundColor:_("--cui-info"),pointHoverBorderColor:_("--cui-info"),data:[1,18,9,17,34,22,11]}],[{label:"My Third dataset",backgroundColor:"rgba(255,255,255,.2)",borderColor:"rgba(255,255,255,.55)",pointBackgroundColor:_("--cui-warning"),pointHoverBorderColor:_("--cui-warning"),data:[78,81,80,45,34,12,40],fill:!0}],[{label:"My Fourth dataset",backgroundColor:"rgba(255,255,255,.2)",borderColor:"rgba(255,255,255,.55)",data:[78,81,80,45,34,12,40,85,65,23,12,98,34,84,67,82],barPercentage:.7}]],this.optionsDefault={plugins:{legend:{display:!1}},maintainAspectRatio:!0,scales:{x:{grid:{display:!1,drawBorder:!1},ticks:{display:!1}},y:{display:!1,grid:{display:!1},ticks:{display:!1}}},elements:{line:{borderWidth:1,tension:.4},point:{radius:4,hitRadius:10,hoverRadius:6}}}}logger(a){console.dir(a)}ngOnInit(){this.setData()}ngAfterContentInit(){this.changeDetectorRef.detectChanges()}convert_bw_human(a=0,i){const n=["bit","Kib","Mib","Gib","Tib"];let r=0;for(;a>=1024&&r-1}show_number(a,i){if("rxp/txp-total"==a){let r=i[a].datasets[1].data[i[a].datasets[1].data.length-1];return this.convert_bw_human(i[a].datasets[0].data[i[a].datasets[0].data.length-1],i[a].datasets[0].unit)+" / "+this.convert_bw_human(r,i[a].datasets[1].unit)}if("rx/tx-total"==a){let r=i[a].datasets[1].data[i[a].datasets[1].data.length-1];return this.convert_bw_human(i[a].datasets[0].data[i[a].datasets[0].data.length-1],i[a].datasets[0].unit)+" / "+this.convert_bw_human(r,i[a].datasets[1].unit)}return i[a].datasets[0].data[i[a].datasets[0].data.length-1]}count_calc(a){return a.sensors.length>4?2:3}setData(){for(let a=0;a<4;a++)this.data[a]={labels:a<3?this.labels.slice(0,7):this.labels,datasets:this.datasets[a]};this.setOptions()}show_date(a){return typeof a>"u"||""==a?"":a.split("T").length>1?"Last data : "+a.split("T")[0]:1==a.split("T").length?"Last data : "+a.split("T").join(" "):a}setOptions(){for(let a=0;a<5;a++){const i=JSON.parse(JSON.stringify(this.optionsDefault));switch(a){case 0:this.options.push(i);break;case 1:i.scales.y.min=-9,i.scales.y.max=39,this.options.push(i);break;case 2:i.scales.x={display:!1},i.scales.y={display:!1},i.elements.line.borderWidth=2,i.elements.point.radius=2,this.options.push(i);break;case 3:i.scales.x.grid={display:!1,drawTicks:!1},i.scales.x.grid={display:!1,drawTicks:!1,drawBorder:!1},i.scales.y.min=void 0,i.scales.y.max=void 0,i.elements={},this.options.push(i);break;case 4:i.plugins={tooltip:{callbacks:{label:function(n){const r=["bit","Kib","Mib","Gib","Tib"];var c=n.parsed.y;let l=0;for(;c>=1024&&l=n.objectlen(i.value.data)/4&&a=n.objectlen(i.value.data)/4*2&&a=n.objectlen(i.value.data)/4*3)}}function it(e,s){if(1&e&&(t.j41(0,"c-badge",54),t.EFF(1),t.k0s()),2&e){const a=s.$implicit;t.R7$(),t.JRh(a)}}function nt(e,s){if(1&e&&(t.j41(0,"c-row")(1,"c-col")(2,"table",51)(3,"tbody")(4,"tr")(5,"th",52),t.EFF(6,"Strength at rates"),t.k0s(),t.j41(7,"td",50),t.DNE(8,it,2,1,"c-badge",53),t.k0s()()()()()()),2&e){const a=t.XpG().$implicit,i=t.XpG(2);t.R7$(8),t.Y8G("ngForOf",i.strangth_at_rate_extract(a.value["strength-at-rates"]))}}function st(e,s){if(1&e&&(t.j41(0,"c-col",45)(1,"c-card",5)(2,"c-card-header")(3,"h6"),t.EFF(4,"Radio data"),t.k0s()(),t.j41(5,"c-card-body")(6,"h6"),t.EFF(7),t.k0s(),t.nrm(8,"app-widgets-dropdown",37),t.j41(9,"c-row")(10,"c-col",46)(11,"table",47)(12,"tbody"),t.DNE(13,H,2,1,"ng-container",7),t.nI1(14,"keyvalue"),t.k0s()()(),t.j41(15,"c-col",46)(16,"table",47)(17,"tbody"),t.DNE(18,Q,2,1,"ng-container",7),t.nI1(19,"keyvalue"),t.k0s()()(),t.j41(20,"c-col",46)(21,"table",47)(22,"tbody"),t.DNE(23,tt,2,1,"ng-container",7),t.nI1(24,"keyvalue"),t.k0s()()(),t.j41(25,"c-col",46)(26,"table",48)(27,"tbody"),t.DNE(28,at,2,1,"ng-container",7),t.nI1(29,"keyvalue"),t.k0s()()()(),t.DNE(30,nt,9,1,"c-row",3),t.k0s()()()),2&e){const a=s.$implicit;t.R7$(7),t.JRh(a.key),t.R7$(),t.Y8G("devicedata",a.value),t.R7$(5),t.Y8G("ngForOf",t.bMT(14,7,a.value.data)),t.R7$(5),t.Y8G("ngForOf",t.bMT(19,9,a.value.data)),t.R7$(5),t.Y8G("ngForOf",t.bMT(24,11,a.value.data)),t.R7$(5),t.Y8G("ngForOf",t.bMT(29,13,a.value.data)),t.R7$(2),t.Y8G("ngIf",a.value["strength-at-rates"])}}function ot(e,s){if(1&e&&(t.j41(0,"c-row"),t.DNE(1,st,31,15,"c-col",44),t.nI1(2,"keyvalue"),t.k0s()),2&e){const a=t.XpG();t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,a.radio_devsensors))}}const rt=[{path:"",component:(()=>{class e{constructor(a,i,n,r){this.data_provider=a,this.route=i,this.router=n,this.login_checker=r,this.ispro=!1,this.columns=[],this.loading=!0,this.radio_loading=!0,this.InterfaceChartModalVisible=!1,this.rows=[],this.devid=0,this.delta="live",this.total_type="bps",this.interface_rate={},this.is_radio=!1,this.sorting={enabled:!0,multiSorting:!0},this.interfaces=[],this.paging={enabled:!0,page:1,pageSize:10,pageSizes:[5,10,25,50],display:v.sE.ADVANCED},this.columnMenu={enabled:!0,sort:!0,columnsManager:!0},this.infoPanel={enabled:!0,infoDialog:!1,columnsManager:!0,schemaManager:!0},this.rowSelection={enabled:!0,type:v.AU.CHECKBOX,mode:v.fL.MULTIPLE},this.Chartoptions={responsive:!0,_self:this,plugins:{tooltip:{callbacks:{label:function(l){const g=["bit","Kib","Mib","Gib","Tib"];var m=l.parsed.y;let w=0;for(;m>=1024&&w{if("pps"==this.total_type)return l+" pps";const g=["bit","Kib","Mib","Gib","Tib"];var h=l;let m=0;for(;h>=1024&&m{if("pps"==this.total_type)return l+" pps";const g=["bit","Kib","Mib","Gib","Tib"];var h=l;let m=0;for(;h>=1024&&m{d.uid=l.uid,d.uname=l.name,d.tz=l.tz,d.ispro=l.ISPRO,"admin"!=l.role&&setTimeout(function(){d.router.navigate(["/user/dashboard"])},100)})}objectlen(a){return Object.keys(a).length}strangth_at_rate_extract(a){return a.split(",")}ngOnInit(){this.devid=Number(this.route.snapshot.paramMap.get("id")),this.options=this.Chartoptions,this.initDeviceInfo()}setOptions(){for(let a=0;a<5;a++){const i=JSON.parse(JSON.stringify(this.optionsDefault));switch(a){case 0:this.options.push(i);break;case 1:i.scales.y.min=-9,i.scales.y.max=39,this.options.push(i);break;case 2:i.scales.x={display:!1},i.scales.y={display:!1},i.elements.line.borderWidth=2,i.elements.point.radius=2,this.options.push(i);break;case 3:i.scales.x.grid={display:!1,drawTicks:!1},i.scales.x.grid={display:!1,drawTicks:!1,drawBorder:!1},i.scales.y.min=void 0,i.scales.y.max=void 0,i.elements={},this.options.push(i);break;case 4:i.plugins={tooltip:{callbacks:{label:function(n){const r=["bit","Kib","Mib","Gib","Tib"];var c=n.parsed.y;let l=0;for(;c>=1024&&l{a.devdata=i,a.interfaces=i.interfaces,"is_radio"in i&&(a.is_radio=i.is_radio),a.data_provider.get_dev_sensors(a.devid,a.delta,a.total_type).then(n=>{a.devsensors=n,a.loading=!1}),a.is_radio&&a.get_radio_data()})}checkitem(a){return!(!a.value||a.key.match("sensors|id|_availble|interfaces"))}convert_bw_human(a=0,i){const n=["bit","Kib","Mib","Gib","Tib"];let r=0;for(;a>=1024&&r{i.interface_rate=n.data,i.InterfaceChartModalVisible=!0})}get_radio_data(){if(this.ispro){var a=this;a.data_provider.get_dev_radio_sensors(a.devid,a.delta).then(i=>{a.radio_devsensors=i,a.radio_loading=!1})}}initDeviceInfo(){var a=this;clearInterval(this.data_interval),this.updateData(),this.data_interval=setInterval(()=>{this.data_provider.get_dev_info(this.devid).then(i=>{a.devdata=i,"is_radio"in i&&(a.is_radio=i.is_radio),a.interfaces=i.interfaces,a.data_provider.get_dev_sensors(a.devid,a.delta,a.total_type).then(n=>{a.devsensors=n,a.loading=!1,a.is_radio&&a.get_radio_data()})})},6e4)}ngOnDestroy(){clearInterval(this.data_interval)}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(y.C),t.rXU(f.nX),t.rXU(f.Ix),t.rXU(G.T))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["ng-component"]],decls:50,vars:22,consts:[["staticBackdropModal",""],["style","margin-bottom: 5px;margin-top: 5px;","color","warning",3,"click",4,"ngIf"],["style","margin-bottom: 5px;margin-top: 5px;","color","info",3,"click",4,"ngIf"],[4,"ngIf"],["xs",""],[1,"mb-1"],[2,"flex-direction","row"],[4,"ngFor","ngForOf"],[3,"source","columnMenu","sorting","infoPanel","autoResizeWidth"],["header","Name","field","name"],["header","MAC","field","mac-address"],["header","rx","field","rx-byte"],["header","tx","field","tx-byte"],["header","l2mtu","field","l2mtu"],["header","rx/s","field","rx-bits-per-second",3,"enabled"],["header","tx/s","field","tx-bits-per-second",3,"enabled"],["header","Created","field","created",3,"enabled"],["header","Last Up","field","last-link-up-time"],["header","Actions","field","action","width","60","align","center"],["backdrop","static","size","xl","id","InterfaceChartModal",3,"visible"],["cModalTitle",""],["cButtonClose","",3,"cModalToggle"],["type","line",3,"data","options"],["cButton","","color","secondary",3,"cModalToggle"],["color","warning",2,"margin-bottom","5px","margin-top","5px",3,"click"],["color","info",2,"margin-bottom","5px","margin-top","5px",3,"click"],["md","6","sm","12",2,"display","flex","flex-direction","row","align-items","center"],[2,"height","100%","line-height","170%","margin","0"],[2,"font-size","50%"],["md","6","sm","12",1,"justify-content-end",2,"display","flex","flex-direction","row","align-items","center"],["size","sm","aria-label","Upate interval","role","group"],["cButton","","color","primary","size","sm",3,"click","active"],["cButton","","color","primary",3,"click","active"],["sizing","xl","switch","",1,"mx-2",3,"click"],["cFormCheckInput","","type","checkbox",3,"checked"],["cFormCheckLabel",""],[3,"devicedata",4,"ngIf"],[3,"devicedata"],["class","mr-0 ml-0 mb-1","style","padding-right:unset;width: auto;flex: 1 1 auto;flex-flow: nowrap;flex: unset;",4,"ngIf"],[1,"mr-0","ml-0","mb-1",2,"padding-right","unset","width","auto","flex","1 1 auto","flex-flow","nowrap","flex","unset"],["cInputGroupText","",2,"padding","0.175rem 0.35rem","background-color","#4f5d73","text-transform","capitalize","color","#fff","font-size","0.7rem"],["_ngcontent-ng-c666080582","","cinputgrouptext","",1,"input-group-text",2,"padding","0.175rem 0.35rem","color","rgba(44, 56, 74, 0.95)","font-size","0.7rem","background-color","#d8dbe0","border-color","#b1b7c1"],["cButton","","color","info","size","sm",1,"mx-1",3,"click"],[1,"fa-solid","fa-chart-line"],["xs","","md","12",4,"ngFor","ngForOf"],["xs","","md","12"],["md","3"],["small","","stripedColumns","","cTable","",2,"word-break","break-word"],["small","","stripedColumns","","cTable",""],[2,"width","20%","text-wrap","nowrap"],["scope","row"],["small","","borderless","","cTable","",2,"word-break","break-word"],[2,"text-wrap","nowrap","vertical-align","middle","padding","5px","border-radius","5px","background-color","#3399ff36"],["color","info","style","font-size: 0.85em;","class","mx-1",4,"ngFor","ngForOf"],["color","info",1,"mx-1",2,"font-size","0.85em"]],template:function(i,n){if(1&i&&(t.DNE(0,T,2,0,"c-alert",1)(1,F,2,0,"c-alert",2)(2,S,27,10,"c-row",3),t.j41(3,"c-row")(4,"c-col",4)(5,"c-card",5)(6,"c-card-body")(7,"c-row",6),t.DNE(8,N,2,1,"ng-container",7),t.nI1(9,"keyvalue"),t.k0s()()()()(),t.j41(10,"c-row")(11,"c-col",4)(12,"c-card",5)(13,"c-card-body")(14,"c-row",6)(15,"gui-grid",8)(16,"gui-grid-column",9),t.DNE(17,M,1,2,"ng-template"),t.k0s(),t.j41(18,"gui-grid-column",10),t.DNE(19,B,1,1,"ng-template"),t.k0s(),t.j41(20,"gui-grid-column",11),t.DNE(21,X,2,1,"ng-template"),t.k0s(),t.j41(22,"gui-grid-column",12),t.DNE(23,L,1,1,"ng-template"),t.k0s(),t.j41(24,"gui-grid-column",13),t.DNE(25,V,3,2,"ng-template"),t.k0s(),t.j41(26,"gui-grid-column",14),t.DNE(27,O,1,1,"ng-template"),t.k0s(),t.j41(28,"gui-grid-column",15),t.DNE(29,q,1,1,"ng-template"),t.k0s(),t.j41(30,"gui-grid-column",16),t.DNE(31,A,1,1,"ng-template"),t.k0s(),t.j41(32,"gui-grid-column",17),t.DNE(33,J,1,1,"ng-template"),t.k0s(),t.j41(34,"gui-grid-column",16),t.DNE(35,z,1,1,"ng-template"),t.k0s(),t.j41(36,"gui-grid-column",18),t.DNE(37,U,2,0,"ng-template"),t.k0s()()()()()()(),t.DNE(38,ot,3,3,"c-row",3),t.j41(39,"c-modal",19,0)(41,"c-modal-header")(42,"h5",20),t.EFF(43),t.k0s(),t.nrm(44,"button",21),t.k0s(),t.j41(45,"c-modal-body"),t.nrm(46,"c-chart",22),t.k0s(),t.j41(47,"c-modal-footer")(48,"button",23),t.EFF(49," Close "),t.k0s()()()),2&i){const r=t.sdS(40);t.Y8G("ngIf",!n.loading&&n.devdata.update_availble),t.R7$(),t.Y8G("ngIf",!n.loading&&n.devdata.upgrade_availble),t.R7$(),t.Y8G("ngIf",!n.loading),t.R7$(6),t.Y8G("ngForOf",t.bMT(9,20,n.devdata)),t.R7$(7),t.Y8G("source",n.interfaces)("columnMenu",n.columnMenu)("sorting",n.sorting)("infoPanel",n.infoPanel)("autoResizeWidth",!0),t.R7$(11),t.Y8G("enabled",!1),t.R7$(2),t.Y8G("enabled",!1),t.R7$(2),t.Y8G("enabled",!1),t.R7$(4),t.Y8G("enabled",!1),t.R7$(4),t.Y8G("ngIf",n.is_radio&&!n.radio_loading),t.R7$(),t.Y8G("visible",n.InterfaceChartModalVisible),t.R7$(4),t.JRh(n.interface_rate.name),t.R7$(),t.Y8G("cModalToggle",r.id),t.R7$(2),t.Y8G("data",n.interface_rate)("options",n.options),t.R7$(2),t.Y8G("cModalToggle",r.id)}},dependencies:[o.iby,o.qHy,o.lMi,o.CyY,u.Sq,u.bT,o.gLf,o.oMR,o.akk,o.cy2,o.iQ3,o.fvw,o.ISP,o._fv,o.UjT,o.Z7S,b.j,C,v.V1,v.fz,o.Jyz,o.zfW,o.s$3,o.epl,o.L$K,o.VtU,o.sZU,o.nSt,u.lG],styles:["[_nghost-%COMP%] .legend[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:x-small}"]})}return e})(),data:{title:$localize`Device Detail`}}];let lt=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.$C({type:e});static#a=this.\u0275inj=t.G2t({imports:[f.iI.forChild(rt),f.iI]})}return e})();var k=p(4662);let ct=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.$C({type:e});static#a=this.\u0275inj=t.G2t({imports:[u.MD,o.Ied,k.op,f.iI,o.jr_,o.v29,o.jMj]})}return e})();var R=p(8330);const dt=["*"],pt=()=>[];let mt=(()=>{class e{constructor(a){this.changeDetectorRef=a,this._href="https://coreui.io/angular/docs/"}get href(){return this._href}set href(a){this._href=`${R?.config?.coreui_library_docs_url??"https://coreui.io/angular/"}${a}`}ngAfterContentInit(){this.changeDetectorRef.detectChanges()}ngAfterViewInit(){this.changeDetectorRef.markForCheck()}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(t.gRc))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["app-docs-example"]],inputs:{fragment:"fragment",href:"href"},ngContentSelectors:dt,decls:13,vars:5,consts:[[1,"example","mb-3"],["variant","tabs"],["cNavLink","",3,"active","fragment","routerLink"],["cIcon","","name","cilMediaPlay",1,"me-2"],["cNavLink","","target","_blank",3,"href"],["cIcon","","name","cilCode",1,"me-2"],[1,"tab-content","rounded-bottom"],[1,"tab-pane","active","show","p-3","preview","fade"]],template:function(i,n){1&i&&(t.NAR(),t.j41(0,"div",0)(1,"c-nav",1)(2,"c-nav-item")(3,"a",2),t.qSk(),t.nrm(4,"svg",3),t.EFF(5," Preview "),t.k0s()(),t.joV(),t.j41(6,"c-nav-item")(7,"a",4),t.qSk(),t.nrm(8,"svg",5),t.EFF(9," Code "),t.k0s()()(),t.joV(),t.j41(10,"div",6)(11,"div",7),t.SdG(12),t.k0s()()()),2&i&&(t.R7$(3),t.Y8G("active",!0)("fragment",n.fragment)("routerLink",t.lJ4(4,pt)),t.R7$(4),t.Y8G("href",n.href,t.B4B))},dependencies:[o.Ppg,o.uSe,o.BZu,k.LJ,f.Wk],changeDetection:0})}return e})();function gt(e,s){if(1&e&&(t.qex(0),t.j41(1,"c-chart",6,0),t.EFF(3),t.k0s(),t.bVm()),2&e){const a=t.sdS(2),i=t.XpG().$implicit,n=t.XpG();t.R7$(),t.Y8G("data",i.data)("options",n.chartOptions),t.R7$(2),t.JRh(a.id)}}function ut(e,s){if(1&e&&(t.j41(0,"c-col",2)(1,"c-widget-stat-d",3),t.qSk(),t.nrm(2,"svg",4),t.DNE(3,gt,4,3,"ng-container",5),t.k0s()()),2&e){let a,i;const n=s.$implicit,r=t.XpG();t.R7$(),t.Aen(null!==(a=n.capBg)&&void 0!==a?a:null),t.Y8G("color",null!==(i=n.color)&&void 0!==i?i:"")("values",n.values),t.R7$(),t.Y8G("name",n.icon),t.R7$(),t.Y8G("ngIf",r.withCharts)}}let _t=(()=>{class e{constructor(a){this.changeDetectorRef=a,this.chartOptions={elements:{line:{tension:.4},point:{radius:0,hitRadius:10,hoverRadius:4,hoverBorderWidth:3}},maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{x:{display:!1},y:{display:!1}}},this.labels=["January","February","March","April","May","June","July"],this.datasets={borderWidth:2,fill:!0},this.colors={backgroundColor:"rgba(255,255,255,.1)",borderColor:"rgba(255,255,255,.55)",pointHoverBackgroundColor:"#fff",pointBackgroundColor:"rgba(255,255,255,.55)"},this.brandData=[{icon:"cibFacebook",values:[{title:"friends",value:"89K"},{title:"feeds",value:"459"}],capBg:{"--cui-card-cap-bg":"#3b5998"},labels:[...this.labels],data:{labels:[...this.labels],datasets:[{...this.datasets,data:[65,59,84,84,51,55,40],label:"Facebook",...this.colors}]}},{icon:"cibTwitter",values:[{title:"followers",value:"973k"},{title:"tweets",value:"1.792"}],capBg:{"--cui-card-cap-bg":"#00aced"},data:{labels:[...this.labels],datasets:[{...this.datasets,data:[1,13,9,17,34,41,38],label:"Twitter",...this.colors}]}},{icon:"cib-linkedin",values:[{title:"contacts",value:"500"},{title:"feeds",value:"1.292"}],capBg:{"--cui-card-cap-bg":"#4875b4"},data:{labels:[...this.labels],datasets:[{...this.datasets,data:[78,81,80,45,34,12,40],label:"LinkedIn",...this.colors}]}},{icon:"cilCalendar",values:[{title:"events",value:"12+"},{title:"meetings",value:"4"}],color:"warning",data:{labels:[...this.labels],datasets:[{...this.datasets,data:[35,23,56,22,97,23,64],label:"Events",...this.colors}]}}]}capStyle(a){return a?{"--cui-card-cap-bg":a}:{}}ngAfterContentInit(){this.changeDetectorRef.detectChanges()}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(t.gRc))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["app-widgets-brand"]],inputs:{withCharts:"withCharts"},decls:2,vars:1,consts:[["chart","cChart"],["sm","6","xl","3",4,"ngFor","ngForOf"],["sm","6","xl","3"],[1,"mb-4",3,"color","values"],["cIcon","","height","52",1,"my-4","text-white",3,"name"],[4,"ngIf"],["type","line",1,"position-absolute","w-100","h-100",3,"data","options"]],template:function(i,n){1&i&&(t.j41(0,"c-row"),t.DNE(1,ut,4,6,"c-col",1),t.k0s()),2&i&&(t.R7$(),t.Y8G("ngForOf",n.brandData))},dependencies:[u.Sq,u.bT,o.gLf,o.oMR,o.ofD,k.LJ,b.j]})}return e})(),ft=(()=>{class e{constructor(a){this.changeDetectorRef=a,this.datasets=[],this.labels=[],this.data=[],this.barOptions={maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{x:{display:!1},y:{display:!1}}},this.lineOptions={maintainAspectRatio:!1,elements:{line:{tension:.4},point:{radius:0}},plugins:{legend:{display:!1}},scales:{x:{display:!1},y:{display:!1}}},this.prepareLabels(),this.prepareDatasets(),this.prepareData()}get random(){return Math.floor(61*Math.random()+40)}get randomData(){const a=[];for(let i=0;i<15;i++)a.push(this.random);return a}get baseDatasets(){return[{data:this.randomData,barThickness:"flex",borderColor:"transparent",backgroundColor:"transparent",pointBackgroundColor:"transparent",pointHoverBorderColor:"transparent",borderWidth:1}]}ngAfterContentInit(){this.changeDetectorRef.detectChanges()}prepareData(){for(let a=0;a<6;a++)this.data.push({labels:this.labels,datasets:this.datasets[a]})}prepareLabels(){for(let a=0;a<15;a++)this.labels.push(this.getDayName(a))}prepareDatasets(){const a=[{backgroundColor:"danger"},{backgroundColor:"primary"},{backgroundColor:"dark"},{borderColor:"danger",borderWidth:2},{borderColor:"success",borderWidth:2},{borderColor:"info",borderWidth:2}];for(let i=0;i<6;i++)this.datasets.push(this.getDataset(a[i]))}getDataset({backgroundColor:a="transparent",borderColor:i="transparent",borderWidth:n=1}){const r=this.baseDatasets;return r[0].backgroundColor="transparent"!==a?_(`--cui-${a}`):a,r[0].borderColor="transparent"!==i?_(`--cui-${i}`):i,r[0].pointBackgroundColor=_(`--cui-${i}`),r[0].borderWidth=n,r}getDayName(a=0){const i=navigator.language??navigator.userLanguage??navigator.systemLanguage??navigator.browserLanguage??"en-US",n=new Date(Date.UTC(2e3,1,0));return n.setDate(n.getDate()+a),n.toLocaleDateString(i,{weekday:"short"})}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(t.gRc))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["app-widgets-e"]],decls:19,vars:24,consts:[["xl","2","lg","4","sm","6"],[1,"mb-4",3,"title","value"],["height","40","width","80",1,"mx-auto",3,"data","options"],["height","40","type","line","width","80",1,"mx-auto",3,"data","options"]],template:function(i,n){1&i&&(t.j41(0,"c-row")(1,"c-col",0)(2,"c-widget-stat-e",1),t.nrm(3,"c-chart",2),t.k0s()(),t.j41(4,"c-col",0)(5,"c-widget-stat-e",1),t.nrm(6,"c-chart",2),t.k0s()(),t.j41(7,"c-col",0)(8,"c-widget-stat-e",1),t.nrm(9,"c-chart",2),t.k0s()(),t.j41(10,"c-col",0)(11,"c-widget-stat-e",1),t.nrm(12,"c-chart",3),t.k0s()(),t.j41(13,"c-col",0)(14,"c-widget-stat-e",1),t.nrm(15,"c-chart",3),t.k0s()(),t.j41(16,"c-col",0)(17,"c-widget-stat-e",1),t.nrm(18,"c-chart",3),t.k0s()()()),2&i&&(t.R7$(2),t.Y8G("title","title")("value","1,123"),t.R7$(),t.Y8G("data",n.data[0])("options",n.barOptions),t.R7$(2),t.Y8G("title","title")("value","1,123"),t.R7$(),t.Y8G("data",n.data[1])("options",n.barOptions),t.R7$(2),t.Y8G("title","title")("value","1,123"),t.R7$(),t.Y8G("data",n.data[2])("options",n.barOptions),t.R7$(2),t.Y8G("title","title")("value","1,123"),t.R7$(),t.Y8G("data",n.data[3])("options",n.lineOptions),t.R7$(2),t.Y8G("title","title")("value","1,123"),t.R7$(),t.Y8G("data",n.data[4])("options",n.lineOptions),t.R7$(2),t.Y8G("title","title")("value","1,123"),t.R7$(),t.Y8G("data",n.data[5])("options",n.lineOptions))},dependencies:[o.gLf,o.oMR,o.x09,b.j]})}return e})();function ht(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",57))}function bt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",58))}function vt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",59))}function kt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",60))}function wt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",57))}function xt(e,s){1&e&&(t.j41(0,"a",61),t.EFF(1," View more "),t.qSk(),t.nrm(2,"svg",62),t.k0s())}function yt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",58))}function Ct(e,s){1&e&&(t.j41(0,"a",61),t.EFF(1," View more "),t.qSk(),t.nrm(2,"svg",62),t.k0s())}function Rt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",59))}function Gt(e,s){1&e&&(t.j41(0,"a",61),t.EFF(1," View more "),t.qSk(),t.nrm(2,"svg",62),t.k0s())}function Dt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",60))}function $t(e,s){1&e&&(t.j41(0,"a",61),t.EFF(1," View more "),t.qSk(),t.nrm(2,"svg",62),t.k0s())}function jt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",57))}function Tt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",58))}function Ft(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",59))}function Yt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",63))}function Et(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",64))}function It(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",12),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function St(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",66))}function Wt(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",10),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function Nt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",67))}function Mt(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",14),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function Bt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",68))}function Xt(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",16),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function Lt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",69))}function Vt(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",70),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function Ot(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",64))}function qt(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",12),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function At(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",66))}function Jt(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",10),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function zt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",67))}function Ut(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",14),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function Pt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",68))}function Ht(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",16),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function Kt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",69))}function Qt(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",70),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function Zt(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",71))}function te(e,s){1&e&&(t.j41(0,"c-progress",65),t.nrm(1,"c-progress-bar",72),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function ee(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",64))}function ae(e,s){1&e&&(t.j41(0,"c-progress",73),t.nrm(1,"c-progress-bar",19),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function ie(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",66))}function ne(e,s){1&e&&(t.j41(0,"c-progress",73),t.nrm(1,"c-progress-bar",19),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function se(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",67))}function oe(e,s){1&e&&(t.j41(0,"c-progress",73),t.nrm(1,"c-progress-bar",19),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function re(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",68))}function le(e,s){1&e&&(t.j41(0,"c-progress",73),t.nrm(1,"c-progress-bar",19),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function ce(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",69))}function de(e,s){1&e&&(t.j41(0,"c-progress",73),t.nrm(1,"c-progress-bar",19),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}function pe(e,s){1&e&&(t.qSk(),t.nrm(0,"svg",71))}function me(e,s){1&e&&(t.j41(0,"c-progress",73),t.nrm(1,"c-progress-bar",19),t.k0s()),2&e&&(t.R7$(),t.Y8G("value",75))}const ge=[{path:"",component:(()=>{class e{constructor(a){this.changeDetectorRef=a}ngAfterContentInit(){this.changeDetectorRef.detectChanges()}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(t.gRc))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["app-widgets"]],decls:167,vars:50,consts:[["widgetStatB1inv","cWidgetStatB"],["widgetStatB2inv","cWidgetStatB"],["widgetStatB3inv","cWidgetStatB"],["widgetStatB4inv","cWidgetStatB"],[1,"mb-4"],["href","components/"],["href","components/widgets/#cwidgetstatsb"],["xl","3","md","6","sm","6"],["text","Lorem ipsum dolor sit amet enim.","value","89.9%",1,"mb-4",3,"title"],["thin","",1,"my-2"],["color","success",3,"value"],["text","Lorem ipsum dolor sit amet enim.","value","12.124",1,"mb-4",3,"title"],["color","info",3,"value"],["text","Lorem ipsum dolor sit amet enim.","value","$98,111.00",1,"mb-4",3,"title"],["color","warning",3,"value"],["text","Lorem ipsum dolor sit amet enim.","value","2 TB",1,"mb-4",3,"title"],["color","primary",3,"value"],["color","success","inverse","","text","Lorem ipsum dolor sit amet enim.","value","89.9%",1,"mb-4",3,"title"],["thin","",1,"my-2",3,"white"],[3,"value"],["color","info","inverse","","text","Lorem ipsum dolor sit amet enim.","value","12.124",1,"mb-4",3,"title"],["color","warning","inverse","","text","Lorem ipsum dolor sit amet enim.","value","$98,111.00",1,"mb-4",3,"title"],["color","primary","inverse","","text","Lorem ipsum dolor sit amet enim.","value","2 TB",1,"mb-4",3,"title"],["href","components/widgets/#cwidgetstatse"],["href","components/widgets/#cwidgetstatsf"],["color","primary","padding","","value","$1,999.50",1,"mb-3",3,"title"],["cTemplateId","widgetIconTemplate"],["color","info","padding","","value","$1,999.50",1,"mb-3",3,"title"],["color","warning","padding","","value","$1,999.50",1,"mb-3",3,"title"],["color","danger","padding","","value","$1,999.50",1,"mb-3",3,"title"],["cTemplateId","widgetFooterTemplate"],["color","primary","value","$1,999.50",1,"mb-3",3,"title"],["color","info","value","$1,999.50",1,"mb-3",3,"title"],["color","warning","value","$1,999.50",1,"mb-3",3,"title"],["color","danger","value","$1,999.50",1,"mb-3",3,"title"],["href","components/widgets/#cwidgetstatsd"],[3,"withCharts"],["href","components/widgets/#cwidgetstatsc"],["value","87,500",3,"title"],["cTemplateId","widgetProgressTemplate"],["value","385",3,"title"],["value","1238",3,"title"],["value","28%",3,"title"],["value","5:34:11",3,"title"],["xl","2","lg","4","sm","6"],["value","87,500",1,"mb-4",3,"title"],["value","385",1,"mb-4",3,"title"],["value","1238",1,"mb-4",3,"title"],["value","28%",1,"mb-4",3,"title"],["value","5:34:11",1,"mb-4",3,"title"],["value","972",1,"mb-4",3,"title"],["color","info","inverse","","value","87,500",1,"mb-4",3,"title"],["color","success","inverse","","value","385",1,"mb-4",3,"title"],["color","warning","inverse","","value","1238",1,"mb-4",3,"title"],["color","primary","inverse","","value","28%",1,"mb-4",3,"title"],["color","danger","inverse","","value","5:34:11",1,"mb-4",3,"title"],["color","dark","inverse","","value","972",1,"mb-4",3,"title"],["cIcon","","name","cilSettings","size","xl","width","24"],["cIcon","","name","cilUser","size","xl","width","24"],["cIcon","","name","cilMoon","size","xl","width","24"],["cIcon","","name","cilBell","size","xl","width","24"],["href","https://coreui.io/","rel","noopener norefferer","target","_blank",1,"font-weight-bold","font-xs","text-medium-emphasis"],["cIcon","","name","cilArrowRight","width","16",1,"float-end"],["cIcon","","name","cilBell","size","xl","width","24",1,"rounded-5"],["cIcon","","height","36","name","cilPeople"],["thin","",1,"mt-3","mb-0"],["cIcon","","height","36","name","cilUserFollow"],["cIcon","","height","36","name","cilBasket"],["cIcon","","height","36","name","cilChartPie"],["cIcon","","height","36","name","cilSpeedometer"],["color","danger",3,"value"],["cIcon","","height","36","name","cilSpeech"],["color","dark",3,"value"],["thin","","white","",1,"mt-3","mb-0"]],template:function(i,n){if(1&i&&(t.j41(0,"c-card",4)(1,"c-card-header"),t.EFF(2,"Widgets"),t.k0s(),t.j41(3,"c-card-body")(4,"app-docs-example",5),t.nrm(5,"app-widgets-dropdown"),t.k0s(),t.j41(6,"app-docs-example",6)(7,"c-row")(8,"c-col",7)(9,"c-widget-stat-b",8)(10,"c-progress",9),t.nrm(11,"c-progress-bar",10),t.k0s()()(),t.j41(12,"c-col",7)(13,"c-widget-stat-b",11)(14,"c-progress",9),t.nrm(15,"c-progress-bar",12),t.k0s()()(),t.j41(16,"c-col",7)(17,"c-widget-stat-b",13)(18,"c-progress",9),t.nrm(19,"c-progress-bar",14),t.k0s()()(),t.j41(20,"c-col",7)(21,"c-widget-stat-b",15)(22,"c-progress",9),t.nrm(23,"c-progress-bar",16),t.k0s()()()()(),t.j41(24,"app-docs-example",6)(25,"c-row")(26,"c-col",7)(27,"c-widget-stat-b",17,0)(29,"c-progress",18),t.nrm(30,"c-progress-bar",19),t.k0s()()(),t.j41(31,"c-col",7)(32,"c-widget-stat-b",20,1)(34,"c-progress",18),t.nrm(35,"c-progress-bar",19),t.k0s()()(),t.j41(36,"c-col",7)(37,"c-widget-stat-b",21,2)(39,"c-progress",18),t.nrm(40,"c-progress-bar",19),t.k0s()()(),t.j41(41,"c-col",7)(42,"c-widget-stat-b",22,3)(44,"c-progress",18),t.nrm(45,"c-progress-bar",19),t.k0s()()()()(),t.j41(46,"app-docs-example",23),t.nrm(47,"app-widgets-e"),t.k0s(),t.j41(48,"app-docs-example",24)(49,"c-row")(50,"c-col",7)(51,"c-widget-stat-f",25),t.DNE(52,ht,1,0,"ng-template",26),t.k0s()(),t.j41(53,"c-col",7)(54,"c-widget-stat-f",27),t.DNE(55,bt,1,0,"ng-template",26),t.k0s()(),t.j41(56,"c-col",7)(57,"c-widget-stat-f",28),t.DNE(58,vt,1,0,"ng-template",26),t.k0s()(),t.j41(59,"c-col",7)(60,"c-widget-stat-f",29),t.DNE(61,kt,1,0,"ng-template",26),t.k0s()()()(),t.j41(62,"app-docs-example",24)(63,"c-row")(64,"c-col",7)(65,"c-widget-stat-f",25),t.DNE(66,wt,1,0,"ng-template",26)(67,xt,3,0,"ng-template",30),t.k0s()(),t.j41(68,"c-col",7)(69,"c-widget-stat-f",27),t.DNE(70,yt,1,0,"ng-template",26)(71,Ct,3,0,"ng-template",30),t.k0s()(),t.j41(72,"c-col",7)(73,"c-widget-stat-f",28),t.DNE(74,Rt,1,0,"ng-template",26)(75,Gt,3,0,"ng-template",30),t.k0s()(),t.j41(76,"c-col",7)(77,"c-widget-stat-f",29),t.DNE(78,Dt,1,0,"ng-template",26)(79,$t,3,0,"ng-template",30),t.k0s()()()(),t.j41(80,"app-docs-example",24)(81,"c-row")(82,"c-col",7)(83,"c-widget-stat-f",31),t.DNE(84,jt,1,0,"ng-template",26),t.k0s()(),t.j41(85,"c-col",7)(86,"c-widget-stat-f",32),t.DNE(87,Tt,1,0,"ng-template",26),t.k0s()(),t.j41(88,"c-col",7)(89,"c-widget-stat-f",33),t.DNE(90,Ft,1,0,"ng-template",26),t.k0s()(),t.j41(91,"c-col",7)(92,"c-widget-stat-f",34),t.DNE(93,Yt,1,0,"ng-template",26),t.k0s()()()(),t.j41(94,"app-docs-example",35),t.nrm(95,"app-widgets-brand"),t.k0s(),t.j41(96,"app-docs-example",35),t.nrm(97,"app-widgets-brand",36),t.k0s(),t.j41(98,"app-docs-example",37)(99,"c-card-group",4)(100,"c-widget-stat-c",38),t.DNE(101,Et,1,0,"ng-template",26)(102,It,2,1,"ng-template",39),t.k0s(),t.j41(103,"c-widget-stat-c",40),t.DNE(104,St,1,0,"ng-template",26)(105,Wt,2,1,"ng-template",39),t.k0s(),t.j41(106,"c-widget-stat-c",41),t.DNE(107,Nt,1,0,"ng-template",26)(108,Mt,2,1,"ng-template",39),t.k0s(),t.j41(109,"c-widget-stat-c",42),t.DNE(110,Bt,1,0,"ng-template",26)(111,Xt,2,1,"ng-template",39),t.k0s(),t.j41(112,"c-widget-stat-c",43),t.DNE(113,Lt,1,0,"ng-template",26)(114,Vt,2,1,"ng-template",39),t.k0s()()(),t.j41(115,"app-docs-example",37)(116,"c-row")(117,"c-col",44)(118,"c-widget-stat-c",45),t.DNE(119,Ot,1,0,"ng-template",26)(120,qt,2,1,"ng-template",39),t.k0s()(),t.j41(121,"c-col",44)(122,"c-widget-stat-c",46),t.DNE(123,At,1,0,"ng-template",26)(124,Jt,2,1,"ng-template",39),t.k0s()(),t.j41(125,"c-col",44)(126,"c-widget-stat-c",47),t.DNE(127,zt,1,0,"ng-template",26)(128,Ut,2,1,"ng-template",39),t.k0s()(),t.j41(129,"c-col",44)(130,"c-widget-stat-c",48),t.DNE(131,Pt,1,0,"ng-template",26)(132,Ht,2,1,"ng-template",39),t.k0s()(),t.j41(133,"c-col",44)(134,"c-widget-stat-c",49),t.DNE(135,Kt,1,0,"ng-template",26)(136,Qt,2,1,"ng-template",39),t.k0s()(),t.j41(137,"c-col",44)(138,"c-widget-stat-c",50),t.DNE(139,Zt,1,0,"ng-template",26)(140,te,2,1,"ng-template",39),t.k0s()()()(),t.j41(141,"app-docs-example",37)(142,"c-row")(143,"c-col",44)(144,"c-widget-stat-c",51),t.DNE(145,ee,1,0,"ng-template",26)(146,ae,2,1,"ng-template",39),t.k0s()(),t.j41(147,"c-col",44)(148,"c-widget-stat-c",52),t.DNE(149,ie,1,0,"ng-template",26)(150,ne,2,1,"ng-template",39),t.k0s()(),t.j41(151,"c-col",44)(152,"c-widget-stat-c",53),t.DNE(153,se,1,0,"ng-template",26)(154,oe,2,1,"ng-template",39),t.k0s()(),t.j41(155,"c-col",44)(156,"c-widget-stat-c",54),t.DNE(157,re,1,0,"ng-template",26)(158,le,2,1,"ng-template",39),t.k0s()(),t.j41(159,"c-col",44)(160,"c-widget-stat-c",55),t.DNE(161,ce,1,0,"ng-template",26)(162,de,2,1,"ng-template",39),t.k0s()(),t.j41(163,"c-col",44)(164,"c-widget-stat-c",56),t.DNE(165,pe,1,0,"ng-template",26)(166,me,2,1,"ng-template",39),t.k0s()()()()()()),2&i){const r=t.sdS(28),d=t.sdS(33),c=t.sdS(38),l=t.sdS(43);t.R7$(9),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("value",89.9),t.R7$(2),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("value",89.9),t.R7$(2),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("value",89.9),t.R7$(2),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("value",89.9),t.R7$(4),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("white",r.inverse),t.R7$(),t.Y8G("value",89.9),t.R7$(2),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("white",d.inverse),t.R7$(),t.Y8G("value",89.9),t.R7$(2),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("white",c.inverse),t.R7$(),t.Y8G("value",89.9),t.R7$(2),t.Y8G("title","Widget title"),t.R7$(2),t.Y8G("white",l.inverse),t.R7$(),t.Y8G("value",89.9),t.R7$(6),t.Y8G("title","Income"),t.R7$(3),t.Y8G("title","Income"),t.R7$(3),t.Y8G("title","Income"),t.R7$(3),t.Y8G("title","Income"),t.R7$(5),t.Y8G("title","Income"),t.R7$(4),t.Y8G("title","Income"),t.R7$(4),t.Y8G("title","Income"),t.R7$(4),t.Y8G("title","Income"),t.R7$(6),t.Y8G("title","Income"),t.R7$(3),t.Y8G("title","Income"),t.R7$(3),t.Y8G("title","Income"),t.R7$(3),t.Y8G("title","Income"),t.R7$(5),t.Y8G("withCharts",!0),t.R7$(3),t.Y8G("title","Visitors"),t.R7$(3),t.Y8G("title","New Clients"),t.R7$(3),t.Y8G("title","Products sold"),t.R7$(3),t.Y8G("title","Returning Visitors"),t.R7$(3),t.Y8G("title","Avg. Time"),t.R7$(6),t.Y8G("title","Visitors"),t.R7$(4),t.Y8G("title","New Clients"),t.R7$(4),t.Y8G("title","Products sold"),t.R7$(4),t.Y8G("title","Returning Visitors"),t.R7$(4),t.Y8G("title","Avg. Time"),t.R7$(4),t.Y8G("title","Comments"),t.R7$(6),t.Y8G("title","Visitors"),t.R7$(4),t.Y8G("title","New Clients"),t.R7$(4),t.Y8G("title","Products sold"),t.R7$(4),t.Y8G("title","Returning Visitors"),t.R7$(4),t.Y8G("title","Avg. Time"),t.R7$(4),t.Y8G("title","Comments")}},dependencies:[o.gLf,o.oMR,o.ijd,o.v6N,o.AOl,k.LJ,o.ptL,o.iby,o.qHy,o.f3O,o.lMi,mt,o.Xfz,o.aDA,_t,C,ft]})}return e})(),data:{title:"Widgets"}}];let ue=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.$C({type:e});static#a=this.\u0275inj=t.G2t({imports:[f.iI.forChild(ge),f.iI]})}return e})(),_e=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.$C({type:e});static#a=this.\u0275inj=t.G2t({imports:[u.MD,ue,o.pc9,o.L7X,k.op,o.krp,o.GgS,o.tmq,o.Dw2,ct,o.Emn,b.u]})}return e})(),fe=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.$C({type:e});static#a=this.\u0275inj=t.G2t({imports:[lt,o.Dw2,o.Zic,u.MD,o.pc9,o.Emn,o.tHK,o.tmq,o.ayw,b.u,_e,v.uM,o.fSQ,o.Q_q,o.bGq,o.v29,o.EJq]})}return e})()}}]); \ No newline at end of file diff --git a/mikrofront/dist/html/index.html b/mikrofront/dist/html/index.html index 799e3f8..1661553 100644 --- a/mikrofront/dist/html/index.html +++ b/mikrofront/dist/html/index.html @@ -27,5 +27,5 @@ Loading... - + diff --git a/mikrofront/dist/html/main.02d9ac6df5703bb2.js b/mikrofront/dist/html/main.02d9ac6df5703bb2.js new file mode 100644 index 0000000..bee51ce --- /dev/null +++ b/mikrofront/dist/html/main.02d9ac6df5703bb2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmikrowizard=self.webpackChunkmikrowizard||[]).push([[792],{1170:(st,Ce,D)=>{D.d(Ce,{T:()=>$});var r=D(4438),g=D(9492);let $=(()=>{class F{constructor(ie){this.data_provider=ie,this.logged_in=!1,this.pinging=!1}isLoggedIn(){return this.logged_in}load(){var ie=this;return this.data_provider.isLoggedIn().then(A=>{ie.logged_in=A}).catch(A=>{ie.logged_in=!1})}setStatus(ie){this.logged_in=ie}setPinging(ie){this.pinging=ie}static#e=this.\u0275fac=function(A){return new(A||F)(r.KVO(g.C))};static#t=this.\u0275prov=r.jDH({token:F,factory:F.\u0275fac})}return F})()},9492:(st,Ce,D)=>{D.d(Ce,{C:()=>F});class r{constructor(ie,A,H,Z,oe,de,Ee,Te,xe){this.name=ie,this.username=A,this.partner_id=H,this.id=Z,this.firstname=oe,this.lastname=de,this.role=Ee,this.perms=Te,this.tz=xe}}var g=D(4438),$=D(7170);let F=(()=>{class se{constructor(A){this.MikroWizardRPC=A,this.serverUrl="",this.db="NothingImportant",this.MikroWizardRPC.init({MikroWizard_server:this.serverUrl})}isLoggedIn(){return this.MikroWizardRPC.isLoggedIn()}login(A="",H="",Z=""){return this.MikroWizardRPC.clearCookeis(),this.MikroWizardRPC.login(this.db,A,H,Z).then(de=>{if("uid"in de&&de.uid){let Ee=new r(de.name,de.username,de.partner_id,de.uid,de.first_name,de.last_name,de.role,de.perms,de.tz);localStorage.setItem("current_user",JSON.stringify(Ee))}return de})}logout(){return this.MikroWizardRPC.clearCookeis(),this.MikroWizardRPC.setNewSession("",""),localStorage.removeItem("current_user"),this.MikroWizardRPC.sendJsonRequest("/api/logout",{})}get_front_version(){return this.MikroWizardRPC.sendHttpGetRequest("/api/frontver/")}change_password(A,H){return this.MikroWizardRPC.sendJsonRequest("/api/user/change_password",{oldpass:A,newpass:H})}dashboard_stats(A,H){return this.MikroWizardRPC.sendJsonRequest("/api/dashboard/stats",{versioncheck:A,front_version:H})}monitoring_devices_events(A,H=""){return this.MikroWizardRPC.sendJsonRequest("/api/monitoring/devs/get",{page:A,textfilter:H})}monitoring_events_fix(A){return this.MikroWizardRPC.sendJsonRequest("/api/monitoring/events/fix",{event_id:A})}monitoring_all_events(A,H){return this.MikroWizardRPC.sendJsonRequest("/api/monitoring/events/get",{devid:A,page:H})}monitoring_unfixed_events(A){return this.MikroWizardRPC.sendJsonRequest("/api/monitoring/eventunfixed/get",{devid:A})}dashboard_traffic(A){return this.MikroWizardRPC.sendJsonRequest("/api/dashboard/traffic",{delta:A})}get_dev_list(A){return this.MikroWizardRPC.sendJsonRequest("/api/dev/list",A)}get_devgroup_list(){return this.MikroWizardRPC.sendJsonRequest("/api/devgroup/list",{})}get_devgroup_members(A){return this.MikroWizardRPC.sendJsonRequest("/api/devgroup/members",{gid:A})}delete_group(A){return this.MikroWizardRPC.sendJsonRequest("/api/devgroup/delete",{gid:A})}delete_devices(A){return this.MikroWizardRPC.sendJsonRequest("/api/dev/delete",{devids:A})}get_dev_info(A){return this.MikroWizardRPC.sendJsonRequest("/api/dev/info",{devid:A})}get_editform(A){return this.MikroWizardRPC.sendJsonRequest("/api/dev/get_editform",{devid:A})}save_editform(A){return this.MikroWizardRPC.sendJsonRequest("/api/dev/save_editform",A)}get_dev_sensors(A,H="5m",Z="bps"){return this.MikroWizardRPC.sendJsonRequest("/api/dev/sensors",{devid:A,delta:H,total:Z})}get_dev_radio_sensors(A,H="5m"){return this.MikroWizardRPC.sendJsonRequest("/api/dev/radio/sensors",{devid:A,delta:H})}get_dev_ifstat(A,H="5m",Z="ether1",oe="bps"){return this.MikroWizardRPC.sendJsonRequest("/api/dev/ifstat",{devid:A,delta:H,type:oe,interface:Z})}totp(A,H){return this.MikroWizardRPC.sendJsonRequest("/api/user/totp",{userid:H,action:A})}get_user_restrictions(A){return this.MikroWizardRPC.sendJsonRequest("/api/user/restrictions",{uid:A})}save_user_restrictions(A,H){return this.MikroWizardRPC.sendJsonRequest("/api/user/save_restrictions",{uid:A,restrictions:H})}mytotp(A,H=!1){return this.MikroWizardRPC.sendJsonRequest("/api/user/mytotp",{action:A,otp:H})}get_auth_logs(A){return this.MikroWizardRPC.sendJsonRequest("/api/auth/list",A)}get_account_logs(A){return this.MikroWizardRPC.sendJsonRequest("/api/account/list",A)}get_dev_logs(A){return this.MikroWizardRPC.sendJsonRequest("/api/devlogs/list",A)}get_syslog(A){return this.MikroWizardRPC.sendJsonRequest("/api/syslog/list",A)}get_details_grouped(A=0){return this.MikroWizardRPC.sendJsonRequest("/api/devlogs/details/list",{devid:A})}scan_devs(A,H){var Z={type:A};return"ip"==A&&(Z=Object.assign(Z,H)),this.MikroWizardRPC.sendJsonRequest("/api/scanner/scan",Z)}scan_results(){return this.MikroWizardRPC.sendJsonRequest("/api/scanner/results",{})}get_groups(A=""){return this.MikroWizardRPC.sendJsonRequest("/api/search/groups",{searchstr:A})}get_devices(A=""){return this.MikroWizardRPC.sendJsonRequest("/api/search/devices",{searchstr:A})}update_save_group(A){var H={...A};return this.MikroWizardRPC.sendJsonRequest("/api/devgroup/update_save_group",H)}get_snippets(A,H,Z,oe=0,de=1e3){return this.MikroWizardRPC.sendJsonRequest("/api/snippet/list",{name:A,description:H,content:Z,page:oe,size:de})}save_snippet(A){return this.MikroWizardRPC.sendJsonRequest("/api/snippet/save",{...A})}Exec_snipet(A,H){return A.members=H,this.MikroWizardRPC.sendJsonRequest("/api/snippet/exec",A)}delete_snippet(A){return this.MikroWizardRPC.sendJsonRequest("/api/snippet/delete",{id:A})}get_executed_snipet(A){return this.MikroWizardRPC.sendJsonRequest("/api/snippet/executed",{id:A})}get_user_task_list(){return this.MikroWizardRPC.sendJsonRequest("/api/user_tasks/list",{})}Add_task(A,H){return A.members=H,this.MikroWizardRPC.sendJsonRequest("/api/user_tasks/create",A)}Delete_task(A){return this.MikroWizardRPC.sendJsonRequest("/api/user_tasks/delete",{taskid:A})}Edit_task(A,H){return A.members=H,this.MikroWizardRPC.sendJsonRequest("/api/user_tasks/edit",A)}get_task_members(A){return this.MikroWizardRPC.sendJsonRequest("/api/taskmember/details",{taskid:A})}get_users(A,H,Z){return this.MikroWizardRPC.sendJsonRequest("/api/users/list",{page:A,size:H,search:Z})}get_perms(A,H,Z){return this.MikroWizardRPC.sendJsonRequest("/api/perms/list",{page:A,size:H,search:Z})}create_perm(A,H){return this.MikroWizardRPC.sendJsonRequest("/api/perms/create",{name:A,perms:H})}edit_perm(A,H,Z){return this.MikroWizardRPC.sendJsonRequest("/api/perms/edit",{id:A,name:H,perms:Z})}delete_perm(A){return this.MikroWizardRPC.sendJsonRequest("/api/perms/delete",{id:A})}get_vault_setting(){return this.MikroWizardRPC.sendJsonRequest("/api/pssvault/get",{})}vault_task(A){return this.MikroWizardRPC.sendJsonRequest("/api/pssvault/task",A)}vault_history(){return this.MikroWizardRPC.sendJsonRequest("/api/pssvault/history",{})}exec_vault(){return this.MikroWizardRPC.sendJsonRequest("/api/pssvault/execute",{})}reveal_password(A,H){return this.MikroWizardRPC.sendJsonRequest("/api/pssvault/reveal",{devid:A,username:H})}get_passwords(A){return this.MikroWizardRPC.sendJsonRequest("/api/pssvault/get_passwords",A)}get_device_pass(A){return this.MikroWizardRPC.sendJsonRequest("/api/pssvault/get_device_pass",{devid:A})}user_perms(A){return this.MikroWizardRPC.sendJsonRequest("/api/userperms/list",{uid:A})}Add_user_perm(A,H,Z){return this.MikroWizardRPC.sendJsonRequest("/api/userperms/create",{uid:A,pid:H,gid:Z})}Delete_user_perm(A){return this.MikroWizardRPC.sendJsonRequest("/api/userperms/delete",{id:A})}edit_user(A){return this.MikroWizardRPC.sendJsonRequest("/api/user/edit",A)}create_user(A){return this.MikroWizardRPC.sendJsonRequest("/api/user/create",A)}delete_user(A){return this.MikroWizardRPC.sendJsonRequest("/api/user/delete",{uid:A})}check_firmware(A){return this.MikroWizardRPC.sendJsonRequest("/api/firmware/check_firmware_update",{devids:A})}get_firms(A,H,Z){return this.MikroWizardRPC.sendJsonRequest("/api/firmware/get_firms",{page:A,size:H,search:Z})}delete_firm(A){return this.MikroWizardRPC.sendJsonRequest("/api/firmware/delete_from_repository",{id:A})}get_backups(A){return this.MikroWizardRPC.sendJsonRequest("/api/backup/list",A)}get_backup(A){return this.MikroWizardRPC.sendJsonRequest("/api/backup/get",{id:A})}restore_backup(A){return this.MikroWizardRPC.sendJsonRequest("/api/backup/restore",{backupid:A})}get_downloadable_firms(){return this.MikroWizardRPC.sendJsonRequest("/api/firmware/get_downloadable_firms",{})}download_firmware_to_repository(A){return this.MikroWizardRPC.sendJsonRequest("/api/firmware/download_firmware_to_repository",{version:A})}save_firmware_setting(A,H,Z){return this.MikroWizardRPC.sendJsonRequest("/api/firmware/update_firmware_settings",{updatebehavior:A,firmwaretoinstall:H,firmwaretoinstallv6:Z})}update_firmware(A){return this.MikroWizardRPC.sendJsonRequest("/api/firmware/update_firmware",{devids:A})}upgrade_firmware(A){return this.MikroWizardRPC.sendJsonRequest("/api/firmware/upgrade_firmware",{devids:A})}reboot_devices(A){return this.MikroWizardRPC.sendJsonRequest("/api/firmware/reboot_devices",{devids:A})}get_settings(){return this.MikroWizardRPC.sendJsonRequest("/api/sysconfig/get_all",{})}save_sys_setting(A){return this.MikroWizardRPC.sendJsonRequest("/api/sysconfig/save_all",A)}get_running_tasks(){return this.MikroWizardRPC.sendJsonRequest("/api/tasks/list",{})}stop_task(A){return this.MikroWizardRPC.sendJsonRequest("/api/tasks/stop",{signal:A})}apply_update(A){return this.MikroWizardRPC.sendJsonRequest("/api/sysconfig/apply_update",{action:A})}setupSession(A,H){this.MikroWizardRPC.clearCookeis(),this.MikroWizardRPC.setNewSession(A,H)}checkSessionExpired(A){return console.log(A),"title"in A&&"session_expired"==A.title&&this.logout(),Promise.reject(A.message||A)}setSession(A,H){this.MikroWizardRPC.setNewSession(A,H)}getSessionInfo(){return this.MikroWizardRPC.getSessionInfo()}getFullUrl(A){return this.serverUrl+A}static#e=this.\u0275fac=function(H){return new(H||se)(g.KVO($.l))};static#t=this.\u0275prov=g.jDH({token:se,factory:se.\u0275fac})}return se})()},7170:(st,Ce,D)=>{D.d(Ce,{l:()=>F});var r=D(4438),g=D(1626);class ${constructor(){this.session_id=""}delete_sessionId(){this.session_id="",document.cookie=""}get_sessionId(){return document.cookie.split("; ").filter(ie=>0===ie.indexOf("session_id")).map(ie=>ie.split("=")[1]).pop()||this.session_id||""}set_sessionId(ie){}}let F=(()=>{class se{constructor(A){this.http=A,this.uniq_id_counter=0,this.shouldManageSessionId=!1,this.context={lang:"en_US"},this.cookies=new $}buildRequest(A,H){return this.uniq_id_counter+=1,this.shouldManageSessionId&&(H.session_id=this.cookies.get_sessionId()),this.headers={"Content-Type":"application/json","Session-Id":this.cookies.get_sessionId(),Authorization:"Basic "+btoa(`${this.http_auth}`)},H}handleMikroWizardErrors(A){if(!A.error)return"string"==typeof A.result||A.result instanceof String?JSON.parse(A.result):A.result;return Promise.reject(A.error)}handleRequestErrors(A){if(!A.error)return"string"==typeof A.result||A.result instanceof String?JSON.parse(A.result):A.result;return Promise.reject(A.error)}handleHttpErrors(A){try{console.log(A,Object.getOwnPropertyNames(A))}catch{console.log(A)}return Promise.reject(A.message||A)}init(A){this.MikroWizard_server=A.MikroWizard_server,this.http_auth=A.http_auth||null}setMikroWizardServer(A){this.MikroWizard_server=A}setHttpAuth(A){this.http_auth=A}sendRequestauth(A,H){let Z=this.buildRequest(A,H);return this.http.post(this.MikroWizard_server+A,Z,{observe:"response",headers:this.headers,withCredentials:!0})}sendRequest(A,H){let Z=this.buildRequest(A,H);return this.http.post(this.MikroWizard_server+A,Z,{headers:this.headers,withCredentials:!0}).toPromise().then(oe=>this.handleMikroWizardErrors(oe)).catch(oe=>this.handleHttpErrors(oe))}sendJsonRequest(A,H){return this.http.post(A,H,{headers:this.headers,withCredentials:!0}).toPromise().then(this.handleRequestErrors).catch(this.handleHttpErrors)}sendHttpRequest(A,H){return this.http.post(this.MikroWizard_server+A,H,{headers:{"Content-Type":"application/x-www-form-urlencoded"},withCredentials:!0}).toPromise().then(this.handleRequestErrors).catch(this.handleHttpErrors)}sendHttpGetRequest(A){return this.http.get(A,{responseType:"json"}).toPromise()}getServerInfo(){return this.sendRequest("/api/version_info",{})}getSessionInfo(){return this.sendRequest("/api/me",{})}login(A,H,Z,oe){return this.sendRequest("/api/login",{username:H,password:Z,otp:oe})}isLoggedIn(){return this.getSessionInfo().then(function(A){return"uid"in A})}clearCookeis(){this.cookies=new $}logout(){return this.clearCookeis(),Promise.resolve()}getUserContext(A){localStorage.setItem("user_context",JSON.stringify(A))}getContext(){return this.context}setNewSession(A,H){this.context=A,localStorage.setItem("user_context",JSON.stringify(this.context))}static#e=this.\u0275fac=function(H){return new(H||se)(r.KVO(g.Qq))};static#t=this.\u0275prov=r.jDH({token:se,factory:se.\u0275fac})}return se})()},2234:(st,Ce,D)=>{D.d(Ce,{X:()=>Ee});var r=D(9417),g=D(4438),$=D(7062),F=D(9492),se=D(1170),ie=D(177),A=D(8921),H=D(4662);const Z=()=>({"width.%":44});function oe(Te,xe){1&Te&&(g.j41(0,"c-input-group",16)(1,"span",13),g.nrm(2,"i",23),g.k0s(),g.nrm(3,"input",24,2),g.k0s())}function de(Te,xe){if(1&Te&&(g.j41(0,"code"),g.nrm(1,"i",25),g.j41(2,"small"),g.EFF(3),g.k0s()()),2&Te){const we=g.XpG();g.R7$(3),g.SpI(" ",we.error_msg,"")}}let Ee=(()=>{class Te{constructor(we,$e,We){this.router=we,this.data_provider=$e,this.login_checker=We,this.error_msg="",this.forgot_error_msg="",this.success_msg="",this.submitted=!1,this.forgot_page=!1,this.forgot_btn_disable=!1,this.show_otp=!1,this.createForm()}createForm(){this.loginForm=new r.gE({username:new r.MJ(""),password:new r.MJ(""),ga_code:new r.MJ("")}),this.forgotForm=new r.gE({email:new r.MJ("")})}onClickSubmit(){var we=this;let $e=we.loginForm.get("username").value,We=we.loginForm.get("password").value,mt=we.loginForm.get("ga_code").value;we.data_provider.login($e,We,mt).then(tt=>{"uid"in tt&&tt.uid?(we.error_msg="",we.login_checker.setStatus(!0),we.router.navigate(["/"],{replaceUrl:!0})):"status"in tt?we.error_msg=tt.err:"otp"in tt&&tt.otp?this.show_otp=!0:we.error_msg="Error: Problem in backend"}).catch(tt=>{we.error_msg="Connection with backend broken!"})}static#e=this.\u0275fac=function($e){return new($e||Te)(g.rXU($.Ix),g.rXU(F.C),g.rXU(se.T))};static#t=this.\u0275cmp=g.VBU({type:Te,selectors:[["app-login"]],decls:31,vars:5,consts:[["username",""],["password",""],["ga_code",""],[1,"bg-light","min-vh-100","d-flex","flex-row","align-items-center"],[1,"justify-content-center"],["md","8"],[1,"text-white","py-5",2,"background-color","#303c54",3,"ngStyle"],[1,"text-center"],["src","assets/img/brand/mikrowizard-full.jpg",2,"width","200px"],[1,"p-4"],["cForm","",3,"formGroup"],[1,"text-medium-emphasis"],[1,"mb-3"],["cInputGroupText",""],["cIcon","","name","cilUser"],["autoComplete","username","cFormControl","","placeholder","Username","formControlName","username","required",""],[1,"mb-1"],["cIcon","","name","cilLockLocked"],["autoComplete","current-password","cFormControl","","placeholder","Password","type","password","formControlName","password","required",""],["class","mb-1",4,"ngIf"],[4,"ngIf"],["mb-3","","xs","6"],["type","submit","cButton","","color","primary",1,"px-4",3,"click"],[1,"fa-regular","fa-clock"],["cFormControl","","placeholder","2FA TOTP key","formControlName","ga_code","required",""],[1,"fa-solid","fa-triangle-exclamation"]],template:function($e,We){if(1&$e){const mt=g.RV6();g.j41(0,"div",3)(1,"c-container")(2,"c-row",4)(3,"c-col",5)(4,"c-card-group")(5,"c-card",6)(6,"c-card-body",7),g.nrm(7,"img",8),g.k0s()(),g.j41(8,"c-card",9)(9,"c-card-body")(10,"form",10)(11,"h1"),g.EFF(12,"Login"),g.k0s(),g.j41(13,"p",11),g.EFF(14,"Sign In to your account"),g.k0s(),g.j41(15,"c-input-group",12)(16,"span",13),g.qSk(),g.nrm(17,"svg",14),g.k0s(),g.joV(),g.nrm(18,"input",15,0),g.k0s(),g.j41(20,"c-input-group",16)(21,"span",13),g.qSk(),g.nrm(22,"svg",17),g.k0s(),g.joV(),g.nrm(23,"input",18,1),g.k0s(),g.DNE(25,oe,5,0,"c-input-group",19)(26,de,4,1,"code",20),g.j41(27,"c-row")(28,"c-col",21)(29,"button",22),g.bIt("click",function(){return g.eBV(mt),g.Njj(We.onClickSubmit())}),g.EFF(30," Login "),g.k0s()()()()()()()()()()()}2&$e&&(g.R7$(5),g.Y8G("ngStyle",g.lJ4(4,Z)),g.R7$(5),g.Y8G("formGroup",We.loginForm),g.R7$(15),g.Y8G("ngIf",We.show_otp),g.R7$(),g.Y8G("ngIf",We.error_msg))},dependencies:[ie.bT,ie.B3,A.iby,A.qHy,A.f3O,A._fv,A.gLf,A.HUM,A.oMR,H.LJ,A.CWS,A.l_X,A.fvw,A.ISP,r.qT,r.me,r.BC,r.cb,r.YS,r.j4,r.JD]})}return Te})()},3042:(st,Ce,D)=>{D.d(Ce,{X:()=>F});var r=D(4438),g=D(8921),$=D(4662);let F=(()=>{class se{constructor(){}static#e=this.\u0275fac=function(H){return new(H||se)};static#t=this.\u0275cmp=r.VBU({type:se,selectors:[["app-page404"]],decls:17,vars:0,consts:[[1,"bg-light","min-vh-100","d-flex","flex-row","align-items-center"],[1,"justify-content-center"],["md","6"],[1,"clearfix"],[1,"float-start","display-3","me-4"],[1,"pt-3"],[1,"text-medium-emphasis","float-start"],[1,"input-prepend"],["cInputGroupText",""],["cIcon","","name","cilMagnifyingGlass"],["cFormControl","","placeholder","What are you looking for?","type","text"],["cButton","","color","info"]],template:function(H,Z){1&H&&(r.j41(0,"div",0)(1,"c-container")(2,"c-row",1)(3,"c-col",2)(4,"div",3)(5,"h1",4),r.EFF(6,"404"),r.k0s(),r.j41(7,"h4",5),r.EFF(8,"Oops! You're lost."),r.k0s(),r.j41(9,"p",6),r.EFF(10," The page you are looking for was not found. "),r.k0s()(),r.j41(11,"c-input-group",7)(12,"span",8),r.qSk(),r.nrm(13,"svg",9),r.k0s(),r.joV(),r.nrm(14,"input",10),r.j41(15,"button",11),r.EFF(16,"Search"),r.k0s()()()()()())},dependencies:[g._fv,g.gLf,g.HUM,g.oMR,$.LJ,g.l_X,g.fvw,g.ISP]})}return se})()},5050:(st,Ce,D)=>{D.d(Ce,{y:()=>F});var r=D(4438),g=D(8921),$=D(4662);let F=(()=>{class se{constructor(){}static#e=this.\u0275fac=function(H){return new(H||se)};static#t=this.\u0275cmp=r.VBU({type:se,selectors:[["app-page500"]],decls:17,vars:0,consts:[[1,"bg-light","min-vh-100","d-flex","flex-row","align-items-center"],[1,"justify-content-center"],["md","6"],[1,"clearfix"],[1,"float-start","display-3","me-4"],[1,"pt-3"],[1,"text-medium-emphasis","float-start"],[1,"input-prepend"],["cInputGroupText",""],["cIcon","","name","cilMagnifyingGlass"],["cFormControl","","placeholder","What are you looking for?","type","text"],["cButton","","color","info"]],template:function(H,Z){1&H&&(r.j41(0,"div",0)(1,"c-container")(2,"c-row",1)(3,"c-col",2)(4,"span",3)(5,"h1",4),r.EFF(6,"500"),r.k0s(),r.j41(7,"h4",5),r.EFF(8,"Houston, we have a problem!"),r.k0s(),r.j41(9,"p",6),r.EFF(10," The page you are looking for is temporarily unavailable. "),r.k0s()(),r.j41(11,"c-input-group",7)(12,"span",8),r.qSk(),r.nrm(13,"svg",9),r.k0s(),r.joV(),r.nrm(14,"input",10),r.j41(15,"button",11),r.EFF(16,"Search"),r.k0s()()()()()())},dependencies:[g._fv,g.gLf,g.HUM,g.oMR,$.LJ,g.l_X,g.fvw,g.ISP]})}return se})()},1579:(st,Ce,D)=>{var r=D(345),g=D(4438),$=D(177),F=D(9969);function ie(l){return new g.wOt(3e3,!1)}function bt(l){switch(l.length){case 0:return new F.sf;case 1:return l[0];default:return new F.ui(l)}}function Gt(l,s,o=new Map,c=new Map){const m=[],M=[];let R=-1,U=null;if(s.forEach(ce=>{const me=ce.get("offset"),je=me==R,qe=je&&U||new Map;ce.forEach((wt,Tt)=>{let kt=Tt,rt=wt;if("offset"!==Tt)switch(kt=l.normalizePropertyName(kt,m),rt){case F.FX:rt=o.get(Tt);break;case F.kp:rt=c.get(Tt);break;default:rt=l.normalizeStyleValue(Tt,kt,rt,m)}qe.set(kt,rt)}),je||M.push(qe),U=qe,R=me}),m.length)throw function ze(l){return new g.wOt(3502,!1)}();return M}function Je(l,s,o,c){switch(s){case"start":l.onStart(()=>c(o&&Xt(o,"start",l)));break;case"done":l.onDone(()=>c(o&&Xt(o,"done",l)));break;case"destroy":l.onDestroy(()=>c(o&&Xt(o,"destroy",l)))}}function Xt(l,s,o){const M=Yt(l.element,l.triggerName,l.fromState,l.toState,s||l.phaseName,o.totalTime??l.totalTime,!!o.disabled),R=l._data;return null!=R&&(M._data=R),M}function Yt(l,s,o,c,m="",M=0,R){return{element:l,triggerName:s,fromState:o,toState:c,phaseName:m,totalTime:M,disabled:!!R}}function gt(l,s,o){let c=l.get(s);return c||l.set(s,c=o),c}function cn(l){const s=l.indexOf(":");return[l.substring(1,s),l.slice(s+1)]}const ir=typeof document>"u"?null:document.documentElement;function kn(l){const s=l.parentNode||l.host||null;return s===ir?null:s}let vn=null,pt=!1;function er(l,s){for(;s;){if(s===l)return!0;s=kn(s)}return!1}function yr(l,s,o){if(o)return Array.from(l.querySelectorAll(s));const c=l.querySelector(s);return c?[c]:[]}let Ft=(()=>{class l{validateStyleProperty(o){return function ar(l){vn||(vn=function Yn(){return typeof document<"u"?document.body:null}()||{},pt=!!vn.style&&"WebkitAppearance"in vn.style);let s=!0;return vn.style&&!function Rn(l){return"ebkit"==l.substring(1,6)}(l)&&(s=l in vn.style,!s&&pt&&(s="Webkit"+l.charAt(0).toUpperCase()+l.slice(1)in vn.style)),s}(o)}matchesElement(o,c){return!1}containsElement(o,c){return er(o,c)}getParentElement(o){return kn(o)}query(o,c,m){return yr(o,c,m)}computeStyle(o,c,m){return m||""}animate(o,c,m,M,R,U=[],ce){return new F.sf(m,M)}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=g.jDH({token:l,factory:l.\u0275fac})}return l})();class Vt{static#e=this.NOOP=new Ft}class Ln{}const Un=1e3,mi="ng-enter",At="ng-leave",wr="ng-trigger",Kt=".ng-trigger",en="ng-animating",xr=".ng-animating";function tn(l){if("number"==typeof l)return l;const s=l.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:Xn(parseFloat(s[1]),s[2])}function Xn(l,s){return"s"===s?l*Un:l}function Fr(l,s,o){return l.hasOwnProperty("duration")?l:function ii(l,s,o){let m,M=0,R="";if("string"==typeof l){const U=l.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===U)return s.push(ie()),{duration:0,delay:0,easing:""};m=Xn(parseFloat(U[1]),U[2]);const ce=U[3];null!=ce&&(M=Xn(parseFloat(ce),U[4]));const me=U[5];me&&(R=me)}else m=l;if(!o){let U=!1,ce=s.length;m<0&&(s.push(function A(){return new g.wOt(3100,!1)}()),U=!0),M<0&&(s.push(function H(){return new g.wOt(3101,!1)}()),U=!0),U&&s.splice(ce,0,ie())}return{duration:m,delay:M,easing:R}}(l,s,o)}function B(l,s,o){s.forEach((c,m)=>{const M=le(m);o&&!o.has(m)&&o.set(m,l.style[M]),l.style[M]=c})}function x(l,s){s.forEach((o,c)=>{const m=le(c);l.style[m]=""})}function K(l){return Array.isArray(l)?1==l.length?l[0]:(0,F.K2)(l):l}const Ae=new RegExp("{{\\s*(.+?)\\s*}}","g");function Q(l){let s=[];if("string"==typeof l){let o;for(;o=Ae.exec(l);)s.push(o[1]);Ae.lastIndex=0}return s}function ve(l,s,o){const c=`${l}`,m=c.replace(Ae,(M,R)=>{let U=s[R];return null==U&&(o.push(function oe(l){return new g.wOt(3003,!1)}()),U=""),U.toString()});return m==c?l:m}const re=/-+([a-z0-9])/g;function le(l){return l.replace(re,(...s)=>s[1].toUpperCase())}function yt(l,s,o){switch(s.type){case F.If.Trigger:return l.visitTrigger(s,o);case F.If.State:return l.visitState(s,o);case F.If.Transition:return l.visitTransition(s,o);case F.If.Sequence:return l.visitSequence(s,o);case F.If.Group:return l.visitGroup(s,o);case F.If.Animate:return l.visitAnimate(s,o);case F.If.Keyframes:return l.visitKeyframes(s,o);case F.If.Style:return l.visitStyle(s,o);case F.If.Reference:return l.visitReference(s,o);case F.If.AnimateChild:return l.visitAnimateChild(s,o);case F.If.AnimateRef:return l.visitAnimateRef(s,o);case F.If.Query:return l.visitQuery(s,o);case F.If.Stagger:return l.visitStagger(s,o);default:throw function de(l){return new g.wOt(3004,!1)}()}}function Vn(l,s){return window.getComputedStyle(l)[s]}const Hn=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 St extends Ln{normalizePropertyName(s,o){return le(s)}normalizeStyleValue(s,o,c,m){let M="";const R=c.toString().trim();if(Hn.has(o)&&0!==c&&"0"!==c)if("number"==typeof c)M="px";else{const U=c.match(/^[+-]?[\d\.]+([a-z]*)$/);U&&0==U[1].length&&m.push(function Ee(l,s){return new g.wOt(3005,!1)}())}return R+M}}const zr="*";const Yi=new Set(["true","1"]),Si=new Set(["false","0"]);function ks(l,s){const o=Yi.has(l)||Si.has(l),c=Yi.has(s)||Si.has(s);return(m,M)=>{let R=l==zr||l==m,U=s==zr||s==M;return!R&&o&&"boolean"==typeof m&&(R=m?Yi.has(l):Si.has(l)),!U&&c&&"boolean"==typeof M&&(U=M?Yi.has(s):Si.has(s)),R&&U}}const ye=new RegExp("s*:selfs*,?","g");function be(l,s,o,c){return new Le(l).build(s,o,c)}class Le{constructor(s){this._driver=s}build(s,o,c){const m=new nn(o);return this._resetContextStyleTimingState(m),yt(this,K(s),m)}_resetContextStyleTimingState(s){s.currentQuerySelector="",s.collectedStyles=new Map,s.collectedStyles.set("",new Map),s.currentTime=0}visitTrigger(s,o){let c=o.queryCount=0,m=o.depCount=0;const M=[],R=[];return"@"==s.name.charAt(0)&&o.errors.push(function Te(){return new g.wOt(3006,!1)}()),s.definitions.forEach(U=>{if(this._resetContextStyleTimingState(o),U.type==F.If.State){const ce=U,me=ce.name;me.toString().split(/\s*,\s*/).forEach(je=>{ce.name=je,M.push(this.visitState(ce,o))}),ce.name=me}else if(U.type==F.If.Transition){const ce=this.visitTransition(U,o);c+=ce.queryCount,m+=ce.depCount,R.push(ce)}else o.errors.push(function xe(){return new g.wOt(3007,!1)}())}),{type:F.If.Trigger,name:s.name,states:M,transitions:R,queryCount:c,depCount:m,options:null}}visitState(s,o){const c=this.visitStyle(s.styles,o),m=s.options&&s.options.params||null;if(c.containsDynamicStyles){const M=new Set,R=m||{};c.styles.forEach(U=>{U instanceof Map&&U.forEach(ce=>{Q(ce).forEach(me=>{R.hasOwnProperty(me)||M.add(me)})})}),M.size&&o.errors.push(function we(l,s){return new g.wOt(3008,!1)}(0,M.values()))}return{type:F.If.State,name:s.name,style:c,options:m?{params:m}:null}}visitTransition(s,o){o.queryCount=0,o.depCount=0;const c=yt(this,K(s.animation),o),m=function Ci(l,s){const o=[];return"string"==typeof l?l.split(/\s*,\s*/).forEach(c=>function Ii(l,s,o){if(":"==l[0]){const ce=function es(l,s){switch(l){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(o,c)=>parseFloat(c)>parseFloat(o);case":decrement":return(o,c)=>parseFloat(c) *"}}(l,o);if("function"==typeof ce)return void s.push(ce);l=ce}const c=l.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==c||c.length<4)return o.push(function Xe(l){return new g.wOt(3015,!1)}()),s;const m=c[1],M=c[2],R=c[3];s.push(ks(m,R)),"<"==M[0]&&(m!=zr||R!=zr)&&s.push(ks(R,m))}(c,o,s)):o.push(l),o}(s.expr,o.errors);return{type:F.If.Transition,matchers:m,animation:c,queryCount:o.queryCount,depCount:o.depCount,options:Nt(s.options)}}visitSequence(s,o){return{type:F.If.Sequence,steps:s.steps.map(c=>yt(this,c,o)),options:Nt(s.options)}}visitGroup(s,o){const c=o.currentTime;let m=0;const M=s.steps.map(R=>{o.currentTime=c;const U=yt(this,R,o);return m=Math.max(m,o.currentTime),U});return o.currentTime=m,{type:F.If.Group,steps:M,options:Nt(s.options)}}visitAnimate(s,o){const c=function Nn(l,s){if(l.hasOwnProperty("duration"))return l;if("number"==typeof l)return ln(Fr(l,s).duration,0,"");const o=l;if(o.split(/\s+/).some(M=>"{"==M.charAt(0)&&"{"==M.charAt(1))){const M=ln(0,0,"");return M.dynamic=!0,M.strValue=o,M}const m=Fr(o,s);return ln(m.duration,m.delay,m.easing)}(s.timings,o.errors);o.currentAnimateTimings=c;let m,M=s.styles?s.styles:(0,F.iF)({});if(M.type==F.If.Keyframes)m=this.visitKeyframes(M,o);else{let R=s.styles,U=!1;if(!R){U=!0;const me={};c.easing&&(me.easing=c.easing),R=(0,F.iF)(me)}o.currentTime+=c.duration+c.delay;const ce=this.visitStyle(R,o);ce.isEmptyStep=U,m=ce}return o.currentAnimateTimings=null,{type:F.If.Animate,timings:c,style:m,options:null}}visitStyle(s,o){const c=this._makeStyleAst(s,o);return this._validateStyleAst(c,o),c}_makeStyleAst(s,o){const c=[],m=Array.isArray(s.styles)?s.styles:[s.styles];for(let U of m)"string"==typeof U?U===F.kp?c.push(U):o.errors.push(new g.wOt(3002,!1)):c.push(new Map(Object.entries(U)));let M=!1,R=null;return c.forEach(U=>{if(U instanceof Map&&(U.has("easing")&&(R=U.get("easing"),U.delete("easing")),!M))for(let ce of U.values())if(ce.toString().indexOf("{{")>=0){M=!0;break}}),{type:F.If.Style,styles:c,easing:R,offset:s.offset,containsDynamicStyles:M,options:null}}_validateStyleAst(s,o){const c=o.currentAnimateTimings;let m=o.currentTime,M=o.currentTime;c&&M>0&&(M-=c.duration+c.delay),s.styles.forEach(R=>{"string"!=typeof R&&R.forEach((U,ce)=>{const me=o.collectedStyles.get(o.currentQuerySelector),je=me.get(ce);let qe=!0;je&&(M!=m&&M>=je.startTime&&m<=je.endTime&&(o.errors.push(function mt(l,s,o,c,m){return new g.wOt(3010,!1)}()),qe=!1),M=je.startTime),qe&&me.set(ce,{startTime:M,endTime:m}),o.options&&function G(l,s,o){const c=s.params||{},m=Q(l);m.length&&m.forEach(M=>{c.hasOwnProperty(M)||o.push(function Z(l){return new g.wOt(3001,!1)}())})}(U,o.options,o.errors)})})}visitKeyframes(s,o){const c={type:F.If.Keyframes,styles:[],options:null};if(!o.currentAnimateTimings)return o.errors.push(function tt(){return new g.wOt(3011,!1)}()),c;let M=0;const R=[];let U=!1,ce=!1,me=0;const je=s.steps.map(Jt=>{const Bn=this._makeStyleAst(Jt,o);let Jn=null!=Bn.offset?Bn.offset:function Rt(l){if("string"==typeof l)return null;let s=null;if(Array.isArray(l))l.forEach(o=>{if(o instanceof Map&&o.has("offset")){const c=o;s=parseFloat(c.get("offset")),c.delete("offset")}});else if(l instanceof Map&&l.has("offset")){const o=l;s=parseFloat(o.get("offset")),o.delete("offset")}return s}(Bn.styles),mr=0;return null!=Jn&&(M++,mr=Bn.offset=Jn),ce=ce||mr<0||mr>1,U=U||mr0&&M{const Jn=wt>0?Bn==Tt?1:wt*Bn:R[Bn],mr=Jn*_t;o.currentTime=kt+rt.delay+mr,rt.duration=mr,this._validateStyleAst(Jt,o),Jt.offset=Jn,c.styles.push(Jt)}),c}visitReference(s,o){return{type:F.If.Reference,animation:yt(this,K(s.animation),o),options:Nt(s.options)}}visitAnimateChild(s,o){return o.depCount++,{type:F.If.AnimateChild,options:Nt(s.options)}}visitAnimateRef(s,o){return{type:F.If.AnimateRef,animation:this.visitReference(s.animation,o),options:Nt(s.options)}}visitQuery(s,o){const c=o.currentQuerySelector,m=s.options||{};o.queryCount++,o.currentQuery=s;const[M,R]=function ht(l){const s=!!l.split(/\s*,\s*/).find(o=>":self"==o);return s&&(l=l.replace(ye,"")),l=l.replace(/@\*/g,Kt).replace(/@\w+/g,o=>Kt+"-"+o.slice(1)).replace(/:animating/g,xr),[l,s]}(s.selector);o.currentQuerySelector=c.length?c+" "+M:M,gt(o.collectedStyles,o.currentQuerySelector,new Map);const U=yt(this,K(s.animation),o);return o.currentQuery=null,o.currentQuerySelector=c,{type:F.If.Query,selector:M,limit:m.limit||0,optional:!!m.optional,includeSelf:R,animation:U,originalSelector:s.selector,options:Nt(s.options)}}visitStagger(s,o){o.currentQuery||o.errors.push(function Ke(){return new g.wOt(3013,!1)}());const c="full"===s.timings?{duration:0,delay:0,easing:"full"}:Fr(s.timings,o.errors,!0);return{type:F.If.Stagger,animation:yt(this,K(s.animation),o),timings:c,options:null}}}class nn{constructor(s){this.errors=s,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 Nt(l){return l?(l={...l}).params&&(l.params=function vt(l){return l?{...l}:null}(l.params)):l={},l}function ln(l,s,o){return{duration:l,delay:s,easing:o}}function An(l,s,o,c,m,M,R=null,U=!1){return{type:1,element:l,keyframes:s,preStyleProps:o,postStyleProps:c,duration:m,delay:M,totalTime:m+M,easing:R,subTimeline:U}}class Qn{constructor(){this._map=new Map}get(s){return this._map.get(s)||[]}append(s,o){let c=this._map.get(s);c||this._map.set(s,c=[]),c.push(...o)}has(s){return this._map.has(s)}clear(){this._map.clear()}}const En=new RegExp(":enter","g"),wi=new RegExp(":leave","g");function Dr(l,s,o,c,m,M=new Map,R=new Map,U,ce,me=[]){return(new li).buildKeyframes(l,s,o,c,m,M,R,U,ce,me)}class li{buildKeyframes(s,o,c,m,M,R,U,ce,me,je=[]){me=me||new Qn;const qe=new Oi(s,o,me,m,M,je,[]);qe.options=ce;const wt=ce.delay?tn(ce.delay):0;qe.currentTimeline.delayNextStep(wt),qe.currentTimeline.setStyles([R],null,qe.errors,ce),yt(this,c,qe);const Tt=qe.timelines.filter(kt=>kt.containsAnimation());if(Tt.length&&U.size){let kt;for(let rt=Tt.length-1;rt>=0;rt--){const _t=Tt[rt];if(_t.element===o){kt=_t;break}}kt&&!kt.allowOnlyTimelineStyles()&&kt.setStyles([U],null,qe.errors,ce)}return Tt.length?Tt.map(kt=>kt.buildKeyframes()):[An(o,[],[],[],0,wt,"",!1)]}visitTrigger(s,o){}visitState(s,o){}visitTransition(s,o){}visitAnimateChild(s,o){const c=o.subInstructions.get(o.element);if(c){const m=o.createSubContext(s.options),M=o.currentTimeline.currentTime,R=this._visitSubInstructions(c,m,m.options);M!=R&&o.transformIntoNewTimeline(R)}o.previousNode=s}visitAnimateRef(s,o){const c=o.createSubContext(s.options);c.transformIntoNewTimeline(),this._applyAnimationRefDelays([s.options,s.animation.options],o,c),this.visitReference(s.animation,c),o.transformIntoNewTimeline(c.currentTimeline.currentTime),o.previousNode=s}_applyAnimationRefDelays(s,o,c){for(const m of s){const M=m?.delay;if(M){const R="number"==typeof M?M:tn(ve(M,m?.params??{},o.errors));c.delayNextStep(R)}}}_visitSubInstructions(s,o,c){let M=o.currentTimeline.currentTime;const R=null!=c.duration?tn(c.duration):null,U=null!=c.delay?tn(c.delay):null;return 0!==R&&s.forEach(ce=>{const me=o.appendInstructionToTimeline(ce,R,U);M=Math.max(M,me.duration+me.delay)}),M}visitReference(s,o){o.updateOptions(s.options,!0),yt(this,s.animation,o),o.previousNode=s}visitSequence(s,o){const c=o.subContextCount;let m=o;const M=s.options;if(M&&(M.params||M.delay)&&(m=o.createSubContext(M),m.transformIntoNewTimeline(),null!=M.delay)){m.previousNode.type==F.If.Style&&(m.currentTimeline.snapshotCurrentStyles(),m.previousNode=Hr);const R=tn(M.delay);m.delayNextStep(R)}s.steps.length&&(s.steps.forEach(R=>yt(this,R,m)),m.currentTimeline.applyStylesToKeyframe(),m.subContextCount>c&&m.transformIntoNewTimeline()),o.previousNode=s}visitGroup(s,o){const c=[];let m=o.currentTimeline.currentTime;const M=s.options&&s.options.delay?tn(s.options.delay):0;s.steps.forEach(R=>{const U=o.createSubContext(s.options);M&&U.delayNextStep(M),yt(this,R,U),m=Math.max(m,U.currentTimeline.currentTime),c.push(U.currentTimeline)}),c.forEach(R=>o.currentTimeline.mergeTimelineCollectedStyles(R)),o.transformIntoNewTimeline(m),o.previousNode=s}_visitTiming(s,o){if(s.dynamic){const c=s.strValue;return Fr(o.params?ve(c,o.params,o.errors):c,o.errors)}return{duration:s.duration,delay:s.delay,easing:s.easing}}visitAnimate(s,o){const c=o.currentAnimateTimings=this._visitTiming(s.timings,o),m=o.currentTimeline;c.delay&&(o.incrementTime(c.delay),m.snapshotCurrentStyles());const M=s.style;M.type==F.If.Keyframes?this.visitKeyframes(M,o):(o.incrementTime(c.duration),this.visitStyle(M,o),m.applyStylesToKeyframe()),o.currentAnimateTimings=null,o.previousNode=s}visitStyle(s,o){const c=o.currentTimeline,m=o.currentAnimateTimings;!m&&c.hasCurrentStyleProperties()&&c.forwardFrame();const M=m&&m.easing||s.easing;s.isEmptyStep?c.applyEmptyStep(M):c.setStyles(s.styles,M,o.errors,o.options),o.previousNode=s}visitKeyframes(s,o){const c=o.currentAnimateTimings,m=o.currentTimeline.duration,M=c.duration,U=o.createSubContext().currentTimeline;U.easing=c.easing,s.styles.forEach(ce=>{U.forwardTime((ce.offset||0)*M),U.setStyles(ce.styles,ce.easing,o.errors,o.options),U.applyStylesToKeyframe()}),o.currentTimeline.mergeTimelineCollectedStyles(U),o.transformIntoNewTimeline(m+M),o.previousNode=s}visitQuery(s,o){const c=o.currentTimeline.currentTime,m=s.options||{},M=m.delay?tn(m.delay):0;M&&(o.previousNode.type===F.If.Style||0==c&&o.currentTimeline.hasCurrentStyleProperties())&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Hr);let R=c;const U=o.invokeQuery(s.selector,s.originalSelector,s.limit,s.includeSelf,!!m.optional,o.errors);o.currentQueryTotal=U.length;let ce=null;U.forEach((me,je)=>{o.currentQueryIndex=je;const qe=o.createSubContext(s.options,me);M&&qe.delayNextStep(M),me===o.element&&(ce=qe.currentTimeline),yt(this,s.animation,qe),qe.currentTimeline.applyStylesToKeyframe(),R=Math.max(R,qe.currentTimeline.currentTime)}),o.currentQueryIndex=0,o.currentQueryTotal=0,o.transformIntoNewTimeline(R),ce&&(o.currentTimeline.mergeTimelineCollectedStyles(ce),o.currentTimeline.snapshotCurrentStyles()),o.previousNode=s}visitStagger(s,o){const c=o.parentContext,m=o.currentTimeline,M=s.timings,R=Math.abs(M.duration),U=R*(o.currentQueryTotal-1);let ce=R*o.currentQueryIndex;switch(M.duration<0?"reverse":M.easing){case"reverse":ce=U-ce;break;case"full":ce=c.currentStaggerTime}const je=o.currentTimeline;ce&&je.delayNextStep(ce);const qe=je.currentTime;yt(this,s.animation,o),o.previousNode=s,c.currentStaggerTime=m.currentTime-qe+(m.startTime-c.currentTimeline.startTime)}}const Hr={};class Oi{constructor(s,o,c,m,M,R,U,ce){this._driver=s,this.element=o,this.subInstructions=c,this._enterClassName=m,this._leaveClassName=M,this.errors=R,this.timelines=U,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Hr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ce||new Ut(this._driver,o,0),U.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(s,o){if(!s)return;const c=s;let m=this.options;null!=c.duration&&(m.duration=tn(c.duration)),null!=c.delay&&(m.delay=tn(c.delay));const M=c.params;if(M){let R=m.params;R||(R=this.options.params={}),Object.keys(M).forEach(U=>{(!o||!R.hasOwnProperty(U))&&(R[U]=ve(M[U],R,this.errors))})}}_copyOptions(){const s={};if(this.options){const o=this.options.params;if(o){const c=s.params={};Object.keys(o).forEach(m=>{c[m]=o[m]})}}return s}createSubContext(s=null,o,c){const m=o||this.element,M=new Oi(this._driver,m,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(m,c||0));return M.previousNode=this.previousNode,M.currentAnimateTimings=this.currentAnimateTimings,M.options=this._copyOptions(),M.updateOptions(s),M.currentQueryIndex=this.currentQueryIndex,M.currentQueryTotal=this.currentQueryTotal,M.parentContext=this,this.subContextCount++,M}transformIntoNewTimeline(s){return this.previousNode=Hr,this.currentTimeline=this.currentTimeline.fork(this.element,s),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(s,o,c){const m={duration:o??s.duration,delay:this.currentTimeline.currentTime+(c??0)+s.delay,easing:""},M=new Tn(this._driver,s.element,s.keyframes,s.preStyleProps,s.postStyleProps,m,s.stretchStartingKeyframe);return this.timelines.push(M),m}incrementTime(s){this.currentTimeline.forwardTime(this.currentTimeline.duration+s)}delayNextStep(s){s>0&&this.currentTimeline.delayNextStep(s)}invokeQuery(s,o,c,m,M,R){let U=[];if(m&&U.push(this.element),s.length>0){s=(s=s.replace(En,"."+this._enterClassName)).replace(wi,"."+this._leaveClassName);let me=this._driver.query(this.element,s,1!=c);0!==c&&(me=c<0?me.slice(me.length+c,me.length):me.slice(0,c)),U.push(...me)}return!M&&0==U.length&&R.push(function Dt(l){return new g.wOt(3014,!1)}()),U}}class Ut{constructor(s,o,c,m){this._driver=s,this.element=o,this.startTime=c,this._elementTimelineStylesLookup=m,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(o),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(o,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(s){const o=1===this._keyframes.size&&this._pendingStyles.size;this.duration||o?(this.forwardTime(this.currentTime+s),o&&this.snapshotCurrentStyles()):this.startTime+=s}fork(s,o){return this.applyStylesToKeyframe(),new Ut(this._driver,s,o||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(s){this.applyStylesToKeyframe(),this.duration=s,this._loadKeyframe()}_updateStyle(s,o){this._localTimelineStyles.set(s,o),this._globalTimelineStyles.set(s,o),this._styleSummary.set(s,{time:this.currentTime,value:o})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(s){s&&this._previousKeyframe.set("easing",s);for(let[o,c]of this._globalTimelineStyles)this._backFill.set(o,c||F.kp),this._currentKeyframe.set(o,F.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(s,o,c,m){o&&this._previousKeyframe.set("easing",o);const M=m&&m.params||{},R=function Ri(l,s){const o=new Map;let c;return l.forEach(m=>{if("*"===m){c??=s.keys();for(let M of c)o.set(M,F.kp)}else for(let[M,R]of m)o.set(M,R)}),o}(s,this._globalTimelineStyles);for(let[U,ce]of R){const me=ve(ce,M,c);this._pendingStyles.set(U,me),this._localTimelineStyles.has(U)||this._backFill.set(U,this._globalTimelineStyles.get(U)??F.kp),this._updateStyle(U,me)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((s,o)=>{this._currentKeyframe.set(o,s)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((s,o)=>{this._currentKeyframe.has(o)||this._currentKeyframe.set(o,s)}))}snapshotCurrentStyles(){for(let[s,o]of this._localTimelineStyles)this._pendingStyles.set(s,o),this._updateStyle(s,o)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const s=[];for(let o in this._currentKeyframe)s.push(o);return s}mergeTimelineCollectedStyles(s){s._styleSummary.forEach((o,c)=>{const m=this._styleSummary.get(c);(!m||o.time>m.time)&&this._updateStyle(c,o.value)})}buildKeyframes(){this.applyStylesToKeyframe();const s=new Set,o=new Set,c=1===this._keyframes.size&&0===this.duration;let m=[];this._keyframes.forEach((U,ce)=>{const me=new Map([...this._backFill,...U]);me.forEach((je,qe)=>{je===F.FX?s.add(qe):je===F.kp&&o.add(qe)}),c||me.set("offset",ce/this.duration),m.push(me)});const M=[...s.values()],R=[...o.values()];if(c){const U=m[0],ce=new Map(U);U.set("offset",0),ce.set("offset",1),m=[U,ce]}return An(this.element,m,M,R,this.duration,this.startTime,this.easing,!1)}}class Tn extends Ut{constructor(s,o,c,m,M,R,U=!1){super(s,o,R.delay),this.keyframes=c,this.preStyleProps=m,this.postStyleProps=M,this._stretchStartingKeyframe=U,this.timings={duration:R.duration,delay:R.delay,easing:R.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let s=this.keyframes,{delay:o,duration:c,easing:m}=this.timings;if(this._stretchStartingKeyframe&&o){const M=[],R=c+o,U=o/R,ce=new Map(s[0]);ce.set("offset",0),M.push(ce);const me=new Map(s[0]);me.set("offset",xa(U)),M.push(me);const je=s.length-1;for(let qe=1;qe<=je;qe++){let wt=new Map(s[qe]);const Tt=wt.get("offset");wt.set("offset",xa((o+Tt*c)/R)),M.push(wt)}c=R,o=0,m="",s=M}return An(this.element,s,this.preStyleProps,this.postStyleProps,c,o,m,!0)}}function xa(l,s=3){const o=Math.pow(10,s-1);return Math.round(l*o)/o}function yo(l,s,o,c,m,M,R,U,ce,me,je,qe,wt){return{type:0,element:l,triggerName:s,isRemovalTransition:m,fromState:o,fromStyles:M,toState:c,toStyles:R,timelines:U,queriedElements:ce,preStyleProps:me,postStyleProps:je,totalTime:qe,errors:wt}}const ua={};class da{constructor(s,o,c){this._triggerName=s,this.ast=o,this._stateStyles=c}match(s,o,c,m){return function pn(l,s,o,c,m){return l.some(M=>M(s,o,c,m))}(this.ast.matchers,s,o,c,m)}buildStyles(s,o,c){let m=this._stateStyles.get("*");return void 0!==s&&(m=this._stateStyles.get(s?.toString())||m),m?m.buildStyles(o,c):new Map}build(s,o,c,m,M,R,U,ce,me,je){const qe=[],wt=this.ast.options&&this.ast.options.params||ua,kt=this.buildStyles(c,U&&U.params||ua,qe),rt=ce&&ce.params||ua,_t=this.buildStyles(m,rt,qe),Jt=new Set,Bn=new Map,Jn=new Map,mr="void"===m,Ni={params:Js(rt,wt),delay:this.ast.options?.delay},go=je?[]:Dr(s,o,this.ast.animation,M,R,kt,_t,Ni,me,qe);let Fi=0;return go.forEach(gs=>{Fi=Math.max(gs.duration+gs.delay,Fi)}),qe.length?yo(o,this._triggerName,c,m,mr,kt,_t,[],[],Bn,Jn,Fi,qe):(go.forEach(gs=>{const Yl=gs.element,pu=gt(Bn,Yl,new Set);gs.preStyleProps.forEach(Kl=>pu.add(Kl));const $h=gt(Jn,Yl,new Set);gs.postStyleProps.forEach(Kl=>$h.add(Kl)),Yl!==o&&Jt.add(Yl)}),yo(o,this._triggerName,c,m,mr,kt,_t,go,[...Jt.values()],Bn,Jn,Fi))}}function Js(l,s){const o={...s};return Object.entries(l).forEach(([c,m])=>{null!=m&&(o[c]=m)}),o}class ha{constructor(s,o,c){this.styles=s,this.defaultParams=o,this.normalizer=c}buildStyles(s,o){const c=new Map,m=Js(s,this.defaultParams);return this.styles.styles.forEach(M=>{"string"!=typeof M&&M.forEach((R,U)=>{R&&(R=ve(R,m,o));const ce=this.normalizer.normalizePropertyName(U,o);R=this.normalizer.normalizeStyleValue(U,ce,R,o),c.set(U,R)})}),c}}class ys{constructor(s,o,c){this.name=s,this.ast=o,this._normalizer=c,this.transitionFactories=[],this.states=new Map,o.states.forEach(m=>{this.states.set(m.name,new ha(m.style,m.options&&m.options.params||{},c))}),bo(this.states,"true","1"),bo(this.states,"false","0"),o.transitions.forEach(m=>{this.transitionFactories.push(new da(s,m,this.states))}),this.fallbackTransition=function eo(l,s,o){return new da(l,{type:F.If.Transition,animation:{type:F.If.Sequence,steps:[],options:null},matchers:[(R,U)=>!0],options:null,queryCount:0,depCount:0},s)}(s,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(s,o,c,m){return this.transitionFactories.find(R=>R.match(s,o,c,m))||null}matchStyles(s,o,c){return this.fallbackTransition.buildStyles(s,o,c)}}function bo(l,s,o){l.has(s)?l.has(o)||l.set(o,l.get(s)):l.has(o)&&l.set(s,l.get(o))}const Ht=new Qn;class Kr{constructor(s,o,c){this.bodyNode=s,this._driver=o,this._normalizer=c,this._animations=new Map,this._playersById=new Map,this.players=[]}register(s,o){const c=[],M=be(this._driver,o,c,[]);if(c.length)throw function dt(l){return new g.wOt(3503,!1)}();this._animations.set(s,M)}_buildPlayer(s,o,c){const m=s.element,M=Gt(this._normalizer,s.keyframes,o,c);return this._driver.animate(m,M,s.duration,s.delay,s.easing,[],!0)}create(s,o,c={}){const m=[],M=this._animations.get(s);let R;const U=new Map;if(M?(R=Dr(this._driver,o,M,mi,At,new Map,new Map,c,Ht,m),R.forEach(je=>{const qe=gt(U,je.element,new Map);je.postStyleProps.forEach(wt=>qe.set(wt,null))})):(m.push(function Bt(){return new g.wOt(3300,!1)}()),R=[]),m.length)throw function Qt(l){return new g.wOt(3504,!1)}();U.forEach((je,qe)=>{je.forEach((wt,Tt)=>{je.set(Tt,this._driver.computeStyle(qe,Tt,F.kp))})});const me=bt(R.map(je=>{const qe=U.get(je.element);return this._buildPlayer(je,new Map,qe)}));return this._playersById.set(s,me),me.onDestroy(()=>this.destroy(s)),this.players.push(me),me}destroy(s){const o=this._getPlayer(s);o.destroy(),this._playersById.delete(s);const c=this.players.indexOf(o);c>=0&&this.players.splice(c,1)}_getPlayer(s){const o=this._playersById.get(s);if(!o)throw function Zt(l){return new g.wOt(3301,!1)}();return o}listen(s,o,c,m){const M=Yt(o,"","","");return Je(this._getPlayer(s),c,M,m),()=>{}}command(s,o,c,m){if("register"==c)return void this.register(s,m[0]);if("create"==c)return void this.create(s,o,m[0]||{});const M=this._getPlayer(s);switch(c){case"play":M.play();break;case"pause":M.pause();break;case"reset":M.reset();break;case"restart":M.restart();break;case"finish":M.finish();break;case"init":M.init();break;case"setPosition":M.setPosition(parseFloat(m[0]));break;case"destroy":this.destroy(s)}}}const Li="ng-animate-queued",Ps="ng-animate-disabled",$o=[],Ki={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Wo={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$n="__ng_removed";class ts{get params(){return this.options.params}constructor(s,o=""){this.namespaceId=o;const c=s&&s.hasOwnProperty("value");if(this.value=function Xi(l){return l??null}(c?s.value:s),c){const{value:M,...R}=s;this.options=R}else this.options={};this.options.params||(this.options.params={})}absorbOptions(s){const o=s.params;if(o){const c=this.options.params;Object.keys(o).forEach(m=>{null==c[m]&&(c[m]=o[m])})}}}const Wt="void",Ns=new ts(Wt);class Go{constructor(s,o,c){this.id=s,this.hostElement=o,this._engine=c,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,Rr(o,this._hostClassName)}listen(s,o,c,m){if(!this._triggers.has(o))throw function Mn(l,s){return new g.wOt(3302,!1)}();if(null==c||0==c.length)throw function ke(l){return new g.wOt(3303,!1)}();if(!function Vi(l){return"start"==l||"done"==l}(c))throw function ue(l,s){return new g.wOt(3400,!1)}();const M=gt(this._elementListeners,s,[]),R={name:o,phase:c,callback:m};M.push(R);const U=gt(this._engine.statesByElement,s,new Map);return U.has(o)||(Rr(s,wr),Rr(s,wr+"-"+o),U.set(o,Ns)),()=>{this._engine.afterFlush(()=>{const ce=M.indexOf(R);ce>=0&&M.splice(ce,1),this._triggers.has(o)||U.delete(o)})}}register(s,o){return!this._triggers.has(s)&&(this._triggers.set(s,o),!0)}_getTrigger(s){const o=this._triggers.get(s);if(!o)throw function J(l){return new g.wOt(3401,!1)}();return o}trigger(s,o,c,m=!0){const M=this._getTrigger(o),R=new ns(this.id,o,s);let U=this._engine.statesByElement.get(s);U||(Rr(s,wr),Rr(s,wr+"-"+o),this._engine.statesByElement.set(s,U=new Map));let ce=U.get(o);const me=new ts(c,this.id);if(!(c&&c.hasOwnProperty("value"))&&ce&&me.absorbOptions(ce.options),U.set(o,me),ce||(ce=Ns),me.value!==Wt&&ce.value===me.value){if(!function Yo(l,s){const o=Object.keys(l),c=Object.keys(s);if(o.length!=c.length)return!1;for(let m=0;m{x(s,_t),B(s,Jt)})}return}const wt=gt(this._engine.playersByElement,s,[]);wt.forEach(rt=>{rt.namespaceId==this.id&&rt.triggerName==o&&rt.queued&&rt.destroy()});let Tt=M.matchTransition(ce.value,me.value,s,me.params),kt=!1;if(!Tt){if(!m)return;Tt=M.fallbackTransition,kt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:o,transition:Tt,fromState:ce,toState:me,player:R,isFallbackTransition:kt}),kt||(Rr(s,Li),R.onStart(()=>{Rs(s,Li)})),R.onDone(()=>{let rt=this.players.indexOf(R);rt>=0&&this.players.splice(rt,1);const _t=this._engine.playersByElement.get(s);if(_t){let Jt=_t.indexOf(R);Jt>=0&&_t.splice(Jt,1)}}),this.players.push(R),wt.push(R),R}deregister(s){this._triggers.delete(s),this._engine.statesByElement.forEach(o=>o.delete(s)),this._elementListeners.forEach((o,c)=>{this._elementListeners.set(c,o.filter(m=>m.name!=s))})}clearElementCache(s){this._engine.statesByElement.delete(s),this._elementListeners.delete(s);const o=this._engine.playersByElement.get(s);o&&(o.forEach(c=>c.destroy()),this._engine.playersByElement.delete(s))}_signalRemovalForInnerTriggers(s,o){const c=this._engine.driver.query(s,Kt,!0);c.forEach(m=>{if(m[$n])return;const M=this._engine.fetchNamespacesByElement(m);M.size?M.forEach(R=>R.triggerLeaveAnimation(m,o,!1,!0)):this.clearElementCache(m)}),this._engine.afterFlushAnimationsDone(()=>c.forEach(m=>this.clearElementCache(m)))}triggerLeaveAnimation(s,o,c,m){const M=this._engine.statesByElement.get(s),R=new Map;if(M){const U=[];if(M.forEach((ce,me)=>{if(R.set(me,ce.value),this._triggers.has(me)){const je=this.trigger(s,me,Wt,m);je&&U.push(je)}}),U.length)return this._engine.markElementAsRemoved(this.id,s,!0,o,R),c&&bt(U).onDone(()=>this._engine.processLeaveNode(s)),!0}return!1}prepareLeaveAnimationListeners(s){const o=this._elementListeners.get(s),c=this._engine.statesByElement.get(s);if(o&&c){const m=new Set;o.forEach(M=>{const R=M.name;if(m.has(R))return;m.add(R);const ce=this._triggers.get(R).fallbackTransition,me=c.get(R)||Ns,je=new ts(Wt),qe=new ns(this.id,R,s);this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:R,transition:ce,fromState:me,toState:je,player:qe,isFallbackTransition:!0})})}}removeNode(s,o){const c=this._engine;if(s.childElementCount&&this._signalRemovalForInnerTriggers(s,o),this.triggerLeaveAnimation(s,o,!0))return;let m=!1;if(c.totalAnimations){const M=c.players.length?c.playersByQueriedElement.get(s):[];if(M&&M.length)m=!0;else{let R=s;for(;R=R.parentNode;)if(c.statesByElement.get(R)){m=!0;break}}}if(this.prepareLeaveAnimationListeners(s),m)c.markElementAsRemoved(this.id,s,!1,o);else{const M=s[$n];(!M||M===Ki)&&(c.afterFlush(()=>this.clearElementCache(s)),c.destroyInnerAnimations(s),c._onRemovalComplete(s,o))}}insertNode(s,o){Rr(s,this._hostClassName)}drainQueuedTransitions(s){const o=[];return this._queue.forEach(c=>{const m=c.player;if(m.destroyed)return;const M=c.element,R=this._elementListeners.get(M);R&&R.forEach(U=>{if(U.name==c.triggerName){const ce=Yt(M,c.triggerName,c.fromState.value,c.toState.value);ce._data=s,Je(c.player,U.phase,ce,U.callback)}}),m.markedForDestroy?this._engine.afterFlush(()=>{m.destroy()}):o.push(c)}),this._queue=[],o.sort((c,m)=>{const M=c.transition.ast.depCount,R=m.transition.ast.depCount;return 0==M||0==R?M-R:this._engine.driver.containsElement(c.element,m.element)?1:-1})}destroy(s){this.players.forEach(o=>o.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,s)}}class Co{_onRemovalComplete(s,o){this.onRemovalComplete(s,o)}constructor(s,o,c,m){this.bodyNode=s,this.driver=o,this._normalizer=c,this.scheduler=m,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=(M,R)=>{}}get queuedPlayers(){const s=[];return this._namespaceList.forEach(o=>{o.players.forEach(c=>{c.queued&&s.push(c)})}),s}createNamespace(s,o){const c=new Go(s,o,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,o)?this._balanceNamespaceList(c,o):(this.newHostElements.set(o,c),this.collectEnterElement(o)),this._namespaceLookup[s]=c}_balanceNamespaceList(s,o){const c=this._namespaceList,m=this.namespacesByHostElement;if(c.length-1>=0){let R=!1,U=this.driver.getParentElement(o);for(;U;){const ce=m.get(U);if(ce){const me=c.indexOf(ce);c.splice(me+1,0,s),R=!0;break}U=this.driver.getParentElement(U)}R||c.unshift(s)}else c.push(s);return m.set(o,s),s}register(s,o){let c=this._namespaceLookup[s];return c||(c=this.createNamespace(s,o)),c}registerTrigger(s,o,c){let m=this._namespaceLookup[s];m&&m.register(o,c)&&this.totalAnimations++}destroy(s,o){s&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const c=this._fetchNamespace(s);this.namespacesByHostElement.delete(c.hostElement);const m=this._namespaceList.indexOf(c);m>=0&&this._namespaceList.splice(m,1),c.destroy(o),delete this._namespaceLookup[s]}))}_fetchNamespace(s){return this._namespaceLookup[s]}fetchNamespacesByElement(s){const o=new Set,c=this.statesByElement.get(s);if(c)for(let m of c.values())if(m.namespaceId){const M=this._fetchNamespace(m.namespaceId);M&&o.add(M)}return o}trigger(s,o,c,m){if(rs(o)){const M=this._fetchNamespace(s);if(M)return M.trigger(o,c,m),!0}return!1}insertNode(s,o,c,m){if(!rs(o))return;const M=o[$n];if(M&&M.setForRemoval){M.setForRemoval=!1,M.setForMove=!0;const R=this.collectedLeaveElements.indexOf(o);R>=0&&this.collectedLeaveElements.splice(R,1)}if(s){const R=this._fetchNamespace(s);R&&R.insertNode(o,c)}m&&this.collectEnterElement(o)}collectEnterElement(s){this.collectedEnterElements.push(s)}markElementAsDisabled(s,o){o?this.disabledNodes.has(s)||(this.disabledNodes.add(s),Rr(s,Ps)):this.disabledNodes.has(s)&&(this.disabledNodes.delete(s),Rs(s,Ps))}removeNode(s,o,c){if(rs(o)){this.scheduler?.notify();const m=s?this._fetchNamespace(s):null;m?m.removeNode(o,c):this.markElementAsRemoved(s,o,!1,c);const M=this.namespacesByHostElement.get(o);M&&M.id!==s&&M.removeNode(o,c)}else this._onRemovalComplete(o,c)}markElementAsRemoved(s,o,c,m,M){this.collectedLeaveElements.push(o),o[$n]={namespaceId:s,setForRemoval:m,hasAnimation:c,removedBeforeQueried:!1,previousTriggersValues:M}}listen(s,o,c,m,M){return rs(o)?this._fetchNamespace(s).listen(o,c,m,M):()=>{}}_buildInstruction(s,o,c,m,M){return s.transition.build(this.driver,s.element,s.fromState.value,s.toState.value,c,m,s.fromState.options,s.toState.options,o,M)}destroyInnerAnimations(s){let o=this.driver.query(s,Kt,!0);o.forEach(c=>this.destroyActiveAnimationsForElement(c)),0!=this.playersByQueriedElement.size&&(o=this.driver.query(s,xr,!0),o.forEach(c=>this.finishActiveQueriedAnimationOnElement(c)))}destroyActiveAnimationsForElement(s){const o=this.playersByElement.get(s);o&&o.forEach(c=>{c.queued?c.markedForDestroy=!0:c.destroy()})}finishActiveQueriedAnimationOnElement(s){const o=this.playersByQueriedElement.get(s);o&&o.forEach(c=>c.finish())}whenRenderingDone(){return new Promise(s=>{if(this.players.length)return bt(this.players).onDone(()=>s());s()})}processLeaveNode(s){const o=s[$n];if(o&&o.setForRemoval){if(s[$n]=Ki,o.namespaceId){this.destroyInnerAnimations(s);const c=this._fetchNamespace(o.namespaceId);c&&c.clearElementCache(s)}this._onRemovalComplete(s,o.setForRemoval)}s.classList?.contains(Ps)&&this.markElementAsDisabled(s,!1),this.driver.query(s,".ng-animate-disabled",!0).forEach(c=>{this.markElementAsDisabled(c,!1)})}flush(s=-1){let o=[];if(this.newHostElements.size&&(this.newHostElements.forEach((c,m)=>this._balanceNamespaceList(c,m)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let c=0;cc()),this._flushFns=[],this._whenQuietFns.length){const c=this._whenQuietFns;this._whenQuietFns=[],o.length?bt(o).onDone(()=>{c.forEach(m=>m())}):c.forEach(m=>m())}}reportError(s){throw function ne(l){return new g.wOt(3402,!1)}()}_flushAnimations(s,o){const c=new Qn,m=[],M=new Map,R=[],U=new Map,ce=new Map,me=new Map,je=new Set;this.disabledNodes.forEach(jt=>{je.add(jt);const on=this.driver.query(jt,".ng-animate-queued",!0);for(let hn=0;hn{const hn=mi+rt++;kt.set(on,hn),jt.forEach(or=>Rr(or,hn))});const _t=[],Jt=new Set,Bn=new Set;for(let jt=0;jtJt.add(or)):Bn.add(on))}const Jn=new Map,mr=ma(wt,Array.from(Jt));mr.forEach((jt,on)=>{const hn=At+rt++;Jn.set(on,hn),jt.forEach(or=>Rr(or,hn))}),s.push(()=>{Tt.forEach((jt,on)=>{const hn=kt.get(on);jt.forEach(or=>Rs(or,hn))}),mr.forEach((jt,on)=>{const hn=Jn.get(on);jt.forEach(or=>Rs(or,hn))}),_t.forEach(jt=>{this.processLeaveNode(jt)})});const Ni=[],go=[];for(let jt=this._namespaceList.length-1;jt>=0;jt--)this._namespaceList[jt].drainQueuedTransitions(o).forEach(hn=>{const or=hn.player,ji=hn.element;if(Ni.push(or),this.collectedEnterElements.length){const As=ji[$n];if(As&&As.setForMove){if(As.previousTriggersValues&&As.previousTriggersValues.has(hn.triggerName)){const mu=As.previousTriggersValues.get(hn.triggerName),la=this.statesByElement.get(hn.element);if(la&&la.has(hn.triggerName)){const cp=la.get(hn.triggerName);cp.value=mu,la.set(hn.triggerName,cp)}}return void or.destroy()}}const aa=!qe||!this.driver.containsElement(qe,ji),qs=Jn.get(ji),ll=kt.get(ji),pi=this._buildInstruction(hn,c,ll,qs,aa);if(pi.errors&&pi.errors.length)return void go.push(pi);if(aa)return or.onStart(()=>x(ji,pi.fromStyles)),or.onDestroy(()=>B(ji,pi.toStyles)),void m.push(or);if(hn.isFallbackTransition)return or.onStart(()=>x(ji,pi.fromStyles)),or.onDestroy(()=>B(ji,pi.toStyles)),void m.push(or);const y4=[];pi.timelines.forEach(As=>{As.stretchStartingKeyframe=!0,this.disabledNodes.has(As.element)||y4.push(As)}),pi.timelines=y4,c.append(ji,pi.timelines),R.push({instruction:pi,player:or,element:ji}),pi.queriedElements.forEach(As=>gt(U,As,[]).push(or)),pi.preStyleProps.forEach((As,mu)=>{if(As.size){let la=ce.get(mu);la||ce.set(mu,la=new Set),As.forEach((cp,B2)=>la.add(B2))}}),pi.postStyleProps.forEach((As,mu)=>{let la=me.get(mu);la||me.set(mu,la=new Set),As.forEach((cp,B2)=>la.add(B2))})});if(go.length){const jt=[];go.forEach(on=>{jt.push(function Ie(l,s){return new g.wOt(3505,!1)}())}),Ni.forEach(on=>on.destroy()),this.reportError(jt)}const Fi=new Map,gs=new Map;R.forEach(jt=>{const on=jt.element;c.has(on)&&(gs.set(on,on),this._beforeAnimationBuild(jt.player.namespaceId,jt.instruction,Fi))}),m.forEach(jt=>{const on=jt.element;this._getPreviousPlayers(on,!1,jt.namespaceId,jt.triggerName,null).forEach(or=>{gt(Fi,on,[]).push(or),or.destroy()})});const Yl=_t.filter(jt=>hs(jt,ce,me)),pu=new Map;Fs(pu,this.driver,Bn,me,F.kp).forEach(jt=>{hs(jt,ce,me)&&Yl.push(jt)});const Kl=new Map;Tt.forEach((jt,on)=>{Fs(Kl,this.driver,new Set(jt),ce,F.FX)}),Yl.forEach(jt=>{const on=pu.get(jt),hn=Kl.get(jt);pu.set(jt,new Map([...on?.entries()??[],...hn?.entries()??[]]))});const Wh=[],g4=[],v4={};R.forEach(jt=>{const{element:on,player:hn,instruction:or}=jt;if(c.has(on)){if(je.has(on))return hn.onDestroy(()=>B(on,or.toStyles)),hn.disabled=!0,hn.overrideTotalTime(or.totalTime),void m.push(hn);let ji=v4;if(gs.size>1){let qs=on;const ll=[];for(;qs=qs.parentNode;){const pi=gs.get(qs);if(pi){ji=pi;break}ll.push(qs)}ll.forEach(pi=>gs.set(pi,ji))}const aa=this._buildAnimation(hn.namespaceId,or,Fi,M,Kl,pu);if(hn.setRealPlayer(aa),ji===v4)Wh.push(hn);else{const qs=this.playersByElement.get(ji);qs&&qs.length&&(hn.parentPlayer=bt(qs)),m.push(hn)}}else x(on,or.fromStyles),hn.onDestroy(()=>B(on,or.toStyles)),g4.push(hn),je.has(on)&&m.push(hn)}),g4.forEach(jt=>{const on=M.get(jt.element);if(on&&on.length){const hn=bt(on);jt.setRealPlayer(hn)}}),m.forEach(jt=>{jt.parentPlayer?jt.syncPlayerEvents(jt.parentPlayer):jt.destroy()});for(let jt=0;jt<_t.length;jt++){const on=_t[jt],hn=on[$n];if(Rs(on,At),hn&&hn.hasAnimation)continue;let or=[];if(U.size){let aa=U.get(on);aa&&aa.length&&or.push(...aa);let qs=this.driver.query(on,xr,!0);for(let ll=0;ll!aa.destroyed);ji.length?ci(this,on,ji):this.processLeaveNode(on)}return _t.length=0,Wh.forEach(jt=>{this.players.push(jt),jt.onDone(()=>{jt.destroy();const on=this.players.indexOf(jt);this.players.splice(on,1)}),jt.play()}),Wh}afterFlush(s){this._flushFns.push(s)}afterFlushAnimationsDone(s){this._whenQuietFns.push(s)}_getPreviousPlayers(s,o,c,m,M){let R=[];if(o){const U=this.playersByQueriedElement.get(s);U&&(R=U)}else{const U=this.playersByElement.get(s);if(U){const ce=!M||M==Wt;U.forEach(me=>{me.queued||!ce&&me.triggerName!=m||R.push(me)})}}return(c||m)&&(R=R.filter(U=>!(c&&c!=U.namespaceId||m&&m!=U.triggerName))),R}_beforeAnimationBuild(s,o,c){const M=o.element,R=o.isRemovalTransition?void 0:s,U=o.isRemovalTransition?void 0:o.triggerName;for(const ce of o.timelines){const me=ce.element,je=me!==M,qe=gt(c,me,[]);this._getPreviousPlayers(me,je,R,U,o.toState).forEach(Tt=>{const kt=Tt.getRealPlayer();kt.beforeDestroy&&kt.beforeDestroy(),Tt.destroy(),qe.push(Tt)})}x(M,o.fromStyles)}_buildAnimation(s,o,c,m,M,R){const U=o.triggerName,ce=o.element,me=[],je=new Set,qe=new Set,wt=o.timelines.map(kt=>{const rt=kt.element;je.add(rt);const _t=rt[$n];if(_t&&_t.removedBeforeQueried)return new F.sf(kt.duration,kt.delay);const Jt=rt!==ce,Bn=function Qi(l){const s=[];return to(l,s),s}((c.get(rt)||$o).map(Fi=>Fi.getRealPlayer())).filter(Fi=>!!Fi.element&&Fi.element===rt),Jn=M.get(rt),mr=R.get(rt),Ni=Gt(this._normalizer,kt.keyframes,Jn,mr),go=this._buildPlayer(kt,Ni,Bn);if(kt.subTimeline&&m&&qe.add(rt),Jt){const Fi=new ns(s,U,rt);Fi.setRealPlayer(go),me.push(Fi)}return go});me.forEach(kt=>{gt(this.playersByQueriedElement,kt.element,[]).push(kt),kt.onDone(()=>function fa(l,s,o){let c=l.get(s);if(c){if(c.length){const m=c.indexOf(o);c.splice(m,1)}0==c.length&&l.delete(s)}return c}(this.playersByQueriedElement,kt.element,kt))}),je.forEach(kt=>Rr(kt,en));const Tt=bt(wt);return Tt.onDestroy(()=>{je.forEach(kt=>Rs(kt,en)),B(ce,o.toStyles)}),qe.forEach(kt=>{gt(m,kt,[]).push(Tt)}),Tt}_buildPlayer(s,o,c){return o.length>0?this.driver.animate(s.element,o,s.duration,s.delay,s.easing,c):new F.sf(s.duration,s.delay)}}class ns{constructor(s,o,c){this.namespaceId=s,this.triggerName=o,this.element=c,this._player=new F.sf,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(s){this._containsRealPlayer||(this._player=s,this._queuedCallbacks.forEach((o,c)=>{o.forEach(m=>Je(s,c,void 0,m))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(s.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(s){this.totalTime=s}syncPlayerEvents(s){const o=this._player;o.triggerCallback&&s.onStart(()=>o.triggerCallback("start")),s.onDone(()=>this.finish()),s.onDestroy(()=>this.destroy())}_queueEvent(s,o){gt(this._queuedCallbacks,s,[]).push(o)}onDone(s){this.queued&&this._queueEvent("done",s),this._player.onDone(s)}onStart(s){this.queued&&this._queueEvent("start",s),this._player.onStart(s)}onDestroy(s){this.queued&&this._queueEvent("destroy",s),this._player.onDestroy(s)}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(s){this.queued||this._player.setPosition(s)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(s){const o=this._player;o.triggerCallback&&o.triggerCallback(s)}}function rs(l){return l&&1===l.nodeType}function pa(l,s){const o=l.style.display;return l.style.display=s??"none",o}function Fs(l,s,o,c,m){const M=[];o.forEach(ce=>M.push(pa(ce)));const R=[];c.forEach((ce,me)=>{const je=new Map;ce.forEach(qe=>{const wt=s.computeStyle(me,qe,m);je.set(qe,wt),(!wt||0==wt.length)&&(me[$n]=Wo,R.push(me))}),l.set(me,je)});let U=0;return o.forEach(ce=>pa(ce,M[U++])),R}function ma(l,s){const o=new Map;if(l.forEach(U=>o.set(U,[])),0==s.length)return o;const m=new Set(s),M=new Map;function R(U){if(!U)return 1;let ce=M.get(U);if(ce)return ce;const me=U.parentNode;return ce=o.has(me)?me:m.has(me)?1:R(me),M.set(U,ce),ce}return s.forEach(U=>{const ce=R(U);1!==ce&&o.get(ce).push(U)}),o}function Rr(l,s){l.classList?.add(s)}function Rs(l,s){l.classList?.remove(s)}function ci(l,s,o){bt(o).onDone(()=>l.processLeaveNode(s))}function to(l,s){for(let o=0;om.add(M)):s.set(l,c),o.delete(l),!0}class no{constructor(s,o,c,m){this._driver=o,this._normalizer=c,this._triggerCache={},this.onRemovalComplete=(M,R)=>{},this._transitionEngine=new Co(s.body,o,c,m),this._timelineEngine=new Kr(s.body,o,c),this._transitionEngine.onRemovalComplete=(M,R)=>this.onRemovalComplete(M,R)}registerTrigger(s,o,c,m,M){const R=s+"-"+m;let U=this._triggerCache[R];if(!U){const ce=[],je=be(this._driver,M,ce,[]);if(ce.length)throw function Re(l,s){return new g.wOt(3404,!1)}();U=function Yr(l,s,o){return new ys(l,s,o)}(m,je,this._normalizer),this._triggerCache[R]=U}this._transitionEngine.registerTrigger(o,m,U)}register(s,o){this._transitionEngine.register(s,o)}destroy(s,o){this._transitionEngine.destroy(s,o)}onInsert(s,o,c,m){this._transitionEngine.insertNode(s,o,c,m)}onRemove(s,o,c){this._transitionEngine.removeNode(s,o,c)}disableAnimations(s,o){this._transitionEngine.markElementAsDisabled(s,o)}process(s,o,c,m){if("@"==c.charAt(0)){const[M,R]=cn(c);this._timelineEngine.command(M,o,R,m)}else this._transitionEngine.trigger(s,o,c,m)}listen(s,o,c,m,M){if("@"==c.charAt(0)){const[R,U]=cn(c);return this._timelineEngine.listen(R,o,U,M)}return this._transitionEngine.listen(s,o,c,m,M)}flush(s=-1){this._transitionEngine.flush(s)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(s){this._transitionEngine.afterFlushAnimationsDone(s)}}class ro{static#e=this.initialStylesByElement=new WeakMap;constructor(s,o,c){this._element=s,this._startStyles=o,this._endStyles=c,this._state=0;let m=ro.initialStylesByElement.get(s);m||ro.initialStylesByElement.set(s,m=new Map),this._initialStyles=m}start(){this._state<1&&(this._startStyles&&B(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(B(this._element,this._initialStyles),this._endStyles&&(B(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ro.initialStylesByElement.delete(this._element),this._startStyles&&(x(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(x(this._element,this._endStyles),this._endStyles=null),B(this._element,this._initialStyles),this._state=3)}}function wo(l){let s=null;return l.forEach((o,c)=>{(function Di(l){return"display"===l||"position"===l})(c)&&(s=s||new Map,s.set(c,o))}),s}class io{constructor(s,o,c,m){this.element=s,this.keyframes=o,this.options=c,this._specialStyles=m,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=c.duration,this._delay=c.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const s=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,s,this.options),this._finalKeyframe=s.length?s[s.length-1]:new Map;const o=()=>this._onFinish();this.domPlayer.addEventListener("finish",o),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",o)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(s){const o=[];return s.forEach(c=>{o.push(Object.fromEntries(c))}),o}_triggerWebAnimation(s,o,c){return s.animate(this._convertKeyframesToObject(o),c)}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(s=>s()),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(s=>s()),this._onDestroyFns=[])}setPosition(s){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=s*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const s=new Map;this.hasStarted()&&this._finalKeyframe.forEach((c,m)=>{"offset"!==m&&s.set(m,this._finished?c:Vn(this.element,m))}),this.currentSnapshot=s}triggerCallback(s){const o="start"===s?this._onStartFns:this._onDoneFns;o.forEach(c=>c()),o.length=0}}class Ai{validateStyleProperty(s){return!0}validateAnimatableStyleProperty(s){return!0}matchesElement(s,o){return!1}containsElement(s,o){return er(s,o)}getParentElement(s){return kn(s)}query(s,o,c){return yr(s,o,c)}computeStyle(s,o,c){return Vn(s,o)}animate(s,o,c,m,M,R=[]){const ce={duration:c,delay:m,fill:0==m?"both":"forwards"};M&&(ce.easing=M);const me=new Map,je=R.filter(Tt=>Tt instanceof io);(function _e(l,s){return 0===l||0===s})(c,m)&&je.forEach(Tt=>{Tt.currentSnapshot.forEach((kt,rt)=>me.set(rt,kt))});let qe=function Ve(l){return l.length?l[0]instanceof Map?l:l.map(s=>new Map(Object.entries(s))):[]}(o).map(Tt=>new Map(Tt));qe=function Ge(l,s,o){if(o.size&&s.length){let c=s[0],m=[];if(o.forEach((M,R)=>{c.has(R)||m.push(R),c.set(R,M)}),m.length)for(let M=1;MR.set(U,Vn(l,U)))}}return s}(s,qe,me);const wt=function Ko(l,s){let o=null,c=null;return Array.isArray(s)&&s.length?(o=wo(s[0]),s.length>1&&(c=wo(s[s.length-1]))):s instanceof Map&&(o=wo(s)),o||c?new ro(l,o,c):null}(s,qe);return new io(s,qe,ce,wt)}}const Fn="@.disabled";class Ls{constructor(s,o,c,m){this.namespaceId=s,this.delegate=o,this.engine=c,this._onDestroy=m,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(s){this.delegate.destroyNode?.(s)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(s,o){return this.delegate.createElement(s,o)}createComment(s){return this.delegate.createComment(s)}createText(s){return this.delegate.createText(s)}appendChild(s,o){this.delegate.appendChild(s,o),this.engine.onInsert(this.namespaceId,o,s,!1)}insertBefore(s,o,c,m=!0){this.delegate.insertBefore(s,o,c),this.engine.onInsert(this.namespaceId,o,s,m)}removeChild(s,o,c){this.engine.onRemove(this.namespaceId,o,this.delegate)}selectRootElement(s,o){return this.delegate.selectRootElement(s,o)}parentNode(s){return this.delegate.parentNode(s)}nextSibling(s){return this.delegate.nextSibling(s)}setAttribute(s,o,c,m){this.delegate.setAttribute(s,o,c,m)}removeAttribute(s,o,c){this.delegate.removeAttribute(s,o,c)}addClass(s,o){this.delegate.addClass(s,o)}removeClass(s,o){this.delegate.removeClass(s,o)}setStyle(s,o,c,m){this.delegate.setStyle(s,o,c,m)}removeStyle(s,o,c){this.delegate.removeStyle(s,o,c)}setProperty(s,o,c){"@"==o.charAt(0)&&o==Fn?this.disableAnimations(s,!!c):this.delegate.setProperty(s,o,c)}setValue(s,o){this.delegate.setValue(s,o)}listen(s,o,c){return this.delegate.listen(s,o,c)}disableAnimations(s,o){this.engine.disableAnimations(s,o)}}class hl extends Ls{constructor(s,o,c,m,M){super(o,c,m,M),this.factory=s,this.namespaceId=o}setProperty(s,o,c){"@"==o.charAt(0)?"."==o.charAt(1)&&o==Fn?this.disableAnimations(s,c=void 0===c||!!c):this.engine.process(this.namespaceId,s,o.slice(1),c):this.delegate.setProperty(s,o,c)}listen(s,o,c){if("@"==o.charAt(0)){const m=function so(l){switch(l){case"body":return document.body;case"document":return document;case"window":return window;default:return l}}(s);let M=o.slice(1),R="";return"@"!=M.charAt(0)&&([M,R]=function Cs(l){const s=l.indexOf(".");return[l.substring(0,s),l.slice(s+1)]}(M)),this.engine.listen(this.namespaceId,m,M,R,U=>{this.factory.scheduleListenerCallback(U._data||-1,c,U)})}return this.delegate.listen(s,o,c)}}class Bs{constructor(s,o,c){this.delegate=s,this.engine=o,this._zone=c,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,o.onRemovalComplete=(m,M)=>{const R=M?.parentNode(m);R&&M.removeChild(R,m)}}createRenderer(s,o){const m=this.delegate.createRenderer(s,o);if(!s||!o?.data?.animation){const me=this._rendererCache;let je=me.get(m);return je||(je=new Ls("",m,this.engine,()=>me.delete(m)),me.set(m,je)),je}const M=o.id,R=o.id+"-"+this._currentId;this._currentId++,this.engine.register(R,s);const U=me=>{Array.isArray(me)?me.forEach(U):this.engine.registerTrigger(M,R,s,me.name,me)};return o.data.animation.forEach(U),new hl(this,R,m,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(s,o,c){if(s>=0&&so(c));const m=this._animationCallbacksBuffer;0==m.length&&queueMicrotask(()=>{this._zone.run(()=>{m.forEach(M=>{const[R,U]=M;R(U)}),this._animationCallbacksBuffer=[]})}),m.push([o,c])}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()}}const Do=[{provide:Ln,useFactory:function zi(){return new St}},{provide:no,useClass:(()=>{class l extends no{constructor(o,c,m){super(o,c,m,(0,g.WQX)(g.An2,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(c){return new(c||l)(g.KVO($.qQ),g.KVO(Vt),g.KVO(Ln))};static#t=this.\u0275prov=g.jDH({token:l,factory:l.\u0275fac})}return l})()},{provide:g._9s,useFactory:function oo(l,s,o){return new Bs(l,s,o)},deps:[r.B7,no,g.SKi]}],P=[{provide:Vt,useFactory:()=>new Ai},{provide:g.bc$,useValue:"BrowserAnimations"},...Do],L=[{provide:Vt,useClass:Ft},{provide:g.bc$,useValue:"NoopAnimations"},...Do];let I=(()=>{class l{static withConfig(o){return{ngModule:l,providers:o.disableAnimations?L:P}}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=g.$C({type:l});static#n=this.\u0275inj=g.G2t({providers:P,imports:[r.Bb]})}return l})();var an=D(9417),is=D(5248),Mo=D(1626),dr=D(7062),zt=D(8921);let ao=(()=>{class l extends zt.n5m{constructor(){super()}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=g.VBU({type:l,selectors:[["app-default-footer"]],features:[g.Vt3],decls:5,vars:0,consts:[["href","https://mikrowizard.com","target","_blank"]],template:function(c,m){1&c&&(g.j41(0,"div")(1,"a",0),g.EFF(2,"MikroWizard"),g.k0s(),g.j41(3,"span"),g.EFF(4," \xa9 2024 "),g.k0s()())}})}return l})();var Xo=D(1170),Na=D(9492),sr=D(4662);function Ac(l,s){1&l&&g.eu8(0)}function Zl(l,s){1&l&&g.eu8(0)}function xc(l,s){if(1&l){const o=g.RV6();g.j41(0,"c-dropdown",8)(1,"button",9),g.qSk(),g.nrm(2,"svg",10),g.EFF(3),g.k0s(),g.joV(),g.j41(4,"ul",11)(5,"li")(6,"h6",12),g.EFF(7,"User Menu"),g.k0s()(),g.j41(8,"li")(9,"button",13),g.bIt("click",function(){g.eBV(o);const m=g.XpG();return g.Njj(m.callParent("password"))}),g.qSk(),g.nrm(10,"svg",10),g.EFF(11," Change password "),g.k0s()(),g.joV(),g.j41(12,"li")(13,"button",13),g.bIt("click",function(){g.eBV(o);const m=g.XpG();return g.Njj(m.callParent("otp"))}),g.qSk(),g.nrm(14,"svg",10),g.EFF(15," setup otp "),g.k0s()(),g.joV(),g.j41(16,"li")(17,"a",14),g.bIt("click",function(){g.eBV(o);const m=g.XpG();return g.Njj(m.logout())}),g.qSk(),g.nrm(18,"svg",15),g.EFF(19," Logout "),g.k0s()()()()}if(2&l){const o=g.XpG();g.R7$(),g.Y8G("caret",!1),g.R7$(2),g.Lme(" ",o.fname," ",o.lname," ")}}function kc(l,s){if(1&l){const o=g.RV6();g.j41(0,"tr")(1,"th",25),g.EFF(2),g.k0s(),g.j41(3,"td"),g.EFF(4),g.k0s(),g.j41(5,"td")(6,"button",26),g.bIt("click",function(){const m=g.eBV(o).$implicit,M=g.XpG(2);return g.Njj(M.callParentConfirm("CancelTask",m))}),g.nrm(7,"i",27),g.k0s()()()}if(2&l){const o=s.$implicit,c=s.index;g.R7$(2),g.JRh(c+1),g.R7$(2),g.JRh(o.name)}}function Pc(l,s){if(1&l&&(g.j41(0,"c-dropdown",8)(1,"button",16),g.nrm(2,"i",17),g.j41(3,"c-badge",18),g.EFF(4),g.k0s()(),g.j41(5,"ul",11)(6,"li")(7,"h6",12),g.EFF(8,"Runnig Background Tasks"),g.k0s()(),g.j41(9,"li")(10,"table",19)(11,"thead",20)(12,"tr"),g.nrm(13,"th",21),g.j41(14,"th",22),g.EFF(15,"Task name"),g.k0s(),g.nrm(16,"th",23),g.k0s()(),g.j41(17,"tbody"),g.DNE(18,kc,8,2,"tr",24),g.k0s()()()()()),2&l){const o=g.XpG();g.R7$(),g.Y8G("caret",!1),g.R7$(3),g.JRh(o.tasks.length),g.R7$(14),g.Y8G("ngForOf",o.tasks)}}let fl=(()=>{class l extends zt.lZj{constructor(o,c,m,M){super(),this.classToggler=o,this.router=c,this.login_checker=m,this.data_provider=M,this.sidebarId="sidebar",this.UserModalEvent=new g.bkB,this.ConfirmModalEvent=new g.bkB,this.newMessages=new Array(4),this.newTasks=new Array(5),this.newNotifications=new Array(5),this.ConfirmModalVisible=!1,this.tasks=[];var U=localStorage.getItem("current_user")||"[]";this.current_user=JSON.parse(U)}submit(){}get_user_info(){this.uid=this.current_user.partner_id,this.uname=this.current_user.name,this.fname=this.current_user.firstname,this.lname=this.current_user.lastname}callParent(o){this.UserModalEvent.next(o)}callParentConfirm(o,c){this.ConfirmModalEvent.next({action:o,data:c})}logout(){this.data_provider.logout().then(o=>{this.router.navigate(["login"])})}ngOnInit(){var o=this;console.log("DefaultHeaderComponent"),this.get_user_info(),this.data_provider.get_running_tasks().then(c=>{o.tasks=c.tasks.filter(m=>m.status)}),this.timer=setInterval(function(){o.get_running_tasks()},5e3)}get_running_tasks(){var o=this;this.data_provider.get_running_tasks().then(c=>{o.tasks=c.tasks.filter(m=>m.status)})}ngOnDestroy(){clearInterval(this.timer)}static#e=this.\u0275fac=function(c){return new(c||l)(g.rXU(zt.Iyx),g.rXU(dr.Ix),g.rXU(Xo.T),g.rXU(Na.C))};static#t=this.\u0275cmp=g.VBU({type:l,selectors:[["app-default-header"]],inputs:{sidebarId:"sidebarId"},outputs:{UserModalEvent:"UserModalEvent",ConfirmModalEvent:"ConfirmModalEvent"},features:[g.Vt3],decls:15,vars:5,consts:[["userDropdown",""],["taskDropdown",""],[3,"fluid"],["toggle","visible","cHeaderToggler","",1,"ps-1",3,"cSidebarToggle"],["cIcon","","name","cilMenu","size","lg"],[1,"ms-3"],[4,"ngTemplateOutlet"],[1,"ms-2"],["alignment","end","variant","nav-item"],["cButton","","color","","cDropdownToggle","",1,"py-0",3,"caret"],["cIcon","","name","cilUser",1,"me-2"],["cDropdownMenu","",1,"pt-0","pr-5","w-auto"],["cDropdownHeader","",1,"bg-light","fw-semibold","py-2"],["cDropdownItem","",3,"click"],["routerLink","./","cDropdownItem","",3,"click"],["cIcon","","name","cilExitToApp",1,"me-2"],["cButton","","color","","cDropdownToggle","",1,"py-0",2,"margin-right","20px",3,"caret"],[1,"fa-solid","fa-gear"],["color","danger","position","bottom-end","shape","rounded-pill",2,"left","unset !important"],["cTable","","small","",2,"min-width","250px"],[2,"font-size","0.9rem"],["scope","col"],["scope","col",2,"color","darkgrey"],["scope","col",2,"width","60px"],[4,"ngFor","ngForOf"],["scope","row"],["cButton","","variant","ghost","color","danger","size","sm",3,"click"],[1,"fa-solid","fa-stop"]],template:function(c,m){if(1&c&&(g.qex(0),g.j41(1,"c-container",2)(2,"button",3),g.qSk(),g.nrm(3,"svg",4),g.k0s(),g.joV(),g.j41(4,"c-header-nav",5),g.DNE(5,Ac,1,0,"ng-container",6),g.EFF(6," | "),g.DNE(7,Zl,1,0,"ng-container",6),g.k0s()(),g.nrm(8,"c-header-divider"),g.j41(9,"c-container",2),g.nrm(10,"c-breadcrumb-router",7),g.k0s(),g.bVm(),g.DNE(11,xc,20,3,"ng-template",null,0,g.C5r)(13,Pc,19,3,"ng-template",null,1,g.C5r)),2&c){const M=g.sdS(12),R=g.sdS(14);g.R7$(),g.Y8G("fluid",!0),g.R7$(),g.Y8G("cSidebarToggle",m.sidebarId),g.R7$(3),g.Y8G("ngTemplateOutlet",R),g.R7$(2),g.Y8G("ngTemplateOutlet",M),g.R7$(2),g.Y8G("fluid",!0)}},dependencies:[$.Sq,$.T3,dr.Wk,zt.wX6,zt.PsF,zt.AAN,zt.Mrl,zt.eOK,zt.rlA,zt.HUM,zt.EH9,zt.Coh,zt.B7R,zt.kvK,sr.LJ,zt._fv,zt.nSt,zt.sZU],encapsulation:2})}return l})();const ql=[{name:"Dashboard",url:"/dashboard",iconComponent:{name:"cil-speedometer"}},{name:"Monitoring Wall",url:"/monitoring",icon:"fa-solid fa-tv",attributes:{pro:!0}},{title:!0,name:"Device Managment"},{name:"Devices",url:"/devices",icon:"fa-solid fa-server"},{name:"Device Groups",url:"/deviceGroup",icon:"fa-solid fa-layer-group"},{name:"Backup & Config",title:!0},{name:"Task Planer",url:"/user_tasks",icon:"fa-solid fa-calendar-week"},{name:"Backups",url:"/backups",icon:"fa-solid fa-database"},{name:"snippets",url:"/snippets",icon:"fa-solid fa-code"},{name:"Password Vault",url:"/vault",icon:"fa-solid fa-vault",attributes:{pro:!0}},{name:"Reports",title:!0},{name:"Authentication",url:"/authlog",icon:"fa-solid fa-check-to-slot"},{name:"Accounting",url:"/accountlog",icon:"fa-solid fa-list-check"},{name:"Device Logs",url:"/devlogs",icon:"fa-regular fa-rectangle-list"},{name:"System Logs",url:"/syslog",icon:"fa-solid fa-person-circle-question"},{title:!0,name:"Users"},{name:"Users Management",url:"/user_manager",icon:"fa-solid fa-user-gear"},{name:"Permissions",url:"/permissions",icon:"fa-solid fa-users"},{title:!0,name:"System",class:"py-0"},{name:"Settings",url:"/settings",icon:"fa-solid fa-gear"},{title:!0,name:"Links",class:"py-0"},{name:"Docs",url:"https://mikrowizard.com/docs",iconComponent:{name:"cil-description"},attributes:{target:"_blank",class:"-text-dark"},class:"mt-auto"},{name:"Buy Pro",url:"https://mikrowizard.com/pricing/",icon:"fa-solid fa-money-check-dollar",attributes:{free:!0,target:"_blank"}}],Jl=()=>({src:"assets/img/brand/logo-MIkroWizard-big-white.svg",width:200,height:46,alt:"MikroWizard Logo"}),ga=()=>({src:"assets/img/brand/logo-MIkroWizard-small-color.svg",width:46,height:46,alt:"MikroWizard Logo"});function Fa(l,s){1&l&&g.nrm(0,"c-sidebar-toggler",23)}function Eo(l,s){if(1&l&&(g.j41(0,"h5",24),g.EFF(1,"Change Password Form of"),g.j41(2,"code")(3,"b"),g.EFF(4),g.k0s()()()),2&l){const o=g.XpG();g.R7$(4),g.E5c("",o.uname,"(",o.fname," ",o.lname,")")}}function pl(l,s){if(1&l&&(g.j41(0,"h5",24),g.EFF(1,"totp setup"),g.j41(2,"code")(3,"b"),g.EFF(4),g.k0s()()()),2&l){const o=g.XpG();g.R7$(4),g.E5c("",o.uname,"(",o.fname," ",o.lname,")")}}function In(l,s){if(1&l&&(g.j41(0,"code"),g.nrm(1,"i",30),g.j41(2,"small"),g.EFF(3),g.k0s()()),2&l){const o=g.XpG(2);g.R7$(3),g.SpI(" ",o.error,"")}}function Qr(l,s){if(1&l){const o=g.RV6();g.j41(0,"c-modal-body")(1,"div",25)(2,"input",26),g.mxI("ngModelChange",function(m){g.eBV(o);const M=g.XpG();return g.DH7(M.password.cupass,m)||(M.password.cupass=m),g.Njj(m)}),g.k0s(),g.j41(3,"label",27),g.EFF(4,"Current Password"),g.k0s()(),g.j41(5,"div",25)(6,"input",28),g.bIt("ngModelChange",function(m){g.eBV(o);const M=g.XpG();return g.Njj(M.password_changed("pass1",m))}),g.mxI("ngModelChange",function(m){g.eBV(o);const M=g.XpG();return g.DH7(M.password.pass1,m)||(M.password.pass1=m),g.Njj(m)}),g.k0s(),g.j41(7,"label",27),g.EFF(8,"New Password"),g.k0s()(),g.j41(9,"div",25)(10,"input",29),g.bIt("ngModelChange",function(m){g.eBV(o);const M=g.XpG();return g.Njj(M.password_changed("pass2",m))}),g.mxI("ngModelChange",function(m){g.eBV(o);const M=g.XpG();return g.DH7(M.password.pass2,m)||(M.password.pass2=m),g.Njj(m)}),g.k0s(),g.j41(11,"label",27),g.EFF(12,"New Password confirm"),g.k0s()(),g.DNE(13,In,4,1,"code",15),g.k0s()}if(2&l){const o=g.XpG();g.R7$(),g.Y8G("cFormFloating",!0),g.R7$(),g.R50("ngModel",o.password.cupass),g.R7$(3),g.Y8G("cFormFloating",!0),g.R7$(),g.R50("ngModel",o.password.pass1),g.R7$(3),g.Y8G("cFormFloating",!0),g.R7$(),g.R50("ngModel",o.password.pass2),g.Y8G("valid",o.passvalid.pass2),g.R7$(3),g.Y8G("ngIf",o.error)}}function Zr(l,s){if(1&l){const o=g.RV6();g.j41(0,"button",39),g.bIt("click",function(){g.eBV(o);const m=g.XpG(3);return g.Njj(m.otpwizard(1))}),g.EFF(1,"Enable TOTP"),g.k0s()}}function xi(l,s){if(1&l){const o=g.RV6();g.j41(0,"button",39),g.bIt("click",function(){g.eBV(o);const m=g.XpG(3);return g.Njj(m.otpwizard(1))}),g.EFF(1,"Disable TOTP"),g.k0s()}}function Mi(l,s){if(1&l&&(g.j41(0,"div",36)(1,"h3",37),g.EFF(2,"Step 1: Enable TOTP"),g.k0s(),g.j41(3,"p"),g.EFF(4,"Please click the button below to enable Two-Factor Authentication."),g.k0s(),g.DNE(5,Zr,2,0,"button",38)(6,xi,2,0,"button",38),g.k0s()),2&l){const o=g.XpG(2);g.R7$(5),g.Y8G("ngIf",0!=o.qrCode),g.R7$(),g.Y8G("ngIf",0==o.qrCode)}}function Ra(l,s){if(1&l&&g.nrm(0,"img",43),2&l){const o=g.XpG(3);g.Y8G("src",o.qrCode,g.B4B)}}function La(l,s){if(1&l){const o=g.RV6();g.j41(0,"div",40)(1,"h3"),g.EFF(2,"Step 2: Scan QR Code"),g.k0s(),g.j41(3,"p"),g.EFF(4,"Open your Google Authenticator app and scan the QR code below:"),g.k0s(),g.j41(5,"div"),g.DNE(6,Ra,1,1,"img",41),g.k0s(),g.j41(7,"button",42),g.bIt("click",function(){g.eBV(o);const m=g.XpG(2);return g.Njj(m.otpwizard(2))}),g.EFF(8,"Next"),g.k0s()()}if(2&l){const o=g.XpG(2);g.R7$(6),g.Y8G("ngIf",o.qrCode)}}function To(l,s){1&l&&(g.j41(0,"h3",37),g.EFF(1,"Step 3: Verify TOTP"),g.k0s())}function Nc(l,s){1&l&&(g.j41(0,"h3",37),g.EFF(1,"Step 3: Verify TOTP To Disable TOTP"),g.k0s())}function Fc(l,s){if(1&l){const o=g.RV6();g.j41(0,"div",44),g.DNE(1,To,2,0,"h3",45)(2,Nc,2,0,"h3",45),g.j41(3,"p"),g.EFF(4,"Please enter the code generated by your authenticator app:"),g.k0s(),g.j41(5,"input",46),g.mxI("ngModelChange",function(m){g.eBV(o);const M=g.XpG(2);return g.DH7(M.totpCode,m)||(M.totpCode=m),g.Njj(m)}),g.k0s()()}if(2&l){const o=g.XpG(2);g.R7$(),g.Y8G("ngIf",0!=o.qrCode),g.R7$(),g.Y8G("ngIf",0==o.qrCode),g.R7$(3),g.R50("ngModel",o.totpCode)}}function va(l,s){if(1&l&&(g.j41(0,"div",47),g.EFF(1),g.k0s()),2&l){const o=g.XpG(2);g.R7$(),g.SpI(" ",o.errorMessage," ")}}function ml(l,s){if(1&l&&(g.j41(0,"c-modal-body")(1,"div",31),g.DNE(2,Mi,7,2,"div",32)(3,La,9,1,"div",33)(4,Fc,6,3,"div",34),g.k0s(),g.DNE(5,va,2,1,"div",35),g.k0s()),2&l){const o=g.XpG();g.R7$(2),g.Y8G("ngIf",1===o.currentStep),g.R7$(),g.Y8G("ngIf",2===o.currentStep),g.R7$(),g.Y8G("ngIf",3===o.currentStep),g.R7$(),g.Y8G("ngIf",0!=o.errorMessage)}}function lo(l,s){if(1&l){const o=g.RV6();g.j41(0,"button",48),g.bIt("click",function(){g.eBV(o);const m=g.XpG();return g.Njj(m.submit())}),g.EFF(1,"submit"),g.k0s()}}function gl(l,s){if(1&l){const o=g.RV6();g.j41(0,"button",49),g.bIt("click",function(){g.eBV(o);const m=g.XpG();return g.Njj(m.otpwizard(3))}),g.EFF(1,"Submit"),g.k0s()}}function Ba(l,s){1&l&&(g.j41(0,"h5",24),g.EFF(1,"Please Confirm Stopping Background Task"),g.k0s())}function bu(l,s){1&l&&(g.j41(0,"h5",24),g.EFF(1,"Please Confirm Stopping Background Task"),g.k0s())}function vl(l,s){if(1&l&&(g.j41(0,"div")(1,"p"),g.EFF(2,"Are you sure you want to stop the task "),g.j41(3,"code",50)(4,"b"),g.EFF(5),g.k0s()(),g.EFF(6,"?"),g.k0s()()),2&l){const o=g.XpG();g.R7$(5),g.JRh(o.data.name)}}function Rc(l,s){1&l&&(g.j41(0,"div")(1,"code"),g.EFF(2,"Stopping this task will cause reload of other background tasks"),g.k0s()())}function yl(l,s){1&l&&(g.j41(0,"div")(1,"code"),g.EFF(2,"Clear browser cache and Reload the page or hit Ctrl+F5 to load latest Mikrofront version"),g.k0s()())}function ec(l,s){1&l&&g.nrm(0,"i",53)}function tc(l,s){if(1&l){const o=g.RV6();g.j41(0,"button",51),g.bIt("click",function(){g.eBV(o);const m=g.XpG();return g.Njj(m.ConfirmAction())}),g.DNE(1,ec,1,0,"i",52),g.EFF(2," submit"),g.k0s()}if(2&l){const o=g.XpG();g.Y8G("disabled",o.data.SubmitDisable),g.R7$(),g.Y8G("ngIf",o.data.SubmitDisable)}}function zs(l,s){if(1&l&&g.nrm(0,"button",18),2&l){g.XpG();const o=g.sdS(26);g.Y8G("cModalToggle",o.id)}}function Lc(l,s){1&l&&g.nrm(0,"i",53)}function Va(l,s){if(1&l){const o=g.RV6();g.j41(0,"button",48),g.bIt("click",function(){g.eBV(o);const m=g.XpG();return g.Njj(m.ConfirmAction())}),g.DNE(1,Lc,1,0,"i",52),g.EFF(2," Reload"),g.k0s()}if(2&l){const o=g.XpG();g.R7$(),g.Y8G("ngIf",o.data.SubmitDisable)}}function za(l,s){if(1&l){const o=g.RV6();g.j41(0,"button",54),g.bIt("click",function(){g.eBV(o);const m=g.XpG();return g.Njj(m.clearTimer())}),g.EFF(1," Close "),g.k0s()}}let _l=(()=>{class l{constructor(o,c,m,M){this.router=o,this.login_checker=c,this.data_provider=m,this._sanitizer=M,this.navItems=ql,this.ispro=!1,this.action="password",this.error=!1,this.currentStep=1,this.qrCode=!1,this.totpCode="",this.errorMessage=!1,this.data={},this.password={cupass:"",pass1:"",pass2:""},this.passvalid={cupass:!1,pass1:!1,pass2:!1},this.version=D(8330).version;var R=this,U=localStorage.getItem("current_user")||"[]";this.current_user=JSON.parse(U),this.router.events.subscribe(ce=>{ce instanceof dr.wF&&(this.login_checker.isLoggedIn()||setTimeout(function(){R.router.navigate(["login"])},100))})}otpwizard(o){var c=this;1==o&&(this.currentStep=this.qrCode?2:3),2==o&&(this.currentStep=3),3==o&&(0!=this.qrCode?this.data_provider.mytotp("enable",this.totpCode).then(m=>{"success"==m.status?c.UserProfileModalVisible=!1:this.errorMessage=m.err}):this.data_provider.mytotp("disable",this.totpCode).then(m=>{"success"==m.status?c.UserProfileModalVisible=!1:this.errorMessage=m.err}))}password_changed(o,c){this.password[o]=c,this.passvalid.pass2=this.password.pass1==this.password.pass2}show_user_modal(o){this.currentStep=1,this.errorMessage=!1,this.totpCode="",this.qrCode=!1,this.action=o,"otp"==o?this.data_provider.mytotp("enable").then(c=>{"success"==c.status?(this.currentStep=1,this.qrCode=this._sanitizer.bypassSecurityTrustResourceUrl("data:image/jpg;base64,"+c.otp),this.UserProfileModalVisible=!0):(this.qrCode=!1,this.currentStep=1,this.UserProfileModalVisible=!0,this.errorMessage=c.err)}):this.UserProfileModalVisible=!0}show_confirm_modal(o){this.data={},"CancelTask"==o.action&&(this.action=o.action,this.data=o.data,console.dir(this.data),console.dir(this.action),this.data.SubmitDisable=!1,this.ConfirmModalVisible=!0),"update"==o.action&&(this.action="update",this.data={},this.ConfirmModalVisible=!0)}ConfirmAction(){var o=this;"CancelTask"==this.action&&this.data_provider.stop_task(this.data.signal).then(c=>{"success"==c.status&&setTimeout(function(){o.ConfirmModalVisible=!1},5e3),this.data.SubmitDisable=!0}),"update"==this.action&&(window.location.href=window.location.href.replace(/#.*$/,""))}submit(){var o=this;o.passvalid.pass2&&this.data_provider.change_password(this.password.cupass,this.password.pass1).then(c=>{"success"==c.status?(o.logout(),setTimeout(function(){o.router.navigate(["login"])},100)):o.error=c.err},c=>{console.dir(c)})}get_user_info(){this.uid=this.current_user.partner_id,this.uname=this.current_user.name,this.fname=this.current_user.firstname,this.lname=this.current_user.lastname}logout(){this.data_provider.logout()}ngOnInit(){var o=this;this.get_user_info(),this.data_provider.getSessionInfo().then(c=>{o.ispro=c.ISPRO,o.navItems=o.navItems.filter(m=>m.attributes?"free"in m.attributes&&o.ispro?void 0:"pro"in m.attributes&&o.ispro?m:"pro"in m.attributes&&!o.ispro?void 0:m:m)}),setTimeout(function(){o.data_provider.get_front_version().then(c=>{c.version!=o.version&&(console.log("New version is available. Please refresh the page."),o.show_confirm_modal({action:"update"}))})},1e4),this.timer=setInterval(function(){o.data_provider.get_front_version().then(c=>{c.version!=o.version&&(console.log("New version is available. Please refresh the page."),o.show_confirm_modal({action:"update"}))})},6e4)}clearTimer(){clearInterval(this.timer),this.ConfirmModalVisible=!1}static#e=this.\u0275fac=function(c){return new(c||l)(g.rXU(dr.Ix),g.rXU(Xo.T),g.rXU(Na.C),g.rXU(r.up))};static#t=this.\u0275cmp=g.VBU({type:l,selectors:[["app-dashboard"]],decls:40,vars:26,consts:[["sidebar","cSidebar"],["UserProfileModal",""],["ConfirmModal",""],["id","sidebar","visible","",1,"d-print-none","sidebar","sidebar-fixed"],["routerLink","./",3,"brandFull","brandNarrow"],["pointerEventsMethod","scrollbar"],["dropdownMode","close",3,"navItems"],["toggle","unfoldable","cSidebarToggle","sidebar",4,"ngIf"],[1,"wrapper","d-flex","flex-column","min-vh-100","bg-light","dark:bg-transparent"],["position","sticky","sidebarId","sidebar",1,"mb-2","d-print-none","header","header-sticky",3,"UserModalEvent","ConfirmModalEvent"],[1,"main-container","body","flex-grow-1","px-3",2,"display","flex"],["breakpoint","fluid",1,"h-auto"],["backdrop","static","size","lg","id","UserProfileModal",3,"visibleChange","visible"],["cModalTitle","",4,"ngIf"],["cButtonClose","",3,"cModalToggle"],[4,"ngIf"],["cButton","","color","primary",3,"click",4,"ngIf"],["cButton","","color","success",3,"click",4,"ngIf"],["cButton","","color","secondary",3,"cModalToggle"],["backdrop","static","size","lg","id","ConfirmModal",3,"visibleChange","visible"],["cButton","","color","primary",3,"disabled","click",4,"ngIf"],["cButton","","color","secondary",3,"cModalToggle",4,"ngIf"],["cButton","","color","secondary",3,"click",4,"ngIf"],["toggle","unfoldable","cSidebarToggle","sidebar"],["cModalTitle",""],[1,"mb-3",3,"cFormFloating"],["type","password","cFormControl","","id","floatingInput","placeholder","Current Password",3,"ngModelChange","ngModel"],["cLabel","","for","floatingInput"],["type","password","cFormControl","","id","floatingInput","placeholder","New Password",3,"ngModelChange","ngModel"],["type","password","cFormControl","","id","floatingInput","placeholder","New Password confirm",3,"ngModelChange","ngModel","valid"],[1,"fa-solid","fa-triangle-exclamation"],[1,"step-container"],["class","step","style","display: flex;flex-direction: column;flex-wrap: nowrap;justify-content: center;align-items: center;",4,"ngIf"],["class","step text-center",4,"ngIf"],["class","step",4,"ngIf"],["class","alert alert-danger mt-3","role","alert",4,"ngIf"],[1,"step",2,"display","flex","flex-direction","column","flex-wrap","nowrap","justify-content","center","align-items","center"],[1,"text-center"],["class","btn btn-primary",3,"click",4,"ngIf"],[1,"btn","btn-primary",3,"click"],[1,"step","text-center"],["alt","QR Code","style","max-width: 100%; height: auto;",3,"src",4,"ngIf"],[1,"btn","btn-primary","mt-3",3,"click"],["alt","QR Code",2,"max-width","100%","height","auto",3,"src"],[1,"step"],["class","text-center",4,"ngIf"],["type","text","placeholder","Enter TOTP Code","required","",1,"form-control",3,"ngModelChange","ngModel"],["role","alert",1,"alert","alert-danger","mt-3"],["cButton","","color","primary",3,"click"],["cButton","","color","success",3,"click"],[2,"padding","0 !important"],["cButton","","color","primary",3,"click","disabled"],["class","fa-solid fa-spinner fa-spin",4,"ngIf"],[1,"fa-solid","fa-spinner","fa-spin"],["cButton","","color","secondary",3,"click"]],template:function(c,m){if(1&c){const M=g.RV6();g.j41(0,"c-sidebar",3,0),g.nrm(2,"c-sidebar-brand",4),g.j41(3,"ng-scrollbar",5),g.nrm(4,"c-sidebar-nav",6),g.k0s(),g.DNE(5,Fa,1,0,"c-sidebar-toggler",7),g.k0s(),g.j41(6,"div",8)(7,"app-default-header",9),g.bIt("UserModalEvent",function(U){return g.eBV(M),g.Njj(m.show_user_modal(U))})("ConfirmModalEvent",function(U){return g.eBV(M),g.Njj(m.show_confirm_modal(U))}),g.k0s(),g.j41(8,"div",10)(9,"c-container",11),g.nrm(10,"router-outlet"),g.k0s()(),g.nrm(11,"app-default-footer"),g.k0s(),g.j41(12,"c-modal",12,1),g.mxI("visibleChange",function(U){return g.eBV(M),g.DH7(m.UserProfileModalVisible,U)||(m.UserProfileModalVisible=U),g.Njj(U)}),g.j41(14,"c-modal-header"),g.DNE(15,Eo,5,3,"h5",13)(16,pl,5,3,"h5",13),g.nrm(17,"button",14),g.k0s(),g.DNE(18,Qr,14,8,"c-modal-body",15)(19,ml,6,4,"c-modal-body",15),g.j41(20,"c-modal-footer"),g.DNE(21,lo,2,0,"button",16)(22,gl,2,0,"button",17),g.j41(23,"button",18),g.EFF(24," Close "),g.k0s()()(),g.j41(25,"c-modal",19,2),g.mxI("visibleChange",function(U){return g.eBV(M),g.DH7(m.ConfirmModalVisible,U)||(m.ConfirmModalVisible=U),g.Njj(U)}),g.j41(27,"c-modal-header"),g.DNE(28,Ba,2,0,"h5",13)(29,bu,2,0,"h5",13),g.nrm(30,"button",14),g.k0s(),g.j41(31,"c-modal-body"),g.DNE(32,vl,7,1,"div",15)(33,Rc,3,0,"div",15)(34,yl,3,0,"div",15),g.k0s(),g.j41(35,"c-modal-footer"),g.DNE(36,tc,3,2,"button",20)(37,zs,1,1,"button",21)(38,Va,3,1,"button",16)(39,za,2,0,"button",22),g.k0s()()}if(2&c){const M=g.sdS(1),R=g.sdS(13),U=g.sdS(26);g.R7$(2),g.Y8G("brandFull",g.lJ4(24,Jl))("brandNarrow",g.lJ4(25,ga)),g.R7$(2),g.Y8G("navItems",m.navItems),g.R7$(),g.Y8G("ngIf",!M.narrow),g.R7$(7),g.R50("visible",m.UserProfileModalVisible),g.R7$(3),g.Y8G("ngIf","password"==m.action),g.R7$(),g.Y8G("ngIf","otp"==m.action),g.R7$(),g.Y8G("cModalToggle",R.id),g.R7$(),g.Y8G("ngIf","password"==m.action),g.R7$(),g.Y8G("ngIf","otp"==m.action),g.R7$(2),g.Y8G("ngIf","password"==m.action),g.R7$(),g.Y8G("ngIf",3==m.currentStep),g.R7$(),g.Y8G("cModalToggle",R.id),g.R7$(2),g.R50("visible",m.ConfirmModalVisible),g.R7$(3),g.Y8G("ngIf","CancelTask"==m.action),g.R7$(),g.Y8G("ngIf","update"==m.action),g.R7$(),g.Y8G("cModalToggle",U.id),g.R7$(2),g.Y8G("ngIf","CancelTask"==m.action),g.R7$(),g.Y8G("ngIf","CancelTask"==m.action&&"130"!=m.data.signal&&"140"!=m.data.signal),g.R7$(),g.Y8G("ngIf","update"==m.action),g.R7$(2),g.Y8G("ngIf","update"!=m.action),g.R7$(),g.Y8G("ngIf","update"!=m.action),g.R7$(),g.Y8G("ngIf","update"==m.action),g.R7$(),g.Y8G("ngIf","update"==m.action)}},dependencies:[$.bT,dr.n3,dr.Wk,zt.HUM,zt.kc$,zt.kvK,zt.iNJ,zt.jgS,zt.pjP,zt._fv,zt.UjT,zt.l_X,zt.e$m,zt.YJZ,an.me,an.BC,an.YS,an.vS,is.Yh,zt.Jyz,zt.zfW,zt.s$3,zt.epl,zt.L$K,zt.VtU,ao,fl],styles:["[_nghost-%COMP%] ng-scrollbar[_ngcontent-%COMP%]{--scrollbar-thumb-color: var(--cui-border-color, #999);--scrollbar-track-color: var(--cui-body-color, #fff);--scrollbar-hover-size: calc(var(--scrollbar-size) * 1.5)}[_nghost-%COMP%] c-sidebar-nav[_ngcontent-%COMP%]{--cui-sidebar-nav-link-padding-y:.6rem;--cui-sidebar-nav-title-margin-top: .1rem}[_nghost-%COMP%] .header[_ngcontent-%COMP%]{--cui-subheader-min-height:2rem} .card{--cui-card-border-radius:.2rem;--cui-card-cap-padding-y:.4rem} :root{--cui-body-font-size:.8rem}"]})}return l})();var bl=D(3042),Qo=D(5050),ss=D(2234);const Zo=[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"",component:_l,data:{title:"Home"},children:[{path:"dashboard",loadChildren:()=>Promise.all([D.e(130),D.e(858),D.e(76),D.e(650)]).then(D.bind(D,5650)).then(l=>l.DashboardModule)},{path:"monitoring",loadChildren:()=>Promise.all([D.e(130),D.e(858),D.e(76),D.e(435)]).then(D.bind(D,5435)).then(l=>l.MonitoringModule)},{path:"vault",loadChildren:()=>Promise.all([D.e(390),D.e(130),D.e(467),D.e(631),D.e(76),D.e(184)]).then(D.bind(D,6184)).then(l=>l.VaultModule)},{path:"devices",loadChildren:()=>Promise.all([D.e(390),D.e(130),D.e(987),D.e(76),D.e(80)]).then(D.bind(D,7080)).then(l=>l.DevicesModule)},{path:"device-stats",loadChildren:()=>Promise.all([D.e(390),D.e(858),D.e(981)]).then(D.bind(D,7981)).then(l=>l.DeviceModule)},{path:"deviceGroup",loadChildren:()=>Promise.all([D.e(390),D.e(325)]).then(D.bind(D,8325)).then(l=>l.DevicesGroupModule)},{path:"authlog",loadChildren:()=>Promise.all([D.e(390),D.e(130),D.e(987),D.e(467),D.e(573),D.e(631),D.e(84),D.e(182)]).then(D.bind(D,5182)).then(l=>l.AuthModule)},{path:"devlogs",loadChildren:()=>Promise.all([D.e(390),D.e(130),D.e(987),D.e(467),D.e(573),D.e(631),D.e(84),D.e(983),D.e(633)]).then(D.bind(D,8633)).then(l=>l.DevLogsModule)},{path:"syslog",loadChildren:()=>Promise.all([D.e(390),D.e(130),D.e(987),D.e(467),D.e(573),D.e(631),D.e(84),D.e(983),D.e(381)]).then(D.bind(D,7381)).then(l=>l.SyslogModule)},{path:"backups",loadChildren:()=>Promise.all([D.e(390),D.e(130),D.e(987),D.e(467),D.e(573),D.e(631),D.e(84),D.e(76),D.e(578)]).then(D.bind(D,9578)).then(l=>l.BackupsModule)},{path:"settings",loadChildren:()=>Promise.all([D.e(390),D.e(987),D.e(467),D.e(573),D.e(983),D.e(76),D.e(71)]).then(D.bind(D,71)).then(l=>l.SettingsModule)},{path:"accountlog",loadChildren:()=>Promise.all([D.e(390),D.e(130),D.e(987),D.e(467),D.e(573),D.e(631),D.e(84),D.e(391)]).then(D.bind(D,8391)).then(l=>l.AccModule)},{path:"user_tasks",loadChildren:()=>Promise.all([D.e(390),D.e(204)]).then(D.bind(D,3204)).then(l=>l.UserTasksModule)},{path:"snippets",loadChildren:()=>Promise.all([D.e(390),D.e(130),D.e(385)]).then(D.bind(D,385)).then(l=>l.SnippetsModule)},{path:"user_manager",loadChildren:()=>Promise.all([D.e(390),D.e(987),D.e(467),D.e(573),D.e(983),D.e(76),D.e(813)]).then(D.bind(D,3813)).then(l=>l.UserManagerModule)},{path:"permissions",loadChildren:()=>Promise.all([D.e(390),D.e(76),D.e(703)]).then(D.bind(D,6703)).then(l=>l.PermissionsModule)},{path:"pages",loadChildren:()=>D.e(118).then(D.bind(D,5118)).then(l=>l.PagesModule)}]},{path:"404",component:bl.X,data:{title:"Page 404"}},{path:"500",component:Qo.y,data:{title:"Page 500"}},{path:"login",component:ss.X,data:{title:"Login Page"}},{path:"**",redirectTo:"dashboard"}];let Cl=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=g.$C({type:l});static#n=this.\u0275inj=g.G2t({imports:[dr.iI.forRoot(Zo,{scrollPositionRestoration:"top",anchorScrolling:"enabled",initialNavigation:"enabledBlocking"}),dr.iI]})}return l})();var Io=D(6600),jr=D(7729),qr=D(4273);function os(l){const s=(0,qr.a)(l),o=s.getFullYear(),c=s.getMonth(),m=(0,jr.w)(l,0);return m.setFullYear(o,c+1,0),m.setHours(0,0,0,0),m.getDate()}function Hs(l,s){const o=(0,qr.a)(l),c=o.getFullYear(),m=o.getDate(),M=(0,jr.w)(l,0);M.setFullYear(c,s,15),M.setHours(0,0,0,0);const R=os(M);return o.setMonth(s,Math.min(m,R)),o}var Qe=D(13);function cr(l,s){const o=(0,qr.a)(l);if(isNaN(s))return(0,jr.w)(l,NaN);if(!s)return o;const c=o.getDate(),m=(0,jr.w)(l,o.getTime());return m.setMonth(o.getMonth()+s+1,0),c>=m.getDate()?m:(o.setFullYear(m.getFullYear(),m.getMonth(),c),o)}function Wn(l,s){const o=(0,qr.a)(l);return isNaN(s)?(0,jr.w)(l,NaN):(s&&o.setDate(o.getDate()+s),o)}var Zn=D(8728),lt=D(7250),Lt=D(967),zn=D(9857);const ur={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Jr=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ws=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Er=/^([+-])(\d{2})(?::?(\d{2}))?$/;function co(l){return l?parseInt(l):1}function Oo(l){return l&&parseFloat(l.replace(",","."))||0}const Ms=[31,null,31,30,31,30,31,31,30,31,30,31];function js(l){return l%400==0||l%4==0&&l%100!=0}var Bc=D(1666),$a=D(3501),uo=D(8488),Tr=D(7195);class Wa{subPriority=0;validate(s,o){return!0}}class _a extends Wa{constructor(s,o,c,m,M){super(),this.value=s,this.validateValue=o,this.setValue=c,this.priority=m,M&&(this.subPriority=M)}validate(s,o){return this.validateValue(s,this.value,o)}set(s,o,c){return this.setValue(s,o,this.value,c)}}class Il extends Wa{priority=10;subPriority=-1;set(s,o){return o.timestampIsSet?s:(0,jr.w)(s,function Po(l,s){const o=s instanceof Date?(0,jr.w)(s,0):new s(0);return o.setFullYear(l.getFullYear(),l.getMonth(),l.getDate()),o.setHours(l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds()),o}(s,Date))}}class Sn{run(s,o,c,m){const M=this.parse(s,o,c,m);return M?{setter:new _a(M.value,this.validate,this.set,this.priority,this.subPriority),rest:M.rest}:null}validate(s,o,c){return!0}}const Wr_month=/^(1[0-2]|0?\d)/,Wr_date=/^(3[0-1]|[0-2]?\d)/,Wr_dayOfYear=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Wr_week=/^(5[0-3]|[0-4]?\d)/,Wr_hour23h=/^(2[0-3]|[0-1]?\d)/,Wr_hour24h=/^(2[0-4]|[0-1]?\d)/,Wr_hour11h=/^(1[0-1]|0?\d)/,Wr_hour12h=/^(1[0-2]|0?\d)/,Wr_minute=/^[0-5]?\d/,Wr_second=/^[0-5]?\d/,Wr_singleDigit=/^\d/,Wr_twoDigits=/^\d{1,2}/,Wr_threeDigits=/^\d{1,3}/,Wr_fourDigits=/^\d{1,4}/,Wr_anyDigitsSigned=/^-?\d+/,Wr_singleDigitSigned=/^-?\d/,Wr_twoDigitsSigned=/^-?\d{1,2}/,Wr_threeDigitsSigned=/^-?\d{1,3}/,Wr_fourDigitsSigned=/^-?\d{1,4}/,Us_basicOptionalMinutes=/^([+-])(\d{2})(\d{2})?|Z/,Us_basic=/^([+-])(\d{2})(\d{2})|Z/,Us_basicOptionalSeconds=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Us_extended=/^([+-])(\d{2}):(\d{2})|Z/,Us_extendedOptionalSeconds=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Lr(l,s){return l&&{value:s(l.value),rest:l.rest}}function Ir(l,s){const o=s.match(l);return o?{value:parseInt(o[0],10),rest:s.slice(o[0].length)}:null}function $s(l,s){const o=s.match(l);if(!o)return null;if("Z"===o[0])return{value:0,rest:s.slice(1)};const c="+"===o[1]?1:-1,m=o[2]?parseInt(o[2],10):0,M=o[3]?parseInt(o[3],10):0,R=o[5]?parseInt(o[5],10):0;return{value:c*(m*zn.s0+M*zn.Cg+R*zn._m),rest:s.slice(o[0].length)}}function nc(l){return Ir(Wr_anyDigitsSigned,l)}function ui(l,s){switch(l){case 1:return Ir(Wr_singleDigit,s);case 2:return Ir(Wr_twoDigits,s);case 3:return Ir(Wr_threeDigits,s);case 4:return Ir(Wr_fourDigits,s);default:return Ir(new RegExp("^\\d{1,"+l+"}"),s)}}function Vc(l,s){switch(l){case 1:return Ir(Wr_singleDigitSigned,s);case 2:return Ir(Wr_twoDigitsSigned,s);case 3:return Ir(Wr_threeDigitsSigned,s);case 4:return Ir(Wr_fourDigitsSigned,s);default:return Ir(new RegExp("^-?\\d{1,"+l+"}"),s)}}function ba(l){switch(l){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function zc(l,s){const o=s>0,c=o?s:1-s;let m;if(c<=50)m=l||100;else{const M=c+50;m=l+100*Math.trunc(M/100)-(l>=M%100?100:0)}return o?m:1-m}function wu(l){return l%400==0||l%4==0&&l%100!=0}var E=D(6045),_=D(7793),k=D(8152),xn=D(7012),Jo=D(6453);const Id=[31,28,31,30,31,30,31,31,30,31,30,31],Sd=[31,29,31,30,31,30,31,31,30,31,30,31];function Hc(l,s,o){const c=(0,Bc.q)(),m=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??c.weekStartsOn??c.locale?.options?.weekStartsOn??0,M=(0,qr.a)(l),R=M.getDay(),me=7-m;return Wn(M,s<0||s>6?s-(R+me)%7:((s%7+7)%7+me)%7-(R+me)%7)}var Pd=D(5872);const Wc={G:new class Sl extends Sn{priority=140;parse(s,o,c){switch(o){case"G":case"GG":case"GGG":return c.era(s,{width:"abbreviated"})||c.era(s,{width:"narrow"});case"GGGGG":return c.era(s,{width:"narrow"});default:return c.era(s,{width:"wide"})||c.era(s,{width:"abbreviated"})||c.era(s,{width:"narrow"})}}set(s,o,c){return o.era=c,s.setFullYear(c,0,1),s.setHours(0,0,0,0),s}incompatibleTokens=["R","u","t","T"]},y:new class y extends Sn{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(s,o,c){const m=M=>({year:M,isTwoDigitYear:"yy"===o});switch(o){case"y":return Lr(ui(4,s),m);case"yo":return Lr(c.ordinalNumber(s,{unit:"year"}),m);default:return Lr(ui(o.length,s),m)}}validate(s,o){return o.isTwoDigitYear||o.year>0}set(s,o,c){const m=s.getFullYear();if(c.isTwoDigitYear){const R=zc(c.year,m);return s.setFullYear(R,0,1),s.setHours(0,0,0,0),s}return s.setFullYear("era"in o&&1!==o.era?1-c.year:c.year,0,1),s.setHours(0,0,0,0),s}},Y:new class T extends Sn{priority=130;parse(s,o,c){const m=M=>({year:M,isTwoDigitYear:"YY"===o});switch(o){case"Y":return Lr(ui(4,s),m);case"Yo":return Lr(c.ordinalNumber(s,{unit:"year"}),m);default:return Lr(ui(o.length,s),m)}}validate(s,o){return o.isTwoDigitYear||o.year>0}set(s,o,c,m){const M=(0,E.h)(s,m);if(c.isTwoDigitYear){const U=zc(c.year,M);return s.setFullYear(U,0,m.firstWeekContainsDate),s.setHours(0,0,0,0),(0,_.k)(s,m)}return s.setFullYear("era"in o&&1!==o.era?1-c.year:c.year,0,m.firstWeekContainsDate),s.setHours(0,0,0,0),(0,_.k)(s,m)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class W extends Sn{priority=130;parse(s,o){return Vc("R"===o?4:o.length,s)}set(s,o,c){const m=(0,jr.w)(s,0);return m.setFullYear(c,0,4),m.setHours(0,0,0,0),(0,k.b)(m)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class pe extends Sn{priority=130;parse(s,o){return Vc("u"===o?4:o.length,s)}set(s,o,c){return s.setFullYear(c,0,1),s.setHours(0,0,0,0),s}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class Fe extends Sn{priority=120;parse(s,o,c){switch(o){case"Q":case"QQ":return ui(o.length,s);case"Qo":return c.ordinalNumber(s,{unit:"quarter"});case"QQQ":return c.quarter(s,{width:"abbreviated",context:"formatting"})||c.quarter(s,{width:"narrow",context:"formatting"});case"QQQQQ":return c.quarter(s,{width:"narrow",context:"formatting"});default:return c.quarter(s,{width:"wide",context:"formatting"})||c.quarter(s,{width:"abbreviated",context:"formatting"})||c.quarter(s,{width:"narrow",context:"formatting"})}}validate(s,o){return o>=1&&o<=4}set(s,o,c){return s.setMonth(3*(c-1),1),s.setHours(0,0,0,0),s}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class Pe extends Sn{priority=120;parse(s,o,c){switch(o){case"q":case"qq":return ui(o.length,s);case"qo":return c.ordinalNumber(s,{unit:"quarter"});case"qqq":return c.quarter(s,{width:"abbreviated",context:"standalone"})||c.quarter(s,{width:"narrow",context:"standalone"});case"qqqqq":return c.quarter(s,{width:"narrow",context:"standalone"});default:return c.quarter(s,{width:"wide",context:"standalone"})||c.quarter(s,{width:"abbreviated",context:"standalone"})||c.quarter(s,{width:"narrow",context:"standalone"})}}validate(s,o){return o>=1&&o<=4}set(s,o,c){return s.setMonth(3*(c-1),1),s.setHours(0,0,0,0),s}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class Et extends Sn{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(s,o,c){const m=M=>M-1;switch(o){case"M":return Lr(Ir(Wr_month,s),m);case"MM":return Lr(ui(2,s),m);case"Mo":return Lr(c.ordinalNumber(s,{unit:"month"}),m);case"MMM":return c.month(s,{width:"abbreviated",context:"formatting"})||c.month(s,{width:"narrow",context:"formatting"});case"MMMMM":return c.month(s,{width:"narrow",context:"formatting"});default:return c.month(s,{width:"wide",context:"formatting"})||c.month(s,{width:"abbreviated",context:"formatting"})||c.month(s,{width:"narrow",context:"formatting"})}}validate(s,o){return o>=0&&o<=11}set(s,o,c){return s.setMonth(c,1),s.setHours(0,0,0,0),s}},L:new class wn extends Sn{priority=110;parse(s,o,c){const m=M=>M-1;switch(o){case"L":return Lr(Ir(Wr_month,s),m);case"LL":return Lr(ui(2,s),m);case"Lo":return Lr(c.ordinalNumber(s,{unit:"month"}),m);case"LLL":return c.month(s,{width:"abbreviated",context:"standalone"})||c.month(s,{width:"narrow",context:"standalone"});case"LLLLL":return c.month(s,{width:"narrow",context:"standalone"});default:return c.month(s,{width:"wide",context:"standalone"})||c.month(s,{width:"abbreviated",context:"standalone"})||c.month(s,{width:"narrow",context:"standalone"})}}validate(s,o){return o>=0&&o<=11}set(s,o,c){return s.setMonth(c,1),s.setHours(0,0,0,0),s}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class Ca extends Sn{priority=100;parse(s,o,c){switch(o){case"w":return Ir(Wr_week,s);case"wo":return c.ordinalNumber(s,{unit:"week"});default:return ui(o.length,s)}}validate(s,o){return o>=1&&o<=53}set(s,o,c,m){return(0,_.k)(function di(l,s,o){const c=(0,qr.a)(l),m=(0,xn.N)(c,o)-s;return c.setDate(c.getDate()-7*m),c}(s,c,m),m)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class bf extends Sn{priority=100;parse(s,o,c){switch(o){case"I":return Ir(Wr_week,s);case"Io":return c.ordinalNumber(s,{unit:"week"});default:return ui(o.length,s)}}validate(s,o){return o>=1&&o<=53}set(s,o,c){return(0,k.b)(function Ol(l,s){const o=(0,qr.a)(l),c=(0,Jo.s)(o)-s;return o.setDate(o.getDate()-7*c),o}(s,c))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class Cf extends Sn{priority=90;subPriority=1;parse(s,o,c){switch(o){case"d":return Ir(Wr_date,s);case"do":return c.ordinalNumber(s,{unit:"date"});default:return ui(o.length,s)}}validate(s,o){const m=wu(s.getFullYear()),M=s.getMonth();return m?o>=1&&o<=Sd[M]:o>=1&&o<=Id[M]}set(s,o,c){return s.setDate(c),s.setHours(0,0,0,0),s}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class Du extends Sn{priority=90;subpriority=1;parse(s,o,c){switch(o){case"D":case"DD":return Ir(Wr_dayOfYear,s);case"Do":return c.ordinalNumber(s,{unit:"date"});default:return ui(o.length,s)}}validate(s,o){return wu(s.getFullYear())?o>=1&&o<=366:o>=1&&o<=365}set(s,o,c){return s.setMonth(0,c),s.setHours(0,0,0,0),s}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class Od extends Sn{priority=90;parse(s,o,c){switch(o){case"E":case"EE":case"EEE":return c.day(s,{width:"abbreviated",context:"formatting"})||c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"});case"EEEEE":return c.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"});default:return c.day(s,{width:"wide",context:"formatting"})||c.day(s,{width:"abbreviated",context:"formatting"})||c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"})}}validate(s,o){return o>=0&&o<=6}set(s,o,c,m){return(s=Hc(s,c,m)).setHours(0,0,0,0),s}incompatibleTokens=["D","i","e","c","t","T"]},e:new class wf extends Sn{priority=90;parse(s,o,c,m){const M=R=>{const U=7*Math.floor((R-1)/7);return(R+m.weekStartsOn+6)%7+U};switch(o){case"e":case"ee":return Lr(ui(o.length,s),M);case"eo":return Lr(c.ordinalNumber(s,{unit:"day"}),M);case"eee":return c.day(s,{width:"abbreviated",context:"formatting"})||c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"});case"eeeee":return c.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"});default:return c.day(s,{width:"wide",context:"formatting"})||c.day(s,{width:"abbreviated",context:"formatting"})||c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"})}}validate(s,o){return o>=0&&o<=6}set(s,o,c,m){return(s=Hc(s,c,m)).setHours(0,0,0,0),s}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class Ad extends Sn{priority=90;parse(s,o,c,m){const M=R=>{const U=7*Math.floor((R-1)/7);return(R+m.weekStartsOn+6)%7+U};switch(o){case"c":case"cc":return Lr(ui(o.length,s),M);case"co":return Lr(c.ordinalNumber(s,{unit:"day"}),M);case"ccc":return c.day(s,{width:"abbreviated",context:"standalone"})||c.day(s,{width:"short",context:"standalone"})||c.day(s,{width:"narrow",context:"standalone"});case"ccccc":return c.day(s,{width:"narrow",context:"standalone"});case"cccccc":return c.day(s,{width:"short",context:"standalone"})||c.day(s,{width:"narrow",context:"standalone"});default:return c.day(s,{width:"wide",context:"standalone"})||c.day(s,{width:"abbreviated",context:"standalone"})||c.day(s,{width:"short",context:"standalone"})||c.day(s,{width:"narrow",context:"standalone"})}}validate(s,o){return o>=0&&o<=6}set(s,o,c,m){return(s=Hc(s,c,m)).setHours(0,0,0,0),s}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class jc extends Sn{priority=90;parse(s,o,c){const m=M=>0===M?7:M;switch(o){case"i":case"ii":return ui(o.length,s);case"io":return c.ordinalNumber(s,{unit:"day"});case"iii":return Lr(c.day(s,{width:"abbreviated",context:"formatting"})||c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"}),m);case"iiiii":return Lr(c.day(s,{width:"narrow",context:"formatting"}),m);case"iiiiii":return Lr(c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"}),m);default:return Lr(c.day(s,{width:"wide",context:"formatting"})||c.day(s,{width:"abbreviated",context:"formatting"})||c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"}),m)}}validate(s,o){return o>=1&&o<=7}set(s,o,c){return(s=function Sr(l,s){const o=(0,qr.a)(l),c=function Df(l){let o=(0,qr.a)(l).getDay();return 0===o&&(o=7),o}(o);return Wn(o,s-c)}(s,c)).setHours(0,0,0,0),s}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class as extends Sn{priority=80;parse(s,o,c){switch(o){case"a":case"aa":case"aaa":return c.dayPeriod(s,{width:"abbreviated",context:"formatting"})||c.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaaa":return c.dayPeriod(s,{width:"narrow",context:"formatting"});default:return c.dayPeriod(s,{width:"wide",context:"formatting"})||c.dayPeriod(s,{width:"abbreviated",context:"formatting"})||c.dayPeriod(s,{width:"narrow",context:"formatting"})}}set(s,o,c){return s.setHours(ba(c),0,0,0),s}incompatibleTokens=["b","B","H","k","t","T"]},b:new class Mf extends Sn{priority=80;parse(s,o,c){switch(o){case"b":case"bb":case"bbb":return c.dayPeriod(s,{width:"abbreviated",context:"formatting"})||c.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbbb":return c.dayPeriod(s,{width:"narrow",context:"formatting"});default:return c.dayPeriod(s,{width:"wide",context:"formatting"})||c.dayPeriod(s,{width:"abbreviated",context:"formatting"})||c.dayPeriod(s,{width:"narrow",context:"formatting"})}}set(s,o,c){return s.setHours(ba(c),0,0,0),s}incompatibleTokens=["a","B","H","k","t","T"]},B:new class Uc extends Sn{priority=80;parse(s,o,c){switch(o){case"B":case"BB":case"BBB":return c.dayPeriod(s,{width:"abbreviated",context:"formatting"})||c.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBBB":return c.dayPeriod(s,{width:"narrow",context:"formatting"});default:return c.dayPeriod(s,{width:"wide",context:"formatting"})||c.dayPeriod(s,{width:"abbreviated",context:"formatting"})||c.dayPeriod(s,{width:"narrow",context:"formatting"})}}set(s,o,c){return s.setHours(ba(c),0,0,0),s}incompatibleTokens=["a","b","t","T"]},h:new class rc extends Sn{priority=70;parse(s,o,c){switch(o){case"h":return Ir(Wr_hour12h,s);case"ho":return c.ordinalNumber(s,{unit:"hour"});default:return ui(o.length,s)}}validate(s,o){return o>=1&&o<=12}set(s,o,c){const m=s.getHours()>=12;return s.setHours(m&&c<12?c+12:m||12!==c?c:0,0,0,0),s}incompatibleTokens=["H","K","k","t","T"]},H:new class Es extends Sn{priority=70;parse(s,o,c){switch(o){case"H":return Ir(Wr_hour23h,s);case"Ho":return c.ordinalNumber(s,{unit:"hour"});default:return ui(o.length,s)}}validate(s,o){return o>=0&&o<=23}set(s,o,c){return s.setHours(c,0,0,0),s}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class Ef extends Sn{priority=70;parse(s,o,c){switch(o){case"K":return Ir(Wr_hour11h,s);case"Ko":return c.ordinalNumber(s,{unit:"hour"});default:return ui(o.length,s)}}validate(s,o){return o>=0&&o<=11}set(s,o,c){return s.getHours()>=12&&c<12?s.setHours(c+12,0,0,0):s.setHours(c,0,0,0),s}incompatibleTokens=["h","H","k","t","T"]},k:new class Mu extends Sn{priority=70;parse(s,o,c){switch(o){case"k":return Ir(Wr_hour24h,s);case"ko":return c.ordinalNumber(s,{unit:"hour"});default:return ui(o.length,s)}}validate(s,o){return o>=1&&o<=24}set(s,o,c){return s.setHours(c<=24?c%24:c,0,0,0),s}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class Tf extends Sn{priority=60;parse(s,o,c){switch(o){case"m":return Ir(Wr_minute,s);case"mo":return c.ordinalNumber(s,{unit:"minute"});default:return ui(o.length,s)}}validate(s,o){return o>=0&&o<=59}set(s,o,c){return s.setMinutes(c,0,0),s}incompatibleTokens=["t","T"]},s:new class Fo extends Sn{priority=50;parse(s,o,c){switch(o){case"s":return Ir(Wr_second,s);case"so":return c.ordinalNumber(s,{unit:"second"});default:return ui(o.length,s)}}validate(s,o){return o>=0&&o<=59}set(s,o,c){return s.setSeconds(c,0),s}incompatibleTokens=["t","T"]},S:new class kd extends Sn{priority=30;parse(s,o){return Lr(ui(o.length,s),m=>Math.trunc(m*Math.pow(10,3-o.length)))}set(s,o,c){return s.setMilliseconds(c),s}incompatibleTokens=["t","T"]},X:new class Nd extends Sn{priority=10;parse(s,o){switch(o){case"X":return $s(Us_basicOptionalMinutes,s);case"XX":return $s(Us_basic,s);case"XXXX":return $s(Us_basicOptionalSeconds,s);case"XXXXX":return $s(Us_extendedOptionalSeconds,s);default:return $s(Us_extended,s)}}set(s,o,c){return o.timestampIsSet?s:(0,jr.w)(s,s.getTime()-(0,Pd.G)(s)-c)}incompatibleTokens=["t","T","x"]},x:new class Eu extends Sn{priority=10;parse(s,o){switch(o){case"x":return $s(Us_basicOptionalMinutes,s);case"xx":return $s(Us_basic,s);case"xxxx":return $s(Us_basicOptionalSeconds,s);case"xxxxx":return $s(Us_extendedOptionalSeconds,s);default:return $s(Us_extended,s)}}set(s,o,c){return o.timestampIsSet?s:(0,jr.w)(s,s.getTime()-(0,Pd.G)(s)-c)}incompatibleTokens=["t","T","X"]},t:new class Tu extends Sn{priority=40;parse(s){return nc(s)}set(s,o,c){return[(0,jr.w)(s,1e3*c),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class $c extends Sn{priority=20;parse(s){return nc(s)}set(s,o,c){return[(0,jr.w)(s,c),{timestampIsSet:!0}]}incompatibleTokens="*"}},Iu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ka=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,un=/^'([^]*?)'?$/,Fd=/''/g,Rd=/\S/,If=/[a-zA-Z]/;function Of(l){return l.match(un)[1].replace(Fd,"'")}const xf=1948320,kf=[0,31,62,93,124,155,186,216,246,276,306,336];function ic(l,s,o){return function Nf(l){if(isNaN(l))return{jy:NaN,jm:NaN,jd:NaN};let s,o;const c=l-xf;let m=1+hr(33*c+3,12053);o=c-(365*(m-1)+hr(8*m+21,33)),o<0&&(m--,o=c-(365*(m-1)+hr(8*m+21,33))),s=o<216?hr(o,31):hr(o-6,30);const M=o-kf[s]+1;o++;return{jy:m,jm:s+1,jd:M}}(function Or(l,s,o){const[c,m]=sc(l,s);return hr(1461*((l=c)+4800+hr((s=m)-14,12)),4)+hr(367*(s-2-12*hr(s-14,12)),12)-hr(3*hr(l+4900+hr(s-14,12),100),4)+o-32075}(l,s,o))}function Su(l,s,o){return function Ff(l){if(isNaN(l))return{gy:NaN,gm:NaN,gd:NaN};let s=l+68569;const o=hr(4*s,146097);s-=hr(146097*o+3,4);const c=hr(4e3*(s+1),1461001);s=s-hr(1461*c,4)+31;const m=hr(80*s,2447),M=s-hr(2447*m,80);s=hr(m,11);return{gy:100*(o-49)+c+s,gm:m+2-12*s,gd:M}}(function Pf(l,s,o){const[c,m]=sc(l,s),M=(s=m)-1,U=(l=c,o);let ce=xf-1+365*(l-1)+hr(8*l+21,33);return 0!=M&&(ce+=kf[M]),ce+U}(l,s,o))}function sc(l,s){if((s-=1)<0){const o=s;s=function Ld(l,s){return oc(oc(l,s)+s,s)}(s,12),l-=hr(s-o,12)}return s>11&&(l+=hr(s,12),s=oc(s,12)),[l,s+1]}function hr(l,s){return~~(l/s)}function oc(l,s){return l-~~(l/s)*s}function Ou(...l){if(l.length>1){const[s,o,c=1,...m]=l,M=Su(s,o+1,c);return new Date(M.gy,M.gm-1,M.gd,...m)}return new Date(...l)}function Br(l,s){return l instanceof Date?new l.constructor(s):Ou(s)}function bn(l){const s=Object.prototype.toString.call(l);return l instanceof Date||"object"==typeof l&&"[object Date]"===s?new l.constructor(+l):Ou("number"==typeof l||"[object Number]"===s||"string"==typeof l||"[object String]"===s?l:NaN)}function ho(l){const s=l.getDate(),o=l.getMonth()+1;return ic(l.getFullYear(),o,s).jm-1}function hi(l){const s=l.getDate(),o=l.getMonth()+1;return ic(l.getFullYear(),o,s).jd}function ei(l){const s=l.getDate(),o=l.getMonth()+1;return ic(l.getFullYear(),o,s).jy}function Zi(l,...s){const o=l.getDate(),c=l.getMonth()+1,M=ic(l.getFullYear(),c,o),[R,U=M.jm-1,ce=M.jd]=s,me=Su(R,U+1,ce);return l.setFullYear(me.gy,me.gm-1,me.gd)}function Au(l){const s=bn(l),o=ei(s),c=ho(s),m=Br(l,0);return Zi(m,o,c+1,0),m.setHours(0,0,0,0),hi(m)}function fo(l,...s){const o=l.getDate(),c=l.getMonth()+1,M=ic(l.getFullYear(),c,o),[R,U=M.jd]=s,ce=Su(M.jy,R+1,U);return l.setFullYear(ce.gy,ce.gm-1,ce.gd)}function Gc(l,s){const o=bn(l),c=ei(o),m=hi(o),M=Br(l,0);Zi(M,c,s,15),M.setHours(0,0,0,0);const R=Au(M);return fo(o,s,Math.min(m,R)),o}function wa(l,...s){const o=l.getDate(),c=l.getMonth()+1,M=ic(l.getFullYear(),c,o),[R]=s,U=Su(M.jy,M.jm,R);return l.setFullYear(U.gy,U.gm-1,U.gd)}function sn(l,s){return(l<0?"-":"")+Math.abs(l).toString().padStart(s,"0")}function ku(l,s){const o=bn(l);if(isNaN(s))return Br(l,NaN);if(!s)return o;const c=hi(o),m=Br(l,o.getTime());return fo(m,ho(o)+s+1,0),c>=hi(m)?m:(Zi(o,ei(m),ho(m),c),o)}function Za(l,s){const o=bn(l);return isNaN(s)?Br(l,NaN):(s&&wa(o,hi(o)+s),o)}function Al(l){return l instanceof Date||"object"==typeof l&&"[object Date]"===Object.prototype.toString.call(l)}function zd(l){if(!Al(l)&&"number"!=typeof l)return!1;const s=bn(l);return!isNaN(Number(s))}const qa={lessThanXSeconds:{one:"\u06a9\u0645\u062a\u0631 \u0627\u0632 \u06cc\u06a9 \u062b\u0627\u0646\u06cc\u0647",other:"\u06a9\u0645\u062a\u0631 \u0627\u0632 {{count}} \u062b\u0627\u0646\u06cc\u0647"},xSeconds:{one:"1 \u062b\u0627\u0646\u06cc\u0647",other:"{{count}} \u062b\u0627\u0646\u06cc\u0647"},halfAMinute:"\u0646\u06cc\u0645 \u062f\u0642\u06cc\u0642\u0647",lessThanXMinutes:{one:"\u06a9\u0645\u062a\u0631 \u0627\u0632 \u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",other:"\u06a9\u0645\u062a\u0631 \u0627\u0632 {{count}} \u062f\u0642\u06cc\u0642\u0647"},xMinutes:{one:"1 \u062f\u0642\u06cc\u0642\u0647",other:"{{count}} \u062f\u0642\u06cc\u0642\u0647"},aboutXHours:{one:"\u062d\u062f\u0648\u062f 1 \u0633\u0627\u0639\u062a",other:"\u062d\u062f\u0648\u062f {{count}} \u0633\u0627\u0639\u062a"},xHours:{one:"1 \u0633\u0627\u0639\u062a",other:"{{count}} \u0633\u0627\u0639\u062a"},xDays:{one:"1 \u0631\u0648\u0632",other:"{{count}} \u0631\u0648\u0632"},aboutXWeeks:{one:"\u062d\u062f\u0648\u062f 1 \u0647\u0641\u062a\u0647",other:"\u062d\u062f\u0648\u062f {{count}} \u0647\u0641\u062a\u0647"},xWeeks:{one:"1 \u0647\u0641\u062a\u0647",other:"{{count}} \u0647\u0641\u062a\u0647"},aboutXMonths:{one:"\u062d\u062f\u0648\u062f 1 \u0645\u0627\u0647",other:"\u062d\u062f\u0648\u062f {{count}} \u0645\u0627\u0647"},xMonths:{one:"1 \u0645\u0627\u0647",other:"{{count}} \u0645\u0627\u0647"},aboutXYears:{one:"\u062d\u062f\u0648\u062f 1 \u0633\u0627\u0644",other:"\u062d\u062f\u0648\u062f {{count}} \u0633\u0627\u0644"},xYears:{one:"1 \u0633\u0627\u0644",other:"{{count}} \u0633\u0627\u0644"},overXYears:{one:"\u0628\u06cc\u0634\u062a\u0631 \u0627\u0632 1 \u0633\u0627\u0644",other:"\u0628\u06cc\u0634\u062a\u0631 \u0627\u0632 {{count}} \u0633\u0627\u0644"},almostXYears:{one:"\u0646\u0632\u062f\u06cc\u06a9 1 \u0633\u0627\u0644",other:"\u0646\u0632\u062f\u06cc\u06a9 {{count}} \u0633\u0627\u0644"}};function cc(l){return(s={})=>{const o=s.width?String(s.width):l.defaultWidth;return l.formats[o]||l.formats[l.defaultWidth]}}const ta={date:cc({formats:{full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:cc({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:cc({formats:{full:"{{date}} '\u062f\u0631' {{time}}",long:"{{date}} '\u062f\u0631' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},dc={lastWeek:"eeee '\u06af\u0630\u0634\u062a\u0647 \u062f\u0631' p",yesterday:"'\u062f\u06cc\u0631\u0648\u0632 \u062f\u0631' p",today:"'\u0627\u0645\u0631\u0648\u0632 \u062f\u0631' p",tomorrow:"'\u0641\u0631\u062f\u0627 \u062f\u0631' p",nextWeek:"eeee '\u062f\u0631' p",other:"P"};function Ja(l){return(s,o)=>{let m;if("formatting"===(o?.context?String(o.context):"standalone")&&l.formattingValues){const R=l.defaultFormattingWidth||l.defaultWidth,U=o?.width?String(o.width):R;m=l.formattingValues[U]||l.formattingValues[R]}else{const R=l.defaultWidth,U=o?.width?String(o.width):l.defaultWidth;m=l.values[U]||l.values[R]}return m[l.argumentCallback?l.argumentCallback(s):s]}}function Ea(l){return(s,o={})=>{const c=o.width,M=s.match(c&&l.matchPatterns[c]||l.matchPatterns[l.defaultMatchWidth]);if(!M)return null;const R=M[0],U=c&&l.parsePatterns[c]||l.parsePatterns[l.defaultParseWidth],ce=Array.isArray(U)?function Ru(l,s){for(let o=0;oqe.test(R)):function Wd(l,s){for(const o in l)if(Object.prototype.hasOwnProperty.call(l,o)&&s(l[o]))return o}(U,qe=>qe.test(R));let me;return me=l.valueCallback?l.valueCallback(ce):ce,me=o.valueCallback?o.valueCallback(me):me,{value:me,rest:s.slice(R.length)}}}const ae={code:"fa-IR",formatDistance:(l,s,o)=>{let c;const m=qa[l];return c="string"==typeof m?m:1===s?m.one:m.other.replace("{{count}}",s.toString()),o?.addSuffix?o.comparison&&o.comparison>0?"\u062f\u0631 "+c:c+" \u0642\u0628\u0644":c},formatLong:ta,formatRelative:(l,s,o,c)=>dc[l],localize:{ordinalNumber:(l,s)=>Number(l)+"-\u0627\u0645",era:Ja({values:{narrow:["\u0642","\u0628"],abbreviated:["\u0642.\u0647.","\u0628.\u0647."],wide:["\u0642\u0628\u0644 \u0627\u0632 \u0647\u062c\u0631\u062a","\u0628\u0639\u062f \u0627\u0632 \u0647\u062c\u0631\u062a"]},defaultWidth:"wide"}),quarter:Ja({values:{narrow:["1","2","3","4"],abbreviated:["\u0633\u200c\u06451","\u0633\u200c\u06452","\u0633\u200c\u06453","\u0633\u200c\u06454"],wide:["\u0633\u0647\u200c\u0645\u0627\u0647\u0647 1","\u0633\u0647\u200c\u0645\u0627\u0647\u0647 2","\u0633\u0647\u200c\u0645\u0627\u0647\u0647 3","\u0633\u0647\u200c\u0645\u0627\u0647\u0647 4"]},defaultWidth:"wide",argumentCallback:l=>l-1}),month:Ja({values:{narrow:["\u0641\u0631","\u0627\u0631","\u062e\u0631","\u062a\u06cc","\u0645\u0631","\u0634\u0647","\u0645\u0647","\u0622\u0628","\u0622\u0630","\u062f\u06cc","\u0628\u0647","\u0627\u0633"],abbreviated:["\u0641\u0631\u0648","\u0627\u0631\u062f","\u062e\u0631\u062f","\u062a\u06cc\u0631","\u0645\u0631\u062f","\u0634\u0647\u0631","\u0645\u0647\u0631","\u0622\u0628\u0627","\u0622\u0630\u0631","\u062f\u06cc","\u0628\u0647\u0645","\u0627\u0633\u0641"],wide:["\u0641\u0631\u0648\u0631\u062f\u06cc\u0646","\u0627\u0631\u062f\u06cc\u0628\u0647\u0634\u062a","\u062e\u0631\u062f\u0627\u062f","\u062a\u06cc\u0631","\u0645\u0631\u062f\u0627\u062f","\u0634\u0647\u0631\u06cc\u0648\u0631","\u0645\u0647\u0631","\u0622\u0628\u0627\u0646","\u0622\u0630\u0631","\u062f\u06cc","\u0628\u0647\u0645\u0646","\u0627\u0633\u0641\u0646\u062f"]},defaultWidth:"wide"}),day:Ja({values:{narrow:["\u06cc","\u062f","\u0633","\u0686","\u067e","\u062c","\u0634"],short:["1\u0634","2\u0634","3\u0634","4\u0634","5\u0634","\u062c","\u0634"],abbreviated:["\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647","\u062f\u0648\u0634\u0646\u0628\u0647","\u0633\u0647\u200c\u0634\u0646\u0628\u0647","\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647","\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647","\u062c\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"],wide:["\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647","\u062f\u0648\u0634\u0646\u0628\u0647","\u0633\u0647\u200c\u0634\u0646\u0628\u0647","\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647","\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647","\u062c\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"]},defaultWidth:"wide"}),dayPeriod:Ja({values:{narrow:{am:"\u0642",pm:"\u0628",midnight:"\u0646",noon:"\u0638",morning:"\u0635",afternoon:"\u0628.\u0638.",evening:"\u0639",night:"\u0634"},abbreviated:{am:"\u0642.\u0638.",pm:"\u0628.\u0638.",midnight:"\u0646\u06cc\u0645\u0647\u200c\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062d",afternoon:"\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"},wide:{am:"\u0642\u0628\u0644\u200c\u0627\u0632\u0638\u0647\u0631",pm:"\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631",midnight:"\u0646\u06cc\u0645\u0647\u200c\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062d",afternoon:"\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\u0642",pm:"\u0628",midnight:"\u0646",noon:"\u0638",morning:"\u0635",afternoon:"\u0628.\u0638.",evening:"\u0639",night:"\u0634"},abbreviated:{am:"\u0642.\u0638.",pm:"\u0628.\u0638.",midnight:"\u0646\u06cc\u0645\u0647\u200c\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062d",afternoon:"\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"},wide:{am:"\u0642\u0628\u0644\u200c\u0627\u0632\u0638\u0647\u0631",pm:"\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631",midnight:"\u0646\u06cc\u0645\u0647\u200c\u0634\u0628",noon:"\u0638\u0647\u0631",morning:"\u0635\u0628\u062d",afternoon:"\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631",evening:"\u0639\u0635\u0631",night:"\u0634\u0628"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function _m(l){return(s,o={})=>{const c=s.match(l.matchPattern);if(!c)return null;const m=c[0],M=s.match(l.parsePattern);if(!M)return null;let R=l.valueCallback?l.valueCallback(M[0]):M[0];return R=o.valueCallback?o.valueCallback(R):R,{value:R,rest:s.slice(m.length)}}}({matchPattern:/^(\d+)(-?\u0627\u0645)?/i,parsePattern:/\d+/i,valueCallback:l=>parseInt(l,10)}),era:Ea({matchPatterns:{narrow:/^(\u0642|\u0628)/i,abbreviated:/^(\u0642\.?\s?\u0647\.?|\u0628\.?\s?\u0647\.?|\u0647\.?)/i,wide:/^(\u0642\u0628\u0644 \u0627\u0632 \u0647\u062c\u0631\u062a|\u0647\u062c\u0631\u06cc \u0634\u0645\u0633\u06cc|\u0628\u0639\u062f \u0627\u0632 \u0647\u062c\u0631\u062a)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0642\u0628\u0644/i,/^\u0628\u0639\u062f/i]},defaultParseWidth:"any"}),quarter:Ea({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^(\u0641|Q|\u0633\u200c\u0645)[1234]/i,wide:/^(\u0641\u0635\u0644|quarter|\u0633\u0647\u200c\u0645\u0627\u0647\u0647) [1234](-\u0627\u0645|\u0627\u0645)?/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:l=>l+1}),month:Ea({matchPatterns:{narrow:/^(\u0641\u0631|\u0627\u0631|\u062e\u0631|\u062a\u06cc|\u0645\u0631|\u0634\u0647|\u0645\u0647|\u0622\u0628|\u0622\u0630|\u062f\u06cc|\u0628\u0647|\u0627\u0633)/i,abbreviated:/^(\u0641\u0631\u0648|\u0627\u0631\u062f|\u062e\u0631\u062f|\u062a\u06cc\u0631|\u0645\u0631\u062f|\u0634\u0647\u0631|\u0645\u0647\u0631|\u0622\u0628\u0627|\u0622\u0630\u0631|\u062f\u06cc|\u0628\u0647\u0645|\u0627\u0633\u0641)/i,wide:/^(\u0641\u0631\u0648\u0631\u062f\u06cc\u0646|\u0627\u0631\u062f\u06cc\u0628\u0647\u0634\u062a|\u062e\u0631\u062f\u0627\u062f|\u062a\u06cc\u0631|\u0645\u0631\u062f\u0627\u062f|\u0634\u0647\u0631\u06cc\u0648\u0631|\u0645\u0647\u0631|\u0622\u0628\u0627\u0646|\u0622\u0630\u0631|\u062f\u06cc|\u0628\u0647\u0645\u0646|\u0627\u0633\u0641\u0646\u062f)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0641\u0631/i,/^\u0627\u0631/i,/^\u062e\u0631/i,/^\u062a\u06cc/i,/^\u0645\u0631/i,/^\u0634\u0647/i,/^\u0645\u0647/i,/^\u0622\u0628/i,/^\u0622\u0630/i,/^\u062f\u06cc/i,/^\u0628\u0647/i,/^\u0627\u0633/i],any:[/^\u0641\u0631/i,/^\u0627\u0631/i,/^\u062e\u0631/i,/^\u062a\u06cc/i,/^\u0645\u0631/i,/^\u0634\u0647/i,/^\u0645\u0647/i,/^\u0622\u0628/i,/^\u0622\u0630/i,/^\u062f\u06cc/i,/^\u0628\u0647/i,/^\u0627\u0633/i]},defaultParseWidth:"any"}),day:Ea({matchPatterns:{narrow:/^[\u0634\u06cc\u062f\u0633\u0686\u067e\u062c]/i,short:/^(\u0634|\u062c|1\u0634|2\u0634|3\u0634|4\u0634|5\u0634)/i,abbreviated:/^(\u06cc\u06a9\u0634\u0646\u0628\u0647|\u062f\u0648\u0634\u0646\u0628\u0647|\u0633\u0647\u200c\u0634\u0646\u0628\u0647|\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647|\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647|\u062c\u0645\u0639\u0647|\u0634\u0646\u0628\u0647)/i,wide:/^(\u06cc\u06a9\u0634\u0646\u0628\u0647|\u062f\u0648\u0634\u0646\u0628\u0647|\u0633\u0647\u200c\u0634\u0646\u0628\u0647|\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647|\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647|\u062c\u0645\u0639\u0647|\u0634\u0646\u0628\u0647)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u06cc/i,/^\u062f\u0648/i,/^\u0633/i,/^\u0686/i,/^\u067e/i,/^\u062c/i,/^\u0634/i],any:[/^(\u06cc|1\u0634|\u06cc\u06a9\u0634\u0646\u0628\u0647)/i,/^(\u062f|2\u0634|\u062f\u0648\u0634\u0646\u0628\u0647)/i,/^(\u0633|3\u0634|\u0633\u0647\u200c\u0634\u0646\u0628\u0647)/i,/^(\u0686|4\u0634|\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647)/i,/^(\u067e|5\u0634|\u067e\u0646\u062c\u0634\u0646\u0628\u0647)/i,/^(\u062c|\u062c\u0645\u0639\u0647)/i,/^(\u0634|\u0634\u0646\u0628\u0647)/i]},defaultParseWidth:"any"}),dayPeriod:Ea({matchPatterns:{narrow:/^(\u0628|\u0642|\u0646|\u0638|\u0635|\u0628.\u0638.|\u0639|\u0634)/i,any:/^(\u0642.\u0638.|\u0628.\u0638.|\u0642\u0628\u0644\u200c\u0627\u0632\u0638\u0647\u0631|\u0646\u06cc\u0645\u0647\u200c\u0634\u0628|\u0638\u0647\u0631|\u0635\u0628\u062d|\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631|\u0639\u0635\u0631|\u0634\u0628)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(\u0642|\u0642.\u0638.|\u0642\u0628\u0644\u200c\u0627\u0632\u0638\u0647\u0631)/i,pm:/^(\u0628|\u0628.\u0638.|\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631)/i,midnight:/^(\u200c\u0646\u06cc\u0645\u0647\u200c\u0634\u0628|\u0646)/i,noon:/^(\u0638|\u0638\u0647\u0631)/i,morning:/^(\u0635|\u0635\u0628\u062d)/i,afternoon:/^(\u0628|\u0628.\u0638.|\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631)/i,evening:/^(\u0639|\u0639\u0635\u0631)/i,night:/^(\u0634|\u0634\u0628)/i}},defaultParseWidth:"any"})},options:{weekStartsOn:6,firstWeekContainsDate:1}};let Ue={};function nt(){return Ue}Math.pow(10,8);const fr=6048e5,Ar=36e5;function Gs(l){const s=bn(l);return s.setHours(0,0,0,0),s}function na(l){const s=bn(l),o=new Date(Date.UTC(s.getFullYear(),s.getMonth(),s.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()));return o.setUTCFullYear(s.getFullYear()),+l-+o}function ps(l,s){const o=nt(),c=s?.weekStartsOn??s?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??6,m=bn(l),M=m.getDay(),R=(M=m.getTime()?o+1:s.getTime()>=R.getTime()?o:o-1}function $f(l){const s=bn(l),o=+Is(s)-+function qd(l){const s=Qd(l),o=Br(l,0);return o.setFullYear(s,0,4),o.setHours(0,0,0,0),Is(o)}(s);return Math.round(o/fr)+1}function zu(l,s){const o=bn(l),c=ei(o),m=nt(),M=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??m.firstWeekContainsDate??m.locale?.options?.firstWeekContainsDate??1,R=Br(l,0);Zi(R,c+1,0,M),R.setHours(0,0,0,0);const U=ps(R,s),ce=Br(l,0);Zi(ce,c,0,M),ce.setHours(0,0,0,0);const me=ps(ce,s);return o.getTime()>=U.getTime()?c+1:o.getTime()>=me.getTime()?c:c-1}function Ys(l,s){const o=bn(l),c=+ps(o,s)-+function Wf(l,s){const o=nt(),c=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,m=zu(l,s),M=Br(l,0);return Zi(M,m,0,c),M.setHours(0,0,0,0),ps(M,s)}(o,s);return Math.round(c/fr)+1}const ra={y(l,s){const o=ei(l),c=o>0?o:1-o;return sn("yy"===s?c%100:c,s.length)},M(l,s){const o=ho(l);return"M"===s?String(o+1):sn(o+1,2)},d:(l,s)=>sn(hi(l),s.length),a(l,s){const o=l.getHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];default:return"am"===o?"a.m.":"p.m."}},h:(l,s)=>sn(l.getHours()%12||12,s.length),H:(l,s)=>sn(l.getHours(),s.length),m:(l,s)=>sn(l.getMinutes(),s.length),s:(l,s)=>sn(l.getSeconds(),s.length),S(l,s){const o=s.length,c=l.getMilliseconds();return sn(Math.trunc(c*Math.pow(10,o-3)),s.length)}},Ss={G:function(l,s,o){const c=ei(l)>0?1:0;switch(s){case"G":case"GG":case"GGG":return o.era(c,{width:"abbreviated"});case"GGGGG":return o.era(c,{width:"narrow"});default:return o.era(c,{width:"wide"})}},y:function(l,s,o){if("yo"===s){const c=ei(l);return o.ordinalNumber(c>0?c:1-c,{unit:"year"})}return ra.y(l,s)},Y:function(l,s,o,c){const m=zu(l,c),M=m>0?m:1-m;return"YY"===s?sn(M%100,2):"Yo"===s?o.ordinalNumber(M,{unit:"year"}):sn(M,s.length)},R:function(l,s){return sn(Qd(l),s.length)},u:function(l,s){return sn(ei(l),s.length)},Q:function(l,s,o){const c=Math.ceil((ho(l)+1)/3);switch(s){case"Q":return String(c);case"QQ":return sn(c,2);case"Qo":return o.ordinalNumber(c,{unit:"quarter"});case"QQQ":return o.quarter(c,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(c,{width:"narrow",context:"formatting"});default:return o.quarter(c,{width:"wide",context:"formatting"})}},q:function(l,s,o){const c=Math.ceil((ho(l)+1)/3);switch(s){case"q":return String(c);case"qq":return sn(c,2);case"qo":return o.ordinalNumber(c,{unit:"quarter"});case"qqq":return o.quarter(c,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(c,{width:"narrow",context:"standalone"});default:return o.quarter(c,{width:"wide",context:"standalone"})}},M:function(l,s,o){const c=ho(l);switch(s){case"M":case"MM":return ra.M(l,s);case"Mo":return o.ordinalNumber(c+1,{unit:"month"});case"MMM":return o.month(c,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(c,{width:"narrow",context:"formatting"});default:return o.month(c,{width:"wide",context:"formatting"})}},L:function(l,s,o){const c=ho(l);switch(s){case"L":return String(c+1);case"LL":return sn(c+1,2);case"Lo":return o.ordinalNumber(c+1,{unit:"month"});case"LLL":return o.month(c,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(c,{width:"narrow",context:"standalone"});default:return o.month(c,{width:"wide",context:"standalone"})}},w:function(l,s,o,c){const m=Ys(l,c);return"wo"===s?o.ordinalNumber(m,{unit:"week"}):sn(m,s.length)},I:function(l,s,o){const c=$f(l);return"Io"===s?o.ordinalNumber(c,{unit:"week"}):sn(c,s.length)},d:function(l,s,o){return"do"===s?o.ordinalNumber(hi(l),{unit:"date"}):ra.d(l,s)},D:function(l,s,o){const c=function tl(l){const s=bn(l);return function hc(l,s){const o=Gs(l),c=Gs(s),m=+o-na(o),M=+c-na(c);return Math.round((m-M)/864e5)}(s,function Hi(l){const s=bn(l),o=Br(l,0);return Zi(o,ei(s),0,1),o.setHours(0,0,0,0),o}(s))+1}(l);return"Do"===s?o.ordinalNumber(c,{unit:"dayOfYear"}):sn(c,s.length)},E:function(l,s,o){const c=l.getDay();switch(s){case"E":case"EE":case"EEE":return o.day(c,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(c,{width:"short",context:"formatting"});default:return o.day(c,{width:"wide",context:"formatting"})}},e:function(l,s,o,c){const m=l.getDay(),M=(m-c.weekStartsOn+8)%7||7;switch(s){case"e":return String(M);case"ee":return sn(M,2);case"eo":return o.ordinalNumber(M,{unit:"day"});case"eee":return o.day(m,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(m,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(m,{width:"short",context:"formatting"});default:return o.day(m,{width:"wide",context:"formatting"})}},c:function(l,s,o,c){const m=l.getDay(),M=(m-c.weekStartsOn+8)%7||7;switch(s){case"c":return String(M);case"cc":return sn(M,s.length);case"co":return o.ordinalNumber(M,{unit:"day"});case"ccc":return o.day(m,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(m,{width:"narrow",context:"standalone"});case"cccccc":return o.day(m,{width:"short",context:"standalone"});default:return o.day(m,{width:"wide",context:"standalone"})}},i:function(l,s,o){const c=l.getDay(),m=0===c?7:c;switch(s){case"i":return String(m);case"ii":return sn(m,s.length);case"io":return o.ordinalNumber(m,{unit:"day"});case"iii":return o.day(c,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(c,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(c,{width:"short",context:"formatting"});default:return o.day(c,{width:"wide",context:"formatting"})}},a:function(l,s,o){const m=l.getHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return o.dayPeriod(m,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(m,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(m,{width:"narrow",context:"formatting"});default:return o.dayPeriod(m,{width:"wide",context:"formatting"})}},b:function(l,s,o){const c=l.getHours();let m;switch(m=12===c?"noon":0===c?"midnight":c/12>=1?"pm":"am",s){case"b":case"bb":return o.dayPeriod(m,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(m,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(m,{width:"narrow",context:"formatting"});default:return o.dayPeriod(m,{width:"wide",context:"formatting"})}},B:function(l,s,o){const c=l.getHours();let m;switch(m=c>=17?"evening":c>=12?"afternoon":c>=4?"morning":"night",s){case"B":case"BB":case"BBB":return o.dayPeriod(m,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(m,{width:"narrow",context:"formatting"});default:return o.dayPeriod(m,{width:"wide",context:"formatting"})}},h:function(l,s,o){if("ho"===s){let c=l.getHours()%12;return 0===c&&(c=12),o.ordinalNumber(c,{unit:"hour"})}return ra.h(l,s)},H:function(l,s,o){return"Ho"===s?o.ordinalNumber(l.getHours(),{unit:"hour"}):ra.H(l,s)},K:function(l,s,o){const c=l.getHours()%12;return"Ko"===s?o.ordinalNumber(c,{unit:"hour"}):sn(c,s.length)},k:function(l,s,o){let c=l.getHours();return 0===c&&(c=24),"ko"===s?o.ordinalNumber(c,{unit:"hour"}):sn(c,s.length)},m:function(l,s,o){return"mo"===s?o.ordinalNumber(l.getMinutes(),{unit:"minute"}):ra.m(l,s)},s:function(l,s,o){return"so"===s?o.ordinalNumber(l.getSeconds(),{unit:"second"}):ra.s(l,s)},S:function(l,s){return ra.S(l,s)},X:function(l,s,o){const c=l.getTimezoneOffset();if(0===c)return"Z";switch(s){case"X":return Pl(c);case"XXXX":case"XX":return Ks(c);default:return Ks(c,":")}},x:function(l,s,o){const c=l.getTimezoneOffset();switch(s){case"x":return Pl(c);case"xxxx":case"xx":return Ks(c);default:return Ks(c,":")}},O:function(l,s,o){const c=l.getTimezoneOffset();switch(s){case"O":case"OO":case"OOO":return"GMT"+Hu(c,":");default:return"GMT"+Ks(c,":")}},z:function(l,s,o){const c=l.getTimezoneOffset();switch(s){case"z":case"zz":case"zzz":return"GMT"+Hu(c,":");default:return"GMT"+Ks(c,":")}},t:function(l,s,o){return sn(Math.trunc(l.getTime()/1e3),s.length)},T:function(l,s,o){return sn(l.getTime(),s.length)}};function Hu(l,s=""){const o=l>0?"-":"+",c=Math.abs(l),m=Math.trunc(c/60),M=c%60;return 0===M?o+String(m):o+String(m)+s+sn(M,2)}function Pl(l,s){return l%60==0?(l>0?"-":"+")+sn(Math.abs(l)/60,2):Ks(l,s)}function Ks(l,s=""){const o=l>0?"-":"+",c=Math.abs(l);return o+sn(Math.trunc(c/60),2)+s+sn(c%60,2)}const ju=(l,s)=>{switch(l){case"P":return s.date({width:"short"});case"PP":return s.date({width:"medium"});case"PPP":return s.date({width:"long"});default:return s.date({width:"full"})}},Gf=(l,s)=>{switch(l){case"p":return s.time({width:"short"});case"pp":return s.time({width:"medium"});case"ppp":return s.time({width:"long"});default:return s.time({width:"full"})}},qc={p:Gf,P:(l,s)=>{const o=l.match(/(P+)(p+)?/)||[],c=o[1],m=o[2];if(!m)return ju(l,s);let M;switch(c){case"P":M=s.dateTime({width:"short"});break;case"PP":M=s.dateTime({width:"medium"});break;case"PPP":M=s.dateTime({width:"long"});break;default:M=s.dateTime({width:"full"})}return M.replace("{{date}}",ju(c,s)).replace("{{time}}",Gf(m,s))}},Jd=/^D+$/,Yf=/^Y+$/,wm=["D","DD","YY","YYYY"];function zp(l){return Jd.test(l)}function Hp(l){return Yf.test(l)}function eh(l,s,o){const c=function Dm(l,s,o){const c="Y"===l[0]?"years":"days of the month";return`Use \`${l.toLowerCase()}\` instead of \`${l}\` (in \`${s}\`) for formatting ${c} to the input \`${o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(l,s,o);if(console.warn(c),wm.includes(l))throw new RangeError(c)}const Mm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xs=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Kf=/^'([^]*?)'?$/,jp=/''/g,Xf=/[a-zA-Z]/;function Uu(l){const s=l.match(Kf);return s?s[1].replace(jp,"'"):l}const th={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},$p=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Tm=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Wp=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $u(l){return l?parseInt(l):1}function Qf(l){return l&&parseFloat(l.replace(",","."))||0}const Xp=[31,null,31,30,31,30,31,31,30,31,30,31];function Wu(l){return l%400==0||l%4==0&&l%100!=0}class n1{subPriority=0;validate(s,o){return!0}}class km extends n1{constructor(s,o,c,m,M){super(),this.value=s,this.validateValue=o,this.setValue=c,this.priority=m,M&&(this.subPriority=M)}validate(s,o){return this.validateValue(s,this.value,o)}set(s,o,c){return this.setValue(s,o,this.value,c)}}class R6 extends n1{priority=10;subPriority=-1;set(s,o){return o.timestampIsSet?s:Br(s,function e1(l,s){const o=s instanceof Date?Br(s,0):new s(0);return Zi(o,ei(l),ho(l),hi(l)),o.setHours(l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds()),o}(s,Date))}}class Cr{run(s,o,c,m){const M=this.parse(s,o,c,m);return M?{setter:new km(M.value,this.validate,this.set,this.priority,this.subPriority),rest:M.rest}:null}validate(s,o,c){return!0}}const fi_month=/^(1[0-2]|0?\d)/,fi_date=/^(3[0-1]|[0-2]?\d)/,fi_dayOfYear=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,fi_week=/^(5[0-3]|[0-4]?\d)/,fi_hour23h=/^(2[0-3]|[0-1]?\d)/,fi_hour24h=/^(2[0-4]|[0-1]?\d)/,fi_hour11h=/^(1[0-1]|0?\d)/,fi_hour12h=/^(1[0-2]|0?\d)/,fi_minute=/^[0-5]?\d/,fi_second=/^[0-5]?\d/,fi_singleDigit=/^\d/,fi_twoDigits=/^\d{1,2}/,fi_threeDigits=/^\d{1,3}/,fi_fourDigits=/^\d{1,4}/,fi_anyDigitsSigned=/^-?\d+/,fi_singleDigitSigned=/^-?\d/,fi_twoDigitsSigned=/^-?\d{1,2}/,fi_threeDigitsSigned=/^-?\d{1,3}/,fi_fourDigitsSigned=/^-?\d{1,4}/,Ia_basicOptionalMinutes=/^([+-])(\d{2})(\d{2})?|Z/,Ia_basic=/^([+-])(\d{2})(\d{2})|Z/,Ia_basicOptionalSeconds=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Ia_extended=/^([+-])(\d{2}):(\d{2})|Z/,Ia_extendedOptionalSeconds=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function _i(l,s){return l&&{value:s(l.value),rest:l.rest}}function ni(l,s){const o=s.match(l);return o?{value:parseInt(o[0],10),rest:s.slice(o[0].length)}:null}function nl(l,s){const o=s.match(l);if(!o)return null;if("Z"===o[0])return{value:0,rest:s.slice(1)};const c="+"===o[1]?1:-1,m=o[2]?parseInt(o[2],10):0,M=o[3]?parseInt(o[3],10):0,R=o[5]?parseInt(o[5],10):0;return{value:c*(m*Ar+6e4*M+1e3*R),rest:s.slice(o[0].length)}}function o1(l){return ni(fi_anyDigitsSigned,l)}function bi(l,s){switch(l){case 1:return ni(fi_singleDigit,s);case 2:return ni(fi_twoDigits,s);case 3:return ni(fi_threeDigits,s);case 4:return ni(fi_fourDigits,s);default:return ni(new RegExp("^\\d{1,"+l+"}"),s)}}function nh(l,s){switch(l){case 1:return ni(fi_singleDigitSigned,s);case 2:return ni(fi_twoDigitsSigned,s);case 3:return ni(fi_threeDigitsSigned,s);case 4:return ni(fi_fourDigitsSigned,s);default:return ni(new RegExp("^-?\\d{1,"+l+"}"),s)}}function Zf(l){switch(l){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Pm(l,s){const o=s>0,c=o?s:1-s;let m;if(c<=50)m=l||100;else{const M=c+50;m=l+100*Math.trunc(M/100)-(l>=M%100?100:0)}return o?m:1-m}function Nm(l){return function s1(l){return function Nl(l){return function Ze(l){if(-3===l)return!1;const s=oc(25*l+11,33);return s<8&&s>=-1||s<=-27}(l)}(ei(bn(l)))}(Ou(l,0))}const o0=[31,31,31,31,31,31,30,30,30,30,30,29],Ku=[31,31,31,31,31,31,30,30,30,30,30,30];function a0(l,s,o){const c=nt(),m=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??c.weekStartsOn??c.locale?.options?.weekStartsOn??6,M=bn(l),R=M.getDay(),me=7-m;return Za(M,s<0||s>6?s-(R+me)%7:((s%7+7)%7+me)%7-(R+me)%7)}const ch={G:new class r1 extends Cr{priority=140;parse(s,o,c){switch(o){case"G":case"GG":case"GGG":return c.era(s,{width:"abbreviated"})||c.era(s,{width:"narrow"});case"GGGGG":return c.era(s,{width:"narrow"});default:return c.era(s,{width:"wide"})||c.era(s,{width:"abbreviated"})||c.era(s,{width:"narrow"})}}set(s,o,c){return o.era=c,Zi(s,c,0,1),s.setHours(0,0,0,0),s}incompatibleTokens=["R","u","t","T"]},y:new class rh extends Cr{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(s,o,c){const m=M=>({year:M,isTwoDigitYear:"yy"===o});switch(o){case"y":return _i(bi(4,s),m);case"yo":return _i(c.ordinalNumber(s,{unit:"year"}),m);default:return _i(bi(o.length,s),m)}}validate(s,o){return o.isTwoDigitYear||o.year>0}set(s,o,c){const m=ei(s);return c.isTwoDigitYear?(Zi(s,Pm(c.year,m),0,1),s.setHours(0,0,0,0),s):(Zi(s,"era"in o&&1!==o.era?1-c.year:c.year,0,1),s.setHours(0,0,0,0),s)}},Y:new class Fm extends Cr{priority=130;parse(s,o,c){const m=M=>({year:M,isTwoDigitYear:"YY"===o});switch(o){case"Y":return _i(bi(4,s),m);case"Yo":return _i(c.ordinalNumber(s,{unit:"year"}),m);default:return _i(bi(o.length,s),m)}}validate(s,o){return o.isTwoDigitYear||o.year>0}set(s,o,c,m){const M=zu(s,m);return c.isTwoDigitYear?(Zi(s,Pm(c.year,M),0,m.firstWeekContainsDate),s.setHours(0,0,0,0),ps(s,m)):(Zi(s,"era"in o&&1!==o.era?1-c.year:c.year,0,m.firstWeekContainsDate),s.setHours(0,0,0,0),ps(s,m))}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class qf extends Cr{priority=130;parse(s,o){return nh("R"===o?4:o.length,s)}set(s,o,c){const m=Br(s,0);return Zi(m,c,0,4),m.setHours(0,0,0,0),Is(m)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class Jf extends Cr{priority=130;parse(s,o){return nh("u"===o?4:o.length,s)}set(s,o,c){return Zi(s,c,0,1),s.setHours(0,0,0,0),s}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class Jc extends Cr{priority=120;parse(s,o,c){switch(o){case"Q":case"QQ":return bi(o.length,s);case"Qo":return c.ordinalNumber(s,{unit:"quarter"});case"QQQ":return c.quarter(s,{width:"abbreviated",context:"formatting"})||c.quarter(s,{width:"narrow",context:"formatting"});case"QQQQQ":return c.quarter(s,{width:"narrow",context:"formatting"});default:return c.quarter(s,{width:"wide",context:"formatting"})||c.quarter(s,{width:"abbreviated",context:"formatting"})||c.quarter(s,{width:"narrow",context:"formatting"})}}validate(s,o){return o>=1&&o<=4}set(s,o,c){return fo(s,3*(c-1),1),s.setHours(0,0,0,0),s}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class e0 extends Cr{priority=120;parse(s,o,c){switch(o){case"q":case"qq":return bi(o.length,s);case"qo":return c.ordinalNumber(s,{unit:"quarter"});case"qqq":return c.quarter(s,{width:"abbreviated",context:"standalone"})||c.quarter(s,{width:"narrow",context:"standalone"});case"qqqqq":return c.quarter(s,{width:"narrow",context:"standalone"});default:return c.quarter(s,{width:"wide",context:"standalone"})||c.quarter(s,{width:"abbreviated",context:"standalone"})||c.quarter(s,{width:"narrow",context:"standalone"})}}validate(s,o){return o>=1&&o<=4}set(s,o,c){return fo(s,3*(c-1),1),s.setHours(0,0,0,0),s}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class t0 extends Cr{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(s,o,c){const m=M=>M-1;switch(o){case"M":return _i(ni(fi_month,s),m);case"MM":return _i(bi(2,s),m);case"Mo":return _i(c.ordinalNumber(s,{unit:"month"}),m);case"MMM":return c.month(s,{width:"abbreviated",context:"formatting"})||c.month(s,{width:"narrow",context:"formatting"});case"MMMMM":return c.month(s,{width:"narrow",context:"formatting"});default:return c.month(s,{width:"wide",context:"formatting"})||c.month(s,{width:"abbreviated",context:"formatting"})||c.month(s,{width:"narrow",context:"formatting"})}}validate(s,o){return o>=0&&o<=11}set(s,o,c){return fo(s,c,1),s.setHours(0,0,0,0),s}},L:new class Gu extends Cr{priority=110;parse(s,o,c){const m=M=>M-1;switch(o){case"L":return _i(ni(fi_month,s),m);case"LL":return _i(bi(2,s),m);case"Lo":return _i(c.ordinalNumber(s,{unit:"month"}),m);case"LLL":return c.month(s,{width:"abbreviated",context:"standalone"})||c.month(s,{width:"narrow",context:"standalone"});case"LLLLL":return c.month(s,{width:"narrow",context:"standalone"});default:return c.month(s,{width:"wide",context:"standalone"})||c.month(s,{width:"abbreviated",context:"standalone"})||c.month(s,{width:"narrow",context:"standalone"})}}validate(s,o){return o>=0&&o<=11}set(s,o,c){return fo(s,c,1),s.setHours(0,0,0,0),s}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class n0 extends Cr{priority=100;parse(s,o,c){switch(o){case"w":return ni(fi_week,s);case"wo":return c.ordinalNumber(s,{unit:"week"});default:return bi(o.length,s)}}validate(s,o){return o>=1&&o<=53}set(s,o,c,m){return ps(function ih(l,s,o){const c=bn(l),m=Ys(c,o)-s;return wa(c,hi(c)-7*m),c}(s,c,m),m)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class B6 extends Cr{priority=100;parse(s,o,c){switch(o){case"I":return ni(fi_week,s);case"Io":return c.ordinalNumber(s,{unit:"week"});default:return bi(o.length,s)}}validate(s,o){return o>=1&&o<=53}set(s,o,c){return Is(function r0(l,s){const o=bn(l),c=$f(o)-s;return o.setDate(o.getDate()-7*c),o}(s,c))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class Rm extends Cr{priority=90;subPriority=1;parse(s,o,c){switch(o){case"d":return ni(fi_date,s);case"do":return c.ordinalNumber(s,{unit:"date"});default:return bi(o.length,s)}}validate(s,o){const m=Nm(ei(s)),M=ho(s);return m?o>=1&&o<=Ku[M]:o>=1&&o<=o0[M]}set(s,o,c){return wa(s,c),s.setHours(0,0,0,0),s}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class a1 extends Cr{priority=90;subpriority=1;parse(s,o,c){switch(o){case"D":case"DD":return ni(fi_dayOfYear,s);case"Do":return c.ordinalNumber(s,{unit:"date"});default:return bi(o.length,s)}}validate(s,o){return Nm(ei(s))?o>=1&&o<=366:o>=1&&o<=365}set(s,o,c){return fo(s,0,c),s.setHours(0,0,0,0),s}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class l0 extends Cr{priority=90;parse(s,o,c){switch(o){case"E":case"EE":case"EEE":return c.day(s,{width:"abbreviated",context:"formatting"})||c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"});case"EEEEE":return c.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"});default:return c.day(s,{width:"wide",context:"formatting"})||c.day(s,{width:"abbreviated",context:"formatting"})||c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"})}}validate(s,o){return o>=0&&o<=6}set(s,o,c,m){return(s=a0(s,c,m)).setHours(0,0,0,0),s}incompatibleTokens=["D","i","e","c","t","T"]},e:new class l1 extends Cr{priority=90;parse(s,o,c,m){const M=R=>{const U=7*Math.floor((R-1)/7);return(R+m.weekStartsOn+6+1)%7+U};switch(o){case"e":case"ee":return _i(bi(o.length,s),M);case"eo":return _i(c.ordinalNumber(s,{unit:"day"}),M);case"eee":return c.day(s,{width:"abbreviated",context:"formatting"})||c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"});case"eeeee":return c.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"});default:return c.day(s,{width:"wide",context:"formatting"})||c.day(s,{width:"abbreviated",context:"formatting"})||c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"})}}validate(s,o){return o>=0&&o<=6}set(s,o,c,m){return(s=a0(s,c,m)).setHours(0,0,0,0),s}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class Lm extends Cr{priority=90;parse(s,o,c,m){const M=R=>{const U=7*Math.floor((R-1)/7);return(R+m.weekStartsOn+6+1)%7+U};switch(o){case"c":case"cc":return _i(bi(o.length,s),M);case"co":return _i(c.ordinalNumber(s,{unit:"day"}),M);case"ccc":return c.day(s,{width:"abbreviated",context:"standalone"})||c.day(s,{width:"short",context:"standalone"})||c.day(s,{width:"narrow",context:"standalone"});case"ccccc":return c.day(s,{width:"narrow",context:"standalone"});case"cccccc":return c.day(s,{width:"short",context:"standalone"})||c.day(s,{width:"narrow",context:"standalone"});default:return c.day(s,{width:"wide",context:"standalone"})||c.day(s,{width:"abbreviated",context:"standalone"})||c.day(s,{width:"short",context:"standalone"})||c.day(s,{width:"narrow",context:"standalone"})}}validate(s,o){return o>=0&&o<=6}set(s,o,c,m){return(s=a0(s,c,m)).setHours(0,0,0,0),s}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class Vm extends Cr{priority=90;parse(s,o,c){const m=M=>0===M?7:M;switch(o){case"i":case"ii":return bi(o.length,s);case"io":return c.ordinalNumber(s,{unit:"day"});case"iii":return _i(c.day(s,{width:"abbreviated",context:"formatting"})||c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"}),m);case"iiiii":return _i(c.day(s,{width:"narrow",context:"formatting"}),m);case"iiiiii":return _i(c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"}),m);default:return _i(c.day(s,{width:"wide",context:"formatting"})||c.day(s,{width:"abbreviated",context:"formatting"})||c.day(s,{width:"short",context:"formatting"})||c.day(s,{width:"narrow",context:"formatting"}),m)}}validate(s,o){return o>=1&&o<=7}set(s,o,c){return(s=function c1(l,s){const o=bn(l),c=function Bm(l){let o=bn(l).getDay();return 0===o&&(o=7),o}(o);return Za(o,s-c)}(s,c)).setHours(0,0,0,0),s}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class z6 extends Cr{priority=80;parse(s,o,c){switch(o){case"a":case"aa":case"aaa":return c.dayPeriod(s,{width:"abbreviated",context:"formatting"})||c.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaaa":return c.dayPeriod(s,{width:"narrow",context:"formatting"});default:return c.dayPeriod(s,{width:"wide",context:"formatting"})||c.dayPeriod(s,{width:"abbreviated",context:"formatting"})||c.dayPeriod(s,{width:"narrow",context:"formatting"})}}set(s,o,c){return s.setHours(Zf(c),0,0,0),s}incompatibleTokens=["b","B","H","k","t","T"]},b:new class H6 extends Cr{priority=80;parse(s,o,c){switch(o){case"b":case"bb":case"bbb":return c.dayPeriod(s,{width:"abbreviated",context:"formatting"})||c.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbbb":return c.dayPeriod(s,{width:"narrow",context:"formatting"});default:return c.dayPeriod(s,{width:"wide",context:"formatting"})||c.dayPeriod(s,{width:"abbreviated",context:"formatting"})||c.dayPeriod(s,{width:"narrow",context:"formatting"})}}set(s,o,c){return s.setHours(Zf(c),0,0,0),s}incompatibleTokens=["a","B","H","k","t","T"]},B:new class Xu extends Cr{priority=80;parse(s,o,c){switch(o){case"B":case"BB":case"BBB":return c.dayPeriod(s,{width:"abbreviated",context:"formatting"})||c.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBBB":return c.dayPeriod(s,{width:"narrow",context:"formatting"});default:return c.dayPeriod(s,{width:"wide",context:"formatting"})||c.dayPeriod(s,{width:"abbreviated",context:"formatting"})||c.dayPeriod(s,{width:"narrow",context:"formatting"})}}set(s,o,c){return s.setHours(Zf(c),0,0,0),s}incompatibleTokens=["a","b","t","T"]},h:new class zm extends Cr{priority=70;parse(s,o,c){switch(o){case"h":return ni(fi_hour12h,s);case"ho":return c.ordinalNumber(s,{unit:"hour"});default:return bi(o.length,s)}}validate(s,o){return o>=1&&o<=12}set(s,o,c){const m=s.getHours()>=12;return s.setHours(m&&c<12?c+12:m||12!==c?c:0,0,0,0),s}incompatibleTokens=["H","K","k","t","T"]},H:new class oh extends Cr{priority=70;parse(s,o,c){switch(o){case"H":return ni(fi_hour23h,s);case"Ho":return c.ordinalNumber(s,{unit:"hour"});default:return bi(o.length,s)}}validate(s,o){return o>=0&&o<=23}set(s,o,c){return s.setHours(c,0,0,0),s}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class c0 extends Cr{priority=70;parse(s,o,c){switch(o){case"K":return ni(fi_hour11h,s);case"Ko":return c.ordinalNumber(s,{unit:"hour"});default:return bi(o.length,s)}}validate(s,o){return o>=0&&o<=11}set(s,o,c){return s.getHours()>=12&&c<12?s.setHours(c+12,0,0,0):s.setHours(c,0,0,0),s}incompatibleTokens=["h","H","k","t","T"]},k:new class Hm extends Cr{priority=70;parse(s,o,c){switch(o){case"k":return ni(fi_hour24h,s);case"ko":return c.ordinalNumber(s,{unit:"hour"});default:return bi(o.length,s)}}validate(s,o){return o>=1&&o<=24}set(s,o,c){return s.setHours(c<=24?c%24:c,0,0,0),s}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class d1 extends Cr{priority=60;parse(s,o,c){switch(o){case"m":return ni(fi_minute,s);case"mo":return c.ordinalNumber(s,{unit:"minute"});default:return bi(o.length,s)}}validate(s,o){return o>=0&&o<=59}set(s,o,c){return s.setMinutes(c,0,0),s}incompatibleTokens=["t","T"]},s:new class u0 extends Cr{priority=50;parse(s,o,c){switch(o){case"s":return ni(fi_second,s);case"so":return c.ordinalNumber(s,{unit:"second"});default:return bi(o.length,s)}}validate(s,o){return o>=0&&o<=59}set(s,o,c){return s.setSeconds(c,0),s}incompatibleTokens=["t","T"]},S:new class ah extends Cr{priority=30;parse(s,o){return _i(bi(o.length,s),m=>Math.trunc(m*Math.pow(10,3-o.length)))}set(s,o,c){return s.setMilliseconds(c),s}incompatibleTokens=["t","T"]},X:new class lh extends Cr{priority=10;parse(s,o){switch(o){case"X":return nl(Ia_basicOptionalMinutes,s);case"XX":return nl(Ia_basic,s);case"XXXX":return nl(Ia_basicOptionalSeconds,s);case"XXXXX":return nl(Ia_extendedOptionalSeconds,s);default:return nl(Ia_extended,s)}}set(s,o,c){return o.timestampIsSet?s:Br(s,s.getTime()-na(s)-c)}incompatibleTokens=["t","T","x"]},x:new class h1 extends Cr{priority=10;parse(s,o){switch(o){case"x":return nl(Ia_basicOptionalMinutes,s);case"xx":return nl(Ia_basic,s);case"xxxx":return nl(Ia_basicOptionalSeconds,s);case"xxxxx":return nl(Ia_extendedOptionalSeconds,s);default:return nl(Ia_extended,s)}}set(s,o,c){return o.timestampIsSet?s:Br(s,s.getTime()-na(s)-c)}incompatibleTokens=["t","T","X"]},t:new class f1 extends Cr{priority=40;parse(s){return o1(s)}set(s,o,c){return[Br(s,1e3*c),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class p1 extends Cr{priority=20;parse(s){return o1(s)}set(s,o,c){return[Br(s,c),{timestampIsSet:!0}]}incompatibleTokens="*"}},d0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jm=/^'([^]*?)'?$/,Um=/''/g,j6=/\S/,uh=/[a-zA-Z]/;function m1(l){return l.match(jm)[1].replace(Um,"'")}function f0(l,s){const o=Array(l);for(let c=0;c2)return s;if(/:/.test(o[0])?c=o[0]:(s.date=o[0],c=o[1],ur.timeZoneDelimiter.test(s.date)&&(s.date=l.split(ur.timeZoneDelimiter)[0],c=l.substr(s.date.length,l.length))),c){const m=ur.timezone.exec(c);m?(s.time=c.replace(m[1],""),s.timezone=m[1]):s.time=c}return s}(l);let m;if(c.date){const ce=function Ds(l,s){const o=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+s)+"})|(\\d{2}|[+-]\\d{"+(2+s)+"})$)"),c=l.match(o);if(!c)return{year:NaN,restDateString:""};const m=c[1]?parseInt(c[1]):null,M=c[2]?parseInt(c[2]):null;return{year:null===M?m:100*M,restDateString:l.slice((c[1]||c[2]).length)}}(c.date,o);m=function rn(l,s){if(null===s)return new Date(NaN);const o=l.match(Jr);if(!o)return new Date(NaN);const c=!!o[4],m=co(o[1]),M=co(o[2])-1,R=co(o[3]),U=co(o[4]),ce=co(o[5])-1;if(c)return function xo(l,s,o){return s>=1&&s<=53&&o>=0&&o<=6}(0,U,ce)?function Ao(l,s,o){const c=new Date(0);c.setUTCFullYear(l,0,4);const M=7*(s-1)+o+1-(c.getUTCDay()||7);return c.setUTCDate(c.getUTCDate()+M),c}(s,U,ce):new Date(NaN);{const me=new Date(0);return function El(l,s,o){return s>=0&&s<=11&&o>=1&&o<=(Ms[s]||(js(l)?29:28))}(s,M,R)&&function Tl(l,s){return s>=1&&s<=(js(l)?366:365)}(s,m)?(me.setUTCFullYear(s,M,Math.max(m,R)),me):new Date(NaN)}}(ce.restDateString,ce.year)}if(!m||isNaN(m.getTime()))return new Date(NaN);const M=m.getTime();let U,R=0;if(c.time&&(R=function Cu(l){const s=l.match(ws);if(!s)return NaN;const o=Oo(s[1]),c=Oo(s[2]),m=Oo(s[3]);return function ja(l,s,o){return 24===l?0===s&&0===o:o>=0&&o<60&&s>=0&&s<60&&l>=0&&l<25}(o,c,m)?o*zn.s0+c*zn.Cg+1e3*m:NaN}(c.time),isNaN(R)))return new Date(NaN);if(!c.timezone){const ce=new Date(M+R),me=new Date(0);return me.setFullYear(ce.getUTCFullYear(),ce.getUTCMonth(),ce.getUTCDate()),me.setHours(ce.getUTCHours(),ce.getUTCMinutes(),ce.getUTCSeconds(),ce.getUTCMilliseconds()),me}return U=function tr(l){if("Z"===l)return 0;const s=l.match(Er);if(!s)return 0;const o="+"===s[1]?-1:1,c=parseInt(s[2]),m=s[3]&&parseInt(s[3])||0;return function ya(l,s){return s>=0&&s<=59}(0,m)?o*(c*zn.s0+m*zn.Cg):NaN}(c.timezone),isNaN(U)?new Date(NaN):new Date(M+R+U)},parse:function Sf(l,s,o,c){const m=function Ua(){return Object.assign({},(0,Bc.q)())}(),M=c?.locale??m.locale??$a.c,R=c?.firstWeekContainsDate??c?.locale?.options?.firstWeekContainsDate??m.firstWeekContainsDate??m.locale?.options?.firstWeekContainsDate??1,U=c?.weekStartsOn??c?.locale?.options?.weekStartsOn??m.weekStartsOn??m.locale?.options?.weekStartsOn??0;if(""===s)return""===l?(0,qr.a)(o):(0,jr.w)(o,NaN);const ce={firstWeekContainsDate:R,weekStartsOn:U,locale:M},me=[new Il],je=s.match(Ka).map(rt=>{const _t=rt[0];return _t in uo.m?(0,uo.m[_t])(rt,M.formatLong):rt}).join("").match(Iu),qe=[];for(let rt of je){!c?.useAdditionalWeekYearTokens&&(0,Tr.xM)(rt)&&(0,Tr.Ss)(rt,s,l),!c?.useAdditionalDayOfYearTokens&&(0,Tr.ef)(rt)&&(0,Tr.Ss)(rt,s,l);const _t=rt[0],Jt=Wc[_t];if(Jt){const{incompatibleTokens:Bn}=Jt;if(Array.isArray(Bn)){const mr=qe.find(Ni=>Bn.includes(Ni.token)||Ni.token===_t);if(mr)throw new RangeError(`The format string mustn't contain \`${mr.fullToken}\` and \`${rt}\` at the same time`)}else if("*"===Jt.incompatibleTokens&&qe.length>0)throw new RangeError(`The format string mustn't contain \`${rt}\` and any other token at the same time`);qe.push({token:_t,fullToken:rt});const Jn=Jt.run(l,rt,M.match,ce);if(!Jn)return(0,jr.w)(o,NaN);me.push(Jn.setter),l=Jn.rest}else{if(_t.match(If))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_t+"`");if("''"===rt?rt="'":"'"===_t&&(rt=Of(rt)),0!==l.indexOf(rt))return(0,jr.w)(o,NaN);l=l.slice(rt.length)}}if(l.length>0&&Rd.test(l))return(0,jr.w)(o,NaN);const wt=me.map(rt=>rt.priority).sort((rt,_t)=>_t-rt).filter((rt,_t,Jt)=>Jt.indexOf(rt)===_t).map(rt=>me.filter(_t=>_t.priority===rt).sort((_t,Jt)=>Jt.subPriority-_t.subPriority)).map(rt=>rt[0]);let Tt=(0,qr.a)(o);if(isNaN(Tt.getTime()))return(0,jr.w)(o,NaN);const kt={};for(const rt of wt){if(!rt.validate(Tt,ce))return(0,jr.w)(o,NaN);const _t=rt.set(Tt,kt,ce);Array.isArray(_t)?(Tt=_t[0],Object.assign(kt,_t[1])):Tt=_t}return(0,jr.w)(o,Tt)},set:function Xa(l,s){let o=(0,qr.a)(l);return isNaN(+o)?(0,jr.w)(l,NaN):(null!=s.year&&o.setFullYear(s.year),null!=s.month&&(o=Hs(o,s.month)),null!=s.date&&o.setDate(s.date),null!=s.hours&&o.setHours(s.hours),null!=s.minutes&&o.setMinutes(s.minutes),null!=s.seconds&&o.setSeconds(s.seconds),null!=s.milliseconds&&o.setMilliseconds(s.milliseconds),o)}},jalali:{setMonth:Gc,setDate:function Yc(l,s){const o=bn(l);return wa(o,s),o},getMonth:function Rf(l){return ho(bn(l))},getYear:function Bf(l){return ei(bn(l))},getDate:function Kc(l){return hi(bn(l))},getDay:function ac(l){return bn(l).getDay()},getDaysInMonth:Au,formatISO:function Da(l,s){const o=bn(l);if(isNaN(o.getTime()))throw new RangeError("Invalid time value");const c=s?.format??"extended",m=s?.representation??"complete";let M="",R="";const U="extended"===c?"-":"",ce="extended"===c?":":"";if("time"!==m){const me=sn(o.getDate(),2),je=sn(o.getMonth()+1,2);M=`${sn(o.getFullYear(),4)}${U}${je}${U}${me}`}if("date"!==m){const me=o.getTimezoneOffset();if(0!==me){const rt=Math.abs(me);R=`${me<0?"+":"-"}${sn(Math.trunc(rt/60),2)}:${sn(rt%60,2)}`}else R="Z";M=`${M}${""===M?"":"T"}${[sn(o.getHours(),2),sn(o.getMinutes(),2),sn(o.getSeconds(),2)].join(ce)}${R}`}return M},addYears:function Vd(l,s){return ku(l,12*s)},addMonths:ku,addDays:Za,isValid:zd,isDate:Al,toDate:bn,format:function ms(l,s,o){const c=nt(),m=o?.locale??c.locale??ae,M=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,R=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??c.weekStartsOn??c.locale?.options?.weekStartsOn??6,U=bn(l);if(!zd(U))throw new RangeError("Invalid time value");let ce=s.match(Xs).map(je=>{const qe=je[0];return"p"===qe||"P"===qe?(0,qc[qe])(je,m.formatLong):je}).join("").match(Mm).map(je=>{if("''"===je)return{isToken:!1,value:"'"};const qe=je[0];if("'"===qe)return{isToken:!1,value:Uu(je)};if(Ss[qe])return{isToken:!0,value:je};if(qe.match(Xf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+qe+"`");return{isToken:!1,value:je}});m.localize.preprocessor&&(ce=m.localize.preprocessor(U,ce));const me={firstWeekContainsDate:M,weekStartsOn:R,locale:m};return ce.map(je=>{if(!je.isToken)return je.value;const qe=je.value;return(!o?.useAdditionalWeekYearTokens&&Hp(qe)||!o?.useAdditionalDayOfYearTokens&&zp(qe))&&eh(qe,s,String(l)),(0,Ss[qe[0]])(U,qe,m.localize,me)}).join("")},parseISO:function Up(l,s){const o=s?.additionalDigits??2,c=function Im(l){const s={},o=l.split(th.dateTimeDelimiter);let c;if(o.length>2)return s;if(/:/.test(o[0])?c=o[0]:(s.date=o[0],c=o[1],th.timeZoneDelimiter.test(s.date)&&(s.date=l.split(th.timeZoneDelimiter)[0],c=l.substr(s.date.length,l.length))),c){const m=th.timezone.exec(c);m?(s.time=c.replace(m[1],""),s.timezone=m[1]):s.time=c}return s}(l);let m;if(c.date){const ce=function Gp(l,s){const o=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+s)+"})|(\\d{2}|[+-]\\d{"+(2+s)+"})$)"),c=l.match(o);if(!c)return{year:NaN,restDateString:""};const m=c[1]?parseInt(c[1]):null,M=c[2]?parseInt(c[2]):null;return{year:null===M?m:100*M,restDateString:l.slice((c[1]||c[2]).length)}}(c.date,o);m=function Sm(l,s){if(null===s)return new Date(NaN);const o=l.match($p);if(!o)return new Date(NaN);const c=!!o[4],m=$u(o[1]),M=$u(o[2])-1,R=$u(o[3]),U=$u(o[4]),ce=$u(o[5])-1;if(c)return function qp(l,s,o){return s>=1&&s<=53&&o>=0&&o<=6}(0,U,ce)?function Kp(l,s,o){const c=new Date(0);c.setUTCFullYear(l,0,4);const M=7*(s-1)+o+1-(c.getUTCDay()||7);return c.setUTCDate(c.getUTCDate()+M),c}(s,U,ce):new Date(NaN);{const me=new Date(0);return function Qp(l,s,o){return s>=0&&s<=11&&o>=1&&o<=(Xp[s]||(Wu(l)?29:28))}(s,M,R)&&function Zp(l,s){return s>=1&&s<=(Wu(l)?366:365)}(s,m)?(me.setUTCFullYear(s,M,Math.max(m,R)),me):new Date(NaN)}}(ce.restDateString,ce.year)}if(!m||isNaN(m.getTime()))return new Date(NaN);const M=m.getTime();let U,R=0;if(c.time&&(R=function Om(l){const s=l.match(Tm);if(!s)return NaN;const o=Qf(s[1]),c=Qf(s[2]),m=Qf(s[3]);return function Jp(l,s,o){return 24===l?0===s&&0===o:o>=0&&o<60&&s>=0&&s<60&&l>=0&&l<25}(o,c,m)?o*Ar+6e4*c+1e3*m:NaN}(c.time),isNaN(R)))return new Date(NaN);if(!c.timezone){const ce=new Date(M+R),me=new Date(0);return me.setFullYear(ce.getUTCFullYear(),ce.getUTCMonth(),ce.getUTCDate()),me.setHours(ce.getUTCHours(),ce.getUTCMinutes(),ce.getUTCSeconds(),ce.getUTCMilliseconds()),me}return U=function Yp(l){if("Z"===l)return 0;const s=l.match(Wp);if(!s)return 0;const o="+"===s[1]?-1:1,c=parseInt(s[2]),m=s[3]&&parseInt(s[3])||0;return function Am(l,s){return s>=0&&s<=59}(0,m)?o*(c*Ar+6e4*m):NaN}(c.timezone),isNaN(U)?new Date(NaN):new Date(M+R+U)},parse:function h0(l,s,o,c){const m=function xm(){return Object.assign({},nt())}(),M=c?.locale??m.locale??ae,R=c?.firstWeekContainsDate??c?.locale?.options?.firstWeekContainsDate??m.firstWeekContainsDate??m.locale?.options?.firstWeekContainsDate??1,U=c?.weekStartsOn??c?.locale?.options?.weekStartsOn??m.weekStartsOn??m.locale?.options?.weekStartsOn??6;if(""===s)return""===l?bn(o):Br(o,NaN);const ce={firstWeekContainsDate:R,weekStartsOn:U,locale:M},me=[new R6],je=s.match(eu).map(rt=>{const _t=rt[0];return _t in qc?(0,qc[_t])(rt,M.formatLong):rt}).join("").match(d0),qe=[];for(let rt of je){!c?.useAdditionalWeekYearTokens&&Hp(rt)&&eh(rt,s,l),!c?.useAdditionalDayOfYearTokens&&zp(rt)&&eh(rt,s,l);const _t=rt[0],Jt=ch[_t];if(Jt){const{incompatibleTokens:Bn}=Jt;if(Array.isArray(Bn)){const mr=qe.find(Ni=>Bn.includes(Ni.token)||Ni.token===_t);if(mr)throw new RangeError(`The format string mustn't contain \`${mr.fullToken}\` and \`${rt}\` at the same time`)}else if("*"===Jt.incompatibleTokens&&qe.length>0)throw new RangeError(`The format string mustn't contain \`${rt}\` and any other token at the same time`);qe.push({token:_t,fullToken:rt});const Jn=Jt.run(l,rt,M.match,ce);if(!Jn)return Br(o,NaN);me.push(Jn.setter),l=Jn.rest}else{if(_t.match(uh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_t+"`");if("''"===rt?rt="'":"'"===_t&&(rt=m1(rt)),0!==l.indexOf(rt))return Br(o,NaN);l=l.slice(rt.length)}}if(l.length>0&&j6.test(l))return Br(o,NaN);const wt=me.map(rt=>rt.priority).sort((rt,_t)=>_t-rt).filter((rt,_t,Jt)=>Jt.indexOf(rt)===_t).map(rt=>me.filter(_t=>_t.priority===rt).sort((_t,Jt)=>Jt.subPriority-_t.subPriority)).map(rt=>rt[0]);let Tt=bn(o);if(isNaN(Tt.getTime()))return Br(o,NaN);const kt={};for(const rt of wt){if(!rt.validate(Tt,ce))return Br(o,NaN);const _t=rt.set(Tt,kt,ce);Array.isArray(_t)?(Tt=_t[0],Object.assign(kt,_t[1])):Tt=_t}return Br(o,Tt)},set:function g1(l,s){let o=bn(l);return isNaN(+o)?Br(l,NaN):(null!=s.year&&Zi(o,s.year),null!=s.month&&(o=Gc(o,s.month)),null!=s.date&&wa(o,s.date),null!=s.hours&&o.setHours(s.hours),null!=s.minutes&&o.setMinutes(s.minutes),null!=s.seconds&&o.setSeconds(s.seconds),null!=s.milliseconds&&o.setMilliseconds(s.milliseconds),o)}}},Wm={long:"LLLL",short:"LLL",narrow:"LLLLL"},Gm={long:"EEEE",short:"EEE",narrow:"EEEEE"};let Ym=(()=>{class l extends Io.MJ{constructor(o){super(),this._calendarType="gregorian",this.setLocale(o)}setLocale(o=$a.c){"en-US"===o&&(o=$a.c),"fa-IR"===o.code?(o=ae,this._calendarType="jalali"):this._calendarType="gregorian",super.setLocale(o)}getYear(o){return qi[this._calendarType].getYear(o)}getMonth(o){return qi[this._calendarType].getMonth(o)}getDate(o){return qi[this._calendarType].getDate(o)}getDayOfWeek(o){return qi[this._calendarType].getDay(o)}getMonthNames(o){const c=Wm[o];return f0(12,m=>this.format(qi[this._calendarType].setMonth(this.today(),m),c))}getDateNames(){const o=typeof Intl<"u"?new Intl.DateTimeFormat(this.locale.code,{day:"numeric"}):null;return f0(31,c=>{let m;return m=this.createDate("jalali"===this._calendarType?1402:2017,0,c+1),o?o.format(m).replace(/[\u200e\u200f]/g,""):this.format(m,"d")})}getDayOfWeekNames(o){const c=Gm[o];return f0(7,m=>this.format(new Date(2017,0,m+1),c))}getYearName(o){return this.format(o,"y")}getFirstDayOfWeek(){return this.locale.options?.weekStartsOn??0}getNumDaysInMonth(o){return qi[this._calendarType].getDaysInMonth(o)}clone(o){return qi[this._calendarType].toDate(o)}createDate(o,c,m){if(c<0||c>11)throw Error(`Invalid month index "${c}". Month index has to be between 0 and 11.`);if(m<1)throw Error(`Invalid date "${m}". Date has to be greater than 0.`);const M=qi[this._calendarType].set(new Date,{year:o,month:c,date:m,hours:0,minutes:0,seconds:0,milliseconds:0});if(this.getMonth(M)!=c)throw Error(`Invalid date "${m}" for month with index "${c}".`);return M}today(){return new Date}parse(o,c){if("string"==typeof o&&o.length>0){const m=qi[this._calendarType].parseISO(o);if(this.isValid(m))return m;const M=Array.isArray(c)?c:[c];if(!c.length)throw Error("Formats array must not be empty.");for(const R of M){const U=qi[this._calendarType].parse(o,R,new Date,{locale:this.locale});if(this.isValid(U))return U}return this.invalid()}return"number"==typeof o?new Date(o):o instanceof Date?this.clone(o):null}format(o,c){if(!this.isValid(o))throw Error("DateFnsAdapter: Cannot format invalid date.");return"fa-IR"==this.locale.code&&"LLL"===c&&(c="LLLL"),"fa-IR"==this.locale.code&&"LLL uuuu"===c&&(c="LLLL uuuu"),qi[this._calendarType].format(o,c,{locale:this.locale})}addCalendarYears(o,c){return qi[this._calendarType].addYears(o,c)}addCalendarMonths(o,c){return qi[this._calendarType].addMonths(o,c)}addCalendarDays(o,c){return qi[this._calendarType].addDays(o,c)}toIso8601(o){return qi[this._calendarType].formatISO(o,{representation:"date"})}deserialize(o){if("string"==typeof o){if(!o)return null;const c=qi[this._calendarType].parseISO(o);if(this.isValid(c))return c}return super.deserialize(o)}isDateInstance(o){return qi[this._calendarType].isDate(o)}isValid(o){return qi[this._calendarType].isValid(o)}invalid(){return new Date(NaN)}static#e=this.\u0275fac=function(c){return new(c||l)(g.KVO(Io.Ju,8))};static#t=this.\u0275prov=g.jDH({token:l,factory:l.\u0275fac})}return l})();const rl={parse:{dateInput:"P"},display:{dateInput:"P",monthYearLabel:"LLL uuuu",dateA11yLabel:"PP",monthYearA11yLabel:"LLLL uuuu"}};function Km(l=rl){return[{provide:Io.MJ,useClass:Ym,deps:[Io.Ju]},{provide:Io.de,useValue:l}]}const w0={cibCcAmex:["32 32",""],cibCcApplePay:["32 32",""],cibCcMastercard:["32 32",""],cibCcPaypal:["32 32",""],cibCcStripe:["32 32",""],cibCcVisa:["32 32",""],cibFacebook:["32 32",""],cibGoogle:["32 32",""],cibLinkedin:["32 32",""],cibSkype:["32 32",""],cibTwitter:["32 32",""],cifBr:["301 211",""],cifEs:["301 201",""],cifFr:["301 201",""],cifIn:["301 201",""],cifPl:["301 189",""],cifUs:["300 159",""],cilAlignCenter:["512 512",""],cilAlignLeft:["512 512",""],cilAlignRight:["512 512",""],cilApplicationsSettings:["512 512",""],cilArrowBottom:["512 512",""],cilArrowRight:["512 512",""],cilArrowTop:["512 512",""],cilBasket:["512 512",""],cilBell:["512 512",""],cilBold:["512 512",""],cilBookmark:["512 512",""],cilCalculator:["512 512",""],cilCalendar:["512 512",""],cilChart:["512 512",""],cilChartPie:["512 512",""],cilCheck:["512 512",""],cilChevronLeft:["512 512",""],cilChevronRight:["512 512",""],cilCloudDownload:["512 512",""],cilCode:["512 512",""],cilCommentSquare:["512 512",""],cilCreditCard:["512 512",""],cilCursor:["512 512",""],cilDescription:["512 512",""],cilDollar:["512 512",""],cilDrop:["512 512",""],cilEnvelopeClosed:["512 512",""],cilEnvelopeOpen:["512 512",""],cilFile:["512 512",""],cilHome:["512 512",""],cilInbox:["512 512",""],cilIndentDecrease:["512 512",""],cilIndentIncrease:["512 512",""],cilItalic:["512 512",""],cilJustifyCenter:["512 512",""],cilLayers:["512 512",""],cilList:["512 512",""],cilListNumbered:["512 512",""],cilLocationPin:["512 512",""],cilLockLocked:["512 512",""],cilMagnifyingGlass:["512 512",""],cilMap:["512 512",""],cilMediaPlay:["512 512",""],cilMenu:["512 512",""],cilMoon:["512 512",""],cilNotes:["512 512",""],cilOptions:["512 512",""],cilPaperclip:["512 512",""],cilPaperPlane:["512 512",""],cilPen:["512 512",""],cilPencil:["512 512",""],cilPeople:["512 512",""],cilPrint:["512 512",""],cilPuzzle:["512 512",""],cilReportSlash:["512 512",""],cilSave:["512 512",""],cilSettings:["512 512",""],cilShare:["512 512",""],cilShareAll:["512 512",""],cilShareBoxed:["512 512",""],cilSpeech:["512 512",""],cilSpeedometer:["512 512",""],cilSpreadsheet:["512 512",""],cilStar:["512 512",""],cilSun:["512 512",""],cilTags:["512 512",""],cilTask:["512 512",""],cilTrash:["512 512",""],cilUnderline:["512 512",""],cilUser:["512 512",""],cilUserFemale:["512 512",""],cilUserFollow:["512 512",""],cilUserUnfollow:["512 512",""],cilExitToApp:["512 512",""]};let ru=(()=>{class l{constructor(o,c,m){this.router=o,this.titleService=c,this.iconSetService=m,this.title="MikroWizard , Mikrotik router managent system",c.setTitle(this.title),m.icons={...w0}}ngOnInit(){this.router.events.subscribe(o=>{})}static#e=this.\u0275fac=function(c){return new(c||l)(g.rXU(dr.Ix),g.rXU(r.hE),g.rXU(sr.Rv))};static#t=this.\u0275cmp=g.VBU({type:l,selectors:[["app-root"]],decls:1,vars:0,template:function(c,m){1&c&&g.nrm(0,"router-outlet")},dependencies:[dr.n3],encapsulation:2})}return l})();var D0=D(7170);const M0=()=>{};let Ju={},ed={},B1=null,V1={mark:M0,measure:M0};try{typeof window<"u"&&(Ju=window),typeof document<"u"&&(ed=document),typeof MutationObserver<"u"&&(B1=MutationObserver),typeof performance<"u"&&(V1=performance)}catch{}const{userAgent:E0=""}=Ju.navigator||{},Rl=Ju,ri=ed,z1=B1,td=V1,Lo=!!ri.documentElement&&!!ri.head&&"function"==typeof ri.addEventListener&&"function"==typeof ri.createElement,vh=~E0.indexOf("MSIE")||~E0.indexOf("Trident/");var ai="classic",H1="duotone",Os="sharp",Qs="sharp-duotone",mc=[ai,H1,Os,Qs],nd={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},S0=[1,2,3,4,5,6,7,8,9,10],O0=S0.concat([11,12,13,14,15,16,17,18,19,20]),sl={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Y1=[...Object.keys({classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",sl.GROUP,sl.SWAP_OPACITY,sl.PRIMARY,sl.SECONDARY].concat(S0.map(l=>"".concat(l,"x"))).concat(O0.map(l=>"w-".concat(l)));const ol="___FONT_AWESOME___",k0=16,K1="fa",P0="svg-inline--fa",Ll="data-fa-i2svg",Dn="data-fa-pseudo-element",X1="data-fa-pseudo-element-pending",bh="data-prefix",Bl="data-icon",N0="fontawesome-i2svg",Q1="async",xg=["HTML","HEAD","STYLE","SCRIPT"],id=(()=>{try{return!0}catch{return!1}})(),gc=[ai,Os,Qs];function vc(l){return new Proxy(l,{get:(s,o)=>o in s?s[o]:s[ai]})}const iu={...nd};iu[ai]={...nd[ai],fak:"kit","fa-kit":"kit",fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};const Vl=vc(iu),sd={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}};sd[ai]={...sd[ai],kit:"fak","kit-duotone":"fakd"};const yc=vc(sd),od={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}};od[ai]={...od[ai],fak:"fa-kit"};const zl=vc(od),ad={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}};ad[ai]={...ad[ai],"fa-kit":"fak"};const kg=vc(ad),Pg=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,Z1="fa-layers-text",q1=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Fg=(vc({classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}}),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),F0=sl,_c=new Set;Object.keys(yc[ai]).map(_c.add.bind(_c)),Object.keys(yc[Os]).map(_c.add.bind(_c)),Object.keys(yc[Qs]).map(_c.add.bind(_c));const J1=["kit",...Y1],ld=Rl.FontAwesomeConfig||{};ri&&"function"==typeof ri.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(s=>{let[o,c]=s;const m=function Zs(l){return""===l||"false"!==l&&("true"===l||l)}(function Rg(l){var s=ri.querySelector("script["+l+"]");if(s)return s.getAttribute(l)}(o));null!=m&&(ld[c]=m)});const e2={styleDefault:"solid",familyDefault:"classic",cssPrefix:K1,replacementClass:P0,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ld.familyPrefix&&(ld.cssPrefix=ld.familyPrefix);const su={...e2,...ld};su.autoReplaceSvg||(su.observeMutations=!1);const $t={};Object.keys(e2).forEach(l=>{Object.defineProperty($t,l,{enumerable:!0,set:function(s){su[l]=s,bc.forEach(o=>o($t))},get:function(){return su[l]}})}),Object.defineProperty($t,"familyPrefix",{enumerable:!0,set:function(l){su.cssPrefix=l,bc.forEach(s=>s($t))},get:function(){return su.cssPrefix}}),Rl.FontAwesomeConfig=$t;const bc=[],Hl=k0,Sa={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},n2="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function cd(){let l=12,s="";for(;l-- >0;)s+=n2[62*Math.random()|0];return s}function ou(l){const s=[];for(let o=(l||[]).length>>>0;o--;)s[o]=l[o];return s}function ud(l){return l.classList?ou(l.classList):(l.getAttribute("class")||"").split(" ").filter(s=>s)}function r2(l){return"".concat(l).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Ch(l){return Object.keys(l||{}).reduce((s,o)=>s+"".concat(o,": ").concat(l[o].trim(),";"),"")}function R0(l){return l.size!==Sa.size||l.x!==Sa.x||l.y!==Sa.y||l.rotate!==Sa.rotate||l.flipX||l.flipY}var L0=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function s2(){const l=K1,s=P0,o=$t.cssPrefix,c=$t.replacementClass;let m=L0;if(o!==l||c!==s){const M=new RegExp("\\.".concat(l,"\\-"),"g"),R=new RegExp("\\--".concat(l,"\\-"),"g"),U=new RegExp("\\.".concat(s),"g");m=m.replace(M,".".concat(o,"-")).replace(R,"--".concat(o,"-")).replace(U,".".concat(c))}return m}let o2=!1;function wh(){$t.autoAddCss&&!o2&&(function Lg(l){if(!l||!Lo)return;const s=ri.createElement("style");s.setAttribute("type","text/css"),s.innerHTML=l;const o=ri.head.childNodes;let c=null;for(let m=o.length-1;m>-1;m--){const M=o[m],R=(M.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(R)>-1&&(c=M)}ri.head.insertBefore(s,c)}(s2()),o2=!0)}var a2={mixout:()=>({dom:{css:s2,insertCss:wh}}),hooks:()=>({beforeDOMElementCreation(){wh()},beforeI2svg(){wh()}})};const Bo=Rl||{};Bo[ol]||(Bo[ol]={}),Bo[ol].styles||(Bo[ol].styles={}),Bo[ol].hooks||(Bo[ol].hooks={}),Bo[ol].shims||(Bo[ol].shims=[]);var Vo=Bo[ol];const zg=[],B0=function(){ri.removeEventListener("DOMContentLoaded",B0),dd=1,zg.map(l=>l())};let dd=!1;function jl(l){const{tag:s,attributes:o={},children:c=[]}=l;return"string"==typeof l?r2(l):"<".concat(s," ").concat(function Bg(l){return Object.keys(l||{}).reduce((s,o)=>s+"".concat(o,'="').concat(r2(l[o]),'" '),"").trim()}(o),">").concat(c.map(jl).join(""),"")}function Dh(l,s,o){if(l&&l[s]&&l[s][o])return{prefix:s,iconName:o,icon:l[s][o]}}Lo&&(dd=(ri.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ri.readyState),dd||ri.addEventListener("DOMContentLoaded",B0));var V0=function(s,o,c,m){var ce,me,je,M=Object.keys(s),R=M.length,U=void 0!==m?function(s,o){return function(c,m,M,R){return s.call(o,c,m,M,R)}}(o,m):o;for(void 0===c?(ce=1,je=s[M[0]]):(ce=0,je=c);ce=55296&&m<=56319&&o{const c=l[o];return c.icon?s[c.iconName]=c.icon:s[o]=c,s},{})}function Mh(l,s){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:c=!1}=o,m=au(s);"function"!=typeof Vo.hooks.addPack||c?Vo.styles[l]={...Vo.styles[l]||{},...m}:Vo.hooks.addPack(l,au(s)),"fas"===l&&Mh("fa",s)}const{styles:zo,shims:fd}=Vo,z0={[ai]:Object.values(zl[ai]),[Os]:Object.values(zl[Os]),[Qs]:Object.values(zl[Qs])};let Cc=null,H0={},j0={},c2={},u2={},d2={};const Ug={[ai]:Object.keys(Vl[ai]),[Os]:Object.keys(Vl[Os]),[Qs]:Object.keys(Vl[Qs])};const f2=()=>{const l=c=>V0(zo,(m,M,R)=>(m[R]=V0(M,c,{}),m),{});H0=l((c,m,M)=>(m[3]&&(c[m[3]]=M),m[2]&&m[2].filter(U=>"number"==typeof U).forEach(U=>{c[U.toString(16)]=M}),c)),j0=l((c,m,M)=>(c[M]=M,m[2]&&m[2].filter(U=>"string"==typeof U).forEach(U=>{c[U]=M}),c)),d2=l((c,m,M)=>{const R=m[2];return c[M]=M,R.forEach(U=>{c[U]=M}),c});const s="far"in zo||$t.autoFetchSvg,o=V0(fd,(c,m)=>{const M=m[0];let R=m[1];const U=m[2];return"far"===R&&!s&&(R="fas"),"string"==typeof M&&(c.names[M]={prefix:R,iconName:U}),"number"==typeof M&&(c.unicodes[M.toString(16)]={prefix:R,iconName:U}),c},{names:{},unicodes:{}});c2=o.names,u2=o.unicodes,Cc=lu($t.styleDefault,{family:$t.familyDefault})};function p2(l,s){return(H0[l]||{})[s]}function Ul(l,s){return(d2[l]||{})[s]}function U0(l){return c2[l]||{prefix:null,iconName:null}}function $l(){return Cc}(function t2(l){bc.push(l)})(l=>{Cc=lu(l.styleDefault,{family:$t.familyDefault})}),f2();const Th=()=>({prefix:null,iconName:null,rest:[]});function lu(l){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:o=ai}=s;return yc[o][l]||yc[o][Vl[o][l]]||(l in Vo.styles?l:null)||null}const m2={[ai]:Object.keys(zl[ai]),[Os]:Object.keys(zl[Os]),[Qs]:Object.keys(zl[Qs])};function Wl(l){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:o=!1}=s,c={[ai]:"".concat($t.cssPrefix,"-").concat(ai),[Os]:"".concat($t.cssPrefix,"-").concat(Os),[Qs]:"".concat($t.cssPrefix,"-").concat(Qs)};let m=null,M=ai;const R=mc.filter(ce=>ce!==H1);R.forEach(ce=>{(l.includes(c[ce])||l.some(me=>m2[ce].includes(me)))&&(M=ce)});const U=l.reduce((ce,me)=>{const je=function Eh(l,s){const o=s.split("-"),c=o[0],m=o.slice(1).join("-");return c!==l||""===m||function h2(l){return~J1.indexOf(l)}(m)?null:m}($t.cssPrefix,me);if(zo[me]?(me=z0[M].includes(me)?kg[M][me]:me,m=me,ce.prefix=me):Ug[M].indexOf(me)>-1?(m=me,ce.prefix=lu(me,{family:M})):je?ce.iconName=je:me!==$t.replacementClass&&!R.some(qe=>me===c[qe])&&ce.rest.push(me),!o&&ce.prefix&&ce.iconName){const qe="fa"===m?U0(ce.iconName):{},wt=Ul(ce.prefix,ce.iconName);qe.prefix&&(m=null),ce.iconName=qe.iconName||wt||ce.iconName,ce.prefix=qe.prefix||ce.prefix,"far"===ce.prefix&&!zo.far&&zo.fas&&!$t.autoFetchSvg&&(ce.prefix="fas")}return ce},Th());return(l.includes("fa-brands")||l.includes("fab"))&&(U.prefix="fab"),(l.includes("fa-duotone")||l.includes("fad"))&&(U.prefix="fad"),!U.prefix&&M===Os&&(zo.fass||$t.autoFetchSvg)&&(U.prefix="fass",U.iconName=Ul(U.prefix,U.iconName)||U.iconName),!U.prefix&&M===Qs&&(zo.fasds||$t.autoFetchSvg)&&(U.prefix="fasds",U.iconName=Ul(U.prefix,U.iconName)||U.iconName),("fa"===U.prefix||"fa"===m)&&(U.prefix=$l()||"fas"),U}let cu=[],uu={};const du={},Gg=Object.keys(du);function md(l,s){for(var o=arguments.length,c=new Array(o>2?o-2:0),m=2;m{s=R.apply(null,[s,...c])}),s}function wc(l){for(var s=arguments.length,o=new Array(s>1?s-1:0),c=1;c{M.apply(null,o)})}function Dc(){const l=arguments[0],s=Array.prototype.slice.call(arguments,1);return du[l]?du[l].apply(null,s):void 0}function g2(l){"fa"===l.prefix&&(l.prefix="fas");let{iconName:s}=l;const o=l.prefix||$l();if(s)return s=Ul(o,s)||s,Dh(v2.definitions,o,s)||Dh(Vo.styles,o,s)}const v2=new class pd{constructor(){this.definitions={}}add(){for(var s=arguments.length,o=new Array(s),c=0;c{this.definitions[M]={...this.definitions[M]||{},...m[M]},Mh(M,m[M]);const R=zl[ai][M];R&&Mh(R,m[M]),f2()})}reset(){this.definitions={}}_pullDefinitions(s,o){const c=o.prefix&&o.iconName&&o.icon?{0:o}:o;return Object.keys(c).map(m=>{const{prefix:M,iconName:R,icon:U}=c[m],ce=U[2];s[M]||(s[M]={}),ce.length>0&&ce.forEach(me=>{"string"==typeof me&&(s[M][me]=U)}),s[M][R]=U}),s}},Ho={noAuto:()=>{$t.autoReplaceSvg=!1,$t.observeMutations=!1,wc("noAuto")},config:$t,dom:{i2svg:function(){let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Lo?(wc("beforeI2svg",l),Dc("pseudoElements2svg",l),Dc("i2svg",l)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:s}=l;!1===$t.autoReplaceSvg&&($t.autoReplaceSvg=!0),$t.observeMutations=!0,function l2(l){Lo&&(dd?setTimeout(l,0):zg.push(l))}(()=>{Yg({autoReplaceSvgRoot:s}),wc("watch",l)})}},parse:{icon:l=>{if(null===l)return null;if("object"==typeof l&&l.prefix&&l.iconName)return{prefix:l.prefix,iconName:Ul(l.prefix,l.iconName)||l.iconName};if(Array.isArray(l)&&2===l.length){const s=0===l[1].indexOf("fa-")?l[1].slice(3):l[1],o=lu(l[0]);return{prefix:o,iconName:Ul(o,s)||s}}if("string"==typeof l&&(l.indexOf("".concat($t.cssPrefix,"-"))>-1||l.match(Pg))){const s=Wl(l.split(" "),{skipLookups:!0});return{prefix:s.prefix||$l(),iconName:Ul(s.prefix,s.iconName)||s.iconName}}if("string"==typeof l){const s=$l();return{prefix:s,iconName:Ul(s,l)||l}}}},library:v2,findIconDefinition:g2,toHtml:jl},Yg=function(){let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:s=ri}=l;(Object.keys(Vo.styles).length>0||$t.autoFetchSvg)&&Lo&&$t.autoReplaceSvg&&Ho.dom.i2svg({node:s})};function Sh(l,s){return Object.defineProperty(l,"abstract",{get:s}),Object.defineProperty(l,"html",{get:function(){return l.abstract.map(o=>jl(o))}}),Object.defineProperty(l,"node",{get:function(){if(!Lo)return;const o=ri.createElement("div");return o.innerHTML=l.html,o.children}}),l}function Mc(l){const{icons:{main:s,mask:o},prefix:c,iconName:m,transform:M,symbol:R,title:U,maskId:ce,titleId:me,extra:je,watchable:qe=!1}=l,{width:wt,height:Tt}=o.found?o:s,kt="fak"===c,rt=[$t.replacementClass,m?"".concat($t.cssPrefix,"-").concat(m):""].filter(Ni=>-1===je.classes.indexOf(Ni)).filter(Ni=>""!==Ni||!!Ni).concat(je.classes).join(" ");let _t={children:[],attributes:{...je.attributes,"data-prefix":c,"data-icon":m,class:rt,role:je.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(wt," ").concat(Tt)}};const Jt=kt&&!~je.classes.indexOf("fa-fw")?{width:"".concat(wt/Tt*16*.0625,"em")}:{};qe&&(_t.attributes[Ll]=""),U&&(_t.children.push({tag:"title",attributes:{id:_t.attributes["aria-labelledby"]||"title-".concat(me||cd())},children:[U]}),delete _t.attributes.title);const Bn={..._t,prefix:c,iconName:m,main:s,mask:o,maskId:ce,transform:M,symbol:R,styles:{...Jt,...je.styles}},{children:Jn,attributes:mr}=o.found&&s.found?Dc("generateAbstractMask",Bn)||{children:[],attributes:{}}:Dc("generateAbstractIcon",Bn)||{children:[],attributes:{}};return Bn.children=Jn,Bn.attributes=mr,R?function $0(l){let{prefix:s,iconName:o,children:c,attributes:m,symbol:M}=l;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...m,id:!0===M?"".concat(s,"-").concat($t.cssPrefix,"-").concat(o):M},children:c}]}]}(Bn):function Kg(l){let{children:s,main:o,mask:c,attributes:m,styles:M,transform:R}=l;if(R0(R)&&o.found&&!c.found){const{width:U,height:ce}=o,me={x:U/ce/2,y:.5};m.style=Ch({...M,"transform-origin":"".concat(me.x+R.x/16,"em ").concat(me.y+R.y/16,"em")})}return[{tag:"svg",attributes:m,children:s}]}(Bn)}function Oh(l){const{content:s,width:o,height:c,transform:m,title:M,extra:R,watchable:U=!1}=l,ce={...R.attributes,...M?{title:M}:{},class:R.classes.join(" ")};U&&(ce[Ll]="");const me={...R.styles};R0(m)&&(me.transform=function Oa(l){let{transform:s,width:o=k0,height:c=k0,startCentered:m=!1}=l,M="";return M+=m&&vh?"translate(".concat(s.x/Hl-o/2,"em, ").concat(s.y/Hl-c/2,"em) "):m?"translate(calc(-50% + ".concat(s.x/Hl,"em), calc(-50% + ").concat(s.y/Hl,"em)) "):"translate(".concat(s.x/Hl,"em, ").concat(s.y/Hl,"em) "),M+="scale(".concat(s.size/Hl*(s.flipX?-1:1),", ").concat(s.size/Hl*(s.flipY?-1:1),") "),M+="rotate(".concat(s.rotate,"deg) "),M}({transform:m,startCentered:!0,width:o,height:c}),me["-webkit-transform"]=me.transform);const je=Ch(me);je.length>0&&(ce.style=je);const qe=[];return qe.push({tag:"span",attributes:ce,children:[s]}),M&&qe.push({tag:"span",attributes:{class:"sr-only"},children:[M]}),qe}const{styles:xh}=Vo;function Ec(l){const s=l[0],o=l[1],[c]=l.slice(4);let m=null;return m=Array.isArray(c)?{tag:"g",attributes:{class:"".concat($t.cssPrefix,"-").concat(F0.GROUP)},children:[{tag:"path",attributes:{class:"".concat($t.cssPrefix,"-").concat(F0.SECONDARY),fill:"currentColor",d:c[0]}},{tag:"path",attributes:{class:"".concat($t.cssPrefix,"-").concat(F0.PRIMARY),fill:"currentColor",d:c[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:c}},{found:!0,width:s,height:o,icon:m}}const y2={found:!1,width:512,height:512};function Tc(l,s){let o=s;return"fa"===s&&null!==$t.styleDefault&&(s=$l()),new Promise((c,m)=>{if("fa"===o){const M=U0(l)||{};l=M.iconName||l,s=M.prefix||s}if(l&&s&&xh[s]&&xh[s][l])return c(Ec(xh[s][l]));(function Xg(l,s){!id&&!$t.showMissingIcons&&l&&console.error('Icon with name "'.concat(l,'" and prefix "').concat(s,'" is missing.'))})(l,s),c({...y2,icon:$t.showMissingIcons&&l&&Dc("missingIconAbstract")||{}})})}const W0=()=>{},G0=$t.measurePerformance&&td&&td.mark&&td.measure?td:{mark:W0,measure:W0},hu='FA "6.6.0"',gd=l=>{G0.mark("".concat(hu," ").concat(l," ends")),G0.measure("".concat(hu," ").concat(l),"".concat(hu," ").concat(l," begins"),"".concat(hu," ").concat(l," ends"))};var Y0={begin:l=>(G0.mark("".concat(hu," ").concat(l," begins")),()=>gd(l)),end:gd};const kh=()=>{};function _2(l){return"string"==typeof(l.getAttribute?l.getAttribute(Ll):null)}function vd(l){return ri.createElementNS("http://www.w3.org/2000/svg",l)}function Jg(l){return ri.createElement(l)}function yd(l){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:o=("svg"===l.tag?vd:Jg)}=s;if("string"==typeof l)return ri.createTextNode(l);const c=o(l.tag);return Object.keys(l.attributes||[]).forEach(function(M){c.setAttribute(M,l.attributes[M])}),(l.children||[]).forEach(function(M){c.appendChild(yd(M,{ceFn:o}))}),c}const X0={replace:function(l){const s=l[0];if(s.parentNode)if(l[1].forEach(o=>{s.parentNode.insertBefore(yd(o),s)}),null===s.getAttribute(Ll)&&$t.keepOriginalSource){let o=ri.createComment(function Ph(l){let s=" ".concat(l.outerHTML," ");return s="".concat(s,"Font Awesome fontawesome.com "),s}(s));s.parentNode.replaceChild(o,s)}else s.remove()},nest:function(l){const s=l[0],o=l[1];if(~ud(s).indexOf($t.replacementClass))return X0.replace(l);const c=new RegExp("".concat($t.cssPrefix,"-.*"));if(delete o[0].attributes.id,o[0].attributes.class){const M=o[0].attributes.class.split(" ").reduce((R,U)=>(U===$t.replacementClass||U.match(c)?R.toSvg.push(U):R.toNode.push(U),R),{toNode:[],toSvg:[]});o[0].attributes.class=M.toSvg.join(" "),0===M.toNode.length?s.removeAttribute("class"):s.setAttribute("class",M.toNode.join(" "))}const m=o.map(M=>jl(M)).join("\n");s.setAttribute(Ll,""),s.innerHTML=m}};function b2(l){l()}function C2(l,s){const o="function"==typeof s?s:kh;if(0===l.length)o();else{let c=b2;$t.mutateApproach===Q1&&(c=Rl.requestAnimationFrame||b2),c(()=>{const m=function K0(){return!0===$t.autoReplaceSvg?X0.replace:X0[$t.autoReplaceSvg]||X0.replace}(),M=Y0.begin("mutate");l.map(m),M(),o()})}}let _d=!1;function w2(){_d=!0}function Nh(){_d=!1}let Fh=null;function D2(l){if(!z1||!$t.observeMutations)return;const{treeCallback:s=kh,nodeCallback:o=kh,pseudoElementsCallback:c=kh,observeMutationsRoot:m=ri}=l;Fh=new z1(M=>{if(_d)return;const R=$l();ou(M).forEach(U=>{if("childList"===U.type&&U.addedNodes.length>0&&!_2(U.addedNodes[0])&&($t.searchPseudoElements&&c(U.target),s(U.target)),"attributes"===U.type&&U.target.parentNode&&$t.searchPseudoElements&&c(U.target.parentNode),"attributes"===U.type&&_2(U.target)&&~Fg.indexOf(U.attributeName))if("class"===U.attributeName&&function Zg(l){const s=l.getAttribute?l.getAttribute(bh):null,o=l.getAttribute?l.getAttribute(Bl):null;return s&&o}(U.target)){const{prefix:ce,iconName:me}=Wl(ud(U.target));U.target.setAttribute(bh,ce||R),me&&U.target.setAttribute(Bl,me)}else(function qg(l){return l&&l.classList&&l.classList.contains&&l.classList.contains($t.replacementClass)})(U.target)&&o(U.target)})}),Lo&&Fh.observe(m,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function E2(l){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:o,prefix:c,rest:m}=function t4(l){const s=l.getAttribute("data-prefix"),o=l.getAttribute("data-icon"),c=void 0!==l.innerText?l.innerText.trim():"";let m=Wl(ud(l));return m.prefix||(m.prefix=$l()),s&&o&&(m.prefix=s,m.iconName=o),m.iconName&&m.prefix||(m.prefix&&c.length>0&&(m.iconName=function $g(l,s){return(j0[l]||{})[s]}(m.prefix,l.innerText)||p2(m.prefix,hd(l.innerText))),!m.iconName&&$t.autoFetchSvg&&l.firstChild&&l.firstChild.nodeType===Node.TEXT_NODE&&(m.iconName=l.firstChild.data)),m}(l),M=function fu(l){const s=ou(l.attributes).reduce((m,M)=>("class"!==m.name&&"style"!==m.name&&(m[M.name]=M.value),m),{}),o=l.getAttribute("title"),c=l.getAttribute("data-fa-title-id");return $t.autoA11y&&(o?s["aria-labelledby"]="".concat($t.replacementClass,"-title-").concat(c||cd()):(s["aria-hidden"]="true",s.focusable="false")),s}(l),R=md("parseNodeAttributes",{},l);let U=s.styleParser?function e4(l){const s=l.getAttribute("style");let o=[];return s&&(o=s.split(";").reduce((c,m)=>{const M=m.split(":"),R=M[0],U=M.slice(1);return R&&U.length>0&&(c[R]=U.join(":").trim()),c},{})),o}(l):[];return{iconName:o,title:l.getAttribute("title"),titleId:l.getAttribute("data-fa-title-id"),prefix:c,transform:Sa,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:m,styles:U,attributes:M},...R}}const{styles:T2}=Vo;function I2(l){const s="nest"===$t.autoReplaceSvg?E2(l,{styleParser:!1}):E2(l);return~s.extra.classes.indexOf(Z1)?Dc("generateLayersText",l,s):Dc("generateSvgReplacementMutation",l,s)}let sa=new Set;function n4(l){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Lo)return Promise.resolve();const o=ri.documentElement.classList,c=je=>o.add("".concat(N0,"-").concat(je)),m=je=>o.remove("".concat(N0,"-").concat(je)),M=$t.autoFetchSvg?sa:gc.map(je=>"fa-".concat(je)).concat(Object.keys(T2));M.includes("fa")||M.push("fa");const R=[".".concat(Z1,":not([").concat(Ll,"])")].concat(M.map(je=>".".concat(je,":not([").concat(Ll,"])"))).join(", ");if(0===R.length)return Promise.resolve();let U=[];try{U=ou(l.querySelectorAll(R))}catch{}if(!(U.length>0))return Promise.resolve();c("pending"),m("complete");const ce=Y0.begin("onTree"),me=U.reduce((je,qe)=>{try{const wt=I2(qe);wt&&je.push(wt)}catch(wt){id||"MissingIcon"===wt.name&&console.error(wt)}return je},[]);return new Promise((je,qe)=>{Promise.all(me).then(wt=>{C2(wt,()=>{c("active"),c("complete"),m("pending"),"function"==typeof s&&s(),ce(),je()})}).catch(wt=>{ce(),qe(wt)})})}function r4(l){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;I2(l).then(o=>{o&&C2([o],s)})}gc.map(l=>{sa.add("fa-".concat(l))}),Object.keys(Vl[ai]).map(sa.add.bind(sa)),Object.keys(Vl[Os]).map(sa.add.bind(sa)),Object.keys(Vl[Qs]).map(sa.add.bind(sa)),sa=[...sa];const S2=function(l){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:o=Sa,symbol:c=!1,mask:m=null,maskId:M=null,title:R=null,titleId:U=null,classes:ce=[],attributes:me={},styles:je={}}=s;if(!l)return;const{prefix:qe,iconName:wt,icon:Tt}=l;return Sh({type:"icon",...l},()=>(wc("beforeDOMElementCreation",{iconDefinition:l,params:s}),$t.autoA11y&&(R?me["aria-labelledby"]="".concat($t.replacementClass,"-title-").concat(U||cd()):(me["aria-hidden"]="true",me.focusable="false")),Mc({icons:{main:Ec(Tt),mask:m?Ec(m.icon):{found:!1,width:null,height:null,icon:{}}},prefix:qe,iconName:wt,transform:{...Sa,...o},symbol:c,title:R,maskId:M,titleId:U,extra:{attributes:me,styles:je,classes:ce}})))};var i4={mixout(){return{icon:(l=S2,function(s){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const c=(s||{}).icon?s:g2(s||{});let{mask:m}=o;return m&&(m=(m||{}).icon?m:g2(m||{})),l(c,{...o,mask:m})})};var l},hooks:()=>({mutationObserverCallbacks:l=>(l.treeCallback=n4,l.nodeCallback=r4,l)}),provides(l){l.i2svg=function(s){const{node:o=ri,callback:c=(()=>{})}=s;return n4(o,c)},l.generateSvgReplacementMutation=function(s,o){const{iconName:c,title:m,titleId:M,prefix:R,transform:U,symbol:ce,mask:me,maskId:je,extra:qe}=o;return new Promise((wt,Tt)=>{Promise.all([Tc(c,R),me.iconName?Tc(me.iconName,me.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(kt=>{let[rt,_t]=kt;wt([s,Mc({icons:{main:rt,mask:_t},prefix:R,iconName:c,transform:U,symbol:ce,maskId:je,title:m,titleId:M,extra:qe,watchable:!0})])}).catch(Tt)})},l.generateAbstractIcon=function(s){let{children:o,attributes:c,main:m,transform:M,styles:R}=s;const U=Ch(R);let ce;return U.length>0&&(c.style=U),R0(M)&&(ce=Dc("generateAbstractTransformGrouping",{main:m,transform:M,containerWidth:m.width,iconWidth:m.width})),o.push(ce||m.icon),{children:o,attributes:c}}}},s4={mixout:()=>({layer(l){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:o=[]}=s;return Sh({type:"layer"},()=>{wc("beforeDOMElementCreation",{assembler:l,params:s});let c=[];return l(m=>{Array.isArray(m)?m.map(M=>{c=c.concat(M.abstract)}):c=c.concat(m.abstract)}),[{tag:"span",attributes:{class:["".concat($t.cssPrefix,"-layers"),...o].join(" ")},children:c}]})}})},o4={mixout:()=>({counter(l){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:o=null,classes:c=[],attributes:m={},styles:M={}}=s;return Sh({type:"counter",content:l},()=>(wc("beforeDOMElementCreation",{content:l,params:s}),function Ah(l){const{content:s,title:o,extra:c}=l,m={...c.attributes,...o?{title:o}:{},class:c.classes.join(" ")},M=Ch(c.styles);M.length>0&&(m.style=M);const R=[];return R.push({tag:"span",attributes:m,children:[s]}),o&&R.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),R}({content:l.toString(),title:o,extra:{attributes:m,styles:M,classes:["".concat($t.cssPrefix,"-layers-counter"),...c]}})))}})},Q0={mixout:()=>({text(l){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:o=Sa,title:c=null,classes:m=[],attributes:M={},styles:R={}}=s;return Sh({type:"text",content:l},()=>(wc("beforeDOMElementCreation",{content:l,params:s}),Oh({content:l,transform:{...Sa,...o},title:c,extra:{attributes:M,styles:R,classes:["".concat($t.cssPrefix,"-layers-text"),...m]}})))}}),provides(l){l.generateLayersText=function(s,o){const{title:c,transform:m,extra:M}=o;let R=null,U=null;if(vh){const ce=parseInt(getComputedStyle(s).fontSize,10),me=s.getBoundingClientRect();R=me.width/ce,U=me.height/ce}return $t.autoA11y&&!c&&(M.attributes["aria-hidden"]="true"),Promise.resolve([s,Oh({content:s.innerHTML,width:R,height:U,transform:m,title:c,extra:M,watchable:!0})])}}};const hv=new RegExp('"',"ug"),Z0=[1105920,1112319],oa={FontAwesome:{normal:"fas",400:"fas"},"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"},"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"},"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},Lh=Object.keys(oa).reduce((l,s)=>(l[s.toLowerCase()]=oa[s],l),{}),a4=Object.keys(Lh).reduce((l,s)=>{const o=Lh[s];return l[s]=o[900]||[...Object.entries(o)][0][1],l},{});function O2(l,s){const o="".concat(X1).concat(s.replace(":","-"));return new Promise((c,m)=>{if(null!==l.getAttribute(o))return c();const R=ou(l.children).filter(wt=>wt.getAttribute(Dn)===s)[0],U=Rl.getComputedStyle(l,s),ce=U.getPropertyValue("font-family"),me=ce.match(q1),je=U.getPropertyValue("font-weight"),qe=U.getPropertyValue("content");if(R&&!me)return l.removeChild(R),c();if(me&&"none"!==qe&&""!==qe){const wt=U.getPropertyValue("content");let Tt=function Pi(l,s){const o=l.replace(/^['"]|['"]$/g,"").toLowerCase(),c=parseInt(s),m=isNaN(c)?"normal":c;return(Lh[o]||{})[m]||a4[o]}(ce,je);const{value:kt,isSecondary:rt}=function fv(l){const s=l.replace(hv,""),o=function jg(l,s){const o=l.length;let m,c=l.charCodeAt(s);return c>=55296&&c<=56319&&o>s+1&&(m=l.charCodeAt(s+1),m>=56320&&m<=57343)?1024*(c-55296)+m-56320+65536:c}(s,0),c=o>=Z0[0]&&o<=Z0[1],m=2===s.length&&s[0]===s[1];return{value:hd(m?s[0]:s),isSecondary:c||m}}(wt),_t=me[0].startsWith("FontAwesome");let Jt=p2(Tt,kt),Bn=Jt;if(_t){const Jn=function Wg(l){const s=u2[l],o=p2("fas",l);return s||(o?{prefix:"fas",iconName:o}:null)||{prefix:null,iconName:null}}(kt);Jn.iconName&&Jn.prefix&&(Jt=Jn.iconName,Tt=Jn.prefix)}if(!Jt||rt||R&&R.getAttribute(bh)===Tt&&R.getAttribute(Bl)===Bn)c();else{l.setAttribute(o,Bn),R&&l.removeChild(R);const Jn=function Rh(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Sa,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),{extra:mr}=Jn;mr.attributes[Dn]=s,Tc(Jt,Tt).then(Ni=>{const go=Mc({...Jn,icons:{main:Ni,mask:Th()},prefix:Tt,iconName:Bn,extra:mr,watchable:!0}),Fi=ri.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===s?l.insertBefore(Fi,l.firstChild):l.appendChild(Fi),Fi.outerHTML=go.map(gs=>jl(gs)).join("\n"),l.removeAttribute(o),c()}).catch(m)}}else c()})}function q0(l){return Promise.all([O2(l,"::before"),O2(l,"::after")])}function l4(l){return!(l.parentNode===document.head||~xg.indexOf(l.tagName.toUpperCase())||l.getAttribute(Dn)||l.parentNode&&"svg"===l.parentNode.tagName)}function A2(l){if(Lo)return new Promise((s,o)=>{const c=ou(l.querySelectorAll("*")).filter(l4).map(q0),m=Y0.begin("searchPseudoElements");w2(),Promise.all(c).then(()=>{m(),Nh(),s()}).catch(()=>{m(),Nh(),o()})})}let ep=!1;const tp=l=>l.toLowerCase().split(" ").reduce((o,c)=>{const m=c.toLowerCase().split("-"),M=m[0];let R=m.slice(1).join("-");if(M&&"h"===R)return o.flipX=!0,o;if(M&&"v"===R)return o.flipY=!0,o;if(R=parseFloat(R),isNaN(R))return o;switch(M){case"grow":o.size=o.size+R;break;case"shrink":o.size=o.size-R;break;case"left":o.x=o.x-R;break;case"right":o.x=o.x+R;break;case"up":o.y=o.y-R;break;case"down":o.y=o.y+R;break;case"rotate":o.rotate=o.rotate+R}return o},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0}),np={x:0,y:0,width:"100%",height:"100%"};function Gl(l){return l.attributes&&(l.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(l.attributes.fill="black"),l}function k2(l){return"g"===l.tag?l.children:[l]}!function Ih(l,s){let{mixoutsTo:o}=s;cu=l,uu={},Object.keys(du).forEach(c=>{-1===Gg.indexOf(c)&&delete du[c]}),cu.forEach(c=>{const m=c.mixout?c.mixout():{};if(Object.keys(m).forEach(M=>{"function"==typeof m[M]&&(o[M]=m[M]),"object"==typeof m[M]&&Object.keys(m[M]).forEach(R=>{o[M]||(o[M]={}),o[M][R]=m[M][R]})}),c.hooks){const M=c.hooks();Object.keys(M).forEach(R=>{uu[R]||(uu[R]=[]),uu[R].push(M[R])})}c.provides&&c.provides(du)})}([a2,i4,s4,o4,Q0,{hooks:()=>({mutationObserverCallbacks:l=>(l.pseudoElementsCallback=A2,l)}),provides(l){l.pseudoElements2svg=function(s){const{node:o=ri}=s;$t.searchPseudoElements&&A2(o)}}},{mixout:()=>({dom:{unwatch(){w2(),ep=!0}}}),hooks:()=>({bootstrap(){D2(md("mutationObserverCallbacks",{}))},noAuto(){!function M2(){Fh&&Fh.disconnect()}()},watch(l){const{observeMutationsRoot:s}=l;ep?Nh():D2(md("mutationObserverCallbacks",{observeMutationsRoot:s}))}})},{mixout:()=>({parse:{transform:l=>tp(l)}}),hooks:()=>({parseNodeAttributes(l,s){const o=s.getAttribute("data-fa-transform");return o&&(l.transform=tp(o)),l}}),provides(l){l.generateAbstractTransformGrouping=function(s){let{main:o,transform:c,containerWidth:m,iconWidth:M}=s;const R={transform:"translate(".concat(m/2," 256)")},U="translate(".concat(32*c.x,", ").concat(32*c.y,") "),ce="scale(".concat(c.size/16*(c.flipX?-1:1),", ").concat(c.size/16*(c.flipY?-1:1),") "),me="rotate(".concat(c.rotate," 0 0)"),je={transform:"".concat(U," ").concat(ce," ").concat(me)},qe={transform:"translate(".concat(M/2*-1," -256)")};return{tag:"g",attributes:{...R},children:[{tag:"g",attributes:{...je},children:[{tag:o.icon.tag,children:o.icon.children,attributes:{...o.icon.attributes,...qe}}]}]}}}},{hooks:()=>({parseNodeAttributes(l,s){const o=s.getAttribute("data-fa-mask"),c=o?Wl(o.split(" ").map(m=>m.trim())):Th();return c.prefix||(c.prefix=$l()),l.mask=c,l.maskId=s.getAttribute("data-fa-mask-id"),l}}),provides(l){l.generateAbstractMask=function(s){let{children:o,attributes:c,main:m,mask:M,maskId:R,transform:U}=s;const{width:ce,icon:me}=m,{width:je,icon:qe}=M,wt=function Vg(l){let{transform:s,containerWidth:o,iconWidth:c}=l;const m={transform:"translate(".concat(o/2," 256)")},M="translate(".concat(32*s.x,", ").concat(32*s.y,") "),R="scale(".concat(s.size/16*(s.flipX?-1:1),", ").concat(s.size/16*(s.flipY?-1:1),") "),U="rotate(".concat(s.rotate," 0 0)");return{outer:m,inner:{transform:"".concat(M," ").concat(R," ").concat(U)},path:{transform:"translate(".concat(c/2*-1," -256)")}}}({transform:U,containerWidth:je,iconWidth:ce}),Tt={tag:"rect",attributes:{...np,fill:"white"}},kt=me.children?{children:me.children.map(Gl)}:{},rt={tag:"g",attributes:{...wt.inner},children:[Gl({tag:me.tag,attributes:{...me.attributes,...wt.path},...kt})]},_t={tag:"g",attributes:{...wt.outer},children:[rt]},Jt="mask-".concat(R||cd()),Bn="clip-".concat(R||cd()),Jn={tag:"mask",attributes:{...np,id:Jt,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[Tt,_t]},mr={tag:"defs",children:[{tag:"clipPath",attributes:{id:Bn},children:k2(qe)},Jn]};return o.push(mr,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(Bn,")"),mask:"url(#".concat(Jt,")"),...np}}),{children:o,attributes:c}}}},{provides(l){let s=!1;Rl.matchMedia&&(s=Rl.matchMedia("(prefers-reduced-motion: reduce)").matches),l.missingIconAbstract=function(){const o=[],c={fill:"currentColor"},m={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};o.push({tag:"path",attributes:{...c,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const M={...m,attributeName:"opacity"},R={tag:"circle",attributes:{...c,cx:"256",cy:"364",r:"28"},children:[]};return s||R.children.push({tag:"animate",attributes:{...m,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...M,values:"1;0;1;1;0;1;"}}),o.push(R),o.push({tag:"path",attributes:{...c,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:s?[]:[{tag:"animate",attributes:{...M,values:"1;0;0;0;0;1;"}}]}),s||o.push({tag:"path",attributes:{...c,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...M,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:o}}}},{hooks:()=>({parseNodeAttributes(l,s){const o=s.getAttribute("data-fa-symbol");return l.symbol=null!==o&&(""===o||o),l}})}],{mixoutsTo:Ho});let p4=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=g.$C({type:l});static#n=this.\u0275inj=g.G2t({})}return l})();function L2(l){return()=>l.load()}let lp=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=g.$C({type:l,bootstrap:[ru]});static#n=this.\u0275inj=g.G2t({providers:[{provide:$.hb,useClass:$.fw},D0.l,Na.C,Xo.T,sr.Rv,Km(),{provide:g.hnV,useFactory:L2,deps:[Xo.T],multi:!0},r.hE],imports:[r.Bb,I,Cl,zt.mCO,zt._SP,zt.kiz,zt.krp,zt.pc9,zt.GCM,zt.nAL,sr.op,zt.Ied,Mo.q1,zt.tmq,zt.tHK,zt.v29,zt.ayw,an.X1,an.YN,zt.nAL,zt.GgS,zt.jr_,zt.OeB,zt.Emn,zt.EJq,zt.OeB,zt.Dw2,is.Id,zt.Q_q,p4,zt.bGq]})}return l})();r.sG().bootstrapModule(lp).catch(l=>console.error(l))},4412:(st,Ce,D)=>{D.d(Ce,{t:()=>g});var r=D(1413);class g extends r.B{constructor(F){super(),this._value=F}get value(){return this.getValue()}_subscribe(F){const se=super._subscribe(F);return!se.closed&&F.next(this._value),se}getValue(){const{hasError:F,thrownError:se,_value:ie}=this;if(F)throw se;return this._throwIfClosed(),ie}next(F){super.next(this._value=F)}}},1985:(st,Ce,D)=>{D.d(Ce,{c:()=>H});var r=D(7707),g=D(8359),$=D(3494),F=D(1203),se=D(1026),ie=D(8071),A=D(9786);let H=(()=>{class Ee{constructor(xe){xe&&(this._subscribe=xe)}lift(xe){const we=new Ee;return we.source=this,we.operator=xe,we}subscribe(xe,we,$e){const We=function de(Ee){return Ee&&Ee instanceof r.vU||function oe(Ee){return Ee&&(0,ie.T)(Ee.next)&&(0,ie.T)(Ee.error)&&(0,ie.T)(Ee.complete)}(Ee)&&(0,g.Uv)(Ee)}(xe)?xe:new r.Ms(xe,we,$e);return(0,A.Y)(()=>{const{operator:mt,source:tt}=this;We.add(mt?mt.call(We,tt):tt?this._subscribe(We):this._trySubscribe(We))}),We}_trySubscribe(xe){try{return this._subscribe(xe)}catch(we){xe.error(we)}}forEach(xe,we){return new(we=Z(we))(($e,We)=>{const mt=new r.Ms({next:tt=>{try{xe(tt)}catch(It){We(It),mt.unsubscribe()}},error:We,complete:$e});this.subscribe(mt)})}_subscribe(xe){var we;return null===(we=this.source)||void 0===we?void 0:we.subscribe(xe)}[$.s](){return this}pipe(...xe){return(0,F.m)(xe)(this)}toPromise(xe){return new(xe=Z(xe))((we,$e)=>{let We;this.subscribe(mt=>We=mt,mt=>$e(mt),()=>we(We))})}}return Ee.create=Te=>new Ee(Te),Ee})();function Z(Ee){var Te;return null!==(Te=Ee??se.$.Promise)&&void 0!==Te?Te:Promise}},1413:(st,Ce,D)=>{D.d(Ce,{B:()=>A});var r=D(1985),g=D(8359);const F=(0,D(1853).L)(Z=>function(){Z(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var se=D(7908),ie=D(9786);let A=(()=>{class Z extends r.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(de){const Ee=new H(this,this);return Ee.operator=de,Ee}_throwIfClosed(){if(this.closed)throw new F}next(de){(0,ie.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Ee of this.currentObservers)Ee.next(de)}})}error(de){(0,ie.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=de;const{observers:Ee}=this;for(;Ee.length;)Ee.shift().error(de)}})}complete(){(0,ie.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:de}=this;for(;de.length;)de.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var de;return(null===(de=this.observers)||void 0===de?void 0:de.length)>0}_trySubscribe(de){return this._throwIfClosed(),super._trySubscribe(de)}_subscribe(de){return this._throwIfClosed(),this._checkFinalizedStatuses(de),this._innerSubscribe(de)}_innerSubscribe(de){const{hasError:Ee,isStopped:Te,observers:xe}=this;return Ee||Te?g.Kn:(this.currentObservers=null,xe.push(de),new g.yU(()=>{this.currentObservers=null,(0,se.o)(xe,de)}))}_checkFinalizedStatuses(de){const{hasError:Ee,thrownError:Te,isStopped:xe}=this;Ee?de.error(Te):xe&&de.complete()}asObservable(){const de=new r.c;return de.source=this,de}}return Z.create=(oe,de)=>new H(oe,de),Z})();class H extends A{constructor(oe,de){super(),this.destination=oe,this.source=de}next(oe){var de,Ee;null===(Ee=null===(de=this.destination)||void 0===de?void 0:de.next)||void 0===Ee||Ee.call(de,oe)}error(oe){var de,Ee;null===(Ee=null===(de=this.destination)||void 0===de?void 0:de.error)||void 0===Ee||Ee.call(de,oe)}complete(){var oe,de;null===(de=null===(oe=this.destination)||void 0===oe?void 0:oe.complete)||void 0===de||de.call(oe)}_subscribe(oe){var de,Ee;return null!==(Ee=null===(de=this.source)||void 0===de?void 0:de.subscribe(oe))&&void 0!==Ee?Ee:g.Kn}}},7707:(st,Ce,D)=>{D.d(Ce,{Ms:()=>$e,vU:()=>Ee});var r=D(8071),g=D(8359),$=D(1026),F=D(5334),se=D(5343);const ie=Z("C",void 0,void 0);function Z(Ye,Oe,Ke){return{kind:Ye,value:Oe,error:Ke}}var oe=D(9270),de=D(9786);class Ee extends g.yU{constructor(Oe){super(),this.isStopped=!1,Oe?(this.destination=Oe,(0,g.Uv)(Oe)&&Oe.add(this)):this.destination=It}static create(Oe,Ke,Dt){return new $e(Oe,Ke,Dt)}next(Oe){this.isStopped?tt(function H(Ye){return Z("N",Ye,void 0)}(Oe),this):this._next(Oe)}error(Oe){this.isStopped?tt(function A(Ye){return Z("E",void 0,Ye)}(Oe),this):(this.isStopped=!0,this._error(Oe))}complete(){this.isStopped?tt(ie,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Oe){this.destination.next(Oe)}_error(Oe){try{this.destination.error(Oe)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Te=Function.prototype.bind;function xe(Ye,Oe){return Te.call(Ye,Oe)}class we{constructor(Oe){this.partialObserver=Oe}next(Oe){const{partialObserver:Ke}=this;if(Ke.next)try{Ke.next(Oe)}catch(Dt){We(Dt)}}error(Oe){const{partialObserver:Ke}=this;if(Ke.error)try{Ke.error(Oe)}catch(Dt){We(Dt)}else We(Oe)}complete(){const{partialObserver:Oe}=this;if(Oe.complete)try{Oe.complete()}catch(Ke){We(Ke)}}}class $e extends Ee{constructor(Oe,Ke,Dt){let Xe;if(super(),(0,r.T)(Oe)||!Oe)Xe={next:Oe??void 0,error:Ke??void 0,complete:Dt??void 0};else{let it;this&&$.$.useDeprecatedNextContext?(it=Object.create(Oe),it.unsubscribe=()=>this.unsubscribe(),Xe={next:Oe.next&&xe(Oe.next,it),error:Oe.error&&xe(Oe.error,it),complete:Oe.complete&&xe(Oe.complete,it)}):Xe=Oe}this.destination=new we(Xe)}}function We(Ye){$.$.useDeprecatedSynchronousErrorHandling?(0,de.l)(Ye):(0,F.m)(Ye)}function tt(Ye,Oe){const{onStoppedNotification:Ke}=$.$;Ke&&oe.f.setTimeout(()=>Ke(Ye,Oe))}const It={closed:!0,next:se.l,error:function mt(Ye){throw Ye},complete:se.l}},8359:(st,Ce,D)=>{D.d(Ce,{Kn:()=>ie,yU:()=>se,Uv:()=>A});var r=D(8071);const $=(0,D(1853).L)(Z=>function(de){Z(this),this.message=de?`${de.length} errors occurred during unsubscription:\n${de.map((Ee,Te)=>`${Te+1}) ${Ee.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=de});var F=D(7908);class se{constructor(oe){this.initialTeardown=oe,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let oe;if(!this.closed){this.closed=!0;const{_parentage:de}=this;if(de)if(this._parentage=null,Array.isArray(de))for(const xe of de)xe.remove(this);else de.remove(this);const{initialTeardown:Ee}=this;if((0,r.T)(Ee))try{Ee()}catch(xe){oe=xe instanceof $?xe.errors:[xe]}const{_finalizers:Te}=this;if(Te){this._finalizers=null;for(const xe of Te)try{H(xe)}catch(we){oe=oe??[],we instanceof $?oe=[...oe,...we.errors]:oe.push(we)}}if(oe)throw new $(oe)}}add(oe){var de;if(oe&&oe!==this)if(this.closed)H(oe);else{if(oe instanceof se){if(oe.closed||oe._hasParent(this))return;oe._addParent(this)}(this._finalizers=null!==(de=this._finalizers)&&void 0!==de?de:[]).push(oe)}}_hasParent(oe){const{_parentage:de}=this;return de===oe||Array.isArray(de)&&de.includes(oe)}_addParent(oe){const{_parentage:de}=this;this._parentage=Array.isArray(de)?(de.push(oe),de):de?[de,oe]:oe}_removeParent(oe){const{_parentage:de}=this;de===oe?this._parentage=null:Array.isArray(de)&&(0,F.o)(de,oe)}remove(oe){const{_finalizers:de}=this;de&&(0,F.o)(de,oe),oe instanceof se&&oe._removeParent(this)}}se.EMPTY=(()=>{const Z=new se;return Z.closed=!0,Z})();const ie=se.EMPTY;function A(Z){return Z instanceof se||Z&&"closed"in Z&&(0,r.T)(Z.remove)&&(0,r.T)(Z.add)&&(0,r.T)(Z.unsubscribe)}function H(Z){(0,r.T)(Z)?Z():Z.unsubscribe()}},1026:(st,Ce,D)=>{D.d(Ce,{$:()=>r});const r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(st,Ce,D)=>{D.d(Ce,{z:()=>oe});var r=D(1985),g=D(3073),$=D(6648),F=D(3669),se=D(6450),ie=D(9326),A=D(8496),H=D(4360),Z=D(5225);function oe(...Te){const xe=(0,ie.lI)(Te),we=(0,ie.ms)(Te),{args:$e,keys:We}=(0,g.D)(Te);if(0===$e.length)return(0,$.H)([],xe);const mt=new r.c(function de(Te,xe,we=F.D){return $e=>{Ee(xe,()=>{const{length:We}=Te,mt=new Array(We);let tt=We,It=We;for(let Ye=0;Ye{const Oe=(0,$.H)(Te[Ye],xe);let Ke=!1;Oe.subscribe((0,H._)($e,Dt=>{mt[Ye]=Dt,Ke||(Ke=!0,It--),It||$e.next(we(mt.slice()))},()=>{--tt||$e.complete()}))},$e)},$e)}}($e,xe,We?tt=>(0,A.e)(We,tt):F.D));return we?mt.pipe((0,se.I)(we)):mt}function Ee(Te,xe,we){Te?(0,Z.N)(we,Te,xe):xe()}},8793:(st,Ce,D)=>{D.d(Ce,{x:()=>se});var r=D(6365),$=D(9326),F=D(6648);function se(...ie){return function g(){return(0,r.U)(1)}()((0,F.H)(ie,(0,$.lI)(ie)))}},9030:(st,Ce,D)=>{D.d(Ce,{v:()=>$});var r=D(1985),g=D(8750);function $(F){return new r.c(se=>{(0,g.Tg)(F()).subscribe(se)})}},983:(st,Ce,D)=>{D.d(Ce,{w:()=>g});const g=new(D(1985).c)(se=>se.complete())},7468:(st,Ce,D)=>{D.d(Ce,{p:()=>H});var r=D(1985),g=D(3073),$=D(8750),F=D(9326),se=D(4360),ie=D(6450),A=D(8496);function H(...Z){const oe=(0,F.ms)(Z),{args:de,keys:Ee}=(0,g.D)(Z),Te=new r.c(xe=>{const{length:we}=de;if(!we)return void xe.complete();const $e=new Array(we);let We=we,mt=we;for(let tt=0;tt{It||(It=!0,mt--),$e[tt]=Ye},()=>We--,void 0,()=>{(!We||!It)&&(mt||xe.next(Ee?(0,A.e)(Ee,$e):$e),xe.complete())}))}});return oe?Te.pipe((0,ie.I)(oe)):Te}},6648:(st,Ce,D)=>{D.d(Ce,{H:()=>Dt});var r=D(8750),g=D(5225),$=D(9974),F=D(4360);function se(Xe,it=0){return(0,$.N)((ut,Ot)=>{ut.subscribe((0,F._)(Ot,Re=>(0,g.N)(Ot,Xe,()=>Ot.next(Re),it),()=>(0,g.N)(Ot,Xe,()=>Ot.complete(),it),Re=>(0,g.N)(Ot,Xe,()=>Ot.error(Re),it)))})}function ie(Xe,it=0){return(0,$.N)((ut,Ot)=>{Ot.add(Xe.schedule(()=>ut.subscribe(Ot),it))})}var Z=D(1985),de=D(4761),Ee=D(8071);function xe(Xe,it){if(!Xe)throw new Error("Iterable cannot be null");return new Z.c(ut=>{(0,g.N)(ut,it,()=>{const Ot=Xe[Symbol.asyncIterator]();(0,g.N)(ut,it,()=>{Ot.next().then(Re=>{Re.done?ut.complete():ut.next(Re.value)})},0,!0)})})}var we=D(5055),$e=D(9858),We=D(7441),mt=D(5397),tt=D(7953),It=D(591),Ye=D(5196);function Dt(Xe,it){return it?function Ke(Xe,it){if(null!=Xe){if((0,we.l)(Xe))return function A(Xe,it){return(0,r.Tg)(Xe).pipe(ie(it),se(it))}(Xe,it);if((0,We.X)(Xe))return function oe(Xe,it){return new Z.c(ut=>{let Ot=0;return it.schedule(function(){Ot===Xe.length?ut.complete():(ut.next(Xe[Ot++]),ut.closed||this.schedule())})})}(Xe,it);if((0,$e.y)(Xe))return function H(Xe,it){return(0,r.Tg)(Xe).pipe(ie(it),se(it))}(Xe,it);if((0,tt.T)(Xe))return xe(Xe,it);if((0,mt.x)(Xe))return function Te(Xe,it){return new Z.c(ut=>{let Ot;return(0,g.N)(ut,it,()=>{Ot=Xe[de.l](),(0,g.N)(ut,it,()=>{let Re,ze;try{({value:Re,done:ze}=Ot.next())}catch(dt){return void ut.error(dt)}ze?ut.complete():ut.next(Re)},0,!0)}),()=>(0,Ee.T)(Ot?.return)&&Ot.return()})}(Xe,it);if((0,Ye.U)(Xe))return function Oe(Xe,it){return xe((0,Ye.C)(Xe),it)}(Xe,it)}throw(0,It.L)(Xe)}(Xe,it):(0,r.Tg)(Xe)}},3726:(st,Ce,D)=>{D.d(Ce,{R:()=>oe});var r=D(8750),g=D(1985),$=D(3028),F=D(7441),se=D(8071),ie=D(6450);const A=["addListener","removeListener"],H=["addEventListener","removeEventListener"],Z=["on","off"];function oe(we,$e,We,mt){if((0,se.T)(We)&&(mt=We,We=void 0),mt)return oe(we,$e,We).pipe((0,ie.I)(mt));const[tt,It]=function xe(we){return(0,se.T)(we.addEventListener)&&(0,se.T)(we.removeEventListener)}(we)?H.map(Ye=>Oe=>we[Ye]($e,Oe,We)):function Ee(we){return(0,se.T)(we.addListener)&&(0,se.T)(we.removeListener)}(we)?A.map(de(we,$e)):function Te(we){return(0,se.T)(we.on)&&(0,se.T)(we.off)}(we)?Z.map(de(we,$e)):[];if(!tt&&(0,F.X)(we))return(0,$.Z)(Ye=>oe(Ye,$e,We))((0,r.Tg)(we));if(!tt)throw new TypeError("Invalid event target");return new g.c(Ye=>{const Oe=(...Ke)=>Ye.next(1It(Oe)})}function de(we,$e){return We=>mt=>we[We]($e,mt)}},8750:(st,Ce,D)=>{D.d(Ce,{Tg:()=>Te});var r=D(1635),g=D(7441),$=D(9858),F=D(1985),se=D(5055),ie=D(7953),A=D(591),H=D(5397),Z=D(5196),oe=D(8071),de=D(5334),Ee=D(3494);function Te(Ye){if(Ye instanceof F.c)return Ye;if(null!=Ye){if((0,se.l)(Ye))return function xe(Ye){return new F.c(Oe=>{const Ke=Ye[Ee.s]();if((0,oe.T)(Ke.subscribe))return Ke.subscribe(Oe);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ye);if((0,g.X)(Ye))return function we(Ye){return new F.c(Oe=>{for(let Ke=0;Ke{Ye.then(Ke=>{Oe.closed||(Oe.next(Ke),Oe.complete())},Ke=>Oe.error(Ke)).then(null,de.m)})}(Ye);if((0,ie.T)(Ye))return mt(Ye);if((0,H.x)(Ye))return function We(Ye){return new F.c(Oe=>{for(const Ke of Ye)if(Oe.next(Ke),Oe.closed)return;Oe.complete()})}(Ye);if((0,Z.U)(Ye))return function tt(Ye){return mt((0,Z.C)(Ye))}(Ye)}throw(0,A.L)(Ye)}function mt(Ye){return new F.c(Oe=>{(function It(Ye,Oe){var Ke,Dt,Xe,it;return(0,r.sH)(this,void 0,void 0,function*(){try{for(Ke=(0,r.xN)(Ye);!(Dt=yield Ke.next()).done;)if(Oe.next(Dt.value),Oe.closed)return}catch(ut){Xe={error:ut}}finally{try{Dt&&!Dt.done&&(it=Ke.return)&&(yield it.call(Ke))}finally{if(Xe)throw Xe.error}}Oe.complete()})})(Ye,Oe).catch(Ke=>Oe.error(Ke))})}},7786:(st,Ce,D)=>{D.d(Ce,{h:()=>ie});var r=D(6365),g=D(8750),$=D(983),F=D(9326),se=D(6648);function ie(...A){const H=(0,F.lI)(A),Z=(0,F.R0)(A,1/0),oe=A;return oe.length?1===oe.length?(0,g.Tg)(oe[0]):(0,r.U)(Z)((0,se.H)(oe,H)):$.w}},7673:(st,Ce,D)=>{D.d(Ce,{of:()=>$});var r=D(9326),g=D(6648);function $(...F){const se=(0,r.lI)(F);return(0,g.H)(F,se)}},8810:(st,Ce,D)=>{D.d(Ce,{$:()=>$});var r=D(1985),g=D(8071);function $(F,se){const ie=(0,g.T)(F)?F:()=>F,A=H=>H.error(ie());return new r.c(se?H=>se.schedule(A,0,H):A)}},1584:(st,Ce,D)=>{D.d(Ce,{O:()=>se});var r=D(1985),g=D(3236),$=D(9470);function se(ie=0,A,H=g.b){let Z=-1;return null!=A&&((0,$.m)(A)?H=A:Z=A),new r.c(oe=>{let de=function F(ie){return ie instanceof Date&&!isNaN(ie)}(ie)?+ie-H.now():ie;de<0&&(de=0);let Ee=0;return H.schedule(function(){oe.closed||(oe.next(Ee++),0<=Z?this.schedule(void 0,Z):oe.complete())},de)})}},4779:(st,Ce,D)=>{D.d(Ce,{y:()=>H});var r=D(1985),g=D(8750);const{isArray:$}=Array;var se=D(983),ie=D(4360),A=D(9326);function H(...Z){const oe=(0,A.ms)(Z),de=function F(Z){return 1===Z.length&&$(Z[0])?Z[0]:Z}(Z);return de.length?new r.c(Ee=>{let Te=de.map(()=>[]),xe=de.map(()=>!1);Ee.add(()=>{Te=xe=null});for(let we=0;!Ee.closed&&we{if(Te[we].push($e),Te.every(We=>We.length)){const We=Te.map(mt=>mt.shift());Ee.next(oe?oe(...We):We),Te.some((mt,tt)=>!mt.length&&xe[tt])&&Ee.complete()}},()=>{xe[we]=!0,!Te[we].length&&Ee.complete()}));return()=>{Te=xe=null}}):se.w}},4360:(st,Ce,D)=>{D.d(Ce,{_:()=>g});var r=D(7707);function g(F,se,ie,A,H){return new $(F,se,ie,A,H)}class $ extends r.vU{constructor(se,ie,A,H,Z,oe){super(se),this.onFinalize=Z,this.shouldUnsubscribe=oe,this._next=ie?function(de){try{ie(de)}catch(Ee){se.error(Ee)}}:super._next,this._error=H?function(de){try{H(de)}catch(Ee){se.error(Ee)}finally{this.unsubscribe()}}:super._error,this._complete=A?function(){try{A()}catch(de){se.error(de)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var se;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ie}=this;super.unsubscribe(),!ie&&(null===(se=this.onFinalize)||void 0===se||se.call(this))}}}},3798:(st,Ce,D)=>{D.d(Ce,{Z:()=>A});var r=D(3236),g=D(9974),$=D(8750),F=D(4360),ie=D(1584);function A(H,Z=r.E){return function se(H){return(0,g.N)((Z,oe)=>{let de=!1,Ee=null,Te=null,xe=!1;const we=()=>{if(Te?.unsubscribe(),Te=null,de){de=!1;const We=Ee;Ee=null,oe.next(We)}xe&&oe.complete()},$e=()=>{Te=null,xe&&oe.complete()};Z.subscribe((0,F._)(oe,We=>{de=!0,Ee=We,Te||(0,$.Tg)(H(We)).subscribe(Te=(0,F._)(oe,we,$e))},()=>{xe=!0,(!de||!Te||Te.closed)&&oe.complete()}))})}(()=>(0,ie.O)(H,Z))}},9437:(st,Ce,D)=>{D.d(Ce,{W:()=>F});var r=D(8750),g=D(4360),$=D(9974);function F(se){return(0,$.N)((ie,A)=>{let oe,H=null,Z=!1;H=ie.subscribe((0,g._)(A,void 0,void 0,de=>{oe=(0,r.Tg)(se(de,F(se)(ie))),H?(H.unsubscribe(),H=null,oe.subscribe(A)):Z=!0})),Z&&(H.unsubscribe(),H=null,oe.subscribe(A))})}},274:(st,Ce,D)=>{D.d(Ce,{H:()=>$});var r=D(3028),g=D(8071);function $(F,se){return(0,g.T)(se)?(0,r.Z)(F,se,1):(0,r.Z)(F,1)}},152:(st,Ce,D)=>{D.d(Ce,{B:()=>F});var r=D(3236),g=D(9974),$=D(4360);function F(se,ie=r.E){return(0,g.N)((A,H)=>{let Z=null,oe=null,de=null;const Ee=()=>{if(Z){Z.unsubscribe(),Z=null;const xe=oe;oe=null,H.next(xe)}};function Te(){const xe=de+se,we=ie.now();if(we{oe=xe,de=ie.now(),Z||(Z=ie.schedule(Te,se),H.add(Z))},()=>{Ee(),H.complete()},void 0,()=>{oe=Z=null}))})}},3294:(st,Ce,D)=>{D.d(Ce,{F:()=>F});var r=D(3669),g=D(9974),$=D(4360);function F(ie,A=r.D){return ie=ie??se,(0,g.N)((H,Z)=>{let oe,de=!0;H.subscribe((0,$._)(Z,Ee=>{const Te=A(Ee);(de||!ie(oe,Te))&&(de=!1,oe=Te,Z.next(Ee))}))})}function se(ie,A){return ie===A}},5964:(st,Ce,D)=>{D.d(Ce,{p:()=>$});var r=D(9974),g=D(4360);function $(F,se){return(0,r.N)((ie,A)=>{let H=0;ie.subscribe((0,g._)(A,Z=>F.call(se,Z,H++)&&A.next(Z)))})}},980:(st,Ce,D)=>{D.d(Ce,{j:()=>g});var r=D(9974);function g($){return(0,r.N)((F,se)=>{try{F.subscribe(se)}finally{se.add($)}})}},6354:(st,Ce,D)=>{D.d(Ce,{T:()=>$});var r=D(9974),g=D(4360);function $(F,se){return(0,r.N)((ie,A)=>{let H=0;ie.subscribe((0,g._)(A,Z=>{A.next(F.call(se,Z,H++))}))})}},3703:(st,Ce,D)=>{D.d(Ce,{u:()=>g});var r=D(6354);function g($){return(0,r.T)(()=>$)}},6365:(st,Ce,D)=>{D.d(Ce,{U:()=>$});var r=D(3028),g=D(3669);function $(F=1/0){return(0,r.Z)(g.D,F)}},5412:(st,Ce,D)=>{D.d(Ce,{h:()=>F});var r=D(8750),g=D(5225),$=D(4360);function F(se,ie,A,H,Z,oe,de,Ee){const Te=[];let xe=0,we=0,$e=!1;const We=()=>{$e&&!Te.length&&!xe&&ie.complete()},mt=It=>xe{oe&&ie.next(It),xe++;let Ye=!1;(0,r.Tg)(A(It,we++)).subscribe((0,$._)(ie,Oe=>{Z?.(Oe),oe?mt(Oe):ie.next(Oe)},()=>{Ye=!0},void 0,()=>{if(Ye)try{for(xe--;Te.length&&xett(Oe)):tt(Oe)}We()}catch(Oe){ie.error(Oe)}}))};return se.subscribe((0,$._)(ie,mt,()=>{$e=!0,We()})),()=>{Ee?.()}}},3028:(st,Ce,D)=>{D.d(Ce,{Z:()=>ie});var r=D(6354),g=D(8750),$=D(9974),F=D(5412),se=D(8071);function ie(A,H,Z=1/0){return(0,se.T)(H)?ie((oe,de)=>(0,r.T)((Ee,Te)=>H(oe,Ee,de,Te))((0,g.Tg)(A(oe,de))),Z):("number"==typeof H&&(Z=H),(0,$.N)((oe,de)=>(0,F.h)(oe,de,A,Z)))}},5245:(st,Ce,D)=>{D.d(Ce,{i:()=>g});var r=D(5964);function g($){return(0,r.p)((F,se)=>$<=se)}},9172:(st,Ce,D)=>{D.d(Ce,{Z:()=>F});var r=D(8793),g=D(9326),$=D(9974);function F(...se){const ie=(0,g.lI)(se);return(0,$.N)((A,H)=>{(ie?(0,r.x)(se,A,ie):(0,r.x)(se,A)).subscribe(H)})}},5558:(st,Ce,D)=>{D.d(Ce,{n:()=>F});var r=D(8750),g=D(9974),$=D(4360);function F(se,ie){return(0,g.N)((A,H)=>{let Z=null,oe=0,de=!1;const Ee=()=>de&&!Z&&H.complete();A.subscribe((0,$._)(H,Te=>{Z?.unsubscribe();let xe=0;const we=oe++;(0,r.Tg)(se(Te,we)).subscribe(Z=(0,$._)(H,$e=>H.next(ie?ie(Te,$e,we,xe++):$e),()=>{Z=null,Ee()}))},()=>{de=!0,Ee()}))})}},6697:(st,Ce,D)=>{D.d(Ce,{s:()=>F});var r=D(983),g=D(9974),$=D(4360);function F(se){return se<=0?()=>r.w:(0,g.N)((ie,A)=>{let H=0;ie.subscribe((0,$._)(A,Z=>{++H<=se&&(A.next(Z),se<=H&&A.complete())}))})}},6977:(st,Ce,D)=>{D.d(Ce,{Q:()=>se});var r=D(9974),g=D(4360),$=D(8750),F=D(5343);function se(ie){return(0,r.N)((A,H)=>{(0,$.Tg)(ie).subscribe((0,g._)(H,()=>H.complete(),F.l)),!H.closed&&A.subscribe(H)})}},7048:(st,Ce,D)=>{D.d(Ce,{v:()=>$});var r=D(9974),g=D(4360);function $(F,se=!1){return(0,r.N)((ie,A)=>{let H=0;ie.subscribe((0,g._)(A,Z=>{const oe=F(Z,H++);(oe||se)&&A.next(Z),!oe&&A.complete()}))})}},8141:(st,Ce,D)=>{D.d(Ce,{M:()=>se});var r=D(8071),g=D(9974),$=D(4360),F=D(3669);function se(ie,A,H){const Z=(0,r.T)(ie)||A||H?{next:ie,error:A,complete:H}:ie;return Z?(0,g.N)((oe,de)=>{var Ee;null===(Ee=Z.subscribe)||void 0===Ee||Ee.call(Z);let Te=!0;oe.subscribe((0,$._)(de,xe=>{var we;null===(we=Z.next)||void 0===we||we.call(Z,xe),de.next(xe)},()=>{var xe;Te=!1,null===(xe=Z.complete)||void 0===xe||xe.call(Z),de.complete()},xe=>{var we;Te=!1,null===(we=Z.error)||void 0===we||we.call(Z,xe),de.error(xe)},()=>{var xe,we;Te&&(null===(xe=Z.unsubscribe)||void 0===xe||xe.call(Z)),null===(we=Z.finalize)||void 0===we||we.call(Z)}))}):F.D}},6780:(st,Ce,D)=>{D.d(Ce,{R:()=>se});var r=D(8359);class g extends r.yU{constructor(A,H){super()}schedule(A,H=0){return this}}const $={setInterval(ie,A,...H){const{delegate:Z}=$;return Z?.setInterval?Z.setInterval(ie,A,...H):setInterval(ie,A,...H)},clearInterval(ie){const{delegate:A}=$;return(A?.clearInterval||clearInterval)(ie)},delegate:void 0};var F=D(7908);class se extends g{constructor(A,H){super(A,H),this.scheduler=A,this.work=H,this.pending=!1}schedule(A,H=0){var Z;if(this.closed)return this;this.state=A;const oe=this.id,de=this.scheduler;return null!=oe&&(this.id=this.recycleAsyncId(de,oe,H)),this.pending=!0,this.delay=H,this.id=null!==(Z=this.id)&&void 0!==Z?Z:this.requestAsyncId(de,this.id,H),this}requestAsyncId(A,H,Z=0){return $.setInterval(A.flush.bind(A,this),Z)}recycleAsyncId(A,H,Z=0){if(null!=Z&&this.delay===Z&&!1===this.pending)return H;null!=H&&$.clearInterval(H)}execute(A,H){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Z=this._execute(A,H);if(Z)return Z;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(A,H){let oe,Z=!1;try{this.work(A)}catch(de){Z=!0,oe=de||new Error("Scheduled action threw falsy error")}if(Z)return this.unsubscribe(),oe}unsubscribe(){if(!this.closed){const{id:A,scheduler:H}=this,{actions:Z}=H;this.work=this.state=this.scheduler=null,this.pending=!1,(0,F.o)(Z,this),null!=A&&(this.id=this.recycleAsyncId(H,A,null)),this.delay=null,super.unsubscribe()}}}},9687:(st,Ce,D)=>{D.d(Ce,{q:()=>$});var r=D(6129);class g{constructor(se,ie=g.now){this.schedulerActionCtor=se,this.now=ie}schedule(se,ie=0,A){return new this.schedulerActionCtor(this,se).schedule(A,ie)}}g.now=r.U.now;class $ extends g{constructor(se,ie=g.now){super(se,ie),this.actions=[],this._active=!1}flush(se){const{actions:ie}=this;if(this._active)return void ie.push(se);let A;this._active=!0;do{if(A=se.execute(se.state,se.delay))break}while(se=ie.shift());if(this._active=!1,A){for(;se=ie.shift();)se.unsubscribe();throw A}}}},536:(st,Ce,D)=>{D.d(Ce,{X:()=>A});var r=D(6780),g=D(8359);const $={schedule(Z){let oe=requestAnimationFrame,de=cancelAnimationFrame;const{delegate:Ee}=$;Ee&&(oe=Ee.requestAnimationFrame,de=Ee.cancelAnimationFrame);const Te=oe(xe=>{de=void 0,Z(xe)});return new g.yU(()=>de?.(Te))},requestAnimationFrame(...Z){const{delegate:oe}=$;return(oe?.requestAnimationFrame||requestAnimationFrame)(...Z)},cancelAnimationFrame(...Z){const{delegate:oe}=$;return(oe?.cancelAnimationFrame||cancelAnimationFrame)(...Z)},delegate:void 0};var se=D(9687);const A=new class ie extends se.q{flush(oe){this._active=!0;const de=this._scheduled;this._scheduled=void 0;const{actions:Ee}=this;let Te;oe=oe||Ee.shift();do{if(Te=oe.execute(oe.state,oe.delay))break}while((oe=Ee[0])&&oe.id===de&&Ee.shift());if(this._active=!1,Te){for(;(oe=Ee[0])&&oe.id===de&&Ee.shift();)oe.unsubscribe();throw Te}}}(class F extends r.R{constructor(oe,de){super(oe,de),this.scheduler=oe,this.work=de}requestAsyncId(oe,de,Ee=0){return null!==Ee&&Ee>0?super.requestAsyncId(oe,de,Ee):(oe.actions.push(this),oe._scheduled||(oe._scheduled=$.requestAnimationFrame(()=>oe.flush(void 0))))}recycleAsyncId(oe,de,Ee=0){var Te;if(null!=Ee?Ee>0:this.delay>0)return super.recycleAsyncId(oe,de,Ee);const{actions:xe}=oe;null!=de&&(null===(Te=xe[xe.length-1])||void 0===Te?void 0:Te.id)!==de&&($.cancelAnimationFrame(de),oe._scheduled=void 0)}})},3236:(st,Ce,D)=>{D.d(Ce,{E:()=>$,b:()=>F});var r=D(6780);const $=new(D(9687).q)(r.R),F=$},6129:(st,Ce,D)=>{D.d(Ce,{U:()=>r});const r={now:()=>(r.delegate||Date).now(),delegate:void 0}},9270:(st,Ce,D)=>{D.d(Ce,{f:()=>r});const r={setTimeout(g,$,...F){const{delegate:se}=r;return se?.setTimeout?se.setTimeout(g,$,...F):setTimeout(g,$,...F)},clearTimeout(g){const{delegate:$}=r;return($?.clearTimeout||clearTimeout)(g)},delegate:void 0}},4761:(st,Ce,D)=>{D.d(Ce,{l:()=>g});const g=function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(st,Ce,D)=>{D.d(Ce,{s:()=>r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},9326:(st,Ce,D)=>{D.d(Ce,{R0:()=>ie,lI:()=>se,ms:()=>F});var r=D(8071),g=D(9470);function $(A){return A[A.length-1]}function F(A){return(0,r.T)($(A))?A.pop():void 0}function se(A){return(0,g.m)($(A))?A.pop():void 0}function ie(A,H){return"number"==typeof $(A)?A.pop():H}},3073:(st,Ce,D)=>{D.d(Ce,{D:()=>se});const{isArray:r}=Array,{getPrototypeOf:g,prototype:$,keys:F}=Object;function se(A){if(1===A.length){const H=A[0];if(r(H))return{args:H,keys:null};if(function ie(A){return A&&"object"==typeof A&&g(A)===$}(H)){const Z=F(H);return{args:Z.map(oe=>H[oe]),keys:Z}}}return{args:A,keys:null}}},7908:(st,Ce,D)=>{function r(g,$){if(g){const F=g.indexOf($);0<=F&&g.splice(F,1)}}D.d(Ce,{o:()=>r})},1853:(st,Ce,D)=>{function r(g){const F=g(se=>{Error.call(se),se.stack=(new Error).stack});return F.prototype=Object.create(Error.prototype),F.prototype.constructor=F,F}D.d(Ce,{L:()=>r})},8496:(st,Ce,D)=>{function r(g,$){return g.reduce((F,se,ie)=>(F[se]=$[ie],F),{})}D.d(Ce,{e:()=>r})},9786:(st,Ce,D)=>{D.d(Ce,{Y:()=>$,l:()=>F});var r=D(1026);let g=null;function $(se){if(r.$.useDeprecatedSynchronousErrorHandling){const ie=!g;if(ie&&(g={errorThrown:!1,error:null}),se(),ie){const{errorThrown:A,error:H}=g;if(g=null,A)throw H}}else se()}function F(se){r.$.useDeprecatedSynchronousErrorHandling&&g&&(g.errorThrown=!0,g.error=se)}},5225:(st,Ce,D)=>{function r(g,$,F,se=0,ie=!1){const A=$.schedule(function(){F(),ie?g.add(this.schedule(null,se)):this.unsubscribe()},se);if(g.add(A),!ie)return A}D.d(Ce,{N:()=>r})},3669:(st,Ce,D)=>{function r(g){return g}D.d(Ce,{D:()=>r})},7441:(st,Ce,D)=>{D.d(Ce,{X:()=>r});const r=g=>g&&"number"==typeof g.length&&"function"!=typeof g},7953:(st,Ce,D)=>{D.d(Ce,{T:()=>g});var r=D(8071);function g($){return Symbol.asyncIterator&&(0,r.T)($?.[Symbol.asyncIterator])}},8071:(st,Ce,D)=>{function r(g){return"function"==typeof g}D.d(Ce,{T:()=>r})},5055:(st,Ce,D)=>{D.d(Ce,{l:()=>$});var r=D(3494),g=D(8071);function $(F){return(0,g.T)(F[r.s])}},5397:(st,Ce,D)=>{D.d(Ce,{x:()=>$});var r=D(4761),g=D(8071);function $(F){return(0,g.T)(F?.[r.l])}},4402:(st,Ce,D)=>{D.d(Ce,{A:()=>$});var r=D(1985),g=D(8071);function $(F){return!!F&&(F instanceof r.c||(0,g.T)(F.lift)&&(0,g.T)(F.subscribe))}},9858:(st,Ce,D)=>{D.d(Ce,{y:()=>g});var r=D(8071);function g($){return(0,r.T)($?.then)}},5196:(st,Ce,D)=>{D.d(Ce,{C:()=>$,U:()=>F});var r=D(1635),g=D(8071);function $(se){return(0,r.AQ)(this,arguments,function*(){const A=se.getReader();try{for(;;){const{value:H,done:Z}=yield(0,r.N3)(A.read());if(Z)return yield(0,r.N3)(void 0);yield yield(0,r.N3)(H)}}finally{A.releaseLock()}})}function F(se){return(0,g.T)(se?.getReader)}},9470:(st,Ce,D)=>{D.d(Ce,{m:()=>g});var r=D(8071);function g($){return $&&(0,r.T)($.schedule)}},9974:(st,Ce,D)=>{D.d(Ce,{N:()=>$,S:()=>g});var r=D(8071);function g(F){return(0,r.T)(F?.lift)}function $(F){return se=>{if(g(se))return se.lift(function(ie){try{return F(ie,this)}catch(A){this.error(A)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(st,Ce,D)=>{D.d(Ce,{I:()=>F});var r=D(6354);const{isArray:g}=Array;function F(se){return(0,r.T)(ie=>function $(se,ie){return g(ie)?se(...ie):se(ie)}(se,ie))}},5343:(st,Ce,D)=>{function r(){}D.d(Ce,{l:()=>r})},1203:(st,Ce,D)=>{D.d(Ce,{F:()=>g,m:()=>$});var r=D(3669);function g(...F){return $(F)}function $(F){return 0===F.length?r.D:1===F.length?F[0]:function(ie){return F.reduce((A,H)=>H(A),ie)}}},5334:(st,Ce,D)=>{D.d(Ce,{m:()=>$});var r=D(1026),g=D(9270);function $(F){g.f.setTimeout(()=>{const{onUnhandledError:se}=r.$;if(!se)throw F;se(F)})}},591:(st,Ce,D)=>{function r(g){return new TypeError(`You provided ${null!==g&&"object"==typeof g?"an invalid object":`'${g}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}D.d(Ce,{L:()=>r})},9969:(st,Ce,D)=>{D.d(Ce,{FX:()=>Ot,If:()=>$,K2:()=>H,MA:()=>xe,Os:()=>A,P:()=>$e,S6:()=>mt,hZ:()=>se,i0:()=>ie,i7:()=>de,iF:()=>Z,kY:()=>Ee,kp:()=>F,lY:()=>Te,sM:()=>we,sf:()=>it,ui:()=>ut,wk:()=>oe});var r=D(177),g=D(4438),$=function(Re){return Re[Re.State=0]="State",Re[Re.Transition=1]="Transition",Re[Re.Sequence=2]="Sequence",Re[Re.Group=3]="Group",Re[Re.Animate=4]="Animate",Re[Re.Keyframes=5]="Keyframes",Re[Re.Style=6]="Style",Re[Re.Trigger=7]="Trigger",Re[Re.Reference=8]="Reference",Re[Re.AnimateChild=9]="AnimateChild",Re[Re.AnimateRef=10]="AnimateRef",Re[Re.Query=11]="Query",Re[Re.Stagger=12]="Stagger",Re}($||{});const F="*";function se(Re,ze){return{type:$.Trigger,name:Re,definitions:ze,options:{}}}function ie(Re,ze=null){return{type:$.Animate,styles:ze,timings:Re}}function A(Re,ze=null){return{type:$.Group,steps:Re,options:ze}}function H(Re,ze=null){return{type:$.Sequence,steps:Re,options:ze}}function Z(Re){return{type:$.Style,styles:Re,offset:null}}function oe(Re,ze,dt){return{type:$.State,name:Re,styles:ze,options:dt}}function de(Re){return{type:$.Keyframes,steps:Re}}function Ee(Re,ze,dt=null){return{type:$.Transition,expr:Re,animation:ze,options:dt}}function Te(Re,ze=null){return{type:$.Reference,animation:Re,options:ze}}function xe(Re=null){return{type:$.AnimateChild,options:Re}}function we(Re,ze=null){return{type:$.AnimateRef,animation:Re,options:ze}}function $e(Re,ze,dt=null){return{type:$.Query,selector:Re,animation:ze,options:dt}}let mt=(()=>{class Re{static#e=this.\u0275fac=function(Bt){return new(Bt||Re)};static#t=this.\u0275prov=g.jDH({token:Re,factory:()=>(0,g.WQX)(It),providedIn:"root"})}return Re})();class tt{}let It=(()=>{class Re extends mt{constructor(dt,Bt){if(super(),this.animationModuleType=(0,g.WQX)(g.bc$,{optional:!0}),this._nextAnimationId=0,this._renderer=dt.createRenderer(Bt.body,{id:"0",encapsulation:g.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function Xe(Re){const ze=Re.\u0275type;return 0===ze||1===ze}(this._renderer))throw new g.wOt(3600,!1)}build(dt){const Bt=this._nextAnimationId;this._nextAnimationId++;const Qt=Array.isArray(dt)?H(dt):dt;return Ke(this._renderer,null,Bt,"register",[Qt]),new Ye(Bt,this._renderer)}static#e=this.\u0275fac=function(Bt){return new(Bt||Re)(g.KVO(g._9s),g.KVO(r.qQ))};static#t=this.\u0275prov=g.jDH({token:Re,factory:Re.\u0275fac,providedIn:"root"})}return Re})();class Ye extends tt{constructor(ze,dt){super(),this._id=ze,this._renderer=dt}create(ze,dt){return new Oe(this._id,ze,dt||{},this._renderer)}}class Oe{constructor(ze,dt,Bt,Qt){this.id=ze,this.element=dt,this._renderer=Qt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Bt)}_listen(ze,dt){return this._renderer.listen(this.element,`@@${this.id}:${ze}`,dt)}_command(ze,...dt){Ke(this._renderer,this.element,this.id,ze,dt)}onDone(ze){this._listen("done",ze)}onStart(ze){this._listen("start",ze)}onDestroy(ze){this._listen("destroy",ze)}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(ze){this._command("setPosition",ze)}getPosition(){return function Dt(Re){const ze=Re.\u0275type;return 0===ze?Re:1===ze?Re.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}}function Ke(Re,ze,dt,Bt,Qt){Re.setProperty(ze,`@@${dt}:${Bt}`,Qt)}class it{constructor(ze=0,dt=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=ze+dt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ze=>ze()),this._onDoneFns=[])}onStart(ze){this._originalOnStartFns.push(ze),this._onStartFns.push(ze)}onDone(ze){this._originalOnDoneFns.push(ze),this._onDoneFns.push(ze)}onDestroy(ze){this._onDestroyFns.push(ze)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ze=>ze()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ze=>ze()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(ze){this._position=this.totalTime?ze*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ze){const dt="start"==ze?this._onStartFns:this._onDoneFns;dt.forEach(Bt=>Bt()),dt.length=0}}class ut{constructor(ze){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ze;let dt=0,Bt=0,Qt=0;const Zt=this.players.length;0==Zt?queueMicrotask(()=>this._onFinish()):this.players.forEach(Mn=>{Mn.onDone(()=>{++dt==Zt&&this._onFinish()}),Mn.onDestroy(()=>{++Bt==Zt&&this._onDestroy()}),Mn.onStart(()=>{++Qt==Zt&&this._onStart()})}),this.totalTime=this.players.reduce((Mn,ke)=>Math.max(Mn,ke.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ze=>ze()),this._onDoneFns=[])}init(){this.players.forEach(ze=>ze.init())}onStart(ze){this._onStartFns.push(ze)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ze=>ze()),this._onStartFns=[])}onDone(ze){this._onDoneFns.push(ze)}onDestroy(ze){this._onDestroyFns.push(ze)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ze=>ze.play())}pause(){this.players.forEach(ze=>ze.pause())}restart(){this.players.forEach(ze=>ze.restart())}finish(){this._onFinish(),this.players.forEach(ze=>ze.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ze=>ze.destroy()),this._onDestroyFns.forEach(ze=>ze()),this._onDestroyFns=[])}reset(){this.players.forEach(ze=>ze.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ze){const dt=ze*this.totalTime;this.players.forEach(Bt=>{const Qt=Bt.totalTime?Math.min(1,dt/Bt.totalTime):1;Bt.setPosition(Qt)})}getPosition(){const ze=this.players.reduce((dt,Bt)=>null===dt||Bt.totalTime>dt.totalTime?Bt:dt,null);return null!=ze?ze.getPosition():0}beforeDestroy(){this.players.forEach(ze=>{ze.beforeDestroy&&ze.beforeDestroy()})}triggerCallback(ze){const dt="start"==ze?this._onStartFns:this._onDoneFns;dt.forEach(Bt=>Bt()),dt.length=0}}const Ot="!"},8617:(st,Ce,D)=>{D.d(Ce,{Ae:()=>Oe,Ai:()=>Pn,Au:()=>Bt,Bu:()=>Qt,FN:()=>Kt,Pd:()=>ii,Q_:()=>Fr,_G:()=>vr,kB:()=>ir,px:()=>Ye,vR:()=>en,vr:()=>Ot,w6:()=>Yn});var r=D(177),g=D(4438),$=D(6860),F=D(1413),se=D(8359),ie=D(4412),A=D(7673),H=D(7336),Z=D(8141),oe=D(152),de=D(5964),Ee=D(6354),Te=D(6697),xe=D(5245),we=D(3294),$e=D(6977),We=D(4085),mt=D(2318),tt=D(9327);const It=" ";function Ye(Ve,Y,B){const x=Ke(Ve,Y);x.some(K=>K.trim()==B.trim())||(x.push(B.trim()),Ve.setAttribute(Y,x.join(It)))}function Oe(Ve,Y,B){const K=Ke(Ve,Y).filter(G=>G!=B.trim());K.length?Ve.setAttribute(Y,K.join(It)):Ve.removeAttribute(Y)}function Ke(Ve,Y){return(Ve.getAttribute(Y)||"").match(/\S+/g)||[]}const Xe="cdk-describedby-message",it="cdk-describedby-host";let ut=0,Ot=(()=>{class Ve{constructor(B,x){this._platform=x,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ut++,this._document=B,this._id=(0,g.WQX)(g.sZ2)+"-"+ut++}describe(B,x,K){if(!this._canBeDescribed(B,x))return;const G=Re(x,K);"string"!=typeof x?(ze(x,this._id),this._messageRegistry.set(G,{messageElement:x,referenceCount:0})):this._messageRegistry.has(G)||this._createMessageElement(x,K),this._isElementDescribedByMessage(B,G)||this._addMessageReference(B,G)}removeDescription(B,x,K){if(!x||!this._isElementNode(B))return;const G=Re(x,K);if(this._isElementDescribedByMessage(B,G)&&this._removeMessageReference(B,G),"string"==typeof x){const Ae=this._messageRegistry.get(G);Ae&&0===Ae.referenceCount&&this._deleteMessageElement(G)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const B=this._document.querySelectorAll(`[${it}="${this._id}"]`);for(let x=0;x0!=K.indexOf(Xe));B.setAttribute("aria-describedby",x.join(" "))}_addMessageReference(B,x){const K=this._messageRegistry.get(x);Ye(B,"aria-describedby",K.messageElement.id),B.setAttribute(it,this._id),K.referenceCount++}_removeMessageReference(B,x){const K=this._messageRegistry.get(x);K.referenceCount--,Oe(B,"aria-describedby",K.messageElement.id),B.removeAttribute(it)}_isElementDescribedByMessage(B,x){const K=Ke(B,"aria-describedby"),G=this._messageRegistry.get(x),Ae=G&&G.messageElement.id;return!!Ae&&-1!=K.indexOf(Ae)}_canBeDescribed(B,x){if(!this._isElementNode(B))return!1;if(x&&"object"==typeof x)return!0;const K=null==x?"":`${x}`.trim(),G=B.getAttribute("aria-label");return!(!K||G&&G.trim()===K)}_isElementNode(B){return B.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(x){return new(x||Ve)(g.KVO(r.qQ),g.KVO($.OD))};static#t=this.\u0275prov=g.jDH({token:Ve,factory:Ve.\u0275fac,providedIn:"root"})}return Ve})();function Re(Ve,Y){return"string"==typeof Ve?`${Y||""}/${Ve}`:Ve}function ze(Ve,Y){Ve.id||(Ve.id=`${Xe}-${Y}-${ut++}`)}class dt{constructor(Y){this._items=Y,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new F.B,this._typeaheadSubscription=se.yU.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=B=>B.disabled,this._pressedLetters=[],this.tabOut=new F.B,this.change=new F.B,Y instanceof g.rOR&&(this._itemChangesSubscription=Y.changes.subscribe(B=>{if(this._activeItem){const K=B.toArray().indexOf(this._activeItem);K>-1&&K!==this._activeItemIndex&&(this._activeItemIndex=K)}}))}skipPredicate(Y){return this._skipPredicateFn=Y,this}withWrap(Y=!0){return this._wrap=Y,this}withVerticalOrientation(Y=!0){return this._vertical=Y,this}withHorizontalOrientation(Y){return this._horizontal=Y,this}withAllowedModifierKeys(Y){return this._allowedModifierKeys=Y,this}withTypeAhead(Y=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Z.M)(B=>this._pressedLetters.push(B)),(0,oe.B)(Y),(0,de.p)(()=>this._pressedLetters.length>0),(0,Ee.T)(()=>this._pressedLetters.join(""))).subscribe(B=>{const x=this._getItemsArray();for(let K=1;K!Y[G]||this._allowedModifierKeys.indexOf(G)>-1);switch(B){case H.wn:return void this.tabOut.next();case H.n6:if(this._vertical&&K){this.setNextItemActive();break}return;case H.i7:if(this._vertical&&K){this.setPreviousItemActive();break}return;case H.LE:if(this._horizontal&&K){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case H.UQ:if(this._horizontal&&K){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case H.yZ:if(this._homeAndEnd&&K){this.setFirstItemActive();break}return;case H.Kp:if(this._homeAndEnd&&K){this.setLastItemActive();break}return;case H.w_:if(this._pageUpAndDown.enabled&&K){const G=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(G>0?G:0,1);break}return;case H.dB:if(this._pageUpAndDown.enabled&&K){const G=this._activeItemIndex+this._pageUpAndDown.delta,Ae=this._getItemsArray().length;this._setActiveItemByIndex(G=H.A&&B<=H.Z||B>=H.f2&&B<=H.bn)&&this._letterKeyStream.next(String.fromCharCode(B))))}this._pressedLetters=[],Y.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(Y){const B=this._getItemsArray(),x="number"==typeof Y?Y:B.indexOf(Y);this._activeItem=B[x]??null,this._activeItemIndex=x}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(Y){this._wrap?this._setActiveInWrapMode(Y):this._setActiveInDefaultMode(Y)}_setActiveInWrapMode(Y){const B=this._getItemsArray();for(let x=1;x<=B.length;x++){const K=(this._activeItemIndex+Y*x+B.length)%B.length;if(!this._skipPredicateFn(B[K]))return void this.setActiveItem(K)}}_setActiveInDefaultMode(Y){this._setActiveItemByIndex(this._activeItemIndex+Y,Y)}_setActiveItemByIndex(Y,B){const x=this._getItemsArray();if(x[Y]){for(;this._skipPredicateFn(x[Y]);)if(!x[Y+=B])return;this.setActiveItem(Y)}}_getItemsArray(){return this._items instanceof g.rOR?this._items.toArray():this._items}}class Bt extends dt{setActiveItem(Y){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Y),this.activeItem&&this.activeItem.setActiveStyles()}}class Qt extends dt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Y){return this._origin=Y,this}setActiveItem(Y){super.setActiveItem(Y),this.activeItem&&this.activeItem.focus(this._origin)}}let Mn=(()=>{class Ve{constructor(B){this._platform=B}isDisabled(B){return B.hasAttribute("disabled")}isVisible(B){return function ue(Ve){return!!(Ve.offsetWidth||Ve.offsetHeight||"function"==typeof Ve.getClientRects&&Ve.getClientRects().length)}(B)&&"visible"===getComputedStyle(B).visibility}isTabbable(B){if(!this._platform.isBrowser)return!1;const x=function ke(Ve){try{return Ve.frameElement}catch{return null}}(function Yt(Ve){return Ve.ownerDocument&&Ve.ownerDocument.defaultView||window}(B));if(x&&(-1===Gt(x)||!this.isVisible(x)))return!1;let K=B.nodeName.toLowerCase(),G=Gt(B);return B.hasAttribute("contenteditable")?-1!==G:!("iframe"===K||"object"===K||this._platform.WEBKIT&&this._platform.IOS&&!function Je(Ve){let Y=Ve.nodeName.toLowerCase(),B="input"===Y&&Ve.type;return"text"===B||"password"===B||"select"===Y||"textarea"===Y}(B))&&("audio"===K?!!B.hasAttribute("controls")&&-1!==G:"video"===K?-1!==G&&(null!==G||this._platform.FIREFOX||B.hasAttribute("controls")):B.tabIndex>=0)}isFocusable(B,x){return function Xt(Ve){return!function ne(Ve){return function Ie(Ve){return"input"==Ve.nodeName.toLowerCase()}(Ve)&&"hidden"==Ve.type}(Ve)&&(function J(Ve){let Y=Ve.nodeName.toLowerCase();return"input"===Y||"select"===Y||"button"===Y||"textarea"===Y}(Ve)||function fe(Ve){return function ot(Ve){return"a"==Ve.nodeName.toLowerCase()}(Ve)&&Ve.hasAttribute("href")}(Ve)||Ve.hasAttribute("contenteditable")||bt(Ve))}(B)&&!this.isDisabled(B)&&(x?.ignoreVisibility||this.isVisible(B))}static#e=this.\u0275fac=function(x){return new(x||Ve)(g.KVO($.OD))};static#t=this.\u0275prov=g.jDH({token:Ve,factory:Ve.\u0275fac,providedIn:"root"})}return Ve})();function bt(Ve){if(!Ve.hasAttribute("tabindex")||void 0===Ve.tabIndex)return!1;let Y=Ve.getAttribute("tabindex");return!(!Y||isNaN(parseInt(Y,10)))}function Gt(Ve){if(!bt(Ve))return null;const Y=parseInt(Ve.getAttribute("tabindex")||"",10);return isNaN(Y)?-1:Y}class gt{get enabled(){return this._enabled}set enabled(Y){this._enabled=Y,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Y,this._startAnchor),this._toggleAnchorTabIndex(Y,this._endAnchor))}constructor(Y,B,x,K,G=!1){this._element=Y,this._checker=B,this._ngZone=x,this._document=K,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,G||this.attachAnchors()}destroy(){const Y=this._startAnchor,B=this._endAnchor;Y&&(Y.removeEventListener("focus",this.startAnchorListener),Y.remove()),B&&(B.removeEventListener("focus",this.endAnchorListener),B.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(Y){return new Promise(B=>{this._executeOnStable(()=>B(this.focusInitialElement(Y)))})}focusFirstTabbableElementWhenReady(Y){return new Promise(B=>{this._executeOnStable(()=>B(this.focusFirstTabbableElement(Y)))})}focusLastTabbableElementWhenReady(Y){return new Promise(B=>{this._executeOnStable(()=>B(this.focusLastTabbableElement(Y)))})}_getRegionBoundary(Y){const B=this._element.querySelectorAll(`[cdk-focus-region-${Y}], [cdkFocusRegion${Y}], [cdk-focus-${Y}]`);return"start"==Y?B.length?B[0]:this._getFirstTabbableElement(this._element):B.length?B[B.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Y){const B=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(B){if(!this._checker.isFocusable(B)){const x=this._getFirstTabbableElement(B);return x?.focus(Y),!!x}return B.focus(Y),!0}return this.focusFirstTabbableElement(Y)}focusFirstTabbableElement(Y){const B=this._getRegionBoundary("start");return B&&B.focus(Y),!!B}focusLastTabbableElement(Y){const B=this._getRegionBoundary("end");return B&&B.focus(Y),!!B}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Y){if(this._checker.isFocusable(Y)&&this._checker.isTabbable(Y))return Y;const B=Y.children;for(let x=0;x=0;x--){const K=B[x].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(B[x]):null;if(K)return K}return null}_createAnchor(){const Y=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Y),Y.classList.add("cdk-visually-hidden"),Y.classList.add("cdk-focus-trap-anchor"),Y.setAttribute("aria-hidden","true"),Y}_toggleAnchorTabIndex(Y,B){Y?B.setAttribute("tabindex","0"):B.removeAttribute("tabindex")}toggleAnchors(Y){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Y,this._startAnchor),this._toggleAnchorTabIndex(Y,this._endAnchor))}_executeOnStable(Y){this._ngZone.isStable?Y():this._ngZone.onStable.pipe((0,Te.s)(1)).subscribe(Y)}}let cn=(()=>{class Ve{constructor(B,x,K){this._checker=B,this._ngZone=x,this._document=K}create(B,x=!1){return new gt(B,this._checker,this._ngZone,this._document,x)}static#e=this.\u0275fac=function(x){return new(x||Ve)(g.KVO(Mn),g.KVO(g.SKi),g.KVO(r.qQ))};static#t=this.\u0275prov=g.jDH({token:Ve,factory:Ve.\u0275fac,providedIn:"root"})}return Ve})(),ir=(()=>{class Ve{get enabled(){return this.focusTrap.enabled}set enabled(B){this.focusTrap.enabled=(0,We.he)(B)}get autoCapture(){return this._autoCapture}set autoCapture(B){this._autoCapture=(0,We.he)(B)}constructor(B,x,K){this._elementRef=B,this._focusTrapFactory=x,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(B){const x=B.autoCapture;x&&!x.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,$.vc)(),this.focusTrap.focusInitialElementWhenReady()}static#e=this.\u0275fac=function(x){return new(x||Ve)(g.rXU(g.aKT),g.rXU(cn),g.rXU(r.qQ))};static#t=this.\u0275dir=g.FsC({type:Ve,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[g.Mj6.None,"cdkTrapFocus","enabled"],autoCapture:[g.Mj6.None,"cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[g.OA$]})}return Ve})();function vr(Ve){return 0===Ve.buttons||0===Ve.detail}function Yn(Ve){const Y=Ve.touches&&Ve.touches[0]||Ve.changedTouches&&Ve.changedTouches[0];return!(!Y||-1!==Y.identifier||null!=Y.radiusX&&1!==Y.radiusX||null!=Y.radiusY&&1!==Y.radiusY)}const er=new g.nKC("cdk-input-modality-detector-options"),yr={ignoreKeys:[H.A$,H.W3,H.eg,H.Ge,H.FX]},Ft=(0,$.BQ)({passive:!0,capture:!0});let Vt=(()=>{class Ve{get mostRecentModality(){return this._modality.value}constructor(B,x,K,G){this._platform=B,this._mostRecentTarget=null,this._modality=new ie.t(null),this._lastTouchMs=0,this._onKeydown=Ae=>{this._options?.ignoreKeys?.some(Q=>Q===Ae.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,$.Fb)(Ae))},this._onMousedown=Ae=>{Date.now()-this._lastTouchMs<650||(this._modality.next(vr(Ae)?"keyboard":"mouse"),this._mostRecentTarget=(0,$.Fb)(Ae))},this._onTouchstart=Ae=>{Yn(Ae)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,$.Fb)(Ae))},this._options={...yr,...G},this.modalityDetected=this._modality.pipe((0,xe.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,we.F)()),B.isBrowser&&x.runOutsideAngular(()=>{K.addEventListener("keydown",this._onKeydown,Ft),K.addEventListener("mousedown",this._onMousedown,Ft),K.addEventListener("touchstart",this._onTouchstart,Ft)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ft),document.removeEventListener("mousedown",this._onMousedown,Ft),document.removeEventListener("touchstart",this._onTouchstart,Ft))}static#e=this.\u0275fac=function(x){return new(x||Ve)(g.KVO($.OD),g.KVO(g.SKi),g.KVO(r.qQ),g.KVO(er,8))};static#t=this.\u0275prov=g.jDH({token:Ve,factory:Ve.\u0275fac,providedIn:"root"})}return Ve})();const Ln=new g.nKC("liveAnnouncerElement",{providedIn:"root",factory:function Kn(){return null}}),Un=new g.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let qt=0,Pn=(()=>{class Ve{constructor(B,x,K,G){this._ngZone=x,this._defaultOptions=G,this._document=K,this._liveElement=B||this._createLiveElement()}announce(B,...x){const K=this._defaultOptions;let G,Ae;return 1===x.length&&"number"==typeof x[0]?Ae=x[0]:[G,Ae]=x,this.clear(),clearTimeout(this._previousTimeout),G||(G=K&&K.politeness?K.politeness:"polite"),null==Ae&&K&&(Ae=K.duration),this._liveElement.setAttribute("aria-live",G),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Q=>this._currentResolve=Q)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=B,"number"==typeof Ae&&(this._previousTimeout=setTimeout(()=>this.clear(),Ae)),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 B="cdk-live-announcer-element",x=this._document.getElementsByClassName(B),K=this._document.createElement("div");for(let G=0;G .cdk-overlay-container [aria-modal="true"]');for(let K=0;K{class Ve{constructor(B,x,K,G,Ae){this._ngZone=B,this._platform=x,this._inputModalityDetector=K,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 F.B,this._rootNodeFocusAndBlurListener=Q=>{for(let re=(0,$.Fb)(Q);re;re=re.parentElement)"focus"===Q.type?this._onFocus(Q,re):this._onBlur(Q,re)},this._document=G,this._detectionMode=Ae?.detectionMode||0}monitor(B,x=!1){const K=(0,We.i8)(B);if(!this._platform.isBrowser||1!==K.nodeType)return(0,A.of)();const G=(0,$.KT)(K)||this._getDocument(),Ae=this._elementInfo.get(K);if(Ae)return x&&(Ae.checkChildren=!0),Ae.subject;const Q={checkChildren:x,subject:new F.B,rootNode:G};return this._elementInfo.set(K,Q),this._registerGlobalListeners(Q),Q.subject}stopMonitoring(B){const x=(0,We.i8)(B),K=this._elementInfo.get(x);K&&(K.subject.complete(),this._setClasses(x),this._elementInfo.delete(x),this._removeGlobalListeners(K))}focusVia(B,x,K){const G=(0,We.i8)(B);G===this._getDocument().activeElement?this._getClosestElementsInfo(G).forEach(([Q,ve])=>this._originChanged(Q,x,ve)):(this._setOrigin(x),"function"==typeof G.focus&&G.focus(K))}ngOnDestroy(){this._elementInfo.forEach((B,x)=>this.stopMonitoring(x))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(B){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(B)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:B&&this._isLastInteractionFromInputLabel(B)?"mouse":"program"}_shouldBeAttributedToTouch(B){return 1===this._detectionMode||!!B?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(B,x){B.classList.toggle("cdk-focused",!!x),B.classList.toggle("cdk-touch-focused","touch"===x),B.classList.toggle("cdk-keyboard-focused","keyboard"===x),B.classList.toggle("cdk-mouse-focused","mouse"===x),B.classList.toggle("cdk-program-focused","program"===x)}_setOrigin(B,x=!1){this._ngZone.runOutsideAngular(()=>{this._origin=B,this._originFromTouchInteraction="touch"===B&&x,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(B,x){const K=this._elementInfo.get(x),G=(0,$.Fb)(B);!K||!K.checkChildren&&x!==G||this._originChanged(x,this._getFocusOrigin(G),K)}_onBlur(B,x){const K=this._elementInfo.get(x);!K||K.checkChildren&&B.relatedTarget instanceof Node&&x.contains(B.relatedTarget)||(this._setClasses(x),this._emitOrigin(K,null))}_emitOrigin(B,x){B.subject.observers.length&&this._ngZone.run(()=>B.subject.next(x))}_registerGlobalListeners(B){if(!this._platform.isBrowser)return;const x=B.rootNode,K=this._rootNodeFocusListenerCount.get(x)||0;K||this._ngZone.runOutsideAngular(()=>{x.addEventListener("focus",this._rootNodeFocusAndBlurListener,wr),x.addEventListener("blur",this._rootNodeFocusAndBlurListener,wr)}),this._rootNodeFocusListenerCount.set(x,K+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,$e.Q)(this._stopInputModalityDetector)).subscribe(G=>{this._setOrigin(G,!0)}))}_removeGlobalListeners(B){const x=B.rootNode;if(this._rootNodeFocusListenerCount.has(x)){const K=this._rootNodeFocusListenerCount.get(x);K>1?this._rootNodeFocusListenerCount.set(x,K-1):(x.removeEventListener("focus",this._rootNodeFocusAndBlurListener,wr),x.removeEventListener("blur",this._rootNodeFocusAndBlurListener,wr),this._rootNodeFocusListenerCount.delete(x))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(B,x,K){this._setClasses(B,x),this._emitOrigin(K,x),this._lastFocusOrigin=x}_getClosestElementsInfo(B){const x=[];return this._elementInfo.forEach((K,G)=>{(G===B||K.checkChildren&&G.contains(B))&&x.push([G,K])}),x}_isLastInteractionFromInputLabel(B){const{_mostRecentTarget:x,mostRecentModality:K}=this._inputModalityDetector;if("mouse"!==K||!x||x===B||"INPUT"!==B.nodeName&&"TEXTAREA"!==B.nodeName||B.disabled)return!1;const G=B.labels;if(G)for(let Ae=0;Ae{class Ve{constructor(B,x){this._elementRef=B,this._focusMonitor=x,this._focusOrigin=null,this.cdkFocusChange=new g.bkB}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const B=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(B,1===B.nodeType&&B.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(x=>{this._focusOrigin=x,this.cdkFocusChange.emit(x)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(x){return new(x||Ve)(g.rXU(g.aKT),g.rXU(Kt))};static#t=this.\u0275dir=g.FsC({type:Ve,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return Ve})();const xr="cdk-high-contrast-black-on-white",tn="cdk-high-contrast-white-on-black",Xn="cdk-high-contrast-active";let Fr=(()=>{class Ve{constructor(B,x){this._platform=B,this._document=x,this._breakpointSubscription=(0,g.WQX)(tt.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const B=this._document.createElement("div");B.style.backgroundColor="rgb(1,2,3)",B.style.position="absolute",this._document.body.appendChild(B);const x=this._document.defaultView||window,K=x&&x.getComputedStyle?x.getComputedStyle(B):null,G=(K&&K.backgroundColor||"").replace(/ /g,"");switch(B.remove(),G){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 B=this._document.body.classList;B.remove(Xn,xr,tn),this._hasCheckedHighContrastMode=!0;const x=this.getHighContrastMode();1===x?B.add(Xn,xr):2===x&&B.add(Xn,tn)}}static#e=this.\u0275fac=function(x){return new(x||Ve)(g.KVO($.OD),g.KVO(r.qQ))};static#t=this.\u0275prov=g.jDH({token:Ve,factory:Ve.\u0275fac,providedIn:"root"})}return Ve})(),ii=(()=>{class Ve{constructor(B){B._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(x){return new(x||Ve)(g.KVO(Fr))};static#t=this.\u0275mod=g.$C({type:Ve});static#n=this.\u0275inj=g.G2t({imports:[mt.w5]})}return Ve})()},8203:(st,Ce,D)=>{D.d(Ce,{dS:()=>A,jI:()=>Z});var r=D(4438),g=D(177);const $=new r.nKC("cdk-dir-doc",{providedIn:"root",factory:function F(){return(0,r.WQX)(g.qQ)}}),se=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let A=(()=>{class oe{constructor(Ee){this.value="ltr",this.change=new r.bkB,Ee&&(this.value=function ie(oe){const de=oe?.toLowerCase()||"";return"auto"===de&&typeof navigator<"u"&&navigator?.language?se.test(navigator.language)?"rtl":"ltr":"rtl"===de?"rtl":"ltr"}((Ee.body?Ee.body.dir:null)||(Ee.documentElement?Ee.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(Te){return new(Te||oe)(r.KVO($,8))};static#t=this.\u0275prov=r.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})(),Z=(()=>{class oe{static#e=this.\u0275fac=function(Te){return new(Te||oe)};static#t=this.\u0275mod=r.$C({type:oe});static#n=this.\u0275inj=r.G2t({})}return oe})()},4085:(st,Ce,D)=>{D.d(Ce,{FG:()=>se,OE:()=>$,a1:()=>ie,cc:()=>H,he:()=>g,i8:()=>A});var r=D(4438);function g(Z){return null!=Z&&"false"!=`${Z}`}function $(Z,oe=0){return function F(Z){return!isNaN(parseFloat(Z))&&!isNaN(Number(Z))}(Z)?Number(Z):oe}function se(Z){return Array.isArray(Z)?Z:[Z]}function ie(Z){return null==Z?"":"string"==typeof Z?Z:`${Z}px`}function A(Z){return Z instanceof r.aKT?Z.nativeElement:Z}function H(Z,oe=/\s+/){const de=[];if(null!=Z){const Ee=Array.isArray(Z)?Z:`${Z}`.split(oe);for(const Te of Ee){const xe=`${Te}`.trim();xe&&de.push(xe)}}return de}},7336:(st,Ce,D)=>{D.d(Ce,{A:()=>ne,A$:()=>H,FX:()=>ie,Fm:()=>se,Ge:()=>Un,Kp:()=>we,LE:()=>tt,UQ:()=>We,W3:()=>A,Z:()=>Kn,_f:()=>de,bn:()=>Zt,dB:()=>xe,eg:()=>Nt,f2:()=>Xe,i7:()=>mt,n6:()=>It,rp:()=>ln,t6:()=>Ee,w_:()=>Te,wn:()=>$,yZ:()=>$e});const $=9,se=13,ie=16,A=17,H=18,de=27,Ee=32,Te=33,xe=34,we=35,$e=36,We=37,mt=38,tt=39,It=40,Xe=48,Zt=57,ne=65,Kn=90,Un=91,Nt=224;function ln(An,...Qn){return Qn.length?Qn.some(jn=>An[jn]):An.altKey||An.shiftKey||An.ctrlKey||An.metaKey}},9327:(st,Ce,D)=>{D.d(Ce,{QP:()=>It});var r=D(4438),g=D(4085),$=D(1413),F=D(4572),se=D(8793),ie=D(1985),A=D(6697),H=D(5245),Z=D(152),oe=D(6354),de=D(9172),Ee=D(6977),Te=D(6860);const we=new Set;let $e,We=(()=>{class Ke{constructor(Xe,it){this._platform=Xe,this._nonce=it,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):tt}matchMedia(Xe){return(this._platform.WEBKIT||this._platform.BLINK)&&function mt(Ke,Dt){if(!we.has(Ke))try{$e||($e=document.createElement("style"),Dt&&($e.nonce=Dt),$e.setAttribute("type","text/css"),document.head.appendChild($e)),$e.sheet&&($e.sheet.insertRule(`@media ${Ke} {body{ }}`,0),we.add(Ke))}catch(Xe){console.error(Xe)}}(Xe,this._nonce),this._matchMedia(Xe)}static#e=this.\u0275fac=function(it){return new(it||Ke)(r.KVO(Te.OD),r.KVO(r.BIS,8))};static#t=this.\u0275prov=r.jDH({token:Ke,factory:Ke.\u0275fac,providedIn:"root"})}return Ke})();function tt(Ke){return{matches:"all"===Ke||""===Ke,media:Ke,addListener:()=>{},removeListener:()=>{}}}let It=(()=>{class Ke{constructor(Xe,it){this._mediaMatcher=Xe,this._zone=it,this._queries=new Map,this._destroySubject=new $.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Xe){return Ye((0,g.FG)(Xe)).some(ut=>this._registerQuery(ut).mql.matches)}observe(Xe){const ut=Ye((0,g.FG)(Xe)).map(Re=>this._registerQuery(Re).observable);let Ot=(0,F.z)(ut);return Ot=(0,se.x)(Ot.pipe((0,A.s)(1)),Ot.pipe((0,H.i)(1),(0,Z.B)(0))),Ot.pipe((0,oe.T)(Re=>{const ze={matches:!1,breakpoints:{}};return Re.forEach(({matches:dt,query:Bt})=>{ze.matches=ze.matches||dt,ze.breakpoints[Bt]=dt}),ze}))}_registerQuery(Xe){if(this._queries.has(Xe))return this._queries.get(Xe);const it=this._mediaMatcher.matchMedia(Xe),Ot={observable:new ie.c(Re=>{const ze=dt=>this._zone.run(()=>Re.next(dt));return it.addListener(ze),()=>{it.removeListener(ze)}}).pipe((0,de.Z)(it),(0,oe.T)(({matches:Re})=>({query:Xe,matches:Re})),(0,Ee.Q)(this._destroySubject)),mql:it};return this._queries.set(Xe,Ot),Ot}static#e=this.\u0275fac=function(it){return new(it||Ke)(r.KVO(We),r.KVO(r.SKi))};static#t=this.\u0275prov=r.jDH({token:Ke,factory:Ke.\u0275fac,providedIn:"root"})}return Ke})();function Ye(Ke){return Ke.map(Dt=>Dt.split(",")).reduce((Dt,Xe)=>Dt.concat(Xe)).map(Dt=>Dt.trim())}},2318:(st,Ce,D)=>{D.d(Ce,{w5:()=>se});var r=D(4438);let g=(()=>{class ie{create(H){return typeof MutationObserver>"u"?null:new MutationObserver(H)}static#e=this.\u0275fac=function(Z){return new(Z||ie)};static#t=this.\u0275prov=r.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})}return ie})(),se=(()=>{class ie{static#e=this.\u0275fac=function(Z){return new(Z||ie)};static#t=this.\u0275mod=r.$C({type:ie});static#n=this.\u0275inj=r.G2t({providers:[g]})}return ie})()},6860:(st,Ce,D)=>{D.d(Ce,{BD:()=>we,BQ:()=>de,CZ:()=>xe,Fb:()=>It,KT:()=>mt,MU:()=>H,OD:()=>F,v8:()=>Ye,vc:()=>tt});var r=D(4438),g=D(177);let $;try{$=typeof Intl<"u"&&Intl.v8BreakIterator}catch{$=!1}let ie,F=(()=>{class Oe{constructor(Dt){this._platformId=Dt,this.isBrowser=this._platformId?(0,g.UE)(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&&!$)&&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}static#e=this.\u0275fac=function(Xe){return new(Xe||Oe)(r.KVO(r.Agw))};static#t=this.\u0275prov=r.jDH({token:Oe,factory:Oe.\u0275fac,providedIn:"root"})}return Oe})();const A=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function H(){if(ie)return ie;if("object"!=typeof document||!document)return ie=new Set(A),ie;let Oe=document.createElement("input");return ie=new Set(A.filter(Ke=>(Oe.setAttribute("type",Ke),Oe.type===Ke))),ie}let Z,Ee,Te,$e;function de(Oe){return function oe(){if(null==Z&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Z=!0}))}finally{Z=Z||!1}return Z}()?Oe:!!Oe.capture}function xe(){if(null==Te){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Te=!1,Te;if("scrollBehavior"in document.documentElement.style)Te=!0;else{const Oe=Element.prototype.scrollTo;Te=!!Oe&&!/\{\s*\[native code\]\s*\}/.test(Oe.toString())}}return Te}function we(){if("object"!=typeof document||!document)return 0;if(null==Ee){const Oe=document.createElement("div"),Ke=Oe.style;Oe.dir="rtl",Ke.width="1px",Ke.overflow="auto",Ke.visibility="hidden",Ke.pointerEvents="none",Ke.position="absolute";const Dt=document.createElement("div"),Xe=Dt.style;Xe.width="2px",Xe.height="1px",Oe.appendChild(Dt),document.body.appendChild(Oe),Ee=0,0===Oe.scrollLeft&&(Oe.scrollLeft=1,Ee=0===Oe.scrollLeft?1:2),Oe.remove()}return Ee}function mt(Oe){if(function We(){if(null==$e){const Oe=typeof document<"u"?document.head:null;$e=!(!Oe||!Oe.createShadowRoot&&!Oe.attachShadow)}return $e}()){const Ke=Oe.getRootNode?Oe.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&Ke instanceof ShadowRoot)return Ke}return null}function tt(){let Oe=typeof document<"u"&&document?document.activeElement:null;for(;Oe&&Oe.shadowRoot;){const Ke=Oe.shadowRoot.activeElement;if(Ke===Oe)break;Oe=Ke}return Oe}function It(Oe){return Oe.composedPath?Oe.composedPath()[0]:Oe.target}function Ye(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},177:(st,Ce,D)=>{D.d(Ce,{AJ:()=>ns,B3:()=>Ut,Jj:()=>pn,MD:()=>Co,N0:()=>Yo,QT:()=>$,Sm:()=>$e,Sq:()=>Rt,T3:()=>Tn,UE:()=>Vi,VF:()=>se,Vy:()=>pa,Xr:()=>Rs,YU:()=>Le,ZD:()=>F,_b:()=>ye,aZ:()=>mt,bT:()=>ln,e1:()=>_r,fG:()=>wi,fw:()=>We,hb:()=>xe,hj:()=>Z,lG:()=>Bi,qQ:()=>A,ux:()=>En,vh:()=>Kr});var r=D(4438);let g=null;function $(){return g}function F(w){g??=w}class se{}const A=new r.nKC("");let H=(()=>{class w{historyGo(S){throw new Error("")}static#e=this.\u0275fac=function(N){return new(N||w)};static#t=this.\u0275prov=r.jDH({token:w,factory:()=>(0,r.WQX)(oe),providedIn:"platform"})}return w})();const Z=new r.nKC("");let oe=(()=>{class w extends H{constructor(){super(),this._doc=(0,r.WQX)(A),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return $().getBaseHref(this._doc)}onPopState(S){const N=$().getGlobalEventTarget(this._doc,"window");return N.addEventListener("popstate",S,!1),()=>N.removeEventListener("popstate",S)}onHashChange(S){const N=$().getGlobalEventTarget(this._doc,"window");return N.addEventListener("hashchange",S,!1),()=>N.removeEventListener("hashchange",S)}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(S){this._location.pathname=S}pushState(S,N,he){this._history.pushState(S,N,he)}replaceState(S,N,he){this._history.replaceState(S,N,he)}forward(){this._history.forward()}back(){this._history.back()}historyGo(S=0){this._history.go(S)}getState(){return this._history.state}static#e=this.\u0275fac=function(N){return new(N||w)};static#t=this.\u0275prov=r.jDH({token:w,factory:()=>new w,providedIn:"platform"})}return w})();function de(w,j){if(0==w.length)return j;if(0==j.length)return w;let S=0;return w.endsWith("/")&&S++,j.startsWith("/")&&S++,2==S?w+j.substring(1):1==S?w+j:w+"/"+j}function Ee(w){const j=w.match(/#|\?|$/),S=j&&j.index||w.length;return w.slice(0,S-("/"===w[S-1]?1:0))+w.slice(S)}function Te(w){return w&&"?"!==w[0]?"?"+w:w}let xe=(()=>{class w{historyGo(S){throw new Error("")}static#e=this.\u0275fac=function(N){return new(N||w)};static#t=this.\u0275prov=r.jDH({token:w,factory:()=>(0,r.WQX)($e),providedIn:"root"})}return w})();const we=new r.nKC("");let $e=(()=>{class w extends xe{constructor(S,N){super(),this._platformLocation=S,this._removeListenerFns=[],this._baseHref=N??this._platformLocation.getBaseHrefFromDOM()??(0,r.WQX)(A).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(S){this._removeListenerFns.push(this._platformLocation.onPopState(S),this._platformLocation.onHashChange(S))}getBaseHref(){return this._baseHref}prepareExternalUrl(S){return de(this._baseHref,S)}path(S=!1){const N=this._platformLocation.pathname+Te(this._platformLocation.search),he=this._platformLocation.hash;return he&&S?`${N}${he}`:N}pushState(S,N,he,Be){const Qe=this.prepareExternalUrl(he+Te(Be));this._platformLocation.pushState(S,N,Qe)}replaceState(S,N,he,Be){const Qe=this.prepareExternalUrl(he+Te(Be));this._platformLocation.replaceState(S,N,Qe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(S=0){this._platformLocation.historyGo?.(S)}static#e=this.\u0275fac=function(N){return new(N||w)(r.KVO(H),r.KVO(we,8))};static#t=this.\u0275prov=r.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})(),We=(()=>{class w extends xe{constructor(S,N){super(),this._platformLocation=S,this._baseHref="",this._removeListenerFns=[],null!=N&&(this._baseHref=N)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(S){this._removeListenerFns.push(this._platformLocation.onPopState(S),this._platformLocation.onHashChange(S))}getBaseHref(){return this._baseHref}path(S=!1){const N=this._platformLocation.hash??"#";return N.length>0?N.substring(1):N}prepareExternalUrl(S){const N=de(this._baseHref,S);return N.length>0?"#"+N:N}pushState(S,N,he,Be){let Qe=this.prepareExternalUrl(he+Te(Be));0==Qe.length&&(Qe=this._platformLocation.pathname),this._platformLocation.pushState(S,N,Qe)}replaceState(S,N,he,Be){let Qe=this.prepareExternalUrl(he+Te(Be));0==Qe.length&&(Qe=this._platformLocation.pathname),this._platformLocation.replaceState(S,N,Qe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(S=0){this._platformLocation.historyGo?.(S)}static#e=this.\u0275fac=function(N){return new(N||w)(r.KVO(H),r.KVO(we,8))};static#t=this.\u0275prov=r.jDH({token:w,factory:w.\u0275fac})}return w})(),mt=(()=>{class w{constructor(S){this._subject=new r.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=S;const N=this._locationStrategy.getBaseHref();this._basePath=function Oe(w){if(new RegExp("^(https?:)?//").test(w)){const[,S]=w.split(/\/\/[^\/]+/);return S}return w}(Ee(Ye(N))),this._locationStrategy.onPopState(he=>{this._subject.emit({url:this.path(!0),pop:!0,state:he.state,type:he.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(S=!1){return this.normalize(this._locationStrategy.path(S))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(S,N=""){return this.path()==this.normalize(S+Te(N))}normalize(S){return w.stripTrailingSlash(function It(w,j){if(!w||!j.startsWith(w))return j;const S=j.substring(w.length);return""===S||["/",";","?","#"].includes(S[0])?S:j}(this._basePath,Ye(S)))}prepareExternalUrl(S){return S&&"/"!==S[0]&&(S="/"+S),this._locationStrategy.prepareExternalUrl(S)}go(S,N="",he=null){this._locationStrategy.pushState(he,"",S,N),this._notifyUrlChangeListeners(this.prepareExternalUrl(S+Te(N)),he)}replaceState(S,N="",he=null){this._locationStrategy.replaceState(he,"",S,N),this._notifyUrlChangeListeners(this.prepareExternalUrl(S+Te(N)),he)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(S=0){this._locationStrategy.historyGo?.(S)}onUrlChange(S){return this._urlChangeListeners.push(S),this._urlChangeSubscription??=this.subscribe(N=>{this._notifyUrlChangeListeners(N.url,N.state)}),()=>{const N=this._urlChangeListeners.indexOf(S);this._urlChangeListeners.splice(N,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(S="",N){this._urlChangeListeners.forEach(he=>he(S,N))}subscribe(S,N,he){return this._subject.subscribe({next:S,error:N,complete:he})}static#e=this.normalizeQueryParams=Te;static#t=this.joinWithSlash=de;static#n=this.stripTrailingSlash=Ee;static#r=this.\u0275fac=function(N){return new(N||w)(r.KVO(xe))};static#i=this.\u0275prov=r.jDH({token:w,factory:()=>function tt(){return new mt((0,r.KVO)(xe))}(),providedIn:"root"})}return w})();function Ye(w){return w.replace(/\/index.html$/,"")}var it=function(w){return w[w.Format=0]="Format",w[w.Standalone=1]="Standalone",w}(it||{}),ut=function(w){return w[w.Narrow=0]="Narrow",w[w.Abbreviated=1]="Abbreviated",w[w.Wide=2]="Wide",w[w.Short=3]="Short",w}(ut||{}),Ot=function(w){return w[w.Short=0]="Short",w[w.Medium=1]="Medium",w[w.Long=2]="Long",w[w.Full=3]="Full",w}(Ot||{});const Re={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function J(w,j){return Rn((0,r.H5H)(w)[r.KH2.DateFormat],j)}function ne(w,j){return Rn((0,r.H5H)(w)[r.KH2.TimeFormat],j)}function fe(w,j){return Rn((0,r.H5H)(w)[r.KH2.DateTimeFormat],j)}function Ie(w,j){const S=(0,r.H5H)(w),N=S[r.KH2.NumberSymbols][j];if(typeof N>"u"){if(j===Re.CurrencyDecimal)return S[r.KH2.NumberSymbols][Re.Decimal];if(j===Re.CurrencyGroup)return S[r.KH2.NumberSymbols][Re.Group]}return N}function gt(w){if(!w[r.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${w[r.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Rn(w,j){for(let S=j;S>-1;S--)if(typeof w[S]<"u")return w[S];throw new Error("Locale data API: locale data undefined")}function vn(w){const[j,S]=w.split(":");return{hours:+j,minutes:+S}}const Yn=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,er={},yr=/((?:[^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 yn=function(w){return w[w.Short=0]="Short",w[w.ShortGMT=1]="ShortGMT",w[w.Long=2]="Long",w[w.Extended=3]="Extended",w}(yn||{}),Ft=function(w){return w[w.FullYear=0]="FullYear",w[w.Month=1]="Month",w[w.Date=2]="Date",w[w.Hours=3]="Hours",w[w.Minutes=4]="Minutes",w[w.Seconds=5]="Seconds",w[w.FractionalSeconds=6]="FractionalSeconds",w[w.Day=7]="Day",w}(Ft||{}),Vt=function(w){return w[w.DayPeriods=0]="DayPeriods",w[w.Days=1]="Days",w[w.Months=2]="Months",w[w.Eras=3]="Eras",w}(Vt||{});function Ln(w,j,S,N){let he=function Q(w){if(re(w))return w;if("number"==typeof w&&!isNaN(w))return new Date(w);if("string"==typeof w){if(w=w.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(w)){const[he,Be=1,Qe=1]=w.split("-").map(xt=>+xt);return Kn(he,Be-1,Qe)}const S=parseFloat(w);if(!isNaN(w-S))return new Date(S);let N;if(N=w.match(Yn))return function ve(w){const j=new Date(0);let S=0,N=0;const he=w[8]?j.setUTCFullYear:j.setFullYear,Be=w[8]?j.setUTCHours:j.setHours;w[9]&&(S=Number(w[9]+w[10]),N=Number(w[9]+w[11])),he.call(j,Number(w[1]),Number(w[2])-1,Number(w[3]));const Qe=Number(w[4]||0)-S,xt=Number(w[5]||0)-N,kr=Number(w[6]||0),cr=Math.floor(1e3*parseFloat("0."+(w[7]||0)));return Be.call(j,Qe,xt,kr,cr),j}(N)}const j=new Date(w);if(!re(j))throw new Error(`Unable to convert "${w}" into a date`);return j}(w);j=Un(S,j)||j;let xt,Qe=[];for(;j;){if(xt=yr.exec(j),!xt){Qe.push(j);break}{Qe=Qe.concat(xt.slice(1));const br=Qe.pop();if(!br)break;j=br}}let kr=he.getTimezoneOffset();N&&(kr=K(N,kr),he=function Ae(w,j,S){const N=S?-1:1,he=w.getTimezoneOffset();return function G(w,j){return(w=new Date(w.getTime())).setMinutes(w.getMinutes()+j),w}(w,N*(K(j,he)-he))}(he,N,!0));let cr="";return Qe.forEach(br=>{const mn=function x(w){if(B[w])return B[w];let j;switch(w){case"G":case"GG":case"GGG":j=Kt(Vt.Eras,ut.Abbreviated);break;case"GGGG":j=Kt(Vt.Eras,ut.Wide);break;case"GGGGG":j=Kt(Vt.Eras,ut.Narrow);break;case"y":j=At(Ft.FullYear,1,0,!1,!0);break;case"yy":j=At(Ft.FullYear,2,0,!0,!0);break;case"yyy":j=At(Ft.FullYear,3,0,!1,!0);break;case"yyyy":j=At(Ft.FullYear,4,0,!1,!0);break;case"Y":j=Y(1);break;case"YY":j=Y(2,!0);break;case"YYY":j=Y(3);break;case"YYYY":j=Y(4);break;case"M":case"L":j=At(Ft.Month,1,1);break;case"MM":case"LL":j=At(Ft.Month,2,1);break;case"MMM":j=Kt(Vt.Months,ut.Abbreviated);break;case"MMMM":j=Kt(Vt.Months,ut.Wide);break;case"MMMMM":j=Kt(Vt.Months,ut.Narrow);break;case"LLL":j=Kt(Vt.Months,ut.Abbreviated,it.Standalone);break;case"LLLL":j=Kt(Vt.Months,ut.Wide,it.Standalone);break;case"LLLLL":j=Kt(Vt.Months,ut.Narrow,it.Standalone);break;case"w":j=Ve(1);break;case"ww":j=Ve(2);break;case"W":j=Ve(1,!0);break;case"d":j=At(Ft.Date,1);break;case"dd":j=At(Ft.Date,2);break;case"c":case"cc":j=At(Ft.Day,1);break;case"ccc":j=Kt(Vt.Days,ut.Abbreviated,it.Standalone);break;case"cccc":j=Kt(Vt.Days,ut.Wide,it.Standalone);break;case"ccccc":j=Kt(Vt.Days,ut.Narrow,it.Standalone);break;case"cccccc":j=Kt(Vt.Days,ut.Short,it.Standalone);break;case"E":case"EE":case"EEE":j=Kt(Vt.Days,ut.Abbreviated);break;case"EEEE":j=Kt(Vt.Days,ut.Wide);break;case"EEEEE":j=Kt(Vt.Days,ut.Narrow);break;case"EEEEEE":j=Kt(Vt.Days,ut.Short);break;case"a":case"aa":case"aaa":j=Kt(Vt.DayPeriods,ut.Abbreviated);break;case"aaaa":j=Kt(Vt.DayPeriods,ut.Wide);break;case"aaaaa":j=Kt(Vt.DayPeriods,ut.Narrow);break;case"b":case"bb":case"bbb":j=Kt(Vt.DayPeriods,ut.Abbreviated,it.Standalone,!0);break;case"bbbb":j=Kt(Vt.DayPeriods,ut.Wide,it.Standalone,!0);break;case"bbbbb":j=Kt(Vt.DayPeriods,ut.Narrow,it.Standalone,!0);break;case"B":case"BB":case"BBB":j=Kt(Vt.DayPeriods,ut.Abbreviated,it.Format,!0);break;case"BBBB":j=Kt(Vt.DayPeriods,ut.Wide,it.Format,!0);break;case"BBBBB":j=Kt(Vt.DayPeriods,ut.Narrow,it.Format,!0);break;case"h":j=At(Ft.Hours,1,-12);break;case"hh":j=At(Ft.Hours,2,-12);break;case"H":j=At(Ft.Hours,1);break;case"HH":j=At(Ft.Hours,2);break;case"m":j=At(Ft.Minutes,1);break;case"mm":j=At(Ft.Minutes,2);break;case"s":j=At(Ft.Seconds,1);break;case"ss":j=At(Ft.Seconds,2);break;case"S":j=At(Ft.FractionalSeconds,1);break;case"SS":j=At(Ft.FractionalSeconds,2);break;case"SSS":j=At(Ft.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":j=xr(yn.Short);break;case"ZZZZZ":j=xr(yn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":j=xr(yn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":j=xr(yn.Long);break;default:return null}return B[w]=j,j}(br);cr+=mn?mn(he,S,kr):"''"===br?"'":br.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),cr}function Kn(w,j,S){const N=new Date(0);return N.setFullYear(w,j,S),N.setHours(0,0,0),N}function Un(w,j){const S=function dt(w){return(0,r.H5H)(w)[r.KH2.LocaleId]}(w);if(er[S]??={},er[S][j])return er[S][j];let N="";switch(j){case"shortDate":N=J(w,Ot.Short);break;case"mediumDate":N=J(w,Ot.Medium);break;case"longDate":N=J(w,Ot.Long);break;case"fullDate":N=J(w,Ot.Full);break;case"shortTime":N=ne(w,Ot.Short);break;case"mediumTime":N=ne(w,Ot.Medium);break;case"longTime":N=ne(w,Ot.Long);break;case"fullTime":N=ne(w,Ot.Full);break;case"short":const he=Un(w,"shortTime"),Be=Un(w,"shortDate");N=qt(fe(w,Ot.Short),[he,Be]);break;case"medium":const Qe=Un(w,"mediumTime"),xt=Un(w,"mediumDate");N=qt(fe(w,Ot.Medium),[Qe,xt]);break;case"long":const kr=Un(w,"longTime"),cr=Un(w,"longDate");N=qt(fe(w,Ot.Long),[kr,cr]);break;case"full":const br=Un(w,"fullTime"),mn=Un(w,"fullDate");N=qt(fe(w,Ot.Full),[br,mn])}return N&&(er[S][j]=N),N}function qt(w,j){return j&&(w=w.replace(/\{([^}]+)}/g,function(S,N){return null!=j&&N in j?j[N]:S})),w}function Pn(w,j,S="-",N,he){let Be="";(w<0||he&&w<=0)&&(he?w=1-w:(w=-w,Be=S));let Qe=String(w);for(;Qe.length0||xt>-S)&&(xt+=S),w===Ft.Hours)0===xt&&-12===S&&(xt=12);else if(w===Ft.FractionalSeconds)return function mi(w,j){return Pn(w,3).substring(0,j)}(xt,j);const kr=Ie(Qe,Re.MinusSign);return Pn(xt,j,kr,N,he)}}function Kt(w,j,S=it.Format,N=!1){return function(he,Be){return function en(w,j,S,N,he,Be){switch(S){case Vt.Months:return function Zt(w,j,S){const N=(0,r.H5H)(w),Be=Rn([N[r.KH2.MonthsFormat],N[r.KH2.MonthsStandalone]],j);return Rn(Be,S)}(j,he,N)[w.getMonth()];case Vt.Days:return function Qt(w,j,S){const N=(0,r.H5H)(w),Be=Rn([N[r.KH2.DaysFormat],N[r.KH2.DaysStandalone]],j);return Rn(Be,S)}(j,he,N)[w.getDay()];case Vt.DayPeriods:const Qe=w.getHours(),xt=w.getMinutes();if(Be){const cr=function cn(w){const j=(0,r.H5H)(w);return gt(j),(j[r.KH2.ExtraData][2]||[]).map(N=>"string"==typeof N?vn(N):[vn(N[0]),vn(N[1])])}(j),br=function ir(w,j,S){const N=(0,r.H5H)(w);gt(N);const Be=Rn([N[r.KH2.ExtraData][0],N[r.KH2.ExtraData][1]],j)||[];return Rn(Be,S)||[]}(j,he,N),mn=cr.findIndex(Mr=>{if(Array.isArray(Mr)){const[Wn,Ur]=Mr,Zn=Qe>=Wn.hours&&xt>=Wn.minutes,lt=Qe0?Math.floor(he/60):Math.ceil(he/60);switch(w){case yn.Short:return(he>=0?"+":"")+Pn(Qe,2,Be)+Pn(Math.abs(he%60),2,Be);case yn.ShortGMT:return"GMT"+(he>=0?"+":"")+Pn(Qe,1,Be);case yn.Long:return"GMT"+(he>=0?"+":"")+Pn(Qe,2,Be)+":"+Pn(Math.abs(he%60),2,Be);case yn.Extended:return 0===N?"Z":(he>=0?"+":"")+Pn(Qe,2,Be)+":"+Pn(Math.abs(he%60),2,Be);default:throw new Error(`Unknown zone width "${w}"`)}}}const tn=0,Xn=4;function ii(w){const j=w.getDay(),S=0===j?-3:Xn-j;return Kn(w.getFullYear(),w.getMonth(),w.getDate()+S)}function Ve(w,j=!1){return function(S,N){let he;if(j){const Be=new Date(S.getFullYear(),S.getMonth(),1).getDay()-1,Qe=S.getDate();he=1+Math.floor((Qe+Be)/7)}else{const Be=ii(S),Qe=function Fr(w){const j=Kn(w,tn,1).getDay();return Kn(w,0,1+(j<=Xn?Xn:Xn+7)-j)}(Be.getFullYear()),xt=Be.getTime()-Qe.getTime();he=1+Math.round(xt/6048e5)}return Pn(he,w,Ie(N,Re.MinusSign))}}function Y(w,j=!1){return function(S,N){return Pn(ii(S).getFullYear(),w,Ie(N,Re.MinusSign),j)}}const B={};function K(w,j){w=w.replace(/:/g,"");const S=Date.parse("Jan 01, 1970 00:00:00 "+w)/6e4;return isNaN(S)?j:S}function re(w){return w instanceof Date&&!isNaN(w.valueOf())}function ye(w,j){j=encodeURIComponent(j);for(const S of w.split(";")){const N=S.indexOf("="),[he,Be]=-1==N?[S,""]:[S.slice(0,N),S.slice(N+1)];if(he.trim()===j)return decodeURIComponent(Be)}return null}const be=/\s+/,He=[];let Le=(()=>{class w{constructor(S,N){this._ngEl=S,this._renderer=N,this.initialClasses=He,this.stateMap=new Map}set klass(S){this.initialClasses=null!=S?S.trim().split(be):He}set ngClass(S){this.rawClass="string"==typeof S?S.trim().split(be):S}ngDoCheck(){for(const N of this.initialClasses)this._updateState(N,!0);const S=this.rawClass;if(Array.isArray(S)||S instanceof Set)for(const N of S)this._updateState(N,!0);else if(null!=S)for(const N of Object.keys(S))this._updateState(N,!!S[N]);this._applyStateDiff()}_updateState(S,N){const he=this.stateMap.get(S);void 0!==he?(he.enabled!==N&&(he.changed=!0,he.enabled=N),he.touched=!0):this.stateMap.set(S,{enabled:N,changed:!0,touched:!0})}_applyStateDiff(){for(const S of this.stateMap){const N=S[0],he=S[1];he.changed?(this._toggleClass(N,he.enabled),he.changed=!1):he.touched||(he.enabled&&this._toggleClass(N,!1),this.stateMap.delete(N)),he.touched=!1}}_toggleClass(S,N){(S=S.trim()).length>0&&S.split(be).forEach(he=>{N?this._renderer.addClass(this._ngEl.nativeElement,he):this._renderer.removeClass(this._ngEl.nativeElement,he)})}static#e=this.\u0275fac=function(N){return new(N||w)(r.rXU(r.aKT),r.rXU(r.sFG))};static#t=this.\u0275dir=r.FsC({type:w,selectors:[["","ngClass",""]],inputs:{klass:[r.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return w})();class nn{constructor(j,S,N,he){this.$implicit=j,this.ngForOf=S,this.index=N,this.count=he}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 Rt=(()=>{class w{set ngForOf(S){this._ngForOf=S,this._ngForOfDirty=!0}set ngForTrackBy(S){this._trackByFn=S}get ngForTrackBy(){return this._trackByFn}constructor(S,N,he){this._viewContainer=S,this._template=N,this._differs=he,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(S){S&&(this._template=S)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const S=this._ngForOf;!this._differ&&S&&(this._differ=this._differs.find(S).create(this.ngForTrackBy))}if(this._differ){const S=this._differ.diff(this._ngForOf);S&&this._applyChanges(S)}}_applyChanges(S){const N=this._viewContainer;S.forEachOperation((he,Be,Qe)=>{if(null==he.previousIndex)N.createEmbeddedView(this._template,new nn(he.item,this._ngForOf,-1,-1),null===Qe?void 0:Qe);else if(null==Qe)N.remove(null===Be?void 0:Be);else if(null!==Be){const xt=N.get(Be);N.move(xt,Qe),Nn(xt,he)}});for(let he=0,Be=N.length;he{Nn(N.get(he.currentIndex),he)})}static ngTemplateContextGuard(S,N){return!0}static#e=this.\u0275fac=function(N){return new(N||w)(r.rXU(r.c1b),r.rXU(r.C4Q),r.rXU(r._q3))};static#t=this.\u0275dir=r.FsC({type:w,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return w})();function Nn(w,j){w.context.$implicit=j.item}let ln=(()=>{class w{constructor(S,N){this._viewContainer=S,this._context=new An,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=N}set ngIf(S){this._context.$implicit=this._context.ngIf=S,this._updateView()}set ngIfThen(S){Qn("ngIfThen",S),this._thenTemplateRef=S,this._thenViewRef=null,this._updateView()}set ngIfElse(S){Qn("ngIfElse",S),this._elseTemplateRef=S,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(S,N){return!0}static#e=this.\u0275fac=function(N){return new(N||w)(r.rXU(r.c1b),r.rXU(r.C4Q))};static#t=this.\u0275dir=r.FsC({type:w,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return w})();class An{constructor(){this.$implicit=null,this.ngIf=null}}function Qn(w,j){if(j&&!j.createEmbeddedView)throw new Error(`${w} must be a TemplateRef, but received '${(0,r.Tbb)(j)}'.`)}class fn{constructor(j,S){this._viewContainerRef=j,this._templateRef=S,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(j){j&&!this._created?this.create():!j&&this._created&&this.destroy()}}let En=(()=>{class w{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(S){this._ngSwitch=S,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(S){this._defaultViews.push(S)}_matchCase(S){const N=S===this._ngSwitch;return this._lastCasesMatched||=N,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),N}_updateDefaultCases(S){if(this._defaultViews.length>0&&S!==this._defaultUsed){this._defaultUsed=S;for(const N of this._defaultViews)N.enforceState(S)}}static#e=this.\u0275fac=function(N){return new(N||w)};static#t=this.\u0275dir=r.FsC({type:w,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return w})(),_r=(()=>{class w{constructor(S,N,he){this.ngSwitch=he,he._addCase(),this._view=new fn(S,N)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(N){return new(N||w)(r.rXU(r.c1b),r.rXU(r.C4Q),r.rXU(En,9))};static#t=this.\u0275dir=r.FsC({type:w,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return w})(),wi=(()=>{class w{constructor(S,N,he){he._addDefault(new fn(S,N))}static#e=this.\u0275fac=function(N){return new(N||w)(r.rXU(r.c1b),r.rXU(r.C4Q),r.rXU(En,9))};static#t=this.\u0275dir=r.FsC({type:w,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return w})(),Ut=(()=>{class w{constructor(S,N,he){this._ngEl=S,this._differs=N,this._renderer=he,this._ngStyle=null,this._differ=null}set ngStyle(S){this._ngStyle=S,!this._differ&&S&&(this._differ=this._differs.find(S).create())}ngDoCheck(){if(this._differ){const S=this._differ.diff(this._ngStyle);S&&this._applyChanges(S)}}_setStyle(S,N){const[he,Be]=S.split("."),Qe=-1===he.indexOf("-")?void 0:r.czy.DashCase;null!=N?this._renderer.setStyle(this._ngEl.nativeElement,he,Be?`${N}${Be}`:N,Qe):this._renderer.removeStyle(this._ngEl.nativeElement,he,Qe)}_applyChanges(S){S.forEachRemovedItem(N=>this._setStyle(N.key,null)),S.forEachAddedItem(N=>this._setStyle(N.key,N.currentValue)),S.forEachChangedItem(N=>this._setStyle(N.key,N.currentValue))}static#e=this.\u0275fac=function(N){return new(N||w)(r.rXU(r.aKT),r.rXU(r.MKu),r.rXU(r.sFG))};static#t=this.\u0275dir=r.FsC({type:w,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return w})(),Tn=(()=>{class w{constructor(S){this._viewContainerRef=S,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(S){if(this._shouldRecreateView(S)){const N=this._viewContainerRef;if(this._viewRef&&N.remove(N.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const he=this._createContextForwardProxy();this._viewRef=N.createEmbeddedView(this.ngTemplateOutlet,he,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(S){return!!S.ngTemplateOutlet||!!S.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(S,N,he)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,N,he),get:(S,N,he)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,N,he)}})}static#e=this.\u0275fac=function(N){return new(N||w)(r.rXU(r.c1b))};static#t=this.\u0275dir=r.FsC({type:w,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[r.OA$]})}return w})();function Ri(w,j){return new r.wOt(2100,!1)}class yo{createSubscription(j,S){return(0,r.O8t)(()=>j.subscribe({next:S,error:N=>{throw N}}))}dispose(j){(0,r.O8t)(()=>j.unsubscribe())}}class ua{createSubscription(j,S){return j.then(S,N=>{throw N})}dispose(j){}}const da=new ua,_o=new yo;let pn=(()=>{class w{constructor(S){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=S}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(S){if(!this._obj){if(S)try{this.markForCheckOnValueUpdate=!1,this._subscribe(S)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return S!==this._obj?(this._dispose(),this.transform(S)):this._latestValue}_subscribe(S){this._obj=S,this._strategy=this._selectStrategy(S),this._subscription=this._strategy.createSubscription(S,N=>this._updateLatestValue(S,N))}_selectStrategy(S){if((0,r.jNT)(S))return da;if((0,r.zjR)(S))return _o;throw Ri()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(S,N){S===this._obj&&(this._latestValue=N,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(N){return new(N||w)(r.rXU(r.gRc,16))};static#t=this.\u0275pipe=r.EJ8({name:"async",type:w,pure:!1,standalone:!0})}return w})();const bo=new r.nKC(""),Ht=new r.nKC("");let Kr=(()=>{class w{constructor(S,N,he){this.locale=S,this.defaultTimezone=N,this.defaultOptions=he}transform(S,N,he,Be){if(null==S||""===S||S!=S)return null;try{return Ln(S,N??this.defaultOptions?.dateFormat??"mediumDate",Be||this.locale,he??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Qe){throw Ri()}}static#e=this.\u0275fac=function(N){return new(N||w)(r.rXU(r.xe9,16),r.rXU(bo,24),r.rXU(Ht,24))};static#t=this.\u0275pipe=r.EJ8({name:"date",type:w,pure:!0,standalone:!0})}return w})(),Bi=(()=>{class w{constructor(S){this.differs=S,this.keyValues=[],this.compareFn=$o}transform(S,N=$o){if(!S||!(S instanceof Map)&&"object"!=typeof S)return null;this.differ??=this.differs.find(S).create();const he=this.differ.diff(S),Be=N!==this.compareFn;return he&&(this.keyValues=[],he.forEachItem(Qe=>{this.keyValues.push(function _s(w,j){return{key:w,value:j}}(Qe.key,Qe.currentValue))})),(he||Be)&&(this.keyValues.sort(N),this.compareFn=N),this.keyValues}static#e=this.\u0275fac=function(N){return new(N||w)(r.rXU(r.MKu,16))};static#t=this.\u0275pipe=r.EJ8({name:"keyvalue",type:w,pure:!1,standalone:!0})}return w})();function $o(w,j){const S=w.key,N=j.key;if(S===N)return 0;if(void 0===S)return 1;if(void 0===N)return-1;if(null===S)return 1;if(null===N)return-1;if("string"==typeof S&&"string"==typeof N)return S{class w{static#e=this.\u0275fac=function(N){return new(N||w)};static#t=this.\u0275mod=r.$C({type:w});static#n=this.\u0275inj=r.G2t({})}return w})();const ns="browser",fa="server";function Vi(w){return w===ns}function pa(w){return w===fa}let Rs=(()=>{class w{static#e=this.\u0275prov=(0,r.jDH)({token:w,providedIn:"root",factory:()=>Vi((0,r.WQX)(r.Agw))?new ci((0,r.WQX)(A),window):new to})}return w})();class ci{constructor(j,S){this.document=j,this.window=S,this.offset=()=>[0,0]}setOffset(j){this.offset=Array.isArray(j)?()=>j:j}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(j){this.window.scrollTo(j[0],j[1])}scrollToAnchor(j){const S=function Qi(w,j){const S=w.getElementById(j)||w.getElementsByName(j)[0];if(S)return S;if("function"==typeof w.createTreeWalker&&w.body&&"function"==typeof w.body.attachShadow){const N=w.createTreeWalker(w.body,NodeFilter.SHOW_ELEMENT);let he=N.currentNode;for(;he;){const Be=he.shadowRoot;if(Be){const Qe=Be.getElementById(j)||Be.querySelector(`[name="${j}"]`);if(Qe)return Qe}he=N.nextNode()}}return null}(this.document,j);S&&(this.scrollToElement(S),S.focus())}setHistoryScrollRestoration(j){this.window.history.scrollRestoration=j}scrollToElement(j){const S=j.getBoundingClientRect(),N=S.left+this.window.pageXOffset,he=S.top+this.window.pageYOffset,Be=this.offset();this.window.scrollTo(N-Be[0],he-Be[1])}}class to{setOffset(j){}getScrollPosition(){return[0,0]}scrollToPosition(j){}scrollToAnchor(j){}setHistoryScrollRestoration(j){}}class Yo{}},1626:(st,Ce,D)=>{D.d(Ce,{Qq:()=>J,q1:()=>yt}),D(467);var g=D(4438),$=D(7673),F=D(1985),se=D(6648),ie=D(274),A=D(5964),H=D(6354),Z=D(980),oe=D(5558),de=D(177);class Ee{}class Te{}class xe{constructor(ye){this.normalizedNames=new Map,this.lazyUpdate=null,ye?"string"==typeof ye?this.lazyInit=()=>{this.headers=new Map,ye.split("\n").forEach(be=>{const He=be.indexOf(":");if(He>0){const Le=be.slice(0,He),ht=Le.toLowerCase(),vt=be.slice(He+1).trim();this.maybeSetNormalizedName(Le,ht),this.headers.has(ht)?this.headers.get(ht).push(vt):this.headers.set(ht,[vt])}})}:typeof Headers<"u"&&ye instanceof Headers?(this.headers=new Map,ye.forEach((be,He)=>{this.setHeaderEntries(He,be)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(ye).forEach(([be,He])=>{this.setHeaderEntries(be,He)})}:this.headers=new Map}has(ye){return this.init(),this.headers.has(ye.toLowerCase())}get(ye){this.init();const be=this.headers.get(ye.toLowerCase());return be&&be.length>0?be[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ye){return this.init(),this.headers.get(ye.toLowerCase())||null}append(ye,be){return this.clone({name:ye,value:be,op:"a"})}set(ye,be){return this.clone({name:ye,value:be,op:"s"})}delete(ye,be){return this.clone({name:ye,value:be,op:"d"})}maybeSetNormalizedName(ye,be){this.normalizedNames.has(be)||this.normalizedNames.set(be,ye)}init(){this.lazyInit&&(this.lazyInit instanceof xe?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ye=>this.applyUpdate(ye)),this.lazyUpdate=null))}copyFrom(ye){ye.init(),Array.from(ye.headers.keys()).forEach(be=>{this.headers.set(be,ye.headers.get(be)),this.normalizedNames.set(be,ye.normalizedNames.get(be))})}clone(ye){const be=new xe;return be.lazyInit=this.lazyInit&&this.lazyInit instanceof xe?this.lazyInit:this,be.lazyUpdate=(this.lazyUpdate||[]).concat([ye]),be}applyUpdate(ye){const be=ye.name.toLowerCase();switch(ye.op){case"a":case"s":let He=ye.value;if("string"==typeof He&&(He=[He]),0===He.length)return;this.maybeSetNormalizedName(ye.name,be);const Le=("a"===ye.op?this.headers.get(be):void 0)||[];Le.push(...He),this.headers.set(be,Le);break;case"d":const ht=ye.value;if(ht){let vt=this.headers.get(be);if(!vt)return;vt=vt.filter(nn=>-1===ht.indexOf(nn)),0===vt.length?(this.headers.delete(be),this.normalizedNames.delete(be)):this.headers.set(be,vt)}else this.headers.delete(be),this.normalizedNames.delete(be)}}setHeaderEntries(ye,be){const He=(Array.isArray(be)?be:[be]).map(ht=>ht.toString()),Le=ye.toLowerCase();this.headers.set(Le,He),this.maybeSetNormalizedName(ye,Le)}forEach(ye){this.init(),Array.from(this.normalizedNames.keys()).forEach(be=>ye(this.normalizedNames.get(be),this.headers.get(be)))}}class $e{encodeKey(ye){return It(ye)}encodeValue(ye){return It(ye)}decodeKey(ye){return decodeURIComponent(ye)}decodeValue(ye){return decodeURIComponent(ye)}}const mt=/%(\d[a-f0-9])/gi,tt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function It(ee){return encodeURIComponent(ee).replace(mt,(ye,be)=>tt[be]??ye)}function Ye(ee){return`${ee}`}class Oe{constructor(ye={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ye.encoder||new $e,ye.fromString){if(ye.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function We(ee,ye){const be=new Map;return ee.length>0&&ee.replace(/^\?/,"").split("&").forEach(Le=>{const ht=Le.indexOf("="),[vt,nn]=-1==ht?[ye.decodeKey(Le),""]:[ye.decodeKey(Le.slice(0,ht)),ye.decodeValue(Le.slice(ht+1))],Rt=be.get(vt)||[];Rt.push(nn),be.set(vt,Rt)}),be}(ye.fromString,this.encoder)}else ye.fromObject?(this.map=new Map,Object.keys(ye.fromObject).forEach(be=>{const He=ye.fromObject[be],Le=Array.isArray(He)?He.map(Ye):[Ye(He)];this.map.set(be,Le)})):this.map=null}has(ye){return this.init(),this.map.has(ye)}get(ye){this.init();const be=this.map.get(ye);return be?be[0]:null}getAll(ye){return this.init(),this.map.get(ye)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ye,be){return this.clone({param:ye,value:be,op:"a"})}appendAll(ye){const be=[];return Object.keys(ye).forEach(He=>{const Le=ye[He];Array.isArray(Le)?Le.forEach(ht=>{be.push({param:He,value:ht,op:"a"})}):be.push({param:He,value:Le,op:"a"})}),this.clone(be)}set(ye,be){return this.clone({param:ye,value:be,op:"s"})}delete(ye,be){return this.clone({param:ye,value:be,op:"d"})}toString(){return this.init(),this.keys().map(ye=>{const be=this.encoder.encodeKey(ye);return this.map.get(ye).map(He=>be+"="+this.encoder.encodeValue(He)).join("&")}).filter(ye=>""!==ye).join("&")}clone(ye){const be=new Oe({encoder:this.encoder});return be.cloneFrom=this.cloneFrom||this,be.updates=(this.updates||[]).concat(ye),be}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ye=>this.map.set(ye,this.cloneFrom.map.get(ye))),this.updates.forEach(ye=>{switch(ye.op){case"a":case"s":const be=("a"===ye.op?this.map.get(ye.param):void 0)||[];be.push(Ye(ye.value)),this.map.set(ye.param,be);break;case"d":if(void 0===ye.value){this.map.delete(ye.param);break}{let He=this.map.get(ye.param)||[];const Le=He.indexOf(Ye(ye.value));-1!==Le&&He.splice(Le,1),He.length>0?this.map.set(ye.param,He):this.map.delete(ye.param)}}}),this.cloneFrom=this.updates=null)}}class Dt{constructor(){this.map=new Map}set(ye,be){return this.map.set(ye,be),this}get(ye){return this.map.has(ye)||this.map.set(ye,ye.defaultValue()),this.map.get(ye)}delete(ye){return this.map.delete(ye),this}has(ye){return this.map.has(ye)}keys(){return this.map.keys()}}function it(ee){return typeof ArrayBuffer<"u"&&ee instanceof ArrayBuffer}function ut(ee){return typeof Blob<"u"&&ee instanceof Blob}function Ot(ee){return typeof FormData<"u"&&ee instanceof FormData}class ze{constructor(ye,be,He,Le){let ht;if(this.url=be,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ye.toUpperCase(),function Xe(ee){switch(ee){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Le?(this.body=void 0!==He?He:null,ht=Le):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.transferCache=ht.transferCache),this.headers??=new xe,this.context??=new Dt,this.params){const vt=this.params.toString();if(0===vt.length)this.urlWithParams=be;else{const nn=be.indexOf("?");this.urlWithParams=be+(-1===nn?"?":nnAn.set(Qn,ye.setHeaders[Qn]),Nn)),ye.setParams&&(Nt=Object.keys(ye.setParams).reduce((An,Qn)=>An.set(Qn,ye.setParams[Qn]),Nt)),new ze(be,He,vt,{params:Nt,headers:Nn,context:ln,reportProgress:Rt,responseType:Le,withCredentials:nn,transferCache:ht})}}var dt=function(ee){return ee[ee.Sent=0]="Sent",ee[ee.UploadProgress=1]="UploadProgress",ee[ee.ResponseHeader=2]="ResponseHeader",ee[ee.DownloadProgress=3]="DownloadProgress",ee[ee.Response=4]="Response",ee[ee.User=5]="User",ee}(dt||{});class Bt{constructor(ye,be=ke.Ok,He="OK"){this.headers=ye.headers||new xe,this.status=void 0!==ye.status?ye.status:be,this.statusText=ye.statusText||He,this.url=ye.url||null,this.ok=this.status>=200&&this.status<300}}class Qt extends Bt{constructor(ye={}){super(ye),this.type=dt.ResponseHeader}clone(ye={}){return new Qt({headers:ye.headers||this.headers,status:void 0!==ye.status?ye.status:this.status,statusText:ye.statusText||this.statusText,url:ye.url||this.url||void 0})}}class Zt extends Bt{constructor(ye={}){super(ye),this.type=dt.Response,this.body=void 0!==ye.body?ye.body:null}clone(ye={}){return new Zt({body:void 0!==ye.body?ye.body:this.body,headers:ye.headers||this.headers,status:void 0!==ye.status?ye.status:this.status,statusText:ye.statusText||this.statusText,url:ye.url||this.url||void 0})}}class Mn extends Bt{constructor(ye){super(ye,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ye.url||"(unknown url)"}`:`Http failure response for ${ye.url||"(unknown url)"}: ${ye.status} ${ye.statusText}`,this.error=ye.error||null}}var ke=function(ee){return ee[ee.Continue=100]="Continue",ee[ee.SwitchingProtocols=101]="SwitchingProtocols",ee[ee.Processing=102]="Processing",ee[ee.EarlyHints=103]="EarlyHints",ee[ee.Ok=200]="Ok",ee[ee.Created=201]="Created",ee[ee.Accepted=202]="Accepted",ee[ee.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",ee[ee.NoContent=204]="NoContent",ee[ee.ResetContent=205]="ResetContent",ee[ee.PartialContent=206]="PartialContent",ee[ee.MultiStatus=207]="MultiStatus",ee[ee.AlreadyReported=208]="AlreadyReported",ee[ee.ImUsed=226]="ImUsed",ee[ee.MultipleChoices=300]="MultipleChoices",ee[ee.MovedPermanently=301]="MovedPermanently",ee[ee.Found=302]="Found",ee[ee.SeeOther=303]="SeeOther",ee[ee.NotModified=304]="NotModified",ee[ee.UseProxy=305]="UseProxy",ee[ee.Unused=306]="Unused",ee[ee.TemporaryRedirect=307]="TemporaryRedirect",ee[ee.PermanentRedirect=308]="PermanentRedirect",ee[ee.BadRequest=400]="BadRequest",ee[ee.Unauthorized=401]="Unauthorized",ee[ee.PaymentRequired=402]="PaymentRequired",ee[ee.Forbidden=403]="Forbidden",ee[ee.NotFound=404]="NotFound",ee[ee.MethodNotAllowed=405]="MethodNotAllowed",ee[ee.NotAcceptable=406]="NotAcceptable",ee[ee.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",ee[ee.RequestTimeout=408]="RequestTimeout",ee[ee.Conflict=409]="Conflict",ee[ee.Gone=410]="Gone",ee[ee.LengthRequired=411]="LengthRequired",ee[ee.PreconditionFailed=412]="PreconditionFailed",ee[ee.PayloadTooLarge=413]="PayloadTooLarge",ee[ee.UriTooLong=414]="UriTooLong",ee[ee.UnsupportedMediaType=415]="UnsupportedMediaType",ee[ee.RangeNotSatisfiable=416]="RangeNotSatisfiable",ee[ee.ExpectationFailed=417]="ExpectationFailed",ee[ee.ImATeapot=418]="ImATeapot",ee[ee.MisdirectedRequest=421]="MisdirectedRequest",ee[ee.UnprocessableEntity=422]="UnprocessableEntity",ee[ee.Locked=423]="Locked",ee[ee.FailedDependency=424]="FailedDependency",ee[ee.TooEarly=425]="TooEarly",ee[ee.UpgradeRequired=426]="UpgradeRequired",ee[ee.PreconditionRequired=428]="PreconditionRequired",ee[ee.TooManyRequests=429]="TooManyRequests",ee[ee.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",ee[ee.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",ee[ee.InternalServerError=500]="InternalServerError",ee[ee.NotImplemented=501]="NotImplemented",ee[ee.BadGateway=502]="BadGateway",ee[ee.ServiceUnavailable=503]="ServiceUnavailable",ee[ee.GatewayTimeout=504]="GatewayTimeout",ee[ee.HttpVersionNotSupported=505]="HttpVersionNotSupported",ee[ee.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",ee[ee.InsufficientStorage=507]="InsufficientStorage",ee[ee.LoopDetected=508]="LoopDetected",ee[ee.NotExtended=510]="NotExtended",ee[ee.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",ee}(ke||{});function ue(ee,ye){return{body:ye,headers:ee.headers,context:ee.context,observe:ee.observe,params:ee.params,reportProgress:ee.reportProgress,responseType:ee.responseType,withCredentials:ee.withCredentials,transferCache:ee.transferCache}}let J=(()=>{class ee{constructor(be){this.handler=be}request(be,He,Le={}){let ht;if(be instanceof ze)ht=be;else{let Rt,Nn;Rt=Le.headers instanceof xe?Le.headers:new xe(Le.headers),Le.params&&(Nn=Le.params instanceof Oe?Le.params:new Oe({fromObject:Le.params})),ht=new ze(be,He,void 0!==Le.body?Le.body:null,{headers:Rt,context:Le.context,params:Nn,reportProgress:Le.reportProgress,responseType:Le.responseType||"json",withCredentials:Le.withCredentials,transferCache:Le.transferCache})}const vt=(0,$.of)(ht).pipe((0,ie.H)(Rt=>this.handler.handle(Rt)));if(be instanceof ze||"events"===Le.observe)return vt;const nn=vt.pipe((0,A.p)(Rt=>Rt instanceof Zt));switch(Le.observe||"body"){case"body":switch(ht.responseType){case"arraybuffer":return nn.pipe((0,H.T)(Rt=>{if(null!==Rt.body&&!(Rt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Rt.body}));case"blob":return nn.pipe((0,H.T)(Rt=>{if(null!==Rt.body&&!(Rt.body instanceof Blob))throw new Error("Response is not a Blob.");return Rt.body}));case"text":return nn.pipe((0,H.T)(Rt=>{if(null!==Rt.body&&"string"!=typeof Rt.body)throw new Error("Response is not a string.");return Rt.body}));default:return nn.pipe((0,H.T)(Rt=>Rt.body))}case"response":return nn;default:throw new Error(`Unreachable: unhandled observe type ${Le.observe}}`)}}delete(be,He={}){return this.request("DELETE",be,He)}get(be,He={}){return this.request("GET",be,He)}head(be,He={}){return this.request("HEAD",be,He)}jsonp(be,He){return this.request("JSONP",be,{params:(new Oe).append(He,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(be,He={}){return this.request("OPTIONS",be,He)}patch(be,He,Le={}){return this.request("PATCH",be,ue(Le,He))}post(be,He,Le={}){return this.request("POST",be,ue(Le,He))}put(be,He,Le={}){return this.request("PUT",be,ue(Le,He))}static#e=this.\u0275fac=function(He){return new(He||ee)(g.KVO(Ee))};static#t=this.\u0275prov=g.jDH({token:ee,factory:ee.\u0275fac})}return ee})();function Xt(ee,ye){return ye(ee)}function Yt(ee,ye){return(be,He)=>ye.intercept(be,{handle:Le=>ee(Le,He)})}const cn=new g.nKC(""),ir=new g.nKC(""),kn=new g.nKC(""),Rn=new g.nKC("");function vn(){let ee=null;return(ye,be)=>{null===ee&&(ee=((0,g.WQX)(cn,{optional:!0})??[]).reduceRight(Yt,Xt));const He=(0,g.WQX)(g.TgB),Le=He.add();return ee(ye,be).pipe((0,Z.j)(()=>He.remove(Le)))}}let vr=(()=>{class ee extends Ee{constructor(be,He){super(),this.backend=be,this.injector=He,this.chain=null,this.pendingTasks=(0,g.WQX)(g.TgB);const Le=(0,g.WQX)(Rn,{optional:!0});this.backend=Le??be}handle(be){if(null===this.chain){const Le=Array.from(new Set([...this.injector.get(ir),...this.injector.get(kn,[])]));this.chain=Le.reduceRight((ht,vt)=>function gt(ee,ye,be){return(He,Le)=>(0,g.N4e)(be,()=>ye(He,ht=>ee(ht,Le)))}(ht,vt,this.injector),Xt)}const He=this.pendingTasks.add();return this.chain(be,Le=>this.backend.handle(Le)).pipe((0,Z.j)(()=>this.pendingTasks.remove(He)))}static#e=this.\u0275fac=function(He){return new(He||ee)(g.KVO(Te),g.KVO(g.uvJ))};static#t=this.\u0275prov=g.jDH({token:ee,factory:ee.\u0275fac})}return ee})();const mi=/^\)\]\}',?\n/;let wr=(()=>{class ee{constructor(be){this.xhrFactory=be}handle(be){if("JSONP"===be.method)throw new g.wOt(-2800,!1);const He=this.xhrFactory;return(He.\u0275loadImpl?(0,se.H)(He.\u0275loadImpl()):(0,$.of)(null)).pipe((0,oe.n)(()=>new F.c(ht=>{const vt=He.build();if(vt.open(be.method,be.urlWithParams),be.withCredentials&&(vt.withCredentials=!0),be.headers.forEach((fn,En)=>vt.setRequestHeader(fn,En.join(","))),be.headers.has("Accept")||vt.setRequestHeader("Accept","application/json, text/plain, */*"),!be.headers.has("Content-Type")){const fn=be.detectContentTypeHeader();null!==fn&&vt.setRequestHeader("Content-Type",fn)}if(be.responseType){const fn=be.responseType.toLowerCase();vt.responseType="json"!==fn?fn:"text"}const nn=be.serializeBody();let Rt=null;const Nn=()=>{if(null!==Rt)return Rt;const fn=vt.statusText||"OK",En=new xe(vt.getAllResponseHeaders()),_r=function At(ee){return"responseURL"in ee&&ee.responseURL?ee.responseURL:/^X-Request-URL:/m.test(ee.getAllResponseHeaders())?ee.getResponseHeader("X-Request-URL"):null}(vt)||be.url;return Rt=new Qt({headers:En,status:vt.status,statusText:fn,url:_r}),Rt},Nt=()=>{let{headers:fn,status:En,statusText:_r,url:wi}=Nn(),Dr=null;En!==ke.NoContent&&(Dr=typeof vt.response>"u"?vt.responseText:vt.response),0===En&&(En=Dr?ke.Ok:0);let li=En>=200&&En<300;if("json"===be.responseType&&"string"==typeof Dr){const Hr=Dr;Dr=Dr.replace(mi,"");try{Dr=""!==Dr?JSON.parse(Dr):null}catch(Oi){Dr=Hr,li&&(li=!1,Dr={error:Oi,text:Dr})}}li?(ht.next(new Zt({body:Dr,headers:fn,status:En,statusText:_r,url:wi||void 0})),ht.complete()):ht.error(new Mn({error:Dr,headers:fn,status:En,statusText:_r,url:wi||void 0}))},ln=fn=>{const{url:En}=Nn(),_r=new Mn({error:fn,status:vt.status||0,statusText:vt.statusText||"Unknown Error",url:En||void 0});ht.error(_r)};let An=!1;const Qn=fn=>{An||(ht.next(Nn()),An=!0);let En={type:dt.DownloadProgress,loaded:fn.loaded};fn.lengthComputable&&(En.total=fn.total),"text"===be.responseType&&vt.responseText&&(En.partialText=vt.responseText),ht.next(En)},jn=fn=>{let En={type:dt.UploadProgress,loaded:fn.loaded};fn.lengthComputable&&(En.total=fn.total),ht.next(En)};return vt.addEventListener("load",Nt),vt.addEventListener("error",ln),vt.addEventListener("timeout",ln),vt.addEventListener("abort",ln),be.reportProgress&&(vt.addEventListener("progress",Qn),null!==nn&&vt.upload&&vt.upload.addEventListener("progress",jn)),vt.send(nn),ht.next({type:dt.Sent}),()=>{vt.removeEventListener("error",ln),vt.removeEventListener("abort",ln),vt.removeEventListener("load",Nt),vt.removeEventListener("timeout",ln),be.reportProgress&&(vt.removeEventListener("progress",Qn),null!==nn&&vt.upload&&vt.upload.removeEventListener("progress",jn)),vt.readyState!==vt.DONE&&vt.abort()}})))}static#e=this.\u0275fac=function(He){return new(He||ee)(g.KVO(de.N0))};static#t=this.\u0275prov=g.jDH({token:ee,factory:ee.\u0275fac})}return ee})();const Kt=new g.nKC(""),xr=new g.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Xn=new g.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Fr{}let ii=(()=>{class ee{constructor(be,He,Le){this.doc=be,this.platform=He,this.cookieName=Le,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const be=this.doc.cookie||"";return be!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,de._b)(be,this.cookieName),this.lastCookieString=be),this.lastToken}static#e=this.\u0275fac=function(He){return new(He||ee)(g.KVO(de.qQ),g.KVO(g.Agw),g.KVO(xr))};static#t=this.\u0275prov=g.jDH({token:ee,factory:ee.\u0275fac})}return ee})();function Ve(ee,ye){const be=ee.url.toLowerCase();if(!(0,g.WQX)(Kt)||"GET"===ee.method||"HEAD"===ee.method||be.startsWith("http://")||be.startsWith("https://"))return ye(ee);const He=(0,g.WQX)(Fr).getToken(),Le=(0,g.WQX)(Xn);return null!=He&&!ee.headers.has(Le)&&(ee=ee.clone({headers:ee.headers.set(Le,He)})),ye(ee)}var B=function(ee){return ee[ee.Interceptors=0]="Interceptors",ee[ee.LegacyInterceptors=1]="LegacyInterceptors",ee[ee.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ee[ee.NoXsrfProtection=3]="NoXsrfProtection",ee[ee.JsonpSupport=4]="JsonpSupport",ee[ee.RequestsMadeViaParent=5]="RequestsMadeViaParent",ee[ee.Fetch=6]="Fetch",ee}(B||{});function K(...ee){const ye=[J,wr,vr,{provide:Ee,useExisting:vr},{provide:Te,useExisting:wr},{provide:ir,useValue:Ve,multi:!0},{provide:Kt,useValue:!0},{provide:Fr,useClass:ii}];for(const be of ee)ye.push(...be.\u0275providers);return(0,g.EmA)(ye)}const Ae=new g.nKC("");function Q(){return function x(ee,ye){return{\u0275kind:ee,\u0275providers:ye}}(B.LegacyInterceptors,[{provide:Ae,useFactory:vn},{provide:ir,useExisting:Ae,multi:!0}])}let yt=(()=>{class ee{static#e=this.\u0275fac=function(He){return new(He||ee)};static#t=this.\u0275mod=g.$C({type:ee});static#n=this.\u0275inj=g.G2t({providers:[K(Q())]})}return ee})()},4438:(st,Ce,D)=>{D.d(Ce,{bc$:()=>o1,iLQ:()=>C6,sZ2:()=>s1,hnV:()=>jy,Hbi:()=>RD,o8S:()=>yu,BIS:()=>bi,gRc:()=>t_,Ql9:()=>cD,OM3:()=>bd,Ocv:()=>vD,abz:()=>Ta,Z63:()=>Ls,aKT:()=>Ys,uvJ:()=>ss,zcH:()=>po,bkB:()=>Ss,$GK:()=>pn,nKC:()=>Le,zZn:()=>Hi,_q3:()=>O6,MKu:()=>A6,xe9:()=>dm,Co$:()=>Bv,Vns:()=>Cd,SKi:()=>Pi,Xx1:()=>Vi,Agw:()=>ni,PLl:()=>_i,rOR:()=>Pl,sFG:()=>i4,_9s:()=>S2,czy:()=>mh,WPN:()=>pc,kdw:()=>Fs,C4Q:()=>cu,NYb:()=>nD,giA:()=>zy,RxE:()=>ky,c1b:()=>ap,gXe:()=>Vs,mal:()=>P2,Af3:()=>Ml,L39:()=>dM,Ol2:()=>w4,w6W:()=>tb,oH4:()=>Zy,QZP:()=>k_,Rfq:()=>Ve,WQX:()=>Wt,QuC:()=>xi,EmA:()=>va,Udg:()=>hM,fpN:()=>FD,HJs:()=>_M,N4e:()=>qo,vPA:()=>jt,O8t:()=>pM,An2:()=>Rh,H3F:()=>Py,H8p:()=>Va,KH2:()=>pf,TgB:()=>Yh,wOt:()=>pt,WHO:()=>By,e01:()=>Vy,lNU:()=>vn,h9k:()=>E1,$MX:()=>dh,ZF7:()=>Qu,Kcf:()=>Km,e5t:()=>qm,UyX:()=>Qm,cWb:()=>Xm,osQ:()=>Zm,H5H:()=>Q4,Zy3:()=>ar,mq5:()=>U8,JZv:()=>At,LfX:()=>es,plB:()=>Ic,jNT:()=>_6,zjR:()=>Hy,TL$:()=>Ia,Tbb:()=>tn,rcV:()=>rl,Vt3:()=>_4,Mj6:()=>zi,GFd:()=>Lv,OA$:()=>Jo,Jv_:()=>ty,aNF:()=>ny,R7$:()=>X1,BMQ:()=>P4,HbH:()=>E8,ZvI:()=>k8,AVh:()=>z4,vxM:()=>R8,wni:()=>x3,VBU:()=>fl,FsC:()=>Eo,jDH:()=>Cn,G2t:()=>Ci,$C:()=>ga,EJ8:()=>pl,rXU:()=>Bl,nrm:()=>G4,eu8:()=>Y4,bVm:()=>em,qex:()=>J2,k0s:()=>q2,j41:()=>Z2,RV6:()=>j8,xGo:()=>Ar,Mr5:()=>K4,KVO:()=>$n,kS0:()=>pr,QTQ:()=>N0,bIt:()=>J4,lsd:()=>N3,joV:()=>Vd,qSk:()=>ku,XpG:()=>b3,nI1:()=>fy,bMT:()=>py,i5U:()=>my,SdG:()=>w3,NAR:()=>C3,Y8G:()=>L4,FS9:()=>n6,lJ4:()=>iy,eq3:()=>sy,l_i:()=>oy,ziG:()=>ay,mGM:()=>P3,sdS:()=>F3,Dyx:()=>V8,Z7z:()=>B8,fX1:()=>L8,Njj:()=>Nf,EBC:()=>P1,tSv:()=>k1,eBV:()=>Pf,npT:()=>T1,B4B:()=>v0,n$t:()=>S1,Aen:()=>cl,xc7:()=>V4,Kam:()=>e6,zvX:()=>X4,DNE:()=>Kh,C5r:()=>gy,EFF:()=>W3,JRh:()=>i6,SpI:()=>sm,Lme:()=>s6,E5c:()=>o6,DH7:()=>J3,mxI:()=>l6,R50:()=>a6,GBs:()=>k3}),D(467);let $=null,F=!1,se=1;const ie=Symbol("SIGNAL");function A(e){const t=$;return $=e,t}const de={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ee(e){if(F)throw new Error("");if(null===$)return;$.consumerOnSignalRead(e);const t=$.nextProducerIndex++;Xe($),t<$.producerNode.length&&$.producerNode[t]!==e&&Dt($)&&Ke($.producerNode[t],$.producerIndexOfThis[t]),$.producerNode[t]!==e&&($.producerNode[t]=e,$.producerIndexOfThis[t]=Dt($)?Oe(e,$,t):0),$.producerLastReadVersion[t]=e.version}function xe(e){if((!Dt(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==se)){if(!e.producerMustRecompute(e)&&!It(e))return e.dirty=!1,void(e.lastCleanEpoch=se);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=se}}function we(e){if(void 0===e.liveConsumerNode)return;const t=F;F=!0;try{for(const n of e.liveConsumerNode)n.dirty||We(n)}finally{F=t}}function $e(){return!1!==$?.consumerAllowSignalWrites}function We(e){e.dirty=!0,we(e),e.consumerMarkedDirty?.(e)}function mt(e){return e&&(e.nextProducerIndex=0),A(e)}function tt(e,t){if(A(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Dt(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function It(e){Xe(e);for(let t=0;t0}function Xe(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function it(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}let Qt=function Bt(){throw new Error};function Zt(){Qt()}let ke=null;function fe(e,t){$e()||Zt(),e.equal(e.value,t)||(e.value=t,function bt(e){e.version++,function Te(){se++}(),we(e),ke?.()}(e))}const ot={...de,equal:function g(e,t){return Object.is(e,t)},value:void 0};const Je=()=>{},Xt={...de,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Je};var gt=D(1413),cn=D(8359),ir=D(4412),kn=D(6354);const vn="https://g.co/ng/security#xss";class pt extends Error{constructor(t,n){super(ar(t,n)),this.code=t}}function ar(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function Ft(e){return{toString:e}.toString()}const Ln="__parameters__";function Pn(e,t,n){return Ft(()=>{const i=function qt(e){return function(...n){if(e){const i=e(...n);for(const a in i)this[a]=i[a]}}}(t);function a(...u){if(this instanceof a)return i.apply(this,u),this;const p=new a(...u);return v.annotation=p,v;function v(b,O,z){const q=b.hasOwnProperty(Ln)?b[Ln]:Object.defineProperty(b,Ln,{value:[]})[Ln];for(;q.length<=z;)q.push(null);return(q[z]=q[z]||[]).push(p),b}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const At=globalThis;function en(e){for(let t in e)if(e[t]===en)return t;throw Error("Could not find renamed property on target object.")}function xr(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function tn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(tn).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Xn(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ii=en({__forward_ref__:en});function Ve(e){return e.__forward_ref__=Ve,e.toString=function(){return tn(this())},e}function Y(e){return B(e)?e():e}function B(e){return"function"==typeof e&&e.hasOwnProperty(ii)&&e.__forward_ref__===Ve}function Cn(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ci(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ii(e){return Yi(e,ee)||Yi(e,be)}function es(e){return null!==Ii(e)}function Yi(e,t){return e.hasOwnProperty(t)?e[t]:null}function ks(e){return e&&(e.hasOwnProperty(ye)||e.hasOwnProperty(He))?e[ye]:null}const ee=en({\u0275prov:en}),ye=en({\u0275inj:en}),be=en({ngInjectableDef:en}),He=en({ngInjectorDef:en});class Le{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Cn({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function fn(e){return e&&!!e.\u0275providers}const En=en({\u0275cmp:en}),_r=en({\u0275dir:en}),wi=en({\u0275pipe:en}),Dr=en({\u0275mod:en}),li=en({\u0275fac:en}),Hr=en({__NG_ELEMENT_ID__:en}),Oi=en({__NG_ENV_ID__:en});function Ut(e){return"string"==typeof e?e:null==e?"":String(e)}function _o(e,t){throw new pt(-201,!1)}var pn=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(pn||{});let Js;function ha(){return Js}function Yr(e){const t=Js;return Js=e,t}function ys(e,t,n){const i=Ii(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&pn.Optional?null:void 0!==t?t:void _o()}const Ht={},Kr="__NG_DI_FLAG__",Li="ngTempTokenPath",Ps=/\n/gm,_s="__source";let Bi;function Ki(e){const t=Bi;return Bi=e,t}function Wo(e,t=pn.Default){if(void 0===Bi)throw new pt(-203,!1);return null===Bi?ys(e,void 0,t):Bi.get(e,t&pn.Optional?null:void 0,t)}function $n(e,t=pn.Default){return(ha()||Wo)(Y(e),t)}function Wt(e,t=pn.Default){return $n(e,Ns(t))}function Ns(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Go(e){const t=[];for(let n=0;nArray.isArray(n)?Qi(n,t):t(n))}function to(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Yo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Di(e,t,n){let i=Ai(e,t);return i>=0?e[1|i]=n:(i=~i,function ro(e,t,n,i){let a=e.length;if(a==t)e.push(n,i);else if(1===a)e.push(i,e[0]),e[0]=n;else{for(a--,e.push(e[a-1],e[a]);a>t;)e[a]=e[a-2],a--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function io(e,t){const n=Ai(e,t);if(n>=0)return e[1|n]}function Ai(e,t){return function Oc(e,t,n){let i=0,a=e.length>>n;for(;a!==i;){const u=i+(a-i>>1),p=e[u<t?a=u:i=u+1}return~(a<t){p=u-1;break}}}for(;u-1){let u;for(;++au?"":a[z+1].toLowerCase(),2&i&&O!==q){if(dr(i))return!1;p=!0}}}}else{if(!p&&!dr(i)&&!dr(b))return!1;if(p&&dr(b))continue;p=!1,i=b|1&i}}return dr(i)||p}function dr(e){return!(1&e)}function zt(e,t,n,i){if(null===t)return-1;let a=0;if(i||!n){let u=!1;for(;a-1)for(n++;n0?'="'+v+'"':"")+"]"}else 8&i?a+="."+p:4&i&&(a+=" "+p);else""!==a&&!dr(p)&&(t+=Zl(u,a),a=""),i=p,u=u||!dr(i);n++}return""!==a&&(t+=Zl(u,a)),t}function fl(e){return Ft(()=>{const t=Ra(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Bs.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Vs.Emulated,styles:e.styles||Fn,_:null,schemas:e.schemas||null,tView:null,id:""};La(n);const i=e.dependencies;return n.directiveDefs=To(i,!1),n.pipeDefs=To(i,!0),n.id=function Fc(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const a of n)t=Math.imul(31,t)+a.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function ql(e){return In(e)||Qr(e)}function Jl(e){return null!==e}function ga(e){return Ft(()=>({type:e.type,bootstrap:e.bootstrap||Fn,declarations:e.declarations||Fn,imports:e.imports||Fn,exports:e.exports||Fn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Fa(e,t){if(null==e)return Xr;const n={};for(const i in e)if(e.hasOwnProperty(i)){const a=e[i];let u,p,v=zi.None;Array.isArray(a)?(v=a[0],u=a[1],p=a[2]??u):(u=a,p=a),t?(n[u]=v!==zi.None?[i,v]:i,t[u]=p):n[u]=i}return n}function Eo(e){return Ft(()=>{const t=Ra(e);return La(t),t})}function pl(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function In(e){return e[En]||null}function Qr(e){return e[_r]||null}function Zr(e){return e[wi]||null}function xi(e){const t=In(e)||Qr(e)||Zr(e);return null!==t&&t.standalone}function Mi(e,t){const n=e[Dr]||null;if(!n&&!0===t)throw new Error(`Type ${tn(e)} does not have '\u0275mod' property.`);return n}function Ra(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Xr,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Fn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Fa(e.inputs,t),outputs:Fa(e.outputs),debugInfo:null}}function La(e){e.features?.forEach(t=>t(e))}function To(e,t){if(!e)return null;const n=t?Zr:ql;return()=>("function"==typeof e?e():e).map(i=>n(i)).filter(Jl)}function va(e){return{\u0275providers:e}}function ml(...e){return{\u0275providers:lo(0,e),\u0275fromNgModule:!0}}function lo(e,...t){const n=[],i=new Set;let a;const u=p=>{n.push(p)};return Qi(t,p=>{const v=p;Ba(v,u,[],i)&&(a||=[],a.push(v))}),void 0!==a&&gl(a,u),n}function gl(e,t){for(let n=0;n{t(u,i)})}}function Ba(e,t,n,i){if(!(e=Y(e)))return!1;let a=null,u=ks(e);const p=!u&&In(e);if(u||p){if(p&&!p.standalone)return!1;a=e}else{const b=e.ngModule;if(u=ks(b),!u)return!1;a=b}const v=i.has(a);if(p){if(v)return!1;if(i.add(a),p.dependencies){const b="function"==typeof p.dependencies?p.dependencies():p.dependencies;for(const O of b)Ba(O,t,n,i)}}else{if(!u)return!1;{if(null!=u.imports&&!v){let O;i.add(a);try{Qi(u.imports,z=>{Ba(z,t,n,i)&&(O||=[],O.push(z))})}finally{}void 0!==O&&gl(O,t)}if(!v){const O=Rr(a)||(()=>new a);t({provide:a,useFactory:O,deps:Fn},a),t({provide:so,useValue:a,multi:!0},a),t({provide:Ls,useValue:()=>$n(a),multi:!0},a)}const b=u.providers;if(null!=b&&!v){const O=e;vl(b,z=>{t(z,O)})}}}return a!==e&&void 0!==e.providers}function vl(e,t){for(let n of e)fn(n)&&(n=n.\u0275providers),Array.isArray(n)?vl(n,t):t(n)}const Rc=en({provide:String,useValue:en});function yl(e){return null!==e&&"object"==typeof e&&Rc in e}function zs(e){return"function"==typeof e}const Va=new Le(""),za={},_l={};let bl;function Qo(){return void 0===bl&&(bl=new Cs),bl}class ss{}class Zo extends ss{get destroyed(){return this._destroyed}constructor(t,n,i,a){super(),this.parent=n,this.source=i,this.scopes=a,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,wl(t,p=>this.processProvider(p)),this.records.set(hl,os(void 0,this)),a.has("environment")&&this.records.set(ss,os(void 0,this));const u=this.records.get(Va);null!=u&&"string"==typeof u.value&&this.scopes.add(u.value),this.injectorDefTypes=new Set(this.get(so,Fn,pn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=A(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of n)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),A(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Ki(this),i=Yr(void 0);try{return t()}finally{Ki(n),Yr(i)}}get(t,n=Ht,i=pn.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Oi))return t[Oi](this);i=Ns(i);const u=Ki(this),p=Yr(void 0);try{if(!(i&pn.SkipSelf)){let b=this.records.get(t);if(void 0===b){const O=function Ha(e){return"function"==typeof e||"object"==typeof e&&e instanceof Le}(t)&&Ii(t);b=O&&this.injectableDefInScope(O)?os(Cl(t),za):null,this.records.set(t,b)}if(null!=b)return this.hydrate(t,b)}return(i&pn.Self?Qo():this.parent).get(t,n=i&pn.Optional&&n===Ht?null:n)}catch(v){if("NullInjectorError"===v.name){if((v[Li]=v[Li]||[]).unshift(tn(t)),u)throw v;return function fa(e,t,n,i){const a=e[Li];throw t[_s]&&a.unshift(t[_s]),e.message=function Xi(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=tn(t);if(Array.isArray(t))a=t.map(tn).join(" -> ");else if("object"==typeof t){let u=[];for(let p in t)if(t.hasOwnProperty(p)){let v=t[p];u.push(p+":"+("string"==typeof v?JSON.stringify(v):tn(v)))}a=`{${u.join(", ")}}`}return`${n}${i?"("+i+")":""}[${a}]: ${e.replace(Ps,"\n ")}`}("\n"+e.message,a,n,i),e.ngTokenPath=a,e[Li]=null,e}(v,t,"R3InjectorError",this.source)}throw v}finally{Yr(p),Ki(u)}}resolveInjectorInitializers(){const t=A(null),n=Ki(this),i=Yr(void 0);try{const u=this.get(Ls,Fn,pn.Self);for(const p of u)p()}finally{Ki(n),Yr(i),A(t)}}toString(){const t=[],n=this.records;for(const i of n.keys())t.push(tn(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new pt(205,!1)}processProvider(t){let n=zs(t=Y(t))?t:Y(t&&t.provide);const i=function jr(e){return yl(e)?os(void 0,e.useValue):os(qr(e),za)}(t);if(!zs(t)&&!0===t.multi){let a=this.records.get(n);a||(a=os(void 0,za,!0),a.factory=()=>Go(a.multi),this.records.set(n,a)),n=t,a.multi.push(t)}this.records.set(n,i)}hydrate(t,n){const i=A(null);try{return n.value===za&&(n.value=_l,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Hs(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{A(i)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Y(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Cl(e){const t=Ii(e),n=null!==t?t.factory:Rr(e);if(null!==n)return n;if(e instanceof Le)throw new pt(204,!1);if(e instanceof Function)return function Io(e){if(e.length>0)throw new pt(204,!1);const n=function Si(e){return e&&(e[ee]||e[be])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new pt(204,!1)}function qr(e,t,n){let i;if(zs(e)){const a=Y(e);return Rr(a)||Cl(a)}if(yl(e))i=()=>Y(e.useValue);else if(function tc(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Go(e.deps||[]));else if(function ec(e){return!(!e||!e.useExisting)}(e))i=()=>$n(Y(e.useExisting));else{const a=Y(e&&(e.useClass||e.provide));if(!function So(e){return!!e.deps}(e))return Rr(a)||Cl(a);i=()=>new a(...Go(e.deps))}return i}function os(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function wl(e,t){for(const n of e)Array.isArray(n)?wl(n,t):n&&fn(n)?wl(n.\u0275providers,t):t(n)}function qo(e,t){e instanceof Zo&&e.assertNotDestroyed();const i=Ki(e),a=Yr(void 0);try{return t()}finally{Ki(i),Yr(a)}}function Dl(){return void 0!==ha()||null!=function $o(){return Bi}()}function Ml(e){if(!Dl())throw new pt(-203,!1)}const Zn=0,lt=1,Lt=2,zn=3,$r=4,ur=5,Jr=6,ws=7,Er=8,Ei=9,Ds=10,rn=11,co=12,Cu=13,Oo=14,tr=15,Ao=16,Ms=17,js=18,El=19,Tl=20,xo=21,ja=22,ya=23,_n=25,Bc=1,ko=7,uo=9,Tr=10;var Po=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Po||{});function si(e){return Array.isArray(e)&&"object"==typeof e[Bc]}function Ti(e){return Array.isArray(e)&&!0===e[Bc]}function Wa(e){return!!(4&e.flags)}function _a(e){return e.componentOffset>-1}function Il(e){return!(1&~e.flags)}function Sn(e){return!!e.template}function Sl(e){return!!(512&e[Lt])}class Ga{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Ca(e,t,n,i){null!==t?t.applyValueToInputSignal(t,i):e[n]=i}function Jo(){return Ol}function Ol(e){return e.type.prototype.ngOnChanges&&(e.setInput=bf),Ya}function Ya(){const e=Sd(this),t=e?.current;if(t){const n=e.previous;if(n===Xr)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function bf(e,t,n,i,a){const u=this.declaredInputs[i],p=Sd(e)||function Cf(e,t){return e[Id]=t}(e,{previous:Xr,current:null}),v=p.current||(p.current={}),b=p.previous,O=b[u];v[u]=new Ga(O&&O.currentValue,n,b===Xr),Ca(e,t,a,n)}Jo.ngInherit=!0;const Id="__ngSimpleChanges__";function Sd(e){return e[Id]||null}const No=function(e,t,n){},Od="svg";let Ad=!1;function Sr(e){for(;Array.isArray(e);)e=e[Zn];return e}function jc(e,t){return Sr(t[e])}function as(e,t){return Sr(t[e.index])}function Uc(e,t){return e.data[t]}function rc(e,t){return e[t]}function Es(e,t){const n=t[e];return si(n)?n:n[Zn]}function Mu(e){return!(128&~e[Lt])}function Fo(e,t){return null==t?null:e[t]}function kd(e){e[Ms]=0}function Pd(e){1024&e[Lt]||(e[Lt]|=1024,Mu(e)&&$c(e))}function Eu(e){return!!(9216&e[Lt]||e[ya]?.dirty)}function Tu(e){e[Ds].changeDetectionScheduler?.notify(1),Eu(e)?$c(e):64&e[Lt]&&(function Df(){return Ad}()?(e[Lt]|=1024,$c(e)):e[Ds].changeDetectionScheduler?.notify())}function $c(e){e[Ds].changeDetectionScheduler?.notify();let t=Ka(e);for(;null!==t&&!(8192&t[Lt])&&(t[Lt]|=8192,Mu(t));)t=Ka(t)}function Wc(e,t){if(!(256&~e[Lt]))throw new pt(911,!1);null===e[xo]&&(e[xo]=[]),e[xo].push(t)}function Ka(e){const t=e[zn];return Ti(t)?t[zn]:t}const un={lFrame:ea(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Af(){return un.bindingsEnabled}function Xa(){return null!==un.skipHydrationRootTNode}function Ze(){return un.lFrame.lView}function qn(){return un.lFrame.tView}function Pf(e){return un.lFrame.contextLView=e,e[Er]}function Nf(e){return un.lFrame.contextLView=null,e}function Or(){let e=Ff();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ff(){return un.lFrame.currentTNode}function hr(e,t){const n=un.lFrame;n.currentTNode=e,n.isParent=t}function oc(){return un.lFrame.isParent}function Ld(){un.lFrame.isParent=!1}function bn(){const e=un.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Qa(){return un.lFrame.bindingIndex}function hi(){return un.lFrame.bindingIndex++}function ei(e){const t=un.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function xp(e,t){const n=un.lFrame;n.bindingIndex=n.bindingRootIndex=e,Gc(t)}function Gc(e){un.lFrame.currentDirectiveIndex=e}function xu(e){const t=un.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function wa(){return un.lFrame.currentQueryIndex}function Yc(e){un.lFrame.currentQueryIndex=e}function kp(e){const t=e[lt];return 2===t.type?t.declTNode:1===t.type?e[ur]:null}function Rf(e,t,n){if(n&pn.SkipSelf){let a=t,u=e;for(;!(a=a.parent,null!==a||n&pn.Host||(a=kp(u),null===a||(u=u[Oo],10&a.type))););if(null===a)return!1;t=a,e=u}const i=un.lFrame=Bf();return i.currentTNode=t,i.lView=e,!0}function Lf(e){const t=Bf(),n=e[lt];un.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Bf(){const e=un.lFrame,t=null===e?null:e.child;return null===t?ea(e):t}function ea(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Kc(){const e=un.lFrame;return un.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Bd=Kc;function ac(){const e=Kc();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function sn(){return un.lFrame.selectedIndex}function Da(e){un.lFrame.selectedIndex=e}function Vr(){const e=un.lFrame;return Uc(e.tView,e.selectedIndex)}function ku(){un.lFrame.currentNamespace=Od}function Vd(){!function Vf(){un.lFrame.currentNamespace=null}()}let zf=!0;function Al(){return zf}function Ma(e){zf=e}function Pu(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[b]<0&&(e[Ms]+=65536),(v>14>16&&(3&e[Lt])===t&&(e[Lt]+=16384,jd(v,u)):jd(v,u)}const ta=-1;class dc{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function Fu(e){return e!==ta}function Xc(e){return 32767&e}function Ea(e,t){let n=function Lp(e){return e>>16}(e),i=t;for(;n>0;)i=i[Oo],n--;return i}let Wd=!0;function Ru(e){const t=Wd;return Wd=e,t}const Gd=255,Yd=5;let jf=0;const Ro={};function Qc(e,t){const n=Kd(e,t);if(-1!==n)return n;const i=t[lt];i.firstCreatePass&&(e.injectorIndex=t.length,Lu(i.data,e),Lu(t,null),Lu(i.blueprint,null));const a=h(e,t),u=e.injectorIndex;if(Fu(a)){const p=Xc(a),v=Ea(a,t),b=v[lt].data;for(let O=0;O<8;O++)t[u+O]=v[p+O]|b[p+O]}return t[u+8]=a,u}function Lu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Kd(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function h(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,a=t;for(;null!==a;){if(i=Gn(a),null===i)return ta;if(n++,a=a[Oo],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return ta}function V(e,t,n){!function Uf(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Hr)&&(i=n[Hr]),null==i&&(i=n[Hr]=jf++);const a=i&Gd;t.data[e+(a>>Yd)]|=1<=0?t&Gd:rr:t}(n);if("function"==typeof u){if(!Rf(t,e,i))return i&pn.Host?f(a,0,i):C(t,n,i,a);try{let p;if(p=u(i),null!=p||i&pn.Optional)return p;_o()}finally{Bd()}}else if("number"==typeof u){let p=null,v=Kd(e,t),b=ta,O=i&pn.Host?t[tr][ur]:null;for((-1===v||i&pn.SkipSelf)&&(b=-1===v?h(e,t):t[v+8],b!==ta&&Nr(i,!1)?(p=t[lt],v=Xc(b),t=Ea(b,t)):v=-1);-1!==v;){const z=t[lt];if(nr(u,v,z.data)){const q=Ue(v,t,n,p,i,O);if(q!==Ro)return q}b=t[v+8],b!==ta&&Nr(i,t[lt].data[v+8]===O)&&nr(u,v,t)?(p=z,v=Xc(b),t=Ea(b,t)):v=-1}}return a}function Ue(e,t,n,i,a,u){const p=t[lt],v=p.data[e+8],z=nt(v,p,n,null==i?_a(v)&&Wd:i!=p&&!!(3&v.type),a&pn.Host&&u===v);return null!==z?at(t,p,z,v):Ro}function nt(e,t,n,i,a){const u=e.providerIndexes,p=t.data,v=1048575&u,b=e.directiveStart,z=u>>20,Me=a?v+z:e.directiveEnd;for(let Se=i?v:v+z;Se=b&&Ne.type===n)return Se}if(a){const Se=p[b];if(Se&&Sn(Se)&&Se.type===n)return b}return null}function at(e,t,n,i){let a=e[n];const u=t.data;if(function Ud(e){return e instanceof dc}(a)){const p=a;p.resolving&&function yo(e,t){throw t&&t.join(" > "),new pt(-200,e)}(function Tn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ut(e)}(u[n]));const v=Ru(p.canSeeViewProviders);p.resolving=!0;const O=p.injectImpl?Yr(p.injectImpl):null;Rf(e,i,pn.Default);try{a=e[n]=p.factory(void 0,u,e,i),t.firstCreatePass&&n>=i.directiveStart&&function zd(e,t,n){const{ngOnChanges:i,ngOnInit:a,ngDoCheck:u}=t.type.prototype;if(i){const p=Ol(t);(n.preOrderHooks??=[]).push(e,p),(n.preOrderCheckHooks??=[]).push(e,p)}a&&(n.preOrderHooks??=[]).push(0-e,a),u&&((n.preOrderHooks??=[]).push(e,u),(n.preOrderCheckHooks??=[]).push(e,u))}(n,u[n],t)}finally{null!==O&&Yr(O),Ru(v),p.resolving=!1,Bd()}}return a}function nr(e,t,n){return!!(n[t+(e>>Yd)]&1<{const t=e.prototype.constructor,n=t[li]||ti(t),i=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==i;){const u=a[li]||ti(a);if(u&&u!==n)return u;a=Object.getPrototypeOf(a)}return u=>new u})}function ti(e){return B(e)?()=>{const t=ti(Y(e));return t&&t()}:Rr(e)}function Gn(e){const t=e[lt],n=t.type;return 2===n?t.declTNode:1===n?e[ur]:null}function pr(e){return function d(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let a=0;for(;a{class e{static#e=this.THROW_IF_NOT_FOUND=Ht;static#t=this.NULL=new Cs;static create(n,i){if(Array.isArray(n))return hc({name:""},i,n,"");{const a=n.name??"";return hc({name:a},n.parent,n.providers,a)}}static#n=this.\u0275prov=Cn({token:e,providedIn:"any",factory:()=>$n(hl)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function ps(e){return e.ngOriginalError}class po{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&ps(t);for(;n&&ps(n);)n=ps(n);return n||null}}const Is=new Le("",{providedIn:"root",factory:()=>Wt(po).handleError.bind(void 0)});let Ta=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Zd;static#t=this.__NG_ENV_ID__=n=>n}return e})();class Qd extends Ta{constructor(t){super(),this._lView=t}onDestroy(t){return Wc(this._lView,t),()=>function Iu(e,t){if(null===e[xo])return;const n=e[xo].indexOf(t);-1!==n&&e[xo].splice(n,1)}(this._lView,t)}}function Zd(){return new Qd(Ze())}function Wf(){return fc(Or(),Ze())}function fc(e,t){return new Ys(as(e,t))}let Ys=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=Wf}return e})();function Zc(e){return e instanceof Ys?e.nativeElement:e}function ia(e){return t=>{setTimeout(e,void 0,t)}}const Ss=class ra extends gt.B{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,Dl()&&(this.destroyRef=Wt(Ta,{optional:!0})??void 0)}emit(t){const n=A(null);try{super.next(t)}finally{A(n)}}subscribe(t,n,i){let a=t,u=n||(()=>null),p=i;if(t&&"object"==typeof t){const b=t;a=b.next?.bind(b),u=b.error?.bind(b),p=b.complete?.bind(b)}this.__isAsync&&(u=ia(u),a&&(a=ia(a)),p&&(p=ia(p)));const v=super.subscribe({next:a,error:u,complete:p});return t instanceof cn.yU&&t.add(v),v}};function Hu(){return this._results[Symbol.iterator]()}class Pl{static#e=Symbol.iterator;get changes(){return this._changes??=new Ss}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=Pl.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=Hu)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const i=function ci(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Rs(e,t,n){if(e.length!==t.length)return!1;for(let i=0;iL6}),L6="ng",_i=new Le(""),ni=new Le("",{providedIn:"platform",factory:()=>"unknown"}),o1=new Le(""),bi=new Le("",{providedIn:"root",factory:()=>Nl().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let a1=()=>null;function l0(e,t,n=!1){return a1(e,t,n)}const f1=new Le("",{providedIn:"root",factory:()=>!1});let ch,uh;function eu(e){return function d0(){if(void 0===ch&&(ch=null,At.trustedTypes))try{ch=At.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ch}()?.createHTML(e)||e}function h0(){if(void 0===uh&&(uh=null,At.trustedTypes))try{uh=At.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return uh}function m1(e){return h0()?.createHTML(e)||e}function g1(e){return h0()?.createScriptURL(e)||e}class tu{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${vn})`}}class f0 extends tu{getTypeName(){return"HTML"}}class qi extends tu{getTypeName(){return"Style"}}class Wm extends tu{getTypeName(){return"Script"}}class Gm extends tu{getTypeName(){return"URL"}}class Ym extends tu{getTypeName(){return"ResourceURL"}}function rl(e){return e instanceof tu?e.changingThisBreaksApplicationSecurity:e}function Qu(e,t){const n=function U6(e){return e instanceof tu&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${vn})`)}return n===t}function Km(e){return new f0(e)}function Xm(e){return new qi(e)}function Qm(e){return new Wm(e)}function Zm(e){return new Gm(e)}function qm(e){return new Ym(e)}class Jm{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(eu(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class eg{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=eu(t),n}}const ng=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function dh(e){return(e=String(e)).match(ng)?e:"unsafe:"+e}function il(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Zu(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const y1=il("area,br,col,hr,img,wbr"),_1=il("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),b1=il("rp,rt"),p0=Zu(y1,Zu(_1,il("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")),Zu(b1,il("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")),Zu(b1,_1)),m0=il("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),C1=Zu(m0,il("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"),il("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")),rg=il("script,style,template");class ig{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,i=!0,a=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)a.push(n),n=ag(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let u=og(n);if(u){n=u;break}n=a.pop()}return this.buf.join("")}startElement(t){const n=w1(t).toLowerCase();if(!p0.hasOwnProperty(n))return this.sanitizedSomething=!0,!rg.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let a=0;a"),!0}endElement(t){const n=w1(t).toLowerCase();p0.hasOwnProperty(n)&&!y1.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(M1(t))}}function og(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw D1(t);return t}function ag(e){const t=e.firstChild;if(t&&function sg(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw D1(t);return t}function w1(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function D1(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const lg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,cg=/([^\#-~ |!])/g;function M1(e){return e.replace(/&/g,"&").replace(lg,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(cg,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let hh;function E1(e,t){let n=null;try{hh=hh||function v1(e){const t=new eg(e);return function tg(){try{return!!(new window.DOMParser).parseFromString(eu(""),"text/html")}catch{return!1}}()?new Jm(t):t}(e);let i=t?String(t):"";n=hh.getInertBodyElement(i);let a=5,u=i;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,i=u,u=n.innerHTML,n=hh.getInertBodyElement(i)}while(i!==u);return eu((new ig).sanitizeChildren(g0(n)||n))}finally{if(n){const i=g0(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function g0(e){return"content"in e&&function ug(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var pc=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(pc||{});function T1(e){const t=qu();return t?m1(t.sanitize(pc.HTML,e)||""):Qu(e,"HTML")?m1(rl(e)):E1(Nl(),Ut(e))}function v0(e){const t=qu();return t?t.sanitize(pc.URL,e)||"":Qu(e,"URL")?rl(e):dh(Ut(e))}function I1(e){const t=qu();if(t)return g1(t.sanitize(pc.RESOURCE_URL,e)||"");if(Qu(e,"ResourceURL"))return g1(rl(e));throw new pt(904,!1)}function S1(e,t,n){return function mg(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?I1:v0}(t,n)(e)}function qu(){const e=Ze();return e&&e[Ds].sanitizer}const gg=/^>|^->||--!>|)/g,yg="\u200b$1\u200b";function k1(e){return e.ownerDocument.defaultView}function P1(e){return e.ownerDocument}function mo(e){return e instanceof Function?e():e}var mh=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(mh||{});let C0;function w0(e,t){return C0(e,t)}function ru(e,t,n,i,a){if(null!=i){let u,p=!1;Ti(i)?u=i:si(i)&&(p=!0,i=i[Zn]);const v=Sr(i);0===e&&null!==n?null==a?j1(t,n,v):mc(t,n,v,a||null,!0):1===e&&null!==n?mc(t,n,v,a||null,!0):2===e?function sl(e,t,n){const i=yh(e,t);i&&function Sg(e,t,n,i){e.removeChild(t,n,i)}(e,i,t,n)}(t,v,p):3===e&&t.destroyNode(v),null!=u&&function ol(e,t,n,i,a){const u=n[ko];u!==Sr(n)&&ru(t,e,i,u,a);for(let v=Tr;vt.replace(vg,yg))}(t))}function ed(e,t,n){return e.createElement(t,n)}function E0(e,t){t[Ds].changeDetectionScheduler?.notify(1),_h(e,t,t[rn],2,null,null)}function td(e,t){const n=e[uo],i=n.indexOf(t);n.splice(i,1)}function gh(e,t){if(e.length<=Tr)return;const n=Tr+t,i=e[n];if(i){const a=i[Ao];null!==a&&a!==e&&td(a,i),t>0&&(e[n-1][$r]=i[$r]);const u=Yo(e,Tr+t);!function B1(e,t){E0(e,t),t[Zn]=null,t[ur]=null}(i[lt],i);const p=u[js];null!==p&&p.detachView(u[lt]),i[zn]=null,i[$r]=null,i[Lt]&=-129}return i}function Lo(e,t){if(!(256&t[Lt])){const n=t[rn];n.destroyNode&&_h(e,t,n,3,null,null),function Rl(e){let t=e[co];if(!t)return vh(e[lt],e);for(;t;){let n=null;if(si(t))n=t[co];else{const i=t[Tr];i&&(n=i)}if(!n){for(;t&&!t[$r]&&t!==e;)si(t)&&vh(t[lt],t),t=t[zn];null===t&&(t=e),si(t)&&vh(t[lt],t),n=t&&t[$r]}t=n}}(t)}}function vh(e,t){if(256&t[Lt])return;const n=A(null);try{t[Lt]&=-129,t[Lt]|=256,t[ya]&&Ye(t[ya]),function H1(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[p]():i[-p].unsubscribe(),u+=2}else n[u].call(i[n[u+1]]);null!==i&&(t[ws]=null);const a=t[xo];if(null!==a){t[xo]=null;for(let u=0;u-1){const{encapsulation:u}=e.data[i.directiveStart+a];if(u===Vs.None||u===Vs.Emulated)return null}return as(i,n)}}(e,t.parent,n)}function mc(e,t,n,i,a){e.insertBefore(t,n,i,a)}function j1(e,t,n){e.appendChild(t,n)}function T0(e,t,n,i,a){null!==i?mc(e,t,n,i,a):j1(e,t,n)}function yh(e,t){return e.parentNode(t)}function U1(e,t,n){return W1(e,t,n)}let I0,W1=function $1(e,t,n){return 40&e.type?as(e,n):null};function nd(e,t,n,i){const a=Os(e,i,t),u=t[rn],v=U1(i.parent||t[ur],i,t);if(null!=a)if(Array.isArray(n))for(let b=0;b_n&&bh(e,t,_n,!1),No(p?2:0,a),n(i,a)}finally{Da(u),No(p?3:1,a)}}function sd(e,t,n){if(Wa(t)){const i=A(null);try{const u=t.directiveEnd;for(let p=t.directiveStart;pnull;function _c(e,t,n,i,a){for(let u in t){if(!t.hasOwnProperty(u))continue;const p=t[u];if(void 0===p)continue;i??={};let v,b=zi.None;Array.isArray(p)?(v=p[0],b=p[1]):v=p;let O=u;if(null!==a){if(!a.hasOwnProperty(u))continue;O=a[u]}0===e?J1(i,n,O,v,b):J1(i,n,O,v)}return i}function J1(e,t,n,i,a){let u;e.hasOwnProperty(n)?(u=e[n]).push(t,i):u=e[n]=[t,i],void 0!==a&&u.push(a)}function Zs(e,t,n,i,a,u,p,v){const b=as(t,n);let z,O=t.inputs;!v&&null!=O&&(z=O[i])?(Dh(e,n,z,i,a),_a(t)&&function e2(e,t){const n=Es(t,e);16&n[Lt]||(n[Lt]|=64)}(n,t.index)):3&t.type&&(i=function Rg(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),a=null!=p?p(a,t.value||"",i):a,u.setProperty(b,i,a))}function bc(e,t,n,i){if(Af()){const a=null===i?null:{"":-1},u=function ou(e,t){const n=e.directiveRegistry;let i=null,a=null;if(n)for(let u=0;u0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(p)!=v&&p.push(v),p.push(n,i,u)}}(e,t,i,iu(e,n,a.hostVars,Dn),a)}function Oa(e,t,n,i,a,u){const p=as(e,t);!function L0(e,t,n,i,a,u,p){if(null==u)e.removeAttribute(t,a,n);else{const v=null==p?Ut(u):p(u,i||"",a);e.setAttribute(t,a,v,n)}}(t[rn],p,u,e.value,n,i,a)}function s2(e,t,n,i,a,u){const p=u[t];if(null!==p)for(let v=0;v0&&(n[a-1][$r]=t),i{$c(e.lView)},consumerOnSignalRead(){this.lView[ya]=this}},h2=100;function Eh(e,t=!0,n=0){const i=e[Ds],a=i.rendererFactory;a.begin?.();try{!function f2(e,t){lu(e,t);let n=0;for(;Eu(e);){if(n===h2)throw new pt(103,!1);n++,lu(e,1)}}(e,n)}catch(p){throw t&&jl(e,p),p}finally{a.end?.(),i.inlineEffectRunner?.flush()}}function $g(e,t,n,i){const a=t[Lt];if(!(256&~a))return;t[Ds].inlineEffectRunner?.flush(),Lf(t);let p=null,v=null;(function Ul(e){return 2!==e.type})(e)&&(v=function c2(e){return e[ya]??function u2(e){const t=j0.pop()??Object.create(Ug);return t.lView=e,t}(e)}(t),p=mt(v));try{kd(t),function ho(e){return un.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Vl(e,t,n,2,i);const b=!(3&~a);if(b){const q=e.preOrderCheckHooks;null!==q&&qa(t,q,null)}else{const q=e.preOrderHooks;null!==q&&lc(t,q,0,null),cc(t,0)}if(function Wg(e){for(let t=Yp(e);null!==t;t=Kp(t)){if(!(t[Lt]&Po.HasTransplantedViews))continue;const n=t[uo];for(let i=0;i-1&&(gh(t,i),Yo(n,i))}this._attachedToViewContainer=!1}Lo(this._lView[lt],this._lView)}onDestroy(t){Wc(this._lView,t)}markForCheck(){Wl(this._cdRefInjectingView||this._lView)}detach(){this._lView[Lt]&=-129}reattach(){Tu(this._lView),this._lView[Lt]|=128}detectChanges(){this._lView[Lt]|=1024,Eh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new pt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,E0(this._lView[lt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new pt(902,!1);this._appRef=t,Tu(this._lView)}}let cu=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Gg}return e})();const uu=cu,du=class extends uu{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,i){const a=au(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:i});return new pd(a)}};function Gg(){return Ih(Or(),Ze())}function Ih(e,t){return 4&e.type?new du(t,e,fc(e,t)):null}let M2=()=>null;function fu(e,t){return M2(e,t)}class Rh{}class E2{}class T2{}class r4{resolveComponentFactory(t){throw function I2(e){const t=Error(`No component factory found for ${tn(e)}.`);return t.ngComponent=e,t}(t)}}let bd=(()=>{class e{static#e=this.NULL=new r4}return e})();class S2{}let i4=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function s4(){const e=Ze(),n=Es(Or().index,e);return(si(n)?n:e)[rn]}()}return e})(),o4=(()=>{class e{static#e=this.\u0275prov=Cn({token:e,providedIn:"root",factory:()=>null})}return e})();const Q0={},Z0=new Set;function oa(e){Z0.has(e)||(Z0.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Lh(...e){}class Pi{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ss(!1),this.onMicrotaskEmpty=new Ss(!1),this.onStable=new Ss(!1),this.onError=new Ss(!1),typeof Zone>"u")throw new pt(908,!1);Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!i&&n,a.shouldCoalesceRunChangeDetection=i,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function a4(){const e="function"==typeof At.requestAnimationFrame;let t=At[e?"requestAnimationFrame":"setTimeout"],n=At[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const a=n[Zone.__symbol__("OriginalDelegate")];a&&(n=a)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function A2(e){const t=()=>{!function l4(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(At,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,J0(e),e.isCheckStableRunning=!0,q0(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),J0(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,a,u,p,v)=>{if(function c4(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(v))return n.invokeTask(a,u,p,v);try{return ep(e),n.invokeTask(a,u,p,v)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===u.type||e.shouldCoalesceRunChangeDetection)&&t(),x2(e)}},onInvoke:(n,i,a,u,p,v,b)=>{try{return ep(e),n.invoke(a,u,p,v,b)}finally{e.shouldCoalesceRunChangeDetection&&t(),x2(e)}},onHasTask:(n,i,a,u)=>{n.hasTask(a,u),i===a&&("microTask"==u.change?(e._hasPendingMicrotasks=u.microTask,J0(e),q0(e)):"macroTask"==u.change&&(e.hasPendingMacrotasks=u.macroTask))},onHandleError:(n,i,a,u)=>(n.handleError(a,u),e.runOutsideAngular(()=>e.onError.emit(u)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Pi.isInAngularZone())throw new pt(909,!1)}static assertNotInAngularZone(){if(Pi.isInAngularZone())throw new pt(909,!1)}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,a){const u=this._inner,p=u.scheduleEventTask("NgZoneEvent: "+a,t,O2,Lh,Lh);try{return u.runTask(p,n,i)}finally{u.cancelTask(p)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const O2={};function q0(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function J0(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function ep(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function x2(e){e._nesting--,q0(e)}class tp{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ss,this.onMicrotaskEmpty=new Ss,this.onStable=new Ss,this.onError=new Ss}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,a){return t.apply(n,i)}}var Gl=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Gl||{});const k2={destroy(){}};function P2(e,t){!t&&Ml();const n=t?.injector??Wt(Hi);if(!function Fl(e){return"browser"===(e??Wt(Hi)).get(ni)}(n))return k2;oa("NgAfterNextRender");const i=n.get(Bh),a=i.handler??=new d4,u=t?.phase??Gl.MixedReadWrite,p=()=>{a.unregister(b),v()},v=n.get(Ta).onDestroy(p),b=qo(n,()=>new N2(u,()=>{p(),e()}));return a.register(b),{destroy:p}}class N2{constructor(t,n){this.phase=t,this.callbackFn=n,this.zone=Wt(Pi),this.errorHandler=Wt(po,{optional:!0}),Wt(Rh,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(t){this.errorHandler?.handleError(t)}}}class d4{constructor(){this.executingCallbacks=!1,this.buckets={[Gl.EarlyRead]:new Set,[Gl.Write]:new Set,[Gl.MixedReadWrite]:new Set,[Gl.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const n of t)n.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let Bh=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Cn({token:e,providedIn:"root",factory:()=>new e})}return e})();function Ic(e){return!!Mi(e)}function sp(e,t,n){let i=n?e.styles:null,a=n?e.classes:null,u=0;if(null!==t)for(let p=0;p0&&P0(e,n,u.join(" "))}}(Se,ds,et,i),void 0!==n&&function Dv(e,t,n){const i=e.projection=[];for(let a=0;a{class e{static#e=this.__NG_ELEMENT_ID__=Ev}return e})();function Ev(){return l(Or(),Ze())}const p4=ap,m4=class extends p4{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return fc(this._hostTNode,this._hostLView)}get injector(){return new dn(this._hostTNode,this._hostLView)}get parentInjector(){const t=h(this._hostTNode,this._hostLView);if(Fu(t)){const n=Ea(t,this._hostLView),i=Xc(t);return new dn(n[lt].data[i+8],n)}return new dn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=L2(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Tr}createEmbeddedView(t,n,i){let a,u;"number"==typeof i?a=i:null!=i&&(a=i.index,u=i.injector);const p=fu(this._lContainer,t.ssrId),v=t.createEmbeddedViewImpl(n||{},u,p);return this.insertImpl(v,a,zo(this._hostTNode,p)),v}createComponent(t,n,i,a,u){const p=t&&!function Qe(e){return"function"==typeof e}(t);let v;if(p)v=n;else{const Ne=n||{};v=Ne.index,i=Ne.injector,a=Ne.projectableNodes,u=Ne.environmentInjector||Ne.ngModuleRef}const b=p?t:new Uh(In(t)),O=i||this.parentInjector;if(!u&&null==b.ngModule){const et=(p?O:this.parentInjector).get(ss,null);et&&(u=et)}const z=In(b.componentType??{}),q=fu(this._lContainer,z?.id??null),Se=b.create(O,a,q?.firstChild??null,u);return this.insertImpl(Se.hostView,v,zo(this._hostTNode,q)),Se}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,i){const a=t._lView;if(function Tf(e){return Ti(e[zn])}(a)){const v=this.indexOf(t);if(-1!==v)this.detach(v);else{const b=a[zn],O=new m4(b,b[ur],b[zn]);O.detach(O.indexOf(t))}}const u=this._adjustIndex(n),p=this._lContainer;return fd(p,a,u,i),t.attachToViewContainerRef(),to(lp(p),u,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=L2(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=gh(this._lContainer,n);i&&(Yo(lp(this._lContainer),n),Lo(i[lt],i))}detach(t){const n=this._adjustIndex(t,-1),i=gh(this._lContainer,n);return i&&null!=Yo(lp(this._lContainer),n)?new pd(i):null}_adjustIndex(t,n=0){return t??this.length+n}};function L2(e){return e[8]}function lp(e){return e[8]||(e[8]=[])}function l(e,t){let n;const i=t[e.index];return Ti(i)?n=i:(n=wh(i,t,null,e),t[e.index]=n,Bo(t,n)),o(n,t,e,i),new m4(n,e,t)}let o=function M(e,t,n,i){if(e[ko])return;let a;a=8&n.type?Sr(i):function s(e,t){const n=e[rn],i=n.createComment(""),a=as(t,e);return mc(n,yh(n,a),i,function Og(e,t){return e.nextSibling(t)}(n,a),!1),i}(t,n),e[ko]=a},c=()=>!1;class me{constructor(t){this.queryList=t,this.matches=null}clone(){return new me(this.queryList)}setDirty(){this.queryList.setDirty()}}class je{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,a=[];for(let u=0;ut.trim())}(t):t}}class wt{constructor(t=[]){this.queries=t}elementStart(t,n){for(let i=0;i0)i.push(p[v/2]);else{const O=u[v+1],z=t[-b];for(let q=Tr;q(Ee(t),t.value);return n[ie]=t,n}(e),i=n[ie];return t?.equal&&(i.equal=t.equal),n.set=a=>fe(i,a),n.update=a=>function Ie(e,t){$e()||Zt(),fe(e,t(e.value))}(i,a),n.asReadonly=on.bind(n),n}function on(){const e=this[ie];if(void 0===e.readonlyFn){const t=()=>this();t[ie]=e,e.readonlyFn=t}return e.readonlyFn}function hn(e){return function Wh(e){return"function"==typeof e&&void 0!==e[ie]}(e)&&"function"==typeof e.set}function _4(e){let t=function Pv(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let a;if(Sn(e))a=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new pt(903,!1);a=t.\u0275dir}if(a){if(n){i.push(a);const p=e;p.inputs=z2(e.inputs),p.inputTransforms=z2(e.inputTransforms),p.declaredInputs=z2(e.declaredInputs),p.outputs=z2(e.outputs);const v=a.hostBindings;v&&X_(e,v);const b=a.viewQuery,O=a.contentQueries;if(b&&Y_(e,b),O&&K_(e,O),W_(e,a),xr(e.outputs,a.outputs),Sn(a)&&a.data.animation){const z=e.data;z.animation=(z.animation||[]).concat(a.data.animation)}}const u=a.features;if(u)for(let p=0;p=0;i--){const a=e[i];a.hostVars=t+=a.hostVars,a.hostAttrs=I(a.hostAttrs,n=I(n,a.hostAttrs))}}(i)}function W_(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const i=t.inputs[n];if(void 0!==i&&(e.inputs[n]=i,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const a=Array.isArray(i)?i[0]:i;if(!t.inputTransforms.hasOwnProperty(a))continue;e.inputTransforms??={},e.inputTransforms[a]=t.inputTransforms[a]}}}function z2(e){return e===Xr?{}:e===Fn?[]:e}function Y_(e,t){const n=e.viewQuery;e.viewQuery=n?(i,a)=>{t(i,a),n(i,a)}:t}function K_(e,t){const n=e.contentQueries;e.contentQueries=n?(i,a,u)=>{t(i,a,u),n(i,a,u)}:t}function X_(e,t){const n=e.hostBindings;e.hostBindings=n?(i,a)=>{t(i,a),n(i,a)}:t}function Lv(e){const t=e.inputConfig,n={};for(const i in t)if(t.hasOwnProperty(i)){const a=t[i];Array.isArray(a)&&a[3]&&(n[i]=a[3])}e.inputTransforms=n}class Cd{}class Bv{}function tb(e,t){return new b4(e,t??null,[])}class b4 extends Cd{constructor(t,n,i){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Hh(this);const a=Mi(t);this._bootstrapComponents=mo(a.bootstrap),this._r3Injector=Vu(t,n,[{provide:Cd,useValue:this},{provide:bd,useValue:this.componentFactoryResolver},...i],tn(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class C4 extends Bv{constructor(t){super(),this.moduleType=t}create(t){return new b4(this.moduleType,t,[])}}class Vv extends Cd{constructor(t){super(),this.componentFactoryResolver=new Hh(this),this.instance=null;const n=new Zo([...t.providers,{provide:Cd,useValue:this},{provide:bd,useValue:this.componentFactoryResolver}],t.parent||Qo(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function w4(e,t,n=null){return new Vv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let Yh=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ir.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Cn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function j2(e){return!!D4(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function D4(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Xl(e,t,n){return e[t]=n}function Ui(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function wd(e,t,n,i){const a=Ui(e,t,n);return Ui(e,t+1,i)||a}function Kh(e,t,n,i,a,u,p,v){const b=Ze(),O=qn(),z=e+_n,q=O.firstCreatePass?function lb(e,t,n,i,a,u,p,v,b){const O=t.consts,z=gc(t,e,4,p||null,Fo(O,v));bc(t,n,z,Fo(O,b)),Pu(t,z);const q=z.tView=ad(2,z,i,a,u,t.directiveRegistry,t.pipeRegistry,null,t.schemas,O,null);return null!==t.queries&&(t.queries.template(t,z),q.queries=t.queries.embeddedTView(z)),z}(z,O,b,t,n,i,a,u,p):O.data[z];hr(q,!1);const Me=zv(O,b,q,e);Al()&&nd(O,b,Me,q),ms(Me,b);const Se=wh(Me,b,Me,q);return b[z]=Se,Bo(b,Se),function m(e,t,n){return c(e,t,n)}(Se,q,b),Il(q)&&yc(O,b,q),null!=p&&od(b,q,v),Kh}let zv=function Hv(e,t,n,i){return Ma(!0),t[rn].createComment("")};function P4(e,t,n,i){const a=Ze();return Ui(a,hi(),t)&&(qn(),Oa(Vr(),a,e,t,n,i)),P4}function nf(e,t,n,i){return Ui(e,hi(),n)?t+Ut(n)+i:Dn}function sf(e,t,n,i,a,u,p,v){const O=function U2(e,t,n,i,a){const u=wd(e,t,n,i);return Ui(e,t+2,a)||u}(e,Qa(),n,a,p);return ei(3),O?t+Ut(n)+i+Ut(a)+u+Ut(p)+v:Dn}function X2(e,t){return e<<17|t<<2}function vu(e){return e>>17&32767}function N4(e){return 2|e}function Md(e){return(131068&e)>>2}function F4(e,t){return-131069&e|t<<2}function R4(e){return 1|e}function y8(e,t,n,i){const a=e[n+1],u=null===t;let p=i?vu(a):Md(a),v=!1;for(;0!==p&&(!1===v||u);){const O=e[p+1];Yb(e[p],t)&&(v=!0,e[p+1]=i?R4(O):N4(O)),p=i?vu(O):Md(O)}v&&(e[n+1]=i?N4(a):R4(a))}function Yb(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ai(e,t)>=0}const cs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _8(e){return e.substring(cs.key,cs.keyEnd)}function Kb(e){return e.substring(cs.value,cs.valueEnd)}function b8(e,t){const n=cs.textEnd;return n===t?-1:(t=cs.keyEnd=function Zb(e,t,n){for(;t32;)t++;return t}(e,cs.key=t,n),hf(e,t,n))}function C8(e,t){const n=cs.textEnd;let i=cs.key=hf(e,t,n);return n===i?-1:(i=cs.keyEnd=function qb(e,t,n){let i;for(;t=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(e,i,n),i=D8(e,i,n),i=cs.value=hf(e,i,n),i=cs.valueEnd=function Jb(e,t,n){let i=-1,a=-1,u=-1,p=t,v=p;for(;p32&&(v=p),u=a,a=i,i=-33&b}return v}(e,i,n),D8(e,i,n))}function w8(e){cs.key=0,cs.keyEnd=0,cs.value=0,cs.valueEnd=0,cs.textEnd=e.length}function hf(e,t,n){for(;t=0;n=C8(t,n))S8(e,_8(t),Kb(t))}function E8(e){dl(oC,Ql,e,!0)}function Ql(e,t){for(let n=function Xb(e){return w8(e),b8(e,hf(e,0,cs.textEnd))}(t);n>=0;n=b8(t,n))Di(e,_8(t),!0)}function ul(e,t,n,i){const a=Ze(),u=qn(),p=ei(2);u.firstUpdatePass&&I8(u,e,p,i),t!==Dn&&Ui(a,p,t)&&O8(u,u.data[sn()],a,a[rn],e,a[p+1]=function lC(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=tn(rl(e)))),e}(t,n),i,p)}function dl(e,t,n,i){const a=qn(),u=ei(2);a.firstUpdatePass&&I8(a,null,u,i);const p=Ze();if(n!==Dn&&Ui(p,u,n)){const v=a.data[sn()];if(x8(v,i)&&!T8(a,u)){let b=i?v.classesWithoutHost:v.stylesWithoutHost;null!==b&&(n=Xn(b,n||"")),B4(a,v,p,n,i)}else!function aC(e,t,n,i,a,u,p,v){a===Dn&&(a=Fn);let b=0,O=0,z=0=e.expandoStartIndex}function I8(e,t,n,i){const a=e.data;if(null===a[n+1]){const u=a[sn()],p=T8(e,n);x8(u,i)&&null===t&&!p&&(t=!1),t=function tC(e,t,n,i){const a=xu(e);let u=i?t.residualClasses:t.residualStyles;if(null===a)0===(i?t.classBindings:t.styleBindings)&&(n=gp(n=H4(null,e,t,n,i),t.attrs,i),u=null);else{const p=t.directiveStylingLast;if(-1===p||e[p]!==a)if(n=H4(a,e,t,n,i),null===u){let b=function nC(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==Md(i))return e[vu(i)]}(e,t,i);void 0!==b&&Array.isArray(b)&&(b=H4(null,e,t,b[1],i),b=gp(b,t.attrs,i),function rC(e,t,n,i){e[vu(n?t.classBindings:t.styleBindings)]=i}(e,t,i,b))}else u=function iC(e,t,n){let i;const a=t.directiveEnd;for(let u=1+t.directiveStylingLast;u0)&&(O=!0)):z=n,a)if(0!==b){const Me=vu(e[v+1]);e[i+1]=X2(Me,v),0!==Me&&(e[Me+1]=F4(e[Me+1],i)),e[v+1]=function Ub(e,t){return 131071&e|t<<17}(e[v+1],i)}else e[i+1]=X2(v,0),0!==v&&(e[v+1]=F4(e[v+1],i)),v=i;else e[i+1]=X2(b,0),0===v?v=i:e[b+1]=F4(e[b+1],i),b=i;O&&(e[i+1]=N4(e[i+1])),y8(e,z,i,!0),y8(e,z,i,!1),function Gb(e,t,n,i,a){const u=a?e.residualClasses:e.residualStyles;null!=u&&"string"==typeof t&&Ai(u,t)>=0&&(n[i+1]=R4(n[i+1]))}(t,z,e,i,u),p=X2(v,b),u?t.classBindings=p:t.styleBindings=p}(a,u,t,n,p,i)}}function H4(e,t,n,i,a){let u=null;const p=n.directiveEnd;let v=n.directiveStylingLast;for(-1===v?v=n.directiveStart:v++;v0;){const b=e[a],O=Array.isArray(b),z=O?b[1]:b,q=null===z;let Me=n[a+1];Me===Dn&&(Me=q?Fn:void 0);let Se=q?io(Me,i):z===i?Me:void 0;if(O&&!Q2(Se)&&(Se=io(b,i)),Q2(Se)&&(v=Se,p))return v;const Ne=e[a+1];a=p?vu(Ne):Md(Ne)}if(null!==t){let b=u?t.residualClasses:t.residualStyles;null!=b&&(v=io(b,i))}return v}function Q2(e){return void 0!==e}function x8(e,t){return!!(e.flags&(t?8:16))}function k8(e,t,n){dl(Di,Ql,nf(Ze(),e,t,n),!0)}class yC{destroy(t){}updateValue(t,n){}swap(t,n){const i=Math.min(t,n),a=Math.max(t,n),u=this.detach(a);if(a-i>1){const p=this.detach(i);this.attach(i,u),this.attach(a,p)}else this.attach(i,u)}move(t,n){this.attach(n,this.detach(t))}}function j4(e,t,n,i,a){return e===n&&Object.is(t,i)?1:Object.is(a(e,t),a(n,i))?-1:0}function U4(e,t,n,i){return!(void 0===t||!t.has(i)||(e.attach(n,t.get(i)),t.delete(i),0))}function P8(e,t,n,i,a){if(U4(e,t,i,n(i,a)))e.updateValue(i,a);else{const u=e.create(i,a);e.attach(i,u)}}function N8(e,t,n,i){const a=new Set;for(let u=t;u<=n;u++)a.add(i(u,e.at(u)));return a}class F8{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let i=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const a=this._vMap;for(;a.has(i);)i=a.get(i);a.set(i,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,i]of this.kvMap)if(t(i,n),void 0!==this._vMap){const a=this._vMap;for(;a.has(i);)i=a.get(i),t(i,n)}}}function R8(e,t,n){oa("NgControlFlow");const i=Ze(),a=hi(),u=$4(i,_n+e);if(Ui(i,a,t)){const v=A(null);try{if(z0(u,0),-1!==t){const b=W4(i[lt],_n+t),O=fu(u,b.tView.ssrId);fd(u,au(i,b,n,{dehydratedView:O}),0,zo(b,O))}}finally{A(v)}}else{const v=Mh(u,0);void 0!==v&&(v[Er]=n)}}class bC{constructor(t,n,i){this.lContainer=t,this.$implicit=n,this.$index=i}get $count(){return this.lContainer.length-Tr}}function L8(e,t){return t}class wC{constructor(t,n,i){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=i}}function B8(e,t,n,i,a,u,p,v,b,O,z,q,Me){oa("NgControlFlow");const Se=void 0!==b,Ne=Ze(),et=v?p.bind(Ne[tr][Er]):p,ft=new wC(Se,et);Ne[_n+e]=ft,Kh(e+1,t,n,i,a,u),Se&&Kh(e+2,b,O,z,q,Me)}class DC extends yC{constructor(t,n,i){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=i,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Tr}at(t){return this.getLView(t)[Er].$implicit}attach(t,n){const i=n[Jr];this.needsIndexUpdate||=t!==this.length,fd(this.lContainer,n,t,zo(this.templateTNode,i))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function MC(e,t){return gh(e,t)}(this.lContainer,t)}create(t,n){const i=fu(this.lContainer,this.templateTNode.tView.ssrId);return au(this.hostLView,this.templateTNode,new bC(this.lContainer,n,t),{dehydratedView:i})}destroy(t){Lo(t[lt],t)}updateValue(t,n){this.getLView(t)[Er].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(v)})}(p,e,u.trackByFn),p.updateIndexes(),u.hasEmptyBlock){const v=hi(),b=0===p.length;if(Ui(i,v,b)){const O=n+2,z=$4(i,O);if(b){const q=W4(a,O),Me=fu(z,q.tView.ssrId);fd(z,au(i,q,void 0,{dehydratedView:Me}),0,zo(q,Me))}else z0(z,0)}}}finally{A(t)}}function $4(e,t){return e[t]}function W4(e,t){return Uc(e,t)}function Z2(e,t,n,i){const a=Ze(),u=qn(),p=_n+e,v=a[rn],b=u.firstCreatePass?function TC(e,t,n,i,a,u){const p=t.consts,b=gc(t,e,2,i,Fo(p,a));return bc(t,n,b,Fo(p,u)),null!==b.attrs&&sp(b,b.attrs,!1),null!==b.mergedAttrs&&sp(b,b.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,b),b}(p,u,a,t,n,i):u.data[p],O=z8(u,a,b,v,t,e);a[p]=O;const z=Il(b);return hr(b,!0),Ll(v,O,b),!function hp(e){return!(32&~e.flags)}(b)&&Al()&&nd(u,a,O,b),0===function If(){return un.lFrame.elementDepthCount}()&&ms(O,a),function Sf(){un.lFrame.elementDepthCount++}(),z&&(yc(u,a,b),sd(u,b,a)),null!==i&&od(a,b),Z2}function q2(){let e=Or();oc()?Ld():(e=e.parent,hr(e,!1));const t=e;(function Op(e){return un.skipHydrationRootTNode===e})(t)&&function Su(){un.skipHydrationRootTNode=null}(),function Of(){un.lFrame.elementDepthCount--}();const n=qn();return n.firstCreatePass&&(Pu(n,e),Wa(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Nu(e){return!!(8&e.flags)}(t)&&B4(n,t,Ze(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Hf(e){return!!(16&e.flags)}(t)&&B4(n,t,Ze(),t.stylesWithoutHost,!1),q2}function G4(e,t,n,i){return Z2(e,t,n,i),q2(),G4}let z8=(e,t,n,i,a,u)=>(Ma(!0),ed(i,a,function Za(){return un.lFrame.currentNamespace}()));function J2(e,t,n){const i=Ze(),a=qn(),u=e+_n,p=a.firstCreatePass?function OC(e,t,n,i,a){const u=t.consts,p=Fo(u,i),v=gc(t,e,8,"ng-container",p);return null!==p&&sp(v,p,!0),bc(t,n,v,Fo(u,a)),null!==t.queries&&t.queries.elementStart(t,v),v}(u,a,i,t,n):a.data[u];hr(p,!0);const v=H8(a,i,p,e);return i[u]=v,Al()&&nd(a,i,v,p),ms(v,i),Il(p)&&(yc(a,i,p),sd(a,p,i)),null!=n&&od(i,p),J2}function em(){let e=Or();const t=qn();return oc()?Ld():(e=e.parent,hr(e,!1)),t.firstCreatePass&&(Pu(t,e),Wa(e)&&t.queries.elementEnd(e)),em}function Y4(e,t,n){return J2(e,t,n),em(),Y4}let H8=(e,t,n,i)=>(Ma(!0),Ju(t[rn],""));function j8(){return Ze()}function K4(e,t,n){const i=Ze();return Ui(i,hi(),t)&&Zs(qn(),Vr(),i,e,t,i[rn],n,!0),K4}function X4(e,t,n){const i=Ze();if(Ui(i,hi(),t)){const u=qn(),p=Vr();Zs(u,p,i,e,t,l2(xu(u.data),p,i),n,!0)}return X4}const Ed=void 0;var PC=["en",[["a","p"],["AM","PM"],Ed],[["AM","PM"],Ed,Ed],[["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"]],Ed,[["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"]],Ed,[["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}",Ed,"{1} 'at' {0}",Ed],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function kC(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let ff={};function Q4(e){const t=function NC(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=$8(t);if(n)return n;const i=t.split("-")[0];if(n=$8(i),n)return n;if("en"===i)return PC;throw new pt(701,!1)}function U8(e){return Q4(e)[pf.PluralCase]}function $8(e){return e in ff||(ff[e]=At.ng&&At.ng.common&&At.ng.common.locales&&At.ng.common.locales[e]),ff[e]}var pf=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(pf||{});const mf="en-US";let W8=mf;function J4(e,t,n,i){const a=Ze(),u=qn(),p=Or();return t6(u,a,a[rn],p,e,t,i),J4}function e6(e,t){const n=Or(),i=Ze(),a=qn();return t6(a,i,l2(xu(a.data),n,i),n,e,t),e6}function t6(e,t,n,i,a,u,p){const v=Il(i),O=e.firstCreatePass&&dd(e),z=t[Er],q=B0(t);let Me=!0;if(3&i.type||p){const et=as(i,t),ft=p?p(et):et,Ct=q.length,ct=p?gr=>p(Sr(gr[i.index])):i.index;let gn=null;if(!p&&v&&(gn=function A5(e,t,n,i){const a=e.cleanup;if(null!=a)for(let u=0;ub?v[b]:null}"string"==typeof p&&(u+=2)}return null}(e,t,a,i.index)),null!==gn)(gn.__ngLastListenerFn__||gn).__ngNextListenerFn__=u,gn.__ngLastListenerFn__=u,Me=!1;else{u=_3(i,t,z,u,!1);const gr=n.listen(ft,a,u);q.push(u,gr),O&&O.push(a,ct,Ct,Ct+1)}}else u=_3(i,t,z,u,!1);const Se=i.outputs;let Ne;if(Me&&null!==Se&&(Ne=Se[a])){const et=Ne.length;if(et)for(let ft=0;ft-1?Es(e.index,t):t);let b=y3(t,n,i,p),O=u.__ngNextListenerFn__;for(;O;)b=y3(t,n,O,p)&&b,O=O.__ngNextListenerFn__;return a&&!1===b&&p.preventDefault(),b}}function b3(e=1){return function Pp(e){return(un.lFrame.contextLView=function Nd(e,t){for(;e>0;)t=t[Oo],e--;return t}(e,un.lFrame.contextLView))[Er]}(e)}function x5(e,t){let n=null;const i=function Xo(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let a=0;a(Ma(!0),function D0(e,t){return e.createText(t)}(t[rn],i));function i6(e){return sm("",e,""),i6}function sm(e,t,n){const i=Ze(),a=nf(i,e,t,n);return a!==Dn&&al(i,sn(),a),sm}function s6(e,t,n,i,a){const u=Ze(),p=function rf(e,t,n,i,a,u){const v=wd(e,Qa(),n,a);return ei(2),v?t+Ut(n)+i+Ut(a)+u:Dn}(u,e,t,n,i,a);return p!==Dn&&al(u,sn(),p),s6}function o6(e,t,n,i,a,u,p){const v=Ze(),b=sf(v,e,t,n,i,a,u,p);return b!==Dn&&al(v,sn(),b),o6}function a6(e,t,n){hn(t)&&(t=t());const i=Ze();return Ui(i,hi(),t)&&Zs(qn(),Vr(),i,e,t,i[rn],n,!1),a6}function J3(e,t){const n=hn(e);return n&&e.set(t),n}function l6(e,t){const n=Ze(),i=qn(),a=Or();return t6(i,n,n[rn],a,e,t),l6}function c6(e,t,n,i,a){if(e=Y(e),Array.isArray(e))for(let u=0;u>20;if(zs(e)||!e.multi){const Se=new dc(O,a,Bl),Ne=d6(b,t,a?z:z+Me,q);-1===Ne?(V(Qc(v,p),u,b),u6(u,e,t.length),t.push(b),v.directiveStart++,v.directiveEnd++,a&&(v.providerIndexes+=1048576),n.push(Se),p.push(Se)):(n[Ne]=Se,p[Ne]=Se)}else{const Se=d6(b,t,z+Me,q),Ne=d6(b,t,z,z+Me),ft=Ne>=0&&n[Ne];if(a&&!ft||!a&&!(Se>=0&&n[Se])){V(Qc(v,p),u,b);const Ct=function Q5(e,t,n,i,a){const u=new dc(e,n,Bl);return u.multi=[],u.index=t,u.componentProviders=0,ey(u,a,i&&!n),u}(a?X5:K5,n.length,a,i,O);!a&&ft&&(n[Ne].providerFactory=Ct),u6(u,e,t.length,0),t.push(b),v.directiveStart++,v.directiveEnd++,a&&(v.providerIndexes+=1048576),n.push(Ct),p.push(Ct)}else u6(u,e,Se>-1?Se:Ne,ey(n[a?Ne:Se],O,!a&&i));!a&&i&&ft&&n[Ne].componentProviders++}}}function u6(e,t,n,i){const a=zs(t),u=function Lc(e){return!!e.useClass}(t);if(a||u){const b=(u?Y(t.useClass):t).prototype.ngOnDestroy;if(b){const O=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const z=O.indexOf(n);-1===z?O.push(n,[i,b]):O[z+1].push(i,b)}else O.push(n,b)}}}function ey(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function d6(e,t,n,i){for(let a=n;a{n.providersResolver=(i,a)=>function Y5(e,t,n){const i=qn();if(i.firstCreatePass){const a=Sn(e);c6(n,i.data,i.blueprint,a,!0),c6(t,i.data,i.blueprint,a,!1)}}(i,a?a(e):e,t)}}let Z5=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const i=lo(0,n.type),a=i.length>0?w4([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,a)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Cn({token:e,providedIn:"environment",factory:()=>new e($n(ss))})}return e})();function ny(e){oa("NgStandalone"),e.getStandaloneInjector=t=>t.get(Z5).getOrCreateStandaloneInjector(e)}function iy(e,t,n){const i=bn()+e,a=Ze();return a[i]===Dn?Xl(a,i,n?t.call(n):t()):function dp(e,t){return e[t]}(a,i)}function sy(e,t,n,i){return ly(Ze(),bn(),e,t,n,i)}function oy(e,t,n,i,a){return cy(Ze(),bn(),e,t,n,i,a)}function ay(e,t,n,i,a,u,p){return function dy(e,t,n,i,a,u,p,v,b){const O=t+n;return function Aa(e,t,n,i,a,u){const p=wd(e,t,n,i);return wd(e,t+2,a,u)||p}(e,O,a,u,p,v)?Xl(e,O+4,b?i.call(b,a,u,p,v):i(a,u,p,v)):Dp(e,O+4)}(Ze(),bn(),e,t,n,i,a,u,p)}function Dp(e,t){const n=e[t];return n===Dn?void 0:n}function ly(e,t,n,i,a,u){const p=t+n;return Ui(e,p,a)?Xl(e,p+1,u?i.call(u,a):i(a)):Dp(e,p+1)}function cy(e,t,n,i,a,u,p){const v=t+n;return wd(e,v,a,u)?Xl(e,v+2,p?i.call(p,a,u):i(a,u)):Dp(e,v+2)}function fy(e,t){const n=qn();let i;const a=e+_n;n.firstCreatePass?(i=function ow(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[a]=i,i.onDestroy&&(n.destroyHooks??=[]).push(a,i.onDestroy)):i=n.data[a];const u=i.factory||(i.factory=Rr(i.type)),v=Yr(Bl);try{const b=Ru(!1),O=u();return Ru(b),function F5(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,Ze(),a,O),O}finally{Yr(v)}}function py(e,t,n){const i=e+_n,a=Ze(),u=rc(a,i);return Mp(a,i)?ly(a,bn(),t,u.transform,n,u):u.transform(n)}function my(e,t,n,i){const a=e+_n,u=Ze(),p=rc(u,a);return Mp(u,a)?cy(u,bn(),t,p.transform,n,i,p):p.transform(n,i)}function Mp(e,t){return e[lt].data[t].pure}function gy(e,t){return Ih(e,t)}class ky{constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}let Py=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Cn({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const By=new Le(""),Vy=new Le("");let y6,nD=(()=>{class e{constructor(n,i,a){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,y6||(function rD(e){y6=e}(a),a.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Pi.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,a){let u=-1;i&&i>0&&(u=setTimeout(()=>{this._callbacks=this._callbacks.filter(p=>p.timeoutId!==u),n()},i)),this._callbacks.push({doneCb:n,timeoutId:u,updateCb:a})}whenStable(n,i,a){if(a&&!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(n,i,a),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,a){return[]}static#e=this.\u0275fac=function(i){return new(i||e)($n(Pi),$n(zy),$n(Vy))};static#t=this.\u0275prov=Cn({token:e,factory:e.\u0275fac})}return e})(),zy=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return y6?.findTestabilityInTree(this,n,i)??null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Cn({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function _6(e){return!!e&&"function"==typeof e.then}function Hy(e){return!!e&&"function"==typeof e.subscribe}const jy=new Le("");let b6=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=Wt(jy,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const a of this.appInits){const u=a();if(_6(u))n.push(u);else if(Hy(u)){const p=new Promise((v,b)=>{u.subscribe({complete:v,error:b})});n.push(p)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(a=>{this.reject(a)}),0===n.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Cn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const C6=new Le("");function Wy(e,t){return Array.isArray(t)?t.reduce(Wy,e):{...e,...t}}let yu=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Wt(Is),this.afterRenderEffectManager=Wt(Bh),this.externalTestViews=new Set,this.beforeRender=new gt.B,this.afterTick=new gt.B,this.componentTypes=[],this.components=[],this.isStable=Wt(Yh).hasPendingTasks.pipe((0,kn.T)(n=>!n)),this._injector=Wt(ss)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){const a=n instanceof T2;if(!this._injector.get(b6).done)throw!a&&xi(n),new pt(405,!1);let p;p=a?n:this._injector.get(bd).resolveComponentFactory(n),this.componentTypes.push(p.componentType);const v=function iD(e){return e.isBoundToModule}(p)?void 0:this._injector.get(Cd),O=p.create(Hi.NULL,[],i||p.selector,v),z=O.location.nativeElement,q=O.injector.get(By,null);return q?.registerApplication(z),O.onDestroy(()=>{this.detachView(O.hostView),cm(this.components,O),q?.unregisterApplication(z)}),this._loadComponent(O),O}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new pt(101,!1);const i=A(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(a){this.internalErrorHandler(a)}finally{this.afterTick.next(),this._runningTick=!1,A(i)}}detectChangesInAttachedViews(n){let i=0;const a=this.afterRenderEffectManager;for(;;){if(i===h2)throw new pt(103,!1);if(n){const u=0===i;this.beforeRender.next(u);for(let{_lView:p,notifyErrorHandler:v}of this._views)oD(p,u,v)}if(i++,a.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:u})=>w6(u))&&(a.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:u})=>w6(u))))break}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;cm(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const i=this._injector.get(C6,[]);[...this._bootstrapListeners,...i].forEach(a=>a(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>cm(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new pt(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Cn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function cm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function oD(e,t,n){!t&&!w6(e)||function aD(e,t,n){let i;n?(i=0,e[Lt]|=1024):i=64&e[Lt]?0:1,Eh(e,t,i)}(e,n,t)}function w6(e){return Eu(e)}class lD{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let cD=(()=>{class e{compileModuleSync(n){return new C4(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),u=mo(Mi(n).declarations).reduce((p,v)=>{const b=In(v);return b&&p.push(new Uh(b)),p},[]);return new lD(i,u)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Cn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hD=(()=>{class e{constructor(){this.zone=Wt(Pi),this.applicationRef=Wt(yu)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Cn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fD(){const e=Wt(Pi),t=Wt(po);return n=>e.runOutsideAngular(()=>t.handleError(n))}let mD=(()=>{class e{constructor(){this.subscription=new cn.yU,this.initialized=!1,this.zone=Wt(Pi),this.pendingTasks=Wt(Yh)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Pi.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Pi.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Cn({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const dm=new Le("",{providedIn:"root",factory:()=>Wt(dm,pn.Optional|pn.SkipSelf)||function gD(){return typeof $localize<"u"&&$localize.locale||mf}()}),vD=new Le("",{providedIn:"root",factory:()=>"USD"}),D6=new Le("");let Xy=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const a=function np(e="zone.js",t){return"noop"===e?new tp:"zone.js"===e?new Pi(t):e}(i?.ngZone,function Ky(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return a.run(()=>{const u=function nb(e,t,n){return new b4(e,t,n)}(n.moduleType,this.injector,function Yy(e){return[{provide:Pi,useFactory:e},{provide:Ls,multi:!0,useFactory:()=>{const t=Wt(hD,{optional:!0});return()=>t.initialize()}},{provide:Ls,multi:!0,useFactory:()=>{const t=Wt(mD);return()=>{t.initialize()}}},{provide:Is,useFactory:fD}]}(()=>a)),p=u.injector.get(po,null);return a.runOutsideAngular(()=>{const v=a.onError.subscribe({next:b=>{p.handleError(b)}});u.onDestroy(()=>{cm(this._modules,u),v.unsubscribe()})}),function $y(e,t,n){try{const i=n();return _6(i)?i.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(p,a,()=>{const v=u.injector.get(b6);return v.runInitializers(),v.donePromise.then(()=>(function G8(e){"string"==typeof e&&(W8=e.toLowerCase().replace(/_/g,"-"))}(u.injector.get(dm,mf)||mf),this._moduleDoBootstrap(u),u))})})}bootstrapModule(n,i=[]){const a=Wy({},i);return function dD(e,t,n){const i=new C4(n);return Promise.resolve(i)}(0,0,n).then(u=>this.bootstrapModuleFactory(u,a))}_moduleDoBootstrap(n){const i=n.injector.get(yu);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(a=>i.bootstrap(a));else{if(!n.instance.ngDoBootstrap)throw new pt(-403,!1);n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new pt(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const n=this._injector.get(D6,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||e)($n(Hi))};static#t=this.\u0275prov=Cn({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),_u=null;const Qy=new Le("");function Zy(e,t,n=[]){const i=`Platform: ${t}`,a=new Le(i);return(u=[])=>{let p=M6();if(!p||p.injector.get(Qy,!1)){const v=[...n,...u,{provide:a,useValue:!0}];e?e(v):function _D(e){if(_u&&!_u.get(Qy,!1))throw new pt(400,!1);(function Uy(){!function Mn(e){Qt=e}(()=>{throw new pt(600,!1)})})(),_u=e;const t=e.get(Xy);(function Jy(e){e.get(_i,null)?.forEach(n=>n())})(e)}(function qy(e=[],t){return Hi.create({name:t,providers:[{provide:Va,useValue:"platform"},{provide:D6,useValue:new Set([()=>_u=null])},...e]})}(v,i))}return function bD(e){const t=M6();if(!t)throw new pt(401,!1);return t}()}}function M6(){return _u?.get(Xy)??null}let t_=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=wD}return e})();function wD(e){return function DD(e,t,n){if(_a(e)&&!n){const i=Es(e.index,t);return new pd(i,i)}return 47&e.type?new pd(t[tr],t):null}(Or(),Ze(),!(16&~e))}class s_{constructor(){}supports(t){return j2(t)}create(t){return new SD(t)}}const ID=(e,t)=>t;class SD{constructor(t){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=t||ID}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,a=0,u=null;for(;n||i;){const p=!i||n&&n.currentIndex{p=this._trackByFn(a,v),null!==n&&Object.is(n.trackById,p)?(i&&(n=this._verifyReinsertion(n,v,p,a)),Object.is(n.item,v)||this._addIdentityChange(n,v)):(n=this._mismatch(n,v,p,a),i=!0),n=n._next,a++}),this.length=a;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,a){let u;return null===t?u=this._itTail:(u=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,u,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,a))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,u,a)):t=this._addAfter(new OD(n,i),u,a),t}_verifyReinsertion(t,n,i,a){let u=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==u?t=this._reinsertAfter(u,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}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(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const a=t._prevRemoved,u=t._nextRemoved;return null===a?this._removalsHead=u:a._nextRemoved=u,null===u?this._removalsTail=a:u._prevRemoved=a,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const a=null===n?this._itHead:n._next;return t._next=a,t._prev=n,null===a?this._itTail=t:a._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new o_),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new o_),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class OD{constructor(t,n){this.item=t,this.trackById=n,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 AD{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class o_{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new AD,this.map.set(n,i)),i.add(t)}get(t,n){const a=this.map.get(t);return a?a.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function a_(e,t,n){const i=e.previousIndex;if(null===i)return i;let a=0;return n&&i{if(n&&n.key===a)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const u=this._getOrCreateRecordForKey(a,i);n=this._insertBeforeOrAppend(n,u)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const a=this._records.get(t);this._maybeAddToChanges(a,n);const u=a._prev,p=a._next;return u&&(u._next=p),p&&(p._prev=u),a._next=null,a._prev=null,a}const i=new kD(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class kD{constructor(t){this.key=t,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 c_(){return new O6([new s_])}let O6=(()=>{class e{static#e=this.\u0275prov=Cn({token:e,providedIn:"root",factory:c_});constructor(n){this.factories=n}static create(n,i){if(null!=i){const a=i.factories.slice();n=n.concat(a)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||c_()),deps:[[e,new Fs,new Vi]]}}find(n){const i=this.factories.find(a=>a.supports(n));if(null!=i)return i;throw new pt(901,!1)}}return e})();function u_(){return new A6([new l_])}let A6=(()=>{class e{static#e=this.\u0275prov=Cn({token:e,providedIn:"root",factory:u_});constructor(n){this.factories=n}static create(n,i){if(i){const a=i.factories.slice();n=n.concat(a)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||u_()),deps:[[e,new Fs,new Vi]]}}find(n){const i=this.factories.find(a=>a.supports(n));if(i)return i;throw new pt(901,!1)}}return e})();const FD=Zy(null,"core",[]);let RD=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(i){return new(i||e)($n(yu))};static#t=this.\u0275mod=ga({type:e});static#n=this.\u0275inj=Ci({})}return e})();function dM(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function hM(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function pM(e){const t=A(null);try{return e()}finally{A(t)}}const mM=new Le("",{providedIn:"root",factory:()=>Wt(gM)});let gM=(()=>{class e{static#e=this.\u0275prov=Cn({token:e,providedIn:"root",factory:()=>new vM})}return e})();class vM{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Wt(Yh),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),null===this.taskId){const n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){const n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);const i=this.queues.get(n);i.has(t)||(this.queuedEffectCount++,i.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,n]of this.queues)null===t?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(const n of t)t.delete(n),this.queuedEffectCount--,n.run()}}class yM{constructor(t,n,i,a,u,p){this.scheduler=t,this.effectFn=n,this.creationZone=i,this.injector=u,this.watcher=function Gt(e,t,n){const i=Object.create(Xt);n&&(i.consumerAllowSignalWrites=!0),i.fn=e,i.schedule=t;const a=b=>{i.cleanupFn=b};return i.ref={notify:()=>We(i),run:()=>{if(null===i.fn)return;if(function Z(){return F}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!It(i))return;i.hasRun=!0;const b=mt(i);try{i.cleanupFn(),i.cleanupFn=Je,i.fn(a)}finally{tt(i,b)}},cleanup:()=>i.cleanupFn(),destroy:()=>function p(b){(function u(b){return null===b.fn&&null===b.schedule})(b)||(Ye(b),b.cleanupFn(),b.fn=null,b.schedule=null,b.cleanupFn=Je)}(i),[ie]:i},i.ref}(v=>this.runEffect(v),()=>this.schedule(),p),this.unregisterOnDestroy=a?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(po,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function k_(e,t){oa("NgSignals"),!t?.injector&&Ml();const n=t?.injector??Wt(Hi),i=!0!==t?.manualCleanup?n.get(Ta):null,a=new yM(n.get(mM),e,typeof Zone>"u"?null:Zone.current,i,n,t?.allowSignalWrites??!1),u=n.get(t_,null,{optional:!0});return u&&8&u._lView[Lt]?(u._lView[ja]??=[]).push(a.watcher.notify):a.watcher.notify(),a}function _M(e){const t=In(e);if(!t)return null;const n=new Uh(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},9417:(st,Ce,D)=>{D.d(Ce,{BC:()=>vn,Fm:()=>pn,J3:()=>ve,JD:()=>Bi,MJ:()=>An,Q0:()=>yo,X1:()=>Do,YN:()=>oo,YS:()=>Qi,Zm:()=>oe,cV:()=>Nn,cb:()=>pt,cz:()=>We,gE:()=>Ae,hs:()=>Qn,j4:()=>Ht,k0:()=>It,kq:()=>H,l_:()=>eo,me:()=>xe,ok:()=>Cs,qT:()=>xa,tU:()=>wo,vO:()=>cn,vS:()=>Tn,wz:()=>$n,xH:()=>ts,xq:()=>to,y7:()=>fa});var r=D(4438),g=D(177),$=D(6648),F=D(7468),se=D(6354);let ie=(()=>{class P{constructor(I,X){this._renderer=I,this._elementRef=X,this.onChange=De=>{},this.onTouched=()=>{}}setProperty(I,X){this._renderer.setProperty(this._elementRef.nativeElement,I,X)}registerOnTouched(I){this.onTouched=I}registerOnChange(I){this.onChange=I}setDisabledState(I){this.setProperty("disabled",I)}static#e=this.\u0275fac=function(X){return new(X||P)(r.rXU(r.sFG),r.rXU(r.aKT))};static#t=this.\u0275dir=r.FsC({type:P})}return P})(),A=(()=>{class P extends ie{static#e=this.\u0275fac=(()=>{let I;return function(De){return(I||(I=r.xGo(P)))(De||P)}})();static#t=this.\u0275dir=r.FsC({type:P,features:[r.Vt3]})}return P})();const H=new r.nKC(""),Z={provide:H,useExisting:(0,r.Rfq)(()=>oe),multi:!0};let oe=(()=>{class P extends A{writeValue(I){this.setProperty("checked",I)}static#e=this.\u0275fac=(()=>{let I;return function(De){return(I||(I=r.xGo(P)))(De||P)}})();static#t=this.\u0275dir=r.FsC({type:P,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(X,De){1&X&&r.bIt("change",function(an){return De.onChange(an.target.checked)})("blur",function(){return De.onTouched()})},features:[r.Jv_([Z]),r.Vt3]})}return P})();const de={provide:H,useExisting:(0,r.Rfq)(()=>xe),multi:!0},Te=new r.nKC("");let xe=(()=>{class P extends ie{constructor(I,X,De){super(I,X),this._compositionMode=De,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Ee(){const P=(0,g.QT)()?(0,g.QT)().getUserAgent():"";return/android (\d+)/.test(P.toLowerCase())}())}writeValue(I){this.setProperty("value",I??"")}_handleInput(I){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(I)}_compositionStart(){this._composing=!0}_compositionEnd(I){this._composing=!1,this._compositionMode&&this.onChange(I)}static#e=this.\u0275fac=function(X){return new(X||P)(r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(Te,8))};static#t=this.\u0275dir=r.FsC({type:P,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(X,De){1&X&&r.bIt("input",function(an){return De._handleInput(an.target.value)})("blur",function(){return De.onTouched()})("compositionstart",function(){return De._compositionStart()})("compositionend",function(an){return De._compositionEnd(an.target.value)})},features:[r.Jv_([de]),r.Vt3]})}return P})();function we(P){return null==P||("string"==typeof P||Array.isArray(P))&&0===P.length}function $e(P){return null!=P&&"number"==typeof P.length}const We=new r.nKC(""),mt=new r.nKC(""),tt=/^(?=.{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 It{static min(L){return function Ye(P){return L=>{if(we(L.value)||we(P))return null;const I=parseFloat(L.value);return!isNaN(I)&&I{if(we(L.value)||we(P))return null;const I=parseFloat(L.value);return!isNaN(I)&&I>P?{max:{max:P,actual:L.value}}:null}}(L)}static required(L){return Ke(L)}static requiredTrue(L){return Dt(L)}static email(L){return function Xe(P){return we(P.value)||tt.test(P.value)?null:{email:!0}}(L)}static minLength(L){return function it(P){return L=>we(L.value)||!$e(L.value)?null:L.value.length{if(we(X.value))return null;const De=X.value;return L.test(De)?null:{pattern:{requiredPattern:I,actualValue:De}}}}(L)}static nullValidator(L){return null}static compose(L){return ke(L)}static composeAsync(L){return J(L)}}function Ke(P){return we(P.value)?{required:!0}:null}function Dt(P){return!0===P.value?null:{required:!0}}function ut(P){return L=>$e(L.value)&&L.value.length>P?{maxlength:{requiredLength:P,actualLength:L.value.length}}:null}function Re(P){return null}function ze(P){return null!=P}function dt(P){return(0,r.jNT)(P)?(0,$.H)(P):P}function Bt(P){let L={};return P.forEach(I=>{L=null!=I?{...L,...I}:L}),0===Object.keys(L).length?null:L}function Qt(P,L){return L.map(I=>I(P))}function Mn(P){return P.map(L=>function Zt(P){return!P.validate}(L)?L:I=>L.validate(I))}function ke(P){if(!P)return null;const L=P.filter(ze);return 0==L.length?null:function(I){return Bt(Qt(I,L))}}function ue(P){return null!=P?ke(Mn(P)):null}function J(P){if(!P)return null;const L=P.filter(ze);return 0==L.length?null:function(I){const X=Qt(I,L).map(dt);return(0,F.p)(X).pipe((0,se.T)(Bt))}}function ne(P){return null!=P?J(Mn(P)):null}function fe(P,L){return null===P?[L]:Array.isArray(P)?[...P,L]:[P,L]}function Ie(P){return P._rawValidators}function ot(P){return P._rawAsyncValidators}function bt(P){return P?Array.isArray(P)?P:[P]:[]}function Gt(P,L){return Array.isArray(P)?P.includes(L):P===L}function Je(P,L){const I=bt(L);return bt(P).forEach(De=>{Gt(I,De)||I.push(De)}),I}function Xt(P,L){return bt(L).filter(I=>!Gt(P,I))}class Yt{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(L){this._rawValidators=L||[],this._composedValidatorFn=ue(this._rawValidators)}_setAsyncValidators(L){this._rawAsyncValidators=L||[],this._composedAsyncValidatorFn=ne(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(L){this._onDestroyCallbacks.push(L)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(L=>L()),this._onDestroyCallbacks=[]}reset(L=void 0){this.control&&this.control.reset(L)}hasError(L,I){return!!this.control&&this.control.hasError(L,I)}getError(L,I){return this.control?this.control.getError(L,I):null}}class gt extends Yt{get formDirective(){return null}get path(){return null}}class cn extends Yt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ir{constructor(L){this._cd=L}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 vn=(()=>{class P extends ir{constructor(I){super(I)}static#e=this.\u0275fac=function(X){return new(X||P)(r.rXU(cn,2))};static#t=this.\u0275dir=r.FsC({type:P,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(X,De){2&X&&r.AVh("ng-untouched",De.isUntouched)("ng-touched",De.isTouched)("ng-pristine",De.isPristine)("ng-dirty",De.isDirty)("ng-valid",De.isValid)("ng-invalid",De.isInvalid)("ng-pending",De.isPending)},features:[r.Vt3]})}return P})(),pt=(()=>{class P extends ir{constructor(I){super(I)}static#e=this.\u0275fac=function(X){return new(X||P)(r.rXU(gt,10))};static#t=this.\u0275dir=r.FsC({type:P,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(X,De){2&X&&r.AVh("ng-untouched",De.isUntouched)("ng-touched",De.isTouched)("ng-pristine",De.isPristine)("ng-dirty",De.isDirty)("ng-valid",De.isValid)("ng-invalid",De.isInvalid)("ng-pending",De.isPending)("ng-submitted",De.isSubmitted)},features:[r.Vt3]})}return P})();const en="VALID",xr="INVALID",tn="PENDING",Xn="DISABLED";function Fr(P){return(B(P)?P.validators:P)||null}function Ve(P,L){return(B(L)?L.asyncValidators:P)||null}function B(P){return null!=P&&!Array.isArray(P)&&"object"==typeof P}function x(P,L,I){const X=P.controls;if(!(L?Object.keys(X):X).length)throw new r.wOt(1e3,"");if(!X[I])throw new r.wOt(1001,"")}function K(P,L,I){P._forEachChild((X,De)=>{if(void 0===I[De])throw new r.wOt(1002,"")})}class G{constructor(L,I){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(L),this._assignAsyncValidators(I)}get validator(){return this._composedValidatorFn}set validator(L){this._rawValidators=this._composedValidatorFn=L}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(L){this._rawAsyncValidators=this._composedAsyncValidatorFn=L}get parent(){return this._parent}get valid(){return this.status===en}get invalid(){return this.status===xr}get pending(){return this.status==tn}get disabled(){return this.status===Xn}get enabled(){return this.status!==Xn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(L){this._assignValidators(L)}setAsyncValidators(L){this._assignAsyncValidators(L)}addValidators(L){this.setValidators(Je(L,this._rawValidators))}addAsyncValidators(L){this.setAsyncValidators(Je(L,this._rawAsyncValidators))}removeValidators(L){this.setValidators(Xt(L,this._rawValidators))}removeAsyncValidators(L){this.setAsyncValidators(Xt(L,this._rawAsyncValidators))}hasValidator(L){return Gt(this._rawValidators,L)}hasAsyncValidator(L){return Gt(this._rawAsyncValidators,L)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(L={}){this.touched=!0,this._parent&&!L.onlySelf&&this._parent.markAsTouched(L)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(L=>L.markAllAsTouched())}markAsUntouched(L={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(I=>{I.markAsUntouched({onlySelf:!0})}),this._parent&&!L.onlySelf&&this._parent._updateTouched(L)}markAsDirty(L={}){this.pristine=!1,this._parent&&!L.onlySelf&&this._parent.markAsDirty(L)}markAsPristine(L={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(I=>{I.markAsPristine({onlySelf:!0})}),this._parent&&!L.onlySelf&&this._parent._updatePristine(L)}markAsPending(L={}){this.status=tn,!1!==L.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!L.onlySelf&&this._parent.markAsPending(L)}disable(L={}){const I=this._parentMarkedDirty(L.onlySelf);this.status=Xn,this.errors=null,this._forEachChild(X=>{X.disable({...L,onlySelf:!0})}),this._updateValue(),!1!==L.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...L,skipPristineCheck:I}),this._onDisabledChange.forEach(X=>X(!0))}enable(L={}){const I=this._parentMarkedDirty(L.onlySelf);this.status=en,this._forEachChild(X=>{X.enable({...L,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:L.emitEvent}),this._updateAncestors({...L,skipPristineCheck:I}),this._onDisabledChange.forEach(X=>X(!1))}_updateAncestors(L){this._parent&&!L.onlySelf&&(this._parent.updateValueAndValidity(L),L.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(L){this._parent=L}getRawValue(){return this.value}updateValueAndValidity(L={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===en||this.status===tn)&&this._runAsyncValidator(L.emitEvent)),!1!==L.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!L.onlySelf&&this._parent.updateValueAndValidity(L)}_updateTreeValidity(L={emitEvent:!0}){this._forEachChild(I=>I._updateTreeValidity(L)),this.updateValueAndValidity({onlySelf:!0,emitEvent:L.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xn:en}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(L){if(this.asyncValidator){this.status=tn,this._hasOwnPendingAsyncValidator=!0;const I=dt(this.asyncValidator(this));this._asyncValidationSubscription=I.subscribe(X=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(X,{emitEvent:L})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(L,I={}){this.errors=L,this._updateControlsErrors(!1!==I.emitEvent)}get(L){let I=L;return null==I||(Array.isArray(I)||(I=I.split(".")),0===I.length)?null:I.reduce((X,De)=>X&&X._find(De),this)}getError(L,I){const X=I?this.get(I):this;return X&&X.errors?X.errors[L]:null}hasError(L,I){return!!this.getError(L,I)}get root(){let L=this;for(;L._parent;)L=L._parent;return L}_updateControlsErrors(L){this.status=this._calculateStatus(),L&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(L)}_initObservables(){this.valueChanges=new r.bkB,this.statusChanges=new r.bkB}_calculateStatus(){return this._allControlsDisabled()?Xn:this.errors?xr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(tn)?tn:this._anyControlsHaveStatus(xr)?xr:en}_anyControlsHaveStatus(L){return this._anyControls(I=>I.status===L)}_anyControlsDirty(){return this._anyControls(L=>L.dirty)}_anyControlsTouched(){return this._anyControls(L=>L.touched)}_updatePristine(L={}){this.pristine=!this._anyControlsDirty(),this._parent&&!L.onlySelf&&this._parent._updatePristine(L)}_updateTouched(L={}){this.touched=this._anyControlsTouched(),this._parent&&!L.onlySelf&&this._parent._updateTouched(L)}_registerOnCollectionChange(L){this._onCollectionChange=L}_setUpdateStrategy(L){B(L)&&null!=L.updateOn&&(this._updateOn=L.updateOn)}_parentMarkedDirty(L){return!L&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(L){return null}_assignValidators(L){this._rawValidators=Array.isArray(L)?L.slice():L,this._composedValidatorFn=function ii(P){return Array.isArray(P)?ue(P):P||null}(this._rawValidators)}_assignAsyncValidators(L){this._rawAsyncValidators=Array.isArray(L)?L.slice():L,this._composedAsyncValidatorFn=function Y(P){return Array.isArray(P)?ne(P):P||null}(this._rawAsyncValidators)}}class Ae extends G{constructor(L,I,X){super(Fr(I),Ve(X,I)),this.controls=L,this._initObservables(),this._setUpdateStrategy(I),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(L,I){return this.controls[L]?this.controls[L]:(this.controls[L]=I,I.setParent(this),I._registerOnCollectionChange(this._onCollectionChange),I)}addControl(L,I,X={}){this.registerControl(L,I),this.updateValueAndValidity({emitEvent:X.emitEvent}),this._onCollectionChange()}removeControl(L,I={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),delete this.controls[L],this.updateValueAndValidity({emitEvent:I.emitEvent}),this._onCollectionChange()}setControl(L,I,X={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),delete this.controls[L],I&&this.registerControl(L,I),this.updateValueAndValidity({emitEvent:X.emitEvent}),this._onCollectionChange()}contains(L){return this.controls.hasOwnProperty(L)&&this.controls[L].enabled}setValue(L,I={}){K(this,0,L),Object.keys(L).forEach(X=>{x(this,!0,X),this.controls[X].setValue(L[X],{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I)}patchValue(L,I={}){null!=L&&(Object.keys(L).forEach(X=>{const De=this.controls[X];De&&De.patchValue(L[X],{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I))}reset(L={},I={}){this._forEachChild((X,De)=>{X.reset(L?L[De]:null,{onlySelf:!0,emitEvent:I.emitEvent})}),this._updatePristine(I),this._updateTouched(I),this.updateValueAndValidity(I)}getRawValue(){return this._reduceChildren({},(L,I,X)=>(L[X]=I.getRawValue(),L))}_syncPendingControls(){let L=this._reduceChildren(!1,(I,X)=>!!X._syncPendingControls()||I);return L&&this.updateValueAndValidity({onlySelf:!0}),L}_forEachChild(L){Object.keys(this.controls).forEach(I=>{const X=this.controls[I];X&&L(X,I)})}_setUpControls(){this._forEachChild(L=>{L.setParent(this),L._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(L){for(const[I,X]of Object.entries(this.controls))if(this.contains(I)&&L(X))return!0;return!1}_reduceValue(){return this._reduceChildren({},(I,X,De)=>((X.enabled||this.disabled)&&(I[De]=X.value),I))}_reduceChildren(L,I){let X=L;return this._forEachChild((De,Pt)=>{X=I(X,De,Pt)}),X}_allControlsDisabled(){for(const L of Object.keys(this.controls))if(this.controls[L].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(L){return this.controls.hasOwnProperty(L)?this.controls[L]:null}}const ve=Ae;class le extends Ae{}const _e=new r.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>Ge}),Ge="always";function yt(P,L){return[...L.path,P]}function Vn(P,L,I=Ge){lr(P,L),L.valueAccessor.writeValue(P.value),(P.disabled||"always"===I)&&L.valueAccessor.setDisabledState?.(P.disabled),function xs(P,L){L.valueAccessor.registerOnChange(I=>{P._pendingValue=I,P._pendingChange=!0,P._pendingDirty=!0,"change"===P.updateOn&&Cn(P,L)})}(P,L),function zr(P,L){const I=(X,De)=>{L.valueAccessor.writeValue(X),De&&L.viewToModelUpdate(X)};P.registerOnChange(I),L._registerOnDestroy(()=>{P._unregisterOnChange(I)})}(P,L),function Gi(P,L){L.valueAccessor.registerOnTouched(()=>{P._pendingTouched=!0,"blur"===P.updateOn&&P._pendingChange&&Cn(P,L),"submit"!==P.updateOn&&P.markAsTouched()})}(P,L),function vs(P,L){if(L.valueAccessor.setDisabledState){const I=X=>{L.valueAccessor.setDisabledState(X)};P.registerOnDisabledChange(I),L._registerOnDestroy(()=>{P._unregisterOnDisabledChange(I)})}}(P,L)}function Hn(P,L,I=!0){const X=()=>{};L.valueAccessor&&(L.valueAccessor.registerOnChange(X),L.valueAccessor.registerOnTouched(X)),Ji(P,L),P&&(L._invokeOnDestroyCallbacks(),P._registerOnCollectionChange(()=>{}))}function St(P,L){P.forEach(I=>{I.registerOnValidatorChange&&I.registerOnValidatorChange(L)})}function lr(P,L){const I=Ie(P);null!==L.validator?P.setValidators(fe(I,L.validator)):"function"==typeof I&&P.setValidators([I]);const X=ot(P);null!==L.asyncValidator?P.setAsyncValidators(fe(X,L.asyncValidator)):"function"==typeof X&&P.setAsyncValidators([X]);const De=()=>P.updateValueAndValidity();St(L._rawValidators,De),St(L._rawAsyncValidators,De)}function Ji(P,L){let I=!1;if(null!==P){if(null!==L.validator){const De=Ie(P);if(Array.isArray(De)&&De.length>0){const Pt=De.filter(an=>an!==L.validator);Pt.length!==De.length&&(I=!0,P.setValidators(Pt))}}if(null!==L.asyncValidator){const De=ot(P);if(Array.isArray(De)&&De.length>0){const Pt=De.filter(an=>an!==L.asyncValidator);Pt.length!==De.length&&(I=!0,P.setAsyncValidators(Pt))}}}const X=()=>{};return St(L._rawValidators,X),St(L._rawAsyncValidators,X),I}function Cn(P,L){P._pendingDirty&&P.markAsDirty(),P.setValue(P._pendingValue,{emitModelToViewChange:!1}),L.viewToModelUpdate(P._pendingValue),P._pendingChange=!1}function Ci(P,L){lr(P,L)}function ye(P,L){if(!P.hasOwnProperty("model"))return!1;const I=P.model;return!!I.isFirstChange()||!Object.is(L,I.currentValue)}function He(P,L){P._syncPendingControls(),L.forEach(I=>{const X=I.control;"submit"===X.updateOn&&X._pendingChange&&(I.viewToModelUpdate(X._pendingValue),X._pendingChange=!1)})}function Le(P,L){if(!L)return null;let I,X,De;return Array.isArray(L),L.forEach(Pt=>{Pt.constructor===xe?I=Pt:function be(P){return Object.getPrototypeOf(P.constructor)===A}(Pt)?X=Pt:De=Pt}),De||X||I||null}const nn={provide:gt,useExisting:(0,r.Rfq)(()=>Nn)},Rt=Promise.resolve();let Nn=(()=>{class P extends gt{constructor(I,X,De){super(),this.callSetDisabledState=De,this.submitted=!1,this._directives=new Set,this.ngSubmit=new r.bkB,this.form=new Ae({},ue(I),ne(X))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(I){Rt.then(()=>{const X=this._findContainer(I.path);I.control=X.registerControl(I.name,I.control),Vn(I.control,I,this.callSetDisabledState),I.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(I)})}getControl(I){return this.form.get(I.path)}removeControl(I){Rt.then(()=>{const X=this._findContainer(I.path);X&&X.removeControl(I.name),this._directives.delete(I)})}addFormGroup(I){Rt.then(()=>{const X=this._findContainer(I.path),De=new Ae({});Ci(De,I),X.registerControl(I.name,De),De.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(I){Rt.then(()=>{const X=this._findContainer(I.path);X&&X.removeControl(I.name)})}getFormGroup(I){return this.form.get(I.path)}updateModel(I,X){Rt.then(()=>{this.form.get(I.path).setValue(X)})}setValue(I){this.control.setValue(I)}onSubmit(I){return this.submitted=!0,He(this.form,this._directives),this.ngSubmit.emit(I),"dialog"===I?.target?.method}onReset(){this.resetForm()}resetForm(I=void 0){this.form.reset(I),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(I){return I.pop(),I.length?this.form.get(I):this.form}static#e=this.\u0275fac=function(X){return new(X||P)(r.rXU(We,10),r.rXU(mt,10),r.rXU(_e,8))};static#t=this.\u0275dir=r.FsC({type:P,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(X,De){1&X&&r.bIt("submit",function(an){return De.onSubmit(an)})("reset",function(){return De.onReset()})},inputs:{options:[r.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Jv_([nn]),r.Vt3]})}return P})();function Nt(P,L){const I=P.indexOf(L);I>-1&&P.splice(I,1)}function ln(P){return"object"==typeof P&&null!==P&&2===Object.keys(P).length&&"value"in P&&"disabled"in P}const An=class extends G{constructor(L=null,I,X){super(Fr(I),Ve(X,I)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(L),this._setUpdateStrategy(I),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),B(I)&&(I.nonNullable||I.initialValueIsDefault)&&(this.defaultValue=ln(L)?L.value:L)}setValue(L,I={}){this.value=this._pendingValue=L,this._onChange.length&&!1!==I.emitModelToViewChange&&this._onChange.forEach(X=>X(this.value,!1!==I.emitViewToModelChange)),this.updateValueAndValidity(I)}patchValue(L,I={}){this.setValue(L,I)}reset(L=this.defaultValue,I={}){this._applyFormState(L),this.markAsPristine(I),this.markAsUntouched(I),this.setValue(this.value,I),this._pendingChange=!1}_updateValue(){}_anyControls(L){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(L){this._onChange.push(L)}_unregisterOnChange(L){Nt(this._onChange,L)}registerOnDisabledChange(L){this._onDisabledChange.push(L)}_unregisterOnDisabledChange(L){Nt(this._onDisabledChange,L)}_forEachChild(L){}_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(L){ln(L)?(this.value=this._pendingValue=L.value,L.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=L}},Qn=An,Oi={provide:cn,useExisting:(0,r.Rfq)(()=>Tn)},Ut=Promise.resolve();let Tn=(()=>{class P extends cn{constructor(I,X,De,Pt,an,is){super(),this._changeDetectorRef=an,this.callSetDisabledState=is,this.control=new An,this._registered=!1,this.name="",this.update=new r.bkB,this._parent=I,this._setValidators(X),this._setAsyncValidators(De),this.valueAccessor=Le(0,Pt)}ngOnChanges(I){if(this._checkForErrors(),!this._registered||"name"in I){if(this._registered&&(this._checkName(),this.formDirective)){const X=I.name.previousValue;this.formDirective.removeControl({name:X,path:this._getPath(X)})}this._setUpControl()}"isDisabled"in I&&this._updateDisabled(I),ye(I,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(I){this.viewModel=I,this.update.emit(I)}_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(){Vn(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(I){Ut.then(()=>{this.control.setValue(I,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(I){const X=I.isDisabled.currentValue,De=0!==X&&(0,r.L39)(X);Ut.then(()=>{De&&!this.control.disabled?this.control.disable():!De&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(I){return this._parent?yt(I,this._parent):[I]}static#e=this.\u0275fac=function(X){return new(X||P)(r.rXU(gt,9),r.rXU(We,10),r.rXU(mt,10),r.rXU(H,10),r.rXU(r.gRc,8),r.rXU(_e,8))};static#t=this.\u0275dir=r.FsC({type:P,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[r.Mj6.None,"disabled","isDisabled"],model:[r.Mj6.None,"ngModel","model"],options:[r.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r.Jv_([Oi]),r.Vt3,r.OA$]})}return P})(),xa=(()=>{class P{static#e=this.\u0275fac=function(X){return new(X||P)};static#t=this.\u0275dir=r.FsC({type:P,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return P})();const Ri={provide:H,useExisting:(0,r.Rfq)(()=>yo),multi:!0};let yo=(()=>{class P extends A{writeValue(I){this.setProperty("value",I??"")}registerOnChange(I){this.onChange=X=>{I(""==X?null:parseFloat(X))}}static#e=this.\u0275fac=(()=>{let I;return function(De){return(I||(I=r.xGo(P)))(De||P)}})();static#t=this.\u0275dir=r.FsC({type:P,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(X,De){1&X&&r.bIt("input",function(an){return De.onChange(an.target.value)})("blur",function(){return De.onTouched()})},features:[r.Jv_([Ri]),r.Vt3]})}return P})();const ua={provide:H,useExisting:(0,r.Rfq)(()=>pn),multi:!0};let _o=(()=>{class P{constructor(){this._accessors=[]}add(I,X){this._accessors.push([I,X])}remove(I){for(let X=this._accessors.length-1;X>=0;--X)if(this._accessors[X][1]===I)return void this._accessors.splice(X,1)}select(I){this._accessors.forEach(X=>{this._isSameGroup(X,I)&&X[1]!==I&&X[1].fireUncheck(I.value)})}_isSameGroup(I,X){return!!I[0].control&&I[0]._parent===X._control._parent&&I[1].name===X.name}static#e=this.\u0275fac=function(X){return new(X||P)};static#t=this.\u0275prov=r.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),pn=(()=>{class P extends A{constructor(I,X,De,Pt){super(I,X),this._registry=De,this._injector=Pt,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,r.WQX)(_e,{optional:!0})??Ge}ngOnInit(){this._control=this._injector.get(cn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(I){this._state=I===this.value,this.setProperty("checked",this._state)}registerOnChange(I){this._fn=I,this.onChange=()=>{I(this.value),this._registry.select(this)}}setDisabledState(I){(this.setDisabledStateFired||I||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",I),this.setDisabledStateFired=!0}fireUncheck(I){this.writeValue(I)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(X){return new(X||P)(r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(_o),r.rXU(r.zZn))};static#t=this.\u0275dir=r.FsC({type:P,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(X,De){1&X&&r.bIt("change",function(){return De.onChange()})("blur",function(){return De.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r.Jv_([ua]),r.Vt3]})}return P})();const Yr=new r.nKC(""),ys={provide:cn,useExisting:(0,r.Rfq)(()=>eo)};let eo=(()=>{class P extends cn{set isDisabled(I){}static#e=this._ngModelWarningSentOnce=!1;constructor(I,X,De,Pt,an){super(),this._ngModelWarningConfig=Pt,this.callSetDisabledState=an,this.update=new r.bkB,this._ngModelWarningSent=!1,this._setValidators(I),this._setAsyncValidators(X),this.valueAccessor=Le(0,De)}ngOnChanges(I){if(this._isControlChanged(I)){const X=I.form.previousValue;X&&Hn(X,this,!1),Vn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ye(I,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Hn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(I){this.viewModel=I,this.update.emit(I)}_isControlChanged(I){return I.hasOwnProperty("form")}static#t=this.\u0275fac=function(X){return new(X||P)(r.rXU(We,10),r.rXU(mt,10),r.rXU(H,10),r.rXU(Yr,8),r.rXU(_e,8))};static#n=this.\u0275dir=r.FsC({type:P,selectors:[["","formControl",""]],inputs:{form:[r.Mj6.None,"formControl","form"],isDisabled:[r.Mj6.None,"disabled","isDisabled"],model:[r.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r.Jv_([ys]),r.Vt3,r.OA$]})}return P})();const bo={provide:gt,useExisting:(0,r.Rfq)(()=>Ht)};let Ht=(()=>{class P extends gt{constructor(I,X,De){super(),this.callSetDisabledState=De,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new r.bkB,this._setValidators(I),this._setAsyncValidators(X)}ngOnChanges(I){this._checkFormPresent(),I.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ji(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(I){const X=this.form.get(I.path);return Vn(X,I,this.callSetDisabledState),X.updateValueAndValidity({emitEvent:!1}),this.directives.push(I),X}getControl(I){return this.form.get(I.path)}removeControl(I){Hn(I.control||null,I,!1),function ht(P,L){const I=P.indexOf(L);I>-1&&P.splice(I,1)}(this.directives,I)}addFormGroup(I){this._setUpFormContainer(I)}removeFormGroup(I){this._cleanUpFormContainer(I)}getFormGroup(I){return this.form.get(I.path)}addFormArray(I){this._setUpFormContainer(I)}removeFormArray(I){this._cleanUpFormContainer(I)}getFormArray(I){return this.form.get(I.path)}updateModel(I,X){this.form.get(I.path).setValue(X)}onSubmit(I){return this.submitted=!0,He(this.form,this.directives),this.ngSubmit.emit(I),"dialog"===I?.target?.method}onReset(){this.resetForm()}resetForm(I=void 0){this.form.reset(I),this.submitted=!1}_updateDomValue(){this.directives.forEach(I=>{const X=I.control,De=this.form.get(I.path);X!==De&&(Hn(X||null,I),(P=>P instanceof An)(De)&&(Vn(De,I,this.callSetDisabledState),I.control=De))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(I){const X=this.form.get(I.path);Ci(X,I),X.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(I){if(this.form){const X=this.form.get(I.path);X&&function Ii(P,L){return Ji(P,L)}(X,I)&&X.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){lr(this.form,this),this._oldForm&&Ji(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(X){return new(X||P)(r.rXU(We,10),r.rXU(mt,10),r.rXU(_e,8))};static#t=this.\u0275dir=r.FsC({type:P,selectors:[["","formGroup",""]],hostBindings:function(X,De){1&X&&r.bIt("submit",function(an){return De.onSubmit(an)})("reset",function(){return De.onReset()})},inputs:{form:[r.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Jv_([bo]),r.Vt3,r.OA$]})}return P})();const _s={provide:cn,useExisting:(0,r.Rfq)(()=>Bi)};let Bi=(()=>{class P extends cn{set isDisabled(I){}static#e=this._ngModelWarningSentOnce=!1;constructor(I,X,De,Pt,an){super(),this._ngModelWarningConfig=an,this._added=!1,this.name=null,this.update=new r.bkB,this._ngModelWarningSent=!1,this._parent=I,this._setValidators(X),this._setAsyncValidators(De),this.valueAccessor=Le(0,Pt)}ngOnChanges(I){this._added||this._setUpControl(),ye(I,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(I){this.viewModel=I,this.update.emit(I)}get path(){return yt(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}static#t=this.\u0275fac=function(X){return new(X||P)(r.rXU(gt,13),r.rXU(We,10),r.rXU(mt,10),r.rXU(H,10),r.rXU(Yr,8))};static#n=this.\u0275dir=r.FsC({type:P,selectors:[["","formControlName",""]],inputs:{name:[r.Mj6.None,"formControlName","name"],isDisabled:[r.Mj6.None,"disabled","isDisabled"],model:[r.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[r.Jv_([_s]),r.Vt3,r.OA$]})}return P})();const $o={provide:H,useExisting:(0,r.Rfq)(()=>$n),multi:!0};function Ki(P,L){return null==P?`${L}`:(L&&"object"==typeof L&&(L="Object"),`${P}: ${L}`.slice(0,50))}let $n=(()=>{class P extends A{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(I){this._compareWith=I}writeValue(I){this.value=I;const De=Ki(this._getOptionId(I),I);this.setProperty("value",De)}registerOnChange(I){this.onChange=X=>{this.value=this._getOptionValue(X),I(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(I){for(const X of this._optionMap.keys())if(this._compareWith(this._optionMap.get(X),I))return X;return null}_getOptionValue(I){const X=function Wo(P){return P.split(":")[0]}(I);return this._optionMap.has(X)?this._optionMap.get(X):I}static#e=this.\u0275fac=(()=>{let I;return function(De){return(I||(I=r.xGo(P)))(De||P)}})();static#t=this.\u0275dir=r.FsC({type:P,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(X,De){1&X&&r.bIt("change",function(an){return De.onChange(an.target.value)})("blur",function(){return De.onTouched()})},inputs:{compareWith:"compareWith"},features:[r.Jv_([$o]),r.Vt3]})}return P})(),ts=(()=>{class P{constructor(I,X,De){this._element=I,this._renderer=X,this._select=De,this._select&&(this.id=this._select._registerOption())}set ngValue(I){null!=this._select&&(this._select._optionMap.set(this.id,I),this._setElementValue(Ki(this.id,I)),this._select.writeValue(this._select.value))}set value(I){this._setElementValue(I),this._select&&this._select.writeValue(this._select.value)}_setElementValue(I){this._renderer.setProperty(this._element.nativeElement,"value",I)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(X){return new(X||P)(r.rXU(r.aKT),r.rXU(r.sFG),r.rXU($n,9))};static#t=this.\u0275dir=r.FsC({type:P,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return P})();const Wt={provide:H,useExisting:(0,r.Rfq)(()=>ns),multi:!0};function Ns(P,L){return null==P?`${L}`:("string"==typeof L&&(L=`'${L}'`),L&&"object"==typeof L&&(L="Object"),`${P}: ${L}`.slice(0,50))}let ns=(()=>{class P extends A{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(I){this._compareWith=I}writeValue(I){let X;if(this.value=I,Array.isArray(I)){const De=I.map(Pt=>this._getOptionId(Pt));X=(Pt,an)=>{Pt._setSelected(De.indexOf(an.toString())>-1)}}else X=(De,Pt)=>{De._setSelected(!1)};this._optionMap.forEach(X)}registerOnChange(I){this.onChange=X=>{const De=[],Pt=X.selectedOptions;if(void 0!==Pt){const an=Pt;for(let is=0;is{let I;return function(De){return(I||(I=r.xGo(P)))(De||P)}})();static#t=this.\u0275dir=r.FsC({type:P,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(X,De){1&X&&r.bIt("change",function(an){return De.onChange(an.target)})("blur",function(){return De.onTouched()})},inputs:{compareWith:"compareWith"},features:[r.Jv_([Wt]),r.Vt3]})}return P})(),fa=(()=>{class P{constructor(I,X,De){this._element=I,this._renderer=X,this._select=De,this._select&&(this.id=this._select._registerOption(this))}set ngValue(I){null!=this._select&&(this._value=I,this._setElementValue(Ns(this.id,I)),this._select.writeValue(this._select.value))}set value(I){this._select?(this._value=I,this._setElementValue(Ns(this.id,I)),this._select.writeValue(this._select.value)):this._setElementValue(I)}_setElementValue(I){this._renderer.setProperty(this._element.nativeElement,"value",I)}_setSelected(I){this._renderer.setProperty(this._element.nativeElement,"selected",I)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(X){return new(X||P)(r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(ns,9))};static#t=this.\u0275dir=r.FsC({type:P,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return P})();let Vi=(()=>{class P{constructor(){this._validator=Re}ngOnChanges(I){if(this.inputName in I){const X=this.normalizeInput(I[this.inputName].currentValue);this._enabled=this.enabled(X),this._validator=this._enabled?this.createValidator(X):Re,this._onChange&&this._onChange()}}validate(I){return this._validator(I)}registerOnValidatorChange(I){this._onChange=I}enabled(I){return null!=I}static#e=this.\u0275fac=function(X){return new(X||P)};static#t=this.\u0275dir=r.FsC({type:P,features:[r.OA$]})}return P})();const Rs={provide:We,useExisting:(0,r.Rfq)(()=>Qi),multi:!0},ci={provide:We,useExisting:(0,r.Rfq)(()=>to),multi:!0};let Qi=(()=>{class P extends Vi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=r.L39,this.createValidator=I=>Ke}enabled(I){return I}static#e=this.\u0275fac=(()=>{let I;return function(De){return(I||(I=r.xGo(P)))(De||P)}})();static#t=this.\u0275dir=r.FsC({type:P,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(X,De){2&X&&r.BMQ("required",De._enabled?"":null)},inputs:{required:"required"},features:[r.Jv_([Rs]),r.Vt3]})}return P})(),to=(()=>{class P extends Qi{constructor(){super(...arguments),this.createValidator=I=>Dt}static#e=this.\u0275fac=(()=>{let I;return function(De){return(I||(I=r.xGo(P)))(De||P)}})();static#t=this.\u0275dir=r.FsC({type:P,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(X,De){2&X&&r.BMQ("required",De._enabled?"":null)},features:[r.Jv_([ci]),r.Vt3]})}return P})();const ro={provide:We,useExisting:(0,r.Rfq)(()=>wo),multi:!0};let wo=(()=>{class P extends Vi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=I=>function Xi(P){return"number"==typeof P?P:parseInt(P,10)}(I),this.createValidator=I=>ut(I)}static#e=this.\u0275fac=(()=>{let I;return function(De){return(I||(I=r.xGo(P)))(De||P)}})();static#t=this.\u0275dir=r.FsC({type:P,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(X,De){2&X&&r.BMQ("maxlength",De._enabled?De.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r.Jv_([ro]),r.Vt3]})}return P})(),Xr=(()=>{class P{static#e=this.\u0275fac=function(X){return new(X||P)};static#t=this.\u0275mod=r.$C({type:P});static#n=this.\u0275inj=r.G2t({})}return P})();class Fn extends G{constructor(L,I,X){super(Fr(I),Ve(X,I)),this.controls=L,this._initObservables(),this._setUpdateStrategy(I),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(L){return this.controls[this._adjustIndex(L)]}push(L,I={}){this.controls.push(L),this._registerControl(L),this.updateValueAndValidity({emitEvent:I.emitEvent}),this._onCollectionChange()}insert(L,I,X={}){this.controls.splice(L,0,I),this._registerControl(I),this.updateValueAndValidity({emitEvent:X.emitEvent})}removeAt(L,I={}){let X=this._adjustIndex(L);X<0&&(X=0),this.controls[X]&&this.controls[X]._registerOnCollectionChange(()=>{}),this.controls.splice(X,1),this.updateValueAndValidity({emitEvent:I.emitEvent})}setControl(L,I,X={}){let De=this._adjustIndex(L);De<0&&(De=0),this.controls[De]&&this.controls[De]._registerOnCollectionChange(()=>{}),this.controls.splice(De,1),I&&(this.controls.splice(De,0,I),this._registerControl(I)),this.updateValueAndValidity({emitEvent:X.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(L,I={}){K(this,0,L),L.forEach((X,De)=>{x(this,!1,De),this.at(De).setValue(X,{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I)}patchValue(L,I={}){null!=L&&(L.forEach((X,De)=>{this.at(De)&&this.at(De).patchValue(X,{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I))}reset(L=[],I={}){this._forEachChild((X,De)=>{X.reset(L[De],{onlySelf:!0,emitEvent:I.emitEvent})}),this._updatePristine(I),this._updateTouched(I),this.updateValueAndValidity(I)}getRawValue(){return this.controls.map(L=>L.getRawValue())}clear(L={}){this.controls.length<1||(this._forEachChild(I=>I._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:L.emitEvent}))}_adjustIndex(L){return L<0?L+this.length:L}_syncPendingControls(){let L=this.controls.reduce((I,X)=>!!X._syncPendingControls()||I,!1);return L&&this.updateValueAndValidity({onlySelf:!0}),L}_forEachChild(L){this.controls.forEach((I,X)=>{L(I,X)})}_updateValue(){this.value=this.controls.filter(L=>L.enabled||this.disabled).map(L=>L.value)}_anyControls(L){return this.controls.some(I=>I.enabled&&L(I))}_setUpControls(){this._forEachChild(L=>this._registerControl(L))}_allControlsDisabled(){for(const L of this.controls)if(L.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(L){L.setParent(this),L._registerOnCollectionChange(this._onCollectionChange)}_find(L){return this.at(L)??null}}function so(P){return!!P&&(void 0!==P.asyncValidators||void 0!==P.validators||void 0!==P.updateOn)}let Cs=(()=>{class P{constructor(){this.useNonNullable=!1}get nonNullable(){const I=new P;return I.useNonNullable=!0,I}group(I,X=null){const De=this._reduceControls(I);let Pt={};return so(X)?Pt=X:null!==X&&(Pt.validators=X.validator,Pt.asyncValidators=X.asyncValidator),new Ae(De,Pt)}record(I,X=null){const De=this._reduceControls(I);return new le(De,X)}control(I,X,De){let Pt={};return this.useNonNullable?(so(X)?Pt=X:(Pt.validators=X,Pt.asyncValidators=De),new An(I,{...Pt,nonNullable:!0})):new An(I,X,De)}array(I,X,De){const Pt=I.map(an=>this._createControl(an));return new Fn(Pt,X,De)}_reduceControls(I){const X={};return Object.keys(I).forEach(De=>{X[De]=this._createControl(I[De])}),X}_createControl(I){return I instanceof An||I instanceof G?I:Array.isArray(I)?this.control(I[0],I.length>1?I[1]:null,I.length>2?I[2]:null):this.control(I)}static#e=this.\u0275fac=function(X){return new(X||P)};static#t=this.\u0275prov=r.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),oo=(()=>{class P{static withConfig(I){return{ngModule:P,providers:[{provide:_e,useValue:I.callSetDisabledState??Ge}]}}static#e=this.\u0275fac=function(X){return new(X||P)};static#t=this.\u0275mod=r.$C({type:P});static#n=this.\u0275inj=r.G2t({imports:[Xr]})}return P})(),Do=(()=>{class P{static withConfig(I){return{ngModule:P,providers:[{provide:Yr,useValue:I.warnOnNgModelWithFormControl??"always"},{provide:_e,useValue:I.callSetDisabledState??Ge}]}}static#e=this.\u0275fac=function(X){return new(X||P)};static#t=this.\u0275mod=r.$C({type:P});static#n=this.\u0275inj=r.G2t({imports:[Xr]})}return P})()},6600:(st,Ce,D)=>{D.d(Ce,{MJ:()=>J,es:()=>gt,de:()=>ne,Ju:()=>ke,QC:()=>Kt,is:()=>At,yE:()=>Xe,wT:()=>Xn,Sy:()=>Ve,r6:()=>Un,Ej:()=>Q,pZ:()=>qt,X0:()=>Qt,tO:()=>ve,jb:()=>Fr,TL:()=>ii});var r=D(4438),g=D(8617),$=D(8203),se=D(177),ie=D(6860),A=D(4085),H=D(1413),Z=D(7336);const Ee=["text"],Te=[[["mat-icon"]],"*"],xe=["mat-icon","*"];function we(re,le){if(1&re&&r.nrm(0,"mat-pseudo-checkbox",1),2&re){const te=r.XpG();r.Y8G("disabled",te.disabled)("state",te.selected?"checked":"unchecked")}}function $e(re,le){if(1&re&&r.nrm(0,"mat-pseudo-checkbox",3),2&re){const te=r.XpG();r.Y8G("disabled",te.disabled)}}function We(re,le){if(1&re&&(r.j41(0,"span",4),r.EFF(1),r.k0s()),2&re){const te=r.XpG();r.R7$(),r.SpI("(",te.group.label,")")}}const mt=["mat-internal-form-field",""],tt=["*"],Dt=new r.nKC("mat-sanity-checks",{providedIn:"root",factory:function Ke(){return!0}});let Xe=(()=>{class re{constructor(te,_e,Ge){this._sanityChecks=_e,this._document=Ge,this._hasDoneGlobalChecks=!1,te._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(te){return!(0,ie.v8)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[te])}static#e=this.\u0275fac=function(_e){return new(_e||re)(r.KVO(g.Q_),r.KVO(Dt,8),r.KVO(se.qQ))};static#t=this.\u0275mod=r.$C({type:re});static#n=this.\u0275inj=r.G2t({imports:[$.jI,$.jI]})}return re})();class Qt{constructor(le,te,_e,Ge,yt){this._defaultMatcher=le,this.ngControl=te,this._parentFormGroup=_e,this._parentForm=Ge,this._stateChanges=yt,this.errorState=!1}updateErrorState(){const le=this.errorState,te=this._parentFormGroup||this._parentForm,_e=this.matcher||this._defaultMatcher,Ge=this.ngControl?this.ngControl.control:null,yt=_e?.isErrorState(Ge,te)??!1;yt!==le&&(this.errorState=yt,this._stateChanges.next())}}const ke=new r.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function ue(){return(0,r.WQX)(r.xe9)}});class J{constructor(){this._localeChanges=new H.B,this.localeChanges=this._localeChanges}getValidDateOrNull(le){return this.isDateInstance(le)&&this.isValid(le)?le:null}deserialize(le){return null==le||this.isDateInstance(le)&&this.isValid(le)?le:this.invalid()}setLocale(le){this.locale=le,this._localeChanges.next()}compareDate(le,te){return this.getYear(le)-this.getYear(te)||this.getMonth(le)-this.getMonth(te)||this.getDate(le)-this.getDate(te)}sameDate(le,te){if(le&&te){let _e=this.isValid(le),Ge=this.isValid(te);return _e&&Ge?!this.compareDate(le,te):_e==Ge}return le==te}clampDate(le,te,_e){return te&&this.compareDate(le,te)<0?te:_e&&this.compareDate(le,_e)>0?_e:le}}const ne=new r.nKC("mat-date-formats");let gt=(()=>{class re{isErrorState(te,_e){return!!(te&&te.invalid&&(te.touched||_e&&_e.submitted))}static#e=this.\u0275fac=function(_e){return new(_e||re)};static#t=this.\u0275prov=r.jDH({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})();var vn=function(re){return re[re.FADING_IN=0]="FADING_IN",re[re.VISIBLE=1]="VISIBLE",re[re.FADING_OUT=2]="FADING_OUT",re[re.HIDDEN=3]="HIDDEN",re}(vn||{});class pt{constructor(le,te,_e,Ge=!1){this._renderer=le,this.element=te,this.config=_e,this._animationForciblyDisabledThroughCss=Ge,this.state=vn.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const ar=(0,ie.BQ)({passive:!0,capture:!0});class vr{constructor(){this._events=new Map,this._delegateEventHandler=le=>{const te=(0,ie.Fb)(le);te&&this._events.get(le.type)?.forEach((_e,Ge)=>{(Ge===te||Ge.contains(te))&&_e.forEach(yt=>yt.handleEvent(le))})}}addHandler(le,te,_e,Ge){const yt=this._events.get(te);if(yt){const Vn=yt.get(_e);Vn?Vn.add(Ge):yt.set(_e,new Set([Ge]))}else this._events.set(te,new Map([[_e,new Set([Ge])]])),le.runOutsideAngular(()=>{document.addEventListener(te,this._delegateEventHandler,ar)})}removeHandler(le,te,_e){const Ge=this._events.get(le);if(!Ge)return;const yt=Ge.get(te);yt&&(yt.delete(_e),0===yt.size&&Ge.delete(te),0===Ge.size&&(this._events.delete(le),document.removeEventListener(le,this._delegateEventHandler,ar)))}}const Yn={enterDuration:225,exitDuration:150},yr=(0,ie.BQ)({passive:!0,capture:!0}),yn=["mousedown","touchstart"],Ft=["mouseup","mouseleave","touchend","touchcancel"];class Vt{static#e=this._eventManager=new vr;constructor(le,te,_e,Ge){this._target=le,this._ngZone=te,this._platform=Ge,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Ge.isBrowser&&(this._containerElement=(0,A.i8)(_e))}fadeInRipple(le,te,_e={}){const Ge=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),yt={...Yn,..._e.animation};_e.centered&&(le=Ge.left+Ge.width/2,te=Ge.top+Ge.height/2);const Vn=_e.radius||function Ln(re,le,te){const _e=Math.max(Math.abs(re-te.left),Math.abs(re-te.right)),Ge=Math.max(Math.abs(le-te.top),Math.abs(le-te.bottom));return Math.sqrt(_e*_e+Ge*Ge)}(le,te,Ge),Hn=le-Ge.left,St=te-Ge.top,vs=yt.enterDuration,lr=document.createElement("div");lr.classList.add("mat-ripple-element"),lr.style.left=Hn-Vn+"px",lr.style.top=St-Vn+"px",lr.style.height=2*Vn+"px",lr.style.width=2*Vn+"px",null!=_e.color&&(lr.style.backgroundColor=_e.color),lr.style.transitionDuration=`${vs}ms`,this._containerElement.appendChild(lr);const Ji=window.getComputedStyle(lr),Gi=Ji.transitionDuration,Cn="none"===Ji.transitionProperty||"0s"===Gi||"0s, 0s"===Gi||0===Ge.width&&0===Ge.height,zr=new pt(this,lr,_e,Cn);lr.style.transform="scale3d(1, 1, 1)",zr.state=vn.FADING_IN,_e.persistent||(this._mostRecentTransientRipple=zr);let Ci=null;return!Cn&&(vs||yt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Ii=()=>this._finishRippleTransition(zr),es=()=>this._destroyRipple(zr);lr.addEventListener("transitionend",Ii),lr.addEventListener("transitioncancel",es),Ci={onTransitionEnd:Ii,onTransitionCancel:es}}),this._activeRipples.set(zr,Ci),(Cn||!vs)&&this._finishRippleTransition(zr),zr}fadeOutRipple(le){if(le.state===vn.FADING_OUT||le.state===vn.HIDDEN)return;const te=le.element,_e={...Yn,...le.config.animation};te.style.transitionDuration=`${_e.exitDuration}ms`,te.style.opacity="0",le.state=vn.FADING_OUT,(le._animationForciblyDisabledThroughCss||!_e.exitDuration)&&this._finishRippleTransition(le)}fadeOutAll(){this._getActiveRipples().forEach(le=>le.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(le=>{le.config.persistent||le.fadeOut()})}setupTriggerEvents(le){const te=(0,A.i8)(le);!this._platform.isBrowser||!te||te===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=te,yn.forEach(_e=>{Vt._eventManager.addHandler(this._ngZone,_e,te,this)}))}handleEvent(le){"mousedown"===le.type?this._onMousedown(le):"touchstart"===le.type?this._onTouchStart(le):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Ft.forEach(te=>{this._triggerElement.addEventListener(te,this,yr)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(le){le.state===vn.FADING_IN?this._startFadeOutTransition(le):le.state===vn.FADING_OUT&&this._destroyRipple(le)}_startFadeOutTransition(le){const te=le===this._mostRecentTransientRipple,{persistent:_e}=le.config;le.state=vn.VISIBLE,!_e&&(!te||!this._isPointerDown)&&le.fadeOut()}_destroyRipple(le){const te=this._activeRipples.get(le)??null;this._activeRipples.delete(le),this._activeRipples.size||(this._containerRect=null),le===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),le.state=vn.HIDDEN,null!==te&&(le.element.removeEventListener("transitionend",te.onTransitionEnd),le.element.removeEventListener("transitioncancel",te.onTransitionCancel)),le.element.remove()}_onMousedown(le){const te=(0,g._G)(le),_e=this._lastTouchStartEvent&&Date.now(){!le.config.persistent&&(le.state===vn.VISIBLE||le.config.terminateOnPointerUp&&le.state===vn.FADING_IN)&&le.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const le=this._triggerElement;le&&(yn.forEach(te=>Vt._eventManager.removeHandler(te,le,this)),this._pointerUpEventsRegistered&&Ft.forEach(te=>le.removeEventListener(te,this,yr)))}}const Kn=new r.nKC("mat-ripple-global-options");let Un=(()=>{class re{get disabled(){return this._disabled}set disabled(te){te&&this.fadeOutAllNonPersistent(),this._disabled=te,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(te){this._trigger=te,this._setupTriggerEventsIfEnabled()}constructor(te,_e,Ge,yt,Vn){this._elementRef=te,this._animationMode=Vn,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=yt||{},this._rippleRenderer=new Vt(this,_e,te,Ge)}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(te,_e=0,Ge){return"number"==typeof te?this._rippleRenderer.fadeInRipple(te,_e,{...this.rippleConfig,...Ge}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...te})}static#e=this.\u0275fac=function(_e){return new(_e||re)(r.rXU(r.aKT),r.rXU(r.SKi),r.rXU(ie.OD),r.rXU(Kn,8),r.rXU(r.bc$,8))};static#t=this.\u0275dir=r.FsC({type:re,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(_e,Ge){2&_e&&r.AVh("mat-ripple-unbounded",Ge.unbounded)},inputs:{color:[r.Mj6.None,"matRippleColor","color"],unbounded:[r.Mj6.None,"matRippleUnbounded","unbounded"],centered:[r.Mj6.None,"matRippleCentered","centered"],radius:[r.Mj6.None,"matRippleRadius","radius"],animation:[r.Mj6.None,"matRippleAnimation","animation"],disabled:[r.Mj6.None,"matRippleDisabled","disabled"],trigger:[r.Mj6.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}return re})(),qt=(()=>{class re{static#e=this.\u0275fac=function(_e){return new(_e||re)};static#t=this.\u0275mod=r.$C({type:re});static#n=this.\u0275inj=r.G2t({imports:[Xe,Xe]})}return re})(),Pn=(()=>{class re{constructor(te){this._animationMode=te,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(_e){return new(_e||re)(r.rXU(r.bc$,8))};static#t=this.\u0275cmp=r.VBU({type:re,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(_e,Ge){2&_e&&r.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===Ge.state)("mat-pseudo-checkbox-checked","checked"===Ge.state)("mat-pseudo-checkbox-disabled",Ge.disabled)("mat-pseudo-checkbox-minimal","minimal"===Ge.appearance)("mat-pseudo-checkbox-full","full"===Ge.appearance)("_mat-animation-noopable","NoopAnimations"===Ge._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[r.aNF],decls:0,vars:0,template:function(_e,Ge){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.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})}return re})(),mi=(()=>{class re{static#e=this.\u0275fac=function(_e){return new(_e||re)};static#t=this.\u0275mod=r.$C({type:re});static#n=this.\u0275inj=r.G2t({imports:[Xe]})}return re})();const At=new r.nKC("MAT_OPTION_PARENT_COMPONENT"),Kt=new r.nKC("MatOptgroup");let xr=0;class tn{constructor(le,te=!1){this.source=le,this.isUserInput=te}}let Xn=(()=>{class re{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(te){this._disabled=te}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(te,_e,Ge,yt){this._element=te,this._changeDetectorRef=_e,this._parent=Ge,this.group=yt,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+xr++,this.onSelectionChange=new r.bkB,this._stateChanges=new H.B}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(te=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),te&&this._emitSelectionChangeEvent())}deselect(te=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),te&&this._emitSelectionChangeEvent())}focus(te,_e){const Ge=this._getHostElement();"function"==typeof Ge.focus&&Ge.focus(_e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(te){(te.keyCode===Z.Fm||te.keyCode===Z.t6)&&!(0,Z.rp)(te)&&(this._selectViaInteraction(),te.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 te=this.viewValue;te!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=te)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(te=!1){this.onSelectionChange.emit(new tn(this,te))}static#e=this.\u0275fac=function(_e){return new(_e||re)(r.rXU(r.aKT),r.rXU(r.gRc),r.rXU(At,8),r.rXU(Kt,8))};static#t=this.\u0275cmp=r.VBU({type:re,selectors:[["mat-option"]],viewQuery:function(_e,Ge){if(1&_e&&r.GBs(Ee,7),2&_e){let yt;r.mGM(yt=r.lsd())&&(Ge._text=yt.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(_e,Ge){1&_e&&r.bIt("click",function(){return Ge._selectViaInteraction()})("keydown",function(Vn){return Ge._handleKeydown(Vn)}),2&_e&&(r.Mr5("id",Ge.id),r.BMQ("aria-selected",Ge.selected)("aria-disabled",Ge.disabled.toString()),r.AVh("mdc-list-item--selected",Ge.selected)("mat-mdc-option-multiple",Ge.multiple)("mat-mdc-option-active",Ge.active)("mdc-list-item--disabled",Ge.disabled))},inputs:{value:"value",id:"id",disabled:[r.Mj6.HasDecoratorInputTransform,"disabled","disabled",r.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[r.GFd,r.aNF],ngContentSelectors:xe,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(_e,Ge){1&_e&&(r.NAR(Te),r.DNE(0,we,1,2,"mat-pseudo-checkbox",1),r.SdG(1),r.j41(2,"span",2,0),r.SdG(4,1),r.k0s(),r.DNE(5,$e,1,1,"mat-pseudo-checkbox",3)(6,We,2,1,"span",4),r.nrm(7,"div",5)),2&_e&&(r.vxM(0,Ge.multiple?0:-1),r.R7$(5),r.vxM(5,Ge.multiple||!Ge.selected||Ge.hideSingleSelectionIndicator?-1:5),r.R7$(),r.vxM(6,Ge.group&&Ge.group._inert?6:-1),r.R7$(),r.Y8G("matRippleTrigger",Ge._getHostElement())("matRippleDisabled",Ge.disabled||Ge.disableRipple))},dependencies:[Pn,Un],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;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);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:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.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-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return re})();function Fr(re,le,te){if(te.length){let _e=le.toArray(),Ge=te.toArray(),yt=0;for(let Vn=0;Vnte+_e?Math.max(0,re-_e+le):te}let Ve=(()=>{class re{static#e=this.\u0275fac=function(_e){return new(_e||re)};static#t=this.\u0275mod=r.$C({type:re});static#n=this.\u0275inj=r.G2t({imports:[qt,Xe,mi]})}return re})();const Y={capture:!0},B=["focus","click","mouseenter","touchstart"],x="mat-ripple-loader-uninitialized",K="mat-ripple-loader-class-name",G="mat-ripple-loader-centered",Ae="mat-ripple-loader-disabled";let Q=(()=>{class re{constructor(){this._document=(0,r.WQX)(se.qQ,{optional:!0}),this._animationMode=(0,r.WQX)(r.bc$,{optional:!0}),this._globalRippleOptions=(0,r.WQX)(Kn,{optional:!0}),this._platform=(0,r.WQX)(ie.OD),this._ngZone=(0,r.WQX)(r.SKi),this._hosts=new Map,this._onInteraction=te=>{if(!(te.target instanceof HTMLElement))return;const Ge=te.target.closest(`[${x}]`);Ge&&this._createRipple(Ge)},this._ngZone.runOutsideAngular(()=>{for(const te of B)this._document?.addEventListener(te,this._onInteraction,Y)})}ngOnDestroy(){const te=this._hosts.keys();for(const _e of te)this.destroyRipple(_e);for(const _e of B)this._document?.removeEventListener(_e,this._onInteraction,Y)}configureRipple(te,_e){te.setAttribute(x,""),(_e.className||!te.hasAttribute(K))&&te.setAttribute(K,_e.className||""),_e.centered&&te.setAttribute(G,""),_e.disabled&&te.setAttribute(Ae,"")}getRipple(te){return this._hosts.get(te)||this._createRipple(te)}setDisabled(te,_e){const Ge=this._hosts.get(te);Ge?Ge.disabled=_e:_e?te.setAttribute(Ae,""):te.removeAttribute(Ae)}_createRipple(te){if(!this._document)return;const _e=this._hosts.get(te);if(_e)return _e;te.querySelector(".mat-ripple")?.remove();const Ge=this._document.createElement("span");Ge.classList.add("mat-ripple",te.getAttribute(K)),te.append(Ge);const yt=new Un(new r.aKT(Ge),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return yt._isInitialized=!0,yt.trigger=te,yt.centered=te.hasAttribute(G),yt.disabled=te.hasAttribute(Ae),this.attachRipple(te,yt),yt}attachRipple(te,_e){te.removeAttribute(x),this._hosts.set(te,_e)}destroyRipple(te){const _e=this._hosts.get(te);_e&&(_e.ngOnDestroy(),this._hosts.delete(te))}static#e=this.\u0275fac=function(_e){return new(_e||re)};static#t=this.\u0275prov=r.jDH({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})(),ve=(()=>{class re{static#e=this.\u0275fac=function(_e){return new(_e||re)};static#t=this.\u0275cmp=r.VBU({type:re,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(_e,Ge){2&_e&&r.AVh("mdc-form-field--align-end","before"===Ge.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[r.aNF],attrs:mt,ngContentSelectors:tt,decls:1,vars:0,template:function(_e,Ge){1&_e&&(r.NAR(),r.SdG(0))},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-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}return re})()},345:(st,Ce,D)=>{D.d(Ce,{B7:()=>Xe,Bb:()=>ir,hE:()=>vn,sG:()=>Xt,up:()=>mi});var r=D(4438),g=D(177);class $ extends g.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class F extends ${static makeCurrent(){(0,g.ZD)(new F)}onAndCancel(B,x,K){return B.addEventListener(x,K),()=>{B.removeEventListener(x,K)}}dispatchEvent(B,x){B.dispatchEvent(x)}remove(B){B.parentNode&&B.parentNode.removeChild(B)}createElement(B,x){return(x=x||this.getDefaultDocument()).createElement(B)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(B){return B.nodeType===Node.ELEMENT_NODE}isShadowRoot(B){return B instanceof DocumentFragment}getGlobalEventTarget(B,x){return"window"===x?window:"document"===x?B:"body"===x?B.body:null}getBaseHref(B){const x=function ie(){return se=se||document.querySelector("base"),se?se.getAttribute("href"):null}();return null==x?null:function A(Y){return new URL(Y,document.baseURI).pathname}(x)}resetBaseElement(){se=null}getUserAgent(){return window.navigator.userAgent}getCookie(B){return(0,g._b)(document.cookie,B)}}let se=null,Z=(()=>{class Y{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(K){return new(K||Y)};static#t=this.\u0275prov=r.jDH({token:Y,factory:Y.\u0275fac})}return Y})();const oe=new r.nKC("");let de=(()=>{class Y{constructor(x,K){this._zone=K,this._eventNameToPlugin=new Map,x.forEach(G=>{G.manager=this}),this._plugins=x.slice().reverse()}addEventListener(x,K,G){return this._findPluginFor(K).addEventListener(x,K,G)}getZone(){return this._zone}_findPluginFor(x){let K=this._eventNameToPlugin.get(x);if(K)return K;if(K=this._plugins.find(Ae=>Ae.supports(x)),!K)throw new r.wOt(5101,!1);return this._eventNameToPlugin.set(x,K),K}static#e=this.\u0275fac=function(K){return new(K||Y)(r.KVO(oe),r.KVO(r.SKi))};static#t=this.\u0275prov=r.jDH({token:Y,factory:Y.\u0275fac})}return Y})();class Ee{constructor(B){this._doc=B}}const Te="ng-app-id";let xe=(()=>{class Y{constructor(x,K,G,Ae={}){this.doc=x,this.appId=K,this.nonce=G,this.platformId=Ae,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,g.Vy)(Ae),this.resetHostNodes()}addStyles(x){for(const K of x)1===this.changeUsageCount(K,1)&&this.onStyleAdded(K)}removeStyles(x){for(const K of x)this.changeUsageCount(K,-1)<=0&&this.onStyleRemoved(K)}ngOnDestroy(){const x=this.styleNodesInDOM;x&&(x.forEach(K=>K.remove()),x.clear());for(const K of this.getAllStyles())this.onStyleRemoved(K);this.resetHostNodes()}addHost(x){this.hostNodes.add(x);for(const K of this.getAllStyles())this.addStyleToHost(x,K)}removeHost(x){this.hostNodes.delete(x)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(x){for(const K of this.hostNodes)this.addStyleToHost(K,x)}onStyleRemoved(x){const K=this.styleRef;K.get(x)?.elements?.forEach(G=>G.remove()),K.delete(x)}collectServerRenderedStyles(){const x=this.doc.head?.querySelectorAll(`style[${Te}="${this.appId}"]`);if(x?.length){const K=new Map;return x.forEach(G=>{null!=G.textContent&&K.set(G.textContent,G)}),K}return null}changeUsageCount(x,K){const G=this.styleRef;if(G.has(x)){const Ae=G.get(x);return Ae.usage+=K,Ae.usage}return G.set(x,{usage:K,elements:[]}),K}getStyleElement(x,K){const G=this.styleNodesInDOM,Ae=G?.get(K);if(Ae?.parentNode===x)return G.delete(K),Ae.removeAttribute(Te),Ae;{const Q=this.doc.createElement("style");return this.nonce&&Q.setAttribute("nonce",this.nonce),Q.textContent=K,this.platformIsServer&&Q.setAttribute(Te,this.appId),x.appendChild(Q),Q}}addStyleToHost(x,K){const G=this.getStyleElement(x,K),Ae=this.styleRef,Q=Ae.get(K)?.elements;Q?Q.push(G):Ae.set(K,{elements:[G],usage:1})}resetHostNodes(){const x=this.hostNodes;x.clear(),x.add(this.doc.head)}static#e=this.\u0275fac=function(K){return new(K||Y)(r.KVO(g.qQ),r.KVO(r.sZ2),r.KVO(r.BIS,8),r.KVO(r.Agw))};static#t=this.\u0275prov=r.jDH({token:Y,factory:Y.\u0275fac})}return Y})();const we={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/"},$e=/%COMP%/g,Ye=new r.nKC("",{providedIn:"root",factory:()=>!0});function Dt(Y,B){return B.map(x=>x.replace($e,Y))}let Xe=(()=>{class Y{constructor(x,K,G,Ae,Q,ve,re,le=null){this.eventManager=x,this.sharedStylesHost=K,this.appId=G,this.removeStylesOnCompDestroy=Ae,this.doc=Q,this.platformId=ve,this.ngZone=re,this.nonce=le,this.rendererByCompId=new Map,this.platformIsServer=(0,g.Vy)(ve),this.defaultRenderer=new it(x,Q,re,this.platformIsServer)}createRenderer(x,K){if(!x||!K)return this.defaultRenderer;this.platformIsServer&&K.encapsulation===r.gXe.ShadowDom&&(K={...K,encapsulation:r.gXe.Emulated});const G=this.getOrCreateRenderer(x,K);return G instanceof Bt?G.applyToHost(x):G instanceof dt&&G.applyStyles(),G}getOrCreateRenderer(x,K){const G=this.rendererByCompId;let Ae=G.get(K.id);if(!Ae){const Q=this.doc,ve=this.ngZone,re=this.eventManager,le=this.sharedStylesHost,te=this.removeStylesOnCompDestroy,_e=this.platformIsServer;switch(K.encapsulation){case r.gXe.Emulated:Ae=new Bt(re,le,K,this.appId,te,Q,ve,_e);break;case r.gXe.ShadowDom:return new ze(re,le,x,K,Q,ve,this.nonce,_e);default:Ae=new dt(re,le,K,te,Q,ve,_e)}G.set(K.id,Ae)}return Ae}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(K){return new(K||Y)(r.KVO(de),r.KVO(xe),r.KVO(r.sZ2),r.KVO(Ye),r.KVO(g.qQ),r.KVO(r.Agw),r.KVO(r.SKi),r.KVO(r.BIS))};static#t=this.\u0275prov=r.jDH({token:Y,factory:Y.\u0275fac})}return Y})();class it{constructor(B,x,K,G){this.eventManager=B,this.doc=x,this.ngZone=K,this.platformIsServer=G,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(B,x){return x?this.doc.createElementNS(we[x]||x,B):this.doc.createElement(B)}createComment(B){return this.doc.createComment(B)}createText(B){return this.doc.createTextNode(B)}appendChild(B,x){(Re(B)?B.content:B).appendChild(x)}insertBefore(B,x,K){B&&(Re(B)?B.content:B).insertBefore(x,K)}removeChild(B,x){B&&B.removeChild(x)}selectRootElement(B,x){let K="string"==typeof B?this.doc.querySelector(B):B;if(!K)throw new r.wOt(-5104,!1);return x||(K.textContent=""),K}parentNode(B){return B.parentNode}nextSibling(B){return B.nextSibling}setAttribute(B,x,K,G){if(G){x=G+":"+x;const Ae=we[G];Ae?B.setAttributeNS(Ae,x,K):B.setAttribute(x,K)}else B.setAttribute(x,K)}removeAttribute(B,x,K){if(K){const G=we[K];G?B.removeAttributeNS(G,x):B.removeAttribute(`${K}:${x}`)}else B.removeAttribute(x)}addClass(B,x){B.classList.add(x)}removeClass(B,x){B.classList.remove(x)}setStyle(B,x,K,G){G&(r.czy.DashCase|r.czy.Important)?B.style.setProperty(x,K,G&r.czy.Important?"important":""):B.style[x]=K}removeStyle(B,x,K){K&r.czy.DashCase?B.style.removeProperty(x):B.style[x]=""}setProperty(B,x,K){null!=B&&(B[x]=K)}setValue(B,x){B.nodeValue=x}listen(B,x,K){if("string"==typeof B&&!(B=(0,g.QT)().getGlobalEventTarget(this.doc,B)))throw new Error(`Unsupported event target ${B} for event ${x}`);return this.eventManager.addEventListener(B,x,this.decoratePreventDefault(K))}decoratePreventDefault(B){return x=>{if("__ngUnwrap__"===x)return B;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>B(x)):B(x))&&x.preventDefault()}}}function Re(Y){return"TEMPLATE"===Y.tagName&&void 0!==Y.content}class ze extends it{constructor(B,x,K,G,Ae,Q,ve,re){super(B,Ae,Q,re),this.sharedStylesHost=x,this.hostEl=K,this.shadowRoot=K.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const le=Dt(G.id,G.styles);for(const te of le){const _e=document.createElement("style");ve&&_e.setAttribute("nonce",ve),_e.textContent=te,this.shadowRoot.appendChild(_e)}}nodeOrShadowRoot(B){return B===this.hostEl?this.shadowRoot:B}appendChild(B,x){return super.appendChild(this.nodeOrShadowRoot(B),x)}insertBefore(B,x,K){return super.insertBefore(this.nodeOrShadowRoot(B),x,K)}removeChild(B,x){return super.removeChild(this.nodeOrShadowRoot(B),x)}parentNode(B){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(B)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class dt extends it{constructor(B,x,K,G,Ae,Q,ve,re){super(B,Ae,Q,ve),this.sharedStylesHost=x,this.removeStylesOnCompDestroy=G,this.styles=re?Dt(re,K.styles):K.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Bt extends dt{constructor(B,x,K,G,Ae,Q,ve,re){const le=G+"-"+K.id;super(B,x,K,Ae,Q,ve,re,le),this.contentAttr=function Oe(Y){return"_ngcontent-%COMP%".replace($e,Y)}(le),this.hostAttr=function Ke(Y){return"_nghost-%COMP%".replace($e,Y)}(le)}applyToHost(B){this.applyStyles(),this.setAttribute(B,this.hostAttr,"")}createElement(B,x){const K=super.createElement(B,x);return super.setAttribute(K,this.contentAttr,""),K}}let Qt=(()=>{class Y extends Ee{constructor(x){super(x)}supports(x){return!0}addEventListener(x,K,G){return x.addEventListener(K,G,!1),()=>this.removeEventListener(x,K,G)}removeEventListener(x,K,G){return x.removeEventListener(K,G)}static#e=this.\u0275fac=function(K){return new(K||Y)(r.KVO(g.qQ))};static#t=this.\u0275prov=r.jDH({token:Y,factory:Y.\u0275fac})}return Y})();const Zt=["alt","control","meta","shift"],Mn={"\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"},ke={alt:Y=>Y.altKey,control:Y=>Y.ctrlKey,meta:Y=>Y.metaKey,shift:Y=>Y.shiftKey};let ue=(()=>{class Y extends Ee{constructor(x){super(x)}supports(x){return null!=Y.parseEventName(x)}addEventListener(x,K,G){const Ae=Y.parseEventName(K),Q=Y.eventCallback(Ae.fullKey,G,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,g.QT)().onAndCancel(x,Ae.domEventName,Q))}static parseEventName(x){const K=x.toLowerCase().split("."),G=K.shift();if(0===K.length||"keydown"!==G&&"keyup"!==G)return null;const Ae=Y._normalizeKey(K.pop());let Q="",ve=K.indexOf("code");if(ve>-1&&(K.splice(ve,1),Q="code."),Zt.forEach(le=>{const te=K.indexOf(le);te>-1&&(K.splice(te,1),Q+=le+".")}),Q+=Ae,0!=K.length||0===Ae.length)return null;const re={};return re.domEventName=G,re.fullKey=Q,re}static matchEventFullKeyCode(x,K){let G=Mn[x.key]||x.key,Ae="";return K.indexOf("code.")>-1&&(G=x.code,Ae="code."),!(null==G||!G)&&(G=G.toLowerCase()," "===G?G="space":"."===G&&(G="dot"),Zt.forEach(Q=>{Q!==G&&(0,ke[Q])(x)&&(Ae+=Q+".")}),Ae+=G,Ae===K)}static eventCallback(x,K,G){return Ae=>{Y.matchEventFullKeyCode(Ae,x)&&G.runGuarded(()=>K(Ae))}}static _normalizeKey(x){return"esc"===x?"escape":x}static#e=this.\u0275fac=function(K){return new(K||Y)(r.KVO(g.qQ))};static#t=this.\u0275prov=r.jDH({token:Y,factory:Y.\u0275fac})}return Y})();const Xt=(0,r.oH4)(r.fpN,"browser",[{provide:r.Agw,useValue:g.AJ},{provide:r.PLl,useValue:function ot(){F.makeCurrent()},multi:!0},{provide:g.qQ,useFactory:function Gt(){return(0,r.TL$)(document),document},deps:[]}]),Yt=new r.nKC(""),gt=[{provide:r.e01,useClass:class H{addToWindow(B){r.JZv.getAngularTestability=(K,G=!0)=>{const Ae=B.findTestabilityInTree(K,G);if(null==Ae)throw new r.wOt(5103,!1);return Ae},r.JZv.getAllAngularTestabilities=()=>B.getAllTestabilities(),r.JZv.getAllAngularRootElements=()=>B.getAllRootElements(),r.JZv.frameworkStabilizers||(r.JZv.frameworkStabilizers=[]),r.JZv.frameworkStabilizers.push(K=>{const G=r.JZv.getAllAngularTestabilities();let Ae=G.length;const Q=function(){Ae--,0==Ae&&K()};G.forEach(ve=>{ve.whenStable(Q)})})}findTestabilityInTree(B,x,K){return null==x?null:B.getTestability(x)??(K?(0,g.QT)().isShadowRoot(x)?this.findTestabilityInTree(B,x.host,!0):this.findTestabilityInTree(B,x.parentElement,!0):null)}},deps:[]},{provide:r.WHO,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]},{provide:r.NYb,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]}],cn=[{provide:r.H8p,useValue:"root"},{provide:r.zcH,useFactory:function bt(){return new r.zcH},deps:[]},{provide:oe,useClass:Qt,multi:!0,deps:[g.qQ,r.SKi,r.Agw]},{provide:oe,useClass:ue,multi:!0,deps:[g.qQ]},Xe,xe,de,{provide:r._9s,useExisting:Xe},{provide:g.N0,useClass:Z,deps:[]},[]];let ir=(()=>{class Y{constructor(x){}static withServerTransition(x){return{ngModule:Y,providers:[{provide:r.sZ2,useValue:x.appId}]}}static#e=this.\u0275fac=function(K){return new(K||Y)(r.KVO(Yt,12))};static#t=this.\u0275mod=r.$C({type:Y});static#n=this.\u0275inj=r.G2t({providers:[...cn,...gt],imports:[g.MD,r.Hbi]})}return Y})(),vn=(()=>{class Y{constructor(x){this._doc=x}getTitle(){return this._doc.title}setTitle(x){this._doc.title=x||""}static#e=this.\u0275fac=function(K){return new(K||Y)(r.KVO(g.qQ))};static#t=this.\u0275prov=r.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})(),mi=(()=>{class Y{static#e=this.\u0275fac=function(K){return new(K||Y)};static#t=this.\u0275prov=r.jDH({token:Y,factory:function(K){let G=null;return G=K?new(K||Y):r.KVO(At),G},providedIn:"root"})}return Y})(),At=(()=>{class Y extends mi{constructor(x){super(),this._doc=x}sanitize(x,K){if(null==K)return null;switch(x){case r.WPN.NONE:return K;case r.WPN.HTML:return(0,r.ZF7)(K,"HTML")?(0,r.rcV)(K):(0,r.h9k)(this._doc,String(K)).toString();case r.WPN.STYLE:return(0,r.ZF7)(K,"Style")?(0,r.rcV)(K):K;case r.WPN.SCRIPT:if((0,r.ZF7)(K,"Script"))return(0,r.rcV)(K);throw new r.wOt(5200,!1);case r.WPN.URL:return(0,r.ZF7)(K,"URL")?(0,r.rcV)(K):(0,r.$MX)(String(K));case r.WPN.RESOURCE_URL:if((0,r.ZF7)(K,"ResourceURL"))return(0,r.rcV)(K);throw new r.wOt(5201,!1);default:throw new r.wOt(5202,!1)}}bypassSecurityTrustHtml(x){return(0,r.Kcf)(x)}bypassSecurityTrustStyle(x){return(0,r.cWb)(x)}bypassSecurityTrustScript(x){return(0,r.UyX)(x)}bypassSecurityTrustUrl(x){return(0,r.osQ)(x)}bypassSecurityTrustResourceUrl(x){return(0,r.e5t)(x)}static#e=this.\u0275fac=function(K){return new(K||Y)(r.KVO(g.qQ))};static#t=this.\u0275prov=r.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})()},7062:(st,Ce,D)=>{D.d(Ce,{nX:()=>_s,wF:()=>Qn,Ix:()=>lt,Wk:()=>$r,wQ:()=>ur,iI:()=>Il,n3:()=>Go});var r=D(4438),g=D(4402),$=D(6648),F=D(7673),se=D(4412),ie=D(4572);const H=(0,D(1853).L)(y=>function(){y(this),this.name="EmptyError",this.message="no elements in sequence"});var Z=D(8793),oe=D(9030),de=D(1203),Ee=D(8810),Te=D(983),xe=D(1985),we=D(8359),$e=D(9974),We=D(4360);function mt(){return(0,$e.N)((y,E)=>{let _=null;y._refCount++;const T=(0,We._)(E,void 0,void 0,void 0,()=>{if(!y||y._refCount<=0||0<--y._refCount)return void(_=null);const k=y._connection,W=_;_=null,k&&(!W||k===W)&&k.unsubscribe(),E.unsubscribe()});y.subscribe(T),T.closed||(_=y.connect())})}class tt extends xe.c{constructor(E,_){super(),this.source=E,this.subjectFactory=_,this._subject=null,this._refCount=0,this._connection=null,(0,$e.S)(E)&&(this.lift=E.lift)}_subscribe(E){return this.getSubject().subscribe(E)}getSubject(){const E=this._subject;return(!E||E.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:E}=this;this._subject=this._connection=null,E?.unsubscribe()}connect(){let E=this._connection;if(!E){E=this._connection=new we.yU;const _=this.getSubject();E.add(this.source.subscribe((0,We._)(_,void 0,()=>{this._teardown(),_.complete()},T=>{this._teardown(),_.error(T)},()=>this._teardown()))),E.closed&&(this._connection=null,E=we.yU.EMPTY)}return E}refCount(){return mt()(this)}}var It=D(1413),Ye=D(177),Oe=D(6354),Ke=D(5558),Dt=D(6697),Xe=D(9172),it=D(5964),ut=D(3028);function Ot(y){return(0,$e.N)((E,_)=>{let T=!1;E.subscribe((0,We._)(_,k=>{T=!0,_.next(k)},()=>{T||_.next(y),_.complete()}))})}function Re(y=ze){return(0,$e.N)((E,_)=>{let T=!1;E.subscribe((0,We._)(_,k=>{T=!0,_.next(k)},()=>T?_.complete():_.error(y())))})}function ze(){return new H}var dt=D(3669);function Bt(y,E){const _=arguments.length>=2;return T=>T.pipe(y?(0,it.p)((k,W)=>y(k,W,T)):dt.D,(0,Dt.s)(1),_?Ot(E):Re(()=>new H))}var Qt=D(274),Zt=D(8141),Mn=D(9437);function J(y){return y<=0?()=>Te.w:(0,$e.N)((E,_)=>{let T=[];E.subscribe((0,We._)(_,k=>{T.push(k),y{for(const k of T)_.next(k);_.complete()},void 0,()=>{T=null}))})}var fe=D(3703),Ie=D(980),ot=D(6977),bt=D(6365),Gt=D(345);const Je="primary",Xt=Symbol("RouteTitle");class Yt{constructor(E){this.params=E||{}}has(E){return Object.prototype.hasOwnProperty.call(this.params,E)}get(E){if(this.has(E)){const _=this.params[E];return Array.isArray(_)?_[0]:_}return null}getAll(E){if(this.has(E)){const _=this.params[E];return Array.isArray(_)?_:[_]}return[]}get keys(){return Object.keys(this.params)}}function gt(y){return new Yt(y)}function cn(y,E,_){const T=_.path.split("/");if(T.length>y.length||"full"===_.pathMatch&&(E.hasChildren()||T.lengthT[W]===k)}return y===E}function pt(y){return y.length>0?y[y.length-1]:null}function ar(y){return(0,g.A)(y)?y:(0,r.jNT)(y)?(0,$.H)(Promise.resolve(y)):(0,F.of)(y)}const vr={exact:function yn(y,E,_){if(!At(y.segments,E.segments)||!Kn(y.segments,E.segments,_)||y.numberOfChildren!==E.numberOfChildren)return!1;for(const T in E.children)if(!y.children[T]||!yn(y.children[T],E.children[T],_))return!1;return!0},subset:Vt},Yn={exact:function yr(y,E){return kn(y,E)},subset:function Ft(y,E){return Object.keys(E).length<=Object.keys(y).length&&Object.keys(E).every(_=>vn(y[_],E[_]))},ignored:()=>!0};function er(y,E,_){return vr[_.paths](y.root,E.root,_.matrixParams)&&Yn[_.queryParams](y.queryParams,E.queryParams)&&!("exact"===_.fragment&&y.fragment!==E.fragment)}function Vt(y,E,_){return Ln(y,E,E.segments,_)}function Ln(y,E,_,T){if(y.segments.length>_.length){const k=y.segments.slice(0,_.length);return!(!At(k,_)||E.hasChildren()||!Kn(k,_,T))}if(y.segments.length===_.length){if(!At(y.segments,_)||!Kn(y.segments,_,T))return!1;for(const k in E.children)if(!y.children[k]||!Vt(y.children[k],E.children[k],T))return!1;return!0}{const k=_.slice(0,y.segments.length),W=_.slice(y.segments.length);return!!(At(y.segments,k)&&Kn(y.segments,k,T)&&y.children[Je])&&Ln(y.children[Je],E,W,T)}}function Kn(y,E,_){return E.every((T,k)=>Yn[_](y[k].parameters,T.parameters))}class Un{constructor(E=new qt([],{}),_={},T=null){this.root=E,this.queryParams=_,this.fragment=T}get queryParamMap(){return this._queryParamMap??=gt(this.queryParams),this._queryParamMap}toString(){return xr.serialize(this)}}class qt{constructor(E,_){this.segments=E,this.children=_,this.parent=null,Object.values(_).forEach(T=>T.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tn(this)}}class Pn{constructor(E,_){this.path=E,this.parameters=_}get parameterMap(){return this._parameterMap??=gt(this.parameters),this._parameterMap}toString(){return K(this)}}function At(y,E){return y.length===E.length&&y.every((_,T)=>_.path===E[T].path)}let Kt=(()=>{class y{static#e=this.\u0275fac=function(T){return new(T||y)};static#t=this.\u0275prov=r.jDH({token:y,factory:()=>new en,providedIn:"root"})}return y})();class en{parse(E){const _=new Vn(E);return new Un(_.parseRootSegment(),_.parseQueryParams(),_.parseFragment())}serialize(E){const _=`/${Xn(E.root,!0)}`,T=function Ae(y){const E=Object.entries(y).map(([_,T])=>Array.isArray(T)?T.map(k=>`${ii(_)}=${ii(k)}`).join("&"):`${ii(_)}=${ii(T)}`).filter(_=>_);return E.length?`?${E.join("&")}`:""}(E.queryParams);return`${_}${T}${"string"==typeof E.fragment?`#${function Ve(y){return encodeURI(y)}(E.fragment)}`:""}`}}const xr=new en;function tn(y){return y.segments.map(E=>K(E)).join("/")}function Xn(y,E){if(!y.hasChildren())return tn(y);if(E){const _=y.children[Je]?Xn(y.children[Je],!1):"",T=[];return Object.entries(y.children).forEach(([k,W])=>{k!==Je&&T.push(`${k}:${Xn(W,!1)}`)}),T.length>0?`${_}(${T.join("//")})`:_}{const _=function wr(y,E){let _=[];return Object.entries(y.children).forEach(([T,k])=>{T===Je&&(_=_.concat(E(k,T)))}),Object.entries(y.children).forEach(([T,k])=>{T!==Je&&(_=_.concat(E(k,T)))}),_}(y,(T,k)=>k===Je?[Xn(y.children[Je],!1)]:[`${k}:${Xn(T,!1)}`]);return 1===Object.keys(y.children).length&&null!=y.children[Je]?`${tn(y)}/${_[0]}`:`${tn(y)}/(${_.join("//")})`}}function Fr(y){return encodeURIComponent(y).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ii(y){return Fr(y).replace(/%3B/gi,";")}function Y(y){return Fr(y).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function B(y){return decodeURIComponent(y)}function x(y){return B(y.replace(/\+/g,"%20"))}function K(y){return`${Y(y.path)}${function G(y){return Object.entries(y).map(([E,_])=>`;${Y(E)}=${Y(_)}`).join("")}(y.parameters)}`}const Q=/^[^\/()?;#]+/;function ve(y){const E=y.match(Q);return E?E[0]:""}const re=/^[^\/()?;=#]+/,te=/^[^=?&#]+/,Ge=/^[^&#]+/;class Vn{constructor(E){this.url=E,this.remaining=E}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],this.parseChildren())}parseQueryParams(){const E={};if(this.consumeOptional("?"))do{this.parseQueryParam(E)}while(this.consumeOptional("&"));return E}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const E=[];for(this.peekStartsWith("(")||E.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),E.push(this.parseSegment());let _={};this.peekStartsWith("/(")&&(this.capture("/"),_=this.parseParens(!0));let T={};return this.peekStartsWith("(")&&(T=this.parseParens(!1)),(E.length>0||Object.keys(_).length>0)&&(T[Je]=new qt(E,_)),T}parseSegment(){const E=ve(this.remaining);if(""===E&&this.peekStartsWith(";"))throw new r.wOt(4009,!1);return this.capture(E),new Pn(B(E),this.parseMatrixParams())}parseMatrixParams(){const E={};for(;this.consumeOptional(";");)this.parseParam(E);return E}parseParam(E){const _=function le(y){const E=y.match(re);return E?E[0]:""}(this.remaining);if(!_)return;this.capture(_);let T="";if(this.consumeOptional("=")){const k=ve(this.remaining);k&&(T=k,this.capture(T))}E[B(_)]=B(T)}parseQueryParam(E){const _=function _e(y){const E=y.match(te);return E?E[0]:""}(this.remaining);if(!_)return;this.capture(_);let T="";if(this.consumeOptional("=")){const pe=function yt(y){const E=y.match(Ge);return E?E[0]:""}(this.remaining);pe&&(T=pe,this.capture(T))}const k=x(_),W=x(T);if(E.hasOwnProperty(k)){let pe=E[k];Array.isArray(pe)||(pe=[pe],E[k]=pe),pe.push(W)}else E[k]=W}parseParens(E){const _={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const T=ve(this.remaining),k=this.remaining[T.length];if("/"!==k&&")"!==k&&";"!==k)throw new r.wOt(4010,!1);let W;T.indexOf(":")>-1?(W=T.slice(0,T.indexOf(":")),this.capture(W),this.capture(":")):E&&(W=Je);const pe=this.parseChildren();_[W]=1===Object.keys(pe).length?pe[Je]:new qt([],pe),this.consumeOptional("//")}return _}peekStartsWith(E){return this.remaining.startsWith(E)}consumeOptional(E){return!!this.peekStartsWith(E)&&(this.remaining=this.remaining.substring(E.length),!0)}capture(E){if(!this.consumeOptional(E))throw new r.wOt(4011,!1)}}function Hn(y){return y.segments.length>0?new qt([],{[Je]:y}):y}function St(y){const E={};for(const[T,k]of Object.entries(y.children)){const W=St(k);if(T===Je&&0===W.segments.length&&W.hasChildren())for(const[pe,Fe]of Object.entries(W.children))E[pe]=Fe;else(W.segments.length>0||W.hasChildren())&&(E[T]=W)}return function vs(y){if(1===y.numberOfChildren&&y.children[Je]){const E=y.children[Je];return new qt(y.segments.concat(E.segments),E.children)}return y}(new qt(y.segments,E))}function lr(y){return y instanceof Un}function xs(y){let E;const k=Hn(function _(W){const pe={};for(const Pe of W.children){const Et=_(Pe);pe[Pe.outlet]=Et}const Fe=new qt(W.url,pe);return W===y&&(E=Fe),Fe}(y.root));return E??k}function Gi(y,E,_,T){let k=y;for(;k.parent;)k=k.parent;if(0===E.length)return Ci(k,k,k,_,T);const W=function Yi(y){if("string"==typeof y[0]&&1===y.length&&"/"===y[0])return new es(!0,0,y);let E=0,_=!1;const T=y.reduce((k,W,pe)=>{if("object"==typeof W&&null!=W){if(W.outlets){const Fe={};return Object.entries(W.outlets).forEach(([Pe,Et])=>{Fe[Pe]="string"==typeof Et?Et.split("/"):Et}),[...k,{outlets:Fe}]}if(W.segmentPath)return[...k,W.segmentPath]}return"string"!=typeof W?[...k,W]:0===pe?(W.split("/").forEach((Fe,Pe)=>{0==Pe&&"."===Fe||(0==Pe&&""===Fe?_=!0:".."===Fe?E++:""!=Fe&&k.push(Fe))}),k):[...k,W]},[]);return new es(_,E,T)}(E);if(W.toRoot())return Ci(k,k,new qt([],{}),_,T);const pe=function ks(y,E,_){if(y.isAbsolute)return new Si(E,!0,0);if(!_)return new Si(E,!1,NaN);if(null===_.parent)return new Si(_,!0,0);const T=Cn(y.commands[0])?0:1;return function ee(y,E,_){let T=y,k=E,W=_;for(;W>k;){if(W-=k,T=T.parent,!T)throw new r.wOt(4005,!1);k=T.segments.length}return new Si(T,!1,k-W)}(_,_.segments.length-1+T,y.numberOfDoubleDots)}(W,k,y),Fe=pe.processChildren?He(pe.segmentGroup,pe.index,W.commands):be(pe.segmentGroup,pe.index,W.commands);return Ci(k,pe.segmentGroup,Fe,_,T)}function Cn(y){return"object"==typeof y&&null!=y&&!y.outlets&&!y.segmentPath}function zr(y){return"object"==typeof y&&null!=y&&y.outlets}function Ci(y,E,_,T,k){let pe,W={};T&&Object.entries(T).forEach(([Pe,Et])=>{W[Pe]=Array.isArray(Et)?Et.map(wn=>`${wn}`):`${Et}`}),pe=y===E?_:Ii(y,E,_);const Fe=Hn(St(pe));return new Un(Fe,W,k)}function Ii(y,E,_){const T={};return Object.entries(y.children).forEach(([k,W])=>{T[k]=W===E?_:Ii(W,E,_)}),new qt(y.segments,T)}class es{constructor(E,_,T){if(this.isAbsolute=E,this.numberOfDoubleDots=_,this.commands=T,E&&T.length>0&&Cn(T[0]))throw new r.wOt(4003,!1);const k=T.find(zr);if(k&&k!==pt(T))throw new r.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Si{constructor(E,_,T){this.segmentGroup=E,this.processChildren=_,this.index=T}}function be(y,E,_){if(y??=new qt([],{}),0===y.segments.length&&y.hasChildren())return He(y,E,_);const T=function Le(y,E,_){let T=0,k=E;const W={match:!1,pathIndex:0,commandIndex:0};for(;k=_.length)return W;const pe=y.segments[k],Fe=_[T];if(zr(Fe))break;const Pe=`${Fe}`,Et=T<_.length-1?_[T+1]:null;if(k>0&&void 0===Pe)break;if(Pe&&Et&&"object"==typeof Et&&void 0===Et.outlets){if(!Rt(Pe,Et,pe))return W;T+=2}else{if(!Rt(Pe,{},pe))return W;T++}k++}return{match:!0,pathIndex:k,commandIndex:T}}(y,E,_),k=_.slice(T.commandIndex);if(T.match&&T.pathIndexW!==Je)&&y.children[Je]&&1===y.numberOfChildren&&0===y.children[Je].segments.length){const W=He(y.children[Je],E,_);return new qt(y.segments,W.children)}return Object.entries(T).forEach(([W,pe])=>{"string"==typeof pe&&(pe=[pe]),null!==pe&&(k[W]=be(y.children[W],E,pe))}),Object.entries(y.children).forEach(([W,pe])=>{void 0===T[W]&&(k[W]=pe)}),new qt(y.segments,k)}}function ht(y,E,_){const T=y.segments.slice(0,E);let k=0;for(;k<_.length;){const W=_[k];if(zr(W)){const Pe=vt(W.outlets);return new qt(T,Pe)}if(0===k&&Cn(_[0])){T.push(new Pn(y.segments[E].path,nn(_[0]))),k++;continue}const pe=zr(W)?W.outlets[Je]:`${W}`,Fe=k<_.length-1?_[k+1]:null;pe&&Fe&&Cn(Fe)?(T.push(new Pn(pe,nn(Fe))),k+=2):(T.push(new Pn(pe,{})),k++)}return new qt(T,{})}function vt(y){const E={};return Object.entries(y).forEach(([_,T])=>{"string"==typeof T&&(T=[T]),null!==T&&(E[_]=ht(new qt([],{}),0,T))}),E}function nn(y){const E={};return Object.entries(y).forEach(([_,T])=>E[_]=`${T}`),E}function Rt(y,E,_){return y==_.path&&kn(E,_.parameters)}const Nn="imperative";var Nt=function(y){return y[y.NavigationStart=0]="NavigationStart",y[y.NavigationEnd=1]="NavigationEnd",y[y.NavigationCancel=2]="NavigationCancel",y[y.NavigationError=3]="NavigationError",y[y.RoutesRecognized=4]="RoutesRecognized",y[y.ResolveStart=5]="ResolveStart",y[y.ResolveEnd=6]="ResolveEnd",y[y.GuardsCheckStart=7]="GuardsCheckStart",y[y.GuardsCheckEnd=8]="GuardsCheckEnd",y[y.RouteConfigLoadStart=9]="RouteConfigLoadStart",y[y.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",y[y.ChildActivationStart=11]="ChildActivationStart",y[y.ChildActivationEnd=12]="ChildActivationEnd",y[y.ActivationStart=13]="ActivationStart",y[y.ActivationEnd=14]="ActivationEnd",y[y.Scroll=15]="Scroll",y[y.NavigationSkipped=16]="NavigationSkipped",y}(Nt||{});class ln{constructor(E,_){this.id=E,this.url=_}}class An extends ln{constructor(E,_,T="imperative",k=null){super(E,_),this.type=Nt.NavigationStart,this.navigationTrigger=T,this.restoredState=k}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Qn extends ln{constructor(E,_,T){super(E,_),this.urlAfterRedirects=T,this.type=Nt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var jn=function(y){return y[y.Redirect=0]="Redirect",y[y.SupersededByNewNavigation=1]="SupersededByNewNavigation",y[y.NoDataFromResolver=2]="NoDataFromResolver",y[y.GuardRejected=3]="GuardRejected",y}(jn||{}),fn=function(y){return y[y.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",y[y.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",y}(fn||{});class En extends ln{constructor(E,_,T,k){super(E,_),this.reason=T,this.code=k,this.type=Nt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class _r extends ln{constructor(E,_,T,k){super(E,_),this.reason=T,this.code=k,this.type=Nt.NavigationSkipped}}class wi extends ln{constructor(E,_,T,k){super(E,_),this.error=T,this.target=k,this.type=Nt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Dr extends ln{constructor(E,_,T,k){super(E,_),this.urlAfterRedirects=T,this.state=k,this.type=Nt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class li extends ln{constructor(E,_,T,k){super(E,_),this.urlAfterRedirects=T,this.state=k,this.type=Nt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hr extends ln{constructor(E,_,T,k,W){super(E,_),this.urlAfterRedirects=T,this.state=k,this.shouldActivate=W,this.type=Nt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Oi extends ln{constructor(E,_,T,k){super(E,_),this.urlAfterRedirects=T,this.state=k,this.type=Nt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ut extends ln{constructor(E,_,T,k){super(E,_),this.urlAfterRedirects=T,this.state=k,this.type=Nt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Tn{constructor(E){this.route=E,this.type=Nt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class xa{constructor(E){this.route=E,this.type=Nt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ri{constructor(E){this.snapshot=E,this.type=Nt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yo{constructor(E){this.snapshot=E,this.type=Nt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ua{constructor(E){this.snapshot=E,this.type=Nt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class da{constructor(E){this.snapshot=E,this.type=Nt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _o{constructor(E,_,T){this.routerEvent=E,this.position=_,this.anchor=T,this.type=Nt.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class pn{}class Js{constructor(E){this.url=E}}class Yr{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ys,this.attachRef=null}}let ys=(()=>{class y{constructor(){this.contexts=new Map}onChildOutletCreated(_,T){const k=this.getOrCreateContext(_);k.outlet=T,this.contexts.set(_,k)}onChildOutletDestroyed(_){const T=this.getContext(_);T&&(T.outlet=null,T.attachRef=null)}onOutletDeactivated(){const _=this.contexts;return this.contexts=new Map,_}onOutletReAttached(_){this.contexts=_}getOrCreateContext(_){let T=this.getContext(_);return T||(T=new Yr,this.contexts.set(_,T)),T}getContext(_){return this.contexts.get(_)||null}static#e=this.\u0275fac=function(T){return new(T||y)};static#t=this.\u0275prov=r.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})();class eo{constructor(E){this._root=E}get root(){return this._root.value}parent(E){const _=this.pathFromRoot(E);return _.length>1?_[_.length-2]:null}children(E){const _=bo(E,this._root);return _?_.children.map(T=>T.value):[]}firstChild(E){const _=bo(E,this._root);return _&&_.children.length>0?_.children[0].value:null}siblings(E){const _=Ht(E,this._root);return _.length<2?[]:_[_.length-2].children.map(k=>k.value).filter(k=>k!==E)}pathFromRoot(E){return Ht(E,this._root).map(_=>_.value)}}function bo(y,E){if(y===E.value)return E;for(const _ of E.children){const T=bo(y,_);if(T)return T}return null}function Ht(y,E){if(y===E.value)return[E];for(const _ of E.children){const T=Ht(y,_);if(T.length)return T.unshift(E),T}return[]}class Kr{constructor(E,_){this.value=E,this.children=_}toString(){return`TreeNode(${this.value})`}}function Li(y){const E={};return y&&y.children.forEach(_=>E[_.value.outlet]=_),E}class ka extends eo{constructor(E,_){super(E),this.snapshot=_,Wo(this,E)}toString(){return this.snapshot.toString()}}function Ps(y){const E=function Pa(y){const W=new $o([],{},{},"",{},Je,y,null,{});return new Ki("",new Kr(W,[]))}(y),_=new se.t([new Pn("",{})]),T=new se.t({}),k=new se.t({}),W=new se.t({}),pe=new se.t(""),Fe=new _s(_,T,W,pe,k,Je,y,E.root);return Fe.snapshot=E.root,new ka(new Kr(Fe,[]),E)}class _s{constructor(E,_,T,k,W,pe,Fe,Pe){this.urlSubject=E,this.paramsSubject=_,this.queryParamsSubject=T,this.fragmentSubject=k,this.dataSubject=W,this.outlet=pe,this.component=Fe,this._futureSnapshot=Pe,this.title=this.dataSubject?.pipe((0,Oe.T)(Et=>Et[Xt]))??(0,F.of)(void 0),this.url=E,this.params=_,this.queryParams=T,this.fragment=k,this.data=W}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,Oe.T)(E=>gt(E))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,Oe.T)(E=>gt(E))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Bi(y,E,_="emptyOnly"){let T;const{routeConfig:k}=y;return T=null===E||"always"!==_&&""!==k?.path&&(E.component||E.routeConfig?.loadComponent)?{params:{...y.params},data:{...y.data},resolve:{...y.data,...y._resolvedData??{}}}:{params:{...E.params,...y.params},data:{...E.data,...y.data},resolve:{...y.data,...E.data,...k?.data,...y._resolvedData}},k&&Ns(k)&&(T.resolve[Xt]=k.title),T}class $o{get title(){return this.data?.[Xt]}constructor(E,_,T,k,W,pe,Fe,Pe,Et){this.url=E,this.params=_,this.queryParams=T,this.fragment=k,this.data=W,this.outlet=pe,this.component=Fe,this.routeConfig=Pe,this._resolve=Et}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??=gt(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=gt(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(T=>T.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ki extends eo{constructor(E,_){super(_),this.url=E,Wo(this,_)}toString(){return $n(this._root)}}function Wo(y,E){E.value._routerState=y,E.children.forEach(_=>Wo(y,_))}function $n(y){const E=y.children.length>0?` { ${y.children.map($n).join(", ")} } `:"";return`${y.value}${E}`}function ts(y){if(y.snapshot){const E=y.snapshot,_=y._futureSnapshot;y.snapshot=_,kn(E.queryParams,_.queryParams)||y.queryParamsSubject.next(_.queryParams),E.fragment!==_.fragment&&y.fragmentSubject.next(_.fragment),kn(E.params,_.params)||y.paramsSubject.next(_.params),function ir(y,E){if(y.length!==E.length)return!1;for(let _=0;_kn(_.parameters,E[T].parameters))}(y.url,E.url);return _&&!(!y.parent!=!E.parent)&&(!y.parent||Wt(y.parent,E.parent))}function Ns(y){return"string"==typeof y.title||null===y.title}let Go=(()=>{class y{constructor(){this.activated=null,this._activatedRoute=null,this.name=Je,this.activateEvents=new r.bkB,this.deactivateEvents=new r.bkB,this.attachEvents=new r.bkB,this.detachEvents=new r.bkB,this.parentContexts=(0,r.WQX)(ys),this.location=(0,r.WQX)(r.c1b),this.changeDetector=(0,r.WQX)(r.gRc),this.environmentInjector=(0,r.WQX)(r.uvJ),this.inputBinder=(0,r.WQX)(ns,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(_){if(_.name){const{firstChange:T,previousValue:k}=_.name;if(T)return;this.isTrackedInParentContexts(k)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(k)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(_){return this.parentContexts.getContext(_)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const _=this.parentContexts.getContext(this.name);_?.route&&(_.attachRef?this.attach(_.attachRef,_.route):this.activateWith(_.route,_.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new r.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new r.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new r.wOt(4012,!1);this.location.detach();const _=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(_.instance),_}attach(_,T){this.activated=_,this._activatedRoute=T,this.location.insert(_.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(_.instance)}deactivate(){if(this.activated){const _=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(_)}}activateWith(_,T){if(this.isActivated)throw new r.wOt(4013,!1);this._activatedRoute=_;const k=this.location,pe=_.snapshot.component,Fe=this.parentContexts.getOrCreateContext(this.name).children,Pe=new Co(_,Fe,k.injector);this.activated=k.createComponent(pe,{index:k.length,injector:Pe,environmentInjector:T??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(T){return new(T||y)};static#t=this.\u0275dir=r.FsC({type:y,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[r.OA$]})}return y})();class Co{constructor(E,_,T){this.route=E,this.childContexts=_,this.parent=T,this.__ngOutletInjector=!0}get(E,_){return E===_s?this.route:E===ys?this.childContexts:this.parent.get(E,_)}}const ns=new r.nKC("");let fa=(()=>{class y{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(_){this.unsubscribeFromRouteData(_),this.subscribeToRouteData(_)}unsubscribeFromRouteData(_){this.outletDataSubscriptions.get(_)?.unsubscribe(),this.outletDataSubscriptions.delete(_)}subscribeToRouteData(_){const{activatedRoute:T}=_,k=(0,ie.z)([T.queryParams,T.params,T.data]).pipe((0,Ke.n)(([W,pe,Fe],Pe)=>(Fe={...W,...pe,...Fe},0===Pe?(0,F.of)(Fe):Promise.resolve(Fe)))).subscribe(W=>{if(!_.isActivated||!_.activatedComponentRef||_.activatedRoute!==T||null===T.component)return void this.unsubscribeFromRouteData(_);const pe=(0,r.HJs)(T.component);if(pe)for(const{templateName:Fe}of pe.inputs)_.activatedComponentRef.setInput(Fe,W[Fe]);else this.unsubscribeFromRouteData(_)});this.outletDataSubscriptions.set(_,k)}static#e=this.\u0275fac=function(T){return new(T||y)};static#t=this.\u0275prov=r.jDH({token:y,factory:y.\u0275fac})}return y})();function rs(y,E,_){if(_&&y.shouldReuseRoute(E.value,_.value.snapshot)){const T=_.value;T._futureSnapshot=E.value;const k=function Vi(y,E,_){return E.children.map(T=>{for(const k of _.children)if(y.shouldReuseRoute(T.value,k.value.snapshot))return rs(y,T,k);return rs(y,T)})}(y,E,_);return new Kr(T,k)}{if(y.shouldAttach(E.value)){const W=y.retrieve(E.value);if(null!==W){const pe=W.route;return pe.value._futureSnapshot=E.value,pe.children=E.children.map(Fe=>rs(y,Fe)),pe}}const T=function pa(y){return new _s(new se.t(y.url),new se.t(y.params),new se.t(y.queryParams),new se.t(y.fragment),new se.t(y.data),y.outlet,y.component,y)}(E.value),k=E.children.map(W=>rs(y,W));return new Kr(T,k)}}const Fs="ngNavigationCancelingError";function ma(y,E){const{redirectTo:_,navigationBehaviorOptions:T}=lr(E)?{redirectTo:E,navigationBehaviorOptions:void 0}:E,k=Rr(!1,jn.Redirect);return k.url=_,k.navigationBehaviorOptions=T,k}function Rr(y,E){const _=new Error(`NavigationCancelingError: ${y||""}`);return _[Fs]=!0,_.cancellationCode=E,_}function ci(y){return!!y&&y[Fs]}let Qi=(()=>{class y{static#e=this.\u0275fac=function(T){return new(T||y)};static#t=this.\u0275cmp=r.VBU({type:y,selectors:[["ng-component"]],standalone:!0,features:[r.aNF],decls:1,vars:0,template:function(T,k){1&T&&r.nrm(0,"router-outlet")},dependencies:[Go],encapsulation:2})}return y})();function Ai(y){const E=y.children&&y.children.map(Ai),_=E?{...y,children:E}:{...y};return!_.component&&!_.loadComponent&&(E||_.loadChildren)&&_.outlet&&_.outlet!==Je&&(_.component=Qi),_}function bs(y){return y.outlet||Je}function Xr(y){if(!y)return null;if(y.routeConfig?._injector)return y.routeConfig._injector;for(let E=y.parent;E;E=E.parent){const _=E.routeConfig;if(_?._loadedInjector)return _._loadedInjector;if(_?._injector)return _._injector}return null}class hl{constructor(E,_,T,k,W){this.routeReuseStrategy=E,this.futureState=_,this.currState=T,this.forwardEvent=k,this.inputBindingEnabled=W}activate(E){const _=this.futureState._root,T=this.currState?this.currState._root:null;this.deactivateChildRoutes(_,T,E),ts(this.futureState.root),this.activateChildRoutes(_,T,E)}deactivateChildRoutes(E,_,T){const k=Li(_);E.children.forEach(W=>{const pe=W.value.outlet;this.deactivateRoutes(W,k[pe],T),delete k[pe]}),Object.values(k).forEach(W=>{this.deactivateRouteAndItsChildren(W,T)})}deactivateRoutes(E,_,T){const k=E.value,W=_?_.value:null;if(k===W)if(k.component){const pe=T.getContext(k.outlet);pe&&this.deactivateChildRoutes(E,_,pe.children)}else this.deactivateChildRoutes(E,_,T);else W&&this.deactivateRouteAndItsChildren(_,T)}deactivateRouteAndItsChildren(E,_){E.value.component&&this.routeReuseStrategy.shouldDetach(E.value.snapshot)?this.detachAndStoreRouteSubtree(E,_):this.deactivateRouteAndOutlet(E,_)}detachAndStoreRouteSubtree(E,_){const T=_.getContext(E.value.outlet),k=T&&E.value.component?T.children:_,W=Li(E);for(const pe of Object.values(W))this.deactivateRouteAndItsChildren(pe,k);if(T&&T.outlet){const pe=T.outlet.detach(),Fe=T.children.onOutletDeactivated();this.routeReuseStrategy.store(E.value.snapshot,{componentRef:pe,route:E,contexts:Fe})}}deactivateRouteAndOutlet(E,_){const T=_.getContext(E.value.outlet),k=T&&E.value.component?T.children:_,W=Li(E);for(const pe of Object.values(W))this.deactivateRouteAndItsChildren(pe,k);T&&(T.outlet&&(T.outlet.deactivate(),T.children.onOutletDeactivated()),T.attachRef=null,T.route=null)}activateChildRoutes(E,_,T){const k=Li(_);E.children.forEach(W=>{this.activateRoutes(W,k[W.value.outlet],T),this.forwardEvent(new da(W.value.snapshot))}),E.children.length&&this.forwardEvent(new yo(E.value.snapshot))}activateRoutes(E,_,T){const k=E.value,W=_?_.value:null;if(ts(k),k===W)if(k.component){const pe=T.getOrCreateContext(k.outlet);this.activateChildRoutes(E,_,pe.children)}else this.activateChildRoutes(E,_,T);else if(k.component){const pe=T.getOrCreateContext(k.outlet);if(this.routeReuseStrategy.shouldAttach(k.snapshot)){const Fe=this.routeReuseStrategy.retrieve(k.snapshot);this.routeReuseStrategy.store(k.snapshot,null),pe.children.onOutletReAttached(Fe.contexts),pe.attachRef=Fe.componentRef,pe.route=Fe.route.value,pe.outlet&&pe.outlet.attach(Fe.componentRef,Fe.route.value),ts(Fe.route.value),this.activateChildRoutes(E,null,pe.children)}else{const Fe=Xr(k.snapshot);pe.attachRef=null,pe.route=k,pe.injector=Fe,pe.outlet&&pe.outlet.activateWith(k,pe.injector),this.activateChildRoutes(E,null,pe.children)}}else this.activateChildRoutes(E,null,T)}}class so{constructor(E){this.path=E,this.route=this.path[this.path.length-1]}}class Cs{constructor(E,_){this.component=E,this.route=_}}function Bs(y,E,_){const T=y._root;return oo(T,E?E._root:null,_,[T.value])}function zi(y,E){const _=Symbol(),T=E.get(y,_);return T===_?"function"!=typeof y||(0,r.LfX)(y)?E.get(y):y:T}function oo(y,E,_,T,k={canDeactivateChecks:[],canActivateChecks:[]}){const W=Li(E);return y.children.forEach(pe=>{(function Do(y,E,_,T,k={canDeactivateChecks:[],canActivateChecks:[]}){const W=y.value,pe=E?E.value:null,Fe=_?_.getContext(y.value.outlet):null;if(pe&&W.routeConfig===pe.routeConfig){const Pe=function P(y,E,_){if("function"==typeof _)return _(y,E);switch(_){case"pathParamsChange":return!At(y.url,E.url);case"pathParamsOrQueryParamsChange":return!At(y.url,E.url)||!kn(y.queryParams,E.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Wt(y,E)||!kn(y.queryParams,E.queryParams);default:return!Wt(y,E)}}(pe,W,W.routeConfig.runGuardsAndResolvers);Pe?k.canActivateChecks.push(new so(T)):(W.data=pe.data,W._resolvedData=pe._resolvedData),oo(y,E,W.component?Fe?Fe.children:null:_,T,k),Pe&&Fe&&Fe.outlet&&Fe.outlet.isActivated&&k.canDeactivateChecks.push(new Cs(Fe.outlet.component,pe))}else pe&&L(E,Fe,k),k.canActivateChecks.push(new so(T)),oo(y,null,W.component?Fe?Fe.children:null:_,T,k)})(pe,W[pe.value.outlet],_,T.concat([pe.value]),k),delete W[pe.value.outlet]}),Object.entries(W).forEach(([pe,Fe])=>L(Fe,_.getContext(pe),k)),k}function L(y,E,_){const T=Li(y),k=y.value;Object.entries(T).forEach(([W,pe])=>{L(pe,k.component?E?E.children.getContext(W):null:E,_)}),_.canDeactivateChecks.push(new Cs(k.component&&E&&E.outlet&&E.outlet.isActivated?E.outlet.component:null,k))}function I(y){return"function"==typeof y}function dr(y){return y instanceof H||"EmptyError"===y?.name}const zt=Symbol("INITIAL_VALUE");function ao(){return(0,Ke.n)(y=>(0,ie.z)(y.map(E=>E.pipe((0,Dt.s)(1),(0,Xe.Z)(zt)))).pipe((0,Oe.T)(E=>{for(const _ of E)if(!0!==_){if(_===zt)return zt;if(!1===_||_ instanceof Un)return _}return!0}),(0,it.p)(E=>E!==zt),(0,Dt.s)(1)))}function ql(y){return(0,de.F)((0,Zt.M)(E=>{if(lr(E))throw ma(0,E)}),(0,Oe.T)(E=>!0===E))}class ga{constructor(E){this.segmentGroup=E||null}}class Fa extends Error{constructor(E){super(),this.urlTree=E}}function Eo(y){return(0,Ee.$)(new ga(y))}class Zr{constructor(E,_){this.urlSerializer=E,this.urlTree=_}lineralizeSegments(E,_){let T=[],k=_.root;for(;;){if(T=T.concat(k.segments),0===k.numberOfChildren)return(0,F.of)(T);if(k.numberOfChildren>1||!k.children[Je])return(0,Ee.$)(new r.wOt(4e3,!1));k=k.children[Je]}}applyRedirectCommands(E,_,T){const k=this.applyRedirectCreateUrlTree(_,this.urlSerializer.parse(_),E,T);if(_.startsWith("/"))throw new Fa(k);return k}applyRedirectCreateUrlTree(E,_,T,k){const W=this.createSegmentGroup(E,_.root,T,k);return new Un(W,this.createQueryParams(_.queryParams,this.urlTree.queryParams),_.fragment)}createQueryParams(E,_){const T={};return Object.entries(E).forEach(([k,W])=>{if("string"==typeof W&&W.startsWith(":")){const Fe=W.substring(1);T[k]=_[Fe]}else T[k]=W}),T}createSegmentGroup(E,_,T,k){const W=this.createSegments(E,_.segments,T,k);let pe={};return Object.entries(_.children).forEach(([Fe,Pe])=>{pe[Fe]=this.createSegmentGroup(E,Pe,T,k)}),new qt(W,pe)}createSegments(E,_,T,k){return _.map(W=>W.path.startsWith(":")?this.findPosParam(E,W,k):this.findOrReturn(W,T))}findPosParam(E,_,T){const k=T[_.path.substring(1)];if(!k)throw new r.wOt(4001,!1);return k}findOrReturn(E,_){let T=0;for(const k of _){if(k.path===E.path)return _.splice(T),k;T++}return E}}const xi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Mi(y,E,_,T,k){const W=Ra(y,E,_);return W.matched?(T=function to(y,E){return y.providers&&!y._injector&&(y._injector=(0,r.Ol2)(y.providers,E,`Route: ${y.path}`)),y._injector??E}(E,T),function Jl(y,E,_,T){const k=E.canMatch;if(!k||0===k.length)return(0,F.of)(!0);const W=k.map(pe=>{const Fe=zi(pe,y);return ar(function Mo(y){return y&&I(y.canMatch)}(Fe)?Fe.canMatch(E,_):(0,r.N4e)(y,()=>Fe(E,_)))});return(0,F.of)(W).pipe(ao(),ql())}(T,E,_).pipe((0,Oe.T)(pe=>!0===pe?W:{...xi}))):(0,F.of)(W)}function Ra(y,E,_){if("**"===E.path)return function La(y){return{matched:!0,parameters:y.length>0?pt(y).parameters:{},consumedSegments:y,remainingSegments:[],positionalParamSegments:{}}}(_);if(""===E.path)return"full"===E.pathMatch&&(y.hasChildren()||_.length>0)?{...xi}:{matched:!0,consumedSegments:[],remainingSegments:_,parameters:{},positionalParamSegments:{}};const k=(E.matcher||cn)(_,y,E);if(!k)return{...xi};const W={};Object.entries(k.posParams??{}).forEach(([Fe,Pe])=>{W[Fe]=Pe.path});const pe=k.consumed.length>0?{...W,...k.consumed[k.consumed.length-1].parameters}:W;return{matched:!0,consumedSegments:k.consumed,remainingSegments:_.slice(k.consumed.length),parameters:pe,positionalParamSegments:k.posParams??{}}}function To(y,E,_,T){return _.length>0&&function va(y,E,_){return _.some(T=>lo(y,E,T)&&bs(T)!==Je)}(y,_,T)?{segmentGroup:new qt(E,Fc(T,new qt(_,y.children))),slicedSegments:[]}:0===_.length&&function ml(y,E,_){return _.some(T=>lo(y,E,T))}(y,_,T)?{segmentGroup:new qt(y.segments,Nc(y,_,T,y.children)),slicedSegments:_}:{segmentGroup:new qt(y.segments,y.children),slicedSegments:_}}function Nc(y,E,_,T){const k={};for(const W of _)if(lo(y,E,W)&&!T[bs(W)]){const pe=new qt([],{});k[bs(W)]=pe}return{...T,...k}}function Fc(y,E){const _={};_[Je]=E;for(const T of y)if(""===T.path&&bs(T)!==Je){const k=new qt([],{});_[bs(T)]=k}return _}function lo(y,E,_){return(!(y.hasChildren()||E.length>0)||"full"!==_.pathMatch)&&""===_.path}class bu{}class yl{constructor(E,_,T,k,W,pe,Fe){this.injector=E,this.configLoader=_,this.rootComponentType=T,this.config=k,this.urlTree=W,this.paramsInheritanceStrategy=pe,this.urlSerializer=Fe,this.applyRedirects=new Zr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(E){return new r.wOt(4002,`'${E.segmentGroup}'`)}recognize(){const E=To(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(E).pipe((0,Oe.T)(_=>{const T=new $o([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Je,this.rootComponentType,null,{}),k=new Kr(T,_),W=new Ki("",k),pe=function Ji(y,E,_=null,T=null){return Gi(xs(y),E,_,T)}(T,[],this.urlTree.queryParams,this.urlTree.fragment);return pe.queryParams=this.urlTree.queryParams,W.url=this.urlSerializer.serialize(pe),this.inheritParamsAndData(W._root,null),{state:W,tree:pe}}))}match(E){return this.processSegmentGroup(this.injector,this.config,E,Je).pipe((0,Mn.W)(T=>{if(T instanceof Fa)return this.urlTree=T.urlTree,this.match(T.urlTree.root);throw T instanceof ga?this.noMatchError(T):T}))}inheritParamsAndData(E,_){const T=E.value,k=Bi(T,_,this.paramsInheritanceStrategy);T.params=Object.freeze(k.params),T.data=Object.freeze(k.data),E.children.forEach(W=>this.inheritParamsAndData(W,T))}processSegmentGroup(E,_,T,k){return 0===T.segments.length&&T.hasChildren()?this.processChildren(E,_,T):this.processSegment(E,_,T,T.segments,k,!0).pipe((0,Oe.T)(W=>W instanceof Kr?[W]:[]))}processChildren(E,_,T){const k=[];for(const W of Object.keys(T.children))"primary"===W?k.unshift(W):k.push(W);return(0,$.H)(k).pipe((0,Qt.H)(W=>{const pe=T.children[W],Fe=function Oc(y,E){const _=y.filter(T=>bs(T)===E);return _.push(...y.filter(T=>bs(T)!==E)),_}(_,W);return this.processSegmentGroup(E,Fe,pe,W)}),function ue(y,E){return(0,$e.N)(function ke(y,E,_,T,k){return(W,pe)=>{let Fe=_,Pe=E,Et=0;W.subscribe((0,We._)(pe,wn=>{const xn=Et++;Pe=Fe?y(Pe,wn,xn):(Fe=!0,wn),T&&pe.next(Pe)},k&&(()=>{Fe&&pe.next(Pe),pe.complete()})))}}(y,E,arguments.length>=2,!0))}((W,pe)=>(W.push(...pe),W)),Ot(null),function ne(y,E){const _=arguments.length>=2;return T=>T.pipe(y?(0,it.p)((k,W)=>y(k,W,T)):dt.D,J(1),_?Ot(E):Re(()=>new H))}(),(0,ut.Z)(W=>{if(null===W)return Eo(T);const pe=zs(W);return function ec(y){y.sort((E,_)=>E.value.outlet===Je?-1:_.value.outlet===Je?1:E.value.outlet.localeCompare(_.value.outlet))}(pe),(0,F.of)(pe)}))}processSegment(E,_,T,k,W,pe){return(0,$.H)(_).pipe((0,Qt.H)(Fe=>this.processSegmentAgainstRoute(Fe._injector??E,_,Fe,T,k,W,pe).pipe((0,Mn.W)(Pe=>{if(Pe instanceof ga)return(0,F.of)(null);throw Pe}))),Bt(Fe=>!!Fe),(0,Mn.W)(Fe=>{if(dr(Fe))return function Ba(y,E,_){return 0===E.length&&!y.children[_]}(T,k,W)?(0,F.of)(new bu):Eo(T);throw Fe}))}processSegmentAgainstRoute(E,_,T,k,W,pe,Fe){return function gl(y,E,_,T){return!!(bs(y)===T||T!==Je&&lo(E,_,y))&&Ra(E,y,_).matched}(T,k,W,pe)?void 0===T.redirectTo?this.matchSegmentAgainstRoute(E,k,T,W,pe):this.allowRedirects&&Fe?this.expandSegmentAgainstRouteUsingRedirect(E,k,_,T,W,pe):Eo(k):Eo(k)}expandSegmentAgainstRouteUsingRedirect(E,_,T,k,W,pe){const{matched:Fe,consumedSegments:Pe,positionalParamSegments:Et,remainingSegments:wn}=Ra(_,k,W);if(!Fe)return Eo(_);k.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const xn=this.applyRedirects.applyRedirectCommands(Pe,k.redirectTo,Et);return this.applyRedirects.lineralizeSegments(k,xn).pipe((0,ut.Z)(di=>this.processSegment(E,T,_,di.concat(wn),pe,!1)))}matchSegmentAgainstRoute(E,_,T,k,W){const pe=Mi(_,T,k,E);return"**"===T.path&&(_.children={}),pe.pipe((0,Ke.n)(Fe=>Fe.matched?this.getChildConfig(E=T._injector??E,T,k).pipe((0,Ke.n)(({routes:Pe})=>{const Et=T._loadedInjector??E,{consumedSegments:wn,remainingSegments:xn,parameters:di}=Fe,Ga=new $o(wn,di,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Va(y){return y.data||{}}(T),bs(T),T.component??T._loadedComponent??null,T,function za(y){return y.resolve||{}}(T)),{segmentGroup:Ca,slicedSegments:Jo}=To(_,wn,xn,Pe);if(0===Jo.length&&Ca.hasChildren())return this.processChildren(Et,Pe,Ca).pipe((0,Oe.T)(Ya=>null===Ya?null:new Kr(Ga,Ya)));if(0===Pe.length&&0===Jo.length)return(0,F.of)(new Kr(Ga,[]));const Ol=bs(T)===W;return this.processSegment(Et,Pe,Ca,Jo,Ol?Je:W,!0).pipe((0,Oe.T)(Ya=>new Kr(Ga,Ya instanceof Kr?[Ya]:[])))})):Eo(_)))}getChildConfig(E,_,T){return _.children?(0,F.of)({routes:_.children,injector:E}):_.loadChildren?void 0!==_._loadedRoutes?(0,F.of)({routes:_._loadedRoutes,injector:_._loadedInjector}):function fl(y,E,_,T){const k=E.canLoad;if(void 0===k||0===k.length)return(0,F.of)(!0);const W=k.map(pe=>{const Fe=zi(pe,y);return ar(function De(y){return y&&I(y.canLoad)}(Fe)?Fe.canLoad(E,_):(0,r.N4e)(y,()=>Fe(E,_)))});return(0,F.of)(W).pipe(ao(),ql())}(E,_,T).pipe((0,ut.Z)(k=>k?this.configLoader.loadChildren(E,_).pipe((0,Zt.M)(W=>{_._loadedRoutes=W.routes,_._loadedInjector=W.injector})):function Qr(y){return(0,Ee.$)(Rr(!1,jn.GuardRejected))}())):(0,F.of)({routes:[],injector:E})}}function tc(y){const E=y.value.routeConfig;return E&&""===E.path}function zs(y){const E=[],_=new Set;for(const T of y){if(!tc(T)){E.push(T);continue}const k=E.find(W=>T.value.routeConfig===W.value.routeConfig);void 0!==k?(k.children.push(...T.children),_.add(k)):E.push(T)}for(const T of _){const k=zs(T.children);E.push(new Kr(T.value,k))}return E.filter(T=>!_.has(T))}function Qo(y){const E=y.children.map(_=>Qo(_)).flat();return[y,...E]}function Io(y){return(0,Ke.n)(E=>{const _=y(E);return _?(0,$.H)(_).pipe((0,Oe.T)(()=>E)):(0,F.of)(E)})}let jr=(()=>{class y{buildTitle(_){let T,k=_.root;for(;void 0!==k;)T=this.getResolvedTitleForRoute(k)??T,k=k.children.find(W=>W.outlet===Je);return T}getResolvedTitleForRoute(_){return _.data[Xt]}static#e=this.\u0275fac=function(T){return new(T||y)};static#t=this.\u0275prov=r.jDH({token:y,factory:()=>(0,r.WQX)(qr),providedIn:"root"})}return y})(),qr=(()=>{class y extends jr{constructor(_){super(),this.title=_}updateTitle(_){const T=this.buildTitle(_);void 0!==T&&this.title.setTitle(T)}static#e=this.\u0275fac=function(T){return new(T||y)(r.KVO(Gt.hE))};static#t=this.\u0275prov=r.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})();const os=new r.nKC("",{providedIn:"root",factory:()=>({})}),So=new r.nKC("");let Hs=(()=>{class y{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,r.WQX)(r.Ql9)}loadComponent(_){if(this.componentLoaders.get(_))return this.componentLoaders.get(_);if(_._loadedComponent)return(0,F.of)(_._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(_);const T=ar(_.loadComponent()).pipe((0,Oe.T)(qo),(0,Zt.M)(W=>{this.onLoadEndListener&&this.onLoadEndListener(_),_._loadedComponent=W}),(0,Ie.j)(()=>{this.componentLoaders.delete(_)})),k=new tt(T,()=>new It.B).pipe(mt());return this.componentLoaders.set(_,k),k}loadChildren(_,T){if(this.childrenLoaders.get(T))return this.childrenLoaders.get(T);if(T._loadedRoutes)return(0,F.of)({routes:T._loadedRoutes,injector:T._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(T);const W=function Ha(y,E,_,T){return ar(y.loadChildren()).pipe((0,Oe.T)(qo),(0,ut.Z)(k=>k instanceof r.Co$||Array.isArray(k)?(0,F.of)(k):(0,$.H)(E.compileModuleAsync(k))),(0,Oe.T)(k=>{T&&T(y);let W,pe,Fe=!1;return Array.isArray(k)?(pe=k,!0):(W=k.create(_).injector,pe=W.get(So,[],{optional:!0,self:!0}).flat()),{routes:pe.map(Ai),injector:W}}))}(T,this.compiler,_,this.onLoadEndListener).pipe((0,Ie.j)(()=>{this.childrenLoaders.delete(T)})),pe=new tt(W,()=>new It.B).pipe(mt());return this.childrenLoaders.set(T,pe),pe}static#e=this.\u0275fac=function(T){return new(T||y)};static#t=this.\u0275prov=r.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})();function qo(y){return function wl(y){return y&&"object"==typeof y&&"default"in y}(y)?y.default:y}let Dl=(()=>{class y{static#e=this.\u0275fac=function(T){return new(T||y)};static#t=this.\u0275prov=r.jDH({token:y,factory:()=>(0,r.WQX)(Ml),providedIn:"root"})}return y})(),Ml=(()=>{class y{shouldProcessUrl(_){return!0}extract(_){return _}merge(_,T){return _}static#e=this.\u0275fac=function(T){return new(T||y)};static#t=this.\u0275prov=r.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})();const w=new r.nKC(""),j=new r.nKC("");function S(y,E,_){const T=y.get(j),k=y.get(Ye.qQ);return y.get(r.SKi).runOutsideAngular(()=>{if(!k.startViewTransition||T.skipNextTransition)return T.skipNextTransition=!1,Promise.resolve();let W;const pe=new Promise(Et=>{W=Et}),Fe=k.startViewTransition(()=>(W(),function N(y){return new Promise(E=>{(0,r.mal)(E,{injector:y})})}(y))),{onViewTransitionCreated:Pe}=T;return Pe&&(0,r.N4e)(y,()=>Pe({transition:Fe,from:E,to:_})),pe})}let he=(()=>{class y{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new It.B,this.transitionAbortSubject=new It.B,this.configLoader=(0,r.WQX)(Hs),this.environmentInjector=(0,r.WQX)(r.uvJ),this.urlSerializer=(0,r.WQX)(Kt),this.rootContexts=(0,r.WQX)(ys),this.location=(0,r.WQX)(Ye.aZ),this.inputBindingEnabled=null!==(0,r.WQX)(ns,{optional:!0}),this.titleStrategy=(0,r.WQX)(jr),this.options=(0,r.WQX)(os,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,r.WQX)(Dl),this.createViewTransition=(0,r.WQX)(w,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,F.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=k=>this.events.next(new xa(k)),this.configLoader.onLoadStartListener=k=>this.events.next(new Tn(k))}complete(){this.transitions?.complete()}handleNavigationRequest(_){const T=++this.navigationId;this.transitions?.next({...this.transitions.value,..._,id:T})}setupNavigations(_,T,k){return this.transitions=new se.t({id:0,currentUrlTree:T,currentRawUrl:T,extractedUrl:this.urlHandlingStrategy.extract(T),urlAfterRedirects:this.urlHandlingStrategy.extract(T),rawUrl:T,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Nn,restoredState:null,currentSnapshot:k.snapshot,targetSnapshot:null,currentRouterState:k,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,it.p)(W=>0!==W.id),(0,Oe.T)(W=>({...W,extractedUrl:this.urlHandlingStrategy.extract(W.rawUrl)})),(0,Ke.n)(W=>{let pe=!1,Fe=!1;return(0,F.of)(W).pipe((0,Ke.n)(Pe=>{if(this.navigationId>W.id)return this.cancelNavigationTransition(W,"",jn.SupersededByNewNavigation),Te.w;this.currentTransition=W,this.currentNavigation={id:Pe.id,initialUrl:Pe.rawUrl,extractedUrl:Pe.extractedUrl,trigger:Pe.source,extras:Pe.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Et=!_.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!Et&&"reload"!==(Pe.extras.onSameUrlNavigation??_.onSameUrlNavigation)){const xn="";return this.events.next(new _r(Pe.id,this.urlSerializer.serialize(Pe.rawUrl),xn,fn.IgnoredSameUrlNavigation)),Pe.resolve(null),Te.w}if(this.urlHandlingStrategy.shouldProcessUrl(Pe.rawUrl))return(0,F.of)(Pe).pipe((0,Ke.n)(xn=>{const di=this.transitions?.getValue();return this.events.next(new An(xn.id,this.urlSerializer.serialize(xn.extractedUrl),xn.source,xn.restoredState)),di!==this.transitions?.getValue()?Te.w:Promise.resolve(xn)}),function _l(y,E,_,T,k,W){return(0,ut.Z)(pe=>function vl(y,E,_,T,k,W,pe="emptyOnly"){return new yl(y,E,_,T,k,pe,W).recognize()}(y,E,_,T,pe.extractedUrl,k,W).pipe((0,Oe.T)(({state:Fe,tree:Pe})=>({...pe,targetSnapshot:Fe,urlAfterRedirects:Pe}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,_.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,Zt.M)(xn=>{W.targetSnapshot=xn.targetSnapshot,W.urlAfterRedirects=xn.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:xn.urlAfterRedirects};const di=new Dr(xn.id,this.urlSerializer.serialize(xn.extractedUrl),this.urlSerializer.serialize(xn.urlAfterRedirects),xn.targetSnapshot);this.events.next(di)}));if(Et&&this.urlHandlingStrategy.shouldProcessUrl(Pe.currentRawUrl)){const{id:xn,extractedUrl:di,source:Ga,restoredState:Ca,extras:Jo}=Pe,Ol=new An(xn,this.urlSerializer.serialize(di),Ga,Ca);this.events.next(Ol);const Ya=Ps(this.rootComponentType).snapshot;return this.currentTransition=W={...Pe,targetSnapshot:Ya,urlAfterRedirects:di,extras:{...Jo,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=di,(0,F.of)(W)}{const xn="";return this.events.next(new _r(Pe.id,this.urlSerializer.serialize(Pe.extractedUrl),xn,fn.IgnoredByUrlHandlingStrategy)),Pe.resolve(null),Te.w}}),(0,Zt.M)(Pe=>{const Et=new li(Pe.id,this.urlSerializer.serialize(Pe.extractedUrl),this.urlSerializer.serialize(Pe.urlAfterRedirects),Pe.targetSnapshot);this.events.next(Et)}),(0,Oe.T)(Pe=>(this.currentTransition=W={...Pe,guards:Bs(Pe.targetSnapshot,Pe.currentSnapshot,this.rootContexts)},W)),function Xo(y,E){return(0,ut.Z)(_=>{const{targetSnapshot:T,currentSnapshot:k,guards:{canActivateChecks:W,canDeactivateChecks:pe}}=_;return 0===pe.length&&0===W.length?(0,F.of)({..._,guardsResult:!0}):function Na(y,E,_,T){return(0,$.H)(y).pipe((0,ut.Z)(k=>function Pc(y,E,_,T,k){const W=E&&E.routeConfig?E.routeConfig.canDeactivate:null;if(!W||0===W.length)return(0,F.of)(!0);const pe=W.map(Fe=>{const Pe=Xr(E)??k,Et=zi(Fe,Pe);return ar(function is(y){return y&&I(y.canDeactivate)}(Et)?Et.canDeactivate(y,E,_,T):(0,r.N4e)(Pe,()=>Et(y,E,_,T))).pipe(Bt())});return(0,F.of)(pe).pipe(ao())}(k.component,k.route,_,E,T)),Bt(k=>!0!==k,!0))}(pe,T,k,y).pipe((0,ut.Z)(Fe=>Fe&&function X(y){return"boolean"==typeof y}(Fe)?function sr(y,E,_,T){return(0,$.H)(E).pipe((0,Qt.H)(k=>(0,Z.x)(function Zl(y,E){return null!==y&&E&&E(new Ri(y)),(0,F.of)(!0)}(k.route.parent,T),function Ac(y,E){return null!==y&&E&&E(new ua(y)),(0,F.of)(!0)}(k.route,T),function kc(y,E,_){const T=E[E.length-1],W=E.slice(0,E.length-1).reverse().map(pe=>function Vs(y){const E=y.routeConfig?y.routeConfig.canActivateChild:null;return E&&0!==E.length?{node:y,guards:E}:null}(pe)).filter(pe=>null!==pe).map(pe=>(0,oe.v)(()=>{const Fe=pe.guards.map(Pe=>{const Et=Xr(pe.node)??_,wn=zi(Pe,Et);return ar(function an(y){return y&&I(y.canActivateChild)}(wn)?wn.canActivateChild(T,y):(0,r.N4e)(Et,()=>wn(T,y))).pipe(Bt())});return(0,F.of)(Fe).pipe(ao())}));return(0,F.of)(W).pipe(ao())}(y,k.path,_),function xc(y,E,_){const T=E.routeConfig?E.routeConfig.canActivate:null;if(!T||0===T.length)return(0,F.of)(!0);const k=T.map(W=>(0,oe.v)(()=>{const pe=Xr(E)??_,Fe=zi(W,pe);return ar(function Pt(y){return y&&I(y.canActivate)}(Fe)?Fe.canActivate(E,y):(0,r.N4e)(pe,()=>Fe(E,y))).pipe(Bt())}));return(0,F.of)(k).pipe(ao())}(y,k.route,_))),Bt(k=>!0!==k,!0))}(T,W,y,E):(0,F.of)(Fe)),(0,Oe.T)(Fe=>({..._,guardsResult:Fe})))})}(this.environmentInjector,Pe=>this.events.next(Pe)),(0,Zt.M)(Pe=>{if(W.guardsResult=Pe.guardsResult,lr(Pe.guardsResult))throw ma(0,Pe.guardsResult);const Et=new Hr(Pe.id,this.urlSerializer.serialize(Pe.extractedUrl),this.urlSerializer.serialize(Pe.urlAfterRedirects),Pe.targetSnapshot,!!Pe.guardsResult);this.events.next(Et)}),(0,it.p)(Pe=>!!Pe.guardsResult||(this.cancelNavigationTransition(Pe,"",jn.GuardRejected),!1)),Io(Pe=>{if(Pe.guards.canActivateChecks.length)return(0,F.of)(Pe).pipe((0,Zt.M)(Et=>{const wn=new Oi(Et.id,this.urlSerializer.serialize(Et.extractedUrl),this.urlSerializer.serialize(Et.urlAfterRedirects),Et.targetSnapshot);this.events.next(wn)}),(0,Ke.n)(Et=>{let wn=!1;return(0,F.of)(Et).pipe(function bl(y,E){return(0,ut.Z)(_=>{const{targetSnapshot:T,guards:{canActivateChecks:k}}=_;if(!k.length)return(0,F.of)(_);const W=new Set(k.map(Pe=>Pe.route)),pe=new Set;for(const Pe of W)if(!pe.has(Pe))for(const Et of Qo(Pe))pe.add(Et);let Fe=0;return(0,$.H)(pe).pipe((0,Qt.H)(Pe=>W.has(Pe)?function ss(y,E,_,T){const k=y.routeConfig,W=y._resolve;return void 0!==k?.title&&!Ns(k)&&(W[Xt]=k.title),function Zo(y,E,_,T){const k=Rn(y);if(0===k.length)return(0,F.of)({});const W={};return(0,$.H)(k).pipe((0,ut.Z)(pe=>function Cl(y,E,_,T){const k=Xr(E)??T,W=zi(y,k);return ar(W.resolve?W.resolve(E,_):(0,r.N4e)(k,()=>W(E,_)))}(y[pe],E,_,T).pipe(Bt(),(0,Zt.M)(Fe=>{W[pe]=Fe}))),J(1),(0,fe.u)(W),(0,Mn.W)(pe=>dr(pe)?Te.w:(0,Ee.$)(pe)))}(W,y,E,T).pipe((0,Oe.T)(pe=>(y._resolvedData=pe,y.data=Bi(y,y.parent,_).resolve,null)))}(Pe,T,y,E):(Pe.data=Bi(Pe,Pe.parent,y).resolve,(0,F.of)(void 0))),(0,Zt.M)(()=>Fe++),J(1),(0,ut.Z)(Pe=>Fe===pe.size?(0,F.of)(_):Te.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,Zt.M)({next:()=>wn=!0,complete:()=>{wn||this.cancelNavigationTransition(Et,"",jn.NoDataFromResolver)}}))}),(0,Zt.M)(Et=>{const wn=new Ut(Et.id,this.urlSerializer.serialize(Et.extractedUrl),this.urlSerializer.serialize(Et.urlAfterRedirects),Et.targetSnapshot);this.events.next(wn)}))}),Io(Pe=>{const Et=wn=>{const xn=[];wn.routeConfig?.loadComponent&&!wn.routeConfig._loadedComponent&&xn.push(this.configLoader.loadComponent(wn.routeConfig).pipe((0,Zt.M)(di=>{wn.component=di}),(0,Oe.T)(()=>{})));for(const di of wn.children)xn.push(...Et(di));return xn};return(0,ie.z)(Et(Pe.targetSnapshot.root)).pipe(Ot(null),(0,Dt.s)(1))}),Io(()=>this.afterPreactivation()),(0,Ke.n)(()=>{const{currentSnapshot:Pe,targetSnapshot:Et}=W,wn=this.createViewTransition?.(this.environmentInjector,Pe.root,Et.root);return wn?(0,$.H)(wn).pipe((0,Oe.T)(()=>W)):(0,F.of)(W)}),(0,Oe.T)(Pe=>{const Et=function Xi(y,E,_){const T=rs(y,E._root,_?_._root:void 0);return new ka(T,E)}(_.routeReuseStrategy,Pe.targetSnapshot,Pe.currentRouterState);return this.currentTransition=W={...Pe,targetRouterState:Et},this.currentNavigation.targetRouterState=Et,W}),(0,Zt.M)(()=>{this.events.next(new pn)}),((y,E,_,T)=>(0,Oe.T)(k=>(new hl(E,k.targetRouterState,k.currentRouterState,_,T).activate(y),k)))(this.rootContexts,_.routeReuseStrategy,Pe=>this.events.next(Pe),this.inputBindingEnabled),(0,Dt.s)(1),(0,Zt.M)({next:Pe=>{pe=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Qn(Pe.id,this.urlSerializer.serialize(Pe.extractedUrl),this.urlSerializer.serialize(Pe.urlAfterRedirects))),this.titleStrategy?.updateTitle(Pe.targetRouterState.snapshot),Pe.resolve(!0)},complete:()=>{pe=!0}}),(0,ot.Q)(this.transitionAbortSubject.pipe((0,Zt.M)(Pe=>{throw Pe}))),(0,Ie.j)(()=>{!pe&&!Fe&&this.cancelNavigationTransition(W,"",jn.SupersededByNewNavigation),this.currentTransition?.id===W.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Mn.W)(Pe=>{if(Fe=!0,ci(Pe))this.events.next(new En(W.id,this.urlSerializer.serialize(W.extractedUrl),Pe.message,Pe.cancellationCode)),function Rs(y){return ci(y)&&lr(y.url)}(Pe)?this.events.next(new Js(Pe.url)):W.resolve(!1);else{this.events.next(new wi(W.id,this.urlSerializer.serialize(W.extractedUrl),Pe,W.targetSnapshot??void 0));try{W.resolve(_.errorHandler(Pe))}catch(Et){this.options.resolveNavigationPromiseOnError?W.resolve(!1):W.reject(Et)}}return Te.w}))}))}cancelNavigationTransition(_,T,k){const W=new En(_.id,this.urlSerializer.serialize(_.extractedUrl),T,k);this.events.next(W),_.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(T){return new(T||y)};static#t=this.\u0275prov=r.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})();function Be(y){return y!==Nn}let Qe=(()=>{class y{static#e=this.\u0275fac=function(T){return new(T||y)};static#t=this.\u0275prov=r.jDH({token:y,factory:()=>(0,r.WQX)(kr),providedIn:"root"})}return y})();class xt{shouldDetach(E){return!1}store(E,_){}shouldAttach(E){return!1}retrieve(E){return null}shouldReuseRoute(E,_){return E.routeConfig===_.routeConfig}}let kr=(()=>{class y extends xt{static#e=this.\u0275fac=(()=>{let _;return function(k){return(_||(_=r.xGo(y)))(k||y)}})();static#t=this.\u0275prov=r.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})(),cr=(()=>{class y{static#e=this.\u0275fac=function(T){return new(T||y)};static#t=this.\u0275prov=r.jDH({token:y,factory:()=>(0,r.WQX)(br),providedIn:"root"})}return y})(),br=(()=>{class y extends cr{constructor(){super(...arguments),this.location=(0,r.WQX)(Ye.aZ),this.urlSerializer=(0,r.WQX)(Kt),this.options=(0,r.WQX)(os,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,r.WQX)(Dl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Un,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ps(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(_){return this.location.subscribe(T=>{"popstate"===T.type&&_(T.url,T.state)})}handleRouterEvent(_,T){if(_ instanceof An)this.stateMemento=this.createStateMemento();else if(_ instanceof _r)this.rawUrlTree=T.initialUrl;else if(_ instanceof Dr){if("eager"===this.urlUpdateStrategy&&!T.extras.skipLocationChange){const k=this.urlHandlingStrategy.merge(T.finalUrl,T.initialUrl);this.setBrowserUrl(k,T)}}else _ instanceof pn?(this.currentUrlTree=T.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(T.finalUrl,T.initialUrl),this.routerState=T.targetRouterState,"deferred"===this.urlUpdateStrategy&&(T.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,T))):_ instanceof En&&(_.code===jn.GuardRejected||_.code===jn.NoDataFromResolver)?this.restoreHistory(T):_ instanceof wi?this.restoreHistory(T,!0):_ instanceof Qn&&(this.lastSuccessfulId=_.id,this.currentPageId=this.browserPageId)}setBrowserUrl(_,T){const k=this.urlSerializer.serialize(_);if(this.location.isCurrentPathEqualTo(k)||T.extras.replaceUrl){const pe={...T.extras.state,...this.generateNgRouterState(T.id,this.browserPageId)};this.location.replaceState(k,"",pe)}else{const W={...T.extras.state,...this.generateNgRouterState(T.id,this.browserPageId+1)};this.location.go(k,"",W)}}restoreHistory(_,T=!1){if("computed"===this.canceledNavigationResolution){const W=this.currentPageId-this.browserPageId;0!==W?this.location.historyGo(W):this.currentUrlTree===_.finalUrl&&0===W&&(this.resetState(_),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(T&&this.resetState(_),this.resetUrlToCurrentUrlTree())}resetState(_){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,_.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(_,T){return"computed"===this.canceledNavigationResolution?{navigationId:_,\u0275routerPageId:T}:{navigationId:_}}static#e=this.\u0275fac=(()=>{let _;return function(k){return(_||(_=r.xGo(y)))(k||y)}})();static#t=this.\u0275prov=r.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})();var mn=function(y){return y[y.COMPLETE=0]="COMPLETE",y[y.FAILED=1]="FAILED",y[y.REDIRECTING=2]="REDIRECTING",y}(mn||{});function Mr(y,E){y.events.pipe((0,it.p)(_=>_ instanceof Qn||_ instanceof En||_ instanceof wi||_ instanceof _r),(0,Oe.T)(_=>_ instanceof Qn||_ instanceof _r?mn.COMPLETE:_ instanceof En&&(_.code===jn.Redirect||_.code===jn.SupersededByNewNavigation)?mn.REDIRECTING:mn.FAILED),(0,it.p)(_=>_!==mn.REDIRECTING),(0,Dt.s)(1)).subscribe(()=>{E()})}function Wn(y){throw y}const Ur={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Zn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let lt=(()=>{class y{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,r.WQX)(r.H3F),this.stateManager=(0,r.WQX)(cr),this.options=(0,r.WQX)(os,{optional:!0})||{},this.pendingTasks=(0,r.WQX)(r.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,r.WQX)(he),this.urlSerializer=(0,r.WQX)(Kt),this.location=(0,r.WQX)(Ye.aZ),this.urlHandlingStrategy=(0,r.WQX)(Dl),this._events=new It.B,this.errorHandler=this.options.errorHandler||Wn,this.navigated=!1,this.routeReuseStrategy=(0,r.WQX)(Qe),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,r.WQX)(So,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,r.WQX)(ns,{optional:!0}),this.eventsSubscription=new we.yU,this.isNgZoneEnabled=(0,r.WQX)(r.SKi)instanceof r.SKi&&r.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:_=>{this.console.warn(_)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const _=this.navigationTransitions.events.subscribe(T=>{try{const k=this.navigationTransitions.currentTransition,W=this.navigationTransitions.currentNavigation;if(null!==k&&null!==W)if(this.stateManager.handleRouterEvent(T,W),T instanceof En&&T.code!==jn.Redirect&&T.code!==jn.SupersededByNewNavigation)this.navigated=!0;else if(T instanceof Qn)this.navigated=!0;else if(T instanceof Js){const pe=this.urlHandlingStrategy.merge(T.url,k.currentRawUrl),Fe={info:k.extras.info,skipLocationChange:k.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Be(k.source)};this.scheduleNavigation(pe,Nn,null,Fe,{resolve:k.resolve,reject:k.reject,promise:k.promise})}(function zn(y){return!(y instanceof pn||y instanceof Js)})(T)&&this._events.next(T)}catch(k){this.navigationTransitions.transitionAbortSubject.next(k)}});this.eventsSubscription.add(_)}resetRootComponentType(_){this.routerState.root.component=_,this.navigationTransitions.rootComponentType=_}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Nn,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((_,T)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(_,"popstate",T)},0)})}navigateToSyncWithBrowser(_,T,k){const W={replaceUrl:!0},pe=k?.navigationId?k:null;if(k){const Pe={...k};delete Pe.navigationId,delete Pe.\u0275routerPageId,0!==Object.keys(Pe).length&&(W.state=Pe)}const Fe=this.parseUrl(_);this.scheduleNavigation(Fe,T,pe,W)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(_){this.config=_.map(Ai),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(_,T={}){const{relativeTo:k,queryParams:W,fragment:pe,queryParamsHandling:Fe,preserveFragment:Pe}=T,Et=Pe?this.currentUrlTree.fragment:pe;let xn,wn=null;switch(Fe){case"merge":wn={...this.currentUrlTree.queryParams,...W};break;case"preserve":wn=this.currentUrlTree.queryParams;break;default:wn=W||null}null!==wn&&(wn=this.removeEmptyProps(wn));try{xn=xs(k?k.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof _[0]||!_[0].startsWith("/"))&&(_=[]),xn=this.currentUrlTree.root}return Gi(xn,_,wn,Et??null)}navigateByUrl(_,T={skipLocationChange:!1}){const k=lr(_)?_:this.parseUrl(_),W=this.urlHandlingStrategy.merge(k,this.rawUrlTree);return this.scheduleNavigation(W,Nn,null,T)}navigate(_,T={skipLocationChange:!1}){return function Lt(y){for(let E=0;E(null!=W&&(T[k]=W),T),{})}scheduleNavigation(_,T,k,W,pe){if(this.disposed)return Promise.resolve(!1);let Fe,Pe,Et;pe?(Fe=pe.resolve,Pe=pe.reject,Et=pe.promise):Et=new Promise((xn,di)=>{Fe=xn,Pe=di});const wn=this.pendingTasks.add();return Mr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(wn))}),this.navigationTransitions.handleNavigationRequest({source:T,restoredState:k,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:_,extras:W,resolve:Fe,reject:Pe,promise:Et,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Et.catch(xn=>Promise.reject(xn))}static#e=this.\u0275fac=function(T){return new(T||y)};static#t=this.\u0275prov=r.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})(),$r=(()=>{class y{constructor(_,T,k,W,pe,Fe){this.router=_,this.route=T,this.tabIndexAttribute=k,this.renderer=W,this.el=pe,this.locationStrategy=Fe,this.href=null,this.commands=null,this.onChanges=new It.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Pe=pe.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Pe||"area"===Pe,this.isAnchorElement?this.subscription=_.events.subscribe(Et=>{Et instanceof Qn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(_){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",_)}ngOnChanges(_){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(_){null!=_?(this.commands=Array.isArray(_)?_:[_],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(_,T,k,W,pe){const Fe=this.urlTree;return!!(null===Fe||this.isAnchorElement&&(0!==_||T||k||W||pe||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(Fe,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const _=this.urlTree;this.href=null!==_&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(_)):null;const T=null===this.href?null:(0,r.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",T)}applyAttributeValue(_,T){const k=this.renderer,W=this.el.nativeElement;null!==T?k.setAttribute(W,_,T):k.removeAttribute(W,_)}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})}static#e=this.\u0275fac=function(T){return new(T||y)(r.rXU(lt),r.rXU(_s),r.kS0("tabindex"),r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(Ye.hb))};static#t=this.\u0275dir=r.FsC({type:y,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(T,k){1&T&&r.bIt("click",function(pe){return k.onClick(pe.button,pe.ctrlKey,pe.shiftKey,pe.altKey,pe.metaKey)}),2&T&&r.BMQ("target",k.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[r.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",r.L39],skipLocationChange:[r.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",r.L39],replaceUrl:[r.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",r.L39],routerLink:"routerLink"},standalone:!0,features:[r.GFd,r.OA$]})}return y})(),ur=(()=>{class y{get isActive(){return this._isActive}constructor(_,T,k,W,pe){this.router=_,this.element=T,this.renderer=k,this.cdr=W,this.link=pe,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new r.bkB,this.routerEventsSubscription=_.events.subscribe(Fe=>{Fe instanceof Qn&&this.update()})}ngAfterContentInit(){(0,F.of)(this.links.changes,(0,F.of)(null)).pipe((0,bt.U)()).subscribe(_=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const _=[...this.links.toArray(),this.link].filter(T=>!!T).map(T=>T.onChanges);this.linkInputChangesSubscription=(0,$.H)(_).pipe((0,bt.U)()).subscribe(T=>{this._isActive!==this.isLinkActive(this.router)(T)&&this.update()})}set routerLinkActive(_){const T=Array.isArray(_)?_:_.split(" ");this.classes=T.filter(k=>!!k)}ngOnChanges(_){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const _=this.hasActiveLinks();this.classes.forEach(T=>{_?this.renderer.addClass(this.element.nativeElement,T):this.renderer.removeClass(this.element.nativeElement,T)}),_&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==_&&(this._isActive=_,this.cdr.markForCheck(),this.isActiveChange.emit(_))})}isLinkActive(_){const T=function Jr(y){return!!y.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return k=>{const W=k.urlTree;return!!W&&_.isActive(W,T)}}hasActiveLinks(){const _=this.isLinkActive(this.router);return this.link&&_(this.link)||this.links.some(_)}static#e=this.\u0275fac=function(T){return new(T||y)(r.rXU(lt),r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(r.gRc),r.rXU($r,8))};static#t=this.\u0275dir=r.FsC({type:y,selectors:[["","routerLinkActive",""]],contentQueries:function(T,k,W){if(1&T&&r.wni(W,$r,5),2&T){let pe;r.mGM(pe=r.lsd())&&(k.links=pe)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[r.OA$]})}return y})();class ws{}let Ds=(()=>{class y{constructor(_,T,k,W,pe){this.router=_,this.injector=k,this.preloadingStrategy=W,this.loader=pe}setUpPreloading(){this.subscription=this.router.events.pipe((0,it.p)(_=>_ instanceof Qn),(0,Qt.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(_,T){const k=[];for(const W of T){W.providers&&!W._injector&&(W._injector=(0,r.Ol2)(W.providers,_,`Route: ${W.path}`));const pe=W._injector??_,Fe=W._loadedInjector??pe;(W.loadChildren&&!W._loadedRoutes&&void 0===W.canLoad||W.loadComponent&&!W._loadedComponent)&&k.push(this.preloadConfig(pe,W)),(W.children||W._loadedRoutes)&&k.push(this.processRoutes(Fe,W.children??W._loadedRoutes))}return(0,$.H)(k).pipe((0,bt.U)())}preloadConfig(_,T){return this.preloadingStrategy.preload(T,()=>{let k;k=T.loadChildren&&void 0===T.canLoad?this.loader.loadChildren(_,T):(0,F.of)(null);const W=k.pipe((0,ut.Z)(pe=>null===pe?(0,F.of)(void 0):(T._loadedRoutes=pe.routes,T._loadedInjector=pe.injector,this.processRoutes(pe.injector??_,pe.routes))));if(T.loadComponent&&!T._loadedComponent){const pe=this.loader.loadComponent(T);return(0,$.H)([W,pe]).pipe((0,bt.U)())}return W})}static#e=this.\u0275fac=function(T){return new(T||y)(r.KVO(lt),r.KVO(r.Ql9),r.KVO(r.uvJ),r.KVO(ws),r.KVO(Hs))};static#t=this.\u0275prov=r.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})();const rn=new r.nKC("");let co=(()=>{class y{constructor(_,T,k,W,pe={}){this.urlSerializer=_,this.transitions=T,this.viewportScroller=k,this.zone=W,this.options=pe,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},pe.scrollPositionRestoration||="disabled",pe.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(_=>{_ instanceof An?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=_.navigationTrigger,this.restoredId=_.restoredState?_.restoredState.navigationId:0):_ instanceof Qn?(this.lastId=_.id,this.scheduleScrollEvent(_,this.urlSerializer.parse(_.urlAfterRedirects).fragment)):_ instanceof _r&&_.code===fn.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(_,this.urlSerializer.parse(_.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(_=>{_ instanceof _o&&(_.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(_.position):_.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(_.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(_,T){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new _o(_,"popstate"===this.lastSource?this.store[this.restoredId]:null,T))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(T){r.QTQ()};static#t=this.\u0275prov=r.jDH({token:y,factory:y.\u0275fac})}return y})();function tr(y,E){return{\u0275kind:y,\u0275providers:E}}function Tl(){const y=(0,r.WQX)(r.zZn);return E=>{const _=y.get(r.o8S);if(E!==_.components[0])return;const T=y.get(lt),k=y.get(xo);1===y.get(ja)&&T.initialNavigation(),y.get(Ua,null,r.$GK.Optional)?.setUpPreloading(),y.get(rn,null,r.$GK.Optional)?.init(),T.resetRootComponentType(_.componentTypes[0]),k.closed||(k.next(),k.complete(),k.unsubscribe())}}const xo=new r.nKC("",{factory:()=>new It.B}),ja=new r.nKC("",{providedIn:"root",factory:()=>1}),Ua=new r.nKC("");function ko(y){return tr(0,[{provide:Ua,useExisting:Ds},{provide:ws,useExisting:y}])}function si(y){return tr(9,[{provide:w,useValue:S},{provide:j,useValue:{skipNextTransition:!!y?.skipInitialTransition,...y}}])}const Wa=new r.nKC("ROUTER_FORROOT_GUARD"),_a=[Ye.aZ,{provide:Kt,useClass:en},lt,ys,{provide:_s,useFactory:function Oo(y){return y.routerState.root},deps:[lt]},Hs,[]];let Il=(()=>{class y{constructor(_){}static forRoot(_,T){return{ngModule:y,providers:[_a,[],{provide:So,multi:!0,useValue:_},{provide:Wa,useFactory:Us,deps:[[lt,new r.Xx1,new r.kdw]]},{provide:os,useValue:T||{}},T?.useHash?{provide:Ye.hb,useClass:Ye.fw}:{provide:Ye.hb,useClass:Ye.Sm},{provide:rn,useFactory:()=>{const y=(0,r.WQX)(Ye.Xr),E=(0,r.WQX)(r.SKi),_=(0,r.WQX)(os),T=(0,r.WQX)(he),k=(0,r.WQX)(Kt);return _.scrollOffset&&y.setOffset(_.scrollOffset),new co(k,T,y,E,_)}},T?.preloadingStrategy?ko(T.preloadingStrategy).\u0275providers:[],T?.initialNavigation?Lr(T):[],T?.bindToComponentInputs?tr(8,[fa,{provide:ns,useExisting:fa}]).\u0275providers:[],T?.enableViewTransitions?si().\u0275providers:[],[{provide:Ir,useFactory:Tl},{provide:r.iLQ,multi:!0,useExisting:Ir}]]}}static forChild(_){return{ngModule:y,providers:[{provide:So,multi:!0,useValue:_}]}}static#e=this.\u0275fac=function(T){return new(T||y)(r.KVO(Wa,8))};static#t=this.\u0275mod=r.$C({type:y});static#n=this.\u0275inj=r.G2t({})}return y})();function Us(y){return"guarded"}function Lr(y){return["disabled"===y.initialNavigation?tr(3,[{provide:r.hnV,multi:!0,useFactory:()=>{const E=(0,r.WQX)(lt);return()=>{E.setUpLocationChangeListener()}}},{provide:ja,useValue:2}]).\u0275providers:[],"enabledBlocking"===y.initialNavigation?tr(2,[{provide:ja,useValue:0},{provide:r.hnV,multi:!0,deps:[r.zZn],useFactory:E=>{const _=E.get(Ye.hj,Promise.resolve());return()=>_.then(()=>new Promise(T=>{const k=E.get(lt),W=E.get(xo);Mr(k,()=>{T(!0)}),E.get(he).afterPreactivation=()=>(T(!0),W.closed?(0,F.of)(void 0):W),k.initialNavigation()}))}}]).\u0275providers:[]]}const Ir=new r.nKC("")},8921:(st,Ce,D)=>{D.d(Ce,{CyY:()=>Ur,Zic:()=>Zn,mCO:()=>Lt,nSt:()=>zn,EJq:()=>$r,_SP:()=>Ds,wX6:()=>Ei,UjT:()=>Mr,_fv:()=>mn,Z7S:()=>rn,ayw:()=>Cu,tmq:()=>Wn,jMj:()=>tr,qHy:()=>Ms,iby:()=>Ao,Rjr:()=>js,f3O:()=>El,lMi:()=>Tl,Dw2:()=>$a,gUq:()=>Wa,vwk:()=>Il,Itg:()=>Sn,cXP:()=>$s,Bnb:()=>Ir,RlG:()=>nc,Iyx:()=>bn,gLf:()=>Hc,DcD:()=>he,G95:()=>Be,HUM:()=>Cf,PsF:()=>E,AAN:()=>Vc,Mrl:()=>_,eOK:()=>zc,krp:()=>W,rlA:()=>y,n5m:()=>pe,kiz:()=>Fe,akk:()=>Ca,iQ3:()=>Jo,cy2:()=>Ga,l_X:()=>Ol,CWS:()=>Pe,XW7:()=>Et,e$m:()=>bf,YJZ:()=>di,tHK:()=>Sd,wPz:()=>xn,pc9:()=>Ad,lZj:()=>Df,EH9:()=>Sr,GCM:()=>Mf,Coh:()=>xd,B7R:()=>as,fvw:()=>wn,ISP:()=>Id,D7j:()=>Es,YpC:()=>Ef,OeB:()=>Mu,Jyz:()=>Ka,zfW:()=>Xa,s$3:()=>Sf,epl:()=>Of,Q_q:()=>Op,L$K:()=>Af,VtU:()=>If,Ppg:()=>kd,uSe:()=>Fo,BZu:()=>Tf,Ied:()=>Pd,HJA:()=>Eu,_rF:()=>Nd,fSQ:()=>Iu,J1k:()=>Tu,M9b:()=>Wc,aDA:()=>ei,Xfz:()=>hi,Emn:()=>Zi,oMR:()=>Od,GgS:()=>wl,jgS:()=>wa,kc$:()=>xu,nAL:()=>zf,pjP:()=>Za,kvK:()=>Yc,iNJ:()=>kp,tIt:()=>Au,OTD:()=>xp,uu0:()=>cc,h7w:()=>Hd,RKs:()=>lc,VFc:()=>Al,sZU:()=>zd,bGq:()=>Pu,jr_:()=>jd,ptL:()=>Ha,jS2:()=>dc,T5C:()=>Ud,d3n:()=>ta,eY7:()=>Ja,MBE:()=>Fp,E0T:()=>Hf,W9m:()=>uc,dgQ:()=>Fu,Ss0:()=>Xc,v29:()=>Gd,L7X:()=>Kd,TX5:()=>Yd,ijd:()=>jf,v6N:()=>Ro,ofD:()=>Uf,x09:()=>Qc,AOl:()=>Lu});var r=D(4438),g=D(4085),$=D(177),F=D(9969),se=D(1413),ie=D(4412),A=D(1985),H=D(3726),Z=D(4779),oe=D(9974);var Te=D(4360),xe=D(8750),we=D(3669),$e=D(5343),We=D(9326),tt=D(7062),It=D(6977);function Ye(h){h||((0,r.Af3)(Ye),h=(0,r.WQX)(r.abz));const V=new A.c(d=>h.onDestroy(d.next.bind(d)));return d=>d.pipe((0,It.Q)(V))}var ut=D(5964),Ot=D(152);function Re(h){if(null==h)return window;if("[object Window]"!==h.toString()){var V=h.ownerDocument;return V&&V.defaultView||window}return h}function ze(h){return h instanceof Re(h).Element||h instanceof Element}function dt(h){return h instanceof Re(h).HTMLElement||h instanceof HTMLElement}function Bt(h){return!(typeof ShadowRoot>"u")&&(h instanceof Re(h).ShadowRoot||h instanceof ShadowRoot)}var Qt=Math.max,Zt=Math.min,Mn=Math.round;function ke(){var h=navigator.userAgentData;return null!=h&&h.brands&&Array.isArray(h.brands)?h.brands.map(function(V){return V.brand+"/"+V.version}).join(" "):navigator.userAgent}function ue(){return!/^((?!chrome|android).)*safari/i.test(ke())}function J(h,V,d){void 0===V&&(V=!1),void 0===d&&(d=!1);var f=h.getBoundingClientRect(),C=1,ae=1;V&&dt(h)&&(C=h.offsetWidth>0&&Mn(f.width)/h.offsetWidth||1,ae=h.offsetHeight>0&&Mn(f.height)/h.offsetHeight||1);var Ue=(ze(h)?Re(h):window).visualViewport,nt=!ue()&&d,at=(f.left+(nt&&Ue?Ue.offsetLeft:0))/C,Mt=(f.top+(nt&&Ue?Ue.offsetTop:0))/ae,nr=f.width/C,Nr=f.height/ae;return{width:nr,height:Nr,top:Mt,right:at+nr,bottom:Mt+Nr,left:at,x:at,y:Mt}}function ne(h){var V=Re(h);return{scrollLeft:V.pageXOffset,scrollTop:V.pageYOffset}}function ot(h){return h?(h.nodeName||"").toLowerCase():null}function bt(h){return((ze(h)?h.ownerDocument:h.document)||window.document).documentElement}function Gt(h){return J(bt(h)).left+ne(h).scrollLeft}function Je(h){return Re(h).getComputedStyle(h)}function Xt(h){var V=Je(h);return/auto|scroll|overlay|hidden/.test(V.overflow+V.overflowY+V.overflowX)}function gt(h,V,d){void 0===d&&(d=!1);var f=dt(V),C=dt(V)&&function Yt(h){var V=h.getBoundingClientRect(),d=Mn(V.width)/h.offsetWidth||1,f=Mn(V.height)/h.offsetHeight||1;return 1!==d||1!==f}(V),ae=bt(V),ge=J(h,C,d),Ue={scrollLeft:0,scrollTop:0},nt={x:0,y:0};return(f||!f&&!d)&&(("body"!==ot(V)||Xt(ae))&&(Ue=function Ie(h){return h!==Re(h)&&dt(h)?function fe(h){return{scrollLeft:h.scrollLeft,scrollTop:h.scrollTop}}(h):ne(h)}(V)),dt(V)?((nt=J(V,!0)).x+=V.clientLeft,nt.y+=V.clientTop):ae&&(nt.x=Gt(ae))),{x:ge.left+Ue.scrollLeft-nt.x,y:ge.top+Ue.scrollTop-nt.y,width:ge.width,height:ge.height}}function cn(h){var V=J(h),d=h.offsetWidth,f=h.offsetHeight;return Math.abs(V.width-d)<=1&&(d=V.width),Math.abs(V.height-f)<=1&&(f=V.height),{x:h.offsetLeft,y:h.offsetTop,width:d,height:f}}function ir(h){return"html"===ot(h)?h:h.assignedSlot||h.parentNode||(Bt(h)?h.host:null)||bt(h)}function kn(h){return["html","body","#document"].indexOf(ot(h))>=0?h.ownerDocument.body:dt(h)&&Xt(h)?h:kn(ir(h))}function Rn(h,V){var d;void 0===V&&(V=[]);var f=kn(h),C=f===(null==(d=h.ownerDocument)?void 0:d.body),ae=Re(f),ge=C?[ae].concat(ae.visualViewport||[],Xt(f)?f:[]):f,Ue=V.concat(ge);return C?Ue:Ue.concat(Rn(ir(ge)))}function vn(h){return["table","td","th"].indexOf(ot(h))>=0}function pt(h){return dt(h)&&"fixed"!==Je(h).position?h.offsetParent:null}function vr(h){for(var V=Re(h),d=pt(h);d&&vn(d)&&"static"===Je(d).position;)d=pt(d);return d&&("html"===ot(d)||"body"===ot(d)&&"static"===Je(d).position)?V:d||function ar(h){var V=/firefox/i.test(ke());if(/Trident/i.test(ke())&&dt(h)&&"fixed"===Je(h).position)return null;var C=ir(h);for(Bt(C)&&(C=C.host);dt(C)&&["html","body"].indexOf(ot(C))<0;){var ae=Je(C);if("none"!==ae.transform||"none"!==ae.perspective||"paint"===ae.contain||-1!==["transform","perspective"].indexOf(ae.willChange)||V&&"filter"===ae.willChange||V&&ae.filter&&"none"!==ae.filter)return C;C=C.parentNode}return null}(h)||V}var Yn="top",er="bottom",yr="right",yn="left",Ft="auto",Vt=[Yn,er,yr,yn],Ln="start",Kn="end",qt="viewport",Pn="popper",At=Vt.reduce(function(h,V){return h.concat([V+"-"+Ln,V+"-"+Kn])},[]),wr=[].concat(Vt,[Ft]).reduce(function(h,V){return h.concat([V,V+"-"+Ln,V+"-"+Kn])},[]),B=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function x(h){var V=new Map,d=new Set,f=[];function C(ae){d.add(ae.name),[].concat(ae.requires||[],ae.requiresIfExists||[]).forEach(function(Ue){if(!d.has(Ue)){var nt=V.get(Ue);nt&&C(nt)}}),f.push(ae)}return h.forEach(function(ae){V.set(ae.name,ae)}),h.forEach(function(ae){d.has(ae.name)||C(ae)}),f}function G(h){var V;return function(){return V||(V=new Promise(function(d){Promise.resolve().then(function(){V=void 0,d(h())})})),V}}var Q={placement:"bottom",modifiers:[],strategy:"absolute"};function ve(){for(var h=arguments.length,V=new Array(h),d=0;d=0?"x":"y"}function St(h){var nt,V=h.reference,d=h.element,f=h.placement,C=f?yt(f):null,ae=f?Vn(f):null,ge=V.x+V.width/2-d.width/2,Ue=V.y+V.height/2-d.height/2;switch(C){case Yn:nt={x:ge,y:V.y-d.height};break;case er:nt={x:ge,y:V.y+V.height};break;case yr:nt={x:V.x+V.width,y:Ue};break;case yn:nt={x:V.x-d.width,y:Ue};break;default:nt={x:V.x,y:V.y}}var at=C?Hn(C):null;if(null!=at){var Mt="y"===at?"height":"width";switch(ae){case Ln:nt[at]=nt[at]-(V[Mt]/2-d[Mt]/2);break;case Kn:nt[at]=nt[at]+(V[Mt]/2-d[Mt]/2)}}return nt}var Ji={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gi(h){var V,d=h.popper,f=h.popperRect,C=h.placement,ae=h.variation,ge=h.offsets,Ue=h.position,nt=h.gpuAcceleration,at=h.adaptive,Mt=h.roundOffsets,nr=h.isFixed,Nr=ge.x,On=void 0===Nr?0:Nr,fr=ge.y,dn=void 0===fr?0:fr,rr="function"==typeof Mt?Mt({x:On,y:dn}):{x:On,y:dn};On=rr.x,dn=rr.y;var Ar=ge.hasOwnProperty("x"),ti=ge.hasOwnProperty("y"),gi=yn,Gn=Yn,pr=window;if(at){var Pr=vr(d),oi="clientHeight",ki="clientWidth";Pr===Re(d)&&"static"!==Je(Pr=bt(d)).position&&"absolute"===Ue&&(oi="scrollHeight",ki="scrollWidth"),(C===Yn||(C===yn||C===yr)&&ae===Kn)&&(Gn=er,dn-=(nr&&Pr===pr&&pr.visualViewport?pr.visualViewport.height:Pr[oi])-f.height,dn*=nt?1:-1),C!==yn&&(C!==Yn&&C!==er||ae!==Kn)||(gi=yr,On-=(nr&&Pr===pr&&pr.visualViewport?pr.visualViewport.width:Pr[ki])-f.width,On*=nt?1:-1)}var fs,ls=Object.assign({position:Ue},at&&Ji),Ws=!0===Mt?function xs(h,V){var f=h.y,C=V.devicePixelRatio||1;return{x:Mn(h.x*C)/C||0,y:Mn(f*C)/C||0}}({x:On,y:dn},Re(d)):{x:On,y:dn};return On=Ws.x,dn=Ws.y,Object.assign({},ls,nt?((fs={})[Gn]=ti?"0":"",fs[gi]=Ar?"0":"",fs.transform=(pr.devicePixelRatio||1)<=1?"translate("+On+"px, "+dn+"px)":"translate3d("+On+"px, "+dn+"px, 0)",fs):((V={})[Gn]=ti?dn+"px":"",V[gi]=Ar?On+"px":"",V.transform="",V))}var ee={left:"right",right:"left",bottom:"top",top:"bottom"};function ye(h){return h.replace(/left|right|bottom|top/g,function(V){return ee[V]})}var be={start:"end",end:"start"};function He(h){return h.replace(/start|end/g,function(V){return be[V]})}function vt(h,V){var d=V.getRootNode&&V.getRootNode();if(h.contains(V))return!0;if(d&&Bt(d)){var f=V;do{if(f&&h.isSameNode(f))return!0;f=f.parentNode||f.host}while(f)}return!1}function nn(h){return Object.assign({},h,{left:h.x,top:h.y,right:h.x+h.width,bottom:h.y+h.height})}function Nn(h,V,d){return V===qt?nn(function Le(h,V){var d=Re(h),f=bt(h),C=d.visualViewport,ae=f.clientWidth,ge=f.clientHeight,Ue=0,nt=0;if(C){ae=C.width,ge=C.height;var at=ue();(at||!at&&"fixed"===V)&&(Ue=C.offsetLeft,nt=C.offsetTop)}return{width:ae,height:ge,x:Ue+Gt(h),y:nt}}(h,d)):ze(V)?function Rt(h,V){var d=J(h,!1,"fixed"===V);return d.top=d.top+h.clientTop,d.left=d.left+h.clientLeft,d.bottom=d.top+h.clientHeight,d.right=d.left+h.clientWidth,d.width=h.clientWidth,d.height=h.clientHeight,d.x=d.left,d.y=d.top,d}(V,d):nn(function ht(h){var V,d=bt(h),f=ne(h),C=null==(V=h.ownerDocument)?void 0:V.body,ae=Qt(d.scrollWidth,d.clientWidth,C?C.scrollWidth:0,C?C.clientWidth:0),ge=Qt(d.scrollHeight,d.clientHeight,C?C.scrollHeight:0,C?C.clientHeight:0),Ue=-f.scrollLeft+Gt(h),nt=-f.scrollTop;return"rtl"===Je(C||d).direction&&(Ue+=Qt(d.clientWidth,C?C.clientWidth:0)-ae),{width:ae,height:ge,x:Ue,y:nt}}(bt(h)))}function Qn(h){return Object.assign({},{top:0,right:0,bottom:0,left:0},h)}function jn(h,V){return V.reduce(function(d,f){return d[f]=h,d},{})}function fn(h,V){void 0===V&&(V={});var f=V.placement,C=void 0===f?h.placement:f,ae=V.strategy,ge=void 0===ae?h.strategy:ae,Ue=V.boundary,nt=void 0===Ue?"clippingParents":Ue,at=V.rootBoundary,Mt=void 0===at?qt:at,nr=V.elementContext,Nr=void 0===nr?Pn:nr,On=V.altBoundary,fr=void 0!==On&&On,dn=V.padding,rr=void 0===dn?0:dn,Ar=Qn("number"!=typeof rr?rr:jn(rr,Vt)),gi=h.rects.popper,Gn=h.elements[fr?Nr===Pn?"reference":Pn:Nr],pr=function ln(h,V,d,f){var C="clippingParents"===V?function Nt(h){var V=Rn(ir(h)),f=["absolute","fixed"].indexOf(Je(h).position)>=0&&dt(h)?vr(h):h;return ze(f)?V.filter(function(C){return ze(C)&&vt(C,f)&&"body"!==ot(C)}):[]}(h):[].concat(V),ae=[].concat(C,[d]),Ue=ae.reduce(function(nt,at){var Mt=Nn(h,at,f);return nt.top=Qt(Mt.top,nt.top),nt.right=Zt(Mt.right,nt.right),nt.bottom=Zt(Mt.bottom,nt.bottom),nt.left=Qt(Mt.left,nt.left),nt},Nn(h,ae[0],f));return Ue.width=Ue.right-Ue.left,Ue.height=Ue.bottom-Ue.top,Ue.x=Ue.left,Ue.y=Ue.top,Ue}(ze(Gn)?Gn:Gn.contextElement||bt(h.elements.popper),nt,Mt,ge),Pr=J(h.elements.reference),oi=St({reference:Pr,element:gi,strategy:"absolute",placement:C}),ki=nn(Object.assign({},gi,oi)),vi=Nr===Pn?ki:Pr,yi={top:pr.top-vi.top+Ar.top,bottom:vi.bottom-pr.bottom+Ar.bottom,left:pr.left-vi.left+Ar.left,right:vi.right-pr.right+Ar.right},ls=h.modifiersData.offset;if(Nr===Pn&&ls){var Ws=ls[C];Object.keys(yi).forEach(function(fs){var el=[yr,er].indexOf(fs)>=0?1:-1,xl=[Yn,er].indexOf(fs)>=0?"y":"x";yi[fs]+=Ws[xl]*el})}return yi}function Hr(h,V,d){return Qt(h,Zt(V,d))}function da(h,V,d){return void 0===d&&(d={x:0,y:0}),{top:h.top-V.height-d.y,right:h.right-V.width+d.x,bottom:h.bottom-V.height+d.y,left:h.left-V.width-d.x}}function _o(h){return[Yn,yr,er,yn].some(function(V){return h[V]>=0})}var Yr=re({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function _e(h){var V=h.state,d=h.instance,f=h.options,C=f.scroll,ae=void 0===C||C,ge=f.resize,Ue=void 0===ge||ge,nt=Re(V.elements.popper),at=[].concat(V.scrollParents.reference,V.scrollParents.popper);return ae&&at.forEach(function(Mt){Mt.addEventListener("scroll",d.update,te)}),Ue&&nt.addEventListener("resize",d.update,te),function(){ae&&at.forEach(function(Mt){Mt.removeEventListener("scroll",d.update,te)}),Ue&&nt.removeEventListener("resize",d.update,te)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function vs(h){var V=h.state;V.modifiersData[h.name]=St({reference:V.rects.reference,element:V.rects.popper,strategy:"absolute",placement:V.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function Cn(h){var V=h.state,d=h.options,f=d.gpuAcceleration,C=void 0===f||f,ae=d.adaptive,ge=void 0===ae||ae,Ue=d.roundOffsets,nt=void 0===Ue||Ue,at={placement:yt(V.placement),variation:Vn(V.placement),popper:V.elements.popper,popperRect:V.rects.popper,gpuAcceleration:C,isFixed:"fixed"===V.options.strategy};null!=V.modifiersData.popperOffsets&&(V.styles.popper=Object.assign({},V.styles.popper,Gi(Object.assign({},at,{offsets:V.modifiersData.popperOffsets,position:V.options.strategy,adaptive:ge,roundOffsets:nt})))),null!=V.modifiersData.arrow&&(V.styles.arrow=Object.assign({},V.styles.arrow,Gi(Object.assign({},at,{offsets:V.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:nt})))),V.attributes.popper=Object.assign({},V.attributes.popper,{"data-popper-placement":V.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function Ci(h){var V=h.state;Object.keys(V.elements).forEach(function(d){var f=V.styles[d]||{},C=V.attributes[d]||{},ae=V.elements[d];!dt(ae)||!ot(ae)||(Object.assign(ae.style,f),Object.keys(C).forEach(function(ge){var Ue=C[ge];!1===Ue?ae.removeAttribute(ge):ae.setAttribute(ge,!0===Ue?"":Ue)}))})},effect:function Ii(h){var V=h.state,d={popper:{position:V.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(V.elements.popper.style,d.popper),V.styles=d,V.elements.arrow&&Object.assign(V.elements.arrow.style,d.arrow),function(){Object.keys(V.elements).forEach(function(f){var C=V.elements[f],ae=V.attributes[f]||{},Ue=Object.keys(V.styles.hasOwnProperty(f)?V.styles[f]:d[f]).reduce(function(nt,at){return nt[at]="",nt},{});!dt(C)||!ot(C)||(Object.assign(C.style,Ue),Object.keys(ae).forEach(function(nt){C.removeAttribute(nt)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function Si(h){var V=h.state,f=h.name,C=h.options.offset,ae=void 0===C?[0,0]:C,ge=wr.reduce(function(Mt,nr){return Mt[nr]=function Yi(h,V,d){var f=yt(h),C=[yn,Yn].indexOf(f)>=0?-1:1,ae="function"==typeof d?d(Object.assign({},V,{placement:h})):d,ge=ae[0],Ue=ae[1];return ge=ge||0,Ue=(Ue||0)*C,[yn,yr].indexOf(f)>=0?{x:Ue,y:ge}:{x:ge,y:Ue}}(nr,V.rects,ae),Mt},{}),Ue=ge[V.placement],at=Ue.y;null!=V.modifiersData.popperOffsets&&(V.modifiersData.popperOffsets.x+=Ue.x,V.modifiersData.popperOffsets.y+=at),V.modifiersData[f]=ge}},{name:"flip",enabled:!0,phase:"main",fn:function wi(h){var V=h.state,d=h.options,f=h.name;if(!V.modifiersData[f]._skip){for(var C=d.mainAxis,ae=void 0===C||C,ge=d.altAxis,Ue=void 0===ge||ge,nt=d.fallbackPlacements,at=d.padding,Mt=d.boundary,nr=d.rootBoundary,Nr=d.altBoundary,On=d.flipVariations,fr=void 0===On||On,dn=d.allowedAutoPlacements,rr=V.options.placement,Ar=yt(rr),gi=nt||(Ar!==rr&&fr?function _r(h){if(yt(h)===Ft)return[];var V=ye(h);return[He(h),V,He(V)]}(rr):[ye(rr)]),Gn=[rr].concat(gi).reduce(function(tl,kl){return tl.concat(yt(kl)===Ft?function En(h,V){void 0===V&&(V={});var C=V.boundary,ae=V.rootBoundary,ge=V.padding,Ue=V.flipVariations,nt=V.allowedAutoPlacements,at=void 0===nt?wr:nt,Mt=Vn(V.placement),nr=Mt?Ue?At:At.filter(function(fr){return Vn(fr)===Mt}):Vt,Nr=nr.filter(function(fr){return at.indexOf(fr)>=0});0===Nr.length&&(Nr=nr);var On=Nr.reduce(function(fr,dn){return fr[dn]=fn(h,{placement:dn,boundary:C,rootBoundary:ae,padding:ge})[yt(dn)],fr},{});return Object.keys(On).sort(function(fr,dn){return On[fr]-On[dn]})}(V,{placement:kl,boundary:Mt,rootBoundary:nr,padding:at,flipVariations:fr,allowedAutoPlacements:dn}):kl)},[]),pr=V.rects.reference,Pr=V.rects.popper,oi=new Map,ki=!0,vi=Gn[0],yi=0;yi=0,xl=el?"width":"height",Ts=fn(V,{placement:ls,boundary:Mt,rootBoundary:nr,altBoundary:Nr,padding:at}),Gs=el?fs?yr:yn:fs?er:Yn;pr[xl]>Pr[xl]&&(Gs=ye(Gs));var Bu=ye(Gs),na=[];if(ae&&na.push(Ts[Ws]<=0),Ue&&na.push(Ts[Gs]<=0,Ts[Bu]<=0),na.every(function(tl){return tl})){vi=ls,ki=!1;break}oi.set(ls,na)}if(ki)for(var Vu=function(kl){var ps=Gn.find(function(po){var Is=oi.get(po);if(Is)return Is.slice(0,kl).every(function(Ta){return Ta})});if(ps)return vi=ps,"break"},Hi=fr?3:1;Hi>0&&"break"!==Vu(Hi);Hi--);V.placement!==vi&&(V.modifiersData[f]._skip=!0,V.placement=vi,V.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function Ut(h){var V=h.state,d=h.options,f=h.name,C=d.mainAxis,ae=void 0===C||C,ge=d.altAxis,Ue=void 0!==ge&&ge,Nr=d.tether,On=void 0===Nr||Nr,fr=d.tetherOffset,dn=void 0===fr?0:fr,rr=fn(V,{boundary:d.boundary,rootBoundary:d.rootBoundary,padding:d.padding,altBoundary:d.altBoundary}),Ar=yt(V.placement),ti=Vn(V.placement),gi=!ti,Gn=Hn(Ar),pr=function li(h){return"x"===h?"y":"x"}(Gn),Pr=V.modifiersData.popperOffsets,oi=V.rects.reference,ki=V.rects.popper,vi="function"==typeof dn?dn(Object.assign({},V.rects,{placement:V.placement})):dn,yi="number"==typeof vi?{mainAxis:vi,altAxis:vi}:Object.assign({mainAxis:0,altAxis:0},vi),ls=V.modifiersData.offset?V.modifiersData.offset[V.placement]:null,Ws={x:0,y:0};if(Pr){if(ae){var fs,el="y"===Gn?Yn:yn,xl="y"===Gn?er:yr,Ts="y"===Gn?"height":"width",Gs=Pr[Gn],Bu=Gs+rr[el],na=Gs-rr[xl],hc=On?-ki[Ts]/2:0,Vu=ti===Ln?oi[Ts]:ki[Ts],Hi=ti===Ln?-ki[Ts]:-oi[Ts],Xd=V.elements.arrow,tl=On&&Xd?cn(Xd):{width:0,height:0},kl=V.modifiersData["arrow#persistent"]?V.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ps=kl[el],po=kl[xl],Is=Hr(0,oi[Ts],tl[Ts]),Ta=gi?oi[Ts]/2-hc-Is-ps-yi.mainAxis:Vu-Is-ps-yi.mainAxis,Qd=gi?-oi[Ts]/2+hc+Is+po+yi.mainAxis:Hi+Is+po+yi.mainAxis,Zd=V.elements.arrow&&vr(V.elements.arrow),qd=Zd?"y"===Gn?Zd.clientTop||0:Zd.clientLeft||0:0,Bp=null!=(fs=ls?.[Gn])?fs:0,bm=Gs+Qd-Bp,zu=Hr(On?Zt(Bu,Gs+Ta-Bp-qd):Bu,Gs,On?Qt(na,bm):na);Pr[Gn]=zu,Ws[Gn]=zu-Gs}if(Ue){var Vp,Ys=Pr[pr],Zc="y"===pr?"height":"width",ra=Ys+rr["x"===Gn?Yn:yn],ia=Ys-rr["x"===Gn?er:yr],Ss=-1!==[Yn,yn].indexOf(Ar),Hu=null!=(Vp=ls?.[pr])?Vp:0,Pl=Ss?ra:Ys-oi[Zc]-ki[Zc]-Hu+yi.altAxis,Ks=Ss?Ys+oi[Zc]+ki[Zc]-Hu-yi.altAxis:ia,ju=On&&Ss?function Oi(h,V,d){var f=Hr(h,V,d);return f>d?d:f}(Pl,Ys,Ks):Hr(On?Pl:ra,Ys,On?Ks:ia);Pr[pr]=ju,Ws[pr]=ju-Ys}V.modifiersData[f]=Ws}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function Ri(h){var V,d=h.state,f=h.name,C=h.options,ae=d.elements.arrow,ge=d.modifiersData.popperOffsets,Ue=yt(d.placement),nt=Hn(Ue),Mt=[yn,yr].indexOf(Ue)>=0?"height":"width";if(ae&&ge){var nr=function(V,d){return Qn("number"!=typeof(V="function"==typeof V?V(Object.assign({},d.rects,{placement:d.placement})):V)?V:jn(V,Vt))}(C.padding,d),Nr=cn(ae),On="y"===nt?Yn:yn,fr="y"===nt?er:yr,dn=d.rects.reference[Mt]+d.rects.reference[nt]-ge[nt]-d.rects.popper[Mt],rr=ge[nt]-d.rects.reference[nt],Ar=vr(ae),ti=Ar?"y"===nt?Ar.clientHeight||0:Ar.clientWidth||0:0,Pr=ti/2-Nr[Mt]/2+(dn/2-rr/2),oi=Hr(nr[On],Pr,ti-Nr[Mt]-nr[fr]);d.modifiersData[f]=((V={})[nt]=oi,V.centerOffset=oi-Pr,V)}},effect:function yo(h){var V=h.state,f=h.options.element,C=void 0===f?"[data-popper-arrow]":f;null!=C&&("string"==typeof C&&!(C=V.elements.popper.querySelector(C))||vt(V.elements.popper,C)&&(V.elements.arrow=C))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function pn(h){var V=h.state,d=h.name,f=V.rects.reference,C=V.rects.popper,ae=V.modifiersData.preventOverflow,ge=fn(V,{elementContext:"reference"}),Ue=fn(V,{altBoundary:!0}),nt=da(ge,f),at=da(Ue,C,ae),Mt=_o(nt),nr=_o(at);V.modifiersData[d]={referenceClippingOffsets:nt,popperEscapeOffsets:at,isReferenceHidden:Mt,hasPopperEscaped:nr},V.attributes.popper=Object.assign({},V.attributes.popper,{"data-popper-reference-hidden":Mt,"data-popper-escaped":nr})}}]}),ys=D(9327),eo=D(8617),bo=D(4662);const Ht=["*"],Kr=["*","*"];function Wo(h,V){1&h&&r.eu8(0)}function $n(h,V){if(1&h&&r.DNE(0,Wo,1,0,"ng-container",3),2&h){const d=r.XpG(2),f=r.sdS(2);r.Y8G("ngTemplateOutlet",(null==d.templates?null:d.templates.alertButtonCloseTemplate)||f)}}function ts(h,V){if(1&h&&(r.qex(0),r.DNE(1,$n,1,1,"ng-template",2),r.SdG(2),r.bVm()),2&h){const d=r.XpG();r.R7$(),r.Y8G("ngIf",d.dismissible)}}function Wt(h,V){if(1&h){const d=r.RV6();r.j41(0,"button",4),r.bIt("click",function(){r.eBV(d);const C=r.XpG();return r.Njj(C.visible=!1)}),r.k0s()}}const Xi=()=>({});function rs(h,V){1&h&&r.eu8(0)}function Vi(h,V){if(1&h&&(r.j41(0,"a",3),r.DNE(1,rs,1,0,"ng-container",4),r.k0s()),2&h){let d,f,C,ae,ge,Ue,nt;const at=r.XpG(),Mt=r.sdS(4);r.Y8G("routerLink",at.url)("cHtmlAttr",null!==(d=at.attributes)&&void 0!==d?d:r.lJ4(11,Xi))("target",null==at.attributes?null:at.attributes.target)("queryParams",null!==(f=null==at.linkProps?null:at.linkProps.queryParams)&&void 0!==f?f:null)("fragment",null==at.linkProps?null:at.linkProps.fragment)("queryParamsHandling",null!==(C=null==at.linkProps?null:at.linkProps.queryParamsHandling)&&void 0!==C?C:null)("preserveFragment",null!==(ae=null==at.linkProps?null:at.linkProps.preserveFragment)&&void 0!==ae&&ae)("skipLocationChange",null!==(ge=null==at.linkProps?null:at.linkProps.skipLocationChange)&&void 0!==ge&&ge)("replaceUrl",null!==(Ue=null==at.linkProps?null:at.linkProps.replaceUrl)&&void 0!==Ue&&Ue)("state",null!==(nt=null==at.linkProps?null:at.linkProps.state)&&void 0!==nt?nt:r.lJ4(12,Xi)),r.R7$(),r.Y8G("ngTemplateOutlet",Mt)}}function pa(h,V){1&h&&r.eu8(0)}function Fs(h,V){if(1&h&&(r.j41(0,"span",5),r.DNE(1,pa,1,0,"ng-container",4),r.k0s()),2&h){let d;const f=r.XpG(),C=r.sdS(4);r.Y8G("cHtmlAttr",null!==(d=f.attributes)&&void 0!==d?d:r.lJ4(2,Xi)),r.R7$(),r.Y8G("ngTemplateOutlet",C)}}function ma(h,V){1&h&&r.SdG(0)}function Rr(h,V){if(1&h&&(r.qex(0),r.j41(1,"c-breadcrumb-item",3),r.EFF(2),r.k0s(),r.bVm()),2&h){const d=r.XpG(),f=d.$implicit,C=d.last;r.R7$(),r.Y8G("active",C)("url",null==f?null:f.url)("attributes",null==f?null:f.attributes)("linkProps",null==f?null:f.linkProps),r.R7$(),r.SpI(" ",null==f?null:f.label," ")}}function Rs(h,V){if(1&h&&r.DNE(0,Rr,3,5,"ng-container",2),2&h){const d=V.$implicit,f=V.last;r.Y8G("ngIf",(null==d?null:d.label)&&("/"===(null==d||null==d.url?null:d.url.slice(-1))||f))}}const ci=["content"];function Qi(h,V){1&h&&(r.j41(0,"div",null,1),r.SdG(2),r.k0s())}function to(h,V){if(1&h&&(r.nrm(0,"span"),r.j41(1,"span",3),r.EFF(2),r.k0s()),2&h){const d=r.XpG();r.HbH(d.carouselControlIconClass),r.BMQ("aria-label",d.direction)("aria-hidden",!0),r.R7$(2),r.JRh(d.caption)}}const Yo=h=>({active:h});function hs(h,V){if(1&h){const d=r.RV6();r.qex(0),r.j41(1,"button",2),r.bIt("click",function(){const C=r.eBV(d).index,ae=r.XpG();return r.Njj(ae.onClick(C))}),r.k0s(),r.bVm()}if(2&h){const d=V.index,f=r.XpG();r.R7$(),r.HbH(r.eq3(4,Yo,f.active===d)),r.BMQ("data-coreui-target",d)("aria-current",f.active===d)}}function no(h,V){1&h&&(r.qex(0),r.SdG(1),r.bVm())}function Ko(h,V){if(1&h&&(r.j41(0,"div",2),r.SdG(1),r.k0s()),2&h){const d=r.XpG();r.Y8G("ngClass",d.headerClasses)}}function ro(h,V){1&h&&r.SdG(0,1)}function wo(h,V){1&h&&r.eu8(0)}function Di(h,V){if(1&h&&(r.j41(0,"div",3),r.SdG(1),r.k0s()),2&h){const d=r.XpG();r.Y8G("ngClass",d.containerClass)}}function io(h,V){1&h&&r.SdG(0,1)}const Ai=["modalContentRef"];function Fn(h,V){if(1&h&&r.nrm(0,"img",3),2&h){const d=r.XpG(2);r.Y8G("cHtmlAttr",d.brandFull)("ngClass","sidebar-brand-full")}}function Ls(h,V){if(1&h&&r.nrm(0,"img",3),2&h){const d=r.XpG(2);r.Y8G("cHtmlAttr",d.brandNarrow)("ngClass","sidebar-brand-narrow")}}function hl(h,V){if(1&h&&(r.j41(0,"a",1),r.DNE(1,Fn,1,2,"img",2)(2,Ls,1,2,"img",2),r.k0s()),2&h){const d=r.XpG();r.Y8G("routerLink",d.routerLink),r.R7$(),r.Y8G("ngIf",d.brandFull),r.R7$(),r.Y8G("ngIf",d.brandNarrow)}}function so(h,V){1&h&&r.SdG(0)}function Cs(h,V){if(1&h&&(r.qex(0)(1),r.EFF(2),r.bVm()()),2&h){let d;const f=r.XpG();r.R7$(2),r.JRh(null!==(d=null==f.item?null:f.item.name)&&void 0!==d?d:"")}}const Bs=h=>({$implicit:h}),Vs=()=>({exact:!1});function zi(h,V){1&h&&r.eu8(0)}function oo(h,V){if(1&h&&(r.j41(0,"span",9),r.nI1(1,"cSidebarNavBadge"),r.EFF(2),r.k0s()),2&h){const d=r.XpG(2);r.Y8G("ngClass",r.bMT(1,2,d.item)),r.R7$(2),r.JRh(null==d.item.badge?null:d.item.badge.text)}}function Do(h,V){if(1&h&&(r.j41(0,"a",5),r.nI1(1,"cSidebarNavLink"),r.DNE(2,zi,1,0,"ng-container",6),r.nrm(3,"c-sidebar-nav-link-content",7),r.DNE(4,oo,3,4,"span",8),r.k0s()),2&h){let d;const f=r.XpG(),C=r.sdS(5);r.Y8G("ngClass",r.bMT(1,6,f.item))("cHtmlAttr",null!==(d=f.item.attributes)&&void 0!==d?d:r.lJ4(8,Xi)),r.R7$(2),r.Y8G("ngTemplateOutlet",C)("ngTemplateOutletContext",r.eq3(9,Bs,f.item)),r.R7$(),r.Y8G("item",f.item),r.R7$(),r.Y8G("ngIf",f.item.badge)}}function P(h,V){1&h&&r.eu8(0)}function L(h,V){if(1&h&&(r.j41(0,"span",9),r.nI1(1,"cSidebarNavBadge"),r.EFF(2),r.k0s()),2&h){const d=r.XpG(2);r.Y8G("ngClass",r.bMT(1,2,d.item)),r.R7$(2),r.JRh(null==d.item.badge?null:d.item.badge.text)}}function I(h,V){if(1&h){const d=r.RV6();r.j41(0,"a",10),r.nI1(1,"cSidebarNavLink"),r.bIt("click",function(){r.eBV(d);const C=r.XpG();return r.Njj(C.linkClicked())}),r.DNE(2,P,1,0,"ng-container",6),r.nrm(3,"c-sidebar-nav-link-content",7),r.DNE(4,L,3,4,"span",8),r.k0s()}if(2&h){let d;const f=r.XpG(),C=r.sdS(5);r.Y8G("ngClass",r.bMT(1,7,f.item))("href",f.href,r.B4B)("cHtmlAttr",null!==(d=f.item.attributes)&&void 0!==d?d:r.lJ4(9,Xi)),r.R7$(2),r.Y8G("ngTemplateOutlet",C)("ngTemplateOutletContext",r.eq3(10,Bs,f.item)),r.R7$(),r.Y8G("item",f.item),r.R7$(),r.Y8G("ngIf",f.item.badge)}}function X(h,V){1&h&&r.eu8(0)}function De(h,V){if(1&h&&(r.j41(0,"span",9),r.nI1(1,"cSidebarNavBadge"),r.EFF(2),r.k0s()),2&h){const d=r.XpG(2);r.Y8G("ngClass",r.bMT(1,2,d.item)),r.R7$(2),r.JRh(null==d.item.badge?null:d.item.badge.text)}}function Pt(h,V){if(1&h){const d=r.RV6();r.j41(0,"a",11),r.nI1(1,"cSidebarNavLink"),r.bIt("click",function(){r.eBV(d);const C=r.XpG();return r.Njj(C.linkClicked())}),r.DNE(2,X,1,0,"ng-container",6),r.nrm(3,"c-sidebar-nav-link-content",7),r.DNE(4,De,3,4,"span",8),r.k0s()}if(2&h){let d,f,C,ae,ge,Ue,nt;const at=r.XpG(),Mt=r.sdS(5);r.Y8G("ngClass",r.bMT(1,16,at.item))("cHtmlAttr",null!==(d=at.item.attributes)&&void 0!==d?d:r.lJ4(18,Xi))("target",null==at.item.attributes?null:at.item.attributes.target)("queryParams",null!==(f=null==at.item.linkProps?null:at.item.linkProps.queryParams)&&void 0!==f?f:null)("fragment",null==at.item.linkProps?null:at.item.linkProps.fragment)("queryParamsHandling",null==at.item.linkProps?null:at.item.linkProps.queryParamsHandling)("preserveFragment",null!==(C=null==at.item.linkProps?null:at.item.linkProps.preserveFragment)&&void 0!==C&&C)("skipLocationChange",null!==(ae=null==at.item.linkProps?null:at.item.linkProps.skipLocationChange)&&void 0!==ae&&ae)("replaceUrl",null!==(ge=null==at.item.linkProps?null:at.item.linkProps.replaceUrl)&&void 0!==ge&&ge)("state",null!==(Ue=null==at.item.linkProps?null:at.item.linkProps.state)&&void 0!==Ue?Ue:r.lJ4(19,Xi))("routerLink",at.item.url)("routerLinkActiveOptions",null!==(nt=null==at.item.linkProps?null:at.item.linkProps.routerLinkActiveOptions)&&void 0!==nt?nt:r.lJ4(20,Vs)),r.R7$(2),r.Y8G("ngTemplateOutlet",Mt)("ngTemplateOutletContext",r.eq3(21,Bs,at.item)),r.R7$(),r.Y8G("item",at.item),r.R7$(),r.Y8G("ngIf",at.item.badge)}}function an(h,V){if(1&h&&(r.nrm(0,"i",9),r.nI1(1,"cSidebarNavIcon")),2&h){const d=r.XpG().$implicit;r.Y8G("ngClass",r.bMT(1,1,d))}}function is(h,V){if(1&h&&(r.qSk(),r.nrm(0,"svg",13),r.nI1(1,"cSidebarNavIcon")),2&h){const d=r.XpG().$implicit;r.Y8G("cIcon",null==d.iconComponent?null:d.iconComponent.content)("name",null==d.iconComponent?null:d.iconComponent.name)("customClasses",r.bMT(1,3,d))}}function Mo(h,V){if(1&h&&(r.nrm(0,"span",9),r.nI1(1,"cSidebarNavIcon")),2&h){const d=r.XpG().$implicit;r.Y8G("ngClass",r.bMT(1,1,d))}}function dr(h,V){if(1&h&&r.DNE(0,an,2,3,"i",8)(1,is,2,5,"ng-template",12)(2,Mo,2,3,"span",8),2&h){const d=V.$implicit;r.Y8G("ngIf",null==d?null:d.icon),r.R7$(),r.Y8G("ngIf",null==d?null:d.iconComponent),r.R7$(),r.Y8G("ngIf",!(null!=d&&d.icon||null!=d&&d.iconComponent))}}function zt(h,V){if(1&h&&r.nrm(0,"i",2),2&h){const d=r.XpG();r.Y8G("ngClass",d.getLabelIconClass())}}function ao(h,V){if(1&h&&(r.j41(0,"span",2),r.nI1(1,"cSidebarNavBadge"),r.EFF(2),r.k0s()),2&h){const d=r.XpG();r.Y8G("ngClass",r.bMT(1,2,d.item)),r.R7$(2),r.JRh(d.item.badge.text)}}function Xo(h,V){1&h&&r.eu8(0)}function Na(h,V){if(1&h&&(r.j41(0,"span",5),r.nI1(1,"cSidebarNavBadge"),r.EFF(2),r.k0s()),2&h){const d=r.XpG();r.Y8G("ngClass",r.bMT(1,2,d.item)),r.R7$(2),r.JRh(d.item.badge.text)}}function sr(h,V){if(1&h&&(r.nrm(0,"i",5),r.nI1(1,"cSidebarNavIcon")),2&h){const d=r.XpG().$implicit;r.Y8G("ngClass",r.bMT(1,1,d))}}function Ac(h,V){if(1&h&&(r.qSk(),r.nrm(0,"svg",7),r.nI1(1,"cSidebarNavIcon")),2&h){const d=r.XpG().$implicit;r.Y8G("cIcon",null==d.iconComponent?null:d.iconComponent.content)("customClasses",r.bMT(1,3,d))("name",null==d.iconComponent?null:d.iconComponent.name)}}function Zl(h,V){if(1&h&&(r.nrm(0,"span",5),r.nI1(1,"cSidebarNavIcon")),2&h){const d=r.XpG().$implicit;r.Y8G("ngClass",r.bMT(1,1,d))}}function xc(h,V){if(1&h&&r.DNE(0,sr,2,3,"i",3)(1,Ac,2,5,"ng-template",6)(2,Zl,2,3,"span",3),2&h){const d=V.$implicit;r.Y8G("ngIf",null==d?null:d.icon),r.R7$(),r.Y8G("ngIf",null==d?null:d.iconComponent),r.R7$(),r.Y8G("ngIf",!(null!=d&&d.icon||null!=d&&d.iconComponent))}}const kc=()=>({exact:!0});function Pc(h,V){if(1&h&&(r.nrm(0,"c-sidebar-nav-group",8,0),r.nI1(2,"cSidebarNavItemClass")),2&h){const d=r.XpG().$implicit,f=r.XpG();r.Y8G("dropdownMode",f.dropdownMode)("item",d)("ngClass",r.bMT(2,4,d))("routerLinkActiveOptions",r.lJ4(6,kc))}}function fl(h,V){if(1&h&&(r.nrm(0,"c-sidebar-nav-divider",9),r.nI1(1,"cSidebarNavItemClass")),2&h){let d;const f=r.XpG().$implicit;r.Y8G("cHtmlAttr",null!==(d=f.attributes)&&void 0!==d?d:r.lJ4(5,Xi))("item",f)("ngClass",r.bMT(1,3,f))}}function ql(h,V){if(1&h&&(r.nrm(0,"c-sidebar-nav-title",9),r.nI1(1,"cSidebarNavItemClass")),2&h){let d;const f=r.XpG().$implicit;r.Y8G("cHtmlAttr",null!==(d=f.attributes)&&void 0!==d?d:r.lJ4(5,Xi))("item",f)("ngClass",r.bMT(1,3,f))}}function Jl(h,V){if(1&h&&(r.nrm(0,"c-sidebar-nav-label",10),r.nI1(1,"cSidebarNavItemClass")),2&h){const d=r.XpG().$implicit;r.Y8G("item",d)("ngClass",r.bMT(1,2,d))}}function ga(h,V){1&h&&r.eu8(0)}function Fa(h,V){if(1&h){const d=r.RV6();r.j41(0,"c-sidebar-nav-link",11),r.nI1(1,"cSidebarNavItemClass"),r.bIt("linkClick",function(){r.eBV(d);const C=r.XpG(2);return r.Njj(C.hideMobile())}),r.k0s()}if(2&h){const d=r.XpG().$implicit;r.Y8G("item",d)("ngClass",r.bMT(1,2,d))}}function Eo(h,V){if(1&h&&(r.qex(0)(1,2),r.DNE(2,Pc,3,7,"c-sidebar-nav-group",3)(3,fl,2,6,"c-sidebar-nav-divider",4)(4,ql,2,6,"c-sidebar-nav-title",4)(5,Jl,2,4,"c-sidebar-nav-label",5)(6,ga,1,0,"ng-container",6)(7,Fa,2,4,"c-sidebar-nav-link",7),r.bVm()()),2&h){const d=V.$implicit,f=r.XpG();r.R7$(),r.Y8G("ngSwitch",f.helper.itemType(d)),r.R7$(),r.Y8G("ngSwitchCase","group"),r.R7$(),r.Y8G("ngSwitchCase","divider"),r.R7$(),r.Y8G("ngSwitchCase","title"),r.R7$(),r.Y8G("ngSwitchCase","label"),r.R7$(),r.Y8G("ngSwitchCase","empty")}}const pl=()=>({outline:0});function In(h,V){if(1&h&&r.nrm(0,"button",1),2&h){const d=r.XpG();r.Aen(r.lJ4(3,pl)),r.Y8G("cToastClose",d.toast)}}function Qr(h,V){}const Zr=["tooltipTemplate"],xi=[[["",8,"chart-wrapper"]],"*"],Mi=[".chart-wrapper","*"];function Ra(h,V){1&h&&r.eu8(0)}function La(h,V){if(1&h&&(r.j41(0,"div",8),r.DNE(1,Ra,1,0,"ng-container",7),r.k0s()),2&h){const d=r.XpG(),f=r.sdS(10);r.R7$(),r.Y8G("ngTemplateOutlet",(null==d.templates?null:d.templates.widgetValueTemplate)||f)}}function To(h,V){1&h&&r.eu8(0)}function Nc(h,V){if(1&h&&(r.j41(0,"div"),r.DNE(1,To,1,0,"ng-container",7),r.k0s()),2&h){const d=r.XpG(),f=r.sdS(8);r.R7$(),r.Y8G("ngTemplateOutlet",(null==d.templates?null:d.templates.widgetTitleTemplate)||f)}}function Fc(h,V){1&h&&r.eu8(0)}function va(h,V){1&h&&r.eu8(0)}function ml(h,V){if(1&h&&r.EFF(0),2&h){const d=r.XpG();r.SpI(" ",d.title,"\n")}}function lo(h,V){if(1&h&&r.EFF(0),2&h){const d=r.XpG();r.SpI(" ",d.value,"\n")}}function gl(h,V){1&h&&r.SdG(0)}function Ba(h,V){1&h&&r.SdG(0,1)}function bu(h,V){if(1&h&&(r.j41(0,"div",3),r.EFF(1),r.k0s()),2&h){const d=r.XpG();r.R7$(),r.JRh(d.value)}}function vl(h,V){if(1&h&&(r.j41(0,"div"),r.EFF(1),r.k0s()),2&h){const d=r.XpG();r.R7$(),r.JRh(d.title)}}function Rc(h,V){if(1&h&&(r.j41(0,"small",4),r.EFF(1),r.k0s()),2&h){const d=r.XpG();r.Y8G("ngClass",d.inverse?"text-medium-emphasis-inverse":"text-medium-emphasis"),r.R7$(),r.SpI(" ",d.text," ")}}function yl(h,V){1&h&&r.eu8(0)}function ec(h,V){if(1&h&&(r.j41(0,"div",4),r.DNE(1,yl,1,0,"ng-container",5),r.k0s()),2&h){const d=r.XpG(),f=r.sdS(6);r.Y8G("ngClass",d.iconClasses),r.R7$(),r.Y8G("ngTemplateOutlet",(null==d.templates?null:d.templates.widgetIconTemplate)||f)}}function tc(h,V){if(1&h&&(r.j41(0,"div",4),r.EFF(1),r.k0s()),2&h){const d=r.XpG();r.Y8G("ngClass",d.valueClasses),r.R7$(),r.SpI(" ",d.value," ")}}function zs(h,V){if(1&h&&(r.j41(0,"div",4),r.EFF(1),r.k0s()),2&h){const d=r.XpG();r.Y8G("ngClass",d.titleClasses),r.R7$(),r.SpI(" ",d.title," ")}}function Lc(h,V){1&h&&r.eu8(0)}function Va(h,V){if(1&h&&(r.qex(0),r.DNE(1,Lc,1,0,"ng-container",5),r.bVm()),2&h){const d=r.XpG(),f=r.sdS(8);r.R7$(),r.Y8G("ngTemplateOutlet",(null==d.templates?null:d.templates.widgetProgressTemplate)||f)}}function za(h,V){if(1&h&&r.EFF(0),2&h){const d=r.XpG();r.SpI(" ",d.icon,"\n")}}function _l(h,V){1&h&&r.SdG(0)}function bl(h,V){1&h&&r.nrm(0,"div",6)}function Qo(h,V){if(1&h&&(r.DNE(0,bl,1,0,"div",3),r.j41(1,"c-col")(2,"div",4),r.EFF(3),r.k0s(),r.j41(4,"div",5),r.EFF(5),r.k0s()()),2&h){const f=V.$implicit;r.Y8G("ngIf",V.index%2!=0),r.R7$(3),r.JRh(f.value),r.R7$(2),r.JRh(f.title)}}function ss(h,V){if(1&h&&(r.j41(0,"div",3),r.EFF(1),r.k0s()),2&h){const d=r.XpG();r.Y8G("ngClass",d.titleClasses),r.R7$(),r.JRh(d.title)}}function Zo(h,V){if(1&h&&(r.j41(0,"div",4),r.EFF(1),r.k0s()),2&h){const d=r.XpG();r.R7$(),r.JRh(d.value)}}function Cl(h,V){1&h&&r.eu8(0)}function Io(h,V){1&h&&r.eu8(0)}function jr(h,V){if(1&h&&(r.j41(0,"c-card-footer"),r.DNE(1,Io,1,0,"ng-container",3),r.k0s()),2&h){const d=r.XpG(),f=r.sdS(13);r.R7$(),r.Y8G("ngTemplateOutlet",(null==d.templates?null:d.templates.widgetFooterTemplate)||f)}}function qr(h,V){if(1&h&&(r.j41(0,"span"),r.EFF(1),r.k0s()),2&h){const d=r.XpG();r.R7$(),r.JRh(d.icon)}}function os(h,V){if(1&h&&(r.j41(0,"span"),r.EFF(1),r.k0s()),2&h){const d=r.XpG();r.R7$(),r.JRh(d.footer)}}var So=function(h){return h.xs="xs",h.sm="sm",h.md="md",h.lg="lg",h.xl="xl",h.xxl="xxl",h}(So||{});let Hs=(()=>{class h{constructor(d,f){this.renderer=d,this.el=f}ngOnInit(){const d=this.cHtmlAttr;for(const f in d)"style"===f&&"object"==typeof d[f]?this.setStyle(d[f]):"class"===f?this.addClass(d[f]):this.setAttrib(f,d[f])}setStyle(d){for(const f in d)f&&this.renderer.setStyle(this.el.nativeElement,f,d[f])}addClass(d){(Array.isArray(d)?d:d.split(" ")).filter(C=>C.length>0).forEach(C=>{this.renderer.addClass(this.el.nativeElement,C)})}setAttrib(d,f){null!==f?this.renderer.setAttribute(this.el.nativeElement,d,f):this.renderer.removeAttribute(this.el.nativeElement,d)}static#e=this.\u0275fac=function(f){return new(f||h)(r.rXU(r.sFG),r.rXU(r.aKT))};static#t=this.\u0275dir=r.FsC({type:h,selectors:[["","cHtmlAttr",""]],inputs:{cHtmlAttr:"cHtmlAttr"},exportAs:["cHtmlAttr"],standalone:!0})}return h})(),Ha=(()=>{class h{constructor(d){this.templateRef=d}static#e=this.\u0275fac=function(f){return new(f||h)(r.rXU(r.C4Q))};static#t=this.\u0275dir=r.FsC({type:h,selectors:[["","cTemplateId",""]],inputs:{id:[r.Mj6.None,"cTemplateId","id"]},standalone:!0})}return h})(),wl=(()=>{class h{static forRoot(){return{ngModule:h}}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275mod=r.$C({type:h});static#n=this.\u0275inj=r.G2t({})}return h})();const w=(0,F.lY)([(0,F.i0)("{{ time }} {{ easing }}")]),j=(0,F.lY)([(0,F.iF)({height:"*",minHeight:"*"}),(0,F.i0)("{{ time }} {{ easing }}",(0,F.iF)({height:0,minHeight:0}))]),S=(0,F.lY)([(0,F.i0)("{{ time }} {{ easing }}")]),N=(0,F.lY)([(0,F.i0)("{{ time }} {{ easing }}")]);let he=(()=>{class h{set animate(d){this._animate=d}get animate(){return this._animate}set horizontal(d){this._horizontal=(0,g.he)(d)}get horizontal(){return this._horizontal}set visible(d){this._visible=(0,g.he)(d)}get visible(){return this._visible}set navbar(d){this._navbar=(0,g.he)(d)}get navbar(){return this._navbar}constructor(d,f,C){this.hostElement=d,this.renderer=f,this.animationBuilder=C,this._animate=!0,this._horizontal=!1,this._visible=!1,this._navbar=!1,this.duration="350ms",this.transition="ease",this.collapseChange=new r.bkB,this.collapsing=!1,this.host=this.hostElement.nativeElement,this.renderer.setStyle(this.host,"display","none")}get hostClasses(){return{"navbar-collapse":this.navbar,"collapse-horizontal":this.horizontal}}ngAfterViewInit(){this.visible&&this.toggle()}ngOnDestroy(){this.destroyPlayer()}ngOnChanges(d){d.visible&&(!d.visible.firstChange||!d.visible.currentValue)&&this.toggle(d.visible.currentValue)}ngDoCheck(){this._visible!==this.visible&&this.toggle()}toggle(d=this.visible){this.createPlayer(d),this.player?.play()}destroyPlayer(){this.player?.destroy()}createPlayer(d=this.visible){this.player?.hasStarted()&&this.destroyPlayer(),d&&this.renderer.removeStyle(this.host,"display");const f=this.animate?this.duration:"0ms",C=this.horizontal?S:w,ae=this.horizontal?N:j,ge=this.horizontal?"width":"height",nt=`scroll${ge[0].toUpperCase()+ge.slice(1)}`,at=this.animationBuilder.build((0,F.sM)(d?C:ae,{params:{time:f,easing:this.transition}}));this.player=at.create(this.host),this.renderer.setStyle(this.host,ge,d?0:`${this.host.getBoundingClientRect()[ge]}px`),this.player.onStart(()=>{this.setMaxSize(),this.renderer.removeClass(this.host,"collapse"),this.renderer.addClass(this.host,"collapsing"),this.renderer.removeClass(this.host,"show"),this.collapsing=!0,this.renderer.setStyle(this.host,ge,d?`${this.host[nt]}px`:""),this.collapseChange.emit(d?"opening":"collapsing")}),this.player.onDone(()=>{this.visible=d,this.collapsing=!1,this.renderer.removeClass(this.host,"collapsing"),this.renderer.addClass(this.host,"collapse"),d?(this.renderer.addClass(this.host,"show"),this.renderer.setStyle(this.host,ge,"")):this.renderer.removeClass(this.host,"show"),this.collapseChange.emit(d?"open":"collapsed")})}setMaxSize(){this.horizontal&&(this.scrollWidth=this.host.scrollWidth,this.scrollWidth>0&&this.renderer.setStyle(this.host,"maxWidth",`${this.scrollWidth}px`))}static#e=this.\u0275fac=function(f){return new(f||h)(r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(F.S6))};static#t=this.\u0275dir=r.FsC({type:h,selectors:[["","cCollapse",""]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},inputs:{animate:"animate",horizontal:"horizontal",visible:"visible",navbar:"navbar",duration:"duration",transition:"transition"},outputs:{collapseChange:"collapseChange"},exportAs:["cCollapse"],standalone:!0,features:[r.OA$]})}return h})(),Be=(()=>{class h{static forRoot(){return{ngModule:h,providers:[]}}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275mod=r.$C({type:h});static#n=this.\u0275inj=r.G2t({})}return h})(),mn=(()=>{class h{constructor(){this.active=!1,this.color="primary",this.disabled=!1,this.size="",this.type="button"}get hostClasses(){return{btn:!0,[`btn-${this.color}`]:!!this.color&&!this.variant,[`btn-${this.variant}`]:!!this.variant&&!this.color,[`btn-${this.variant}-${this.color}`]:!!this.variant&&!!this.color,[`btn-${this.size}`]:!!this.size,[`${this.shape}`]:!!this.shape,disabled:this.disabled,active:this.active}}get ariaDisabled(){return this.disabled||null}get isActive(){return this.active||null}get attrDisabled(){return this.disabled?"":null}get tabIndex(){return this.disabled?"-1":null}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275dir=r.FsC({type:h,selectors:[["","cButton",""]],hostVars:7,hostBindings:function(f,C){2&f&&(r.BMQ("type",C.type)("aria-disabled",C.ariaDisabled)("aria-pressed",C.isActive)("disabled",C.attrDisabled)("tabindex",C.tabIndex),r.HbH(C.hostClasses))},inputs:{active:[r.Mj6.HasDecoratorInputTransform,"active","active",r.L39],color:"color",disabled:[r.Mj6.HasDecoratorInputTransform,"disabled","disabled",r.L39],shape:"shape",size:"size",type:"type",variant:"variant"},exportAs:["cButton"],standalone:!0,features:[r.GFd]})}return h})(),Mr=(()=>{class h extends mn{constructor(){super(...arguments),this.white=!1}get hostClasses(){return{btn:!0,"btn-close":!0,"btn-close-white":this.white,[`btn-${this.size}`]:!!this.size,disabled:this.disabled,active:this.active}}static#e=this.\u0275fac=(()=>{let d;return function(C){return(d||(d=r.xGo(h)))(C||h)}})();static#t=this.\u0275dir=r.FsC({type:h,selectors:[["","cButtonClose",""]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},inputs:{white:[r.Mj6.HasDecoratorInputTransform,"white","white",r.L39]},standalone:!0,features:[r.GFd,r.Vt3]})}return h})(),Wn=(()=>{class h{static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275mod=r.$C({type:h});static#n=this.\u0275inj=r.G2t({})}return h})(),Ur=(()=>{class h{constructor(){this.color="primary",this.role="alert",this.visibleChange=new r.bkB,this.templates={},this._dismissible=!1,this._fade=!1,this._visible=!0}get dismissible(){return this._dismissible}set dismissible(d){this._dismissible=(0,g.he)(d)}get fade(){return this._fade}set fade(d){this._fade=(0,g.he)(d)}get visible(){return this._visible}set visible(d){this._visible!==d&&(this._visible=(0,g.he)(d),this.visibleChange.emit(d))}get animationDisabled(){return!this.fade}get animateType(){return this.visible?"show":"hide"}get hostClasses(){return{alert:!0,"alert-dismissible":this.dismissible,fade:this.fade,show:!this.hide,[`alert-${this.color}`]:!!this.color&&"solid"!==this.variant,[`bg-${this.color}`]:!!this.color&&"solid"===this.variant,"text-white":!!this.color&&"solid"===this.variant}}onAnimationStart(d){this.onAnimationEvent(d)}onAnimationDone(d){this.onAnimationEvent(d)}ngAfterContentInit(){this.contentTemplates.forEach(d=>{this.templates[d.id]=d.templateRef})}onAnimationEvent(d){this.hide="start"===d.phaseName&&"show"===d.toState,"done"===d.phaseName&&(this.hide="hide"===d.toState||"void"===d.toState,"show"===d.toState&&(this.hide=!1))}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-alert"]],contentQueries:function(f,C,ae){if(1&f&&r.wni(ae,Ha,5),2&f){let ge;r.mGM(ge=r.lsd())&&(C.contentTemplates=ge)}},hostVars:5,hostBindings:function(f,C){1&f&&r.Kam("@fadeInOut.start",function(ge){return C.onAnimationStart(ge)})("@fadeInOut.done",function(ge){return C.onAnimationDone(ge)}),2&f&&(r.zvX("@.disabled",C.animationDisabled)("@fadeInOut",C.animateType),r.BMQ("role",C.role),r.HbH(C.hostClasses))},inputs:{color:"color",role:"role",variant:"variant",dismissible:"dismissible",fade:"fade",visible:"visible"},outputs:{visibleChange:"visibleChange"},exportAs:["cAlert"],standalone:!0,features:[r.aNF],ngContentSelectors:Ht,decls:3,vars:1,consts:[["defaultAlertButtonCloseTemplate",""],[4,"ngIf"],[3,"ngIf"],[4,"ngTemplateOutlet"],["aria-label","Close","cButtonClose","",3,"click"]],template:function(f,C){1&f&&(r.NAR(),r.DNE(0,ts,3,1,"ng-container",1)(1,Wt,1,0,"ng-template",null,0,r.C5r)),2&f&&r.Y8G("ngIf",C.visible||!C.hide)},dependencies:[$.bT,$.T3,Mr],styles:["[_nghost-%COMP%]{display:block;overflow:hidden}"],data:{animation:[(0,F.hZ)("fadeInOut",[(0,F.wk)("show",(0,F.iF)({opacity:1,height:"*",padding:"*",border:"*",margin:"*"})),(0,F.wk)("hide",(0,F.iF)({opacity:0,height:0,padding:0,border:0,margin:0})),(0,F.wk)("void",(0,F.iF)({opacity:0,height:0,padding:0,border:0,margin:0})),(0,F.kY)("show => hide",[(0,F.i0)(".3s ease-out")]),(0,F.kY)("hide => show",[(0,F.i0)(".3s ease-in")]),(0,F.kY)("show => void",[(0,F.i0)(".3s ease-out")]),(0,F.kY)("void => show",[(0,F.i0)(".3s ease-in")])])]}})}return h})(),Zn=(()=>{class h{static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275mod=r.$C({type:h});static#n=this.\u0275inj=r.G2t({})}return h})(),Lt=(()=>{class h{static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275mod=r.$C({type:h});static#n=this.\u0275inj=r.G2t({})}return h})(),zn=(()=>{class h{constructor(){}get hostClasses(){const d={"position-absolute":!!this.position,"translate-middle":!!this.position,"top-0":this.position?.includes("top"),"top-100":this.position?.includes("bottom"),"start-100":this.position?.includes("end"),"start-0":this.position?.includes("start")};return Object.assign({badge:!0,[`bg-${this.color}`]:!!this.color,[`text-${this.textColor}`]:!!this.textColor,[`badge-${this.size}`]:!!this.size,[`${this.shape}`]:!!this.shape},this.position?d:{})}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-badge"]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},inputs:{color:"color",position:"position",shape:"shape",size:"size",textColor:"textColor"},standalone:!0,features:[r.aNF],ngContentSelectors:Ht,decls:1,vars:0,template:function(f,C){1&f&&(r.NAR(),r.SdG(0))},encapsulation:2})}return h})(),$r=(()=>{class h{static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275mod=r.$C({type:h});static#n=this.\u0275inj=r.G2t({})}return h})(),ur=(()=>{class h{constructor(){this.#e=new se.B,this.backdropClick$=this.#e.asObservable(),this.#t=(0,r.WQX)($.qQ),this.#n=(0,r.WQX)(r._9s),this.#r=this.#n.createRenderer(null,null),this.scrollbarWidth=this.#a,this.#s=!0}#e;#t;#n;#r;#i;get#a(){const d=this.#t.documentElement.clientWidth;return`${Math.abs((window?.innerWidth??d)-d)}px`}setBackdrop(d="modal"){const f=this.#r.createElement("div");return this.#r.addClass(f,`${d}-backdrop`),this.#r.addClass(f,"fade"),this.#r.appendChild(this.#t.body,f),this.#i=this.#r.listen(f,"click",C=>{this.onClickHandler()}),this.scrollbarWidth=this.#a,setTimeout(()=>{this.#r.addClass(f,"show")}),this.activeBackdrop=f,f}clearBackdrop(d){d&&(this.#i(),this.#r.removeClass(d,"show"),setTimeout(()=>{this.#r.removeChild(this.#t.body,d),this.activeBackdrop===d&&this.resetScrollbar(),d=void 0},300))}get#o(){return"rtl"===this.#t.documentElement.dir||"rtl"===this.#t.body.dir}#s;hideScrollbar(){this.#s&&(this.#r.setStyle(this.#t.body,"overflow","hidden"),this.#r.setStyle(this.#t.body,"padding-"+(this.#o?"left":"right"),this.scrollbarWidth),this.#s=!1)}resetScrollbar(){this.#r.removeStyle(this.#t.body,"overflow"),this.#r.removeStyle(this.#t.body,"padding-"+(this.#o?"left":"right")),this.#s=!0}onClickHandler(){this.#e.next(!0)}static#l=this.\u0275fac=function(f){return new(f||h)};static#c=this.\u0275prov=r.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),Jr=(()=>{class h{get ariaCurrent(){return this.active?"page":null}get hostClasses(){return{"breadcrumb-item":!0,active:this.active}}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-breadcrumb-item"]],hostVars:3,hostBindings:function(f,C){2&f&&(r.BMQ("aria-current",C.ariaCurrent),r.HbH(C.hostClasses))},inputs:{active:"active",url:"url",attributes:"attributes",linkProps:"linkProps"},standalone:!0,features:[r.aNF],ngContentSelectors:Ht,decls:5,vars:2,consts:[["activeItem",""],["defaultBreadcrumbItemContentTemplate",""],[3,"routerLink","cHtmlAttr","target","queryParams","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf","ngIfElse"],[3,"routerLink","cHtmlAttr","target","queryParams","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],[4,"ngTemplateOutlet"],[3,"cHtmlAttr"]],template:function(f,C){if(1&f&&(r.NAR(),r.DNE(0,Vi,2,13,"a",2)(1,Fs,2,3,"ng-template",null,0,r.C5r)(3,ma,1,0,"ng-template",null,1,r.C5r)),2&f){const ae=r.sdS(2);r.Y8G("ngIf",!C.active)("ngIfElse",ae)}},dependencies:[tt.iI,tt.Wk,$.bT,$.T3,Hs],styles:["[_nghost-%COMP%]{display:list-item;text-align:-webkit-match-parent;text-align:match-parent}"]})}return h})(),ws=(()=>{class h{get hostClasses(){return{breadcrumb:!0}}constructor(){this.ariaLabel="breadcrumb",this.role="navigation"}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-breadcrumb"]],hostVars:4,hostBindings:function(f,C){2&f&&(r.BMQ("aria-label",C.ariaLabel)("role",C.role),r.HbH(C.hostClasses))},inputs:{ariaLabel:"ariaLabel",role:"role"},standalone:!0,features:[r.aNF],ngContentSelectors:Ht,decls:1,vars:0,template:function(f,C){1&f&&(r.NAR(),r.SdG(0))},encapsulation:2})}return h})(),Er=(()=>{class h{constructor(d,f){this.router=d,this.route=f,this.outlet="primary",this.breadcrumbsBehaviorSubject=new ie.t(new Array),this.breadcrumbs$=this.breadcrumbsBehaviorSubject.asObservable(),this.router.events.pipe(Ye(),(0,ut.p)(C=>C instanceof tt.wF)).subscribe(C=>{const ae=[];let ge=this.route.root,Ue="";do{const nt=ge.children;ge=null,nt.forEach(at=>{if(at.outlet===this.outlet){const Mt=at.snapshot;Ue+="/"+Mt.url.map(nr=>nr.path).join("/"),ae.push({label:at.snapshot.data.title||"",url:Ue,queryParams:Mt.queryParams}),ge=at}})}while(ge);return this.breadcrumbsBehaviorSubject.next(Object.assign([],ae)),ae})}static#e=this.\u0275fac=function(f){return new(f||h)(r.KVO(tt.Ix),r.KVO(tt.nX))};static#t=this.\u0275prov=r.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),Ei=(()=>{class h{constructor(d){this.service=d}ngOnInit(){this.breadcrumbs=this.service.breadcrumbs$}ngOnChanges(d){d.items&&this.setup()}setup(){this.items&&this.items.length>0&&(this.breadcrumbs=new A.c(d=>{this.items&&d.next(this.items)}))}ngOnDestroy(){this.breadcrumbs=void 0}static#e=this.\u0275fac=function(f){return new(f||h)(r.rXU(Er))};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-breadcrumb-router"],["","cBreadcrumbRouter",""]],inputs:{items:"items"},standalone:!0,features:[r.OA$,r.aNF],decls:3,vars:3,consts:[[1,"m-0"],["ngFor","",3,"ngForOf"],[4,"ngIf"],[3,"active","url","attributes","linkProps"]],template:function(f,C){1&f&&(r.j41(0,"c-breadcrumb",0),r.DNE(1,Rs,1,1,"ng-template",1),r.nI1(2,"async"),r.k0s()),2&f&&(r.R7$(),r.Y8G("ngForOf",r.bMT(2,1,C.breadcrumbs)))},dependencies:[ws,Jr,$.Sq,$.bT,$.Jj]})}return h})(),Ds=(()=>{class h{static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275mod=r.$C({type:h});static#n=this.\u0275inj=r.G2t({providers:[Er],imports:[Jr,Ei]})}return h})(),rn=(()=>{class h{get hostClasses(){return{"btn-group":!this.vertical,"btn-group-vertical":this.vertical,[`btn-group-${this.size}`]:!!this.size}}constructor(){this.role="group"}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-button-group"]],hostVars:3,hostBindings:function(f,C){2&f&&(r.BMQ("role",C.role),r.HbH(C.hostClasses))},inputs:{size:"size",vertical:"vertical",role:"role"},standalone:!0,features:[r.aNF],ngContentSelectors:Ht,decls:1,vars:0,template:function(f,C){1&f&&(r.NAR(),r.SdG(0))},encapsulation:2})}return h})(),Cu=(()=>{class h{static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275mod=r.$C({type:h});static#n=this.\u0275inj=r.G2t({})}return h})(),tr=(()=>{class h{static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275mod=r.$C({type:h});static#n=this.\u0275inj=r.G2t({})}return h})(),Ao=(()=>{class h{get hostClasses(){return{card:!0,[`bg-${this.color}`]:!!this.color,[`text-${this.textColor}`]:!!this.textColor}}constructor(){}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-card"],["","c-card",""]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},inputs:{color:"color",textColor:"textColor"},standalone:!0,features:[r.aNF],ngContentSelectors:Ht,decls:1,vars:0,template:function(f,C){1&f&&(r.NAR(),r.SdG(0))},encapsulation:2})}return h})(),Ms=(()=>{class h{get hostClasses(){return{"card-body":!0}}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-card-body"],["","c-card-body",""]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},standalone:!0,features:[r.aNF],ngContentSelectors:Ht,decls:1,vars:0,template:function(f,C){1&f&&(r.NAR(),r.SdG(0))},encapsulation:2})}return h})(),js=(()=>{class h{get hostClasses(){return{"card-footer":!0}}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-card-footer"],["","c-card-footer",""]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},standalone:!0,features:[r.aNF],ngContentSelectors:Ht,decls:1,vars:0,template:function(f,C){1&f&&(r.NAR(),r.SdG(0))},encapsulation:2})}return h})(),El=(()=>{class h{get hostClasses(){return{"card-group":!0}}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-card-group"],["","c-card-group",""]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},standalone:!0,features:[r.aNF],ngContentSelectors:Ht,decls:1,vars:0,template:function(f,C){1&f&&(r.NAR(),r.SdG(0))},encapsulation:2})}return h})(),Tl=(()=>{class h{get hostClasses(){return{"card-header":!0}}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-card-header"],["","c-card-header",""]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},standalone:!0,features:[r.aNF],ngContentSelectors:Ht,decls:1,vars:0,template:function(f,C){1&f&&(r.NAR(),r.SdG(0))},encapsulation:2})}return h})(),$a=(()=>{class h{static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275mod=r.$C({type:h});static#n=this.\u0275inj=r.G2t({})}return h})(),uo=(()=>{class h{constructor(){this.intersecting=new ie.t(!1),this.intersecting$=this.intersecting.asObservable(),this.defaultObserverOptions={root:null,rootMargin:"0px",threshold:.2}}createIntersectionObserver(d,f=this.defaultObserverOptions){const C={...this.defaultObserverOptions,...f};this.hostElement=d,this.intersectionObserver=new IntersectionObserver((ge,Ue)=>{ge.forEach(nt=>{this.intersecting.next(nt.isIntersecting)})},C),this.intersectionObserver.observe(d.nativeElement)}ngOnDestroy(){this.intersectionObserver?.unobserve(this.hostElement?.nativeElement)}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275prov=r.jDH({token:h,factory:h.\u0275fac})}return h})(),Tr=(()=>{class h{constructor(d){this.renderer=d,this.listeners=new Map}setListeners({hostElement:d,trigger:f,callbackOn:C,callbackOff:ae,callbackToggle:ge}){const Ue=d.nativeElement,nt=Array.isArray(f)?f:f?.split(" ")??[];nt?.includes("click")&&"function"==typeof ge&&this.listeners.set("click",this.renderer.listen(Ue,"click",ge)),nt?.includes("focus")&&"function"==typeof C&&this.listeners.set("focus",this.renderer.listen(Ue,"focus",C)),(nt?.includes("click")||nt?.includes("focus"))&&"function"==typeof ae&&this.listeners.set("blur",this.renderer.listen(Ue,"blur",ae)),nt?.includes("hover")&&("function"==typeof C&&this.listeners.set("mouseenter",this.renderer.listen(Ue,"mouseenter",C)),"function"==typeof ae&&this.listeners.set("mouseleave",this.renderer.listen(Ue,"mouseleave",ae)))}clearListeners(){this.listeners.forEach((d,f)=>{d()}),this.listeners.forEach((d,f)=>{this.listeners.set(f,null)}),this.listeners.clear()}static#e=this.\u0275fac=function(f){return new(f||h)(r.KVO(r.sFG))};static#t=this.\u0275prov=r.jDH({token:h,factory:h.\u0275fac})}return h})(),Po=(()=>{class h{constructor(){this.carouselIndex=new ie.t({}),this.carouselIndex$=this.carouselIndex.asObservable()}setIndex(d){this.carouselIndex.next(d)}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275prov=r.jDH({token:h,factory:h.\u0275fac})}return h})(),si=(()=>{class h{constructor(d){this.carouselService=d,this._state={activeItemIndex:-1,animate:!0,items:[],direction:"next",transition:"slide"}}get state(){return this._state}set state(d){const f={...this._state},C={...this._state,...d};if(this._state=C,f.activeItemIndex!==C.activeItemIndex){const ae=this.state.activeItemIndex||0;this.carouselService.setIndex({active:C.activeItemIndex,interval:this.state.items&&this.state.items[ae]?.interval||-1,lastItemIndex:(C.items?.length??0)-1})}}setItems(d){if(d.length){const f=d.toArray();f.forEach((C,ae)=>{C.index=ae}),this.state={items:f}}else this.reset()}setNextIndex(d){this.carouselService.setIndex(d)}direction(d="next"){this.state={direction:d};const{activeItemIndex:f=-1,items:C}=this.state,ae=C?.length??0;return ae>0?"next"===d?f===ae-1?0:f+1:0===f?ae-1:f-1:0}reset(){this.state={activeItemIndex:-1,animate:!0,items:[],direction:"next",transition:"slide"}}static#e=this.\u0275fac=function(f){return new(f||h)(r.KVO(Po))};static#t=this.\u0275prov=r.jDH({token:h,factory:h.\u0275fac})}return h})(),Ti=(()=>{class h{constructor(){this.activeIndex=0,this.animate=!0,this.dark=!1,this.direction="next",this.interval=3e3}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275prov=r.jDH({token:h,factory:h.\u0275fac})}return h})(),Wa=(()=>{class h{get hostClasses(){return{carousel:!0,slide:!0,"carousel-dark":!!this.dark,"carousel-fade":"crossfade"===this.transition}}constructor(d,f,C,ae,ge,Ue){this.config=d,this.hostElement=f,this.carouselService=C,this.carouselState=ae,this.intersectionService=ge,this.listenersService=Ue,this.activeIndex=0,this.animate=!0,this.direction="next",this.interval=0,this.pause="hover",this.touch=!0,this.transition="slide",this.wrap=!0,this.itemChange=new r.bkB,this.activeItemInterval=0,this._visible=!0,Object.assign(this,d)}ngOnInit(){this.carouselStateSubscribe()}ngOnDestroy(){this.clearListeners(),this.carouselStateSubscribe(!1),this.intersectionServiceSubscribe(!1),this.swipeSubscribe(!1)}ngAfterContentInit(){this.intersectionService.createIntersectionObserver(this.hostElement),this.intersectionServiceSubscribe(),this.carouselState.state={activeItemIndex:this.activeIndex,animate:this.animate},this.setListeners(),this.swipeSubscribe()}setListeners(){this.listenersService.setListeners({hostElement:this.hostElement,trigger:this.pause||[],callbackOff:()=>{this.setTimer()},callbackOn:()=>{this.resetTimer()}})}clearListeners(){this.listenersService.clearListeners()}set visible(d){this._visible=d}get visible(){return this._visible}setTimer(){const d=this.activeItemInterval||0;this.resetTimer(),d>0&&(this.timerId=setTimeout(()=>{const f=this.carouselState.direction(this.direction);this.carouselState.state={activeItemIndex:f}},d))}resetTimer(){clearTimeout(this.timerId)}carouselStateSubscribe(d=!0){d?this.carouselIndexSubscription=this.carouselService.carouselIndex$.subscribe(f=>{"active"in f&&this.itemChange.emit(f.active),this.activeItemInterval="number"==typeof f.interval&&f.interval>-1?f.interval:this.interval,!this.wrap&&(f.active===f.lastItemIndex&&"next"===this.direction||0===f.active&&"prev"===this.direction)?this.resetTimer():this.setTimer()}):this.carouselIndexSubscription?.unsubscribe()}intersectionServiceSubscribe(d=!0){d?this.intersectingSubscription=this.intersectionService.intersecting$.subscribe(f=>{this.visible=f,f?this.setTimer():this.resetTimer()}):this.intersectingSubscription?.unsubscribe()}swipeSubscribe(d=!0){if(this.touch&&d){const f=this.hostElement.nativeElement,C=(0,H.R)(f,"touchstart"),ae=(0,H.R)(f,"touchend"),ge=(0,H.R)(f,"touchmove");this.swipeSubscription=C.pipe(function Ee(...h){return function de(...h){return(0,oe.N)((V,d)=>{(0,Z.y)(V,...h).subscribe(d)})}(...h)}(ae.pipe(function mt(...h){const V=(0,We.ms)(h);return(0,oe.N)((d,f)=>{const C=h.length,ae=new Array(C);let ge=h.map(()=>!1),Ue=!1;for(let nt=0;nt{ae[nt]=at,!Ue&&!ge[nt]&&(ge[nt]=!0,(Ue=ge.every(we.D))&&(ge=null))},$e.l));d.subscribe((0,Te._)(f,nt=>{if(Ue){const at=[nt,...ae];f.next(V?V(...at):at)}}))})}(ge)))).subscribe(([Ue,[nt,at]])=>{Ue.stopPropagation(),at.stopPropagation();const Mt=Ue.touches[0].clientX-at.touches[0].clientX;if(Math.abs(Mt)>.3*f.clientWidth&&Ue.timeStamp<=at.timeStamp){const nr=this.carouselState.direction(Mt>0?"next":"prev");this.carouselState.state={activeItemIndex:nr}}})}else this.swipeSubscription?.unsubscribe()}static#e=this.\u0275fac=function(f){return new(f||h)(r.rXU(Ti),r.rXU(r.aKT),r.rXU(Po),r.rXU(si),r.rXU(uo),r.rXU(Tr))};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-carousel"]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},inputs:{activeIndex:"activeIndex",animate:"animate",dark:"dark",direction:"direction",interval:"interval",pause:"pause",touch:"touch",transition:"transition",wrap:"wrap"},outputs:{itemChange:"itemChange"},standalone:!0,features:[r.Jv_([Po,si,Ti,uo,Tr]),r.aNF],ngContentSelectors:Ht,decls:1,vars:0,template:function(f,C){1&f&&(r.NAR(),r.SdG(0))},styles:["[_nghost-%COMP%]{display:block}"]})}return h})(),Il=(()=>{class h{constructor(d,f){this.changeDetectorRef=d,this.carouselState=f,this.direction="next",this.hasContent=!0}set caption(d){this._caption=d}get caption(){return this._caption?this._caption:"prev"===this.direction?"Previous":"Next"}get hostRole(){return"button"}get hostClasses(){return`carousel-control-${this.direction}`}get carouselControlIconClass(){return`carousel-control-${this.direction}-icon`}onKeyUp(d){"Enter"===d.key&&this.play(),"ArrowLeft"===d.key&&this.play("prev"),"ArrowRight"===d.key&&this.play("next")}onClick(d){this.play()}ngAfterViewInit(){this.hasContent=this.content?.nativeElement.childNodes.length??!1,this.changeDetectorRef.detectChanges()}play(d=this.direction){const f=this.carouselState.direction(d);this.carouselState.state={activeItemIndex:f}}static#e=this.\u0275fac=function(f){return new(f||h)(r.rXU(r.gRc),r.rXU(si))};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-carousel-control"]],viewQuery:function(f,C){if(1&f&&r.GBs(ci,5),2&f){let ae;r.mGM(ae=r.lsd())&&(C.content=ae.first)}},hostVars:3,hostBindings:function(f,C){1&f&&r.bIt("keyup",function(ge){return C.onKeyUp(ge)})("click",function(ge){return C.onClick(ge)}),2&f&&(r.BMQ("role",C.hostRole),r.HbH(C.hostClasses))},inputs:{caption:"caption",direction:"direction"},standalone:!0,features:[r.aNF],ngContentSelectors:Ht,decls:3,vars:2,consts:[["defaultContent",""],["content",""],[4,"ngIf","ngIfElse"],[1,"visually-hidden"]],template:function(f,C){if(1&f&&(r.NAR(),r.DNE(0,Qi,3,0,"div",2)(1,to,3,5,"ng-template",null,0,r.C5r)),2&f){const ae=r.sdS(2);r.Y8G("ngIf",C.hasContent)("ngIfElse",ae)}},dependencies:[$.bT],encapsulation:2})}return h})(),Sn=(()=>{class h{constructor(d,f){this.carouselService=d,this.carouselState=f,this.items=[],this.active=0}ngOnInit(){this.carouselStateSubscribe()}ngOnDestroy(){this.carouselStateSubscribe(!1)}onClick(d){d!==this.active&&(this.carouselState.state={direction:d{this.items=this.carouselState?.state?.items?.map(C=>C.index)??[],"active"in f&&(this.active=f.active??0)}):this.carouselIndexSubscription?.unsubscribe()}static#e=this.\u0275fac=function(f){return new(f||h)(r.rXU(Po),r.rXU(si))};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-carousel-indicators"]],standalone:!0,features:[r.aNF],decls:2,vars:1,consts:[[1,"carousel-indicators"],[4,"ngFor","ngForOf"],["type","button",3,"click"]],template:function(f,C){1&f&&(r.j41(0,"div",0),r.DNE(1,hs,2,6,"ng-container",1),r.k0s()),2&f&&(r.R7$(),r.Y8G("ngForOf",C.items))},dependencies:[$.Sq],encapsulation:2})}return h})();function Sl(h,V){return!0===V.left}function Wr(h,V){return!1===V.left}const Us=(0,F.hZ)("slideAnimation",[(0,F.wk)("*",(0,F.iF)({transform:"translateX(0)",display:"block",opacity:1})),(0,F.kY)(Sl,(0,F.Os)([(0,F.P)(":leave",[(0,F.i0)("0.6s ease-in-out",(0,F.iF)({transform:"translateX(-100%)"}))],{optional:!0}),(0,F.P)(":enter",[(0,F.iF)({transform:"translateX(100%)"}),(0,F.i0)("0.6s ease-in-out",(0,F.iF)("*"))],{optional:!0})])),(0,F.kY)(Wr,(0,F.Os)([(0,F.P)(":enter",[(0,F.iF)({transform:"translateX(-100%)"}),(0,F.i0)("0.6s ease-in-out",(0,F.iF)("*"))],{optional:!0}),(0,F.P)(":leave",[(0,F.i0)("0.6s ease-in-out",(0,F.iF)({transform:"translateX(100%)"}))],{optional:!0})]))]),Lr=(0,F.hZ)("fadeAnimation",[(0,F.wk)("*",(0,F.iF)({zIndex:1,opacity:1})),(0,F.kY)(Sl,(0,F.Os)([(0,F.P)(":leave",[(0,F.i0)("0.6s ease-in-out",(0,F.iF)({zIndex:0,opacity:0}))],{optional:!0}),(0,F.P)(":enter",[(0,F.iF)({zIndex:1,opacity:1}),(0,F.i0)("0.6s ease-in-out",(0,F.iF)("*"))],{optional:!0})])),(0,F.kY)(Wr,(0,F.Os)([(0,F.P)(":enter",[(0,F.iF)({zIndex:1,opacity:1}),(0,F.i0)("0.6s ease-in-out",(0,F.iF)("*"))],{optional:!0}),(0,F.P)(":leave",[(0,F.i0)("0.6s ease-in-out",(0,F.iF)({zIndex:0,opacity:0}))],{optional:!0})]))]);let Ir=(()=>{class h{set active(d){this._active=(0,g.he)(d),this.changeDetectorRef.markForCheck()}get active(){return this._active}get hostClasses(){return{"carousel-item":!0,active:this.active}}constructor(d,f){this.carouselService=d,this.changeDetectorRef=f,this._active=!1,this.interval=-1}ngOnDestroy(){this.carouselStateSubscribe(!1)}ngAfterViewInit(){setTimeout(()=>{this.carouselStateSubscribe()})}carouselStateSubscribe(d=!0){d?this.carouselIndexSubscription=this.carouselService.carouselIndex$.subscribe(f=>{"active"in f&&(this.active=f.active===this.index)}):this.carouselIndexSubscription?.unsubscribe()}static#e=this.\u0275fac=function(f){return new(f||h)(r.rXU(Po),r.rXU(r.gRc))};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-carousel-item"]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},inputs:{active:"active",interval:"interval"},standalone:!0,features:[r.aNF],ngContentSelectors:Ht,decls:1,vars:1,consts:[[4,"ngIf"]],template:function(f,C){1&f&&(r.NAR(),r.DNE(0,no,2,0,"ng-container",0)),2&f&&r.Y8G("ngIf",C.active)},dependencies:[$.bT],styles:["[_nghost-%COMP%]{display:block}"]})}return h})(),$s=(()=>{class h{constructor(d){this.carouselState=d,this.carouselInnerClass=!0,this.slide={left:!0},this.transition="slide"}ngAfterContentInit(){this.setItems()}ngAfterContentChecked(){this.setItems();const d=this.carouselState?.state,f=d?.activeItemIndex,C=d?.direction;this.activeIndex!==f&&(this.animate=d?.animate,this.slide={left:"next"===C},this.activeIndex=d?.activeItemIndex,this.transition=d?.transition??"slide")}setItems(){this.prevContentItems!==this.contentItems&&(this.prevContentItems=this.contentItems,this.carouselState.setItems(this.contentItems))}static#e=this.\u0275fac=function(f){return new(f||h)(r.rXU(si))};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-carousel-inner"]],contentQueries:function(f,C,ae){if(1&f&&r.wni(ae,Ir,4),2&f){let ge;r.mGM(ge=r.lsd())&&(C.contentItems=ge)}},hostVars:2,hostBindings:function(f,C){2&f&&r.AVh("carousel-inner",C.carouselInnerClass)},standalone:!0,features:[r.aNF],ngContentSelectors:Ht,decls:2,vars:2,template:function(f,C){1&f&&(r.NAR(),r.j41(0,"div"),r.SdG(1),r.k0s()),2&f&&r.Y8G("@slideAnimation",C.slide)("@.disabled",!C.animate)},styles:["[_nghost-%COMP%]{display:block}"],data:{animation:[Us,Lr]}})}return h})(),nc=(()=>{class h{static forRoot(){return{ngModule:h,providers:[]}}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275mod=r.$C({type:h});static#n=this.\u0275inj=r.G2t({providers:[Po,si,Ti]})}return h})(),Vc=(()=>{class h{get hostClasses(){return{"dropdown-header":!0}}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275dir=r.FsC({type:h,selectors:[["","cDropdownHeader",""]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},standalone:!0})}return h})(),ba=(()=>{class h{constructor(){this.dropdownState=new ie.t({}),this.dropdownState$=this.dropdownState.asObservable()}toggle(d){this.dropdownState.next(d)}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275prov=r.jDH({token:h,factory:h.\u0275fac})}return h})(),zc=(()=>{class h{constructor(d,f){this.elementRef=d,this.dropdownService=f,this.visible=!1,this.dark=!1}get hostClasses(){return{"dropdown-menu":!0,"dropdown-menu-dark":this.dark,[`dropdown-menu-${this.alignment}`]:!!this.alignment,show:this.visible}}get hostStyles(){return{visibility:this.visible?null:"",display:this.visible?null:""}}ngOnInit(){this.dropdownStateSubscribe()}ngOnDestroy(){this.dropdownStateSubscribe(!1)}dropdownStateSubscribe(d=!0){d?this.dropdownStateSubscription=this.dropdownService.dropdownState$.subscribe(f=>{"visible"in f&&(this.visible="toggle"===f.visible?!this.visible:f.visible)}):this.dropdownStateSubscription?.unsubscribe()}static#e=this.\u0275fac=function(f){return new(f||h)(r.rXU(r.aKT),r.rXU(ba))};static#t=this.\u0275dir=r.FsC({type:h,selectors:[["","cDropdownMenu",""]],hostVars:4,hostBindings:function(f,C){2&f&&(r.Aen(C.hostStyles),r.HbH(C.hostClasses))},inputs:{alignment:"alignment",visible:"visible",dark:[r.Mj6.HasDecoratorInputTransform,"dark","dark",r.L39]},exportAs:["cDropdownMenu"],standalone:!0,features:[r.GFd]})}return h})();class wu{}let y=(()=>{class h{constructor(d,f,C){this.elementRef=d,this.dropdownService=f,this.dropdown=C,this.disabled=!1,this.caret=!0,this._split=!1}set split(d){this._split=(0,g.he)(d)}get split(){return this._split}get hostClasses(){return{"dropdown-toggle":this.caret,"dropdown-toggle-split":this.split,disabled:this.disabled}}onClick(d){d.preventDefault(),!this.disabled&&this.dropdownService.toggle({visible:"toggle",dropdown:this.dropdown})}ngAfterViewInit(){this.dropdownComponent&&(this.dropdown=this.dropdownComponent,this.dropdownService=this.dropdownComponent?.dropdownService)}static#e=this.\u0275fac=function(f){return new(f||h)(r.rXU(r.aKT),r.rXU(ba),r.rXU(wu,8))};static#t=this.\u0275dir=r.FsC({type:h,selectors:[["","cDropdownToggle",""]],hostVars:2,hostBindings:function(f,C){1&f&&r.bIt("click",function(ge){return C.onClick(ge)}),2&f&&r.HbH(C.hostClasses)},inputs:{dropdownComponent:"dropdownComponent",disabled:"disabled",caret:"caret",split:"split"},exportAs:["cDropdownToggle"],standalone:!0,features:[r.Jv_([{provide:wu,useExisting:(0,r.Rfq)(()=>E)}])]})}return h})(),E=(()=>{class h{constructor(d,f,C,ae,ge,Ue){this.document=d,this.elementRef=f,this.renderer=C,this.ngZone=ae,this.changeDetectorRef=ge,this.dropdownService=Ue,this.autoClose=!0,this._dark=!1,this.placement="bottom-start",this._popper=!0,this._popperOptions={placement:this.placement,modifiers:[],strategy:"absolute"},this.variant="dropdown",this._visible=!1,this.visibleChange=new r.bkB,this.dropdownContext={$implicit:this.visible},this.activeTrap=!1,this.listeners=[],this.dropdownStateSubscribe()}set dark(d){this._dark=(0,g.he)(d)}get dark(){return this._dark}set popper(d){this._popper=(0,g.he)(d)}get popper(){return this._popper}set popperOptions(d){this._popperOptions={...this._popperOptions,...d}}get popperOptions(){let d=this.placement;switch(this.direction){case"dropup":d="top-start";break;case"dropend":d="right-start";break;case"dropstart":d="left-start";break;case"center":d="bottom";break;case"dropup-center":d="top"}return"end"===this.alignment&&(d="bottom-end"),this._popperOptions={...this._popperOptions,placement:d},this._popperOptions}set visible(d){const f=(0,g.he)(d);f!==this._visible&&(this.activeTrap=f,this._visible=f,f?this.createPopperInstance():this.destroyPopperInstance(),this.visibleChange.emit(f))}get visible(){return this._visible}get hostClasses(){return{dropdown:("dropdown"===this.variant||"nav-item"===this.variant)&&!this.direction,[`${this.direction}`]:!!this.direction,[`${this.variant}`]:!!this.variant,dropup:"dropup"===this.direction||"dropup-center"===this.direction,show:this.visible}}get hostStyle(){return"input-group"===this.variant?{display:"contents"}:{}}onHostClick(d){this.clickedTarget=d.target}dropdownStateSubscribe(d=!0){d?this.dropdownStateSubscription=this.dropdownService.dropdownState$.pipe((0,ut.p)(f=>this===f.dropdown)).subscribe(f=>{"visible"in f&&("toggle"===f?.visible?this.toggleDropdown():this.visible=f.visible)}):this.dropdownStateSubscription?.unsubscribe()}toggleDropdown(){this.visible=!this.visible}onClick(d){this._toggler?.elementRef.nativeElement.contains(d.target?.closest("[cDropdownToggle]"))||this.toggleDropdown()}ngAfterContentInit(){"nav-item"===this.variant&&this.renderer.addClass(this._toggler.elementRef.nativeElement,"nav-link")}ngOnInit(){this.setVisibleState(this.visible)}ngOnChanges(d){d.visible&&!d.visible.firstChange&&this.setVisibleState(d.visible.currentValue)}ngOnDestroy(){this.clearListeners(),this.dropdownStateSubscribe(!1),this.destroyPopperInstance()}setVisibleState(d){this.dropdownService.toggle({visible:d,dropdown:this})}createPopperInstance(){this._toggler&&this._menu&&this.ngZone.runOutsideAngular(()=>{this._menu.elementRef.nativeElement.style.visibility="hidden",this._menu.elementRef.nativeElement.style.display="block",this.popper&&(this.popperInstance=Yr(this._toggler.elementRef.nativeElement,this._menu.elementRef.nativeElement,{...this.popperOptions})),this.ngZone.run(()=>{this.setListeners(),this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()})})}destroyPopperInstance(){this.clearListeners(),this.popperInstance?.destroy(),this.popperInstance=void 0,this.changeDetectorRef.markForCheck()}setListeners(){this.listeners.push(this.renderer.listen(this.document,"click",d=>{const f=d.target;if(this._menuElementRef?.nativeElement.contains(d.target)&&(this.clickedTarget=f),!this._toggler?.elementRef.nativeElement.contains(d.target)){if(!0===this.autoClose)return void this.setVisibleState(!1);if(this.clickedTarget===f&&"inside"===this.autoClose)return void this.setVisibleState(!1);if(this.clickedTarget!==f&&"outside"===this.autoClose)return void this.setVisibleState(!1)}})),this.listeners.push(this.renderer.listen(this.elementRef.nativeElement,"keyup",d=>{if("Escape"===d.key&&!1!==this.autoClose)return d.stopPropagation(),void this.setVisibleState(!1)})),this.listeners.push(this.renderer.listen(this.document,"keyup",d=>{"Tab"!==d.key||!1===this.autoClose||this.elementRef.nativeElement.contains(d.target)||this.setVisibleState(!1)}))}clearListeners(){this.listeners.forEach(d=>{d()}),this.listeners.fill(void 0),this.listeners=[]}static#e=this.\u0275fac=function(f){return new(f||h)(r.rXU($.qQ),r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(r.SKi),r.rXU(r.gRc),r.rXU(ba))};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-dropdown"]],contentQueries:function(f,C,ae){if(1&f&&(r.wni(ae,y,5),r.wni(ae,zc,5),r.wni(ae,zc,5,r.aKT)),2&f){let ge;r.mGM(ge=r.lsd())&&(C._toggler=ge.first),r.mGM(ge=r.lsd())&&(C._menu=ge.first),r.mGM(ge=r.lsd())&&(C._menuElementRef=ge.first)}},hostVars:4,hostBindings:function(f,C){1&f&&r.bIt("click",function(ge){return C.onHostClick(ge)}),2&f&&(r.Aen(C.hostStyle),r.HbH(C.hostClasses))},inputs:{alignment:"alignment",autoClose:"autoClose",dark:"dark",direction:"direction",placement:"placement",popper:"popper",popperOptions:"popperOptions",variant:"variant",visible:"visible"},outputs:{visibleChange:"visibleChange"},exportAs:["cDropdown"],standalone:!0,features:[r.Jv_([ba]),r.OA$,r.aNF],ngContentSelectors:Ht,decls:1,vars:0,template:function(f,C){1&f&&(r.NAR(),r.SdG(0))},styles:[".dropdown[_nghost-%COMP%]:not(.btn-group), .dropdown [_nghost-%COMP%]:not(.btn-group), .dropup[_nghost-%COMP%]:not(.btn-group), .dropup [_nghost-%COMP%]:not(.btn-group){display:block;min-width:-moz-fit-content;min-width:fit-content}.dropstart[_nghost-%COMP%]:not(.btn-group), .dropstart [_nghost-%COMP%]:not(.btn-group), .dropend[_nghost-%COMP%]:not(.btn-group), .dropend [_nghost-%COMP%]:not(.btn-group){display:inline-flex}html:not([dir=rtl]).input-group [_nghost-%COMP%]:first-child :first-child, html:not([dir=rtl]) .input-group [_nghost-%COMP%]:first-child :first-child, .input-group html:not([dir=rtl]) [_nghost-%COMP%]:first-child :first-child{border-top-right-radius:0;border-bottom-right-radius:0}html:not([dir=rtl]).input-group [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu), html:not([dir=rtl]) .input-group [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu), .input-group html:not([dir=rtl]) [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}html:not([dir=rtl]).input-group [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu):not(:only-of-type), html:not([dir=rtl]) .input-group [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu):not(:only-of-type), .input-group html:not([dir=rtl]) [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}html:not([dir=rtl]).input-group [_nghost-%COMP%]:last-child :first-child, html:not([dir=rtl]) .input-group [_nghost-%COMP%]:last-child :first-child, .input-group html:not([dir=rtl]) [_nghost-%COMP%]:last-child :first-child{border-top-left-radius:0;border-bottom-left-radius:0}html:not([dir=rtl]).input-group [_nghost-%COMP%]:last-child :first-child:not(:only-of-type), html:not([dir=rtl]) .input-group [_nghost-%COMP%]:last-child :first-child:not(:only-of-type), .input-group html:not([dir=rtl]) [_nghost-%COMP%]:last-child :first-child:not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}html:not([dir=rtl]).input-group [_nghost-%COMP%]:last-child :not(:first-child):not(.dropdown-menu), html:not([dir=rtl]) .input-group [_nghost-%COMP%]:last-child :not(:first-child):not(.dropdown-menu), .input-group html:not([dir=rtl]) [_nghost-%COMP%]:last-child :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}[dir=rtl] .input-group [_nghost-%COMP%]{direction:rtl}[dir=rtl] .input-group [_nghost-%COMP%]:first-child :first-child{border-top-left-radius:0;border-bottom-left-radius:0}[dir=rtl] .input-group [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .input-group [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}[dir=rtl] .input-group [_nghost-%COMP%]:last-child :first-child{border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .input-group [_nghost-%COMP%]:last-child :first-child:not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}[dir=rtl] .input-group [_nghost-%COMP%]:last-child :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}"]})}return h})(),_=(()=>{class h{constructor(d,f){this.dropdownService=d,this.dropdown=f,this.autoClose=!0,this._tabIndex=null}get ariaCurrent(){return this.active?"true":null}get hostClasses(){return{"dropdown-item":!0,active:this.active,disabled:this.disabled}}set tabIndex(d){this._tabIndex=d}get tabIndex(){return this.disabled?"-1":this._tabIndex}get isDisabled(){return this.disabled||null}onClick(d){this.autoClose&&this.dropdownService.toggle({visible:"toggle",dropdown:this.dropdown})}onKeyUp(d){"Enter"===d.key&&this.autoClose&&this.dropdownService.toggle({visible:!1,dropdown:this.dropdown})}static#e=this.\u0275fac=function(f){return new(f||h)(r.rXU(ba),r.rXU(E,8))};static#t=this.\u0275dir=r.FsC({type:h,selectors:[["","cDropdownItem",""]],hostVars:5,hostBindings:function(f,C){1&f&&r.bIt("click",function(ge){return C.onClick(ge)})("keyup",function(ge){return C.onKeyUp(ge)}),2&f&&(r.BMQ("aria-current",C.ariaCurrent)("tabindex",C.tabIndex)("aria-disabled",C.isDisabled),r.HbH(C.hostClasses))},inputs:{active:"active",autoClose:"autoClose",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cDropdownItem"],standalone:!0})}return h})(),W=(()=>{class h{static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275mod=r.$C({type:h});static#n=this.\u0275inj=r.G2t({providers:[ba]})}return h})(),pe=(()=>{class h{constructor(){this.role="footer"}get getClasses(){return{footer:!0,[`footer-${this.position}`]:!!this.position}}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-footer"],["","cFooter",""]],hostVars:3,hostBindings:function(f,C){2&f&&(r.BMQ("role",C.role),r.HbH(C.getClasses))},inputs:{position:"position",role:"role"},standalone:!0,features:[r.aNF],ngContentSelectors:Ht,decls:1,vars:0,template:function(f,C){1&f&&(r.NAR(),r.SdG(0))},encapsulation:2})}return h})(),Fe=(()=>{class h{static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275mod=r.$C({type:h});static#n=this.\u0275inj=r.G2t({})}return h})(),Pe=(()=>{class h{constructor(){this.validated=!1}get hostClasses(){return{"was-validated":this.validated}}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275dir=r.FsC({type:h,selectors:[["form","cForm",""]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},inputs:{validated:[r.Mj6.HasDecoratorInputTransform,"validated","validated",r.L39]},standalone:!0,features:[r.GFd]})}return h})(),Et=(()=>{class h{constructor(){this.tooltip=!1}get hostClasses(){return{"valid-feedback":!0===this.valid&&!this.tooltip,"valid-tooltip":!0===this.valid&&this.tooltip,"invalid-feedback":!0!==this.valid&&!this.tooltip,"invalid-tooltip":!0!==this.valid&&this.tooltip}}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-form-feedback"]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},inputs:{tooltip:[r.Mj6.HasDecoratorInputTransform,"tooltip","tooltip",r.L39],valid:"valid"},standalone:!0,features:[r.GFd,r.aNF],ngContentSelectors:Ht,decls:1,vars:0,template:function(f,C){1&f&&(r.NAR(),r.SdG(0))},encapsulation:2})}return h})(),wn=(()=>{class h{get hostClasses(){return{"input-group":!0,[`input-group-${this.sizing}`]:!!this.sizing}}constructor(){this.sizing=""}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275cmp=r.VBU({type:h,selectors:[["c-input-group"]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},inputs:{sizing:"sizing"},standalone:!0,features:[r.aNF],ngContentSelectors:Ht,decls:1,vars:0,template:function(f,C){1&f&&(r.NAR(),r.SdG(0))},encapsulation:2})}return h})(),xn=(()=>{class h{get hostClasses(){return{"form-select":!0,[`form-select-${this.sizing}`]:!!this.sizing,"is-valid":!0===this.valid,"is-invalid":!1===this.valid}}constructor(){this.sizing=""}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275dir=r.FsC({type:h,selectors:[["select","cSelect",""]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},inputs:{sizing:"sizing",valid:"valid"},standalone:!0})}return h})(),di=(()=>{class h{get hostClasses(){return{"form-label":!0,"col-form-label":"col"===this.col,[`col-form-label-${this.sizing}`]:!!this.sizing&&"col"===this.col}}constructor(){this.col="",this.sizing=""}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275dir=r.FsC({type:h,selectors:[["","cLabel",""]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},inputs:{col:[r.Mj6.None,"cLabel","col"],sizing:"sizing"},standalone:!0})}return h})(),Ga=(()=>{class h{get hostClasses(){return{"form-check-label":!0}}static#e=this.\u0275fac=function(f){return new(f||h)};static#t=this.\u0275dir=r.FsC({type:h,selectors:[["label","cFormCheckLabel",""]],hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},standalone:!0})}return h})(),Ca=(()=>{class h{constructor(){this.inline=!1,this.reverse=!1,this.sizing="",this.switch=!1,this.#e=!0}get hostClasses(){return{"form-check":this.formCheckClass,"form-switch":this.switch,[`form-switch-${this.sizing}`]:this.switch&&!!this.sizing,"form-check-inline":this.inline,"form-check-reverse":this.reverse}}#e;get formCheckClass(){return this.#e}ngAfterContentInit(){this.#e=!!this.formCheckLabel}static#t=this.\u0275fac=function(f){return new(f||h)};static#n=this.\u0275cmp=r.VBU({type:h,selectors:[["c-form-check"]],contentQueries:function(f,C,ae){if(1&f&&r.wni(ae,Ga,5),2&f){let ge;r.mGM(ge=r.lsd())&&(C.formCheckLabel=ge.first)}},hostVars:2,hostBindings:function(f,C){2&f&&r.HbH(C.hostClasses)},inputs:{inline:[r.Mj6.HasDecoratorInputTransform,"inline","inline",r.L39],reverse:[r.Mj6.HasDecoratorInputTransform,"reverse","reverse",r.L39],sizing:"sizing",switch:[r.Mj6.HasDecoratorInputTransform,"switch","switch",r.L39]},exportAs:["cFormCheck"],standalone:!0,features:[r.GFd,r.aNF],ngContentSelectors:Ht,decls:1,vars:0,template:function(f,C){1&f&&(r.NAR(),r.SdG(0))},encapsulation:2})}return h})(),Jo=(()=>{class h{set indeterminate(d){const f=(0,g.he)(d);if(this._indeterminate!==f){this._indeterminate=f;const C=this.hostElement.nativeElement;f&&this.renderer.setProperty(C,"checked",!1),this.renderer.setProperty(C,"indeterminate",f)}}get indeterminate(){return this._indeterminate}get hostClasses(){return{"form-check-input":!0,"is-valid":!0===this.valid,"is-invalid":!1===this.valid}}set checked(d){const f=(0,g.he)(d),C=this.hostElement?.nativeElement;C&&this.renderer.setProperty(C,"checked",f)}get checked(){return this.hostElement?.nativeElement?.checked}constructor(d,f){this.renderer=d,this.hostElement=f,this.type="checkbox",this._indeterminate=!1}static#e=this.\u0275fac=function(f){return new(f||h)(r.rXU(r.sFG),r.rXU(r.aKT))};static#t=this.\u0275dir=r.FsC({type:h,selectors:[["input","cFormCheckInput",""]],hostVars:3,hostBindings:function(f,C){2&f&&(r.BMQ("type",C.type),r.HbH(C.hostClasses))},inputs:{type:"type",indeterminate:"indeterminate",valid:"valid",checked:"checked"},standalone:!0})}return h})(),Ol=(()=>{class h{constructor(d){this.hostElement=d,this.sizing="",this.type="text",this.plaintext=!1}get hostClasses(){const d="range"===this.type;return{"form-control":!d&&!this.plaintext,"form-control-plaintext":!d&&this.plaintext,"form-control-color":"color"===this.type,"form-range":d,[`form-control-${this.sizing}`]:!!this.sizing&&!d,"is-valid":!0===this.valid,"is-invalid":!1===this.valid}}get hostTag(){return this.hostElement.nativeElement.tagName}ngOnInit(){const d=this.hostTag.toLowerCase();"input"!==d&&"textarea"!==d&&console.warn(`CoreUI [cFormControl] works with '' and '