From 27954cc0c428e266ac2a3b19967fc06ee85d3e38 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Mon, 2 Sep 2024 10:12:20 +0200 Subject: [PATCH] chore(client): Client-App aktualisieren --- .../staff-db-ui/dist/102.a1cebbe1b2264d1a.js | 1 + .../staff-db-ui/dist/140.c3d21c5ed0a40561.js | 1 + .../staff-db-ui/dist/147.b04a1078d98ad77b.js | 1 + .../staff-db-ui/dist/233.c22447bd85c8ff2d.js | 2 + .../staff-db-ui/dist/239.8ff4ba6fe30b27c5.js | 1 + .../staff-db-ui/dist/3rdpartylicenses.txt | 1508 +++++++++++++ .../staff-db-ui/dist/426.76e714807174469a.js | 1 + .../staff-db-ui/dist/732.7127fbc84084fa8d.js | 1 + .../staff-db-ui/dist/826.a9ef1bb06db1b9fc.js | 1 + .../staff-db-ui/dist/973.d62bccb3860d3e9d.js | 1 + .../staff-db-ui/dist/995.4c2113718131dc04.js | 1 + .../staff-db-ui/dist/assets/flags/at.svg | 5 + .../staff-db-ui/dist/assets/flags/au.svg | 24 + .../staff-db-ui/dist/assets/flags/de.svg | 5 + .../staff-db-ui/dist/assets/flags/fr.svg | 2 + .../staff-db-ui/dist/assets/flags/gb.svg | 16 + .../staff-db-ui/dist/assets/flags/ko.svg | 13 + .../staff-db-ui/dist/assets/flags/my.svg | 11 + .../staff-db-ui/dist/assets/flags/us.svg | 26 + .../dist/assets/icons/Master_Icon.xcf | Bin 0 -> 23887 bytes .../assets/icons/develop/dhr-icon-128x128.png | Bin 0 -> 11778 bytes .../assets/icons/develop/dhr-icon-144x144.png | Bin 0 -> 12830 bytes .../assets/icons/develop/dhr-icon-152x152.png | Bin 0 -> 13410 bytes .../icons/develop/dhr-icon-152x152i.png | Bin 0 -> 12868 bytes .../assets/icons/develop/dhr-icon-16x16.png | Bin 0 -> 4814 bytes .../assets/icons/develop/dhr-icon-192x192.png | Bin 0 -> 16035 bytes .../assets/icons/develop/dhr-icon-24x24.png | Bin 0 -> 5188 bytes .../assets/icons/develop/dhr-icon-384x384.png | Bin 0 -> 29615 bytes .../assets/icons/develop/dhr-icon-48x48.png | Bin 0 -> 6612 bytes .../assets/icons/develop/dhr-icon-512x512.png | Bin 0 -> 38893 bytes .../assets/icons/develop/dhr-icon-72x72.png | Bin 0 -> 8353 bytes .../assets/icons/develop/dhr-icon-96x96.png | Bin 0 -> 9790 bytes .../dist/assets/icons/dhr-icon-152x152i.png | Bin 0 -> 12805 bytes .../dist/assets/icons/hr-logo_bright.ico | Bin 0 -> 15086 bytes .../dist/assets/icons/hr-logo_color.ico | Bin 0 -> 15086 bytes .../dist/assets/icons/hr-logo_color3d.ico | Bin 0 -> 15086 bytes .../dist/assets/icons/hr-logo_red.ico | Bin 0 -> 15086 bytes .../dist/assets/icons/hr-logo_white.ico | Bin 0 -> 3098 bytes .../dist/assets/icons/main_48x48.png | Bin 0 -> 6589 bytes .../icons/production/dhr-icon-128x128.png | Bin 0 -> 11771 bytes .../icons/production/dhr-icon-144x144.png | Bin 0 -> 12787 bytes .../icons/production/dhr-icon-152x152.png | Bin 0 -> 13389 bytes .../icons/production/dhr-icon-152x152i.png | Bin 0 -> 12805 bytes .../icons/production/dhr-icon-16x16.png | Bin 0 -> 4821 bytes .../icons/production/dhr-icon-192x192.png | Bin 0 -> 15887 bytes .../icons/production/dhr-icon-24x24.png | Bin 0 -> 5189 bytes .../icons/production/dhr-icon-384x384.png | Bin 0 -> 29318 bytes .../icons/production/dhr-icon-48x48.png | Bin 0 -> 6618 bytes .../icons/production/dhr-icon-512x512.png | Bin 0 -> 38542 bytes .../icons/production/dhr-icon-72x72.png | Bin 0 -> 8367 bytes .../icons/production/dhr-icon-96x96.png | Bin 0 -> 9791 bytes .../staff-db-ui/dist/assets/js/environment.js | 7 + .../staff-db-ui/dist/assets/json/package.json | 70 + .../dist/assets/translate-core/de.json | 110 + .../dist/assets/translate-core/en.json | 110 + .../dist/assets/translate-core/fr.json | 107 + .../staff-db-ui/dist/assets/translate/de.json | 2 + .../staff-db-ui/dist/assets/translate/en.json | 2 + .../staff-db-ui/dist/assets/translate/fr.json | 2 + .../dist/common.20ad2b8268292298.js | 1 + ClientApp/staff-db-ui/dist/index.html | 39 + .../staff-db-ui/dist/main.79a551caa62eec25.js | 129 ++ ClientApp/staff-db-ui/dist/ngsw-worker.js | 1863 +++++++++++++++++ ClientApp/staff-db-ui/dist/ngsw.json | 181 ++ .../dist/polyfills.f3a85f3df42fd3cb.js | 1 + .../dist/runtime.3357f0de0086757c.js | 1 + ClientApp/staff-db-ui/dist/safety-worker.js | 30 + .../dist/styles.3c191a76efd858de.css | 5 + ClientApp/staff-db-ui/dist/webmanifest.json | 77 + .../staff-db-ui/dist/worker-basic.min.js | 30 + StaffDBServer/appsettings.json | 17 +- 71 files changed, 4396 insertions(+), 9 deletions(-) create mode 100644 ClientApp/staff-db-ui/dist/102.a1cebbe1b2264d1a.js create mode 100644 ClientApp/staff-db-ui/dist/140.c3d21c5ed0a40561.js create mode 100644 ClientApp/staff-db-ui/dist/147.b04a1078d98ad77b.js create mode 100644 ClientApp/staff-db-ui/dist/233.c22447bd85c8ff2d.js create mode 100644 ClientApp/staff-db-ui/dist/239.8ff4ba6fe30b27c5.js create mode 100644 ClientApp/staff-db-ui/dist/3rdpartylicenses.txt create mode 100644 ClientApp/staff-db-ui/dist/426.76e714807174469a.js create mode 100644 ClientApp/staff-db-ui/dist/732.7127fbc84084fa8d.js create mode 100644 ClientApp/staff-db-ui/dist/826.a9ef1bb06db1b9fc.js create mode 100644 ClientApp/staff-db-ui/dist/973.d62bccb3860d3e9d.js create mode 100644 ClientApp/staff-db-ui/dist/995.4c2113718131dc04.js create mode 100644 ClientApp/staff-db-ui/dist/assets/flags/at.svg create mode 100644 ClientApp/staff-db-ui/dist/assets/flags/au.svg create mode 100644 ClientApp/staff-db-ui/dist/assets/flags/de.svg create mode 100644 ClientApp/staff-db-ui/dist/assets/flags/fr.svg create mode 100644 ClientApp/staff-db-ui/dist/assets/flags/gb.svg create mode 100644 ClientApp/staff-db-ui/dist/assets/flags/ko.svg create mode 100644 ClientApp/staff-db-ui/dist/assets/flags/my.svg create mode 100644 ClientApp/staff-db-ui/dist/assets/flags/us.svg create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/Master_Icon.xcf create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/develop/dhr-icon-128x128.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/develop/dhr-icon-144x144.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/develop/dhr-icon-152x152.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/develop/dhr-icon-152x152i.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/develop/dhr-icon-16x16.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/develop/dhr-icon-192x192.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/develop/dhr-icon-24x24.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/develop/dhr-icon-384x384.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/develop/dhr-icon-48x48.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/develop/dhr-icon-512x512.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/develop/dhr-icon-72x72.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/develop/dhr-icon-96x96.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/dhr-icon-152x152i.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/hr-logo_bright.ico create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/hr-logo_color.ico create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/hr-logo_color3d.ico create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/hr-logo_red.ico create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/hr-logo_white.ico create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/main_48x48.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/production/dhr-icon-128x128.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/production/dhr-icon-144x144.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/production/dhr-icon-152x152.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/production/dhr-icon-152x152i.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/production/dhr-icon-16x16.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/production/dhr-icon-192x192.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/production/dhr-icon-24x24.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/production/dhr-icon-384x384.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/production/dhr-icon-48x48.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/production/dhr-icon-512x512.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/production/dhr-icon-72x72.png create mode 100644 ClientApp/staff-db-ui/dist/assets/icons/production/dhr-icon-96x96.png create mode 100644 ClientApp/staff-db-ui/dist/assets/js/environment.js create mode 100644 ClientApp/staff-db-ui/dist/assets/json/package.json create mode 100644 ClientApp/staff-db-ui/dist/assets/translate-core/de.json create mode 100644 ClientApp/staff-db-ui/dist/assets/translate-core/en.json create mode 100644 ClientApp/staff-db-ui/dist/assets/translate-core/fr.json create mode 100644 ClientApp/staff-db-ui/dist/assets/translate/de.json create mode 100644 ClientApp/staff-db-ui/dist/assets/translate/en.json create mode 100644 ClientApp/staff-db-ui/dist/assets/translate/fr.json create mode 100644 ClientApp/staff-db-ui/dist/common.20ad2b8268292298.js create mode 100644 ClientApp/staff-db-ui/dist/index.html create mode 100644 ClientApp/staff-db-ui/dist/main.79a551caa62eec25.js create mode 100644 ClientApp/staff-db-ui/dist/ngsw-worker.js create mode 100644 ClientApp/staff-db-ui/dist/ngsw.json create mode 100644 ClientApp/staff-db-ui/dist/polyfills.f3a85f3df42fd3cb.js create mode 100644 ClientApp/staff-db-ui/dist/runtime.3357f0de0086757c.js create mode 100644 ClientApp/staff-db-ui/dist/safety-worker.js create mode 100644 ClientApp/staff-db-ui/dist/styles.3c191a76efd858de.css create mode 100644 ClientApp/staff-db-ui/dist/webmanifest.json create mode 100644 ClientApp/staff-db-ui/dist/worker-basic.min.js diff --git a/ClientApp/staff-db-ui/dist/102.a1cebbe1b2264d1a.js b/ClientApp/staff-db-ui/dist/102.a1cebbe1b2264d1a.js new file mode 100644 index 0000000..a7b02e3 --- /dev/null +++ b/ClientApp/staff-db-ui/dist/102.a1cebbe1b2264d1a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkstaffdb=self.webpackChunkstaffdb||[]).push([[102],{86102:(It,G,s)=>{s.r(G),s.d(G,{DepartmentModule:()=>gt});var u=s(60177),c=s(89417),B=s(18406),b=s(94753),H=s(38237),$=s(33514),A=s(37712),C=s(87283),K=s(94811),N=s(18498),e=s(54438),p=s(44703),X=s(65343),F=s(31981),w=s(23462),W=s(47094);class U extends w.M{constructor(){super(...arguments),this.typeName=p.Hv.DocumentArtToDepartment}get entityId(){return this.documentArtToDepartmentId}set entityId(m){this.documentArtToDepartmentId=m}clear(){this.isActive=!0,this.useGlobix=!1}}var z=s(81121),J=s(83722);class q extends w.M{constructor(){super(...arguments),this.typeName=p.Hv.WindreamIndex}get entitytitle(){return this.entityId?`WindreamIndex "${this._name}"`:"New WindreamIndex"}get _name(){return this.attributeSzColumnName}get selectionName(){return this.comment+" ("+this.attributeSzColumnName+")"}get entityId(){return this.windreamIndexId}set entityId(m){this.windreamIndexId=m}}class j extends w.M{constructor(){super(...arguments),this.typeName=p.Hv.WindreamIndexToWindreamSearchToDepartment}get entitytitle(){return this.entityId?`Ausgabespalte "${this._name}" f\xfcr Windream Suche`:"Neue Ausgabespalte f\xfcr Windream Suche"}get _name(){return this.objectTypeAttributeSzName}get entityId(){return this.windreamIndexToWindreamSearchToDepartmentId}set entityId(m){this.windreamIndexToWindreamSearchToDepartmentId=m}}class Q extends w.M{constructor(){super(...arguments),this.typeName=p.Hv.WindreamSearch}get entitytitle(){return this.entityId?`Windream Suchkachel "${this._name}"`:"Neue Windream Suchkachel"}get _name(){return this.name}get selectionName(){return this.name}get entityId(){return this.windreamSearchId}set entityId(m){this.windreamSearchId=m}}class Z extends W.${}class ee extends w.M{constructor(){super(...arguments),this.typeName=p.Hv.WindreamSearchItem}get entitytitle(){return this.entityId?`Windream Suchfeld "${this._name}"`:"Neues Windream Suchfeld"}get _name(){return this.caption}get entityId(){return this.windreamSearchItemId}set entityId(m){this.windreamSearchItemId=m}}class O extends w.M{constructor(){super(...arguments),this.typeName=p.Hv.WindreamSearchItemToWindreamSearchToDepartment}get entitytitle(){return this.entityId?`Windream Suchfeld"${this._name}"`:"Neues Windream Suchfeld"}get _name(){return this.windreamSearchItemName}get entityId(){return this.windreamSearchItemToWindreamSearchToDepartmentId}set entityId(m){this.windreamSearchItemToWindreamSearchToDepartmentId=m}}class te extends w.M{constructor(){super(...arguments),this.typeName=p.Hv.WindreamSearchToDepartment}get entitytitle(){return this.entityId?`Windream Suchkachel "${this._name}"`:"Neue Windream Suchekachel"}get _name(){return this.windreamSearchName}get entityId(){return this.windreamSearchToDepartmentId}set entityId(m){this.windreamSearchToDepartmentId=m}}class L extends W.${}var ne=s(51631),I=s(99589),M=s(45197);let h=(()=>{class a extends X.W{get appPageNoQueries(){return 1}constructor(n){super(),this.repositoryService=n,this.appPage=1,this.loadImedeately=!0,this.departmentFilter=new F.H("DepartmentFullFilter"),this.departmentList=new I.J(F.n,"Abteilungsliste",p.Hv.Department),this.windreamSearchToDepartmentList=new I.J(te,"Windream Suche Kacheln",p.Hv.WindreamSearchToDepartment),this.windreamSearchToDepartmentFilter=new L("DepartmentFilter"),this.windreamSearchItemToWindreamSearchToDepartmentList=new I.J(O,"Windream Suchbausteine",p.Hv.WindreamSearchItemToWindreamSearchToDepartment),this.windreamSearchItemToWindreamSearchToDepartmentFilter=new L("WindreamSearchToDepartmentFilter"),this.windreamSearchItemList=new I.J(ee,"windream suche kacheln attribute",p.Hv.WindreamSearchItem),this.windreamIndexToWindreamSearchToDepartmentList=new I.J(j,"Ausgabespalten f\xfcr Windream Suche",p.Hv.WindreamIndexToWindreamSearchToDepartment),this.windreamIndexToWindreamSearchToDepartmentFilter=new L("WindreamSearchToDepartmentFilter"),this.windreamSearchList=new I.J(Q,"Windream Suche Kacheln",p.Hv.WindreamSearch),this.clientIdFilter=new Z("ClientIdFilter"),this.windreamIndexList=new I.J(q,"Windream Index",p.Hv.WindreamIndex),this.documentArtToDepartmentListFilter=new F.H("DepartmentFilter"),this.documentArtToDepartmentList=new I.J(U,"Dokumentartenliste f\xfcr Department",p.Hv.DocumentArtToDepartment),this.employeeList=new I.J(z.bJ,"mitarbeiter",p.Hv.Employee+"/all"),this.selectedDocumentarts=[],this.clpbrdWindreamOutColList=[],this.clpbrdWindreamSearchItemList=[],this.departmentList.focusedCallBack=this.focusCallBack.bind(this),this.departmentList.filter=this.departmentFilter,this.departmentDetails=this.departmentList.createFocusedShadowEntity(ne.T.EN_ViewMode),this.departmentDetails.loadedDataExpiresInMs=p.Js,this.baseEntityWrapperWaitLoading=this.departmentDetails,this.activateRouting4EntityList(this.departmentList),this.windreamSearchToDepartmentList.filter=this.windreamSearchToDepartmentFilter,this.windreamSearchToDepartmentDetails=this.windreamSearchToDepartmentList.createFocusedShadowEntity(),this.windreamSearchToDepartmentDetails.dontLoadEntity=!0,this.windreamSearchToDepartmentDetails.beforeNewCallBack=this.prepareSearchToDepartment.bind(this),this.windreamIndexToWindreamSearchToDepartmentList.filter=this.windreamIndexToWindreamSearchToDepartmentFilter,this.windreamIndexToWindreamSearchToDepartmentDetails=this.windreamIndexToWindreamSearchToDepartmentList.createFocusedShadowEntity(),this.windreamIndexToWindreamSearchToDepartmentDetails.dontLoadEntity=!0,this.windreamSearchItemToWindreamSearchToDepartmentList.filter=this.windreamSearchItemToWindreamSearchToDepartmentFilter,this.windreamSearchItemToWindreamSearchToDepartmentDetails=this.windreamSearchItemToWindreamSearchToDepartmentList.createFocusedShadowEntity(),this.windreamSearchItemToWindreamSearchToDepartmentDetails.dontLoadEntity=!0,this.windreamSearchList.filter=this.clientIdFilter,this.windreamIndexList.filter=this.clientIdFilter,this.windreamSearchItemList.filter=this.clientIdFilter,this.documentArtToDepartmentList.filter=this.documentArtToDepartmentListFilter,this.departmentDetails.detailItems.register(this.windreamSearchToDepartmentList,null,"departmentId"),this.departmentDetails.detailItems.register(this.documentArtToDepartmentList,null,"departmentId",i=>{this.selectedDocumentarts=i.map(t=>t.documentArtId)}),this.windreamSearchToDepartmentDetails.detailItems.register(this.windreamIndexToWindreamSearchToDepartmentList,null,"windreamSearchToDepartmentId"),this.windreamSearchToDepartmentDetails.detailItems.register(this.windreamSearchItemToWindreamSearchToDepartmentList,null,"windreamSearchToDepartmentId"),this.loadBaseData(),this.init()}loadData(){super.loadData(),this.departmentList.load(null,null,()=>this.pageLoadingService.updatePageLoadedCounters(this.appPage))}loadBaseData(){super.loadBaseData(this.appPage,1),this.employeeList.load(null,null,()=>this.pageLoadingService.updatePageLoadedCounters(this.appPage))}focusCallBack(n){this.clientIdFilter.clientId=n?.clientId}clearData(){super.clearData(),this.departmentFilter.filterReset(),this.departmentList.clear()}onLoggedInOut(n){this.userChanged(new J.K(n)),super.onLoggedInOut(n)}userChanged(n){this.authService.isLoggedIn()&&(this.departmentDetails.canNew=n.isMaster,this.departmentDetails.canEdit=this.departmentDetails.canNew,this.departmentDetails.canDelete=this.departmentDetails.canNew)}moveUpDown(n,i){const t=i.focusedItemIndex;if(!(n<0&&0===t||n>0&&t===i.items.length)){const r=i.items[t+n],d=r.seq,o=i.focusedItem;r.seq=o.seq,o.seq=d,r.entityChanged=!0,o.entityChanged=!0,r.save(this.repositoryService,null,null,null),o.save(this.repositoryService,null,null,null),this.sortBySeq(i.items)}}sortBySeq(n){n.sort((i,t)=>i.seq-t.seq)}prepareSearchToDepartment(n){const i=this.windreamSearchToDepartmentList.items.reduce((t,r)=>t>r.seq?t:r.seq,0);n.seq=i+1,n.isActive=!0}static#e=this.\u0275fac=function(i){return new(i||a)(e.KVO(M.U))};static#t=this.\u0275prov=e.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var y=s(85296),T=s(96995),v=s(62855),x=s(19057),D=s(20962),l=s(31837),ae=s(67336),V=s(75445),P=s(62560),_=s(85956),f=s(99213),k=s(92);let ie=(()=>{class a{constructor(n,i,t){this.departmentDataService=n,this.appDataService=i,this.authService=t,this.filterFetch=new e.bkB,this.dropDownAllCaption="core.dropdown-option.all",this.dropDownAllValueString="*",this.dropDownAllValueInt=0,this.allCaption="core.dropdown-option.all",this.allValue=0,this.noneCaption="core.dropdown-option.none",this.noneValue=-1}ngOnInit(){}ngAfterViewInit(){}onFilterClick(){this.departmentDetails.inViewMode&&this.filterFetch.emit()}onClearClick(){this.filterObject.filterReset()}keyboardInput(n){return!(!V.N.LOGIN_IS_SHOWN&&!this.departmentDetails.keyDownListenerStopped&&n.ctrlKey&&n.which===ae.F&&(n.stopPropagation(),this.onFilterClick(),1))}static#e=this.\u0275fac=function(i){return new(i||a)(e.rXU(h),e.rXU(T.D),e.rXU(P.V))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["app-department-filter"]],hostBindings:function(i,t){1&i&&e.bIt("keydown",function(d){return t.keyboardInput(d)},!1,e.tSv)},inputs:{filterObject:"filterObject",departmentDetails:"departmentDetails"},outputs:{filterFetch:"filterFetch"},decls:15,vars:1,consts:[[1,"card"],[1,"filterCardContainer"],["placeholder","Abteilung",1,"filterDepartment",3,"ngModelChange","keyup.Enter","ngModel"],[1,"filterButtons"],["id","filterBtnClear","mat-stroked-button","","title","Reset",1,"filterBtn",3,"click"],[1,"btn-lable-show"],["id","filterBtnFind","mat-stroked-button","","title","Suchen",1,"filterBtn",3,"click"]],template:function(i,t){1&i&&(e.j41(0,"mat-card",0),e.nrm(1,"mat-card-header"),e.j41(2,"mat-card-content",1)(3,"hensel-input",2),e.mxI("ngModelChange",function(d){return e.DH7(t.filterObject.departmentName,d)||(t.filterObject.departmentName=d),d}),e.bIt("keyup.Enter",function(){return t.onFilterClick()}),e.k0s(),e.j41(4,"section",3)(5,"button",4),e.bIt("click",function(){return t.onClearClick()}),e.j41(6,"mat-icon"),e.EFF(7,"clear"),e.k0s(),e.j41(8,"span",5),e.EFF(9," Reset"),e.k0s()(),e.j41(10,"button",6),e.bIt("click",function(){return t.onFilterClick()}),e.j41(11,"mat-icon"),e.EFF(12,"search"),e.k0s(),e.j41(13,"span",5),e.EFF(14," Suchen"),e.k0s()()()()()),2&i&&(e.R7$(3),e.R50("ngModel",t.filterObject.departmentName))},dependencies:[_.iV,f.An,D._m,D.XB,D.Rm,c.BC,c.vS,k.d],styles:['.filterCardContainer[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-column-gap:15px;grid-template-rows:repeat(1,auto);grid-template-columns:repeat(5,minmax(0,1fr)) auto;grid-template-areas:"filterDepartment . . . . filterButtons"}.filterDepartment[_ngcontent-%COMP%]{grid-area:filterDepartment}.filterButtons[_ngcontent-%COMP%]{grid-area:filterButtons;margin-left:auto}.card[_ngcontent-%COMP%]{padding:10px;margin:2px 2px 0}.filterBtn[_ngcontent-%COMP%]{margin-left:2px;margin-right:1px;margin-top:6px;width:90px}']})}return a})();const re=()=>({exportAll:"Excel Export"});function de(a,m){if(1&a&&e.nrm(0,"dxo-format",18),2&a){const n=e.XpG(3);e.Y8G("type",n.localeService.dateFormat)}}function oe(a,m){if(1&a&&e.nrm(0,"dxo-format",18),2&a){const n=e.XpG(3);e.Y8G("type",n.localeService.dateTimeFormat)}}function me(a,m){if(1&a&&e.nrm(0,"dxo-lookup",19),2&a){const n=e.XpG(3);e.Y8G("dataSource",null==n.appDataService.rangList?null:n.appDataService.rangList.items)}}function se(a,m){if(1&a&&(e.qex(0),e.j41(1,"dxi-column",15),e.DNE(2,de,1,1,"dxo-format",16)(3,oe,1,1,"dxo-format",16)(4,me,1,1,"dxo-lookup",17),e.k0s(),e.bVm()),2&a){const n=e.XpG().$implicit;e.R7$(),e.Y8G("allowHeaderFiltering",n.allowHeaderFiltering)("dataField",n.dataField)("dataType",n.dataType)("caption",n.caption)("width",n.width)("sortIndex",n.sortIndex)("sortOrder",n.sortOrder)("visibleIndex",n.visibleIndex)("visible",n.visible)("fixed",n.fixed)("headerCellTemplate",n.headerCellTemplate)("cellTemplate",n.cellTemplate)("alignment",n.alignment),e.R7$(),e.Y8G("ngIf","date"===n.dataType),e.R7$(),e.Y8G("ngIf","datetime"===n.dataType),e.R7$(),e.Y8G("ngIf","rangId"===n.dataField)}}function le(a,m){if(1&a&&(e.qex(0),e.DNE(1,se,5,16,"ng-container",14),e.bVm()),2&a){const n=m.$implicit;e.R7$(),e.Y8G("ngIf",n.visible)}}function ce(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.0-0",i.culture)," ")}}function pe(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.1-1",i.culture)," ")}}function ue(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.2-2",i.culture)," ")}}function he(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.3-3",i.culture)," ")}}function ge(a,m){1&a&&e.nrm(0,"div",20)}let Ie=(()=>{class a{constructor(n,i,t,r){this.departmentDataService=n,this.appDataService=i,this.localeService=t,this.globals=r,this.columnConfigList=new y.L}ngOnInit(){this.initColumns()}initColumns(){let n;n=this.columnConfigList.addNumber("Id","departmentId",5),n=this.columnConfigList.add("Name","departmentName",13),n.sortIndex=0,n.sortOrder="asc",n.allowHeaderFiltering=!0,n=this.columnConfigList.addNumber("Typ Id","departmentTypeId",5),n=this.columnConfigList.addNumber("CostCentre Id","costCentreId",5),n=this.columnConfigList.add("CostCentre","costCentre",10),n=this.columnConfigList.add("Abteilungsleiter","headofDepartment",18),n=this.columnConfigList.add("CEO","executiveDirector",18),n=this.columnConfigList.add("COO","managingDirector",18),n=this.columnConfigList.add("Folder","departmentNameFolder",13),n=this.columnConfigList.add("AD-Group Name","adGroupDepartmentName",13),n=this.columnConfigList.addNumber("Client Id","clientId",5),n=this.columnConfigList.addBoolean("Virtual","isVirtual",2),this.columnConfigList.recalcWidth()}loadData(){this.departmentDataService.loadData()}static#e=this.\u0275fac=function(i){return new(i||a)(e.rXU(h),e.rXU(T.D),e.rXU(v.i),e.rXU(x.RV))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["app-department-list"]],inputs:{dataSource:"dataSource"},decls:20,vars:24,consts:[["gridDepartment",""],[1,"DepartmentList"],[1,"FilterComponent",3,"filterFetch","departmentDetails","filterObject"],[1,"card"],["id","gridDepartment","keyExpr","departmentId","columnResizingMode","nextColumn","noDataText","Keine Daten vorhanden",3,"focusedRowIndexChange","focusedRowKeyChange","selectedRowKeysChange","onKeyDown","onFocusedRowChanging","onRowDblClick","onExporting","dataSource","focusedRowEnabled","autoNavigateToFocusedRow","focusedRowIndex","focusedRowKey","selectedRowKeys","showBorders","allowColumnResizing"],[3,"enabled","texts"],[3,"visible"],[3,"enabled"],["mode","virtual"],["mode","multiple"],["mode","none"],[4,"ngFor","ngForOf"],[4,"dxTemplate","dxTemplateOf"],["class","disableClicks",4,"ngIf"],[4,"ngIf"],[3,"allowHeaderFiltering","dataField","dataType","caption","width","sortIndex","sortOrder","visibleIndex","visible","fixed","headerCellTemplate","cellTemplate","alignment"],[3,"type",4,"ngIf"],["valueExpr","entityId","displayExpr","rangShortname",3,"dataSource",4,"ngIf"],[3,"type"],["valueExpr","entityId","displayExpr","rangShortname",3,"dataSource"],[1,"disableClicks"]],template:function(i,t){if(1&i){const r=e.RV6();e.j41(0,"div",1)(1,"app-department-filter",2),e.bIt("filterFetch",function(){return e.eBV(r),e.Njj(t.loadData())}),e.k0s(),e.j41(2,"mat-card",3),e.nrm(3,"mat-card-header"),e.j41(4,"mat-card-content")(5,"dx-data-grid",4,0),e.mxI("focusedRowIndexChange",function(o){return e.eBV(r),e.DH7(t.dataSource.focusedItemGridIndex,o)||(t.dataSource.focusedItemGridIndex=o),e.Njj(o)})("focusedRowKeyChange",function(o){return e.eBV(r),e.DH7(t.dataSource.focusedItemId,o)||(t.dataSource.focusedItemId=o),e.Njj(o)})("selectedRowKeysChange",function(o){return e.eBV(r),e.DH7(t.dataSource.selectedItemIds,o)||(t.dataSource.selectedItemIds=o),e.Njj(o)}),e.bIt("onKeyDown",function(o){return e.eBV(r),o.handled="Escape"===o.event.key,e.Njj(t.dataSource.gridUpDownProcessing(o))})("onFocusedRowChanging",function(o){return e.eBV(r),e.Njj(t.dataSource.onFocusedRowChanging(o))})("onRowDblClick",function(o){return e.eBV(r),e.Njj(t.dataSource.focusedEntityShadowed.delayedEdit(o.data.entityId))})("onExporting",function(o){return e.eBV(r),e.Njj(t.globals.doExcelExportSimple(o,t.dataSource.getExportFilename4List()))}),e.nrm(7,"dxo-export",5)(8,"dxo-header-filter",6)(9,"dxo-paging",7)(10,"dxo-scrolling",8)(11,"dxo-load-panel",7)(12,"dxo-sorting",9)(13,"dxo-selection",10),e.DNE(14,le,2,1,"ng-container",11)(15,ce,3,5,"div",12)(16,pe,3,5,"div",12)(17,ue,3,5,"div",12)(18,he,3,5,"div",12),e.k0s()()(),e.DNE(19,ge,1,0,"div",13),e.k0s()}2&i&&(e.R7$(),e.Y8G("departmentDetails",t.departmentDataService.departmentDetails)("filterObject",t.dataSource.filter),e.R7$(4),e.HbH("gridDepartment"+(t.columnConfigList.withExport?" withexport":"")),e.Y8G("dataSource",t.dataSource.items)("focusedRowEnabled",!0)("autoNavigateToFocusedRow",!0),e.R50("focusedRowIndex",t.dataSource.focusedItemGridIndex)("focusedRowKey",t.dataSource.focusedItemId)("selectedRowKeys",t.dataSource.selectedItemIds),e.Y8G("showBorders",!0)("allowColumnResizing",!0),e.R7$(2),e.Y8G("enabled",t.columnConfigList.withExport)("texts",e.lJ4(23,re)),e.R7$(),e.Y8G("visible",!0),e.R7$(),e.Y8G("enabled",!1),e.R7$(2),e.Y8G("enabled",!0),e.R7$(3),e.Y8G("ngForOf",t.columnConfigList.columns),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_0"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_1"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_2"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_3"),e.R7$(),e.Y8G("ngIf",t.departmentDataService.departmentDetails.inNotViewMode))},dependencies:[u.Sq,u.bT,D._m,D.XB,D.Rm,b.s,l.hVU,l.nj_,l.gtJ,l.b4U,l.ABd,l.ZJU,l.xzc,l.PVd,l.eA9,l.Z6T,C.eC,ie,u.QX],styles:['.DepartmentList[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);grid-row-gap:7px;grid-template-areas:"filter" "grid"}.FilterComponent[_ngcontent-%COMP%]{grid-area:filter;margin:0}.card[_ngcontent-%COMP%]{grid-area:grid;width:100%;padding:0;margin:0;border-radius:0;box-shadow:none}.gridDepartment[_ngcontent-%COMP%]{position:absolute;height:100%;width:100%;padding-left:1px;padding-right:1px;padding-bottom:1px}']})}return a})();var De=s(10467),_e=s(76461),Y=s(43684),S=s(21009);const fe=["detailForm"];let we=(()=>{class a{get department(){return this.departmentDetails.entity}get employeeList(){return this.departmentService.employeeList.items}get costCentreList(){return this.appDataService.costCentreList.items}constructor(n,i){this.appDataService=n,this.departmentService=i}ngOnInit(){}ngAfterViewInit(){this.departmentDetails.detailForm=this.detailForm}depNameWasChanged(){this.department.departmentName&&(this.department.departmentNameFolder||(this.department.departmentNameFolder=this.department.departmentName),this.department.adGroupDepartmentName||(this.department.adGroupDepartmentName=this.department.departmentName))}static#e=this.\u0275fac=function(i){return new(i||a)(e.rXU(T.D),e.rXU(h))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["app-department-content"]],viewQuery:function(i,t){if(1&i&&e.GBs(fe,5),2&i){let r;e.mGM(r=e.lsd())&&(t.detailForm=r.first)}},inputs:{departmentDetails:"departmentDetails"},decls:13,vars:28,consts:[["detailForm","ngForm"],[1,"departmentDetailsContent"],["name","departmentName","placeholder","Abteilungsname","maxlength","50","required","",1,"input-departmentName",3,"ngModelChange","blur","ngModel","disabled"],["name","costcentre","placeholder","CostCentre","keyExpr","entityId","displayExpr","costCentreName","sortField","*","required","",1,"input-cost-centre",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled"],["name","Type Id","placeholder","Abteilungstyp","maxlength","50","department","",1,"input-departmentType",3,"ngModelChange","ngModel","disabled"],["name","headofDepartmentId","placeholder","Abteilungsleiter","keyExpr","entityId","displayExpr","fullname","sortField","*",1,"input-headofDepartmentId",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled"],["name","executiveDirectorId","placeholder","CEO","keyExpr","entityId","displayExpr","fullname","sortField","*",1,"input-executiveDirectorId",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled"],["name","managingDirectorId","placeholder","COO","keyExpr","entityId","displayExpr","fullname","sortField","*",1,"input-managingDirectorId",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled"],["name","departmentNameFolder","placeholder","Folder","maxlength","50","required","",1,"input-departmentNameFolder",3,"ngModelChange","ngModel","disabled"],["name","adGroupDepartmentName","placeholder","AD-Group Name","maxlength","50","required","",1,"input-adGroupDepartmentName",3,"ngModelChange","ngModel","disabled"],["name","clientId","placeholder","Client Id","maxlength","50","required","",1,"input-clientId",3,"ngModelChange","ngModel","disabled"],["name","Enabled","labelPosition","before","inactive","",1,"input-isVirtual","check-box",2,"float","left","margin-top","auto","margin-bottom","12px",3,"ngModelChange","ngModel","disabled"]],template:function(i,t){if(1&i){const r=e.RV6();e.j41(0,"form",1,0)(2,"hensel-input",2),e.mxI("ngModelChange",function(o){return e.eBV(r),e.DH7(t.department.departmentName,o)||(t.department.departmentName=o),e.Njj(o)}),e.bIt("blur",function(){return e.eBV(r),e.Njj(t.depNameWasChanged())}),e.k0s(),e.j41(3,"hensel-selection",3),e.mxI("selectedItemsChange",function(o){return e.eBV(r),e.DH7(t.department.costCentreId,o)||(t.department.costCentreId=o),e.Njj(o)}),e.k0s(),e.j41(4,"hensel-input",4),e.mxI("ngModelChange",function(o){return e.eBV(r),e.DH7(t.department.departmentTypeId,o)||(t.department.departmentTypeId=o),e.Njj(o)}),e.k0s(),e.j41(5,"hensel-selection",5),e.mxI("selectedItemsChange",function(o){return e.eBV(r),e.DH7(t.department.headofDepartmentId,o)||(t.department.headofDepartmentId=o),e.Njj(o)}),e.k0s(),e.j41(6,"hensel-selection",6),e.mxI("selectedItemsChange",function(o){return e.eBV(r),e.DH7(t.department.executiveDirectorId,o)||(t.department.executiveDirectorId=o),e.Njj(o)}),e.k0s(),e.j41(7,"hensel-selection",7),e.mxI("selectedItemsChange",function(o){return e.eBV(r),e.DH7(t.department.managingDirectorId,o)||(t.department.managingDirectorId=o),e.Njj(o)}),e.k0s(),e.j41(8,"hensel-input",8),e.mxI("ngModelChange",function(o){return e.eBV(r),e.DH7(t.department.departmentNameFolder,o)||(t.department.departmentNameFolder=o),e.Njj(o)}),e.k0s(),e.j41(9,"hensel-input",9),e.mxI("ngModelChange",function(o){return e.eBV(r),e.DH7(t.department.adGroupDepartmentName,o)||(t.department.adGroupDepartmentName=o),e.Njj(o)}),e.k0s(),e.j41(10,"hensel-input",10),e.mxI("ngModelChange",function(o){return e.eBV(r),e.DH7(t.department.clientId,o)||(t.department.clientId=o),e.Njj(o)}),e.k0s(),e.j41(11,"mat-checkbox",11),e.mxI("ngModelChange",function(o){return e.eBV(r),e.DH7(t.department.isVirtual,o)||(t.department.isVirtual=o),e.Njj(o)}),e.EFF(12," Virtual "),e.k0s()()}2&i&&(e.R7$(2),e.R50("ngModel",t.department.departmentName),e.Y8G("disabled",!t.departmentDetails.inNewEditMode),e.R7$(),e.Y8G("dataSource",t.costCentreList)("multiSelect",!1),e.R50("selectedItems",t.department.costCentreId),e.Y8G("disabled",!t.departmentDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.department.departmentTypeId),e.Y8G("disabled",!t.departmentDetails.inNewEditMode),e.R7$(),e.Y8G("dataSource",t.employeeList)("multiSelect",!1),e.R50("selectedItems",t.department.headofDepartmentId),e.Y8G("disabled",!t.departmentDetails.inNewEditMode),e.R7$(),e.Y8G("dataSource",t.employeeList)("multiSelect",!1),e.R50("selectedItems",t.department.executiveDirectorId),e.Y8G("disabled",!t.departmentDetails.inNewEditMode),e.R7$(),e.Y8G("dataSource",t.employeeList)("multiSelect",!1),e.R50("selectedItems",t.department.managingDirectorId),e.Y8G("disabled",!t.departmentDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.department.departmentNameFolder),e.Y8G("disabled",!t.departmentDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.department.adGroupDepartmentName),e.Y8G("disabled",!t.departmentDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.department.clientId),e.Y8G("disabled",!t.departmentDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.department.isVirtual),e.Y8G("disabled",!t.departmentDetails.inNewEditMode))},dependencies:[Y.NZ,c.qT,c.BC,c.cb,c.YS,c.tU,c.vS,c.cV,S.n,k.d],styles:['.departmentDetailsContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-column-gap:8px;grid-template-columns:repeat(2,minmax(1px,1fr));grid-template-rows:repeat(5,1fr);grid-template-areas:"input-departmentName input-cost-centre" "input-departmentType input-headofDepartmentId" "input-executiveDirectorId input-managingDirectorId" "input-departmentNameFolder input-adGroupDepartmentName" "input-clientId input-isVirtual"}.input-departmentName[_ngcontent-%COMP%]{grid-area:input-departmentName}.input-cost-centre[_ngcontent-%COMP%]{grid-area:input-cost-centre}.input-departmentType[_ngcontent-%COMP%]{grid-area:input-departmentType}.input-headofDepartmentId[_ngcontent-%COMP%]{grid-area:input-headofDepartmentId}.input-executiveDirectorId[_ngcontent-%COMP%]{grid-area:input-executiveDirectorId}.input-managingDirectorId[_ngcontent-%COMP%]{grid-area:input-managingDirectorId}.input-departmentNameFolder[_ngcontent-%COMP%]{grid-area:input-departmentNameFolder}.input-adGroupDepartmentName[_ngcontent-%COMP%]{grid-area:input-adGroupDepartmentName}.input-clientId[_ngcontent-%COMP%]{grid-area:input-clientId}.input-isVirtual[_ngcontent-%COMP%]{grid-area:input-isVirtual}']})}return a})();var R=s(70753),g=s(74854);let Se=(()=>{class a extends R.F{constructor(n){super(),this.departmentDataService=n,this.getNotUsedWindreamSearches=i=>!this.list.items.find(t=>t.windreamSearchId===i.entityId),this.departmentDataService.windreamSearchList.load()}get windreamSearchList(){return this.departmentDataService.windreamSearchList.items}get focusedItem(){return this._focusedItem}static#e=this.\u0275fac=function(i){return new(i||a)(e.rXU(h))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["app-department-windream-search-popupedit"]],features:[e.Vt3],decls:17,vars:8,consts:[["popupForm","ngForm"],["btnCancel",""],["input_windreamSearch",""],[1,"PopupContainer"],["mat-dialog-title","",1,"messageBoxHeader"],[1,"PopupContent"],[1,"buttons"],["id","btnSave","name","btnSave","mat-stroked-button","",1,"btnSave",3,"click","disabled"],["id","btnCancel","name","btnCancel","mat-stroked-button","",1,"btnCancel",3,"click"],["id","input-windreamSearch","placeholder","Windream Search Kachel","keyExpr","entityId","displayExpr","selectionName","sortField","*","separator",",","required","",1,"input-windreamSearch",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","customFilterFn","showSpinner"]],template:function(i,t){if(1&i){const r=e.RV6();e.j41(0,"form",3,0)(2,"h2",4),e.EFF(3),e.k0s(),e.j41(4,"mat-dialog-content",5)(5,"div",6)(6,"button",7),e.bIt("click",function(){return e.eBV(r),e.Njj(t.save())}),e.j41(7,"mat-icon"),e.EFF(8,"save"),e.k0s(),e.EFF(9," \xdcbernehmen "),e.k0s(),e.j41(10,"button",8,1),e.bIt("click",function(){return e.eBV(r),e.Njj(t.cancel())}),e.j41(12,"mat-icon"),e.EFF(13,"cancel"),e.k0s(),e.EFF(14," Abbrechen "),e.k0s()(),e.j41(15,"hensel-selection",9,2),e.mxI("selectedItemsChange",function(o){return e.eBV(r),e.DH7(t.focusedItem.windreamSearchId,o)||(t.focusedItem.windreamSearchId=o),e.Njj(o)}),e.k0s()()()}2&i&&(e.R7$(3),e.Lme("",t.description," - ",t.keyItemName," "),e.R7$(3),e.Y8G("disabled",!t.baseEntityWrapper.enabledSaveButton()||t.readOnly),e.R7$(9),e.Y8G("dataSource",t.windreamSearchList)("multiSelect",!1),e.R50("selectedItems",t.focusedItem.windreamSearchId),e.Y8G("customFilterFn",0===t.focusedItem.entityId?t.getNotUsedWindreamSearches:"")("showSpinner",t.departmentDataService.windreamSearchList.isLoading))},dependencies:[_.iV,f.An,g.KI,g.PQ,c.qT,c.cb,c.cV,S.n],styles:['.buttonLayoutCancel[_ngcontent-%COMP%]{font-size:16px;cursor:pointer;text-align:center;margin-left:auto;float:right}.HeaderInfo[_ngcontent-%COMP%]{font-size:16px;margin-left:-5px}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-column-gap:15px;grid-template-areas:"field1 field2" "buttons buttons"}.buttons[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-column-gap:30px;grid-template-areas:"empty1 btnsave btncancel empty2"}.btnSave[_ngcontent-%COMP%]{margin-top:10px;grid-area:btnsave}.btnCancel[_ngcontent-%COMP%]{margin-top:10px;grid-area:btncancel}.field1[_ngcontent-%COMP%]{grid-area:field1}.field2[_ngcontent-%COMP%]{grid-area:field2}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-column-gap:15px;grid-row-gap:15px;grid-template-areas:"input-windreamSearch ." "buttons buttons"}.input-windreamSearch[_ngcontent-%COMP%]{grid-area:input-windreamSearch}']})}return a})(),be=(()=>{class a{constructor(n,i){this.departmentDataService=n,this.selectedDepartments=[],this.text=i.text,this.iconanme=i.iconanme}static#e=this.\u0275fac=function(i){return new(i||a)(e.rXU(h),e.rXU(g.xh))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["app-select-department-popup"]],decls:21,vars:8,consts:[["popupForm","ngForm"],["btnCancel",""],["input_windreamSearch",""],[1,"PopupContainer"],["mat-dialog-title","",1,"messageBoxHeader"],[1,"text"],[1,"PopupContent"],[1,"buttons"],["id","btnSave","name","btnSave","mat-stroked-button","",1,"btnSave",3,"disabled","mat-dialog-close"],["id","btnCancel","name","btnCancel","mat-stroked-button","",1,"btnCancel",3,"mat-dialog-close"],["id","input-departments","placeholder","Windream Search Kachel","keyExpr","entityId","displayExpr","departmentName","sortField","*","separator",",","required","",1,"input-departments",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","customFilter"]],template:function(i,t){if(1&i){const r=e.RV6();e.j41(0,"form",3,0)(2,"h3",4)(3,"mat-icon"),e.EFF(4),e.k0s(),e.EFF(5," Windreameinstellungen \xfcbernehmen "),e.k0s(),e.j41(6,"div",5),e.EFF(7),e.k0s(),e.j41(8,"mat-dialog-content",6)(9,"div",7)(10,"button",8)(11,"mat-icon"),e.EFF(12,"save"),e.k0s(),e.EFF(13," \xdcbernehmen "),e.k0s(),e.j41(14,"button",9,1)(16,"mat-icon"),e.EFF(17,"cancel"),e.k0s(),e.EFF(18," Abbrechen "),e.k0s()(),e.j41(19,"hensel-selection",10,2),e.mxI("selectedItemsChange",function(o){return e.eBV(r),e.DH7(t.selectedDepartments,o)||(t.selectedDepartments=o),e.Njj(o)}),e.k0s()()()}2&i&&(e.R7$(4),e.JRh(t.iconanme),e.R7$(3),e.SpI(" ",t.text," "),e.R7$(3),e.Y8G("disabled",0===t.selectedDepartments.length)("mat-dialog-close",t.selectedDepartments),e.R7$(9),e.Y8G("dataSource",t.departmentDataService.departmentList.items)("multiSelect",!0),e.R50("selectedItems",t.selectedDepartments),e.Y8G("customFilter","entityId != "+t.departmentDataService.departmentList.focusedItemId))},dependencies:[_.iV,f.An,g.kQ,g.KI,g.PQ,c.qT,c.cb,c.cV,S.n],styles:['.buttonLayoutCancel[_ngcontent-%COMP%]{font-size:16px;cursor:pointer;text-align:center;margin-left:auto;float:right}.HeaderInfo[_ngcontent-%COMP%]{font-size:16px;margin-left:-5px}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-column-gap:15px;grid-template-areas:"field1 field2" "buttons buttons"}.buttons[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-column-gap:30px;grid-template-areas:"empty1 btnsave btncancel empty2"}.btnSave[_ngcontent-%COMP%]{margin-top:10px;grid-area:btnsave}.btnCancel[_ngcontent-%COMP%]{margin-top:10px;grid-area:btncancel}.field1[_ngcontent-%COMP%]{grid-area:field1}.field2[_ngcontent-%COMP%]{grid-area:field2}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-column-gap:15px;grid-row-gap:15px;grid-template-areas:"text text" "input-departments input-departments" "buttons buttons"}.input-departments[_ngcontent-%COMP%]{grid-area:input-departments}']})}return a})();var E=s(89097);const Ce=()=>({exportAll:"Excel Export"});function ye(a,m){if(1&a&&e.nrm(0,"dxo-format",25),2&a){const n=e.XpG(3);e.Y8G("type",n.localeService.dateFormat)}}function Te(a,m){if(1&a&&e.nrm(0,"dxo-format",25),2&a){const n=e.XpG(3);e.Y8G("type",n.localeService.dateTimeFormat)}}function ve(a,m){if(1&a&&(e.qex(0),e.j41(1,"dxi-column",23),e.DNE(2,ye,1,1,"dxo-format",24)(3,Te,1,1,"dxo-format",24),e.k0s(),e.bVm()),2&a){const n=e.XpG().$implicit;e.R7$(),e.Y8G("allowHeaderFiltering",n.allowHeaderFiltering)("dataField",n.dataField)("dataType",n.dataType)("caption",n.caption)("width",n.width)("sortIndex",n.sortIndex)("sortOrder",n.sortOrder)("visibleIndex",n.visibleIndex)("visible",n.visible)("fixed",n.fixed)("headerCellTemplate",n.headerCellTemplate)("cellTemplate",n.cellTemplate)("allowSorting",n.allowSorting)("calculateCellValue",n.calculateCellValue)("calculateDisplayValue",n.calculateDisplayValue)("calculateGroupValue",n.calculateGroupValue)("calculateSortValue",n.calculateSortValue)("alignment",n.alignment),e.R7$(),e.Y8G("ngIf","date"==n.dataType),e.R7$(),e.Y8G("ngIf","datetime"==n.dataType)}}function xe(a,m){if(1&a&&(e.qex(0),e.DNE(1,ve,4,20,"ng-container",22),e.bVm()),2&a){const n=m.$implicit;e.R7$(),e.Y8G("ngIf",n.visible)}}function Fe(a,m){if(1&a){const n=e.RV6();e.j41(0,"div")(1,"mat-checkbox",26,0),e.bIt("click",function(){const t=e.eBV(n).$implicit,r=e.XpG();return e.Njj(r.changeKeyWS(t.data))}),e.k0s()()}if(2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.Y8G("checked",n.value)("disabled",!i.departmentDetails.inEditMode)}}function Le(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.0-0",i.culture)," ")}}function ke(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.1-1",i.culture)," ")}}function Re(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.2-2",i.culture)," ")}}function Ee(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.3-3",i.culture)," ")}}let Ge=(()=>{class a{constructor(n,i,t,r,d){this.dialog=n,this.departmentDataService=i,this.repoService=t,this.localeService=r,this.globals=d,this.columnConfigList=new y.L}ngOnInit(){this.initColumns()}initColumns(){let n;n=this.columnConfigList.addNumber("Seq.","seq",2),n.sortIndex=0,n.sortOrder="asc",n=this.columnConfigList.add("Suche Kachel","windreamSearchName",10),n=this.columnConfigList.addBoolean("Active","isActive",2),n.cellTemplate="checkbox_template",this.columnConfigList.recalcWidth()}addItem(){this.windreamSearchList.focusedEntityShadowed.new(),this.windreamSearchList.focusedEntityShadowed.entity.departmentId=this.departmentDetails.entityId,this.openPopupDialog(this.windreamSearchList.focusedEntityShadowed)}openPopupDialog(n){this.departmentDetails.keyDownListenerStopped=!0,this.dialog.openDialog(Se,{baseEntityWrapper:n,keyItemName:this.departmentDetails.entity.departmentName,readOnly:!this.departmentDetails.inEditMode,description:n.entity.entitytitle+(0===n.entity.entityId?" zuweisen":" bearbeiten "),list:this.windreamSearchList},!0,()=>this.departmentDetails.keyDownListenerStopped=!1)}get nameOfDepartment(){return this.departmentDetails.entity.departmentName}changeKeyWS(n){this.departmentDetails.inEditMode&&(n.isActive=!n.isActive,n.entityChanged=!0,n.save(this.repoService,null))}copyAllTiles(){this.openSelectDepartmentsPopup(`W\xe4hlen Sie Abteilungen, bei welchen alle Suchkacheln von Suchkacheln aus "${this.departmentDetails.entity.departmentName}" ersetzt werden sollen`,"content_copy",n=>{this.repoService.putDataById(p.Hv.DepartmentCopyWindreamTiles,this.departmentDetails.entityId,n).subscribe(()=>this.departmentDetails.informationMessageBox("Kopieren von Suchkacheln",`Die Suchkacheln aus "${this.departmentDetails.entity.departmentName}" haben Suchkacheln aus den ausgew\xe4hlten Abteilungen erfolgreich ersetzt`))})}copyCurrentTile(){this.openSelectDepartmentsPopup(`W\xe4hlen Sie Abteilungen, f\xfcr welche die Suchkachel "${this.windreamSearchList.focusedItem.windreamSearchName}" aus "${this.departmentDetails.entity.departmentName}" hinzugef\xfcgt werden soll`,"content_copy",n=>{this.repoService.putDataById(p.Hv.WindreamSearchToDepartmentCopyWindreamTile,this.windreamSearchList.focusedItemId,n).subscribe(()=>this.departmentDetails.informationMessageBox("Kopieren von Suchkacheln",`Die Suchkachel "${this.windreamSearchList.focusedItem.windreamSearchName}" aus "${this.departmentDetails.entity.departmentName}" wurde zu den ausgew\xe4hlten Abteilungen erfolgreich hinzugef\xfcgt`))})}openSelectDepartmentsPopup(n,i,t){this.departmentDetails.keyDownListenerStopped=!0,this.dialog.openDialog(be,{text:n,iconanme:i},!0,r=>{r&&t&&t(r),this.departmentDetails.keyDownListenerStopped=!1})}static#e=this.\u0275fac=function(i){return new(i||a)(e.rXU(E.w),e.rXU(h),e.rXU(M.U),e.rXU(v.i),e.rXU(x.RV))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["app-department-windream-search"]],inputs:{windreamSearchList:"windreamSearchList",departmentDetails:"departmentDetails"},decls:40,vars:32,consts:[["checkbox",""],[1,"department-windreamsearch"],[1,"label"],[1,"toolbar"],[1,"toolbar-button-row"],[1,"toolbar-flex-container"],["mat-icon-button","","title","Hinzuf\xfcgen",3,"click","disabled"],["mat-icon-button","","title","Kopiere alle Windream-Kacheln zu anderen Abteilungen",3,"click","disabled"],["mat-icon-button","","title","F\xfcge die aktuelle Windream-Kachel zu anderen Abteilungen hinzu",3,"click","disabled"],["mat-icon-button","","title","L\xf6schen",3,"click","disabled"],["mat-icon-button","","title","Vorr\xfccken",3,"click","disabled"],["mat-icon-button","","title","Hinterr\xfccken",1,"toolbar-button-last",3,"click","disabled"],["name","windreamSearchGrid","keyExpr","entityId","columnResizingMode","widget","noDataText","Keine Daten sind vorhanden",3,"focusedRowIndexChange","focusedRowKeyChange","selectedRowKeysChange","onKeyDown","onExporting","dataSource","focusedRowIndex","focusedRowEnabled","autoNavigateToFocusedRow","focusedRowKey","selectedRowKeys","showBorders","allowColumnResizing","renderAsync"],[3,"enabled","texts"],[3,"visible"],[3,"visible","applyFilter"],[3,"enabled"],["mode","virtual"],["mode","multiple"],["mode","none"],[4,"ngFor","ngForOf"],[4,"dxTemplate","dxTemplateOf"],[4,"ngIf"],[3,"allowHeaderFiltering","dataField","dataType","caption","width","sortIndex","sortOrder","visibleIndex","visible","fixed","headerCellTemplate","cellTemplate","allowSorting","calculateCellValue","calculateDisplayValue","calculateGroupValue","calculateSortValue","alignment"],[3,"type",4,"ngIf"],[3,"type"],[3,"click","checked","disabled"]],template:function(i,t){1&i&&(e.j41(0,"div",1)(1,"label",2),e.EFF(2),e.k0s(),e.j41(3,"section",3)(4,"div",4)(5,"div",5)(6,"button",6),e.bIt("click",function(){return t.addItem()}),e.j41(7,"mat-icon"),e.EFF(8,"add"),e.k0s()(),e.j41(9,"button",7),e.bIt("click",function(){return t.copyAllTiles()}),e.j41(10,"mat-icon"),e.EFF(11,"copy_all"),e.k0s()(),e.j41(12,"button",8),e.bIt("click",function(){return t.copyCurrentTile()}),e.j41(13,"mat-icon"),e.EFF(14,"content_copy"),e.k0s()(),e.j41(15,"button",9),e.bIt("click",function(){return t.windreamSearchList.focusedEntityShadowed.delete()}),e.j41(16,"mat-icon"),e.EFF(17,"delete"),e.k0s()(),e.j41(18,"button",10),e.bIt("click",function(){return t.departmentDataService.moveUpDown(-1,t.windreamSearchList)}),e.j41(19,"mat-icon"),e.EFF(20,"keyboard_arrow_up"),e.k0s()(),e.j41(21,"button",11),e.bIt("click",function(){return t.departmentDataService.moveUpDown(1,t.windreamSearchList)}),e.j41(22,"mat-icon"),e.EFF(23,"keyboard_arrow_down"),e.k0s()()()()(),e.j41(24,"dx-data-grid",12),e.mxI("focusedRowIndexChange",function(d){return e.DH7(t.windreamSearchList.focusedItemGridIndex,d)||(t.windreamSearchList.focusedItemGridIndex=d),d})("focusedRowKeyChange",function(d){return e.DH7(t.windreamSearchList.focusedItemId,d)||(t.windreamSearchList.focusedItemId=d),d})("selectedRowKeysChange",function(d){return e.DH7(t.windreamSearchList.selectedItemIds,d)||(t.windreamSearchList.selectedItemIds=d),d}),e.bIt("onKeyDown",function(d){return d.handled="Escape"===d.event.key})("onExporting",function(d){return t.globals.doExcelExportSimple(d,t.windreamSearchList.getExportFilename4List())}),e.nrm(25,"dxo-export",13)(26,"dxo-header-filter",14),e.EFF(27," --\x3e "),e.nrm(28,"dxo-filter-row",15)(29,"dxo-paging",16)(30,"dxo-scrolling",17)(31,"dxo-load-panel",16)(32,"dxo-sorting",18)(33,"dxo-selection",19),e.DNE(34,xe,2,1,"ng-container",20)(35,Fe,3,2,"div",21)(36,Le,3,5,"div",21)(37,ke,3,5,"div",21)(38,Re,3,5,"div",21)(39,Ee,3,5,"div",21),e.k0s()()),2&i&&(e.R7$(2),e.JRh(t.windreamSearchList._listName),e.R7$(4),e.Y8G("disabled",!(t.departmentDetails.inEditMode&&!t.departmentDetails.entityIsLoading&&t.windreamSearchList.focusedEntityShadowed.enabledNewButton())),e.R7$(3),e.Y8G("disabled",!(t.windreamSearchList.items.length>0&&!t.departmentDetails.entityIsLoading)),e.R7$(3),e.Y8G("disabled",!(!t.departmentDetails.entityIsLoading&&!t.windreamSearchList.focusedEntityShadowed.isNew)),e.R7$(3),e.Y8G("disabled",!(t.departmentDetails.inEditMode&&!t.departmentDetails.entityIsLoading&&!t.windreamSearchList.focusedEntityShadowed.isNew&&t.windreamSearchList.focusedEntityShadowed.enabledDeleteButton())),e.R7$(3),e.Y8G("disabled",!(t.departmentDetails.inEditMode&&!t.departmentDetails.entityIsLoading&&!t.windreamSearchList.focusedEntityShadowed.isNew&&t.windreamSearchList.focusedItemIndex>0)),e.R7$(3),e.Y8G("disabled",!(t.departmentDetails.inEditMode&&!t.departmentDetails.entityIsLoading&&!t.windreamSearchList.focusedEntityShadowed.isNew&&t.windreamSearchList.focusedItemIndex{class a extends R.F{constructor(n){super(),this.departmentDataService=n,this.windreamSearchItemIds=[],this.save=()=>{let i=this.list.items.reduce((t,r)=>t>r.seq?t:r.seq,0);this.windreamSearchItemIds.forEach(t=>{const r=new O;r.seq=++i,r.windreamSearchItemId=t,r.windreamSearchToDepartmentId=this.focusedItem.windreamSearchToDepartmentId,r.entityChanged=!0,this.list.items.push(r)}),this.list.save(()=>{this.baseEntityWrapper.resetEditMode(),this.close(!0)})},this.departmentDataService.windreamSearchItemList.load(),this.getNotUsedwindreamSearchItems=this.getNotUsedwindreamSearchItems.bind(this)}get windreamSearchItemList(){return this.departmentDataService.windreamSearchItemList.items}get focusedItem(){return this._focusedItem}getNotUsedwindreamSearchItems(n){return!this.list.items.find(i=>i.windreamSearchItemId===n.entityId)}static#e=this.\u0275fac=function(i){return new(i||a)(e.rXU(h))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["app-department-windream-search-item-popupedit"]],features:[e.Vt3],decls:17,vars:9,consts:[["popupForm","ngForm"],["btnCancel",""],["input_windreamSearchItem",""],[1,"PopupContainer"],["mat-dialog-title","",1,"messageBoxHeader"],[1,"PopupContent"],[1,"buttons"],["id","btnSave","name","btnSave","mat-stroked-button","",1,"btnSave",3,"click","disabled"],["id","btnCancel","name","btnCancel","mat-stroked-button","",1,"btnCancel",3,"click"],["id","input_windreamSearchItem","placeholder","Suchbaustein","keyExpr","entityId","displayExpr","name","sortField","*","separator",",","required","",1,"input_windreamSearchItem",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled","customFilterFn","showSpinner"]],template:function(i,t){if(1&i){const r=e.RV6();e.j41(0,"form",3,0)(2,"h2",4),e.EFF(3),e.k0s(),e.j41(4,"mat-dialog-content",5)(5,"div",6)(6,"button",7),e.bIt("click",function(){return e.eBV(r),e.Njj(t.save())}),e.j41(7,"mat-icon"),e.EFF(8,"save"),e.k0s(),e.EFF(9," \xdcbernehmen "),e.k0s(),e.j41(10,"button",8,1),e.bIt("click",function(){return e.eBV(r),e.Njj(t.cancel())}),e.j41(12,"mat-icon"),e.EFF(13,"cancel"),e.k0s(),e.EFF(14," Abbrechen "),e.k0s()(),e.j41(15,"hensel-selection",9,2),e.mxI("selectedItemsChange",function(o){return e.eBV(r),e.DH7(t.windreamSearchItemIds,o)||(t.windreamSearchItemIds=o),e.Njj(o)}),e.k0s()()()}2&i&&(e.R7$(3),e.Lme("",t.description," - ",t.keyItemName," "),e.R7$(3),e.Y8G("disabled",!t.baseEntityWrapper.enabledSaveButton()||t.readOnly),e.R7$(9),e.Y8G("dataSource",t.windreamSearchItemList)("multiSelect",!0),e.R50("selectedItems",t.windreamSearchItemIds),e.Y8G("disabled",t.readOnly||0!==t.focusedItem.entityId)("customFilterFn",0===t.focusedItem.entityId?t.getNotUsedwindreamSearchItems:"")("showSpinner",t.departmentDataService.windreamSearchItemList.isLoading))},dependencies:[_.iV,f.An,g.KI,g.PQ,c.qT,c.cb,c.cV,S.n],styles:['.buttonLayoutCancel[_ngcontent-%COMP%]{font-size:16px;cursor:pointer;text-align:center;margin-left:auto;float:right}.HeaderInfo[_ngcontent-%COMP%]{font-size:16px;margin-left:-5px}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-column-gap:15px;grid-template-areas:"field1 field2" "buttons buttons"}.buttons[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-column-gap:30px;grid-template-areas:"empty1 btnsave btncancel empty2"}.btnSave[_ngcontent-%COMP%]{margin-top:10px;grid-area:btnsave}.btnCancel[_ngcontent-%COMP%]{margin-top:10px;grid-area:btncancel}.field1[_ngcontent-%COMP%]{grid-area:field1}.field2[_ngcontent-%COMP%]{grid-area:field2}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-column-gap:15px;grid-row-gap:15px;grid-template-areas:"input-windreamSearch ." "buttons buttons"}.input-windreamSearch[_ngcontent-%COMP%]{grid-area:input-windreamSearch}.input-seq[_ngcontent-%COMP%]{grid-area:input-seq}']})}return a})();const We=()=>({exportAll:"Excel Export"});function je(a,m){if(1&a&&e.nrm(0,"dxo-format",24),2&a){const n=e.XpG(3);e.Y8G("type",n.localeService.dateFormat)}}function Oe(a,m){if(1&a&&e.nrm(0,"dxo-format",24),2&a){const n=e.XpG(3);e.Y8G("type",n.localeService.dateTimeFormat)}}function Me(a,m){if(1&a&&(e.qex(0),e.j41(1,"dxi-column",22),e.DNE(2,je,1,1,"dxo-format",23)(3,Oe,1,1,"dxo-format",23),e.k0s(),e.bVm()),2&a){const n=e.XpG().$implicit;e.R7$(),e.Y8G("allowHeaderFiltering",n.allowHeaderFiltering)("dataField",n.dataField)("dataType",n.dataType)("caption",n.caption)("width",n.width)("sortIndex",n.sortIndex)("sortOrder",n.sortOrder)("visibleIndex",n.visibleIndex)("visible",n.visible)("fixed",n.fixed)("headerCellTemplate",n.headerCellTemplate)("cellTemplate",n.cellTemplate)("allowSorting",n.allowSorting)("calculateCellValue",n.calculateCellValue)("calculateDisplayValue",n.calculateDisplayValue)("calculateGroupValue",n.calculateGroupValue)("calculateSortValue",n.calculateSortValue)("alignment",n.alignment),e.R7$(),e.Y8G("ngIf","date"==n.dataType),e.R7$(),e.Y8G("ngIf","datetime"==n.dataType)}}function Ve(a,m){if(1&a&&(e.qex(0),e.DNE(1,Me,4,20,"ng-container",21),e.bVm()),2&a){const n=m.$implicit;e.R7$(),e.Y8G("ngIf",n.visible)}}function Pe(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.0-0",i.culture)," ")}}function Ye(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.1-1",i.culture)," ")}}function Be(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.2-2",i.culture)," ")}}function He(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.3-3",i.culture)," ")}}let $e=(()=>{class a{constructor(n,i,t,r){this.dialog=n,this.departmentDataService=i,this.localeService=t,this.globals=r,this.columnConfigList=new y.L}ngOnInit(){this.initColumns()}initColumns(){let n;n=this.columnConfigList.add("Seq.","seq",2),n.sortIndex=0,n.sortOrder="asc",n=this.columnConfigList.add("Suchbaustein","windreamSearchItemName",10),this.columnConfigList.recalcWidth()}addItem(){this.windreamSearchItemList.focusedEntityShadowed.new(),this.windreamSearchItemList.focusedEntityShadowed.entity.windreamSearchToDepartmentId=this.windreamSearchToDepartmentDetails.entityId,this.openPopupDialog(this.windreamSearchItemList.focusedEntityShadowed)}openPopupDialog(n){this.windreamSearchToDepartmentDetails.keyDownListenerStopped=!0,this.dialog.openDialog(Ne,{baseEntityWrapper:n,keyItemName:this.windreamSearchToDepartmentDetails.entity._name,readOnly:!this.departmentDetails.inEditMode,description:n.entity.entitytitle+(0===n.entity.entityId?" zuweisen":" bearbeiten "),list:this.windreamSearchItemList},!0,()=>this.windreamSearchToDepartmentDetails.keyDownListenerStopped=!1)}outColKeyItemDescription(){return`Suchfelder f\xfcr "${this.windreamSearchToDepartmentDetails.entity.windreamSearchName}" Abteilung "${this.departmentDetails.entity.departmentName}"`}copyWindreamOutCols(){this.departmentDataService.clpbrdWindreamSearchItemList=this.windreamSearchItemList.items.slice(),this.departmentDataService.clpbrdWindreamSearchItemHint1=this.outColKeyItemDescription(),this.departmentDataService.clpbrdWindreamSearchItemHints="",this.departmentDataService.clpbrdWindreamSearchItemList.forEach(n=>this.departmentDataService.clpbrdWindreamSearchItemHints+="\n"+n.windreamSearchItemName)}pasteWindreamOutCols(){this.windreamSearchItemDetails.confirmMessageBoxYesNo("\xdcbernahme von "+this.departmentDataService.clpbrdWindreamSearchItemHint1,this.outColKeyItemDescription()+" werden mit "+this.departmentDataService.clpbrdWindreamSearchItemHint1+" \xfcberschrieben. Sind Sie sicher?",()=>{this.windreamSearchItemList.deleteAll(),this.windreamSearchItemList.items.push(...this.departmentDataService.clpbrdWindreamSearchItemList),this.windreamSearchItemList.items.forEach(n=>{n.entityId=0,n.entityChanged=!0,n.windreamSearchToDepartmentId=this.windreamSearchToDepartmentDetails.entityId}),this.windreamSearchItemList.save()})}static#e=this.\u0275fac=function(i){return new(i||a)(e.rXU(E.w),e.rXU(h),e.rXU(v.i),e.rXU(x.RV))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["app-department-windream-search-item"]],inputs:{windreamSearchItemList:"windreamSearchItemList",windreamSearchItemDetails:"windreamSearchItemDetails",windreamSearchToDepartmentDetails:"windreamSearchToDepartmentDetails",departmentDetails:"departmentDetails"},decls:39,vars:32,consts:[[1,"department-windreamsearch-windreamindex"],[1,"label"],[1,"toolbar"],[1,"toolbar-button-row"],[1,"toolbar-flex-container"],["mat-icon-button","","title","Hinzuf\xfcgen",3,"click","disabled"],["mat-icon-button","","title","Kopieren zum Zwischenspeicher",3,"click","disabled"],["mat-icon-button","",3,"click","title","disabled"],["mat-icon-button","","title","L\xf6schen",3,"click","disabled"],["mat-icon-button","","title","Vorr\xfccken",3,"click","disabled"],["mat-icon-button","","title","Hinterr\xfccken",1,"toolbar-button-last",3,"click","disabled"],["name","windreamSearchGrid","keyExpr","entityId","columnResizingMode","widget","noDataText","Keine Daten sind vorhanden",3,"focusedRowIndexChange","focusedRowKeyChange","selectedRowKeysChange","onKeyDown","onExporting","dataSource","focusedRowIndex","focusedRowEnabled","autoNavigateToFocusedRow","focusedRowKey","selectedRowKeys","showBorders","allowColumnResizing","renderAsync"],[3,"enabled","texts"],[3,"visible"],[3,"visible","applyFilter"],[3,"enabled"],["mode","virtual"],["mode","multiple"],["mode","none"],[4,"ngFor","ngForOf"],[4,"dxTemplate","dxTemplateOf"],[4,"ngIf"],[3,"allowHeaderFiltering","dataField","dataType","caption","width","sortIndex","sortOrder","visibleIndex","visible","fixed","headerCellTemplate","cellTemplate","allowSorting","calculateCellValue","calculateDisplayValue","calculateGroupValue","calculateSortValue","alignment"],[3,"type",4,"ngIf"],[3,"type"]],template:function(i,t){1&i&&(e.j41(0,"div",0)(1,"label",1),e.EFF(2),e.k0s(),e.j41(3,"section",2)(4,"div",3)(5,"div",4)(6,"button",5),e.bIt("click",function(){return t.addItem()}),e.j41(7,"mat-icon"),e.EFF(8,"add"),e.k0s()(),e.j41(9,"button",6),e.bIt("click",function(){return t.copyWindreamOutCols()}),e.j41(10,"mat-icon"),e.EFF(11,"content_copy"),e.k0s()(),e.j41(12,"button",7),e.bIt("click",function(){return t.pasteWindreamOutCols()}),e.j41(13,"mat-icon"),e.EFF(14,"content_paste"),e.k0s()(),e.j41(15,"button",8),e.bIt("click",function(){return t.windreamSearchItemList.focusedEntityShadowed.delete()}),e.j41(16,"mat-icon"),e.EFF(17,"delete"),e.k0s()(),e.j41(18,"button",9),e.bIt("click",function(){return t.departmentDataService.moveUpDown(-1,t.windreamSearchItemList)}),e.j41(19,"mat-icon"),e.EFF(20,"keyboard_arrow_up"),e.k0s()(),e.j41(21,"button",10),e.bIt("click",function(){return t.departmentDataService.moveUpDown(1,t.windreamSearchItemList)}),e.j41(22,"mat-icon"),e.EFF(23,"keyboard_arrow_down"),e.k0s()()()()(),e.j41(24,"dx-data-grid",11),e.mxI("focusedRowIndexChange",function(d){return e.DH7(t.windreamSearchItemList.focusedItemGridIndex,d)||(t.windreamSearchItemList.focusedItemGridIndex=d),d})("focusedRowKeyChange",function(d){return e.DH7(t.windreamSearchItemList.focusedItemId,d)||(t.windreamSearchItemList.focusedItemId=d),d})("selectedRowKeysChange",function(d){return e.DH7(t.windreamSearchItemList.selectedItemIds,d)||(t.windreamSearchItemList.selectedItemIds=d),d}),e.bIt("onKeyDown",function(d){return d.handled="Escape"===d.event.key})("onExporting",function(d){return t.globals.doExcelExportSimple(d,t.windreamSearchItemList.getExportFilename4List())}),e.nrm(25,"dxo-export",12)(26,"dxo-header-filter",13),e.EFF(27," --\x3e "),e.nrm(28,"dxo-filter-row",14)(29,"dxo-paging",15)(30,"dxo-scrolling",16)(31,"dxo-load-panel",15)(32,"dxo-sorting",17)(33,"dxo-selection",18),e.DNE(34,Ve,2,1,"ng-container",19)(35,Pe,3,5,"div",20)(36,Ye,3,5,"div",20)(37,Be,3,5,"div",20)(38,He,3,5,"div",20),e.k0s()()),2&i&&(e.R7$(2),e.JRh(t.windreamSearchItemList._listName),e.R7$(4),e.Y8G("disabled",!(t.departmentDetails.inEditMode&&!t.windreamSearchToDepartmentDetails.entityIsLoading&&!t.windreamSearchToDepartmentDetails.isNew&&!t.windreamSearchItemList.focusedEntityShadowed.entityIsLoading&&t.windreamSearchItemList.focusedEntityShadowed.enabledNewButton())),e.R7$(3),e.Y8G("disabled",!(!t.windreamSearchToDepartmentDetails.entityIsLoading&&!t.windreamSearchToDepartmentDetails.isNew&&t.windreamSearchItemList.items.length>0)),e.R7$(3),e.Y8G("title",t.departmentDataService.clpbrdWindreamSearchItemHint1+"\n"+t.departmentDataService.clpbrdWindreamSearchItemHints)("disabled",!(t.departmentDataService.clpbrdWindreamSearchItemHint1&&t.departmentDetails.inEditMode&&!t.windreamSearchToDepartmentDetails.entityIsLoading&&!t.windreamSearchToDepartmentDetails.isNew)),e.R7$(3),e.Y8G("disabled",!(t.departmentDetails.inEditMode&&!t.windreamSearchToDepartmentDetails.entityIsLoading&&!t.windreamSearchToDepartmentDetails.isNew&&!t.windreamSearchItemList.focusedEntityShadowed.isNew&&t.windreamSearchItemList.focusedEntityShadowed.enabledDeleteButton())),e.R7$(3),e.Y8G("disabled",!(t.departmentDetails.inEditMode&&!t.windreamSearchToDepartmentDetails.entityIsLoading&&!t.windreamSearchToDepartmentDetails.isNew&&!t.windreamSearchItemList.focusedEntityShadowed.isNew&&t.windreamSearchItemList.focusedItemIndex>0)),e.R7$(3),e.Y8G("disabled",!(t.departmentDetails.inEditMode&&!t.windreamSearchToDepartmentDetails.entityIsLoading&&!t.windreamSearchToDepartmentDetails.isNew&&!t.windreamSearchItemList.focusedEntityShadowed.isNew&&t.windreamSearchItemList.focusedItemIndex{class a extends R.F{constructor(n){super(),this.departmentDataService=n,this.windreamIndexIds=[],this.getNotUsedwindreamIndexes=i=>!this.list.items.find(t=>t.windreamIndexId===i.entityId),this.save=()=>{let i=this.list.items.reduce((t,r)=>t>r.seq?t:r.seq,0);this.windreamIndexIds.forEach(t=>{const r=new j;r.seq=++i,r.windreamIndexId=t,r.windreamSearchToDepartmentId=this.focusedItem.windreamSearchToDepartmentId,r.entityChanged=!0,this.list.items.push(r)}),this.list.save(()=>{this.baseEntityWrapper.resetEditMode(),this.close(!0)})},this.departmentDataService.windreamIndexList.load()}get windreamIndexList(){return this.departmentDataService.windreamIndexList.items}get focusedItem(){return this._focusedItem}static#e=this.\u0275fac=function(i){return new(i||a)(e.rXU(h))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["app-department-windream-index-popupedit"]],viewQuery:function(i,t){if(1&i&&e.GBs(Ae,5),2&i){let r;e.mGM(r=e.lsd())&&(t.input_windreamIndex=r.first)}},features:[e.Vt3],decls:17,vars:9,consts:[["popupForm","ngForm"],["btnCancel",""],["input_windreamIndex",""],[1,"PopupContainer"],["mat-dialog-title","",1,"messageBoxHeader"],[1,"PopupContent"],[1,"buttons"],["id","btnSave","name","btnSave","mat-stroked-button","",1,"btnSave",3,"click","disabled"],["id","btnCancel","name","btnCancel","mat-stroked-button","",1,"btnCancel",3,"click"],["id","input-windreamIndex","placeholder","Ausgabespalte","keyExpr","entityId","displayExpr","selectionName","sortField","*","separator",",","required","",1,"input-windreamIndex",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled","customFilterFn","showSpinner"]],template:function(i,t){if(1&i){const r=e.RV6();e.j41(0,"form",3,0)(2,"h2",4),e.EFF(3),e.k0s(),e.j41(4,"mat-dialog-content",5)(5,"div",6)(6,"button",7),e.bIt("click",function(){return e.eBV(r),e.Njj(t.save())}),e.j41(7,"mat-icon"),e.EFF(8,"save"),e.k0s(),e.EFF(9," \xdcbernehmen "),e.k0s(),e.j41(10,"button",8,1),e.bIt("click",function(){return e.eBV(r),e.Njj(t.cancel())}),e.j41(12,"mat-icon"),e.EFF(13,"cancel"),e.k0s(),e.EFF(14," Abbrechen "),e.k0s()(),e.j41(15,"hensel-selection",9,2),e.mxI("selectedItemsChange",function(o){return e.eBV(r),e.DH7(t.windreamIndexIds,o)||(t.windreamIndexIds=o),e.Njj(o)}),e.k0s()()()}2&i&&(e.R7$(3),e.Lme("",t.description," - ",t.keyItemName," "),e.R7$(3),e.Y8G("disabled",!t.baseEntityWrapper.enabledSaveButton()||t.readOnly),e.R7$(9),e.Y8G("dataSource",t.windreamIndexList)("multiSelect",!0),e.R50("selectedItems",t.windreamIndexIds),e.Y8G("disabled",t.readOnly||0!==t.focusedItem.entityId)("customFilterFn",0===t.focusedItem.entityId?t.getNotUsedwindreamIndexes:"")("showSpinner",t.departmentDataService.windreamIndexList.isLoading))},dependencies:[_.iV,f.An,g.KI,g.PQ,c.qT,c.cb,c.cV,S.n],styles:['.buttonLayoutCancel[_ngcontent-%COMP%]{font-size:16px;cursor:pointer;text-align:center;margin-left:auto;float:right}.HeaderInfo[_ngcontent-%COMP%]{font-size:16px;margin-left:-5px}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-column-gap:15px;grid-template-areas:"field1 field2" "buttons buttons"}.buttons[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-column-gap:30px;grid-template-areas:"empty1 btnsave btncancel empty2"}.btnSave[_ngcontent-%COMP%]{margin-top:10px;grid-area:btnsave}.btnCancel[_ngcontent-%COMP%]{margin-top:10px;grid-area:btncancel}.field1[_ngcontent-%COMP%]{grid-area:field1}.field2[_ngcontent-%COMP%]{grid-area:field2}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-column-gap:15px;grid-row-gap:15px;grid-template-areas:"input-windreamSearch ." "buttons buttons"}.input-windreamSearch[_ngcontent-%COMP%]{grid-area:input-windreamSearch}.input-seq[_ngcontent-%COMP%]{grid-area:input-seq}']})}return a})();const Xe=()=>({exportAll:"Excel Export"});function Ue(a,m){if(1&a&&e.nrm(0,"dxo-format",24),2&a){const n=e.XpG(3);e.Y8G("type",n.localeService.dateFormat)}}function ze(a,m){if(1&a&&e.nrm(0,"dxo-format",24),2&a){const n=e.XpG(3);e.Y8G("type",n.localeService.dateTimeFormat)}}function Je(a,m){if(1&a&&(e.qex(0),e.j41(1,"dxi-column",22),e.DNE(2,Ue,1,1,"dxo-format",23)(3,ze,1,1,"dxo-format",23),e.k0s(),e.bVm()),2&a){const n=e.XpG().$implicit;e.R7$(),e.Y8G("allowHeaderFiltering",n.allowHeaderFiltering)("dataField",n.dataField)("dataType",n.dataType)("caption",n.caption)("width",n.width)("sortIndex",n.sortIndex)("sortOrder",n.sortOrder)("visibleIndex",n.visibleIndex)("visible",n.visible)("fixed",n.fixed)("headerCellTemplate",n.headerCellTemplate)("cellTemplate",n.cellTemplate)("allowSorting",n.allowSorting)("calculateCellValue",n.calculateCellValue)("calculateDisplayValue",n.calculateDisplayValue)("calculateGroupValue",n.calculateGroupValue)("calculateSortValue",n.calculateSortValue)("alignment",n.alignment),e.R7$(),e.Y8G("ngIf","date"==n.dataType),e.R7$(),e.Y8G("ngIf","datetime"==n.dataType)}}function qe(a,m){if(1&a&&(e.qex(0),e.DNE(1,Je,4,20,"ng-container",21),e.bVm()),2&a){const n=m.$implicit;e.R7$(),e.Y8G("ngIf",n.visible)}}function Qe(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.0-0",i.culture)," ")}}function Ze(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.1-1",i.culture)," ")}}function et(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.2-2",i.culture)," ")}}function tt(a,m){if(1&a&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&a){const n=m.$implicit,i=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.3-3",i.culture)," ")}}let nt=(()=>{class a{get windreamSearchName(){return this.windreamSearchToDepartmentDetails.entity.windreamSearchName}constructor(n,i,t,r){this.dialog=n,this.departmentDataService=i,this.localeService=t,this.globals=r,this.columnConfigList=new y.L}ngOnInit(){this.initColumns()}initColumns(){let n;n=this.columnConfigList.add("Seq.","seq",2),n.sortIndex=0,n.sortOrder="asc",n=this.columnConfigList.add("Ausgabespalte","objectTypeAttributeSzName",15),n=this.columnConfigList.add("Indexname","attributeSzColumnName",15),this.columnConfigList.recalcWidth()}addItem(){this.windreamIndexList.focusedEntityShadowed.new(),this.windreamIndexList.focusedEntityShadowed.entity.windreamSearchToDepartmentId=this.windreamSearchToDepartmentDetails.entityId,this.openPopupDialog(this.windreamIndexList.focusedEntityShadowed)}openPopupDialog(n){this.windreamSearchToDepartmentDetails.keyDownListenerStopped=!0,this.dialog.openDialog(Ke,{baseEntityWrapper:n,keyItemName:this.windreamSearchToDepartmentDetails.entity.windreamSearchName,readOnly:!this.departmentDetails.inEditMode,description:n.entity.entitytitle+(0===n.entity.entityId?" zuweisen":" bearbeiten "),list:this.windreamIndexList},!0,()=>this.windreamSearchToDepartmentDetails.keyDownListenerStopped=!1)}outColKeyItemDescription(){return`Ausgabespalten f\xfcr "${this.windreamSearchToDepartmentDetails.entity.windreamSearchName}" Abteilung "${this.departmentDetails.entity.departmentName}"`}copyWindreamOutCols(){this.departmentDataService.clpbrdWindreamOutColList=this.windreamIndexList.items.slice(),this.departmentDataService.clpbrdWindreamOutColHint1=this.outColKeyItemDescription(),this.departmentDataService.clpbrdWindreamOutColHints="",this.departmentDataService.clpbrdWindreamOutColList.forEach(n=>this.departmentDataService.clpbrdWindreamOutColHints+="\n"+n.objectTypeAttributeSzName)}pasteWindreamOutCols(){this.windreamIndexDetails.confirmMessageBoxYesNo("\xdcbernahme von "+this.departmentDataService.clpbrdWindreamOutColHint1,this.outColKeyItemDescription()+" werden mit "+this.departmentDataService.clpbrdWindreamOutColHint1+" \xfcberschrieben. Sind Sie sicher?",()=>{this.windreamIndexList.deleteAll(),this.windreamIndexList.items.push(...this.departmentDataService.clpbrdWindreamOutColList),this.windreamIndexList.items.forEach(n=>{n.entityId=0,n.entityChanged=!0,n.windreamSearchToDepartmentId=this.windreamSearchToDepartmentDetails.entityId}),this.windreamIndexList.save()})}static#e=this.\u0275fac=function(i){return new(i||a)(e.rXU(E.w),e.rXU(h),e.rXU(v.i),e.rXU(x.RV))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["app-department-windream-index"]],inputs:{windreamIndexList:"windreamIndexList",windreamIndexDetails:"windreamIndexDetails",windreamSearchToDepartmentDetails:"windreamSearchToDepartmentDetails",departmentDetails:"departmentDetails"},decls:39,vars:32,consts:[[1,"department-windreamsearch-windreamindex"],[1,"label"],[1,"toolbar"],[1,"toolbar-button-row"],[1,"toolbar-flex-container"],["mat-icon-button","","title","Hinzuf\xfcgen",3,"click","disabled"],["mat-icon-button","","title","Kopieren zum Zwischenspeicher",3,"click","disabled"],["mat-icon-button","",3,"click","title","disabled"],["mat-icon-button","","title","L\xf6schen",3,"click","disabled"],["mat-icon-button","","title","Vorr\xfccken",3,"click","disabled"],["mat-icon-button","","title","Hinterr\xfccken",1,"toolbar-button-last",3,"click","disabled"],["name","windreamSearchGrid","keyExpr","entityId","columnResizingMode","widget","noDataText","Keine Daten sind vorhanden",3,"focusedRowIndexChange","focusedRowKeyChange","selectedRowKeysChange","onKeyDown","onExporting","dataSource","focusedRowIndex","focusedRowEnabled","autoNavigateToFocusedRow","focusedRowKey","selectedRowKeys","showBorders","allowColumnResizing","renderAsync"],[3,"enabled","texts"],[3,"visible"],[3,"visible","applyFilter"],[3,"enabled"],["mode","virtual"],["mode","multiple"],["mode","none"],[4,"ngFor","ngForOf"],[4,"dxTemplate","dxTemplateOf"],[4,"ngIf"],[3,"allowHeaderFiltering","dataField","dataType","caption","width","sortIndex","sortOrder","visibleIndex","visible","fixed","headerCellTemplate","cellTemplate","allowSorting","calculateCellValue","calculateDisplayValue","calculateGroupValue","calculateSortValue","alignment"],[3,"type",4,"ngIf"],[3,"type"]],template:function(i,t){1&i&&(e.j41(0,"div",0)(1,"label",1),e.EFF(2),e.k0s(),e.j41(3,"section",2)(4,"div",3)(5,"div",4)(6,"button",5),e.bIt("click",function(){return t.addItem()}),e.j41(7,"mat-icon"),e.EFF(8,"add"),e.k0s()(),e.j41(9,"button",6),e.bIt("click",function(){return t.copyWindreamOutCols()}),e.j41(10,"mat-icon"),e.EFF(11,"content_copy"),e.k0s()(),e.j41(12,"button",7),e.bIt("click",function(){return t.pasteWindreamOutCols()}),e.j41(13,"mat-icon"),e.EFF(14,"content_paste"),e.k0s()(),e.j41(15,"button",8),e.bIt("click",function(){return t.windreamIndexList.focusedEntityShadowed.delete()}),e.j41(16,"mat-icon"),e.EFF(17,"delete"),e.k0s()(),e.j41(18,"button",9),e.bIt("click",function(){return t.departmentDataService.moveUpDown(-1,t.windreamIndexList)}),e.j41(19,"mat-icon"),e.EFF(20,"keyboard_arrow_up"),e.k0s()(),e.j41(21,"button",10),e.bIt("click",function(){return t.departmentDataService.moveUpDown(1,t.windreamIndexList)}),e.j41(22,"mat-icon"),e.EFF(23,"keyboard_arrow_down"),e.k0s()()()()(),e.j41(24,"dx-data-grid",11),e.mxI("focusedRowIndexChange",function(d){return e.DH7(t.windreamIndexList.focusedItemGridIndex,d)||(t.windreamIndexList.focusedItemGridIndex=d),d})("focusedRowKeyChange",function(d){return e.DH7(t.windreamIndexList.focusedItemId,d)||(t.windreamIndexList.focusedItemId=d),d})("selectedRowKeysChange",function(d){return e.DH7(t.windreamIndexList.selectedItemIds,d)||(t.windreamIndexList.selectedItemIds=d),d}),e.bIt("onKeyDown",function(d){return d.handled="Escape"===d.event.key})("onExporting",function(d){return t.globals.doExcelExportSimple(d,t.windreamIndexList.getExportFilename4List())}),e.nrm(25,"dxo-export",12)(26,"dxo-header-filter",13),e.EFF(27," --\x3e "),e.nrm(28,"dxo-filter-row",14)(29,"dxo-paging",15)(30,"dxo-scrolling",16)(31,"dxo-load-panel",15)(32,"dxo-sorting",17)(33,"dxo-selection",18),e.DNE(34,qe,2,1,"ng-container",19)(35,Qe,3,5,"div",20)(36,Ze,3,5,"div",20)(37,et,3,5,"div",20)(38,tt,3,5,"div",20),e.k0s()()),2&i&&(e.R7$(2),e.JRh(t.windreamIndexList._listName),e.R7$(4),e.Y8G("disabled",!(t.departmentDetails.inEditMode&&!t.windreamSearchToDepartmentDetails.entityIsLoading&&!t.windreamSearchToDepartmentDetails.isNew&&t.windreamIndexList.focusedEntityShadowed.enabledNewButton())),e.R7$(3),e.Y8G("disabled",!(!t.windreamSearchToDepartmentDetails.entityIsLoading&&!t.windreamSearchToDepartmentDetails.isNew&&t.windreamIndexList.items.length>0)),e.R7$(3),e.Y8G("title",t.departmentDataService.clpbrdWindreamOutColHint1+"\n"+t.departmentDataService.clpbrdWindreamOutColHints)("disabled",!(t.departmentDataService.clpbrdWindreamOutColHint1&&t.departmentDetails.inEditMode&&!t.windreamSearchToDepartmentDetails.entityIsLoading&&!t.windreamSearchToDepartmentDetails.isNew)),e.R7$(3),e.Y8G("disabled",!(t.departmentDetails.inEditMode&&!t.windreamSearchToDepartmentDetails.entityIsLoading&&!t.windreamSearchToDepartmentDetails.isNew&&!t.windreamIndexList.focusedEntityShadowed.isNew&&t.windreamIndexList.focusedEntityShadowed.enabledDeleteButton())),e.R7$(3),e.Y8G("disabled",!(t.departmentDetails.inEditMode&&!t.windreamSearchToDepartmentDetails.entityIsLoading&&!t.windreamSearchToDepartmentDetails.isNew&&!t.windreamIndexList.focusedEntityShadowed.isNew&&t.windreamIndexList.focusedItemIndex>0)),e.R7$(3),e.Y8G("disabled",!(t.departmentDetails.inEditMode&&!t.windreamSearchToDepartmentDetails.entityIsLoading&&!t.windreamSearchToDepartmentDetails.isNew&&!t.windreamIndexList.focusedEntityShadowed.isNew&&t.windreamIndexList.focusedItemIndex{class a{constructor(n,i){this.appDataService=n,this.departmentDataService=i}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||a)(e.rXU(T.D),e.rXU(h))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["app-department-documentart"]],inputs:{departmentDetails:"departmentDetails"},decls:3,vars:7,consts:[[1,"department-documentart"],[1,"label"],["id","documentarts","name","documentarts","placeholder","Dokumentenart","keyExpr","documentArtId","displayTemplate","${name} (${shortname})","sortField","*","separator",",",1,"documentart",3,"selectedItemsChange","dataSource","multiSelect","customFilter","selectedItems","disabled","height","useResultGrid"]],template:function(i,t){1&i&&(e.j41(0,"div",0),e.nrm(1,"label",1),e.j41(2,"hensel-selection",2),e.mxI("selectedItemsChange",function(d){return e.DH7(t.departmentDataService.selectedDocumentarts,d)||(t.departmentDataService.selectedDocumentarts=d),d}),e.bIt("selectedItemsChange",function(){return t.departmentDetails.entityWasChanged=!0}),e.k0s()()),2&i&&(e.R7$(2),e.Y8G("dataSource",t.appDataService.documentArtList.items)("multiSelect",!0)("customFilter","clientId="+t.departmentDetails.entity.clientId),e.R50("selectedItems",t.departmentDataService.selectedDocumentarts),e.Y8G("disabled",!t.departmentDetails.inNewEditMode)("height","100%")("useResultGrid",!0))},dependencies:[S.n],styles:['.department-documentart[_ngcontent-%COMP%]{width:100%;height:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:0 minmax(1px,1fr);grid-template-areas:"label" "attributes"}.documentart[_ngcontent-%COMP%]{grid-area:attributes;height:100%;width:100%}.label[_ngcontent-%COMP%]{grid-area:label}']})}return a})();const it=["detailForm"];function rt(a,m){if(1&a){const n=e.RV6();e.j41(0,"button",18,1),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.departmentDetails.new())}),e.j41(2,"mat-icon"),e.EFF(3,"add"),e.k0s(),e.EFF(4," Hinzuf\xfcgen "),e.k0s()}if(2&a){const n=e.XpG();e.Y8G("disabled",!n.departmentDetails.enabledNewButton())}}function dt(a,m){if(1&a){const n=e.RV6();e.j41(0,"button",19,2),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.departmentDetails.edit())}),e.j41(2,"mat-icon"),e.EFF(3,"edit"),e.k0s(),e.EFF(4," Bearbeiten "),e.k0s()}if(2&a){const n=e.XpG();e.Y8G("disabled",!n.departmentDetails.enabledEditButton())}}function ot(a,m){if(1&a){const n=e.RV6();e.j41(0,"button",20),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.save())}),e.j41(1,"mat-icon"),e.EFF(2,"save"),e.k0s(),e.EFF(3," Speichern "),e.k0s()}if(2&a){const n=e.XpG();e.Y8G("disabled",!n.departmentDetails.enabledSaveButton())}}function mt(a,m){if(1&a){const n=e.RV6();e.j41(0,"button",21),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.cancel())}),e.j41(1,"mat-icon"),e.EFF(2,"undo"),e.k0s(),e.EFF(3," Verwerfen "),e.k0s()}if(2&a){const n=e.XpG();e.Y8G("autofocus",!0)("disabled",!n.departmentDetails.enabledCancelButton())}}function st(a,m){if(1&a){const n=e.RV6();e.j41(0,"button",22),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.departmentDetails.delete())}),e.j41(1,"mat-icon"),e.EFF(2,"delete"),e.k0s(),e.EFF(3," L\xf6schen "),e.k0s()}if(2&a){const n=e.XpG();e.Y8G("disabled",!n.departmentDetails.enabledDeleteButton())}}let lt=(()=>{class a{get windreamSearchToDepartmentDetails(){return this.departmentDataService.windreamSearchToDepartmentDetails}constructor(n,i,t){this.departmentDataService=n,this.authorizeService=i,this.pageLoadingService=t,this.save=()=>{this.pageLoadingService.startSpinner(),this.departmentDetails.save(r=>this.afterSave(r),null,()=>this.pageLoadingService.hideSpinner())},this.cancel=()=>{this.departmentDetails.cancelWithSave(this.save)}}get windreamSearchList(){return this.departmentDataService.windreamSearchToDepartmentList}get windreamSearchDetails(){return this.departmentDataService.windreamSearchToDepartmentDetails}get windreamSearchItemToWindreamSearchToDepartmentList(){return this.departmentDataService.windreamSearchItemToWindreamSearchToDepartmentList}get windreamSearchItemToWindreamSearchToDepartmentDetails(){return this.departmentDataService.windreamSearchItemToWindreamSearchToDepartmentDetails}get windreamSearchItemList(){return this.departmentDataService.windreamSearchItemList}get windreamIndexList(){return this.departmentDataService.windreamIndexToWindreamSearchToDepartmentList}get windreamIndexDetails(){return this.departmentDataService.windreamIndexToWindreamSearchToDepartmentDetails}get focusedItem(){return this.departmentDetails.entity}ngAfterViewInit(){this.departmentDetails.beforeNewCallBack=this.newDepartmentInit.bind(this),this.departmentDetails.beforeSaveCallBack=this.beforeSaveDepartment.bind(this)}newDepartmentInit(n){this.departmentDataService.selectedDocumentarts=[],n.departmentTypeId=1,n.clientId=24110}beforeSaveDepartment(n){var i=this;return(0,De.A)(function*(){const t=i.departmentDataService.departmentList.items.reduce((r,d)=>d.entityId>r?d.entityId:r,0);return n.isNew()&&(n.departmentId=-(t+1)),i.departmentDataService.documentArtToDepartmentList.match2KeysArray(n,"departmentId",i.departmentDataService.selectedDocumentarts,"documentArtId"),0})()}afterSave(n){}keyboardInput(n){return V.N.LOGIN_IS_SHOWN||this.departmentDetails.shortcutsHandler(n,this.save,this.cancel)}static#e=this.\u0275fac=function(i){return new(i||a)(e.rXU(h),e.rXU(P.V),e.rXU(_e.V))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["app-department-detail"]],viewQuery:function(i,t){if(1&i&&e.GBs(it,5),2&i){let r;e.mGM(r=e.lsd())&&(t.detailForm=r.first)}},hostBindings:function(i,t){1&i&&e.bIt("keydown",function(d){return t.keyboardInput(d)},!1,e.tSv)},inputs:{departmentDetails:"departmentDetails"},decls:17,vars:17,consts:[["detailForm","ngForm"],["btnNew",""],["btnEdit",""],["id","form_department",1,"DepartmentDetailsForm"],[1,"card"],[1,"DepartmentDetails"],[1,"toolbar"],[1,"toolbar-button-row"],["id","btnNew","name","btnNew","class","abstand","mat-stroked-button","","title","Neue Abteilung",3,"disabled","click",4,"ngIf"],["id","btnEdit","name","btnEdit","class","abstand","mat-stroked-button","","title","Bearbeiten",3,"disabled","click",4,"ngIf"],["id","btnSave","name","btnSave","class","abstand","mat-stroked-button","","disabled","","title","Speichern",3,"disabled","click",4,"ngIf"],["id","btnUndo","name","btnUndo","class","abstand","mat-stroked-button","","disabled","","title","\xc4nderungen verwerfen",3,"autofocus","disabled","click",4,"ngIf"],["id","btnDelete","name","btnDelete","mat-stroked-button","","title","Benutzer l\xf6schen","class","last",3,"disabled","click",4,"ngIf"],[1,"DetailsContent",3,"departmentDetails"],[1,"DocumentArtList",3,"departmentDetails"],[1,"WindreamSearchList",3,"windreamSearchList","departmentDetails"],[1,"WindreamSearchItemList",3,"windreamSearchItemList","windreamSearchItemDetails","windreamSearchToDepartmentDetails","departmentDetails"],[1,"WindreamIndexList",3,"windreamIndexList","windreamIndexDetails","windreamSearchToDepartmentDetails","departmentDetails"],["id","btnNew","name","btnNew","mat-stroked-button","","title","Neue Abteilung",1,"abstand",3,"click","disabled"],["id","btnEdit","name","btnEdit","mat-stroked-button","","title","Bearbeiten",1,"abstand",3,"click","disabled"],["id","btnSave","name","btnSave","mat-stroked-button","","disabled","","title","Speichern",1,"abstand",3,"click","disabled"],["id","btnUndo","name","btnUndo","mat-stroked-button","","disabled","","title","\xc4nderungen verwerfen",1,"abstand",3,"click","autofocus","disabled"],["id","btnDelete","name","btnDelete","mat-stroked-button","","title","Benutzer l\xf6schen",1,"last",3,"click","disabled"]],template:function(i,t){1&i&&(e.j41(0,"form",3,0)(2,"mat-card",4),e.nrm(3,"mat-card-header"),e.j41(4,"mat-card-content",5)(5,"section",6)(6,"div",7),e.DNE(7,rt,5,1,"button",8)(8,dt,5,1,"button",9)(9,ot,4,1,"button",10)(10,mt,4,2,"button",11)(11,st,4,1,"button",12),e.k0s()(),e.nrm(12,"app-department-content",13)(13,"app-department-documentart",14)(14,"app-department-windream-search",15)(15,"app-department-windream-search-item",16)(16,"app-department-windream-index",17),e.k0s()()()),2&i&&(e.R7$(7),e.Y8G("ngIf",t.departmentDetails.canNew),e.R7$(),e.Y8G("ngIf",t.departmentDetails.canEdit),e.R7$(),e.Y8G("ngIf",t.departmentDetails.canEdit||t.departmentDetails.canNew),e.R7$(),e.Y8G("ngIf",t.departmentDetails.canEdit||t.departmentDetails.canNew),e.R7$(),e.Y8G("ngIf",t.departmentDetails.canDelete),e.R7$(),e.Y8G("departmentDetails",t.departmentDetails),e.R7$(),e.Y8G("departmentDetails",t.departmentDetails),e.R7$(),e.Y8G("windreamSearchList",t.windreamSearchList)("departmentDetails",t.departmentDetails),e.R7$(),e.Y8G("windreamSearchItemList",t.windreamSearchItemToWindreamSearchToDepartmentList)("windreamSearchItemDetails",t.windreamSearchItemToWindreamSearchToDepartmentDetails)("windreamSearchToDepartmentDetails",t.windreamSearchToDepartmentDetails)("departmentDetails",t.departmentDetails),e.R7$(),e.Y8G("windreamIndexList",t.windreamIndexList)("windreamIndexDetails",t.windreamIndexDetails)("windreamSearchToDepartmentDetails",t.windreamSearchToDepartmentDetails)("departmentDetails",t.departmentDetails))},dependencies:[u.bT,_.iV,f.An,D._m,D.XB,D.Rm,c.qT,c.cb,c.cV,we,Ge,$e,nt,at],styles:['.DepartmentDetails[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-template-rows:auto repeat(1,minmax(1px,250px));grid-template-columns:minmax(1px,.7fr) minmax(1px,.7fr) minmax(1px,.5fr) minmax(1px,.5fr) minmax(1px,1fr);grid-row-gap:6px;grid-column-gap:10px;grid-template-areas:"toolbar toolbar toolbar toolbar toolbar" "detail documentArtList windreamSearchList windreamSearchItemList windreamIndexList";z-index:10;position:relative}.WindreamSearchItemList[_ngcontent-%COMP%]{grid-area:windreamSearchItemList}.WindreamIndexList[_ngcontent-%COMP%]{grid-area:windreamIndexList}.WindreamSearchList[_ngcontent-%COMP%]{grid-area:windreamSearchList}.DetailsContent[_ngcontent-%COMP%]{grid-area:detail}.DocumentArtList[_ngcontent-%COMP%]{grid-area:documentArtList}.abstand[_ngcontent-%COMP%]{margin-right:1px!important}.toolbar[_ngcontent-%COMP%]{grid-area:toolbar}.card[_ngcontent-%COMP%]{padding:12px;margin:2px}']})}return a})();const ut=[{path:"**",component:(()=>{class a{constructor(n){this.departmentDataService=n}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||a)(e.rXU(h))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["app-department"]],decls:3,vars:2,consts:[[1,"DepartmentComponent"],[1,"DepartmentListComponent",3,"dataSource"],[1,"DepartmentDetailsComponent",3,"departmentDetails"]],template:function(i,t){1&i&&(e.j41(0,"div",0),e.nrm(1,"app-department-list",1)(2,"app-department-detail",2),e.k0s()),2&i&&(e.R7$(),e.Y8G("dataSource",t.departmentDataService.departmentList),e.R7$(),e.Y8G("departmentDetails",t.departmentDataService.departmentList.focusedEntityShadowed))},dependencies:[Ie,lt],styles:['.DepartmentComponent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);grid-template-areas:"list" "details";grid-column-gap:5px;grid-row-gap:5px}.DepartmentListComponent[_ngcontent-%COMP%]{grid-area:list}.DepartmentDetailsComponent[_ngcontent-%COMP%]{grid-area:details;z-index:10}']})}return a})(),canActivate:[s(27938).q]}];let ht=(()=>{class a{static#e=this.\u0275fac=function(i){return new(i||a)};static#t=this.\u0275mod=e.$C({type:a});static#n=this.\u0275inj=e.G2t({imports:[N.iI.forChild(ut),N.iI]})}return a})(),gt=(()=>{class a{static#e=this.\u0275fac=function(i){return new(i||a)};static#t=this.\u0275mod=e.$C({type:a});static#n=this.\u0275inj=e.G2t({imports:[u.MD,ht,B.e,b.N,c.YN,S.n,k.d,H.b,$.L,A.U,C.xZ,K.F]})}return a})()}}]); \ No newline at end of file diff --git a/ClientApp/staff-db-ui/dist/140.c3d21c5ed0a40561.js b/ClientApp/staff-db-ui/dist/140.c3d21c5ed0a40561.js new file mode 100644 index 0000000..775453d --- /dev/null +++ b/ClientApp/staff-db-ui/dist/140.c3d21c5ed0a40561.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkstaffdb=self.webpackChunkstaffdb||[]).push([[140],{50140:(pt,x,r)=>{r.r(x),r.d(x,{EmployeeModule:()=>lt});var u=r(60177),c=r(89417),Y=r(18406),D=r(94753),B=r(38237),H=r(33514),X=r(37712),E=r(87283),U=r(94811),M=r(18498),e=r(54438),A=r(10467),m=r(44703),$=r(65343),v=r(81121),f=r(23462);class K extends f.M{constructor(){super(...arguments),this.typeName=m.Hv.EmployeeToAttribute}get entityId(){return this.employeeToAttributeId}set entityId(p){this.employeeToAttributeId=p}}class z extends f.M{constructor(){super(...arguments),this.typeName=m.Hv.EmployeeToDepartment}get entitytitle(){return'Zuweisung von Abteilung "'+this.departmentName+'" f\xfcr Mitarbeiter'}get entityId(){return this.employeeToDepartmentId}set entityId(p){this.employeeToDepartmentId=p}}var w=r(15113);class Z extends f.M{constructor(){super(...arguments),this.typeName=m.Hv.EmployeeToWebapp}get entitytitle(){return'Zuweisung von Webapp "'+this.webAppName+'" f\xfcr Mitarbeiter'}get arExtendedDepartmentIdList(){return(0,w.TR)(this,"extendedDepartmentIdList","_arExtendedDepartmentIdList")}set arExtendedDepartmentIdList(p){(0,w.le)(this,"extendedDepartmentIdList","_arExtendedDepartmentIdList",p)}get arAdditionalRoleIdList(){return(0,w.TR)(this,"additionalRoleIdList","_arAdditionalRoleIdList")}set arAdditionalRoleIdList(p){(0,w.le)(this,"additionalRoleIdList","_arAdditionalRoleIdList",p)}get entityId(){return this.employeeToWebAppId}set entityId(p){this.employeeToWebAppId=p}clear(){super.clear(),this._arExtendedDepartmentIdList=void 0,this._arAdditionalRoleIdList=void 0}assign(p){const n=this.entityId,o=this.extendedDepartmentIdList,t=this.additionalRoleIdList;this.clear();const l=Object.assign(this,p);return n<=0&&!this.isNew()&&(this.extendedDepartmentIdList=o,this.additionalRoleIdList=t),l}}var J=r(83722),Q=r(47094);class q extends f.M{constructor(){super(...arguments),this.typeName=m.Hv.WebAppToDepartment}get entityId(){return this.webAppToDepartmentId}set entityId(p){this.webAppToDepartmentId=p}}class ee extends Q.${}class te extends f.M{constructor(){super(...arguments),this.typeName=m.Hv.WebAppToWebAppAdditionalRole}get entityId(){return this.webAppToWebAppAdditionalRoleId}set entityId(p){this.webAppToWebAppAdditionalRoleId=p}}var ne=r(51631),h=r(99589),g=r(96995),ie=r(45197),N=r(37085);let b=(()=>{class i extends $.W{get appPageNoQueries(){return 1}constructor(n,o,t){super(),this.appDataService=n,this.repositoryService=o,this.uiNotificationsService=t,this.appPage=0,this.employeeList=new h.J(v.bJ,"Mitarbeiterliste",m.Hv.Employee),this.employeeFilter=new v.sI("EmployeeFullFilter"),this.employee2AllFilter=new v.P4("EmployeeFilter"),this.employee2DepartmentList=new h.J(z,"Abteilungen von Mitarbeiter",m.Hv.EmployeeToDepartment),this.employee2WebAppList=new h.J(Z,"Applikationen von Mitarbeiter",m.Hv.EmployeeToWebapp),this.employee2AttributeList=new h.J(K,"Merkmale von Mitarbeiter",m.Hv.EmployeeToAttribute),this.employeeList.alwaysFocused=!0,this.employeeList.focusedCallBack=this.focusCallBack.bind(this),this.employeeList.filter=this.employeeFilter,this.employeeDetails=this.employeeList.createFocusedShadowEntity(ne.T.EN_ViewMode),this.employeeDetails.loadedDataExpiresInMs=m.Js,this.activateRouting4EntityList(this.employeeList),this.baseEntityWrapperWaitLoading=this.employeeDetails,this.prepareDetailsList(this.employee2DepartmentList),this.prepareDetailsList(this.employee2WebAppList),this.employeeDetails.detailItems.register(this.employee2DepartmentList,null,"employeeId"),this.employeeDetails.detailItems.register(this.employee2WebAppList,null,"employeeId"),this.employeeDetails.detailItems.register(this.employee2AttributeList,null,"employeeId"),this.employee2WebAppList.batchInsert=!1,this.employee2WebAppList.beforeSaveCallBack=this.beforeSaveEmployee2WebAppList.bind(this),this.employee2WebAppList.afterInsertCallBack=this.afterInsertEmployee2WebAppList.bind(this),this.employee2AttributeList.filter=this.employee2AllFilter,this.loadBaseData(),this.init()}beforeSaveEmployee2WebAppList(n){var o=this;return(0,A.A)(function*(){return n.forEach(t=>{t.entityChanged&&!t.isNew()&&o.afterInsertEmployee2WebAppList(t,null,!1)}),o.employee2WebAppList.deletedItems.forEach(t=>{t.arExtendedDepartmentIdList=[],t.arAdditionalRoleIdList=[],o.afterInsertEmployee2WebAppList(t,null,!1)}),0})()}afterInsertEmployee2WebAppList(n,o,t=!0){if(n){const l=new ee("EmployeeToWebAppFilter");l.employeeToWebAppId=n.employeeToWebAppId;const a=new h.J(q,"Abteilungen f\xfcr Mitarbeiterapplikation",m.Hv.WebAppToDepartment,l,this.appLogsService,this.repositoryService,this.uiNotificationsService),s=new h.J(te,"Zusatzrole f\xfcr Mitarbeiterapplikation",m.Hv.WebAppToWebAppAdditionalRole,l,this.appLogsService,this.repositoryService,this.uiNotificationsService);this._saveEmployee2WebAppSublists(n,a,"arExtendedDepartmentIdList","departmentId",P=>{this._saveEmployee2WebAppSublists(n,s,"arAdditionalRoleIdList","webAppAdditionalRoleId",st=>{t&&(P||st)?n.load(this.repositoryService,o):o&&o()})})}}_saveEmployee2WebAppSublists(n,o,t,l,a){let s=!1;o.load(()=>{(s=o.match2array(n,"employeeToWebAppId",t,l))?o.save(()=>{a&&a(!0)},P=>{a&&a(!0)}):a&&a(!1)})}prepareDetailsList(n){n.createFocusedShadowEntity(),n.filter=this.employee2AllFilter,n.focusedEntityShadowed.dontLoadEntity=!0,n.focusedEntityShadowed.dontUpdateEntityDirectly=!0,n.focusedEntityShadowed.dontInsertEntityDirectly=!0}loadData(){super.loadData(),this.employeeList.load(null,null,()=>this.pageLoadingService.updatePageLoadedCounters(this.appPage))}loadBaseData(){super.loadBaseData(3,10),this.appDataService.loadData(()=>this.pageLoadingService.updatePageLoadedCounters(3))}focusCallBack(n){}clearData(){super.clearData(),this.employeeFilter.filterReset(),this.employeeList.clear()}onLoggedInOut(n){this.userChanged(new J.K(n)),super.onLoggedInOut(n)}userChanged(n){this.authService.isLoggedIn()&&(this.employeeDetails.canNew=n.isMaster,this.employeeDetails.canEdit=this.employeeDetails.canNew,this.employeeDetails.canDelete=this.employeeDetails.canNew)}static#e=this.\u0275fac=function(o){return new(o||i)(e.KVO(g.D),e.KVO(ie.U),e.KVO(N.u))};static#t=this.\u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var F=r(85296),S=r(62855),R=r(19057),y=r(20962),d=r(31837),j=r(67336),G=r(75445),T=r(62560),oe=r(89692),_=r(85956),I=r(99213),O=r(43684),C=r(21009),k=r(92);let ae=(()=>{class i{constructor(n,o,t,l,a,s){this.employeeDataService=n,this.appDataService=o,this.authService=t,this.localeService=l,this.clipboardService=a,this.notifierService=s,this.filterFetch=new e.bkB,this.dropDownAllCaption="core.dropdown-option.all",this.dropDownAllValueString="*",this.dropDownAllValueInt=0,this.allCaption="core.dropdown-option.all",this.allValue=0,this.noneCaption="core.dropdown-option.none",this.noneValue=-1}ngOnInit(){}ngAfterViewInit(){}onFilterClick(){this.employeeDetails.inViewMode&&this.filterFetch.emit()}onClearClick(){this.filterObject.filterReset(),this.filterObject.isActive=!0,this.onFilterClick()}onEmailClick(){this.employeeList.items.filter(l=>!!l.email).map(l=>l.entityId);const o=this.employeeList.items.sort((l,a)=>l.lastName.localeCompare(a.lastName)).map(l=>l.email).filter(l=>!!l);if(0===o.length)return;this.clipboardService.copy(o.join("; "));const t=o.length>1?"n":"";this.notifierService.showMessage(`${o.length} Emailadresse${t} wurde${t} in die Zwischenablage gespeichert`)}keyboardInput(n){return!(!G.N.LOGIN_IS_SHOWN&&!this.employeeDetails.keyDownListenerStopped&&n.ctrlKey&&n.which===j.F&&(n.stopPropagation(),this.onFilterClick(),1))}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(b),e.rXU(g.D),e.rXU(T.V),e.rXU(S.i),e.rXU(oe.WW),e.rXU(N.u))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-filter"]],hostBindings:function(o,t){1&o&&e.bIt("keydown",function(a){return t.keyboardInput(a)},!1,e.tSv)},inputs:{filterObject:"filterObject",employeeDetails:"employeeDetails",employeeList:"employeeList"},outputs:{filterFetch:"filterFetch"},decls:23,vars:20,consts:[[1,"card"],[1,"filterCardContainer"],["title","Suche in Nachnamen, Vornamen","placeholder","Vor- oder Nachname","suffix","---",1,"filterName",3,"ngModelChange","keyup.Enter","ngModel"],["placeholder","K\xfcrzel",1,"filterShortName",3,"ngModelChange","keyup.Enter","ngModel"],["placeholder","Login",1,"filterLogin",3,"ngModelChange","keyup.Enter","ngModel"],["id","filterDepartment","placeholder","Abteilung","keyExpr","entityId","displayExpr","departmentName","sortField","*","separator",",",1,"filterDepartment",3,"selectedItemsChange","dataSource","multiSelect","selectedItems"],["id","filterWebApp","placeholder","Webapp","keyExpr","entityId","displayExpr","webAppName","sortField","*","separator",",",1,"filterWebApp",3,"selectedItemsChange","dataSource","multiSelect","selectedItems"],["id","filterAttribute","placeholder","Merkmal","keyExpr","entityId","displayExpr","name","sortField","*","separator",",",1,"filterAttribute",3,"selectedItemsChange","dataSource","multiSelect","selectedItems"],["mask","separator.0","placeholder","MitarbeiterId",1,"filterEmployeeId",3,"ngModelChange","keyup.Enter","leadZero","decimalMarker","thousandSeparator","ngModel"],["id","filterMandant","placeholder","Mandant","keyExpr","clientId","displayExpr","subsidiaryCode","sortField","*","separator",",",1,"filterMandant",3,"selectedItemsChange","dataSource","multiSelect","selectedItems"],["name","Enabled","labelPosition","after",1,"filterIsActive",2,"float","left",3,"change","ngModelChange","ngModel"],[1,"filterButtons","mat-button-withoutcaption"],["id","filterBtnClear","mat-stroked-button","","type","button","title","Reset",1,"filterBtn",3,"click"],["id","filterBtnEmails","mat-stroked-button","","type","button","title","Emaildresse f\xfcr ausgew\xe4hlten Mitarbeiter in die Zwischenablage speichern",1,"filterBtn",3,"click"],["id","filterBtnFind","mat-stroked-button","","type","submit","titel","Suchen",1,"filterBtn",3,"click"]],template:function(o,t){1&o&&(e.j41(0,"mat-card",0),e.nrm(1,"mat-card-header"),e.j41(2,"mat-card-content",1)(3,"hensel-input",2),e.mxI("ngModelChange",function(a){return e.DH7(t.filterObject.name,a)||(t.filterObject.name=a),a}),e.bIt("keyup.Enter",function(){return t.onFilterClick()}),e.k0s(),e.j41(4,"hensel-input",3),e.mxI("ngModelChange",function(a){return e.DH7(t.filterObject.shortName,a)||(t.filterObject.shortName=a),a}),e.bIt("keyup.Enter",function(){return t.onFilterClick()}),e.k0s(),e.j41(5,"hensel-input",4),e.mxI("ngModelChange",function(a){return e.DH7(t.filterObject.loginName,a)||(t.filterObject.loginName=a),a}),e.bIt("keyup.Enter",function(){return t.onFilterClick()}),e.k0s(),e.j41(6,"hensel-selection",5),e.mxI("selectedItemsChange",function(a){return e.DH7(t.filterObject.departmentIds,a)||(t.filterObject.departmentIds=a),a}),e.bIt("selectedItemsChange",function(){return t.onFilterClick()}),e.k0s(),e.j41(7,"hensel-selection",6),e.mxI("selectedItemsChange",function(a){return e.DH7(t.filterObject.webappIds,a)||(t.filterObject.webappIds=a),a}),e.bIt("selectedItemsChange",function(){return t.onFilterClick()}),e.k0s(),e.j41(8,"hensel-selection",7),e.mxI("selectedItemsChange",function(a){return e.DH7(t.filterObject.attributeIds,a)||(t.filterObject.attributeIds=a),a}),e.bIt("selectedItemsChange",function(){return t.onFilterClick()}),e.k0s(),e.j41(9,"hensel-input",8),e.mxI("ngModelChange",function(a){return e.DH7(t.filterObject.employeeId,a)||(t.filterObject.employeeId=a),a}),e.bIt("keyup.Enter",function(){return t.onFilterClick()}),e.k0s(),e.j41(10,"hensel-selection",9),e.mxI("selectedItemsChange",function(a){return e.DH7(t.filterObject.clientId,a)||(t.filterObject.clientId=a),a}),e.bIt("selectedItemsChange",function(){return t.onFilterClick()}),e.k0s(),e.j41(11,"mat-checkbox",10),e.bIt("change",function(){return t.onFilterClick()}),e.mxI("ngModelChange",function(a){return e.DH7(t.filterObject.isActive,a)||(t.filterObject.isActive=a),a}),e.EFF(12," Aktiv "),e.k0s(),e.j41(13,"section",11)(14,"button",12),e.bIt("click",function(){return t.onClearClick()}),e.j41(15,"mat-icon"),e.EFF(16,"clear"),e.k0s()(),e.j41(17,"button",13),e.bIt("click",function(){return t.onEmailClick()}),e.j41(18,"mat-icon"),e.EFF(19,"alternate_email"),e.k0s()(),e.j41(20,"button",14),e.bIt("click",function(){return t.onFilterClick()}),e.j41(21,"mat-icon"),e.EFF(22,"search"),e.k0s()()()()()),2&o&&(e.R7$(3),e.R50("ngModel",t.filterObject.name),e.R7$(),e.R50("ngModel",t.filterObject.shortName),e.R7$(),e.R50("ngModel",t.filterObject.loginName),e.R7$(),e.Y8G("dataSource",t.appDataService.departmentList.items)("multiSelect",!0),e.R50("selectedItems",t.filterObject.departmentIds),e.R7$(),e.Y8G("dataSource",t.appDataService.webAppList.items)("multiSelect",!0),e.R50("selectedItems",t.filterObject.webappIds),e.R7$(),e.Y8G("dataSource",t.appDataService.employeeAttributeList.items)("multiSelect",!0),e.R50("selectedItems",t.filterObject.attributeIds),e.R7$(),e.Y8G("leadZero",!0)("decimalMarker",t.localeService.decimalSeparator)("thousandSeparator",""),e.R50("ngModel",t.filterObject.employeeId),e.R7$(),e.Y8G("dataSource",t.appDataService.subsidiaryList.items)("multiSelect",!1),e.R50("selectedItems",t.filterObject.clientId),e.R7$(),e.R50("ngModel",t.filterObject.isActive))},dependencies:[_.iV,I.An,y._m,y.XB,y.Rm,O.NZ,c.BC,c.vS,C.n,k.d],styles:['.filterCardContainer[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-column-gap:15px;grid-template-rows:repeat(1,auto);grid-template-columns:repeat(8,minmax(0,1fr)) auto auto;grid-template-areas:"filterName filterShortName filterLogin filterDepartment filterWebApp filterAttribute filterEmployeeId filterMandant filterIsActive filterButtons "}.filterIsActive[_ngcontent-%COMP%]{margin:auto;grid-area:filterIsActive}.filterMandant[_ngcontent-%COMP%]{grid-area:filterMandant}.filterName[_ngcontent-%COMP%]{grid-area:filterName}.filterShortName[_ngcontent-%COMP%]{grid-area:filterShortName}.filterLogin[_ngcontent-%COMP%]{grid-area:filterLogin}.filterWebApp[_ngcontent-%COMP%]{grid-area:filterWebApp}.filterDepartment[_ngcontent-%COMP%]{grid-area:filterDepartment}.filterEmployeeId[_ngcontent-%COMP%]{grid-area:filterEmployeeId}.filterAttribute[_ngcontent-%COMP%]{grid-area:filterAttribute}.filterButtons[_ngcontent-%COMP%]{grid-area:filterButtons;margin-left:auto}.card[_ngcontent-%COMP%]{padding:10px;margin:2px 2px 0}.filterButtons[_ngcontent-%COMP%] .filterBtn[_ngcontent-%COMP%]{width:unset}']})}return i})();const le=()=>({exportAll:"Excel Export"});function se(i,p){if(1&i&&e.nrm(0,"dxo-format",19),2&i){const n=e.XpG(3);e.Y8G("type",n.localeService.dateFormat)}}function pe(i,p){if(1&i&&e.nrm(0,"dxo-format",19),2&i){const n=e.XpG(3);e.Y8G("type",n.localeService.dateTimeFormat)}}function re(i,p){if(1&i&&e.nrm(0,"dxo-lookup",20),2&i){const n=e.XpG(3);e.Y8G("dataSource",null==n.appDataService.rangList?null:n.appDataService.rangList.items)}}function de(i,p){if(1&i&&(e.qex(0),e.j41(1,"dxi-column",16),e.DNE(2,se,1,1,"dxo-format",17)(3,pe,1,1,"dxo-format",17)(4,re,1,1,"dxo-lookup",18),e.k0s(),e.bVm()),2&i){const n=e.XpG().$implicit;e.R7$(),e.Y8G("allowHeaderFiltering",n.allowHeaderFiltering)("dataField",n.dataField)("dataType",n.dataType)("caption",n.caption)("width",n.width)("sortIndex",n.sortIndex)("sortOrder",n.sortOrder)("visibleIndex",n.visibleIndex)("visible",n.visible)("fixed",n.fixed)("headerCellTemplate",n.headerCellTemplate)("cellTemplate",n.cellTemplate)("alignment",n.alignment),e.R7$(),e.Y8G("ngIf","date"===n.dataType),e.R7$(),e.Y8G("ngIf","datetime"===n.dataType),e.R7$(),e.Y8G("ngIf","rangId"===n.dataField)}}function me(i,p){if(1&i&&(e.qex(0),e.DNE(1,de,5,16,"ng-container",15),e.bVm()),2&i){const n=p.$implicit;e.R7$(),e.Y8G("ngIf",n.visible)}}function ce(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.0-0",o.culture)," ")}}function ue(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.1-1",o.culture)," ")}}function ge(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.2-2",o.culture)," ")}}function ye(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.3-3",o.culture)," ")}}function he(i,p){1&i&&e.nrm(0,"div",21)}let be=(()=>{class i{constructor(n,o,t,l){this.employeeDataService=n,this.appDataService=o,this.localeService=t,this.globals=l,this.columnConfigList=new F.L}ngOnInit(){this.initColumns()}initColumns(){let n;this.appDataService.showIds&&(n=this.columnConfigList.addNumber("Id","entityId",7,0)),this.appDataService.showIds&&(n=this.columnConfigList.add("Nr","employeeNo",7)),n=this.columnConfigList.add("Nachname","lastName",25),n.sortIndex=1,n.sortOrder="asc",n=this.columnConfigList.add("Vorname","firstName",15),n.sortIndex=2,n.sortOrder="asc",n=this.columnConfigList.add("K\xfcrzel","shortName",7),n=this.columnConfigList.add("Position","position",25),n=this.columnConfigList.add("Login","loginName",15),n=this.columnConfigList.add("Email","email",30),n=this.columnConfigList.add("Rang","rangId",10),n=this.columnConfigList.add("Handynummer","mobilePhoneNo",20),n=this.columnConfigList.add("Festnetznummer","phoneNo",20),n=this.columnConfigList.add("Department","departmentNamesList",30),n=this.columnConfigList.add("Webapps","webappNamesList",25),n=this.columnConfigList.add("Merkmale","attributeNamesList",20),n=this.columnConfigList.add("Mandant","mandantCode",15),n=this.columnConfigList.addBoolean("Aktiv","isActive",-50),n.alignment="left",this.columnConfigList.recalcWidth()}loadData(){this.employeeDataService.loadData()}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(b),e.rXU(g.D),e.rXU(S.i),e.rXU(R.RV))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-list"]],inputs:{dataSource:"dataSource"},decls:21,vars:27,consts:[["gridEmployee",""],[1,"EmployeeList"],[1,"FilterComponent",3,"filterFetch","employeeDetails","employeeList","filterObject"],[1,"card"],["id","gridEmployee","keyExpr","employeeId","columnResizingMode","nextColumn","noDataText","Keine Daten vorhanden",3,"focusedRowIndexChange","focusedRowKeyChange","selectedRowKeysChange","onKeyDown","onFocusedRowChanging","onRowDblClick","onExporting","dataSource","focusedRowEnabled","autoNavigateToFocusedRow","focusedRowIndex","focusedRowKey","selectedRowKeys","showBorders","allowColumnResizing"],[3,"enabled","texts"],[3,"visible"],[3,"visible","applyFilter"],[3,"enabled"],["mode","virtual"],["mode","multiple"],["mode","none"],[4,"ngFor","ngForOf"],[4,"dxTemplate","dxTemplateOf"],["class","disableClicks",4,"ngIf"],[4,"ngIf"],[3,"allowHeaderFiltering","dataField","dataType","caption","width","sortIndex","sortOrder","visibleIndex","visible","fixed","headerCellTemplate","cellTemplate","alignment"],[3,"type",4,"ngIf"],["valueExpr","entityId","displayExpr","rangShortname",3,"dataSource",4,"ngIf"],[3,"type"],["valueExpr","entityId","displayExpr","rangShortname",3,"dataSource"],[1,"disableClicks"]],template:function(o,t){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"app-employee-filter",2),e.bIt("filterFetch",function(){return e.eBV(l),e.Njj(t.loadData())}),e.k0s(),e.j41(2,"mat-card",3),e.nrm(3,"mat-card-header"),e.j41(4,"mat-card-content")(5,"dx-data-grid",4,0),e.mxI("focusedRowIndexChange",function(s){return e.eBV(l),e.DH7(t.dataSource.focusedItemGridIndex,s)||(t.dataSource.focusedItemGridIndex=s),e.Njj(s)})("focusedRowKeyChange",function(s){return e.eBV(l),e.DH7(t.dataSource.focusedItemId,s)||(t.dataSource.focusedItemId=s),e.Njj(s)})("selectedRowKeysChange",function(s){return e.eBV(l),e.DH7(t.dataSource.selectedItemIds,s)||(t.dataSource.selectedItemIds=s),e.Njj(s)}),e.bIt("onKeyDown",function(s){return e.eBV(l),s.handled="Escape"===s.event.key,e.Njj(t.dataSource.gridUpDownProcessing(s))})("onFocusedRowChanging",function(s){return e.eBV(l),e.Njj(t.dataSource.onFocusedRowChanging(s))})("onRowDblClick",function(s){return e.eBV(l),e.Njj(t.dataSource.focusedEntityShadowed.delayedEdit(s.data.entityId))})("onExporting",function(s){return e.eBV(l),e.Njj(t.globals.doExcelExportSimple(s,t.dataSource.getExportFilename4List()))}),e.nrm(7,"dxo-export",5)(8,"dxo-header-filter",6)(9,"dxo-filter-row",7)(10,"dxo-paging",8)(11,"dxo-scrolling",9)(12,"dxo-load-panel",8)(13,"dxo-sorting",10)(14,"dxo-selection",11),e.DNE(15,me,2,1,"ng-container",12)(16,ce,3,5,"div",13)(17,ue,3,5,"div",13)(18,ge,3,5,"div",13)(19,ye,3,5,"div",13),e.k0s()()(),e.DNE(20,he,1,0,"div",14),e.k0s()}2&o&&(e.R7$(),e.Y8G("employeeDetails",t.employeeDataService.employeeDetails)("employeeList",t.employeeDataService.employeeList)("filterObject",t.dataSource.filter),e.R7$(4),e.HbH("gridEmployee"+(t.columnConfigList.withExport?" withexport":"")),e.Y8G("dataSource",t.dataSource.items)("focusedRowEnabled",!0)("autoNavigateToFocusedRow",!0),e.R50("focusedRowIndex",t.dataSource.focusedItemGridIndex)("focusedRowKey",t.dataSource.focusedItemId)("selectedRowKeys",t.dataSource.selectedItemIds),e.Y8G("showBorders",!0)("allowColumnResizing",!0),e.R7$(2),e.Y8G("enabled",t.columnConfigList.withExport)("texts",e.lJ4(26,le)),e.R7$(),e.Y8G("visible",!1),e.R7$(),e.Y8G("visible",!1)("applyFilter",!0),e.R7$(),e.Y8G("enabled",!1),e.R7$(2),e.Y8G("enabled",!0),e.R7$(3),e.Y8G("ngForOf",t.columnConfigList.columns),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_0"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_1"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_2"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_3"),e.R7$(),e.Y8G("ngIf",t.employeeDataService.employeeDetails.inNotViewMode))},dependencies:[u.Sq,u.bT,y._m,y.XB,y.Rm,D.s,d.hVU,d.nj_,d.gtJ,d.b4U,d.ABd,d.ZJU,d.FTx,d.xzc,d.PVd,d.eA9,d.Z6T,E.eC,ae,u.QX],styles:['.EmployeeList[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);grid-row-gap:7px;grid-template-areas:"filter" "grid"}.FilterComponent[_ngcontent-%COMP%]{grid-area:filter;margin:0}.card[_ngcontent-%COMP%]{grid-area:grid;width:100%;padding:0;margin:0;border-radius:0;box-shadow:none}.gridEmployee[_ngcontent-%COMP%]{position:absolute;height:100%;width:100%;padding-left:1px;padding-right:1px;padding-bottom:1px}']})}return i})();var fe=r(76461);const _e=["detailForm"];let Ie=(()=>{class i{constructor(n,o,t,l){this.appDataService=n,this.employeeDataService=o,this.authorizeService=t,this.globals=l}ngAfterViewInit(){this.employeeDetails.detailForm=this.detailForm}ngOnInit(){}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(g.D),e.rXU(b),e.rXU(T.V),e.rXU(R.RV))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-details-content"]],viewQuery:function(o,t){if(1&o&&e.GBs(_e,5),2&o){let l;e.mGM(l=e.lsd())&&(t.detailForm=l.first)}},inputs:{employeeDetails:"employeeDetails"},decls:17,vars:32,consts:[["detailForm","ngForm"],[1,"employeeDetailsContent"],["name","employeeNo","placeholder","Mitarbeiter Nr.","required","","autocomplete","off","maxlength","50",1,"input-employeeno",3,"ngModelChange","ngModel","disabled"],["name","salutation","placeholder","Anrede","maxlength","50",1,"input-salutation",3,"ngModelChange","ngModel","disabled"],["name","firstname","placeholder","Vorname","required","","maxlength","50",1,"input-firstname",3,"ngModelChange","ngModel","disabled"],["name","lastname","placeholder","Nachname","required","","maxlength","50",1,"input-lastname",3,"ngModelChange","ngModel","disabled"],["name","shortname","placeholder","K\xfcrzel","required","","maxlength","10",1,"input-shortname",3,"ngModelChange","ngModel","disabled"],["name","login","placeholder","Login","required","","maxlength","50",1,"input-loginname",3,"ngModelChange","ngModel","disabled"],["name","Email","placeholder","User Email","maxlength","50",1,"input-email",3,"ngModelChange","ngModel","disabled"],["name","Mandant","placeholder","Mandant","keyExpr","clientId","displayExpr","subsidiaryCode","sortField","*","required","",1,"input-mandant",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled"],["name","title","placeholder","Titel","maxlength","50",1,"input-title",3,"ngModelChange","ngModel","disabled"],["name","position","placeholder","Position","required","","maxlength","50",1,"input-position",3,"ngModelChange","ngModel","disabled"],["name","rang","placeholder","Rang","keyExpr","entityId","displayExpr","rangName","sortField","*","required","",1,"input-rang",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled"],["name","mobileno","placeholder","Handynummer","maxlength","30",1,"input-mobilephoneno",3,"ngModelChange","ngModel","disabled"],["name","phoneno","placeholder","Festnetznummer","maxlength","30",1,"input-phoneno",3,"ngModelChange","ngModel","disabled"],["name","Enabled","labelPosition","after",1,"input-isActive",2,"float","left",3,"ngModelChange","ngModel","disabled"]],template:function(o,t){if(1&o){const l=e.RV6();e.j41(0,"form",1,0)(2,"hensel-input",2),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.employeeNo,s)||(t.employeeDetails.entity.employeeNo=s),e.Njj(s)}),e.k0s(),e.j41(3,"hensel-input",3),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.salutation,s)||(t.employeeDetails.entity.salutation=s),e.Njj(s)}),e.k0s(),e.j41(4,"hensel-input",4),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.firstName,s)||(t.employeeDetails.entity.firstName=s),e.Njj(s)}),e.k0s(),e.j41(5,"hensel-input",5),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.lastName,s)||(t.employeeDetails.entity.lastName=s),e.Njj(s)}),e.k0s(),e.j41(6,"hensel-input",6),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.shortName,s)||(t.employeeDetails.entity.shortName=s),e.Njj(s)}),e.k0s(),e.j41(7,"hensel-input",7),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.loginName,s)||(t.employeeDetails.entity.loginName=s),e.Njj(s)}),e.k0s(),e.j41(8,"hensel-input",8),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.email,s)||(t.employeeDetails.entity.email=s),e.Njj(s)}),e.k0s(),e.j41(9,"hensel-selection",9),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.clientId,s)||(t.employeeDetails.entity.clientId=s),e.Njj(s)}),e.k0s(),e.j41(10,"hensel-input",10),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.title,s)||(t.employeeDetails.entity.title=s),e.Njj(s)}),e.k0s(),e.j41(11,"hensel-input",11),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.position,s)||(t.employeeDetails.entity.position=s),e.Njj(s)}),e.k0s(),e.j41(12,"hensel-selection",12),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.rangId,s)||(t.employeeDetails.entity.rangId=s),e.Njj(s)}),e.k0s(),e.j41(13,"hensel-input",13),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.mobilePhoneNo,s)||(t.employeeDetails.entity.mobilePhoneNo=s),e.Njj(s)}),e.k0s(),e.j41(14,"hensel-input",14),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.phoneNo,s)||(t.employeeDetails.entity.phoneNo=s),e.Njj(s)}),e.k0s(),e.j41(15,"mat-checkbox",15),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.isActive,s)||(t.employeeDetails.entity.isActive=s),e.Njj(s)}),e.EFF(16," Aktiv "),e.k0s()()}2&o&&(e.R7$(2),e.R50("ngModel",t.employeeDetails.entity.employeeNo),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.salutation),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.firstName),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.lastName),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.shortName),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.loginName),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.email),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.Y8G("dataSource",t.appDataService.subsidiaryList.items)("multiSelect",!1),e.R50("selectedItems",t.employeeDetails.entity.clientId),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.title),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.position),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.Y8G("dataSource",t.appDataService.rangList.items)("multiSelect",!1),e.R50("selectedItems",t.employeeDetails.entity.rangId),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.mobilePhoneNo),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.phoneNo),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.isActive),e.Y8G("disabled",!t.employeeDetails.inNewEditMode))},dependencies:[O.NZ,c.qT,c.BC,c.cb,c.YS,c.tU,c.vS,c.cV,C.n,k.d],styles:['.employeeDetailsContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-column-gap:8px;grid-template-columns:repeat(2,minmax(1px,1fr));grid-template-rows:repeat(7,42px);grid-template-areas:"input-employeeno input-title" "input-salutation input-position" "input-firstname input-rang" "input-lastname input-mobilephoneno" "input-shortname input-phoneno" "input-loginname input-mandant" "input-email input-isActive "}.input-isActive[_ngcontent-%COMP%]{margin-top:12px;grid-area:input-isActive}.input-mandant[_ngcontent-%COMP%]{grid-area:input-mandant}.input-employeeno[_ngcontent-%COMP%]{grid-area:input-employeeno}.input-firstname[_ngcontent-%COMP%]{grid-area:input-firstname}.input-lastname[_ngcontent-%COMP%]{grid-area:input-lastname}.input-shortname[_ngcontent-%COMP%]{grid-area:input-shortname}.input-loginname[_ngcontent-%COMP%]{grid-area:input-loginname}.input-salutation[_ngcontent-%COMP%]{grid-area:input-salutation}.input-title[_ngcontent-%COMP%]{grid-area:input-title}.input-position[_ngcontent-%COMP%]{grid-area:input-position}.input-rang[_ngcontent-%COMP%]{grid-area:input-rang}.input-email[_ngcontent-%COMP%]{grid-area:input-email}.input-mobilephoneno[_ngcontent-%COMP%]{grid-area:input-mobilephoneno}.input-phoneno[_ngcontent-%COMP%]{grid-area:input-phoneno}.check-box[_ngcontent-%COMP%]{margin-top:13px}.card[_ngcontent-%COMP%]{padding:12px;margin:2px}.abstand[_ngcontent-%COMP%]{margin-right:1px!important}']})}return i})(),Ce=(()=>{class i{constructor(n){this.appDataService=n}ngOnInit(){}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(g.D))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-attribute"]],inputs:{employeeDetails:"employeeDetails"},decls:4,vars:6,consts:[[1,"employee-attribute"],[1,"label"],["id","attributes","name","attributes","placeholder","Merkmal","keyExpr","entityId","displayTemplate","${name} (${shortname})","sortField","seqNo","separator",",",1,"attributes",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled","height","useResultGrid"]],template:function(o,t){1&o&&(e.j41(0,"div",0)(1,"label",1),e.EFF(2,"Merkmale"),e.k0s(),e.j41(3,"hensel-selection",2),e.mxI("selectedItemsChange",function(a){return e.DH7(t.employeeDetails.entity.arAttributeIdList,a)||(t.employeeDetails.entity.arAttributeIdList=a),a}),e.bIt("selectedItemsChange",function(){return t.employeeDetails.entityWasChanged=!0}),e.k0s()()),2&o&&(e.R7$(3),e.Y8G("dataSource",t.appDataService.employeeAttributeList.items)("multiSelect",!0),e.R50("selectedItems",t.employeeDetails.entity.arAttributeIdList),e.Y8G("disabled",!t.employeeDetails.inNotViewMode)("height","100%")("useResultGrid",!0))},dependencies:[C.n],styles:['.employee-attribute[_ngcontent-%COMP%]{width:100%;height:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(1px,1fr);grid-template-areas:"label" "attributes"}.attributes[_ngcontent-%COMP%]{grid-area:attributes;height:100%;width:calc(100% - 28px);margin-left:28px}.label[_ngcontent-%COMP%]{grid-area:label}']})}return i})();var V=r(70753),De=r(97910);class Ee extends f.M{constructor(){super(...arguments),this.typeName=m.Hv.WebAppAdditionalRole}get entityId(){return this.webAppAdditionalRoleId}set entityId(p){this.webAppAdditionalRoleId=p}}var L=r(74854);function we(i,p){if(1&i){const n=e.RV6();e.j41(0,"hensel-selection",18,6),e.mxI("selectedItemsChange",function(t){e.eBV(n);const l=e.XpG();return e.DH7(l.focusedItem.arAdditionalRoleIdList,t)||(l.focusedItem.arAdditionalRoleIdList=t),e.Njj(t)}),e.bIt("selectedItemsDisplayChange",function(t){e.eBV(n);const l=e.XpG();return e.Njj(l.focusedItem.additionalRoleNameList=t)}),e.k0s()}if(2&i){const n=e.XpG();e.Y8G("dataSource",n.additionalRoleList.items)("multiSelect",!0),e.R50("selectedItems",n.focusedItem.arAdditionalRoleIdList),e.Y8G("disabled",n.readOnly)("height","100%")("width",300)("useResultGrid",!0)("showSpinner",n.webAppRoleList.isLoading)}}let Se=(()=>{class i extends V.F{constructor(n,o){super(),this.appDataService=n,this.employeeService=o,this.webAppRoleList=new h.J(De.o,"Applikation Rolenliste",m.Hv.WebAppToWebAppRole),this.additionalRoleList=new h.J(Ee,"Applikation Rolenliste",m.Hv.WebAppAdditionalRole),this.departmentIdList=this.employeeService.employee2DepartmentList.items.map(t=>t.departmentId),this.getWebapps=t=>0!==this.focusedItem.entityId||!this.list.items.find(l=>l.webAppId===t.entityId)&&t.isActive,this.filterDepartments=t=>this.departmentIdList.indexOf(t.departmentId)>-1,this.save=()=>{this.focusedItem.webAppName=this.appDataService.webAppList?.getItemById(this.focusedItem.webAppId)?.webAppName,this.focusedItem.departmentName=this.appDataService.departmentList?.getItemById(this.focusedItem.departmentId)?.departmentName,this.focusedItem.webAppRoleName=this.appDataService.roleList?.getItemById(this.focusedItem.webAppRoleId)?.webAppRoleName,this.baseEntityWrapper.save(()=>this.close(!0))},this.webAppRoleList.filter=this.appDataService.webAppFilter,this.additionalRoleList.filter=this.appDataService.webAppFilter,this.loadRoles()}loadRoles(){this.focusedItem.webAppId?(this.appDataService.webAppFilter.webAppId=this.focusedItem.webAppId,this.webAppRoleList.load(),(this.focusedItem.isNew()||null!==this.focusedItem.additionalRoleIdList)&&this.additionalRoleList.load()):(this.webAppRoleList.clear(),this.additionalRoleList.clear())}get focusedItem(){return this._focusedItem}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(g.D),e.rXU(b))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-webapp-popupedit"]],features:[e.Vt3],decls:24,vars:26,consts:[["popupForm","ngForm"],["btnCancel",""],["input_webapp",""],["input_department",""],["input_role",""],["input_adddepartment",""],["input_addrole",""],[1,"PopupContainer"],["mat-dialog-title","",1,"messageBoxHeader"],[1,"PopupContent"],[1,"buttons"],["id","btnSave","name","btnSave","mat-stroked-button","",1,"btnSave",3,"click","disabled"],["id","btnCancel","name","btnCancel","mat-stroked-button","",1,"btnCancel",3,"click"],["id","input-webapp","placeholder","Webapp","keyExpr","entityId","displayExpr","webAppName","sortField","*","separator",",","required","",1,"input-webapp",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled","customFilterFn"],["id","input-department","placeholder","Abteilung","keyExpr","entityId","displayExpr","departmentName","sortField","*","separator",",","required","",1,"input-department",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","customFilterFn","disabled"],["id","input-role","placeholder","Role","keyExpr","webAppRoleId","displayExpr","webAppRoleName","sortField","webAppRoleHierarchy","separator",",","required","",1,"input-role",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled","showSpinner"],["id","input-adddepartment","placeholder","Zusatzabteilungen","keyExpr","entityId","displayExpr","departmentName","sortField","*","separator",",",1,"input-adddepartment",3,"selectedItemsChange","selectedItemsDisplayChange","dataSource","multiSelect","customFilterFn","selectedItems","disabled","height","useResultGrid"],["id","input-addrole","class","input-addrole","placeholder","Zusatzrole","keyExpr","entityId","displayExpr","webAppAdditionalRoleName","sortField","*","separator",",",3,"dataSource","multiSelect","selectedItems","disabled","height","width","useResultGrid","showSpinner","selectedItemsChange","selectedItemsDisplayChange",4,"ngIf"],["id","input-addrole","placeholder","Zusatzrole","keyExpr","entityId","displayExpr","webAppAdditionalRoleName","sortField","*","separator",",",1,"input-addrole",3,"selectedItemsChange","selectedItemsDisplayChange","dataSource","multiSelect","selectedItems","disabled","height","width","useResultGrid","showSpinner"]],template:function(o,t){if(1&o){const l=e.RV6();e.j41(0,"form",7,0)(2,"h2",8),e.EFF(3),e.k0s(),e.j41(4,"mat-dialog-content",9)(5,"div",10)(6,"button",11),e.bIt("click",function(){return e.eBV(l),e.Njj(t.save())}),e.j41(7,"mat-icon"),e.EFF(8,"save"),e.k0s(),e.EFF(9," \xdcbernehmen "),e.k0s(),e.j41(10,"button",12,1),e.bIt("click",function(){return e.eBV(l),e.Njj(t.cancel())}),e.j41(12,"mat-icon"),e.EFF(13,"cancel"),e.k0s(),e.EFF(14," Abbrechen "),e.k0s()(),e.j41(15,"hensel-selection",13,2),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.focusedItem.webAppId,s)||(t.focusedItem.webAppId=s),e.Njj(s)}),e.bIt("selectedItemsChange",function(){return e.eBV(l),e.Njj(t.loadRoles())}),e.k0s(),e.j41(17,"hensel-selection",14,3),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.focusedItem.departmentId,s)||(t.focusedItem.departmentId=s),e.Njj(s)}),e.k0s(),e.j41(19,"hensel-selection",15,4),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.focusedItem.webAppRoleId,s)||(t.focusedItem.webAppRoleId=s),e.Njj(s)}),e.k0s(),e.j41(21,"hensel-selection",16,5),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.focusedItem.arExtendedDepartmentIdList,s)||(t.focusedItem.arExtendedDepartmentIdList=s),e.Njj(s)}),e.bIt("selectedItemsDisplayChange",function(s){return e.eBV(l),e.Njj(t.focusedItem.extendedDepartmentNameList=s)}),e.k0s(),e.DNE(23,we,2,8,"hensel-selection",17),e.k0s()()}2&o&&(e.R7$(3),e.Lme("",t.description," - ",t.keyItemName," "),e.R7$(3),e.Y8G("disabled",!t.baseEntityWrapper.enabledSaveButton()||t.readOnly),e.R7$(9),e.Y8G("dataSource",t.appDataService.webAppList.items)("multiSelect",!1),e.R50("selectedItems",t.focusedItem.webAppId),e.Y8G("disabled",t.readOnly||0!==(null==t.focusedItem?null:t.focusedItem.entityId))("customFilterFn",t.getWebapps),e.R7$(2),e.Y8G("dataSource",t.appDataService.departmentList.items)("multiSelect",!1),e.R50("selectedItems",t.focusedItem.departmentId),e.Y8G("customFilterFn",t.filterDepartments)("disabled",t.readOnly),e.R7$(2),e.Y8G("dataSource",t.webAppRoleList.items)("multiSelect",!1),e.R50("selectedItems",t.focusedItem.webAppRoleId),e.Y8G("disabled",t.readOnly)("showSpinner",t.webAppRoleList.isLoading),e.R7$(2),e.Y8G("dataSource",t.appDataService.departmentList.items)("multiSelect",!0)("customFilterFn",t.filterDepartments),e.R50("selectedItems",t.focusedItem.arExtendedDepartmentIdList),e.Y8G("disabled",t.readOnly)("height","100%")("useResultGrid",!0),e.R7$(2),e.Y8G("ngIf",!t.focusedItem.isNew()&&null!==t.focusedItem.additionalRoleIdList||t.focusedItem.isNew()&&t.additionalRoleList.items.length>0))},dependencies:[u.bT,_.iV,I.An,L.KI,L.PQ,c.qT,c.cb,c.cV,C.n],styles:['.buttonLayoutCancel[_ngcontent-%COMP%]{font-size:16px;cursor:pointer;text-align:center;margin-left:auto;float:right}.HeaderInfo[_ngcontent-%COMP%]{font-size:16px;margin-left:-5px}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-column-gap:15px;grid-template-areas:"field1 field2" "buttons buttons"}.buttons[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-column-gap:30px;grid-template-areas:"empty1 btnsave btncancel empty2"}.btnSave[_ngcontent-%COMP%]{margin-top:10px;grid-area:btnsave}.btnCancel[_ngcontent-%COMP%]{margin-top:10px;grid-area:btncancel}.field1[_ngcontent-%COMP%]{grid-area:field1}.field2[_ngcontent-%COMP%]{grid-area:field2}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:repeat(3,42px) auto;grid-template-columns:repeat(2,minmax(1px,300px)) auto;grid-column-gap:15px;grid-row-gap:15px;grid-template-areas:"input-webapp input-adddepartment input-addrole" "input-department input-adddepartment input-addrole" "input-role input-adddepartment input-addrole" "buttons buttons buttons"}.input-department[_ngcontent-%COMP%]{grid-area:input-department}.input-adddepartment[_ngcontent-%COMP%]{grid-area:input-adddepartment}.input-addrole[_ngcontent-%COMP%]{grid-area:input-addrole}.input-webapp[_ngcontent-%COMP%]{grid-area:input-webapp}.input-role[_ngcontent-%COMP%]{grid-area:input-role}']})}return i})();var W=r(89097);const Re=()=>({exportAll:"Excel Export"});function Le(i,p){if(1&i&&e.nrm(0,"dxo-format",20),2&i){const n=e.XpG(3);e.Y8G("type",n.localeService.dateFormat)}}function ve(i,p){if(1&i&&e.nrm(0,"dxo-format",20),2&i){const n=e.XpG(3);e.Y8G("type",n.localeService.dateTimeFormat)}}function Fe(i,p){if(1&i&&(e.qex(0),e.j41(1,"dxi-column",18),e.DNE(2,Le,1,1,"dxo-format",19)(3,ve,1,1,"dxo-format",19),e.k0s(),e.bVm()),2&i){const n=e.XpG().$implicit;e.R7$(),e.Y8G("allowHeaderFiltering",n.allowHeaderFiltering)("dataField",n.dataField)("dataType",n.dataType)("caption",n.caption)("width",n.width)("sortIndex",n.sortIndex)("sortOrder",n.sortOrder)("visibleIndex",n.visibleIndex)("visible",n.visible)("fixed",n.fixed)("headerCellTemplate",n.headerCellTemplate)("cellTemplate",n.cellTemplate)("allowSorting",n.allowSorting)("calculateCellValue",n.calculateCellValue)("calculateDisplayValue",n.calculateDisplayValue)("calculateGroupValue",n.calculateGroupValue)("calculateSortValue",n.calculateSortValue)("alignment",n.alignment),e.R7$(),e.Y8G("ngIf","date"==n.dataType),e.R7$(),e.Y8G("ngIf","datetime"==n.dataType)}}function Te(i,p){if(1&i&&(e.qex(0),e.DNE(1,Fe,4,20,"ng-container",17),e.bVm()),2&i){const n=p.$implicit;e.R7$(),e.Y8G("ngIf",n.visible)}}function ke(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.0-0",o.culture)," ")}}function xe(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.1-1",o.culture)," ")}}function Me(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.2-2",o.culture)," ")}}function Ae(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.3-3",o.culture)," ")}}let Ne=(()=>{class i{get employeeWebappList(){return this.employeeDataService.employee2WebAppList}constructor(n,o,t,l,a){this.dialog=n,this.employeeDataService=o,this.appDataService=t,this.localeService=l,this.globals=a,this.columnConfigList=new F.L,this.editItem=()=>{this.employeeWebappList.focusedEntityShadowed.edit(),this.openPopupDialog(this.employeeWebappList.focusedEntityShadowed)}}ngOnInit(){this.initColumns()}initColumns(){let n;this.appDataService.showIds&&(n=this.columnConfigList.addNumber("Id","entityId",7,0)),n=this.columnConfigList.add("Webapp","webAppName",15),n.sortIndex=1,n.sortOrder="asc",n=this.columnConfigList.add("Abteilung","departmentName",20),n=this.columnConfigList.add("Role","webAppRoleName",15),n=this.columnConfigList.add("Zusatzabteilungen","extendedDepartmentNameList",30),n=this.columnConfigList.add("Zusatzrolen","additionalRoleNameList",30),this.columnConfigList.recalcWidth()}addItem(){if(this.employeeWebappList.focusedEntityShadowed.new(),this.employeeWebappList.focusedEntityShadowed.entity.employeeId=this.employeeDetails.entityId,this.employeeDataService.employee2DepartmentList.items.length>0){let n=0;const o=[];let t="";this.employeeDataService.employee2DepartmentList.items.forEach(l=>{if(l.employeeStatusId===m.bF.MainFunction)0===n&&(n=l.departmentId);else{o.push(l.departmentId);const a=this.appDataService.departmentList?.items.find(s=>s.entityId===l.departmentId)?.departmentName;t+=a?a+", ":""}}),n>0&&(this.employeeWebappList.focusedEntityShadowed.entity.departmentId=n),this.employeeWebappList.focusedEntityShadowed.entity.arExtendedDepartmentIdList=o,this.employeeWebappList.focusedEntityShadowed.entity.extendedDepartmentNameList=t.slice(0,-2)}this.openPopupDialog(this.employeeWebappList.focusedEntityShadowed)}dblClick(n){this.employeeDetails.entityIsLoading||this.employeeWebappList.focusedEntityShadowed.delayedEdit(n.data.entityId,this.editItem)}openPopupDialog(n){this.employeeDetails.keyDownListenerStopped=!0,this.dialog.openDialog(Se,{baseEntityWrapper:n,keyItemName:this.employeeDetails.entity.firstName+" "+this.employeeDetails.entity.lastName,readOnly:!this.employeeDetails.inNotViewMode||!this.employeeDetails.entity.isActive,description:0===n.entity.entityId?"Neue Webbapp zuweisen":'Daten zur Webbapp "'+n.entity.webAppName+'" bearbeiten ',list:this.employeeWebappList},!0,()=>this.employeeDetails.keyDownListenerStopped=!1)}onKeyDown(n){return n.which!==j.Fm}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(W.w),e.rXU(b),e.rXU(g.D),e.rXU(S.i),e.rXU(R.RV))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-webapp"]],hostBindings:function(o,t){1&o&&e.bIt("keydown",function(a){return t.onKeyDown(a)})},inputs:{employeeDetails:"employeeDetails"},decls:28,vars:25,consts:[[1,"employee-webapp"],[1,"label"],[1,"toolbar"],[1,"toolbar-button-row"],[1,"toolbar-flex-container"],["mat-icon-button","","title","Hinzuf\xfcgen",3,"click","disabled"],["mat-icon-button","","title","Bearbeiten",3,"click","disabled"],["mat-icon-button","","title","L\xf6schen",1,"toolbar-button-last",3,"click","disabled"],["name","webappGrid","keyExpr","entityId","columnResizingMode","widget","noDataText","Keine Daten sind vorhanden",3,"focusedRowIndexChange","focusedRowKeyChange","selectedRowKeysChange","onRowDblClick","onKeyDown","onExporting","dataSource","focusedRowIndex","focusedRowEnabled","autoNavigateToFocusedRow","focusedRowKey","selectedRowKeys","showBorders","allowColumnResizing","renderAsync"],[3,"enabled","texts"],[3,"visible"],[3,"enabled"],["mode","virtual"],["mode","multiple"],["mode","none"],[4,"ngFor","ngForOf"],[4,"dxTemplate","dxTemplateOf"],[4,"ngIf"],[3,"allowHeaderFiltering","dataField","dataType","caption","width","sortIndex","sortOrder","visibleIndex","visible","fixed","headerCellTemplate","cellTemplate","allowSorting","calculateCellValue","calculateDisplayValue","calculateGroupValue","calculateSortValue","alignment"],[3,"type",4,"ngIf"],[3,"type"]],template:function(o,t){1&o&&(e.j41(0,"div",0)(1,"label",1),e.EFF(2,"Webapp Liste"),e.k0s(),e.j41(3,"section",2)(4,"div",3)(5,"div",4)(6,"button",5),e.bIt("click",function(){return t.addItem()}),e.j41(7,"mat-icon"),e.EFF(8,"add"),e.k0s()(),e.j41(9,"button",6),e.bIt("click",function(){return t.editItem()}),e.j41(10,"mat-icon"),e.EFF(11,"edit"),e.k0s()(),e.j41(12,"button",7),e.bIt("click",function(){return t.employeeWebappList.focusedEntityShadowed.delete()}),e.j41(13,"mat-icon"),e.EFF(14,"delete"),e.k0s()()()()(),e.j41(15,"dx-data-grid",8),e.mxI("focusedRowIndexChange",function(a){return e.DH7(t.employeeWebappList.focusedItemGridIndex,a)||(t.employeeWebappList.focusedItemGridIndex=a),a})("focusedRowKeyChange",function(a){return e.DH7(t.employeeWebappList.focusedItemId,a)||(t.employeeWebappList.focusedItemId=a),a})("selectedRowKeysChange",function(a){return e.DH7(t.employeeWebappList.selectedItemIds,a)||(t.employeeWebappList.selectedItemIds=a),a}),e.bIt("onRowDblClick",function(a){return t.dblClick(a)})("onKeyDown",function(a){return a.handled="Escape"===a.event.key,t.employeeWebappList.gridUpDownProcessing(a)})("onExporting",function(a){return t.globals.doExcelExportSimple(a,t.employeeWebappList.getExportFilename4List())}),e.nrm(16,"dxo-export",9)(17,"dxo-filter-row",10)(18,"dxo-paging",11)(19,"dxo-scrolling",12)(20,"dxo-load-panel",11)(21,"dxo-sorting",13)(22,"dxo-selection",14),e.DNE(23,Te,2,1,"ng-container",15)(24,ke,3,5,"div",16)(25,xe,3,5,"div",16)(26,Me,3,5,"div",16)(27,Ae,3,5,"div",16),e.k0s()()),2&o&&(e.R7$(6),e.Y8G("disabled",!t.employeeDetails.entity.isActive||!t.employeeDetails.inNotViewMode||!t.employeeWebappList.focusedEntityShadowed.enabledNewButton()),e.R7$(3),e.Y8G("disabled",!(t.employeeDetails.entity.isActive&&t.employeeDetails.inNotViewMode&&t.employeeWebappList.focusedItem&&t.employeeWebappList.focusedEntityShadowed.enabledEditButton())),e.R7$(3),e.Y8G("disabled",!(t.employeeDetails.entity.isActive&&t.employeeDetails.inNotViewMode&&t.employeeWebappList.focusedItem&&t.employeeWebappList.focusedEntityShadowed.enabledDeleteButton())),e.R7$(3),e.HbH("grid"+(t.columnConfigList.withExport?" withexport":"")),e.Y8G("dataSource",t.employeeWebappList.items),e.R50("focusedRowIndex",t.employeeWebappList.focusedItemGridIndex),e.Y8G("focusedRowEnabled",!0)("autoNavigateToFocusedRow",!0),e.R50("focusedRowKey",t.employeeWebappList.focusedItemId)("selectedRowKeys",t.employeeWebappList.selectedItemIds),e.Y8G("showBorders",!0)("allowColumnResizing",!0)("renderAsync",!0),e.R7$(),e.Y8G("enabled",t.columnConfigList.withExport)("texts",e.lJ4(24,Re)),e.R7$(),e.Y8G("visible",!0),e.R7$(),e.Y8G("enabled",!1),e.R7$(2),e.Y8G("enabled",!0),e.R7$(3),e.Y8G("ngForOf",t.columnConfigList.columns),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_0"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_1"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_2"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_3"))},dependencies:[u.Sq,u.bT,_.iV,I.An,D.s,d.hVU,d.nj_,d.ABd,d.ZJU,d.FTx,d.xzc,d.PVd,d.eA9,d.Z6T,E.eC,u.QX],styles:['.employee-webapp[_ngcontent-%COMP%]{width:100%;height:100%;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(1px,1fr);grid-template-areas:"label label" "toolbar grid"}.grid[_ngcontent-%COMP%]{grid-area:grid;height:100%;width:100%}.label[_ngcontent-%COMP%]{grid-area:label}.toolbar[_ngcontent-%COMP%]{grid-area:toolbar}']})}return i})(),je=(()=>{class i extends V.F{constructor(n){super(),this.appDataService=n,this.getNotUsedDepartments=o=>!this.list.items.find(t=>t.departmentId===o.entityId)}get focusedItem(){return this._focusedItem}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(g.D))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-department-popupedit"]],features:[e.Vt3],decls:21,vars:16,consts:[["popupForm","ngForm"],["btnCancel",""],["input_department",""],["input_emplstatus",""],["input_rang",""],[1,"PopupContainer"],["mat-dialog-title","",1,"messageBoxHeader"],[1,"PopupContent"],[1,"buttons"],["id","btnSave","name","btnSave","mat-stroked-button","",1,"btnSave",3,"click","disabled"],["id","btnCancel","name","btnCancel","mat-stroked-button","",1,"btnCancel",3,"click"],["id","input-department","placeholder","Abteilung","keyExpr","entityId","displayExpr","departmentName","sortField","*","separator",",","required","",1,"input-department",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled","customFilterFn"],["id","input-emplstatus","placeholder","Status","keyExpr","entityId","displayExpr","employeeStatusName","sortField","*","separator",",","required","",1,"input-emplstatus",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled"],["id","input-rang","placeholder","Rang","keyExpr","entityId","displayExpr","rangName","sortField","rangOrder","separator",",","required","",1,"input-rang",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled"]],template:function(o,t){if(1&o){const l=e.RV6();e.j41(0,"form",5,0)(2,"h2",6),e.EFF(3),e.k0s(),e.j41(4,"mat-dialog-content",7)(5,"div",8)(6,"button",9),e.bIt("click",function(){return e.eBV(l),e.Njj(t.save())}),e.j41(7,"mat-icon"),e.EFF(8,"save"),e.k0s(),e.EFF(9," \xdcbernehmen "),e.k0s(),e.j41(10,"button",10,1),e.bIt("click",function(){return e.eBV(l),e.Njj(t.cancel())}),e.j41(12,"mat-icon"),e.EFF(13,"cancel"),e.k0s(),e.EFF(14," Abbrechen "),e.k0s()(),e.j41(15,"hensel-selection",11,2),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.focusedItem.departmentId,s)||(t.focusedItem.departmentId=s),e.Njj(s)}),e.k0s(),e.j41(17,"hensel-selection",12,3),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.focusedItem.employeeStatusId,s)||(t.focusedItem.employeeStatusId=s),e.Njj(s)}),e.k0s(),e.j41(19,"hensel-selection",13,4),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.focusedItem.rangId,s)||(t.focusedItem.rangId=s),e.Njj(s)}),e.k0s()()()}2&o&&(e.R7$(3),e.Lme("",t.description," - ",t.keyItemName," "),e.R7$(3),e.Y8G("disabled",!t.baseEntityWrapper.enabledSaveButton()||t.readOnly),e.R7$(9),e.Y8G("dataSource",t.appDataService.departmentList.items)("multiSelect",!1),e.R50("selectedItems",t.focusedItem.departmentId),e.Y8G("disabled",t.readOnly||0!==t.focusedItem.entityId)("customFilterFn",0===t.focusedItem.entityId?t.getNotUsedDepartments:""),e.R7$(2),e.Y8G("dataSource",t.appDataService.employeeStatusList.items)("multiSelect",!1),e.R50("selectedItems",t.focusedItem.employeeStatusId),e.Y8G("disabled",t.readOnly),e.R7$(2),e.Y8G("dataSource",t.appDataService.rangList.items)("multiSelect",!1),e.R50("selectedItems",t.focusedItem.rangId),e.Y8G("disabled",t.readOnly))},dependencies:[_.iV,I.An,L.KI,L.PQ,c.qT,c.cb,c.cV,C.n],styles:['.buttonLayoutCancel[_ngcontent-%COMP%]{font-size:16px;cursor:pointer;text-align:center;margin-left:auto;float:right}.HeaderInfo[_ngcontent-%COMP%]{font-size:16px;margin-left:-5px}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-column-gap:15px;grid-template-areas:"field1 field2" "buttons buttons"}.buttons[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-column-gap:30px;grid-template-areas:"empty1 btnsave btncancel empty2"}.btnSave[_ngcontent-%COMP%]{margin-top:10px;grid-area:btnsave}.btnCancel[_ngcontent-%COMP%]{margin-top:10px;grid-area:btncancel}.field1[_ngcontent-%COMP%]{grid-area:field1}.field2[_ngcontent-%COMP%]{grid-area:field2}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto;grid-template-columns:repeat(3,minmax(0,1fr));grid-column-gap:15px;grid-row-gap:15px;grid-template-areas:"input-department input-emplstatus input-rang" "buttons buttons buttons"}.input-department[_ngcontent-%COMP%]{grid-area:input-department}.input-emplstatus[_ngcontent-%COMP%]{grid-area:input-emplstatus}.input-rang[_ngcontent-%COMP%]{grid-area:input-rang}']})}return i})();const Ge=()=>({exportAll:"Excel Export"});function Oe(i,p){if(1&i&&e.nrm(0,"dxo-format",24),2&i){const n=e.XpG(3);e.Y8G("type",n.localeService.dateFormat)}}function Ve(i,p){if(1&i&&e.nrm(0,"dxo-format",24),2&i){const n=e.XpG(3);e.Y8G("type",n.localeService.dateTimeFormat)}}function We(i,p){if(1&i&&e.nrm(0,"dxo-lookup",25),2&i){const n=e.XpG(3);e.Y8G("dataSource",null==n.appDataService.departmentList?null:n.appDataService.departmentList.items)}}function Pe(i,p){if(1&i&&e.nrm(0,"dxo-lookup",26),2&i){const n=e.XpG(3);e.Y8G("dataSource",null==n.appDataService.employeeStatusList?null:n.appDataService.employeeStatusList.items)}}function Ye(i,p){if(1&i&&e.nrm(0,"dxo-lookup",27),2&i){const n=e.XpG(3);e.Y8G("dataSource",null==n.appDataService.rangList?null:n.appDataService.rangList.items)}}function Be(i,p){if(1&i&&(e.qex(0),e.j41(1,"dxi-column",19),e.DNE(2,Oe,1,1,"dxo-format",20)(3,Ve,1,1,"dxo-format",20)(4,We,1,1,"dxo-lookup",21)(5,Pe,1,1,"dxo-lookup",22)(6,Ye,1,1,"dxo-lookup",23),e.k0s(),e.bVm()),2&i){const n=e.XpG().$implicit;e.R7$(),e.Y8G("allowHeaderFiltering",n.allowHeaderFiltering)("dataField",n.dataField)("dataType",n.dataType)("caption",n.caption)("width",n.width)("sortIndex",n.sortIndex)("sortOrder",n.sortOrder)("visibleIndex",n.visibleIndex)("visible",n.visible)("fixed",n.fixed)("headerCellTemplate",n.headerCellTemplate)("cellTemplate",n.cellTemplate)("allowSorting",n.allowSorting)("calculateCellValue",n.calculateCellValue)("calculateDisplayValue",n.calculateDisplayValue)("calculateGroupValue",n.calculateGroupValue)("calculateSortValue",n.calculateSortValue)("alignment",n.alignment),e.R7$(),e.Y8G("ngIf","date"==n.dataType),e.R7$(),e.Y8G("ngIf","datetime"==n.dataType),e.R7$(),e.Y8G("ngIf","departmentId"===n.dataField),e.R7$(),e.Y8G("ngIf","employeeStatusId"===n.dataField),e.R7$(),e.Y8G("ngIf","rangId"===n.dataField)}}function He(i,p){if(1&i&&(e.qex(0),e.DNE(1,Be,7,23,"ng-container",18),e.bVm()),2&i){const n=p.$implicit;e.R7$(),e.Y8G("ngIf",n.visible)}}function Xe(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.0-0",o.culture)," ")}}function Ue(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.1-1",o.culture)," ")}}function $e(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.2-2",o.culture)," ")}}function Ke(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.3-3",o.culture)," ")}}let ze=(()=>{class i{constructor(n,o,t,l,a){this.dialog=n,this.appDataService=o,this.employeeDataService=t,this.localeService=l,this.globals=a,this.columnConfigList=new F.L,this.editItem=()=>{this.emplDepDetails.edit(),this.openPopupDialog(this.emplDepDetails)}}get emplDepDetails(){return this.employeeDepartmentList.focusedEntityShadowed}ngOnInit(){this.initColumns()}initColumns(){let n;this.appDataService.showIds&&(n=this.columnConfigList.addNumber("Id","entityId",7,0)),n=this.columnConfigList.add("Name","departmentId",25),n=this.columnConfigList.add("Status","employeeStatusId",20),n.sortIndex=1,n.sortOrder="asc",n=this.columnConfigList.add("Rang","rangId",10),this.columnConfigList.recalcWidth()}addItem(){this.emplDepDetails.new(),this.emplDepDetails.entity.employeeId=this.employeeDetails.entityId;const n=this.employeeDepartmentList.items.find(o=>o.employeeStatusId===m.bF.MainFunction)?m.bF.AdditionalFunction:m.bF.MainFunction;this.emplDepDetails.entity.employeeStatusId=n,this.emplDepDetails.entity.rangId=m.tm.Mitarbeiter,this.openPopupDialog(this.emplDepDetails)}dblClick(n){this.employeeDetails.entityIsLoading||this.employeeDepartmentList.focusedEntityShadowed.delayedEdit(n.data.entityId,this.editItem)}openPopupDialog(n){this.employeeDetails.keyDownListenerStopped=!0,this.dialog.openDialog(je,{baseEntityWrapper:n,keyItemName:this.employeeDetails.entity.firstName+" "+this.employeeDetails.entity.lastName,readOnly:!this.employeeDetails.inNotViewMode,description:0===n.entity.entityId?"Neue Abteilung zuweisen":'Daten zur Abteilung "'+n.entity.departmentName+'" bearbeiten ',list:this.employeeDepartmentList},!0,()=>this.employeeDetails.keyDownListenerStopped=!1)}deleteDepartment(){let n="";this.employeeDataService.employee2WebAppList.items.forEach(t=>n+=","+t.departmentId+","+t.arExtendedDepartmentIdList),n.split(",").indexOf(""+this.emplDepDetails.entity.departmentId)>-1?this.emplDepDetails.warningMessageBox(`L\xf6schen von Abteilung <${this.emplDepDetails.entity.departmentName}>`,"Die Abteilung kann nicht gel\xf6scht werden, weil sie zu einer Webapplikation zugewiesen ist"):this.emplDepDetails.delete()}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(W.w),e.rXU(g.D),e.rXU(b),e.rXU(S.i),e.rXU(R.RV))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-department"]],inputs:{employeeDepartmentList:"employeeDepartmentList",employeeDetails:"employeeDetails"},decls:30,vars:27,consts:[[1,"employee-department"],[1,"label"],[1,"toolbar"],[1,"toolbar-button-row"],[1,"toolbar-flex-container"],["mat-icon-button","","title","Hinzuf\xfcgen",3,"click","disabled"],["mat-icon-button","","title","Bearbeiten",3,"click","disabled"],["mat-icon-button","","title","L\xf6schen",1,"toolbar-button-last",3,"click","disabled"],["name","departmentGrid","keyExpr","entityId","columnResizingMode","widget","noDataText","Keine Daten sind vorhanden",3,"focusedRowIndexChange","focusedRowKeyChange","selectedRowKeysChange","onRowDblClick","onKeyDown","onExporting","dataSource","focusedRowIndex","focusedRowEnabled","autoNavigateToFocusedRow","focusedRowKey","selectedRowKeys","showBorders","allowColumnResizing","renderAsync"],[3,"enabled","texts"],[3,"visible"],[3,"visible","applyFilter"],[3,"enabled"],["mode","virtual"],["mode","multiple"],["mode","none"],[4,"ngFor","ngForOf"],[4,"dxTemplate","dxTemplateOf"],[4,"ngIf"],[3,"allowHeaderFiltering","dataField","dataType","caption","width","sortIndex","sortOrder","visibleIndex","visible","fixed","headerCellTemplate","cellTemplate","allowSorting","calculateCellValue","calculateDisplayValue","calculateGroupValue","calculateSortValue","alignment"],[3,"type",4,"ngIf"],["valueExpr","entityId","displayExpr","departmentName",3,"dataSource",4,"ngIf"],["valueExpr","entityId","displayExpr","employeeStatusName",3,"dataSource",4,"ngIf"],["valueExpr","entityId","displayExpr","rangShortname",3,"dataSource",4,"ngIf"],[3,"type"],["valueExpr","entityId","displayExpr","departmentName",3,"dataSource"],["valueExpr","entityId","displayExpr","employeeStatusName",3,"dataSource"],["valueExpr","entityId","displayExpr","rangShortname",3,"dataSource"]],template:function(o,t){1&o&&(e.j41(0,"div",0)(1,"label",1),e.EFF(2,"Abteilungsliste"),e.k0s(),e.j41(3,"section",2)(4,"div",3)(5,"div",4)(6,"button",5),e.bIt("click",function(){return t.addItem()}),e.j41(7,"mat-icon"),e.EFF(8,"add"),e.k0s()(),e.j41(9,"button",6),e.bIt("click",function(){return t.editItem()}),e.j41(10,"mat-icon"),e.EFF(11,"edit"),e.k0s()(),e.j41(12,"button",7),e.bIt("click",function(){return t.deleteDepartment()}),e.j41(13,"mat-icon"),e.EFF(14,"delete"),e.k0s()()()()(),e.j41(15,"dx-data-grid",8),e.mxI("focusedRowIndexChange",function(a){return e.DH7(t.employeeDepartmentList.focusedItemGridIndex,a)||(t.employeeDepartmentList.focusedItemGridIndex=a),a})("focusedRowKeyChange",function(a){return e.DH7(t.employeeDepartmentList.focusedItemId,a)||(t.employeeDepartmentList.focusedItemId=a),a})("selectedRowKeysChange",function(a){return e.DH7(t.employeeDepartmentList.selectedItemIds,a)||(t.employeeDepartmentList.selectedItemIds=a),a}),e.bIt("onRowDblClick",function(a){return t.dblClick(a)})("onKeyDown",function(a){return a.handled="Escape"===a.event.key})("onExporting",function(a){return t.globals.doExcelExportSimple(a,t.employeeDepartmentList.getExportFilename4List())}),e.nrm(16,"dxo-export",9)(17,"dxo-header-filter",10),e.EFF(18," --\x3e "),e.nrm(19,"dxo-filter-row",11)(20,"dxo-paging",12)(21,"dxo-scrolling",13)(22,"dxo-load-panel",12)(23,"dxo-sorting",14)(24,"dxo-selection",15),e.DNE(25,He,2,1,"ng-container",16)(26,Xe,3,5,"div",17)(27,Ue,3,5,"div",17)(28,$e,3,5,"div",17)(29,Ke,3,5,"div",17),e.k0s()()),2&o&&(e.R7$(6),e.Y8G("disabled",!t.employeeDetails.inNotViewMode||!t.employeeDepartmentList.focusedEntityShadowed.enabledNewButton()),e.R7$(3),e.Y8G("disabled",!t.employeeDetails.inNotViewMode||!t.employeeDepartmentList.focusedItem||!t.employeeDepartmentList.focusedEntityShadowed.enabledEditButton()),e.R7$(3),e.Y8G("disabled",!t.employeeDetails.inNotViewMode||!t.employeeDepartmentList.focusedItem||!t.employeeDepartmentList.focusedEntityShadowed.enabledDeleteButton()),e.R7$(3),e.HbH("grid"+(t.columnConfigList.withExport?" withexport":"")),e.Y8G("dataSource",t.employeeDepartmentList.items),e.R50("focusedRowIndex",t.employeeDepartmentList.focusedItemGridIndex),e.Y8G("focusedRowEnabled",!0)("autoNavigateToFocusedRow",!0),e.R50("focusedRowKey",t.employeeDepartmentList.focusedItemId)("selectedRowKeys",t.employeeDepartmentList.selectedItemIds),e.Y8G("showBorders",!0)("allowColumnResizing",!0)("renderAsync",!0),e.R7$(),e.Y8G("enabled",t.columnConfigList.withExport)("texts",e.lJ4(26,Ge)),e.R7$(),e.Y8G("visible",!0),e.R7$(2),e.Y8G("visible",!1)("applyFilter",!0),e.R7$(),e.Y8G("enabled",!1),e.R7$(2),e.Y8G("enabled",!0),e.R7$(3),e.Y8G("ngForOf",t.columnConfigList.columns),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_0"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_1"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_2"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_3"))},dependencies:[u.Sq,u.bT,_.iV,I.An,D.s,d.hVU,d.nj_,d.gtJ,d.b4U,d.ABd,d.ZJU,d.FTx,d.xzc,d.PVd,d.eA9,d.Z6T,E.eC,u.QX],styles:['.employee-department[_ngcontent-%COMP%]{width:100%;height:100%;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(1px,1fr);grid-template-areas:"label label" "toolbar grid"}.grid[_ngcontent-%COMP%]{grid-area:grid;height:100%;width:100%}.label[_ngcontent-%COMP%]{grid-area:label}.toolbar[_ngcontent-%COMP%]{grid-area:toolbar}']})}return i})();function Ze(i,p){if(1&i){const n=e.RV6();e.j41(0,"button",17,1),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.add())}),e.j41(2,"mat-icon"),e.EFF(3,"add"),e.k0s(),e.EFF(4," Hinzuf\xfcgen "),e.k0s()}if(2&i){const n=e.XpG();e.Y8G("disabled",!n.employeeDetails.enabledNewButton())}}function Je(i,p){if(1&i){const n=e.RV6();e.j41(0,"button",18,2),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.employeeDetails.edit())}),e.j41(2,"mat-icon"),e.EFF(3,"edit"),e.k0s(),e.EFF(4," Bearbeiten "),e.k0s()}if(2&i){const n=e.XpG();e.Y8G("disabled",!n.employeeDetails.enabledEditButton())}}function Qe(i,p){if(1&i){const n=e.RV6();e.j41(0,"button",19),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.save())}),e.j41(1,"mat-icon"),e.EFF(2,"save"),e.k0s(),e.EFF(3," Speichern "),e.k0s()}if(2&i){const n=e.XpG();e.Y8G("disabled",!n.employeeDetails.enabledSaveButton())}}function qe(i,p){if(1&i){const n=e.RV6();e.j41(0,"button",20),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.cancel())}),e.j41(1,"mat-icon"),e.EFF(2,"undo"),e.k0s(),e.EFF(3," Verwerfen "),e.k0s()}if(2&i){const n=e.XpG();e.Y8G("autofocus",!0)("disabled",!n.employeeDetails.enabledCancelButton())}}function et(i,p){if(1&i){const n=e.RV6();e.j41(0,"button",21),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.employeeDetails.delete())}),e.j41(1,"mat-icon"),e.EFF(2,"delete"),e.k0s(),e.EFF(3," L\xf6schen "),e.k0s()}if(2&i){const n=e.XpG();e.Y8G("disabled",!n.employeeDetails.enabledDeleteButton())}}let tt=(()=>{class i{constructor(n,o,t){this.employeeDataService=n,this.authorizeService=o,this.pageLoadingService=t,this.save=()=>{this.pageLoadingService.startSpinner(),this.employeeDetails.save(l=>this.afterSave(l),null,()=>this.pageLoadingService.hideSpinner())},this.cancel=()=>{this.employeeDetails.cancelWithSave(this.save)}}get focusedItem(){return this.employeeDetails.entity}ngAfterViewInit(){this.employeeDetails.beforeNewCallBack=this.newEmployeeInit.bind(this),this.employeeDetails.beforeSaveCallBack=this.beforeSaveEmployee.bind(this)}newEmployeeInit(n){}beforeSaveEmployee(n){var o=this;return(0,A.A)(function*(){return o.employeeDataService.employee2AttributeList.match2array(n,"employeeId","arAttributeIdList","employeeAttributeId"),0})()}afterSave(n){}add(){this.employeeDetails.new(),this.employeeDetails.entity.isActive=!0}keyboardInput(n){return G.N.LOGIN_IS_SHOWN||this.employeeDetails.shortcutsHandler(n,this.save,this.cancel)}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(b),e.rXU(T.V),e.rXU(fe.V))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-detail"]],hostBindings:function(o,t){1&o&&e.bIt("keydown",function(a){return t.keyboardInput(a)},!1,e.tSv)},inputs:{employeeDetails:"employeeDetails"},decls:16,vars:10,consts:[["detailForm","ngForm"],["btnNew",""],["btnEdit",""],["id","form_employee",1,"EmployeeDetailsForm"],[1,"card"],[1,"EmployeeDetails"],[1,"toolbar"],[1,"toolbar-button-row"],["id","btnNew","name","btnNew","class","abstand","mat-stroked-button","","title","Neuer Mitarbeiter",3,"disabled","click",4,"ngIf"],["id","btnEdit","name","btnEdit","class","abstand","mat-stroked-button","","title","Bearbeiten",3,"disabled","click",4,"ngIf"],["id","btnSave","name","btnSave","class","abstand","mat-stroked-button","","disabled","","title","Speichern",3,"disabled","click",4,"ngIf"],["id","btnUndo","name","btnUndo","class","abstand","mat-stroked-button","","disabled","","title","\xc4nderungen verwerfen",3,"autofocus","disabled","click",4,"ngIf"],["id","btnDelete","name","btnDelete","mat-stroked-button","","title","Benutzer l\xf6schen","class","last",3,"disabled","click",4,"ngIf"],[1,"DetailsContent",3,"employeeDetails"],[1,"DepartmentList",3,"employeeDepartmentList","employeeDetails"],[1,"WebAppList",3,"employeeDetails"],[1,"AttributeList",3,"employeeDetails"],["id","btnNew","name","btnNew","mat-stroked-button","","title","Neuer Mitarbeiter",1,"abstand",3,"click","disabled"],["id","btnEdit","name","btnEdit","mat-stroked-button","","title","Bearbeiten",1,"abstand",3,"click","disabled"],["id","btnSave","name","btnSave","mat-stroked-button","","disabled","","title","Speichern",1,"abstand",3,"click","disabled"],["id","btnUndo","name","btnUndo","mat-stroked-button","","disabled","","title","\xc4nderungen verwerfen",1,"abstand",3,"click","autofocus","disabled"],["id","btnDelete","name","btnDelete","mat-stroked-button","","title","Benutzer l\xf6schen",1,"last",3,"click","disabled"]],template:function(o,t){1&o&&(e.j41(0,"form",3,0)(2,"mat-card",4),e.nrm(3,"mat-card-header"),e.j41(4,"mat-card-content",5)(5,"section",6)(6,"div",7),e.DNE(7,Ze,5,1,"button",8)(8,Je,5,1,"button",9)(9,Qe,4,1,"button",10)(10,qe,4,2,"button",11)(11,et,4,1,"button",12),e.k0s()(),e.nrm(12,"app-details-content",13)(13,"app-employee-department",14)(14,"app-employee-webapp",15)(15,"app-employee-attribute",16),e.k0s()()()),2&o&&(e.R7$(7),e.Y8G("ngIf",t.employeeDetails.canNew),e.R7$(),e.Y8G("ngIf",t.employeeDetails.canEdit),e.R7$(),e.Y8G("ngIf",t.employeeDetails.canEdit||t.employeeDetails.canNew),e.R7$(),e.Y8G("ngIf",t.employeeDetails.canEdit||t.employeeDetails.canNew),e.R7$(),e.Y8G("ngIf",t.employeeDetails.canDelete),e.R7$(),e.Y8G("employeeDetails",t.employeeDetails),e.R7$(),e.Y8G("employeeDepartmentList",t.employeeDataService.employee2DepartmentList)("employeeDetails",t.employeeDetails),e.R7$(),e.Y8G("employeeDetails",t.employeeDetails),e.R7$(),e.Y8G("employeeDetails",t.employeeDetails))},dependencies:[u.bT,_.iV,I.An,y._m,y.XB,y.Rm,c.qT,c.cb,c.cV,Ie,Ce,Ne,ze],styles:['.EmployeeDetails[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-template-rows:42px minmax(1px,168px) minmax(1px,120px);grid-template-columns:auto minmax(1px,1fr) minmax(1px,1.8fr);grid-row-gap:6px;grid-column-gap:13px;grid-template-areas:"toolbar department-grid webapps-grid" "detail department-grid webapps-grid " "detail attribute-grid webapps-grid";z-index:10;position:relative}.DetailsContent[_ngcontent-%COMP%]{grid-area:detail}.DepartmentList[_ngcontent-%COMP%]{grid-area:department-grid}.WebAppList[_ngcontent-%COMP%]{grid-area:webapps-grid}.AttributeList[_ngcontent-%COMP%]{grid-area:attribute-grid}.abstand[_ngcontent-%COMP%]{margin-right:1px!important}.toolbar[_ngcontent-%COMP%]{grid-area:toolbar}.card[_ngcontent-%COMP%]{padding:12px;margin:2px}']})}return i})();const ot=[{path:"**",component:(()=>{class i{constructor(n){this.employeeDataService=n}ngOnInit(){}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(b))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee"]],decls:3,vars:2,consts:[[1,"EmployeeComponent"],[1,"EmployeeListComponent",3,"dataSource"],[1,"EmployeeDetailsComponent",3,"employeeDetails"]],template:function(o,t){1&o&&(e.j41(0,"div",0),e.nrm(1,"app-employee-list",1)(2,"app-employee-detail",2),e.k0s()),2&o&&(e.R7$(),e.Y8G("dataSource",t.employeeDataService.employeeList),e.R7$(),e.Y8G("employeeDetails",t.employeeDataService.employeeList.focusedEntityShadowed))},dependencies:[be,tt],styles:['.EmployeeComponent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);grid-template-areas:"list" "details";grid-column-gap:5px;grid-row-gap:5px}.EmployeeListComponent[_ngcontent-%COMP%]{grid-area:list}.EmployeeDetailsComponent[_ngcontent-%COMP%]{grid-area:details;z-index:10}']})}return i})(),canActivate:[r(27938).q]}];let at=(()=>{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:[M.iI.forChild(ot),M.iI]})}return i})(),lt=(()=>{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:[u.MD,at,Y.e,D.N,c.YN,C.n,k.d,B.b,H.L,X.U,E.xZ,U.F]})}return i})()}}]); \ No newline at end of file diff --git a/ClientApp/staff-db-ui/dist/147.b04a1078d98ad77b.js b/ClientApp/staff-db-ui/dist/147.b04a1078d98ad77b.js new file mode 100644 index 0000000..f954957 --- /dev/null +++ b/ClientApp/staff-db-ui/dist/147.b04a1078d98ad77b.js @@ -0,0 +1 @@ +(self.webpackChunkstaffdb=self.webpackChunkstaffdb||[]).push([[147],{40644:function(g){(function(){var S,n,h,f,c,d;typeof performance<"u"&&null!==performance&&performance.now?g.exports=function(){return performance.now()}:typeof process<"u"&&null!==process&&process.hrtime?(g.exports=function(){return(S()-c)/1e6},n=process.hrtime,f=(S=function(){var y;return 1e9*(y=n())[0]+y[1]})(),d=1e9*process.uptime(),c=f-d):Date.now?(g.exports=function(){return Date.now()-h},h=Date.now()):(g.exports=function(){return(new Date).getTime()-h},h=(new Date).getTime())}).call(this)},54361:(g,S,n)=>{for(var h=n(40644),f=typeof window>"u"?global:window,c=["moz","webkit"],d="AnimationFrame",y=f["request"+d],O=f["cancel"+d]||f["cancelRequest"+d],x=0;!y&&x{g.exports=function(S){this.ok=!1,this.alpha=1,"#"==S.charAt(0)&&(S=S.substr(1,6)),S=(S=S.replace(/ /g,"")).toLowerCase();var n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};S=n[S]||S;for(var h=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(x){return[parseInt(x[1]),parseInt(x[2]),parseInt(x[3]),parseFloat(x[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(x){return[parseInt(x[1]),parseInt(x[2]),parseInt(x[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(x){return[parseInt(x[1],16),parseInt(x[2],16),parseInt(x[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(x){return[parseInt(x[1]+x[1],16),parseInt(x[2]+x[2],16),parseInt(x[3]+x[3],16)]}}],f=0;f3&&(this.alpha=O[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var x=this.r.toString(16),b=this.g.toString(16),C=this.b.toString(16);return 1==x.length&&(x="0"+x),1==b.length&&(b="0"+b),1==C.length&&(C="0"+C),"#"+x+b+C},this.getHelpXML=function(){for(var x=new Array,b=0;b "+M.toRGB()+" -> "+M.toHex());w.appendChild(I),w.appendChild(B),R.appendChild(w)}catch{}return R}}},79306:(g,S,n)=>{"use strict";var h=n(94901),f=n(16823),c=TypeError;g.exports=function(d){if(h(d))return d;throw new c(f(d)+" is not a function")}},35548:(g,S,n)=>{"use strict";var h=n(33517),f=n(16823),c=TypeError;g.exports=function(d){if(h(d))return d;throw new c(f(d)+" is not a constructor")}},73506:(g,S,n)=>{"use strict";var h=n(13925),f=String,c=TypeError;g.exports=function(d){if(h(d))return d;throw new c("Can't set "+f(d)+" as a prototype")}},6469:(g,S,n)=>{"use strict";var h=n(78227),f=n(2360),c=n(24913).f,d=h("unscopables"),y=Array.prototype;void 0===y[d]&&c(y,d,{configurable:!0,value:f(null)}),g.exports=function(O){y[d][O]=!0}},57829:(g,S,n)=>{"use strict";var h=n(68183).charAt;g.exports=function(f,c,d){return c+(d?h(f,c).length:1)}},90679:(g,S,n)=>{"use strict";var h=n(1625),f=TypeError;g.exports=function(c,d){if(h(d,c))return c;throw new f("Incorrect invocation")}},28551:(g,S,n)=>{"use strict";var h=n(20034),f=String,c=TypeError;g.exports=function(d){if(h(d))return d;throw new c(f(d)+" is not an object")}},19617:(g,S,n)=>{"use strict";var h=n(25397),f=n(35610),c=n(26198),d=function(y){return function(O,x,b){var C=h(O),A=c(C);if(0===A)return!y&&-1;var R,P=f(b,A);if(y&&x!=x){for(;A>P;)if((R=C[P++])!=R)return!0}else for(;A>P;P++)if((y||P in C)&&C[P]===x)return y||P||0;return!y&&-1}};g.exports={includes:d(!0),indexOf:d(!1)}},34598:(g,S,n)=>{"use strict";var h=n(79039);g.exports=function(f,c){var d=[][f];return!!d&&h(function(){d.call(null,c||function(){return 1},1)})}},80926:(g,S,n)=>{"use strict";var h=n(79306),f=n(48981),c=n(47055),d=n(26198),y=TypeError,O="Reduce of empty array with no initial value",x=function(b){return function(C,A,P,R){var w=f(C),M=c(w),I=d(w);if(h(A),0===I&&P<2)throw new y(O);var B=b?I-1:0,$=b?-1:1;if(P<2)for(;;){if(B in M){R=M[B],B+=$;break}if(B+=$,b?B<0:I<=B)throw new y(O)}for(;b?B>=0:I>B;B+=$)B in M&&(R=A(R,M[B],B,w));return R}};g.exports={left:x(!1),right:x(!0)}},67680:(g,S,n)=>{"use strict";var h=n(79504);g.exports=h([].slice)},84428:(g,S,n)=>{"use strict";var f=n(78227)("iterator"),c=!1;try{var d=0,y={next:function(){return{done:!!d++}},return:function(){c=!0}};y[f]=function(){return this},Array.from(y,function(){throw 2})}catch{}g.exports=function(O,x){try{if(!x&&!c)return!1}catch{return!1}var b=!1;try{var C={};C[f]=function(){return{next:function(){return{done:b=!0}}}},O(C)}catch{}return b}},44576:(g,S,n)=>{"use strict";var h=n(79504),f=h({}.toString),c=h("".slice);g.exports=function(d){return c(f(d),8,-1)}},36955:(g,S,n)=>{"use strict";var h=n(92140),f=n(94901),c=n(44576),y=n(78227)("toStringTag"),O=Object,x="Arguments"===c(function(){return arguments}());g.exports=h?c:function(C){var A,P,R;return void 0===C?"Undefined":null===C?"Null":"string"==typeof(P=function(C,A){try{return C[A]}catch{}}(A=O(C),y))?P:x?c(A):"Object"===(R=c(A))&&f(A.callee)?"Arguments":R}},77740:(g,S,n)=>{"use strict";var h=n(39297),f=n(35031),c=n(77347),d=n(24913);g.exports=function(y,O,x){for(var b=f(O),C=d.f,A=c.f,P=0;P{"use strict";var f=n(78227)("match");g.exports=function(c){var d=/./;try{"/./"[c](d)}catch{try{return d[f]=!1,"/./"[c](d)}catch{}}return!1}},12211:(g,S,n)=>{"use strict";var h=n(79039);g.exports=!h(function(){function f(){}return f.prototype.constructor=null,Object.getPrototypeOf(new f)!==f.prototype})},62529:g=>{"use strict";g.exports=function(S,n){return{value:S,done:n}}},66699:(g,S,n)=>{"use strict";var h=n(43724),f=n(24913),c=n(6980);g.exports=h?function(d,y,O){return f.f(d,y,c(1,O))}:function(d,y,O){return d[y]=O,d}},6980:g=>{"use strict";g.exports=function(S,n){return{enumerable:!(1&S),configurable:!(2&S),writable:!(4&S),value:n}}},62106:(g,S,n)=>{"use strict";var h=n(50283),f=n(24913);g.exports=function(c,d,y){return y.get&&h(y.get,d,{getter:!0}),y.set&&h(y.set,d,{setter:!0}),f.f(c,d,y)}},36840:(g,S,n)=>{"use strict";var h=n(94901),f=n(24913),c=n(50283),d=n(39433);g.exports=function(y,O,x,b){b||(b={});var C=b.enumerable,A=void 0!==b.name?b.name:O;if(h(x)&&c(x,A,b),b.global)C?y[O]=x:d(O,x);else{try{b.unsafe?y[O]&&(C=!0):delete y[O]}catch{}C?y[O]=x:f.f(y,O,{value:x,enumerable:!1,configurable:!b.nonConfigurable,writable:!b.nonWritable})}return y}},39433:(g,S,n)=>{"use strict";var h=n(24475),f=Object.defineProperty;g.exports=function(c,d){try{f(h,c,{value:d,configurable:!0,writable:!0})}catch{h[c]=d}return d}},43724:(g,S,n)=>{"use strict";var h=n(79039);g.exports=!h(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:(g,S,n)=>{"use strict";var h=n(24475),f=n(20034),c=h.document,d=f(c)&&f(c.createElement);g.exports=function(y){return d?c.createElement(y):{}}},67400:g=>{"use strict";g.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},79296:(g,S,n)=>{"use strict";var f=n(4055)("span").classList,c=f&&f.constructor&&f.constructor.prototype;g.exports=c===Object.prototype?void 0:c},87290:(g,S,n)=>{"use strict";var h=n(50516),f=n(19088);g.exports=!h&&!f&&"object"==typeof window&&"object"==typeof document},50516:g=>{"use strict";g.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},20028:(g,S,n)=>{"use strict";var h=n(79392);g.exports=/ipad|iphone|ipod/i.test(h)&&typeof Pebble<"u"},48119:(g,S,n)=>{"use strict";var h=n(79392);g.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(h)},19088:(g,S,n)=>{"use strict";var h=n(24475),f=n(44576);g.exports="process"===f(h.process)},36765:(g,S,n)=>{"use strict";var h=n(79392);g.exports=/web0s(?!.*chrome)/i.test(h)},79392:g=>{"use strict";g.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},77388:(g,S,n)=>{"use strict";var x,b,h=n(24475),f=n(79392),c=h.process,d=h.Deno,y=c&&c.versions||d&&d.version,O=y&&y.v8;O&&(b=(x=O.split("."))[0]>0&&x[0]<4?1:+(x[0]+x[1])),!b&&f&&(!(x=f.match(/Edge\/(\d+)/))||x[1]>=74)&&(x=f.match(/Chrome\/(\d+)/))&&(b=+x[1]),g.exports=b},88727:g=>{"use strict";g.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},46518:(g,S,n)=>{"use strict";var h=n(24475),f=n(77347).f,c=n(66699),d=n(36840),y=n(39433),O=n(77740),x=n(92796);g.exports=function(b,C){var M,I,B,$,X,A=b.target,P=b.global,R=b.stat;if(M=P?h:R?h[A]||y(A,{}):h[A]&&h[A].prototype)for(I in C){if($=C[I],B=b.dontCallGetSet?(X=f(M,I))&&X.value:M[I],!x(P?I:A+(R?".":"#")+I,b.forced)&&void 0!==B){if(typeof $==typeof B)continue;O($,B)}(b.sham||B&&B.sham)&&c($,"sham",!0),d(M,I,$,b)}}},79039:g=>{"use strict";g.exports=function(S){try{return!!S()}catch{return!0}}},89228:(g,S,n)=>{"use strict";n(27495);var h=n(69565),f=n(36840),c=n(57323),d=n(79039),y=n(78227),O=n(66699),x=y("species"),b=RegExp.prototype;g.exports=function(C,A,P,R){var w=y(C),M=!d(function(){var X={};return X[w]=function(){return 7},7!==""[C](X)}),I=M&&!d(function(){var X=!1,F=/a/;return"split"===C&&((F={}).constructor={},F.constructor[x]=function(){return F},F.flags="",F[w]=/./[w]),F.exec=function(){return X=!0,null},F[w](""),!X});if(!M||!I||P){var B=/./[w],$=A(w,""[C],function(X,F,H,Y,Z){var rt=F.exec;return rt===c||rt===b.exec?M&&!Z?{done:!0,value:h(B,F,H,Y)}:{done:!0,value:h(X,H,F,Y)}:{done:!1}});f(String.prototype,C,$[0]),f(b,w,$[1])}R&&O(b[w],"sham",!0)}},18745:(g,S,n)=>{"use strict";var h=n(40616),f=Function.prototype,c=f.apply,d=f.call;g.exports="object"==typeof Reflect&&Reflect.apply||(h?d.bind(c):function(){return d.apply(c,arguments)})},76080:(g,S,n)=>{"use strict";var h=n(27476),f=n(79306),c=n(40616),d=h(h.bind);g.exports=function(y,O){return f(y),void 0===O?y:c?d(y,O):function(){return y.apply(O,arguments)}}},40616:(g,S,n)=>{"use strict";var h=n(79039);g.exports=!h(function(){var f=function(){}.bind();return"function"!=typeof f||f.hasOwnProperty("prototype")})},69565:(g,S,n)=>{"use strict";var h=n(40616),f=Function.prototype.call;g.exports=h?f.bind(f):function(){return f.apply(f,arguments)}},10350:(g,S,n)=>{"use strict";var h=n(43724),f=n(39297),c=Function.prototype,d=h&&Object.getOwnPropertyDescriptor,y=f(c,"name"),O=y&&"something"===function(){}.name,x=y&&(!h||h&&d(c,"name").configurable);g.exports={EXISTS:y,PROPER:O,CONFIGURABLE:x}},46706:(g,S,n)=>{"use strict";var h=n(79504),f=n(79306);g.exports=function(c,d,y){try{return h(f(Object.getOwnPropertyDescriptor(c,d)[y]))}catch{}}},27476:(g,S,n)=>{"use strict";var h=n(44576),f=n(79504);g.exports=function(c){if("Function"===h(c))return f(c)}},79504:(g,S,n)=>{"use strict";var h=n(40616),f=Function.prototype,c=f.call,d=h&&f.bind.bind(c,c);g.exports=h?d:function(y){return function(){return c.apply(y,arguments)}}},97751:(g,S,n)=>{"use strict";var h=n(24475),f=n(94901);g.exports=function(d,y){return arguments.length<2?function(d){return f(d)?d:void 0}(h[d]):h[d]&&h[d][y]}},50851:(g,S,n)=>{"use strict";var h=n(36955),f=n(55966),c=n(64117),d=n(26269),O=n(78227)("iterator");g.exports=function(x){if(!c(x))return f(x,O)||f(x,"@@iterator")||d[h(x)]}},70081:(g,S,n)=>{"use strict";var h=n(69565),f=n(79306),c=n(28551),d=n(16823),y=n(50851),O=TypeError;g.exports=function(x,b){var C=arguments.length<2?y(x):b;if(f(C))return c(h(C,x));throw new O(d(x)+" is not iterable")}},55966:(g,S,n)=>{"use strict";var h=n(79306),f=n(64117);g.exports=function(c,d){var y=c[d];return f(y)?void 0:h(y)}},2478:(g,S,n)=>{"use strict";var h=n(79504),f=n(48981),c=Math.floor,d=h("".charAt),y=h("".replace),O=h("".slice),x=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,b=/\$([$&'`]|\d{1,2})/g;g.exports=function(C,A,P,R,w,M){var I=P+C.length,B=R.length,$=b;return void 0!==w&&(w=f(w),$=x),y(M,$,function(X,F){var H;switch(d(F,0)){case"$":return"$";case"&":return C;case"`":return O(A,0,P);case"'":return O(A,I);case"<":H=w[O(F,1,-1)];break;default:var Y=+F;if(0===Y)return X;if(Y>B){var Z=c(Y/10);return 0===Z?X:Z<=B?void 0===R[Z-1]?d(F,1):R[Z-1]+d(F,1):X}H=R[Y-1]}return void 0===H?"":H})}},24475:function(g){"use strict";var S=function(n){return n&&n.Math===Math&&n};g.exports=S("object"==typeof globalThis&&globalThis)||S("object"==typeof window&&window)||S("object"==typeof self&&self)||S("object"==typeof global&&global)||S("object"==typeof this&&this)||function(){return this}()||Function("return this")()},39297:(g,S,n)=>{"use strict";var h=n(79504),f=n(48981),c=h({}.hasOwnProperty);g.exports=Object.hasOwn||function(y,O){return c(f(y),O)}},30421:g=>{"use strict";g.exports={}},90757:g=>{"use strict";g.exports=function(S,n){try{1===arguments.length?console.error(S):console.error(S,n)}catch{}}},20397:(g,S,n)=>{"use strict";var h=n(97751);g.exports=h("document","documentElement")},35917:(g,S,n)=>{"use strict";var h=n(43724),f=n(79039),c=n(4055);g.exports=!h&&!f(function(){return 7!==Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a})},47055:(g,S,n)=>{"use strict";var h=n(79504),f=n(79039),c=n(44576),d=Object,y=h("".split);g.exports=f(function(){return!d("z").propertyIsEnumerable(0)})?function(O){return"String"===c(O)?y(O,""):d(O)}:d},33706:(g,S,n)=>{"use strict";var h=n(79504),f=n(94901),c=n(77629),d=h(Function.toString);f(c.inspectSource)||(c.inspectSource=function(y){return d(y)}),g.exports=c.inspectSource},91181:(g,S,n)=>{"use strict";var R,w,M,h=n(58622),f=n(24475),c=n(20034),d=n(66699),y=n(39297),O=n(77629),x=n(66119),b=n(30421),C="Object already initialized",A=f.TypeError;if(h||O.state){var $=O.state||(O.state=new(0,f.WeakMap));$.get=$.get,$.has=$.has,$.set=$.set,R=function(F,H){if($.has(F))throw new A(C);return H.facade=F,$.set(F,H),H},w=function(F){return $.get(F)||{}},M=function(F){return $.has(F)}}else{var X=x("state");b[X]=!0,R=function(F,H){if(y(F,X))throw new A(C);return H.facade=F,d(F,X,H),H},w=function(F){return y(F,X)?F[X]:{}},M=function(F){return y(F,X)}}g.exports={set:R,get:w,has:M,enforce:function(F){return M(F)?w(F):R(F,{})},getterFor:function(F){return function(H){var Y;if(!c(H)||(Y=w(H)).type!==F)throw new A("Incompatible receiver, "+F+" required");return Y}}}},44209:(g,S,n)=>{"use strict";var h=n(78227),f=n(26269),c=h("iterator"),d=Array.prototype;g.exports=function(y){return void 0!==y&&(f.Array===y||d[c]===y)}},34376:(g,S,n)=>{"use strict";var h=n(44576);g.exports=Array.isArray||function(c){return"Array"===h(c)}},94901:g=>{"use strict";var S="object"==typeof document&&document.all;g.exports=typeof S>"u"&&void 0!==S?function(n){return"function"==typeof n||n===S}:function(n){return"function"==typeof n}},33517:(g,S,n)=>{"use strict";var h=n(79504),f=n(79039),c=n(94901),d=n(36955),y=n(97751),O=n(33706),x=function(){},b=y("Reflect","construct"),C=/^\s*(?:class|function)\b/,A=h(C.exec),P=!C.test(x),R=function(I){if(!c(I))return!1;try{return b(x,[],I),!0}catch{return!1}},w=function(I){if(!c(I))return!1;switch(d(I)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return P||!!A(C,O(I))}catch{return!0}};w.sham=!0,g.exports=!b||f(function(){var M;return R(R.call)||!R(Object)||!R(function(){M=!0})||M})?w:R},92796:(g,S,n)=>{"use strict";var h=n(79039),f=n(94901),c=/#|\.prototype\./,d=function(C,A){var P=O[y(C)];return P===b||P!==x&&(f(A)?h(A):!!A)},y=d.normalize=function(C){return String(C).replace(c,".").toLowerCase()},O=d.data={},x=d.NATIVE="N",b=d.POLYFILL="P";g.exports=d},64117:g=>{"use strict";g.exports=function(S){return null==S}},20034:(g,S,n)=>{"use strict";var h=n(94901);g.exports=function(f){return"object"==typeof f?null!==f:h(f)}},13925:(g,S,n)=>{"use strict";var h=n(20034);g.exports=function(f){return h(f)||null===f}},96395:g=>{"use strict";g.exports=!1},60788:(g,S,n)=>{"use strict";var h=n(20034),f=n(44576),d=n(78227)("match");g.exports=function(y){var O;return h(y)&&(void 0!==(O=y[d])?!!O:"RegExp"===f(y))}},10757:(g,S,n)=>{"use strict";var h=n(97751),f=n(94901),c=n(1625),d=n(7040),y=Object;g.exports=d?function(O){return"symbol"==typeof O}:function(O){var x=h("Symbol");return f(x)&&c(x.prototype,y(O))}},72652:(g,S,n)=>{"use strict";var h=n(76080),f=n(69565),c=n(28551),d=n(16823),y=n(44209),O=n(26198),x=n(1625),b=n(70081),C=n(50851),A=n(9539),P=TypeError,R=function(M,I){this.stopped=M,this.result=I},w=R.prototype;g.exports=function(M,I,B){var rt,J,ht,vt,st,ft,k,X=!(!B||!B.AS_ENTRIES),F=!(!B||!B.IS_RECORD),H=!(!B||!B.IS_ITERATOR),Y=!(!B||!B.INTERRUPTED),Z=h(I,B&&B.that),ut=function(tt){return rt&&A(rt,"normal",tt),new R(!0,tt)},K=function(tt){return X?(c(tt),Y?Z(tt[0],tt[1],ut):Z(tt[0],tt[1])):Y?Z(tt,ut):Z(tt)};if(F)rt=M.iterator;else if(H)rt=M;else{if(!(J=C(M)))throw new P(d(M)+" is not iterable");if(y(J)){for(ht=0,vt=O(M);vt>ht;ht++)if((st=K(M[ht]))&&x(w,st))return st;return new R(!1)}rt=b(M,J)}for(ft=F?M.next:rt.next;!(k=f(ft,rt)).done;){try{st=K(k.value)}catch(tt){A(rt,"throw",tt)}if("object"==typeof st&&st&&x(w,st))return st}return new R(!1)}},9539:(g,S,n)=>{"use strict";var h=n(69565),f=n(28551),c=n(55966);g.exports=function(d,y,O){var x,b;f(d);try{if(!(x=c(d,"return"))){if("throw"===y)throw O;return O}x=h(x,d)}catch(C){b=!0,x=C}if("throw"===y)throw O;if(b)throw x;return f(x),O}},33994:(g,S,n)=>{"use strict";var h=n(57657).IteratorPrototype,f=n(2360),c=n(6980),d=n(10687),y=n(26269),O=function(){return this};g.exports=function(x,b,C,A){var P=b+" Iterator";return x.prototype=f(h,{next:c(+!A,C)}),d(x,P,!1,!0),y[P]=O,x}},51088:(g,S,n)=>{"use strict";var h=n(46518),f=n(69565),c=n(96395),d=n(10350),y=n(94901),O=n(33994),x=n(42787),b=n(52967),C=n(10687),A=n(66699),P=n(36840),R=n(78227),w=n(26269),M=n(57657),I=d.PROPER,B=d.CONFIGURABLE,$=M.IteratorPrototype,X=M.BUGGY_SAFARI_ITERATORS,F=R("iterator"),H="keys",Y="values",Z="entries",rt=function(){return this};g.exports=function(J,ht,vt,st,ft,k,ut){O(vt,ht,st);var xt,Mt,D,K=function(Pt){if(Pt===ft&&ct)return ct;if(!X&&Pt&&Pt in et)return et[Pt];switch(Pt){case H:case Y:case Z:return function(){return new vt(this,Pt)}}return function(){return new vt(this)}},tt=ht+" Iterator",Ft=!1,et=J.prototype,ot=et[F]||et["@@iterator"]||ft&&et[ft],ct=!X&&ot||K(ft),bt="Array"===ht&&et.entries||ot;if(bt&&(xt=x(bt.call(new J)))!==Object.prototype&&xt.next&&(!c&&x(xt)!==$&&(b?b(xt,$):y(xt[F])||P(xt,F,rt)),C(xt,tt,!0,!0),c&&(w[tt]=rt)),I&&ft===Y&&ot&&ot.name!==Y&&(!c&&B?A(et,"name",Y):(Ft=!0,ct=function(){return f(ot,this)})),ft)if(Mt={values:K(Y),keys:k?ct:K(H),entries:K(Z)},ut)for(D in Mt)(X||Ft||!(D in et))&&P(et,D,Mt[D]);else h({target:ht,proto:!0,forced:X||Ft},Mt);return(!c||ut)&&et[F]!==ct&&P(et,F,ct,{name:ft}),w[ht]=ct,Mt}},57657:(g,S,n)=>{"use strict";var P,R,w,h=n(79039),f=n(94901),c=n(20034),d=n(2360),y=n(42787),O=n(36840),x=n(78227),b=n(96395),C=x("iterator"),A=!1;[].keys&&("next"in(w=[].keys())?(R=y(y(w)))!==Object.prototype&&(P=R):A=!0),!c(P)||h(function(){var I={};return P[C].call(I)!==I})?P={}:b&&(P=d(P)),f(P[C])||O(P,C,function(){return this}),g.exports={IteratorPrototype:P,BUGGY_SAFARI_ITERATORS:A}},26269:g=>{"use strict";g.exports={}},26198:(g,S,n)=>{"use strict";var h=n(18014);g.exports=function(f){return h(f.length)}},50283:(g,S,n)=>{"use strict";var h=n(79504),f=n(79039),c=n(94901),d=n(39297),y=n(43724),O=n(10350).CONFIGURABLE,x=n(33706),b=n(91181),C=b.enforce,A=b.get,P=String,R=Object.defineProperty,w=h("".slice),M=h("".replace),I=h([].join),B=y&&!f(function(){return 8!==R(function(){},"length",{value:8}).length}),$=String(String).split("String"),X=g.exports=function(F,H,Y){"Symbol("===w(P(H),0,7)&&(H="["+M(P(H),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),Y&&Y.getter&&(H="get "+H),Y&&Y.setter&&(H="set "+H),(!d(F,"name")||O&&F.name!==H)&&(y?R(F,"name",{value:H,configurable:!0}):F.name=H),B&&Y&&d(Y,"arity")&&F.length!==Y.arity&&R(F,"length",{value:Y.arity});try{Y&&d(Y,"constructor")&&Y.constructor?y&&R(F,"prototype",{writable:!1}):F.prototype&&(F.prototype=void 0)}catch{}var Z=C(F);return d(Z,"source")||(Z.source=I($,"string"==typeof H?H:"")),F};Function.prototype.toString=X(function(){return c(this)&&A(this).source||x(this)},"toString")},80741:g=>{"use strict";var S=Math.ceil,n=Math.floor;g.exports=Math.trunc||function(f){var c=+f;return(c>0?n:S)(c)}},91955:(g,S,n)=>{"use strict";var I,B,$,X,F,h=n(24475),f=n(93389),c=n(76080),d=n(59225).set,y=n(18265),O=n(48119),x=n(20028),b=n(36765),C=n(19088),A=h.MutationObserver||h.WebKitMutationObserver,P=h.document,R=h.process,w=h.Promise,M=f("queueMicrotask");if(!M){var H=new y,Y=function(){var Z,rt;for(C&&(Z=R.domain)&&Z.exit();rt=H.get();)try{rt()}catch(J){throw H.head&&I(),J}Z&&Z.enter()};O||C||b||!A||!P?!x&&w&&w.resolve?((X=w.resolve(void 0)).constructor=w,F=c(X.then,X),I=function(){F(Y)}):C?I=function(){R.nextTick(Y)}:(d=c(d,h),I=function(){d(Y)}):(B=!0,$=P.createTextNode(""),new A(Y).observe($,{characterData:!0}),I=function(){$.data=B=!B}),M=function(Z){H.head||I(),H.add(Z)}}g.exports=M},36043:(g,S,n)=>{"use strict";var h=n(79306),f=TypeError,c=function(d){var y,O;this.promise=new d(function(x,b){if(void 0!==y||void 0!==O)throw new f("Bad Promise constructor");y=x,O=b}),this.resolve=h(y),this.reject=h(O)};g.exports.f=function(d){return new c(d)}},60511:(g,S,n)=>{"use strict";var h=n(60788),f=TypeError;g.exports=function(c){if(h(c))throw new f("The method doesn't accept regular expressions");return c}},2360:(g,S,n)=>{"use strict";var $,h=n(28551),f=n(96801),c=n(88727),d=n(30421),y=n(20397),O=n(4055),x=n(66119),A="prototype",P="script",R=x("IE_PROTO"),w=function(){},M=function(F){return"<"+P+">"+F+""},I=function(F){F.write(M("")),F.close();var H=F.parentWindow.Object;return F=null,H},X=function(){try{$=new ActiveXObject("htmlfile")}catch{}X=typeof document<"u"?document.domain&&$?I($):function(){var Y,F=O("iframe"),H="java"+P+":";return F.style.display="none",y.appendChild(F),F.src=String(H),(Y=F.contentWindow.document).open(),Y.write(M("document.F=Object")),Y.close(),Y.F}():I($);for(var F=c.length;F--;)delete X[A][c[F]];return X()};d[R]=!0,g.exports=Object.create||function(H,Y){var Z;return null!==H?(w[A]=h(H),Z=new w,w[A]=null,Z[R]=H):Z=X(),void 0===Y?Z:f.f(Z,Y)}},96801:(g,S,n)=>{"use strict";var h=n(43724),f=n(48686),c=n(24913),d=n(28551),y=n(25397),O=n(71072);S.f=h&&!f?Object.defineProperties:function(b,C){d(b);for(var M,A=y(C),P=O(C),R=P.length,w=0;R>w;)c.f(b,M=P[w++],A[M]);return b}},24913:(g,S,n)=>{"use strict";var h=n(43724),f=n(35917),c=n(48686),d=n(28551),y=n(56969),O=TypeError,x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,C="enumerable",A="configurable",P="writable";S.f=h?c?function(w,M,I){if(d(w),M=y(M),d(I),"function"==typeof w&&"prototype"===M&&"value"in I&&P in I&&!I[P]){var B=b(w,M);B&&B[P]&&(w[M]=I.value,I={configurable:A in I?I[A]:B[A],enumerable:C in I?I[C]:B[C],writable:!1})}return x(w,M,I)}:x:function(w,M,I){if(d(w),M=y(M),d(I),f)try{return x(w,M,I)}catch{}if("get"in I||"set"in I)throw new O("Accessors not supported");return"value"in I&&(w[M]=I.value),w}},77347:(g,S,n)=>{"use strict";var h=n(43724),f=n(69565),c=n(48773),d=n(6980),y=n(25397),O=n(56969),x=n(39297),b=n(35917),C=Object.getOwnPropertyDescriptor;S.f=h?C:function(P,R){if(P=y(P),R=O(R),b)try{return C(P,R)}catch{}if(x(P,R))return d(!f(c.f,P,R),P[R])}},38480:(g,S,n)=>{"use strict";var h=n(61828),c=n(88727).concat("length","prototype");S.f=Object.getOwnPropertyNames||function(y){return h(y,c)}},33717:(g,S)=>{"use strict";S.f=Object.getOwnPropertySymbols},42787:(g,S,n)=>{"use strict";var h=n(39297),f=n(94901),c=n(48981),d=n(66119),y=n(12211),O=d("IE_PROTO"),x=Object,b=x.prototype;g.exports=y?x.getPrototypeOf:function(C){var A=c(C);if(h(A,O))return A[O];var P=A.constructor;return f(P)&&A instanceof P?P.prototype:A instanceof x?b:null}},1625:(g,S,n)=>{"use strict";var h=n(79504);g.exports=h({}.isPrototypeOf)},61828:(g,S,n)=>{"use strict";var h=n(79504),f=n(39297),c=n(25397),d=n(19617).indexOf,y=n(30421),O=h([].push);g.exports=function(x,b){var R,C=c(x),A=0,P=[];for(R in C)!f(y,R)&&f(C,R)&&O(P,R);for(;b.length>A;)f(C,R=b[A++])&&(~d(P,R)||O(P,R));return P}},71072:(g,S,n)=>{"use strict";var h=n(61828),f=n(88727);g.exports=Object.keys||function(d){return h(d,f)}},48773:(g,S)=>{"use strict";var n={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,f=h&&!n.call({1:2},1);S.f=f?function(d){var y=h(this,d);return!!y&&y.enumerable}:n},52967:(g,S,n)=>{"use strict";var h=n(46706),f=n(20034),c=n(67750),d=n(73506);g.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x,y=!1,O={};try{(x=h(Object.prototype,"__proto__","set"))(O,[]),y=O instanceof Array}catch{}return function(C,A){return c(C),d(A),f(C)&&(y?x(C,A):C.__proto__=A),C}}():void 0)},84270:(g,S,n)=>{"use strict";var h=n(69565),f=n(94901),c=n(20034),d=TypeError;g.exports=function(y,O){var x,b;if("string"===O&&f(x=y.toString)&&!c(b=h(x,y))||f(x=y.valueOf)&&!c(b=h(x,y))||"string"!==O&&f(x=y.toString)&&!c(b=h(x,y)))return b;throw new d("Can't convert object to primitive value")}},35031:(g,S,n)=>{"use strict";var h=n(97751),f=n(79504),c=n(38480),d=n(33717),y=n(28551),O=f([].concat);g.exports=h("Reflect","ownKeys")||function(b){var C=c.f(y(b)),A=d.f;return A?O(C,A(b)):C}},1103:g=>{"use strict";g.exports=function(S){try{return{error:!1,value:S()}}catch(n){return{error:!0,value:n}}}},10916:(g,S,n)=>{"use strict";var h=n(24475),f=n(80550),c=n(94901),d=n(92796),y=n(33706),O=n(78227),x=n(87290),b=n(50516),C=n(96395),A=n(77388),P=f&&f.prototype,R=O("species"),w=!1,M=c(h.PromiseRejectionEvent),I=d("Promise",function(){var B=y(f),$=B!==String(f);if(!$&&66===A||C&&(!P.catch||!P.finally))return!0;if(!A||A<51||!/native code/.test(B)){var X=new f(function(Y){Y(1)}),F=function(Y){Y(function(){},function(){})};if((X.constructor={})[R]=F,!(w=X.then(function(){})instanceof F))return!0}return!$&&(x||b)&&!M});g.exports={CONSTRUCTOR:I,REJECTION_EVENT:M,SUBCLASSING:w}},80550:(g,S,n)=>{"use strict";var h=n(24475);g.exports=h.Promise},93438:(g,S,n)=>{"use strict";var h=n(28551),f=n(20034),c=n(36043);g.exports=function(d,y){if(h(d),f(y)&&y.constructor===d)return y;var O=c.f(d);return(0,O.resolve)(y),O.promise}},90537:(g,S,n)=>{"use strict";var h=n(80550),f=n(84428),c=n(10916).CONSTRUCTOR;g.exports=c||!f(function(d){h.all(d).then(void 0,function(){})})},18265:g=>{"use strict";var S=function(){this.head=null,this.tail=null};S.prototype={add:function(n){var h={item:n,next:null},f=this.tail;f?f.next=h:this.head=h,this.tail=h},get:function(){var n=this.head;if(n)return null===(this.head=n.next)&&(this.tail=null),n.item}},g.exports=S},56682:(g,S,n)=>{"use strict";var h=n(69565),f=n(28551),c=n(94901),d=n(44576),y=n(57323),O=TypeError;g.exports=function(x,b){var C=x.exec;if(c(C)){var A=h(C,x,b);return null!==A&&f(A),A}if("RegExp"===d(x))return h(y,x,b);throw new O("RegExp#exec called on incompatible receiver")}},57323:(g,S,n)=>{"use strict";var Z,rt,h=n(69565),f=n(79504),c=n(655),d=n(67979),y=n(58429),O=n(25745),x=n(2360),b=n(91181).get,C=n(83635),A=n(18814),P=O("native-string-replace",String.prototype.replace),R=RegExp.prototype.exec,w=R,M=f("".charAt),I=f("".indexOf),B=f("".replace),$=f("".slice),X=(rt=/b*/g,h(R,Z=/a/,"a"),h(R,rt,"a"),0!==Z.lastIndex||0!==rt.lastIndex),F=y.BROKEN_CARET,H=void 0!==/()??/.exec("")[1];(X||H||F||C||A)&&(w=function(rt){var ft,k,ut,K,tt,Ft,et,J=this,ht=b(J),vt=c(rt),st=ht.raw;if(st)return st.lastIndex=J.lastIndex,ft=h(w,st,vt),J.lastIndex=st.lastIndex,ft;var ot=ht.groups,ct=F&&J.sticky,bt=h(d,J),xt=J.source,Mt=0,D=vt;if(ct&&(bt=B(bt,"y",""),-1===I(bt,"g")&&(bt+="g"),D=$(vt,J.lastIndex),J.lastIndex>0&&(!J.multiline||J.multiline&&"\n"!==M(vt,J.lastIndex-1))&&(xt="(?: "+xt+")",D=" "+D,Mt++),k=new RegExp("^(?:"+xt+")",bt)),H&&(k=new RegExp("^"+xt+"$(?!\\s)",bt)),X&&(ut=J.lastIndex),K=h(R,ct?k:J,D),ct?K?(K.input=$(K.input,Mt),K[0]=$(K[0],Mt),K.index=J.lastIndex,J.lastIndex+=K[0].length):J.lastIndex=0:X&&K&&(J.lastIndex=J.global?K.index+K[0].length:ut),H&&K&&K.length>1&&h(P,K[0],k,function(){for(tt=1;tt{"use strict";var h=n(28551);g.exports=function(){var f=h(this),c="";return f.hasIndices&&(c+="d"),f.global&&(c+="g"),f.ignoreCase&&(c+="i"),f.multiline&&(c+="m"),f.dotAll&&(c+="s"),f.unicode&&(c+="u"),f.unicodeSets&&(c+="v"),f.sticky&&(c+="y"),c}},61034:(g,S,n)=>{"use strict";var h=n(69565),f=n(39297),c=n(1625),d=n(67979),y=RegExp.prototype;g.exports=function(O){var x=O.flags;return void 0!==x||"flags"in y||f(O,"flags")||!c(y,O)?x:h(d,O)}},58429:(g,S,n)=>{"use strict";var h=n(79039),c=n(24475).RegExp,d=h(function(){var x=c("a","y");return x.lastIndex=2,null!==x.exec("abcd")}),y=d||h(function(){return!c("a","y").sticky}),O=d||h(function(){var x=c("^r","gy");return x.lastIndex=2,null!==x.exec("str")});g.exports={BROKEN_CARET:O,MISSED_STICKY:y,UNSUPPORTED_Y:d}},83635:(g,S,n)=>{"use strict";var h=n(79039),c=n(24475).RegExp;g.exports=h(function(){var d=c(".","s");return!(d.dotAll&&d.test("\n")&&"s"===d.flags)})},18814:(g,S,n)=>{"use strict";var h=n(79039),c=n(24475).RegExp;g.exports=h(function(){var d=c("(?b)","g");return"b"!==d.exec("b").groups.a||"bc"!=="b".replace(d,"$c")})},67750:(g,S,n)=>{"use strict";var h=n(64117),f=TypeError;g.exports=function(c){if(h(c))throw new f("Can't call method on "+c);return c}},93389:(g,S,n)=>{"use strict";var h=n(24475),f=n(43724),c=Object.getOwnPropertyDescriptor;g.exports=function(d){if(!f)return h[d];var y=c(h,d);return y&&y.value}},87633:(g,S,n)=>{"use strict";var h=n(97751),f=n(62106),c=n(78227),d=n(43724),y=c("species");g.exports=function(O){var x=h(O);d&&x&&!x[y]&&f(x,y,{configurable:!0,get:function(){return this}})}},10687:(g,S,n)=>{"use strict";var h=n(24913).f,f=n(39297),d=n(78227)("toStringTag");g.exports=function(y,O,x){y&&!x&&(y=y.prototype),y&&!f(y,d)&&h(y,d,{configurable:!0,value:O})}},66119:(g,S,n)=>{"use strict";var h=n(25745),f=n(33392),c=h("keys");g.exports=function(d){return c[d]||(c[d]=f(d))}},77629:(g,S,n)=>{"use strict";var h=n(96395),f=n(24475),c=n(39433),d="__core-js_shared__",y=g.exports=f[d]||c(d,{});(y.versions||(y.versions=[])).push({version:"3.37.1",mode:h?"pure":"global",copyright:"\xa9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},25745:(g,S,n)=>{"use strict";var h=n(77629);g.exports=function(f,c){return h[f]||(h[f]=c||{})}},2293:(g,S,n)=>{"use strict";var h=n(28551),f=n(35548),c=n(64117),y=n(78227)("species");g.exports=function(O,x){var C,b=h(O).constructor;return void 0===b||c(C=h(b)[y])?x:f(C)}},68183:(g,S,n)=>{"use strict";var h=n(79504),f=n(91291),c=n(655),d=n(67750),y=h("".charAt),O=h("".charCodeAt),x=h("".slice),b=function(C){return function(A,P){var I,B,R=c(d(A)),w=f(P),M=R.length;return w<0||w>=M?C?"":void 0:(I=O(R,w))<55296||I>56319||w+1===M||(B=O(R,w+1))<56320||B>57343?C?y(R,w):I:C?x(R,w,w+2):B-56320+(I-55296<<10)+65536}};g.exports={codeAt:b(!1),charAt:b(!0)}},60706:(g,S,n)=>{"use strict";var h=n(10350).PROPER,f=n(79039),c=n(47452);g.exports=function(y){return f(function(){return!!c[y]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[y]()||h&&c[y].name!==y})}},43802:(g,S,n)=>{"use strict";var h=n(79504),f=n(67750),c=n(655),d=n(47452),y=h("".replace),O=RegExp("^["+d+"]+"),x=RegExp("(^|[^"+d+"])["+d+"]+$"),b=function(C){return function(A){var P=c(f(A));return 1&C&&(P=y(P,O,"")),2&C&&(P=y(P,x,"$1")),P}};g.exports={start:b(1),end:b(2),trim:b(3)}},4495:(g,S,n)=>{"use strict";var h=n(77388),f=n(79039),d=n(24475).String;g.exports=!!Object.getOwnPropertySymbols&&!f(function(){var y=Symbol("symbol detection");return!d(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&h&&h<41})},59225:(g,S,n)=>{"use strict";var rt,J,ht,vt,h=n(24475),f=n(18745),c=n(76080),d=n(94901),y=n(39297),O=n(79039),x=n(20397),b=n(67680),C=n(4055),A=n(22812),P=n(48119),R=n(19088),w=h.setImmediate,M=h.clearImmediate,I=h.process,B=h.Dispatch,$=h.Function,X=h.MessageChannel,F=h.String,H=0,Y={},Z="onreadystatechange";O(function(){rt=h.location});var st=function(K){if(y(Y,K)){var tt=Y[K];delete Y[K],tt()}},ft=function(K){return function(){st(K)}},k=function(K){st(K.data)},ut=function(K){h.postMessage(F(K),rt.protocol+"//"+rt.host)};(!w||!M)&&(w=function(tt){A(arguments.length,1);var Ft=d(tt)?tt:$(tt),et=b(arguments,1);return Y[++H]=function(){f(Ft,void 0,et)},J(H),H},M=function(tt){delete Y[tt]},R?J=function(K){I.nextTick(ft(K))}:B&&B.now?J=function(K){B.now(ft(K))}:X&&!P?(vt=(ht=new X).port2,ht.port1.onmessage=k,J=c(vt.postMessage,vt)):h.addEventListener&&d(h.postMessage)&&!h.importScripts&&rt&&"file:"!==rt.protocol&&!O(ut)?(J=ut,h.addEventListener("message",k,!1)):J=Z in C("script")?function(K){x.appendChild(C("script"))[Z]=function(){x.removeChild(this),st(K)}}:function(K){setTimeout(ft(K),0)}),g.exports={set:w,clear:M}},35610:(g,S,n)=>{"use strict";var h=n(91291),f=Math.max,c=Math.min;g.exports=function(d,y){var O=h(d);return O<0?f(O+y,0):c(O,y)}},25397:(g,S,n)=>{"use strict";var h=n(47055),f=n(67750);g.exports=function(c){return h(f(c))}},91291:(g,S,n)=>{"use strict";var h=n(80741);g.exports=function(f){var c=+f;return c!=c||0===c?0:h(c)}},18014:(g,S,n)=>{"use strict";var h=n(91291),f=Math.min;g.exports=function(c){var d=h(c);return d>0?f(d,9007199254740991):0}},48981:(g,S,n)=>{"use strict";var h=n(67750),f=Object;g.exports=function(c){return f(h(c))}},72777:(g,S,n)=>{"use strict";var h=n(69565),f=n(20034),c=n(10757),d=n(55966),y=n(84270),O=n(78227),x=TypeError,b=O("toPrimitive");g.exports=function(C,A){if(!f(C)||c(C))return C;var R,P=d(C,b);if(P){if(void 0===A&&(A="default"),R=h(P,C,A),!f(R)||c(R))return R;throw new x("Can't convert object to primitive value")}return void 0===A&&(A="number"),y(C,A)}},56969:(g,S,n)=>{"use strict";var h=n(72777),f=n(10757);g.exports=function(c){var d=h(c,"string");return f(d)?d:d+""}},92140:(g,S,n)=>{"use strict";var c={};c[n(78227)("toStringTag")]="z",g.exports="[object z]"===String(c)},655:(g,S,n)=>{"use strict";var h=n(36955),f=String;g.exports=function(c){if("Symbol"===h(c))throw new TypeError("Cannot convert a Symbol value to a string");return f(c)}},16823:g=>{"use strict";var S=String;g.exports=function(n){try{return S(n)}catch{return"Object"}}},33392:(g,S,n)=>{"use strict";var h=n(79504),f=0,c=Math.random(),d=h(1..toString);g.exports=function(y){return"Symbol("+(void 0===y?"":y)+")_"+d(++f+c,36)}},7040:(g,S,n)=>{"use strict";var h=n(4495);g.exports=h&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},48686:(g,S,n)=>{"use strict";var h=n(43724),f=n(79039);g.exports=h&&f(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},22812:g=>{"use strict";var S=TypeError;g.exports=function(n,h){if(n{"use strict";var h=n(24475),f=n(94901),c=h.WeakMap;g.exports=f(c)&&/native code/.test(String(c))},78227:(g,S,n)=>{"use strict";var h=n(24475),f=n(25745),c=n(39297),d=n(33392),y=n(4495),O=n(7040),x=h.Symbol,b=f("wks"),C=O?x.for||x:x&&x.withoutSetter||d;g.exports=function(A){return c(b,A)||(b[A]=y&&c(x,A)?x[A]:C("Symbol."+A)),b[A]}},47452:g=>{"use strict";g.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},25276:(g,S,n)=>{"use strict";var h=n(46518),f=n(27476),c=n(19617).indexOf,d=n(34598),y=f([].indexOf),O=!!y&&1/y([1],1,-0)<0;h({target:"Array",proto:!0,forced:O||!d("indexOf")},{indexOf:function(C){var A=arguments.length>1?arguments[1]:void 0;return O?y(this,C,A)||0:c(this,C,A)}})},23792:(g,S,n)=>{"use strict";var h=n(25397),f=n(6469),c=n(26269),d=n(91181),y=n(24913).f,O=n(51088),x=n(62529),b=n(96395),C=n(43724),A="Array Iterator",P=d.set,R=d.getterFor(A);g.exports=O(Array,"Array",function(M,I){P(this,{type:A,target:h(M),index:0,kind:I})},function(){var M=R(this),I=M.target,B=M.index++;if(!I||B>=I.length)return M.target=void 0,x(void 0,!0);switch(M.kind){case"keys":return x(B,!1);case"values":return x(I[B],!1)}return x([B,I[B]],!1)},"values");var w=c.Arguments=c.Array;if(f("keys"),f("values"),f("entries"),!b&&C&&"values"!==w.name)try{y(w,"name",{value:"values"})}catch{}},72712:(g,S,n)=>{"use strict";var h=n(46518),f=n(80926).left,c=n(34598),d=n(77388);h({target:"Array",proto:!0,forced:!n(19088)&&d>79&&d<83||!c("reduce")},{reduce:function(C){var A=arguments.length;return f(this,C,A,A>1?arguments[1]:void 0)}})},94490:(g,S,n)=>{"use strict";var h=n(46518),f=n(79504),c=n(34376),d=f([].reverse),y=[1,2];h({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return c(this)&&(this.length=this.length),d(this)}})},16499:(g,S,n)=>{"use strict";var h=n(46518),f=n(69565),c=n(79306),d=n(36043),y=n(1103),O=n(72652);h({target:"Promise",stat:!0,forced:n(90537)},{all:function(C){var A=this,P=d.f(A),R=P.resolve,w=P.reject,M=y(function(){var I=c(A.resolve),B=[],$=0,X=1;O(C,function(F){var H=$++,Y=!1;X++,f(I,A,F).then(function(Z){Y||(Y=!0,B[H]=Z,--X||R(B))},w)}),--X||R(B)});return M.error&&w(M.value),P.promise}})},82003:(g,S,n)=>{"use strict";var h=n(46518),f=n(96395),c=n(10916).CONSTRUCTOR,d=n(80550),y=n(97751),O=n(94901),x=n(36840),b=d&&d.prototype;if(h({target:"Promise",proto:!0,forced:c,real:!0},{catch:function(A){return this.then(void 0,A)}}),!f&&O(d)){var C=y("Promise").prototype.catch;b.catch!==C&&x(b,"catch",C,{unsafe:!0})}},10436:(g,S,n)=>{"use strict";var Zt,Ee,re,h=n(46518),f=n(96395),c=n(19088),d=n(24475),y=n(69565),O=n(36840),x=n(52967),b=n(10687),C=n(87633),A=n(79306),P=n(94901),R=n(20034),w=n(90679),M=n(2293),I=n(59225).set,B=n(91955),$=n(90757),X=n(1103),F=n(18265),H=n(91181),Y=n(80550),Z=n(10916),rt=n(36043),J="Promise",ht=Z.CONSTRUCTOR,vt=Z.REJECTION_EVENT,st=Z.SUBCLASSING,ft=H.getterFor(J),k=H.set,ut=Y&&Y.prototype,K=Y,tt=ut,Ft=d.TypeError,et=d.document,ot=d.process,ct=rt.f,bt=ct,xt=!!(et&&et.createEvent&&d.dispatchEvent),Mt="unhandledrejection",ue=function(G){var it;return!(!R(G)||!P(it=G.then))&&it},le=function(G,it){var ce,ze,Ge,pt=it.value,dt=1===it.state,Ct=dt?G.ok:G.fail,fe=G.resolve,Me=G.reject,ve=G.domain;try{Ct?(dt||(2===it.rejection&&nr(it),it.rejection=1),!0===Ct?ce=pt:(ve&&ve.enter(),ce=Ct(pt),ve&&(ve.exit(),Ge=!0)),ce===G.promise?Me(new Ft("Promise-chain cycle")):(ze=ue(ce))?y(ze,ce,fe,Me):fe(ce)):Me(pt)}catch(ar){ve&&!Ge&&ve.exit(),Me(ar)}},he=function(G,it){G.notified||(G.notified=!0,B(function(){for(var dt,pt=G.reactions;dt=pt.get();)le(dt,G);G.notified=!1,it&&!G.rejection&&rr(G)}))},qt=function(G,it,pt){var dt,Ct;xt?((dt=et.createEvent("Event")).promise=it,dt.reason=pt,dt.initEvent(G,!1,!0),d.dispatchEvent(dt)):dt={promise:it,reason:pt},!vt&&(Ct=d["on"+G])?Ct(dt):G===Mt&&$("Unhandled promise rejection",pt)},rr=function(G){y(I,d,function(){var Ct,it=G.facade,pt=G.value;if(je(G)&&(Ct=X(function(){c?ot.emit("unhandledRejection",pt,it):qt(Mt,it,pt)}),G.rejection=c||je(G)?2:1,Ct.error))throw Ct.value})},je=function(G){return 1!==G.rejection&&!G.parent},nr=function(G){y(I,d,function(){var it=G.facade;c?ot.emit("rejectionHandled",it):qt("rejectionhandled",it,G.value)})},$t=function(G,it,pt){return function(dt){G(it,dt,pt)}},ne=function(G,it,pt){G.done||(G.done=!0,pt&&(G=pt),G.value=it,G.state=2,he(G,!0))},Ie=function(G,it,pt){if(!G.done){G.done=!0,pt&&(G=pt);try{if(G.facade===it)throw new Ft("Promise can't be resolved itself");var dt=ue(it);dt?B(function(){var Ct={done:!1};try{y(dt,it,$t(Ie,Ct,G),$t(ne,Ct,G))}catch(fe){ne(Ct,fe,G)}}):(G.value=it,G.state=1,he(G,!1))}catch(Ct){ne({done:!1},Ct,G)}}};if(ht&&(K=function(it){w(this,tt),A(it),y(Zt,this);var pt=ft(this);try{it($t(Ie,pt),$t(ne,pt))}catch(dt){ne(pt,dt)}},(Zt=function(it){k(this,{type:J,done:!1,notified:!1,parent:!1,reactions:new F,rejection:!1,state:0,value:void 0})}).prototype=O(tt=K.prototype,"then",function(it,pt){var dt=ft(this),Ct=ct(M(this,K));return dt.parent=!0,Ct.ok=!P(it)||it,Ct.fail=P(pt)&&pt,Ct.domain=c?ot.domain:void 0,0===dt.state?dt.reactions.add(Ct):B(function(){le(Ct,dt)}),Ct.promise}),Ee=function(){var G=new Zt,it=ft(G);this.promise=G,this.resolve=$t(Ie,it),this.reject=$t(ne,it)},rt.f=ct=function(G){return G===K||void 0===G?new Ee(G):bt(G)},!f&&P(Y)&&ut!==Object.prototype)){re=ut.then,st||O(ut,"then",function(it,pt){var dt=this;return new K(function(Ct,fe){y(re,dt,Ct,fe)}).then(it,pt)},{unsafe:!0});try{delete ut.constructor}catch{}x&&x(ut,tt)}h({global:!0,constructor:!0,wrap:!0,forced:ht},{Promise:K}),b(K,J,!1,!0),C(J)},80981:(g,S,n)=>{"use strict";n(10436),n(16499),n(82003),n(7743),n(51481),n(40280)},7743:(g,S,n)=>{"use strict";var h=n(46518),f=n(69565),c=n(79306),d=n(36043),y=n(1103),O=n(72652);h({target:"Promise",stat:!0,forced:n(90537)},{race:function(C){var A=this,P=d.f(A),R=P.reject,w=y(function(){var M=c(A.resolve);O(C,function(I){f(M,A,I).then(P.resolve,R)})});return w.error&&R(w.value),P.promise}})},51481:(g,S,n)=>{"use strict";var h=n(46518),f=n(36043);h({target:"Promise",stat:!0,forced:n(10916).CONSTRUCTOR},{reject:function(y){var O=f.f(this);return(0,O.reject)(y),O.promise}})},40280:(g,S,n)=>{"use strict";var h=n(46518),f=n(97751),c=n(96395),d=n(80550),y=n(10916).CONSTRUCTOR,O=n(93438),x=f("Promise"),b=c&&!y;h({target:"Promise",stat:!0,forced:c||y},{resolve:function(A){return O(b&&this===x?d:this,A)}})},27495:(g,S,n)=>{"use strict";var h=n(46518),f=n(57323);h({target:"RegExp",proto:!0,forced:/./.exec!==f},{exec:f})},38781:(g,S,n)=>{"use strict";var h=n(10350).PROPER,f=n(36840),c=n(28551),d=n(655),y=n(79039),O=n(61034),x="toString",b=RegExp.prototype,C=b[x];(y(function(){return"/a/b"!==C.call({source:"a",flags:"b"})})||h&&C.name!==x)&&f(b,x,function(){var w=c(this);return"/"+d(w.source)+"/"+d(O(w))},{unsafe:!0})},99449:(g,S,n)=>{"use strict";var M,h=n(46518),f=n(27476),c=n(77347).f,d=n(18014),y=n(655),O=n(60511),x=n(67750),b=n(41436),C=n(96395),A=f("".slice),P=Math.min,R=b("endsWith");h({target:"String",proto:!0,forced:!(!C&&!R&&(M=c(String.prototype,"endsWith"),M&&!M.writable)||R)},{endsWith:function(I){var B=y(x(this));O(I);var $=arguments.length>1?arguments[1]:void 0,X=B.length,F=void 0===$?X:P(d($),X),H=y(I);return A(B,F-H.length,F)===H}})},21699:(g,S,n)=>{"use strict";var h=n(46518),f=n(79504),c=n(60511),d=n(67750),y=n(655),O=n(41436),x=f("".indexOf);h({target:"String",proto:!0,forced:!O("includes")},{includes:function(C){return!!~x(y(d(this)),y(c(C)),arguments.length>1?arguments[1]:void 0)}})},71761:(g,S,n)=>{"use strict";var h=n(69565),f=n(89228),c=n(28551),d=n(64117),y=n(18014),O=n(655),x=n(67750),b=n(55966),C=n(57829),A=n(56682);f("match",function(P,R,w){return[function(I){var B=x(this),$=d(I)?void 0:b(I,P);return $?h($,I,B):new RegExp(I)[P](O(B))},function(M){var I=c(this),B=O(M),$=w(R,I,B);if($.done)return $.value;if(!I.global)return A(I,B);var X=I.unicode;I.lastIndex=0;for(var Y,F=[],H=0;null!==(Y=A(I,B));){var Z=O(Y[0]);F[H]=Z,""===Z&&(I.lastIndex=C(B,y(I.lastIndex),X)),H++}return 0===H?null:F}]})},25440:(g,S,n)=>{"use strict";var h=n(18745),f=n(69565),c=n(79504),d=n(89228),y=n(79039),O=n(28551),x=n(94901),b=n(64117),C=n(91291),A=n(18014),P=n(655),R=n(67750),w=n(57829),M=n(55966),I=n(2478),B=n(56682),X=n(78227)("replace"),F=Math.max,H=Math.min,Y=c([].concat),Z=c([].push),rt=c("".indexOf),J=c("".slice),ht=function(k){return void 0===k?k:String(k)},vt="$0"==="a".replace(/./,"$0"),st=!!/./[X]&&""===/./[X]("a","$0");d("replace",function(k,ut,K){var tt=st?"$":"$0";return[function(et,ot){var ct=R(this),bt=b(et)?void 0:M(et,X);return bt?f(bt,et,ct,ot):f(ut,P(ct),et,ot)},function(Ft,et){var ot=O(this),ct=P(Ft);if("string"==typeof et&&-1===rt(et,tt)&&-1===rt(et,"$<")){var bt=K(ut,ot,ct,et);if(bt.done)return bt.value}var xt=x(et);xt||(et=P(et));var D,Mt=ot.global;Mt&&(D=ot.unicode,ot.lastIndex=0);for(var jt,Pt=[];null!==(jt=B(ot,ct))&&(Z(Pt,jt),Mt);)""===P(jt[0])&&(ot.lastIndex=w(ct,A(ot.lastIndex),D));for(var oe="",kt=0,Zt=0;Zt=kt&&(oe+=J(ct,kt,Jt)+ue,kt=Jt+Ee.length)}return oe+J(ct,kt)}]},!!y(function(){var k=/./;return k.exec=function(){var ut=[];return ut.groups={a:"7"},ut},"7"!=="".replace(k,"$")})||!vt||st)},90744:(g,S,n)=>{"use strict";var h=n(69565),f=n(79504),c=n(89228),d=n(28551),y=n(64117),O=n(67750),x=n(2293),b=n(57829),C=n(18014),A=n(655),P=n(55966),R=n(56682),w=n(58429),M=n(79039),I=w.UNSUPPORTED_Y,$=Math.min,X=f([].push),F=f("".slice),H=!M(function(){var Z=/(?:)/,rt=Z.exec;Z.exec=function(){return rt.apply(this,arguments)};var J="ab".split(Z);return 2!==J.length||"a"!==J[0]||"b"!==J[1]}),Y="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;c("split",function(Z,rt,J){var ht="0".split(void 0,0).length?function(vt,st){return void 0===vt&&0===st?[]:h(rt,this,vt,st)}:rt;return[function(st,ft){var k=O(this),ut=y(st)?void 0:P(st,Z);return ut?h(ut,st,k,ft):h(ht,A(k),st,ft)},function(vt,st){var ft=d(this),k=A(vt);if(!Y){var ut=J(ht,ft,k,st,ht!==rt);if(ut.done)return ut.value}var K=x(ft,RegExp),tt=ft.unicode,et=new K(I?"^(?:"+ft.source+")":ft,(ft.ignoreCase?"i":"")+(ft.multiline?"m":"")+(ft.unicode?"u":"")+(I?"g":"y")),ot=void 0===st?4294967295:st>>>0;if(0===ot)return[];if(0===k.length)return null===R(et,k)?[k]:[];for(var ct=0,bt=0,xt=[];bt{"use strict";var M,h=n(46518),f=n(27476),c=n(77347).f,d=n(18014),y=n(655),O=n(60511),x=n(67750),b=n(41436),C=n(96395),A=f("".slice),P=Math.min,R=b("startsWith");h({target:"String",proto:!0,forced:!(!C&&!R&&(M=c(String.prototype,"startsWith"),M&&!M.writable)||R)},{startsWith:function(I){var B=y(x(this));O(I);var $=d(P(arguments.length>1?arguments[1]:void 0,B.length)),X=y(I);return A(B,$,$+X.length)===X}})},42762:(g,S,n)=>{"use strict";var h=n(46518),f=n(43802).trim;h({target:"String",proto:!0,forced:n(60706)("trim")},{trim:function(){return f(this)}})},62953:(g,S,n)=>{"use strict";var h=n(24475),f=n(67400),c=n(79296),d=n(23792),y=n(66699),O=n(10687),b=n(78227)("iterator"),C=d.values,A=function(R,w){if(R){if(R[b]!==C)try{y(R,b,C)}catch{R[b]=C}if(O(R,w,!0),f[w])for(var M in d)if(R[M]!==d[M])try{y(R,M,d[M])}catch{R[M]=d[M]}}};for(var P in f)A(h[P]&&h[P].prototype,P);A(c,"DOMTokenList")},20147:(g,S,n)=>{"use strict";n.r(S),n.d(S,{AElement:()=>sn,AnimateColorElement:()=>_r,AnimateElement:()=>We,AnimateTransformElement:()=>tn,BoundingBox:()=>Qt,CB1:()=>or,CB2:()=>ur,CB3:()=>lr,CB4:()=>hr,Canvg:()=>Ce,CircleElement:()=>Hr,ClipPathElement:()=>pn,DefsElement:()=>Zr,DescElement:()=>Sn,Document:()=>Cn,Element:()=>Nt,EllipseElement:()=>Yr,FeColorMatrixElement:()=>Tr,FeCompositeElement:()=>En,FeDropShadowElement:()=>mn,FeGaussianBlurElement:()=>Tn,FeMorphologyElement:()=>xn,FilterElement:()=>yn,Font:()=>Se,FontElement:()=>en,FontFaceElement:()=>rn,GElement:()=>Xe,GlyphElement:()=>yr,GradientElement:()=>Er,ImageElement:()=>ln,LineElement:()=>Xr,LinearGradientElement:()=>kr,MarkerElement:()=>Kr,MaskElement:()=>gn,Matrix:()=>dr,MissingGlyphElement:()=>nn,Mouse:()=>Dr,PSEUDO_ZERO:()=>Oe,Parser:()=>He,PathElement:()=>Et,PathParser:()=>nt,PatternElement:()=>Qr,Point:()=>Rt,PolygonElement:()=>Wr,PolylineElement:()=>xr,Property:()=>_,QB1:()=>fr,QB2:()=>vr,QB3:()=>cr,RadialGradientElement:()=>Jr,RectElement:()=>mr,RenderedElement:()=>ge,Rotate:()=>Ur,SVGElement:()=>we,SVGFontLoader:()=>fn,Scale:()=>jr,Screen:()=>gr,Skew:()=>pr,SkewX:()=>zr,SkewY:()=>Gr,StopElement:()=>qr,StyleElement:()=>vn,SymbolElement:()=>hn,TRefElement:()=>an,TSpanElement:()=>Fe,TextElement:()=>ae,TextPathElement:()=>un,TitleElement:()=>On,Transform:()=>Ye,Translate:()=>Fr,UnknownElement:()=>$r,UseElement:()=>cn,ViewPort:()=>Vr,compressSpaces:()=>$t,default:()=>Ce,getSelectorSpecificity:()=>wr,normalizeAttributeName:()=>pt,normalizeColor:()=>Ct,parseExternalUrl:()=>dt,presets:()=>nr,toNumbers:()=>G,trimLeft:()=>ne,trimRight:()=>Ie,vectorMagnitude:()=>ir,vectorsAngle:()=>sr,vectorsRatio:()=>$e}),n(80981);var f=n(10467),b=(n(71761),n(25440),n(11392),n(23792),n(62953),n(82284));function P(l,t,e){return(t=function A(l){var t=function C(l,t){if("object"!=(0,b.A)(l)||!l)return l;var e=l[Symbol.toPrimitive];if(void 0!==e){var r=e.call(l,t||"default");if("object"!=(0,b.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(l)}(l,"string");return"symbol"==(0,b.A)(t)?t:String(t)}(t))in l?Object.defineProperty(l,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):l[t]=e,l}n(72712),n(99449),n(90744);var I=n(54361),$=(n(42762),n(96310)),Y=(n(25276),n(21699),n(94490),function(l,t){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])})(l,t)});function Z(l,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=l}Y(l,t),l.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}function J(l,t){var e=l[0],r=l[1];return[e*Math.cos(t)-r*Math.sin(t),e*Math.sin(t)+r*Math.cos(t)]}function ht(){for(var l=[],t=0;tl.phi1&&(l.phi2-=2*vt),1===l.sweepFlag&&l.phi2r)return[];if(0===r)return[[l*e/(l*l+t*t),t*e/(l*l+t*t)]];var a=Math.sqrt(r);return[[(l*e+t*a)/(l*l+t*t),(t*e-l*a)/(l*l+t*t)],[(l*e-t*a)/(l*l+t*t),(t*e+l*a)/(l*l+t*t)]]}var k,ut=Math.PI/180;function K(l,t,e){return(1-e)*l+e*t}function tt(l,t,e,r){return l+Math.cos(r/180*vt)*t+Math.sin(r/180*vt)*e}function Ft(l,t,e,r){var a=1e-6,i=t-l,o=e-t,s=3*i+3*(r-e)-6*o,u=6*(o-i),v=3*i;return Math.abs(s)W&&(m.sweepFlag=+!m.sweepFlag),m})}l.ROUND=function(s){function u(v){return Math.round(v*s)/s}return void 0===s&&(s=1e13),ht(s),function(v){return void 0!==v.x1&&(v.x1=u(v.x1)),void 0!==v.y1&&(v.y1=u(v.y1)),void 0!==v.x2&&(v.x2=u(v.x2)),void 0!==v.y2&&(v.y2=u(v.y2)),void 0!==v.x&&(v.x=u(v.x)),void 0!==v.y&&(v.y=u(v.y)),void 0!==v.rX&&(v.rX=u(v.rX)),void 0!==v.rY&&(v.rY=u(v.rY)),v}},l.TO_ABS=t,l.TO_REL=function(){return a(function(s,u,v){return s.relative||(void 0!==s.x1&&(s.x1-=u),void 0!==s.y1&&(s.y1-=v),void 0!==s.x2&&(s.x2-=u),void 0!==s.y2&&(s.y2-=v),void 0!==s.x&&(s.x-=u),void 0!==s.y&&(s.y-=v),s.relative=!0),s})},l.NORMALIZE_HVZ=function(s,u,v){return void 0===s&&(s=!0),void 0===u&&(u=!0),void 0===v&&(v=!0),a(function(p,E,T,m,N){if(isNaN(m)&&!(p.type&D.MOVE_TO))throw new Error("path must start with moveto");return u&&p.type&D.HORIZ_LINE_TO&&(p.type=D.LINE_TO,p.y=p.relative?0:T),v&&p.type&D.VERT_LINE_TO&&(p.type=D.LINE_TO,p.x=p.relative?0:E),s&&p.type&D.CLOSE_PATH&&(p.type=D.LINE_TO,p.x=p.relative?m-E:m,p.y=p.relative?N-T:N),p.type&D.ARC&&(0===p.rX||0===p.rY)&&(p.type=D.LINE_TO,delete p.rX,delete p.rY,delete p.xRot,delete p.lArcFlag,delete p.sweepFlag),p})},l.NORMALIZE_ST=e,l.QT_TO_C=r,l.INFO=a,l.SANITIZE=function(s){void 0===s&&(s=0),ht(s);var u=NaN,v=NaN,p=NaN,E=NaN;return a(function(T,m,N,V,L){var U=Math.abs,Q=!1,z=0,j=0;if(T.type&D.SMOOTH_CURVE_TO&&(z=isNaN(u)?0:m-u,j=isNaN(v)?0:N-v),T.type&(D.CURVE_TO|D.SMOOTH_CURVE_TO)?(u=T.relative?m+T.x2:T.x2,v=T.relative?N+T.y2:T.y2):(u=NaN,v=NaN),T.type&D.SMOOTH_QUAD_TO?(p=isNaN(p)?m:2*m-p,E=isNaN(E)?N:2*N-E):T.type&D.QUAD_TO?(p=T.relative?m+T.x1:T.x1,E=T.relative?N+T.y1:T.y2):(p=NaN,E=NaN),T.type&D.LINE_COMMANDS||T.type&D.ARC&&(0===T.rX||0===T.rY||!T.lArcFlag)||T.type&D.CURVE_TO||T.type&D.SMOOTH_CURVE_TO||T.type&D.QUAD_TO||T.type&D.SMOOTH_QUAD_TO){var q=void 0===T.x?0:T.relative?T.x:T.x-m,at=void 0===T.y?0:T.relative?T.y:T.y-N;z=isNaN(p)?void 0===T.x1?z:T.relative?T.x:T.x1-m:p-m,j=isNaN(E)?void 0===T.y1?j:T.relative?T.y:T.y1-N:E-N;var W=void 0===T.x2?0:T.relative?T.x:T.x2-m,lt=void 0===T.y2?0:T.relative?T.y:T.y2-N;U(q)<=s&&U(at)<=s&&U(z)<=s&&U(j)<=s&&U(W)<=s&&U(lt)<=s&&(Q=!0)}return T.type&D.CLOSE_PATH&&U(m-V)<=s&&U(N-L)<=s&&(Q=!0),Q?[]:T})},l.MATRIX=i,l.ROTATE=function(s,u,v){void 0===u&&(u=0),void 0===v&&(v=0),ht(s,u,v);var p=Math.sin(s),E=Math.cos(s);return i(E,p,-p,E,u-u*E+v*p,v-u*p-v*E)},l.TRANSLATE=function(s,u){return void 0===u&&(u=0),ht(s,u),i(1,0,0,1,s,u)},l.SCALE=function(s,u){return void 0===u&&(u=s),ht(s,u),i(s,0,0,u,0,0)},l.SKEW_X=function(s){return ht(s),i(1,0,Math.atan(s),1,0,0)},l.SKEW_Y=function(s){return ht(s),i(1,Math.atan(s),0,1,0,0)},l.X_AXIS_SYMMETRY=function(s){return void 0===s&&(s=0),ht(s),i(-1,0,0,1,s,0)},l.Y_AXIS_SYMMETRY=function(s){return void 0===s&&(s=0),ht(s),i(1,0,0,-1,0,s)},l.A_TO_C=function(){return a(function(s,u,v){return D.ARC===s.type?function(p,E,T){var m,N,V,L;p.cX||st(p,E,T);for(var U=Math.min(p.phi1,p.phi2),Q=Math.max(p.phi1,p.phi2)-U,z=Math.ceil(Q/90),j=new Array(z),q=E,at=T,W=0;WE.maxX&&(E.maxX=yt),ytE.maxY&&(E.maxY=yt),ytOt&&L(et(m,V.x1,V.x2,V.x,Ot));for(var j=0,q=Ft(N,V.y1,V.y2,V.y);jOt&&U(et(N,V.y1,V.y2,V.y,Ot))}if(V.type&D.ARC){L(V.x),U(V.y),st(V,m,N);for(var at=V.xRot/180*Math.PI,W=Math.cos(at)*V.rX,lt=Math.sin(at)*V.rX,gt=-Math.sin(at)*V.rY,mt=Math.cos(at)*V.rY,Tt=V.phi1V.phi2?[V.phi2+360,V.phi1+360]:[V.phi2,V.phi1],St=Tt[0],Dt=Tt[1],Lt=function(yt){var Ht=180*Math.atan2(yt[1],yt[0])/Math.PI;return HtSt&&OtSt&&Otp)throw new SyntaxError('Expected positive number, got "'+p+'" at index "'+o+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"');this.curArgs.push(p),this.curArgs.length===Pt[this.curCommandType]&&(D.HORIZ_LINE_TO===this.curCommandType?i({type:D.HORIZ_LINE_TO,relative:this.curCommandRelative,x:p}):D.VERT_LINE_TO===this.curCommandType?i({type:D.VERT_LINE_TO,relative:this.curCommandRelative,y:p}):this.curCommandType===D.MOVE_TO||this.curCommandType===D.LINE_TO||this.curCommandType===D.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),D.MOVE_TO===this.curCommandType&&(this.curCommandType=D.LINE_TO)):this.curCommandType===D.CURVE_TO?i({type:D.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===D.SMOOTH_CURVE_TO?i({type:D.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===D.QUAD_TO?i({type:D.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===D.ARC&&i({type:D.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!bt(s))if(","===s&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==s&&"-"!==s&&"."!==s)if(v)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==s&&"Z"!==s)if("h"===s||"H"===s)this.curCommandType=D.HORIZ_LINE_TO,this.curCommandRelative="h"===s;else if("v"===s||"V"===s)this.curCommandType=D.VERT_LINE_TO,this.curCommandRelative="v"===s;else if("m"===s||"M"===s)this.curCommandType=D.MOVE_TO,this.curCommandRelative="m"===s;else if("l"===s||"L"===s)this.curCommandType=D.LINE_TO,this.curCommandRelative="l"===s;else if("c"===s||"C"===s)this.curCommandType=D.CURVE_TO,this.curCommandRelative="c"===s;else if("s"===s||"S"===s)this.curCommandType=D.SMOOTH_CURVE_TO,this.curCommandRelative="s"===s;else if("q"===s||"Q"===s)this.curCommandType=D.QUAD_TO,this.curCommandRelative="q"===s;else if("t"===s||"T"===s)this.curCommandType=D.SMOOTH_QUAD_TO,this.curCommandRelative="t"===s;else{if("a"!==s&&"A"!==s)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=D.ARC,this.curCommandRelative="a"===s}else r.push({type:D.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal="."===s}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return r},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(r,a){void 0===a&&(a=[]);for(var i=0,o=Object.getPrototypeOf(this).parse.call(this,r);i>>q;if(o[z+3]=ye,0!==ye){var me=255/ye;o[z]=(yt*j>>>q)*me,o[z+1]=(Bt*j>>>q)*me,o[z+2]=(zt*j>>>q)*me}else o[z]=o[z+1]=o[z+2]=0;yt-=wt,Bt-=It,zt-=Ut,Ht-=Ot,wt-=L.r,It-=L.g,Ut-=L.b,Ot-=L.a;var te=pe+i+1;yt+=St+=L.r=o[te=Q+(te>>q,Xt>0?(o[Wt]=(ke*j>>>q)*(Xt=255/Xt),o[Wt+1]=(Je*j>>>q)*Xt,o[Wt+2]=(qe*j>>>q)*Xt):o[Wt]=o[Wt+1]=o[Wt+2]=0,ke-=Sr,Je-=br,qe-=Cr,_e-=Ar,Sr-=L.r,br-=L.g,Cr-=L.b,Ar-=L.a,Wt=ee+((Wt=Mr+p)0&&void 0!==arguments[0]?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:l,createCanvas:(e,r)=>new OffscreenCanvas(e,r),createImage:e=>(0,f.A)(function*(){var r=yield fetch(e),a=yield r.blob();return yield createImageBitmap(a)})()};return(typeof DOMParser<"u"||typeof l>"u")&&Reflect.deleteProperty(t,"DOMParser"),t},node:function je(l){var{DOMParser:t,canvas:e,fetch:r}=l;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:e.createCanvas,createImage:e.loadImage}}});function $t(l){return l.replace(/(?!\u3000)\s+/gm," ")}function ne(l){return l.replace(/^[\n \t]+/,"")}function Ie(l){return l.replace(/[\n \t]+$/,"")}function G(l){return((l||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var it=/^[A-Z-]+$/;function pt(l){return it.test(l)?l.toLowerCase():l}function dt(l){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(l)||[];return t[2]||t[3]||t[4]}function Ct(l){if(!l.startsWith("rgb"))return l;var t=3;return l.replace(/\d+(\.\d+)?/g,(r,a)=>t--&&a?String(Math.round(parseFloat(r))):r)}var fe=/(\[[^\]]+\])/g,Me=/(#[^\s+>~.[:]+)/g,ve=/(\.[^\s+>~.[:]+)/g,ce=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,ze=/(:[\w-]+\([^)]*\))/gi,Ge=/(:[^\s+>~.[:]+)/g,ar=/([^\s+>~.[:]+)/g;function Te(l,t){var e=t.exec(l);return e?[l.replace(t," "),e.length]:[l,0]}function wr(l){var t=[0,0,0],e=l.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[e,r]=Te(e,fe),t[1]+=r,[e,r]=Te(e,Me),t[0]+=r,[e,r]=Te(e,ve),t[1]+=r,[e,r]=Te(e,ce),t[2]+=r,[e,r]=Te(e,ze),t[1]+=r,[e,r]=Te(e,Ge),t[1]+=r,e=e.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[e,r]=Te(e,ar),t[2]+=r,t.join("")}var Oe=1e-8;function ir(l){return Math.sqrt(Math.pow(l[0],2)+Math.pow(l[1],2))}function $e(l,t){return(l[0]*t[0]+l[1]*t[1])/(ir(l)*ir(t))}function sr(l,t){return(l[0]*t[1]{class l{constructor(e,r,a){this.document=e,this.name=r,this.value=a,this.isNormalizedColor=!1}static empty(e){return new l(e,"EMPTY","")}split(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:r,name:a}=this;return $t(this.getString()).trim().split(e).map(i=>new l(r,a,i))}hasValue(e){var{value:r}=this;return null!==r&&""!==r&&(e||0!==r)&&typeof r<"u"}isString(e){var{value:r}=this,a="string"==typeof r;return a&&e?e.test(r):a}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:r}=this,a=parseFloat(r);return this.isString(/%$/)&&(a/=100),a}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var r=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,r=Ct(r),this.value=r),r}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[a,i]="boolean"==typeof e?[void 0,e]:[e],{viewPort:o}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(o.computeSize("x"),o.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(o.computeSize("x"),o.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*o.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*o.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&i:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*o.computeSize(a);default:var s=this.getNumber();return r&&s<1?s*o.computeSize(a):s}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),r=/#([^)'"]+)/.exec(e);return r&&(r=r[1]),r||(r=e),this.document.definitions[r]}getFillStyleDefinition(e,r){var a=this.getDefinition();if(!a)return null;if("function"==typeof a.createGradient)return a.createGradient(this.document.ctx,e,r);if("function"==typeof a.createPattern){if(a.getHrefAttribute().hasValue()){var i=a.getAttribute("patternTransform");a=a.getHrefAttribute().getDefinition(),i.hasValue()&&a.getAttribute("patternTransform",!0).setValue(i.value)}return a.createPattern(this.document.ctx,e,r)}return null}getTextBaseline(){return this.hasValue()?l.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var r=this.getColor(),a=r.length,i=0,o=0;o1&&void 0!==arguments[1]?arguments[1]:0,[r=e,a=e]=G(t);return new Rt(r,a)}static parseScale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[r=e,a=r]=G(t);return new Rt(r,a)}static parsePath(t){for(var e=G(t),r=e.length,a=[],i=0;i0}runEvents(){if(this.working){var{screen:t,events:e,eventElements:r}=this,{style:a}=t.ctx.canvas;a&&(a.cursor=""),e.forEach((i,o)=>{for(var{run:s}=i,u=r[o];u;)s(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(t,e){if(this.working&&e){var{events:r,eventElements:a}=this;r.forEach((i,o)=>{var{x:s,y:u}=i;!a[o]&&e.isPointInPath&&e.isPointInPath(s,u)&&(a[o]=t)})}}checkBoundingBox(t,e){if(this.working&&e){var{events:r,eventElements:a}=this;r.forEach((i,o)=>{var{x:s,y:u}=i;!a[o]&&e.isPointInBox(s,u)&&(a[o]=t)})}}mapXY(t,e){for(var{window:r,ctx:a}=this.screen,i=new Rt(t,e),o=a.canvas;o;)i.x-=o.offsetLeft,i.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(i.x+=r.scrollX),r.scrollY&&(i.y+=r.scrollY),i}onClick(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:r,run(a){a.onClick&&a.onClick()}})}onMouseMove(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:r,run(a){a.onMouseMove&&a.onMouseMove()}})}}var Lr=typeof window<"u"?window:null,Br=typeof fetch<"u"?fetch.bind(void 0):null;let gr=(()=>{class l{constructor(e){var{fetch:r=Br,window:a=Lr}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Vr,this.mouse=new Dr(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=a,this.fetch=r}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(r=>r());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:r,ctx:a,aspectRatio:i,width:o,desiredWidth:s,height:u,desiredHeight:v,minX:p=0,minY:E=0,refX:T,refY:m,clip:N=!1,clipX:V=0,clipY:L=0}=e,U=$t(i).replace(/^defer\s/,""),[Q,z]=U.split(" "),j=Q||"xMidYMid",q=z||"meet",at=o/s,W=u/v,lt=Math.min(at,W),gt=Math.max(at,W),mt=s,Tt=v;"meet"===q&&(mt*=lt,Tt*=lt),"slice"===q&&(mt*=gt,Tt*=gt);var St=new _(r,"refX",T),Dt=new _(r,"refY",m),Lt=St.hasValue()&&Dt.hasValue();if(Lt&&a.translate(-lt*St.getPixels("x"),-lt*Dt.getPixels("y")),N){var At=lt*V,wt=lt*L;a.beginPath(),a.moveTo(At,wt),a.lineTo(o,wt),a.lineTo(o,u),a.lineTo(At,u),a.closePath(),a.clip()}if(!Lt){var It="meet"===q&<===W,Ut="slice"===q&>===W,Ot="meet"===q&<===at,yt="slice"===q&>===at;j.startsWith("xMid")&&(It||Ut)&&a.translate(o/2-mt/2,0),j.endsWith("YMid")&&(Ot||yt)&&a.translate(0,u/2-Tt/2),j.startsWith("xMax")&&(It||Ut)&&a.translate(o-mt,0),j.endsWith("YMax")&&(Ot||yt)&&a.translate(0,u-Tt)}switch(!0){case"none"===j:a.scale(at,W);break;case"meet"===q:a.scale(lt,lt);break;case"slice"===q:a.scale(gt,gt)}a.translate(-p,-E)}start(e){var{enableRedraw:r=!1,ignoreMouse:a=!1,ignoreAnimation:i=!1,ignoreDimensions:o=!1,ignoreClear:s=!1,forceRedraw:u,scaleWidth:v,scaleHeight:p,offsetX:E,offsetY:T}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:m,mouse:N}=this,V=1e3/m;if(this.frameDuration=V,this.readyPromise=new Promise(j=>{this.resolveReady=j}),this.isReady()&&this.render(e,o,s,v,p,E,T),r){var L=Date.now(),U=L,Q=0,z=()=>{L=Date.now(),(Q=L-U)>=V&&(U=L-Q%V,this.shouldUpdate(i,u)&&(this.render(e,o,s,v,p,E,T),N.runEvents())),this.intervalId=I(z)};a||N.start(),this.intervalId=I(z)}}stop(){this.intervalId&&(I.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,r){if(!e){var{frameDuration:a}=this;if(this.animations.reduce((o,s)=>s.update(a)||o,!1))return!0}return!!("function"==typeof r&&r()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,r,a,i,o,s,u){var{CLIENT_WIDTH:v,CLIENT_HEIGHT:p,viewPort:E,ctx:T,isFirstRender:m}=this,N=T.canvas;E.clear(),N.width&&N.height?E.setCurrent(N.width,N.height):E.setCurrent(v,p);var V=e.getStyle("width"),L=e.getStyle("height");!r&&(m||"number"!=typeof i&&"number"!=typeof o)&&(V.hasValue()&&(N.width=V.getPixels("x"),N.style&&(N.style.width="".concat(N.width,"px"))),L.hasValue()&&(N.height=L.getPixels("y"),N.style&&(N.style.height="".concat(N.height,"px"))));var U=N.clientWidth||N.width,Q=N.clientHeight||N.height;if(r&&V.hasValue()&&L.hasValue()&&(U=V.getPixels("x"),Q=L.getPixels("y")),E.setCurrent(U,Q),"number"==typeof s&&e.getAttribute("x",!0).setValue(s),"number"==typeof u&&e.getAttribute("y",!0).setValue(u),"number"==typeof i||"number"==typeof o){var z=G(e.getAttribute("viewBox").getString()),j=0,q=0;if("number"==typeof i){var at=e.getStyle("width");at.hasValue()?j=at.getPixels("x")/i:isNaN(z[2])||(j=z[2]/i)}if("number"==typeof o){var W=e.getStyle("height");W.hasValue()?q=W.getPixels("y")/o:isNaN(z[3])||(q=z[3]/o)}j||(j=q),q||(q=j),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(o);var lt=e.getStyle("transform",!0,!0);lt.setValue("".concat(lt.getString()," scale(").concat(1/j,", ").concat(1/q,")"))}a||T.clearRect(0,0,U,Q),e.render(T),m&&(this.isFirstRender=!1)}}return l.defaultWindow=Lr,l.defaultFetch=Br,l})();var{defaultFetch:Nn}=gr,In=typeof DOMParser<"u"?DOMParser:null;class He{constructor(){var{fetch:t=Nn,DOMParser:e=In}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return(0,f.A)(function*(){return t.startsWith("<")?e.parseFromString(t):e.load(t)})()}parseFromString(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch{return this.checkDocument(e.parseFromString(t,"text/xml"))}}checkDocument(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}load(t){var e=this;return(0,f.A)(function*(){var r=yield e.fetch(t),a=yield r.text();return e.parseFromString(a)})()}}class Fr{constructor(t,e){this.type="translate",this.point=null,this.point=Rt.parse(e)}apply(t){var{x:e,y:r}=this.point;t.translate(e||0,r||0)}unapply(t){var{x:e,y:r}=this.point;t.translate(-1*e||0,-1*r||0)}applyToPoint(t){var{x:e,y:r}=this.point;t.applyTransform([1,0,0,1,e||0,r||0])}}class Ur{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var a=G(e);this.angle=new _(t,"angle",a[0]),this.originX=r[0],this.originY=r[1],this.cx=a[1]||0,this.cy=a[2]||0}apply(t){var{cx:e,cy:r,originX:a,originY:i,angle:o}=this,s=e+a.getPixels("x"),u=r+i.getPixels("y");t.translate(s,u),t.rotate(o.getRadians()),t.translate(-s,-u)}unapply(t){var{cx:e,cy:r,originX:a,originY:i,angle:o}=this,s=e+a.getPixels("x"),u=r+i.getPixels("y");t.translate(s,u),t.rotate(-1*o.getRadians()),t.translate(-s,-u)}applyToPoint(t){var{cx:e,cy:r,angle:a}=this,i=a.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}class jr{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var a=Rt.parseScale(e);(0===a.x||0===a.y)&&(a.x=Oe,a.y=Oe),this.scale=a,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:a,originY:i}=this,o=a.getPixels("x"),s=i.getPixels("y");t.translate(o,s),t.scale(e,r||e),t.translate(-o,-s)}unapply(t){var{scale:{x:e,y:r},originX:a,originY:i}=this,o=a.getPixels("x"),s=i.getPixels("y");t.translate(o,s),t.scale(1/e,1/r||e),t.translate(-o,-s)}applyToPoint(t){var{x:e,y:r}=this.scale;t.applyTransform([e||0,0,0,r||0,0,0])}}class dr{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=G(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:a}=this,i=e.getPixels("x"),o=r.getPixels("y");t.translate(i,o),t.transform(a[0],a[1],a[2],a[3],a[4],a[5]),t.translate(-i,-o)}unapply(t){var{originX:e,originY:r,matrix:a}=this,i=a[0],o=a[2],s=a[4],u=a[1],v=a[3],p=a[5],N=1/(i*(1*v-0*p)-o*(1*u-0*p)+s*(0*u-0*v)),V=e.getPixels("x"),L=r.getPixels("y");t.translate(V,L),t.transform(N*(1*v-0*p),N*(0*p-1*u),N*(0*s-1*o),N*(1*i-0*s),N*(o*p-s*v),N*(s*u-i*p)),t.translate(-V,-L)}applyToPoint(t){t.applyTransform(this.matrix)}}class pr extends dr{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new _(t,"angle",e)}}class zr extends pr{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class Gr extends pr{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}let Ye=(()=>{class l{constructor(e,r,a){this.document=e,this.transforms=[];var i=function Mn(l){return $t(l).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(r);i.forEach(o=>{if("none"!==o){var[s,u]=function wn(l){var[t,e]=l.split("(");return[t.trim(),e.trim().replace(")","")]}(o),v=l.transformTypes[s];typeof v<"u"&&this.transforms.push(new v(this.document,u,a))}})}static fromElement(e,r){var a=r.getStyle("transform",!1,!0),[i,o=i]=r.getStyle("transform-origin",!1,!0).split(),s=[i,o];return a.hasValue()?new l(e,a.getString(),s):null}apply(e){for(var{transforms:r}=this,a=r.length,i=0;i=0;i--)r[i].unapply(e)}applyToPoint(e){for(var{transforms:r}=this,a=r.length,i=0;i{class l{constructor(e,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=e,this.node=r,this.captureTextNodes=a,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){Array.from(r.attributes).forEach(u=>{var v=pt(u.nodeName);this.attributes[v]=new _(e,v,u.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map(u=>u.trim()).forEach(u=>{if(u){var[v,p]=u.split(":").map(E=>E.trim());this.styles[v]=new _(e,v,p)}});var{definitions:o}=e,s=this.getAttribute("id");s.hasValue()&&(o[s.getString()]||(o[s.getString()]=this)),Array.from(r.childNodes).forEach(u=>{if(1===u.nodeType)this.addChild(u);else if(a&&(3===u.nodeType||4===u.nodeType)){var v=e.createTextNode(u);v.getText().length>0&&this.addChild(v)}})}}getAttribute(e){var a=this.attributes[e];if(!a&&arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var i=new _(this.document,e,"");return this.attributes[e]=i,i}return a||_.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if("href"===e||e.endsWith(":href"))return this.attributes[e];return _.empty(this.document)}getStyle(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.styles[e];if(i)return i;var o=this.getAttribute(e);if(null!=o&&o.hasValue())return this.styles[e]=o,o;if(!a){var{parent:s}=this;if(s){var u=s.getStyle(e);if(null!=u&&u.hasValue())return u}}if(r){var v=new _(this.document,e,"");return this.styles[e]=v,v}return i||_.empty(this.document)}render(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var r=this.getStyle("mask").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var a=this.getStyle("filter").getDefinition();a&&(this.applyEffects(e),a.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var r=Ye.fromElement(this.document,this);r&&r.apply(e);var a=this.getStyle("clip-path",!1,!0);if(a.hasValue()){var i=a.getDefinition();i&&i.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(r=>{r.render(e)})}addChild(e){var r=e instanceof l?e:this.document.createElement(e);r.parent=this,l.ignoreChildTypes.includes(r.type)||this.children.push(r)}matchesSelector(e){var r,{node:a}=this;if("function"==typeof a.matches)return a.matches(e);var i=null===(r=a.getAttribute)||void 0===r?void 0:r.call(a,"class");return!(!i||""===i)&&i.split(" ").some(o=>".".concat(o)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:r}=this.document;for(var a in e)if(!a.startsWith("@")&&this.matchesSelector(a)){var i=e[a],o=r[a];if(i)for(var s in i){var u=this.stylesSpecificity[s];typeof u>"u"&&(u="000"),o>=u&&(this.styles[s]=i[s],this.stylesSpecificity[s]=o)}}}removeStyles(e,r){return r.reduce((i,o)=>{var s=e.getStyle(o);if(!s.hasValue())return i;var u=s.getString();return s.setValue(""),[...i,[o,u]]},[])}restoreStyles(e,r){r.forEach(a=>{var[i,o]=a;e.getStyle(i,!0).setValue(o)})}isFirstChild(){var e;return 0===(null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this))}}return l.ignoreChildTypes=["title"],l})();class $r extends Nt{constructor(t,e,r){super(t,e,r)}}function Vn(l){var t=l.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function Dn(l){return typeof process>"u"?l:l.trim().split(",").map(Vn).join(",")}function Ln(l){if(!l)return"";var t=l.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function Bn(l){if(!l)return"";var t=l.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}let Se=(()=>{class l{constructor(e,r,a,i,o,s){var u=s?"string"==typeof s?l.parse(s):s:{};this.fontFamily=o||u.fontFamily,this.fontSize=i||u.fontSize,this.fontStyle=e||u.fontStyle,this.fontWeight=a||u.fontWeight,this.fontVariant=r||u.fontVariant}static parse(){var r=arguments.length>1?arguments[1]:void 0,a="",i="",o="",s="",u="",v=$t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),p={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return v.forEach(E=>{switch(!0){case!p.fontStyle&&l.styles.includes(E):"inherit"!==E&&(a=E),p.fontStyle=!0;break;case!p.fontVariant&&l.variants.includes(E):"inherit"!==E&&(i=E),p.fontStyle=!0,p.fontVariant=!0;break;case!p.fontWeight&&l.weights.includes(E):"inherit"!==E&&(o=E),p.fontStyle=!0,p.fontVariant=!0,p.fontWeight=!0;break;case!p.fontSize:"inherit"!==E&&([s]=E.split("/")),p.fontStyle=!0,p.fontVariant=!0,p.fontWeight=!0,p.fontSize=!0;break;default:"inherit"!==E&&(u+=E)}}),new l(a,i,o,s,u,r)}toString(){return[Ln(this.fontStyle),this.fontVariant,Bn(this.fontWeight),this.fontSize,Dn(this.fontFamily)].join(" ").trim()}}return l.styles="normal|italic|oblique|inherit",l.variants="normal|small-caps|inherit",l.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",l})();class Qt{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=a,this.addPoint(t,e),this.addPoint(r,a)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,e){typeof t<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),tthis.x2&&(this.x2=t)),typeof e<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),ethis.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:e,y1:r,x2:a,y2:i}=t;this.addPoint(e,r),this.addPoint(a,i)}}sumCubic(t,e,r,a,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*a+Math.pow(t,3)*i}bezierCurveAdd(t,e,r,a,i){var o=6*e-12*r+6*a,s=-3*e+9*r-9*a+3*i,u=3*r-3*e;if(0!==s){var p=Math.pow(o,2)-4*u*s;if(!(p<0)){var E=(-o+Math.sqrt(p))/(2*s);0=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var r=new Rt(this.command[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x"],this.command[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y"]);return this.makeAbsolute(r)}getAsControlPoint(t,e){var r=this.getPoint(t,e);return this.control=r,r}getAsCurrentPoint(t,e){var r=this.getPoint(t,e);return this.current=r,r}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==D.CURVE_TO&&t!==D.SMOOTH_CURVE_TO&&t!==D.QUAD_TO&&t!==D.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:a,y:i}}=this;return new Rt(2*e-a,2*r-i)}makeAbsolute(t){if(this.command.relative){var{x:e,y:r}=this.current;t.x+=e,t.y+=r}return t}addMarker(t,e,r){var{points:a,angles:i}=this;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=a[a.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}addMarkerAngle(t,e){this.points.push(t),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,e=t.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),a=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,a);s&&(t.fillStyle=s)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var u=r.getColor();"inherit"!==u&&(t.fillStyle="none"===u?"rgba(0,0,0,0)":u)}if(a.hasValue()){var v=new _(this.document,"fill",t.fillStyle).addOpacity(a).getColor();t.fillStyle=v}if(i.isUrlDefinition()){var p=i.getFillStyleDefinition(this,o);p&&(t.strokeStyle=p)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var E=i.getString();"inherit"!==E&&(t.strokeStyle="none"===E?"rgba(0,0,0,0)":E)}if(o.hasValue()){var T=new _(this.document,"stroke",t.strokeStyle).addOpacity(o).getString();t.strokeStyle=T}var m=this.getStyle("stroke-width");if(m.hasValue()){var N=m.getPixels();t.lineWidth=N||Oe}var V=this.getStyle("stroke-linecap"),L=this.getStyle("stroke-linejoin"),U=this.getStyle("stroke-miterlimit"),Q=this.getStyle("stroke-dasharray"),z=this.getStyle("stroke-dashoffset");if(V.hasValue()&&(t.lineCap=V.getString()),L.hasValue()&&(t.lineJoin=L.getString()),U.hasValue()&&(t.miterLimit=U.getNumber()),Q.hasValue()&&"none"!==Q.getString()){var j=G(Q.getString());typeof t.setLineDash<"u"?t.setLineDash(j):typeof t.webkitLineDash<"u"?t.webkitLineDash=j:typeof t.mozDash<"u"&&(1!==j.length||0!==j[0])&&(t.mozDash=j);var q=z.getPixels();typeof t.lineDashOffset<"u"?t.lineDashOffset=q:typeof t.webkitLineDashOffset<"u"?t.webkitLineDashOffset=q:typeof t.mozDashOffset<"u"&&(t.mozDashOffset=q)}}if(this.modifiedEmSizeStack=!1,typeof t.font<"u"){var at=this.getStyle("font"),W=this.getStyle("font-style"),lt=this.getStyle("font-variant"),gt=this.getStyle("font-weight"),mt=this.getStyle("font-size"),Tt=this.getStyle("font-family"),St=new Se(W.getString(),lt.getString(),gt.getString(),mt.hasValue()?"".concat(mt.getPixels(!0),"px"):"",Tt.getString(),Se.parse(at.getString(),t.font));W.setValue(St.fontStyle),lt.setValue(St.fontVariant),gt.setValue(St.fontWeight),mt.setValue(St.fontSize),Tt.setValue(St.fontFamily),t.font=St.toString(),mt.isPixels()&&(this.document.emSize=mt.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Et extends ge{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new nt(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new Qt;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case nt.MOVE_TO:this.pathM(t,r);break;case nt.LINE_TO:this.pathL(t,r);break;case nt.HORIZ_LINE_TO:this.pathH(t,r);break;case nt.VERT_LINE_TO:this.pathV(t,r);break;case nt.CURVE_TO:this.pathC(t,r);break;case nt.SMOOTH_CURVE_TO:this.pathS(t,r);break;case nt.QUAD_TO:this.pathQ(t,r);break;case nt.SMOOTH_QUAD_TO:this.pathT(t,r);break;case nt.ARC:this.pathA(t,r);break;case nt.CLOSE_PATH:this.pathZ(t,r)}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles();return e.map((i,o)=>[i,r[o]])}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var a=r.length-1,i=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(i.isUrlDefinition()){var u=i.getDefinition(),[v,p]=r[0];u.render(t,v,p)}if(o.isUrlDefinition())for(var E=o.getDefinition(),T=1;T1&&(a*=Math.sqrt(T),i*=Math.sqrt(T));var m=(s===u?-1:1)*Math.sqrt((Math.pow(a,2)*Math.pow(i,2)-Math.pow(a,2)*Math.pow(E.y,2)-Math.pow(i,2)*Math.pow(E.x,2))/(Math.pow(a,2)*Math.pow(E.y,2)+Math.pow(i,2)*Math.pow(E.x,2)));isNaN(m)&&(m=0);var N=new Rt(m*a*E.y/i,m*-i*E.x/a),V=new Rt((e.x+p.x)/2+Math.cos(v)*N.x-Math.sin(v)*N.y,(e.y+p.y)/2+Math.sin(v)*N.x+Math.cos(v)*N.y),L=sr([1,0],[(E.x-N.x)/a,(E.y-N.y)/i]),U=[(E.x-N.x)/a,(E.y-N.y)/i],Q=[(-E.x-N.x)/a,(-E.y-N.y)/i],z=sr(U,Q);return $e(U,Q)<=-1&&(z=Math.PI),$e(U,Q)>=1&&(z=0),{currentPoint:p,rX:a,rY:i,sweepFlag:u,xAxisRotation:v,centp:V,a1:L,ad:z}}pathA(t,e){var{pathParser:r}=this,{currentPoint:a,rX:i,rY:o,sweepFlag:s,xAxisRotation:u,centp:v,a1:p,ad:E}=Et.pathA(r),T=1-s?1:-1,m=p+T*(E/2),N=new Rt(v.x+i*Math.cos(m),v.y+o*Math.sin(m));if(r.addMarkerAngle(N,m-T*Math.PI/2),r.addMarkerAngle(a,m-T*Math.PI),e.addPoint(a.x,a.y),t&&!isNaN(p)&&!isNaN(E)){var V=i>o?i:o,L=i>o?1:i/o,U=i>o?o/i:1;t.translate(v.x,v.y),t.rotate(u),t.scale(L,U),t.arc(0,0,V,p,p+E,!!(1-s)),t.scale(1/L,1/U),t.rotate(-u),t.translate(-v.x,-v.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){Et.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class yr extends Et{constructor(t,e,r){super(t,e,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class ae extends ge{constructor(t,e,r){super(t,e,new.target===ae||r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){super.setContext(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(t){if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var e=null;return this.children.forEach((r,a)=>{var i=this.getChildBoundingBox(t,this,this,a);e?e.addBoundingBox(i):e=i}),e}getFontSize(){var{document:t,parent:e}=this,r=Se.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}getTElementBoundingBox(t){var e=this.getFontSize();return new Qt(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var a=e[r],i=null;if(t.isArabic){var o=e.length,s=e[r-1],u=e[r+1],v="isolated";if((0===r||" "===s)&&r0&&" "!==s&&r0&&" "!==s&&(r===o-1||" "===u)&&(v="initial"),typeof t.glyphs[a]<"u"){var p=t.glyphs[a];i=p instanceof yr?p:p[v]}}else i=t.glyphs[a];return i||(i=t.missingGlyph),i}getText(){return""}getTextFromNode(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),a=r.indexOf(e),i=r.length-1,o=$t(e.textContent||"");return 0===a&&(o=ne(o)),a===i&&(o=Ie(o)),o}renderChildren(t){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach((r,a)=>{this.renderChild(t,this,this,a)});var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}renderTElementChildren(t){var{document:e,parent:r}=this,a=this.getText(),i=r.getStyle("font-family").getDefinition();if(i)for(var{unitsPerEm:o}=i.fontFace,s=Se.parse(e.ctx.font),u=r.getStyle("font-size").getNumber(s.fontSize),v=r.getStyle("font-style").getString(s.fontStyle),p=u/o,E=i.isRTL?a.split("").reverse().join(""):a,T=G(r.getAttribute("dx").getString()),m=E.length,N=0;N=this.leafTexts.length)){var a,t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start");a="start"===e?t.x-this.minX:"end"===e?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i{this.adjustChildCoordinatesRecursiveCore(t,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(t,e,r,a){var i=r.children[a];i.children.length>0?i.children.forEach((o,s)=>{e.adjustChildCoordinatesRecursiveCore(t,e,i,s)}):this.adjustChildCoordinates(t,e,r,a)}adjustChildCoordinates(t,e,r,a){var i=r.children[a];if("function"!=typeof i.measureText)return i;t.save(),i.setContext(t,!0);var o=i.getAttribute("x"),s=i.getAttribute("y"),u=i.getAttribute("dx"),v=i.getAttribute("dy"),p=i.getStyle("font-family").getDefinition(),E=!!p&&p.isRTL;0===a&&(o.hasValue()||o.setValue(i.getInheritedAttribute("x")),s.hasValue()||s.setValue(i.getInheritedAttribute("y")),u.hasValue()||u.setValue(i.getInheritedAttribute("dx")),v.hasValue()||v.setValue(i.getInheritedAttribute("dy")));var T=i.measureText(t);return E&&(e.x-=T),o.hasValue()?(e.applyAnchoring(),i.x=o.getPixels("x"),u.hasValue()&&(i.x+=u.getPixels("x"))):(u.hasValue()&&(e.x+=u.getPixels("x")),i.x=e.x),e.x=i.x,E||(e.x+=T),s.hasValue()?(i.y=s.getPixels("y"),v.hasValue()&&(i.y+=v.getPixels("y"))):(v.hasValue()&&(e.y+=v.getPixels("y")),i.y=e.y),e.y=i.y,e.leafTexts.push(i),e.minX=Math.min(e.minX,i.x,i.x+T),e.maxX=Math.max(e.maxX,i.x,i.x+T),i.clearContext(t),t.restore(),i}getChildBoundingBox(t,e,r,a){var i=r.children[a];if("function"!=typeof i.getBoundingBox)return null;var o=i.getBoundingBox(t);return o?(i.children.forEach((s,u)=>{var v=e.getChildBoundingBox(t,e,i,u);o.addBoundingBox(v)}),o):null}renderChild(t,e,r,a){var i=r.children[a];i.render(t),i.children.forEach((o,s)=>{e.renderChild(t,e,i,s)})}measureText(t){var{measureCache:e}=this;if(~e)return e;var r=this.getText(),a=this.measureTargetText(t,r);return this.measureCache=a,a}measureTargetText(t,e){if(!e.length)return 0;var{parent:r}=this,a=r.getStyle("font-family").getDefinition();if(a){for(var i=this.getFontSize(),o=a.isRTL?e.split("").reverse().join(""):e,s=G(r.getAttribute("dx").getString()),u=o.length,v=0,p=0;p0?"":this.getTextFromNode()}getText(){return this.text}}class Fn extends Fe{constructor(){super(...arguments),this.type="textNode"}}class we extends ge{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:r}=this,{screen:a,window:i}=r,o=t.canvas;if(a.setDefaults(t),o.style&&typeof t.font<"u"&&i&&typeof i.getComputedStyle<"u"){t.font=i.getComputedStyle(o).getPropertyValue("font");var s=new _(r,"fontSize",Se.parse(t.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:u,height:v}=a.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var p=this.getAttribute("refX"),E=this.getAttribute("refY"),T=this.getAttribute("viewBox"),m=T.hasValue()?G(T.getString()):null,N=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),V=0,L=0,U=0,Q=0;m&&(V=m[0],L=m[1]),this.root||(u=this.getStyle("width").getPixels("x"),v=this.getStyle("height").getPixels("y"),"marker"===this.type&&(U=V,Q=L,V=0,L=0)),a.viewPort.setCurrent(u,v),this.node&&(!this.parent||"foreignObject"===(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName))&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),m&&(u=m[2],v=m[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a.viewPort.width,desiredWidth:u,height:a.viewPort.height,desiredHeight:v,minX:V,minY:L,refX:p.getValue(),refY:E.getValue(),clip:N,clipX:U,clipY:Q}),m&&(a.viewPort.removeCurrent(),a.viewPort.setCurrent(u,v))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=this.getAttribute("width",!0),i=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=a.getNumber(0),v=i.getNumber(0);if(r)if("string"==typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var p=this.getAttribute("preserveAspectRatio");p.hasValue()&&p.setValue(p.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(a.setValue(t),i.setValue(e),o.hasValue()||o.setValue("0 0 ".concat(u||t," ").concat(v||e)),s.hasValue()){var E=this.getStyle("width"),T=this.getStyle("height");E.hasValue()&&E.setValue("".concat(t,"px")),T.hasValue()&&T.setValue("".concat(e,"px"))}}}class mr extends Et{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),a=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),u=o.getPixels("x"),v=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(v=u),s.hasValue()&&!o.hasValue()&&(u=v),u=Math.min(u,a/2),v=Math.min(v,i/2),t){var p=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&a>0&&(t.moveTo(e+u,r),t.lineTo(e+a-u,r),t.bezierCurveTo(e+a-u+p*u,r,e+a,r+v-p*v,e+a,r+v),t.lineTo(e+a,r+i-v),t.bezierCurveTo(e+a,r+i-v+p*v,e+a-u+p*u,r+i,e+a-u,r+i),t.lineTo(e+u,r+i),t.bezierCurveTo(e+u-p*u,r+i,e,r+i-v+p*v,e,r+i-v),t.lineTo(e,r+v),t.bezierCurveTo(e,r+v-p*v,e+u-p*u,r,e+u,r),t.closePath())}return new Qt(e,r,e+a,r+i)}getMarkers(){return null}}class Hr extends Et{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),a=this.getAttribute("r").getPixels();return t&&a>0&&(t.beginPath(),t.arc(e,r,a,0,2*Math.PI,!1),t.closePath()),new Qt(e-a,r-a,e+a,r+a)}getMarkers(){return null}}class Yr extends Et{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),a=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return t&&r>0&&a>0&&(t.beginPath(),t.moveTo(i+r,o),t.bezierCurveTo(i+r,o+e*a,i+e*r,o+a,i,o+a),t.bezierCurveTo(i-e*r,o+a,i-r,o+e*a,i-r,o),t.bezierCurveTo(i-r,o-e*a,i-e*r,o-a,i,o-a),t.bezierCurveTo(i+e*r,o-a,i+r,o-e*a,i+r,o),t.closePath()),new Qt(i-r,o-a,i+r,o+a)}getMarkers(){return null}}class Xr extends Et{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Rt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Rt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:a,y:i}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(a,i)),new Qt(e,r,a,i)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class xr extends Et{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=Rt.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:a}]=e,i=new Qt(r,a);return t&&(t.beginPath(),t.moveTo(r,a)),e.forEach(o=>{var{x:s,y:u}=o;i.addPoint(s,u),t&&t.lineTo(s,u)}),i}getMarkers(){var{points:t}=this,e=t.length-1,r=[];return t.forEach((a,i)=>{i!==e&&r.push([a,a.angleTo(t[i+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class Wr extends xr{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:a}]=this.points;return t&&(t.lineTo(r,a),t.closePath()),e}}class Qr extends Nt{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var a=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new we(this.document,null);o.attributes.viewBox=new _(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new _(this.document,"width","".concat(a,"px")),o.attributes.height=new _(this.document,"height","".concat(i,"px")),o.attributes.transform=new _(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(a,i),u=s.getContext("2d"),v=this.getAttribute("x"),p=this.getAttribute("y");v.hasValue()&&p.hasValue()&&u.translate(v.getPixels("x",!0),p.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var E=-1;E<=1;E++)for(var T=-1;T<=1;T++)u.save(),o.attributes.x=new _(this.document,"x",E*s.width),o.attributes.y=new _(this.document,"y",T*s.height),o.render(u),u.restore();return t.createPattern(s,"repeat")}}class Kr extends Nt{constructor(){super(...arguments),this.type="marker"}render(t,e,r){if(e){var{x:a,y:i}=e,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(a,i),"auto"===o&&t.rotate(r),"strokeWidth"===s&&t.scale(t.lineWidth,t.lineWidth),t.save();var u=new we(this.document,null);u.type=this.type,u.attributes.viewBox=new _(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new _(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new _(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new _(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new _(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new _(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new _(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new _(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(t),t.restore(),"strokeWidth"===s&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===o&&t.rotate(-r),t.translate(-a,-i)}}}class Zr extends Nt{constructor(){super(...arguments),this.type="defs"}render(){}}class Xe extends ge{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new Qt;return this.children.forEach(r=>{e.addBoundingBox(r.getBoundingBox(t))}),e}}class Er extends Nt{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:a,children:i}=this;i.forEach(o=>{"stop"===o.type&&a.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var a=this;this.getHrefAttribute().hasValue()&&(a=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(a));var{stops:i}=a,o=this.getGradient(t,e);if(!o)return this.addParentOpacity(r,i[i.length-1].color);if(i.forEach(L=>{o.addColorStop(L.offset,this.addParentOpacity(r,L.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:v}=s.screen,[p]=v.viewPorts,E=new mr(s,null);E.attributes.x=new _(s,"x",-u/3),E.attributes.y=new _(s,"y",-u/3),E.attributes.width=new _(s,"width",u),E.attributes.height=new _(s,"height",u);var T=new Xe(s,null);T.attributes.transform=new _(s,"transform",this.getAttribute("gradientTransform").getValue()),T.children=[E];var m=new we(s,null);m.attributes.x=new _(s,"x",0),m.attributes.y=new _(s,"y",0),m.attributes.width=new _(s,"width",p.width),m.attributes.height=new _(s,"height",p.height),m.children=[T];var N=s.createCanvas(p.width,p.height),V=N.getContext("2d");return V.fillStyle=o,m.render(V),V.createPattern(N,"no-repeat")}return o}inheritStopContainer(t){this.attributesToInherit.forEach(e=>{!this.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())})}addParentOpacity(t,e){return t.hasValue()?new _(this.document,"color",e).addOpacity(t).getColor():e}}class kr extends Er{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),a=r?e.getBoundingBox(t):null;if(r&&!a)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?a.x+a.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?a.y+a.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?a.x+a.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=r?a.y+a.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===s&&o===u?null:t.createLinearGradient(i,o,s,u)}}class Jr extends Er{constructor(t,e,r){super(t,e,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),a=e.getBoundingBox(t);if(r&&!a)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?a.x+a.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?a.y+a.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=i,u=o;this.getAttribute("fx").hasValue()&&(s=r?a.x+a.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=r?a.y+a.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var v=r?(a.width+a.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),p=this.getAttribute("fr").getPixels();return t.createRadialGradient(s,u,p,i,o,v)}}class qr extends Nt{constructor(t,e,r){super(t,e,r),this.type="stop";var a=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);""===o.getString()&&o.setValue("#000"),i.hasValue()&&(o=o.addOpacity(i)),this.offset=a,this.color=o.getColor()}}class We extends Nt{constructor(t,e,r){super(t,e,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new _(t,"values",null);var a=this.getAttribute("values");a.hasValue()&&this.values.setValue(a.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:r,to:a}=this.getProgress(),i=r.getNumber()+(a.getNumber()-r.getNumber())*e;return"%"===t&&(i*=100),"".concat(i).concat(t)}update(t){var{parent:e}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var a=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==a||this.frozen){if("remove"===a&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var i=!1;if(this.begins+(i[u]-s)*t).join(" ")}}class en extends Nt{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:a}=t,{children:i}=this;for(var o of i)switch(o.type){case"font-face":this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(a[s.getString()]=this);break;case"missing-glyph":this.missingGlyph=o;break;case"glyph":var u=o;u.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[u.unicode]>"u"&&(this.glyphs[u.unicode]={}),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u}}render(){}}class rn extends Nt{constructor(t,e,r){super(t,e,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class nn extends Et{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class an extends ae{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}class sn extends ae{constructor(t,e,r){super(t,e,r),this.type="a";var{childNodes:a}=e,i=a[0],o=a.length>0&&Array.from(a).every(s=>3===s.nodeType);this.hasText=o,this.text=o?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:r,y:a}=this,{mouse:i}=e.screen,o=new _(e,"fontSize",Se.parse(e.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new Qt(r,a-o.getPixels("y"),r+this.measureText(t),a))}else if(this.children.length>0){var s=new Xe(this.document,null);s.children=this.children,s.parent=this,s.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function on(l,t){var e=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(l,a).enumerable})),e.push.apply(e,r)}return e}function Qe(l){for(var t=1;t{var{type:a,points:i}=r;switch(a){case nt.LINE_TO:t&&t.lineTo(i[0],i[1]);break;case nt.MOVE_TO:t&&t.moveTo(i[0],i[1]);break;case nt.CURVE_TO:t&&t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case nt.QUAD_TO:t&&t.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case nt.ARC:var[o,s,u,v,p,E,T,m]=i,N=u>v?u:v,V=u>v?1:u/v,L=u>v?v/u:1;t&&(t.translate(o,s),t.rotate(T),t.scale(V,L),t.arc(0,0,N,p,p+E,!!(1-m)),t.scale(1/V,1/L),t.rotate(-T),t.translate(-o,-s));break;case nt.CLOSE_PATH:t&&t.closePath()}})}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:a}=this,i=t.fillStyle;"underline"===e&&t.beginPath(),a.forEach((o,s)=>{var{p0:u,p1:v,rotation:p,text:E}=o;t.save(),t.translate(u.x,u.y),t.rotate(p),t.fillStyle&&t.fillText(E,0,0),t.strokeStyle&&t.strokeText(E,0,0),t.restore(),"underline"===e&&(0===s&&t.moveTo(u.x,u.y+r/8),t.lineTo(v.x,v.y+r/5))}),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=i,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){return this.letterSpacingCache[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0]||0}findSegmentToFitChar(t,e,r,a,i,o,s,u,v){var p=o,E=this.measureText(t,u);" "===u&&"justify"===e&&r-1&&(p+=this.getLetterSpacingAt(v));var T=this.textHeight/20,m=this.getEquidistantPointOnPath(p,T,0),N=this.getEquidistantPointOnPath(p+E,T,0),V={p0:m,p1:N},L=m&&N?Math.atan2(N.y-m.y,N.x-m.x):0;if(s){var U=Math.cos(Math.PI/2+L)*s,Q=Math.cos(-L)*s;V.p0=Qe(Qe({},m),{},{x:m.x+U,y:m.y+Q}),V.p1=Qe(Qe({},N),{},{x:N.x+U,y:N.y+Q})}return{offset:p+=E,segment:V,rotation:L}}measureText(t,e){var{measuresCache:r}=this,a=e||this.getText();if(r.has(a))return r.get(a);var i=this.measureTargetText(t,a);return r.set(a,i),i}setTextData(t){if(!this.glyphInfo){var e=this.getText(),r=e.split(""),a=e.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(j=>j.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),v=this.parent.getStyle("letter-spacing"),p=0;u.hasValue()&&"inherit"!==u.getValue()?u.hasValue()&&"initial"!==u.getValue()&&"unset"!==u.getValue()&&(p=u.getPixels()):p=v.getPixels();var E=[],T=e.length;this.letterSpacingCache=E;for(var m=0;m0===at?0:j+q||0,0),V=this.measureText(t),L=Math.max(V+N,0);this.textWidth=V,this.textHeight=this.getFontSize(),this.glyphInfo=[];var U=this.getPathLength(),Q=this.getStyle("startOffset").getNumber(0)*U,z=0;("middle"===s||"center"===s)&&(z=-L/2),("end"===s||"right"===s)&&(z=-L),z+=Q,r.forEach((j,q)=>{var{offset:at,segment:W,rotation:lt}=this.findSegmentToFitChar(t,s,L,U,a,z,o,j,q);z=at,W.p0&&W.p1&&this.glyphInfo.push({text:r[q],p0:W.p0,p1:W.p1,rotation:lt})})}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:r}=t;for(r.reset();!r.isEnd();){var{current:a}=r,i=a?a.x:0,o=a?a.y:0,s=r.next(),u=s.type,v=[];switch(s.type){case nt.MOVE_TO:this.pathM(r,v);break;case nt.LINE_TO:u=this.pathL(r,v);break;case nt.HORIZ_LINE_TO:u=this.pathH(r,v);break;case nt.VERT_LINE_TO:u=this.pathV(r,v);break;case nt.CURVE_TO:this.pathC(r,v);break;case nt.SMOOTH_CURVE_TO:u=this.pathS(r,v);break;case nt.QUAD_TO:this.pathQ(r,v);break;case nt.SMOOTH_QUAD_TO:u=this.pathT(r,v);break;case nt.ARC:v=this.pathA(r);break;case nt.CLOSE_PATH:Et.pathZ(r)}e.push(s.type!==nt.CLOSE_PATH?{type:u,points:v,start:{x:i,y:o},pathLength:this.calcLength(i,o,u,v)}:{type:nt.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:a}=Et.pathM(t).point;e.push(r,a)}pathL(t,e){var{x:r,y:a}=Et.pathL(t).point;return e.push(r,a),nt.LINE_TO}pathH(t,e){var{x:r,y:a}=Et.pathH(t).point;return e.push(r,a),nt.LINE_TO}pathV(t,e){var{x:r,y:a}=Et.pathV(t).point;return e.push(r,a),nt.LINE_TO}pathC(t,e){var{point:r,controlPoint:a,currentPoint:i}=Et.pathC(t);e.push(r.x,r.y,a.x,a.y,i.x,i.y)}pathS(t,e){var{point:r,controlPoint:a,currentPoint:i}=Et.pathS(t);return e.push(r.x,r.y,a.x,a.y,i.x,i.y),nt.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:a}=Et.pathQ(t);e.push(r.x,r.y,a.x,a.y)}pathT(t,e){var{controlPoint:r,currentPoint:a}=Et.pathT(t);return e.push(r.x,r.y,a.x,a.y),nt.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:a,xAxisRotation:i,centp:o,a1:s,ad:u}=Et.pathA(t);return 0===a&&u>0&&(u-=2*Math.PI),1===a&&u<0&&(u+=2*Math.PI),[o.x,o.y,e,r,s,u,i,a]}calcLength(t,e,r,a){var i=0,o=null,s=null,u=0;switch(r){case nt.LINE_TO:return this.getLineLength(t,e,a[0],a[1]);case nt.CURVE_TO:for(i=0,o=this.getPointOnCubicBezier(0,t,e,a[0],a[1],a[2],a[3],a[4],a[5]),u=.01;u<=1;u+=.01)s=this.getPointOnCubicBezier(u,t,e,a[0],a[1],a[2],a[3],a[4],a[5]),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return i;case nt.QUAD_TO:for(i=0,o=this.getPointOnQuadraticBezier(0,t,e,a[0],a[1],a[2],a[3]),u=.01;u<=1;u+=.01)s=this.getPointOnQuadraticBezier(u,t,e,a[0],a[1],a[2],a[3]),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return i;case nt.ARC:i=0;var v=a[4],p=a[5],E=a[4]+p,T=Math.PI/180;if(Math.abs(v-E)E;u-=T)s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],u,0),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(u=v+T;u5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,u=(i-r)/(a-e+Oe),v=Math.sqrt(t*t/(1+u*u));ae)return null;var{dataArray:i}=this;for(var o of i){if(!o||!(o.pathLength<5e-5||r+o.pathLength+5e-5=0&&u>E)break;a=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break;case nt.CURVE_TO:(u=s/o.pathLength)>1&&(u=1),a=this.getPointOnCubicBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case nt.QUAD_TO:(u=s/o.pathLength)>1&&(u=1),a=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3])}if(a)return a;break}r+=o.pathLength}return null}getLineLength(t,e,r,a){return Math.sqrt((r-t)*(r-t)+(a-e)*(a-e))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((t,e)=>e.pathLength>0?t+e.pathLength:t,0)),this.pathLength}getPointOnCubicBezier(t,e,r,a,i,o,s,u,v){return{x:u*or(t)+o*ur(t)+a*lr(t)+e*hr(t),y:v*or(t)+s*ur(t)+i*lr(t)+r*hr(t)}}getPointOnQuadraticBezier(t,e,r,a,i,o,s){return{x:o*fr(t)+a*vr(t)+e*cr(t),y:s*fr(t)+i*vr(t)+r*cr(t)}}getPointOnEllipticalArc(t,e,r,a,i,o){var s=Math.cos(o),u=Math.sin(o),v_x=r*Math.cos(i),v_y=a*Math.sin(i);return{x:t+(v_x*s-v_y*u),y:e+(v_x*u+v_y*s)}}buildEquidistantCache(t,e){var r=this.getPathLength(),a=e||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==a){this.equidistantCache={step:i,precision:a,points:[]};for(var o=0,s=0;s<=r;s+=a){var u=this.getPointOnPath(s),v=this.getPointOnPath(s+a);!u||!v||(o+=this.getLineLength(u.x,u.y,v.x,v.y))>=i&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:s}),o-=i)}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var a=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[a]||null}}var Un=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class ln extends ge{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;var a=this.getHrefAttribute().getString();if(a){var i=a.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(a);t.images.push(this),i?this.loadSvg(a):this.loadImage(a),this.isSvg=i}}loadImage(t){var e=this;return(0,f.A)(function*(){try{var r=yield e.document.createImage(t);e.image=r}catch(a){console.error('Error while loading image "'.concat(t,'":'),a)}e.loaded=!0})()}loadSvg(t){var e=this;return(0,f.A)(function*(){var r=Un.exec(t);if(r){var a=r[5];e.image="base64"===r[4]?atob(a):decodeURIComponent(a)}else try{var i=yield e.document.fetch(t),o=yield i.text();e.image=o}catch(s){console.error('Error while loading image "'.concat(t,'":'),s)}e.loaded=!0})()}renderChildren(t){var{document:e,image:r,loaded:a}=this,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(a&&r&&s&&u){if(t.save(),t.translate(i,o),this.isSvg){var v=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:u});v.document.documentElement.parent=this,v.render()}else{var p=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:p.width,height:u,desiredHeight:p.height}),this.loaded&&(typeof p.complete>"u"||p.complete)&&t.drawImage(p,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");return new Qt(t,e,t+r,e+a)}}class hn extends ge{constructor(){super(...arguments),this.type="symbol"}render(t){}}class fn{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var r=this;return(0,f.A)(function*(){try{var{document:a}=r,o=(yield a.canvg.parser.load(e)).getElementsByTagName("font");Array.from(o).forEach(s=>{var u=a.createElement(s);a.definitions[t]=u})}catch(s){console.error('Error while loading font "'.concat(e,'":'),s)}r.loaded=!0})()}}let vn=(()=>{class l extends Nt{constructor(e,r,a){super(e,r,a),this.type="style",$t(Array.from(r.childNodes).map(s=>s.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(s=>{var u=s.trim();if(u){var v=u.split("{"),p=v[0].split(","),E=v[1].split(";");p.forEach(T=>{var m=T.trim();if(m){var N=e.styles[m]||{};if(E.forEach(U=>{var Q=U.indexOf(":"),z=U.substr(0,Q).trim(),j=U.substr(Q+1,U.length-Q).trim();z&&j&&(N[z]=new _(e,z,j))}),e.styles[m]=N,e.stylesSpecificity[m]=wr(m),"@font-face"===m){var V=N["font-family"].getString().replace(/"|'/g,"");N.src.getString().split(",").forEach(U=>{if(U.indexOf('format("svg")')>0){var Q=dt(U);Q&&new fn(e).load(V,Q)}})}}})}})}}return l.parseExternalUrl=dt,l})();class cn extends ge{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}path(t){var{element:e}=this;e&&e.path(t)}renderChildren(t){var{document:e,element:r}=this;if(r){var a=r;if("symbol"===r.type&&((a=new we(e,null)).attributes.viewBox=new _(e,"viewBox",r.getAttribute("viewBox").getString()),a.attributes.preserveAspectRatio=new _(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),a.attributes.overflow=new _(e,"overflow",r.getAttribute("overflow").getString()),a.children=r.children,r.styles.opacity=new _(e,"opacity",this.calculateOpacity())),"svg"===a.type){var i=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);i.hasValue()&&(a.attributes.width=new _(e,"width",i.getString())),o.hasValue()&&(a.attributes.height=new _(e,"height",o.getString()))}var s=a.parent;a.parent=this,a.render(t),a.parent=s}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return Ye.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function Ke(l,t,e,r,a,i){return l[e*r*4+4*t+i]}function Ze(l,t,e,r,a,i,o){l[e*r*4+4*t+i]=o}function Vt(l,t,e){return l[t]*e}function ie(l,t,e,r){return t+Math.cos(l)*e+Math.sin(l)*r}class Tr extends Nt{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var a=G(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var i=a[0];a=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var o=a[0]*Math.PI/180;a=[ie(o,.213,.787,-.213),ie(o,.715,-.715,-.715),ie(o,.072,-.072,.928),0,0,ie(o,.213,-.213,.143),ie(o,.715,.285,.14),ie(o,.072,-.072,-.283),0,0,ie(o,.213,-.213,-.787),ie(o,.715,-.715,.715),ie(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=a,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,a,i){for(var{includeOpacity:o,matrix:s}=this,u=t.getImageData(0,0,a,i),v=0;v{class l extends Nt{constructor(){super(...arguments),this.type="mask"}apply(e,r){var{document:a}=this,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!s&&!u){var v=new Qt;this.children.forEach(V=>{v.addBoundingBox(V.getBoundingBox(e))}),i=Math.floor(v.x1),o=Math.floor(v.y1),s=Math.floor(v.width),u=Math.floor(v.height)}var p=this.removeStyles(r,l.ignoreStyles),E=a.createCanvas(i+s,o+u),T=E.getContext("2d");a.screen.setDefaults(T),this.renderChildren(T),new Tr(a,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(T,0,0,i+s,o+u);var m=a.createCanvas(i+s,o+u),N=m.getContext("2d");a.screen.setDefaults(N),r.render(N),N.globalCompositeOperation="destination-in",N.fillStyle=T.createPattern(E,"no-repeat"),N.fillRect(0,0,i+s,o+u),e.fillStyle=N.createPattern(m,"no-repeat"),e.fillRect(0,0,i+s,o+u),this.restoreStyles(r,p)}render(e){}}return l.ignoreStyles=["mask","transform","clip-path"],l})();var dn=()=>{};class pn extends Nt{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:a,closePath:i}=t;r&&(r.beginPath=dn,r.closePath=dn),Reflect.apply(a,t,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?o.elementTransform():null;s||(s=Ye.fromElement(e,o)),s&&s.apply(t),o.path(t),r&&(r.closePath=i),s&&s.unapply(t)}}),Reflect.apply(i,t,[]),t.clip(),r&&(r.beginPath=a,r.closePath=i)}render(t){}}let yn=(()=>{class l extends Nt{constructor(){super(...arguments),this.type="filter"}apply(e,r){var{document:a,children:i}=this,o=r.getBoundingBox(e);if(o){var s=0,u=0;i.forEach(Q=>{var z=Q.extraFilterDistance||0;s=Math.max(s,z),u=Math.max(u,z)});var v=Math.floor(o.width),p=Math.floor(o.height),E=v+2*s,T=p+2*u;if(!(E<1||T<1)){var m=Math.floor(o.x),N=Math.floor(o.y),V=this.removeStyles(r,l.ignoreStyles),L=a.createCanvas(E,T),U=L.getContext("2d");a.screen.setDefaults(U),U.translate(-m+s,-N+u),r.render(U),i.forEach(Q=>{"function"==typeof Q.apply&&Q.apply(U,0,0,E,T)}),e.drawImage(L,0,0,E,T,m-s,N-u,E,T),this.restoreStyles(r,V)}}}render(e){}}return l.ignoreStyles=["filter","transform","clip-path"],l})();class mn extends Nt{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,a,i){}}class xn extends Nt{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,a,i){}}class En extends Nt{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,a,i){}}class Tn extends Nt{constructor(t,e,r){super(t,e,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,e,r,a,i){var{document:o,blurRadius:s}=this,u=o.window?o.window.document.body:null,v=t.canvas;v.id=o.getUniqueId(),u&&(v.style.display="none",u.appendChild(v)),re(v,e,r,a,i,s),u&&u.removeChild(v)}}class On extends Nt{constructor(){super(...arguments),this.type="title"}}class Sn extends Nt{constructor(){super(...arguments),this.type="desc"}}var jn={svg:we,rect:mr,circle:Hr,ellipse:Yr,line:Xr,polyline:xr,polygon:Wr,path:Et,pattern:Qr,marker:Kr,defs:Zr,linearGradient:kr,radialGradient:Jr,stop:qr,animate:We,animateColor:_r,animateTransform:tn,font:en,"font-face":rn,"missing-glyph":nn,glyph:yr,text:ae,tspan:Fe,tref:an,a:sn,textPath:un,image:ln,g:Xe,symbol:hn,style:vn,use:cn,mask:gn,clipPath:pn,filter:yn,feDropShadow:mn,feMorphology:xn,feComposite:En,feColorMatrix:Tr,feGaussianBlur:Tn,title:On,desc:Sn};function bn(l,t){var e=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(l,a).enumerable})),e.push.apply(e,r)}return e}function Gn(l,t){var e=document.createElement("canvas");return e.width=l,e.height=t,e}function $n(l){return Or.apply(this,arguments)}function Or(){return Or=(0,f.A)(function*(l){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=document.createElement("img");return t&&(e.crossOrigin="Anonymous"),new Promise((r,a)=>{e.onload=()=>{r(e)},e.onerror=(i,o,s,u,v)=>{a(v)},e.src=l})}),Or.apply(this,arguments)}let Cn=(()=>{class l{constructor(e){var{rootEmSize:r=12,emSize:a=12,createCanvas:i=l.createCanvas,createImage:o=l.createImage,anonymousCrossOrigin:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=r,this.emSize=a,this.createCanvas=i,this.createImage=this.bindCreateImage(o,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,r){return"boolean"==typeof r?(a,i)=>e(a,"boolean"==typeof i?i:r):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:r}=this;r.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var r=this.createElement(e.documentElement);return r.root=!0,r.addStylesFromStyleDefinition(),this.documentElement=r,r}createElement(e){var r=e.nodeName.replace(/^[^:]+:/,""),a=l.elementTypes[r];return typeof a<"u"?new a(this,e):new $r(this,e)}createTextNode(e){return new Fn(this,e)}setViewBox(e){this.screen.setViewBox(function zn(l){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new He(r),this.screen=new gr(t,r),this.options=r;var a=new Cn(this,r),i=a.createDocumentElement(e);this.document=a,this.documentElement=i}static from(t,e){var r=arguments;return(0,f.A)(function*(){var a=r.length>2&&void 0!==r[2]?r[2]:{},i=new He(a),o=yield i.parse(e);return new Ce(t,o,a)})()}static fromString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new He(r).parseFromString(e);return new Ce(t,i,r)}fork(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ce.from(t,e,be(be({},this.options),r))}forkString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ce.fromString(t,e,be(be({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return(0,f.A)(function*(){e.start(be({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},t.length>0&&void 0!==t[0]?t[0]:{})),yield e.ready(),e.stop()})()}start(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:e,screen:r,options:a}=this;r.start(e,be(be({enableRedraw:!0},a),t))}stop(){this.screen.stop()}resize(t){this.documentElement.resize(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}}}}]); \ No newline at end of file diff --git a/ClientApp/staff-db-ui/dist/233.c22447bd85c8ff2d.js b/ClientApp/staff-db-ui/dist/233.c22447bd85c8ff2d.js new file mode 100644 index 0000000..9f5cd8f --- /dev/null +++ b/ClientApp/staff-db-ui/dist/233.c22447bd85c8ff2d.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkstaffdb=self.webpackChunkstaffdb||[]).push([[233],{85296:(Z,I,l)=>{l.d(I,{L:()=>y});var R=l(33570);class g{get sortIndex(){return this._sortIndex}set sortIndex(f){this._sortIndex=f,this.sortOrder||(this.sortOrder="asc")}get widthFactor(){return void 0!==this.groupIndex?0:this._widthFactor}set widthFactor(f){this._widthFactor=f,this.width=this._widthFactor<0?-this._widthFactor+"px":this._widthFactor+"%"}constructor(f="",v="",m=1,C){this.caption=f,this.dataField=v,this.allowSorting=!0,this.allowEditing=!0,this.visible=!0,this.fixed=!1,this._widthFactor=1,this.allowHeaderFiltering=!1,this.allowFiltering=!0,this.subColumns=[],(C||0===C)&&(C>=0&&(this.cellTemplate="numberTemplate_"+C),this.alignment="right"),this.widthFactor=m}}class y{get columns(){return this._columns}set columns(f){this._columns=f,this.exportWasAdded=!1}constructor(){this.overHeaders=[],this._columns=[],this.withExport=!0,this.exportWasAdded=!1}clear(){this.overHeaders=[],this.columns=[]}add(f="",v,m=1){const C=new g(f,v,m);return this.addColumn(C,void 0===v)}addCurrency(f="",v,m=1,C=0){const S=new g(f,v,m,C);return S.cellTemplate="currencyTemnplate_"+C,this.addColumn(S,void 0===v)}addNumber(f="",v,m=1,C=0){v&&"Id"===v.slice(-2)&&(C=-1);const S=new g(f,v,m,C);return S.dataType="number",this.addColumn(S,void 0===v)}addId(f="",v,m=1,C=-1){const S=new g(f,v,m,C);return S.dataType="number",this.addColumn(S,void 0===v)}addBoolean(f="",v,m=1){const C=new g(f,v,m);return C.dataType="boolean",this.addColumn(C,void 0===v)}addDate(f="",v,m=1){const C=new g(f,v,m);return C.dataType="date",C.alignment="center",this.addColumn(C,void 0===v)}addDateTime(f="",v,m=1){const C=new g(f,v,m);return C.dataType="datetime",C.alignment="center",this.addColumn(C,void 0===v)}addColumn(f,v=!1){const m=v?this.overHeaders:this.columns;return v?(f.alignment="center",this.curOverHeader=f):this.curOverHeader&&this.curOverHeader.subColumns.push(f),m.push(f),f}recalcWidth(f=!0){this.withExport&&"right"===this.columns[this.columns.length-1].alignment&&!this.exportWasAdded&&f&&this.add("","",-R.te),this.exportWasAdded=!0;const v=this.columns.reduce((b,F)=>b+(F.visible&&F.widthFactor>0?F.widthFactor:0),0);if(0===v)return;const m=100/v;this.columns.forEach(b=>{b.visible&&b.widthFactor>0&&(b.widthFactor=this.roundToTwo(b.widthFactor*m))});const S=100-this.columns.reduce((b,F)=>b+(F.visible&&F.widthFactor>0?F.widthFactor:0),0);for(let b=this.columns.length-1;b>=0;b--)if(this.columns[b].visible&&this.columns[b].widthFactor>0){this.columns[b].widthFactor+=S;break}}roundToTwo(f,v=2){return Math.round((f+Number.EPSILON)*Math.pow(10,v))/Math.pow(10,v)}setSorting(f){for(let v=0;vS.caption===m.caption);C?(m.sortIndex=C.sortIndex,m.sortOrder=C.sortOrder):(m.sortIndex=void 0,m.sortOrder=void 0),this.columns[v]=m}}}},65343:(Z,I,l)=>{l.d(I,{W:()=>B});var R=l(76461),g=l(19057),y=l(66664),u=l(62560),f=l(61999),v=l(18498),m=l(84412),C=l(12748),S=l(54438),b=l(89097),F=l(62855),w=l(45197);class B{get applicationPage(){return this.appPage}get appPageNoQueries(){return 0}get loadFromTheSamePage(){return this._loadFromTheSamePage}set loadFromTheSamePage(E){this._loadFromTheSamePage=E}get isLoadingOverRouting(){return this._isLoadingOverRouting}set isLoadingOverRouting(E){this._isLoadingOverRouting=E}set baseEntityWrapperWaitLoading(E){this.baseEntityWrapperWaitLoadingSubscription=E.entityIsLoading$.subscribe(O=>{O?this.pageLoadingService.showSpinner():this.pageLoadingService.hideSpinner()})}isPageActive(){return this.globalsService.currentPage===this.globalsService.appPages[this.applicationPage].path}constructor(){this.standAlone=!0,this.loadImedeately=!1,this.loadedOverRoutingCallBack=null,this.loadedOverRoutingOneTimeCallBack=null,this.pageBaseDateWereLoaded$=new m.t(!1),this._loadFromTheSamePage=!1,this._isLoadingOverRouting=!1,this.translationService=(0,S.WQX)(C.X),this.globalsService=(0,S.WQX)(g.RV),this.pageLoadingService=(0,S.WQX)(R.V),this.appLogsService=(0,S.WQX)(y.w),this.authService=(0,S.WQX)(u.V),this.router=(0,S.WQX)(v.Ix),this.dialog=(0,S.WQX)(b.w),this.localeService=(0,S.WQX)(F.i),this.repoService=(0,S.WQX)(w.U),this.backgroundLoading=!1,this.finalise=this.finalise.bind(this),this.pageLoadingService.pageActive$.subscribe(E=>{this.isPageActive()?setTimeout(()=>this.onPageActivated(E)):this.loadFromTheSamePage=!1}),this.authService&&this.authService.loginLogout$.subscribe(E=>{setTimeout(()=>this.onLoggedInOut(new f.j(E)),0)})}init(){this.lastURL="/"+this.globalsService.appPages[this.applicationPage].path,//!this.globalsService.isTheMainPage() && !this.standAlone || // do not need, because if !this.standAlone, then forgroundLoading$ fires imedeately after create the service, because it is a behaviour +(this.loadImedeately&&this.standAlone||this.isPageActive()&&this.globalsService.urlParam)&&setTimeout(()=>this.onPageActivated(this.isPageActive()?this.globalsService.urlParam:null)),this.standAlone||(this.pageLoadingService.forgroundLoading$.subscribe(()=>{this.isPageActive()&&this.loadData()}),this.loadImedeately||this.pageLoadingService.backgroundLoading$.subscribe(()=>{this.isPageActive()||this.loadData()}))}onPageActivated(E){this.doRouting4Id(E)}loadOnPageAcivated(){this.backgroundLoading=!1,this.loadData()}finalise(){this.pageLoadingService.updatePageLoadedCounters(this.appPage)}doRouting4Id(E){if(this.entityList4Routing)if(E)if(!Number.isNaN(Number(E))&&0!==Number(E)&&this.entityList4Routing.focusedEntityShadowed&&this.entityList4Routing.focusedEntityShadowed.inViewMode){let O;this.isLoadingOverRouting=!0,O=this.loadRoutingEntityCallBack?this.loadRoutingEntityCallBack:this.entityList4Routing.focusedEntityShadowed.load.bind(this.entityList4Routing.focusedEntityShadowed),O(Number(E),L=>{L&&L.entityId?(this.lastURL=this.router?.url,this.loadedOverRoutingOneTimeCallBack?(this.loadedOverRoutingOneTimeCallBack(),this.loadedOverRoutingOneTimeCallBack=null):this.loadedOverRoutingCallBack&&this.loadedOverRoutingCallBack()):this.navigateLastURL(),this.isLoadingOverRouting=!1},()=>{this.isLoadingOverRouting=!1,this.navigateLastURL()},()=>{this.isLoadingOverRouting=!1}),this.loadFromTheSamePage=!1}else this.navigateLastURL();else this.loadImedeately&&!this.loadFromTheSamePage?this.loadOnPageAcivated():this.entityList4Routing.focusedItemId?this.entityList4Routing.focusedRoutingCallBack(this.entityList4Routing.focusedItem):this.entityList4Routing.focusedEntityShadowed&&(this.entityList4Routing.focusedEntityShadowed.clear(),this.entityList4Routing.focusedEntityShadowed.entityIsLoading=!1),this.loadFromTheSamePage=!1;else this.loadImedeately&&this.loadOnPageAcivated()}navigateLastURL(){this.router.navigate([this.lastURL])}activateRouting4EntityList(E,O){this.entityList4Routing=E,this.loadedOverRoutingCallBack=O,E.focusedRoutingCallBack=this.focusedRoutingCallBack.bind(this)}focusedRoutingCallBack(E){if(!this.isPageActive())return;const O="number"==typeof E?E:E?.entityId||0,L=this.entityList4Routing.focusedEntityShadowed;if(O>0&&L&&this.globalsService.urlParam===O.toString())L.inViewMode&&(L.entityId===O?L.reload():L.entityId=O);else{this.loadFromTheSamePage=!0;const U=this.router.serializeUrl(this.router.createUrlTree([this.globalsService.appPages[this.applicationPage].path,O>0?O:""]));this.router?.url+"/"!==U?this.isLoadingOverRouting||(this.lastURL=U,this.router.navigate([U])):this.entityList4Routing?.focusedEntityShadowed&&(this.entityList4Routing.focusedEntityShadowed.entityIsLoading=!1)}}onLoggedInOut(E){this.authService.isLoggedIn()||this.clearData()}clearData(){}loadData(E){const O=this.isPageActive();if(O||!this.pageLoadingService.spinnerVisible){const L=O&&!this.standAlone&&this.backgroundLoading;this.backgroundLoading=!this.standAlone,this.pageLoadingService.startSpinner(L,E)}this.pageLoadingService.noOfHttpQueries4Page[this.applicationPage]=this.appPageNoQueries,this.appLogsService.dlog("%c"+this.translationService.instant(this.globalsService.appPages[this.applicationPage].messageCaption)+" data are loading","color:brown")}loadBaseData(E,O,L){this.pageLoadingService.startSpinner(!0,()=>{L&&L(),this.pageBaseDateWereLoaded$.next(!0)}),this.pageLoadingService.noOfHttpQueries4Page[E]=O,this.appLogsService.dlog(this.globalsService.currentPage+": %cstammdata data are loading","color:brown")}}},81121:(Z,I,l)=>{l.d(I,{P4:()=>m,bJ:()=>f,sI:()=>v});var R=l(44703),g=l(23462),y=l(47094),u=l(15113);class f extends g.M{get entitytitle(){return this.entityId?`Mitarbeiter "${this._name}"`:"Neuen Mitarbeiter"}get arAttributeIdList(){return(0,u.TR)(this,"attributeIdList","_arAttributeIdList")}set arAttributeIdList(S){(0,u.le)(this,"attributeIdList","_arAttributeIdList",S)}get _name(){return this.firstName?this.firstName+" ":""+this.lastName?this.lastName:""}get fullname(){return this.firstName+" "+this.lastName}get entityId(){return this.employeeId}set entityId(S){this.employeeId=S}constructor(S){super(S),this.typeName=R.Hv.Employee,this.dontUpdateFields=[...this.dontUpdateFields,"departmentNamesList","departmentIdList","webappNamesList","webappIdList","attributeNamesList","attributeIdList","_arAttributeIdList"],this.dontInsertFields=[...this.dontUpdateFields,"departmentNamesList","departmentIdList","webappNamesList","webappIdList","attributeNamesList","attributeIdList","_arAttributeIdList"]}assign(S){return super.assign(S),this}clear(){super.clear(),this._arAttributeIdList=void 0}}class v extends y.${constructor(){super(...arguments),this.isActive=!0}}class m extends y.${}},83722:(Z,I,l)=>{l.d(I,{K:()=>g});var R=l(61999);class g extends R.j{}},38237:(Z,I,l)=>{l.d(I,{b:()=>We});var R=l(345),g=l(54438),y=l(80186),u=l(24292),f=l(13992),v=l(14435),m=l(91269),C=l(64905),S=l(34423),b=l(72463),F=l(12101),w=l(87951),B=l(12984),G=l(94461),E=l(44831),O=l(2839),L=l(3930),j=E.A.inherit({_getDefaultOptions:function(){return(0,w.X)(this.callBase(),{min:0,max:100,value:0})},_initMarkup:function(){this.$element().addClass("dx-trackbar"),this._renderWrapper(),this._renderContainer(),this._renderRange(),this._renderValue(),this._setRangeStyles(),this.callBase()},_render:function(){this.callBase(),this._setRangeStyles(this._rangeStylesConfig())},_renderWrapper:function(){this._$wrapper=(0,u.A)("
").addClass("dx-trackbar-wrapper").appendTo(this.$element())},_renderContainer:function(){this._$bar=(0,u.A)("
").addClass("dx-trackbar-container").appendTo(this._$wrapper)},_renderRange:function(){this._$range=(0,u.A)("
").addClass("dx-trackbar-range").appendTo(this._$bar)},_renderValue:function(){var p=this.option("value"),e=this.option("min"),t=this.option("max");if(!(e>t)){if(pt)return this.option("value",t),void(this._currentRatio=1);var a=e===t?0:(p-e)/(t-e);!this._needPreventAnimation&&this._setRangeStyles({width:100*a+"%"}),this.setAria({valuemin:this.option("min"),valuemax:t,valuenow:p}),this._currentRatio=a}},_rangeStylesConfig:function(){return{width:100*this._currentRatio+"%"}},_setRangeStyles:function(p){L.A.stop(this._$range),p?this._needPreventAnimation||!(0,v.Vd)()||L.A.animate(this._$range,{type:"custom",duration:100,to:p}):this._$range.css({width:0})},_optionChanged:function(p){switch(p.name){case"value":this._renderValue(),this.callBase(p);break;case"max":case"min":this._renderValue();break;default:this.callBase(p)}},_dispose:function(){L.A.stop(this._$range),this.callBase()}});(0,C.A)("dxTrackBar",j);var K="dx-progressbar-animating-segment",$=j.inherit({_getDefaultOptions:function(){return(0,w.X)(this.callBase(),{value:0,statusFormat:function(p){return"Progress: "+Math.round(100*p)+"%"},showStatus:!0,onComplete:null,activeStateEnabled:!1,statusPosition:"bottom left",_animatingSegmentCount:0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(p){return"android"===p.platform},options:{_animatingSegmentCount:2}}])},_initMarkup:function(){this._renderStatus(),this._createCompleteAction(),this.callBase(),this.$element().addClass("dx-progressbar"),this._$wrapper.addClass("dx-progressbar-wrapper"),this._$bar.addClass("dx-progressbar-container"),this.setAria("role","progressbar"),(0,u.A)("
").addClass("dx-progressbar-range-container").appendTo(this._$wrapper).append(this._$bar),this._$range.addClass("dx-progressbar-range"),this._toggleStatus(this.option("showStatus"))},_useTemplates:function(){return!1},_createCompleteAction:function(){this._completeAction=this._createActionByOption("onComplete")},_renderStatus:function(){this._$status=(0,u.A)("
").addClass("dx-progressbar-status")},_renderIndeterminateState:function(){this._$segmentContainer=(0,u.A)("
").addClass("dx-progressbar-animating-container");for(var p=this.option("_animatingSegmentCount"),e=0;e").addClass(K).addClass(K+"-"+(e+1)).appendTo(this._$segmentContainer);this._$segmentContainer.appendTo(this._$wrapper)},_toggleStatus:function(p){var e=this.option("statusPosition").split(" ");p?"top"===e[0]||"left"===e[0]?this._$status.prependTo(this._$wrapper):this._$status.appendTo(this._$wrapper):this._$status.detach(),this._togglePositionClass()},_togglePositionClass:function(){var e=this.option("statusPosition").split(" ");this._$wrapper.removeClass("dx-position-top-left dx-position-top-right dx-position-bottom-left dx-position-bottom-right dx-position-left dx-position-right");var t="dx-position-"+e[0];e[1]&&(t+="-"+e[1]),this._$wrapper.addClass(t)},_toggleIndeterminateState:function(p){p?(this._renderIndeterminateState(),this._$bar.toggle(!1)):(this._$bar.toggle(!0),this._$segmentContainer.remove(),delete this._$segmentContainer)},_renderValue:function(){var p=this.option("value"),e=this.option("max");p||0===p?(this._$segmentContainer&&this._toggleIndeterminateState(!1),p===e&&this._completeAction(),this.callBase(),this._setStatus()):this._toggleIndeterminateState(!0)},_setStatus:function(){var p=this.option("statusFormat"),e=(p=(0,b.Tn)(p)?p.bind(this):function(t){return t})(this._currentRatio,this.option("value"));this._$status.text(e)},_dispose:function(){this._$status.remove(),this.callBase()},_optionChanged:function(p){switch(p.name){case"statusFormat":this._setStatus();break;case"showStatus":this._toggleStatus(p.value);break;case"statusPosition":this._toggleStatus(this.option("showStatus"));break;case"onComplete":this._createCompleteAction();break;case"_animatingSegmentCount":break;default:this.callBase(p)}}});(0,C.A)("dxProgressBar",$);const ge=$;var H=l(23862),M=l(49104),h=l(18060),T=l(20736),te=l(11299),n=l(17669),s=(0,v.zk)(),_="dx-fileuploader-dragover",_e="dx-fileuploader-file-container",ce="dx-fileuploader-file-name",ve="dx-fileuploader-file-size",Q="dx-fileuploader-button",ue="dx-fileuploader-button-container",me="dx-fileuploader-upload-button",he=()=>!!s.FormData;class Se extends E.A{_supportedKeys(){var e=t=>{t.preventDefault();var a=this._selectButton.$element();m.A.trigger(a,h.U)};return(0,w.X)(super._supportedKeys(),{space:e,enter:e})}_setOptionsByReference(){super._setOptionsByReference(),(0,w.X)(this._optionsByReference,{value:!0})}_getDefaultOptions(){return(0,w.X)(super._getDefaultOptions(),{chunkSize:0,value:[],selectButtonText:T.A.format("dxFileUploader-selectFile"),uploadButtonText:T.A.format("dxFileUploader-upload"),labelText:T.A.format("dxFileUploader-dropFile"),name:"files[]",multiple:!1,accept:"",uploadUrl:"/",allowCanceling:!0,showFileList:!0,progress:0,dialogTrigger:void 0,dropZone:void 0,readyToUploadMessage:T.A.format("dxFileUploader-readyToUpload"),uploadedMessage:T.A.format("dxFileUploader-uploaded"),uploadFailedMessage:T.A.format("dxFileUploader-uploadFailedMessage"),uploadAbortedMessage:T.A.format("dxFileUploader-uploadAbortedMessage"),uploadMode:"instantly",uploadMethod:"POST",uploadHeaders:{},uploadCustomData:{},onBeforeSend:null,onUploadStarted:null,onUploaded:null,onFilesUploaded:null,onProgress:null,onUploadError:null,onUploadAborted:null,onDropZoneEnter:null,onDropZoneLeave:null,allowedFileExtensions:[],maxFileSize:0,minFileSize:0,inputAttr:{},invalidFileExtensionMessage:T.A.format("dxFileUploader-invalidFileExtension"),invalidMaxFileSizeMessage:T.A.format("dxFileUploader-invalidMaxFileSize"),invalidMinFileSizeMessage:T.A.format("dxFileUploader-invalidMinFileSize"),extendSelection:!0,validationMessageMode:"always",uploadFile:null,uploadChunk:null,abortUpload:null,validationMessageOffset:{h:0,v:0},hoverStateEnabled:!0,useNativeInputClick:!1,useDragOver:!0,nativeDropSupported:!0,_uploadButtonType:"normal",_buttonStylingMode:"contained"})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>"desktop"===H.A.real().deviceType&&!H.A.isSimulator(),options:{focusStateEnabled:!0}},{device:[{platform:"android"}],options:{validationMessageOffset:{v:0}}},{device:()=>"desktop"!==H.A.real().deviceType,options:{useDragOver:!1}},{device:()=>!he(),options:{uploadMode:"useForm"}},{device:()=>"desktop"!==H.A.real().deviceType,options:{nativeDropSupported:!1}},{device:()=>(0,te.gx)(),options:{_uploadButtonType:"default"}},{device:()=>(0,te.Ft)(),options:{_buttonStylingMode:"text"}}])}_initOptions(e){var t="labelText"in e;super._initOptions(e),!t&&!this._shouldDragOverBeRendered()&&this.option("labelText","")}_init(){super._init(),this._initFileInput(),this._initLabel(),this._setUploadStrategy(),this._createFiles(),this._createBeforeSendAction(),this._createUploadStartedAction(),this._createUploadedAction(),this._createFilesUploadedAction(),this._createProgressAction(),this._createUploadErrorAction(),this._createUploadAbortedAction(),this._createDropZoneEnterAction(),this._createDropZoneLeaveAction()}_setUploadStrategy(){var e=null;if(this.option("chunkSize")>0){var t=this.option("uploadChunk");e=t&&(0,b.Tn)(t)?new ze(this):new Be(this)}else{var a=this.option("uploadFile");e=a&&(0,b.Tn)(a)?new we(this):new ke(this)}this._uploadStrategy=e}_initFileInput(){this._isCustomClickEvent=!1;var{multiple:e,accept:t,hint:a}=this.option();this._$fileInput||(this._$fileInput=(0,u.A)("").attr("type","file"),m.A.on(this._$fileInput,"change",this._inputChangeHandler.bind(this)),m.A.on(this._$fileInput,"click",c=>(c.stopPropagation(),this._resetInputValue(),this.option("useNativeInputClick")||this._isCustomClickEvent)));var o={multiple:e,accept:t,tabIndex:-1};(0,b.O9)(a)&&(o.title=a),this._$fileInput.prop(o)}_inputChangeHandler(){if(!this._doPreventInputChange){var e=this._$fileInput.val().replace(/^.*\\/,""),t=this._$fileInput.prop("files");if(!t||t.length||"useForm"===this.option("uploadMode")){var a=t?this._getFiles(t):[{name:e}];this._changeValue(a),"instantly"===this.option("uploadMode")&&this._uploadFiles()}}}_shouldFileListBeExtended(){return"useForm"!==this.option("uploadMode")&&this.option("extendSelection")&&this.option("multiple")}_changeValue(e){var t=this._shouldFileListBeExtended()?this.option("value").slice():[];this.option("value",t.concat(e))}_getFiles(e){var t=[];return(0,F.__)(e,(a,o)=>t.push(o)),t}_getFile(e){var t=(0,b.kf)(e)?this.option("value")[e]:e;return this._files.filter(a=>a.value===t)[0]}_initLabel(){this._$inputLabel||(this._$inputLabel=(0,u.A)("
")),this._updateInputLabelText()}_updateInputLabelText(){var e=this._isInteractionDisabled()?"":this.option("labelText");this._$inputLabel.text(e)}_focusTarget(){return this.$element().find("."+Q)}_getSubmitElement(){return this._$fileInput}_initMarkup(){super._initMarkup(),this.$element().addClass("dx-fileuploader"),this._renderWrapper(),this._renderInputWrapper(),this._renderSelectButton(),this._renderInputContainer(),this._renderUploadButton(),this._preventRecreatingFiles=!0,this._activeDropZone=null}_render(){this._preventRecreatingFiles=!1,this._attachDragEventHandlers(this._$inputWrapper),this._attachDragEventHandlers(this.option("dropZone")),this._renderFiles(),super._render()}_createFileProgressBar(e){e.progressBar=this._createProgressBar(e.value.size),e.progressBar.$element().appendTo(e.$file),this._initStatusMessage(e),this._ensureCancelButtonInitialized(e)}_setStatusMessage(e,t){setTimeout(()=>{this.option("showFileList")&&e.$statusMessage&&(e.$statusMessage.text(t),e.$statusMessage.css("display",""),e.progressBar.$element().remove())},400)}_getUploadAbortedStatusMessage(){return"instantly"===this.option("uploadMode")?this.option("uploadAbortedMessage"):this.option("readyToUploadMessage")}_createFiles(){var e=this.option("value");this._files&&(0===e.length||!this._shouldFileListBeExtended())&&(this._preventFilesUploading(this._files),this._files=null),this._files||(this._files=[]),(0,F.__)(e.slice(this._files.length),(t,a)=>{var o=this._createFile(a);this._validateFile(o),this._files.push(o)})}_preventFilesUploading(e){e.forEach(t=>this._uploadStrategy.abortUpload(t))}_validateFile(e){e.isValidFileExtension=this._validateFileExtension(e),e.isValidMinSize=this._validateMinFileSize(e),e.isValidMaxSize=this._validateMaxFileSize(e)}_validateFileExtension(e){var t=this.option("allowedFileExtensions"),a=this.option("accept"),o=this._getAllowedFileTypes(a),c=e.value.name.substring(e.value.name.lastIndexOf(".")).toLowerCase();if(0!==a.length&&!this._isFileTypeAllowed(e.value,o))return!1;if(0===t.length)return!0;for(var A=0;A0)||t<=a}_validateMinFileSize(e){var t=e.value.size,a=this.option("minFileSize");return!(a>0)||t>=a}_createBeforeSendAction(){this._beforeSendAction=this._createActionByOption("onBeforeSend",{excludeValidators:["readOnly"]})}_createUploadStartedAction(){this._uploadStartedAction=this._createActionByOption("onUploadStarted",{excludeValidators:["readOnly"]})}_createUploadedAction(){this._uploadedAction=this._createActionByOption("onUploaded",{excludeValidators:["readOnly"]})}_createFilesUploadedAction(){this._filesUploadedAction=this._createActionByOption("onFilesUploaded",{excludeValidators:["readOnly"]})}_createProgressAction(){this._progressAction=this._createActionByOption("onProgress",{excludeValidators:["readOnly"]})}_createUploadAbortedAction(){this._uploadAbortedAction=this._createActionByOption("onUploadAborted",{excludeValidators:["readOnly"]})}_createUploadErrorAction(){this._uploadErrorAction=this._createActionByOption("onUploadError",{excludeValidators:["readOnly"]})}_createDropZoneEnterAction(){this._dropZoneEnterAction=this._createActionByOption("onDropZoneEnter")}_createDropZoneLeaveAction(){this._dropZoneLeaveAction=this._createActionByOption("onDropZoneLeave")}_createFile(e){return{value:e,loadedSize:0,onProgress:(0,S.A)(),onAbort:(0,S.A)(),onLoad:(0,S.A)(),onError:(0,S.A)(),onLoadStart:(0,S.A)(),isValidFileExtension:!0,isValidMaxSize:!0,isValidMinSize:!0,isValid(){return this.isValidFileExtension&&this.isValidMaxSize&&this.isValidMinSize},isInitialized:!1}}_resetFileState(e){e.isAborted=!1,e.uploadStarted=!1,e.isStartLoad=!1,e.loadedSize=0,e.chunksData=void 0,e.request=void 0}_renderFiles(){var e,t=this.option("value");this._$filesContainer?(!this._shouldFileListBeExtended()||0===t.length)&&this._$filesContainer.empty():this._$filesContainer=(0,u.A)("
").addClass("dx-fileuploader-files-container").appendTo(this._$content);var a=this.option("showFileList");a&&(0,F.__)(this._files,(o,c)=>{c.$file||this._renderFile(c)}),this.$element().toggleClass("dx-fileuploader-show-file-list",a),this._toggleFileUploaderEmptyClassName(),this._updateFileNameMaxWidth(),null===(e=this._validationMessage)||void 0===e||e.repaint()}_renderFile(e){var t=e.value,a=(0,u.A)("
").addClass(_e).appendTo(this._$filesContainer);this._renderFileButtons(e,a),e.$file=(0,u.A)("
").addClass("dx-fileuploader-file").appendTo(a);var o=(0,u.A)("
").addClass("dx-fileuploader-file-info").appendTo(e.$file);e.$statusMessage=(0,u.A)("
").addClass("dx-fileuploader-file-status-message").appendTo(e.$file),(0,u.A)("
").addClass(ce).text(t.name).appendTo(o),(0,b.O9)(t.size)&&(0,u.A)("
").addClass(ve).text(this._getFileSize(t.size)).appendTo(o),e.isValid()?e.$statusMessage.text(this.option("readyToUploadMessage")):(e.isValidFileExtension||e.$statusMessage.append(this._createValidationElement("invalidFileExtensionMessage")),e.isValidMaxSize||e.$statusMessage.append(this._createValidationElement("invalidMaxFileSizeMessage")),e.isValidMinSize||e.$statusMessage.append(this._createValidationElement("invalidMinFileSizeMessage")),a.addClass("dx-fileuploader-invalid"))}_createValidationElement(e){return(0,u.A)("").text(this.option(e))}_updateFileNameMaxWidth(){var e=this.option("allowCanceling")&&"useForm"!==this.option("uploadMode")?1:0,t="useButtons"===this.option("uploadMode")?1:0,a=(0,y.RG)(this._$filesContainer.find("."+_e).first())||(0,y.RG)(this._$filesContainer),o=this._$filesContainer.find("."+ue).eq(0),c=(0,y.RG)(o)*(e+t),A=this._$filesContainer.find("."+ve).eq(0),k=A.text();A.text("1000 Mb");var W=(0,y.RG)(A);A.text(k),this._$filesContainer.find("."+ce).css("maxWidth",a-c-W)}_renderFileButtons(e,t){var a=this._getCancelButton(e);a&&t.append(a);var o=this._getUploadButton(e);o&&t.append(o)}_getCancelButton(e){if("useForm"===this.option("uploadMode"))return null;var{allowCanceling:t,readOnly:a,hoverStateEnabled:o,_buttonStylingMode:c}=this.option();return e.cancelButton=this._createComponent((0,u.A)("
").addClass(Q+" dx-fileuploader-cancel-button"),O.A,{onClick:()=>this._removeFile(e),icon:"close",visible:t,disabled:a,integrationOptions:{},hoverStateEnabled:o,stylingMode:c}),(0,u.A)("
").addClass(ue).append(e.cancelButton.$element())}_getUploadButton(e){if(!e.isValid()||"useButtons"!==this.option("uploadMode"))return null;var{hoverStateEnabled:t,_buttonStylingMode:a}=this.option();return e.uploadButton=this._createComponent((0,u.A)("
").addClass(Q+" "+me),O.A,{onClick:()=>this._uploadFile(e),icon:"upload",hoverStateEnabled:t,stylingMode:a}),e.onLoadStart.add(()=>e.uploadButton.option({visible:!1,disabled:!0})),e.onAbort.add(()=>e.uploadButton.option({visible:!0,disabled:!1})),(0,u.A)("
").addClass(ue).append(e.uploadButton.$element())}_removeFile(e){var t;null===(t=e.$file)||void 0===t||t.parent().remove(),this._files.splice(this._files.indexOf(e),1);var a=this.option("value").slice();a.splice(a.indexOf(e.value),1),this._preventRecreatingFiles=!0,this.option("value",a),this._preventRecreatingFiles=!1,this._toggleFileUploaderEmptyClassName(),this._resetInputValue(!0)}removeFile(e){if("useForm"!==this.option("uploadMode")&&(0,b.O9)(e)){var t=this._getFile(e);t&&(t.uploadStarted&&this._preventFilesUploading([t]),this._removeFile(t))}}_toggleFileUploaderEmptyClassName(){this.$element().toggleClass("dx-fileuploader-empty",!this._files.length||this._hasInvalidFile(this._files))}_hasInvalidFile(e){for(var t=0;t=1024;)e/=1024,t++;return Math.round(e)+" "+a[t]}_renderSelectButton(){var e=(0,u.A)("
").addClass(Q).appendTo(this._$inputWrapper);this._selectButton=this._createComponent(e,O.A,{text:this.option("selectButtonText"),focusStateEnabled:!1,integrationOptions:{},disabled:this.option("readOnly"),hoverStateEnabled:this.option("hoverStateEnabled")}),this._selectFileDialogHandler=this._selectButtonClickHandler.bind(this),"desktop"===H.A.real().deviceType?this._selectButton.option("onClick",this._selectFileDialogHandler):this._attachSelectFileDialogHandler(this._selectButton.$element()),this._attachSelectFileDialogHandler(this.option("dialogTrigger"))}_selectButtonClickHandler(){if(!this.option("useNativeInputClick")){if(this._isInteractionDisabled())return!1;this._isCustomClickEvent=!0,m.A.trigger(this._$fileInput,"click"),this._isCustomClickEvent=!1}}_attachSelectFileDialogHandler(e){(0,b.O9)(e)&&(this._detachSelectFileDialogHandler(e),m.A.on((0,u.A)(e),"click",this._selectFileDialogHandler))}_detachSelectFileDialogHandler(e){(0,b.O9)(e)&&m.A.off((0,u.A)(e),"click",this._selectFileDialogHandler)}_renderUploadButton(){if("useButtons"===this.option("uploadMode")){var e=(0,u.A)("
").addClass(Q).addClass(me).appendTo(this._$content);this._uploadButton=this._createComponent(e,O.A,{text:this.option("uploadButtonText"),onClick:this._uploadButtonClickHandler.bind(this),type:this.option("_uploadButtonType"),integrationOptions:{},hoverStateEnabled:this.option("hoverStateEnabled")})}}_uploadButtonClickHandler(){this._uploadFiles()}_shouldDragOverBeRendered(){return!this.option("readOnly")&&("useForm"!==this.option("uploadMode")||this.option("nativeDropSupported"))}_isInteractionDisabled(){return this.option("readOnly")||this.option("disabled")}_renderInputContainer(){this._$inputContainer=(0,u.A)("
").addClass("dx-fileuploader-input-container").appendTo(this._$inputWrapper),this._$fileInput.addClass("dx-fileuploader-input"),this._renderInput();var e="dx-fileuploader-input-label-".concat(new f.A);this._$inputLabel.attr("id",e).addClass("dx-fileuploader-input-label").appendTo(this._$inputContainer),this.setAria("labelledby",e,this._$fileInput)}_renderInput(){this.option("useNativeInputClick")?this._selectButton.option("template",this._selectButtonInputTemplate.bind(this)):(this._$fileInput.appendTo(this._$inputContainer),this._selectButton.option("template","content")),this._applyInputAttributes(this.option("inputAttr"))}_selectButtonInputTemplate(e,t){var a=(0,u.A)(t),o=(0,u.A)("").addClass("dx-button-text").text(e.text);return a.append(o).append(this._$fileInput),a}_renderInputWrapper(){this._$inputWrapper=(0,u.A)("
").addClass("dx-fileuploader-input-wrapper").appendTo(this._$content)}_detachDragEventHandlers(e){(0,b.O9)(e)&&m.A.off((0,u.A)(e),(0,M.b4)("",this.NAME))}_attachDragEventHandlers(e){var t=e!==this._$inputWrapper;!(0,b.O9)(e)||!this._shouldDragOverBeRendered()||(this._detachDragEventHandlers(e),e=(0,u.A)(e),m.A.on(e,(0,M.b4)("dragenter",this.NAME),this._dragEnterHandler.bind(this,t)),m.A.on(e,(0,M.b4)("dragover",this.NAME),this._dragOverHandler.bind(this,t)),m.A.on(e,(0,M.b4)("dragleave",this.NAME),this._dragLeaveHandler.bind(this,t)),m.A.on(e,(0,M.b4)("drop",this.NAME),this._dropHandler.bind(this,t)))}_applyInputAttributes(e){this._$fileInput.attr(e)}_useInputForDrop(){return this.option("nativeDropSupported")&&"useForm"===this.option("uploadMode")}_getDropZoneElement(e,t){var a=e?Array.from((0,u.A)(this.option("dropZone"))):[this._$inputWrapper];return(a=a.map(o=>(0,u.A)(o).get(0)))[a.indexOf(t.currentTarget)]}_dragEnterHandler(e,t){if(this.option("disabled"))return!1;this._useInputForDrop()||t.preventDefault();var a=this._getDropZoneElement(e,t);(0,b.O9)(a)&&this._shouldRaiseDragOver(t,a)&&(this._activeDropZone=a,this._tryToggleDropZoneActive(!0,e,t))}_shouldRaiseDragOver(e,t){return null===this._activeDropZone&&this.isMouseOverElement(e,t,!1)&&e.originalEvent.dataTransfer.types.find(a=>"Files"===a)}_dragOverHandler(e,t){if(this._useInputForDrop()||t.preventDefault(),t.originalEvent.dataTransfer.dropEffect="copy",!e){var a=this._getDropZoneElement(!1,t);this._shouldRaiseDragOver(t,a)&&this._dragEnterHandler(!1,t),this._shouldRaiseDragLeave(t,!1)&&this._dragLeaveHandler(!1,t)}}_dragLeaveHandler(e,t){this._useInputForDrop()||t.preventDefault(),this._shouldRaiseDragLeave(t,e)&&(this._tryToggleDropZoneActive(!1,e,t),this._activeDropZone=null)}_shouldRaiseDragLeave(e,t){return null!==this._activeDropZone&&!this.isMouseOverElement(e,this._activeDropZone,!t,-1)}_tryToggleDropZoneActive(e,t,a){var o=e?"addClass":"removeClass";this[e?"_dropZoneEnterAction":"_dropZoneLeaveAction"]({event:a,dropZoneElement:this._activeDropZone}),t||this.$element()[o](_)}_dropHandler(e,t){if(this._activeDropZone=null,e||this.$element().removeClass(_),!(this._useInputForDrop()||e&&this._isInteractionDisabled())){t.preventDefault();var o=this._getFiles(t.originalEvent.dataTransfer.files);!this.option("multiple")&&o.length>1||0===o.length||(this._changeValue(o),"instantly"===this.option("uploadMode")&&this._uploadFiles())}}_areAllFilesLoaded(){return this._files.every(e=>!e.isValid()||e._isError||e._isLoaded||e.isAborted)}_handleAllFilesUploaded(){this._recalculateProgress(),this._areAllFilesLoaded()&&this._filesUploadedAction()}_getAllowedFileTypes(e){return e.length?e.split(",").map(t=>t.trim()):[]}_isFileTypeAllowed(e,t){for(var a=0,o=t.length;a").addClass("dx-fileuploader-wrapper").appendTo(this.$element()),t=(0,u.A)("
").addClass("dx-fileuploader-container").appendTo(e);this._$content=(0,u.A)("
").addClass("dx-fileuploader-content").appendTo(t)}_clean(){this._$fileInput.detach(),delete this._$filesContainer,this._detachSelectFileDialogHandler(this.option("dialogTrigger")),this._detachDragEventHandlers(this.option("dropZone")),this._files&&this._files.forEach(e=>{e.$file=null,e.$statusMessage=null}),super._clean()}abortUpload(e){if("useForm"!==this.option("uploadMode"))if((0,b.O9)(e)){var t=this._getFile(e);t&&this._preventFilesUploading([t])}else this._preventFilesUploading(this._files)}upload(e){if("useForm"!==this.option("uploadMode"))if((0,b.O9)(e)){var t=this._getFile(e);t&&he()&&this._uploadFile(t)}else this._uploadFiles()}_uploadFiles(){he()&&(0,F.__)(this._files,(e,t)=>this._uploadFile(t))}_uploadFile(e){this._uploadStrategy.upload(e)}_updateProgressBar(e,t){e.progressBar&&e.progressBar.option({value:t.loaded,showStatus:!0}),this._progressAction({file:e.value,segmentSize:t.currentSegmentSize,bytesLoaded:t.loaded,bytesTotal:t.total,event:t.event,request:e.request})}_updateTotalProgress(e,t){var a=0;(0,b.O9)(e)&&(this._files.length>0&&this._areAllFilesLoaded()&&0===e&&0===t?a=this._getProgressValue(1):e&&(a=this._getProgressValue(t/e))),this.option("progress",a),this._setLoadedSize(t)}_getProgressValue(e){return Math.floor(100*e)}_initStatusMessage(e){e.$statusMessage.css("display","none")}_ensureCancelButtonInitialized(e){if(!e.isInitialized){e.cancelButton.option("onClick",()=>{this._preventFilesUploading([e]),this._removeFile(e)});var t=()=>{setTimeout(()=>{e.cancelButton.option({visible:!1})},400)};e.onLoad.add(t),e.onError.add(t)}}_createProgressBar(e){return this._createComponent((0,u.A)("
"),ge,{value:void 0,min:0,max:e,statusFormat:t=>this._getProgressValue(t)+"%",showStatus:!1,statusPosition:"right"})}_getTotalFilesSize(){return this._totalFilesSize||(this._totalFilesSize=0,(0,F.__)(this._files,(e,t)=>{this._totalFilesSize+=t.value.size})),this._totalFilesSize}_getTotalLoadedFilesSize(){return this._totalLoadedFilesSize||(this._totalLoadedFilesSize=0,(0,F.__)(this._files,(e,t)=>{this._totalLoadedFilesSize+=t.loadedSize})),this._totalLoadedFilesSize}_setLoadedSize(e){this._totalLoadedFilesSize=e}_recalculateProgress(){this._totalFilesSize=0,this._totalLoadedFilesSize=0,this._updateTotalProgress(this._getTotalFilesSize(),this._getTotalLoadedFilesSize())}isMouseOverElement(e,t,a){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!t)return!1;var c=a?parseFloat(s.getComputedStyle(t,":before").height):0,A=a?parseFloat(s.getComputedStyle(t,":after").height):0,k=(0,y.A3)(t).left,W=(0,y.A3)(t).top+c,pe=t.offsetWidth,Oe=t.offsetHeight-c-A,xe=this._getEventX(e),Fe=this._getEventY(e);return xe+o>=k&&xe-o=W&&Fe-o0?t=e.changedTouches:e.targetTouches.length>0&&(t=e.targetTouches),t?t[0].pageX:0}_getTouchEventY(e){var t=null;return e.changedTouches.length>0?t=e.changedTouches:e.targetTouches.length>0&&(t=e.targetTouches),t?t[0].pageY:0}_getDocumentScrollTop(){var e=n.A.getDocument();return e.documentElement.scrollTop||e.body.scrollTop}_getDocumentScrollLeft(){var e=n.A.getDocument();return e.documentElement.scrollLeft||e.body.scrollLeft}_updateReadOnlyState(){var e=this.option("readOnly");this._selectButton.option("disabled",e),this._files.forEach(t=>{var a;return null===(a=t.cancelButton)||void 0===a?void 0:a.option("disabled",e)}),this._updateInputLabelText(),this._attachDragEventHandlers(this._$inputWrapper)}_updateHoverState(){var e,t,a=this.option("hoverStateEnabled");null===(e=this._selectButton)||void 0===e||e.option("hoverStateEnabled",a),null===(t=this._uploadButton)||void 0===t||t.option("hoverStateEnabled",a),this._files.forEach(o=>{var c,A;null===(c=o.uploadButton)||void 0===c||c.option("hoverStateEnabled",a),null===(A=o.cancelButton)||void 0===A||A.option("hoverStateEnabled",a)})}_optionChanged(e){var{name:t,value:a,previousValue:o}=e;switch(t){case"height":case"width":this._updateFileNameMaxWidth(),super._optionChanged(e);break;case"value":!a.length&&this._$fileInput.val(""),this._preventRecreatingFiles||(this._createFiles(),this._renderFiles()),this._recalculateProgress(),super._optionChanged(e);break;case"name":case"hint":this._initFileInput(),super._optionChanged(e);break;case"accept":this._initFileInput();break;case"multiple":this._initFileInput(),e.value||this.clear();break;case"readOnly":this._updateReadOnlyState(),super._optionChanged(e);break;case"disabled":this._updateInputLabelText(),super._optionChanged(e);break;case"selectButtonText":this._selectButton.option("text",a);break;case"uploadButtonText":this._uploadButton&&this._uploadButton.option("text",a);break;case"_uploadButtonType":this._uploadButton&&this._uploadButton.option("type",a);break;case"_buttonStylingMode":this._files.forEach(c=>{var A,k;null===(A=c.uploadButton)||void 0===A||A.option("stylingMode",a),null===(k=c.cancelButton)||void 0===k||k.option("stylingMode",a)});break;case"dialogTrigger":this._detachSelectFileDialogHandler(o),this._attachSelectFileDialogHandler(a);break;case"dropZone":this._detachDragEventHandlers(o),this._attachDragEventHandlers(a);break;case"maxFileSize":case"minFileSize":case"allowedFileExtensions":case"invalidFileExtensionMessage":case"invalidMaxFileSizeMessage":case"invalidMinFileSizeMessage":case"readyToUploadMessage":case"uploadedMessage":case"uploadFailedMessage":case"uploadAbortedMessage":case"nativeDropSupported":this._invalidate();break;case"labelText":this._updateInputLabelText();break;case"showFileList":this._preventRecreatingFiles||this._renderFiles();break;case"uploadFile":case"uploadChunk":case"chunkSize":this._setUploadStrategy();break;case"abortUpload":case"uploadUrl":case"progress":case"uploadMethod":case"uploadHeaders":case"uploadCustomData":case"extendSelection":break;case"hoverStateEnabled":this._updateHoverState(),super._optionChanged(e);break;case"allowCanceling":case"uploadMode":this.clear(),this._invalidate();break;case"onBeforeSend":this._createBeforeSendAction();break;case"onUploadStarted":this._createUploadStartedAction();break;case"onUploaded":this._createUploadedAction();break;case"onFilesUploaded":this._createFilesUploadedAction();break;case"onProgress":this._createProgressAction();break;case"onUploadError":this._createUploadErrorAction();break;case"onUploadAborted":this._createUploadAbortedAction();break;case"onDropZoneEnter":this._createDropZoneEnterAction();break;case"onDropZoneLeave":this._createDropZoneLeaveAction();break;case"useNativeInputClick":this._renderInput();break;case"useDragOver":this._attachDragEventHandlers(this._$inputWrapper);break;case"inputAttr":this._applyInputAttributes(this.option(t));break;default:super._optionChanged(e)}}_resetInputValue(e){"useForm"===this.option("uploadMode")&&!e||(this._doPreventInputChange=!0,this._$fileInput.val(""),this._doPreventInputChange=!1)}clear(){this.option("value",[])}}class Re{constructor(e,t){this.file=e,this.chunkSize=t,this.index=0}read(){if(!this.file)return null;var e=this.createBlobResult(this.file,this.index,this.chunkSize);return e.isCompleted&&(this.file=null),this.index++,e}createBlobResult(e,t,a){var o=t*a;return{blob:this.sliceFile(e,o,a),index:t,isCompleted:o+a>=e.size}}sliceFile(e,t,a){return e.slice?e.slice(t,t+a):e.webkitSlice?e.webkitSlice(t,t+a):null}}class be{constructor(e){this.fileUploader=e}upload(e){e.isInitialized&&e.isAborted&&this.fileUploader._resetFileState(e),e.isValid()&&!e.uploadStarted&&(this._prepareFileBeforeUpload(e),this._uploadCore(e))}abortUpload(e){if(!(e._isError||e._isLoaded||e.isAborted)&&e.uploadStarted&&(e.isAborted=!0,e.request&&e.request.abort(),this._isCustomCallback("abortUpload"))){var t=this.fileUploader.option("abortUpload"),a=this._createUploadArgument(e),o=null;try{var c=t(e.value,a);o=(0,B.Sx)(c)}catch(A){o=(new B.cY).reject(A).promise()}o.done(()=>e.onAbort.fire()).fail(A=>this._handleFileError(e,A))}}_beforeSend(e,t){var a=this._createUploadArgument(t);this.fileUploader._beforeSendAction({request:e,file:t.value,uploadInfo:a}),t.request=e}_createUploadArgument(e){}_uploadCore(e){}_isCustomCallback(e){var t=this.fileUploader.option(e);return t&&(0,b.Tn)(t)}_handleProgress(e,t){e._isError||(e._isProgressStarted=!0,this._handleProgressCore(e,t))}_handleProgressCore(e,t){}_handleFileError(e,t){e._isError=!0,e.onError.fire(t)}_prepareFileBeforeUpload(e){var t;e.$file&&(null===(t=e.progressBar)||void 0===t||t.dispose(),this.fileUploader._createFileProgressBar(e)),e.isInitialized||(e.onLoadStart.add(this._onUploadStarted.bind(this,e)),e.onLoad.add(this._onLoadedHandler.bind(this,e)),e.onError.add(this._onErrorHandler.bind(this,e)),e.onAbort.add(this._onAbortHandler.bind(this,e)),e.onProgress.add(this._onProgressHandler.bind(this,e)),e.isInitialized=!0)}_shouldHandleError(e,t){return(this._isStatusError(t.status)||!e._isProgressStarted)&&!e.isAborted}_isStatusError(e){return 400<=e&&e<500||500<=e&&e<600}_onUploadStarted(e,t){e.uploadStarted=!0,this.fileUploader._uploadStartedAction({file:e.value,event:t,request:e.request})}_onAbortHandler(e,t){var a={file:e.value,event:t,request:e.request,message:this.fileUploader._getUploadAbortedStatusMessage()};this.fileUploader._uploadAbortedAction(a),this.fileUploader._setStatusMessage(e,a.message),this.fileUploader._handleAllFilesUploaded()}_onErrorHandler(e,t){var a={file:e.value,event:void 0,request:e.request,error:t,message:this.fileUploader.option("uploadFailedMessage")};this.fileUploader._uploadErrorAction(a),this.fileUploader._setStatusMessage(e,a.message),this.fileUploader._handleAllFilesUploaded()}_onLoadedHandler(e,t){var a={file:e.value,event:t,request:e.request,message:this.fileUploader.option("uploadedMessage")};e._isLoaded=!0,this.fileUploader._uploadedAction(a),this.fileUploader._setStatusMessage(e,a.message),this.fileUploader._handleAllFilesUploaded()}_onProgressHandler(e,t){if(e){var a=this.fileUploader._getTotalFilesSize(),o=this.fileUploader._getTotalLoadedFilesSize(),c=Math.min(t.loaded,e.value.size),A=c-e.loadedSize;e.loadedSize=c,this.fileUploader._updateTotalProgress(a,o+A),this.fileUploader._updateProgressBar(e,this._getLoadedData(c,t.total,A,t))}}_getLoadedData(e,t,a,o){return{loaded:e,total:t,currentSegmentSize:a}}_extendFormData(e){var t=this.fileUploader.option("uploadCustomData");for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(0,b.O9)(t[a])&&e.append(a,t[a])}}class Ee extends be{constructor(e){super(e),this.chunkSize=this.fileUploader.option("chunkSize")}_uploadCore(e){var t=e.value,a={name:t.name,loadedBytes:0,type:t.type,blobReader:new Re(t,this.chunkSize),guid:new f.A,fileSize:t.size,count:this._getFileChunksCount(t),customData:{}};e.chunksData=a,this._sendChunk(e,a)}_getFileChunksCount(e){return 0===e.size?1:Math.ceil(e.size/this.chunkSize)}_sendChunk(e,t){var a=t.blobReader.read();t.currentChunk=a,a&&this._sendChunkCore(e,t,a).done(()=>{e.isAborted||(t.loadedBytes+=a.blob.size,e.onProgress.fire({loaded:t.loadedBytes,total:e.value.size}),a.isCompleted&&e.onLoad.fire(),setTimeout(()=>this._sendChunk(e,t)))}).fail(o=>{this._shouldHandleError(e,o)&&this._handleFileError(e,o)})}_sendChunkCore(e,t,a){}_tryRaiseStartLoad(e){e.isStartLoad||(e.isStartLoad=!0,e.onLoadStart.fire())}_getEvent(e){return null}_createUploadArgument(e){return this._createChunksInfo(e.chunksData)}_createChunksInfo(e){return{bytesUploaded:e.loadedBytes,chunkCount:e.count,customData:e.customData,chunkBlob:e.currentChunk.blob,chunkIndex:e.currentChunk.index}}}class Be extends Ee{_sendChunkCore(e,t,a){return G.A.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:o=>this._beforeSend(o,e),upload:{onprogress:o=>this._handleProgress(e,o),onloadstart:()=>this._tryRaiseStartLoad(e),onabort:()=>e.onAbort.fire()},data:this._createFormData({fileName:t.name,blobName:this.fileUploader.option("name"),blob:a.blob,index:a.index,count:t.count,type:t.type,guid:t.guid,size:t.fileSize})})}_createFormData(e){var t=new s.FormData;return t.append(e.blobName,e.blob),t.append("chunkMetadata",JSON.stringify({FileName:e.fileName,Index:e.index,TotalCount:e.count,FileSize:e.size,FileType:e.type,FileGuid:e.guid})),this._extendFormData(t),t}}class ze extends Ee{_sendChunkCore(e,t){this._tryRaiseStartLoad(e);var a=this._createChunksInfo(t),o=this.fileUploader.option("uploadChunk");try{var c=o(e.value,a);return(0,B.Sx)(c)}catch(A){return(new B.cY).reject(A).promise()}}_shouldHandleError(e,t){return!0}}class Ae extends be{_uploadCore(e){e.loadedSize=0,this._uploadFile(e).done(()=>{e.isAborted||e.onLoad.fire()}).fail(t=>{this._shouldHandleError(e,t)&&this._handleFileError(e,t)})}_uploadFile(e){}_handleProgressCore(e,t){e.onProgress.fire(t)}_getLoadedData(e,t,a,o){var c=super._getLoadedData(e,t,a,o);return c.event=o,c}}class ke extends Ae{_uploadFile(e){return G.A.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:t=>this._beforeSend(t,e),upload:{onprogress:t=>this._handleProgress(e,t),onloadstart:()=>e.onLoadStart.fire(),onabort:()=>e.onAbort.fire()},data:this._createFormData(this.fileUploader.option("name"),e.value)})}_createFormData(e,t){var a=new s.FormData;return a.append(e,t,t.name),this._extendFormData(a),a}}class we extends Ae{_uploadFile(e){e.onLoadStart.fire();var t=this.fileUploader.option("uploadFile");try{var a=t(e.value,o=>{this._handleProgress(e,{loaded:o,total:e.value.size})});return(0,B.Sx)(a)}catch(o){return(new B.cY).reject(o).promise()}}_shouldHandleError(e,t){return!0}}(0,C.A)("dxFileUploader",Se);const $e=Se;var He=l(89417),P=l(87283);const Ne={provide:He.kq,useExisting:(0,g.Rfq)(()=>Ve),multi:!0};let Ve=(()=>{class p extends P.ic{constructor(t,a,o,c,A,k,W,pe){super(t,a,o,c,W,pe),this._watcherHelper=c,this._idh=A,this.touched=Oe=>{},this._createEventEmitters([{subscribe:"beforeSend",emit:"onBeforeSend"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"dropZoneEnter",emit:"onDropZoneEnter"},{subscribe:"dropZoneLeave",emit:"onDropZoneLeave"},{subscribe:"filesUploaded",emit:"onFilesUploaded"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"progress",emit:"onProgress"},{subscribe:"uploadAborted",emit:"onUploadAborted"},{subscribe:"uploaded",emit:"onUploaded"},{subscribe:"uploadError",emit:"onUploadError"},{subscribe:"uploadStarted",emit:"onUploadStarted"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"abortUploadChange"},{emit:"acceptChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowCancelingChange"},{emit:"allowedFileExtensionsChange"},{emit:"chunkSizeChange"},{emit:"dialogTriggerChange"},{emit:"disabledChange"},{emit:"dropZoneChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"invalidFileExtensionMessageChange"},{emit:"invalidMaxFileSizeMessageChange"},{emit:"invalidMinFileSizeMessageChange"},{emit:"isDirtyChange"},{emit:"isValidChange"},{emit:"labelTextChange"},{emit:"maxFileSizeChange"},{emit:"minFileSizeChange"},{emit:"multipleChange"},{emit:"nameChange"},{emit:"progressChange"},{emit:"readOnlyChange"},{emit:"readyToUploadMessageChange"},{emit:"rtlEnabledChange"},{emit:"selectButtonTextChange"},{emit:"showFileListChange"},{emit:"tabIndexChange"},{emit:"uploadAbortedMessageChange"},{emit:"uploadButtonTextChange"},{emit:"uploadChunkChange"},{emit:"uploadCustomDataChange"},{emit:"uploadedMessageChange"},{emit:"uploadFailedMessageChange"},{emit:"uploadFileChange"},{emit:"uploadHeadersChange"},{emit:"uploadMethodChange"},{emit:"uploadModeChange"},{emit:"uploadUrlChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),k.setHost(this)}get abortUpload(){return this._getOption("abortUpload")}set abortUpload(t){this._setOption("abortUpload",t)}get accept(){return this._getOption("accept")}set accept(t){this._setOption("accept",t)}get accessKey(){return this._getOption("accessKey")}set accessKey(t){this._setOption("accessKey",t)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(t){this._setOption("activeStateEnabled",t)}get allowCanceling(){return this._getOption("allowCanceling")}set allowCanceling(t){this._setOption("allowCanceling",t)}get allowedFileExtensions(){return this._getOption("allowedFileExtensions")}set allowedFileExtensions(t){this._setOption("allowedFileExtensions",t)}get chunkSize(){return this._getOption("chunkSize")}set chunkSize(t){this._setOption("chunkSize",t)}get dialogTrigger(){return this._getOption("dialogTrigger")}set dialogTrigger(t){this._setOption("dialogTrigger",t)}get disabled(){return this._getOption("disabled")}set disabled(t){this._setOption("disabled",t)}get dropZone(){return this._getOption("dropZone")}set dropZone(t){this._setOption("dropZone",t)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(t){this._setOption("elementAttr",t)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(t){this._setOption("focusStateEnabled",t)}get height(){return this._getOption("height")}set height(t){this._setOption("height",t)}get hint(){return this._getOption("hint")}set hint(t){this._setOption("hint",t)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(t){this._setOption("hoverStateEnabled",t)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(t){this._setOption("inputAttr",t)}get invalidFileExtensionMessage(){return this._getOption("invalidFileExtensionMessage")}set invalidFileExtensionMessage(t){this._setOption("invalidFileExtensionMessage",t)}get invalidMaxFileSizeMessage(){return this._getOption("invalidMaxFileSizeMessage")}set invalidMaxFileSizeMessage(t){this._setOption("invalidMaxFileSizeMessage",t)}get invalidMinFileSizeMessage(){return this._getOption("invalidMinFileSizeMessage")}set invalidMinFileSizeMessage(t){this._setOption("invalidMinFileSizeMessage",t)}get isDirty(){return this._getOption("isDirty")}set isDirty(t){this._setOption("isDirty",t)}get isValid(){return this._getOption("isValid")}set isValid(t){this._setOption("isValid",t)}get labelText(){return this._getOption("labelText")}set labelText(t){this._setOption("labelText",t)}get maxFileSize(){return this._getOption("maxFileSize")}set maxFileSize(t){this._setOption("maxFileSize",t)}get minFileSize(){return this._getOption("minFileSize")}set minFileSize(t){this._setOption("minFileSize",t)}get multiple(){return this._getOption("multiple")}set multiple(t){this._setOption("multiple",t)}get name(){return this._getOption("name")}set name(t){this._setOption("name",t)}get progress(){return this._getOption("progress")}set progress(t){this._setOption("progress",t)}get readOnly(){return this._getOption("readOnly")}set readOnly(t){this._setOption("readOnly",t)}get readyToUploadMessage(){return this._getOption("readyToUploadMessage")}set readyToUploadMessage(t){this._setOption("readyToUploadMessage",t)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(t){this._setOption("rtlEnabled",t)}get selectButtonText(){return this._getOption("selectButtonText")}set selectButtonText(t){this._setOption("selectButtonText",t)}get showFileList(){return this._getOption("showFileList")}set showFileList(t){this._setOption("showFileList",t)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(t){this._setOption("tabIndex",t)}get uploadAbortedMessage(){return this._getOption("uploadAbortedMessage")}set uploadAbortedMessage(t){this._setOption("uploadAbortedMessage",t)}get uploadButtonText(){return this._getOption("uploadButtonText")}set uploadButtonText(t){this._setOption("uploadButtonText",t)}get uploadChunk(){return this._getOption("uploadChunk")}set uploadChunk(t){this._setOption("uploadChunk",t)}get uploadCustomData(){return this._getOption("uploadCustomData")}set uploadCustomData(t){this._setOption("uploadCustomData",t)}get uploadedMessage(){return this._getOption("uploadedMessage")}set uploadedMessage(t){this._setOption("uploadedMessage",t)}get uploadFailedMessage(){return this._getOption("uploadFailedMessage")}set uploadFailedMessage(t){this._setOption("uploadFailedMessage",t)}get uploadFile(){return this._getOption("uploadFile")}set uploadFile(t){this._setOption("uploadFile",t)}get uploadHeaders(){return this._getOption("uploadHeaders")}set uploadHeaders(t){this._setOption("uploadHeaders",t)}get uploadMethod(){return this._getOption("uploadMethod")}set uploadMethod(t){this._setOption("uploadMethod",t)}get uploadMode(){return this._getOption("uploadMode")}set uploadMode(t){this._setOption("uploadMode",t)}get uploadUrl(){return this._getOption("uploadUrl")}set uploadUrl(t){this._setOption("uploadUrl",t)}get validationError(){return this._getOption("validationError")}set validationError(t){this._setOption("validationError",t)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(t){this._setOption("validationErrors",t)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(t){this._setOption("validationStatus",t)}get value(){return this._getOption("value")}set value(t){this._setOption("value",t)}get visible(){return this._getOption("visible")}set visible(t){this._setOption("visible",t)}get width(){return this._getOption("width")}set width(t){this._setOption("width",t)}change(t){}_createInstance(t,a){return new $e(t,a)}writeValue(t){this.eventHelper.lockedValueChangeEvent=!0,this.value=t,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(t){this.disabled=t}registerOnChange(t){this.change=t}registerOnTouched(t){this.touched=t}_createWidget(t){super._createWidget(t),this.instance.on("focusOut",a=>{this.eventHelper.fireNgEvent("onBlur",[a])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(t){super.ngOnChanges(t),this.setupChanges("allowedFileExtensions",t),this.setupChanges("validationErrors",t),this.setupChanges("value",t)}setupChanges(t,a){t in this._optionsToUpdate||this._idh.setup(t,a)}ngDoCheck(){this._idh.doCheck("allowedFileExtensions"),this._idh.doCheck("validationErrors"),this._idh.doCheck("value"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(t,a){let o=this._idh.setupSingle(t,a),c=null!==this._idh.getChanges(t,a);(o||c)&&super._setOption(t,a)}}return p.\u0275fac=function(t){return new(t||p)(g.rXU(g.aKT),g.rXU(g.SKi),g.rXU(P.zF),g.rXU(P.jS),g.rXU(P.$M),g.rXU(P.fH),g.rXU(R.pJ),g.rXU(g.Agw))},p.\u0275cmp=g.VBU({type:p,selectors:[["dx-file-uploader"]],hostBindings:function(t,a){1&t&&g.bIt("valueChange",function(c){return a.change(c)})("onBlur",function(c){return a.touched(c)})},inputs:{abortUpload:"abortUpload",accept:"accept",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowCanceling:"allowCanceling",allowedFileExtensions:"allowedFileExtensions",chunkSize:"chunkSize",dialogTrigger:"dialogTrigger",disabled:"disabled",dropZone:"dropZone",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",invalidFileExtensionMessage:"invalidFileExtensionMessage",invalidMaxFileSizeMessage:"invalidMaxFileSizeMessage",invalidMinFileSizeMessage:"invalidMinFileSizeMessage",isDirty:"isDirty",isValid:"isValid",labelText:"labelText",maxFileSize:"maxFileSize",minFileSize:"minFileSize",multiple:"multiple",name:"name",progress:"progress",readOnly:"readOnly",readyToUploadMessage:"readyToUploadMessage",rtlEnabled:"rtlEnabled",selectButtonText:"selectButtonText",showFileList:"showFileList",tabIndex:"tabIndex",uploadAbortedMessage:"uploadAbortedMessage",uploadButtonText:"uploadButtonText",uploadChunk:"uploadChunk",uploadCustomData:"uploadCustomData",uploadedMessage:"uploadedMessage",uploadFailedMessage:"uploadFailedMessage",uploadFile:"uploadFile",uploadHeaders:"uploadHeaders",uploadMethod:"uploadMethod",uploadMode:"uploadMode",uploadUrl:"uploadUrl",validationError:"validationError",validationErrors:"validationErrors",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onBeforeSend:"onBeforeSend",onContentReady:"onContentReady",onDisposing:"onDisposing",onDropZoneEnter:"onDropZoneEnter",onDropZoneLeave:"onDropZoneLeave",onFilesUploaded:"onFilesUploaded",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onProgress:"onProgress",onUploadAborted:"onUploadAborted",onUploaded:"onUploaded",onUploadError:"onUploadError",onUploadStarted:"onUploadStarted",onValueChanged:"onValueChanged",abortUploadChange:"abortUploadChange",acceptChange:"acceptChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowCancelingChange:"allowCancelingChange",allowedFileExtensionsChange:"allowedFileExtensionsChange",chunkSizeChange:"chunkSizeChange",dialogTriggerChange:"dialogTriggerChange",disabledChange:"disabledChange",dropZoneChange:"dropZoneChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",invalidFileExtensionMessageChange:"invalidFileExtensionMessageChange",invalidMaxFileSizeMessageChange:"invalidMaxFileSizeMessageChange",invalidMinFileSizeMessageChange:"invalidMinFileSizeMessageChange",isDirtyChange:"isDirtyChange",isValidChange:"isValidChange",labelTextChange:"labelTextChange",maxFileSizeChange:"maxFileSizeChange",minFileSizeChange:"minFileSizeChange",multipleChange:"multipleChange",nameChange:"nameChange",progressChange:"progressChange",readOnlyChange:"readOnlyChange",readyToUploadMessageChange:"readyToUploadMessageChange",rtlEnabledChange:"rtlEnabledChange",selectButtonTextChange:"selectButtonTextChange",showFileListChange:"showFileListChange",tabIndexChange:"tabIndexChange",uploadAbortedMessageChange:"uploadAbortedMessageChange",uploadButtonTextChange:"uploadButtonTextChange",uploadChunkChange:"uploadChunkChange",uploadCustomDataChange:"uploadCustomDataChange",uploadedMessageChange:"uploadedMessageChange",uploadFailedMessageChange:"uploadFailedMessageChange",uploadFileChange:"uploadFileChange",uploadHeadersChange:"uploadHeadersChange",uploadMethodChange:"uploadMethodChange",uploadModeChange:"uploadModeChange",uploadUrlChange:"uploadUrlChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[g.Jv_([P.zF,P.jS,Ne,P.fH,P.$M]),g.Vt3,g.OA$],decls:0,vars:0,template:function(t,a){},encapsulation:2}),p})(),We=(()=>{class p{}return p.\u0275fac=function(t){return new(t||p)},p.\u0275mod=g.$C({type:p}),p.\u0275inj=g.G2t({imports:[[P.p_,P.xZ],P.xZ]}),p})()},94811:(Z,I,l)=>{l.d(I,{F:()=>te}),l(345);var g=l(54438),y=l(64905),u=l(5042),f=l(87951),v=l(12101),m=l(72463),C=l(19142),S=l(20537),b=l(43458),F={name:"center_template_pie_chart",init:u.lQ,dispose:function(){this._centerTemplateGroup.linkOff().dispose()},extenders:{_createHtmlStructure(){var n=(0,b.a1)(this._themeManager._font);this._centerTemplateGroup=this._renderer.g().attr({class:"dxc-hole-template"}).linkOn(this._renderer.root,"center-template").css(n).linkAppend()},_renderExtraElements(){this._requestChange(["CENTER_TEMPLATE"])}},members:{_renderCenterTemplate(){var n=this.option("centerTemplate"),s=this._centerTemplateGroup.clear();if(n){s.attr({visibility:"hidden"});var i=this._getCenter();this._getTemplate(n).render({model:this,container:s.element,onRendered:()=>{var r=s,d=r.getBBox();r.move(i.x-(d.x+d.width/2),i.y-(d.y+d.height/2)),r.attr({visibility:"visible"})}})}}},customize(n){n.addChange({code:"CENTER_TEMPLATE",handler:function(){this._renderCenterTemplate()},option:"centerTemplate"})}},B={pieChart:F,gauge:{name:"center_template_gauge",init:u.lQ,dispose:F.dispose,extenders:{_initCore(){this._createCenterTemplateGroup()},_renderContent(){var n=(0,b.a1)(this._themeManager._font);this._centerTemplateGroup.css(n),this._requestChange(["CENTER_TEMPLATE"])},_updateExtraElements(){this._requestChange(["CENTER_TEMPLATE"])}},members:{_renderCenterTemplate:F.members._renderCenterTemplate,_createCenterTemplateGroup(){this._centerTemplateGroup=this._renderer.g().attr({class:"dxg-hole-template"}).linkOn(this._renderer.root,"center-template").linkAppend()}},customize:F.customize}},G=l(76946),E=Number;function O(){this.setDomain(arguments[0],arguments[1]).setCodomain(arguments[2],arguments[3]).setInverted(!1)}O.prototype={constructor:O,setDomain:function(n,s){return this._domain1=E(n),this._domain2=E(s),this._domainDelta=this._domain2-this._domain1,this},setCodomain:function(n,s){return this._codomain1=E(n),this._codomain2=E(s),this._codomainDelta=this._codomain2-this._codomain1,this},setInverted(n){this.inverted=n},getDomain:function(){return[this._domain1,this._domain2]},getCodomain:function(){return[this._codomain1,this._codomain2]},getDomainStart:function(){return this._domain1},getDomainEnd:function(){return this._domain2},getCodomainStart:function(){return this._codomain1},getCodomainEnd:function(){return this._codomain2},getDomainRange:function(){return this._domainDelta},getCodomainRange:function(){return this._codomainDelta},translate:function(n){var s=(E(n)-this._domain1)/this._domainDelta;return this.inverted&&(s=1-s),0<=s&&s<=1?this._codomain1+s*this._codomainDelta:NaN},adjust:function(n){var s=(E(n)-this._domain1)/this._domainDelta,i=NaN;return s<0?i=this._domain1:s>1?i=this._domain2:0<=s&&s<=1&&(i=E(n)),i}};var L=l(99299),{states:U}=C.A,Y=C.A.pieSeriesSpacing,ne=U.normalMark,j=U.hoverMark,se=U.selectedMark,re=[U.resetItem,U.applyHover,U.applySelected,U.applySelected];function J(n,s){return{x:n.x,y:n.y-s}}function q(n,s){return n.getVisiblePoints().reduce((i,r)=>{var d=(0,b.n0)(r.middleAngle);return(d<=90||d>=270?i.right:i.left).push(r),i},s||{left:[],right:[]})}function X(n,s,i,r){var d;return i&&(n.left.reverse(),n.right.reverse()),d=L.q.resolveLabelOverlappingInOneDirection(n.left,r,!1,!1,s),L.q.resolveLabelOverlappingInOneDirection(n.right,r,!1,!1,s)||d}function ee(n){return(0,m.kf)(n)?n>1?n=1:n<0&&(n=0):n=void 0,n}var K=function(){function n(r,d){return r.filter(_=>_!==d)}var s=[],i={};return{queue(r){var x,d=r.getSizeGroup();s=n(s,x=r).concat(x),clearTimeout(i[d]),i[d]=setTimeout(()=>{var D,V,de,ie;D=d,V=s.filter(z=>z._isVisible()&&z.getSizeGroup()===D),de=Math.min.apply(null,V.map(z=>z.getSizeGroupLayout().radius)),ie=V.filter(z=>z.getSizeGroupLayout().radius===de),V.forEach(z=>z.render({force:!0,sizeGroupLayout:ie.length?ie[0].getSizeGroupLayout():{}}))})},remove(r){(s=n(s,r)).length||(i={})}}}(),$=L.c.inherit({_themeSection:"pie",_layoutManagerOptions(){return(0,f.X)(!0,{},this.callBase(),{piePercentage:ee(this._themeManager.getOptions("diameter")),minPiePercentage:ee(this._themeManager.getOptions("minDiameter"))})},_optionChangesMap:{diameter:"REINIT",minDiameter:"REINIT",sizeGroup:"REINIT"},_disposeCore(){K.remove(this),this.callBase()},_groupSeries(){var n,{series:s}=this;this._groupsData={groups:[{series:s,valueOptions:{valueType:"numeric"}}],argumentOptions:null===(n=s[0])||void 0===n?void 0:n.getOptions()}},getArgumentAxis:()=>null,_getValueAxis(){var n=(new O).setCodomain(360,0);return{getTranslator:()=>n,setBusinessRange(s){n.setDomain(s.min,s.max)}}},_populateBusinessRange(){this.series.map(n=>{var s=new G.Q;return s.addRange(n.getRangeData().val),n.getValueAxis().setBusinessRange(s),s})},_specialProcessSeries(){(0,v.__)(this.series,(n,s)=>{s.arrangePoints()})},_checkPaneName:()=>!0,_processSingleSeries(n){this.callBase(n),n.arrangePoints()},_handleSeriesDataUpdated(){var n=0;this.series.forEach(s=>{n=Math.max(s.getPointsCount(),n)}),this.series.forEach(s=>{s.setMaxPointsCount(n)}),this.callBase()},_getLegendOptions(n){var s=this.callBase(n),{legendData:i}=s;return i.argument=n.argument,i.argumentIndex=n.argumentIndex,i.points=[n],s},_getLegendTargets(){var n={};(this.series||[]).forEach(i=>{i.getPoints().forEach(r=>{var d=r.argument.valueOf(),_=i.getPointsByArg(d).indexOf(r),x=d.valueOf().toString()+_;n[x]=n[x]||[];var D=n[x].push(r);r.index=n[x][D-2]?n[x][D-2].index:Object.keys(n).length-1,r.argumentIndex=_})});var s=[];return(0,v.__)(n,(i,r)=>{r.forEach((d,_)=>{if(0!==_){var x=s[s.length-1];x.legendData.points.push(d),x.visible||(x.visible=d.isVisible())}else s.push(this._getLegendOptions(d))})}),s},_getLayoutTargets(){return[{canvas:this._canvas}]},_getLayoutSeries(n,s){var i,r=this._canvas,d=!1;return i=this.layoutManager.applyPieChartSeriesLayout(r,n,!0),n.forEach(_=>{_.correctPosition(i,r),d=_.drawLabelsWOPoints()||d}),d&&(i=this.layoutManager.applyPieChartSeriesLayout(r,n,s.hideLayoutLabels)),n.forEach(_=>{_.hideLabels()}),this._sizeGroupLayout={x:i.centerX,y:i.centerY,radius:i.radiusOuter,drawOptions:s},i},_getLayoutSeriesForEqualPies(n,s){var i=this._canvas,r=this.layoutManager.applyEqualPieChartLayout(n,s);return n.forEach(d=>{d.correctPosition(r,i),d.drawLabelsWOPoints()}),this.layoutManager.correctPieLabelRadius(n,r,i),r},_updateSeriesDimensions(n){var r,d,_,s=this._getVisibleSeries(),i=s.length,{sizeGroupLayout:x}=n;i&&(_=x?this._getLayoutSeriesForEqualPies(s,x):this._getLayoutSeries(s,n),d=(_.radiusOuter-_.radiusInner-Y*(i-1))/i,r=_.radiusInner,this._setGeometry(_),s.forEach(D=>{D.correctRadius({radiusInner:r,radiusOuter:r+d}),r+=d+Y}))},_renderSeries(n,s,i){if(this._calculateSeriesLayout(n,s),!n.sizeGroupLayout&&this.getSizeGroup())return K.queue(this),void this._clearCanvas();this._renderSeriesElements(n,i)},_getCenter(){return this._center},getInnerRadius(){return this._innerRadius},_getLegendCallBack(){var n=this._legend,s=this._getLegendTargets().map(i=>i.legendData);return i=>{s.forEach(r=>{var d=[],_=n.getActionCallback({index:r.id});this.series.forEach(x=>{var D=x.getPointsByKeys(r.argument,r.argumentIndex);d.push.apply(d,D)}),i&&i.argument===r.argument&&i.argumentIndex===r.argumentIndex&&d.push(i),_(function le(n){var s=ne;return n.forEach(i=>{var r,d=null===(r=i.series)||void 0===r?void 0:r.getOptions(),_=i.fullState;"none"===d?.hoverMode&&(_&=~j),"none"===d?.selectionMode&&(_&=~se),s|=_}),re[s]}(d))})}},_locateLabels(n){var i,r,s=0;do{r=this._adjustSeriesLabels("shift"===n),i=this._resolveLabelOverlapping(n)}while((i||r)&&++s<5)},_adjustSeriesLabels(n){return this.series.reduce((s,i)=>i.adjustLabels(n)||s,!1)},_applyExtraSettings:u.lQ,_resolveLabelOverlappingShift(){var n="anticlockwise"===this.option("segmentsDirection"),s=this.series.reduce((d,_)=>((d[_.getOptions().label.position]||d.outside).push(_),d),{inside:[],columns:[],outside:[]}),i=!1;return s.inside.length>0&&(i=X(s.inside.reduce((d,_)=>_.getVisiblePoints().reduce((D,N)=>(D.left.push(N),D),d),{left:[],right:[]}),J,n,this._canvas)||i),i=s.columns.reduce((d,_)=>X(q(_),J,n,this._canvas)||d,i),s.outside.length>0&&(i=X(s.outside.reduce((d,_)=>q(_,d),null),(d,_)=>(0,b.z1)(d,-_,this._center),n,this._canvas)||i),i},_setGeometry(n){var{centerX:s,centerY:i,radiusInner:r}=n;this._center={x:s,y:i},this._innerRadius=r},_disposeSeries(){this.callBase.apply(this,arguments),this._abstractSeries=null},_legendDataField:"point",_legendItemTextField:"argument",_applyPointMarkersAutoHiding:u.lQ,_renderTrackers:u.lQ,_trackerType:"PieTracker",_createScrollBar:u.lQ,_updateAxesLayout:u.lQ,_applyClipRects:u.lQ,_appendAdditionalSeriesGroups:u.lQ,_prepareToRender:u.lQ,_isLegendInside:u.lQ,_renderAxes:u.lQ,_shrinkAxes:u.lQ,_isRotated:u.lQ,_seriesPopulatedHandlerCore:u.lQ,_reinitAxes:u.lQ,_correctAxes:u.lQ,_getExtraOptions(){return{startAngle:this.option("startAngle"),innerRadius:this.option("innerRadius"),segmentsDirection:this.option("segmentsDirection"),type:this.option("type")}},getSizeGroup(){return this._themeManager.getOptions("sizeGroup")},getSizeGroupLayout(){return this._sizeGroupLayout||{}}});(0,v.__)(["startAngle","innerRadius","segmentsDirection","type"],(n,s)=>{$.prototype._optionChangesMap[s]="REFRESH_SERIES_DATA_INIT"}),$.addPlugin(B.pieChart),$.addPlugin(S.N.core),$.addPlugin(S.N.pieChart),(0,y.A)("dxPieChart",$);var M=l(87283),h=l(31837);let te=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=g.$C({type:n}),n.\u0275inj=g.G2t({imports:[[h.uvP,h.YLo,h.DlA,h.A1g,h.r2Z,h.lPC,h.cug,h.tXi,h.XWi,h.REv,h.lWu,h.Af1,h.uE7,h.y7y,h.tML,h.Pxf,h.$jZ,h.iVO,h.uIe,h.F1M,h.Yh3,h.sVF,h.YkV,h.FXg,h.xOT,h.hU2,h.hzo,h.Vku,M.p_,M.xZ],h.uvP,h.YLo,h.DlA,h.A1g,h.r2Z,h.lPC,h.cug,h.tXi,h.XWi,h.REv,h.lWu,h.Af1,h.uE7,h.y7y,h.tML,h.Pxf,h.$jZ,h.iVO,h.uIe,h.F1M,h.Yh3,h.sVF,h.YkV,h.FXg,h.xOT,h.hU2,h.hzo,h.Vku,M.xZ]}),n})()}}]); \ No newline at end of file diff --git a/ClientApp/staff-db-ui/dist/239.8ff4ba6fe30b27c5.js b/ClientApp/staff-db-ui/dist/239.8ff4ba6fe30b27c5.js new file mode 100644 index 0000000..36ed1ad --- /dev/null +++ b/ClientApp/staff-db-ui/dist/239.8ff4ba6fe30b27c5.js @@ -0,0 +1 @@ +(self.webpackChunkstaffdb=self.webpackChunkstaffdb||[]).push([[239],{7239:function(an){an.exports=function(){"use strict";var ce=function(e,A){return(ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var B in r)Object.prototype.hasOwnProperty.call(r,B)&&(t[B]=r[B])})(e,A)};function q(e,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function t(){this.constructor=e}ce(e,A),e.prototype=null===A?Object.create(A):(t.prototype=A.prototype,new t)}var ir=function(){return ir=Object.assign||function(A){for(var t,r=1,B=arguments.length;r0&&n[n.length-1])&&(6===o[0]||2===o[0])){t=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]=55296&&B<=56319&&t>10),s%1024+56320),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qn=typeof Uint8Array>"u"?[]:new Uint8Array(256),fe=0;fe<64;fe++)Qn[nt.charCodeAt(fe)]=fe;for(var st="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kA=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ue=0;Ue<64;Ue++)kA[st.charCodeAt(Ue)]=Ue;for(var it=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},vn=function(){function e(A,t,r,B,n,s){this.initialValue=A,this.errorValue=t,this.highStart=r,this.highValueIndex=B,this.index=n,this.data=s}return e.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return this.data[t=((t=this.index[A>>5])<<2)+(31&A)];if(A<=65535)return this.data[t=((t=this.index[2048+(A-55296>>5)])<<2)+(31&A)];if(A>11)],this.data[t=((t=this.index[t+=A>>5&63])<<2)+(31&A)];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yn=typeof Uint8Array>"u"?[]:new Uint8Array(256),Fe=0;Fe<64;Fe++)yn[ot.charCodeAt(Fe)]=Fe;var t,r,B,s,i,CA=10,cr=13,YA=15,he=17,WA=18,xn=19,ft=20,ur=21,ZA=22,TA=24,j=25,qA=26,jA=27,SA=28,vA=30,de=32,Ee=33,fr=34,Ur=35,zA=37,hr=38,He=39,pe=40,Ut=42,Mn=[9001,65288],I="\xd7",Er=(t=function(e){var r,n,s,i,a,A=.75*e.length,t=e.length,B=0;"="===e[e.length-1]&&(A--,"="===e[e.length-2]&&A--);var o=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),Q=Array.isArray(o)?o:new Uint8Array(o);for(r=0;r>4,Q[B++]=(15&s)<<4|i>>2,Q[B++]=(3&i)<<6|63&a;return o}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),r=Array.isArray(t)?function(e){for(var A=e.length,t=[],r=0;r0;){var i=r[--n];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var a=t;a<=r.length;){var s;if((s=r[++a])===A)return!0;if(s!==CA)break}if(i!==CA)break}return!1},Ht=function(e,A){for(var t=e;t>=0;){var r=A[t];if(r!==CA)return r;t--}return 0},Nn=function(e,A,t,r,B){if(0===t[r])return I;var n=r-1;if(Array.isArray(B)&&!0===B[n])return I;var s=n-1,i=n+1,a=A[n],o=s>=0?A[s]:0,Q=A[i];if(2===a&&3===Q)return I;if(-1!==Hr.indexOf(a))return"!";if(-1!==Hr.indexOf(Q)||-1!==ht.indexOf(Q))return I;if(8===Ht(n,A))return"\xf7";if(11===Er.get(e[n])||(a===de||a===Ee)&&11===Er.get(e[i])||7===a||7===Q||9===a||-1===[CA,cr,YA].indexOf(a)&&9===Q||-1!==[he,WA,xn,TA,SA].indexOf(Q)||Ht(n,A)===ZA||pr(23,ZA,n,A)||pr([he,WA],ur,n,A)||pr(12,12,n,A))return I;if(a===CA)return"\xf7";if(23===a||23===Q)return I;if(16===Q||16===a)return"\xf7";if(-1!==[cr,YA,ur].indexOf(Q)||14===a||36===o&&-1!==Rn.indexOf(a)||a===SA&&36===Q||Q===ft||-1!==oA.indexOf(Q)&&a===j||-1!==oA.indexOf(a)&&Q===j||a===jA&&-1!==[zA,de,Ee].indexOf(Q)||-1!==[zA,de,Ee].indexOf(a)&&Q===qA||-1!==oA.indexOf(a)&&-1!==dt.indexOf(Q)||-1!==dt.indexOf(a)&&-1!==oA.indexOf(Q)||-1!==[jA,qA].indexOf(a)&&(Q===j||-1!==[ZA,YA].indexOf(Q)&&A[i+1]===j)||-1!==[ZA,YA].indexOf(a)&&Q===j||a===j&&-1!==[j,SA,TA].indexOf(Q))return I;if(-1!==[j,SA,TA,he,WA].indexOf(Q))for(var g=n;g>=0;){if((w=A[g])===j)return I;if(-1===[SA,TA].indexOf(w))break;g--}if(-1!==[jA,qA].indexOf(Q))for(g=-1!==[he,WA].indexOf(a)?s:n;g>=0;){var w;if((w=A[g])===j)return I;if(-1===[SA,TA].indexOf(w))break;g--}if(hr===a&&-1!==[hr,He,fr,Ur].indexOf(Q)||-1!==[He,fr].indexOf(a)&&-1!==[He,pe].indexOf(Q)||-1!==[pe,Ur].indexOf(a)&&Q===pe||-1!==Et.indexOf(a)&&-1!==[ft,qA].indexOf(Q)||-1!==Et.indexOf(Q)&&a===jA||-1!==oA.indexOf(a)&&-1!==oA.indexOf(Q)||a===TA&&-1!==oA.indexOf(Q)||-1!==oA.concat(j).indexOf(a)&&Q===ZA&&-1===Mn.indexOf(e[i])||-1!==oA.concat(j).indexOf(Q)&&a===WA)return I;if(41===a&&41===Q){for(var f=t[n],c=1;f>0&&41===A[--f];)c++;if(c%2!=0)return I}return a===de&&Q===Ee?I:"\xf7"},Xn=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var t=function(e,A){void 0===A&&(A="strict");var t=[],r=[],B=[];return e.forEach(function(n,s){var i=Er.get(n);if(i>50?(B.push(!0),i-=50):B.push(!1),-1!==["normal","auto","loose"].indexOf(A)&&-1!==[8208,8211,12316,12448].indexOf(n))return r.push(s),t.push(16);if(4===i||11===i){if(0===s)return r.push(s),t.push(vA);var a=t[s-1];return-1===Gn.indexOf(a)?(r.push(r[s-1]),t.push(a)):(r.push(s),t.push(vA))}return r.push(s),31===i?t.push("strict"===A?ur:zA):i===Ut||29===i?t.push(vA):43===i?t.push(n>=131072&&n<=196605||n>=196608&&n<=262141?zA:vA):void t.push(i)}),[r,t,B]}(e,A.lineBreak),r=t[0],B=t[1],n=t[2];return("break-all"===A.wordBreak||"break-word"===A.wordBreak)&&(B=B.map(function(i){return-1!==[j,vA,Ut].indexOf(i)?zA:i})),[r,B,"keep-all"===A.wordBreak?n.map(function(i,a){return i&&e[a]>=19968&&e[a]<=40959}):void 0]},_n=function(){function e(A,t,r,B){this.codePoints=A,this.required="!"===t,this.start=r,this.end=B}return e.prototype.slice=function(){return T.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),k=45,J=function(e){return e>=48&&e<=57},OA=function(e){return J(e)||e>=65&&e<=70||e>=97&&e<=102},De=function(e){return 10===e||9===e||32===e},be=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},Tt=function(e){return be(e)||J(e)||e===k},ms=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},uA=function(e,A){return 92===e&&10!==A},xe=function(e,A,t){return e===k?be(A)||uA(A,t):!!be(e)||!(92!==e||!uA(e,A))},vr=function(e,A,t){return 43===e||e===k?!!J(A)||46===A&&J(t):J(46===e?A:e)},Ls=function(e){var A=0,t=1;(43===e[A]||e[A]===k)&&(e[A]===k&&(t=-1),A++);for(var r=[];J(e[A]);)r.push(e[A++]);var B=r.length?parseInt(T.apply(void 0,r),10):0;46===e[A]&&A++;for(var n=[];J(e[A]);)n.push(e[A++]);var s=n.length,i=s?parseInt(T.apply(void 0,n),10):0;(69===e[A]||101===e[A])&&A++;var a=1;(43===e[A]||e[A]===k)&&(e[A]===k&&(a=-1),A++);for(var o=[];J(e[A]);)o.push(e[A++]);var Q=o.length?parseInt(T.apply(void 0,o),10):0;return t*(B+i*Math.pow(10,-s))*Math.pow(10,a*Q)},Ds={type:2},bs={type:3},xs={type:4},Ts={type:13},Ss={type:8},Os={type:21},Ms={type:9},Gs={type:10},Rs={type:11},Vs={type:12},Ns={type:14},Te={type:23},Xs={type:1},_s={type:25},Js={type:24},Ps={type:26},ks={type:27},Ys={type:28},Ws={type:29},Zs={type:31},yr={type:32},St=function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(le(A))},e.prototype.read=function(){for(var A=[],t=this.consumeToken();t!==yr;)A.push(t),t=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),B=this.peekCodePoint(2);if(Tt(t)||uA(r,B)){var n=xe(t,r,B)?2:1;return{type:5,value:this.consumeName(),flags:n}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ts;break;case 39:return this.consumeStringToken(39);case 40:return Ds;case 41:return bs;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ns;break;case 43:if(vr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return xs;case k:var i=A,a=this.peekCodePoint(0),o=this.peekCodePoint(1);if(vr(i,a,o))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(xe(i,a,o))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(a===k&&62===o)return this.consumeCodePoint(),this.consumeCodePoint(),Js;break;case 46:if(vr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var Q=this.consumeCodePoint();if(42===Q&&47===(Q=this.consumeCodePoint()))return this.consumeToken();if(-1===Q)return this.consumeToken()}break;case 58:return Ps;case 59:return ks;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===k&&this.peekCodePoint(2)===k)return this.consumeCodePoint(),this.consumeCodePoint(),_s;break;case 64:var g=this.peekCodePoint(0),w=this.peekCodePoint(1),f=this.peekCodePoint(2);if(xe(g,w,f))return{type:7,value:this.consumeName()};break;case 91:return Ys;case 92:if(uA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return Ws;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ss;break;case 123:return Rs;case 125:return Vs;case 117:case 85:var c=this.peekCodePoint(0),C=this.peekCodePoint(1);return 43===c&&(OA(C)||63===C)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ms;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),Os;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Gs;break;case-1:return yr}return De(A)?(this.consumeWhiteSpace(),Zs):J(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):be(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:T(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],t=this.consumeCodePoint();OA(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();for(var r=!1;63===t&&A.length<6;)A.push(t),t=this.consumeCodePoint(),r=!0;if(r)return{type:30,start:parseInt(T.apply(void 0,A.map(function(a){return 63===a?48:a})),16),end:parseInt(T.apply(void 0,A.map(function(a){return 63===a?70:a})),16)};var s=parseInt(T.apply(void 0,A),16);if(this.peekCodePoint(0)===k&&OA(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var i=[];OA(t)&&i.length<6;)i.push(t),t=this.consumeCodePoint();return{type:30,start:s,end:parseInt(T.apply(void 0,i),16)}}return{type:30,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var r=this.consumeStringToken(this.consumeCodePoint());return 0===r.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),Te)}for(;;){var B=this.consumeCodePoint();if(-1===B||41===B)return{type:22,value:T.apply(void 0,A)};if(De(B))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:T.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Te);if(34===B||39===B||40===B||ms(B))return this.consumeBadUrlRemnants(),Te;if(92===B){if(!uA(B,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Te;A.push(this.consumeEscapedCodePoint())}else A.push(B)}},e.prototype.consumeWhiteSpace=function(){for(;De(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||-1===A)return;uA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var r="";A>0;){var B=Math.min(5e4,A);r+=T.apply(void 0,this._value.splice(0,B)),A-=B}return this._value.shift(),r},e.prototype.consumeStringToken=function(A){for(var t="",r=0;;){var B=this._value[r];if(-1===B||void 0===B||B===A)return{type:0,value:t+=this.consumeStringSlice(r)};if(10===B)return this._value.splice(0,r),Xs;if(92===B){var n=this._value[r+1];-1!==n&&void 0!==n&&(10===n?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):uA(B,n)&&(t+=this.consumeStringSlice(r),t+=T(this.consumeEscapedCodePoint()),r=-1))}r++}},e.prototype.consumeNumber=function(){var A=[],t=4,r=this.peekCodePoint(0);for((43===r||r===k)&&A.push(this.consumeCodePoint());J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);var B=this.peekCodePoint(1);if(46===r&&J(B))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),B=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((69===r||101===r)&&((43===B||B===k)&&J(n)||J(B)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[Ls(A),t]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),t=A[0],r=A[1],B=this.peekCodePoint(0),n=this.peekCodePoint(1),s=this.peekCodePoint(2);return xe(B,n,s)?{type:15,number:t,flags:r,unit:this.consumeName()}:37===B?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(OA(A)){for(var t=T(A);OA(this.peekCodePoint(0))&&t.length<6;)t+=T(this.consumeCodePoint());De(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return 0===r||function(e){return e>=55296&&e<=57343}(r)||r>1114111?65533:r}return-1===A?65533:A},e.prototype.consumeName=function(){for(var A="";;){var t=this.consumeCodePoint();if(Tt(t))A+=T(t);else{if(!uA(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),A;A+=T(this.consumeEscapedCodePoint())}}},e}(),Ot=function(){function e(A){this._tokens=A}return e.create=function(A){var t=new St;return t.write(A),new e(t.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var t=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var t=this.consumeComponentValue();if(32===t.type)return A;A.push(t),A.push()}},e.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},e.prototype.consumeSimpleBlock=function(A){for(var t={type:A,values:[]},r=this.consumeToken();;){if(32===r.type||js(r,A))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var t={name:A.value,values:[],type:18};;){var r=this.consumeToken();if(32===r.type||3===r.type)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?yr:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e}(),Be=function(e){return 15===e.type},MA=function(e){return 17===e.type},L=function(e){return 20===e.type},qs=function(e){return 0===e.type},Kr=function(e,A){return L(e)&&e.value===A},Mt=function(e){return 31!==e.type},GA=function(e){return 31!==e.type&&4!==e.type},nA=function(e){var A=[],t=[];return e.forEach(function(r){if(4===r.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return A.push(t),void(t=[])}31!==r.type&&t.push(r)}),t.length&&A.push(t),A},js=function(e,A){return 11===A&&12===e.type||28===A&&29===e.type||2===A&&3===e.type},lA=function(e){return 17===e.type||15===e.type},O=function(e){return 16===e.type||lA(e)},Gt=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},V={type:17,number:0,flags:4},mr={type:16,number:50,flags:4},fA={type:16,number:100,flags:4},ne=function(e,A,t){var r=e[0],B=e[1];return[b(r,A),b(typeof B<"u"?B:r,t)]},b=function(e,A){if(16===e.type)return e.number/100*A;if(Be(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},Se_parse=function(e,A){if(15===A.type)switch(A.unit){case"deg":return Math.PI*A.number/180;case"grad":return Math.PI/200*A.number;case"rad":return A.number;case"turn":return 2*Math.PI*A.number}throw new Error("Unsupported angle type")},_t=function(e){return 15===e.type&&("deg"===e.unit||"grad"===e.unit||"rad"===e.unit||"turn"===e.unit)},Jt=function(e){switch(e.filter(L).map(function(t){return t.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[V,V];case"to top":case"bottom":return $(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[V,fA];case"to right":case"left":return $(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[fA,fA];case"to bottom":case"top":return $(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[fA,V];case"to left":case"right":return $(270)}return 0},$=function(e){return Math.PI*e/180},UA_parse=function(e,A){if(18===A.type){var t=zs[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return t(e,A.values)}if(5===A.type){if(3===A.value.length){var r=A.value.substring(0,1),B=A.value.substring(1,2),n=A.value.substring(2,3);return hA(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),1)}if(4===A.value.length){r=A.value.substring(0,1),B=A.value.substring(1,2),n=A.value.substring(2,3);var s=A.value.substring(3,4);return hA(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),parseInt(s+s,16)/255)}if(6===A.value.length)return r=A.value.substring(0,2),B=A.value.substring(2,4),n=A.value.substring(4,6),hA(parseInt(r,16),parseInt(B,16),parseInt(n,16),1);if(8===A.value.length)return r=A.value.substring(0,2),B=A.value.substring(2,4),n=A.value.substring(4,6),s=A.value.substring(6,8),hA(parseInt(r,16),parseInt(B,16),parseInt(n,16),parseInt(s,16)/255)}if(20===A.type){var i=QA[A.value.toUpperCase()];if(typeof i<"u")return i}return QA.TRANSPARENT},FA=function(e){return!(255&e)},R=function(e){var A=255&e,t=255&e>>8,r=255&e>>16,B=255&e>>24;return A<255?"rgba("+B+","+r+","+t+","+A/255+")":"rgb("+B+","+r+","+t+")"},hA=function(e,A,t,r){return(e<<24|A<<16|t<<8|Math.round(255*r))>>>0},Pt=function(e,A){if(17===e.type)return e.number;if(16===e.type){var t=3===A?1:255;return 3===A?e.number/100*t:Math.round(e.number/100*t)}return 0},kt=function(e,A){var t=A.filter(GA);if(3===t.length){var r=t.map(Pt);return hA(r[0],r[1],r[2],1)}if(4===t.length){var i=t.map(Pt);return hA(i[0],i[1],i[2],i[3])}return 0};function Lr(e,A,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(A-e)*t*6+e:t<.5?A:t<2/3?6*(A-e)*(2/3-t)+e:e}var Yt=function(e,A){var t=A.filter(GA),r=t[0],B=t[1],n=t[2],s=t[3],i=(17===r.type?$(r.number):Se_parse(e,r))/(2*Math.PI),a=O(B)?B.number/100:0,o=O(n)?n.number/100:0,Q=typeof s<"u"&&O(s)?b(s,1):1;if(0===a)return hA(255*o,255*o,255*o,1);var g=o<=.5?o*(a+1):o+a-o*a,w=2*o-g,f=Lr(w,g,i+1/3),c=Lr(w,g,i),C=Lr(w,g,i-1/3);return hA(255*f,255*c,255*C,Q)},zs={hsl:Yt,hsla:Yt,rgb:kt,rgba:kt},se=function(e,A){return UA_parse(e,Ot.create(A).parseComponentValue())},QA={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},$s={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(L(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Aa={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Oe=function(e,A){var t=UA_parse(e,A[0]),r=A[1];return r&&O(r)?{color:t,stop:r}:{color:t,stop:null}},Wt=function(e,A){var t=e[0],r=e[e.length-1];null===t.stop&&(t.stop=V),null===r.stop&&(r.stop=fA);for(var B=[],n=0,s=0;sn?a:n),n=a}else B.push(null)}var o=null;for(s=0;ss.optimumDistance)?{optimumCorner:i,optimumDistance:Q}:s},{optimumDistance:B?1/0:-1/0,optimumCorner:null}).optimumCorner},Me=function(e,A){var t=$(180),r=[];return nA(A).forEach(function(B,n){if(0===n){var s=B[0];if(20===s.type&&-1!==["top","left","right","bottom"].indexOf(s.value))return void(t=Jt(B));if(_t(s))return void(t=(Se_parse(e,s)+$(270))%$(360))}var i=Oe(e,B);r.push(i)}),{angle:t,stops:r,type:1}},qt="closest-side",jt="farthest-side",zt="closest-corner",$t="farthest-corner",eB="ellipse",tB="contain",Ge=function(e,A){var t=0,r=3,B=[],n=[];return nA(A).forEach(function(s,i){var a=!0;if(0===i?a=s.reduce(function(Q,g){if(L(g))switch(g.value){case"center":return n.push(mr),!1;case"top":case"left":return n.push(V),!1;case"right":case"bottom":return n.push(fA),!1}else if(O(g)||lA(g))return n.push(g),!1;return Q},a):1===i&&(a=s.reduce(function(Q,g){if(L(g))switch(g.value){case"circle":return t=0,!1;case eB:return t=1,!1;case tB:case qt:return r=0,!1;case jt:return r=1,!1;case zt:return r=2,!1;case"cover":case $t:return r=3,!1}else if(lA(g)||O(g))return Array.isArray(r)||(r=[]),r.push(g),!1;return Q},a)),a){var o=Oe(e,s);B.push(o)}}),{size:r,shape:t,stops:B,position:n,type:2}},Dr_parse=function(e,A){if(22===A.type){var t={url:A.value,type:0};return e.cache.addImage(A.value),t}if(18===A.type){var r=BB[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return r(e,A.values)}throw new Error("Unsupported image type "+A.type)};for(var BB={"linear-gradient":function(e,A){var t=$(180),r=[];return nA(A).forEach(function(B,n){if(0===n){var s=B[0];if(20===s.type&&"to"===s.value)return void(t=Jt(B));if(_t(s))return void(t=Se_parse(e,s))}var i=Oe(e,B);r.push(i)}),{angle:t,stops:r,type:1}},"-moz-linear-gradient":Me,"-ms-linear-gradient":Me,"-o-linear-gradient":Me,"-webkit-linear-gradient":Me,"radial-gradient":function(e,A){var t=0,r=3,B=[],n=[];return nA(A).forEach(function(s,i){var a=!0;if(0===i){var o=!1;a=s.reduce(function(g,w){if(o)if(L(w))switch(w.value){case"center":return n.push(mr),g;case"top":case"left":return n.push(V),g;case"right":case"bottom":return n.push(fA),g}else(O(w)||lA(w))&&n.push(w);else if(L(w))switch(w.value){case"circle":return t=0,!1;case eB:return t=1,!1;case"at":return o=!0,!1;case qt:return r=0,!1;case"cover":case jt:return r=1,!1;case tB:case zt:return r=2,!1;case $t:return r=3,!1}else if(lA(w)||O(w))return Array.isArray(r)||(r=[]),r.push(w),!1;return g},a)}if(a){var Q=Oe(e,s);B.push(Q)}}),{size:r,shape:t,stops:B,position:n,type:2}},"-moz-radial-gradient":Ge,"-ms-radial-gradient":Ge,"-o-radial-gradient":Ge,"-webkit-radial-gradient":Ge,"-webkit-gradient":function(e,A){var t=$(180),r=[],B=1;return nA(A).forEach(function(a,o){var Q=a[0];if(0===o){if(L(Q)&&"linear"===Q.value)return void(B=1);if(L(Q)&&"radial"===Q.value)return void(B=2)}if(18===Q.type)if("from"===Q.name){var g=UA_parse(e,Q.values[0]);r.push({stop:V,color:g})}else if("to"===Q.name)g=UA_parse(e,Q.values[0]),r.push({stop:fA,color:g});else if("color-stop"===Q.name){var w=Q.values.filter(GA);if(2===w.length){g=UA_parse(e,w[1]);var f=w[0];MA(f)&&r.push({stop:{type:16,number:100*f.number,flags:f.flags},color:g})}}}),1===B?{angle:(t+$(180))%$(360),stops:r,type:B}:{size:3,shape:0,stops:r,position:[],type:B}}},Qa={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(0===A.length)return[];var t=A[0];return 20===t.type&&"none"===t.value?[]:A.filter(function(r){return GA(r)&&function oa(e){return!(20===e.type&&"none"===e.value||18===e.type&&!BB[e.name])}(r)}).map(function(r){return Dr_parse(e,r)})}},ga={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(L(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},wa={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return nA(A).map(function(t){return t.filter(O)}).map(Gt)}},ca={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return nA(A).map(function(t){return t.filter(L).map(function(r){return r.value}).join(" ")}).map(Ca)}},Ca=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},ae=function(e){return e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover",e}(ae||{}),ua={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return nA(A).map(function(t){return t.filter(la)})}},la=function(e){return L(e)||O(e)},Re=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},fa=Re("top"),Ua=Re("right"),Fa=Re("bottom"),ha=Re("left"),Ve=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,t){return Gt(t.filter(O))}}},da=Ve("top-left"),Ea=Ve("top-right"),Ha=Ve("bottom-right"),pa=Ve("bottom-left"),Ne=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ia=Ne("top"),va=Ne("right"),ya=Ne("bottom"),Ka=Ne("left"),Xe=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return Be(t)?t.number:0}}},ma=Xe("top"),La=Xe("right"),Da=Xe("bottom"),ba=Xe("left"),xa={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ta={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){return"rtl"===A?1:0}},Sa={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(L).reduce(function(t,r){return t|Oa(r.value)},0)}},Oa=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Ma={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ga={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return 20===A.type&&"normal"===A.value?0:17===A.type||15===A.type?A.number:0}},br=function(e){return e.NORMAL="normal",e.STRICT="strict",e}(br||{}),Ra={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return"strict"===A?br.STRICT:br.NORMAL}},Va={name:"line-height",initialValue:"normal",prefix:!1,type:4},nB=function(e,A){return L(e)&&"normal"===e.value?1.2*A:17===e.type?A*e.number:O(e)?b(e,A):A},Na={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return 20===A.type&&"none"===A.value?null:Dr_parse(e,A)}},Xa={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){return"inside"===A?0:1}},xr={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},_e=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},_a=_e("top"),Ja=_e("right"),Pa=_e("bottom"),ka=_e("left"),Ya={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(L).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Wa={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return"break-word"===A?"break-word":"normal"}},Je=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Za=Je("top"),qa=Je("right"),ja=Je("bottom"),za=Je("left"),$a={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Ai={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},ei={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return 1===A.length&&Kr(A[0],"none")?[]:nA(A).map(function(t){for(var r={color:QA.TRANSPARENT,offsetX:V,offsetY:V,blur:V},B=0,n=0;n"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return t(A.values)}return null}},si={matrix:function(e){var A=e.filter(function(t){return 17===t.type}).map(function(t){return t.number});return 6===A.length?A:null},matrix3d:function(e){var A=e.filter(function(a){return 17===a.type}).map(function(a){return a.number});return 16===A.length?[A[0],A[1],A[4],A[5],A[12],A[13]]:null}},sB={type:16,number:50,flags:4},ai=[sB,sB],ii={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var t=A.filter(O);return 2!==t.length?ai:[t[0],t[1]]}},oi={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;default:return 0}}},Pe=function(e){return e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all",e}(Pe||{}),Qi={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return Pe.BREAK_ALL;case"keep-all":return Pe.KEEP_ALL;default:return Pe.NORMAL}}},gi={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(20===A.type)return{auto:!0,order:0};if(MA(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},aB={name:"time",parse:function(e,A){if(15===A.type)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},wi={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return MA(A)?A.number:1}},ci={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ci={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(L).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return 0!==t})}},ui={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var t=[],r=[];return A.forEach(function(B){switch(B.type){case 20:case 0:t.push(B.value);break;case 17:t.push(B.number.toString());break;case 4:r.push(t.join(" ")),t.length=0}}),t.length&&r.push(t.join(" ")),r.map(function(B){return-1===B.indexOf(" ")?B:"'"+B+"'"})}},li={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fi={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){return MA(A)?A.number:L(A)&&"bold"===A.value?700:400}},Ui={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(L).map(function(t){return t.value})}},Fi={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},G=function(e,A){return!!(e&A)},hi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(0===A.length)return[];var t=A[0];return 20===t.type&&"none"===t.value?[]:A}},di={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(0===A.length)return null;var t=A[0];if(20===t.type&&"none"===t.value)return null;for(var r=[],B=A.filter(Mt),n=0;n1?1:0],this.overflowWrap=U(A,Wa,t.overflowWrap),this.paddingTop=U(A,Za,t.paddingTop),this.paddingRight=U(A,qa,t.paddingRight),this.paddingBottom=U(A,ja,t.paddingBottom),this.paddingLeft=U(A,za,t.paddingLeft),this.paintOrder=U(A,vi,t.paintOrder),this.position=U(A,Ai,t.position),this.textAlign=U(A,$a,t.textAlign),this.textDecorationColor=U(A,ci,null!==(r=t.textDecorationColor)&&void 0!==r?r:t.color),this.textDecorationLine=U(A,Ci,null!==(B=t.textDecorationLine)&&void 0!==B?B:t.textDecoration),this.textShadow=U(A,ei,t.textShadow),this.textTransform=U(A,ri,t.textTransform),this.transform=U(A,ti,t.transform),this.transformOrigin=U(A,ii,t.transformOrigin),this.visibility=U(A,oi,t.visibility),this.webkitTextStrokeColor=U(A,yi,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=U(A,Ki,t.webkitTextStrokeWidth),this.wordBreak=U(A,Qi,t.wordBreak),this.zIndex=U(A,gi,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return FA(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return G(this.display,4)||G(this.display,33554432)||G(this.display,268435456)||G(this.display,536870912)||G(this.display,67108864)||G(this.display,134217728)},e}(),Li=function(){return function e(A,t){this.content=U(A,hi,t.content),this.quotes=U(A,pi,t.quotes)}}(),oB=function(){return function e(A,t){this.counterIncrement=U(A,di,t.counterIncrement),this.counterReset=U(A,Ei,t.counterReset)}}(),U=function(e,A,t){var r=new St,B=null!==t&&typeof t<"u"?t.toString():A.initialValue;r.write(B);var n=new Ot(r.read());switch(A.type){case 2:var s=n.parseComponentValue();return A.parse(e,L(s)?s.value:A.initialValue);case 0:return A.parse(e,n.parseComponentValue());case 1:return A.parse(e,n.parseComponentValues());case 4:return n.parseComponentValue();case 3:switch(A.format){case"angle":return Se_parse(e,n.parseComponentValue());case"color":return UA_parse(e,n.parseComponentValue());case"image":return Dr_parse(e,n.parseComponentValue());case"length":var i=n.parseComponentValue();return lA(i)?i:V;case"length-percentage":var a=n.parseComponentValue();return O(a)?a:V;case"time":return aB.parse(e,n.parseComponentValue())}}},Tr=function(e,A){var t=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(e);return 1===t||A===t},sA=function(){return function e(A,t){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Tr(t,3),this.styles=new mi(A,window.getComputedStyle(t,null)),Wr(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=ue(this.context,t),Tr(t,4)&&(this.flags|=16)}}(),QB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie=typeof Uint8Array>"u"?[]:new Uint8Array(256),ke=0;ke<64;ke++)ie[QB.charCodeAt(ke)]=ke;for(var wB=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},Zi=function(){function e(A,t,r,B,n,s){this.initialValue=A,this.errorValue=t,this.highStart=r,this.highValueIndex=B,this.index=n,this.data=s}return e.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return this.data[t=((t=this.index[A>>5])<<2)+(31&A)];if(A<=65535)return this.data[t=((t=this.index[2048+(A-55296>>5)])<<2)+(31&A)];if(A>11)],this.data[t=((t=this.index[t+=A>>5&63])<<2)+(31&A)];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),cB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qi=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ye=0;Ye<64;Ye++)qi[cB.charCodeAt(Ye)]=Ye;var lB=8,Vr=9,fB=11,UB=12,Ao=function(){for(var e=[],A=0;A>10),s%1024+56320),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},eo=function(e,A){var t=function(e){var r,n,s,i,a,A=.75*e.length,t=e.length,B=0;"="===e[e.length-1]&&(A--,"="===e[e.length-2]&&A--);var o=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),Q=Array.isArray(o)?o:new Uint8Array(o);for(r=0;r>4,Q[B++]=(15&s)<<4|i>>2,Q[B++]=(3&i)<<6|63&a;return o}(e),r=Array.isArray(t)?function(e){for(var A=e.length,t=[],r=0;r=55296&&B<=56319&&t=t)return{done:!0,value:null};for(var s="\xd7";rs.x||Q.y>s.y;return s=Q,0===o||g});return e.body.removeChild(A),i}(document);return Object.defineProperty(N,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var A=new Image,t=e.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;A.src="data:image/svg+xml,";try{r.drawImage(A,0,0),t.toDataURL()}catch{return!1}return!0}(document);return Object.defineProperty(N,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var A=e.createElement("canvas"),t=100;A.width=t,A.height=t;var r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var B=new Image,n=A.toDataURL();B.src=n;var s=Jr(t,t,0,0,B);return r.fillStyle="red",r.fillRect(0,0,t,t),EB(s).then(function(i){r.drawImage(i,0,0);var a=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var o=e.createElement("div");return o.style.backgroundImage="url("+n+")",o.style.height=t+"px",dB(a)?EB(Jr(t,t,0,0,o)):Promise.reject(!1)}).then(function(i){return r.drawImage(i,0,0),dB(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(N,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=typeof(new Image).crossOrigin<"u";return Object.defineProperty(N,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(N,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(N,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(N,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},oe=function(){return function e(A,t){this.text=A,this.bounds=t}}(),co=function(e,A){var t=A.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(A.cloneNode(!0));var B=A.parentNode;if(B){B.replaceChild(r,A);var n=ue(e,r);return r.firstChild&&B.replaceChild(r.firstChild,r),n}}return iA.EMPTY},HB=function(e,A,t){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var B=r.createRange();return B.setStart(e,A),B.setEnd(e,A+t),B},Pr=function(e){if(N.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(t){return t.segment})}return function(e){for(var r,A=Bo(e),t=[];!(r=A.next()).done;)r.value&&t.push(r.value.slice());return t}(e)},uo=function(e,A){return 0!==A.letterSpacing?Pr(e):function(e,A){if(N.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return fo(e,A)}(e,A)},lo=[32,160,4961,65792,65793,4153,4241],fo=function(e,A){for(var B,t=function(e,A){var t=le(e),r=Xn(t,A),B=r[0],n=r[1],s=r[2],i=t.length,a=0,o=0;return{next:function(){if(o>=i)return{done:!0,value:null};for(var Q=I;o0)if(N.SUPPORT_RANGE_BOUNDS){var a=HB(r,s,i.length).getClientRects();if(a.length>1){var o=Pr(i),Q=0;o.forEach(function(w){n.push(new oe(w,iA.fromDOMRectList(e,HB(r,Q+s,w.length).getClientRects()))),Q+=w.length})}else n.push(new oe(i,iA.fromDOMRectList(e,a)))}else{var g=r.splitText(i.length);n.push(new oe(i,co(e,r))),r=g}else N.SUPPORT_RANGE_BOUNDS||(r=r.splitText(i.length));s+=i.length}),n}(A,this.text,r,t)}}(),Fo=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(ho,Eo);case 2:return e.toUpperCase();default:return e}},ho=/(^|\s|:|-|\(|\))([a-z])/g,Eo=function(e,A,t){return e.length>0?A+t.toUpperCase():e},pB=function(e){function A(t,r){var B=e.call(this,t,r)||this;return B.src=r.currentSrc||r.src,B.intrinsicWidth=r.naturalWidth,B.intrinsicHeight=r.naturalHeight,B.context.cache.addImage(B.src),B}return q(A,e),A}(sA),IB=function(e){function A(t,r){var B=e.call(this,t,r)||this;return B.canvas=r,B.intrinsicWidth=r.width,B.intrinsicHeight=r.height,B}return q(A,e),A}(sA),vB=function(e){function A(t,r){var B=e.call(this,t,r)||this,n=new XMLSerializer,s=ue(t,r);return r.setAttribute("width",s.width+"px"),r.setAttribute("height",s.height+"px"),B.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(r)),B.intrinsicWidth=r.width.baseVal.value,B.intrinsicHeight=r.height.baseVal.value,B.context.cache.addImage(B.svg),B}return q(A,e),A}(sA),yB=function(e){function A(t,r){var B=e.call(this,t,r)||this;return B.value=r.value,B}return q(A,e),A}(sA),kr=function(e){function A(t,r){var B=e.call(this,t,r)||this;return B.start=r.start,B.reversed="boolean"==typeof r.reversed&&!0===r.reversed,B}return q(A,e),A}(sA),Ho=[{type:15,flags:0,unit:"px",number:3}],po=[{type:16,flags:0,number:50}],We="checkbox",Ze="radio",yo="password",KB=707406591,Yr=function(e){function A(t,r){var B=e.call(this,t,r)||this;switch(B.type=r.type.toLowerCase(),B.checked=r.checked,B.value=function(e){var A=e.type===yo?new Array(e.value.length+1).join("\u2022"):e.value;return 0===A.length?e.placeholder||"":A}(r),(B.type===We||B.type===Ze)&&(B.styles.backgroundColor=3739148031,B.styles.borderTopColor=B.styles.borderRightColor=B.styles.borderBottomColor=B.styles.borderLeftColor=2779096575,B.styles.borderTopWidth=B.styles.borderRightWidth=B.styles.borderBottomWidth=B.styles.borderLeftWidth=1,B.styles.borderTopStyle=B.styles.borderRightStyle=B.styles.borderBottomStyle=B.styles.borderLeftStyle=1,B.styles.backgroundClip=[0],B.styles.backgroundOrigin=[0],B.bounds=function(e){return e.width>e.height?new iA(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width0)t.textNodes.push(new Uo(e,B,t.styles));else if(RA(B))if(VB(B)&&B.assignedNodes)B.assignedNodes().forEach(function(i){return qe(e,i,t,r)});else{var s=bB(e,B);s.styles.isVisible()&&(mo(B,s,r)?s.flags|=4:Lo(s.styles)&&(s.flags|=2),-1!==Ko.indexOf(B.tagName)&&(s.flags|=8),t.elements.push(s),B.shadowRoot?qe(e,B.shadowRoot,s,r):!ze(B)&&!SB(B)&&!$e(B)&&qe(e,B,s,r))}},bB=function(e,A){return qr(A)?new pB(e,A):OB(A)?new IB(e,A):SB(A)?new vB(e,A):Do(A)?new yB(e,A):bo(A)?new kr(e,A):xo(A)?new Yr(e,A):$e(A)?new mB(e,A):ze(A)?new LB(e,A):GB(A)?new DB(e,A):new sA(e,A)},xB=function(e,A){var t=bB(e,A);return t.flags|=4,qe(e,A,t,t),t},mo=function(e,A,t){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Zr(e)&&t.styles.isTransparent()},Lo=function(e){return e.isPositioned()||e.isFloating()},TB=function(e){return e.nodeType===Node.TEXT_NODE},RA=function(e){return e.nodeType===Node.ELEMENT_NODE},Wr=function(e){return RA(e)&&typeof e.style<"u"&&!je(e)},je=function(e){return"object"==typeof e.className},Do=function(e){return"LI"===e.tagName},bo=function(e){return"OL"===e.tagName},xo=function(e){return"INPUT"===e.tagName},SB=function(e){return"svg"===e.tagName},Zr=function(e){return"BODY"===e.tagName},OB=function(e){return"CANVAS"===e.tagName},MB=function(e){return"VIDEO"===e.tagName},qr=function(e){return"IMG"===e.tagName},GB=function(e){return"IFRAME"===e.tagName},RB=function(e){return"STYLE"===e.tagName},ze=function(e){return"TEXTAREA"===e.tagName},$e=function(e){return"SELECT"===e.tagName},VB=function(e){return"SLOT"===e.tagName},NB=function(e){return e.tagName.indexOf("-")>0},Oo=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var t=this.counters[A];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(A){return this.counters[A]||[]},e.prototype.pop=function(A){var t=this;A.forEach(function(r){return t.counters[r].pop()})},e.prototype.parse=function(A){var t=this,r=A.counterIncrement,B=A.counterReset,n=!0;null!==r&&r.forEach(function(i){var a=t.counters[i.counter];a&&0!==i.increment&&(n=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=i.increment)});var s=[];return n&&B.forEach(function(i){var a=t.counters[i.counter];s.push(i.counter),a||(a=t.counters[i.counter]=[]),a.push(i.reset)}),s},e}(),XB={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},_B={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054f","\u054e","\u054d","\u054c","\u054b","\u054a","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053f","\u053e","\u053d","\u053c","\u053b","\u053a","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Mo={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05d9\u05f3","\u05d8\u05f3","\u05d7\u05f3","\u05d6\u05f3","\u05d5\u05f3","\u05d4\u05f3","\u05d3\u05f3","\u05d2\u05f3","\u05d1\u05f3","\u05d0\u05f3","\u05ea","\u05e9","\u05e8","\u05e7","\u05e6","\u05e4","\u05e2","\u05e1","\u05e0","\u05de","\u05dc","\u05db","\u05d9\u05d8","\u05d9\u05d7","\u05d9\u05d6","\u05d8\u05d6","\u05d8\u05d5","\u05d9","\u05d8","\u05d7","\u05d6","\u05d5","\u05d4","\u05d3","\u05d2","\u05d1","\u05d0"]},Go={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10f5","\u10f0","\u10ef","\u10f4","\u10ee","\u10ed","\u10ec","\u10eb","\u10ea","\u10e9","\u10e8","\u10e7","\u10e6","\u10e5","\u10e4","\u10f3","\u10e2","\u10e1","\u10e0","\u10df","\u10de","\u10dd","\u10f2","\u10dc","\u10db","\u10da","\u10d9","\u10d8","\u10d7","\u10f1","\u10d6","\u10d5","\u10d4","\u10d3","\u10d2","\u10d1","\u10d0"]},VA=function(e,A,t,r,B,n){return et?ge(e,B,n.length>0):r.integers.reduce(function(s,i,a){for(;e>=i;)e-=i,s+=r.values[a];return s},"")+n},JB=function(e,A,t,r){var B="";do{t||e--,B=r(e)+B,e/=A}while(e*A>=A);return B},S=function(e,A,t,r,B){var n=t-A+1;return(e<0?"-":"")+(JB(Math.abs(e),n,r,function(s){return T(Math.floor(s%n)+A)})+B)},mA=function(e,A,t){void 0===t&&(t=". ");var r=A.length;return JB(Math.abs(e),r,!1,function(B){return A[Math.floor(B%r)]})+t},gA=function(e,A,t,r,B,n){if(e<-9999||e>9999)return ge(e,4,B.length>0);var s=Math.abs(e),i=B;if(0===s)return A[0]+i;for(var a=0;s>0&&a<=4;a++){var o=s%10;0===o&&G(n,1)&&""!==i?i=A[o]+i:o>1||1===o&&0===a||1===o&&1===a&&G(n,2)||1===o&&1===a&&G(n,4)&&e>100||1===o&&a>1&&G(n,8)?i=A[o]+(a>0?t[a-1]:"")+i:1===o&&a>0&&(i=t[a-1]+i),s=Math.floor(s/10)}return(e<0?r:"")+i},jr="\ub9c8\uc774\ub108\uc2a4",ge=function(e,A,t){var r=t?". ":"",B=t?"\u3001":"",n=t?", ":"",s=t?" ":"";switch(A){case 0:return"\u2022"+s;case 1:return"\u25e6"+s;case 2:return"\u25fe"+s;case 5:var i=S(e,48,57,!0,r);return i.length<4?"0"+i:i;case 4:return mA(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",B);case 6:return VA(e,1,3999,XB,3,r).toLowerCase();case 7:return VA(e,1,3999,XB,3,r);case 8:return S(e,945,969,!1,r);case 9:return S(e,97,122,!1,r);case 10:return S(e,65,90,!1,r);case 11:return S(e,1632,1641,!0,r);case 12:case 49:return VA(e,1,9999,_B,3,r);case 35:return VA(e,1,9999,_B,3,r).toLowerCase();case 13:return S(e,2534,2543,!0,r);case 14:case 30:return S(e,6112,6121,!0,r);case 15:return mA(e,"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5",B);case 16:return mA(e,"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678",B);case 17:case 48:return gA(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\u8ca0",B,14);case 47:return gA(e,"\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396","\u62fe\u4f70\u4edf\u842c","\u8ca0",B,15);case 42:return gA(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\u8d1f",B,14);case 41:return gA(e,"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396","\u62fe\u4f70\u4edf\u842c","\u8d1f",B,15);case 26:return gA(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u4e07","\u30de\u30a4\u30ca\u30b9",B,0);case 25:return gA(e,"\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343\u4e07","\u30de\u30a4\u30ca\u30b9",B,7);case 31:return gA(e,"\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c","\uc2ed\ubc31\ucc9c\ub9cc",jr,n,7);case 33:return gA(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c",jr,n,0);case 32:return gA(e,"\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343",jr,n,7);case 18:return S(e,2406,2415,!0,r);case 20:return VA(e,1,19999,Go,3,r);case 21:return S(e,2790,2799,!0,r);case 22:return S(e,2662,2671,!0,r);case 22:return VA(e,1,10999,Mo,3,r);case 23:return mA(e,"\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093");case 24:return mA(e,"\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059");case 27:return S(e,3302,3311,!0,r);case 28:return mA(e,"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3",B);case 29:return mA(e,"\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9",B);case 34:return S(e,3792,3801,!0,r);case 37:return S(e,6160,6169,!0,r);case 38:return S(e,4160,4169,!0,r);case 39:return S(e,2918,2927,!0,r);case 40:return S(e,1776,1785,!0,r);case 43:return S(e,3046,3055,!0,r);case 44:return S(e,3174,3183,!0,r);case 45:return S(e,3664,3673,!0,r);case 46:return S(e,3872,3881,!0,r);default:return S(e,48,57,!0,r)}},WB="data-html2canvas-ignore",ZB=function(){function e(A,t,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new Oo,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(A,t){var r=this,B=Ro(A,t);if(!B.contentWindow)return Promise.reject("Unable to find iframe window");var n=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,i=B.contentWindow,a=i.document,o=Xo(B).then(function(){return P(r,void 0,void 0,function(){var Q,g;return _(this,function(w){switch(w.label){case 0:return this.scrolledElements.forEach(ko),i&&(i.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(i.scrollY!==t.top||i.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(i.scrollX-t.left,i.scrollY-t.top,0,0))),Q=this.options.onclone,typeof(g=this.clonedReferenceElement)>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:w.sent(),w.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,No(a)]:[3,4];case 3:w.sent(),w.label=4;case 4:return"function"==typeof Q?[2,Promise.resolve().then(function(){return Q(a,g)}).then(function(){return B})]:[2,B]}})})});return a.open(),a.write(Jo(document.doctype)+""),Po(this.referenceElement.ownerDocument,n,s),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),o},e.prototype.createElementClone=function(A){if(Tr(A,2),OB(A))return this.createCanvasClone(A);if(MB(A))return this.createVideoClone(A);if(RB(A))return this.createStyleClone(A);var t=A.cloneNode(!1);return qr(t)&&(qr(A)&&A.currentSrc&&A.currentSrc!==A.src&&(t.src=A.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),NB(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(A){var t=document.createElement("html2canvascustomelement");return zr(A.style,t),t},e.prototype.createStyleClone=function(A){try{var t=A.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(n,s){return s&&"string"==typeof s.cssText?n+s.cssText:n},""),B=A.cloneNode(!1);return B.textContent=r,B}}catch(n){if(this.context.logger.error("Unable to access cssRules property",n),"SecurityError"!==n.name)throw n}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var t;if(this.options.inlineImages&&A.ownerDocument){var r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var B=A.cloneNode(!1);try{B.width=A.width,B.height=A.height;var n=A.getContext("2d"),s=B.getContext("2d");if(s)if(!this.options.allowTaint&&n)s.putImageData(n.getImageData(0,0,A.width,A.height),0,0);else{var i=null!==(t=A.getContext("webgl2"))&&void 0!==t?t:A.getContext("webgl");if(i){var a=i.getContextAttributes();!1===a?.preserveDrawingBuffer&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}s.drawImage(A,0,0)}return B}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return B},e.prototype.createVideoClone=function(A){var t=A.ownerDocument.createElement("canvas");t.width=A.offsetWidth,t.height=A.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(A,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var B=A.ownerDocument.createElement("canvas");return B.width=A.offsetWidth,B.height=A.offsetHeight,B},e.prototype.appendChildNode=function(A,t,r){(!RA(t)||!function(e){return"SCRIPT"===e.tagName}(t)&&!t.hasAttribute(WB)&&("function"!=typeof this.options.ignoreElements||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!RA(t)||!RB(t))&&A.appendChild(this.cloneNode(t,r))},e.prototype.cloneChildNodes=function(A,t,r){for(var B=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(RA(n)&&VB(n)&&"function"==typeof n.assignedNodes){var s=n.assignedNodes();s.length&&s.forEach(function(i){return B.appendChildNode(t,i,r)})}else this.appendChildNode(t,n,r)},e.prototype.cloneNode=function(A,t){if(TB(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var r=A.ownerDocument.defaultView;if(r&&RA(A)&&(Wr(A)||je(A))){var B=this.createElementClone(A);B.style.transitionProperty="none";var n=r.getComputedStyle(A),s=r.getComputedStyle(A,":before"),i=r.getComputedStyle(A,":after");this.referenceElement===A&&Wr(B)&&(this.clonedReferenceElement=B),Zr(B)&&Zo(B);var a=this.counters.parse(new oB(this.context,n)),o=this.resolvePseudoContent(A,B,s,Ar.BEFORE);NB(A)&&(t=!0),MB(A)||this.cloneChildNodes(A,B,t),o&&B.insertBefore(o,B.firstChild);var Q=this.resolvePseudoContent(A,B,i,Ar.AFTER);return Q&&B.appendChild(Q),this.counters.pop(a),(n&&(this.options.copyStyles||je(A))&&!GB(A)||t)&&zr(n,B),(0!==A.scrollTop||0!==A.scrollLeft)&&this.scrolledElements.push([B,A.scrollLeft,A.scrollTop]),(ze(A)||$e(A))&&(ze(B)||$e(B))&&(B.value=A.value),B}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,t,r,B){var n=this;if(r){var s=r.content,i=t.ownerDocument;if(i&&s&&"none"!==s&&"-moz-alt-content"!==s&&"none"!==r.display){this.counters.parse(new oB(this.context,r));var a=new Li(this.context,r),o=i.createElement("html2canvaspseudoelement");zr(r,o),a.content.forEach(function(g){if(0===g.type)o.appendChild(i.createTextNode(g.value));else if(22===g.type){var w=i.createElement("img");w.src=g.value,w.style.opacity="1",o.appendChild(w)}else if(18===g.type){if("attr"===g.name){var f=g.values.filter(L);f.length&&o.appendChild(i.createTextNode(A.getAttribute(f[0].value)||""))}else if("counter"===g.name){var c=g.values.filter(GA),H=c[1];if((C=c[0])&&L(C)){var h=n.counters.getCounterValue(C.value),F=H&&L(H)?xr.parse(n.context,H.value):3;o.appendChild(i.createTextNode(ge(h,F,!1)))}}else if("counters"===g.name){var C,K=g.values.filter(GA),p=K[1];if(H=K[2],(C=K[0])&&L(C)){var d=n.counters.getCounterValues(C.value),l=H&&L(H)?xr.parse(n.context,H.value):3,v=p&&0===p.type?p.value:"",y=d.map(function(Y){return ge(Y,l,!1)}).join(v);o.appendChild(i.createTextNode(y))}}}else if(20===g.type)switch(g.value){case"open-quote":o.appendChild(i.createTextNode(iB(a.quotes,n.quoteDepth++,!0)));break;case"close-quote":o.appendChild(i.createTextNode(iB(a.quotes,--n.quoteDepth,!1)));break;default:o.appendChild(i.createTextNode(g.value))}}),o.className=$r+" "+At;var Q=B===Ar.BEFORE?" "+$r:" "+At;return je(t)?t.className.baseValue+=Q:t.className+=Q,o}}},e.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},e}(),Ar=function(e){return e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER",e}(Ar||{}),Ro=function(e,A){var t=e.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=A.width.toString(),t.height=A.height.toString(),t.scrolling="no",t.setAttribute(WB,"true"),e.body.appendChild(t),t},Vo=function(e){return new Promise(function(A){e.complete?A():e.src?(e.onload=A,e.onerror=A):A()})},No=function(e){return Promise.all([].slice.call(e.images,0).map(Vo))},Xo=function(e){return new Promise(function(A,t){var r=e.contentWindow;if(!r)return t("No window assigned for iframe");var B=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){B.body.childNodes.length>0&&"complete"===B.readyState&&(clearInterval(n),A(e))},50)}})},_o=["all","d","content"],zr=function(e,A){for(var t=e.length-1;t>=0;t--){var r=e.item(t);-1===_o.indexOf(r)&&A.style.setProperty(r,e.getPropertyValue(r))}return A},Jo=function(e){var A="";return e&&(A+=""),A},Po=function(e,A,t){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||t!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,t)},ko=function(e){var A=e[0],r=e[2];A.scrollLeft=e[1],A.scrollTop=r},$r="___html2canvas___pseudoelement_before",At="___html2canvas___pseudoelement_after",qB='{\n content: "" !important;\n display: none !important;\n}',Zo=function(e){qo(e,"."+$r+":before"+qB+"\n ."+At+":after"+qB)},qo=function(e,A){var t=e.ownerDocument;if(t){var r=t.createElement("style");r.textContent=A,e.appendChild(r)}},jB=function(){function e(){}return e.getOrigin=function(A){var t=e._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e}(),jo=function(){function e(A,t){this.context=A,this._options=t,this._cache={}}return e.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)||(rt(A)||eQ(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),t},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return P(this,void 0,void 0,function(){var t,r,B,n,s=this;return _(this,function(i){switch(i.label){case 0:return t=jB.isSameOrigin(A),r=!et(A)&&!0===this._options.useCORS&&N.SUPPORT_CORS_IMAGES&&!t,B=!et(A)&&!t&&!rt(A)&&"string"==typeof this._options.proxy&&N.SUPPORT_CORS_XHR&&!r,t||!1!==this._options.allowTaint||et(A)||rt(A)||B||r?(n=A,B?[4,this.proxy(n)]:[3,2]):[2];case 1:n=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(a,o){var Q=new Image;Q.onload=function(){return a(Q)},Q.onerror=o,(rQ(n)||r)&&(Q.crossOrigin="anonymous"),Q.src=n,!0===Q.complete&&setTimeout(function(){return a(Q)},500),s._options.imageTimeout>0&&setTimeout(function(){return o("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var B=A.substring(0,256);return new Promise(function(n,s){var i=N.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===i)n(a.response);else{var g=new FileReader;g.addEventListener("load",function(){return n(g.result)},!1),g.addEventListener("error",function(w){return s(w)},!1),g.readAsDataURL(a.response)}else s("Failed to proxy resource "+B+" with status code "+a.status)},a.onerror=s;var o=r.indexOf("?")>-1?"&":"?";if(a.open("GET",""+r+o+"url="+encodeURIComponent(A)+"&responseType="+i),"text"!==i&&a instanceof XMLHttpRequest&&(a.responseType=i),t._options.imageTimeout){var Q=t._options.imageTimeout;a.timeout=Q,a.ontimeout=function(){return s("Timed out ("+Q+"ms) proxying "+B)}}a.send()})},e}(),zo=/^data:image\/svg\+xml/i,$o=/^data:image\/.*;base64,/i,AQ=/^data:image\/.*/i,eQ=function(e){return N.SUPPORT_SVG_DRAWING||!tQ(e)},et=function(e){return AQ.test(e)},rQ=function(e){return $o.test(e)},rt=function(e){return"blob"===e.substr(0,4)},tQ=function(e){return"svg"===e.substr(-3).toLowerCase()||zo.test(e)},u=function(){function e(A,t){this.type=0,this.x=A,this.y=t}return e.prototype.add=function(A,t){return new e(this.x+A,this.y+t)},e}(),XA=function(e,A,t){return new u(e.x+(A.x-e.x)*t,e.y+(A.y-e.y)*t)},er=function(){function e(A,t,r,B){this.type=1,this.start=A,this.startControl=t,this.endControl=r,this.end=B}return e.prototype.subdivide=function(A,t){var r=XA(this.start,this.startControl,A),B=XA(this.startControl,this.endControl,A),n=XA(this.endControl,this.end,A),s=XA(r,B,A),i=XA(B,n,A),a=XA(s,i,A);return t?new e(this.start,r,s,a):new e(a,i,n,this.end)},e.prototype.add=function(A,t){return new e(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),eA=function(e){return 1===e.type},BQ=function(){return function e(A){var t=A.styles,r=A.bounds,B=ne(t.borderTopLeftRadius,r.width,r.height),n=B[0],s=B[1],i=ne(t.borderTopRightRadius,r.width,r.height),a=i[0],o=i[1],Q=ne(t.borderBottomRightRadius,r.width,r.height),g=Q[0],w=Q[1],f=ne(t.borderBottomLeftRadius,r.width,r.height),c=f[0],C=f[1],H=[];H.push((n+a)/r.width),H.push((c+g)/r.width),H.push((s+C)/r.height),H.push((o+w)/r.height);var h=Math.max.apply(Math,H);h>1&&(n/=h,s/=h,a/=h,o/=h,g/=h,w/=h,c/=h,C/=h);var F=r.width-a,K=r.height-w,p=r.width-g,d=r.height-C,l=t.borderTopWidth,v=t.borderRightWidth,y=t.borderBottomWidth,E=t.borderLeftWidth,M=b(t.paddingTop,A.bounds.width),Y=b(t.paddingRight,A.bounds.width),z=b(t.paddingBottom,A.bounds.width),D=b(t.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||s>0?x(r.left+E/3,r.top+l/3,n-E/3,s-l/3,m.TOP_LEFT):new u(r.left+E/3,r.top+l/3),this.topRightBorderDoubleOuterBox=n>0||s>0?x(r.left+F,r.top+l/3,a-v/3,o-l/3,m.TOP_RIGHT):new u(r.left+r.width-v/3,r.top+l/3),this.bottomRightBorderDoubleOuterBox=g>0||w>0?x(r.left+p,r.top+K,g-v/3,w-y/3,m.BOTTOM_RIGHT):new u(r.left+r.width-v/3,r.top+r.height-y/3),this.bottomLeftBorderDoubleOuterBox=c>0||C>0?x(r.left+E/3,r.top+d,c-E/3,C-y/3,m.BOTTOM_LEFT):new u(r.left+E/3,r.top+r.height-y/3),this.topLeftBorderDoubleInnerBox=n>0||s>0?x(r.left+2*E/3,r.top+2*l/3,n-2*E/3,s-2*l/3,m.TOP_LEFT):new u(r.left+2*E/3,r.top+2*l/3),this.topRightBorderDoubleInnerBox=n>0||s>0?x(r.left+F,r.top+2*l/3,a-2*v/3,o-2*l/3,m.TOP_RIGHT):new u(r.left+r.width-2*v/3,r.top+2*l/3),this.bottomRightBorderDoubleInnerBox=g>0||w>0?x(r.left+p,r.top+K,g-2*v/3,w-2*y/3,m.BOTTOM_RIGHT):new u(r.left+r.width-2*v/3,r.top+r.height-2*y/3),this.bottomLeftBorderDoubleInnerBox=c>0||C>0?x(r.left+2*E/3,r.top+d,c-2*E/3,C-2*y/3,m.BOTTOM_LEFT):new u(r.left+2*E/3,r.top+r.height-2*y/3),this.topLeftBorderStroke=n>0||s>0?x(r.left+E/2,r.top+l/2,n-E/2,s-l/2,m.TOP_LEFT):new u(r.left+E/2,r.top+l/2),this.topRightBorderStroke=n>0||s>0?x(r.left+F,r.top+l/2,a-v/2,o-l/2,m.TOP_RIGHT):new u(r.left+r.width-v/2,r.top+l/2),this.bottomRightBorderStroke=g>0||w>0?x(r.left+p,r.top+K,g-v/2,w-y/2,m.BOTTOM_RIGHT):new u(r.left+r.width-v/2,r.top+r.height-y/2),this.bottomLeftBorderStroke=c>0||C>0?x(r.left+E/2,r.top+d,c-E/2,C-y/2,m.BOTTOM_LEFT):new u(r.left+E/2,r.top+r.height-y/2),this.topLeftBorderBox=n>0||s>0?x(r.left,r.top,n,s,m.TOP_LEFT):new u(r.left,r.top),this.topRightBorderBox=a>0||o>0?x(r.left+F,r.top,a,o,m.TOP_RIGHT):new u(r.left+r.width,r.top),this.bottomRightBorderBox=g>0||w>0?x(r.left+p,r.top+K,g,w,m.BOTTOM_RIGHT):new u(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=c>0||C>0?x(r.left,r.top+d,c,C,m.BOTTOM_LEFT):new u(r.left,r.top+r.height),this.topLeftPaddingBox=n>0||s>0?x(r.left+E,r.top+l,Math.max(0,n-E),Math.max(0,s-l),m.TOP_LEFT):new u(r.left+E,r.top+l),this.topRightPaddingBox=a>0||o>0?x(r.left+Math.min(F,r.width-v),r.top+l,F>r.width+v?0:Math.max(0,a-v),Math.max(0,o-l),m.TOP_RIGHT):new u(r.left+r.width-v,r.top+l),this.bottomRightPaddingBox=g>0||w>0?x(r.left+Math.min(p,r.width-E),r.top+Math.min(K,r.height-y),Math.max(0,g-v),Math.max(0,w-y),m.BOTTOM_RIGHT):new u(r.left+r.width-v,r.top+r.height-y),this.bottomLeftPaddingBox=c>0||C>0?x(r.left+E,r.top+Math.min(d,r.height-y),Math.max(0,c-E),Math.max(0,C-y),m.BOTTOM_LEFT):new u(r.left+E,r.top+r.height-y),this.topLeftContentBox=n>0||s>0?x(r.left+E+D,r.top+l+M,Math.max(0,n-(E+D)),Math.max(0,s-(l+M)),m.TOP_LEFT):new u(r.left+E+D,r.top+l+M),this.topRightContentBox=a>0||o>0?x(r.left+Math.min(F,r.width+E+D),r.top+l+M,F>r.width+E+D?0:a-E+D,o-(l+M),m.TOP_RIGHT):new u(r.left+r.width-(v+Y),r.top+l+M),this.bottomRightContentBox=g>0||w>0?x(r.left+Math.min(p,r.width-(E+D)),r.top+Math.min(K,r.height+l+M),Math.max(0,g-(v+Y)),w-(y+z),m.BOTTOM_RIGHT):new u(r.left+r.width-(v+Y),r.top+r.height-(y+z)),this.bottomLeftContentBox=c>0||C>0?x(r.left+E+D,r.top+d,Math.max(0,c-(E+D)),C-(y+z),m.BOTTOM_LEFT):new u(r.left+E+D,r.top+r.height-(y+z))}}(),m=function(e){return e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT",e}(m||{}),x=function(e,A,t,r,B){var n=(Math.sqrt(2)-1)/3*4,s=t*n,i=r*n,a=e+t,o=A+r;switch(B){case m.TOP_LEFT:return new er(new u(e,o),new u(e,o-i),new u(a-s,A),new u(a,A));case m.TOP_RIGHT:return new er(new u(e,A),new u(e+s,A),new u(a,o-i),new u(a,o));case m.BOTTOM_RIGHT:return new er(new u(a,A),new u(a,A+i),new u(e+s,o),new u(e,o));default:return new er(new u(a,o),new u(a-s,o),new u(e,A+i),new u(e,A))}},rr=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},tr=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},sQ=function(){return function e(A,t,r){this.offsetX=A,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}}(),Br=function(){return function e(A,t){this.path=A,this.target=t,this.type=1}}(),aQ=function(){return function e(A){this.opacity=A,this.type=2,this.target=6}}(),zB=function(e){return 1===e.type},$B=function(e,A){return e.length===A.length&&e.some(function(t,r){return t===A[r]})},An=function(){return function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}(),en=function(){function e(A,t){if(this.container=A,this.parent=t,this.effects=[],this.curves=new BQ(this.container),this.container.styles.opacity<1&&this.effects.push(new aQ(this.container.styles.opacity)),null!==this.container.styles.transform&&this.effects.push(new sQ(this.container.bounds.left+this.container.styles.transformOrigin[0].number,this.container.bounds.top+this.container.styles.transformOrigin[1].number,this.container.styles.transform)),0!==this.container.styles.overflowX){var s=rr(this.curves),i=tr(this.curves);$B(s,i)?this.effects.push(new Br(s,6)):(this.effects.push(new Br(s,2)),this.effects.push(new Br(i,4)))}}return e.prototype.getEffects=function(A){for(var t=-1===[2,3].indexOf(this.container.styles.position),r=this.parent,B=this.effects.slice(0);r;){var n=r.effects.filter(function(a){return!zB(a)});if(t||0!==r.container.styles.position||!r.parent){if(B.unshift.apply(B,n),t=-1===[2,3].indexOf(r.container.styles.position),0!==r.container.styles.overflowX){var s=rr(r.curves),i=tr(r.curves);$B(s,i)||B.unshift(new Br(i,6))}}else B.unshift.apply(B,n);r=r.parent}return B.filter(function(a){return G(a.target,A)})},e}(),tt=function(e,A,t,r){e.container.elements.forEach(function(B){var n=G(B.flags,4),s=G(B.flags,2),i=new en(B,e);G(B.styles.display,2048)&&r.push(i);var a=G(B.flags,8)?[]:r;if(n||s){var o=n||B.styles.isPositioned()?t:A,Q=new An(i);if(B.styles.isPositioned()||B.styles.opacity<1||B.styles.isTransformed()){var g=B.styles.zIndex.order;if(g<0){var w=0;o.negativeZIndex.some(function(c,C){return g>c.element.container.styles.zIndex.order?(w=C,!1):w>0}),o.negativeZIndex.splice(w,0,Q)}else if(g>0){var f=0;o.positiveZIndex.some(function(c,C){return g>=c.element.container.styles.zIndex.order?(f=C+1,!1):f>0}),o.positiveZIndex.splice(f,0,Q)}else o.zeroOrAutoZIndexOrTransformedOrOpacity.push(Q)}else B.styles.isFloating()?o.nonPositionedFloats.push(Q):o.nonPositionedInlineLevel.push(Q);tt(i,Q,n?Q:t,a)}else B.styles.isInlineLevel()?A.inlineLevel.push(i):A.nonInlineLevel.push(i),tt(i,A,t,a);G(B.flags,8)&&rn(B,a)})},rn=function(e,A){for(var t=e instanceof kr?e.start:1,r=e instanceof kr&&e.reversed,B=0;B"u"?e[0]:t},UQ=function(e,A,t,r,B){var n=A[0],s=A[1],i=t[0],a=t[1];switch(e){case 2:return[new u(Math.round(r.left),Math.round(r.top+s)),new u(Math.round(r.left+r.width),Math.round(r.top+s)),new u(Math.round(r.left+r.width),Math.round(a+r.top+s)),new u(Math.round(r.left),Math.round(a+r.top+s))];case 3:return[new u(Math.round(r.left+n),Math.round(r.top)),new u(Math.round(r.left+n+i),Math.round(r.top)),new u(Math.round(r.left+n+i),Math.round(r.height+r.top)),new u(Math.round(r.left+n),Math.round(r.height+r.top))];case 1:return[new u(Math.round(r.left+n),Math.round(r.top+s)),new u(Math.round(r.left+n+i),Math.round(r.top+s)),new u(Math.round(r.left+n+i),Math.round(r.top+s+a)),new u(Math.round(r.left+n),Math.round(r.top+s+a))];default:return[new u(Math.round(B.left),Math.round(B.top)),new u(Math.round(B.left+B.width),Math.round(B.top)),new u(Math.round(B.left+B.width),Math.round(B.height+B.top)),new u(Math.round(B.left),Math.round(B.height+B.top))]}},nn="Hidden Text",hQ=function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,t){var r=this._document.createElement("div"),B=this._document.createElement("img"),n=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=A,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),B.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",B.width=1,B.height=1,B.style.margin="0",B.style.padding="0",B.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(nn)),r.appendChild(n),r.appendChild(B);var i=B.offsetTop-n.offsetTop+2;r.removeChild(n),r.appendChild(this._document.createTextNode(nn)),r.style.lineHeight="normal",B.style.verticalAlign="super";var a=B.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:i,middle:a}},e.prototype.getMetrics=function(A,t){var r=A+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,t)),this._data[r]},e}(),sn=function(){return function e(A,t){this.context=A,this.options=t}}(),EQ=function(e){function A(t,r){var B=e.call(this,t,r)||this;return B._activeEffects=[],B.canvas=r.canvas?r.canvas:document.createElement("canvas"),B.ctx=B.canvas.getContext("2d"),r.canvas||(B.canvas.width=Math.floor(r.width*r.scale),B.canvas.height=Math.floor(r.height*r.scale),B.canvas.style.width=r.width+"px",B.canvas.style.height=r.height+"px"),B.fontMetrics=new hQ(document),B.ctx.scale(B.options.scale,B.options.scale),B.ctx.translate(-r.x,-r.y),B.ctx.textBaseline="bottom",B._activeEffects=[],B.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),B}return q(A,e),A.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(B){return r.applyEffect(B)})},A.prototype.applyEffect=function(t){this.ctx.save(),function(e){return 2===e.type}(t)&&(this.ctx.globalAlpha=t.opacity),function(e){return 0===e.type}(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),zB(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(t){return P(this,void 0,void 0,function(){return _(this,function(B){switch(B.label){case 0:return t.element.container.styles.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:B.sent(),B.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(t){return P(this,void 0,void 0,function(){return _(this,function(r){switch(r.label){case 0:return G(t.container.flags,16),t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(t,r,B){var n=this;0===r?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+B):Pr(t.text).reduce(function(i,a){return n.ctx.fillText(a,i,t.bounds.top+B),i+n.ctx.measureText(a).width},t.bounds.left)},A.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(s){return"normal"===s||"small-caps"===s}).join(""),B=yQ(t.fontFamily).join(", "),n=Be(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,n,B].join(" "),B,n]},A.prototype.renderTextNode=function(t,r){return P(this,void 0,void 0,function(){var B,s,i,a,o,Q,g,w=this;return _(this,function(f){return B=this.createFontStyle(r),s=B[1],i=B[2],this.ctx.font=B[0],this.ctx.direction=1===r.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(s,i),o=a.baseline,Q=a.middle,g=r.paintOrder,t.textBounds.forEach(function(c){g.forEach(function(C){switch(C){case 0:w.ctx.fillStyle=R(r.color),w.renderTextWithLetterSpacing(c,r.letterSpacing,o);var H=r.textShadow;H.length&&c.text.trim().length&&(H.slice(0).reverse().forEach(function(h){w.ctx.shadowColor=R(h.color),w.ctx.shadowOffsetX=h.offsetX.number*w.options.scale,w.ctx.shadowOffsetY=h.offsetY.number*w.options.scale,w.ctx.shadowBlur=h.blur.number,w.renderTextWithLetterSpacing(c,r.letterSpacing,o)}),w.ctx.shadowColor="",w.ctx.shadowOffsetX=0,w.ctx.shadowOffsetY=0,w.ctx.shadowBlur=0),r.textDecorationLine.length&&(w.ctx.fillStyle=R(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(h){switch(h){case 1:w.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top+o),c.bounds.width,1);break;case 2:w.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top),c.bounds.width,1);break;case 3:w.ctx.fillRect(c.bounds.left,Math.ceil(c.bounds.top+Q),c.bounds.width,1)}}));break;case 1:r.webkitTextStrokeWidth&&c.text.trim().length&&(w.ctx.strokeStyle=R(r.webkitTextStrokeColor),w.ctx.lineWidth=r.webkitTextStrokeWidth,w.ctx.lineJoin=window.chrome?"miter":"round",w.ctx.strokeText(c.text,c.bounds.left,c.bounds.top+o)),w.ctx.strokeStyle="",w.ctx.lineWidth=0,w.ctx.lineJoin="miter"}})}),[2]})})},A.prototype.renderReplacedElement=function(t,r,B){if(B&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var n=sr(t),s=tr(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(B,0,0,t.intrinsicWidth,t.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(t){return P(this,void 0,void 0,function(){var r,B,n,s,i,Q,g,w,c,C,H,h,F,K,p,d;return _(this,function(l){switch(l.label){case 0:this.applyEffects(t.getEffects(4)),B=t.curves,n=(r=t.container).styles,s=0,i=r.textNodes,l.label=1;case 1:return s0&&pA>0&&(DA=n.ctx.createRadialGradient(Y+W,z+Z,0,Y+W,z+Z,aA),Wt(Q.stops,2*aA).forEach(function(we){return DA.addColorStop(we.stop,R(we.color))}),n.path(M),n.ctx.fillStyle=DA,aA!==pA?(bA=t.bounds.left+.5*t.bounds.width,wA=t.bounds.top+.5*t.bounds.height,cA=1/(xA=pA/aA),n.ctx.save(),n.ctx.translate(bA,wA),n.ctx.transform(1,0,0,xA,0,0),n.ctx.translate(-bA,-wA),n.ctx.fillRect(Y,cA*(z-wA)+wA,D,X*cA),n.ctx.restore()):n.ctx.fill())):(c=Bt(t,r,[null,null,null]),M=c[0],W=c[1],Z=c[2],C=ra(Q.angle,D=c[3],X=c[4]),H=C[0],h=C[1],F=C[2],K=C[3],p=C[4],(d=document.createElement("canvas")).width=D,d.height=X,l=d.getContext("2d"),v=l.createLinearGradient(h,K,F,p),Wt(Q.stops,H).forEach(function(we){return v.addColorStop(we.stop,R(we.color))}),l.fillStyle=v,l.fillRect(0,0,D,X),D>0&&X>0&&(y=n.ctx.createPattern(d,"repeat"),n.renderRepeat(M,y,W,Z))),PA.label=6;case 6:return r--,[2]}})},n=this,s=0,i=t.styles.backgroundImage.slice(0).reverse(),o.label=1;case 1:return s0?2!==Q.style?[3,5]:[4,this.renderDashedDottedBorder(Q.color,Q.width,i,t.curves,2)]:[3,11]:[3,13];case 4:return w.sent(),[3,11];case 5:return 3!==Q.style?[3,7]:[4,this.renderDashedDottedBorder(Q.color,Q.width,i,t.curves,3)];case 6:return w.sent(),[3,11];case 7:return 4!==Q.style?[3,9]:[4,this.renderDoubleBorder(Q.color,Q.width,i,t.curves)];case 8:return w.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Q.color,i,t.curves)];case 10:w.sent(),w.label=11;case 11:i++,w.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(t,r,B,n,s){return P(this,void 0,void 0,function(){var i,a,o,Q,g,w,f,c,C,H,h,F,K,p,d,l;return _(this,function(v){return this.ctx.save(),i=function(e,A){switch(A){case 0:return nr(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return nr(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return nr(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return nr(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(n,B),a=tn(n,B),2===s&&(this.path(a),this.ctx.clip()),eA(a[0])?(o=a[0].start.x,Q=a[0].start.y):(o=a[0].x,Q=a[0].y),eA(a[1])?(g=a[1].end.x,w=a[1].end.y):(g=a[1].x,w=a[1].y),f=0===B||2===B?Math.abs(o-g):Math.abs(Q-w),this.ctx.beginPath(),this.formatPath(3===s?i:a.slice(0,2)),c=r<3?3*r:2*r,C=r<3?2*r:r,3===s&&(c=r,C=r),H=!0,f<=2*c?H=!1:f<=2*c+C?(c*=h=f/(2*c+C),C*=h):(F=Math.floor((f+C)/(c+C)),K=(f-F*c)/(F-1),C=(p=(f-(F+1)*c)/F)<=0||Math.abs(C-K) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +rgbcolor +MIT OR SEE LICENSE IN FEEL-FREE.md +Copyright (c) 2016 Stoyan Stefanov, http://phpied.com/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +Exemptions +========== + +Please either apply this, the MIT license, or the license in './FEEL-FREE.md' + + +rxjs +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +stackblur-canvas +MIT +Copyright (c) 2010 Mario Klingemann + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +svg-pathdata +MIT +The MIT License (MIT) +Copyright © 2017 Nicolas Froidure + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the “Software”), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +tslib +0BSD +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +zone.js +MIT +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.io/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/ClientApp/staff-db-ui/dist/426.76e714807174469a.js b/ClientApp/staff-db-ui/dist/426.76e714807174469a.js new file mode 100644 index 0000000..f26c4ed --- /dev/null +++ b/ClientApp/staff-db-ui/dist/426.76e714807174469a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkstaffdb=self.webpackChunkstaffdb||[]).push([[426],{21009:(v,T,l)=>{l.d(T,{n:()=>ce});var g=l(10467),e=l(54438),h=l(67336),u=l(89417),y=l(33514),E=l(37712),x=l(94753),k=l(96354),p=l(86600),m=l(15311),f=l(60177),a=l(18406),r=l(19664),_=l(12748),I=l(85956),S=l(99213),C=l(44613),F=l(224),R=l(83269),L=l(1776),M=l(43684),O=l(87283),b=l(31837);const w=["cbInput"],B=["hs_panel"],G=["hs_toolbar"],A=["hs_matformfield"],N=["grid_hensel"],H=["hensel_selection"],j=o=>({exportAll:o}),V=o=>({value:o});function W(o,c){if(1&o){const t=e.RV6();e.j41(0,"div")(1,"div",34),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.clickArrow())}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}if(2&o){const t=c.$implicit,s=e.XpG(2);e.R7$(),e.HbH("hs_grid_header"+(s.disabled?"":" hs_pointer")),e.R7$(),e.SpI(" ",e.bMT(3,3,t.column.caption)," ")}}function $(o,c){1&o&&e.nrm(0,"mat-spinner",35)}function K(o,c){if(1&o){const t=e.RV6();e.j41(0,"dx-data-grid",23,6),e.nI1(2,"translate"),e.bIt("onKeyDown",function(i){return e.eBV(t),e.Njj(i.handled="Escape"===i.event.key)})("onExporting",function(i){e.eBV(t);const n=e.XpG();return e.Njj(n.clickArrow(i))}),e.nrm(3,"dxo-export",24)(4,"dxo-header-filter",25)(5,"dxo-filter-row",26)(6,"dxo-paging",27)(7,"dxo-scrolling",28)(8,"dxo-load-panel",27)(9,"dxo-sorting",29)(10,"dxo-selection",30),e.j41(11,"dxi-column",31),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.clickArrow())}),e.k0s(),e.DNE(12,W,4,5,"div",32)(13,$,1,0,"mat-spinner",33),e.k0s()}if(2&o){const t=e.XpG();e.HbH("hs_grid withexport"+(t.requiredError()?" hs_required":"")),e.FS9("noDataText",e.bMT(2,26,"core.grid.nodata")),e.Y8G("width",t.width)("height",t.height)("title",t.title)("dataSource",t.selectedItemsGrid)("keyExpr",t.keyExpr)("focusedRowEnabled",!1)("autoNavigateToFocusedRow",!0)("showBorders",!0)("showRowLines",!1)("allowColumnResizing",!1)("columnAutoWidth",!1)("columnMinWidth",30),e.R7$(3),e.Y8G("enabled",!t.disabled)("texts",e.eq3(28,j,t.translate.instant("core.hensel-selection.processlist"))),e.R7$(),e.Y8G("visible",!1),e.R7$(),e.Y8G("visible",!1)("applyFilter",!0),e.R7$(),e.Y8G("enabled",!1),e.R7$(2),e.Y8G("enabled",!0),e.R7$(3),e.Y8G("caption",t.placeholder+(t._selectedItemIds.length===t._dataSource.length?" ("+t.translate.instant("core.caption.all")+")":"")+(t.requiredError()?" *":""))("dataField",t.displayExpr),e.R7$(),e.Y8G("dxTemplateOf","headerWithArrow"),e.R7$(),e.Y8G("ngIf",t.showSpinner)}}function U(o,c){if(1&o&&(e.j41(0,"mat-hint")(1,"div"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&o){const t=e.XpG();e.R7$(),e.Aen("color: red; background-color:"+t.backgroundColor4Grid+";"),e.R7$(),e.JRh(e.bMT(3,3,"core.hensel-selection.nohits"))}}function Y(o,c){if(1&o&&(e.j41(0,"mat-hint")(1,"div"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&o){const t=e.XpG();e.R7$(),e.Aen("color: red; background-color:"+t.backgroundColor4Grid+";"),e.R7$(),e.SpI(" ",e.i5U(3,3,"core.hensel-selection.inputminsybols",e.eq3(6,V,t.minFilterLength4Search))," ")}}function X(o,c){}function z(o,c){if(1&o&&(e.j41(0,"span",36),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.JRh(t.getIcon4Selected())}}function Q(o,c){1&o&&e.nrm(0,"mat-spinner",37)}function J(o,c){if(1&o&&(e.j41(0,"div",38),e.nrm(1,"div",39),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.Aen(t.disabled?"color: rgba(0, 0, 0, 0.26)":"")}}function Z(o,c){if(1&o){const t=e.RV6();e.j41(0,"button",40),e.bIt("click",function(i){e.eBV(t);const n=e.XpG();return e.Njj(n.clickClear(i))})("blur",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.leaveFocus())})("focus",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.startLeaveFocus=!1)}),e.j41(1,"mat-icon"),e.EFF(2,"close"),e.k0s()()}if(2&o){const t=e.XpG();e.Y8G("disabled",t.disabled)}}function q(o,c){if(1&o){const t=e.RV6();e.j41(0,"mat-checkbox",49),e.mxI("ngModelChange",function(i){e.eBV(t);const n=e.XpG(2);return e.DH7(n.selectedFirst,i)||(n.selectedFirst=i),e.Njj(i)}),e.k0s()}if(2&o){const t=e.XpG(2);e.R50("ngModel",t.selectedFirst)}}function ee(o,c){1&o&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.JRh(e.bMT(2,1,"core.hensel-selection.selectedfirst")))}function te(o,c){1&o&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.JRh(e.bMT(2,1,"core.btn.apply")))}function ie(o,c){if(1&o){const t=e.RV6();e.j41(0,"dx-button",50),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.autocompleteTrigger.closePanel())}),e.k0s()}}function se(o,c){1&o&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.JRh(e.bMT(2,1,"core.btn.cancel")))}function ne(o,c){if(1&o){const t=e.RV6();e.j41(0,"div",41,7)(2,"mat-checkbox",42,8),e.bIt("change",function(i){e.eBV(t);const n=e.XpG();return e.Njj(n.setAll(i.checked))}),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.DNE(7,q,1,1,"mat-checkbox",43),e.j41(8,"dx-tooltip",44,9),e.DNE(10,ee,3,3,"div",32),e.k0s(),e.j41(11,"dx-button",45),e.bIt("click",function(){e.eBV(t);const i=e.sdS(13);return e.XpG().selectionDone(),e.Njj(i.instance.hide())}),e.k0s(),e.j41(12,"dx-tooltip",46,10),e.DNE(14,te,3,3,"div",32),e.k0s(),e.DNE(15,ie,1,0,"dx-button",47),e.j41(16,"dx-tooltip",48,11),e.DNE(18,se,3,3,"div",32),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(2),e.Y8G("checked",1===t.selectedAllNonePart)("indeterminate",0===t.selectedAllNonePart),e.R7$(3),e.JRh(e.bMT(6,14,"core.caption.all")),e.R7$(2),e.Y8G("ngIf",t.useSelFirstButton),e.R7$(),e.Y8G("target","#cbCheckedFirst"),e.R7$(2),e.Y8G("dxTemplateOf","content"),e.R7$(),e.Aen(t.useSelFirstButton?"":"margin-left: auto"),e.Y8G("disabled",t.lastSelection===t.getSelection(t.selectedItems)||!t.canClear&&t.isEmpty()),e.R7$(),e.Y8G("target","#buttonLayoutOk"),e.R7$(2),e.Y8G("dxTemplateOf","content"),e.R7$(),e.Y8G("ngIf",t.useCloseButton),e.R7$(),e.Y8G("target","#buttonLayoutCancel"),e.R7$(2),e.Y8G("dxTemplateOf","content")}}function oe(o,c){if(1&o&&(e.j41(0,"mat-icon"),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2).$implicit,s=e.XpG();e.R7$(),e.SpI(" ",s.displayIconFn(t.link),"")}}function le(o,c){if(1&o){const t=e.RV6();e.j41(0,"mat-checkbox",54),e.bIt("change",function(){e.eBV(t);const i=e.XpG().$implicit,n=e.XpG();return e.Njj(n.toggleSelection(i))})("click",function(i){return e.eBV(t),e.Njj(i.stopPropagation())}),e.DNE(1,oe,2,1,"mat-icon",55),e.j41(2,"span",56),e.EFF(3),e.k0s()()}if(2&o){const t=e.XpG().$implicit,s=e.XpG();e.Y8G("checked",s.checkInSelected(t))("disabled",t.disabled),e.R7$(),e.Y8G("ngIf",s.displayIconFn),e.R7$(2),e.JRh(t[s.displayExpr])}}function re(o,c){if(1&o&&(e.j41(0,"mat-icon"),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2).$implicit,s=e.XpG();e.R7$(),e.SpI(" ",s.displayIconFn(t.link),"")}}function ae(o,c){if(1&o&&(e.j41(0,"div",56),e.DNE(1,re,2,1,"mat-icon",55),e.EFF(2),e.k0s()),2&o){const t=e.XpG().$implicit,s=e.XpG();e.R7$(),e.Y8G("ngIf",s.displayIconFn),e.R7$(),e.SpI(" ",t[s.displayExpr]," ")}}function de(o,c){if(1&o){const t=e.RV6();e.j41(0,"mat-option",51),e.bIt("onSelectionChange",function(i){e.eBV(t);const n=e.XpG();return e.Njj(n.itemSelectedByKeyboard(i))}),e.j41(1,"div",34),e.bIt("click",function(i){const n=e.eBV(t).$implicit,d=e.XpG();return e.Njj(d.itemClicked(i,n))}),e.DNE(2,le,4,4,"mat-checkbox",52)(3,ae,3,2,"div",53),e.k0s()()}if(2&o){const t=c.$implicit,s=e.XpG();e.HbH((s.useCBChangedColor?"changedCBColor":"")+" "+(s.useLabelChangedColor?"changedLabelColor":"")+" "+(s.checkInSelected(t)?s.multiSelect?"multi_selected":"selected":"not_selected")+" "+(s.multiSelect&&s.checkChanged(t)?"changed":"")),e.Y8G("disabled",t.disabled),e.R7$(2),e.Y8G("ngIf",s.multiSelect),e.R7$(),e.Y8G("ngIf",!s.multiSelect)}}let ce=(()=>{class o{set dataSource(t){this._origDataSource=t,this.applyCustomFilterAsync()}set reprepareImmedeately(t){t&&(this.applyCustomFilterAsync(),setTimeout(()=>{this.reprepareImmedeatelyChange.emit(this.reprepareImmedeately)}))}get reprepareImmedeately(){return!1}get keyExpr(){return this._keyExpr}set keyExpr(t){this._keyExpr=t,this.applyCustomFilterAsync()}get displayExpr(){return this._displayExpr}set displayExpr(t){this._displayExpr=t,this.applyCustomFilterAsync()}get required(){return this._required}set required(t){"string"==typeof t&&(t="false"!==t),this.setRequired(t),console.log("**** - Hensel-Sel: "+this.placeholder+" set required",t),this.updateParent()}get disabled(){return this._disabled}set disabled(t){t="string"==typeof t?"false"!==t:t,this.showSpinner||this.setDisable(t),this.lastDisabled=t}get selectedFirst(){return!(this._dataSource&&this._dataSource.length>200||!this.multiSelect)&&this._selectedFirst}set selectedFirst(t){this._selectedFirst=t,this.itemsControl.setValue(this.lastFilter)}set customFilter(t){this._customFilter=t?t.split(","):[],this.applyCustomFilterAsync()}get customFilterFn(){return this._customFilterFn}set customFilterFn(t){this._customFilterFn=t,this.applyCustomFilterAsync()}set selectedItems(t){this.setValueInternally(t instanceof Array?t.slice():t,!0),this.lastSelection=this._selectedItemIds}get selectedItems(){return this._selectedItemIds}get useResultGrid(){return this._useResultGrid}set useResultGrid(t){this._useResultGrid=t}get minFilterLength4Search(){let t=0;return 0===this._minFilterLength4Search?t=this.getMinFilterLength4Search(this._dataSource.length):this._minFilterLength4Search>0&&(t=this._minFilterLength4Search),0!==this._customFilter.length||this._customFilterFn?Math.min(this.getMinFilterLength4Search(this._dataSource.length),t):t}set minFilterLength4Search(t){this._minFilterLength4Search=t}set sortField(t){this._sortField=t,this._sortField&&"-"===this._sortField.slice(0,1)?(this.sortDirection=-1,this._sortField=this._sortField.slice(1)):this.sortDirection=1,this.applyCustomFilterAsync()}get sortField(){return this._sortField}get formControlName(){return"henselSelectionControl_"+this.name}get parent(){return this._parent}set parent(t){this._parent=t??this._parentForm,this.hsRequiredsubscription?.unsubscribe(),this.hsRequiredsubscription=this.parent?.valueChanges.subscribe(()=>this.checkRequired()),this.markAsTouchedDirty()}get openWithFilter(){return this._newfilter}set openWithFilter(t){this._newfilter=t,!this.showSpinner&&this.initialised&&this._origDataSource&&0!==this._origDataSource.length&&void 0!==t&&setTimeout(()=>{this.itemsControl.setValue(t),t&&this.cbInput?.nativeElement?.focus()})}get canClear(){return this._canClear}set canClear(t){this._canClear=t}get title(){let t=this._title;return!t&&this.cbInput&&this.cbInput.nativeElement&&this.cbInput.nativeElement.clientWidthi.keyCode!==h.Fm||!this.multiSelect||(this.selectionDone(),i.stopPropagation(),!1),this.displayFn=i=>{let n="";return Array.isArray(i)?(this._dataSource&&i.forEach(d=>{const D=this._dataSource.find(P=>P[this.keyExpr]===d);D?n+=this.separator+" "+this.displayItem(D):this.selectionNotFound&&(n+=this.separator+" "+this.selectionNotFound(d))}),n=n.slice(this.separator.length+1)):n=i,n},this.compare2items=(i,n)=>i[this._sortField]?"number"==typeof i[this._sortField]?(i[this._sortField]-n[this._sortField])*this.sortDirection:i[this._sortField].localeCompare(n[this._sortField])*this.sortDirection:0,this.openDropDown=()=>{this.disabled||(0===this.dropDownState&&(this.multiSelect&&window.addEventListener("keydown",this.onKeyDown,{once:!0}),this.orgRequired=this.required,this.isEmpty()||this.setRequired(!1),this.lastSelection=this._selectedItemIds,!this.multiSelect&&this._selectedItemIds.length>0&&setTimeout(()=>{this.lastActiveItemIndex=this._dataSource.findIndex(i=>i[this.keyExpr]===this._selectedItemIds[0]),this.autocompleteTrigger.autocomplete._keyManager.setActiveItem(this.lastActiveItemIndex),this.scrollToOption()},0)),this.filteredItems.length>0?this.dropDownState=1:(1===this.dropDownState&&this.autocompleteTrigger.panelOpen&&this.autocompleteTrigger.closePanel(),this.dropDownState=2),this.itemsControl.setValue(this.lastFilter))},this.closeDropDown=()=>{this.currentScrollTop=0,(!this.hasFocus||2!==this.dropDownState)&&(setTimeout(()=>{this.lastFilter=""}),this.setValueInternally(this.lastSelectedItemIds),this.dropDownState=0,this.setRequired(this.orgRequired),this.multiSelect&&window.removeEventListener("keydown",this.onKeyDown,{once:!0}))},this.takeFocus=()=>{this.startLeaveFocus=!1,this.hasFocus=!0,this.openDropDown(),this.focus.emit(this)},this.leaveFocus=()=>{this.hasFocus=!1,2===this.dropDownState&&(this.startLeaveFocus=!0,setTimeout(()=>{this.startLeaveFocus&&this.closeDropDown(),this.startLeaveFocus=!1}))},this.applyCustomFilterAsync=this.applyCustomFilterAsync.bind(this),t.onLangChange.subscribe(()=>this.applyCustomFilterAsync())}ngOnInit(){this.items2filter=this.itemsControl.valueChanges.pipe((0,k.T)(t=>"string"==typeof t?t:this.lastFilter),(0,k.T)(t=>this.applyFilter(t))),this.items2filter.subscribe(()=>setTimeout(()=>{this.applyMarkFiltered(this.lastFilter)})),this.showInputField=!this.useResultGrid,setTimeout(()=>{this.parent||(this.parent=this._parent)},0)}ngAfterViewInit(){void 0===this.lastShowSpinner&&this.setShowSpinner(!0),setTimeout(()=>{this.initialised=!0,this.applyCustomFilterAsync(),this.backgroundColor4Grid=this.getBackgroundColor(this.hsElementRef.nativeElement)},0)}getMinFilterLength4Search(t){return t>5e3?4:t>1e3?3:t>300?2:0}setShowSpinner(t){setTimeout(()=>{this._showSpinner=t,this.setDisable(!!t||this.lastDisabled),this.openWithFilter=this.openWithFilter},0)}setDisable(t){this._disabled=t,this.disabled?(this.autocompleteTrigger?.closePanel(),this.itemsControl.disable()):this.itemsControl.enable()}setRequired(t){this._required=t}setValueInternally(t,s=!1){this._selectedItemIds||(this._selectedItemIds=[]),t instanceof Array?this._selectedItemIds.splice(0,this._selectedItemIds.length,...t):(this._selectedItemIds.splice(0),t&&this._selectedItemIds.push(t)),this.updateGrid(),this.itemsControl.setValue(this._selectedItemIds),console.log("**** - Hensel-Sel: "+this.placeholder+" set value internaly",t),s&&this.updateParent()}getBackgroundColor(t){const s=window.getComputedStyle(t,null).getPropertyValue("background-color");return"rgba(0, 0, 0, 0)"===s&&t?.parentElement?this.getBackgroundColor(t.parentElement):s}checkInSelected(t){return this._selectedItemIds.indexOf(t[this.keyExpr])>=0}checkChanged(t){return this.checkInSelected(t)^this.lastSelectedItemIds.indexOf(t[this.keyExpr])>=0}inputFilter(t){return t.keyCode===h.Fm||t.keyCode===h.wn&&!this.multiSelect?(1===this.filteredItems.length&&this.toggleSelection(this.filteredItems[0]),this.multiSelect||this.cbInput.nativeElement.blur(),t.keyCode!==h.Fm||(t.stopPropagation(),!1)):t.keyCode===h.i7||t.keyCode===h.n6?(this.multiSelect?this.autocompleteTrigger.autocomplete._keyManager.setActiveItem(null):(void 0!==this.lastActiveItemIndex&&this.autocompleteTrigger.autocomplete._keyManager.setActiveItem((this.lastActiveItemIndex+(t.keyCode===h.i7?-1:1)+this._dataSource.length)%this._dataSource.length),this.lastActiveItemIndex=void 0,this.scrollToOption()),t.stopPropagation(),!1):((t.keyCode!==h.wn&&t.keyCode!==h._f&&!this.lastFilter||t.keyCode===h._f&&this.lastFilter)&&this.itemsControl.setValue(""),!0)}itemSelectedByKeyboard(t){t.isUserInput&&this.autocompleteTrigger.autocomplete._keyManager.activeItem&&this.toggleSelection(this.filteredItems[this.autocompleteTrigger.autocomplete._keyManager.activeItemIndex])}displayItem(t,s=!1){if(s){const i=this.translate.instant(t[this.displayExpr]);return this.displayTemplate?this.displayTemplate.replace(/\${(.*?)}/g,(n,d)=>t[d]??"").replace("",t[this.keyExpr]??"").replace("",i):i}return t[this.displayExpr]}checkRequired(){this.requiredError()&&this.formGroup?.setErrors({required:!0})}requiredError(){let t=this.required;return 0!==this.dropDownState&&(t=this.orgRequired),!this.disabled&&void 0!==t&&!1!==t&&this.isEmpty()}applyFilter(t){if(this.lastFilter=t,0!==this.dropDownState){if(t.length0){const i=t.toLowerCase();this.filteredItems=this._dataSource.filter(n=>this.displayItem(n).toLowerCase().indexOf(i)>=0)}else this.filteredItems=this._dataSource.slice();this.selectedFirst&&this.filteredItems.sort((i,n)=>{let d=0;return this.selectedFirst&&(d=this.checkInSelected(n)-this.checkInSelected(i)),0===d&&this._sortField&&(d=i[this._sortField]?this.compare2items(i,n):-1),d});const s=this.isEmpty()?0:this.filteredItems.filter(i=>this._selectedItemIds.indexOf(i[this.keyExpr])>=0).length;this.selectedAllNonePart=0===s?-1:s===this.filteredItems.length?1:0,1===this.dropDownState&&0===this.filteredItems.length&&(this.dropDownState=2)}return this.filteredItems}prepareDataSource(){this._dataSource=this._customFilter.length>0?this._origDataSource.filter(t=>!this._customFilter.some(s=>{let i=s.split("!=");return 2===i.length?" "===i[1]?null===t[i[0]]:""+t[i[0]]===i[1]:(i=s.split("="),2===i.length?""+t[i[0]]!==i[1]:(i=s.split("<"),2===i.length?Number.isNaN(Number(t[i[0]]))||Number.isNaN(Number(i[1]))?!(""+t[i[0]]"),2===i.length?Number.isNaN(Number(t[i[0]]))||Number.isNaN(Number(i[1]))?!(""+t[i[0]]>i[1]):!(Number(t[i[0]])>Number(i[1])):(i=s.split("<="),2===i.length?Number.isNaN(Number(t[i[0]]))||Number.isNaN(Number(i[1]))?!(""+t[i[0]]<=i[1]):!(Number(t[i[0]])<=Number(i[1])):(i=s.split(">="),!(2!==i.length||(Number.isNaN(Number(t[i[0]]))||Number.isNaN(Number(i[1]))?""+t[i[0]]>=i[1]:Number(t[i[0]])>=Number(i[1]))))))))})):this._origDataSource.slice(),this.customFilterFn&&(this._dataSource=this._dataSource.filter(t=>this.customFilterFn(t)))}applyCustomFilterAsync(){var t=this;return(0,g.A)(function*(){if(!t.initialised||!t._origDataSource)return;const s=!t._dataSource?.length;t.prepareDataSource(),t.displayExpr||(t._displayExpr="display"),"*"===t._sortField&&(t._sortField=t.displayExpr),t._dataSource=t._dataSource.map((n,d,D)=>Object(t._sortField&&t._sortField!==t.displayExpr&&t._sortField!==t.keyExpr?{[t.keyExpr]:n[t.keyExpr],[t.displayExpr]:t.displayItem(n,!0),[t.sortField]:t._sortField?n[t._sortField]:"",link:n,disabled:t.disabledItems.indexOf(n[t.keyExpr])>-1}:{[t.keyExpr]:n[t.keyExpr],[t.displayExpr]:t.displayItem(n,!0),link:n,disabled:t.disabledItems.indexOf(n[t.keyExpr])>-1}));let i=!1;if(t._dataSource.length>0||!s){const n=t._dataSource.map(d=>d[t.keyExpr]);for(let d=t._selectedItemIds.length-1;d>=0;d--)-1===n.indexOf(t._selectedItemIds[d])&&(t.selectionNotFound||(t._selectedItemIds.splice(d,1),i=!0))}t._sortField&&t._dataSource.sort((n,d)=>t.compare2items(n,d)),console.log("**** - Hensel-Sel: "+t.placeholder+" current id=",t._selectedItemIds,"lenght=",t._dataSource.length," wasempty=",!s,"waschanged=",i),t.itemsControl.setValue(t._selectedItemIds),t.updateGrid(),t._origDataSource.length>0&&void 0===t.lastShowSpinner?t.setShowSpinner(!1):t.openWithFilter=t.openWithFilter,i&&(console.log("**** - Hensel-mark "+t.placeholder+" indirect changed"),setTimeout(()=>t.updateParent())),t.markAsTouchedDirty()})()}updateGrid(){this.useResultGrid&&(this.selectedItemsGrid=this._dataSource&&this._selectedItemIds&&this._selectedItemIds.length>0?this._dataSource.filter(t=>this._selectedItemIds.indexOf(t[this.keyExpr])>=0):[])}applyMarkFiltered(t){if(!this.useMarkFiltered||1!==this.dropDownState)return;const s=this.autocompleteScrollPanel.nativeElement.getElementsByClassName("item");if(s)for(let i=0;i"),d=n<0?"":s[i].innerHTML.slice(0,n+11);s[i].innerHTML=""===t?d+this.displayItem(this.filteredItems[i]):d+this.displayItem(this.filteredItems[i]).replace(new RegExp(t+"(?!([^<]+)?<)","gi"),'$&')}}itemClicked(t,s){t.stopPropagation(),this.toggleSelection(s)}toggleSelection(t){if(!t.disabled){if(this.multiSelect||(this._selectedItemIds=[]),this.checkInSelected(t)){const s=this._selectedItemIds.indexOf(t[this.keyExpr]);this._selectedItemIds.splice(s,1)}else this._selectedItemIds.push(t[this.keyExpr]);this.minFilterLength4Search||(this.lastFilter="",this.itemsControl.setValue(this.lastFilter)),this.multiSelect?this.itemsControl.setValue(this._selectedItemIds):(this.itemsControl.setValue(this.displayFn(this._selectedItemIds)),this.selectionDone())}}isEmpty(){return 0===this._selectedItemIds.length}scrollToOption(){const t=this.autocompleteTrigger.autocomplete,s=t._keyManager.activeItemIndex||0,i=(0,p.jb)(s,t.options,t.optionGroups);if(0===s&&1===i)t._setScrollTop(0);else if(s>-1&&t.panel){const n=t.panel.nativeElement.offsetHeight-(this.autocompleteToolbar?.nativeElement.offsetHeight||0),d=t.options.first?._element?.nativeElement?.offsetHeight||30;this.currentScrollTop=(0,p.TL)((s+i)*d,d,this.currentScrollTop,n),t._setScrollTop(this.currentScrollTop)}}setAll(t){t?this.selectAll():this.deselectAll()}selectAll(){this.setValueInternally(this._selectedItemIds.concat(this.filteredItems.map(t=>t[this.keyExpr]).filter(t=>-1===this._selectedItemIds.indexOf(t))))}deselectAll(){const t=this.filteredItems.map(s=>s[this.keyExpr]);this.setValueInternally(this._selectedItemIds.filter(s=>-1===t.indexOf(s)))}getSelection(t){return t.sort((s,i)=>s-i).join()}updateParent(){this.formGroup?.updateValueAndValidity()}selectionDone(){const t=this.getSelection(this._selectedItemIds);if(this.lastSelection!==t){if(this.validate&&!this.validate(this._selectedItemIds))return;this.lastSelection=this._selectedItemIds,console.log("**** - Hensel-Sel: "+this.placeholder+" selection done"),this.updateParent(),this.selectedItemsChange.emit(this.multiSelect?this._selectedItemIds.slice():this._selectedItemIds.length>0?this._selectedItemIds[0]:null),this.selectedItemsDisplayChange.emit(this.displayFn(this._selectedItemIds))}this.autocompleteTrigger.closePanel()}clickClear(t){t.stopPropagation(),this.lastFilter?setTimeout(()=>{this.itemsControl.setValue(""),this.cbInput?.nativeElement?.focus()},300):(this.lastSelection=this._selectedItemIds,this.setValueInternally(null!=this.defaultValue?[this.defaultValue]:[]),this.selectionDone())}clickArrow(t){this.disabled||(this.showInputField=!0,setTimeout(()=>{this.cbInput?.nativeElement?.focus()},0),t&&(t.cancel=!0))}ngOnDestroy(){this.hsRequiredsubscription&&this.hsRequiredsubscription.unsubscribe()}getIcon4Selected(){return this.displayIconFn?this.displayIconFn(this._dataSource.find(t=>t[this.keyExpr]===this._selectedItemIds[0])?.link):null}markAsDirty(){this.hsMatFormField?._control?.ngControl?.control&&(this.hsMatFormField._control.ngControl.control.markAsDirty(),console.log("**** - Hensel-mark "+this.placeholder+" as dirty"),this.updateParent())}markAsTouched(){this.hsMatFormField?._control?.ngControl?.control&&(this.hsMatFormField._control.ngControl.control.markAsTouched(),console.log("**** - Hensel-mark "+this.placeholder+" as touched"),this.updateParent())}markAsTouchedDirty(){this.hsMatFormField?._control?.ngControl?.control&&this.required&&this.isEmpty()&&(this.hsMatFormField._control.ngControl.control.markAsTouched(),this.hsMatFormField._control.ngControl.control.markAsDirty(),console.log("**** - Hensel-mark "+this.placeholder+" as touched/dirty"),this.updateParent())}static#e=this.\u0275fac=function(s){return new(s||o)(e.rXU(_.X),e.rXU(u.cV,8))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["hensel-selection"]],viewQuery:function(s,i){if(1&s&&(e.GBs(m.cm,5),e.GBs(w,5),e.GBs(B,5),e.GBs(G,5),e.GBs(A,5),e.GBs(N,5),e.GBs(H,5)),2&s){let n;e.mGM(n=e.lsd())&&(i.autocompleteTrigger=n.first),e.mGM(n=e.lsd())&&(i.cbInput=n.first),e.mGM(n=e.lsd())&&(i.autocompleteScrollPanel=n.first),e.mGM(n=e.lsd())&&(i.autocompleteToolbar=n.first),e.mGM(n=e.lsd())&&(i.hsMatFormField=n.first),e.mGM(n=e.lsd())&&(i.grid_hensel=n.first),e.mGM(n=e.lsd())&&(i.hsElementRef=n.first)}},hostBindings:function(s,i){1&s&&e.bIt("keydown",function(d){return i.inputFilter(d)})},inputs:{dataSource:"dataSource",reprepareImmedeately:"reprepareImmedeately",keyExpr:"keyExpr",displayExpr:"displayExpr",required:"required",disabled:"disabled",selectedFirst:"selectedFirst",validate:"validate",customFilter:"customFilter",customFilterFn:"customFilterFn",selectedItems:"selectedItems",placeholder:"placeholder",multiSelect:"multiSelect",separator:"separator",width:"width",height:"height",displayTemplate:"displayTemplate",displayIconFn:"displayIconFn",id:"id",name:"name",useCloseButton:"useCloseButton",useMarkFiltered:"useMarkFiltered",useSelFirstButton:"useSelFirstButton",useCBChangedColor:"useCBChangedColor",useResultGrid:"useResultGrid",useLabelChangedColor:"useLabelChangedColor",backgroundColor:"backgroundColor",minFilterLength4Search:"minFilterLength4Search",sortField:"sortField",parent:"parent",openWithFilter:"openWithFilter",hsClass:"hsClass",selectionNotFound:"selectionNotFound",autofocus:"autofocus",canClear:"canClear",defaultValue:"defaultValue",tabindex:"tabindex",title:"title",showSpinner:"showSpinner",disabledItems:"disabledItems"},outputs:{reprepareImmedeatelyChange:"reprepareImmedeatelyChange",selectedItemsChange:"selectedItemsChange",selectedItemsDisplayChange:"selectedItemsDisplayChange",dropDownClosed:"dropDownClosed",focus:"focus"},standalone:!0,features:[e.aNF],decls:24,vars:47,consts:[["hensel_selection",""],["hs_matformfield",""],["nomatch",""],["cbInput",""],["auto","matAutocomplete"],["hs_panel",""],["grid_hensel",""],["hs_toolbar",""],["chkBx",""],["hintCB",""],["hintOk",""],["hintCancel",""],["tabindex","-1",1,"hs_div",3,"title"],["id","hs_grid","columnResizingMode","widget",3,"class","width","height","title","dataSource","keyExpr","focusedRowEnabled","autoNavigateToFocusedRow","showBorders","showRowLines","allowColumnResizing","columnAutoWidth","columnMinWidth","noDataText","onKeyDown","onExporting",4,"ngIf"],[4,"ngIf","ngIfElse"],["class","material-icons",4,"ngIf"],["matInput","","type","search",1,"mat-select-value-text",3,"blur","focus","placeholder","matAutocomplete","formControl","required","name","id","tabindex","autofocus"],["class","hrd-mat-spinner zoom",4,"ngIf"],["class","mat-select-arrow-wrapper","style","cursor: pointer;",4,"ngIf"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear","tabindex","-1",3,"disabled","click","blur","focus",4,"ngIf"],["id","dropdown","tabindex","-1",1,"hs_autocomplete",3,"opened","closed","displayWith"],["id","hs_toolbar","style","display: flex; background-color: rgba(0, 0, 0, .12); height: 40px",4,"ngIf"],[3,"class","disabled","onSelectionChange",4,"ngFor","ngForOf"],["id","hs_grid","columnResizingMode","widget",3,"onKeyDown","onExporting","width","height","title","dataSource","keyExpr","focusedRowEnabled","autoNavigateToFocusedRow","showBorders","showRowLines","allowColumnResizing","columnAutoWidth","columnMinWidth","noDataText"],[3,"enabled","texts"],[3,"visible"],[3,"visible","applyFilter"],[3,"enabled"],["mode","virtual"],["mode","none"],["mode","single"],["width","100%","headerCellTemplate","headerWithArrow",3,"click","caption","dataField"],[4,"dxTemplate","dxTemplateOf"],["class","hrd-mat-spinner",4,"ngIf"],[3,"click"],[1,"hrd-mat-spinner"],[1,"material-icons"],[1,"hrd-mat-spinner","zoom"],[1,"mat-select-arrow-wrapper",2,"cursor","pointer"],[1,"mat-select-arrow","hs_arrow"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear","tabindex","-1",3,"click","blur","focus","disabled"],["id","hs_toolbar",2,"display","flex","background-color","rgba(0, 0, 0, .12)","height","40px"],[1,"mat-option",2,"padding-left","5px","margin-top","5px",3,"change","checked","indeterminate"],["class","cbCheckedFirst","id","cbCheckedFirst",3,"ngModel","ngModelChange",4,"ngIf"],["showEvent","dxhoverstart","hideEvent","dxhoverend",3,"target"],["id","buttonLayoutOk","icon","check",1,"buttonLayoutOk",3,"click","disabled"],["showEvent","dxhoverstart","hideEvent","click dxhoverend","tabindex","-1",3,"target"],["class","buttonLayoutCancel","id","buttonLayoutCancel","icon","clear","tabindex","-1",3,"click",4,"ngIf"],["showEvent","dxhoverstart","hideEvent","click dxhoverend",3,"target"],["id","cbCheckedFirst",1,"cbCheckedFirst",3,"ngModelChange","ngModel"],["id","buttonLayoutCancel","icon","clear","tabindex","-1",1,"buttonLayoutCancel",3,"click"],[3,"onSelectionChange","disabled"],[3,"checked","disabled","change","click",4,"ngIf"],["class","item",4,"ngIf"],[3,"change","click","checked","disabled"],[4,"ngIf"],[1,"item"]],template:function(s,i){if(1&s){const n=e.RV6();e.j41(0,"span",12,0),e.DNE(2,K,14,30,"dx-data-grid",13),e.j41(3,"mat-form-field",null,1),e.DNE(5,U,4,5,"mat-hint",14),e.nI1(6,"async"),e.DNE(7,Y,4,8,"mat-hint",14),e.nI1(8,"async"),e.DNE(9,X,0,0,"ng-template",null,2,e.C5r)(11,z,2,1,"span",15),e.j41(12,"input",16,3),e.bIt("blur",function(){return e.eBV(n),e.Njj(i.leaveFocus())})("focus",function(){return e.eBV(n),e.Njj(i.takeFocus())}),e.k0s(),e.DNE(14,Q,1,0,"mat-spinner",17)(15,J,2,2,"div",18)(16,Z,3,1,"button",19),e.j41(17,"mat-autocomplete",20,4),e.bIt("opened",function(){return e.eBV(n),e.Njj(i.openDropDown())})("closed",function(){return e.eBV(n),i.closeDropDown(),e.Njj(i.showInputField=!i.useResultGrid)}),e.DNE(19,ne,19,16,"div",21),e.j41(20,"div",null,5),e.DNE(22,de,4,5,"mat-option",22),e.nI1(23,"async"),e.k0s()()()()}if(2&s){let n,d;const D=e.sdS(10),P=e.sdS(18);e.xc7("pointer-events",i.disabled&&!i.useResultGrid?"none":void 0)("height",i.useResultGrid?i.height:"unset")("width",i.width),e.Y8G("title",i.title),e.R7$(2),e.Y8G("ngIf",i.useResultGrid),e.R7$(),e.HbH("hs_form"+(i.placeholder?"":" no-placeholder")+" "+i.hsClass),e.xc7("background-color",i.useResultGrid?i.backgroundColor4Grid:i.backgroundColor)("width",i.useResultGrid?"calc("+i.width+" - 2px)":i.width)("top",i.useResultGrid?"calc(-100% + 1px)":0)("left",i.useResultGrid?1:0,"px")("visibility",i.showInputField?"visible":"hidden"),e.R7$(2),e.Y8G("ngIf",!(null!=(n=e.bMT(6,41,i.items2filter))&&n.length)&&i.lastFilter&&i.lastFilter.length>=i.minFilterLength4Search)("ngIfElse",D),e.R7$(2),e.Y8G("ngIf",2===i.dropDownState&&!(null!=(d=e.bMT(8,43,i.items2filter))&&d.length)&&i.lastFilter.length0&&i.dropDownState===i.EN_DropDownStateClosed),e.R7$(),e.Y8G("placeholder",i.placeholder)("matAutocomplete",P)("formControl",i.itemsControl)("required",i.required)("name",i.name)("id",i.id)("tabindex",i.showInputField?i.tabindex:-1)("autofocus",i.autofocus||""===i.autofocus),e.R7$(2),e.Y8G("ngIf",i.showSpinner),e.R7$(),e.Y8G("ngIf",!i.useResultGrid),e.R7$(),e.Y8G("ngIf",i.canClear),e.R7$(),e.Y8G("displayWith",i.displayFn),e.R7$(2),e.Y8G("ngIf",i.multiSelect),e.R7$(),e.Aen("overflow: auto;"+(i.multiSelect?"height: calc(100% - 40px);":"")),e.R7$(2),e.Y8G("ngForOf",e.bMT(23,45,i.items2filter))}},dependencies:[f.MD,f.Sq,f.bT,f.Jj,a.e,I.iV,S.An,C.Ky,C.V3,C.xZ,F.aL,R.d1,L.wS,M.NZ,m.G7,m.cm,u.YN,u.me,u.BC,u.YS,u.vS,u.X1,u.l_,y.L,y.e,O.eC,E.U,E.b,r.h,r.D9,x.N,x.s,b.hVU,b.nj_,b.gtJ,b.ZJU,b.FTx,b.xzc,b.PVd,b.eA9,b.Z6T],styles:['.cell_positive_balance{color:#76b82a} .cell_negative_balance{color:#b22222}.buttonLayoutOk[_ngcontent-%COMP%]{cursor:pointer!important;top:5px;right:5px;margin-left:5px;border-width:0}.buttonLayoutCancel[_ngcontent-%COMP%]{cursor:pointer!important;top:5px;right:5px;margin-left:5px!important;border-width:0}.cbCheckedFirst[_ngcontent-%COMP%]{cursor:pointer!important;margin-top:12px;right:20px;margin-left:auto!important;border-width:0;font-size:smaller;position:relative}.hs_arrow[_ngcontent-%COMP%]{position:relative;top:50%;transform:translateY(-50%)!important}.hs_arrowheader[_ngcontent-%COMP%]{cursor:pointer;float:right;top:-5px}.selected[_ngcontent-%COMP%]{background-color:#0000001f!important;color:#78b7e5!important} .hs_form .mat-form-field-subscript-wrapper{z-index:2} .hs_form .mat-form-field-infix{display:flex}.hs_autocomplete[_ngcontent-%COMP%]{padding-right:0;max-height:300px!important} .hs_autocomplete .cbCheckedFirst .mat-checkbox-inner-container{order:1} .hs_autocomplete .buttonLayoutOk .dx-icon-check{font-size:18px!important;font-weight:700!important;color:green!important} .hs_autocomplete .mat-option{font-size:inherit} .hs_autocomplete .dx-button-content{padding:0!important} .hs_autocomplete .mat-option.multi_selected:not(.mat-option-disabled):not(.changedLabelColor){color:#78b7e5!important} .hs_autocomplete .mat-option.multi_selected.changedLabelColor:not(.mat-option-disabled):not(.changed){color:#78b7e5!important} .hs_autocomplete .mat-option.changed.changedLabelColor:not(.mat-option-disabled){color:#76b82a!important} .hs_autocomplete .mat-option.changed.changedCBColor .mat-checkbox-checked.mat-accent .mat-checkbox-background{background-color:#76b82a!important} .hs_autocomplete .mat-option.changed.changedCBColor:not(.mat-option-disabled) .mat-checkbox-frame{border-color:#76b82a} .hs_autocomplete .hs_marked{background-color:#00000038} .hs_grid .dx-datagrid-export-button .dx-icon-export-excel-button:before{content:"\\f001"!important} .hs_grid .dx-datagrid-export-button .dx-icon-export-excel-button{font-size:25px!important;color:#00000073!important} .hs_grid .dx-datagrid-export-button .dx-icon-xlsxfile:before{content:"\\f001"!important} .hs_grid .dx-datagrid-export-button .dx-icon-xlsxfile{font-size:25px!important;color:#00000073!important} .hs_grid .dx-button .dx-button-content{left:0}.hs_grid_header[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.hs_required[_ngcontent-%COMP%] .hs_grid_header[_ngcontent-%COMP%]{color:red} .hs_required .dx-datagrid-nodata{color:red}.hs_pointer[_ngcontent-%COMP%]{cursor:pointer}.hs_div[_ngcontent-%COMP%]{outline:none;pointer-events:auto}.zoom[_ngcontent-%COMP%]{transform:scale(.2)} .hs_form:has(.material-icons.ng-star-inserted) .mat-form-field-suffix{bottom:8px} .hs_form.no-placeholder .mat-form-field-infix{border-top-width:0px}']})}return o})()},27938:(v,T,l)=>{l.d(T,{q:()=>k});var g=l(10467),e=l(19057),h=l(54438),u=l(18498),y=l(62560),E=l(76461),x=l(66664);let k=(()=>{class p{constructor(f,a,r,_,I){this.router=f,this.authService=a,this.globals=r,this.pageLoadingService=_,this.appLogsService=I}canLoad(f,a){return!0}canActivate(f,a){var r=this;return(0,g.A)(function*(){let _=!0;const I=a.url.slice(1).split("/");if(r.authService.useJWT&&!r.authService.checkJWT(0)&&r.authService.isLoggedIn()){if(r.authService.expiredJWTLogout=!0,yield r.authService.tryRenewJWTAsync(!1))return!0}else{const S=I[0].split("?")[0],C=r.globals.getPage(S);if(r.globals.isTheLoginPage(a.url)||r.authService.isLoggedIn()){if(C&&C.hidden&&!C.allowRedirect)return!1;let F=null;return I.length>1&&(F=I[I.length-1]),r.globals.currentPage===S&&C.dontAllowEmptyURL&&!F&&r.globals.urlParam&&(F=r.globals.urlParam,a.url+="/"+F,_=!1),r.globals.currentPage=S,r.globals.urlParam=F,r.pageLoadingService.pageActive$.next(r.globals.urlParam),r.appLogsService.dlog("!! Goto",a.url),_}}if(!r.globals.isTheLoginPage(a.url)){const S={queryParams:{returnUrl:a.url}};r.globals.currentPage=e.m0.path,r.appLogsService.dlog("!! Goto "+e.m0.path,a.url),r.router.navigate(["/"+e.m0.path],S)}return!1})()}static#e=this.\u0275fac=function(a){return new(a||p)(h.KVO(u.Ix),h.KVO(y.V),h.KVO(e.RV),h.KVO(E.V),h.KVO(x.w))};static#t=this.\u0275prov=h.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},76461:(v,T,l)=>{l.d(T,{V:()=>p});var g=l(54438),e=l(33570),h=l(84412),u=l(21413),y=l(12748),E=l(19057),x=l(66664),k=l(36554);let p=(()=>{class m{static#e=this.delayBackgroundPageLoaded=750;get noOfHttpQueries4Page(){return this._noOfHttpQueries4Page}set noOfHttpQueries4Page(a){a.forEach((r,_)=>{this._noOfHttpQueries4Page[_]>-1&&(this._noOfHttpQueries4Page[_]=r)})}get onPageLoagingWaitBackgroundLoadingFinished(){return this._onPageLoagingWaitBackgroundLoadingFinished}set onPageLoagingWaitBackgroundLoadingFinished(a){this._onPageLoagingWaitBackgroundLoadingFinished=a,this.waitBackgroundLoadingFinished=a}constructor(a,r,_){this.globals=a,this.appLogsservice=r,this.spinnerService=_,this.spinnerVisible=0,this.forgroundLoading$=new h.t(null),this.backgroundLoading$=new h.t(null),this.pageActive$=new u.B,this._noOfHttpQueries4Page=[],this.startBackgroundLoading=!1,this.waitBackgroundLoadingFinished=!1,this.arLoadedCompletedCallBacks=[],this.translationService=(0,g.WQX)(y.X),this._onPageLoagingWaitBackgroundLoadingFinished=!1,this.startBackgroundLoadingAfterPageIsLoaded=!0,this.globals.appPages.forEach(I=>this.noOfHttpQueries4Page.push(-1))}startSpinner(a=!0,r){this.startBackgroundLoading=a||this.startBackgroundLoading,r&&this.arLoadedCompletedCallBacks.push(r),this.showSpinner()}showSpinner(){0==this.spinnerVisible++&&(this.appLogsservice.dlog("%cshow spinner",{guid:"spinner"},"color:"+e.W1.hideSpinnerColor),this.spinnerService.show())}allData4PageAreLoaded(a=-1){return a>-1&&ar<=0)}updatePageLoadedCounters(a){if(null!==a){const r=this.globals.isTheLoginPage(this.globals.appPages[a].path)?a:this.globals.getPageIndex(this.globals.currentPage);this.noOfHttpQueries4Page[a]>0&&this.noOfHttpQueries4Page[a]--,a{this.hideSpinner(),this.doCallBacks(),this.waitBackgroundLoadingFinished=this.onPageLoagingWaitBackgroundLoadingFinished,r===a&&this.startBackgroundLoadingAfterPageIsLoaded&&(this.spinnerVisible+=1,this.waitBackgroundLoadingFinished=!0,this.doBackgroundLoading(),this.spinnerVisible-=1)},m.delayBackgroundPageLoaded)}}doBackgroundLoading(){this.startBackgroundLoading&&(this.startBackgroundLoading=!1,this.backgroundLoading$.next())}hideSpinner(){this.spinnerVisible>0&&0==--this.spinnerVisible&&(this.appLogsservice.dlog("%chide spinner",{guid:"spinner"},"color:"+e.W1.hideSpinnerColor),this.spinnerService.hide())}doCallBacks(){const a=this.arLoadedCompletedCallBacks;this.arLoadedCompletedCallBacks=[],a.forEach(r=>{r&&r()})}static#t=this.\u0275fac=function(r){return new(r||m)(g.KVO(E.RV),g.KVO(x.w),g.KVO(k.ex))};static#i=this.\u0275prov=g.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})()}}]); \ No newline at end of file diff --git a/ClientApp/staff-db-ui/dist/732.7127fbc84084fa8d.js b/ClientApp/staff-db-ui/dist/732.7127fbc84084fa8d.js new file mode 100644 index 0000000..0f98827 --- /dev/null +++ b/ClientApp/staff-db-ui/dist/732.7127fbc84084fa8d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkstaffdb=self.webpackChunkstaffdb||[]).push([[732],{69732:(D,c,n)=>{n.r(c),n.d(c,{AppAccountModule:()=>M});var u=n(60177),i=n(89417),m=n(19664),d=n(94753),h=n(31837),l=n(18498),t=n(54438),p=n(49619),v=n(96995),f=n(85956),A=n(99213),r=n(21009);const y=[{path:"",component:(()=>{class e extends p.l{constructor(){super(...arguments),this.appDataService=(0,t.WQX)(v.D)}onClick(){}static#t=this.\u0275fac=(()=>{let a;return function(s){return(a||(a=t.xGo(e)))(s||e)}})();static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["app-account-ext"]],features:[t.Vt3],decls:9,vars:2,consts:[["profile-settings",""],["admin-settings",""],["id","input-WebApp","placeholder","Webapp","keyExpr","entityId","displayExpr","webAppName","sortField","*","separator",",",1,"input-webapp",3,"selectedItemsChange","dataSource","multiSelect"],["mat-button","",1,"btn",3,"click"],["other-settings",""]],template:function(o,s){1&o&&(t.j41(0,"app-account"),t.nrm(1,"div",0),t.j41(2,"div",1)(3,"hensel-selection",2),t.bIt("selectedItemsChange",function(j){return s.webAppIdList=j}),t.k0s(),t.j41(4,"button",3),t.bIt("click",function(){return s.onClick()}),t.j41(5,"mat-icon"),t.EFF(6,"autorenew"),t.k0s(),t.EFF(7," Synchronize WebAppRole mit ADGroupen "),t.k0s()(),t.nrm(8,"div",4),t.k0s()),2&o&&(t.R7$(3),t.Y8G("dataSource",s.appDataService.webAppList.items)("multiSelect",!0))},dependencies:[p.l,f.iV,A.An,r.n],styles:[".input-webapp[_ngcontent-%COMP%]{float:left}.btn[_ngcontent-%COMP%]{margin-left:10px;margin-top:8px}"]})}return e})(),canActivate:[n(27938).q]}];let F=(()=>{class e{static#t=this.\u0275fac=function(o){return new(o||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[l.iI.forChild(y),l.iI]})}return e})();var I=n(39655),x=n(18406);let M=(()=>{class e{static#t=this.\u0275fac=function(o){return new(o||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[u.MD,F,I.AccountModule,x.e,i.X1,i.YN,d.N,h.WC8,r.n,m.h]})}return e})()}}]); \ No newline at end of file diff --git a/ClientApp/staff-db-ui/dist/826.a9ef1bb06db1b9fc.js b/ClientApp/staff-db-ui/dist/826.a9ef1bb06db1b9fc.js new file mode 100644 index 0000000..0472745 --- /dev/null +++ b/ClientApp/staff-db-ui/dist/826.a9ef1bb06db1b9fc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkstaffdb=self.webpackChunkstaffdb||[]).push([[826],{74826:(b,l,t)=>{t.r(l),t.d(l,{LoginModule:()=>F});var g=t(60177),d=t(18498),u=t(40605),p=t(75445),i=t(54438),f=t(12748),v=t(19057),L=t(53573),m=t(62560),h=t(66664),B=t(37085),n=t(76461),o=t(20962),c=t(1776),P=t(19664);function O(e,S){if(1&e&&(i.j41(0,"div",4)(1,"p"),i.EFF(2),i.k0s()()),2&e){const a=i.XpG();i.R7$(2),i.JRh(a.title)}}function E(e,S){if(1&e&&(i.j41(0,"mat-card",5)(1,"mat-card-header")(2,"mat-card-title"),i.EFF(3),i.nI1(4,"translate"),i.k0s()()()),2&e){const a=i.XpG();i.R7$(3),i.Lme("",i.bMT(4,2,"core.msg.greeting")," ",null==a.authorizationService.user?null:a.authorizationService.user.name,"!")}}function M(e,S){1&e&&(i.j41(0,"mat-card",5)(1,"mat-card-header")(2,"mat-card-title"),i.EFF(3),i.nI1(4,"translate"),i.k0s()(),i.j41(5,"mat-card",6),i.nrm(6,"mat-spinner",7),i.k0s()()),2&e&&(i.R7$(3),i.JRh(i.bMT(4,1,"core.msg.waitingconnecton")))}function U(e,S){1&e&&(i.j41(0,"mat-card",5)(1,"mat-card-header")(2,"mat-card-title"),i.EFF(3),i.nI1(4,"translate"),i.k0s()(),i.j41(5,"mat-card",6),i.nrm(6,"mat-spinner",7),i.k0s()()),2&e&&(i.R7$(3),i.JRh(i.bMT(4,1,"core.msg.checkuser")))}const z=[{path:"**",component:(()=>{class e{constructor(a,r,s,x,T,V,W,A,H){this.translate=a,this.globals=r,this.serverInfoService=s,this.routerService=x,this.authorizationService=T,this.appLogsService=V,this.uiNotifier=W,this.route=A,this.pageLoadingService=H,this.title=this.globals.appTitle,this.userLoginSubscription=this.authorizationService.loginAction$.subscribe(I=>{if(I.result){!this.globals.isTheMainPage(this.returnUrl)&&this.authorizationService.isLoggedUserChanged()&&(this.returnUrl="/"+r.mainPage.path);const C=this.returnUrl;this.appLogsService.dlog("After login goto "+C),this.routerService.navigate([C])}else this.authorizationService.loginStatus!==this.authorizationService.EN_LoginStatus_Password&&this.authorizationService.loginPopup(I.errMsg)})}ngOnInit(){this.connectionReadySubscription=this.serverInfoService.connectionReady.subscribe(a=>{a&&(this.serverInfo=a,this.doLogin())}),this.checkLoginPopupSubscription=(0,u.Y)(500).subscribe(()=>{this.serverInfo&&!this.authorizationService.isLoggedIn()&&this.authorizationService.loginStatus!==this.authorizationService.EN_LoginStatus_Unknown&&!p.N.LOGIN_IS_SHOWN&&this.doLogin()})}ngAfterViewInit(){}doLogin(){this.returnUrl=this.route.snapshot.queryParams.returnUrl,this.appLogsService.dlog("show login",this.authorizationService.user),this.returnUrl||(this.returnUrl="/"+this.globals.mainPage.path),this.authorizationService.loginStatus===this.authorizationService.EN_LoginStatus_Unknown?this.authorizationService.login():(this.serverInfoService.serverInfoVisible=this.serverInfoService.defaultServerInfoVisible||this.serverInfoService.serverInfoVisible,this.authorizationService.loginPopup(null,!0))}ngOnDestroy(){this.userLoginSubscription?.unsubscribe(),this.connectionReadySubscription?.unsubscribe(),this.checkLoginPopupSubscription?.unsubscribe()}static#i=this.\u0275fac=function(r){return new(r||e)(i.rXU(f.X),i.rXU(v.RV),i.rXU(L.z),i.rXU(d.Ix),i.rXU(m.V),i.rXU(h.w),i.rXU(B.u),i.rXU(d.nX),i.rXU(n.V))};static#t=this.\u0275cmp=i.VBU({type:e,selectors:[["app-login"]],decls:6,vars:4,consts:[[1,"login-wrapper"],["class","login-header",4,"ngIf"],[1,"login-body"],["class","box",4,"ngIf"],[1,"login-header"],[1,"box"],[1,"sub-box"],["mode","indeterminate"]],template:function(r,s){1&r&&(i.j41(0,"section",0),i.DNE(1,O,3,1,"div",1),i.j41(2,"div",2),i.DNE(3,E,5,4,"mat-card",3)(4,M,7,3,"mat-card",3)(5,U,7,3,"mat-card",3),i.k0s()()),2&r&&(i.R7$(),i.Y8G("ngIf",!s.serverInfo||s.authorizationService.isLoggedIn()||s.authorizationService.loginStatus===s.authorizationService.EN_LoginStatus_Unknown),i.R7$(2),i.Y8G("ngIf",s.authorizationService.isLoggedIn()),i.R7$(),i.Y8G("ngIf",!s.serverInfo),i.R7$(),i.Y8G("ngIf",s.serverInfo&&!s.authorizationService.isLoggedIn()&&s.authorizationService.loginStatus===s.authorizationService.EN_LoginStatus_Unknown))},dependencies:[g.bT,o._m,o.XB,o.YU,c.wS,P.D9],styles:['.cell_positive_balance{color:#76b82a} .cell_negative_balance{color:#b22222}.login-wrapper[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:0;margin:0;overflow:visible;display:grid;grid-column-gap:15px;grid-row-gap:0;grid-template-columns:repeat(1,minmax(0,auto));grid-template-rows:auto repeat(1,minmax(0,1fr));grid-template-areas:"login-header" "login-body"}.login-body[_ngcontent-%COMP%]{grid-area:login-body}.login-header[_ngcontent-%COMP%]{grid-area:login-header;color:#0b3a62;font-size:30px;text-align:center;margin:0}.box[_ngcontent-%COMP%]{margin:2px;padding:50px;width:auto;border-radius:10px;max-width:330px}.sub-box[_ngcontent-%COMP%]{display:flex;justify-content:center;width:auto}.mat-stroked-button.mat-accent[_ngcontent-%COMP%]{color:#fff;background:#0b3a62}']})}return e})()}];let k=(()=>{class e{static#i=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=i.$C({type:e});static#n=this.\u0275inj=i.G2t({imports:[d.iI.forChild(z),d.iI]})}return e})();var y=t(18406),R=t(89417),D=t(92);let F=(()=>{class e{static#i=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=i.$C({type:e});static#n=this.\u0275inj=i.G2t({imports:[g.MD,k,y.e,R.YN,D.d,P.h.forChild()]})}return e})()},76461:(b,l,t)=>{t.d(l,{V:()=>m});var g=t(54438),d=t(33570),u=t(84412),p=t(21413),i=t(12748),f=t(19057),v=t(66664),L=t(36554);let m=(()=>{class h{static#i=this.delayBackgroundPageLoaded=750;get noOfHttpQueries4Page(){return this._noOfHttpQueries4Page}set noOfHttpQueries4Page(n){n.forEach((o,c)=>{this._noOfHttpQueries4Page[c]>-1&&(this._noOfHttpQueries4Page[c]=o)})}get onPageLoagingWaitBackgroundLoadingFinished(){return this._onPageLoagingWaitBackgroundLoadingFinished}set onPageLoagingWaitBackgroundLoadingFinished(n){this._onPageLoagingWaitBackgroundLoadingFinished=n,this.waitBackgroundLoadingFinished=n}constructor(n,o,c){this.globals=n,this.appLogsservice=o,this.spinnerService=c,this.spinnerVisible=0,this.forgroundLoading$=new u.t(null),this.backgroundLoading$=new u.t(null),this.pageActive$=new p.B,this._noOfHttpQueries4Page=[],this.startBackgroundLoading=!1,this.waitBackgroundLoadingFinished=!1,this.arLoadedCompletedCallBacks=[],this.translationService=(0,g.WQX)(i.X),this._onPageLoagingWaitBackgroundLoadingFinished=!1,this.startBackgroundLoadingAfterPageIsLoaded=!0,this.globals.appPages.forEach(P=>this.noOfHttpQueries4Page.push(-1))}startSpinner(n=!0,o){this.startBackgroundLoading=n||this.startBackgroundLoading,o&&this.arLoadedCompletedCallBacks.push(o),this.showSpinner()}showSpinner(){0==this.spinnerVisible++&&(this.appLogsservice.dlog("%cshow spinner",{guid:"spinner"},"color:"+d.W1.hideSpinnerColor),this.spinnerService.show())}allData4PageAreLoaded(n=-1){return n>-1&&no<=0)}updatePageLoadedCounters(n){if(null!==n){const o=this.globals.isTheLoginPage(this.globals.appPages[n].path)?n:this.globals.getPageIndex(this.globals.currentPage);this.noOfHttpQueries4Page[n]>0&&this.noOfHttpQueries4Page[n]--,n{this.hideSpinner(),this.doCallBacks(),this.waitBackgroundLoadingFinished=this.onPageLoagingWaitBackgroundLoadingFinished,o===n&&this.startBackgroundLoadingAfterPageIsLoaded&&(this.spinnerVisible+=1,this.waitBackgroundLoadingFinished=!0,this.doBackgroundLoading(),this.spinnerVisible-=1)},h.delayBackgroundPageLoaded)}}doBackgroundLoading(){this.startBackgroundLoading&&(this.startBackgroundLoading=!1,this.backgroundLoading$.next())}hideSpinner(){this.spinnerVisible>0&&0==--this.spinnerVisible&&(this.appLogsservice.dlog("%chide spinner",{guid:"spinner"},"color:"+d.W1.hideSpinnerColor),this.spinnerService.hide())}doCallBacks(){const n=this.arLoadedCompletedCallBacks;this.arLoadedCompletedCallBacks=[],n.forEach(o=>{o&&o()})}static#t=this.\u0275fac=function(o){return new(o||h)(g.KVO(f.RV),g.KVO(v.w),g.KVO(L.ex))};static#n=this.\u0275prov=g.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()}}]); \ No newline at end of file diff --git a/ClientApp/staff-db-ui/dist/973.d62bccb3860d3e9d.js b/ClientApp/staff-db-ui/dist/973.d62bccb3860d3e9d.js new file mode 100644 index 0000000..0d6dc27 --- /dev/null +++ b/ClientApp/staff-db-ui/dist/973.d62bccb3860d3e9d.js @@ -0,0 +1 @@ +(self.webpackChunkstaffdb=self.webpackChunkstaffdb||[]).push([[973],{91973:function(At){At.exports=function(){"use strict";function w(r){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(r)}function X(r,n){return(X=Object.setPrototypeOf||function(u,c){return u.__proto__=c,u})(r,n)}function Q(r,n,o){return(Q=function yt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(c,O,g){var D=[null];D.push.apply(D,O);var V=new(Function.bind.apply(c,D));return g&&X(V,g.prototype),V}).apply(null,arguments)}function L(r){return function gt(r){if(Array.isArray(r))return me(r)}(r)||function St(r){if(typeof Symbol<"u"&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function bt(r,n){if(r){if("string"==typeof r)return me(r,n);var o=Object.prototype.toString.call(r).slice(8,-1);if("Object"===o&&r.constructor&&(o=r.constructor.name),"Map"===o||"Set"===o)return Array.from(r);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return me(r,n)}}(r)||function Ot(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function me(r,n){(null==n||n>r.length)&&(n=r.length);for(var o=0,u=new Array(n);o1?o-1:0),c=1;c/gm),Ht=S(/\${[\w\W]*}/gm),zt=S(/^data-[\-\w.\u00B7-\uFFFF]/),Gt=S(/^aria-[\-\w]+$/),Wt=S(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bt=S(/^(?:\w+script|data):/i),$t=S(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),jt=S(/^html$/i),Xt=S(/^[a-z][.\w]*(-[.\w]+)+$/i);return function Ve(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:typeof window>"u"?null:window,n=function(e){return Ve(e)};if(n.version="2.5.4",n.removed=[],!r||!r.document||9!==r.document.nodeType)return n.isSupported=!1,n;var o=r.document,u=r.document,c=r.DocumentFragment,O=r.HTMLTemplateElement,g=r.Node,D=r.Element,P=r.NodeFilter,V=r.NamedNodeMap,Kt=void 0===V?r.NamedNodeMap||r.MozNamedAttrMap:V,Zt=r.HTMLFormElement,Jt=r.DOMParser,ne=r.trustedTypes,ie=D.prototype,Qt=re(ie,"cloneNode"),er=re(ie,"nextSibling"),tr=re(ie,"childNodes"),q=re(ie,"parentNode");if("function"==typeof O){var ye=u.createElement("template");ye.content&&ye.content.ownerDocument&&(u=ye.content.ownerDocument)}var N=function(n,o){if("object"!==w(n)||"function"!=typeof n.createPolicy)return null;var u=null,c="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(c)&&(u=o.currentScript.getAttribute(c));var O="dompurify"+(u?"#"+u:"");try{return n.createPolicy(O,{createHTML:function(D){return D},createScriptURL:function(D){return D}})}catch{return console.warn("TrustedTypes policy "+O+" could not be created."),null}}(ne,o),ge=N?N.createHTML(""):"",Se=u.implementation,rr=u.createNodeIterator,ar=u.createDocumentFragment,nr=u.getElementsByTagName,ir=o.importNode,qe={};try{qe=k(u).documentMode?u.documentMode:{}}catch{}var C={};n.isSupported="function"==typeof q&&Se&&void 0!==Se.createHTMLDocument&&9!==qe;var U,_,be=Ft,Oe=Ut,Re=Ht,or=zt,lr=Gt,sr=Bt,Ke=$t,ur=Xt,Le=Wt,p=null,Ze=s({},[].concat(L($e),L(Te),L(ve),L(Ee),L(je))),m=null,Je=s({},[].concat(L(Xe),L(Ae),L(Ye),L(ae))),f=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),K=null,Me=null,Qe=!0,Ne=!0,et=!1,tt=!0,z=!1,De=!0,F=!1,Ce=!1,we=!1,G=!1,le=!1,se=!1,rt=!0,at=!1,Ie=!0,Z=!1,W={},B=null,nt=s({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),it=null,ot=s({},["audio","video","img","source","image","track"]),xe=null,lt=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ue="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",I="http://www.w3.org/1999/xhtml",$=I,ke=!1,Pe=null,cr=s({},[ue,fe,I],de),pr=["application/xhtml+xml","text/html"],j=null,_r=u.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},Fe=function(e){j&&j===e||((!e||"object"!==w(e))&&(e={}),e=k(e),U=U=-1===pr.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,_="application/xhtml+xml"===U?de:te,p="ALLOWED_TAGS"in e?s({},e.ALLOWED_TAGS,_):Ze,m="ALLOWED_ATTR"in e?s({},e.ALLOWED_ATTR,_):Je,Pe="ALLOWED_NAMESPACES"in e?s({},e.ALLOWED_NAMESPACES,de):cr,xe="ADD_URI_SAFE_ATTR"in e?s(k(lt),e.ADD_URI_SAFE_ATTR,_):lt,it="ADD_DATA_URI_TAGS"in e?s(k(ot),e.ADD_DATA_URI_TAGS,_):ot,B="FORBID_CONTENTS"in e?s({},e.FORBID_CONTENTS,_):nt,K="FORBID_TAGS"in e?s({},e.FORBID_TAGS,_):{},Me="FORBID_ATTR"in e?s({},e.FORBID_ATTR,_):{},W="USE_PROFILES"in e&&e.USE_PROFILES,Qe=!1!==e.ALLOW_ARIA_ATTR,Ne=!1!==e.ALLOW_DATA_ATTR,et=e.ALLOW_UNKNOWN_PROTOCOLS||!1,tt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,z=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,F=e.WHOLE_DOCUMENT||!1,G=e.RETURN_DOM||!1,le=e.RETURN_DOM_FRAGMENT||!1,se=e.RETURN_TRUSTED_TYPE||!1,we=e.FORCE_BODY||!1,rt=!1!==e.SANITIZE_DOM,at=e.SANITIZE_NAMED_PROPS||!1,Ie=!1!==e.KEEP_CONTENT,Z=e.IN_PLACE||!1,Le=e.ALLOWED_URI_REGEXP||Le,$=e.NAMESPACE||I,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),z&&(Ne=!1),le&&(G=!0),W&&(p=s({},L(je)),m=[],!0===W.html&&(s(p,$e),s(m,Xe)),!0===W.svg&&(s(p,Te),s(m,Ae),s(m,ae)),!0===W.svgFilters&&(s(p,ve),s(m,Ae),s(m,ae)),!0===W.mathMl&&(s(p,Ee),s(m,Ye),s(m,ae))),e.ADD_TAGS&&(p===Ze&&(p=k(p)),s(p,e.ADD_TAGS,_)),e.ADD_ATTR&&(m===Je&&(m=k(m)),s(m,e.ADD_ATTR,_)),e.ADD_URI_SAFE_ATTR&&s(xe,e.ADD_URI_SAFE_ATTR,_),e.FORBID_CONTENTS&&(B===nt&&(B=k(B)),s(B,e.FORBID_CONTENTS,_)),Ie&&(p["#text"]=!0),F&&s(p,["html","head","body"]),p.table&&(s(p,["tbody"]),delete K.tbody),v&&v(e),j=e)},ft=s({},["mi","mo","mn","ms","mtext"]),ct=s({},["foreignobject","annotation-xml"]),dr=s({},["title","style","font","a","script"]),ce=s({},Te);s(ce,ve),s(ce,kt);var Ue=s({},Ee);s(Ue,Pt);var E=function(e){Y(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch{try{e.outerHTML=ge}catch{e.remove()}}},pe=function(e,t){try{Y(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{Y(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!m[e])if(G||le)try{E(t)}catch{}else try{t.setAttribute(e,"")}catch{}},pt=function(e){var t,a;if(we)e=""+e;else{var l=We(e,/^[\r\n\t ]+/);a=l&&l[0]}"application/xhtml+xml"===U&&$===I&&(e=''+e+"");var A=N?N.createHTML(e):e;if($===I)try{t=(new Jt).parseFromString(A,U)}catch{}if(!t||!t.documentElement){t=Se.createDocument($,"template",null);try{t.documentElement.innerHTML=ke?ge:A}catch{}}var T=t.body||t.documentElement;return e&&a&&T.insertBefore(u.createTextNode(a),T.childNodes[0]||null),$===I?nr.call(t,F?"html":"body")[0]:F?t.documentElement:T},mt=function(e){return rr.call(e.ownerDocument||e,e,P.SHOW_ELEMENT|P.SHOW_COMMENT|P.SHOW_TEXT|P.SHOW_PROCESSING_INSTRUCTION|P.SHOW_CDATA_SECTION,null,!1)},_t=function(e){return e instanceof Zt&&(typeof e.__depth<"u"&&"number"!=typeof e.__depth||typeof e.__removalCount<"u"&&"number"!=typeof e.__removalCount||"string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof Kt)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},J=function(e){return"object"===w(g)?e instanceof g:e&&"object"===w(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},x=function(e,t,a){C[e]&&Ct(C[e],function(l){l.call(n,t,a,j)})},dt=function(e){var t;if(x("beforeSanitizeElements",e,null),_t(e)||d(/[\u0080-\uFFFF]/,e.nodeName))return E(e),!0;var a=_(e.nodeName);if(x("uponSanitizeElement",e,{tagName:a,allowedTags:p}),e.hasChildNodes()&&!J(e.firstElementChild)&&(!J(e.content)||!J(e.content.firstElementChild))&&d(/<[/\w]/g,e.innerHTML)&&d(/<[/\w]/g,e.textContent)||"select"===a&&d(/